blob: 3a71e8c86c85f74816003f57d022294d7105c1a5 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristyd934d102009-10-10 12:55:13 +00003# Generated by GNU Autoconf 2.63 for ImageMagick 6.5.7.
cristy3ed852e2009-09-05 21:47:34 +00004#
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'
cristyd934d102009-10-10 12:55:13 +0000752PACKAGE_VERSION='6.5.7'
753PACKAGE_STRING='ImageMagick 6.5.7'
cristy3ed852e2009-09-05 21:47:34 +0000754PACKAGE_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
cristyc7083c12009-10-14 03:16:55 +0000987XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000988BZLIB_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
cristy736173a2009-09-20 21:18:22 +00001063CL_LIBS
1064CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +00001065OPENMP_CFLAGS
1066PTHREAD_CFLAGS
1067PTHREAD_LIBS
cristy3ed852e2009-09-05 21:47:34 +00001068PTHREAD_CC
1069acx_pthread_config
1070WinPathScript
1071USING_CL_FALSE
1072USING_CL_TRUE
1073CYGWIN_BUILD_FALSE
1074CYGWIN_BUILD_TRUE
1075WIN32_NATIVE_BUILD_FALSE
1076WIN32_NATIVE_BUILD_TRUE
1077WINGDI32_DELEGATE_FALSE
1078WINGDI32_DELEGATE_TRUE
1079GDI32_LIBS
1080PKG_CONFIG
1081LN_S
1082am__fastdepCXX_FALSE
1083am__fastdepCXX_TRUE
1084CXXDEPMODE
1085ac_ct_CXX
1086CXXFLAGS
1087CXX
1088RANLIB
1089LD
1090FGREP
1091EGREP
1092GREP
1093SED
1094CPP
1095am__fastdepCC_FALSE
1096am__fastdepCC_TRUE
1097CCDEPMODE
1098AMDEPBACKSLASH
1099AMDEP_FALSE
1100AMDEP_TRUE
1101am__quote
1102am__include
1103DEPDIR
1104OBJEXT
1105EXEEXT
1106ac_ct_CC
1107CPPFLAGS
1108LDFLAGS
1109CFLAGS
1110CC
1111DIRSEP
1112MAGICK_FILTER_MODULE_PATH
1113MAGICK_CONFIGURE_BUILD_PATH
1114MAGICK_CONFIGURE_SRC_PATH
1115MAGICK_CODER_MODULE_PATH
1116MAN_DIR
1117INFO_DIR
1118PERSISTINCLUDE_DIR
1119INCLUDE_DIR
1120LIB_DIR
1121LOCALSTATE_DIR
1122SHAREDSTATE_DIR
1123SYSCONF_DIR
1124DATA_DIR
1125LIBEXEC_DIR
1126SBIN_DIR
1127BIN_DIR
1128EXEC_PREFIX_DIR
1129PREFIX_DIR
1130CONFIG_STATUS_DEPENDENCIES
1131MAGICK_LIB_VERSION_NUMBER
1132MAGICK_LIB_VERSION_TEXT
1133MAGICK_LIB_VERSION
1134AM_BACKSLASH
1135AM_DEFAULT_VERBOSITY
1136am__untar
1137am__tar
1138AMTAR
1139am__leading_dot
1140SET_MAKE
1141AWK
1142mkdir_p
1143MKDIR_P
1144INSTALL_STRIP_PROGRAM
1145STRIP
1146install_sh
1147MAKEINFO
1148AUTOHEADER
1149AUTOMAKE
1150AUTOCONF
1151ACLOCAL
1152VERSION
1153PACKAGE
1154CYGPATH_W
1155am__isrc
1156INSTALL_DATA
1157INSTALL_SCRIPT
1158INSTALL_PROGRAM
1159PACKAGE_LIB_SUBVERSION
1160PACKAGE_RELEASE_DATE
1161PACKAGE_LIB_VERSION_NUMBER
1162PACKAGE_LIB_VERSION
1163PACKAGE_CHANGE_DATE
1164PACKAGE_RELEASE
1165MAGICK_LIBRARY_AGE
1166MAGICK_LIBRARY_REVISION
1167MAGICK_LIBRARY_CURRENT
1168target_os
1169target_vendor
1170target_cpu
1171target
1172host_os
1173host_vendor
1174host_cpu
1175host
1176build_os
1177build_vendor
1178build_cpu
1179build
1180CONFIGURE_ARGS
1181DISTCHECK_CONFIG_FLAGS
1182target_alias
1183host_alias
1184build_alias
1185LIBS
1186ECHO_T
1187ECHO_N
1188ECHO_C
1189DEFS
1190mandir
1191localedir
1192libdir
1193psdir
1194pdfdir
1195dvidir
1196htmldir
1197infodir
1198docdir
1199oldincludedir
1200includedir
1201localstatedir
1202sharedstatedir
1203sysconfdir
1204datadir
1205datarootdir
1206libexecdir
1207sbindir
1208bindir
1209program_transform_name
1210prefix
1211exec_prefix
1212PACKAGE_BUGREPORT
1213PACKAGE_STRING
1214PACKAGE_VERSION
1215PACKAGE_TARNAME
1216PACKAGE_NAME
1217PATH_SEPARATOR
1218SHELL'
1219ac_subst_files=''
1220ac_user_opts='
1221enable_option_checking
1222enable_silent_rules
1223enable_dependency_tracking
1224with_gnu_ld
1225with_maximum_compile_warnings
1226with_dmalloc
1227enable_bounds_checking
1228enable_osx_universal_binary
1229with_threads
1230enable_openmp
1231enable_largefile
1232enable_shared
1233enable_static
1234with_pic
1235enable_fast_install
1236enable_libtool_lock
1237with_included_ltdl
1238with_ltdl_include
1239with_ltdl_lib
1240enable_ltdl_install
1241with_modules
1242enable_delegate_build
1243enable_deprecated
1244enable_installed
1245enable_cipher
1246enable_embeddable
1247enable_hdri
1248enable_libtool_verbose
1249enable_assert
1250enable_maintainer_mode
1251enable_ccmalloc
1252enable_efence
1253enable_prof
1254enable_gprof
1255enable_gcov
1256with_method_prefix
1257with_quantum_depth
1258with_cache
1259with_frozenpaths
1260with_magick_plus_plus
1261with_perl
1262with_perl_options
1263with_umem
1264with_libstdc
1265with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001266with_x
cristy3ed852e2009-09-05 21:47:34 +00001267with_zlib
1268with_autotrace
1269with_dps
1270with_djvu
1271with_fftw
1272with_fpx
1273with_fontconfig
1274with_freetype
1275with_gslib
1276with_fontpath
1277with_gs_font_dir
1278with_gvc
1279with_jbig
1280with_jpeg
1281with_jp2
1282with_lcms
1283with_lqr
1284with_openexr
1285with_png
1286with_rsvg
1287with_tiff
1288with_windows_font_dir
1289with_wmf
1290with_xml
1291'
1292 ac_precious_vars='build_alias
1293host_alias
1294target_alias
1295CC
1296CFLAGS
1297LDFLAGS
1298LIBS
1299CPPFLAGS
1300CPP
1301CXX
1302CXXFLAGS
1303CCC
1304PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001305CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001306XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001307AUTOTRACE_CFLAGS
1308AUTOTRACE_LIBS
1309FONTCONFIG_CFLAGS
1310FONTCONFIG_LIBS
1311GVC_CFLAGS
1312GVC_LIBS
1313LQR_CFLAGS
1314LQR_LIBS
1315OPENEXR_CFLAGS
1316OPENEXR_LIBS
1317RSVG_CFLAGS
1318RSVG_LIBS
1319CAIRO_SVG_CFLAGS
1320CAIRO_SVG_LIBS'
1321
1322
1323# Initialize some variables set by options.
1324ac_init_help=
1325ac_init_version=false
1326ac_unrecognized_opts=
1327ac_unrecognized_sep=
1328# The variables have the same names as the options, with
1329# dashes changed to underlines.
1330cache_file=/dev/null
1331exec_prefix=NONE
1332no_create=
1333no_recursion=
1334prefix=NONE
1335program_prefix=NONE
1336program_suffix=NONE
1337program_transform_name=s,x,x,
1338silent=
1339site=
1340srcdir=
1341verbose=
1342x_includes=NONE
1343x_libraries=NONE
1344
1345# Installation directory options.
1346# These are left unexpanded so users can "make install exec_prefix=/foo"
1347# and all the variables that are supposed to be based on exec_prefix
1348# by default will actually change.
1349# Use braces instead of parens because sh, perl, etc. also accept them.
1350# (The list follows the same order as the GNU Coding Standards.)
1351bindir='${exec_prefix}/bin'
1352sbindir='${exec_prefix}/sbin'
1353libexecdir='${exec_prefix}/libexec'
1354datarootdir='${prefix}/share'
1355datadir='${datarootdir}'
1356sysconfdir='${prefix}/etc'
1357sharedstatedir='${prefix}/com'
1358localstatedir='${prefix}/var'
1359includedir='${prefix}/include'
1360oldincludedir='/usr/include'
1361docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1362infodir='${datarootdir}/info'
1363htmldir='${docdir}'
1364dvidir='${docdir}'
1365pdfdir='${docdir}'
1366psdir='${docdir}'
1367libdir='${exec_prefix}/lib'
1368localedir='${datarootdir}/locale'
1369mandir='${datarootdir}/man'
1370
1371ac_prev=
1372ac_dashdash=
1373for ac_option
1374do
1375 # If the previous option needs an argument, assign it.
1376 if test -n "$ac_prev"; then
1377 eval $ac_prev=\$ac_option
1378 ac_prev=
1379 continue
1380 fi
1381
1382 case $ac_option in
1383 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1384 *) ac_optarg=yes ;;
1385 esac
1386
1387 # Accept the important Cygnus configure options, so we can diagnose typos.
1388
1389 case $ac_dashdash$ac_option in
1390 --)
1391 ac_dashdash=yes ;;
1392
1393 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1394 ac_prev=bindir ;;
1395 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1396 bindir=$ac_optarg ;;
1397
1398 -build | --build | --buil | --bui | --bu)
1399 ac_prev=build_alias ;;
1400 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1401 build_alias=$ac_optarg ;;
1402
1403 -cache-file | --cache-file | --cache-fil | --cache-fi \
1404 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1405 ac_prev=cache_file ;;
1406 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1407 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1408 cache_file=$ac_optarg ;;
1409
1410 --config-cache | -C)
1411 cache_file=config.cache ;;
1412
1413 -datadir | --datadir | --datadi | --datad)
1414 ac_prev=datadir ;;
1415 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1416 datadir=$ac_optarg ;;
1417
1418 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1419 | --dataroo | --dataro | --datar)
1420 ac_prev=datarootdir ;;
1421 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1422 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1423 datarootdir=$ac_optarg ;;
1424
1425 -disable-* | --disable-*)
1426 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1427 # Reject names that are not valid shell variable names.
1428 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1429 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1430 { (exit 1); exit 1; }; }
1431 ac_useropt_orig=$ac_useropt
1432 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1433 case $ac_user_opts in
1434 *"
1435"enable_$ac_useropt"
1436"*) ;;
1437 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1438 ac_unrecognized_sep=', ';;
1439 esac
1440 eval enable_$ac_useropt=no ;;
1441
1442 -docdir | --docdir | --docdi | --doc | --do)
1443 ac_prev=docdir ;;
1444 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1445 docdir=$ac_optarg ;;
1446
1447 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1448 ac_prev=dvidir ;;
1449 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1450 dvidir=$ac_optarg ;;
1451
1452 -enable-* | --enable-*)
1453 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1454 # Reject names that are not valid shell variable names.
1455 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1456 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1457 { (exit 1); exit 1; }; }
1458 ac_useropt_orig=$ac_useropt
1459 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1460 case $ac_user_opts in
1461 *"
1462"enable_$ac_useropt"
1463"*) ;;
1464 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1465 ac_unrecognized_sep=', ';;
1466 esac
1467 eval enable_$ac_useropt=\$ac_optarg ;;
1468
1469 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1470 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1471 | --exec | --exe | --ex)
1472 ac_prev=exec_prefix ;;
1473 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1474 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1475 | --exec=* | --exe=* | --ex=*)
1476 exec_prefix=$ac_optarg ;;
1477
1478 -gas | --gas | --ga | --g)
1479 # Obsolete; use --with-gas.
1480 with_gas=yes ;;
1481
1482 -help | --help | --hel | --he | -h)
1483 ac_init_help=long ;;
1484 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1485 ac_init_help=recursive ;;
1486 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1487 ac_init_help=short ;;
1488
1489 -host | --host | --hos | --ho)
1490 ac_prev=host_alias ;;
1491 -host=* | --host=* | --hos=* | --ho=*)
1492 host_alias=$ac_optarg ;;
1493
1494 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1495 ac_prev=htmldir ;;
1496 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1497 | --ht=*)
1498 htmldir=$ac_optarg ;;
1499
1500 -includedir | --includedir | --includedi | --included | --include \
1501 | --includ | --inclu | --incl | --inc)
1502 ac_prev=includedir ;;
1503 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1504 | --includ=* | --inclu=* | --incl=* | --inc=*)
1505 includedir=$ac_optarg ;;
1506
1507 -infodir | --infodir | --infodi | --infod | --info | --inf)
1508 ac_prev=infodir ;;
1509 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1510 infodir=$ac_optarg ;;
1511
1512 -libdir | --libdir | --libdi | --libd)
1513 ac_prev=libdir ;;
1514 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1515 libdir=$ac_optarg ;;
1516
1517 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1518 | --libexe | --libex | --libe)
1519 ac_prev=libexecdir ;;
1520 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1521 | --libexe=* | --libex=* | --libe=*)
1522 libexecdir=$ac_optarg ;;
1523
1524 -localedir | --localedir | --localedi | --localed | --locale)
1525 ac_prev=localedir ;;
1526 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1527 localedir=$ac_optarg ;;
1528
1529 -localstatedir | --localstatedir | --localstatedi | --localstated \
1530 | --localstate | --localstat | --localsta | --localst | --locals)
1531 ac_prev=localstatedir ;;
1532 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1533 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1534 localstatedir=$ac_optarg ;;
1535
1536 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1537 ac_prev=mandir ;;
1538 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1539 mandir=$ac_optarg ;;
1540
1541 -nfp | --nfp | --nf)
1542 # Obsolete; use --without-fp.
1543 with_fp=no ;;
1544
1545 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1546 | --no-cr | --no-c | -n)
1547 no_create=yes ;;
1548
1549 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1550 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1551 no_recursion=yes ;;
1552
1553 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1554 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1555 | --oldin | --oldi | --old | --ol | --o)
1556 ac_prev=oldincludedir ;;
1557 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1558 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1559 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1560 oldincludedir=$ac_optarg ;;
1561
1562 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1563 ac_prev=prefix ;;
1564 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1565 prefix=$ac_optarg ;;
1566
1567 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1568 | --program-pre | --program-pr | --program-p)
1569 ac_prev=program_prefix ;;
1570 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1571 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1572 program_prefix=$ac_optarg ;;
1573
1574 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1575 | --program-suf | --program-su | --program-s)
1576 ac_prev=program_suffix ;;
1577 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1578 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1579 program_suffix=$ac_optarg ;;
1580
1581 -program-transform-name | --program-transform-name \
1582 | --program-transform-nam | --program-transform-na \
1583 | --program-transform-n | --program-transform- \
1584 | --program-transform | --program-transfor \
1585 | --program-transfo | --program-transf \
1586 | --program-trans | --program-tran \
1587 | --progr-tra | --program-tr | --program-t)
1588 ac_prev=program_transform_name ;;
1589 -program-transform-name=* | --program-transform-name=* \
1590 | --program-transform-nam=* | --program-transform-na=* \
1591 | --program-transform-n=* | --program-transform-=* \
1592 | --program-transform=* | --program-transfor=* \
1593 | --program-transfo=* | --program-transf=* \
1594 | --program-trans=* | --program-tran=* \
1595 | --progr-tra=* | --program-tr=* | --program-t=*)
1596 program_transform_name=$ac_optarg ;;
1597
1598 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1599 ac_prev=pdfdir ;;
1600 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1601 pdfdir=$ac_optarg ;;
1602
1603 -psdir | --psdir | --psdi | --psd | --ps)
1604 ac_prev=psdir ;;
1605 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1606 psdir=$ac_optarg ;;
1607
1608 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1609 | -silent | --silent | --silen | --sile | --sil)
1610 silent=yes ;;
1611
1612 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1613 ac_prev=sbindir ;;
1614 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1615 | --sbi=* | --sb=*)
1616 sbindir=$ac_optarg ;;
1617
1618 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1619 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1620 | --sharedst | --shareds | --shared | --share | --shar \
1621 | --sha | --sh)
1622 ac_prev=sharedstatedir ;;
1623 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1624 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1625 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1626 | --sha=* | --sh=*)
1627 sharedstatedir=$ac_optarg ;;
1628
1629 -site | --site | --sit)
1630 ac_prev=site ;;
1631 -site=* | --site=* | --sit=*)
1632 site=$ac_optarg ;;
1633
1634 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1635 ac_prev=srcdir ;;
1636 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1637 srcdir=$ac_optarg ;;
1638
1639 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1640 | --syscon | --sysco | --sysc | --sys | --sy)
1641 ac_prev=sysconfdir ;;
1642 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1643 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1644 sysconfdir=$ac_optarg ;;
1645
1646 -target | --target | --targe | --targ | --tar | --ta | --t)
1647 ac_prev=target_alias ;;
1648 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1649 target_alias=$ac_optarg ;;
1650
1651 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1652 verbose=yes ;;
1653
1654 -version | --version | --versio | --versi | --vers | -V)
1655 ac_init_version=: ;;
1656
1657 -with-* | --with-*)
1658 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1659 # Reject names that are not valid shell variable names.
1660 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1661 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1662 { (exit 1); exit 1; }; }
1663 ac_useropt_orig=$ac_useropt
1664 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1665 case $ac_user_opts in
1666 *"
1667"with_$ac_useropt"
1668"*) ;;
1669 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1670 ac_unrecognized_sep=', ';;
1671 esac
1672 eval with_$ac_useropt=\$ac_optarg ;;
1673
1674 -without-* | --without-*)
1675 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1676 # Reject names that are not valid shell variable names.
1677 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1678 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1679 { (exit 1); exit 1; }; }
1680 ac_useropt_orig=$ac_useropt
1681 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1682 case $ac_user_opts in
1683 *"
1684"with_$ac_useropt"
1685"*) ;;
1686 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1687 ac_unrecognized_sep=', ';;
1688 esac
1689 eval with_$ac_useropt=no ;;
1690
1691 --x)
1692 # Obsolete; use --with-x.
1693 with_x=yes ;;
1694
1695 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1696 | --x-incl | --x-inc | --x-in | --x-i)
1697 ac_prev=x_includes ;;
1698 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1699 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1700 x_includes=$ac_optarg ;;
1701
1702 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1703 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1704 ac_prev=x_libraries ;;
1705 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1706 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1707 x_libraries=$ac_optarg ;;
1708
1709 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1710Try \`$0 --help' for more information." >&2
1711 { (exit 1); exit 1; }; }
1712 ;;
1713
1714 *=*)
1715 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1716 # Reject names that are not valid shell variable names.
1717 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1718 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1719 { (exit 1); exit 1; }; }
1720 eval $ac_envvar=\$ac_optarg
1721 export $ac_envvar ;;
1722
1723 *)
1724 # FIXME: should be removed in autoconf 3.0.
1725 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1726 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1727 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1728 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1729 ;;
1730
1731 esac
1732done
1733
1734if test -n "$ac_prev"; then
1735 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1736 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1737 { (exit 1); exit 1; }; }
1738fi
1739
1740if test -n "$ac_unrecognized_opts"; then
1741 case $enable_option_checking in
1742 no) ;;
1743 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1744 { (exit 1); exit 1; }; } ;;
1745 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1746 esac
1747fi
1748
1749# Check all directory arguments for consistency.
1750for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1751 datadir sysconfdir sharedstatedir localstatedir includedir \
1752 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1753 libdir localedir mandir
1754do
1755 eval ac_val=\$$ac_var
1756 # Remove trailing slashes.
1757 case $ac_val in
1758 */ )
1759 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1760 eval $ac_var=\$ac_val;;
1761 esac
1762 # Be sure to have absolute directory names.
1763 case $ac_val in
1764 [\\/$]* | ?:[\\/]* ) continue;;
1765 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1766 esac
1767 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1768 { (exit 1); exit 1; }; }
1769done
1770
1771# There might be people who depend on the old broken behavior: `$host'
1772# used to hold the argument of --host etc.
1773# FIXME: To remove some day.
1774build=$build_alias
1775host=$host_alias
1776target=$target_alias
1777
1778# FIXME: To remove some day.
1779if test "x$host_alias" != x; then
1780 if test "x$build_alias" = x; then
1781 cross_compiling=maybe
1782 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1783 If a cross compiler is detected then cross compile mode will be used." >&2
1784 elif test "x$build_alias" != "x$host_alias"; then
1785 cross_compiling=yes
1786 fi
1787fi
1788
1789ac_tool_prefix=
1790test -n "$host_alias" && ac_tool_prefix=$host_alias-
1791
1792test "$silent" = yes && exec 6>/dev/null
1793
1794
1795ac_pwd=`pwd` && test -n "$ac_pwd" &&
1796ac_ls_di=`ls -di .` &&
1797ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1798 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1799 { (exit 1); exit 1; }; }
1800test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1801 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1802 { (exit 1); exit 1; }; }
1803
1804
1805# Find the source files, if location was not specified.
1806if test -z "$srcdir"; then
1807 ac_srcdir_defaulted=yes
1808 # Try the directory containing this script, then the parent directory.
1809 ac_confdir=`$as_dirname -- "$as_myself" ||
1810$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1811 X"$as_myself" : 'X\(//\)[^/]' \| \
1812 X"$as_myself" : 'X\(//\)$' \| \
1813 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1814$as_echo X"$as_myself" |
1815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1816 s//\1/
1817 q
1818 }
1819 /^X\(\/\/\)[^/].*/{
1820 s//\1/
1821 q
1822 }
1823 /^X\(\/\/\)$/{
1824 s//\1/
1825 q
1826 }
1827 /^X\(\/\).*/{
1828 s//\1/
1829 q
1830 }
1831 s/.*/./; q'`
1832 srcdir=$ac_confdir
1833 if test ! -r "$srcdir/$ac_unique_file"; then
1834 srcdir=..
1835 fi
1836else
1837 ac_srcdir_defaulted=no
1838fi
1839if test ! -r "$srcdir/$ac_unique_file"; then
1840 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1841 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1842 { (exit 1); exit 1; }; }
1843fi
1844ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1845ac_abs_confdir=`(
1846 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1847 { (exit 1); exit 1; }; }
1848 pwd)`
1849# When building in place, set srcdir=.
1850if test "$ac_abs_confdir" = "$ac_pwd"; then
1851 srcdir=.
1852fi
1853# Remove unnecessary trailing slashes from srcdir.
1854# Double slashes in file names in object file debugging info
1855# mess up M-x gdb in Emacs.
1856case $srcdir in
1857*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1858esac
1859for ac_var in $ac_precious_vars; do
1860 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1861 eval ac_env_${ac_var}_value=\$${ac_var}
1862 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1863 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1864done
1865
1866#
1867# Report the --help message.
1868#
1869if test "$ac_init_help" = "long"; then
1870 # Omit some internal or obsolete options to make the list less imposing.
1871 # This message is too long to be a string in the A/UX 3.1 sh.
1872 cat <<_ACEOF
cristyd934d102009-10-10 12:55:13 +00001873\`configure' configures ImageMagick 6.5.7 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001874
1875Usage: $0 [OPTION]... [VAR=VALUE]...
1876
1877To assign environment variables (e.g., CC, CFLAGS...), specify them as
1878VAR=VALUE. See below for descriptions of some of the useful variables.
1879
1880Defaults for the options are specified in brackets.
1881
1882Configuration:
1883 -h, --help display this help and exit
1884 --help=short display options specific to this package
1885 --help=recursive display the short help of all the included packages
1886 -V, --version display version information and exit
1887 -q, --quiet, --silent do not print \`checking...' messages
1888 --cache-file=FILE cache test results in FILE [disabled]
1889 -C, --config-cache alias for \`--cache-file=config.cache'
1890 -n, --no-create do not create output files
1891 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1892
1893Installation directories:
1894 --prefix=PREFIX install architecture-independent files in PREFIX
1895 [$ac_default_prefix]
1896 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1897 [PREFIX]
1898
1899By default, \`make install' will install all the files in
1900\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1901an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1902for instance \`--prefix=\$HOME'.
1903
1904For better control, use the options below.
1905
1906Fine tuning of the installation directories:
1907 --bindir=DIR user executables [EPREFIX/bin]
1908 --sbindir=DIR system admin executables [EPREFIX/sbin]
1909 --libexecdir=DIR program executables [EPREFIX/libexec]
1910 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1911 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1912 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1913 --libdir=DIR object code libraries [EPREFIX/lib]
1914 --includedir=DIR C header files [PREFIX/include]
1915 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1916 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1917 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1918 --infodir=DIR info documentation [DATAROOTDIR/info]
1919 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1920 --mandir=DIR man documentation [DATAROOTDIR/man]
1921 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1922 --htmldir=DIR html documentation [DOCDIR]
1923 --dvidir=DIR dvi documentation [DOCDIR]
1924 --pdfdir=DIR pdf documentation [DOCDIR]
1925 --psdir=DIR ps documentation [DOCDIR]
1926_ACEOF
1927
1928 cat <<\_ACEOF
1929
1930Program names:
1931 --program-prefix=PREFIX prepend PREFIX to installed program names
1932 --program-suffix=SUFFIX append SUFFIX to installed program names
1933 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1934
1935X features:
1936 --x-includes=DIR X include files are in DIR
1937 --x-libraries=DIR X library files are in DIR
1938
1939System types:
1940 --build=BUILD configure for building on BUILD [guessed]
1941 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1942 --target=TARGET configure for building compilers for TARGET [HOST]
1943_ACEOF
1944fi
1945
1946if test -n "$ac_init_help"; then
1947 case $ac_init_help in
cristyd934d102009-10-10 12:55:13 +00001948 short | recursive ) echo "Configuration of ImageMagick 6.5.7:";;
cristy3ed852e2009-09-05 21:47:34 +00001949 esac
1950 cat <<\_ACEOF
1951
1952Optional Features:
1953 --disable-option-checking ignore unrecognized --enable/--with options
1954 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1955 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1956 --enable-silent-rules less verbose build output (undo: `make V=1')
1957 --disable-silent-rules verbose build output (undo: `make V=0')
1958 --disable-dependency-tracking speeds up one-time build
1959 --enable-dependency-tracking do not reject slow dependency extractors
1960 --bounds-checking enable run-time bounds-checking
1961 --enable-osx-universal-binary
1962 build universal binary on OS X [default=no]
1963 --disable-openmp do not use OpenMP
1964 --disable-largefile omit support for large files
1965 --enable-shared[=PKGS] build shared libraries [default=yes]
1966 --enable-static[=PKGS] build static libraries [default=yes]
1967 --enable-fast-install[=PKGS]
1968 optimize for fast installation [default=yes]
1969 --disable-libtool-lock avoid locking (might break parallel builds)
1970 --enable-ltdl-install install libltdl
1971 --enable-delegate-build look for delegate libraries in build directory
1972 --disable-deprecated exclude deprecated methods in MagickCore and
1973 MagickWand API's
1974 --disable-installed Formally install ImageMagick under PREFIX
1975 --disable-cipher disable enciphering and deciphering image pixels
1976 --enable-embeddable enable self-contained, embeddable,
1977 zero-configuration ImageMagick
1978 --enable-hdri accurately represent the wide range of intensity
1979 levels found in real scenes
1980 --enable-libtool-verbose
1981 enable verbose libtool output
1982 --disable-assert disable assert() statements in build
1983 --enable-maintainer-mode enable make rules and dependencies not useful
1984 (and sometimes confusing) to the casual installer
1985 --enable-ccmalloc enable 'ccmalloc' memory debug support
1986 --enable-efence enable 'efence' memory debug support
1987 --enable-prof enable 'prof' profiling support
1988 --enable-gprof enable 'gprof' profiling support
1989 --enable-gcov enable 'gcov' profiling support
1990
1991Optional Packages:
1992 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1993 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1994 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1995 --without-maximum-compile-warnings
1996 Disable maximum warning verbosity
1997 --with-dmalloc use dmalloc, as in
1998 http://www.dmalloc.com/dmalloc.tar.gz
1999 --without-threads disable threads support
2000 --with-pic try to use only PIC/non-PIC objects [default=use
2001 both]
2002 --with-included-ltdl use the GNU ltdl sources included here
2003 --with-ltdl-include=DIR use the ltdl headers installed in DIR
2004 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
2005 --with-modules enable building dynamically loadable modules
2006 --with-method-prefix=PREFIX
2007 prefix MagickCore API methods
2008 --with-quantum-depth=DEPTH
2009 number of bits in a pixel quantum (default 16)
2010 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
2011 memory)
2012 --with-frozenpaths freeze delegate paths
2013 --without-magick-plus-plus
2014 disable build/install of Magick++
2015 --with-perl enable build/install of PerlMagick
2016 --with-perl-options=OPTIONS
2017 options to pass on command-line when generating
2018 PerlMagick's build file
2019 --with-umem enable umem memory allocation library support
2020 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
2021 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00002022 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00002023 --without-zlib disable ZLIB support
2024 --with-autotrace enable autotrace support
2025 --without-dps disable Display Postscript support
2026 --without-djvu disable DjVu support
2027 --without-fftw disable FFTW support
2028 --without-fpx disable FlashPIX support
2029 --without-fontconfig disable fontconfig support
2030 --without-freetype disable Freetype support
2031 --without-gslib enable Ghostscript library support
2032 --with-fontpath=DIR prepend to default font search path
2033 --with-gs-font-dir=DIR Ghostscript font directory
2034 --without-gvc disable GVC support
2035 --without-jbig disable JBIG support
2036 --without-jpeg disable JPEG support
2037 --without-jp2 disable JPEG-2000 support
2038 --without-lcms disable LCMS support
2039 --without-lqr disable Liquid Rescale support (experimental)
2040 --without-openexr disable OpenEXR support
2041 --without-png disable PNG support
2042 --without-rsvg disable RSVG support
2043 --without-tiff disable TIFF support
2044 --with-windows-font-dir=DIR
2045 directory containing MS-Windows fonts
2046 --without-wmf disable WMF support
2047 --without-xml disable XML support
2048
2049Some influential environment variables:
2050 CC C compiler command
2051 CFLAGS C compiler flags
2052 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2053 nonstandard directory <lib dir>
2054 LIBS libraries to pass to the linker, e.g. -l<library>
2055 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2056 you have headers in a nonstandard directory <include dir>
2057 CPP C preprocessor
2058 CXX C++ compiler command
2059 CXXFLAGS C++ compiler flags
2060 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002061 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002062 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002063 AUTOTRACE_CFLAGS
2064 C compiler flags for AUTOTRACE, overriding pkg-config
2065 AUTOTRACE_LIBS
2066 linker flags for AUTOTRACE, overriding pkg-config
2067 FONTCONFIG_CFLAGS
2068 C compiler flags for FONTCONFIG, overriding pkg-config
2069 FONTCONFIG_LIBS
2070 linker flags for FONTCONFIG, overriding pkg-config
2071 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2072 GVC_LIBS linker flags for GVC, overriding pkg-config
2073 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2074 LQR_LIBS linker flags for LQR, overriding pkg-config
2075 OPENEXR_CFLAGS
2076 C compiler flags for OPENEXR, overriding pkg-config
2077 OPENEXR_LIBS
2078 linker flags for OPENEXR, overriding pkg-config
2079 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2080 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2081 CAIRO_SVG_CFLAGS
2082 C compiler flags for CAIRO_SVG, overriding pkg-config
2083 CAIRO_SVG_LIBS
2084 linker flags for CAIRO_SVG, overriding pkg-config
2085
2086Use these variables to override the choices made by `configure' or to help
2087it to find libraries and programs with nonstandard names/locations.
2088
2089Report bugs to <http://www.imagemagick.org>.
2090_ACEOF
2091ac_status=$?
2092fi
2093
2094if test "$ac_init_help" = "recursive"; then
2095 # If there are subdirs, report their specific --help.
2096 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2097 test -d "$ac_dir" ||
2098 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2099 continue
2100 ac_builddir=.
2101
2102case "$ac_dir" in
2103.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2104*)
2105 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2106 # A ".." for each directory in $ac_dir_suffix.
2107 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2108 case $ac_top_builddir_sub in
2109 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2110 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2111 esac ;;
2112esac
2113ac_abs_top_builddir=$ac_pwd
2114ac_abs_builddir=$ac_pwd$ac_dir_suffix
2115# for backward compatibility:
2116ac_top_builddir=$ac_top_build_prefix
2117
2118case $srcdir in
2119 .) # We are building in place.
2120 ac_srcdir=.
2121 ac_top_srcdir=$ac_top_builddir_sub
2122 ac_abs_top_srcdir=$ac_pwd ;;
2123 [\\/]* | ?:[\\/]* ) # Absolute name.
2124 ac_srcdir=$srcdir$ac_dir_suffix;
2125 ac_top_srcdir=$srcdir
2126 ac_abs_top_srcdir=$srcdir ;;
2127 *) # Relative name.
2128 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2129 ac_top_srcdir=$ac_top_build_prefix$srcdir
2130 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2131esac
2132ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2133
2134 cd "$ac_dir" || { ac_status=$?; continue; }
2135 # Check for guested configure.
2136 if test -f "$ac_srcdir/configure.gnu"; then
2137 echo &&
2138 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2139 elif test -f "$ac_srcdir/configure"; then
2140 echo &&
2141 $SHELL "$ac_srcdir/configure" --help=recursive
2142 else
2143 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2144 fi || ac_status=$?
2145 cd "$ac_pwd" || { ac_status=$?; break; }
2146 done
2147fi
2148
2149test -n "$ac_init_help" && exit $ac_status
2150if $ac_init_version; then
2151 cat <<\_ACEOF
cristyd934d102009-10-10 12:55:13 +00002152ImageMagick configure 6.5.7
cristy3ed852e2009-09-05 21:47:34 +00002153generated by GNU Autoconf 2.63
2154
2155Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
21562002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2157This configure script is free software; the Free Software Foundation
2158gives unlimited permission to copy, distribute and modify it.
2159_ACEOF
2160 exit
2161fi
2162cat >config.log <<_ACEOF
2163This file contains any messages produced by compilers while
2164running configure, to aid debugging if configure makes a mistake.
2165
cristyd934d102009-10-10 12:55:13 +00002166It was created by ImageMagick $as_me 6.5.7, which was
cristy3ed852e2009-09-05 21:47:34 +00002167generated by GNU Autoconf 2.63. Invocation command line was
2168
2169 $ $0 $@
2170
2171_ACEOF
2172exec 5>>config.log
2173{
2174cat <<_ASUNAME
2175## --------- ##
2176## Platform. ##
2177## --------- ##
2178
2179hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2180uname -m = `(uname -m) 2>/dev/null || echo unknown`
2181uname -r = `(uname -r) 2>/dev/null || echo unknown`
2182uname -s = `(uname -s) 2>/dev/null || echo unknown`
2183uname -v = `(uname -v) 2>/dev/null || echo unknown`
2184
2185/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2186/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2187
2188/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2189/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2190/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2191/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2192/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2193/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2194/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2195
2196_ASUNAME
2197
2198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199for as_dir in $PATH
2200do
2201 IFS=$as_save_IFS
2202 test -z "$as_dir" && as_dir=.
2203 $as_echo "PATH: $as_dir"
2204done
2205IFS=$as_save_IFS
2206
2207} >&5
2208
2209cat >&5 <<_ACEOF
2210
2211
2212## ----------- ##
2213## Core tests. ##
2214## ----------- ##
2215
2216_ACEOF
2217
2218
2219# Keep a trace of the command line.
2220# Strip out --no-create and --no-recursion so they do not pile up.
2221# Strip out --silent because we don't want to record it for future runs.
2222# Also quote any args containing shell meta-characters.
2223# Make two passes to allow for proper duplicate-argument suppression.
2224ac_configure_args=
2225ac_configure_args0=
2226ac_configure_args1=
2227ac_must_keep_next=false
2228for ac_pass in 1 2
2229do
2230 for ac_arg
2231 do
2232 case $ac_arg in
2233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235 | -silent | --silent | --silen | --sile | --sil)
2236 continue ;;
2237 *\'*)
2238 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239 esac
2240 case $ac_pass in
2241 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2242 2)
2243 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2244 if test $ac_must_keep_next = true; then
2245 ac_must_keep_next=false # Got value, back to normal.
2246 else
2247 case $ac_arg in
2248 *=* | --config-cache | -C | -disable-* | --disable-* \
2249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251 | -with-* | --with-* | -without-* | --without-* | --x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254 esac
2255 ;;
2256 -* ) ac_must_keep_next=true ;;
2257 esac
2258 fi
2259 ac_configure_args="$ac_configure_args '$ac_arg'"
2260 ;;
2261 esac
2262 done
2263done
2264$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2265$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2266
2267# When interrupted or exit'd, cleanup temporary files, and complete
2268# config.log. We remove comments because anyway the quotes in there
2269# would cause problems or look ugly.
2270# WARNING: Use '\'' to represent an apostrophe within the trap.
2271# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272trap 'exit_status=$?
2273 # Save into config.log some information that might help in debugging.
2274 {
2275 echo
2276
2277 cat <<\_ASBOX
2278## ---------------- ##
2279## Cache variables. ##
2280## ---------------- ##
2281_ASBOX
2282 echo
2283 # The following way of writing the cache mishandles newlines in values,
2284(
2285 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2286 eval ac_val=\$$ac_var
2287 case $ac_val in #(
2288 *${as_nl}*)
2289 case $ac_var in #(
2290 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2291$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2292 esac
2293 case $ac_var in #(
2294 _ | IFS | as_nl) ;; #(
2295 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2296 *) $as_unset $ac_var ;;
2297 esac ;;
2298 esac
2299 done
2300 (set) 2>&1 |
2301 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2302 *${as_nl}ac_space=\ *)
2303 sed -n \
2304 "s/'\''/'\''\\\\'\'''\''/g;
2305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2306 ;; #(
2307 *)
2308 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2309 ;;
2310 esac |
2311 sort
2312)
2313 echo
2314
2315 cat <<\_ASBOX
2316## ----------------- ##
2317## Output variables. ##
2318## ----------------- ##
2319_ASBOX
2320 echo
2321 for ac_var in $ac_subst_vars
2322 do
2323 eval ac_val=\$$ac_var
2324 case $ac_val in
2325 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2326 esac
2327 $as_echo "$ac_var='\''$ac_val'\''"
2328 done | sort
2329 echo
2330
2331 if test -n "$ac_subst_files"; then
2332 cat <<\_ASBOX
2333## ------------------- ##
2334## File substitutions. ##
2335## ------------------- ##
2336_ASBOX
2337 echo
2338 for ac_var in $ac_subst_files
2339 do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2347 fi
2348
2349 if test -s confdefs.h; then
2350 cat <<\_ASBOX
2351## ----------- ##
2352## confdefs.h. ##
2353## ----------- ##
2354_ASBOX
2355 echo
2356 cat confdefs.h
2357 echo
2358 fi
2359 test "$ac_signal" != 0 &&
2360 $as_echo "$as_me: caught signal $ac_signal"
2361 $as_echo "$as_me: exit $exit_status"
2362 } >&5
2363 rm -f core *.core core.conftest.* &&
2364 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2365 exit $exit_status
2366' 0
2367for ac_signal in 1 2 13 15; do
2368 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2369done
2370ac_signal=0
2371
2372# confdefs.h avoids OS command line length limits that DEFS can exceed.
2373rm -f -r conftest* confdefs.h
2374
2375# Predefined preprocessor variables.
2376
2377cat >>confdefs.h <<_ACEOF
2378#define PACKAGE_NAME "$PACKAGE_NAME"
2379_ACEOF
2380
2381
2382cat >>confdefs.h <<_ACEOF
2383#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2384_ACEOF
2385
2386
2387cat >>confdefs.h <<_ACEOF
2388#define PACKAGE_VERSION "$PACKAGE_VERSION"
2389_ACEOF
2390
2391
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_STRING "$PACKAGE_STRING"
2394_ACEOF
2395
2396
2397cat >>confdefs.h <<_ACEOF
2398#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2399_ACEOF
2400
2401
2402# Let the site file select an alternate cache file if it wants to.
2403# Prefer an explicitly selected file to automatically selected ones.
2404ac_site_file1=NONE
2405ac_site_file2=NONE
2406if test -n "$CONFIG_SITE"; then
2407 ac_site_file1=$CONFIG_SITE
2408elif test "x$prefix" != xNONE; then
2409 ac_site_file1=$prefix/share/config.site
2410 ac_site_file2=$prefix/etc/config.site
2411else
2412 ac_site_file1=$ac_default_prefix/share/config.site
2413 ac_site_file2=$ac_default_prefix/etc/config.site
2414fi
2415for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2416do
2417 test "x$ac_site_file" = xNONE && continue
2418 if test -r "$ac_site_file"; then
2419 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2420$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2421 sed 's/^/| /' "$ac_site_file" >&5
2422 . "$ac_site_file"
2423 fi
2424done
2425
2426if test -r "$cache_file"; then
2427 # Some versions of bash will fail to source /dev/null (special
2428 # files actually), so we avoid doing that.
2429 if test -f "$cache_file"; then
2430 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2431$as_echo "$as_me: loading cache $cache_file" >&6;}
2432 case $cache_file in
2433 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2434 *) . "./$cache_file";;
2435 esac
2436 fi
2437else
2438 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2439$as_echo "$as_me: creating cache $cache_file" >&6;}
2440 >$cache_file
2441fi
2442
2443# Check that the precious variables saved in the cache have kept the same
2444# value.
2445ac_cache_corrupted=false
2446for ac_var in $ac_precious_vars; do
2447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2448 eval ac_new_set=\$ac_env_${ac_var}_set
2449 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2450 eval ac_new_val=\$ac_env_${ac_var}_value
2451 case $ac_old_set,$ac_new_set in
2452 set,)
2453 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2454$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2455 ac_cache_corrupted=: ;;
2456 ,set)
2457 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2458$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2459 ac_cache_corrupted=: ;;
2460 ,);;
2461 *)
2462 if test "x$ac_old_val" != "x$ac_new_val"; then
2463 # differences in whitespace do not lead to failure.
2464 ac_old_val_w=`echo x $ac_old_val`
2465 ac_new_val_w=`echo x $ac_new_val`
2466 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2467 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2468$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2469 ac_cache_corrupted=:
2470 else
2471 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2472$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2473 eval $ac_var=\$ac_old_val
2474 fi
2475 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2476$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2477 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2478$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2479 fi;;
2480 esac
2481 # Pass precious variables to config.status.
2482 if test "$ac_new_set" = set; then
2483 case $ac_new_val in
2484 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2485 *) ac_arg=$ac_var=$ac_new_val ;;
2486 esac
2487 case " $ac_configure_args " in
2488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2489 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2490 esac
2491 fi
2492done
2493if $ac_cache_corrupted; then
2494 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2497$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2498 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2499$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2500 { (exit 1); exit 1; }; }
2501fi
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527ac_ext=c
2528ac_cpp='$CPP $CPPFLAGS'
2529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532
2533
2534
2535ac_aux_dir=
2536for ac_dir in config "$srcdir"/config; do
2537 if test -f "$ac_dir/install-sh"; then
2538 ac_aux_dir=$ac_dir
2539 ac_install_sh="$ac_aux_dir/install-sh -c"
2540 break
2541 elif test -f "$ac_dir/install.sh"; then
2542 ac_aux_dir=$ac_dir
2543 ac_install_sh="$ac_aux_dir/install.sh -c"
2544 break
2545 elif test -f "$ac_dir/shtool"; then
2546 ac_aux_dir=$ac_dir
2547 ac_install_sh="$ac_aux_dir/shtool install -c"
2548 break
2549 fi
2550done
2551if test -z "$ac_aux_dir"; then
2552 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2553$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2554 { (exit 1); exit 1; }; }
2555fi
2556
2557# These three variables are undocumented and unsupported,
2558# and are intended to be withdrawn in a future Autoconf release.
2559# They can cause serious problems if a builder's source tree is in a directory
2560# whose full name contains unusual characters.
2561ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2562ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2563ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2564
2565
2566
2567
2568ac_config_headers="$ac_config_headers config/config.h"
2569
2570ac_config_commands="$ac_config_commands magick/magick-config.h"
2571
2572ac_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"
2573
2574
2575#
2576# Save initial user-tunable values
2577#
2578USER_LIBS=$LIBS
2579for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
2580 eval isset=\${$var+set}
2581 if test "$isset" = 'set'; then
2582 eval val=$`echo $var`
2583 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
2584 fi
2585done
2586
2587
2588CONFIGURE_ARGS="$0 ${ac_configure_args}"
2589
2590
2591# Source file containing package/library versioning information.
2592. ${srcdir}/version.sh
2593
2594echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
2595# Make sure we can run config.sub.
2596$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2597 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2598$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2599 { (exit 1); exit 1; }; }
2600
2601{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2602$as_echo_n "checking build system type... " >&6; }
2603if test "${ac_cv_build+set}" = set; then
2604 $as_echo_n "(cached) " >&6
2605else
2606 ac_build_alias=$build_alias
2607test "x$ac_build_alias" = x &&
2608 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2609test "x$ac_build_alias" = x &&
2610 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2611$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2612 { (exit 1); exit 1; }; }
2613ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2614 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2615$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2616 { (exit 1); exit 1; }; }
2617
2618fi
2619{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2620$as_echo "$ac_cv_build" >&6; }
2621case $ac_cv_build in
2622*-*-*) ;;
2623*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2624$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2625 { (exit 1); exit 1; }; };;
2626esac
2627build=$ac_cv_build
2628ac_save_IFS=$IFS; IFS='-'
2629set x $ac_cv_build
2630shift
2631build_cpu=$1
2632build_vendor=$2
2633shift; shift
2634# Remember, the first character of IFS is used to create $*,
2635# except with old shells:
2636build_os=$*
2637IFS=$ac_save_IFS
2638case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2639
2640
2641{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2642$as_echo_n "checking host system type... " >&6; }
2643if test "${ac_cv_host+set}" = set; then
2644 $as_echo_n "(cached) " >&6
2645else
2646 if test "x$host_alias" = x; then
2647 ac_cv_host=$ac_cv_build
2648else
2649 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2650 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2651$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2652 { (exit 1); exit 1; }; }
2653fi
2654
2655fi
2656{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2657$as_echo "$ac_cv_host" >&6; }
2658case $ac_cv_host in
2659*-*-*) ;;
2660*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2661$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2662 { (exit 1); exit 1; }; };;
2663esac
2664host=$ac_cv_host
2665ac_save_IFS=$IFS; IFS='-'
2666set x $ac_cv_host
2667shift
2668host_cpu=$1
2669host_vendor=$2
2670shift; shift
2671# Remember, the first character of IFS is used to create $*,
2672# except with old shells:
2673host_os=$*
2674IFS=$ac_save_IFS
2675case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2676
2677
2678{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2679$as_echo_n "checking target system type... " >&6; }
2680if test "${ac_cv_target+set}" = set; then
2681 $as_echo_n "(cached) " >&6
2682else
2683 if test "x$target_alias" = x; then
2684 ac_cv_target=$ac_cv_host
2685else
2686 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2687 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2688$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2689 { (exit 1); exit 1; }; }
2690fi
2691
2692fi
2693{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2694$as_echo "$ac_cv_target" >&6; }
2695case $ac_cv_target in
2696*-*-*) ;;
2697*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2698$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2699 { (exit 1); exit 1; }; };;
2700esac
2701target=$ac_cv_target
2702ac_save_IFS=$IFS; IFS='-'
2703set x $ac_cv_target
2704shift
2705target_cpu=$1
2706target_vendor=$2
2707shift; shift
2708# Remember, the first character of IFS is used to create $*,
2709# except with old shells:
2710target_os=$*
2711IFS=$ac_save_IFS
2712case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2713
2714
2715# The aliases save the names the user supplied, while $host etc.
2716# will get canonicalized.
2717test -n "$target_alias" &&
2718 test "$program_prefix$program_suffix$program_transform_name" = \
2719 NONENONEs,x,x, &&
2720 program_prefix=${target_alias}-
2721
2722# Substitute library versioning
2723
2724
2725# Ensure that make can run correctly
2726{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2727$as_echo_n "checking whether build environment is sane... " >&6; }
2728# Just in case
2729sleep 1
2730echo timestamp > conftest.file
2731# Reject unsafe characters in $srcdir or the absolute working directory
2732# name. Accept space and tab only in the latter.
2733am_lf='
2734'
2735case `pwd` in
2736 *[\\\"\#\$\&\'\`$am_lf]*)
2737 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2738$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2739 { (exit 1); exit 1; }; };;
2740esac
2741case $srcdir in
2742 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2743 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2744$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2745 { (exit 1); exit 1; }; };;
2746esac
2747
2748# Do `set' in a subshell so we don't clobber the current shell's
2749# arguments. Must try -L first in case configure is actually a
2750# symlink; some systems play weird games with the mod time of symlinks
2751# (eg FreeBSD returns the mod time of the symlink's containing
2752# directory).
2753if (
2754 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2755 if test "$*" = "X"; then
2756 # -L didn't work.
2757 set X `ls -t "$srcdir/configure" conftest.file`
2758 fi
2759 rm -f conftest.file
2760 if test "$*" != "X $srcdir/configure conftest.file" \
2761 && test "$*" != "X conftest.file $srcdir/configure"; then
2762
2763 # If neither matched, then we have a broken ls. This can happen
2764 # if, for instance, CONFIG_SHELL is bash and it inherits a
2765 # broken ls alias from the environment. This has actually
2766 # happened. Such a system could not be considered "sane".
2767 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2768alias in your environment" >&5
2769$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2770alias in your environment" >&2;}
2771 { (exit 1); exit 1; }; }
2772 fi
2773
2774 test "$2" = conftest.file
2775 )
2776then
2777 # Ok.
2778 :
2779else
2780 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2781Check your system clock" >&5
2782$as_echo "$as_me: error: newly created file is older than distributed files!
2783Check your system clock" >&2;}
2784 { (exit 1); exit 1; }; }
2785fi
2786{ $as_echo "$as_me:$LINENO: result: yes" >&5
2787$as_echo "yes" >&6; }
2788
2789am__api_version='1.11'
2790
2791# Find a good install program. We prefer a C program (faster),
2792# so one script is as good as another. But avoid the broken or
2793# incompatible versions:
2794# SysV /etc/install, /usr/sbin/install
2795# SunOS /usr/etc/install
2796# IRIX /sbin/install
2797# AIX /bin/install
2798# AmigaOS /C/install, which installs bootblocks on floppy discs
2799# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2800# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2801# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2802# OS/2's system install, which has a completely different semantic
2803# ./install, which can be erroneously created by make from ./install.sh.
2804# Reject install programs that cannot install multiple files.
2805{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2806$as_echo_n "checking for a BSD-compatible install... " >&6; }
2807if test -z "$INSTALL"; then
2808if test "${ac_cv_path_install+set}" = set; then
2809 $as_echo_n "(cached) " >&6
2810else
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 # Account for people who put trailing slashes in PATH elements.
2817case $as_dir/ in
2818 ./ | .// | /cC/* | \
2819 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2820 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2821 /usr/ucb/* ) ;;
2822 *)
2823 # OSF1 and SCO ODT 3.0 have their own names for install.
2824 # Don't use installbsd from OSF since it installs stuff as root
2825 # by default.
2826 for ac_prog in ginstall scoinst install; do
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2829 if test $ac_prog = install &&
2830 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2831 # AIX install. It has an incompatible calling convention.
2832 :
2833 elif test $ac_prog = install &&
2834 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2835 # program-specific install script used by HP pwplus--don't use.
2836 :
2837 else
2838 rm -rf conftest.one conftest.two conftest.dir
2839 echo one > conftest.one
2840 echo two > conftest.two
2841 mkdir conftest.dir
2842 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2843 test -s conftest.one && test -s conftest.two &&
2844 test -s conftest.dir/conftest.one &&
2845 test -s conftest.dir/conftest.two
2846 then
2847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2848 break 3
2849 fi
2850 fi
2851 fi
2852 done
2853 done
2854 ;;
2855esac
2856
2857done
2858IFS=$as_save_IFS
2859
2860rm -rf conftest.one conftest.two conftest.dir
2861
2862fi
2863 if test "${ac_cv_path_install+set}" = set; then
2864 INSTALL=$ac_cv_path_install
2865 else
2866 # As a last resort, use the slow shell script. Don't cache a
2867 # value for INSTALL within a source directory, because that will
2868 # break other packages using the cache if that directory is
2869 # removed, or if the value is a relative name.
2870 INSTALL=$ac_install_sh
2871 fi
2872fi
2873{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2874$as_echo "$INSTALL" >&6; }
2875
2876# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2877# It thinks the first close brace ends the variable substitution.
2878test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2879
2880test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2881
2882test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2883
2884test "$program_prefix" != NONE &&
2885 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2886# Use a double $ so make ignores it.
2887test "$program_suffix" != NONE &&
2888 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2889# Double any \ or $.
2890# By default was `s,x,x', remove it if useless.
2891ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2892program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2893
2894# expand $ac_aux_dir to an absolute path
2895am_aux_dir=`cd $ac_aux_dir && pwd`
2896
2897if test x"${MISSING+set}" != xset; then
2898 case $am_aux_dir in
2899 *\ * | *\ *)
2900 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2901 *)
2902 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2903 esac
2904fi
2905# Use eval to expand $SHELL
2906if eval "$MISSING --run true"; then
2907 am_missing_run="$MISSING --run "
2908else
2909 am_missing_run=
2910 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2911$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2912fi
2913
2914if test x"${install_sh}" != xset; then
2915 case $am_aux_dir in
2916 *\ * | *\ *)
2917 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2918 *)
2919 install_sh="\${SHELL} $am_aux_dir/install-sh"
2920 esac
2921fi
2922
2923# Installed binaries are usually stripped using `strip' when the user
2924# run `make install-strip'. However `strip' might not be the right
2925# tool to use in cross-compilation environments, therefore Automake
2926# will honor the `STRIP' environment variable to overrule this program.
2927if test "$cross_compiling" != no; then
2928 if test -n "$ac_tool_prefix"; then
2929 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2930set dummy ${ac_tool_prefix}strip; ac_word=$2
2931{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if test "${ac_cv_prog_STRIP+set}" = set; then
2934 $as_echo_n "(cached) " >&6
2935else
2936 if test -n "$STRIP"; then
2937 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2938else
2939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2940for as_dir in $PATH
2941do
2942 IFS=$as_save_IFS
2943 test -z "$as_dir" && as_dir=.
2944 for ac_exec_ext in '' $ac_executable_extensions; do
2945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2946 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2947 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2948 break 2
2949 fi
2950done
2951done
2952IFS=$as_save_IFS
2953
2954fi
2955fi
2956STRIP=$ac_cv_prog_STRIP
2957if test -n "$STRIP"; then
2958 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2959$as_echo "$STRIP" >&6; }
2960else
2961 { $as_echo "$as_me:$LINENO: result: no" >&5
2962$as_echo "no" >&6; }
2963fi
2964
2965
2966fi
2967if test -z "$ac_cv_prog_STRIP"; then
2968 ac_ct_STRIP=$STRIP
2969 # Extract the first word of "strip", so it can be a program name with args.
2970set dummy strip; ac_word=$2
2971{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2972$as_echo_n "checking for $ac_word... " >&6; }
2973if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2974 $as_echo_n "(cached) " >&6
2975else
2976 if test -n "$ac_ct_STRIP"; then
2977 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2978else
2979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
2984 for ac_exec_ext in '' $ac_executable_extensions; do
2985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2986 ac_cv_prog_ac_ct_STRIP="strip"
2987 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2988 break 2
2989 fi
2990done
2991done
2992IFS=$as_save_IFS
2993
2994fi
2995fi
2996ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2997if test -n "$ac_ct_STRIP"; then
2998 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2999$as_echo "$ac_ct_STRIP" >&6; }
3000else
3001 { $as_echo "$as_me:$LINENO: result: no" >&5
3002$as_echo "no" >&6; }
3003fi
3004
3005 if test "x$ac_ct_STRIP" = x; then
3006 STRIP=":"
3007 else
3008 case $cross_compiling:$ac_tool_warned in
3009yes:)
3010{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3011$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3012ac_tool_warned=yes ;;
3013esac
3014 STRIP=$ac_ct_STRIP
3015 fi
3016else
3017 STRIP="$ac_cv_prog_STRIP"
3018fi
3019
3020fi
3021INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3022
3023{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3024$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3025if test -z "$MKDIR_P"; then
3026 if test "${ac_cv_path_mkdir+set}" = set; then
3027 $as_echo_n "(cached) " >&6
3028else
3029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3031do
3032 IFS=$as_save_IFS
3033 test -z "$as_dir" && as_dir=.
3034 for ac_prog in mkdir gmkdir; do
3035 for ac_exec_ext in '' $ac_executable_extensions; do
3036 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3037 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3038 'mkdir (GNU coreutils) '* | \
3039 'mkdir (coreutils) '* | \
3040 'mkdir (fileutils) '4.1*)
3041 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3042 break 3;;
3043 esac
3044 done
3045 done
3046done
3047IFS=$as_save_IFS
3048
3049fi
3050
3051 if test "${ac_cv_path_mkdir+set}" = set; then
3052 MKDIR_P="$ac_cv_path_mkdir -p"
3053 else
3054 # As a last resort, use the slow shell script. Don't cache a
3055 # value for MKDIR_P within a source directory, because that will
3056 # break other packages using the cache if that directory is
3057 # removed, or if the value is a relative name.
3058 test -d ./--version && rmdir ./--version
3059 MKDIR_P="$ac_install_sh -d"
3060 fi
3061fi
3062{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3063$as_echo "$MKDIR_P" >&6; }
3064
3065mkdir_p="$MKDIR_P"
3066case $mkdir_p in
3067 [\\/$]* | ?:[\\/]*) ;;
3068 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3069esac
3070
3071for ac_prog in gawk mawk nawk awk
3072do
3073 # Extract the first word of "$ac_prog", so it can be a program name with args.
3074set dummy $ac_prog; ac_word=$2
3075{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3076$as_echo_n "checking for $ac_word... " >&6; }
3077if test "${ac_cv_prog_AWK+set}" = set; then
3078 $as_echo_n "(cached) " >&6
3079else
3080 if test -n "$AWK"; then
3081 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3082else
3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084for as_dir in $PATH
3085do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_AWK="$ac_prog"
3091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094done
3095done
3096IFS=$as_save_IFS
3097
3098fi
3099fi
3100AWK=$ac_cv_prog_AWK
3101if test -n "$AWK"; then
3102 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3103$as_echo "$AWK" >&6; }
3104else
3105 { $as_echo "$as_me:$LINENO: result: no" >&5
3106$as_echo "no" >&6; }
3107fi
3108
3109
3110 test -n "$AWK" && break
3111done
3112
3113{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3114$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3115set x ${MAKE-make}
3116ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3117if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3118 $as_echo_n "(cached) " >&6
3119else
3120 cat >conftest.make <<\_ACEOF
3121SHELL = /bin/sh
3122all:
3123 @echo '@@@%%%=$(MAKE)=@@@%%%'
3124_ACEOF
3125# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3126case `${MAKE-make} -f conftest.make 2>/dev/null` in
3127 *@@@%%%=?*=@@@%%%*)
3128 eval ac_cv_prog_make_${ac_make}_set=yes;;
3129 *)
3130 eval ac_cv_prog_make_${ac_make}_set=no;;
3131esac
3132rm -f conftest.make
3133fi
3134if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3135 { $as_echo "$as_me:$LINENO: result: yes" >&5
3136$as_echo "yes" >&6; }
3137 SET_MAKE=
3138else
3139 { $as_echo "$as_me:$LINENO: result: no" >&5
3140$as_echo "no" >&6; }
3141 SET_MAKE="MAKE=${MAKE-make}"
3142fi
3143
3144rm -rf .tst 2>/dev/null
3145mkdir .tst 2>/dev/null
3146if test -d .tst; then
3147 am__leading_dot=.
3148else
3149 am__leading_dot=_
3150fi
3151rmdir .tst 2>/dev/null
3152
3153if test "`cd $srcdir && pwd`" != "`pwd`"; then
3154 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3155 # is not polluted with repeated "-I."
3156 am__isrc=' -I$(srcdir)'
3157 # test to see if srcdir already configured
3158 if test -f $srcdir/config.status; then
3159 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3160$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3161 { (exit 1); exit 1; }; }
3162 fi
3163fi
3164
3165# test whether we have cygpath
3166if test -z "$CYGPATH_W"; then
3167 if (cygpath --version) >/dev/null 2>/dev/null; then
3168 CYGPATH_W='cygpath -w'
3169 else
3170 CYGPATH_W=echo
3171 fi
3172fi
3173
3174
3175# Define the identity of the package.
3176 PACKAGE=$PACKAGE_NAME
3177 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3178
3179
3180# Some tools Automake needs.
3181
3182ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3183
3184
3185AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3186
3187
3188AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3189
3190
3191AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3192
3193
3194MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3195
3196# We need awk for the "check" target. The system "awk" is bad on
3197# some platforms.
3198# Always define AMTAR for backward compatibility.
3199
3200AMTAR=${AMTAR-"${am_missing_run}tar"}
3201
3202am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3203
3204
3205
3206
3207
3208
3209# Enable support for silent build rules
3210# Check whether --enable-silent-rules was given.
3211if test "${enable_silent_rules+set}" = set; then
3212 enableval=$enable_silent_rules;
3213fi
3214
3215case $enable_silent_rules in
3216yes) AM_DEFAULT_VERBOSITY=0;;
3217no) AM_DEFAULT_VERBOSITY=1;;
3218*) AM_DEFAULT_VERBOSITY=0;;
3219esac
3220AM_BACKSLASH='\'
3221
3222
3223MAGICK_LIB_VERSION="0x"
3224if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3225 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3226fi
3227MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3228if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3229 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3230fi
3231MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3232if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3233 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3234fi
3235MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3236
3237
3238# Definition used to define MagickLibVersionText in version.h
3239MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3240
3241
3242# Definition used to define MagickLibVersionNumber in version.h
3243MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3244
3245
3246# Regenerate config.status if ChangeLog or version.sh is updated.
3247CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3248
3249
3250PERLMAINCC=$CC
3251
3252MAGICK_CFLAGS=''
3253MAGICK_CPPFLAGS=$CPPFLAGS_USER
3254MAGICK_PCFLAGS=$CPPFLAGS_USER
3255MAGICK_LDFLAGS=''
3256MAGICK_LIBS=''
3257
3258#
3259# Evaluate shell variable equivalents to Makefile directory variables
3260#
3261if test "x$prefix" = xNONE; then
3262 prefix=$ac_default_prefix
3263fi
3264# Let make expand exec_prefix.
3265if test "x$exec_prefix" = xNONE; then
3266 exec_prefix='${prefix}'
3267fi
3268
3269#
3270eval "eval PREFIX_DIR=${prefix}"
3271
3272eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3273
3274eval "eval BIN_DIR=$bindir"
3275
3276eval "eval SBIN_DIR=$sbindir"
3277
3278eval "eval LIBEXEC_DIR=$libexecdir"
3279
3280eval "eval DATA_DIR=$datadir"
3281
3282eval "eval SYSCONF_DIR=$sysconfdir"
3283
3284eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3285
3286eval "eval LOCALSTATE_DIR=$localstatedir"
3287
3288eval "eval LIB_DIR=$libdir"
3289
3290eval "eval INCLUDE_DIR=$includedir"
3291
3292eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3293
3294eval "eval INFO_DIR=$infodir"
3295
3296eval "eval MAN_DIR=$mandir"
3297
3298
3299# Get full paths to source and build directories
3300srcdirfull="`cd $srcdir && pwd`"
3301builddir="`pwd`"
3302
3303#
3304# Compute variables useful for running uninstalled software.
3305#
3306MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3307MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
3308MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
3309MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
3310DIRSEP=':'
3311case "${build_os}" in
3312 mingw* )
3313 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
3314 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
3315 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
3316 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
3317 DIRSEP=';'
3318 ;;
3319esac
3320case "${host_os}" in
3321 mingw* )
3322 DIRSEP=';'
3323 ;;
3324esac
3325
3326
3327
3328
3329
3330
3331# Check for programs
3332ac_ext=c
3333ac_cpp='$CPP $CPPFLAGS'
3334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3339set dummy ${ac_tool_prefix}gcc; ac_word=$2
3340{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3341$as_echo_n "checking for $ac_word... " >&6; }
3342if test "${ac_cv_prog_CC+set}" = set; then
3343 $as_echo_n "(cached) " >&6
3344else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3356 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359done
3360done
3361IFS=$as_save_IFS
3362
3363fi
3364fi
3365CC=$ac_cv_prog_CC
3366if test -n "$CC"; then
3367 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3368$as_echo "$CC" >&6; }
3369else
3370 { $as_echo "$as_me:$LINENO: result: no" >&5
3371$as_echo "no" >&6; }
3372fi
3373
3374
3375fi
3376if test -z "$ac_cv_prog_CC"; then
3377 ac_ct_CC=$CC
3378 # Extract the first word of "gcc", so it can be a program name with args.
3379set dummy gcc; ac_word=$2
3380{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3381$as_echo_n "checking for $ac_word... " >&6; }
3382if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3383 $as_echo_n "(cached) " >&6
3384else
3385 if test -n "$ac_ct_CC"; then
3386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3387else
3388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389for as_dir in $PATH
3390do
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_ac_ct_CC="gcc"
3396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3398 fi
3399done
3400done
3401IFS=$as_save_IFS
3402
3403fi
3404fi
3405ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406if test -n "$ac_ct_CC"; then
3407 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3408$as_echo "$ac_ct_CC" >&6; }
3409else
3410 { $as_echo "$as_me:$LINENO: result: no" >&5
3411$as_echo "no" >&6; }
3412fi
3413
3414 if test "x$ac_ct_CC" = x; then
3415 CC=""
3416 else
3417 case $cross_compiling:$ac_tool_warned in
3418yes:)
3419{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3420$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421ac_tool_warned=yes ;;
3422esac
3423 CC=$ac_ct_CC
3424 fi
3425else
3426 CC="$ac_cv_prog_CC"
3427fi
3428
3429if test -z "$CC"; then
3430 if test -n "$ac_tool_prefix"; then
3431 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3432set dummy ${ac_tool_prefix}cc; ac_word=$2
3433{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3434$as_echo_n "checking for $ac_word... " >&6; }
3435if test "${ac_cv_prog_CC+set}" = set; then
3436 $as_echo_n "(cached) " >&6
3437else
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3440else
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
3446 for ac_exec_ext in '' $ac_executable_extensions; do
3447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448 ac_cv_prog_CC="${ac_tool_prefix}cc"
3449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 break 2
3451 fi
3452done
3453done
3454IFS=$as_save_IFS
3455
3456fi
3457fi
3458CC=$ac_cv_prog_CC
3459if test -n "$CC"; then
3460 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3461$as_echo "$CC" >&6; }
3462else
3463 { $as_echo "$as_me:$LINENO: result: no" >&5
3464$as_echo "no" >&6; }
3465fi
3466
3467
3468 fi
3469fi
3470if test -z "$CC"; then
3471 # Extract the first word of "cc", so it can be a program name with args.
3472set dummy cc; ac_word=$2
3473{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3474$as_echo_n "checking for $ac_word... " >&6; }
3475if test "${ac_cv_prog_CC+set}" = set; then
3476 $as_echo_n "(cached) " >&6
3477else
3478 if test -n "$CC"; then
3479 ac_cv_prog_CC="$CC" # Let the user override the test.
3480else
3481 ac_prog_rejected=no
3482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483for as_dir in $PATH
3484do
3485 IFS=$as_save_IFS
3486 test -z "$as_dir" && as_dir=.
3487 for ac_exec_ext in '' $ac_executable_extensions; do
3488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3490 ac_prog_rejected=yes
3491 continue
3492 fi
3493 ac_cv_prog_CC="cc"
3494 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 break 2
3496 fi
3497done
3498done
3499IFS=$as_save_IFS
3500
3501if test $ac_prog_rejected = yes; then
3502 # We found a bogon in the path, so make sure we never use it.
3503 set dummy $ac_cv_prog_CC
3504 shift
3505 if test $# != 0; then
3506 # We chose a different compiler from the bogus one.
3507 # However, it has the same basename, so the bogon will be chosen
3508 # first if we set CC to just the basename; use the full file name.
3509 shift
3510 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3511 fi
3512fi
3513fi
3514fi
3515CC=$ac_cv_prog_CC
3516if test -n "$CC"; then
3517 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3518$as_echo "$CC" >&6; }
3519else
3520 { $as_echo "$as_me:$LINENO: result: no" >&5
3521$as_echo "no" >&6; }
3522fi
3523
3524
3525fi
3526if test -z "$CC"; then
3527 if test -n "$ac_tool_prefix"; then
3528 for ac_prog in cl.exe
3529 do
3530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3531set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3532{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3533$as_echo_n "checking for $ac_word... " >&6; }
3534if test "${ac_cv_prog_CC+set}" = set; then
3535 $as_echo_n "(cached) " >&6
3536else
3537 if test -n "$CC"; then
3538 ac_cv_prog_CC="$CC" # Let the user override the test.
3539else
3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541for as_dir in $PATH
3542do
3543 IFS=$as_save_IFS
3544 test -z "$as_dir" && as_dir=.
3545 for ac_exec_ext in '' $ac_executable_extensions; do
3546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549 break 2
3550 fi
3551done
3552done
3553IFS=$as_save_IFS
3554
3555fi
3556fi
3557CC=$ac_cv_prog_CC
3558if test -n "$CC"; then
3559 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3560$as_echo "$CC" >&6; }
3561else
3562 { $as_echo "$as_me:$LINENO: result: no" >&5
3563$as_echo "no" >&6; }
3564fi
3565
3566
3567 test -n "$CC" && break
3568 done
3569fi
3570if test -z "$CC"; then
3571 ac_ct_CC=$CC
3572 for ac_prog in cl.exe
3573do
3574 # Extract the first word of "$ac_prog", so it can be a program name with args.
3575set dummy $ac_prog; ac_word=$2
3576{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3577$as_echo_n "checking for $ac_word... " >&6; }
3578if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3579 $as_echo_n "(cached) " >&6
3580else
3581 if test -n "$ac_ct_CC"; then
3582 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3583else
3584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585for as_dir in $PATH
3586do
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591 ac_cv_prog_ac_ct_CC="$ac_prog"
3592 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 break 2
3594 fi
3595done
3596done
3597IFS=$as_save_IFS
3598
3599fi
3600fi
3601ac_ct_CC=$ac_cv_prog_ac_ct_CC
3602if test -n "$ac_ct_CC"; then
3603 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3604$as_echo "$ac_ct_CC" >&6; }
3605else
3606 { $as_echo "$as_me:$LINENO: result: no" >&5
3607$as_echo "no" >&6; }
3608fi
3609
3610
3611 test -n "$ac_ct_CC" && break
3612done
3613
3614 if test "x$ac_ct_CC" = x; then
3615 CC=""
3616 else
3617 case $cross_compiling:$ac_tool_warned in
3618yes:)
3619{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621ac_tool_warned=yes ;;
3622esac
3623 CC=$ac_ct_CC
3624 fi
3625fi
3626
3627fi
3628
3629
3630test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3633See \`config.log' for more details." >&5
3634$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3635See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }; }
3637
3638# Provide some information about the compiler.
3639$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3640set X $ac_compile
3641ac_compiler=$2
3642{ (ac_try="$ac_compiler --version >&5"
3643case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646esac
3647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3648$as_echo "$ac_try_echo") >&5
3649 (eval "$ac_compiler --version >&5") 2>&5
3650 ac_status=$?
3651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }
3653{ (ac_try="$ac_compiler -v >&5"
3654case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657esac
3658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659$as_echo "$ac_try_echo") >&5
3660 (eval "$ac_compiler -v >&5") 2>&5
3661 ac_status=$?
3662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663 (exit $ac_status); }
3664{ (ac_try="$ac_compiler -V >&5"
3665case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668esac
3669eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3670$as_echo "$ac_try_echo") >&5
3671 (eval "$ac_compiler -V >&5") 2>&5
3672 ac_status=$?
3673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }
3675
3676cat >conftest.$ac_ext <<_ACEOF
3677/* confdefs.h. */
3678_ACEOF
3679cat confdefs.h >>conftest.$ac_ext
3680cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h. */
3682
3683int
3684main ()
3685{
3686
3687 ;
3688 return 0;
3689}
3690_ACEOF
3691ac_clean_files_save=$ac_clean_files
3692ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3693# Try to create an executable without -o first, disregard a.out.
3694# It will help us diagnose broken compilers, and finding out an intuition
3695# of exeext.
3696{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3697$as_echo_n "checking for C compiler default output file name... " >&6; }
3698ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3699
3700# The possible output files:
3701ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3702
3703ac_rmfiles=
3704for ac_file in $ac_files
3705do
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3709 esac
3710done
3711rm -f $ac_rmfiles
3712
3713if { (ac_try="$ac_link_default"
3714case "(($ac_try" in
3715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716 *) ac_try_echo=$ac_try;;
3717esac
3718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3719$as_echo "$ac_try_echo") >&5
3720 (eval "$ac_link_default") 2>&5
3721 ac_status=$?
3722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; then
3724 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3725# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3726# in a Makefile. We should not override ac_cv_exeext if it was cached,
3727# so that the user can short-circuit this test for compilers unknown to
3728# Autoconf.
3729for ac_file in $ac_files ''
3730do
3731 test -f "$ac_file" || continue
3732 case $ac_file in
3733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3734 ;;
3735 [ab].out )
3736 # We found the default executable, but exeext='' is most
3737 # certainly right.
3738 break;;
3739 *.* )
3740 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3741 then :; else
3742 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743 fi
3744 # We set ac_cv_exeext here because the later test for it is not
3745 # safe: cross compilers may not add the suffix if given an `-o'
3746 # argument, so we may need to know it at that point already.
3747 # Even if this section looks crufty: it has the advantage of
3748 # actually working.
3749 break;;
3750 * )
3751 break;;
3752 esac
3753done
3754test "$ac_cv_exeext" = no && ac_cv_exeext=
3755
3756else
3757 ac_file=''
3758fi
3759
3760{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3761$as_echo "$ac_file" >&6; }
3762if test -z "$ac_file"; then
3763 $as_echo "$as_me: failed program was:" >&5
3764sed 's/^/| /' conftest.$ac_ext >&5
3765
3766{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3767$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3769See \`config.log' for more details." >&5
3770$as_echo "$as_me: error: C compiler cannot create executables
3771See \`config.log' for more details." >&2;}
3772 { (exit 77); exit 77; }; }; }
3773fi
3774
3775ac_exeext=$ac_cv_exeext
3776
3777# Check that the compiler produces executables we can run. If not, either
3778# the compiler is broken, or we cross compile.
3779{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3780$as_echo_n "checking whether the C compiler works... " >&6; }
3781# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3782# If not cross compiling, check that we can run a simple program.
3783if test "$cross_compiling" != yes; then
3784 if { ac_try='./$ac_file'
3785 { (case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788esac
3789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3790$as_echo "$ac_try_echo") >&5
3791 (eval "$ac_try") 2>&5
3792 ac_status=$?
3793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794 (exit $ac_status); }; }; then
3795 cross_compiling=no
3796 else
3797 if test "$cross_compiling" = maybe; then
3798 cross_compiling=yes
3799 else
3800 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3803If you meant to cross compile, use \`--host'.
3804See \`config.log' for more details." >&5
3805$as_echo "$as_me: error: cannot run C compiled programs.
3806If you meant to cross compile, use \`--host'.
3807See \`config.log' for more details." >&2;}
3808 { (exit 1); exit 1; }; }; }
3809 fi
3810 fi
3811fi
3812{ $as_echo "$as_me:$LINENO: result: yes" >&5
3813$as_echo "yes" >&6; }
3814
3815rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3816ac_clean_files=$ac_clean_files_save
3817# Check that the compiler produces executables we can run. If not, either
3818# the compiler is broken, or we cross compile.
3819{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3820$as_echo_n "checking whether we are cross compiling... " >&6; }
3821{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3822$as_echo "$cross_compiling" >&6; }
3823
3824{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3825$as_echo_n "checking for suffix of executables... " >&6; }
3826if { (ac_try="$ac_link"
3827case "(($ac_try" in
3828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829 *) ac_try_echo=$ac_try;;
3830esac
3831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3832$as_echo "$ac_try_echo") >&5
3833 (eval "$ac_link") 2>&5
3834 ac_status=$?
3835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836 (exit $ac_status); }; then
3837 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3838# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3839# work properly (i.e., refer to `conftest.exe'), while it won't with
3840# `rm'.
3841for ac_file in conftest.exe conftest conftest.*; do
3842 test -f "$ac_file" || continue
3843 case $ac_file in
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3846 break;;
3847 * ) break;;
3848 esac
3849done
3850else
3851 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3854See \`config.log' for more details." >&5
3855$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3856See \`config.log' for more details." >&2;}
3857 { (exit 1); exit 1; }; }; }
3858fi
3859
3860rm -f conftest$ac_cv_exeext
3861{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3862$as_echo "$ac_cv_exeext" >&6; }
3863
3864rm -f conftest.$ac_ext
3865EXEEXT=$ac_cv_exeext
3866ac_exeext=$EXEEXT
3867{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3868$as_echo_n "checking for suffix of object files... " >&6; }
3869if test "${ac_cv_objext+set}" = set; then
3870 $as_echo_n "(cached) " >&6
3871else
3872 cat >conftest.$ac_ext <<_ACEOF
3873/* confdefs.h. */
3874_ACEOF
3875cat confdefs.h >>conftest.$ac_ext
3876cat >>conftest.$ac_ext <<_ACEOF
3877/* end confdefs.h. */
3878
3879int
3880main ()
3881{
3882
3883 ;
3884 return 0;
3885}
3886_ACEOF
3887rm -f conftest.o conftest.obj
3888if { (ac_try="$ac_compile"
3889case "(($ac_try" in
3890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891 *) ac_try_echo=$ac_try;;
3892esac
3893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3894$as_echo "$ac_try_echo") >&5
3895 (eval "$ac_compile") 2>&5
3896 ac_status=$?
3897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; then
3899 for ac_file in conftest.o conftest.obj conftest.*; do
3900 test -f "$ac_file" || continue;
3901 case $ac_file in
3902 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3903 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3904 break;;
3905 esac
3906done
3907else
3908 $as_echo "$as_me: failed program was:" >&5
3909sed 's/^/| /' conftest.$ac_ext >&5
3910
3911{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3914See \`config.log' for more details." >&5
3915$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3916See \`config.log' for more details." >&2;}
3917 { (exit 1); exit 1; }; }; }
3918fi
3919
3920rm -f conftest.$ac_cv_objext conftest.$ac_ext
3921fi
3922{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3923$as_echo "$ac_cv_objext" >&6; }
3924OBJEXT=$ac_cv_objext
3925ac_objext=$OBJEXT
3926{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3927$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3928if test "${ac_cv_c_compiler_gnu+set}" = set; then
3929 $as_echo_n "(cached) " >&6
3930else
3931 cat >conftest.$ac_ext <<_ACEOF
3932/* confdefs.h. */
3933_ACEOF
3934cat confdefs.h >>conftest.$ac_ext
3935cat >>conftest.$ac_ext <<_ACEOF
3936/* end confdefs.h. */
3937
3938int
3939main ()
3940{
3941#ifndef __GNUC__
3942 choke me
3943#endif
3944
3945 ;
3946 return 0;
3947}
3948_ACEOF
3949rm -f conftest.$ac_objext
3950if { (ac_try="$ac_compile"
3951case "(($ac_try" in
3952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953 *) ac_try_echo=$ac_try;;
3954esac
3955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3956$as_echo "$ac_try_echo") >&5
3957 (eval "$ac_compile") 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && {
3964 test -z "$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest.$ac_objext; then
3967 ac_compiler_gnu=yes
3968else
3969 $as_echo "$as_me: failed program was:" >&5
3970sed 's/^/| /' conftest.$ac_ext >&5
3971
3972 ac_compiler_gnu=no
3973fi
3974
3975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976ac_cv_c_compiler_gnu=$ac_compiler_gnu
3977
3978fi
3979{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3980$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3981if test $ac_compiler_gnu = yes; then
3982 GCC=yes
3983else
3984 GCC=
3985fi
3986ac_test_CFLAGS=${CFLAGS+set}
3987ac_save_CFLAGS=$CFLAGS
3988{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3989$as_echo_n "checking whether $CC accepts -g... " >&6; }
3990if test "${ac_cv_prog_cc_g+set}" = set; then
3991 $as_echo_n "(cached) " >&6
3992else
3993 ac_save_c_werror_flag=$ac_c_werror_flag
3994 ac_c_werror_flag=yes
3995 ac_cv_prog_cc_g=no
3996 CFLAGS="-g"
3997 cat >conftest.$ac_ext <<_ACEOF
3998/* confdefs.h. */
3999_ACEOF
4000cat confdefs.h >>conftest.$ac_ext
4001cat >>conftest.$ac_ext <<_ACEOF
4002/* end confdefs.h. */
4003
4004int
4005main ()
4006{
4007
4008 ;
4009 return 0;
4010}
4011_ACEOF
4012rm -f conftest.$ac_objext
4013if { (ac_try="$ac_compile"
4014case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
4018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4019$as_echo "$ac_try_echo") >&5
4020 (eval "$ac_compile") 2>conftest.er1
4021 ac_status=$?
4022 grep -v '^ *+' conftest.er1 >conftest.err
4023 rm -f conftest.er1
4024 cat conftest.err >&5
4025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); } && {
4027 test -z "$ac_c_werror_flag" ||
4028 test ! -s conftest.err
4029 } && test -s conftest.$ac_objext; then
4030 ac_cv_prog_cc_g=yes
4031else
4032 $as_echo "$as_me: failed program was:" >&5
4033sed 's/^/| /' conftest.$ac_ext >&5
4034
4035 CFLAGS=""
4036 cat >conftest.$ac_ext <<_ACEOF
4037/* confdefs.h. */
4038_ACEOF
4039cat confdefs.h >>conftest.$ac_ext
4040cat >>conftest.$ac_ext <<_ACEOF
4041/* end confdefs.h. */
4042
4043int
4044main ()
4045{
4046
4047 ;
4048 return 0;
4049}
4050_ACEOF
4051rm -f conftest.$ac_objext
4052if { (ac_try="$ac_compile"
4053case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4056esac
4057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4058$as_echo "$ac_try_echo") >&5
4059 (eval "$ac_compile") 2>conftest.er1
4060 ac_status=$?
4061 grep -v '^ *+' conftest.er1 >conftest.err
4062 rm -f conftest.er1
4063 cat conftest.err >&5
4064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } && {
4066 test -z "$ac_c_werror_flag" ||
4067 test ! -s conftest.err
4068 } && test -s conftest.$ac_objext; then
4069 :
4070else
4071 $as_echo "$as_me: failed program was:" >&5
4072sed 's/^/| /' conftest.$ac_ext >&5
4073
4074 ac_c_werror_flag=$ac_save_c_werror_flag
4075 CFLAGS="-g"
4076 cat >conftest.$ac_ext <<_ACEOF
4077/* confdefs.h. */
4078_ACEOF
4079cat confdefs.h >>conftest.$ac_ext
4080cat >>conftest.$ac_ext <<_ACEOF
4081/* end confdefs.h. */
4082
4083int
4084main ()
4085{
4086
4087 ;
4088 return 0;
4089}
4090_ACEOF
4091rm -f conftest.$ac_objext
4092if { (ac_try="$ac_compile"
4093case "(($ac_try" in
4094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095 *) ac_try_echo=$ac_try;;
4096esac
4097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4098$as_echo "$ac_try_echo") >&5
4099 (eval "$ac_compile") 2>conftest.er1
4100 ac_status=$?
4101 grep -v '^ *+' conftest.er1 >conftest.err
4102 rm -f conftest.er1
4103 cat conftest.err >&5
4104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); } && {
4106 test -z "$ac_c_werror_flag" ||
4107 test ! -s conftest.err
4108 } && test -s conftest.$ac_objext; then
4109 ac_cv_prog_cc_g=yes
4110else
4111 $as_echo "$as_me: failed program was:" >&5
4112sed 's/^/| /' conftest.$ac_ext >&5
4113
4114
4115fi
4116
4117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118fi
4119
4120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121fi
4122
4123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124 ac_c_werror_flag=$ac_save_c_werror_flag
4125fi
4126{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4127$as_echo "$ac_cv_prog_cc_g" >&6; }
4128if test "$ac_test_CFLAGS" = set; then
4129 CFLAGS=$ac_save_CFLAGS
4130elif test $ac_cv_prog_cc_g = yes; then
4131 if test "$GCC" = yes; then
4132 CFLAGS="-g -O2"
4133 else
4134 CFLAGS="-g"
4135 fi
4136else
4137 if test "$GCC" = yes; then
4138 CFLAGS="-O2"
4139 else
4140 CFLAGS=
4141 fi
4142fi
4143{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4144$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4145if test "${ac_cv_prog_cc_c89+set}" = set; then
4146 $as_echo_n "(cached) " >&6
4147else
4148 ac_cv_prog_cc_c89=no
4149ac_save_CC=$CC
4150cat >conftest.$ac_ext <<_ACEOF
4151/* confdefs.h. */
4152_ACEOF
4153cat confdefs.h >>conftest.$ac_ext
4154cat >>conftest.$ac_ext <<_ACEOF
4155/* end confdefs.h. */
4156#include <stdarg.h>
4157#include <stdio.h>
4158#include <sys/types.h>
4159#include <sys/stat.h>
4160/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4161struct buf { int x; };
4162FILE * (*rcsopen) (struct buf *, struct stat *, int);
4163static char *e (p, i)
4164 char **p;
4165 int i;
4166{
4167 return p[i];
4168}
4169static char *f (char * (*g) (char **, int), char **p, ...)
4170{
4171 char *s;
4172 va_list v;
4173 va_start (v,p);
4174 s = g (p, va_arg (v,int));
4175 va_end (v);
4176 return s;
4177}
4178
4179/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4180 function prototypes and stuff, but not '\xHH' hex character constants.
4181 These don't provoke an error unfortunately, instead are silently treated
4182 as 'x'. The following induces an error, until -std is added to get
4183 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4184 array size at least. It's necessary to write '\x00'==0 to get something
4185 that's true only with -std. */
4186int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4187
4188/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4189 inside strings and character constants. */
4190#define FOO(x) 'x'
4191int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4192
4193int test (int i, double x);
4194struct s1 {int (*f) (int a);};
4195struct s2 {int (*f) (double a);};
4196int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4197int argc;
4198char **argv;
4199int
4200main ()
4201{
4202return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4203 ;
4204 return 0;
4205}
4206_ACEOF
4207for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4208 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209do
4210 CC="$ac_save_CC $ac_arg"
4211 rm -f conftest.$ac_objext
4212if { (ac_try="$ac_compile"
4213case "(($ac_try" in
4214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215 *) ac_try_echo=$ac_try;;
4216esac
4217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218$as_echo "$ac_try_echo") >&5
4219 (eval "$ac_compile") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_c_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest.$ac_objext; then
4229 ac_cv_prog_cc_c89=$ac_arg
4230else
4231 $as_echo "$as_me: failed program was:" >&5
4232sed 's/^/| /' conftest.$ac_ext >&5
4233
4234
4235fi
4236
4237rm -f core conftest.err conftest.$ac_objext
4238 test "x$ac_cv_prog_cc_c89" != "xno" && break
4239done
4240rm -f conftest.$ac_ext
4241CC=$ac_save_CC
4242
4243fi
4244# AC_CACHE_VAL
4245case "x$ac_cv_prog_cc_c89" in
4246 x)
4247 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4248$as_echo "none needed" >&6; } ;;
4249 xno)
4250 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4251$as_echo "unsupported" >&6; } ;;
4252 *)
4253 CC="$CC $ac_cv_prog_cc_c89"
4254 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4255$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4256esac
4257
4258
4259ac_ext=c
4260ac_cpp='$CPP $CPPFLAGS'
4261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264DEPDIR="${am__leading_dot}deps"
4265
4266ac_config_commands="$ac_config_commands depfiles"
4267
4268
4269am_make=${MAKE-make}
4270cat > confinc << 'END'
4271am__doit:
4272 @echo this is the am__doit target
4273.PHONY: am__doit
4274END
4275# If we don't find an include directive, just comment out the code.
4276{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4277$as_echo_n "checking for style of include used by $am_make... " >&6; }
4278am__include="#"
4279am__quote=
4280_am_result=none
4281# First try GNU make style include.
4282echo "include confinc" > confmf
4283# Ignore all kinds of additional output from `make'.
4284case `$am_make -s -f confmf 2> /dev/null` in #(
4285*the\ am__doit\ target*)
4286 am__include=include
4287 am__quote=
4288 _am_result=GNU
4289 ;;
4290esac
4291# Now try BSD make style include.
4292if test "$am__include" = "#"; then
4293 echo '.include "confinc"' > confmf
4294 case `$am_make -s -f confmf 2> /dev/null` in #(
4295 *the\ am__doit\ target*)
4296 am__include=.include
4297 am__quote="\""
4298 _am_result=BSD
4299 ;;
4300 esac
4301fi
4302
4303
4304{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4305$as_echo "$_am_result" >&6; }
4306rm -f confinc confmf
4307
4308# Check whether --enable-dependency-tracking was given.
4309if test "${enable_dependency_tracking+set}" = set; then
4310 enableval=$enable_dependency_tracking;
4311fi
4312
4313if test "x$enable_dependency_tracking" != xno; then
4314 am_depcomp="$ac_aux_dir/depcomp"
4315 AMDEPBACKSLASH='\'
4316fi
4317 if test "x$enable_dependency_tracking" != xno; then
4318 AMDEP_TRUE=
4319 AMDEP_FALSE='#'
4320else
4321 AMDEP_TRUE='#'
4322 AMDEP_FALSE=
4323fi
4324
4325
4326
4327depcc="$CC" am_compiler_list=
4328
4329{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4330$as_echo_n "checking dependency style of $depcc... " >&6; }
4331if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4332 $as_echo_n "(cached) " >&6
4333else
4334 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4335 # We make a subdir and do the tests there. Otherwise we can end up
4336 # making bogus files that we don't know about and never remove. For
4337 # instance it was reported that on HP-UX the gcc test will end up
4338 # making a dummy file named `D' -- because `-MD' means `put the output
4339 # in D'.
4340 mkdir conftest.dir
4341 # Copy depcomp to subdir because otherwise we won't find it if we're
4342 # using a relative directory.
4343 cp "$am_depcomp" conftest.dir
4344 cd conftest.dir
4345 # We will build objects and dependencies in a subdirectory because
4346 # it helps to detect inapplicable dependency modes. For instance
4347 # both Tru64's cc and ICC support -MD to output dependencies as a
4348 # side effect of compilation, but ICC will put the dependencies in
4349 # the current directory while Tru64 will put them in the object
4350 # directory.
4351 mkdir sub
4352
4353 am_cv_CC_dependencies_compiler_type=none
4354 if test "$am_compiler_list" = ""; then
4355 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4356 fi
4357 am__universal=false
4358 case " $depcc " in #(
4359 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4360 esac
4361
4362 for depmode in $am_compiler_list; do
4363 # Setup a source with many dependencies, because some compilers
4364 # like to wrap large dependency lists on column 80 (with \), and
4365 # we should not choose a depcomp mode which is confused by this.
4366 #
4367 # We need to recreate these files for each test, as the compiler may
4368 # overwrite some of them when testing with obscure command lines.
4369 # This happens at least with the AIX C compiler.
4370 : > sub/conftest.c
4371 for i in 1 2 3 4 5 6; do
4372 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4373 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4374 # Solaris 8's {/usr,}/bin/sh.
4375 touch sub/conftst$i.h
4376 done
4377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4378
4379 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4380 # mode. It turns out that the SunPro C++ compiler does not properly
4381 # handle `-M -o', and we need to detect this. Also, some Intel
4382 # versions had trouble with output in subdirs
4383 am__obj=sub/conftest.${OBJEXT-o}
4384 am__minus_obj="-o $am__obj"
4385 case $depmode in
4386 gcc)
4387 # This depmode causes a compiler race in universal mode.
4388 test "$am__universal" = false || continue
4389 ;;
4390 nosideeffect)
4391 # after this tag, mechanisms are not by side-effect, so they'll
4392 # only be used when explicitly requested
4393 if test "x$enable_dependency_tracking" = xyes; then
4394 continue
4395 else
4396 break
4397 fi
4398 ;;
4399 msvisualcpp | msvcmsys)
4400 # This compiler won't grok `-c -o', but also, the minuso test has
4401 # not run yet. These depmodes are late enough in the game, and
4402 # so weak that their functioning should not be impacted.
4403 am__obj=conftest.${OBJEXT-o}
4404 am__minus_obj=
4405 ;;
4406 none) break ;;
4407 esac
4408 if depmode=$depmode \
4409 source=sub/conftest.c object=$am__obj \
4410 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4411 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4412 >/dev/null 2>conftest.err &&
4413 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4415 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4417 # icc doesn't choke on unknown options, it will just issue warnings
4418 # or remarks (even with -Werror). So we grep stderr for any message
4419 # that says an option was ignored or not supported.
4420 # When given -MP, icc 7.0 and 7.1 complain thusly:
4421 # icc: Command line warning: ignoring option '-M'; no argument required
4422 # The diagnosis changed in icc 8.0:
4423 # icc: Command line remark: option '-MP' not supported
4424 if (grep 'ignoring option' conftest.err ||
4425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4426 am_cv_CC_dependencies_compiler_type=$depmode
4427 break
4428 fi
4429 fi
4430 done
4431
4432 cd ..
4433 rm -rf conftest.dir
4434else
4435 am_cv_CC_dependencies_compiler_type=none
4436fi
4437
4438fi
4439{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4440$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4441CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4442
4443 if
4444 test "x$enable_dependency_tracking" != xno \
4445 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4446 am__fastdepCC_TRUE=
4447 am__fastdepCC_FALSE='#'
4448else
4449 am__fastdepCC_TRUE='#'
4450 am__fastdepCC_FALSE=
4451fi
4452
4453
4454 case $ac_cv_prog_cc_stdc in
4455 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
4456 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4457$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4458if test "${ac_cv_prog_cc_c99+set}" = set; then
4459 $as_echo_n "(cached) " >&6
4460else
4461 ac_cv_prog_cc_c99=no
4462ac_save_CC=$CC
4463cat >conftest.$ac_ext <<_ACEOF
4464/* confdefs.h. */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h. */
4469#include <stdarg.h>
4470#include <stdbool.h>
4471#include <stdlib.h>
4472#include <wchar.h>
4473#include <stdio.h>
4474
4475// Check varargs macros. These examples are taken from C99 6.10.3.5.
4476#define debug(...) fprintf (stderr, __VA_ARGS__)
4477#define showlist(...) puts (#__VA_ARGS__)
4478#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4479static void
4480test_varargs_macros (void)
4481{
4482 int x = 1234;
4483 int y = 5678;
4484 debug ("Flag");
4485 debug ("X = %d\n", x);
4486 showlist (The first, second, and third items.);
4487 report (x>y, "x is %d but y is %d", x, y);
4488}
4489
4490// Check long long types.
4491#define BIG64 18446744073709551615ull
4492#define BIG32 4294967295ul
4493#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4494#if !BIG_OK
4495 your preprocessor is broken;
4496#endif
4497#if BIG_OK
4498#else
4499 your preprocessor is broken;
4500#endif
4501static long long int bignum = -9223372036854775807LL;
4502static unsigned long long int ubignum = BIG64;
4503
4504struct incomplete_array
4505{
4506 int datasize;
4507 double data[];
4508};
4509
4510struct named_init {
4511 int number;
4512 const wchar_t *name;
4513 double average;
4514};
4515
4516typedef const char *ccp;
4517
4518static inline int
4519test_restrict (ccp restrict text)
4520{
4521 // See if C++-style comments work.
4522 // Iterate through items via the restricted pointer.
4523 // Also check for declarations in for loops.
4524 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4525 continue;
4526 return 0;
4527}
4528
4529// Check varargs and va_copy.
4530static void
4531test_varargs (const char *format, ...)
4532{
4533 va_list args;
4534 va_start (args, format);
4535 va_list args_copy;
4536 va_copy (args_copy, args);
4537
4538 const char *str;
4539 int number;
4540 float fnumber;
4541
4542 while (*format)
4543 {
4544 switch (*format++)
4545 {
4546 case 's': // string
4547 str = va_arg (args_copy, const char *);
4548 break;
4549 case 'd': // int
4550 number = va_arg (args_copy, int);
4551 break;
4552 case 'f': // float
4553 fnumber = va_arg (args_copy, double);
4554 break;
4555 default:
4556 break;
4557 }
4558 }
4559 va_end (args_copy);
4560 va_end (args);
4561}
4562
4563int
4564main ()
4565{
4566
4567 // Check bool.
4568 _Bool success = false;
4569
4570 // Check restrict.
4571 if (test_restrict ("String literal") == 0)
4572 success = true;
4573 char *restrict newvar = "Another string";
4574
4575 // Check varargs.
4576 test_varargs ("s, d' f .", "string", 65, 34.234);
4577 test_varargs_macros ();
4578
4579 // Check flexible array members.
4580 struct incomplete_array *ia =
4581 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4582 ia->datasize = 10;
4583 for (int i = 0; i < ia->datasize; ++i)
4584 ia->data[i] = i * 1.234;
4585
4586 // Check named initializers.
4587 struct named_init ni = {
4588 .number = 34,
4589 .name = L"Test wide string",
4590 .average = 543.34343,
4591 };
4592
4593 ni.number = 58;
4594
4595 int dynamic_array[ni.number];
4596 dynamic_array[ni.number - 1] = 543;
4597
4598 // work around unused variable warnings
4599 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4600 || dynamic_array[ni.number - 1] != 543);
4601
4602 ;
4603 return 0;
4604}
4605_ACEOF
4606for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4607do
4608 CC="$ac_save_CC $ac_arg"
4609 rm -f conftest.$ac_objext
4610if { (ac_try="$ac_compile"
4611case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614esac
4615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4616$as_echo "$ac_try_echo") >&5
4617 (eval "$ac_compile") 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } && {
4624 test -z "$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4626 } && test -s conftest.$ac_objext; then
4627 ac_cv_prog_cc_c99=$ac_arg
4628else
4629 $as_echo "$as_me: failed program was:" >&5
4630sed 's/^/| /' conftest.$ac_ext >&5
4631
4632
4633fi
4634
4635rm -f core conftest.err conftest.$ac_objext
4636 test "x$ac_cv_prog_cc_c99" != "xno" && break
4637done
4638rm -f conftest.$ac_ext
4639CC=$ac_save_CC
4640
4641fi
4642# AC_CACHE_VAL
4643case "x$ac_cv_prog_cc_c99" in
4644 x)
4645 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4646$as_echo "none needed" >&6; } ;;
4647 xno)
4648 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4649$as_echo "unsupported" >&6; } ;;
4650 *)
4651 CC="$CC $ac_cv_prog_cc_c99"
4652 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4653$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4654esac
4655if test "x$ac_cv_prog_cc_c99" != xno; then
4656 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4657else
4658 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4659$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4660if test "${ac_cv_prog_cc_c89+set}" = set; then
4661 $as_echo_n "(cached) " >&6
4662else
4663 ac_cv_prog_cc_c89=no
4664ac_save_CC=$CC
4665cat >conftest.$ac_ext <<_ACEOF
4666/* confdefs.h. */
4667_ACEOF
4668cat confdefs.h >>conftest.$ac_ext
4669cat >>conftest.$ac_ext <<_ACEOF
4670/* end confdefs.h. */
4671#include <stdarg.h>
4672#include <stdio.h>
4673#include <sys/types.h>
4674#include <sys/stat.h>
4675/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4676struct buf { int x; };
4677FILE * (*rcsopen) (struct buf *, struct stat *, int);
4678static char *e (p, i)
4679 char **p;
4680 int i;
4681{
4682 return p[i];
4683}
4684static char *f (char * (*g) (char **, int), char **p, ...)
4685{
4686 char *s;
4687 va_list v;
4688 va_start (v,p);
4689 s = g (p, va_arg (v,int));
4690 va_end (v);
4691 return s;
4692}
4693
4694/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4695 function prototypes and stuff, but not '\xHH' hex character constants.
4696 These don't provoke an error unfortunately, instead are silently treated
4697 as 'x'. The following induces an error, until -std is added to get
4698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4699 array size at least. It's necessary to write '\x00'==0 to get something
4700 that's true only with -std. */
4701int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4702
4703/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4704 inside strings and character constants. */
4705#define FOO(x) 'x'
4706int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4707
4708int test (int i, double x);
4709struct s1 {int (*f) (int a);};
4710struct s2 {int (*f) (double a);};
4711int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4712int argc;
4713char **argv;
4714int
4715main ()
4716{
4717return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4718 ;
4719 return 0;
4720}
4721_ACEOF
4722for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4723 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4724do
4725 CC="$ac_save_CC $ac_arg"
4726 rm -f conftest.$ac_objext
4727if { (ac_try="$ac_compile"
4728case "(($ac_try" in
4729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4730 *) ac_try_echo=$ac_try;;
4731esac
4732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4733$as_echo "$ac_try_echo") >&5
4734 (eval "$ac_compile") 2>conftest.er1
4735 ac_status=$?
4736 grep -v '^ *+' conftest.er1 >conftest.err
4737 rm -f conftest.er1
4738 cat conftest.err >&5
4739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } && {
4741 test -z "$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4743 } && test -s conftest.$ac_objext; then
4744 ac_cv_prog_cc_c89=$ac_arg
4745else
4746 $as_echo "$as_me: failed program was:" >&5
4747sed 's/^/| /' conftest.$ac_ext >&5
4748
4749
4750fi
4751
4752rm -f core conftest.err conftest.$ac_objext
4753 test "x$ac_cv_prog_cc_c89" != "xno" && break
4754done
4755rm -f conftest.$ac_ext
4756CC=$ac_save_CC
4757
4758fi
4759# AC_CACHE_VAL
4760case "x$ac_cv_prog_cc_c89" in
4761 x)
4762 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4763$as_echo "none needed" >&6; } ;;
4764 xno)
4765 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4766$as_echo "unsupported" >&6; } ;;
4767 *)
4768 CC="$CC $ac_cv_prog_cc_c89"
4769 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4770$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4771esac
4772if test "x$ac_cv_prog_cc_c89" != xno; then
4773 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4774else
4775 ac_cv_prog_cc_stdc=no
4776fi
4777
4778
4779fi
4780
4781 ;;
4782esac
4783 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4784$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4785 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4786 $as_echo_n "(cached) " >&6
4787fi
4788
4789 case $ac_cv_prog_cc_stdc in
4790 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4791$as_echo "unsupported" >&6; } ;;
4792 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4793$as_echo "none needed" >&6; } ;;
4794 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4795$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4796esac
4797
4798
4799ac_ext=c
4800ac_cpp='$CPP $CPPFLAGS'
4801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4803ac_compiler_gnu=$ac_cv_c_compiler_gnu
4804{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4805$as_echo_n "checking how to run the C preprocessor... " >&6; }
4806# On Suns, sometimes $CPP names a directory.
4807if test -n "$CPP" && test -d "$CPP"; then
4808 CPP=
4809fi
4810if test -z "$CPP"; then
4811 if test "${ac_cv_prog_CPP+set}" = set; then
4812 $as_echo_n "(cached) " >&6
4813else
4814 # Double quotes because CPP needs to be expanded
4815 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4816 do
4817 ac_preproc_ok=false
4818for ac_c_preproc_warn_flag in '' yes
4819do
4820 # Use a header file that comes with gcc, so configuring glibc
4821 # with a fresh cross-compiler works.
4822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4823 # <limits.h> exists even on freestanding compilers.
4824 # On the NeXT, cc -E runs the code through the compiler's parser,
4825 # not just through cpp. "Syntax error" is here to catch this case.
4826 cat >conftest.$ac_ext <<_ACEOF
4827/* confdefs.h. */
4828_ACEOF
4829cat confdefs.h >>conftest.$ac_ext
4830cat >>conftest.$ac_ext <<_ACEOF
4831/* end confdefs.h. */
4832#ifdef __STDC__
4833# include <limits.h>
4834#else
4835# include <assert.h>
4836#endif
4837 Syntax error
4838_ACEOF
4839if { (ac_try="$ac_cpp conftest.$ac_ext"
4840case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843esac
4844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4845$as_echo "$ac_try_echo") >&5
4846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4847 ac_status=$?
4848 grep -v '^ *+' conftest.er1 >conftest.err
4849 rm -f conftest.er1
4850 cat conftest.err >&5
4851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852 (exit $ac_status); } >/dev/null && {
4853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4854 test ! -s conftest.err
4855 }; then
4856 :
4857else
4858 $as_echo "$as_me: failed program was:" >&5
4859sed 's/^/| /' conftest.$ac_ext >&5
4860
4861 # Broken: fails on valid input.
4862continue
4863fi
4864
4865rm -f conftest.err conftest.$ac_ext
4866
4867 # OK, works on sane cases. Now check whether nonexistent headers
4868 # can be detected and how.
4869 cat >conftest.$ac_ext <<_ACEOF
4870/* confdefs.h. */
4871_ACEOF
4872cat confdefs.h >>conftest.$ac_ext
4873cat >>conftest.$ac_ext <<_ACEOF
4874/* end confdefs.h. */
4875#include <ac_nonexistent.h>
4876_ACEOF
4877if { (ac_try="$ac_cpp conftest.$ac_ext"
4878case "(($ac_try" in
4879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880 *) ac_try_echo=$ac_try;;
4881esac
4882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4883$as_echo "$ac_try_echo") >&5
4884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } >/dev/null && {
4891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4892 test ! -s conftest.err
4893 }; then
4894 # Broken: success on invalid input.
4895continue
4896else
4897 $as_echo "$as_me: failed program was:" >&5
4898sed 's/^/| /' conftest.$ac_ext >&5
4899
4900 # Passes both tests.
4901ac_preproc_ok=:
4902break
4903fi
4904
4905rm -f conftest.err conftest.$ac_ext
4906
4907done
4908# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4909rm -f conftest.err conftest.$ac_ext
4910if $ac_preproc_ok; then
4911 break
4912fi
4913
4914 done
4915 ac_cv_prog_CPP=$CPP
4916
4917fi
4918 CPP=$ac_cv_prog_CPP
4919else
4920 ac_cv_prog_CPP=$CPP
4921fi
4922{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4923$as_echo "$CPP" >&6; }
4924ac_preproc_ok=false
4925for ac_c_preproc_warn_flag in '' yes
4926do
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat >conftest.$ac_ext <<_ACEOF
4934/* confdefs.h. */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h. */
4939#ifdef __STDC__
4940# include <limits.h>
4941#else
4942# include <assert.h>
4943#endif
4944 Syntax error
4945_ACEOF
4946if { (ac_try="$ac_cpp conftest.$ac_ext"
4947case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950esac
4951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4952$as_echo "$ac_try_echo") >&5
4953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4954 ac_status=$?
4955 grep -v '^ *+' conftest.er1 >conftest.err
4956 rm -f conftest.er1
4957 cat conftest.err >&5
4958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } >/dev/null && {
4960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4961 test ! -s conftest.err
4962 }; then
4963 :
4964else
4965 $as_echo "$as_me: failed program was:" >&5
4966sed 's/^/| /' conftest.$ac_ext >&5
4967
4968 # Broken: fails on valid input.
4969continue
4970fi
4971
4972rm -f conftest.err conftest.$ac_ext
4973
4974 # OK, works on sane cases. Now check whether nonexistent headers
4975 # can be detected and how.
4976 cat >conftest.$ac_ext <<_ACEOF
4977/* confdefs.h. */
4978_ACEOF
4979cat confdefs.h >>conftest.$ac_ext
4980cat >>conftest.$ac_ext <<_ACEOF
4981/* end confdefs.h. */
4982#include <ac_nonexistent.h>
4983_ACEOF
4984if { (ac_try="$ac_cpp conftest.$ac_ext"
4985case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988esac
4989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990$as_echo "$ac_try_echo") >&5
4991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } >/dev/null && {
4998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 }; then
5001 # Broken: success on invalid input.
5002continue
5003else
5004 $as_echo "$as_me: failed program was:" >&5
5005sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 # Passes both tests.
5008ac_preproc_ok=:
5009break
5010fi
5011
5012rm -f conftest.err conftest.$ac_ext
5013
5014done
5015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5016rm -f conftest.err conftest.$ac_ext
5017if $ac_preproc_ok; then
5018 :
5019else
5020 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5022{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5023See \`config.log' for more details." >&5
5024$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5025See \`config.log' for more details." >&2;}
5026 { (exit 1); exit 1; }; }; }
5027fi
5028
5029ac_ext=c
5030ac_cpp='$CPP $CPPFLAGS'
5031ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034
5035{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5036$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5037if test "${ac_cv_path_SED+set}" = set; then
5038 $as_echo_n "(cached) " >&6
5039else
5040 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5041 for ac_i in 1 2 3 4 5 6 7; do
5042 ac_script="$ac_script$as_nl$ac_script"
5043 done
5044 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5045 $as_unset ac_script || ac_script=
5046 if test -z "$SED"; then
5047 ac_path_SED_found=false
5048 # Loop through the user's path and test for each of PROGNAME-LIST
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5050for as_dir in $PATH
5051do
5052 IFS=$as_save_IFS
5053 test -z "$as_dir" && as_dir=.
5054 for ac_prog in sed gsed; do
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5057 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5058# Check for GNU ac_path_SED and select it if it is found.
5059 # Check for GNU $ac_path_SED
5060case `"$ac_path_SED" --version 2>&1` in
5061*GNU*)
5062 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5063*)
5064 ac_count=0
5065 $as_echo_n 0123456789 >"conftest.in"
5066 while :
5067 do
5068 cat "conftest.in" "conftest.in" >"conftest.tmp"
5069 mv "conftest.tmp" "conftest.in"
5070 cp "conftest.in" "conftest.nl"
5071 $as_echo '' >> "conftest.nl"
5072 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5074 ac_count=`expr $ac_count + 1`
5075 if test $ac_count -gt ${ac_path_SED_max-0}; then
5076 # Best one so far, save it but keep looking for a better one
5077 ac_cv_path_SED="$ac_path_SED"
5078 ac_path_SED_max=$ac_count
5079 fi
5080 # 10*(2^10) chars as input seems more than enough
5081 test $ac_count -gt 10 && break
5082 done
5083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5084esac
5085
5086 $ac_path_SED_found && break 3
5087 done
5088 done
5089done
5090IFS=$as_save_IFS
5091 if test -z "$ac_cv_path_SED"; then
5092 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5093$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5094 { (exit 1); exit 1; }; }
5095 fi
5096else
5097 ac_cv_path_SED=$SED
5098fi
5099
5100fi
5101{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5102$as_echo "$ac_cv_path_SED" >&6; }
5103 SED="$ac_cv_path_SED"
5104 rm -f conftest.sed
5105
5106test -z "$SED" && SED=sed
5107Xsed="$SED -e 1s/^X//"
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5120$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5121if test "${ac_cv_path_GREP+set}" = set; then
5122 $as_echo_n "(cached) " >&6
5123else
5124 if test -z "$GREP"; then
5125 ac_path_GREP_found=false
5126 # Loop through the user's path and test for each of PROGNAME-LIST
5127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5128for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5129do
5130 IFS=$as_save_IFS
5131 test -z "$as_dir" && as_dir=.
5132 for ac_prog in grep ggrep; do
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5135 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5136# Check for GNU ac_path_GREP and select it if it is found.
5137 # Check for GNU $ac_path_GREP
5138case `"$ac_path_GREP" --version 2>&1` in
5139*GNU*)
5140 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5141*)
5142 ac_count=0
5143 $as_echo_n 0123456789 >"conftest.in"
5144 while :
5145 do
5146 cat "conftest.in" "conftest.in" >"conftest.tmp"
5147 mv "conftest.tmp" "conftest.in"
5148 cp "conftest.in" "conftest.nl"
5149 $as_echo 'GREP' >> "conftest.nl"
5150 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5152 ac_count=`expr $ac_count + 1`
5153 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5154 # Best one so far, save it but keep looking for a better one
5155 ac_cv_path_GREP="$ac_path_GREP"
5156 ac_path_GREP_max=$ac_count
5157 fi
5158 # 10*(2^10) chars as input seems more than enough
5159 test $ac_count -gt 10 && break
5160 done
5161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5162esac
5163
5164 $ac_path_GREP_found && break 3
5165 done
5166 done
5167done
5168IFS=$as_save_IFS
5169 if test -z "$ac_cv_path_GREP"; then
5170 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5171$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5172 { (exit 1); exit 1; }; }
5173 fi
5174else
5175 ac_cv_path_GREP=$GREP
5176fi
5177
5178fi
5179{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5180$as_echo "$ac_cv_path_GREP" >&6; }
5181 GREP="$ac_cv_path_GREP"
5182
5183
5184{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5185$as_echo_n "checking for egrep... " >&6; }
5186if test "${ac_cv_path_EGREP+set}" = set; then
5187 $as_echo_n "(cached) " >&6
5188else
5189 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5190 then ac_cv_path_EGREP="$GREP -E"
5191 else
5192 if test -z "$EGREP"; then
5193 ac_path_EGREP_found=false
5194 # Loop through the user's path and test for each of PROGNAME-LIST
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5197do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_prog in egrep; do
5201 for ac_exec_ext in '' $ac_executable_extensions; do
5202 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5203 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5204# Check for GNU ac_path_EGREP and select it if it is found.
5205 # Check for GNU $ac_path_EGREP
5206case `"$ac_path_EGREP" --version 2>&1` in
5207*GNU*)
5208 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5209*)
5210 ac_count=0
5211 $as_echo_n 0123456789 >"conftest.in"
5212 while :
5213 do
5214 cat "conftest.in" "conftest.in" >"conftest.tmp"
5215 mv "conftest.tmp" "conftest.in"
5216 cp "conftest.in" "conftest.nl"
5217 $as_echo 'EGREP' >> "conftest.nl"
5218 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5219 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5220 ac_count=`expr $ac_count + 1`
5221 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5222 # Best one so far, save it but keep looking for a better one
5223 ac_cv_path_EGREP="$ac_path_EGREP"
5224 ac_path_EGREP_max=$ac_count
5225 fi
5226 # 10*(2^10) chars as input seems more than enough
5227 test $ac_count -gt 10 && break
5228 done
5229 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5230esac
5231
5232 $ac_path_EGREP_found && break 3
5233 done
5234 done
5235done
5236IFS=$as_save_IFS
5237 if test -z "$ac_cv_path_EGREP"; then
5238 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5239$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5240 { (exit 1); exit 1; }; }
5241 fi
5242else
5243 ac_cv_path_EGREP=$EGREP
5244fi
5245
5246 fi
5247fi
5248{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5249$as_echo "$ac_cv_path_EGREP" >&6; }
5250 EGREP="$ac_cv_path_EGREP"
5251
5252
5253{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5254$as_echo_n "checking for fgrep... " >&6; }
5255if test "${ac_cv_path_FGREP+set}" = set; then
5256 $as_echo_n "(cached) " >&6
5257else
5258 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5259 then ac_cv_path_FGREP="$GREP -F"
5260 else
5261 if test -z "$FGREP"; then
5262 ac_path_FGREP_found=false
5263 # Loop through the user's path and test for each of PROGNAME-LIST
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5266do
5267 IFS=$as_save_IFS
5268 test -z "$as_dir" && as_dir=.
5269 for ac_prog in fgrep; do
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5272 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5273# Check for GNU ac_path_FGREP and select it if it is found.
5274 # Check for GNU $ac_path_FGREP
5275case `"$ac_path_FGREP" --version 2>&1` in
5276*GNU*)
5277 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5278*)
5279 ac_count=0
5280 $as_echo_n 0123456789 >"conftest.in"
5281 while :
5282 do
5283 cat "conftest.in" "conftest.in" >"conftest.tmp"
5284 mv "conftest.tmp" "conftest.in"
5285 cp "conftest.in" "conftest.nl"
5286 $as_echo 'FGREP' >> "conftest.nl"
5287 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5288 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5289 ac_count=`expr $ac_count + 1`
5290 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5291 # Best one so far, save it but keep looking for a better one
5292 ac_cv_path_FGREP="$ac_path_FGREP"
5293 ac_path_FGREP_max=$ac_count
5294 fi
5295 # 10*(2^10) chars as input seems more than enough
5296 test $ac_count -gt 10 && break
5297 done
5298 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5299esac
5300
5301 $ac_path_FGREP_found && break 3
5302 done
5303 done
5304done
5305IFS=$as_save_IFS
5306 if test -z "$ac_cv_path_FGREP"; then
5307 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5308$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5309 { (exit 1); exit 1; }; }
5310 fi
5311else
5312 ac_cv_path_FGREP=$FGREP
5313fi
5314
5315 fi
5316fi
5317{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5318$as_echo "$ac_cv_path_FGREP" >&6; }
5319 FGREP="$ac_cv_path_FGREP"
5320
5321
5322test -z "$GREP" && GREP=grep
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342# Check whether --with-gnu-ld was given.
5343if test "${with_gnu_ld+set}" = set; then
5344 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5345else
5346 with_gnu_ld=no
5347fi
5348
5349ac_prog=ld
5350if test "$GCC" = yes; then
5351 # Check if gcc -print-prog-name=ld gives a path.
5352 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5353$as_echo_n "checking for ld used by $CC... " >&6; }
5354 case $host in
5355 *-*-mingw*)
5356 # gcc leaves a trailing carriage return which upsets mingw
5357 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5358 *)
5359 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5360 esac
5361 case $ac_prog in
5362 # Accept absolute paths.
5363 [\\/]* | ?:[\\/]*)
5364 re_direlt='/[^/][^/]*/\.\./'
5365 # Canonicalize the pathname of ld
5366 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5367 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5368 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5369 done
5370 test -z "$LD" && LD="$ac_prog"
5371 ;;
5372 "")
5373 # If it fails, then pretend we aren't using GCC.
5374 ac_prog=ld
5375 ;;
5376 *)
5377 # If it is relative, then search for the first ld in PATH.
5378 with_gnu_ld=unknown
5379 ;;
5380 esac
5381elif test "$with_gnu_ld" = yes; then
5382 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5383$as_echo_n "checking for GNU ld... " >&6; }
5384else
5385 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5386$as_echo_n "checking for non-GNU ld... " >&6; }
5387fi
5388if test "${lt_cv_path_LD+set}" = set; then
5389 $as_echo_n "(cached) " >&6
5390else
5391 if test -z "$LD"; then
5392 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5393 for ac_dir in $PATH; do
5394 IFS="$lt_save_ifs"
5395 test -z "$ac_dir" && ac_dir=.
5396 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5397 lt_cv_path_LD="$ac_dir/$ac_prog"
5398 # Check to see if the program is GNU ld. I'd rather use --version,
5399 # but apparently some variants of GNU ld only accept -v.
5400 # Break only if it was the GNU/non-GNU ld that we prefer.
5401 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5402 *GNU* | *'with BFD'*)
5403 test "$with_gnu_ld" != no && break
5404 ;;
5405 *)
5406 test "$with_gnu_ld" != yes && break
5407 ;;
5408 esac
5409 fi
5410 done
5411 IFS="$lt_save_ifs"
5412else
5413 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5414fi
5415fi
5416
5417LD="$lt_cv_path_LD"
5418if test -n "$LD"; then
5419 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5420$as_echo "$LD" >&6; }
5421else
5422 { $as_echo "$as_me:$LINENO: result: no" >&5
5423$as_echo "no" >&6; }
5424fi
5425test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5426$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5427 { (exit 1); exit 1; }; }
5428{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5429$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5430if test "${lt_cv_prog_gnu_ld+set}" = set; then
5431 $as_echo_n "(cached) " >&6
5432else
5433 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5434case `$LD -v 2>&1 </dev/null` in
5435*GNU* | *'with BFD'*)
5436 lt_cv_prog_gnu_ld=yes
5437 ;;
5438*)
5439 lt_cv_prog_gnu_ld=no
5440 ;;
5441esac
5442fi
5443{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5444$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5445with_gnu_ld=$lt_cv_prog_gnu_ld
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455if test -n "$ac_tool_prefix"; then
5456 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5457set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5458{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5459$as_echo_n "checking for $ac_word... " >&6; }
5460if test "${ac_cv_prog_RANLIB+set}" = set; then
5461 $as_echo_n "(cached) " >&6
5462else
5463 if test -n "$RANLIB"; then
5464 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5465else
5466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467for as_dir in $PATH
5468do
5469 IFS=$as_save_IFS
5470 test -z "$as_dir" && as_dir=.
5471 for ac_exec_ext in '' $ac_executable_extensions; do
5472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5473 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5474 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 break 2
5476 fi
5477done
5478done
5479IFS=$as_save_IFS
5480
5481fi
5482fi
5483RANLIB=$ac_cv_prog_RANLIB
5484if test -n "$RANLIB"; then
5485 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5486$as_echo "$RANLIB" >&6; }
5487else
5488 { $as_echo "$as_me:$LINENO: result: no" >&5
5489$as_echo "no" >&6; }
5490fi
5491
5492
5493fi
5494if test -z "$ac_cv_prog_RANLIB"; then
5495 ac_ct_RANLIB=$RANLIB
5496 # Extract the first word of "ranlib", so it can be a program name with args.
5497set dummy ranlib; ac_word=$2
5498{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5499$as_echo_n "checking for $ac_word... " >&6; }
5500if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5501 $as_echo_n "(cached) " >&6
5502else
5503 if test -n "$ac_ct_RANLIB"; then
5504 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5513 ac_cv_prog_ac_ct_RANLIB="ranlib"
5514 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517done
5518done
5519IFS=$as_save_IFS
5520
5521fi
5522fi
5523ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5524if test -n "$ac_ct_RANLIB"; then
5525 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5526$as_echo "$ac_ct_RANLIB" >&6; }
5527else
5528 { $as_echo "$as_me:$LINENO: result: no" >&5
5529$as_echo "no" >&6; }
5530fi
5531
5532 if test "x$ac_ct_RANLIB" = x; then
5533 RANLIB=":"
5534 else
5535 case $cross_compiling:$ac_tool_warned in
5536yes:)
5537{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5539ac_tool_warned=yes ;;
5540esac
5541 RANLIB=$ac_ct_RANLIB
5542 fi
5543else
5544 RANLIB="$ac_cv_prog_RANLIB"
5545fi
5546
5547
5548if test "x$CC" != xcc; then
5549 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5550$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5551else
5552 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5553$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5554fi
5555set dummy $CC; ac_cc=`$as_echo "$2" |
5556 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5557if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5558 $as_echo_n "(cached) " >&6
5559else
5560 cat >conftest.$ac_ext <<_ACEOF
5561/* confdefs.h. */
5562_ACEOF
5563cat confdefs.h >>conftest.$ac_ext
5564cat >>conftest.$ac_ext <<_ACEOF
5565/* end confdefs.h. */
5566
5567int
5568main ()
5569{
5570
5571 ;
5572 return 0;
5573}
5574_ACEOF
5575# Make sure it works both with $CC and with simple cc.
5576# We do the test twice because some compilers refuse to overwrite an
5577# existing .o file with -o, though they will create one.
5578ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5579rm -f conftest2.*
5580if { (case "(($ac_try" in
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5583esac
5584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5585$as_echo "$ac_try_echo") >&5
5586 (eval "$ac_try") 2>&5
5587 ac_status=$?
5588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); } &&
5590 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593esac
5594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5595$as_echo "$ac_try_echo") >&5
5596 (eval "$ac_try") 2>&5
5597 ac_status=$?
5598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); };
5600then
5601 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5602 if test "x$CC" != xcc; then
5603 # Test first that cc exists at all.
5604 if { ac_try='cc -c conftest.$ac_ext >&5'
5605 { (case "(($ac_try" in
5606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5608esac
5609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5610$as_echo "$ac_try_echo") >&5
5611 (eval "$ac_try") 2>&5
5612 ac_status=$?
5613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); }; }; then
5615 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5616 rm -f conftest2.*
5617 if { (case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620esac
5621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5622$as_echo "$ac_try_echo") >&5
5623 (eval "$ac_try") 2>&5
5624 ac_status=$?
5625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } &&
5627 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630esac
5631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5632$as_echo "$ac_try_echo") >&5
5633 (eval "$ac_try") 2>&5
5634 ac_status=$?
5635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); };
5637 then
5638 # cc works too.
5639 :
5640 else
5641 # cc exists but doesn't like -o.
5642 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5643 fi
5644 fi
5645 fi
5646else
5647 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5648fi
5649rm -f core conftest*
5650
5651fi
5652if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5653 { $as_echo "$as_me:$LINENO: result: yes" >&5
5654$as_echo "yes" >&6; }
5655else
5656 { $as_echo "$as_me:$LINENO: result: no" >&5
5657$as_echo "no" >&6; }
5658
5659cat >>confdefs.h <<\_ACEOF
5660#define NO_MINUS_C_MINUS_O 1
5661_ACEOF
5662
5663fi
5664
5665# FIXME: we rely on the cache variable name because
5666# there is no other way.
5667set dummy $CC
5668am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5669eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5670if test "$am_t" != yes; then
5671 # Losing compiler, so override with the script.
5672 # FIXME: It is wrong to rewrite CC.
5673 # But if we don't then we get into trouble of one sort or another.
5674 # A longer-term fix would be to have automake use am__CC in this case,
5675 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5676 CC="$am_aux_dir/compile $CC"
5677fi
5678
5679
5680# Find a good install program. We prefer a C program (faster),
5681# so one script is as good as another. But avoid the broken or
5682# incompatible versions:
5683# SysV /etc/install, /usr/sbin/install
5684# SunOS /usr/etc/install
5685# IRIX /sbin/install
5686# AIX /bin/install
5687# AmigaOS /C/install, which installs bootblocks on floppy discs
5688# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5689# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5690# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5691# OS/2's system install, which has a completely different semantic
5692# ./install, which can be erroneously created by make from ./install.sh.
5693# Reject install programs that cannot install multiple files.
5694{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5695$as_echo_n "checking for a BSD-compatible install... " >&6; }
5696if test -z "$INSTALL"; then
5697if test "${ac_cv_path_install+set}" = set; then
5698 $as_echo_n "(cached) " >&6
5699else
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701for as_dir in $PATH
5702do
5703 IFS=$as_save_IFS
5704 test -z "$as_dir" && as_dir=.
5705 # Account for people who put trailing slashes in PATH elements.
5706case $as_dir/ in
5707 ./ | .// | /cC/* | \
5708 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5709 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5710 /usr/ucb/* ) ;;
5711 *)
5712 # OSF1 and SCO ODT 3.0 have their own names for install.
5713 # Don't use installbsd from OSF since it installs stuff as root
5714 # by default.
5715 for ac_prog in ginstall scoinst install; do
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5718 if test $ac_prog = install &&
5719 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5720 # AIX install. It has an incompatible calling convention.
5721 :
5722 elif test $ac_prog = install &&
5723 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5724 # program-specific install script used by HP pwplus--don't use.
5725 :
5726 else
5727 rm -rf conftest.one conftest.two conftest.dir
5728 echo one > conftest.one
5729 echo two > conftest.two
5730 mkdir conftest.dir
5731 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5732 test -s conftest.one && test -s conftest.two &&
5733 test -s conftest.dir/conftest.one &&
5734 test -s conftest.dir/conftest.two
5735 then
5736 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5737 break 3
5738 fi
5739 fi
5740 fi
5741 done
5742 done
5743 ;;
5744esac
5745
5746done
5747IFS=$as_save_IFS
5748
5749rm -rf conftest.one conftest.two conftest.dir
5750
5751fi
5752 if test "${ac_cv_path_install+set}" = set; then
5753 INSTALL=$ac_cv_path_install
5754 else
5755 # As a last resort, use the slow shell script. Don't cache a
5756 # value for INSTALL within a source directory, because that will
5757 # break other packages using the cache if that directory is
5758 # removed, or if the value is a relative name.
5759 INSTALL=$ac_install_sh
5760 fi
5761fi
5762{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5763$as_echo "$INSTALL" >&6; }
5764
5765# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5766# It thinks the first close brace ends the variable substitution.
5767test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5768
5769test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5770
5771test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5772
5773{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5774$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5775set x ${MAKE-make}
5776ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5777if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5778 $as_echo_n "(cached) " >&6
5779else
5780 cat >conftest.make <<\_ACEOF
5781SHELL = /bin/sh
5782all:
5783 @echo '@@@%%%=$(MAKE)=@@@%%%'
5784_ACEOF
5785# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5786case `${MAKE-make} -f conftest.make 2>/dev/null` in
5787 *@@@%%%=?*=@@@%%%*)
5788 eval ac_cv_prog_make_${ac_make}_set=yes;;
5789 *)
5790 eval ac_cv_prog_make_${ac_make}_set=no;;
5791esac
5792rm -f conftest.make
5793fi
5794if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5795 { $as_echo "$as_me:$LINENO: result: yes" >&5
5796$as_echo "yes" >&6; }
5797 SET_MAKE=
5798else
5799 { $as_echo "$as_me:$LINENO: result: no" >&5
5800$as_echo "no" >&6; }
5801 SET_MAKE="MAKE=${MAKE-make}"
5802fi
5803
5804ac_ext=cpp
5805ac_cpp='$CXXCPP $CPPFLAGS'
5806ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5807ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5808ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5809if test -z "$CXX"; then
5810 if test -n "$CCC"; then
5811 CXX=$CCC
5812 else
5813 if test -n "$ac_tool_prefix"; then
5814 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5815 do
5816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5817set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5818{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5819$as_echo_n "checking for $ac_word... " >&6; }
5820if test "${ac_cv_prog_CXX+set}" = set; then
5821 $as_echo_n "(cached) " >&6
5822else
5823 if test -n "$CXX"; then
5824 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5825else
5826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5827for as_dir in $PATH
5828do
5829 IFS=$as_save_IFS
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5834 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5835 break 2
5836 fi
5837done
5838done
5839IFS=$as_save_IFS
5840
5841fi
5842fi
5843CXX=$ac_cv_prog_CXX
5844if test -n "$CXX"; then
5845 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5846$as_echo "$CXX" >&6; }
5847else
5848 { $as_echo "$as_me:$LINENO: result: no" >&5
5849$as_echo "no" >&6; }
5850fi
5851
5852
5853 test -n "$CXX" && break
5854 done
5855fi
5856if test -z "$CXX"; then
5857 ac_ct_CXX=$CXX
5858 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5859do
5860 # Extract the first word of "$ac_prog", so it can be a program name with args.
5861set dummy $ac_prog; ac_word=$2
5862{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5863$as_echo_n "checking for $ac_word... " >&6; }
5864if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5865 $as_echo_n "(cached) " >&6
5866else
5867 if test -n "$ac_ct_CXX"; then
5868 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5869else
5870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871for as_dir in $PATH
5872do
5873 IFS=$as_save_IFS
5874 test -z "$as_dir" && as_dir=.
5875 for ac_exec_ext in '' $ac_executable_extensions; do
5876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5877 ac_cv_prog_ac_ct_CXX="$ac_prog"
5878 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5879 break 2
5880 fi
5881done
5882done
5883IFS=$as_save_IFS
5884
5885fi
5886fi
5887ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5888if test -n "$ac_ct_CXX"; then
5889 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5890$as_echo "$ac_ct_CXX" >&6; }
5891else
5892 { $as_echo "$as_me:$LINENO: result: no" >&5
5893$as_echo "no" >&6; }
5894fi
5895
5896
5897 test -n "$ac_ct_CXX" && break
5898done
5899
5900 if test "x$ac_ct_CXX" = x; then
5901 CXX="g++"
5902 else
5903 case $cross_compiling:$ac_tool_warned in
5904yes:)
5905{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5907ac_tool_warned=yes ;;
5908esac
5909 CXX=$ac_ct_CXX
5910 fi
5911fi
5912
5913 fi
5914fi
5915# Provide some information about the compiler.
5916$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5917set X $ac_compile
5918ac_compiler=$2
5919{ (ac_try="$ac_compiler --version >&5"
5920case "(($ac_try" in
5921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5922 *) ac_try_echo=$ac_try;;
5923esac
5924eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5925$as_echo "$ac_try_echo") >&5
5926 (eval "$ac_compiler --version >&5") 2>&5
5927 ac_status=$?
5928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5929 (exit $ac_status); }
5930{ (ac_try="$ac_compiler -v >&5"
5931case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934esac
5935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936$as_echo "$ac_try_echo") >&5
5937 (eval "$ac_compiler -v >&5") 2>&5
5938 ac_status=$?
5939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5940 (exit $ac_status); }
5941{ (ac_try="$ac_compiler -V >&5"
5942case "(($ac_try" in
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5945esac
5946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5947$as_echo "$ac_try_echo") >&5
5948 (eval "$ac_compiler -V >&5") 2>&5
5949 ac_status=$?
5950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }
5952
5953{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5954$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5955if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5956 $as_echo_n "(cached) " >&6
5957else
5958 cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h. */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
5963/* end confdefs.h. */
5964
5965int
5966main ()
5967{
5968#ifndef __GNUC__
5969 choke me
5970#endif
5971
5972 ;
5973 return 0;
5974}
5975_ACEOF
5976rm -f conftest.$ac_objext
5977if { (ac_try="$ac_compile"
5978case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981esac
5982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5983$as_echo "$ac_try_echo") >&5
5984 (eval "$ac_compile") 2>conftest.er1
5985 ac_status=$?
5986 grep -v '^ *+' conftest.er1 >conftest.err
5987 rm -f conftest.er1
5988 cat conftest.err >&5
5989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5990 (exit $ac_status); } && {
5991 test -z "$ac_cxx_werror_flag" ||
5992 test ! -s conftest.err
5993 } && test -s conftest.$ac_objext; then
5994 ac_compiler_gnu=yes
5995else
5996 $as_echo "$as_me: failed program was:" >&5
5997sed 's/^/| /' conftest.$ac_ext >&5
5998
5999 ac_compiler_gnu=no
6000fi
6001
6002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6003ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6004
6005fi
6006{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6007$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6008if test $ac_compiler_gnu = yes; then
6009 GXX=yes
6010else
6011 GXX=
6012fi
6013ac_test_CXXFLAGS=${CXXFLAGS+set}
6014ac_save_CXXFLAGS=$CXXFLAGS
6015{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6016$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6017if test "${ac_cv_prog_cxx_g+set}" = set; then
6018 $as_echo_n "(cached) " >&6
6019else
6020 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6021 ac_cxx_werror_flag=yes
6022 ac_cv_prog_cxx_g=no
6023 CXXFLAGS="-g"
6024 cat >conftest.$ac_ext <<_ACEOF
6025/* confdefs.h. */
6026_ACEOF
6027cat confdefs.h >>conftest.$ac_ext
6028cat >>conftest.$ac_ext <<_ACEOF
6029/* end confdefs.h. */
6030
6031int
6032main ()
6033{
6034
6035 ;
6036 return 0;
6037}
6038_ACEOF
6039rm -f conftest.$ac_objext
6040if { (ac_try="$ac_compile"
6041case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044esac
6045eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6046$as_echo "$ac_try_echo") >&5
6047 (eval "$ac_compile") 2>conftest.er1
6048 ac_status=$?
6049 grep -v '^ *+' conftest.er1 >conftest.err
6050 rm -f conftest.er1
6051 cat conftest.err >&5
6052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053 (exit $ac_status); } && {
6054 test -z "$ac_cxx_werror_flag" ||
6055 test ! -s conftest.err
6056 } && test -s conftest.$ac_objext; then
6057 ac_cv_prog_cxx_g=yes
6058else
6059 $as_echo "$as_me: failed program was:" >&5
6060sed 's/^/| /' conftest.$ac_ext >&5
6061
6062 CXXFLAGS=""
6063 cat >conftest.$ac_ext <<_ACEOF
6064/* confdefs.h. */
6065_ACEOF
6066cat confdefs.h >>conftest.$ac_ext
6067cat >>conftest.$ac_ext <<_ACEOF
6068/* end confdefs.h. */
6069
6070int
6071main ()
6072{
6073
6074 ;
6075 return 0;
6076}
6077_ACEOF
6078rm -f conftest.$ac_objext
6079if { (ac_try="$ac_compile"
6080case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083esac
6084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6085$as_echo "$ac_try_echo") >&5
6086 (eval "$ac_compile") 2>conftest.er1
6087 ac_status=$?
6088 grep -v '^ *+' conftest.er1 >conftest.err
6089 rm -f conftest.er1
6090 cat conftest.err >&5
6091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); } && {
6093 test -z "$ac_cxx_werror_flag" ||
6094 test ! -s conftest.err
6095 } && test -s conftest.$ac_objext; then
6096 :
6097else
6098 $as_echo "$as_me: failed program was:" >&5
6099sed 's/^/| /' conftest.$ac_ext >&5
6100
6101 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6102 CXXFLAGS="-g"
6103 cat >conftest.$ac_ext <<_ACEOF
6104/* confdefs.h. */
6105_ACEOF
6106cat confdefs.h >>conftest.$ac_ext
6107cat >>conftest.$ac_ext <<_ACEOF
6108/* end confdefs.h. */
6109
6110int
6111main ()
6112{
6113
6114 ;
6115 return 0;
6116}
6117_ACEOF
6118rm -f conftest.$ac_objext
6119if { (ac_try="$ac_compile"
6120case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123esac
6124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6125$as_echo "$ac_try_echo") >&5
6126 (eval "$ac_compile") 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } && {
6133 test -z "$ac_cxx_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest.$ac_objext; then
6136 ac_cv_prog_cxx_g=yes
6137else
6138 $as_echo "$as_me: failed program was:" >&5
6139sed 's/^/| /' conftest.$ac_ext >&5
6140
6141
6142fi
6143
6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145fi
6146
6147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6148fi
6149
6150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6152fi
6153{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6154$as_echo "$ac_cv_prog_cxx_g" >&6; }
6155if test "$ac_test_CXXFLAGS" = set; then
6156 CXXFLAGS=$ac_save_CXXFLAGS
6157elif test $ac_cv_prog_cxx_g = yes; then
6158 if test "$GXX" = yes; then
6159 CXXFLAGS="-g -O2"
6160 else
6161 CXXFLAGS="-g"
6162 fi
6163else
6164 if test "$GXX" = yes; then
6165 CXXFLAGS="-O2"
6166 else
6167 CXXFLAGS=
6168 fi
6169fi
6170ac_ext=c
6171ac_cpp='$CPP $CPPFLAGS'
6172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6174ac_compiler_gnu=$ac_cv_c_compiler_gnu
6175
6176depcc="$CXX" am_compiler_list=
6177
6178{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6179$as_echo_n "checking dependency style of $depcc... " >&6; }
6180if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6181 $as_echo_n "(cached) " >&6
6182else
6183 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6184 # We make a subdir and do the tests there. Otherwise we can end up
6185 # making bogus files that we don't know about and never remove. For
6186 # instance it was reported that on HP-UX the gcc test will end up
6187 # making a dummy file named `D' -- because `-MD' means `put the output
6188 # in D'.
6189 mkdir conftest.dir
6190 # Copy depcomp to subdir because otherwise we won't find it if we're
6191 # using a relative directory.
6192 cp "$am_depcomp" conftest.dir
6193 cd conftest.dir
6194 # We will build objects and dependencies in a subdirectory because
6195 # it helps to detect inapplicable dependency modes. For instance
6196 # both Tru64's cc and ICC support -MD to output dependencies as a
6197 # side effect of compilation, but ICC will put the dependencies in
6198 # the current directory while Tru64 will put them in the object
6199 # directory.
6200 mkdir sub
6201
6202 am_cv_CXX_dependencies_compiler_type=none
6203 if test "$am_compiler_list" = ""; then
6204 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6205 fi
6206 am__universal=false
6207 case " $depcc " in #(
6208 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6209 esac
6210
6211 for depmode in $am_compiler_list; do
6212 # Setup a source with many dependencies, because some compilers
6213 # like to wrap large dependency lists on column 80 (with \), and
6214 # we should not choose a depcomp mode which is confused by this.
6215 #
6216 # We need to recreate these files for each test, as the compiler may
6217 # overwrite some of them when testing with obscure command lines.
6218 # This happens at least with the AIX C compiler.
6219 : > sub/conftest.c
6220 for i in 1 2 3 4 5 6; do
6221 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6222 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6223 # Solaris 8's {/usr,}/bin/sh.
6224 touch sub/conftst$i.h
6225 done
6226 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6227
6228 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6229 # mode. It turns out that the SunPro C++ compiler does not properly
6230 # handle `-M -o', and we need to detect this. Also, some Intel
6231 # versions had trouble with output in subdirs
6232 am__obj=sub/conftest.${OBJEXT-o}
6233 am__minus_obj="-o $am__obj"
6234 case $depmode in
6235 gcc)
6236 # This depmode causes a compiler race in universal mode.
6237 test "$am__universal" = false || continue
6238 ;;
6239 nosideeffect)
6240 # after this tag, mechanisms are not by side-effect, so they'll
6241 # only be used when explicitly requested
6242 if test "x$enable_dependency_tracking" = xyes; then
6243 continue
6244 else
6245 break
6246 fi
6247 ;;
6248 msvisualcpp | msvcmsys)
6249 # This compiler won't grok `-c -o', but also, the minuso test has
6250 # not run yet. These depmodes are late enough in the game, and
6251 # so weak that their functioning should not be impacted.
6252 am__obj=conftest.${OBJEXT-o}
6253 am__minus_obj=
6254 ;;
6255 none) break ;;
6256 esac
6257 if depmode=$depmode \
6258 source=sub/conftest.c object=$am__obj \
6259 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6260 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6261 >/dev/null 2>conftest.err &&
6262 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6263 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6264 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6265 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6266 # icc doesn't choke on unknown options, it will just issue warnings
6267 # or remarks (even with -Werror). So we grep stderr for any message
6268 # that says an option was ignored or not supported.
6269 # When given -MP, icc 7.0 and 7.1 complain thusly:
6270 # icc: Command line warning: ignoring option '-M'; no argument required
6271 # The diagnosis changed in icc 8.0:
6272 # icc: Command line remark: option '-MP' not supported
6273 if (grep 'ignoring option' conftest.err ||
6274 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6275 am_cv_CXX_dependencies_compiler_type=$depmode
6276 break
6277 fi
6278 fi
6279 done
6280
6281 cd ..
6282 rm -rf conftest.dir
6283else
6284 am_cv_CXX_dependencies_compiler_type=none
6285fi
6286
6287fi
6288{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6289$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6290CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6291
6292 if
6293 test "x$enable_dependency_tracking" != xno \
6294 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6295 am__fastdepCXX_TRUE=
6296 am__fastdepCXX_FALSE='#'
6297else
6298 am__fastdepCXX_TRUE='#'
6299 am__fastdepCXX_FALSE=
6300fi
6301
6302
6303
6304{ $as_echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5
6305$as_echo_n "checking maximum warning verbosity option... " >&6; }
6306
6307
6308
6309
6310# Check whether --with-maximum-compile-warnings was given.
6311if test "${with_maximum_compile_warnings+set}" = set; then
6312 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6313else
6314 ac_compile_warnings_on=""
6315fi
6316
6317
6318 if test x"$ac_compile_warnings_on" = xno
6319 then
6320 ac_compile_warnings_msg=no
6321 else
6322 if test -n "$CXX"
6323 then
6324 if test "$GXX" = "yes"
6325 then
6326 ac_compile_warnings_opt='-Wall -W'
6327 fi
6328 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6329 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6330 fi
6331
6332 if test -n "$CC"
6333 then
6334 if test "$GCC" = "yes"
6335 then
6336 ac_compile_warnings_opt='-Wall -W'
6337 fi
6338 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6339 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6340 fi
6341 fi
6342 { $as_echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
6343$as_echo "$ac_compile_warnings_msg" >&6; }
6344 unset ac_compile_warnings_msg
6345 unset ac_compile_warnings_opt
6346
6347{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6348$as_echo_n "checking whether ln -s works... " >&6; }
6349LN_S=$as_ln_s
6350if test "$LN_S" = "ln -s"; then
6351 { $as_echo "$as_me:$LINENO: result: yes" >&5
6352$as_echo "yes" >&6; }
6353else
6354 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6355$as_echo "no, using $LN_S" >&6; }
6356fi
6357
6358{ $as_echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6359$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6360
6361# Check whether --with-dmalloc was given.
6362if test "${with_dmalloc+set}" = set; then
6363 withval=$with_dmalloc; if test "$withval" = yes; then
6364 { $as_echo "$as_me:$LINENO: result: yes" >&5
6365$as_echo "yes" >&6; }
6366
6367cat >>confdefs.h <<\_ACEOF
6368#define WITH_DMALLOC 1
6369_ACEOF
6370
6371 LIBS="$LIBS -ldmalloc"
6372 LDFLAGS="$LDFLAGS -g"
6373else
6374 { $as_echo "$as_me:$LINENO: result: no" >&5
6375$as_echo "no" >&6; }
6376fi
6377else
6378 { $as_echo "$as_me:$LINENO: result: no" >&5
6379$as_echo "no" >&6; }
6380fi
6381
6382
6383
6384
6385if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6386 if test -n "$ac_tool_prefix"; then
6387 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6388set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6389{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
6391if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6392 $as_echo_n "(cached) " >&6
6393else
6394 case $PKG_CONFIG in
6395 [\\/]* | ?:[\\/]*)
6396 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6397 ;;
6398 *)
6399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6400for as_dir in $PATH
6401do
6402 IFS=$as_save_IFS
6403 test -z "$as_dir" && as_dir=.
6404 for ac_exec_ext in '' $ac_executable_extensions; do
6405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6406 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6407 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6408 break 2
6409 fi
6410done
6411done
6412IFS=$as_save_IFS
6413
6414 ;;
6415esac
6416fi
6417PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6418if test -n "$PKG_CONFIG"; then
6419 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6420$as_echo "$PKG_CONFIG" >&6; }
6421else
6422 { $as_echo "$as_me:$LINENO: result: no" >&5
6423$as_echo "no" >&6; }
6424fi
6425
6426
6427fi
6428if test -z "$ac_cv_path_PKG_CONFIG"; then
6429 ac_pt_PKG_CONFIG=$PKG_CONFIG
6430 # Extract the first word of "pkg-config", so it can be a program name with args.
6431set dummy pkg-config; ac_word=$2
6432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6433$as_echo_n "checking for $ac_word... " >&6; }
6434if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6435 $as_echo_n "(cached) " >&6
6436else
6437 case $ac_pt_PKG_CONFIG in
6438 [\\/]* | ?:[\\/]*)
6439 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6440 ;;
6441 *)
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443for as_dir in $PATH
6444do
6445 IFS=$as_save_IFS
6446 test -z "$as_dir" && as_dir=.
6447 for ac_exec_ext in '' $ac_executable_extensions; do
6448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6449 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6450 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 break 2
6452 fi
6453done
6454done
6455IFS=$as_save_IFS
6456
6457 ;;
6458esac
6459fi
6460ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6461if test -n "$ac_pt_PKG_CONFIG"; then
6462 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6463$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6464else
6465 { $as_echo "$as_me:$LINENO: result: no" >&5
6466$as_echo "no" >&6; }
6467fi
6468
6469 if test "x$ac_pt_PKG_CONFIG" = x; then
6470 PKG_CONFIG=""
6471 else
6472 case $cross_compiling:$ac_tool_warned in
6473yes:)
6474{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6476ac_tool_warned=yes ;;
6477esac
6478 PKG_CONFIG=$ac_pt_PKG_CONFIG
6479 fi
6480else
6481 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6482fi
6483
6484fi
6485if test -n "$PKG_CONFIG"; then
6486 _pkg_min_version=0.9.0
6487 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6488$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6489 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6490 { $as_echo "$as_me:$LINENO: result: yes" >&5
6491$as_echo "yes" >&6; }
6492 else
6493 { $as_echo "$as_me:$LINENO: result: no" >&5
6494$as_echo "no" >&6; }
6495 PKG_CONFIG=""
6496 fi
6497
6498fi
6499
6500#
6501# Enable OS features.
6502#
6503
6504
6505{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6506$as_echo_n "checking for ANSI C header files... " >&6; }
6507if test "${ac_cv_header_stdc+set}" = set; then
6508 $as_echo_n "(cached) " >&6
6509else
6510 cat >conftest.$ac_ext <<_ACEOF
6511/* confdefs.h. */
6512_ACEOF
6513cat confdefs.h >>conftest.$ac_ext
6514cat >>conftest.$ac_ext <<_ACEOF
6515/* end confdefs.h. */
6516#include <stdlib.h>
6517#include <stdarg.h>
6518#include <string.h>
6519#include <float.h>
6520
6521int
6522main ()
6523{
6524
6525 ;
6526 return 0;
6527}
6528_ACEOF
6529rm -f conftest.$ac_objext
6530if { (ac_try="$ac_compile"
6531case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6534esac
6535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6536$as_echo "$ac_try_echo") >&5
6537 (eval "$ac_compile") 2>conftest.er1
6538 ac_status=$?
6539 grep -v '^ *+' conftest.er1 >conftest.err
6540 rm -f conftest.er1
6541 cat conftest.err >&5
6542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && {
6544 test -z "$ac_c_werror_flag" ||
6545 test ! -s conftest.err
6546 } && test -s conftest.$ac_objext; then
6547 ac_cv_header_stdc=yes
6548else
6549 $as_echo "$as_me: failed program was:" >&5
6550sed 's/^/| /' conftest.$ac_ext >&5
6551
6552 ac_cv_header_stdc=no
6553fi
6554
6555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6556
6557if test $ac_cv_header_stdc = yes; then
6558 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6559 cat >conftest.$ac_ext <<_ACEOF
6560/* confdefs.h. */
6561_ACEOF
6562cat confdefs.h >>conftest.$ac_ext
6563cat >>conftest.$ac_ext <<_ACEOF
6564/* end confdefs.h. */
6565#include <string.h>
6566
6567_ACEOF
6568if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 $EGREP "memchr" >/dev/null 2>&1; then
6570 :
6571else
6572 ac_cv_header_stdc=no
6573fi
6574rm -f conftest*
6575
6576fi
6577
6578if test $ac_cv_header_stdc = yes; then
6579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6580 cat >conftest.$ac_ext <<_ACEOF
6581/* confdefs.h. */
6582_ACEOF
6583cat confdefs.h >>conftest.$ac_ext
6584cat >>conftest.$ac_ext <<_ACEOF
6585/* end confdefs.h. */
6586#include <stdlib.h>
6587
6588_ACEOF
6589if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "free" >/dev/null 2>&1; then
6591 :
6592else
6593 ac_cv_header_stdc=no
6594fi
6595rm -f conftest*
6596
6597fi
6598
6599if test $ac_cv_header_stdc = yes; then
6600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6601 if test "$cross_compiling" = yes; then
6602 :
6603else
6604 cat >conftest.$ac_ext <<_ACEOF
6605/* confdefs.h. */
6606_ACEOF
6607cat confdefs.h >>conftest.$ac_ext
6608cat >>conftest.$ac_ext <<_ACEOF
6609/* end confdefs.h. */
6610#include <ctype.h>
6611#include <stdlib.h>
6612#if ((' ' & 0x0FF) == 0x020)
6613# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6614# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6615#else
6616# define ISLOWER(c) \
6617 (('a' <= (c) && (c) <= 'i') \
6618 || ('j' <= (c) && (c) <= 'r') \
6619 || ('s' <= (c) && (c) <= 'z'))
6620# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6621#endif
6622
6623#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6624int
6625main ()
6626{
6627 int i;
6628 for (i = 0; i < 256; i++)
6629 if (XOR (islower (i), ISLOWER (i))
6630 || toupper (i) != TOUPPER (i))
6631 return 2;
6632 return 0;
6633}
6634_ACEOF
6635rm -f conftest$ac_exeext
6636if { (ac_try="$ac_link"
6637case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640esac
6641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6642$as_echo "$ac_try_echo") >&5
6643 (eval "$ac_link") 2>&5
6644 ac_status=$?
6645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6647 { (case "(($ac_try" in
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6650esac
6651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6652$as_echo "$ac_try_echo") >&5
6653 (eval "$ac_try") 2>&5
6654 ac_status=$?
6655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6656 (exit $ac_status); }; }; then
6657 :
6658else
6659 $as_echo "$as_me: program exited with status $ac_status" >&5
6660$as_echo "$as_me: failed program was:" >&5
6661sed 's/^/| /' conftest.$ac_ext >&5
6662
6663( exit $ac_status )
6664ac_cv_header_stdc=no
6665fi
6666rm -rf conftest.dSYM
6667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6668fi
6669
6670
6671fi
6672fi
6673{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6674$as_echo "$ac_cv_header_stdc" >&6; }
6675if test $ac_cv_header_stdc = yes; then
6676
6677cat >>confdefs.h <<\_ACEOF
6678#define STDC_HEADERS 1
6679_ACEOF
6680
6681fi
6682
6683# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6694 inttypes.h stdint.h unistd.h
6695do
6696as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6697{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6698$as_echo_n "checking for $ac_header... " >&6; }
6699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6700 $as_echo_n "(cached) " >&6
6701else
6702 cat >conftest.$ac_ext <<_ACEOF
6703/* confdefs.h. */
6704_ACEOF
6705cat confdefs.h >>conftest.$ac_ext
6706cat >>conftest.$ac_ext <<_ACEOF
6707/* end confdefs.h. */
6708$ac_includes_default
6709
6710#include <$ac_header>
6711_ACEOF
6712rm -f conftest.$ac_objext
6713if { (ac_try="$ac_compile"
6714case "(($ac_try" in
6715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6716 *) ac_try_echo=$ac_try;;
6717esac
6718eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6719$as_echo "$ac_try_echo") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.$ac_objext; then
6730 eval "$as_ac_Header=yes"
6731else
6732 $as_echo "$as_me: failed program was:" >&5
6733sed 's/^/| /' conftest.$ac_ext >&5
6734
6735 eval "$as_ac_Header=no"
6736fi
6737
6738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739fi
6740ac_res=`eval 'as_val=${'$as_ac_Header'}
6741 $as_echo "$as_val"'`
6742 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6743$as_echo "$ac_res" >&6; }
6744as_val=`eval 'as_val=${'$as_ac_Header'}
6745 $as_echo "$as_val"'`
6746 if test "x$as_val" = x""yes; then
6747 cat >>confdefs.h <<_ACEOF
6748#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6749_ACEOF
6750
6751fi
6752
6753done
6754
6755
6756
6757 if test "${ac_cv_header_minix_config_h+set}" = set; then
6758 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6759$as_echo_n "checking for minix/config.h... " >&6; }
6760if test "${ac_cv_header_minix_config_h+set}" = set; then
6761 $as_echo_n "(cached) " >&6
6762fi
6763{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6764$as_echo "$ac_cv_header_minix_config_h" >&6; }
6765else
6766 # Is the header compilable?
6767{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
6768$as_echo_n "checking minix/config.h usability... " >&6; }
6769cat >conftest.$ac_ext <<_ACEOF
6770/* confdefs.h. */
6771_ACEOF
6772cat confdefs.h >>conftest.$ac_ext
6773cat >>conftest.$ac_ext <<_ACEOF
6774/* end confdefs.h. */
6775$ac_includes_default
6776#include <minix/config.h>
6777_ACEOF
6778rm -f conftest.$ac_objext
6779if { (ac_try="$ac_compile"
6780case "(($ac_try" in
6781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6782 *) ac_try_echo=$ac_try;;
6783esac
6784eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6785$as_echo "$ac_try_echo") >&5
6786 (eval "$ac_compile") 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } && {
6793 test -z "$ac_c_werror_flag" ||
6794 test ! -s conftest.err
6795 } && test -s conftest.$ac_objext; then
6796 ac_header_compiler=yes
6797else
6798 $as_echo "$as_me: failed program was:" >&5
6799sed 's/^/| /' conftest.$ac_ext >&5
6800
6801 ac_header_compiler=no
6802fi
6803
6804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6806$as_echo "$ac_header_compiler" >&6; }
6807
6808# Is the header present?
6809{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
6810$as_echo_n "checking minix/config.h presence... " >&6; }
6811cat >conftest.$ac_ext <<_ACEOF
6812/* confdefs.h. */
6813_ACEOF
6814cat confdefs.h >>conftest.$ac_ext
6815cat >>conftest.$ac_ext <<_ACEOF
6816/* end confdefs.h. */
6817#include <minix/config.h>
6818_ACEOF
6819if { (ac_try="$ac_cpp conftest.$ac_ext"
6820case "(($ac_try" in
6821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822 *) ac_try_echo=$ac_try;;
6823esac
6824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6825$as_echo "$ac_try_echo") >&5
6826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6827 ac_status=$?
6828 grep -v '^ *+' conftest.er1 >conftest.err
6829 rm -f conftest.er1
6830 cat conftest.err >&5
6831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6832 (exit $ac_status); } >/dev/null && {
6833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6834 test ! -s conftest.err
6835 }; then
6836 ac_header_preproc=yes
6837else
6838 $as_echo "$as_me: failed program was:" >&5
6839sed 's/^/| /' conftest.$ac_ext >&5
6840
6841 ac_header_preproc=no
6842fi
6843
6844rm -f conftest.err conftest.$ac_ext
6845{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6846$as_echo "$ac_header_preproc" >&6; }
6847
6848# So? What about this header?
6849case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6850 yes:no: )
6851 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6852$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6853 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6854$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6855 ac_header_preproc=yes
6856 ;;
6857 no:yes:* )
6858 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6859$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6860 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
6861$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
6862 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6863$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6864 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
6865$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
6866 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6867$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6868 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6869$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6870 ( cat <<\_ASBOX
6871## ----------------------------------------- ##
6872## Report this to http://www.imagemagick.org ##
6873## ----------------------------------------- ##
6874_ASBOX
6875 ) | sed "s/^/$as_me: WARNING: /" >&2
6876 ;;
6877esac
6878{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6879$as_echo_n "checking for minix/config.h... " >&6; }
6880if test "${ac_cv_header_minix_config_h+set}" = set; then
6881 $as_echo_n "(cached) " >&6
6882else
6883 ac_cv_header_minix_config_h=$ac_header_preproc
6884fi
6885{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6886$as_echo "$ac_cv_header_minix_config_h" >&6; }
6887
6888fi
6889if test "x$ac_cv_header_minix_config_h" = x""yes; then
6890 MINIX=yes
6891else
6892 MINIX=
6893fi
6894
6895
6896 if test "$MINIX" = yes; then
6897
6898cat >>confdefs.h <<\_ACEOF
6899#define _POSIX_SOURCE 1
6900_ACEOF
6901
6902
6903cat >>confdefs.h <<\_ACEOF
6904#define _POSIX_1_SOURCE 2
6905_ACEOF
6906
6907
6908cat >>confdefs.h <<\_ACEOF
6909#define _MINIX 1
6910_ACEOF
6911
6912 fi
6913
6914
6915
6916 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6917$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6918if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6919 $as_echo_n "(cached) " >&6
6920else
6921 cat >conftest.$ac_ext <<_ACEOF
6922/* confdefs.h. */
6923_ACEOF
6924cat confdefs.h >>conftest.$ac_ext
6925cat >>conftest.$ac_ext <<_ACEOF
6926/* end confdefs.h. */
6927
6928# define __EXTENSIONS__ 1
6929 $ac_includes_default
6930int
6931main ()
6932{
6933
6934 ;
6935 return 0;
6936}
6937_ACEOF
6938rm -f conftest.$ac_objext
6939if { (ac_try="$ac_compile"
6940case "(($ac_try" in
6941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6943esac
6944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6945$as_echo "$ac_try_echo") >&5
6946 (eval "$ac_compile") 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.$ac_objext; then
6956 ac_cv_safe_to_define___extensions__=yes
6957else
6958 $as_echo "$as_me: failed program was:" >&5
6959sed 's/^/| /' conftest.$ac_ext >&5
6960
6961 ac_cv_safe_to_define___extensions__=no
6962fi
6963
6964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965fi
6966{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6967$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6968 test $ac_cv_safe_to_define___extensions__ = yes &&
6969 cat >>confdefs.h <<\_ACEOF
6970#define __EXTENSIONS__ 1
6971_ACEOF
6972
6973 cat >>confdefs.h <<\_ACEOF
6974#define _ALL_SOURCE 1
6975_ACEOF
6976
6977 cat >>confdefs.h <<\_ACEOF
6978#define _GNU_SOURCE 1
6979_ACEOF
6980
6981 cat >>confdefs.h <<\_ACEOF
6982#define _POSIX_PTHREAD_SEMANTICS 1
6983_ACEOF
6984
6985 cat >>confdefs.h <<\_ACEOF
6986#define _TANDEM_SOURCE 1
6987_ACEOF
6988
6989
6990
6991#
6992# Enable run-time checking.
6993#
6994# Check whether --enable-bounds-checking was given.
6995if test "${enable_bounds_checking+set}" = set; then
6996 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6997else
6998 enable_bounds_checking='no'
6999fi
7000
7001
7002if test "$enable_bounds_checking" = yes; then
7003
7004cat >>confdefs.h <<\_ACEOF
7005#define _FORTIFY_SOURCE 2
7006_ACEOF
7007
7008fi
7009
7010#
7011# Tests for Windows
7012#
7013
7014
7015
7016GDI32_LIBS=''
7017StaticCplusPlusLibraries='no'
7018native_win32_build='no'
7019cygwin_build='no'
7020case "${host_os}" in
7021 cygwin* )
7022 StaticCplusPlusLibraries='yes'
7023 cygwin_build='yes'
7024 GDI32_LIBS='-lgdi32'
7025 ;;
7026 mingw* )
7027 StaticCplusPlusLibraries='yes'
7028 native_win32_build='yes'
7029 GDI32_LIBS='-lgdi32'
7030 ;;
7031esac
7032if test "${GDI32_LIBS}x" != 'x'; then
7033
7034cat >>confdefs.h <<\_ACEOF
7035#define WINGDI32_DELEGATE 1
7036_ACEOF
7037
7038fi
7039
7040 if test "${GDI32_LIBS}x" != 'x' ; then
7041 WINGDI32_DELEGATE_TRUE=
7042 WINGDI32_DELEGATE_FALSE='#'
7043else
7044 WINGDI32_DELEGATE_TRUE='#'
7045 WINGDI32_DELEGATE_FALSE=
7046fi
7047
7048 if test "${native_win32_build}" = 'yes' ; then
7049 WIN32_NATIVE_BUILD_TRUE=
7050 WIN32_NATIVE_BUILD_FALSE='#'
7051else
7052 WIN32_NATIVE_BUILD_TRUE='#'
7053 WIN32_NATIVE_BUILD_FALSE=
7054fi
7055
7056 if test "${cygwin_build}" = 'yes' ; then
7057 CYGWIN_BUILD_TRUE=
7058 CYGWIN_BUILD_FALSE='#'
7059else
7060 CYGWIN_BUILD_TRUE='#'
7061 CYGWIN_BUILD_FALSE=
7062fi
7063
7064 if test "x${CC}" = 'xcl.exe' ; then
7065 USING_CL_TRUE=
7066 USING_CL_FALSE='#'
7067else
7068 USING_CL_TRUE='#'
7069 USING_CL_FALSE=
7070fi
7071
7072
7073WinPathScript="${srcdirfull}/winpath.sh"
7074
7075
7076#
7077# Compiler flags tweaks
7078#
7079if test "${GCC}" != "yes"; then
7080 case "${host}" in
7081 *-*-hpux* )
7082 # aCC: HP ANSI C++ B3910B A.03.34
7083 CFLAGS="${CFLAGS} -Wp,-H30000"
7084 if test -n "${CXXFLAGS}"; then
7085 CXXFLAGS='-AA'
7086 else
7087 CXXFLAGS="${CXXFLAGS} -AA"
7088 fi
7089 ;;
7090 *-dec-osf5.* )
7091 # Compaq alphaev68-dec-osf5.1 compiler
7092 if test -n "${CXXFLAGS}"; then
7093 CXXFLAGS='-std strict_ansi -noimplicit_include'
7094 else
7095 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7096 fi
7097 esac
7098fi
7099
7100# Check for lazy-loading.
7101{ $as_echo "$as_me:$LINENO: checking for linker lazyload option" >&5
7102$as_echo_n "checking for linker lazyload option... " >&6; }
7103if test "${im_cv_ld_lazyload+set}" = set; then
7104 $as_echo_n "(cached) " >&6
7105else
7106
7107im_cv_ld_lazyload='none'
7108case "${host}" in
7109 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7110 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7111 im_cv_ld_lazyload='-Wl,-zlazyload'
7112 fi
7113 ;;
7114esac
7115
7116fi
7117{ $as_echo "$as_me:$LINENO: result: $im_cv_ld_lazyload" >&5
7118$as_echo "$im_cv_ld_lazyload" >&6; }
7119if test "${im_cv_ld_lazyload}" != 'none' ; then
7120 if test -z "${LDFLAGS}" ; then
7121 LDFLAGS="${im_cv_ld_lazyload}"
7122 else
7123 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7124 fi
7125fi
7126
7127case "$host" in
7128*darwin* | *-macos10*)
7129 if test -d /opt/local ; then
7130 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7131 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7132 elif test -d /sw ; then
7133 CPPFLAGS="$CPPFLAGS -I/sw/include"
7134 LDFLAGS="$LDFLAGS -L/sw/lib"
7135 fi
7136 # Check whether --enable-osx-universal-binary was given.
7137if test "${enable_osx_universal_binary+set}" = set; then
7138 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7139else
7140 build_osxuniversal=no
7141fi
7142
7143
7144 if test "${build_osxuniversal}" != no ; then
7145 if test "$enable_dependency_tracking" != no ; then
7146 { { $as_echo "$as_me:$LINENO: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7147Please re-run configure with these options:
7148 --disable-dependency-tracking --enable-osx-universal-binary
7149 " >&5
7150$as_echo "$as_me: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7151Please re-run configure with these options:
7152 --disable-dependency-tracking --enable-osx-universal-binary
7153 " >&2;}
7154 { (exit 1); exit 1; }; }
7155 fi
7156 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7157 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7158 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7159 fi
7160 ;;
7161esac
7162
7163# Enable support for threads
7164
7165# Check whether --with-threads was given.
7166if test "${with_threads+set}" = set; then
7167 withval=$with_threads; with_threads=$withval
7168else
7169 with_threads='yes'
7170fi
7171
7172
7173have_threads=no
7174if test "$with_threads" != 'no'; then
7175
7176
7177
7178ac_ext=c
7179ac_cpp='$CPP $CPPFLAGS'
7180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7182ac_compiler_gnu=$ac_cv_c_compiler_gnu
7183
7184acx_pthread_ok=no
7185
7186# We used to check for pthread.h first, but this fails if pthread.h
7187# requires special compiler flags (e.g. on True64 or Sequent).
7188# It gets checked for in the link test anyway.
7189
7190# First of all, check if the user has set any of the PTHREAD_LIBS,
7191# etcetera environment variables, and if threads linking works using
7192# them:
7193if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7194 save_CFLAGS="$CFLAGS"
7195 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7196 save_LIBS="$LIBS"
7197 LIBS="$PTHREAD_LIBS $LIBS"
7198 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7199$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
7200 cat >conftest.$ac_ext <<_ACEOF
7201/* confdefs.h. */
7202_ACEOF
7203cat confdefs.h >>conftest.$ac_ext
7204cat >>conftest.$ac_ext <<_ACEOF
7205/* end confdefs.h. */
7206
7207/* Override any GCC internal prototype to avoid an error.
7208 Use char because int might match the return type of a GCC
7209 builtin and then its argument prototype would still apply. */
7210#ifdef __cplusplus
7211extern "C"
7212#endif
7213char pthread_join ();
7214int
7215main ()
7216{
7217return pthread_join ();
7218 ;
7219 return 0;
7220}
7221_ACEOF
7222rm -f conftest.$ac_objext conftest$ac_exeext
7223if { (ac_try="$ac_link"
7224case "(($ac_try" in
7225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7226 *) ac_try_echo=$ac_try;;
7227esac
7228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7229$as_echo "$ac_try_echo") >&5
7230 (eval "$ac_link") 2>conftest.er1
7231 ac_status=$?
7232 grep -v '^ *+' conftest.er1 >conftest.err
7233 rm -f conftest.er1
7234 cat conftest.err >&5
7235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } && {
7237 test -z "$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7239 } && test -s conftest$ac_exeext && {
7240 test "$cross_compiling" = yes ||
7241 $as_test_x conftest$ac_exeext
7242 }; then
7243 acx_pthread_ok=yes
7244else
7245 $as_echo "$as_me: failed program was:" >&5
7246sed 's/^/| /' conftest.$ac_ext >&5
7247
7248
7249fi
7250
7251rm -rf conftest.dSYM
7252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7253 conftest$ac_exeext conftest.$ac_ext
7254 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7255$as_echo "$acx_pthread_ok" >&6; }
7256 if test x"$acx_pthread_ok" = xno; then
7257 PTHREAD_LIBS=""
7258 PTHREAD_CFLAGS=""
7259 fi
7260 LIBS="$save_LIBS"
7261 CFLAGS="$save_CFLAGS"
7262fi
7263
7264# We must check for the threads library under a number of different
7265# names; the ordering is very important because some systems
7266# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7267# libraries is broken (non-POSIX).
7268
7269# Create a list of thread flags to try. Items starting with a "-" are
7270# C compiler flags, and other items are library names, except for "none"
7271# which indicates that we try without any flags at all, and "pthread-config"
7272# which is a program returning the flags for the Pth emulation library.
7273
7274acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7275
7276# The ordering *is* (sometimes) important. Some notes on the
7277# individual items follow:
7278
7279# pthreads: AIX (must check this before -lpthread)
7280# none: in case threads are in libc; should be tried before -Kthread and
7281# other compiler flags to prevent continual compiler warnings
7282# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7283# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7284# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7285# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7286# -pthreads: Solaris/gcc
7287# -mthreads: Mingw32/gcc, Lynx/gcc
7288# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7289# doesn't hurt to check since this sometimes defines pthreads too;
7290# also defines -D_REENTRANT)
7291# ... -mt is also the pthreads flag for HP/aCC
7292# pthread: Linux, etcetera
7293# --thread-safe: KAI C++
7294# pthread-config: use pthread-config program (for GNU Pth library)
7295
7296case "${host_cpu}-${host_os}" in
7297 *solaris*)
7298
7299 # On Solaris (at least, for some versions), libc contains stubbed
7300 # (non-functional) versions of the pthreads routines, so link-based
7301 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7302 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7303 # a function called by this macro, so we could check for that, but
7304 # who knows whether they'll stub that too in a future libc.) So,
7305 # we'll just look for -pthreads and -lpthread first:
7306
7307 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7308 ;;
cristy3ed852e2009-09-05 21:47:34 +00007309esac
7310
7311if test x"$acx_pthread_ok" = xno; then
7312for flag in $acx_pthread_flags; do
7313
7314 case $flag in
7315 none)
7316 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7317$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7318 ;;
7319
7320 -*)
7321 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7322$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7323 PTHREAD_CFLAGS="$flag"
7324 ;;
7325
7326 pthread-config)
7327 # Extract the first word of "pthread-config", so it can be a program name with args.
7328set dummy pthread-config; ac_word=$2
7329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7330$as_echo_n "checking for $ac_word... " >&6; }
7331if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7332 $as_echo_n "(cached) " >&6
7333else
7334 if test -n "$acx_pthread_config"; then
7335 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7336else
7337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338for as_dir in $PATH
7339do
7340 IFS=$as_save_IFS
7341 test -z "$as_dir" && as_dir=.
7342 for ac_exec_ext in '' $ac_executable_extensions; do
7343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7344 ac_cv_prog_acx_pthread_config="yes"
7345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7346 break 2
7347 fi
7348done
7349done
7350IFS=$as_save_IFS
7351
7352 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7353fi
7354fi
7355acx_pthread_config=$ac_cv_prog_acx_pthread_config
7356if test -n "$acx_pthread_config"; then
7357 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7358$as_echo "$acx_pthread_config" >&6; }
7359else
7360 { $as_echo "$as_me:$LINENO: result: no" >&5
7361$as_echo "no" >&6; }
7362fi
7363
7364
7365 if test x"$acx_pthread_config" = xno; then continue; fi
7366 PTHREAD_CFLAGS="`pthread-config --cflags`"
7367 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7368 ;;
7369
7370 *)
7371 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7372$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7373 PTHREAD_LIBS="-l$flag"
7374 ;;
7375 esac
7376
7377 save_LIBS="$LIBS"
7378 save_CFLAGS="$CFLAGS"
7379 LIBS="$PTHREAD_LIBS $LIBS"
7380 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7381
7382 # Check for various functions. We must include pthread.h,
7383 # since some functions may be macros. (On the Sequent, we
7384 # need a special flag -Kthread to make this header compile.)
7385 # We check for pthread_join because it is in -lpthread on IRIX
7386 # while pthread_create is in libc. We check for pthread_attr_init
7387 # due to DEC craziness with -lpthreads. We check for
7388 # pthread_cleanup_push because it is one of the few pthread
7389 # functions on Solaris that doesn't have a non-functional libc stub.
7390 # We try pthread_create on general principles.
7391 cat >conftest.$ac_ext <<_ACEOF
7392/* confdefs.h. */
7393_ACEOF
7394cat confdefs.h >>conftest.$ac_ext
7395cat >>conftest.$ac_ext <<_ACEOF
7396/* end confdefs.h. */
7397#include <pthread.h>
7398int
7399main ()
7400{
7401pthread_t th; pthread_join(th, 0);
7402 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7403 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7404 ;
7405 return 0;
7406}
7407_ACEOF
7408rm -f conftest.$ac_objext conftest$ac_exeext
7409if { (ac_try="$ac_link"
7410case "(($ac_try" in
7411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7412 *) ac_try_echo=$ac_try;;
7413esac
7414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7415$as_echo "$ac_try_echo") >&5
7416 (eval "$ac_link") 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest$ac_exeext && {
7426 test "$cross_compiling" = yes ||
7427 $as_test_x conftest$ac_exeext
7428 }; then
7429 acx_pthread_ok=yes
7430else
7431 $as_echo "$as_me: failed program was:" >&5
7432sed 's/^/| /' conftest.$ac_ext >&5
7433
7434
7435fi
7436
7437rm -rf conftest.dSYM
7438rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7439 conftest$ac_exeext conftest.$ac_ext
7440
7441 LIBS="$save_LIBS"
7442 CFLAGS="$save_CFLAGS"
7443
7444 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7445$as_echo "$acx_pthread_ok" >&6; }
7446 if test "x$acx_pthread_ok" = xyes; then
7447 break;
7448 fi
7449
7450 PTHREAD_LIBS=""
7451 PTHREAD_CFLAGS=""
7452done
7453fi
7454
7455# Various other checks:
7456if test "x$acx_pthread_ok" = xyes; then
7457 save_LIBS="$LIBS"
7458 LIBS="$PTHREAD_LIBS $LIBS"
7459 save_CFLAGS="$CFLAGS"
7460 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7461
7462 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7463 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7464$as_echo_n "checking for joinable pthread attribute... " >&6; }
7465 attr_name=unknown
7466 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7467 cat >conftest.$ac_ext <<_ACEOF
7468/* confdefs.h. */
7469_ACEOF
7470cat confdefs.h >>conftest.$ac_ext
7471cat >>conftest.$ac_ext <<_ACEOF
7472/* end confdefs.h. */
7473#include <pthread.h>
7474int
7475main ()
7476{
7477int attr=$attr; return attr;
7478 ;
7479 return 0;
7480}
7481_ACEOF
7482rm -f conftest.$ac_objext conftest$ac_exeext
7483if { (ac_try="$ac_link"
7484case "(($ac_try" in
7485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7486 *) ac_try_echo=$ac_try;;
7487esac
7488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7489$as_echo "$ac_try_echo") >&5
7490 (eval "$ac_link") 2>conftest.er1
7491 ac_status=$?
7492 grep -v '^ *+' conftest.er1 >conftest.err
7493 rm -f conftest.er1
7494 cat conftest.err >&5
7495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7496 (exit $ac_status); } && {
7497 test -z "$ac_c_werror_flag" ||
7498 test ! -s conftest.err
7499 } && test -s conftest$ac_exeext && {
7500 test "$cross_compiling" = yes ||
7501 $as_test_x conftest$ac_exeext
7502 }; then
7503 attr_name=$attr; break
7504else
7505 $as_echo "$as_me: failed program was:" >&5
7506sed 's/^/| /' conftest.$ac_ext >&5
7507
7508
7509fi
7510
7511rm -rf conftest.dSYM
7512rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7513 conftest$ac_exeext conftest.$ac_ext
7514 done
7515 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
7516$as_echo "$attr_name" >&6; }
7517 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7518
7519cat >>confdefs.h <<_ACEOF
7520#define PTHREAD_CREATE_JOINABLE $attr_name
7521_ACEOF
7522
7523 fi
7524
7525 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7526$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7527 flag=no
7528 case "${host_cpu}-${host_os}" in
7529 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7530 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7531 esac
7532 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
7533$as_echo "${flag}" >&6; }
7534 if test "x$flag" != xno; then
7535 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7536 fi
7537
7538 LIBS="$save_LIBS"
7539 CFLAGS="$save_CFLAGS"
7540
7541 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007542 if test x"$GCC" != xyes; then
7543 for ac_prog in xlc_r cc_r
7544do
7545 # Extract the first word of "$ac_prog", so it can be a program name with args.
7546set dummy $ac_prog; ac_word=$2
cristy3ed852e2009-09-05 21:47:34 +00007547{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7548$as_echo_n "checking for $ac_word... " >&6; }
7549if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7550 $as_echo_n "(cached) " >&6
7551else
7552 if test -n "$PTHREAD_CC"; then
7553 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7554else
7555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556for as_dir in $PATH
7557do
7558 IFS=$as_save_IFS
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
cristy736173a2009-09-20 21:18:22 +00007562 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy3ed852e2009-09-05 21:47:34 +00007563 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7564 break 2
7565 fi
7566done
7567done
7568IFS=$as_save_IFS
7569
cristy3ed852e2009-09-05 21:47:34 +00007570fi
7571fi
7572PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7573if test -n "$PTHREAD_CC"; then
7574 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7575$as_echo "$PTHREAD_CC" >&6; }
7576else
7577 { $as_echo "$as_me:$LINENO: result: no" >&5
7578$as_echo "no" >&6; }
7579fi
7580
cristy736173a2009-09-20 21:18:22 +00007581
7582 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007583done
cristy736173a2009-09-20 21:18:22 +00007584test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007585
cristy736173a2009-09-20 21:18:22 +00007586 else
7587 PTHREAD_CC=$CC
7588 fi
cristy3ed852e2009-09-05 21:47:34 +00007589else
cristy736173a2009-09-20 21:18:22 +00007590 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007591fi
7592
cristy3ed852e2009-09-05 21:47:34 +00007593
7594
7595
7596
7597# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7598if test x"$acx_pthread_ok" = xyes; then
7599
7600cat >>confdefs.h <<\_ACEOF
7601#define HAVE_PTHREAD 1
7602_ACEOF
7603
7604 :
7605else
7606 acx_pthread_ok=no
7607
7608fi
7609ac_ext=c
7610ac_cpp='$CPP $CPPFLAGS'
7611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613ac_compiler_gnu=$ac_cv_c_compiler_gnu
7614
7615
7616 if test "$acx_pthread_ok" = yes; then
7617 have_threads=yes
7618 DEF_THREAD="$PTHREAD_CFLAGS"
7619 CFLAGS="$CFLAGS $DEF_THREAD"
7620 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7621 if test "$CC" != "$PTHREAD_CC"; then
7622 { $as_echo "$as_me:$LINENO: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
7623$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7624 CC="$PTHREAD_CC"
7625 fi
7626 fi
7627fi
7628
7629# Enable support for OpenMP
7630if test "$have_threads" != 'yes'; then
7631 ac_cv_prog_c_openmp=unsupported
7632fi
7633
7634 OPENMP_CFLAGS=
7635 # Check whether --enable-openmp was given.
7636if test "${enable_openmp+set}" = set; then
7637 enableval=$enable_openmp;
7638fi
7639
7640 if test "$enable_openmp" != no; then
7641 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
7642$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
7643if test "${ac_cv_prog_c_openmp+set}" = set; then
7644 $as_echo_n "(cached) " >&6
7645else
7646 cat >conftest.$ac_ext <<_ACEOF
7647
7648#ifndef _OPENMP
7649 choke me
7650#endif
7651#include <omp.h>
7652int main () { return omp_get_num_threads (); }
7653
7654_ACEOF
7655rm -f conftest.$ac_objext conftest$ac_exeext
7656if { (ac_try="$ac_link"
7657case "(($ac_try" in
7658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7659 *) ac_try_echo=$ac_try;;
7660esac
7661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7662$as_echo "$ac_try_echo") >&5
7663 (eval "$ac_link") 2>conftest.er1
7664 ac_status=$?
7665 grep -v '^ *+' conftest.er1 >conftest.err
7666 rm -f conftest.er1
7667 cat conftest.err >&5
7668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest$ac_exeext && {
7673 test "$cross_compiling" = yes ||
7674 $as_test_x conftest$ac_exeext
7675 }; then
7676 ac_cv_prog_c_openmp='none needed'
7677else
7678 $as_echo "$as_me: failed program was:" >&5
7679sed 's/^/| /' conftest.$ac_ext >&5
7680
7681 ac_cv_prog_c_openmp='unsupported'
7682 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7683 ac_save_CFLAGS=$CFLAGS
7684 CFLAGS="$CFLAGS $ac_option"
7685 cat >conftest.$ac_ext <<_ACEOF
7686
7687#ifndef _OPENMP
7688 choke me
7689#endif
7690#include <omp.h>
7691int main () { return omp_get_num_threads (); }
7692
7693_ACEOF
7694rm -f conftest.$ac_objext conftest$ac_exeext
7695if { (ac_try="$ac_link"
7696case "(($ac_try" in
7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7699esac
7700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7701$as_echo "$ac_try_echo") >&5
7702 (eval "$ac_link") 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest$ac_exeext && {
7712 test "$cross_compiling" = yes ||
7713 $as_test_x conftest$ac_exeext
7714 }; then
7715 ac_cv_prog_c_openmp=$ac_option
7716else
7717 $as_echo "$as_me: failed program was:" >&5
7718sed 's/^/| /' conftest.$ac_ext >&5
7719
7720
7721fi
7722
7723rm -rf conftest.dSYM
7724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7725 conftest$ac_exeext conftest.$ac_ext
7726 CFLAGS=$ac_save_CFLAGS
7727 if test "$ac_cv_prog_c_openmp" != unsupported; then
7728 break
7729 fi
7730 done
7731fi
7732
7733rm -rf conftest.dSYM
7734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7735 conftest$ac_exeext conftest.$ac_ext
7736fi
7737{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_c_openmp" >&5
7738$as_echo "$ac_cv_prog_c_openmp" >&6; }
7739 case $ac_cv_prog_c_openmp in #(
7740 "none needed" | unsupported)
7741 ;; #(
7742 *)
7743 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
7744 esac
7745 fi
7746
7747
7748CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7749MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7750
7751
cristy736173a2009-09-20 21:18:22 +00007752# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00007753
7754ac_ext=c
7755ac_cpp='$CPP $CPPFLAGS'
7756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7758ac_compiler_gnu=$ac_cv_c_compiler_gnu
7759
7760{ $as_echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5
7761$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7762if test "${ax_cv_c_compiler_ms+set}" = set; then
7763 $as_echo_n "(cached) " >&6
7764else
7765 cat >conftest.$ac_ext <<_ACEOF
7766/* confdefs.h. */
7767_ACEOF
7768cat confdefs.h >>conftest.$ac_ext
7769cat >>conftest.$ac_ext <<_ACEOF
7770/* end confdefs.h. */
7771
7772int
7773main ()
7774{
7775#ifndef _MSC_VER
7776 choke me
7777#endif
7778
7779 ;
7780 return 0;
7781}
7782_ACEOF
7783rm -f conftest.$ac_objext
7784if { (ac_try="$ac_compile"
7785case "(($ac_try" in
7786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7787 *) ac_try_echo=$ac_try;;
7788esac
7789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7790$as_echo "$ac_try_echo") >&5
7791 (eval "$ac_compile") 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && {
7798 test -z "$ac_c_werror_flag" ||
7799 test ! -s conftest.err
7800 } && test -s conftest.$ac_objext; then
7801 ax_compiler_ms=yes
7802else
7803 $as_echo "$as_me: failed program was:" >&5
7804sed 's/^/| /' conftest.$ac_ext >&5
7805
7806 ax_compiler_ms=no
7807fi
7808
7809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810ax_cv_c_compiler_ms=$ax_compiler_ms
7811
7812fi
7813{ $as_echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5
7814$as_echo "$ax_cv_c_compiler_ms" >&6; }
7815if test X$ax_compiler_ms = Xno; then
7816 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7817fi
7818
7819
cristy736173a2009-09-20 21:18:22 +00007820ax_save_CPPFLAGS=$CPPFLAGS
7821CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7822
7823
cristyc7083c12009-10-14 03:16:55 +00007824for ac_header in CL/opencl.h OpenCL/OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007825do
7826as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7828 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7829$as_echo_n "checking for $ac_header... " >&6; }
7830if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7831 $as_echo_n "(cached) " >&6
7832fi
7833ac_res=`eval 'as_val=${'$as_ac_Header'}
7834 $as_echo "$as_val"'`
7835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7836$as_echo "$ac_res" >&6; }
7837else
7838 # Is the header compilable?
7839{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7840$as_echo_n "checking $ac_header usability... " >&6; }
7841cat >conftest.$ac_ext <<_ACEOF
7842/* confdefs.h. */
7843_ACEOF
7844cat confdefs.h >>conftest.$ac_ext
7845cat >>conftest.$ac_ext <<_ACEOF
7846/* end confdefs.h. */
7847$ac_includes_default
7848#include <$ac_header>
7849_ACEOF
7850rm -f conftest.$ac_objext
7851if { (ac_try="$ac_compile"
7852case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855esac
7856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7857$as_echo "$ac_try_echo") >&5
7858 (eval "$ac_compile") 2>conftest.er1
7859 ac_status=$?
7860 grep -v '^ *+' conftest.er1 >conftest.err
7861 rm -f conftest.er1
7862 cat conftest.err >&5
7863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864 (exit $ac_status); } && {
7865 test -z "$ac_c_werror_flag" ||
7866 test ! -s conftest.err
7867 } && test -s conftest.$ac_objext; then
7868 ac_header_compiler=yes
7869else
7870 $as_echo "$as_me: failed program was:" >&5
7871sed 's/^/| /' conftest.$ac_ext >&5
7872
7873 ac_header_compiler=no
7874fi
7875
7876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7877{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7878$as_echo "$ac_header_compiler" >&6; }
7879
7880# Is the header present?
7881{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7882$as_echo_n "checking $ac_header presence... " >&6; }
7883cat >conftest.$ac_ext <<_ACEOF
7884/* confdefs.h. */
7885_ACEOF
7886cat confdefs.h >>conftest.$ac_ext
7887cat >>conftest.$ac_ext <<_ACEOF
7888/* end confdefs.h. */
7889#include <$ac_header>
7890_ACEOF
7891if { (ac_try="$ac_cpp conftest.$ac_ext"
7892case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7895esac
7896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7897$as_echo "$ac_try_echo") >&5
7898 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7899 ac_status=$?
7900 grep -v '^ *+' conftest.er1 >conftest.err
7901 rm -f conftest.er1
7902 cat conftest.err >&5
7903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } >/dev/null && {
7905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7906 test ! -s conftest.err
7907 }; then
7908 ac_header_preproc=yes
7909else
7910 $as_echo "$as_me: failed program was:" >&5
7911sed 's/^/| /' conftest.$ac_ext >&5
7912
7913 ac_header_preproc=no
7914fi
7915
7916rm -f conftest.err conftest.$ac_ext
7917{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7918$as_echo "$ac_header_preproc" >&6; }
7919
7920# So? What about this header?
7921case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7922 yes:no: )
7923 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7924$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7925 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7926$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7927 ac_header_preproc=yes
7928 ;;
7929 no:yes:* )
7930 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7931$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7932 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7933$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7935$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7937$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7938 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7939$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7941$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7942 ( cat <<\_ASBOX
7943## ----------------------------------------- ##
7944## Report this to http://www.imagemagick.org ##
7945## ----------------------------------------- ##
7946_ASBOX
7947 ) | sed "s/^/$as_me: WARNING: /" >&2
7948 ;;
7949esac
7950{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7951$as_echo_n "checking for $ac_header... " >&6; }
7952if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7953 $as_echo_n "(cached) " >&6
7954else
7955 eval "$as_ac_Header=\$ac_header_preproc"
7956fi
7957ac_res=`eval 'as_val=${'$as_ac_Header'}
7958 $as_echo "$as_val"'`
7959 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7960$as_echo "$ac_res" >&6; }
7961
7962fi
7963as_val=`eval 'as_val=${'$as_ac_Header'}
7964 $as_echo "$as_val"'`
7965 if test "x$as_val" = x""yes; then
7966 cat >>confdefs.h <<_ACEOF
7967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7968_ACEOF
7969
7970fi
7971
7972done
7973
7974CPPFLAGS=$ax_save_CPPFLAGS
7975
7976
7977for ac_header in windows.h
7978do
7979as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7982$as_echo_n "checking for $ac_header... " >&6; }
7983if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7984 $as_echo_n "(cached) " >&6
7985fi
7986ac_res=`eval 'as_val=${'$as_ac_Header'}
7987 $as_echo "$as_val"'`
7988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7989$as_echo "$ac_res" >&6; }
7990else
7991 # Is the header compilable?
7992{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7993$as_echo_n "checking $ac_header usability... " >&6; }
7994cat >conftest.$ac_ext <<_ACEOF
7995/* confdefs.h. */
7996_ACEOF
7997cat confdefs.h >>conftest.$ac_ext
7998cat >>conftest.$ac_ext <<_ACEOF
7999/* end confdefs.h. */
8000$ac_includes_default
8001#include <$ac_header>
8002_ACEOF
8003rm -f conftest.$ac_objext
8004if { (ac_try="$ac_compile"
8005case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008esac
8009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8010$as_echo "$ac_try_echo") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest.$ac_objext; then
8021 ac_header_compiler=yes
8022else
8023 $as_echo "$as_me: failed program was:" >&5
8024sed 's/^/| /' conftest.$ac_ext >&5
8025
8026 ac_header_compiler=no
8027fi
8028
8029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8031$as_echo "$ac_header_compiler" >&6; }
8032
8033# Is the header present?
8034{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8035$as_echo_n "checking $ac_header presence... " >&6; }
8036cat >conftest.$ac_ext <<_ACEOF
8037/* confdefs.h. */
8038_ACEOF
8039cat confdefs.h >>conftest.$ac_ext
8040cat >>conftest.$ac_ext <<_ACEOF
8041/* end confdefs.h. */
8042#include <$ac_header>
8043_ACEOF
8044if { (ac_try="$ac_cpp conftest.$ac_ext"
8045case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8048esac
8049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8050$as_echo "$ac_try_echo") >&5
8051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } >/dev/null && {
8058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 }; then
8061 ac_header_preproc=yes
8062else
8063 $as_echo "$as_me: failed program was:" >&5
8064sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 ac_header_preproc=no
8067fi
8068
8069rm -f conftest.err conftest.$ac_ext
8070{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8071$as_echo "$ac_header_preproc" >&6; }
8072
8073# So? What about this header?
8074case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8075 yes:no: )
8076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8077$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8079$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8080 ac_header_preproc=yes
8081 ;;
8082 no:yes:* )
8083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8084$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8086$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8088$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8090$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8092$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8094$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8095 ( cat <<\_ASBOX
8096## ----------------------------------------- ##
8097## Report this to http://www.imagemagick.org ##
8098## ----------------------------------------- ##
8099_ASBOX
8100 ) | sed "s/^/$as_me: WARNING: /" >&2
8101 ;;
8102esac
8103{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8104$as_echo_n "checking for $ac_header... " >&6; }
8105if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8106 $as_echo_n "(cached) " >&6
8107else
8108 eval "$as_ac_Header=\$ac_header_preproc"
8109fi
8110ac_res=`eval 'as_val=${'$as_ac_Header'}
8111 $as_echo "$as_val"'`
8112 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8113$as_echo "$ac_res" >&6; }
8114
8115fi
8116as_val=`eval 'as_val=${'$as_ac_Header'}
8117 $as_echo "$as_val"'`
8118 if test "x$as_val" = x""yes; then
8119 cat >>confdefs.h <<_ACEOF
8120#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8121_ACEOF
8122
8123fi
8124
8125done
8126
8127
8128
8129
8130{ $as_echo "$as_me:$LINENO: checking for OpenCL library" >&5
8131$as_echo_n "checking for OpenCL library... " >&6; }
8132if test "${ax_cv_check_cl_libcl+set}" = set; then
8133 $as_echo_n "(cached) " >&6
8134else
8135 ax_cv_check_cl_libcl=no
8136case $host_cpu in
8137 x86_64) ax_check_cl_libdir=lib64 ;;
8138 *) ax_check_cl_libdir=lib ;;
8139esac
8140ax_save_CPPFLAGS=$CPPFLAGS
8141CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8142ax_save_LIBS=$LIBS
8143LIBS=""
cristya49aa422009-09-20 23:40:10 +00008144ax_check_libs="-lOpenCL -lCL"
cristy736173a2009-09-20 21:18:22 +00008145for ax_lib in $ax_check_libs; do
8146 if test X$ax_compiler_ms = Xyes; then
8147 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8148else
8149 ax_try_lib=$ax_lib
8150fi
8151
8152 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8153cat >conftest.$ac_ext <<_ACEOF
8154/* confdefs.h. */
8155_ACEOF
8156cat confdefs.h >>conftest.$ac_ext
8157cat >>conftest.$ac_ext <<_ACEOF
8158/* end confdefs.h. */
8159
8160# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8161# include <windows.h>
8162# endif
cristya03a0852009-10-13 02:02:39 +00008163# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00008164# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00008165# elif defined(HAVE_OPENCL_OPENCL_H)
8166# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00008167# else
cristya03a0852009-10-13 02:02:39 +00008168# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00008169# endif
8170int
8171main ()
8172{
cristyc7083c12009-10-14 03:16:55 +00008173clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008174 ;
8175 return 0;
8176}
8177_ACEOF
8178rm -f conftest.$ac_objext conftest$ac_exeext
8179if { (ac_try="$ac_link"
8180case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183esac
8184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185$as_echo "$ac_try_echo") >&5
8186 (eval "$ac_link") 2>conftest.er1
8187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
8191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest$ac_exeext && {
8196 test "$cross_compiling" = yes ||
8197 $as_test_x conftest$ac_exeext
8198 }; then
8199 ax_cv_check_cl_libcl=$ax_try_lib; break
8200else
8201 $as_echo "$as_me: failed program was:" >&5
8202sed 's/^/| /' conftest.$ac_ext >&5
8203
8204 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
8205 cat >conftest.$ac_ext <<_ACEOF
8206/* confdefs.h. */
8207_ACEOF
8208cat confdefs.h >>conftest.$ac_ext
8209cat >>conftest.$ac_ext <<_ACEOF
8210/* end confdefs.h. */
8211
8212# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8213# include <windows.h>
8214# endif
cristya03a0852009-10-13 02:02:39 +00008215# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00008216# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00008217# elif defined(HAVE_OPENCL_OPENCL_H)
8218# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00008219# else
cristya03a0852009-10-13 02:02:39 +00008220# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00008221# endif
8222int
8223main ()
8224{
cristyc7083c12009-10-14 03:16:55 +00008225clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008226 ;
8227 return 0;
8228}
8229_ACEOF
8230rm -f conftest.$ac_objext conftest$ac_exeext
8231if { (ac_try="$ac_link"
8232case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8235esac
8236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8237$as_echo "$ac_try_echo") >&5
8238 (eval "$ac_link") 2>conftest.er1
8239 ac_status=$?
8240 grep -v '^ *+' conftest.er1 >conftest.err
8241 rm -f conftest.er1
8242 cat conftest.err >&5
8243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } && {
8245 test -z "$ac_c_werror_flag" ||
8246 test ! -s conftest.err
8247 } && test -s conftest$ac_exeext && {
8248 test "$cross_compiling" = yes ||
8249 $as_test_x conftest$ac_exeext
8250 }; then
8251 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8252else
8253 $as_echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
8255
8256 ax_check_cl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib:/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
8257 cat >conftest.$ac_ext <<_ACEOF
8258/* confdefs.h. */
8259_ACEOF
8260cat confdefs.h >>conftest.$ac_ext
8261cat >>conftest.$ac_ext <<_ACEOF
8262/* end confdefs.h. */
8263
8264# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8265# include <windows.h>
8266# endif
cristya03a0852009-10-13 02:02:39 +00008267# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00008268# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00008269# elif defined(HAVE_OPENCL_OPENCL_H)
8270# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00008271# else
cristya03a0852009-10-13 02:02:39 +00008272# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00008273# endif
8274int
8275main ()
8276{
cristyc7083c12009-10-14 03:16:55 +00008277clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008278 ;
8279 return 0;
8280}
8281_ACEOF
8282rm -f conftest.$ac_objext conftest$ac_exeext
8283if { (ac_try="$ac_link"
8284case "(($ac_try" in
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8287esac
8288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8289$as_echo "$ac_try_echo") >&5
8290 (eval "$ac_link") 2>conftest.er1
8291 ac_status=$?
8292 grep -v '^ *+' conftest.er1 >conftest.err
8293 rm -f conftest.er1
8294 cat conftest.err >&5
8295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296 (exit $ac_status); } && {
8297 test -z "$ac_c_werror_flag" ||
8298 test ! -s conftest.err
8299 } && test -s conftest$ac_exeext && {
8300 test "$cross_compiling" = yes ||
8301 $as_test_x conftest$ac_exeext
8302 }; then
8303 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
8304else
8305 $as_echo "$as_me: failed program was:" >&5
8306sed 's/^/| /' conftest.$ac_ext >&5
8307
8308
8309fi
8310
8311rm -rf conftest.dSYM
8312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8313 conftest$ac_exeext conftest.$ac_ext
8314fi
8315
8316rm -rf conftest.dSYM
8317rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8318 conftest$ac_exeext conftest.$ac_ext
8319fi
8320
8321rm -rf conftest.dSYM
8322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8323 conftest$ac_exeext conftest.$ac_ext
8324done
8325
8326if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then
8327 LIBS='-framework OpenCL'
8328 cat >conftest.$ac_ext <<_ACEOF
8329/* confdefs.h. */
8330_ACEOF
8331cat confdefs.h >>conftest.$ac_ext
8332cat >>conftest.$ac_ext <<_ACEOF
8333/* end confdefs.h. */
8334
8335# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8336# include <windows.h>
8337# endif
cristya03a0852009-10-13 02:02:39 +00008338# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00008339# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00008340# elif defined(HAVE_OPENCL_OPENCL_H)
8341# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00008342# else
cristya03a0852009-10-13 02:02:39 +00008343# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00008344# endif
8345int
8346main ()
8347{
cristyc7083c12009-10-14 03:16:55 +00008348clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008349 ;
8350 return 0;
8351}
8352_ACEOF
8353rm -f conftest.$ac_objext conftest$ac_exeext
8354if { (ac_try="$ac_link"
8355case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8358esac
8359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8360$as_echo "$ac_try_echo") >&5
8361 (eval "$ac_link") 2>conftest.er1
8362 ac_status=$?
8363 grep -v '^ *+' conftest.er1 >conftest.err
8364 rm -f conftest.er1
8365 cat conftest.err >&5
8366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); } && {
8368 test -z "$ac_c_werror_flag" ||
8369 test ! -s conftest.err
8370 } && test -s conftest$ac_exeext && {
8371 test "$cross_compiling" = yes ||
8372 $as_test_x conftest$ac_exeext
8373 }; then
8374 ax_cv_check_cl_libcl=$LIBS
8375else
8376 $as_echo "$as_me: failed program was:" >&5
8377sed 's/^/| /' conftest.$ac_ext >&5
8378
8379
8380fi
8381
8382rm -rf conftest.dSYM
8383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8384 conftest$ac_exeext conftest.$ac_ext
8385fi
8386
8387
8388LIBS=$ax_save_LIBS
8389CPPFLAGS=$ax_save_CPPFLAGS
8390fi
8391{ $as_echo "$as_me:$LINENO: result: $ax_cv_check_cl_libcl" >&5
8392$as_echo "$ax_cv_check_cl_libcl" >&6; }
8393
8394if test "X$ax_cv_check_cl_libcl" = Xno; then
8395 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8396else
8397 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
8398fi
8399
8400ac_ext=c
8401ac_cpp='$CPP $CPPFLAGS'
8402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8404ac_compiler_gnu=$ac_cv_c_compiler_gnu
8405
8406
8407
8408
8409
cristyc7083c12009-10-14 03:16:55 +00008410CFLAGS="$CL_CFLAGS $CFLAGS"
8411LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00008412
cristy3ed852e2009-09-05 21:47:34 +00008413########
8414#
8415# Check for large file support
8416#
8417########
8418# Check whether --enable-largefile was given.
8419if test "${enable_largefile+set}" = set; then
8420 enableval=$enable_largefile;
8421fi
8422
8423if test "$enable_largefile" != no; then
8424
8425 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8426$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8427if test "${ac_cv_sys_largefile_CC+set}" = set; then
8428 $as_echo_n "(cached) " >&6
8429else
8430 ac_cv_sys_largefile_CC=no
8431 if test "$GCC" != yes; then
8432 ac_save_CC=$CC
8433 while :; do
8434 # IRIX 6.2 and later do not support large files by default,
8435 # so use the C compiler's -n32 option if that helps.
8436 cat >conftest.$ac_ext <<_ACEOF
8437/* confdefs.h. */
8438_ACEOF
8439cat confdefs.h >>conftest.$ac_ext
8440cat >>conftest.$ac_ext <<_ACEOF
8441/* end confdefs.h. */
8442#include <sys/types.h>
8443 /* Check that off_t can represent 2**63 - 1 correctly.
8444 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8445 since some C++ compilers masquerading as C compilers
8446 incorrectly reject 9223372036854775807. */
8447#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8448 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8449 && LARGE_OFF_T % 2147483647 == 1)
8450 ? 1 : -1];
8451int
8452main ()
8453{
8454
8455 ;
8456 return 0;
8457}
8458_ACEOF
8459 rm -f conftest.$ac_objext
8460if { (ac_try="$ac_compile"
8461case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464esac
8465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8466$as_echo "$ac_try_echo") >&5
8467 (eval "$ac_compile") 2>conftest.er1
8468 ac_status=$?
8469 grep -v '^ *+' conftest.er1 >conftest.err
8470 rm -f conftest.er1
8471 cat conftest.err >&5
8472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } && {
8474 test -z "$ac_c_werror_flag" ||
8475 test ! -s conftest.err
8476 } && test -s conftest.$ac_objext; then
8477 break
8478else
8479 $as_echo "$as_me: failed program was:" >&5
8480sed 's/^/| /' conftest.$ac_ext >&5
8481
8482
8483fi
8484
8485rm -f core conftest.err conftest.$ac_objext
8486 CC="$CC -n32"
8487 rm -f conftest.$ac_objext
8488if { (ac_try="$ac_compile"
8489case "(($ac_try" in
8490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8491 *) ac_try_echo=$ac_try;;
8492esac
8493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8494$as_echo "$ac_try_echo") >&5
8495 (eval "$ac_compile") 2>conftest.er1
8496 ac_status=$?
8497 grep -v '^ *+' conftest.er1 >conftest.err
8498 rm -f conftest.er1
8499 cat conftest.err >&5
8500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && {
8502 test -z "$ac_c_werror_flag" ||
8503 test ! -s conftest.err
8504 } && test -s conftest.$ac_objext; then
8505 ac_cv_sys_largefile_CC=' -n32'; break
8506else
8507 $as_echo "$as_me: failed program was:" >&5
8508sed 's/^/| /' conftest.$ac_ext >&5
8509
8510
8511fi
8512
8513rm -f core conftest.err conftest.$ac_objext
8514 break
8515 done
8516 CC=$ac_save_CC
8517 rm -f conftest.$ac_ext
8518 fi
8519fi
8520{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8521$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8522 if test "$ac_cv_sys_largefile_CC" != no; then
8523 CC=$CC$ac_cv_sys_largefile_CC
8524 fi
8525
8526 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8527$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8528if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8529 $as_echo_n "(cached) " >&6
8530else
8531 while :; do
8532 cat >conftest.$ac_ext <<_ACEOF
8533/* confdefs.h. */
8534_ACEOF
8535cat confdefs.h >>conftest.$ac_ext
8536cat >>conftest.$ac_ext <<_ACEOF
8537/* end confdefs.h. */
8538#include <sys/types.h>
8539 /* Check that off_t can represent 2**63 - 1 correctly.
8540 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8541 since some C++ compilers masquerading as C compilers
8542 incorrectly reject 9223372036854775807. */
8543#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8544 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8545 && LARGE_OFF_T % 2147483647 == 1)
8546 ? 1 : -1];
8547int
8548main ()
8549{
8550
8551 ;
8552 return 0;
8553}
8554_ACEOF
8555rm -f conftest.$ac_objext
8556if { (ac_try="$ac_compile"
8557case "(($ac_try" in
8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8559 *) ac_try_echo=$ac_try;;
8560esac
8561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8562$as_echo "$ac_try_echo") >&5
8563 (eval "$ac_compile") 2>conftest.er1
8564 ac_status=$?
8565 grep -v '^ *+' conftest.er1 >conftest.err
8566 rm -f conftest.er1
8567 cat conftest.err >&5
8568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } && {
8570 test -z "$ac_c_werror_flag" ||
8571 test ! -s conftest.err
8572 } && test -s conftest.$ac_objext; then
8573 ac_cv_sys_file_offset_bits=no; break
8574else
8575 $as_echo "$as_me: failed program was:" >&5
8576sed 's/^/| /' conftest.$ac_ext >&5
8577
8578
8579fi
8580
8581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 cat >conftest.$ac_ext <<_ACEOF
8583/* confdefs.h. */
8584_ACEOF
8585cat confdefs.h >>conftest.$ac_ext
8586cat >>conftest.$ac_ext <<_ACEOF
8587/* end confdefs.h. */
8588#define _FILE_OFFSET_BITS 64
8589#include <sys/types.h>
8590 /* Check that off_t can represent 2**63 - 1 correctly.
8591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8592 since some C++ compilers masquerading as C compilers
8593 incorrectly reject 9223372036854775807. */
8594#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8596 && LARGE_OFF_T % 2147483647 == 1)
8597 ? 1 : -1];
8598int
8599main ()
8600{
8601
8602 ;
8603 return 0;
8604}
8605_ACEOF
8606rm -f conftest.$ac_objext
8607if { (ac_try="$ac_compile"
8608case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8611esac
8612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8613$as_echo "$ac_try_echo") >&5
8614 (eval "$ac_compile") 2>conftest.er1
8615 ac_status=$?
8616 grep -v '^ *+' conftest.er1 >conftest.err
8617 rm -f conftest.er1
8618 cat conftest.err >&5
8619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); } && {
8621 test -z "$ac_c_werror_flag" ||
8622 test ! -s conftest.err
8623 } && test -s conftest.$ac_objext; then
8624 ac_cv_sys_file_offset_bits=64; break
8625else
8626 $as_echo "$as_me: failed program was:" >&5
8627sed 's/^/| /' conftest.$ac_ext >&5
8628
8629
8630fi
8631
8632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8633 ac_cv_sys_file_offset_bits=unknown
8634 break
8635done
8636fi
8637{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8638$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8639case $ac_cv_sys_file_offset_bits in #(
8640 no | unknown) ;;
8641 *)
8642cat >>confdefs.h <<_ACEOF
8643#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8644_ACEOF
8645;;
8646esac
8647rm -rf conftest*
8648 if test $ac_cv_sys_file_offset_bits = unknown; then
8649 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8650$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8651if test "${ac_cv_sys_large_files+set}" = set; then
8652 $as_echo_n "(cached) " >&6
8653else
8654 while :; do
8655 cat >conftest.$ac_ext <<_ACEOF
8656/* confdefs.h. */
8657_ACEOF
8658cat confdefs.h >>conftest.$ac_ext
8659cat >>conftest.$ac_ext <<_ACEOF
8660/* end confdefs.h. */
8661#include <sys/types.h>
8662 /* Check that off_t can represent 2**63 - 1 correctly.
8663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8664 since some C++ compilers masquerading as C compilers
8665 incorrectly reject 9223372036854775807. */
8666#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8668 && LARGE_OFF_T % 2147483647 == 1)
8669 ? 1 : -1];
8670int
8671main ()
8672{
8673
8674 ;
8675 return 0;
8676}
8677_ACEOF
8678rm -f conftest.$ac_objext
8679if { (ac_try="$ac_compile"
8680case "(($ac_try" in
8681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8682 *) ac_try_echo=$ac_try;;
8683esac
8684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8685$as_echo "$ac_try_echo") >&5
8686 (eval "$ac_compile") 2>conftest.er1
8687 ac_status=$?
8688 grep -v '^ *+' conftest.er1 >conftest.err
8689 rm -f conftest.er1
8690 cat conftest.err >&5
8691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8692 (exit $ac_status); } && {
8693 test -z "$ac_c_werror_flag" ||
8694 test ! -s conftest.err
8695 } && test -s conftest.$ac_objext; then
8696 ac_cv_sys_large_files=no; break
8697else
8698 $as_echo "$as_me: failed program was:" >&5
8699sed 's/^/| /' conftest.$ac_ext >&5
8700
8701
8702fi
8703
8704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 cat >conftest.$ac_ext <<_ACEOF
8706/* confdefs.h. */
8707_ACEOF
8708cat confdefs.h >>conftest.$ac_ext
8709cat >>conftest.$ac_ext <<_ACEOF
8710/* end confdefs.h. */
8711#define _LARGE_FILES 1
8712#include <sys/types.h>
8713 /* Check that off_t can represent 2**63 - 1 correctly.
8714 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8715 since some C++ compilers masquerading as C compilers
8716 incorrectly reject 9223372036854775807. */
8717#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8718 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8719 && LARGE_OFF_T % 2147483647 == 1)
8720 ? 1 : -1];
8721int
8722main ()
8723{
8724
8725 ;
8726 return 0;
8727}
8728_ACEOF
8729rm -f conftest.$ac_objext
8730if { (ac_try="$ac_compile"
8731case "(($ac_try" in
8732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8733 *) ac_try_echo=$ac_try;;
8734esac
8735eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8736$as_echo "$ac_try_echo") >&5
8737 (eval "$ac_compile") 2>conftest.er1
8738 ac_status=$?
8739 grep -v '^ *+' conftest.er1 >conftest.err
8740 rm -f conftest.er1
8741 cat conftest.err >&5
8742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8743 (exit $ac_status); } && {
8744 test -z "$ac_c_werror_flag" ||
8745 test ! -s conftest.err
8746 } && test -s conftest.$ac_objext; then
8747 ac_cv_sys_large_files=1; break
8748else
8749 $as_echo "$as_me: failed program was:" >&5
8750sed 's/^/| /' conftest.$ac_ext >&5
8751
8752
8753fi
8754
8755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756 ac_cv_sys_large_files=unknown
8757 break
8758done
8759fi
8760{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8761$as_echo "$ac_cv_sys_large_files" >&6; }
8762case $ac_cv_sys_large_files in #(
8763 no | unknown) ;;
8764 *)
8765cat >>confdefs.h <<_ACEOF
8766#define _LARGE_FILES $ac_cv_sys_large_files
8767_ACEOF
8768;;
8769esac
8770rm -rf conftest*
8771 fi
8772fi
8773
8774{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8775$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8776if test "${ac_cv_sys_largefile_source+set}" = set; then
8777 $as_echo_n "(cached) " >&6
8778else
8779 while :; do
8780 cat >conftest.$ac_ext <<_ACEOF
8781/* confdefs.h. */
8782_ACEOF
8783cat confdefs.h >>conftest.$ac_ext
8784cat >>conftest.$ac_ext <<_ACEOF
8785/* end confdefs.h. */
8786#include <sys/types.h> /* for off_t */
8787 #include <stdio.h>
8788int
8789main ()
8790{
8791int (*fp) (FILE *, off_t, int) = fseeko;
8792 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8793 ;
8794 return 0;
8795}
8796_ACEOF
8797rm -f conftest.$ac_objext conftest$ac_exeext
8798if { (ac_try="$ac_link"
8799case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8802esac
8803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8804$as_echo "$ac_try_echo") >&5
8805 (eval "$ac_link") 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest$ac_exeext && {
8815 test "$cross_compiling" = yes ||
8816 $as_test_x conftest$ac_exeext
8817 }; then
8818 ac_cv_sys_largefile_source=no; break
8819else
8820 $as_echo "$as_me: failed program was:" >&5
8821sed 's/^/| /' conftest.$ac_ext >&5
8822
8823
8824fi
8825
8826rm -rf conftest.dSYM
8827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8828 conftest$ac_exeext conftest.$ac_ext
8829 cat >conftest.$ac_ext <<_ACEOF
8830/* confdefs.h. */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
8834/* end confdefs.h. */
8835#define _LARGEFILE_SOURCE 1
8836#include <sys/types.h> /* for off_t */
8837 #include <stdio.h>
8838int
8839main ()
8840{
8841int (*fp) (FILE *, off_t, int) = fseeko;
8842 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8843 ;
8844 return 0;
8845}
8846_ACEOF
8847rm -f conftest.$ac_objext conftest$ac_exeext
8848if { (ac_try="$ac_link"
8849case "(($ac_try" in
8850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8851 *) ac_try_echo=$ac_try;;
8852esac
8853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8854$as_echo "$ac_try_echo") >&5
8855 (eval "$ac_link") 2>conftest.er1
8856 ac_status=$?
8857 grep -v '^ *+' conftest.er1 >conftest.err
8858 rm -f conftest.er1
8859 cat conftest.err >&5
8860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8861 (exit $ac_status); } && {
8862 test -z "$ac_c_werror_flag" ||
8863 test ! -s conftest.err
8864 } && test -s conftest$ac_exeext && {
8865 test "$cross_compiling" = yes ||
8866 $as_test_x conftest$ac_exeext
8867 }; then
8868 ac_cv_sys_largefile_source=1; break
8869else
8870 $as_echo "$as_me: failed program was:" >&5
8871sed 's/^/| /' conftest.$ac_ext >&5
8872
8873
8874fi
8875
8876rm -rf conftest.dSYM
8877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8878 conftest$ac_exeext conftest.$ac_ext
8879 ac_cv_sys_largefile_source=unknown
8880 break
8881done
8882fi
8883{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8884$as_echo "$ac_cv_sys_largefile_source" >&6; }
8885case $ac_cv_sys_largefile_source in #(
8886 no | unknown) ;;
8887 *)
8888cat >>confdefs.h <<_ACEOF
8889#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8890_ACEOF
8891;;
8892esac
8893rm -rf conftest*
8894
8895# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8896# in glibc 2.1.3, but that breaks too many other things.
8897# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8898if test $ac_cv_sys_largefile_source != unknown; then
8899
8900cat >>confdefs.h <<\_ACEOF
8901#define HAVE_FSEEKO 1
8902_ACEOF
8903
8904fi
8905
8906LFS_CPPFLAGS=''
8907if test "$enable_largefile" != no; then
8908 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8909 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8910 else
8911 { $as_echo "$as_me:$LINENO: checking for native large file support" >&5
8912$as_echo_n "checking for native large file support... " >&6; }
8913 if test "$cross_compiling" = yes; then
8914 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8916{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8917See \`config.log' for more details." >&5
8918$as_echo "$as_me: error: cannot run test program while cross compiling
8919See \`config.log' for more details." >&2;}
8920 { (exit 1); exit 1; }; }; }
8921else
8922 cat >conftest.$ac_ext <<_ACEOF
8923#include <unistd.h>
8924 main () {
8925 exit(!(sizeof(off_t) == 8));
8926 }
8927_ACEOF
8928rm -f conftest$ac_exeext
8929if { (ac_try="$ac_link"
8930case "(($ac_try" in
8931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932 *) ac_try_echo=$ac_try;;
8933esac
8934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8935$as_echo "$ac_try_echo") >&5
8936 (eval "$ac_link") 2>&5
8937 ac_status=$?
8938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8940 { (case "(($ac_try" in
8941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8942 *) ac_try_echo=$ac_try;;
8943esac
8944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8945$as_echo "$ac_try_echo") >&5
8946 (eval "$ac_try") 2>&5
8947 ac_status=$?
8948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; }; then
8950 ac_cv_sys_file_offset_bits=64; cat >>confdefs.h <<\_ACEOF
8951#define _FILE_OFFSET_BITS 64
8952_ACEOF
8953
8954 { $as_echo "$as_me:$LINENO: result: yes" >&5
8955$as_echo "yes" >&6; }
8956else
8957 $as_echo "$as_me: program exited with status $ac_status" >&5
8958$as_echo "$as_me: failed program was:" >&5
8959sed 's/^/| /' conftest.$ac_ext >&5
8960
8961( exit $ac_status )
8962{ $as_echo "$as_me:$LINENO: result: no" >&5
8963$as_echo "no" >&6; }
8964fi
8965rm -rf conftest.dSYM
8966rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8967fi
8968
8969
8970 fi
8971 if test "$ac_cv_sys_large_files" != 'no'; then
8972 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8973 fi
8974 if test "$ac_cv_sys_largefile_source" != 'no'; then
8975 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8976 fi
8977fi
8978
8979
8980#
8981# Configure libtool & libltdl
8982#
8983# Configure libtool
8984enable_dlopen=yes
8985
8986
8987
8988case `pwd` in
8989 *\ * | *\ *)
8990 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8991$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8992esac
8993
8994
8995
8996macro_version='2.2.6'
8997macro_revision='1.3012'
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011ltmain="$ac_aux_dir/ltmain.sh"
9012
9013{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
9014$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9015if test "${lt_cv_path_NM+set}" = set; then
9016 $as_echo_n "(cached) " >&6
9017else
9018 if test -n "$NM"; then
9019 # Let the user override the test.
9020 lt_cv_path_NM="$NM"
9021else
9022 lt_nm_to_check="${ac_tool_prefix}nm"
9023 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9024 lt_nm_to_check="$lt_nm_to_check nm"
9025 fi
9026 for lt_tmp_nm in $lt_nm_to_check; do
9027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9028 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9029 IFS="$lt_save_ifs"
9030 test -z "$ac_dir" && ac_dir=.
9031 tmp_nm="$ac_dir/$lt_tmp_nm"
9032 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9033 # Check to see if the nm accepts a BSD-compat flag.
9034 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9035 # nm: unknown option "B" ignored
9036 # Tru64's nm complains that /dev/null is an invalid object file
9037 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9038 */dev/null* | *'Invalid file or object type'*)
9039 lt_cv_path_NM="$tmp_nm -B"
9040 break
9041 ;;
9042 *)
9043 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9044 */dev/null*)
9045 lt_cv_path_NM="$tmp_nm -p"
9046 break
9047 ;;
9048 *)
9049 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9050 continue # so that we can try to find one that supports BSD flags
9051 ;;
9052 esac
9053 ;;
9054 esac
9055 fi
9056 done
9057 IFS="$lt_save_ifs"
9058 done
9059 : ${lt_cv_path_NM=no}
9060fi
9061fi
9062{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9063$as_echo "$lt_cv_path_NM" >&6; }
9064if test "$lt_cv_path_NM" != "no"; then
9065 NM="$lt_cv_path_NM"
9066else
9067 # Didn't find any BSD compatible name lister, look for dumpbin.
9068 if test -n "$ac_tool_prefix"; then
9069 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9070 do
9071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9072set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9073{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9074$as_echo_n "checking for $ac_word... " >&6; }
9075if test "${ac_cv_prog_DUMPBIN+set}" = set; then
9076 $as_echo_n "(cached) " >&6
9077else
9078 if test -n "$DUMPBIN"; then
9079 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9080else
9081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9082for as_dir in $PATH
9083do
9084 IFS=$as_save_IFS
9085 test -z "$as_dir" && as_dir=.
9086 for ac_exec_ext in '' $ac_executable_extensions; do
9087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9088 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9089 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9090 break 2
9091 fi
9092done
9093done
9094IFS=$as_save_IFS
9095
9096fi
9097fi
9098DUMPBIN=$ac_cv_prog_DUMPBIN
9099if test -n "$DUMPBIN"; then
9100 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
9101$as_echo "$DUMPBIN" >&6; }
9102else
9103 { $as_echo "$as_me:$LINENO: result: no" >&5
9104$as_echo "no" >&6; }
9105fi
9106
9107
9108 test -n "$DUMPBIN" && break
9109 done
9110fi
9111if test -z "$DUMPBIN"; then
9112 ac_ct_DUMPBIN=$DUMPBIN
9113 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9114do
9115 # Extract the first word of "$ac_prog", so it can be a program name with args.
9116set dummy $ac_prog; ac_word=$2
9117{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9118$as_echo_n "checking for $ac_word... " >&6; }
9119if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
9120 $as_echo_n "(cached) " >&6
9121else
9122 if test -n "$ac_ct_DUMPBIN"; then
9123 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9124else
9125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9126for as_dir in $PATH
9127do
9128 IFS=$as_save_IFS
9129 test -z "$as_dir" && as_dir=.
9130 for ac_exec_ext in '' $ac_executable_extensions; do
9131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9132 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9133 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9134 break 2
9135 fi
9136done
9137done
9138IFS=$as_save_IFS
9139
9140fi
9141fi
9142ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9143if test -n "$ac_ct_DUMPBIN"; then
9144 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
9145$as_echo "$ac_ct_DUMPBIN" >&6; }
9146else
9147 { $as_echo "$as_me:$LINENO: result: no" >&5
9148$as_echo "no" >&6; }
9149fi
9150
9151
9152 test -n "$ac_ct_DUMPBIN" && break
9153done
9154
9155 if test "x$ac_ct_DUMPBIN" = x; then
9156 DUMPBIN=":"
9157 else
9158 case $cross_compiling:$ac_tool_warned in
9159yes:)
9160{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9161$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9162ac_tool_warned=yes ;;
9163esac
9164 DUMPBIN=$ac_ct_DUMPBIN
9165 fi
9166fi
9167
9168
9169 if test "$DUMPBIN" != ":"; then
9170 NM="$DUMPBIN"
9171 fi
9172fi
9173test -z "$NM" && NM=nm
9174
9175
9176
9177
9178
9179
9180{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
9181$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9182if test "${lt_cv_nm_interface+set}" = set; then
9183 $as_echo_n "(cached) " >&6
9184else
9185 lt_cv_nm_interface="BSD nm"
9186 echo "int some_variable = 0;" > conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +00009187 (eval echo "\"\$as_me:9187: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009188 (eval "$ac_compile" 2>conftest.err)
9189 cat conftest.err >&5
cristyc7083c12009-10-14 03:16:55 +00009190 (eval echo "\"\$as_me:9190: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009191 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9192 cat conftest.err >&5
cristyc7083c12009-10-14 03:16:55 +00009193 (eval echo "\"\$as_me:9193: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009194 cat conftest.out >&5
9195 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9196 lt_cv_nm_interface="MS dumpbin"
9197 fi
9198 rm -f conftest*
9199fi
9200{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
9201$as_echo "$lt_cv_nm_interface" >&6; }
9202
9203# find the maximum length of command line arguments
9204{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9205$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9206if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9207 $as_echo_n "(cached) " >&6
9208else
9209 i=0
9210 teststring="ABCD"
9211
9212 case $build_os in
9213 msdosdjgpp*)
9214 # On DJGPP, this test can blow up pretty badly due to problems in libc
9215 # (any single argument exceeding 2000 bytes causes a buffer overrun
9216 # during glob expansion). Even if it were fixed, the result of this
9217 # check would be larger than it should be.
9218 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9219 ;;
9220
9221 gnu*)
9222 # Under GNU Hurd, this test is not required because there is
9223 # no limit to the length of command line arguments.
9224 # Libtool will interpret -1 as no limit whatsoever
9225 lt_cv_sys_max_cmd_len=-1;
9226 ;;
9227
9228 cygwin* | mingw* | cegcc*)
9229 # On Win9x/ME, this test blows up -- it succeeds, but takes
9230 # about 5 minutes as the teststring grows exponentially.
9231 # Worse, since 9x/ME are not pre-emptively multitasking,
9232 # you end up with a "frozen" computer, even though with patience
9233 # the test eventually succeeds (with a max line length of 256k).
9234 # Instead, let's just punt: use the minimum linelength reported by
9235 # all of the supported platforms: 8192 (on NT/2K/XP).
9236 lt_cv_sys_max_cmd_len=8192;
9237 ;;
9238
9239 amigaos*)
9240 # On AmigaOS with pdksh, this test takes hours, literally.
9241 # So we just punt and use a minimum line length of 8192.
9242 lt_cv_sys_max_cmd_len=8192;
9243 ;;
9244
9245 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9246 # This has been around since 386BSD, at least. Likely further.
9247 if test -x /sbin/sysctl; then
9248 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9249 elif test -x /usr/sbin/sysctl; then
9250 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9251 else
9252 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9253 fi
9254 # And add a safety zone
9255 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9257 ;;
9258
9259 interix*)
9260 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9261 lt_cv_sys_max_cmd_len=196608
9262 ;;
9263
9264 osf*)
9265 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9266 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9267 # nice to cause kernel panics so lets avoid the loop below.
9268 # First set a reasonable default.
9269 lt_cv_sys_max_cmd_len=16384
9270 #
9271 if test -x /sbin/sysconfig; then
9272 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9273 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9274 esac
9275 fi
9276 ;;
9277 sco3.2v5*)
9278 lt_cv_sys_max_cmd_len=102400
9279 ;;
9280 sysv5* | sco5v6* | sysv4.2uw2*)
9281 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9282 if test -n "$kargmax"; then
9283 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9284 else
9285 lt_cv_sys_max_cmd_len=32768
9286 fi
9287 ;;
9288 *)
9289 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9290 if test -n "$lt_cv_sys_max_cmd_len"; then
9291 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9292 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9293 else
9294 # Make teststring a little bigger before we do anything with it.
9295 # a 1K string should be a reasonable start.
9296 for i in 1 2 3 4 5 6 7 8 ; do
9297 teststring=$teststring$teststring
9298 done
9299 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9300 # If test is not a shell built-in, we'll probably end up computing a
9301 # maximum length that is only half of the actual maximum length, but
9302 # we can't tell.
9303 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9304 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9305 test $i != 17 # 1/2 MB should be enough
9306 do
9307 i=`expr $i + 1`
9308 teststring=$teststring$teststring
9309 done
9310 # Only check the string length outside the loop.
9311 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9312 teststring=
9313 # Add a significant safety factor because C++ compilers can tack on
9314 # massive amounts of additional arguments before passing them to the
9315 # linker. It appears as though 1/2 is a usable value.
9316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9317 fi
9318 ;;
9319 esac
9320
9321fi
9322
9323if test -n $lt_cv_sys_max_cmd_len ; then
9324 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9325$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9326else
9327 { $as_echo "$as_me:$LINENO: result: none" >&5
9328$as_echo "none" >&6; }
9329fi
9330max_cmd_len=$lt_cv_sys_max_cmd_len
9331
9332
9333
9334
9335
9336
9337: ${CP="cp -f"}
9338: ${MV="mv -f"}
9339: ${RM="rm -f"}
9340
9341{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
9342$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9343# Try some XSI features
9344xsi_shell=no
9345( _lt_dummy="a/b/c"
9346 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9347 = c,a/b,, \
9348 && eval 'test $(( 1 + 1 )) -eq 2 \
9349 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9350 && xsi_shell=yes
9351{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
9352$as_echo "$xsi_shell" >&6; }
9353
9354
9355{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
9356$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9357lt_shell_append=no
9358( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9359 >/dev/null 2>&1 \
9360 && lt_shell_append=yes
9361{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
9362$as_echo "$lt_shell_append" >&6; }
9363
9364
9365if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9366 lt_unset=unset
9367else
9368 lt_unset=false
9369fi
9370
9371
9372
9373
9374
9375# test EBCDIC or ASCII
9376case `echo X|tr X '\101'` in
9377 A) # ASCII based system
9378 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9379 lt_SP2NL='tr \040 \012'
9380 lt_NL2SP='tr \015\012 \040\040'
9381 ;;
9382 *) # EBCDIC based system
9383 lt_SP2NL='tr \100 \n'
9384 lt_NL2SP='tr \r\n \100\100'
9385 ;;
9386esac
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9397$as_echo_n "checking for $LD option to reload object files... " >&6; }
9398if test "${lt_cv_ld_reload_flag+set}" = set; then
9399 $as_echo_n "(cached) " >&6
9400else
9401 lt_cv_ld_reload_flag='-r'
9402fi
9403{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9404$as_echo "$lt_cv_ld_reload_flag" >&6; }
9405reload_flag=$lt_cv_ld_reload_flag
9406case $reload_flag in
9407"" | " "*) ;;
9408*) reload_flag=" $reload_flag" ;;
9409esac
9410reload_cmds='$LD$reload_flag -o $output$reload_objs'
9411case $host_os in
9412 darwin*)
9413 if test "$GCC" = yes; then
9414 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9415 else
9416 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9417 fi
9418 ;;
9419esac
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429if test -n "$ac_tool_prefix"; then
9430 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9431set dummy ${ac_tool_prefix}objdump; ac_word=$2
9432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9433$as_echo_n "checking for $ac_word... " >&6; }
9434if test "${ac_cv_prog_OBJDUMP+set}" = set; then
9435 $as_echo_n "(cached) " >&6
9436else
9437 if test -n "$OBJDUMP"; then
9438 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9439else
9440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9441for as_dir in $PATH
9442do
9443 IFS=$as_save_IFS
9444 test -z "$as_dir" && as_dir=.
9445 for ac_exec_ext in '' $ac_executable_extensions; do
9446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9447 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9449 break 2
9450 fi
9451done
9452done
9453IFS=$as_save_IFS
9454
9455fi
9456fi
9457OBJDUMP=$ac_cv_prog_OBJDUMP
9458if test -n "$OBJDUMP"; then
9459 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9460$as_echo "$OBJDUMP" >&6; }
9461else
9462 { $as_echo "$as_me:$LINENO: result: no" >&5
9463$as_echo "no" >&6; }
9464fi
9465
9466
9467fi
9468if test -z "$ac_cv_prog_OBJDUMP"; then
9469 ac_ct_OBJDUMP=$OBJDUMP
9470 # Extract the first word of "objdump", so it can be a program name with args.
9471set dummy objdump; ac_word=$2
9472{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9473$as_echo_n "checking for $ac_word... " >&6; }
9474if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9475 $as_echo_n "(cached) " >&6
9476else
9477 if test -n "$ac_ct_OBJDUMP"; then
9478 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9479else
9480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9481for as_dir in $PATH
9482do
9483 IFS=$as_save_IFS
9484 test -z "$as_dir" && as_dir=.
9485 for ac_exec_ext in '' $ac_executable_extensions; do
9486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9487 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9488 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 break 2
9490 fi
9491done
9492done
9493IFS=$as_save_IFS
9494
9495fi
9496fi
9497ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9498if test -n "$ac_ct_OBJDUMP"; then
9499 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9500$as_echo "$ac_ct_OBJDUMP" >&6; }
9501else
9502 { $as_echo "$as_me:$LINENO: result: no" >&5
9503$as_echo "no" >&6; }
9504fi
9505
9506 if test "x$ac_ct_OBJDUMP" = x; then
9507 OBJDUMP="false"
9508 else
9509 case $cross_compiling:$ac_tool_warned in
9510yes:)
9511{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9513ac_tool_warned=yes ;;
9514esac
9515 OBJDUMP=$ac_ct_OBJDUMP
9516 fi
9517else
9518 OBJDUMP="$ac_cv_prog_OBJDUMP"
9519fi
9520
9521test -z "$OBJDUMP" && OBJDUMP=objdump
9522
9523
9524
9525
9526
9527
9528{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
9529$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9530if test "${lt_cv_deplibs_check_method+set}" = set; then
9531 $as_echo_n "(cached) " >&6
9532else
9533 lt_cv_file_magic_cmd='$MAGIC_CMD'
9534lt_cv_file_magic_test_file=
9535lt_cv_deplibs_check_method='unknown'
9536# Need to set the preceding variable on all platforms that support
9537# interlibrary dependencies.
9538# 'none' -- dependencies not supported.
9539# `unknown' -- same as none, but documents that we really don't know.
9540# 'pass_all' -- all dependencies passed with no checks.
9541# 'test_compile' -- check by making test program.
9542# 'file_magic [[regex]]' -- check by looking for files in library path
9543# which responds to the $file_magic_cmd with a given extended regex.
9544# If you have `file' or equivalent on your system and you're not sure
9545# whether `pass_all' will *always* work, you probably want this one.
9546
9547case $host_os in
9548aix[4-9]*)
9549 lt_cv_deplibs_check_method=pass_all
9550 ;;
9551
9552beos*)
9553 lt_cv_deplibs_check_method=pass_all
9554 ;;
9555
9556bsdi[45]*)
9557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9558 lt_cv_file_magic_cmd='/usr/bin/file -L'
9559 lt_cv_file_magic_test_file=/shlib/libc.so
9560 ;;
9561
9562cygwin*)
9563 # func_win32_libid is a shell function defined in ltmain.sh
9564 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9565 lt_cv_file_magic_cmd='func_win32_libid'
9566 ;;
9567
9568mingw* | pw32*)
9569 # Base MSYS/MinGW do not provide the 'file' command needed by
9570 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9571 # unless we find 'file', for example because we are cross-compiling.
9572 if ( file / ) >/dev/null 2>&1; then
9573 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9574 lt_cv_file_magic_cmd='func_win32_libid'
9575 else
9576 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9577 lt_cv_file_magic_cmd='$OBJDUMP -f'
9578 fi
9579 ;;
9580
9581cegcc)
9582 # use the weaker test based on 'objdump'. See mingw*.
9583 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9584 lt_cv_file_magic_cmd='$OBJDUMP -f'
9585 ;;
9586
9587darwin* | rhapsody*)
9588 lt_cv_deplibs_check_method=pass_all
9589 ;;
9590
9591freebsd* | dragonfly*)
9592 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9593 case $host_cpu in
9594 i*86 )
9595 # Not sure whether the presence of OpenBSD here was a mistake.
9596 # Let's accept both of them until this is cleared up.
9597 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9598 lt_cv_file_magic_cmd=/usr/bin/file
9599 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9600 ;;
9601 esac
9602 else
9603 lt_cv_deplibs_check_method=pass_all
9604 fi
9605 ;;
9606
9607gnu*)
9608 lt_cv_deplibs_check_method=pass_all
9609 ;;
9610
9611hpux10.20* | hpux11*)
9612 lt_cv_file_magic_cmd=/usr/bin/file
9613 case $host_cpu in
9614 ia64*)
9615 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9616 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9617 ;;
9618 hppa*64*)
9619 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]'
9620 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9621 ;;
9622 *)
9623 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9624 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9625 ;;
9626 esac
9627 ;;
9628
9629interix[3-9]*)
9630 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9632 ;;
9633
9634irix5* | irix6* | nonstopux*)
9635 case $LD in
9636 *-32|*"-32 ") libmagic=32-bit;;
9637 *-n32|*"-n32 ") libmagic=N32;;
9638 *-64|*"-64 ") libmagic=64-bit;;
9639 *) libmagic=never-match;;
9640 esac
9641 lt_cv_deplibs_check_method=pass_all
9642 ;;
9643
9644# This must be Linux ELF.
9645linux* | k*bsd*-gnu)
9646 lt_cv_deplibs_check_method=pass_all
9647 ;;
9648
9649netbsd*)
9650 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9652 else
9653 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9654 fi
9655 ;;
9656
9657newos6*)
9658 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9659 lt_cv_file_magic_cmd=/usr/bin/file
9660 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9661 ;;
9662
9663*nto* | *qnx*)
9664 lt_cv_deplibs_check_method=pass_all
9665 ;;
9666
9667openbsd*)
9668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9669 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9670 else
9671 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9672 fi
9673 ;;
9674
9675osf3* | osf4* | osf5*)
9676 lt_cv_deplibs_check_method=pass_all
9677 ;;
9678
9679rdos*)
9680 lt_cv_deplibs_check_method=pass_all
9681 ;;
9682
9683solaris*)
9684 lt_cv_deplibs_check_method=pass_all
9685 ;;
9686
9687sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9688 lt_cv_deplibs_check_method=pass_all
9689 ;;
9690
9691sysv4 | sysv4.3*)
9692 case $host_vendor in
9693 motorola)
9694 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]'
9695 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9696 ;;
9697 ncr)
9698 lt_cv_deplibs_check_method=pass_all
9699 ;;
9700 sequent)
9701 lt_cv_file_magic_cmd='/bin/file'
9702 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9703 ;;
9704 sni)
9705 lt_cv_file_magic_cmd='/bin/file'
9706 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9707 lt_cv_file_magic_test_file=/lib/libc.so
9708 ;;
9709 siemens)
9710 lt_cv_deplibs_check_method=pass_all
9711 ;;
9712 pc)
9713 lt_cv_deplibs_check_method=pass_all
9714 ;;
9715 esac
9716 ;;
9717
9718tpf*)
9719 lt_cv_deplibs_check_method=pass_all
9720 ;;
9721esac
9722
9723fi
9724{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9725$as_echo "$lt_cv_deplibs_check_method" >&6; }
9726file_magic_cmd=$lt_cv_file_magic_cmd
9727deplibs_check_method=$lt_cv_deplibs_check_method
9728test -z "$deplibs_check_method" && deplibs_check_method=unknown
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741if test -n "$ac_tool_prefix"; then
9742 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9743set dummy ${ac_tool_prefix}ar; ac_word=$2
9744{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9745$as_echo_n "checking for $ac_word... " >&6; }
9746if test "${ac_cv_prog_AR+set}" = set; then
9747 $as_echo_n "(cached) " >&6
9748else
9749 if test -n "$AR"; then
9750 ac_cv_prog_AR="$AR" # Let the user override the test.
9751else
9752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9753for as_dir in $PATH
9754do
9755 IFS=$as_save_IFS
9756 test -z "$as_dir" && as_dir=.
9757 for ac_exec_ext in '' $ac_executable_extensions; do
9758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9759 ac_cv_prog_AR="${ac_tool_prefix}ar"
9760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9761 break 2
9762 fi
9763done
9764done
9765IFS=$as_save_IFS
9766
9767fi
9768fi
9769AR=$ac_cv_prog_AR
9770if test -n "$AR"; then
9771 { $as_echo "$as_me:$LINENO: result: $AR" >&5
9772$as_echo "$AR" >&6; }
9773else
9774 { $as_echo "$as_me:$LINENO: result: no" >&5
9775$as_echo "no" >&6; }
9776fi
9777
9778
9779fi
9780if test -z "$ac_cv_prog_AR"; then
9781 ac_ct_AR=$AR
9782 # Extract the first word of "ar", so it can be a program name with args.
9783set dummy ar; ac_word=$2
9784{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9785$as_echo_n "checking for $ac_word... " >&6; }
9786if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9787 $as_echo_n "(cached) " >&6
9788else
9789 if test -n "$ac_ct_AR"; then
9790 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9791else
9792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9793for as_dir in $PATH
9794do
9795 IFS=$as_save_IFS
9796 test -z "$as_dir" && as_dir=.
9797 for ac_exec_ext in '' $ac_executable_extensions; do
9798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9799 ac_cv_prog_ac_ct_AR="ar"
9800 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9801 break 2
9802 fi
9803done
9804done
9805IFS=$as_save_IFS
9806
9807fi
9808fi
9809ac_ct_AR=$ac_cv_prog_ac_ct_AR
9810if test -n "$ac_ct_AR"; then
9811 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9812$as_echo "$ac_ct_AR" >&6; }
9813else
9814 { $as_echo "$as_me:$LINENO: result: no" >&5
9815$as_echo "no" >&6; }
9816fi
9817
9818 if test "x$ac_ct_AR" = x; then
9819 AR="false"
9820 else
9821 case $cross_compiling:$ac_tool_warned in
9822yes:)
9823{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9824$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9825ac_tool_warned=yes ;;
9826esac
9827 AR=$ac_ct_AR
9828 fi
9829else
9830 AR="$ac_cv_prog_AR"
9831fi
9832
9833test -z "$AR" && AR=ar
9834test -z "$AR_FLAGS" && AR_FLAGS=cru
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846if test -n "$ac_tool_prefix"; then
9847 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9848set dummy ${ac_tool_prefix}strip; ac_word=$2
9849{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9850$as_echo_n "checking for $ac_word... " >&6; }
9851if test "${ac_cv_prog_STRIP+set}" = set; then
9852 $as_echo_n "(cached) " >&6
9853else
9854 if test -n "$STRIP"; then
9855 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9856else
9857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9858for as_dir in $PATH
9859do
9860 IFS=$as_save_IFS
9861 test -z "$as_dir" && as_dir=.
9862 for ac_exec_ext in '' $ac_executable_extensions; do
9863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9864 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9865 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9866 break 2
9867 fi
9868done
9869done
9870IFS=$as_save_IFS
9871
9872fi
9873fi
9874STRIP=$ac_cv_prog_STRIP
9875if test -n "$STRIP"; then
9876 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
9877$as_echo "$STRIP" >&6; }
9878else
9879 { $as_echo "$as_me:$LINENO: result: no" >&5
9880$as_echo "no" >&6; }
9881fi
9882
9883
9884fi
9885if test -z "$ac_cv_prog_STRIP"; then
9886 ac_ct_STRIP=$STRIP
9887 # Extract the first word of "strip", so it can be a program name with args.
9888set dummy strip; ac_word=$2
9889{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9890$as_echo_n "checking for $ac_word... " >&6; }
9891if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9892 $as_echo_n "(cached) " >&6
9893else
9894 if test -n "$ac_ct_STRIP"; then
9895 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9896else
9897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9898for as_dir in $PATH
9899do
9900 IFS=$as_save_IFS
9901 test -z "$as_dir" && as_dir=.
9902 for ac_exec_ext in '' $ac_executable_extensions; do
9903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9904 ac_cv_prog_ac_ct_STRIP="strip"
9905 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9906 break 2
9907 fi
9908done
9909done
9910IFS=$as_save_IFS
9911
9912fi
9913fi
9914ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9915if test -n "$ac_ct_STRIP"; then
9916 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9917$as_echo "$ac_ct_STRIP" >&6; }
9918else
9919 { $as_echo "$as_me:$LINENO: result: no" >&5
9920$as_echo "no" >&6; }
9921fi
9922
9923 if test "x$ac_ct_STRIP" = x; then
9924 STRIP=":"
9925 else
9926 case $cross_compiling:$ac_tool_warned in
9927yes:)
9928{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9929$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9930ac_tool_warned=yes ;;
9931esac
9932 STRIP=$ac_ct_STRIP
9933 fi
9934else
9935 STRIP="$ac_cv_prog_STRIP"
9936fi
9937
9938test -z "$STRIP" && STRIP=:
9939
9940
9941
9942
9943
9944
9945if test -n "$ac_tool_prefix"; then
9946 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9947set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9948{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9949$as_echo_n "checking for $ac_word... " >&6; }
9950if test "${ac_cv_prog_RANLIB+set}" = set; then
9951 $as_echo_n "(cached) " >&6
9952else
9953 if test -n "$RANLIB"; then
9954 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9955else
9956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9957for as_dir in $PATH
9958do
9959 IFS=$as_save_IFS
9960 test -z "$as_dir" && as_dir=.
9961 for ac_exec_ext in '' $ac_executable_extensions; do
9962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9963 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9964 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9965 break 2
9966 fi
9967done
9968done
9969IFS=$as_save_IFS
9970
9971fi
9972fi
9973RANLIB=$ac_cv_prog_RANLIB
9974if test -n "$RANLIB"; then
9975 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
9976$as_echo "$RANLIB" >&6; }
9977else
9978 { $as_echo "$as_me:$LINENO: result: no" >&5
9979$as_echo "no" >&6; }
9980fi
9981
9982
9983fi
9984if test -z "$ac_cv_prog_RANLIB"; then
9985 ac_ct_RANLIB=$RANLIB
9986 # Extract the first word of "ranlib", so it can be a program name with args.
9987set dummy ranlib; ac_word=$2
9988{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9989$as_echo_n "checking for $ac_word... " >&6; }
9990if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9991 $as_echo_n "(cached) " >&6
9992else
9993 if test -n "$ac_ct_RANLIB"; then
9994 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9995else
9996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9997for as_dir in $PATH
9998do
9999 IFS=$as_save_IFS
10000 test -z "$as_dir" && as_dir=.
10001 for ac_exec_ext in '' $ac_executable_extensions; do
10002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10003 ac_cv_prog_ac_ct_RANLIB="ranlib"
10004 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10005 break 2
10006 fi
10007done
10008done
10009IFS=$as_save_IFS
10010
10011fi
10012fi
10013ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10014if test -n "$ac_ct_RANLIB"; then
10015 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10016$as_echo "$ac_ct_RANLIB" >&6; }
10017else
10018 { $as_echo "$as_me:$LINENO: result: no" >&5
10019$as_echo "no" >&6; }
10020fi
10021
10022 if test "x$ac_ct_RANLIB" = x; then
10023 RANLIB=":"
10024 else
10025 case $cross_compiling:$ac_tool_warned in
10026yes:)
10027{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10029ac_tool_warned=yes ;;
10030esac
10031 RANLIB=$ac_ct_RANLIB
10032 fi
10033else
10034 RANLIB="$ac_cv_prog_RANLIB"
10035fi
10036
10037test -z "$RANLIB" && RANLIB=:
10038
10039
10040
10041
10042
10043
10044# Determine commands to create old-style static archives.
10045old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10046old_postinstall_cmds='chmod 644 $oldlib'
10047old_postuninstall_cmds=
10048
10049if test -n "$RANLIB"; then
10050 case $host_os in
10051 openbsd*)
10052 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10053 ;;
10054 *)
10055 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10056 ;;
10057 esac
10058 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10059fi
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094# If no C compiler was specified, use CC.
10095LTCC=${LTCC-"$CC"}
10096
10097# If no C compiler flags were specified, use CFLAGS.
10098LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10099
10100# Allow CC to be a program name with arguments.
10101compiler=$CC
10102
10103
10104# Check for command to grab the raw symbol name followed by C symbol from nm.
10105{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10106$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10107if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10108 $as_echo_n "(cached) " >&6
10109else
10110
10111# These are sane defaults that work on at least a few old systems.
10112# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10113
10114# Character class describing NM global symbol codes.
10115symcode='[BCDEGRST]'
10116
10117# Regexp to match symbols that can be accessed directly from C.
10118sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10119
10120# Define system-specific variables.
10121case $host_os in
10122aix*)
10123 symcode='[BCDT]'
10124 ;;
10125cygwin* | mingw* | pw32* | cegcc*)
10126 symcode='[ABCDGISTW]'
10127 ;;
10128hpux*)
10129 if test "$host_cpu" = ia64; then
10130 symcode='[ABCDEGRST]'
10131 fi
10132 ;;
10133irix* | nonstopux*)
10134 symcode='[BCDEGRST]'
10135 ;;
10136osf*)
10137 symcode='[BCDEGQRST]'
10138 ;;
10139solaris*)
10140 symcode='[BDRT]'
10141 ;;
10142sco3.2v5*)
10143 symcode='[DT]'
10144 ;;
10145sysv4.2uw2*)
10146 symcode='[DT]'
10147 ;;
10148sysv5* | sco5v6* | unixware* | OpenUNIX*)
10149 symcode='[ABDT]'
10150 ;;
10151sysv4)
10152 symcode='[DFNSTU]'
10153 ;;
10154esac
10155
10156# If we're using GNU nm, then use its standard symbol codes.
10157case `$NM -V 2>&1` in
10158*GNU* | *'with BFD'*)
10159 symcode='[ABCDGIRSTW]' ;;
10160esac
10161
10162# Transform an extracted symbol line into a proper C declaration.
10163# Some systems (esp. on ia64) link data and code symbols differently,
10164# so use this general approach.
10165lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10166
10167# Transform an extracted symbol line into symbol name and symbol address
10168lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10169lt_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'"
10170
10171# Handle CRLF in mingw tool chain
10172opt_cr=
10173case $build_os in
10174mingw*)
10175 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10176 ;;
10177esac
10178
10179# Try without a prefix underscore, then with it.
10180for ac_symprfx in "" "_"; do
10181
10182 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10183 symxfrm="\\1 $ac_symprfx\\2 \\2"
10184
10185 # Write the raw and C identifiers.
10186 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10187 # Fake it for dumpbin and say T for any non-static function
10188 # and D for any global variable.
10189 # Also find C++ and __fastcall symbols from MSVC++,
10190 # which start with @ or ?.
10191 lt_cv_sys_global_symbol_pipe="$AWK '"\
10192" {last_section=section; section=\$ 3};"\
10193" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10194" \$ 0!~/External *\|/{next};"\
10195" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10196" {if(hide[section]) next};"\
10197" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10198" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10199" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10200" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10201" ' prfx=^$ac_symprfx"
10202 else
10203 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10204 fi
10205
10206 # Check to see that the pipe works correctly.
10207 pipe_works=no
10208
10209 rm -f conftest*
10210 cat > conftest.$ac_ext <<_LT_EOF
10211#ifdef __cplusplus
10212extern "C" {
10213#endif
10214char nm_test_var;
10215void nm_test_func(void);
10216void nm_test_func(void){}
10217#ifdef __cplusplus
10218}
10219#endif
10220int main(){nm_test_var='a';nm_test_func();return(0);}
10221_LT_EOF
10222
10223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10224 (eval $ac_compile) 2>&5
10225 ac_status=$?
10226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); }; then
10228 # Now try to grab the symbols.
10229 nlist=conftest.nm
10230 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10231 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10232 ac_status=$?
10233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); } && test -s "$nlist"; then
10235 # Try sorting and uniquifying the output.
10236 if sort "$nlist" | uniq > "$nlist"T; then
10237 mv -f "$nlist"T "$nlist"
10238 else
10239 rm -f "$nlist"T
10240 fi
10241
10242 # Make sure that we snagged all the symbols we need.
10243 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10244 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10245 cat <<_LT_EOF > conftest.$ac_ext
10246#ifdef __cplusplus
10247extern "C" {
10248#endif
10249
10250_LT_EOF
10251 # Now generate the symbol file.
10252 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10253
10254 cat <<_LT_EOF >> conftest.$ac_ext
10255
10256/* The mapping between symbol names and symbols. */
10257const struct {
10258 const char *name;
10259 void *address;
10260}
10261lt__PROGRAM__LTX_preloaded_symbols[] =
10262{
10263 { "@PROGRAM@", (void *) 0 },
10264_LT_EOF
10265 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10266 cat <<\_LT_EOF >> conftest.$ac_ext
10267 {0, (void *) 0}
10268};
10269
10270/* This works around a problem in FreeBSD linker */
10271#ifdef FREEBSD_WORKAROUND
10272static const void *lt_preloaded_setup() {
10273 return lt__PROGRAM__LTX_preloaded_symbols;
10274}
10275#endif
10276
10277#ifdef __cplusplus
10278}
10279#endif
10280_LT_EOF
10281 # Now try linking the two files.
10282 mv conftest.$ac_objext conftstm.$ac_objext
10283 lt_save_LIBS="$LIBS"
10284 lt_save_CFLAGS="$CFLAGS"
10285 LIBS="conftstm.$ac_objext"
10286 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10288 (eval $ac_link) 2>&5
10289 ac_status=$?
10290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10292 pipe_works=yes
10293 fi
10294 LIBS="$lt_save_LIBS"
10295 CFLAGS="$lt_save_CFLAGS"
10296 else
10297 echo "cannot find nm_test_func in $nlist" >&5
10298 fi
10299 else
10300 echo "cannot find nm_test_var in $nlist" >&5
10301 fi
10302 else
10303 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10304 fi
10305 else
10306 echo "$progname: failed program was:" >&5
10307 cat conftest.$ac_ext >&5
10308 fi
10309 rm -rf conftest* conftst*
10310
10311 # Do not use the global_symbol_pipe unless it works.
10312 if test "$pipe_works" = yes; then
10313 break
10314 else
10315 lt_cv_sys_global_symbol_pipe=
10316 fi
10317done
10318
10319fi
10320
10321if test -z "$lt_cv_sys_global_symbol_pipe"; then
10322 lt_cv_sys_global_symbol_to_cdecl=
10323fi
10324if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10325 { $as_echo "$as_me:$LINENO: result: failed" >&5
10326$as_echo "failed" >&6; }
10327else
10328 { $as_echo "$as_me:$LINENO: result: ok" >&5
10329$as_echo "ok" >&6; }
10330fi
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353# Check whether --enable-libtool-lock was given.
10354if test "${enable_libtool_lock+set}" = set; then
10355 enableval=$enable_libtool_lock;
10356fi
10357
10358test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10359
10360# Some flags need to be propagated to the compiler or linker for good
10361# libtool support.
10362case $host in
10363ia64-*-hpux*)
10364 # Find out which ABI we are using.
10365 echo 'int i;' > conftest.$ac_ext
10366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10367 (eval $ac_compile) 2>&5
10368 ac_status=$?
10369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; then
10371 case `/usr/bin/file conftest.$ac_objext` in
10372 *ELF-32*)
10373 HPUX_IA64_MODE="32"
10374 ;;
10375 *ELF-64*)
10376 HPUX_IA64_MODE="64"
10377 ;;
10378 esac
10379 fi
10380 rm -rf conftest*
10381 ;;
10382*-*-irix6*)
10383 # Find out which ABI we are using.
cristyc7083c12009-10-14 03:16:55 +000010384 echo '#line 10384 "configure"' > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10386 (eval $ac_compile) 2>&5
10387 ac_status=$?
10388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389 (exit $ac_status); }; then
10390 if test "$lt_cv_prog_gnu_ld" = yes; then
10391 case `/usr/bin/file conftest.$ac_objext` in
10392 *32-bit*)
10393 LD="${LD-ld} -melf32bsmip"
10394 ;;
10395 *N32*)
10396 LD="${LD-ld} -melf32bmipn32"
10397 ;;
10398 *64-bit*)
10399 LD="${LD-ld} -melf64bmip"
10400 ;;
10401 esac
10402 else
10403 case `/usr/bin/file conftest.$ac_objext` in
10404 *32-bit*)
10405 LD="${LD-ld} -32"
10406 ;;
10407 *N32*)
10408 LD="${LD-ld} -n32"
10409 ;;
10410 *64-bit*)
10411 LD="${LD-ld} -64"
10412 ;;
10413 esac
10414 fi
10415 fi
10416 rm -rf conftest*
10417 ;;
10418
10419x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10420s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10421 # Find out which ABI we are using.
10422 echo 'int i;' > conftest.$ac_ext
10423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10424 (eval $ac_compile) 2>&5
10425 ac_status=$?
10426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; then
10428 case `/usr/bin/file conftest.o` in
10429 *32-bit*)
10430 case $host in
10431 x86_64-*kfreebsd*-gnu)
10432 LD="${LD-ld} -m elf_i386_fbsd"
10433 ;;
10434 x86_64-*linux*)
10435 LD="${LD-ld} -m elf_i386"
10436 ;;
10437 ppc64-*linux*|powerpc64-*linux*)
10438 LD="${LD-ld} -m elf32ppclinux"
10439 ;;
10440 s390x-*linux*)
10441 LD="${LD-ld} -m elf_s390"
10442 ;;
10443 sparc64-*linux*)
10444 LD="${LD-ld} -m elf32_sparc"
10445 ;;
10446 esac
10447 ;;
10448 *64-bit*)
10449 case $host in
10450 x86_64-*kfreebsd*-gnu)
10451 LD="${LD-ld} -m elf_x86_64_fbsd"
10452 ;;
10453 x86_64-*linux*)
10454 LD="${LD-ld} -m elf_x86_64"
10455 ;;
10456 ppc*-*linux*|powerpc*-*linux*)
10457 LD="${LD-ld} -m elf64ppc"
10458 ;;
10459 s390*-*linux*|s390*-*tpf*)
10460 LD="${LD-ld} -m elf64_s390"
10461 ;;
10462 sparc*-*linux*)
10463 LD="${LD-ld} -m elf64_sparc"
10464 ;;
10465 esac
10466 ;;
10467 esac
10468 fi
10469 rm -rf conftest*
10470 ;;
10471
10472*-*-sco3.2v5*)
10473 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10474 SAVE_CFLAGS="$CFLAGS"
10475 CFLAGS="$CFLAGS -belf"
10476 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10477$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10478if test "${lt_cv_cc_needs_belf+set}" = set; then
10479 $as_echo_n "(cached) " >&6
10480else
10481 ac_ext=c
10482ac_cpp='$CPP $CPPFLAGS'
10483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10485ac_compiler_gnu=$ac_cv_c_compiler_gnu
10486
10487 cat >conftest.$ac_ext <<_ACEOF
10488/* confdefs.h. */
10489_ACEOF
10490cat confdefs.h >>conftest.$ac_ext
10491cat >>conftest.$ac_ext <<_ACEOF
10492/* end confdefs.h. */
10493
10494int
10495main ()
10496{
10497
10498 ;
10499 return 0;
10500}
10501_ACEOF
10502rm -f conftest.$ac_objext conftest$ac_exeext
10503if { (ac_try="$ac_link"
10504case "(($ac_try" in
10505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10506 *) ac_try_echo=$ac_try;;
10507esac
10508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10509$as_echo "$ac_try_echo") >&5
10510 (eval "$ac_link") 2>conftest.er1
10511 ac_status=$?
10512 grep -v '^ *+' conftest.er1 >conftest.err
10513 rm -f conftest.er1
10514 cat conftest.err >&5
10515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10516 (exit $ac_status); } && {
10517 test -z "$ac_c_werror_flag" ||
10518 test ! -s conftest.err
10519 } && test -s conftest$ac_exeext && {
10520 test "$cross_compiling" = yes ||
10521 $as_test_x conftest$ac_exeext
10522 }; then
10523 lt_cv_cc_needs_belf=yes
10524else
10525 $as_echo "$as_me: failed program was:" >&5
10526sed 's/^/| /' conftest.$ac_ext >&5
10527
10528 lt_cv_cc_needs_belf=no
10529fi
10530
10531rm -rf conftest.dSYM
10532rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10533 conftest$ac_exeext conftest.$ac_ext
10534 ac_ext=c
10535ac_cpp='$CPP $CPPFLAGS'
10536ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10537ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10538ac_compiler_gnu=$ac_cv_c_compiler_gnu
10539
10540fi
10541{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10542$as_echo "$lt_cv_cc_needs_belf" >&6; }
10543 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10544 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10545 CFLAGS="$SAVE_CFLAGS"
10546 fi
10547 ;;
10548sparc*-*solaris*)
10549 # Find out which ABI we are using.
10550 echo 'int i;' > conftest.$ac_ext
10551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10552 (eval $ac_compile) 2>&5
10553 ac_status=$?
10554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; then
10556 case `/usr/bin/file conftest.o` in
10557 *64-bit*)
10558 case $lt_cv_prog_gnu_ld in
10559 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10560 *)
10561 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10562 LD="${LD-ld} -64"
10563 fi
10564 ;;
10565 esac
10566 ;;
10567 esac
10568 fi
10569 rm -rf conftest*
10570 ;;
10571esac
10572
10573need_locks="$enable_libtool_lock"
10574
10575
10576 case $host_os in
10577 rhapsody* | darwin*)
10578 if test -n "$ac_tool_prefix"; then
10579 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10580set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10581{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10582$as_echo_n "checking for $ac_word... " >&6; }
10583if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10584 $as_echo_n "(cached) " >&6
10585else
10586 if test -n "$DSYMUTIL"; then
10587 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10588else
10589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10590for as_dir in $PATH
10591do
10592 IFS=$as_save_IFS
10593 test -z "$as_dir" && as_dir=.
10594 for ac_exec_ext in '' $ac_executable_extensions; do
10595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10596 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10597 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10598 break 2
10599 fi
10600done
10601done
10602IFS=$as_save_IFS
10603
10604fi
10605fi
10606DSYMUTIL=$ac_cv_prog_DSYMUTIL
10607if test -n "$DSYMUTIL"; then
10608 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10609$as_echo "$DSYMUTIL" >&6; }
10610else
10611 { $as_echo "$as_me:$LINENO: result: no" >&5
10612$as_echo "no" >&6; }
10613fi
10614
10615
10616fi
10617if test -z "$ac_cv_prog_DSYMUTIL"; then
10618 ac_ct_DSYMUTIL=$DSYMUTIL
10619 # Extract the first word of "dsymutil", so it can be a program name with args.
10620set dummy dsymutil; ac_word=$2
10621{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10622$as_echo_n "checking for $ac_word... " >&6; }
10623if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10624 $as_echo_n "(cached) " >&6
10625else
10626 if test -n "$ac_ct_DSYMUTIL"; then
10627 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10628else
10629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10630for as_dir in $PATH
10631do
10632 IFS=$as_save_IFS
10633 test -z "$as_dir" && as_dir=.
10634 for ac_exec_ext in '' $ac_executable_extensions; do
10635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10636 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10637 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10638 break 2
10639 fi
10640done
10641done
10642IFS=$as_save_IFS
10643
10644fi
10645fi
10646ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10647if test -n "$ac_ct_DSYMUTIL"; then
10648 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10649$as_echo "$ac_ct_DSYMUTIL" >&6; }
10650else
10651 { $as_echo "$as_me:$LINENO: result: no" >&5
10652$as_echo "no" >&6; }
10653fi
10654
10655 if test "x$ac_ct_DSYMUTIL" = x; then
10656 DSYMUTIL=":"
10657 else
10658 case $cross_compiling:$ac_tool_warned in
10659yes:)
10660{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10662ac_tool_warned=yes ;;
10663esac
10664 DSYMUTIL=$ac_ct_DSYMUTIL
10665 fi
10666else
10667 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10668fi
10669
10670 if test -n "$ac_tool_prefix"; then
10671 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10672set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10673{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10674$as_echo_n "checking for $ac_word... " >&6; }
10675if test "${ac_cv_prog_NMEDIT+set}" = set; then
10676 $as_echo_n "(cached) " >&6
10677else
10678 if test -n "$NMEDIT"; then
10679 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10680else
10681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10682for as_dir in $PATH
10683do
10684 IFS=$as_save_IFS
10685 test -z "$as_dir" && as_dir=.
10686 for ac_exec_ext in '' $ac_executable_extensions; do
10687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10688 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10689 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10690 break 2
10691 fi
10692done
10693done
10694IFS=$as_save_IFS
10695
10696fi
10697fi
10698NMEDIT=$ac_cv_prog_NMEDIT
10699if test -n "$NMEDIT"; then
10700 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
10701$as_echo "$NMEDIT" >&6; }
10702else
10703 { $as_echo "$as_me:$LINENO: result: no" >&5
10704$as_echo "no" >&6; }
10705fi
10706
10707
10708fi
10709if test -z "$ac_cv_prog_NMEDIT"; then
10710 ac_ct_NMEDIT=$NMEDIT
10711 # Extract the first word of "nmedit", so it can be a program name with args.
10712set dummy nmedit; ac_word=$2
10713{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10714$as_echo_n "checking for $ac_word... " >&6; }
10715if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10716 $as_echo_n "(cached) " >&6
10717else
10718 if test -n "$ac_ct_NMEDIT"; then
10719 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10720else
10721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722for as_dir in $PATH
10723do
10724 IFS=$as_save_IFS
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10728 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10729 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10730 break 2
10731 fi
10732done
10733done
10734IFS=$as_save_IFS
10735
10736fi
10737fi
10738ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10739if test -n "$ac_ct_NMEDIT"; then
10740 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10741$as_echo "$ac_ct_NMEDIT" >&6; }
10742else
10743 { $as_echo "$as_me:$LINENO: result: no" >&5
10744$as_echo "no" >&6; }
10745fi
10746
10747 if test "x$ac_ct_NMEDIT" = x; then
10748 NMEDIT=":"
10749 else
10750 case $cross_compiling:$ac_tool_warned in
10751yes:)
10752{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10754ac_tool_warned=yes ;;
10755esac
10756 NMEDIT=$ac_ct_NMEDIT
10757 fi
10758else
10759 NMEDIT="$ac_cv_prog_NMEDIT"
10760fi
10761
10762 if test -n "$ac_tool_prefix"; then
10763 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10764set dummy ${ac_tool_prefix}lipo; ac_word=$2
10765{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10766$as_echo_n "checking for $ac_word... " >&6; }
10767if test "${ac_cv_prog_LIPO+set}" = set; then
10768 $as_echo_n "(cached) " >&6
10769else
10770 if test -n "$LIPO"; then
10771 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10772else
10773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10774for as_dir in $PATH
10775do
10776 IFS=$as_save_IFS
10777 test -z "$as_dir" && as_dir=.
10778 for ac_exec_ext in '' $ac_executable_extensions; do
10779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10780 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10781 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10782 break 2
10783 fi
10784done
10785done
10786IFS=$as_save_IFS
10787
10788fi
10789fi
10790LIPO=$ac_cv_prog_LIPO
10791if test -n "$LIPO"; then
10792 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
10793$as_echo "$LIPO" >&6; }
10794else
10795 { $as_echo "$as_me:$LINENO: result: no" >&5
10796$as_echo "no" >&6; }
10797fi
10798
10799
10800fi
10801if test -z "$ac_cv_prog_LIPO"; then
10802 ac_ct_LIPO=$LIPO
10803 # Extract the first word of "lipo", so it can be a program name with args.
10804set dummy lipo; ac_word=$2
10805{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10806$as_echo_n "checking for $ac_word... " >&6; }
10807if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
10808 $as_echo_n "(cached) " >&6
10809else
10810 if test -n "$ac_ct_LIPO"; then
10811 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10812else
10813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10814for as_dir in $PATH
10815do
10816 IFS=$as_save_IFS
10817 test -z "$as_dir" && as_dir=.
10818 for ac_exec_ext in '' $ac_executable_extensions; do
10819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10820 ac_cv_prog_ac_ct_LIPO="lipo"
10821 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10822 break 2
10823 fi
10824done
10825done
10826IFS=$as_save_IFS
10827
10828fi
10829fi
10830ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10831if test -n "$ac_ct_LIPO"; then
10832 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
10833$as_echo "$ac_ct_LIPO" >&6; }
10834else
10835 { $as_echo "$as_me:$LINENO: result: no" >&5
10836$as_echo "no" >&6; }
10837fi
10838
10839 if test "x$ac_ct_LIPO" = x; then
10840 LIPO=":"
10841 else
10842 case $cross_compiling:$ac_tool_warned in
10843yes:)
10844{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10845$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10846ac_tool_warned=yes ;;
10847esac
10848 LIPO=$ac_ct_LIPO
10849 fi
10850else
10851 LIPO="$ac_cv_prog_LIPO"
10852fi
10853
10854 if test -n "$ac_tool_prefix"; then
10855 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10856set dummy ${ac_tool_prefix}otool; ac_word=$2
10857{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10858$as_echo_n "checking for $ac_word... " >&6; }
10859if test "${ac_cv_prog_OTOOL+set}" = set; then
10860 $as_echo_n "(cached) " >&6
10861else
10862 if test -n "$OTOOL"; then
10863 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10864else
10865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
10869 test -z "$as_dir" && as_dir=.
10870 for ac_exec_ext in '' $ac_executable_extensions; do
10871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10872 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10873 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 break 2
10875 fi
10876done
10877done
10878IFS=$as_save_IFS
10879
10880fi
10881fi
10882OTOOL=$ac_cv_prog_OTOOL
10883if test -n "$OTOOL"; then
10884 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
10885$as_echo "$OTOOL" >&6; }
10886else
10887 { $as_echo "$as_me:$LINENO: result: no" >&5
10888$as_echo "no" >&6; }
10889fi
10890
10891
10892fi
10893if test -z "$ac_cv_prog_OTOOL"; then
10894 ac_ct_OTOOL=$OTOOL
10895 # Extract the first word of "otool", so it can be a program name with args.
10896set dummy otool; ac_word=$2
10897{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10898$as_echo_n "checking for $ac_word... " >&6; }
10899if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
10900 $as_echo_n "(cached) " >&6
10901else
10902 if test -n "$ac_ct_OTOOL"; then
10903 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10904else
10905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906for as_dir in $PATH
10907do
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_prog_ac_ct_OTOOL="otool"
10913 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 break 2
10915 fi
10916done
10917done
10918IFS=$as_save_IFS
10919
10920fi
10921fi
10922ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10923if test -n "$ac_ct_OTOOL"; then
10924 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
10925$as_echo "$ac_ct_OTOOL" >&6; }
10926else
10927 { $as_echo "$as_me:$LINENO: result: no" >&5
10928$as_echo "no" >&6; }
10929fi
10930
10931 if test "x$ac_ct_OTOOL" = x; then
10932 OTOOL=":"
10933 else
10934 case $cross_compiling:$ac_tool_warned in
10935yes:)
10936{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10938ac_tool_warned=yes ;;
10939esac
10940 OTOOL=$ac_ct_OTOOL
10941 fi
10942else
10943 OTOOL="$ac_cv_prog_OTOOL"
10944fi
10945
10946 if test -n "$ac_tool_prefix"; then
10947 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10948set dummy ${ac_tool_prefix}otool64; ac_word=$2
10949{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10950$as_echo_n "checking for $ac_word... " >&6; }
10951if test "${ac_cv_prog_OTOOL64+set}" = set; then
10952 $as_echo_n "(cached) " >&6
10953else
10954 if test -n "$OTOOL64"; then
10955 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10956else
10957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10958for as_dir in $PATH
10959do
10960 IFS=$as_save_IFS
10961 test -z "$as_dir" && as_dir=.
10962 for ac_exec_ext in '' $ac_executable_extensions; do
10963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10964 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10966 break 2
10967 fi
10968done
10969done
10970IFS=$as_save_IFS
10971
10972fi
10973fi
10974OTOOL64=$ac_cv_prog_OTOOL64
10975if test -n "$OTOOL64"; then
10976 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
10977$as_echo "$OTOOL64" >&6; }
10978else
10979 { $as_echo "$as_me:$LINENO: result: no" >&5
10980$as_echo "no" >&6; }
10981fi
10982
10983
10984fi
10985if test -z "$ac_cv_prog_OTOOL64"; then
10986 ac_ct_OTOOL64=$OTOOL64
10987 # Extract the first word of "otool64", so it can be a program name with args.
10988set dummy otool64; ac_word=$2
10989{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10990$as_echo_n "checking for $ac_word... " >&6; }
10991if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
10992 $as_echo_n "(cached) " >&6
10993else
10994 if test -n "$ac_ct_OTOOL64"; then
10995 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10996else
10997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10998for as_dir in $PATH
10999do
11000 IFS=$as_save_IFS
11001 test -z "$as_dir" && as_dir=.
11002 for ac_exec_ext in '' $ac_executable_extensions; do
11003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11004 ac_cv_prog_ac_ct_OTOOL64="otool64"
11005 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11006 break 2
11007 fi
11008done
11009done
11010IFS=$as_save_IFS
11011
11012fi
11013fi
11014ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11015if test -n "$ac_ct_OTOOL64"; then
11016 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
11017$as_echo "$ac_ct_OTOOL64" >&6; }
11018else
11019 { $as_echo "$as_me:$LINENO: result: no" >&5
11020$as_echo "no" >&6; }
11021fi
11022
11023 if test "x$ac_ct_OTOOL64" = x; then
11024 OTOOL64=":"
11025 else
11026 case $cross_compiling:$ac_tool_warned in
11027yes:)
11028{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11030ac_tool_warned=yes ;;
11031esac
11032 OTOOL64=$ac_ct_OTOOL64
11033 fi
11034else
11035 OTOOL64="$ac_cv_prog_OTOOL64"
11036fi
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
11065$as_echo_n "checking for -single_module linker flag... " >&6; }
11066if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11067 $as_echo_n "(cached) " >&6
11068else
11069 lt_cv_apple_cc_single_mod=no
11070 if test -z "${LT_MULTI_MODULE}"; then
11071 # By default we will add the -single_module flag. You can override
11072 # by either setting the environment variable LT_MULTI_MODULE
11073 # non-empty at configure time, or by adding -multi_module to the
11074 # link flags.
11075 rm -rf libconftest.dylib*
11076 echo "int foo(void){return 1;}" > conftest.c
11077 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11078-dynamiclib -Wl,-single_module conftest.c" >&5
11079 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11080 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11081 _lt_result=$?
11082 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11083 lt_cv_apple_cc_single_mod=yes
11084 else
11085 cat conftest.err >&5
11086 fi
11087 rm -rf libconftest.dylib*
11088 rm -f conftest.*
11089 fi
11090fi
11091{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
11092$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11093 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
11094$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11095if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
11096 $as_echo_n "(cached) " >&6
11097else
11098 lt_cv_ld_exported_symbols_list=no
11099 save_LDFLAGS=$LDFLAGS
11100 echo "_main" > conftest.sym
11101 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11102 cat >conftest.$ac_ext <<_ACEOF
11103/* confdefs.h. */
11104_ACEOF
11105cat confdefs.h >>conftest.$ac_ext
11106cat >>conftest.$ac_ext <<_ACEOF
11107/* end confdefs.h. */
11108
11109int
11110main ()
11111{
11112
11113 ;
11114 return 0;
11115}
11116_ACEOF
11117rm -f conftest.$ac_objext conftest$ac_exeext
11118if { (ac_try="$ac_link"
11119case "(($ac_try" in
11120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11121 *) ac_try_echo=$ac_try;;
11122esac
11123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11124$as_echo "$ac_try_echo") >&5
11125 (eval "$ac_link") 2>conftest.er1
11126 ac_status=$?
11127 grep -v '^ *+' conftest.er1 >conftest.err
11128 rm -f conftest.er1
11129 cat conftest.err >&5
11130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } && {
11132 test -z "$ac_c_werror_flag" ||
11133 test ! -s conftest.err
11134 } && test -s conftest$ac_exeext && {
11135 test "$cross_compiling" = yes ||
11136 $as_test_x conftest$ac_exeext
11137 }; then
11138 lt_cv_ld_exported_symbols_list=yes
11139else
11140 $as_echo "$as_me: failed program was:" >&5
11141sed 's/^/| /' conftest.$ac_ext >&5
11142
11143 lt_cv_ld_exported_symbols_list=no
11144fi
11145
11146rm -rf conftest.dSYM
11147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11148 conftest$ac_exeext conftest.$ac_ext
11149 LDFLAGS="$save_LDFLAGS"
11150
11151fi
11152{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
11153$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11154 case $host_os in
11155 rhapsody* | darwin1.[012])
11156 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11157 darwin1.*)
11158 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11159 darwin*) # darwin 5.x on
11160 # if running on 10.5 or later, the deployment target defaults
11161 # to the OS version, if on x86, and 10.4, the deployment
11162 # target defaults to 10.4. Don't you love it?
11163 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11164 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11165 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11166 10.[012]*)
11167 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11168 10.*)
11169 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11170 esac
11171 ;;
11172 esac
11173 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11174 _lt_dar_single_mod='$single_module'
11175 fi
11176 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11177 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11178 else
11179 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11180 fi
11181 if test "$DSYMUTIL" != ":"; then
11182 _lt_dsymutil='~$DSYMUTIL $lib || :'
11183 else
11184 _lt_dsymutil=
11185 fi
11186 ;;
11187 esac
11188
11189
11190for ac_header in dlfcn.h
11191do
11192as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11193{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11194$as_echo_n "checking for $ac_header... " >&6; }
11195if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11196 $as_echo_n "(cached) " >&6
11197else
11198 cat >conftest.$ac_ext <<_ACEOF
11199/* confdefs.h. */
11200_ACEOF
11201cat confdefs.h >>conftest.$ac_ext
11202cat >>conftest.$ac_ext <<_ACEOF
11203/* end confdefs.h. */
11204$ac_includes_default
11205
11206#include <$ac_header>
11207_ACEOF
11208rm -f conftest.$ac_objext
11209if { (ac_try="$ac_compile"
11210case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11213esac
11214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11215$as_echo "$ac_try_echo") >&5
11216 (eval "$ac_compile") 2>conftest.er1
11217 ac_status=$?
11218 grep -v '^ *+' conftest.er1 >conftest.err
11219 rm -f conftest.er1
11220 cat conftest.err >&5
11221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } && {
11223 test -z "$ac_c_werror_flag" ||
11224 test ! -s conftest.err
11225 } && test -s conftest.$ac_objext; then
11226 eval "$as_ac_Header=yes"
11227else
11228 $as_echo "$as_me: failed program was:" >&5
11229sed 's/^/| /' conftest.$ac_ext >&5
11230
11231 eval "$as_ac_Header=no"
11232fi
11233
11234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11235fi
11236ac_res=`eval 'as_val=${'$as_ac_Header'}
11237 $as_echo "$as_val"'`
11238 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11239$as_echo "$ac_res" >&6; }
11240as_val=`eval 'as_val=${'$as_ac_Header'}
11241 $as_echo "$as_val"'`
11242 if test "x$as_val" = x""yes; then
11243 cat >>confdefs.h <<_ACEOF
11244#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11245_ACEOF
11246
11247fi
11248
11249done
11250
11251
11252
11253ac_ext=cpp
11254ac_cpp='$CXXCPP $CPPFLAGS'
11255ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11256ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11257ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11258if test -z "$CXX"; then
11259 if test -n "$CCC"; then
11260 CXX=$CCC
11261 else
11262 if test -n "$ac_tool_prefix"; then
11263 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11264 do
11265 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11266set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11267{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11268$as_echo_n "checking for $ac_word... " >&6; }
11269if test "${ac_cv_prog_CXX+set}" = set; then
11270 $as_echo_n "(cached) " >&6
11271else
11272 if test -n "$CXX"; then
11273 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11274else
11275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276for as_dir in $PATH
11277do
11278 IFS=$as_save_IFS
11279 test -z "$as_dir" && as_dir=.
11280 for ac_exec_ext in '' $ac_executable_extensions; do
11281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11282 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11283 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11284 break 2
11285 fi
11286done
11287done
11288IFS=$as_save_IFS
11289
11290fi
11291fi
11292CXX=$ac_cv_prog_CXX
11293if test -n "$CXX"; then
11294 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
11295$as_echo "$CXX" >&6; }
11296else
11297 { $as_echo "$as_me:$LINENO: result: no" >&5
11298$as_echo "no" >&6; }
11299fi
11300
11301
11302 test -n "$CXX" && break
11303 done
11304fi
11305if test -z "$CXX"; then
11306 ac_ct_CXX=$CXX
11307 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11308do
11309 # Extract the first word of "$ac_prog", so it can be a program name with args.
11310set dummy $ac_prog; ac_word=$2
11311{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11312$as_echo_n "checking for $ac_word... " >&6; }
11313if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11314 $as_echo_n "(cached) " >&6
11315else
11316 if test -n "$ac_ct_CXX"; then
11317 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11318else
11319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11320for as_dir in $PATH
11321do
11322 IFS=$as_save_IFS
11323 test -z "$as_dir" && as_dir=.
11324 for ac_exec_ext in '' $ac_executable_extensions; do
11325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11326 ac_cv_prog_ac_ct_CXX="$ac_prog"
11327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11328 break 2
11329 fi
11330done
11331done
11332IFS=$as_save_IFS
11333
11334fi
11335fi
11336ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11337if test -n "$ac_ct_CXX"; then
11338 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11339$as_echo "$ac_ct_CXX" >&6; }
11340else
11341 { $as_echo "$as_me:$LINENO: result: no" >&5
11342$as_echo "no" >&6; }
11343fi
11344
11345
11346 test -n "$ac_ct_CXX" && break
11347done
11348
11349 if test "x$ac_ct_CXX" = x; then
11350 CXX="g++"
11351 else
11352 case $cross_compiling:$ac_tool_warned in
11353yes:)
11354{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11355$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11356ac_tool_warned=yes ;;
11357esac
11358 CXX=$ac_ct_CXX
11359 fi
11360fi
11361
11362 fi
11363fi
11364# Provide some information about the compiler.
11365$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11366set X $ac_compile
11367ac_compiler=$2
11368{ (ac_try="$ac_compiler --version >&5"
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_compiler --version >&5") 2>&5
11376 ac_status=$?
11377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }
11379{ (ac_try="$ac_compiler -v >&5"
11380case "(($ac_try" in
11381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11383esac
11384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11385$as_echo "$ac_try_echo") >&5
11386 (eval "$ac_compiler -v >&5") 2>&5
11387 ac_status=$?
11388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11389 (exit $ac_status); }
11390{ (ac_try="$ac_compiler -V >&5"
11391case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11394esac
11395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11396$as_echo "$ac_try_echo") >&5
11397 (eval "$ac_compiler -V >&5") 2>&5
11398 ac_status=$?
11399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400 (exit $ac_status); }
11401
11402{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11403$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11404if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11405 $as_echo_n "(cached) " >&6
11406else
11407 cat >conftest.$ac_ext <<_ACEOF
11408/* confdefs.h. */
11409_ACEOF
11410cat confdefs.h >>conftest.$ac_ext
11411cat >>conftest.$ac_ext <<_ACEOF
11412/* end confdefs.h. */
11413
11414int
11415main ()
11416{
11417#ifndef __GNUC__
11418 choke me
11419#endif
11420
11421 ;
11422 return 0;
11423}
11424_ACEOF
11425rm -f conftest.$ac_objext
11426if { (ac_try="$ac_compile"
11427case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11430esac
11431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11432$as_echo "$ac_try_echo") >&5
11433 (eval "$ac_compile") 2>conftest.er1
11434 ac_status=$?
11435 grep -v '^ *+' conftest.er1 >conftest.err
11436 rm -f conftest.er1
11437 cat conftest.err >&5
11438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } && {
11440 test -z "$ac_cxx_werror_flag" ||
11441 test ! -s conftest.err
11442 } && test -s conftest.$ac_objext; then
11443 ac_compiler_gnu=yes
11444else
11445 $as_echo "$as_me: failed program was:" >&5
11446sed 's/^/| /' conftest.$ac_ext >&5
11447
11448 ac_compiler_gnu=no
11449fi
11450
11451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11452ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11453
11454fi
11455{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11456$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11457if test $ac_compiler_gnu = yes; then
11458 GXX=yes
11459else
11460 GXX=
11461fi
11462ac_test_CXXFLAGS=${CXXFLAGS+set}
11463ac_save_CXXFLAGS=$CXXFLAGS
11464{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11465$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11466if test "${ac_cv_prog_cxx_g+set}" = set; then
11467 $as_echo_n "(cached) " >&6
11468else
11469 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11470 ac_cxx_werror_flag=yes
11471 ac_cv_prog_cxx_g=no
11472 CXXFLAGS="-g"
11473 cat >conftest.$ac_ext <<_ACEOF
11474/* confdefs.h. */
11475_ACEOF
11476cat confdefs.h >>conftest.$ac_ext
11477cat >>conftest.$ac_ext <<_ACEOF
11478/* end confdefs.h. */
11479
11480int
11481main ()
11482{
11483
11484 ;
11485 return 0;
11486}
11487_ACEOF
11488rm -f conftest.$ac_objext
11489if { (ac_try="$ac_compile"
11490case "(($ac_try" in
11491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11492 *) ac_try_echo=$ac_try;;
11493esac
11494eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11495$as_echo "$ac_try_echo") >&5
11496 (eval "$ac_compile") 2>conftest.er1
11497 ac_status=$?
11498 grep -v '^ *+' conftest.er1 >conftest.err
11499 rm -f conftest.er1
11500 cat conftest.err >&5
11501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11502 (exit $ac_status); } && {
11503 test -z "$ac_cxx_werror_flag" ||
11504 test ! -s conftest.err
11505 } && test -s conftest.$ac_objext; then
11506 ac_cv_prog_cxx_g=yes
11507else
11508 $as_echo "$as_me: failed program was:" >&5
11509sed 's/^/| /' conftest.$ac_ext >&5
11510
11511 CXXFLAGS=""
11512 cat >conftest.$ac_ext <<_ACEOF
11513/* confdefs.h. */
11514_ACEOF
11515cat confdefs.h >>conftest.$ac_ext
11516cat >>conftest.$ac_ext <<_ACEOF
11517/* end confdefs.h. */
11518
11519int
11520main ()
11521{
11522
11523 ;
11524 return 0;
11525}
11526_ACEOF
11527rm -f conftest.$ac_objext
11528if { (ac_try="$ac_compile"
11529case "(($ac_try" in
11530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11531 *) ac_try_echo=$ac_try;;
11532esac
11533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11534$as_echo "$ac_try_echo") >&5
11535 (eval "$ac_compile") 2>conftest.er1
11536 ac_status=$?
11537 grep -v '^ *+' conftest.er1 >conftest.err
11538 rm -f conftest.er1
11539 cat conftest.err >&5
11540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); } && {
11542 test -z "$ac_cxx_werror_flag" ||
11543 test ! -s conftest.err
11544 } && test -s conftest.$ac_objext; then
11545 :
11546else
11547 $as_echo "$as_me: failed program was:" >&5
11548sed 's/^/| /' conftest.$ac_ext >&5
11549
11550 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11551 CXXFLAGS="-g"
11552 cat >conftest.$ac_ext <<_ACEOF
11553/* confdefs.h. */
11554_ACEOF
11555cat confdefs.h >>conftest.$ac_ext
11556cat >>conftest.$ac_ext <<_ACEOF
11557/* end confdefs.h. */
11558
11559int
11560main ()
11561{
11562
11563 ;
11564 return 0;
11565}
11566_ACEOF
11567rm -f conftest.$ac_objext
11568if { (ac_try="$ac_compile"
11569case "(($ac_try" in
11570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11571 *) ac_try_echo=$ac_try;;
11572esac
11573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11574$as_echo "$ac_try_echo") >&5
11575 (eval "$ac_compile") 2>conftest.er1
11576 ac_status=$?
11577 grep -v '^ *+' conftest.er1 >conftest.err
11578 rm -f conftest.er1
11579 cat conftest.err >&5
11580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11581 (exit $ac_status); } && {
11582 test -z "$ac_cxx_werror_flag" ||
11583 test ! -s conftest.err
11584 } && test -s conftest.$ac_objext; then
11585 ac_cv_prog_cxx_g=yes
11586else
11587 $as_echo "$as_me: failed program was:" >&5
11588sed 's/^/| /' conftest.$ac_ext >&5
11589
11590
11591fi
11592
11593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11594fi
11595
11596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11597fi
11598
11599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11600 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11601fi
11602{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11603$as_echo "$ac_cv_prog_cxx_g" >&6; }
11604if test "$ac_test_CXXFLAGS" = set; then
11605 CXXFLAGS=$ac_save_CXXFLAGS
11606elif test $ac_cv_prog_cxx_g = yes; then
11607 if test "$GXX" = yes; then
11608 CXXFLAGS="-g -O2"
11609 else
11610 CXXFLAGS="-g"
11611 fi
11612else
11613 if test "$GXX" = yes; then
11614 CXXFLAGS="-O2"
11615 else
11616 CXXFLAGS=
11617 fi
11618fi
11619ac_ext=c
11620ac_cpp='$CPP $CPPFLAGS'
11621ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11622ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11623ac_compiler_gnu=$ac_cv_c_compiler_gnu
11624
11625depcc="$CXX" am_compiler_list=
11626
11627{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11628$as_echo_n "checking dependency style of $depcc... " >&6; }
11629if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11630 $as_echo_n "(cached) " >&6
11631else
11632 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11633 # We make a subdir and do the tests there. Otherwise we can end up
11634 # making bogus files that we don't know about and never remove. For
11635 # instance it was reported that on HP-UX the gcc test will end up
11636 # making a dummy file named `D' -- because `-MD' means `put the output
11637 # in D'.
11638 mkdir conftest.dir
11639 # Copy depcomp to subdir because otherwise we won't find it if we're
11640 # using a relative directory.
11641 cp "$am_depcomp" conftest.dir
11642 cd conftest.dir
11643 # We will build objects and dependencies in a subdirectory because
11644 # it helps to detect inapplicable dependency modes. For instance
11645 # both Tru64's cc and ICC support -MD to output dependencies as a
11646 # side effect of compilation, but ICC will put the dependencies in
11647 # the current directory while Tru64 will put them in the object
11648 # directory.
11649 mkdir sub
11650
11651 am_cv_CXX_dependencies_compiler_type=none
11652 if test "$am_compiler_list" = ""; then
11653 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11654 fi
11655 am__universal=false
11656 case " $depcc " in #(
11657 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11658 esac
11659
11660 for depmode in $am_compiler_list; do
11661 # Setup a source with many dependencies, because some compilers
11662 # like to wrap large dependency lists on column 80 (with \), and
11663 # we should not choose a depcomp mode which is confused by this.
11664 #
11665 # We need to recreate these files for each test, as the compiler may
11666 # overwrite some of them when testing with obscure command lines.
11667 # This happens at least with the AIX C compiler.
11668 : > sub/conftest.c
11669 for i in 1 2 3 4 5 6; do
11670 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11671 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11672 # Solaris 8's {/usr,}/bin/sh.
11673 touch sub/conftst$i.h
11674 done
11675 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11676
11677 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11678 # mode. It turns out that the SunPro C++ compiler does not properly
11679 # handle `-M -o', and we need to detect this. Also, some Intel
11680 # versions had trouble with output in subdirs
11681 am__obj=sub/conftest.${OBJEXT-o}
11682 am__minus_obj="-o $am__obj"
11683 case $depmode in
11684 gcc)
11685 # This depmode causes a compiler race in universal mode.
11686 test "$am__universal" = false || continue
11687 ;;
11688 nosideeffect)
11689 # after this tag, mechanisms are not by side-effect, so they'll
11690 # only be used when explicitly requested
11691 if test "x$enable_dependency_tracking" = xyes; then
11692 continue
11693 else
11694 break
11695 fi
11696 ;;
11697 msvisualcpp | msvcmsys)
11698 # This compiler won't grok `-c -o', but also, the minuso test has
11699 # not run yet. These depmodes are late enough in the game, and
11700 # so weak that their functioning should not be impacted.
11701 am__obj=conftest.${OBJEXT-o}
11702 am__minus_obj=
11703 ;;
11704 none) break ;;
11705 esac
11706 if depmode=$depmode \
11707 source=sub/conftest.c object=$am__obj \
11708 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11709 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11710 >/dev/null 2>conftest.err &&
11711 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11712 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11713 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11714 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11715 # icc doesn't choke on unknown options, it will just issue warnings
11716 # or remarks (even with -Werror). So we grep stderr for any message
11717 # that says an option was ignored or not supported.
11718 # When given -MP, icc 7.0 and 7.1 complain thusly:
11719 # icc: Command line warning: ignoring option '-M'; no argument required
11720 # The diagnosis changed in icc 8.0:
11721 # icc: Command line remark: option '-MP' not supported
11722 if (grep 'ignoring option' conftest.err ||
11723 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11724 am_cv_CXX_dependencies_compiler_type=$depmode
11725 break
11726 fi
11727 fi
11728 done
11729
11730 cd ..
11731 rm -rf conftest.dir
11732else
11733 am_cv_CXX_dependencies_compiler_type=none
11734fi
11735
11736fi
11737{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11738$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11739CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11740
11741 if
11742 test "x$enable_dependency_tracking" != xno \
11743 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11744 am__fastdepCXX_TRUE=
11745 am__fastdepCXX_FALSE='#'
11746else
11747 am__fastdepCXX_TRUE='#'
11748 am__fastdepCXX_FALSE=
11749fi
11750
11751
11752if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11753 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11754 (test "X$CXX" != "Xg++"))) ; then
11755 ac_ext=cpp
11756ac_cpp='$CXXCPP $CPPFLAGS'
11757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11760{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11761$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11762if test -z "$CXXCPP"; then
11763 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11764 $as_echo_n "(cached) " >&6
11765else
11766 # Double quotes because CXXCPP needs to be expanded
11767 for CXXCPP in "$CXX -E" "/lib/cpp"
11768 do
11769 ac_preproc_ok=false
11770for ac_cxx_preproc_warn_flag in '' yes
11771do
11772 # Use a header file that comes with gcc, so configuring glibc
11773 # with a fresh cross-compiler works.
11774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11775 # <limits.h> exists even on freestanding compilers.
11776 # On the NeXT, cc -E runs the code through the compiler's parser,
11777 # not just through cpp. "Syntax error" is here to catch this case.
11778 cat >conftest.$ac_ext <<_ACEOF
11779/* confdefs.h. */
11780_ACEOF
11781cat confdefs.h >>conftest.$ac_ext
11782cat >>conftest.$ac_ext <<_ACEOF
11783/* end confdefs.h. */
11784#ifdef __STDC__
11785# include <limits.h>
11786#else
11787# include <assert.h>
11788#endif
11789 Syntax error
11790_ACEOF
11791if { (ac_try="$ac_cpp conftest.$ac_ext"
11792case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795esac
11796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11797$as_echo "$ac_try_echo") >&5
11798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } >/dev/null && {
11805 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11806 test ! -s conftest.err
11807 }; then
11808 :
11809else
11810 $as_echo "$as_me: failed program was:" >&5
11811sed 's/^/| /' conftest.$ac_ext >&5
11812
11813 # Broken: fails on valid input.
11814continue
11815fi
11816
11817rm -f conftest.err conftest.$ac_ext
11818
11819 # OK, works on sane cases. Now check whether nonexistent headers
11820 # can be detected and how.
11821 cat >conftest.$ac_ext <<_ACEOF
11822/* confdefs.h. */
11823_ACEOF
11824cat confdefs.h >>conftest.$ac_ext
11825cat >>conftest.$ac_ext <<_ACEOF
11826/* end confdefs.h. */
11827#include <ac_nonexistent.h>
11828_ACEOF
11829if { (ac_try="$ac_cpp conftest.$ac_ext"
11830case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833esac
11834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11835$as_echo "$ac_try_echo") >&5
11836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11837 ac_status=$?
11838 grep -v '^ *+' conftest.er1 >conftest.err
11839 rm -f conftest.er1
11840 cat conftest.err >&5
11841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); } >/dev/null && {
11843 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11844 test ! -s conftest.err
11845 }; then
11846 # Broken: success on invalid input.
11847continue
11848else
11849 $as_echo "$as_me: failed program was:" >&5
11850sed 's/^/| /' conftest.$ac_ext >&5
11851
11852 # Passes both tests.
11853ac_preproc_ok=:
11854break
11855fi
11856
11857rm -f conftest.err conftest.$ac_ext
11858
11859done
11860# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11861rm -f conftest.err conftest.$ac_ext
11862if $ac_preproc_ok; then
11863 break
11864fi
11865
11866 done
11867 ac_cv_prog_CXXCPP=$CXXCPP
11868
11869fi
11870 CXXCPP=$ac_cv_prog_CXXCPP
11871else
11872 ac_cv_prog_CXXCPP=$CXXCPP
11873fi
11874{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
11875$as_echo "$CXXCPP" >&6; }
11876ac_preproc_ok=false
11877for ac_cxx_preproc_warn_flag in '' yes
11878do
11879 # Use a header file that comes with gcc, so configuring glibc
11880 # with a fresh cross-compiler works.
11881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11882 # <limits.h> exists even on freestanding compilers.
11883 # On the NeXT, cc -E runs the code through the compiler's parser,
11884 # not just through cpp. "Syntax error" is here to catch this case.
11885 cat >conftest.$ac_ext <<_ACEOF
11886/* confdefs.h. */
11887_ACEOF
11888cat confdefs.h >>conftest.$ac_ext
11889cat >>conftest.$ac_ext <<_ACEOF
11890/* end confdefs.h. */
11891#ifdef __STDC__
11892# include <limits.h>
11893#else
11894# include <assert.h>
11895#endif
11896 Syntax error
11897_ACEOF
11898if { (ac_try="$ac_cpp conftest.$ac_ext"
11899case "(($ac_try" in
11900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11902esac
11903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11904$as_echo "$ac_try_echo") >&5
11905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11906 ac_status=$?
11907 grep -v '^ *+' conftest.er1 >conftest.err
11908 rm -f conftest.er1
11909 cat conftest.err >&5
11910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); } >/dev/null && {
11912 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11913 test ! -s conftest.err
11914 }; then
11915 :
11916else
11917 $as_echo "$as_me: failed program was:" >&5
11918sed 's/^/| /' conftest.$ac_ext >&5
11919
11920 # Broken: fails on valid input.
11921continue
11922fi
11923
11924rm -f conftest.err conftest.$ac_ext
11925
11926 # OK, works on sane cases. Now check whether nonexistent headers
11927 # can be detected and how.
11928 cat >conftest.$ac_ext <<_ACEOF
11929/* confdefs.h. */
11930_ACEOF
11931cat confdefs.h >>conftest.$ac_ext
11932cat >>conftest.$ac_ext <<_ACEOF
11933/* end confdefs.h. */
11934#include <ac_nonexistent.h>
11935_ACEOF
11936if { (ac_try="$ac_cpp conftest.$ac_ext"
11937case "(($ac_try" in
11938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11939 *) ac_try_echo=$ac_try;;
11940esac
11941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11942$as_echo "$ac_try_echo") >&5
11943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11944 ac_status=$?
11945 grep -v '^ *+' conftest.er1 >conftest.err
11946 rm -f conftest.er1
11947 cat conftest.err >&5
11948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); } >/dev/null && {
11950 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11951 test ! -s conftest.err
11952 }; then
11953 # Broken: success on invalid input.
11954continue
11955else
11956 $as_echo "$as_me: failed program was:" >&5
11957sed 's/^/| /' conftest.$ac_ext >&5
11958
11959 # Passes both tests.
11960ac_preproc_ok=:
11961break
11962fi
11963
11964rm -f conftest.err conftest.$ac_ext
11965
11966done
11967# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11968rm -f conftest.err conftest.$ac_ext
11969if $ac_preproc_ok; then
11970 :
11971else
11972 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11974_lt_caught_CXX_error=yes; }
11975fi
11976
11977ac_ext=c
11978ac_cpp='$CPP $CPPFLAGS'
11979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11981ac_compiler_gnu=$ac_cv_c_compiler_gnu
11982
11983else
11984 _lt_caught_CXX_error=yes
11985fi
11986
11987
11988
11989
11990
11991# Set options
11992enable_win32_dll=yes
11993
11994case $host in
11995*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
11996 if test -n "$ac_tool_prefix"; then
11997 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11998set dummy ${ac_tool_prefix}as; ac_word=$2
11999{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12000$as_echo_n "checking for $ac_word... " >&6; }
12001if test "${ac_cv_prog_AS+set}" = set; then
12002 $as_echo_n "(cached) " >&6
12003else
12004 if test -n "$AS"; then
12005 ac_cv_prog_AS="$AS" # Let the user override the test.
12006else
12007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008for as_dir in $PATH
12009do
12010 IFS=$as_save_IFS
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12014 ac_cv_prog_AS="${ac_tool_prefix}as"
12015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12016 break 2
12017 fi
12018done
12019done
12020IFS=$as_save_IFS
12021
12022fi
12023fi
12024AS=$ac_cv_prog_AS
12025if test -n "$AS"; then
12026 { $as_echo "$as_me:$LINENO: result: $AS" >&5
12027$as_echo "$AS" >&6; }
12028else
12029 { $as_echo "$as_me:$LINENO: result: no" >&5
12030$as_echo "no" >&6; }
12031fi
12032
12033
12034fi
12035if test -z "$ac_cv_prog_AS"; then
12036 ac_ct_AS=$AS
12037 # Extract the first word of "as", so it can be a program name with args.
12038set dummy as; ac_word=$2
12039{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12040$as_echo_n "checking for $ac_word... " >&6; }
12041if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
12042 $as_echo_n "(cached) " >&6
12043else
12044 if test -n "$ac_ct_AS"; then
12045 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12046else
12047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048for as_dir in $PATH
12049do
12050 IFS=$as_save_IFS
12051 test -z "$as_dir" && as_dir=.
12052 for ac_exec_ext in '' $ac_executable_extensions; do
12053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12054 ac_cv_prog_ac_ct_AS="as"
12055 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12056 break 2
12057 fi
12058done
12059done
12060IFS=$as_save_IFS
12061
12062fi
12063fi
12064ac_ct_AS=$ac_cv_prog_ac_ct_AS
12065if test -n "$ac_ct_AS"; then
12066 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
12067$as_echo "$ac_ct_AS" >&6; }
12068else
12069 { $as_echo "$as_me:$LINENO: result: no" >&5
12070$as_echo "no" >&6; }
12071fi
12072
12073 if test "x$ac_ct_AS" = x; then
12074 AS="false"
12075 else
12076 case $cross_compiling:$ac_tool_warned in
12077yes:)
12078{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12079$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12080ac_tool_warned=yes ;;
12081esac
12082 AS=$ac_ct_AS
12083 fi
12084else
12085 AS="$ac_cv_prog_AS"
12086fi
12087
12088 if test -n "$ac_tool_prefix"; then
12089 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12090set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12091{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12092$as_echo_n "checking for $ac_word... " >&6; }
12093if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12094 $as_echo_n "(cached) " >&6
12095else
12096 if test -n "$DLLTOOL"; then
12097 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12098else
12099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100for as_dir in $PATH
12101do
12102 IFS=$as_save_IFS
12103 test -z "$as_dir" && as_dir=.
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12106 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12107 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12108 break 2
12109 fi
12110done
12111done
12112IFS=$as_save_IFS
12113
12114fi
12115fi
12116DLLTOOL=$ac_cv_prog_DLLTOOL
12117if test -n "$DLLTOOL"; then
12118 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12119$as_echo "$DLLTOOL" >&6; }
12120else
12121 { $as_echo "$as_me:$LINENO: result: no" >&5
12122$as_echo "no" >&6; }
12123fi
12124
12125
12126fi
12127if test -z "$ac_cv_prog_DLLTOOL"; then
12128 ac_ct_DLLTOOL=$DLLTOOL
12129 # Extract the first word of "dlltool", so it can be a program name with args.
12130set dummy dlltool; ac_word=$2
12131{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12132$as_echo_n "checking for $ac_word... " >&6; }
12133if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
12134 $as_echo_n "(cached) " >&6
12135else
12136 if test -n "$ac_ct_DLLTOOL"; then
12137 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12138else
12139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140for as_dir in $PATH
12141do
12142 IFS=$as_save_IFS
12143 test -z "$as_dir" && as_dir=.
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12146 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12147 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12148 break 2
12149 fi
12150done
12151done
12152IFS=$as_save_IFS
12153
12154fi
12155fi
12156ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12157if test -n "$ac_ct_DLLTOOL"; then
12158 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
12159$as_echo "$ac_ct_DLLTOOL" >&6; }
12160else
12161 { $as_echo "$as_me:$LINENO: result: no" >&5
12162$as_echo "no" >&6; }
12163fi
12164
12165 if test "x$ac_ct_DLLTOOL" = x; then
12166 DLLTOOL="false"
12167 else
12168 case $cross_compiling:$ac_tool_warned in
12169yes:)
12170{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12171$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12172ac_tool_warned=yes ;;
12173esac
12174 DLLTOOL=$ac_ct_DLLTOOL
12175 fi
12176else
12177 DLLTOOL="$ac_cv_prog_DLLTOOL"
12178fi
12179
12180 if test -n "$ac_tool_prefix"; then
12181 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12182set dummy ${ac_tool_prefix}objdump; ac_word=$2
12183{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12184$as_echo_n "checking for $ac_word... " >&6; }
12185if test "${ac_cv_prog_OBJDUMP+set}" = set; then
12186 $as_echo_n "(cached) " >&6
12187else
12188 if test -n "$OBJDUMP"; then
12189 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12190else
12191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192for as_dir in $PATH
12193do
12194 IFS=$as_save_IFS
12195 test -z "$as_dir" && as_dir=.
12196 for ac_exec_ext in '' $ac_executable_extensions; do
12197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12198 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12199 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12200 break 2
12201 fi
12202done
12203done
12204IFS=$as_save_IFS
12205
12206fi
12207fi
12208OBJDUMP=$ac_cv_prog_OBJDUMP
12209if test -n "$OBJDUMP"; then
12210 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
12211$as_echo "$OBJDUMP" >&6; }
12212else
12213 { $as_echo "$as_me:$LINENO: result: no" >&5
12214$as_echo "no" >&6; }
12215fi
12216
12217
12218fi
12219if test -z "$ac_cv_prog_OBJDUMP"; then
12220 ac_ct_OBJDUMP=$OBJDUMP
12221 # Extract the first word of "objdump", so it can be a program name with args.
12222set dummy objdump; ac_word=$2
12223{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12224$as_echo_n "checking for $ac_word... " >&6; }
12225if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
12226 $as_echo_n "(cached) " >&6
12227else
12228 if test -n "$ac_ct_OBJDUMP"; then
12229 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12230else
12231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12232for as_dir in $PATH
12233do
12234 IFS=$as_save_IFS
12235 test -z "$as_dir" && as_dir=.
12236 for ac_exec_ext in '' $ac_executable_extensions; do
12237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12238 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12239 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 break 2
12241 fi
12242done
12243done
12244IFS=$as_save_IFS
12245
12246fi
12247fi
12248ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12249if test -n "$ac_ct_OBJDUMP"; then
12250 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
12251$as_echo "$ac_ct_OBJDUMP" >&6; }
12252else
12253 { $as_echo "$as_me:$LINENO: result: no" >&5
12254$as_echo "no" >&6; }
12255fi
12256
12257 if test "x$ac_ct_OBJDUMP" = x; then
12258 OBJDUMP="false"
12259 else
12260 case $cross_compiling:$ac_tool_warned in
12261yes:)
12262{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12264ac_tool_warned=yes ;;
12265esac
12266 OBJDUMP=$ac_ct_OBJDUMP
12267 fi
12268else
12269 OBJDUMP="$ac_cv_prog_OBJDUMP"
12270fi
12271
12272 ;;
12273esac
12274
12275test -z "$AS" && AS=as
12276
12277
12278
12279
12280
12281test -z "$DLLTOOL" && DLLTOOL=dlltool
12282
12283
12284
12285
12286
12287test -z "$OBJDUMP" && OBJDUMP=objdump
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297 # Check whether --enable-shared was given.
12298if test "${enable_shared+set}" = set; then
12299 enableval=$enable_shared; p=${PACKAGE-default}
12300 case $enableval in
12301 yes) enable_shared=yes ;;
12302 no) enable_shared=no ;;
12303 *)
12304 enable_shared=no
12305 # Look at the argument we got. We use all the common list separators.
12306 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12307 for pkg in $enableval; do
12308 IFS="$lt_save_ifs"
12309 if test "X$pkg" = "X$p"; then
12310 enable_shared=yes
12311 fi
12312 done
12313 IFS="$lt_save_ifs"
12314 ;;
12315 esac
12316else
12317 enable_shared=yes
12318fi
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328 # Check whether --enable-static was given.
12329if test "${enable_static+set}" = set; then
12330 enableval=$enable_static; p=${PACKAGE-default}
12331 case $enableval in
12332 yes) enable_static=yes ;;
12333 no) enable_static=no ;;
12334 *)
12335 enable_static=no
12336 # Look at the argument we got. We use all the common list separators.
12337 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12338 for pkg in $enableval; do
12339 IFS="$lt_save_ifs"
12340 if test "X$pkg" = "X$p"; then
12341 enable_static=yes
12342 fi
12343 done
12344 IFS="$lt_save_ifs"
12345 ;;
12346 esac
12347else
12348 enable_static=yes
12349fi
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360# Check whether --with-pic was given.
12361if test "${with_pic+set}" = set; then
12362 withval=$with_pic; pic_mode="$withval"
12363else
12364 pic_mode=default
12365fi
12366
12367
12368test -z "$pic_mode" && pic_mode=default
12369
12370
12371
12372
12373
12374
12375
12376 # Check whether --enable-fast-install was given.
12377if test "${enable_fast_install+set}" = set; then
12378 enableval=$enable_fast_install; p=${PACKAGE-default}
12379 case $enableval in
12380 yes) enable_fast_install=yes ;;
12381 no) enable_fast_install=no ;;
12382 *)
12383 enable_fast_install=no
12384 # Look at the argument we got. We use all the common list separators.
12385 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12386 for pkg in $enableval; do
12387 IFS="$lt_save_ifs"
12388 if test "X$pkg" = "X$p"; then
12389 enable_fast_install=yes
12390 fi
12391 done
12392 IFS="$lt_save_ifs"
12393 ;;
12394 esac
12395else
12396 enable_fast_install=yes
12397fi
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409# This can be used to rebuild libtool when needed
12410LIBTOOL_DEPS="$ltmain"
12411
12412# Always use our own libtool.
12413LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439test -z "$LN_S" && LN_S="ln -s"
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454if test -n "${ZSH_VERSION+set}" ; then
12455 setopt NO_GLOB_SUBST
12456fi
12457
12458{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
12459$as_echo_n "checking for objdir... " >&6; }
12460if test "${lt_cv_objdir+set}" = set; then
12461 $as_echo_n "(cached) " >&6
12462else
12463 rm -f .libs 2>/dev/null
12464mkdir .libs 2>/dev/null
12465if test -d .libs; then
12466 lt_cv_objdir=.libs
12467else
12468 # MS-DOS does not allow filenames that begin with a dot.
12469 lt_cv_objdir=_libs
12470fi
12471rmdir .libs 2>/dev/null
12472fi
12473{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12474$as_echo "$lt_cv_objdir" >&6; }
12475objdir=$lt_cv_objdir
12476
12477
12478
12479
12480
12481cat >>confdefs.h <<_ACEOF
12482#define LT_OBJDIR "$lt_cv_objdir/"
12483_ACEOF
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501case $host_os in
12502aix3*)
12503 # AIX sometimes has problems with the GCC collect2 program. For some
12504 # reason, if we set the COLLECT_NAMES environment variable, the problems
12505 # vanish in a puff of smoke.
12506 if test "X${COLLECT_NAMES+set}" != Xset; then
12507 COLLECT_NAMES=
12508 export COLLECT_NAMES
12509 fi
12510 ;;
12511esac
12512
12513# Sed substitution that helps us do robust quoting. It backslashifies
12514# metacharacters that are still active within double-quoted strings.
12515sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12516
12517# Same as above, but do not quote variable references.
12518double_quote_subst='s/\(["`\\]\)/\\\1/g'
12519
12520# Sed substitution to delay expansion of an escaped shell variable in a
12521# double_quote_subst'ed string.
12522delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12523
12524# Sed substitution to delay expansion of an escaped single quote.
12525delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12526
12527# Sed substitution to avoid accidental globbing in evaled expressions
12528no_glob_subst='s/\*/\\\*/g'
12529
12530# Global variables:
12531ofile=libtool
12532can_build_shared=yes
12533
12534# All known linkers require a `.a' archive for static linking (except MSVC,
12535# which needs '.lib').
12536libext=a
12537
12538with_gnu_ld="$lt_cv_prog_gnu_ld"
12539
12540old_CC="$CC"
12541old_CFLAGS="$CFLAGS"
12542
12543# Set sane defaults for various variables
12544test -z "$CC" && CC=cc
12545test -z "$LTCC" && LTCC=$CC
12546test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12547test -z "$LD" && LD=ld
12548test -z "$ac_objext" && ac_objext=o
12549
12550for cc_temp in $compiler""; do
12551 case $cc_temp in
12552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12554 \-*) ;;
12555 *) break;;
12556 esac
12557done
12558cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12559
12560
12561# Only perform the check for file, if the check method requires it
12562test -z "$MAGIC_CMD" && MAGIC_CMD=file
12563case $deplibs_check_method in
12564file_magic*)
12565 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12566 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12567$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12568if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12569 $as_echo_n "(cached) " >&6
12570else
12571 case $MAGIC_CMD in
12572[\\/*] | ?:[\\/]*)
12573 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12574 ;;
12575*)
12576 lt_save_MAGIC_CMD="$MAGIC_CMD"
12577 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12578 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12579 for ac_dir in $ac_dummy; do
12580 IFS="$lt_save_ifs"
12581 test -z "$ac_dir" && ac_dir=.
12582 if test -f $ac_dir/${ac_tool_prefix}file; then
12583 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12584 if test -n "$file_magic_test_file"; then
12585 case $deplibs_check_method in
12586 "file_magic "*)
12587 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12589 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12590 $EGREP "$file_magic_regex" > /dev/null; then
12591 :
12592 else
12593 cat <<_LT_EOF 1>&2
12594
12595*** Warning: the command libtool uses to detect shared libraries,
12596*** $file_magic_cmd, produces output that libtool cannot recognize.
12597*** The result is that libtool may fail to recognize shared libraries
12598*** as such. This will affect the creation of libtool libraries that
12599*** depend on shared libraries, but programs linked with such libtool
12600*** libraries will work regardless of this problem. Nevertheless, you
12601*** may want to report the problem to your system manager and/or to
12602*** bug-libtool@gnu.org
12603
12604_LT_EOF
12605 fi ;;
12606 esac
12607 fi
12608 break
12609 fi
12610 done
12611 IFS="$lt_save_ifs"
12612 MAGIC_CMD="$lt_save_MAGIC_CMD"
12613 ;;
12614esac
12615fi
12616
12617MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12618if test -n "$MAGIC_CMD"; then
12619 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12620$as_echo "$MAGIC_CMD" >&6; }
12621else
12622 { $as_echo "$as_me:$LINENO: result: no" >&5
12623$as_echo "no" >&6; }
12624fi
12625
12626
12627
12628
12629
12630if test -z "$lt_cv_path_MAGIC_CMD"; then
12631 if test -n "$ac_tool_prefix"; then
12632 { $as_echo "$as_me:$LINENO: checking for file" >&5
12633$as_echo_n "checking for file... " >&6; }
12634if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12635 $as_echo_n "(cached) " >&6
12636else
12637 case $MAGIC_CMD in
12638[\\/*] | ?:[\\/]*)
12639 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12640 ;;
12641*)
12642 lt_save_MAGIC_CMD="$MAGIC_CMD"
12643 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12644 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12645 for ac_dir in $ac_dummy; do
12646 IFS="$lt_save_ifs"
12647 test -z "$ac_dir" && ac_dir=.
12648 if test -f $ac_dir/file; then
12649 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12650 if test -n "$file_magic_test_file"; then
12651 case $deplibs_check_method in
12652 "file_magic "*)
12653 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12654 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12655 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12656 $EGREP "$file_magic_regex" > /dev/null; then
12657 :
12658 else
12659 cat <<_LT_EOF 1>&2
12660
12661*** Warning: the command libtool uses to detect shared libraries,
12662*** $file_magic_cmd, produces output that libtool cannot recognize.
12663*** The result is that libtool may fail to recognize shared libraries
12664*** as such. This will affect the creation of libtool libraries that
12665*** depend on shared libraries, but programs linked with such libtool
12666*** libraries will work regardless of this problem. Nevertheless, you
12667*** may want to report the problem to your system manager and/or to
12668*** bug-libtool@gnu.org
12669
12670_LT_EOF
12671 fi ;;
12672 esac
12673 fi
12674 break
12675 fi
12676 done
12677 IFS="$lt_save_ifs"
12678 MAGIC_CMD="$lt_save_MAGIC_CMD"
12679 ;;
12680esac
12681fi
12682
12683MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12684if test -n "$MAGIC_CMD"; then
12685 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12686$as_echo "$MAGIC_CMD" >&6; }
12687else
12688 { $as_echo "$as_me:$LINENO: result: no" >&5
12689$as_echo "no" >&6; }
12690fi
12691
12692
12693 else
12694 MAGIC_CMD=:
12695 fi
12696fi
12697
12698 fi
12699 ;;
12700esac
12701
12702# Use C for the default configuration in the libtool script
12703
12704lt_save_CC="$CC"
12705ac_ext=c
12706ac_cpp='$CPP $CPPFLAGS'
12707ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12708ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12709ac_compiler_gnu=$ac_cv_c_compiler_gnu
12710
12711
12712# Source file extension for C test sources.
12713ac_ext=c
12714
12715# Object file extension for compiled C test sources.
12716objext=o
12717objext=$objext
12718
12719# Code to be used in simple compile tests
12720lt_simple_compile_test_code="int some_variable = 0;"
12721
12722# Code to be used in simple link tests
12723lt_simple_link_test_code='int main(){return(0);}'
12724
12725
12726
12727
12728
12729
12730
12731# If no C compiler was specified, use CC.
12732LTCC=${LTCC-"$CC"}
12733
12734# If no C compiler flags were specified, use CFLAGS.
12735LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12736
12737# Allow CC to be a program name with arguments.
12738compiler=$CC
12739
12740# Save the default compiler, since it gets overwritten when the other
12741# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12742compiler_DEFAULT=$CC
12743
12744# save warnings/boilerplate of simple test code
12745ac_outfile=conftest.$ac_objext
12746echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12747eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12748_lt_compiler_boilerplate=`cat conftest.err`
12749$RM conftest*
12750
12751ac_outfile=conftest.$ac_objext
12752echo "$lt_simple_link_test_code" >conftest.$ac_ext
12753eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12754_lt_linker_boilerplate=`cat conftest.err`
12755$RM -r conftest*
12756
12757
12758## CAVEAT EMPTOR:
12759## There is no encapsulation within the following macros, do not change
12760## the running order or otherwise move them around unless you know exactly
12761## what you are doing...
12762if test -n "$compiler"; then
12763
12764lt_prog_compiler_no_builtin_flag=
12765
12766if test "$GCC" = yes; then
12767 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12768
12769 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12770$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12771if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12772 $as_echo_n "(cached) " >&6
12773else
12774 lt_cv_prog_compiler_rtti_exceptions=no
12775 ac_outfile=conftest.$ac_objext
12776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12777 lt_compiler_flag="-fno-rtti -fno-exceptions"
12778 # Insert the option either (1) after the last *FLAGS variable, or
12779 # (2) before a word containing "conftest.", or (3) at the end.
12780 # Note that $ac_compile itself does not contain backslashes and begins
12781 # with a dollar sign (not a hyphen), so the echo should work correctly.
12782 # The option is referenced via a variable to avoid confusing sed.
12783 lt_compile=`echo "$ac_compile" | $SED \
12784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12786 -e 's:$: $lt_compiler_flag:'`
cristyc7083c12009-10-14 03:16:55 +000012787 (eval echo "\"\$as_me:12787: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012788 (eval "$lt_compile" 2>conftest.err)
12789 ac_status=$?
12790 cat conftest.err >&5
cristyc7083c12009-10-14 03:16:55 +000012791 echo "$as_me:12791: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012792 if (exit $ac_status) && test -s "$ac_outfile"; then
12793 # The compiler can only warn and ignore the option if not recognized
12794 # So say no if there are warnings other than the usual output.
12795 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12796 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12797 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12798 lt_cv_prog_compiler_rtti_exceptions=yes
12799 fi
12800 fi
12801 $RM conftest*
12802
12803fi
12804{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12805$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12806
12807if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12808 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12809else
12810 :
12811fi
12812
12813fi
12814
12815
12816
12817
12818
12819
12820 lt_prog_compiler_wl=
12821lt_prog_compiler_pic=
12822lt_prog_compiler_static=
12823
12824{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12825$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12826
12827 if test "$GCC" = yes; then
12828 lt_prog_compiler_wl='-Wl,'
12829 lt_prog_compiler_static='-static'
12830
12831 case $host_os in
12832 aix*)
12833 # All AIX code is PIC.
12834 if test "$host_cpu" = ia64; then
12835 # AIX 5 now supports IA64 processor
12836 lt_prog_compiler_static='-Bstatic'
12837 fi
12838 ;;
12839
12840 amigaos*)
12841 case $host_cpu in
12842 powerpc)
12843 # see comment about AmigaOS4 .so support
12844 lt_prog_compiler_pic='-fPIC'
12845 ;;
12846 m68k)
12847 # FIXME: we need at least 68020 code to build shared libraries, but
12848 # adding the `-m68020' flag to GCC prevents building anything better,
12849 # like `-m68040'.
12850 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12851 ;;
12852 esac
12853 ;;
12854
12855 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12856 # PIC is the default for these OSes.
12857 ;;
12858
12859 mingw* | cygwin* | pw32* | os2* | cegcc*)
12860 # This hack is so that the source file can tell whether it is being
12861 # built for inclusion in a dll (and should export symbols for example).
12862 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12863 # (--disable-auto-import) libraries
12864 lt_prog_compiler_pic='-DDLL_EXPORT'
12865 ;;
12866
12867 darwin* | rhapsody*)
12868 # PIC is the default on this platform
12869 # Common symbols not allowed in MH_DYLIB files
12870 lt_prog_compiler_pic='-fno-common'
12871 ;;
12872
12873 hpux*)
12874 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12875 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12876 # sets the default TLS model and affects inlining.
12877 case $host_cpu in
12878 hppa*64*)
12879 # +Z the default
12880 ;;
12881 *)
12882 lt_prog_compiler_pic='-fPIC'
12883 ;;
12884 esac
12885 ;;
12886
12887 interix[3-9]*)
12888 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12889 # Instead, we relocate shared libraries at runtime.
12890 ;;
12891
12892 msdosdjgpp*)
12893 # Just because we use GCC doesn't mean we suddenly get shared libraries
12894 # on systems that don't support them.
12895 lt_prog_compiler_can_build_shared=no
12896 enable_shared=no
12897 ;;
12898
12899 *nto* | *qnx*)
12900 # QNX uses GNU C++, but need to define -shared option too, otherwise
12901 # it will coredump.
12902 lt_prog_compiler_pic='-fPIC -shared'
12903 ;;
12904
12905 sysv4*MP*)
12906 if test -d /usr/nec; then
12907 lt_prog_compiler_pic=-Kconform_pic
12908 fi
12909 ;;
12910
12911 *)
12912 lt_prog_compiler_pic='-fPIC'
12913 ;;
12914 esac
12915 else
12916 # PORTME Check for flag to pass linker flags through the system compiler.
12917 case $host_os in
12918 aix*)
12919 lt_prog_compiler_wl='-Wl,'
12920 if test "$host_cpu" = ia64; then
12921 # AIX 5 now supports IA64 processor
12922 lt_prog_compiler_static='-Bstatic'
12923 else
12924 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12925 fi
12926 ;;
12927
12928 mingw* | cygwin* | pw32* | os2* | cegcc*)
12929 # This hack is so that the source file can tell whether it is being
12930 # built for inclusion in a dll (and should export symbols for example).
12931 lt_prog_compiler_pic='-DDLL_EXPORT'
12932 ;;
12933
12934 hpux9* | hpux10* | hpux11*)
12935 lt_prog_compiler_wl='-Wl,'
12936 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12937 # not for PA HP-UX.
12938 case $host_cpu in
12939 hppa*64*|ia64*)
12940 # +Z the default
12941 ;;
12942 *)
12943 lt_prog_compiler_pic='+Z'
12944 ;;
12945 esac
12946 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12947 lt_prog_compiler_static='${wl}-a ${wl}archive'
12948 ;;
12949
12950 irix5* | irix6* | nonstopux*)
12951 lt_prog_compiler_wl='-Wl,'
12952 # PIC (with -KPIC) is the default.
12953 lt_prog_compiler_static='-non_shared'
12954 ;;
12955
12956 linux* | k*bsd*-gnu)
12957 case $cc_basename in
12958 # old Intel for x86_64 which still supported -KPIC.
12959 ecc*)
12960 lt_prog_compiler_wl='-Wl,'
12961 lt_prog_compiler_pic='-KPIC'
12962 lt_prog_compiler_static='-static'
12963 ;;
12964 # icc used to be incompatible with GCC.
12965 # ICC 10 doesn't accept -KPIC any more.
12966 icc* | ifort*)
12967 lt_prog_compiler_wl='-Wl,'
12968 lt_prog_compiler_pic='-fPIC'
12969 lt_prog_compiler_static='-static'
12970 ;;
12971 # Lahey Fortran 8.1.
12972 lf95*)
12973 lt_prog_compiler_wl='-Wl,'
12974 lt_prog_compiler_pic='--shared'
12975 lt_prog_compiler_static='--static'
12976 ;;
12977 pgcc* | pgf77* | pgf90* | pgf95*)
12978 # Portland Group compilers (*not* the Pentium gcc compiler,
12979 # which looks to be a dead project)
12980 lt_prog_compiler_wl='-Wl,'
12981 lt_prog_compiler_pic='-fpic'
12982 lt_prog_compiler_static='-Bstatic'
12983 ;;
12984 ccc*)
12985 lt_prog_compiler_wl='-Wl,'
12986 # All Alpha code is PIC.
12987 lt_prog_compiler_static='-non_shared'
12988 ;;
12989 xl*)
12990 # IBM XL C 8.0/Fortran 10.1 on PPC
12991 lt_prog_compiler_wl='-Wl,'
12992 lt_prog_compiler_pic='-qpic'
12993 lt_prog_compiler_static='-qstaticlink'
12994 ;;
12995 *)
12996 case `$CC -V 2>&1 | sed 5q` in
12997 *Sun\ C*)
12998 # Sun C 5.9
12999 lt_prog_compiler_pic='-KPIC'
13000 lt_prog_compiler_static='-Bstatic'
13001 lt_prog_compiler_wl='-Wl,'
13002 ;;
13003 *Sun\ F*)
13004 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13005 lt_prog_compiler_pic='-KPIC'
13006 lt_prog_compiler_static='-Bstatic'
13007 lt_prog_compiler_wl=''
13008 ;;
13009 esac
13010 ;;
13011 esac
13012 ;;
13013
13014 newsos6)
13015 lt_prog_compiler_pic='-KPIC'
13016 lt_prog_compiler_static='-Bstatic'
13017 ;;
13018
13019 *nto* | *qnx*)
13020 # QNX uses GNU C++, but need to define -shared option too, otherwise
13021 # it will coredump.
13022 lt_prog_compiler_pic='-fPIC -shared'
13023 ;;
13024
13025 osf3* | osf4* | osf5*)
13026 lt_prog_compiler_wl='-Wl,'
13027 # All OSF/1 code is PIC.
13028 lt_prog_compiler_static='-non_shared'
13029 ;;
13030
13031 rdos*)
13032 lt_prog_compiler_static='-non_shared'
13033 ;;
13034
13035 solaris*)
13036 lt_prog_compiler_pic='-KPIC'
13037 lt_prog_compiler_static='-Bstatic'
13038 case $cc_basename in
13039 f77* | f90* | f95*)
13040 lt_prog_compiler_wl='-Qoption ld ';;
13041 *)
13042 lt_prog_compiler_wl='-Wl,';;
13043 esac
13044 ;;
13045
13046 sunos4*)
13047 lt_prog_compiler_wl='-Qoption ld '
13048 lt_prog_compiler_pic='-PIC'
13049 lt_prog_compiler_static='-Bstatic'
13050 ;;
13051
13052 sysv4 | sysv4.2uw2* | sysv4.3*)
13053 lt_prog_compiler_wl='-Wl,'
13054 lt_prog_compiler_pic='-KPIC'
13055 lt_prog_compiler_static='-Bstatic'
13056 ;;
13057
13058 sysv4*MP*)
13059 if test -d /usr/nec ;then
13060 lt_prog_compiler_pic='-Kconform_pic'
13061 lt_prog_compiler_static='-Bstatic'
13062 fi
13063 ;;
13064
13065 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13066 lt_prog_compiler_wl='-Wl,'
13067 lt_prog_compiler_pic='-KPIC'
13068 lt_prog_compiler_static='-Bstatic'
13069 ;;
13070
13071 unicos*)
13072 lt_prog_compiler_wl='-Wl,'
13073 lt_prog_compiler_can_build_shared=no
13074 ;;
13075
13076 uts4*)
13077 lt_prog_compiler_pic='-pic'
13078 lt_prog_compiler_static='-Bstatic'
13079 ;;
13080
13081 *)
13082 lt_prog_compiler_can_build_shared=no
13083 ;;
13084 esac
13085 fi
13086
13087case $host_os in
13088 # For platforms which do not support PIC, -DPIC is meaningless:
13089 *djgpp*)
13090 lt_prog_compiler_pic=
13091 ;;
13092 *)
13093 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13094 ;;
13095esac
13096{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13097$as_echo "$lt_prog_compiler_pic" >&6; }
13098
13099
13100
13101
13102
13103
13104#
13105# Check to make sure the PIC flag actually works.
13106#
13107if test -n "$lt_prog_compiler_pic"; then
13108 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13109$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13110if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
13111 $as_echo_n "(cached) " >&6
13112else
13113 lt_cv_prog_compiler_pic_works=no
13114 ac_outfile=conftest.$ac_objext
13115 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13116 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13117 # Insert the option either (1) after the last *FLAGS variable, or
13118 # (2) before a word containing "conftest.", or (3) at the end.
13119 # Note that $ac_compile itself does not contain backslashes and begins
13120 # with a dollar sign (not a hyphen), so the echo should work correctly.
13121 # The option is referenced via a variable to avoid confusing sed.
13122 lt_compile=`echo "$ac_compile" | $SED \
13123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13125 -e 's:$: $lt_compiler_flag:'`
cristyc7083c12009-10-14 03:16:55 +000013126 (eval echo "\"\$as_me:13126: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013127 (eval "$lt_compile" 2>conftest.err)
13128 ac_status=$?
13129 cat conftest.err >&5
cristyc7083c12009-10-14 03:16:55 +000013130 echo "$as_me:13130: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013131 if (exit $ac_status) && test -s "$ac_outfile"; then
13132 # The compiler can only warn and ignore the option if not recognized
13133 # So say no if there are warnings other than the usual output.
13134 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13135 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13136 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13137 lt_cv_prog_compiler_pic_works=yes
13138 fi
13139 fi
13140 $RM conftest*
13141
13142fi
13143{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
13144$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13145
13146if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13147 case $lt_prog_compiler_pic in
13148 "" | " "*) ;;
13149 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13150 esac
13151else
13152 lt_prog_compiler_pic=
13153 lt_prog_compiler_can_build_shared=no
13154fi
13155
13156fi
13157
13158
13159
13160
13161
13162
13163#
13164# Check to make sure the static flag actually works.
13165#
13166wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13167{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13168$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13169if test "${lt_cv_prog_compiler_static_works+set}" = set; then
13170 $as_echo_n "(cached) " >&6
13171else
13172 lt_cv_prog_compiler_static_works=no
13173 save_LDFLAGS="$LDFLAGS"
13174 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13175 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13176 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13177 # The linker can only warn and ignore the option if not recognized
13178 # So say no if there are warnings
13179 if test -s conftest.err; then
13180 # Append any errors to the config.log.
13181 cat conftest.err 1>&5
13182 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13183 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13184 if diff conftest.exp conftest.er2 >/dev/null; then
13185 lt_cv_prog_compiler_static_works=yes
13186 fi
13187 else
13188 lt_cv_prog_compiler_static_works=yes
13189 fi
13190 fi
13191 $RM -r conftest*
13192 LDFLAGS="$save_LDFLAGS"
13193
13194fi
13195{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
13196$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13197
13198if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13199 :
13200else
13201 lt_prog_compiler_static=
13202fi
13203
13204
13205
13206
13207
13208
13209
13210 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13211$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13212if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13213 $as_echo_n "(cached) " >&6
13214else
13215 lt_cv_prog_compiler_c_o=no
13216 $RM -r conftest 2>/dev/null
13217 mkdir conftest
13218 cd conftest
13219 mkdir out
13220 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13221
13222 lt_compiler_flag="-o out/conftest2.$ac_objext"
13223 # Insert the option either (1) after the last *FLAGS variable, or
13224 # (2) before a word containing "conftest.", or (3) at the end.
13225 # Note that $ac_compile itself does not contain backslashes and begins
13226 # with a dollar sign (not a hyphen), so the echo should work correctly.
13227 lt_compile=`echo "$ac_compile" | $SED \
13228 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13229 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13230 -e 's:$: $lt_compiler_flag:'`
cristyc7083c12009-10-14 03:16:55 +000013231 (eval echo "\"\$as_me:13231: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013232 (eval "$lt_compile" 2>out/conftest.err)
13233 ac_status=$?
13234 cat out/conftest.err >&5
cristyc7083c12009-10-14 03:16:55 +000013235 echo "$as_me:13235: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013236 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13237 then
13238 # The compiler can only warn and ignore the option if not recognized
13239 # So say no if there are warnings
13240 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13241 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13242 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13243 lt_cv_prog_compiler_c_o=yes
13244 fi
13245 fi
13246 chmod u+w . 2>&5
13247 $RM conftest*
13248 # SGI C++ compiler will create directory out/ii_files/ for
13249 # template instantiation
13250 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13251 $RM out/* && rmdir out
13252 cd ..
13253 $RM -r conftest
13254 $RM conftest*
13255
13256fi
13257{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13258$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13259
13260
13261
13262
13263
13264
13265 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13266$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13267if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13268 $as_echo_n "(cached) " >&6
13269else
13270 lt_cv_prog_compiler_c_o=no
13271 $RM -r conftest 2>/dev/null
13272 mkdir conftest
13273 cd conftest
13274 mkdir out
13275 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13276
13277 lt_compiler_flag="-o out/conftest2.$ac_objext"
13278 # Insert the option either (1) after the last *FLAGS variable, or
13279 # (2) before a word containing "conftest.", or (3) at the end.
13280 # Note that $ac_compile itself does not contain backslashes and begins
13281 # with a dollar sign (not a hyphen), so the echo should work correctly.
13282 lt_compile=`echo "$ac_compile" | $SED \
13283 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13284 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13285 -e 's:$: $lt_compiler_flag:'`
cristyc7083c12009-10-14 03:16:55 +000013286 (eval echo "\"\$as_me:13286: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013287 (eval "$lt_compile" 2>out/conftest.err)
13288 ac_status=$?
13289 cat out/conftest.err >&5
cristyc7083c12009-10-14 03:16:55 +000013290 echo "$as_me:13290: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013291 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13292 then
13293 # The compiler can only warn and ignore the option if not recognized
13294 # So say no if there are warnings
13295 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13296 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13297 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13298 lt_cv_prog_compiler_c_o=yes
13299 fi
13300 fi
13301 chmod u+w . 2>&5
13302 $RM conftest*
13303 # SGI C++ compiler will create directory out/ii_files/ for
13304 # template instantiation
13305 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13306 $RM out/* && rmdir out
13307 cd ..
13308 $RM -r conftest
13309 $RM conftest*
13310
13311fi
13312{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13313$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13314
13315
13316
13317
13318hard_links="nottested"
13319if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13320 # do not overwrite the value of need_locks provided by the user
13321 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13322$as_echo_n "checking if we can lock with hard links... " >&6; }
13323 hard_links=yes
13324 $RM conftest*
13325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13326 touch conftest.a
13327 ln conftest.a conftest.b 2>&5 || hard_links=no
13328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13329 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13330$as_echo "$hard_links" >&6; }
13331 if test "$hard_links" = no; then
13332 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13333$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13334 need_locks=warn
13335 fi
13336else
13337 need_locks=no
13338fi
13339
13340
13341
13342
13343
13344
13345 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13346$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13347
13348 runpath_var=
13349 allow_undefined_flag=
13350 always_export_symbols=no
13351 archive_cmds=
13352 archive_expsym_cmds=
13353 compiler_needs_object=no
13354 enable_shared_with_static_runtimes=no
13355 export_dynamic_flag_spec=
13356 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13357 hardcode_automatic=no
13358 hardcode_direct=no
13359 hardcode_direct_absolute=no
13360 hardcode_libdir_flag_spec=
13361 hardcode_libdir_flag_spec_ld=
13362 hardcode_libdir_separator=
13363 hardcode_minus_L=no
13364 hardcode_shlibpath_var=unsupported
13365 inherit_rpath=no
13366 link_all_deplibs=unknown
13367 module_cmds=
13368 module_expsym_cmds=
13369 old_archive_from_new_cmds=
13370 old_archive_from_expsyms_cmds=
13371 thread_safe_flag_spec=
13372 whole_archive_flag_spec=
13373 # include_expsyms should be a list of space-separated symbols to be *always*
13374 # included in the symbol list
13375 include_expsyms=
13376 # exclude_expsyms can be an extended regexp of symbols to exclude
13377 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13378 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13379 # as well as any symbol that contains `d'.
13380 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13381 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13382 # platforms (ab)use it in PIC code, but their linkers get confused if
13383 # the symbol is explicitly referenced. Since portable code cannot
13384 # rely on this symbol name, it's probably fine to never include it in
13385 # preloaded symbol tables.
13386 # Exclude shared library initialization/finalization symbols.
13387 extract_expsyms_cmds=
13388
13389 case $host_os in
13390 cygwin* | mingw* | pw32* | cegcc*)
13391 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13392 # When not using gcc, we currently assume that we are using
13393 # Microsoft Visual C++.
13394 if test "$GCC" != yes; then
13395 with_gnu_ld=no
13396 fi
13397 ;;
13398 interix*)
13399 # we just hope/assume this is gcc and not c89 (= MSVC++)
13400 with_gnu_ld=yes
13401 ;;
13402 openbsd*)
13403 with_gnu_ld=no
13404 ;;
13405 esac
13406
13407 ld_shlibs=yes
13408 if test "$with_gnu_ld" = yes; then
13409 # If archive_cmds runs LD, not CC, wlarc should be empty
13410 wlarc='${wl}'
13411
13412 # Set some defaults for GNU ld with shared library support. These
13413 # are reset later if shared libraries are not supported. Putting them
13414 # here allows them to be overridden if necessary.
13415 runpath_var=LD_RUN_PATH
13416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13417 export_dynamic_flag_spec='${wl}--export-dynamic'
13418 # ancient GNU ld didn't support --whole-archive et. al.
13419 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13420 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13421 else
13422 whole_archive_flag_spec=
13423 fi
13424 supports_anon_versioning=no
13425 case `$LD -v 2>&1` in
13426 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13427 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13428 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13429 *\ 2.11.*) ;; # other 2.11 versions
13430 *) supports_anon_versioning=yes ;;
13431 esac
13432
13433 # See if GNU ld supports shared libraries.
13434 case $host_os in
13435 aix[3-9]*)
13436 # On AIX/PPC, the GNU linker is very broken
13437 if test "$host_cpu" != ia64; then
13438 ld_shlibs=no
13439 cat <<_LT_EOF 1>&2
13440
13441*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13442*** to be unable to reliably create shared libraries on AIX.
13443*** Therefore, libtool is disabling shared libraries support. If you
13444*** really care for shared libraries, you may want to modify your PATH
13445*** so that a non-GNU linker is found, and then restart.
13446
13447_LT_EOF
13448 fi
13449 ;;
13450
13451 amigaos*)
13452 case $host_cpu in
13453 powerpc)
13454 # see comment about AmigaOS4 .so support
13455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13456 archive_expsym_cmds=''
13457 ;;
13458 m68k)
13459 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)'
13460 hardcode_libdir_flag_spec='-L$libdir'
13461 hardcode_minus_L=yes
13462 ;;
13463 esac
13464 ;;
13465
13466 beos*)
13467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13468 allow_undefined_flag=unsupported
13469 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13470 # support --undefined. This deserves some investigation. FIXME
13471 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13472 else
13473 ld_shlibs=no
13474 fi
13475 ;;
13476
13477 cygwin* | mingw* | pw32* | cegcc*)
13478 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13479 # as there is no search path for DLLs.
13480 hardcode_libdir_flag_spec='-L$libdir'
13481 allow_undefined_flag=unsupported
13482 always_export_symbols=no
13483 enable_shared_with_static_runtimes=yes
13484 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13485
13486 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13488 # If the export-symbols file already is a .def file (1st line
13489 # is EXPORTS), use it as is; otherwise, prepend...
13490 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13491 cp $export_symbols $output_objdir/$soname.def;
13492 else
13493 echo EXPORTS > $output_objdir/$soname.def;
13494 cat $export_symbols >> $output_objdir/$soname.def;
13495 fi~
13496 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13497 else
13498 ld_shlibs=no
13499 fi
13500 ;;
13501
13502 interix[3-9]*)
13503 hardcode_direct=no
13504 hardcode_shlibpath_var=no
13505 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13506 export_dynamic_flag_spec='${wl}-E'
13507 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13508 # Instead, shared libraries are loaded at an image base (0x10000000 by
13509 # default) and relocated if they conflict, which is a slow very memory
13510 # consuming and fragmenting process. To avoid this, we pick a random,
13511 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13512 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13513 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13514 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'
13515 ;;
13516
13517 gnu* | linux* | tpf* | k*bsd*-gnu)
13518 tmp_diet=no
13519 if test "$host_os" = linux-dietlibc; then
13520 case $cc_basename in
13521 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13522 esac
13523 fi
13524 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13525 && test "$tmp_diet" = no
13526 then
13527 tmp_addflag=
13528 tmp_sharedflag='-shared'
13529 case $cc_basename,$host_cpu in
13530 pgcc*) # Portland Group C compiler
13531 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'
13532 tmp_addflag=' $pic_flag'
13533 ;;
13534 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13535 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'
13536 tmp_addflag=' $pic_flag -Mnomain' ;;
13537 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13538 tmp_addflag=' -i_dynamic' ;;
13539 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13540 tmp_addflag=' -i_dynamic -nofor_main' ;;
13541 ifc* | ifort*) # Intel Fortran compiler
13542 tmp_addflag=' -nofor_main' ;;
13543 lf95*) # Lahey Fortran 8.1
13544 whole_archive_flag_spec=
13545 tmp_sharedflag='--shared' ;;
13546 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13547 tmp_sharedflag='-qmkshrobj'
13548 tmp_addflag= ;;
13549 esac
13550 case `$CC -V 2>&1 | sed 5q` in
13551 *Sun\ C*) # Sun C 5.9
13552 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'
13553 compiler_needs_object=yes
13554 tmp_sharedflag='-G' ;;
13555 *Sun\ F*) # Sun Fortran 8.3
13556 tmp_sharedflag='-G' ;;
13557 esac
13558 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13559
13560 if test "x$supports_anon_versioning" = xyes; then
13561 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13562 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13563 echo "local: *; };" >> $output_objdir/$libname.ver~
13564 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13565 fi
13566
13567 case $cc_basename in
13568 xlf*)
13569 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13570 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13571 hardcode_libdir_flag_spec=
13572 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13573 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13574 if test "x$supports_anon_versioning" = xyes; then
13575 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13576 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13577 echo "local: *; };" >> $output_objdir/$libname.ver~
13578 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13579 fi
13580 ;;
13581 esac
13582 else
13583 ld_shlibs=no
13584 fi
13585 ;;
13586
13587 netbsd*)
13588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13589 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13590 wlarc=
13591 else
13592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13593 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13594 fi
13595 ;;
13596
13597 solaris*)
13598 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13599 ld_shlibs=no
13600 cat <<_LT_EOF 1>&2
13601
13602*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13603*** create shared libraries on Solaris systems. Therefore, libtool
13604*** is disabling shared libraries support. We urge you to upgrade GNU
13605*** binutils to release 2.9.1 or newer. Another option is to modify
13606*** your PATH or compiler configuration so that the native linker is
13607*** used, and then restart.
13608
13609_LT_EOF
13610 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13613 else
13614 ld_shlibs=no
13615 fi
13616 ;;
13617
13618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13619 case `$LD -v 2>&1` in
13620 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13621 ld_shlibs=no
13622 cat <<_LT_EOF 1>&2
13623
13624*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13625*** reliably create shared libraries on SCO systems. Therefore, libtool
13626*** is disabling shared libraries support. We urge you to upgrade GNU
13627*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13628*** your PATH or compiler configuration so that the native linker is
13629*** used, and then restart.
13630
13631_LT_EOF
13632 ;;
13633 *)
13634 # For security reasons, it is highly recommended that you always
13635 # use absolute paths for naming shared libraries, and exclude the
13636 # DT_RUNPATH tag from executables and libraries. But doing so
13637 # requires that you compile everything twice, which is a pain.
13638 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13639 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13642 else
13643 ld_shlibs=no
13644 fi
13645 ;;
13646 esac
13647 ;;
13648
13649 sunos4*)
13650 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13651 wlarc=
13652 hardcode_direct=yes
13653 hardcode_shlibpath_var=no
13654 ;;
13655
13656 *)
13657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13658 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13659 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13660 else
13661 ld_shlibs=no
13662 fi
13663 ;;
13664 esac
13665
13666 if test "$ld_shlibs" = no; then
13667 runpath_var=
13668 hardcode_libdir_flag_spec=
13669 export_dynamic_flag_spec=
13670 whole_archive_flag_spec=
13671 fi
13672 else
13673 # PORTME fill in a description of your system's linker (not GNU ld)
13674 case $host_os in
13675 aix3*)
13676 allow_undefined_flag=unsupported
13677 always_export_symbols=yes
13678 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'
13679 # Note: this linker hardcodes the directories in LIBPATH if there
13680 # are no directories specified by -L.
13681 hardcode_minus_L=yes
13682 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13683 # Neither direct hardcoding nor static linking is supported with a
13684 # broken collect2.
13685 hardcode_direct=unsupported
13686 fi
13687 ;;
13688
13689 aix[4-9]*)
13690 if test "$host_cpu" = ia64; then
13691 # On IA64, the linker does run time linking by default, so we don't
13692 # have to do anything special.
13693 aix_use_runtimelinking=no
13694 exp_sym_flag='-Bexport'
13695 no_entry_flag=""
13696 else
13697 # If we're using GNU nm, then we don't want the "-C" option.
13698 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13699 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13700 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'
13701 else
13702 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'
13703 fi
13704 aix_use_runtimelinking=no
13705
13706 # Test if we are trying to use run time linking or normal
13707 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13708 # need to do runtime linking.
13709 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13710 for ld_flag in $LDFLAGS; do
13711 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13712 aix_use_runtimelinking=yes
13713 break
13714 fi
13715 done
13716 ;;
13717 esac
13718
13719 exp_sym_flag='-bexport'
13720 no_entry_flag='-bnoentry'
13721 fi
13722
13723 # When large executables or shared objects are built, AIX ld can
13724 # have problems creating the table of contents. If linking a library
13725 # or program results in "error TOC overflow" add -mminimal-toc to
13726 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13727 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13728
13729 archive_cmds=''
13730 hardcode_direct=yes
13731 hardcode_direct_absolute=yes
13732 hardcode_libdir_separator=':'
13733 link_all_deplibs=yes
13734 file_list_spec='${wl}-f,'
13735
13736 if test "$GCC" = yes; then
13737 case $host_os in aix4.[012]|aix4.[012].*)
13738 # We only want to do this on AIX 4.2 and lower, the check
13739 # below for broken collect2 doesn't work under 4.3+
13740 collect2name=`${CC} -print-prog-name=collect2`
13741 if test -f "$collect2name" &&
13742 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13743 then
13744 # We have reworked collect2
13745 :
13746 else
13747 # We have old collect2
13748 hardcode_direct=unsupported
13749 # It fails to find uninstalled libraries when the uninstalled
13750 # path is not listed in the libpath. Setting hardcode_minus_L
13751 # to unsupported forces relinking
13752 hardcode_minus_L=yes
13753 hardcode_libdir_flag_spec='-L$libdir'
13754 hardcode_libdir_separator=
13755 fi
13756 ;;
13757 esac
13758 shared_flag='-shared'
13759 if test "$aix_use_runtimelinking" = yes; then
13760 shared_flag="$shared_flag "'${wl}-G'
13761 fi
13762 else
13763 # not using gcc
13764 if test "$host_cpu" = ia64; then
13765 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13766 # chokes on -Wl,-G. The following line is correct:
13767 shared_flag='-G'
13768 else
13769 if test "$aix_use_runtimelinking" = yes; then
13770 shared_flag='${wl}-G'
13771 else
13772 shared_flag='${wl}-bM:SRE'
13773 fi
13774 fi
13775 fi
13776
13777 export_dynamic_flag_spec='${wl}-bexpall'
13778 # It seems that -bexpall does not export symbols beginning with
13779 # underscore (_), so it is better to generate a list of symbols to export.
13780 always_export_symbols=yes
13781 if test "$aix_use_runtimelinking" = yes; then
13782 # Warning - without using the other runtime loading flags (-brtl),
13783 # -berok will link without error, but may produce a broken library.
13784 allow_undefined_flag='-berok'
13785 # Determine the default libpath from the value encoded in an
13786 # empty executable.
13787 cat >conftest.$ac_ext <<_ACEOF
13788/* confdefs.h. */
13789_ACEOF
13790cat confdefs.h >>conftest.$ac_ext
13791cat >>conftest.$ac_ext <<_ACEOF
13792/* end confdefs.h. */
13793
13794int
13795main ()
13796{
13797
13798 ;
13799 return 0;
13800}
13801_ACEOF
13802rm -f conftest.$ac_objext conftest$ac_exeext
13803if { (ac_try="$ac_link"
13804case "(($ac_try" in
13805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13806 *) ac_try_echo=$ac_try;;
13807esac
13808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13809$as_echo "$ac_try_echo") >&5
13810 (eval "$ac_link") 2>conftest.er1
13811 ac_status=$?
13812 grep -v '^ *+' conftest.er1 >conftest.err
13813 rm -f conftest.er1
13814 cat conftest.err >&5
13815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } && {
13817 test -z "$ac_c_werror_flag" ||
13818 test ! -s conftest.err
13819 } && test -s conftest$ac_exeext && {
13820 test "$cross_compiling" = yes ||
13821 $as_test_x conftest$ac_exeext
13822 }; then
13823
13824lt_aix_libpath_sed='
13825 /Import File Strings/,/^$/ {
13826 /^0/ {
13827 s/^0 *\(.*\)$/\1/
13828 p
13829 }
13830 }'
13831aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13832# Check for a 64-bit object if we didn't find anything.
13833if test -z "$aix_libpath"; then
13834 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13835fi
13836else
13837 $as_echo "$as_me: failed program was:" >&5
13838sed 's/^/| /' conftest.$ac_ext >&5
13839
13840
13841fi
13842
13843rm -rf conftest.dSYM
13844rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13845 conftest$ac_exeext conftest.$ac_ext
13846if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13847
13848 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13849 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"
13850 else
13851 if test "$host_cpu" = ia64; then
13852 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13853 allow_undefined_flag="-z nodefs"
13854 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"
13855 else
13856 # Determine the default libpath from the value encoded in an
13857 # empty executable.
13858 cat >conftest.$ac_ext <<_ACEOF
13859/* confdefs.h. */
13860_ACEOF
13861cat confdefs.h >>conftest.$ac_ext
13862cat >>conftest.$ac_ext <<_ACEOF
13863/* end confdefs.h. */
13864
13865int
13866main ()
13867{
13868
13869 ;
13870 return 0;
13871}
13872_ACEOF
13873rm -f conftest.$ac_objext conftest$ac_exeext
13874if { (ac_try="$ac_link"
13875case "(($ac_try" in
13876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13878esac
13879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13880$as_echo "$ac_try_echo") >&5
13881 (eval "$ac_link") 2>conftest.er1
13882 ac_status=$?
13883 grep -v '^ *+' conftest.er1 >conftest.err
13884 rm -f conftest.er1
13885 cat conftest.err >&5
13886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13887 (exit $ac_status); } && {
13888 test -z "$ac_c_werror_flag" ||
13889 test ! -s conftest.err
13890 } && test -s conftest$ac_exeext && {
13891 test "$cross_compiling" = yes ||
13892 $as_test_x conftest$ac_exeext
13893 }; then
13894
13895lt_aix_libpath_sed='
13896 /Import File Strings/,/^$/ {
13897 /^0/ {
13898 s/^0 *\(.*\)$/\1/
13899 p
13900 }
13901 }'
13902aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13903# Check for a 64-bit object if we didn't find anything.
13904if test -z "$aix_libpath"; then
13905 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13906fi
13907else
13908 $as_echo "$as_me: failed program was:" >&5
13909sed 's/^/| /' conftest.$ac_ext >&5
13910
13911
13912fi
13913
13914rm -rf conftest.dSYM
13915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13916 conftest$ac_exeext conftest.$ac_ext
13917if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13918
13919 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13920 # Warning - without using the other run time loading flags,
13921 # -berok will link without error, but may produce a broken library.
13922 no_undefined_flag=' ${wl}-bernotok'
13923 allow_undefined_flag=' ${wl}-berok'
13924 # Exported symbols can be pulled into shared objects from archives
13925 whole_archive_flag_spec='$convenience'
13926 archive_cmds_need_lc=yes
13927 # This is similar to how AIX traditionally builds its shared libraries.
13928 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'
13929 fi
13930 fi
13931 ;;
13932
13933 amigaos*)
13934 case $host_cpu in
13935 powerpc)
13936 # see comment about AmigaOS4 .so support
13937 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13938 archive_expsym_cmds=''
13939 ;;
13940 m68k)
13941 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)'
13942 hardcode_libdir_flag_spec='-L$libdir'
13943 hardcode_minus_L=yes
13944 ;;
13945 esac
13946 ;;
13947
13948 bsdi[45]*)
13949 export_dynamic_flag_spec=-rdynamic
13950 ;;
13951
13952 cygwin* | mingw* | pw32* | cegcc*)
13953 # When not using gcc, we currently assume that we are using
13954 # Microsoft Visual C++.
13955 # hardcode_libdir_flag_spec is actually meaningless, as there is
13956 # no search path for DLLs.
13957 hardcode_libdir_flag_spec=' '
13958 allow_undefined_flag=unsupported
13959 # Tell ltmain to make .lib files, not .a files.
13960 libext=lib
13961 # Tell ltmain to make .dll files, not .so files.
13962 shrext_cmds=".dll"
13963 # FIXME: Setting linknames here is a bad hack.
13964 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13965 # The linker will automatically build a .lib file if we build a DLL.
13966 old_archive_from_new_cmds='true'
13967 # FIXME: Should let the user specify the lib program.
13968 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13969 fix_srcfile_path='`cygpath -w "$srcfile"`'
13970 enable_shared_with_static_runtimes=yes
13971 ;;
13972
13973 darwin* | rhapsody*)
13974
13975
13976 archive_cmds_need_lc=no
13977 hardcode_direct=no
13978 hardcode_automatic=yes
13979 hardcode_shlibpath_var=unsupported
13980 whole_archive_flag_spec=''
13981 link_all_deplibs=yes
13982 allow_undefined_flag="$_lt_dar_allow_undefined"
13983 case $cc_basename in
13984 ifort*) _lt_dar_can_shared=yes ;;
13985 *) _lt_dar_can_shared=$GCC ;;
13986 esac
13987 if test "$_lt_dar_can_shared" = "yes"; then
13988 output_verbose_link_cmd=echo
13989 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13990 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13991 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}"
13992 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}"
13993
13994 else
13995 ld_shlibs=no
13996 fi
13997
13998 ;;
13999
14000 dgux*)
14001 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14002 hardcode_libdir_flag_spec='-L$libdir'
14003 hardcode_shlibpath_var=no
14004 ;;
14005
14006 freebsd1*)
14007 ld_shlibs=no
14008 ;;
14009
14010 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14011 # support. Future versions do this automatically, but an explicit c++rt0.o
14012 # does not break anything, and helps significantly (at the cost of a little
14013 # extra space).
14014 freebsd2.2*)
14015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14016 hardcode_libdir_flag_spec='-R$libdir'
14017 hardcode_direct=yes
14018 hardcode_shlibpath_var=no
14019 ;;
14020
14021 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14022 freebsd2*)
14023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14024 hardcode_direct=yes
14025 hardcode_minus_L=yes
14026 hardcode_shlibpath_var=no
14027 ;;
14028
14029 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14030 freebsd* | dragonfly*)
14031 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14032 hardcode_libdir_flag_spec='-R$libdir'
14033 hardcode_direct=yes
14034 hardcode_shlibpath_var=no
14035 ;;
14036
14037 hpux9*)
14038 if test "$GCC" = yes; then
14039 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'
14040 else
14041 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'
14042 fi
14043 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14044 hardcode_libdir_separator=:
14045 hardcode_direct=yes
14046
14047 # hardcode_minus_L: Not really in the search PATH,
14048 # but as the default location of the library.
14049 hardcode_minus_L=yes
14050 export_dynamic_flag_spec='${wl}-E'
14051 ;;
14052
14053 hpux10*)
14054 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14055 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14056 else
14057 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14058 fi
14059 if test "$with_gnu_ld" = no; then
14060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14061 hardcode_libdir_flag_spec_ld='+b $libdir'
14062 hardcode_libdir_separator=:
14063 hardcode_direct=yes
14064 hardcode_direct_absolute=yes
14065 export_dynamic_flag_spec='${wl}-E'
14066 # hardcode_minus_L: Not really in the search PATH,
14067 # but as the default location of the library.
14068 hardcode_minus_L=yes
14069 fi
14070 ;;
14071
14072 hpux11*)
14073 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14074 case $host_cpu in
14075 hppa*64*)
14076 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14077 ;;
14078 ia64*)
14079 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14080 ;;
14081 *)
14082 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14083 ;;
14084 esac
14085 else
14086 case $host_cpu in
14087 hppa*64*)
14088 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14089 ;;
14090 ia64*)
14091 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14092 ;;
14093 *)
14094 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14095 ;;
14096 esac
14097 fi
14098 if test "$with_gnu_ld" = no; then
14099 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14100 hardcode_libdir_separator=:
14101
14102 case $host_cpu in
14103 hppa*64*|ia64*)
14104 hardcode_direct=no
14105 hardcode_shlibpath_var=no
14106 ;;
14107 *)
14108 hardcode_direct=yes
14109 hardcode_direct_absolute=yes
14110 export_dynamic_flag_spec='${wl}-E'
14111
14112 # hardcode_minus_L: Not really in the search PATH,
14113 # but as the default location of the library.
14114 hardcode_minus_L=yes
14115 ;;
14116 esac
14117 fi
14118 ;;
14119
14120 irix5* | irix6* | nonstopux*)
14121 if test "$GCC" = yes; then
14122 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'
14123 # Try to use the -exported_symbol ld option, if it does not
14124 # work, assume that -exports_file does not work either and
14125 # implicitly export all symbols.
14126 save_LDFLAGS="$LDFLAGS"
14127 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14128 cat >conftest.$ac_ext <<_ACEOF
14129int foo(void) {}
14130_ACEOF
14131rm -f conftest.$ac_objext conftest$ac_exeext
14132if { (ac_try="$ac_link"
14133case "(($ac_try" in
14134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14135 *) ac_try_echo=$ac_try;;
14136esac
14137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14138$as_echo "$ac_try_echo") >&5
14139 (eval "$ac_link") 2>conftest.er1
14140 ac_status=$?
14141 grep -v '^ *+' conftest.er1 >conftest.err
14142 rm -f conftest.er1
14143 cat conftest.err >&5
14144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14145 (exit $ac_status); } && {
14146 test -z "$ac_c_werror_flag" ||
14147 test ! -s conftest.err
14148 } && test -s conftest$ac_exeext && {
14149 test "$cross_compiling" = yes ||
14150 $as_test_x conftest$ac_exeext
14151 }; then
14152 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'
14153
14154else
14155 $as_echo "$as_me: failed program was:" >&5
14156sed 's/^/| /' conftest.$ac_ext >&5
14157
14158
14159fi
14160
14161rm -rf conftest.dSYM
14162rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14163 conftest$ac_exeext conftest.$ac_ext
14164 LDFLAGS="$save_LDFLAGS"
14165 else
14166 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'
14167 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'
14168 fi
14169 archive_cmds_need_lc='no'
14170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14171 hardcode_libdir_separator=:
14172 inherit_rpath=yes
14173 link_all_deplibs=yes
14174 ;;
14175
14176 netbsd*)
14177 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14179 else
14180 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14181 fi
14182 hardcode_libdir_flag_spec='-R$libdir'
14183 hardcode_direct=yes
14184 hardcode_shlibpath_var=no
14185 ;;
14186
14187 newsos6)
14188 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14189 hardcode_direct=yes
14190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14191 hardcode_libdir_separator=:
14192 hardcode_shlibpath_var=no
14193 ;;
14194
14195 *nto* | *qnx*)
14196 ;;
14197
14198 openbsd*)
14199 if test -f /usr/libexec/ld.so; then
14200 hardcode_direct=yes
14201 hardcode_shlibpath_var=no
14202 hardcode_direct_absolute=yes
14203 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14204 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14205 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14206 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14207 export_dynamic_flag_spec='${wl}-E'
14208 else
14209 case $host_os in
14210 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14211 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14212 hardcode_libdir_flag_spec='-R$libdir'
14213 ;;
14214 *)
14215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14216 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14217 ;;
14218 esac
14219 fi
14220 else
14221 ld_shlibs=no
14222 fi
14223 ;;
14224
14225 os2*)
14226 hardcode_libdir_flag_spec='-L$libdir'
14227 hardcode_minus_L=yes
14228 allow_undefined_flag=unsupported
14229 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'
14230 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14231 ;;
14232
14233 osf3*)
14234 if test "$GCC" = yes; then
14235 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14236 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'
14237 else
14238 allow_undefined_flag=' -expect_unresolved \*'
14239 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'
14240 fi
14241 archive_cmds_need_lc='no'
14242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14243 hardcode_libdir_separator=:
14244 ;;
14245
14246 osf4* | osf5*) # as osf3* with the addition of -msym flag
14247 if test "$GCC" = yes; then
14248 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14249 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'
14250 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14251 else
14252 allow_undefined_flag=' -expect_unresolved \*'
14253 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'
14254 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~
14255 $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'
14256
14257 # Both c and cxx compiler support -rpath directly
14258 hardcode_libdir_flag_spec='-rpath $libdir'
14259 fi
14260 archive_cmds_need_lc='no'
14261 hardcode_libdir_separator=:
14262 ;;
14263
14264 solaris*)
14265 no_undefined_flag=' -z defs'
14266 if test "$GCC" = yes; then
14267 wlarc='${wl}'
14268 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14269 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14270 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14271 else
14272 case `$CC -V 2>&1` in
14273 *"Compilers 5.0"*)
14274 wlarc=''
14275 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14276 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14277 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14278 ;;
14279 *)
14280 wlarc='${wl}'
14281 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14282 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14283 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14284 ;;
14285 esac
14286 fi
14287 hardcode_libdir_flag_spec='-R$libdir'
14288 hardcode_shlibpath_var=no
14289 case $host_os in
14290 solaris2.[0-5] | solaris2.[0-5].*) ;;
14291 *)
14292 # The compiler driver will combine and reorder linker options,
14293 # but understands `-z linker_flag'. GCC discards it without `$wl',
14294 # but is careful enough not to reorder.
14295 # Supported since Solaris 2.6 (maybe 2.5.1?)
14296 if test "$GCC" = yes; then
14297 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14298 else
14299 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14300 fi
14301 ;;
14302 esac
14303 link_all_deplibs=yes
14304 ;;
14305
14306 sunos4*)
14307 if test "x$host_vendor" = xsequent; then
14308 # Use $CC to link under sequent, because it throws in some extra .o
14309 # files that make .init and .fini sections work.
14310 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14311 else
14312 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14313 fi
14314 hardcode_libdir_flag_spec='-L$libdir'
14315 hardcode_direct=yes
14316 hardcode_minus_L=yes
14317 hardcode_shlibpath_var=no
14318 ;;
14319
14320 sysv4)
14321 case $host_vendor in
14322 sni)
14323 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14324 hardcode_direct=yes # is this really true???
14325 ;;
14326 siemens)
14327 ## LD is ld it makes a PLAMLIB
14328 ## CC just makes a GrossModule.
14329 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14330 reload_cmds='$CC -r -o $output$reload_objs'
14331 hardcode_direct=no
14332 ;;
14333 motorola)
14334 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14335 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14336 ;;
14337 esac
14338 runpath_var='LD_RUN_PATH'
14339 hardcode_shlibpath_var=no
14340 ;;
14341
14342 sysv4.3*)
14343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14344 hardcode_shlibpath_var=no
14345 export_dynamic_flag_spec='-Bexport'
14346 ;;
14347
14348 sysv4*MP*)
14349 if test -d /usr/nec; then
14350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14351 hardcode_shlibpath_var=no
14352 runpath_var=LD_RUN_PATH
14353 hardcode_runpath_var=yes
14354 ld_shlibs=yes
14355 fi
14356 ;;
14357
14358 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14359 no_undefined_flag='${wl}-z,text'
14360 archive_cmds_need_lc=no
14361 hardcode_shlibpath_var=no
14362 runpath_var='LD_RUN_PATH'
14363
14364 if test "$GCC" = yes; then
14365 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14366 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14367 else
14368 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14369 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14370 fi
14371 ;;
14372
14373 sysv5* | sco3.2v5* | sco5v6*)
14374 # Note: We can NOT use -z defs as we might desire, because we do not
14375 # link with -lc, and that would cause any symbols used from libc to
14376 # always be unresolved, which means just about no library would
14377 # ever link correctly. If we're not using GNU ld we use -z text
14378 # though, which does catch some bad symbols but isn't as heavy-handed
14379 # as -z defs.
14380 no_undefined_flag='${wl}-z,text'
14381 allow_undefined_flag='${wl}-z,nodefs'
14382 archive_cmds_need_lc=no
14383 hardcode_shlibpath_var=no
14384 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14385 hardcode_libdir_separator=':'
14386 link_all_deplibs=yes
14387 export_dynamic_flag_spec='${wl}-Bexport'
14388 runpath_var='LD_RUN_PATH'
14389
14390 if test "$GCC" = yes; then
14391 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14392 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14393 else
14394 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14395 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14396 fi
14397 ;;
14398
14399 uts4*)
14400 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14401 hardcode_libdir_flag_spec='-L$libdir'
14402 hardcode_shlibpath_var=no
14403 ;;
14404
14405 *)
14406 ld_shlibs=no
14407 ;;
14408 esac
14409
14410 if test x$host_vendor = xsni; then
14411 case $host in
14412 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14413 export_dynamic_flag_spec='${wl}-Blargedynsym'
14414 ;;
14415 esac
14416 fi
14417 fi
14418
14419{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14420$as_echo "$ld_shlibs" >&6; }
14421test "$ld_shlibs" = no && can_build_shared=no
14422
14423with_gnu_ld=$with_gnu_ld
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439#
14440# Do we need to explicitly link libc?
14441#
14442case "x$archive_cmds_need_lc" in
14443x|xyes)
14444 # Assume -lc should be added
14445 archive_cmds_need_lc=yes
14446
14447 if test "$enable_shared" = yes && test "$GCC" = yes; then
14448 case $archive_cmds in
14449 *'~'*)
14450 # FIXME: we may have to deal with multi-command sequences.
14451 ;;
14452 '$CC '*)
14453 # Test whether the compiler implicitly links with -lc since on some
14454 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14455 # to ld, don't add -lc before -lgcc.
14456 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14457$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14458 $RM conftest*
14459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14460
14461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14462 (eval $ac_compile) 2>&5
14463 ac_status=$?
14464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); } 2>conftest.err; then
14466 soname=conftest
14467 lib=conftest
14468 libobjs=conftest.$ac_objext
14469 deplibs=
14470 wl=$lt_prog_compiler_wl
14471 pic_flag=$lt_prog_compiler_pic
14472 compiler_flags=-v
14473 linker_flags=-v
14474 verstring=
14475 output_objdir=.
14476 libname=conftest
14477 lt_save_allow_undefined_flag=$allow_undefined_flag
14478 allow_undefined_flag=
14479 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14480 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14481 ac_status=$?
14482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }
14484 then
14485 archive_cmds_need_lc=no
14486 else
14487 archive_cmds_need_lc=yes
14488 fi
14489 allow_undefined_flag=$lt_save_allow_undefined_flag
14490 else
14491 cat conftest.err 1>&5
14492 fi
14493 $RM conftest*
14494 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14495$as_echo "$archive_cmds_need_lc" >&6; }
14496 ;;
14497 esac
14498 fi
14499 ;;
14500esac
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14659$as_echo_n "checking dynamic linker characteristics... " >&6; }
14660
14661if test "$GCC" = yes; then
14662 case $host_os in
14663 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14664 *) lt_awk_arg="/^libraries:/" ;;
14665 esac
14666 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14667 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14668 # if the path contains ";" then we assume it to be the separator
14669 # otherwise default to the standard path separator (i.e. ":") - it is
14670 # assumed that no part of a normal pathname contains ";" but that should
14671 # okay in the real world where ";" in dirpaths is itself problematic.
14672 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14673 else
14674 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14675 fi
14676 # Ok, now we have the path, separated by spaces, we can step through it
14677 # and add multilib dir if necessary.
14678 lt_tmp_lt_search_path_spec=
14679 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14680 for lt_sys_path in $lt_search_path_spec; do
14681 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14682 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14683 else
14684 test -d "$lt_sys_path" && \
14685 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14686 fi
14687 done
14688 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14689BEGIN {RS=" "; FS="/|\n";} {
14690 lt_foo="";
14691 lt_count=0;
14692 for (lt_i = NF; lt_i > 0; lt_i--) {
14693 if ($lt_i != "" && $lt_i != ".") {
14694 if ($lt_i == "..") {
14695 lt_count++;
14696 } else {
14697 if (lt_count == 0) {
14698 lt_foo="/" $lt_i lt_foo;
14699 } else {
14700 lt_count--;
14701 }
14702 }
14703 }
14704 }
14705 if (lt_foo != "") { lt_freq[lt_foo]++; }
14706 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14707}'`
14708 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14709else
14710 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14711fi
14712library_names_spec=
14713libname_spec='lib$name'
14714soname_spec=
14715shrext_cmds=".so"
14716postinstall_cmds=
14717postuninstall_cmds=
14718finish_cmds=
14719finish_eval=
14720shlibpath_var=
14721shlibpath_overrides_runpath=unknown
14722version_type=none
14723dynamic_linker="$host_os ld.so"
14724sys_lib_dlsearch_path_spec="/lib /usr/lib"
14725need_lib_prefix=unknown
14726hardcode_into_libs=no
14727
14728# when you set need_version to no, make sure it does not cause -set_version
14729# flags to be left without arguments
14730need_version=unknown
14731
14732case $host_os in
14733aix3*)
14734 version_type=linux
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14736 shlibpath_var=LIBPATH
14737
14738 # AIX 3 has no versioning support, so we append a major version to the name.
14739 soname_spec='${libname}${release}${shared_ext}$major'
14740 ;;
14741
14742aix[4-9]*)
14743 version_type=linux
14744 need_lib_prefix=no
14745 need_version=no
14746 hardcode_into_libs=yes
14747 if test "$host_cpu" = ia64; then
14748 # AIX 5 supports IA64
14749 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14750 shlibpath_var=LD_LIBRARY_PATH
14751 else
14752 # With GCC up to 2.95.x, collect2 would create an import file
14753 # for dependence libraries. The import file would start with
14754 # the line `#! .'. This would cause the generated library to
14755 # depend on `.', always an invalid library. This was fixed in
14756 # development snapshots of GCC prior to 3.0.
14757 case $host_os in
14758 aix4 | aix4.[01] | aix4.[01].*)
14759 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14760 echo ' yes '
14761 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14762 :
14763 else
14764 can_build_shared=no
14765 fi
14766 ;;
14767 esac
14768 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14769 # soname into executable. Probably we can add versioning support to
14770 # collect2, so additional links can be useful in future.
14771 if test "$aix_use_runtimelinking" = yes; then
14772 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14773 # instead of lib<name>.a to let people know that these are not
14774 # typical AIX shared libraries.
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 else
14777 # We preserve .a as extension for shared libraries through AIX4.2
14778 # and later when we are not doing run time linking.
14779 library_names_spec='${libname}${release}.a $libname.a'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 fi
14782 shlibpath_var=LIBPATH
14783 fi
14784 ;;
14785
14786amigaos*)
14787 case $host_cpu in
14788 powerpc)
14789 # Since July 2007 AmigaOS4 officially supports .so libraries.
14790 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792 ;;
14793 m68k)
14794 library_names_spec='$libname.ixlibrary $libname.a'
14795 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14796 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'
14797 ;;
14798 esac
14799 ;;
14800
14801beos*)
14802 library_names_spec='${libname}${shared_ext}'
14803 dynamic_linker="$host_os ld.so"
14804 shlibpath_var=LIBRARY_PATH
14805 ;;
14806
14807bsdi[45]*)
14808 version_type=linux
14809 need_version=no
14810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14811 soname_spec='${libname}${release}${shared_ext}$major'
14812 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14813 shlibpath_var=LD_LIBRARY_PATH
14814 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14815 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14816 # the default ld.so.conf also contains /usr/contrib/lib and
14817 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14818 # libtool to hard-code these into programs
14819 ;;
14820
14821cygwin* | mingw* | pw32* | cegcc*)
14822 version_type=windows
14823 shrext_cmds=".dll"
14824 need_version=no
14825 need_lib_prefix=no
14826
14827 case $GCC,$host_os in
14828 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14829 library_names_spec='$libname.dll.a'
14830 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14831 postinstall_cmds='base_file=`basename \${file}`~
14832 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14833 dldir=$destdir/`dirname \$dlpath`~
14834 test -d \$dldir || mkdir -p \$dldir~
14835 $install_prog $dir/$dlname \$dldir/$dlname~
14836 chmod a+x \$dldir/$dlname~
14837 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14838 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14839 fi'
14840 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14841 dlpath=$dir/\$dldll~
14842 $RM \$dlpath'
14843 shlibpath_overrides_runpath=yes
14844
14845 case $host_os in
14846 cygwin*)
14847 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14848 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14849 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14850 ;;
14851 mingw* | cegcc*)
14852 # MinGW DLLs use traditional 'lib' prefix
14853 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14854 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14855 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14856 # It is most probably a Windows format PATH printed by
14857 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14858 # path with ; separators, and with drive letters. We can handle the
14859 # drive letters (cygwin fileutils understands them), so leave them,
14860 # especially as we might pass files found there to a mingw objdump,
14861 # which wouldn't understand a cygwinified path. Ahh.
14862 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14863 else
14864 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14865 fi
14866 ;;
14867 pw32*)
14868 # pw32 DLLs use 'pw' prefix rather than 'lib'
14869 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14870 ;;
14871 esac
14872 ;;
14873
14874 *)
14875 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14876 ;;
14877 esac
14878 dynamic_linker='Win32 ld.exe'
14879 # FIXME: first we should search . and the directory the executable is in
14880 shlibpath_var=PATH
14881 ;;
14882
14883darwin* | rhapsody*)
14884 dynamic_linker="$host_os dyld"
14885 version_type=darwin
14886 need_lib_prefix=no
14887 need_version=no
14888 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14889 soname_spec='${libname}${release}${major}$shared_ext'
14890 shlibpath_overrides_runpath=yes
14891 shlibpath_var=DYLD_LIBRARY_PATH
14892 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14893
14894 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14895 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14896 ;;
14897
14898dgux*)
14899 version_type=linux
14900 need_lib_prefix=no
14901 need_version=no
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14903 soname_spec='${libname}${release}${shared_ext}$major'
14904 shlibpath_var=LD_LIBRARY_PATH
14905 ;;
14906
14907freebsd1*)
14908 dynamic_linker=no
14909 ;;
14910
14911freebsd* | dragonfly*)
14912 # DragonFly does not have aout. When/if they implement a new
14913 # versioning mechanism, adjust this.
14914 if test -x /usr/bin/objformat; then
14915 objformat=`/usr/bin/objformat`
14916 else
14917 case $host_os in
14918 freebsd[123]*) objformat=aout ;;
14919 *) objformat=elf ;;
14920 esac
14921 fi
14922 version_type=freebsd-$objformat
14923 case $version_type in
14924 freebsd-elf*)
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14926 need_version=no
14927 need_lib_prefix=no
14928 ;;
14929 freebsd-*)
14930 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14931 need_version=yes
14932 ;;
14933 esac
14934 shlibpath_var=LD_LIBRARY_PATH
14935 case $host_os in
14936 freebsd2*)
14937 shlibpath_overrides_runpath=yes
14938 ;;
14939 freebsd3.[01]* | freebsdelf3.[01]*)
14940 shlibpath_overrides_runpath=yes
14941 hardcode_into_libs=yes
14942 ;;
14943 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14944 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14945 shlibpath_overrides_runpath=no
14946 hardcode_into_libs=yes
14947 ;;
14948 *) # from 4.6 on, and DragonFly
14949 shlibpath_overrides_runpath=yes
14950 hardcode_into_libs=yes
14951 ;;
14952 esac
14953 ;;
14954
14955gnu*)
14956 version_type=linux
14957 need_lib_prefix=no
14958 need_version=no
14959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14960 soname_spec='${libname}${release}${shared_ext}$major'
14961 shlibpath_var=LD_LIBRARY_PATH
14962 hardcode_into_libs=yes
14963 ;;
14964
14965hpux9* | hpux10* | hpux11*)
14966 # Give a soname corresponding to the major version so that dld.sl refuses to
14967 # link against other versions.
14968 version_type=sunos
14969 need_lib_prefix=no
14970 need_version=no
14971 case $host_cpu in
14972 ia64*)
14973 shrext_cmds='.so'
14974 hardcode_into_libs=yes
14975 dynamic_linker="$host_os dld.so"
14976 shlibpath_var=LD_LIBRARY_PATH
14977 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14979 soname_spec='${libname}${release}${shared_ext}$major'
14980 if test "X$HPUX_IA64_MODE" = X32; then
14981 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14982 else
14983 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14984 fi
14985 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14986 ;;
14987 hppa*64*)
14988 shrext_cmds='.sl'
14989 hardcode_into_libs=yes
14990 dynamic_linker="$host_os dld.sl"
14991 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14992 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994 soname_spec='${libname}${release}${shared_ext}$major'
14995 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14996 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14997 ;;
14998 *)
14999 shrext_cmds='.sl'
15000 dynamic_linker="$host_os dld.sl"
15001 shlibpath_var=SHLIB_PATH
15002 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15004 soname_spec='${libname}${release}${shared_ext}$major'
15005 ;;
15006 esac
15007 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15008 postinstall_cmds='chmod 555 $lib'
15009 ;;
15010
15011interix[3-9]*)
15012 version_type=linux
15013 need_lib_prefix=no
15014 need_version=no
15015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15016 soname_spec='${libname}${release}${shared_ext}$major'
15017 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15018 shlibpath_var=LD_LIBRARY_PATH
15019 shlibpath_overrides_runpath=no
15020 hardcode_into_libs=yes
15021 ;;
15022
15023irix5* | irix6* | nonstopux*)
15024 case $host_os in
15025 nonstopux*) version_type=nonstopux ;;
15026 *)
15027 if test "$lt_cv_prog_gnu_ld" = yes; then
15028 version_type=linux
15029 else
15030 version_type=irix
15031 fi ;;
15032 esac
15033 need_lib_prefix=no
15034 need_version=no
15035 soname_spec='${libname}${release}${shared_ext}$major'
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15037 case $host_os in
15038 irix5* | nonstopux*)
15039 libsuff= shlibsuff=
15040 ;;
15041 *)
15042 case $LD in # libtool.m4 will add one of these switches to LD
15043 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15044 libsuff= shlibsuff= libmagic=32-bit;;
15045 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15046 libsuff=32 shlibsuff=N32 libmagic=N32;;
15047 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15048 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15049 *) libsuff= shlibsuff= libmagic=never-match;;
15050 esac
15051 ;;
15052 esac
15053 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15054 shlibpath_overrides_runpath=no
15055 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15056 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15057 hardcode_into_libs=yes
15058 ;;
15059
15060# No shared lib support for Linux oldld, aout, or coff.
15061linux*oldld* | linux*aout* | linux*coff*)
15062 dynamic_linker=no
15063 ;;
15064
15065# This must be Linux ELF.
15066linux* | k*bsd*-gnu)
15067 version_type=linux
15068 need_lib_prefix=no
15069 need_version=no
15070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15071 soname_spec='${libname}${release}${shared_ext}$major'
15072 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15073 shlibpath_var=LD_LIBRARY_PATH
15074 shlibpath_overrides_runpath=no
15075 # Some binutils ld are patched to set DT_RUNPATH
15076 save_LDFLAGS=$LDFLAGS
15077 save_libdir=$libdir
15078 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15079 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15080 cat >conftest.$ac_ext <<_ACEOF
15081/* confdefs.h. */
15082_ACEOF
15083cat confdefs.h >>conftest.$ac_ext
15084cat >>conftest.$ac_ext <<_ACEOF
15085/* end confdefs.h. */
15086
15087int
15088main ()
15089{
15090
15091 ;
15092 return 0;
15093}
15094_ACEOF
15095rm -f conftest.$ac_objext conftest$ac_exeext
15096if { (ac_try="$ac_link"
15097case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100esac
15101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15102$as_echo "$ac_try_echo") >&5
15103 (eval "$ac_link") 2>conftest.er1
15104 ac_status=$?
15105 grep -v '^ *+' conftest.er1 >conftest.err
15106 rm -f conftest.er1
15107 cat conftest.err >&5
15108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); } && {
15110 test -z "$ac_c_werror_flag" ||
15111 test ! -s conftest.err
15112 } && test -s conftest$ac_exeext && {
15113 test "$cross_compiling" = yes ||
15114 $as_test_x conftest$ac_exeext
15115 }; then
15116 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15117 shlibpath_overrides_runpath=yes
15118fi
15119
15120else
15121 $as_echo "$as_me: failed program was:" >&5
15122sed 's/^/| /' conftest.$ac_ext >&5
15123
15124
15125fi
15126
15127rm -rf conftest.dSYM
15128rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15129 conftest$ac_exeext conftest.$ac_ext
15130 LDFLAGS=$save_LDFLAGS
15131 libdir=$save_libdir
15132
15133 # This implies no fast_install, which is unacceptable.
15134 # Some rework will be needed to allow for fast_install
15135 # before this can be enabled.
15136 hardcode_into_libs=yes
15137
15138 # Add ABI-specific directories to the system library path.
15139 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15140
15141 # Append ld.so.conf contents to the search path
15142 if test -f /etc/ld.so.conf; then
15143 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' ' '`
15144 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15145 fi
15146
15147 # We used to test for /lib/ld.so.1 and disable shared libraries on
15148 # powerpc, because MkLinux only supported shared libraries with the
15149 # GNU dynamic linker. Since this was broken with cross compilers,
15150 # most powerpc-linux boxes support dynamic linking these days and
15151 # people can always --disable-shared, the test was removed, and we
15152 # assume the GNU/Linux dynamic linker is in use.
15153 dynamic_linker='GNU/Linux ld.so'
15154 ;;
15155
15156netbsd*)
15157 version_type=sunos
15158 need_lib_prefix=no
15159 need_version=no
15160 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15162 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15163 dynamic_linker='NetBSD (a.out) ld.so'
15164 else
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15166 soname_spec='${libname}${release}${shared_ext}$major'
15167 dynamic_linker='NetBSD ld.elf_so'
15168 fi
15169 shlibpath_var=LD_LIBRARY_PATH
15170 shlibpath_overrides_runpath=yes
15171 hardcode_into_libs=yes
15172 ;;
15173
15174newsos6)
15175 version_type=linux
15176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15177 shlibpath_var=LD_LIBRARY_PATH
15178 shlibpath_overrides_runpath=yes
15179 ;;
15180
15181*nto* | *qnx*)
15182 version_type=qnx
15183 need_lib_prefix=no
15184 need_version=no
15185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15186 soname_spec='${libname}${release}${shared_ext}$major'
15187 shlibpath_var=LD_LIBRARY_PATH
15188 shlibpath_overrides_runpath=no
15189 hardcode_into_libs=yes
15190 dynamic_linker='ldqnx.so'
15191 ;;
15192
15193openbsd*)
15194 version_type=sunos
15195 sys_lib_dlsearch_path_spec="/usr/lib"
15196 need_lib_prefix=no
15197 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15198 case $host_os in
15199 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15200 *) need_version=no ;;
15201 esac
15202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15203 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15204 shlibpath_var=LD_LIBRARY_PATH
15205 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15206 case $host_os in
15207 openbsd2.[89] | openbsd2.[89].*)
15208 shlibpath_overrides_runpath=no
15209 ;;
15210 *)
15211 shlibpath_overrides_runpath=yes
15212 ;;
15213 esac
15214 else
15215 shlibpath_overrides_runpath=yes
15216 fi
15217 ;;
15218
15219os2*)
15220 libname_spec='$name'
15221 shrext_cmds=".dll"
15222 need_lib_prefix=no
15223 library_names_spec='$libname${shared_ext} $libname.a'
15224 dynamic_linker='OS/2 ld.exe'
15225 shlibpath_var=LIBPATH
15226 ;;
15227
15228osf3* | osf4* | osf5*)
15229 version_type=osf
15230 need_lib_prefix=no
15231 need_version=no
15232 soname_spec='${libname}${release}${shared_ext}$major'
15233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15234 shlibpath_var=LD_LIBRARY_PATH
15235 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15236 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15237 ;;
15238
15239rdos*)
15240 dynamic_linker=no
15241 ;;
15242
15243solaris*)
15244 version_type=linux
15245 need_lib_prefix=no
15246 need_version=no
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248 soname_spec='${libname}${release}${shared_ext}$major'
15249 shlibpath_var=LD_LIBRARY_PATH
15250 shlibpath_overrides_runpath=yes
15251 hardcode_into_libs=yes
15252 # ldd complains unless libraries are executable
15253 postinstall_cmds='chmod +x $lib'
15254 ;;
15255
15256sunos4*)
15257 version_type=sunos
15258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15259 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15260 shlibpath_var=LD_LIBRARY_PATH
15261 shlibpath_overrides_runpath=yes
15262 if test "$with_gnu_ld" = yes; then
15263 need_lib_prefix=no
15264 fi
15265 need_version=yes
15266 ;;
15267
15268sysv4 | sysv4.3*)
15269 version_type=linux
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271 soname_spec='${libname}${release}${shared_ext}$major'
15272 shlibpath_var=LD_LIBRARY_PATH
15273 case $host_vendor in
15274 sni)
15275 shlibpath_overrides_runpath=no
15276 need_lib_prefix=no
15277 runpath_var=LD_RUN_PATH
15278 ;;
15279 siemens)
15280 need_lib_prefix=no
15281 ;;
15282 motorola)
15283 need_lib_prefix=no
15284 need_version=no
15285 shlibpath_overrides_runpath=no
15286 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15287 ;;
15288 esac
15289 ;;
15290
15291sysv4*MP*)
15292 if test -d /usr/nec ;then
15293 version_type=linux
15294 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15295 soname_spec='$libname${shared_ext}.$major'
15296 shlibpath_var=LD_LIBRARY_PATH
15297 fi
15298 ;;
15299
15300sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15301 version_type=freebsd-elf
15302 need_lib_prefix=no
15303 need_version=no
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 shlibpath_overrides_runpath=yes
15308 hardcode_into_libs=yes
15309 if test "$with_gnu_ld" = yes; then
15310 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15311 else
15312 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15313 case $host_os in
15314 sco3.2v5*)
15315 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15316 ;;
15317 esac
15318 fi
15319 sys_lib_dlsearch_path_spec='/usr/lib'
15320 ;;
15321
15322tpf*)
15323 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15324 version_type=linux
15325 need_lib_prefix=no
15326 need_version=no
15327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15328 shlibpath_var=LD_LIBRARY_PATH
15329 shlibpath_overrides_runpath=no
15330 hardcode_into_libs=yes
15331 ;;
15332
15333uts4*)
15334 version_type=linux
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336 soname_spec='${libname}${release}${shared_ext}$major'
15337 shlibpath_var=LD_LIBRARY_PATH
15338 ;;
15339
15340*)
15341 dynamic_linker=no
15342 ;;
15343esac
15344{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15345$as_echo "$dynamic_linker" >&6; }
15346test "$dynamic_linker" = no && can_build_shared=no
15347
15348variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15349if test "$GCC" = yes; then
15350 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15351fi
15352
15353if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15354 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15355fi
15356if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15357 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15358fi
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15447$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15448hardcode_action=
15449if test -n "$hardcode_libdir_flag_spec" ||
15450 test -n "$runpath_var" ||
15451 test "X$hardcode_automatic" = "Xyes" ; then
15452
15453 # We can hardcode non-existent directories.
15454 if test "$hardcode_direct" != no &&
15455 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15456 # have to relink, otherwise we might link with an installed library
15457 # when we should be linking with a yet-to-be-installed one
15458 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15459 test "$hardcode_minus_L" != no; then
15460 # Linking always hardcodes the temporary library directory.
15461 hardcode_action=relink
15462 else
15463 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15464 hardcode_action=immediate
15465 fi
15466else
15467 # We cannot hardcode anything, or else we can only hardcode existing
15468 # directories.
15469 hardcode_action=unsupported
15470fi
15471{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
15472$as_echo "$hardcode_action" >&6; }
15473
15474if test "$hardcode_action" = relink ||
15475 test "$inherit_rpath" = yes; then
15476 # Fast installation is not supported
15477 enable_fast_install=no
15478elif test "$shlibpath_overrides_runpath" = yes ||
15479 test "$enable_shared" = no; then
15480 # Fast installation is not necessary
15481 enable_fast_install=needless
15482fi
15483
15484
15485
15486
15487
15488
15489 if test "x$enable_dlopen" != xyes; then
15490 enable_dlopen=unknown
15491 enable_dlopen_self=unknown
15492 enable_dlopen_self_static=unknown
15493else
15494 lt_cv_dlopen=no
15495 lt_cv_dlopen_libs=
15496
15497 case $host_os in
15498 beos*)
15499 lt_cv_dlopen="load_add_on"
15500 lt_cv_dlopen_libs=
15501 lt_cv_dlopen_self=yes
15502 ;;
15503
15504 mingw* | pw32* | cegcc*)
15505 lt_cv_dlopen="LoadLibrary"
15506 lt_cv_dlopen_libs=
15507 ;;
15508
15509 cygwin*)
15510 lt_cv_dlopen="dlopen"
15511 lt_cv_dlopen_libs=
15512 ;;
15513
15514 darwin*)
15515 # if libdl is installed we need to link against it
15516 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15517$as_echo_n "checking for dlopen in -ldl... " >&6; }
15518if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15519 $as_echo_n "(cached) " >&6
15520else
15521 ac_check_lib_save_LIBS=$LIBS
15522LIBS="-ldl $LIBS"
15523cat >conftest.$ac_ext <<_ACEOF
15524/* confdefs.h. */
15525_ACEOF
15526cat confdefs.h >>conftest.$ac_ext
15527cat >>conftest.$ac_ext <<_ACEOF
15528/* end confdefs.h. */
15529
15530/* Override any GCC internal prototype to avoid an error.
15531 Use char because int might match the return type of a GCC
15532 builtin and then its argument prototype would still apply. */
15533#ifdef __cplusplus
15534extern "C"
15535#endif
15536char dlopen ();
15537int
15538main ()
15539{
15540return dlopen ();
15541 ;
15542 return 0;
15543}
15544_ACEOF
15545rm -f conftest.$ac_objext conftest$ac_exeext
15546if { (ac_try="$ac_link"
15547case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15550esac
15551eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15552$as_echo "$ac_try_echo") >&5
15553 (eval "$ac_link") 2>conftest.er1
15554 ac_status=$?
15555 grep -v '^ *+' conftest.er1 >conftest.err
15556 rm -f conftest.er1
15557 cat conftest.err >&5
15558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15559 (exit $ac_status); } && {
15560 test -z "$ac_c_werror_flag" ||
15561 test ! -s conftest.err
15562 } && test -s conftest$ac_exeext && {
15563 test "$cross_compiling" = yes ||
15564 $as_test_x conftest$ac_exeext
15565 }; then
15566 ac_cv_lib_dl_dlopen=yes
15567else
15568 $as_echo "$as_me: failed program was:" >&5
15569sed 's/^/| /' conftest.$ac_ext >&5
15570
15571 ac_cv_lib_dl_dlopen=no
15572fi
15573
15574rm -rf conftest.dSYM
15575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15576 conftest$ac_exeext conftest.$ac_ext
15577LIBS=$ac_check_lib_save_LIBS
15578fi
15579{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15580$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15581if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15582 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15583else
15584
15585 lt_cv_dlopen="dyld"
15586 lt_cv_dlopen_libs=
15587 lt_cv_dlopen_self=yes
15588
15589fi
15590
15591 ;;
15592
15593 *)
15594 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
15595$as_echo_n "checking for shl_load... " >&6; }
15596if test "${ac_cv_func_shl_load+set}" = set; then
15597 $as_echo_n "(cached) " >&6
15598else
15599 cat >conftest.$ac_ext <<_ACEOF
15600/* confdefs.h. */
15601_ACEOF
15602cat confdefs.h >>conftest.$ac_ext
15603cat >>conftest.$ac_ext <<_ACEOF
15604/* end confdefs.h. */
15605/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15607#define shl_load innocuous_shl_load
15608
15609/* System header to define __stub macros and hopefully few prototypes,
15610 which can conflict with char shl_load (); below.
15611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15612 <limits.h> exists even on freestanding compilers. */
15613
15614#ifdef __STDC__
15615# include <limits.h>
15616#else
15617# include <assert.h>
15618#endif
15619
15620#undef shl_load
15621
15622/* Override any GCC internal prototype to avoid an error.
15623 Use char because int might match the return type of a GCC
15624 builtin and then its argument prototype would still apply. */
15625#ifdef __cplusplus
15626extern "C"
15627#endif
15628char shl_load ();
15629/* The GNU C library defines this for functions which it implements
15630 to always fail with ENOSYS. Some functions are actually named
15631 something starting with __ and the normal name is an alias. */
15632#if defined __stub_shl_load || defined __stub___shl_load
15633choke me
15634#endif
15635
15636int
15637main ()
15638{
15639return shl_load ();
15640 ;
15641 return 0;
15642}
15643_ACEOF
15644rm -f conftest.$ac_objext conftest$ac_exeext
15645if { (ac_try="$ac_link"
15646case "(($ac_try" in
15647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15648 *) ac_try_echo=$ac_try;;
15649esac
15650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15651$as_echo "$ac_try_echo") >&5
15652 (eval "$ac_link") 2>conftest.er1
15653 ac_status=$?
15654 grep -v '^ *+' conftest.er1 >conftest.err
15655 rm -f conftest.er1
15656 cat conftest.err >&5
15657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15658 (exit $ac_status); } && {
15659 test -z "$ac_c_werror_flag" ||
15660 test ! -s conftest.err
15661 } && test -s conftest$ac_exeext && {
15662 test "$cross_compiling" = yes ||
15663 $as_test_x conftest$ac_exeext
15664 }; then
15665 ac_cv_func_shl_load=yes
15666else
15667 $as_echo "$as_me: failed program was:" >&5
15668sed 's/^/| /' conftest.$ac_ext >&5
15669
15670 ac_cv_func_shl_load=no
15671fi
15672
15673rm -rf conftest.dSYM
15674rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15675 conftest$ac_exeext conftest.$ac_ext
15676fi
15677{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15678$as_echo "$ac_cv_func_shl_load" >&6; }
15679if test "x$ac_cv_func_shl_load" = x""yes; then
15680 lt_cv_dlopen="shl_load"
15681else
15682 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15683$as_echo_n "checking for shl_load in -ldld... " >&6; }
15684if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15685 $as_echo_n "(cached) " >&6
15686else
15687 ac_check_lib_save_LIBS=$LIBS
15688LIBS="-ldld $LIBS"
15689cat >conftest.$ac_ext <<_ACEOF
15690/* confdefs.h. */
15691_ACEOF
15692cat confdefs.h >>conftest.$ac_ext
15693cat >>conftest.$ac_ext <<_ACEOF
15694/* end confdefs.h. */
15695
15696/* Override any GCC internal prototype to avoid an error.
15697 Use char because int might match the return type of a GCC
15698 builtin and then its argument prototype would still apply. */
15699#ifdef __cplusplus
15700extern "C"
15701#endif
15702char shl_load ();
15703int
15704main ()
15705{
15706return shl_load ();
15707 ;
15708 return 0;
15709}
15710_ACEOF
15711rm -f conftest.$ac_objext conftest$ac_exeext
15712if { (ac_try="$ac_link"
15713case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15716esac
15717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15718$as_echo "$ac_try_echo") >&5
15719 (eval "$ac_link") 2>conftest.er1
15720 ac_status=$?
15721 grep -v '^ *+' conftest.er1 >conftest.err
15722 rm -f conftest.er1
15723 cat conftest.err >&5
15724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15725 (exit $ac_status); } && {
15726 test -z "$ac_c_werror_flag" ||
15727 test ! -s conftest.err
15728 } && test -s conftest$ac_exeext && {
15729 test "$cross_compiling" = yes ||
15730 $as_test_x conftest$ac_exeext
15731 }; then
15732 ac_cv_lib_dld_shl_load=yes
15733else
15734 $as_echo "$as_me: failed program was:" >&5
15735sed 's/^/| /' conftest.$ac_ext >&5
15736
15737 ac_cv_lib_dld_shl_load=no
15738fi
15739
15740rm -rf conftest.dSYM
15741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15742 conftest$ac_exeext conftest.$ac_ext
15743LIBS=$ac_check_lib_save_LIBS
15744fi
15745{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15746$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15747if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
15748 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15749else
15750 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
15751$as_echo_n "checking for dlopen... " >&6; }
15752if test "${ac_cv_func_dlopen+set}" = set; then
15753 $as_echo_n "(cached) " >&6
15754else
15755 cat >conftest.$ac_ext <<_ACEOF
15756/* confdefs.h. */
15757_ACEOF
15758cat confdefs.h >>conftest.$ac_ext
15759cat >>conftest.$ac_ext <<_ACEOF
15760/* end confdefs.h. */
15761/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15763#define dlopen innocuous_dlopen
15764
15765/* System header to define __stub macros and hopefully few prototypes,
15766 which can conflict with char dlopen (); below.
15767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15768 <limits.h> exists even on freestanding compilers. */
15769
15770#ifdef __STDC__
15771# include <limits.h>
15772#else
15773# include <assert.h>
15774#endif
15775
15776#undef dlopen
15777
15778/* Override any GCC internal prototype to avoid an error.
15779 Use char because int might match the return type of a GCC
15780 builtin and then its argument prototype would still apply. */
15781#ifdef __cplusplus
15782extern "C"
15783#endif
15784char dlopen ();
15785/* The GNU C library defines this for functions which it implements
15786 to always fail with ENOSYS. Some functions are actually named
15787 something starting with __ and the normal name is an alias. */
15788#if defined __stub_dlopen || defined __stub___dlopen
15789choke me
15790#endif
15791
15792int
15793main ()
15794{
15795return dlopen ();
15796 ;
15797 return 0;
15798}
15799_ACEOF
15800rm -f conftest.$ac_objext conftest$ac_exeext
15801if { (ac_try="$ac_link"
15802case "(($ac_try" in
15803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15804 *) ac_try_echo=$ac_try;;
15805esac
15806eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15807$as_echo "$ac_try_echo") >&5
15808 (eval "$ac_link") 2>conftest.er1
15809 ac_status=$?
15810 grep -v '^ *+' conftest.er1 >conftest.err
15811 rm -f conftest.er1
15812 cat conftest.err >&5
15813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } && {
15815 test -z "$ac_c_werror_flag" ||
15816 test ! -s conftest.err
15817 } && test -s conftest$ac_exeext && {
15818 test "$cross_compiling" = yes ||
15819 $as_test_x conftest$ac_exeext
15820 }; then
15821 ac_cv_func_dlopen=yes
15822else
15823 $as_echo "$as_me: failed program was:" >&5
15824sed 's/^/| /' conftest.$ac_ext >&5
15825
15826 ac_cv_func_dlopen=no
15827fi
15828
15829rm -rf conftest.dSYM
15830rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15831 conftest$ac_exeext conftest.$ac_ext
15832fi
15833{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15834$as_echo "$ac_cv_func_dlopen" >&6; }
15835if test "x$ac_cv_func_dlopen" = x""yes; then
15836 lt_cv_dlopen="dlopen"
15837else
15838 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15839$as_echo_n "checking for dlopen in -ldl... " >&6; }
15840if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15841 $as_echo_n "(cached) " >&6
15842else
15843 ac_check_lib_save_LIBS=$LIBS
15844LIBS="-ldl $LIBS"
15845cat >conftest.$ac_ext <<_ACEOF
15846/* confdefs.h. */
15847_ACEOF
15848cat confdefs.h >>conftest.$ac_ext
15849cat >>conftest.$ac_ext <<_ACEOF
15850/* end confdefs.h. */
15851
15852/* Override any GCC internal prototype to avoid an error.
15853 Use char because int might match the return type of a GCC
15854 builtin and then its argument prototype would still apply. */
15855#ifdef __cplusplus
15856extern "C"
15857#endif
15858char dlopen ();
15859int
15860main ()
15861{
15862return dlopen ();
15863 ;
15864 return 0;
15865}
15866_ACEOF
15867rm -f conftest.$ac_objext conftest$ac_exeext
15868if { (ac_try="$ac_link"
15869case "(($ac_try" in
15870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871 *) ac_try_echo=$ac_try;;
15872esac
15873eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15874$as_echo "$ac_try_echo") >&5
15875 (eval "$ac_link") 2>conftest.er1
15876 ac_status=$?
15877 grep -v '^ *+' conftest.er1 >conftest.err
15878 rm -f conftest.er1
15879 cat conftest.err >&5
15880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15881 (exit $ac_status); } && {
15882 test -z "$ac_c_werror_flag" ||
15883 test ! -s conftest.err
15884 } && test -s conftest$ac_exeext && {
15885 test "$cross_compiling" = yes ||
15886 $as_test_x conftest$ac_exeext
15887 }; then
15888 ac_cv_lib_dl_dlopen=yes
15889else
15890 $as_echo "$as_me: failed program was:" >&5
15891sed 's/^/| /' conftest.$ac_ext >&5
15892
15893 ac_cv_lib_dl_dlopen=no
15894fi
15895
15896rm -rf conftest.dSYM
15897rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15898 conftest$ac_exeext conftest.$ac_ext
15899LIBS=$ac_check_lib_save_LIBS
15900fi
15901{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15902$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15903if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15905else
15906 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15907$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15908if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15909 $as_echo_n "(cached) " >&6
15910else
15911 ac_check_lib_save_LIBS=$LIBS
15912LIBS="-lsvld $LIBS"
15913cat >conftest.$ac_ext <<_ACEOF
15914/* confdefs.h. */
15915_ACEOF
15916cat confdefs.h >>conftest.$ac_ext
15917cat >>conftest.$ac_ext <<_ACEOF
15918/* end confdefs.h. */
15919
15920/* Override any GCC internal prototype to avoid an error.
15921 Use char because int might match the return type of a GCC
15922 builtin and then its argument prototype would still apply. */
15923#ifdef __cplusplus
15924extern "C"
15925#endif
15926char dlopen ();
15927int
15928main ()
15929{
15930return dlopen ();
15931 ;
15932 return 0;
15933}
15934_ACEOF
15935rm -f conftest.$ac_objext conftest$ac_exeext
15936if { (ac_try="$ac_link"
15937case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15940esac
15941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15942$as_echo "$ac_try_echo") >&5
15943 (eval "$ac_link") 2>conftest.er1
15944 ac_status=$?
15945 grep -v '^ *+' conftest.er1 >conftest.err
15946 rm -f conftest.er1
15947 cat conftest.err >&5
15948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } && {
15950 test -z "$ac_c_werror_flag" ||
15951 test ! -s conftest.err
15952 } && test -s conftest$ac_exeext && {
15953 test "$cross_compiling" = yes ||
15954 $as_test_x conftest$ac_exeext
15955 }; then
15956 ac_cv_lib_svld_dlopen=yes
15957else
15958 $as_echo "$as_me: failed program was:" >&5
15959sed 's/^/| /' conftest.$ac_ext >&5
15960
15961 ac_cv_lib_svld_dlopen=no
15962fi
15963
15964rm -rf conftest.dSYM
15965rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15966 conftest$ac_exeext conftest.$ac_ext
15967LIBS=$ac_check_lib_save_LIBS
15968fi
15969{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15970$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15971if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
15972 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15973else
15974 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15975$as_echo_n "checking for dld_link in -ldld... " >&6; }
15976if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15977 $as_echo_n "(cached) " >&6
15978else
15979 ac_check_lib_save_LIBS=$LIBS
15980LIBS="-ldld $LIBS"
15981cat >conftest.$ac_ext <<_ACEOF
15982/* confdefs.h. */
15983_ACEOF
15984cat confdefs.h >>conftest.$ac_ext
15985cat >>conftest.$ac_ext <<_ACEOF
15986/* end confdefs.h. */
15987
15988/* Override any GCC internal prototype to avoid an error.
15989 Use char because int might match the return type of a GCC
15990 builtin and then its argument prototype would still apply. */
15991#ifdef __cplusplus
15992extern "C"
15993#endif
15994char dld_link ();
15995int
15996main ()
15997{
15998return dld_link ();
15999 ;
16000 return 0;
16001}
16002_ACEOF
16003rm -f conftest.$ac_objext conftest$ac_exeext
16004if { (ac_try="$ac_link"
16005case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16008esac
16009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16010$as_echo "$ac_try_echo") >&5
16011 (eval "$ac_link") 2>conftest.er1
16012 ac_status=$?
16013 grep -v '^ *+' conftest.er1 >conftest.err
16014 rm -f conftest.er1
16015 cat conftest.err >&5
16016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } && {
16018 test -z "$ac_c_werror_flag" ||
16019 test ! -s conftest.err
16020 } && test -s conftest$ac_exeext && {
16021 test "$cross_compiling" = yes ||
16022 $as_test_x conftest$ac_exeext
16023 }; then
16024 ac_cv_lib_dld_dld_link=yes
16025else
16026 $as_echo "$as_me: failed program was:" >&5
16027sed 's/^/| /' conftest.$ac_ext >&5
16028
16029 ac_cv_lib_dld_dld_link=no
16030fi
16031
16032rm -rf conftest.dSYM
16033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16034 conftest$ac_exeext conftest.$ac_ext
16035LIBS=$ac_check_lib_save_LIBS
16036fi
16037{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16038$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16039if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
16040 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16041fi
16042
16043
16044fi
16045
16046
16047fi
16048
16049
16050fi
16051
16052
16053fi
16054
16055
16056fi
16057
16058 ;;
16059 esac
16060
16061 if test "x$lt_cv_dlopen" != xno; then
16062 enable_dlopen=yes
16063 else
16064 enable_dlopen=no
16065 fi
16066
16067 case $lt_cv_dlopen in
16068 dlopen)
16069 save_CPPFLAGS="$CPPFLAGS"
16070 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16071
16072 save_LDFLAGS="$LDFLAGS"
16073 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16074
16075 save_LIBS="$LIBS"
16076 LIBS="$lt_cv_dlopen_libs $LIBS"
16077
16078 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16079$as_echo_n "checking whether a program can dlopen itself... " >&6; }
16080if test "${lt_cv_dlopen_self+set}" = set; then
16081 $as_echo_n "(cached) " >&6
16082else
16083 if test "$cross_compiling" = yes; then :
16084 lt_cv_dlopen_self=cross
16085else
16086 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16087 lt_status=$lt_dlunknown
16088 cat > conftest.$ac_ext <<_LT_EOF
cristyc7083c12009-10-14 03:16:55 +000016089#line 16089 "configure"
cristy3ed852e2009-09-05 21:47:34 +000016090#include "confdefs.h"
16091
16092#if HAVE_DLFCN_H
16093#include <dlfcn.h>
16094#endif
16095
16096#include <stdio.h>
16097
16098#ifdef RTLD_GLOBAL
16099# define LT_DLGLOBAL RTLD_GLOBAL
16100#else
16101# ifdef DL_GLOBAL
16102# define LT_DLGLOBAL DL_GLOBAL
16103# else
16104# define LT_DLGLOBAL 0
16105# endif
16106#endif
16107
16108/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16109 find out it does not work in some platform. */
16110#ifndef LT_DLLAZY_OR_NOW
16111# ifdef RTLD_LAZY
16112# define LT_DLLAZY_OR_NOW RTLD_LAZY
16113# else
16114# ifdef DL_LAZY
16115# define LT_DLLAZY_OR_NOW DL_LAZY
16116# else
16117# ifdef RTLD_NOW
16118# define LT_DLLAZY_OR_NOW RTLD_NOW
16119# else
16120# ifdef DL_NOW
16121# define LT_DLLAZY_OR_NOW DL_NOW
16122# else
16123# define LT_DLLAZY_OR_NOW 0
16124# endif
16125# endif
16126# endif
16127# endif
16128#endif
16129
16130void fnord() { int i=42;}
16131int main ()
16132{
16133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16134 int status = $lt_dlunknown;
16135
16136 if (self)
16137 {
16138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16140 /* dlclose (self); */
16141 }
16142 else
16143 puts (dlerror ());
16144
16145 return status;
16146}
16147_LT_EOF
16148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16149 (eval $ac_link) 2>&5
16150 ac_status=$?
16151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16152 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16153 (./conftest; exit; ) >&5 2>/dev/null
16154 lt_status=$?
16155 case x$lt_status in
16156 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16157 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16158 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16159 esac
16160 else :
16161 # compilation failed
16162 lt_cv_dlopen_self=no
16163 fi
16164fi
16165rm -fr conftest*
16166
16167
16168fi
16169{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16170$as_echo "$lt_cv_dlopen_self" >&6; }
16171
16172 if test "x$lt_cv_dlopen_self" = xyes; then
16173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16174 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16175$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16176if test "${lt_cv_dlopen_self_static+set}" = set; then
16177 $as_echo_n "(cached) " >&6
16178else
16179 if test "$cross_compiling" = yes; then :
16180 lt_cv_dlopen_self_static=cross
16181else
16182 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16183 lt_status=$lt_dlunknown
16184 cat > conftest.$ac_ext <<_LT_EOF
cristyc7083c12009-10-14 03:16:55 +000016185#line 16185 "configure"
cristy3ed852e2009-09-05 21:47:34 +000016186#include "confdefs.h"
16187
16188#if HAVE_DLFCN_H
16189#include <dlfcn.h>
16190#endif
16191
16192#include <stdio.h>
16193
16194#ifdef RTLD_GLOBAL
16195# define LT_DLGLOBAL RTLD_GLOBAL
16196#else
16197# ifdef DL_GLOBAL
16198# define LT_DLGLOBAL DL_GLOBAL
16199# else
16200# define LT_DLGLOBAL 0
16201# endif
16202#endif
16203
16204/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16205 find out it does not work in some platform. */
16206#ifndef LT_DLLAZY_OR_NOW
16207# ifdef RTLD_LAZY
16208# define LT_DLLAZY_OR_NOW RTLD_LAZY
16209# else
16210# ifdef DL_LAZY
16211# define LT_DLLAZY_OR_NOW DL_LAZY
16212# else
16213# ifdef RTLD_NOW
16214# define LT_DLLAZY_OR_NOW RTLD_NOW
16215# else
16216# ifdef DL_NOW
16217# define LT_DLLAZY_OR_NOW DL_NOW
16218# else
16219# define LT_DLLAZY_OR_NOW 0
16220# endif
16221# endif
16222# endif
16223# endif
16224#endif
16225
16226void fnord() { int i=42;}
16227int main ()
16228{
16229 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16230 int status = $lt_dlunknown;
16231
16232 if (self)
16233 {
16234 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16235 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16236 /* dlclose (self); */
16237 }
16238 else
16239 puts (dlerror ());
16240
16241 return status;
16242}
16243_LT_EOF
16244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16245 (eval $ac_link) 2>&5
16246 ac_status=$?
16247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16249 (./conftest; exit; ) >&5 2>/dev/null
16250 lt_status=$?
16251 case x$lt_status in
16252 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16253 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16254 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16255 esac
16256 else :
16257 # compilation failed
16258 lt_cv_dlopen_self_static=no
16259 fi
16260fi
16261rm -fr conftest*
16262
16263
16264fi
16265{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16266$as_echo "$lt_cv_dlopen_self_static" >&6; }
16267 fi
16268
16269 CPPFLAGS="$save_CPPFLAGS"
16270 LDFLAGS="$save_LDFLAGS"
16271 LIBS="$save_LIBS"
16272 ;;
16273 esac
16274
16275 case $lt_cv_dlopen_self in
16276 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16277 *) enable_dlopen_self=unknown ;;
16278 esac
16279
16280 case $lt_cv_dlopen_self_static in
16281 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16282 *) enable_dlopen_self_static=unknown ;;
16283 esac
16284fi
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302striplib=
16303old_striplib=
16304{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16305$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16306if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16307 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16308 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16309 { $as_echo "$as_me:$LINENO: result: yes" >&5
16310$as_echo "yes" >&6; }
16311else
16312# FIXME - insert some real tests, host_os isn't really good enough
16313 case $host_os in
16314 darwin*)
16315 if test -n "$STRIP" ; then
16316 striplib="$STRIP -x"
16317 old_striplib="$STRIP -S"
16318 { $as_echo "$as_me:$LINENO: result: yes" >&5
16319$as_echo "yes" >&6; }
16320 else
16321 { $as_echo "$as_me:$LINENO: result: no" >&5
16322$as_echo "no" >&6; }
16323 fi
16324 ;;
16325 *)
16326 { $as_echo "$as_me:$LINENO: result: no" >&5
16327$as_echo "no" >&6; }
16328 ;;
16329 esac
16330fi
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343 # Report which library types will actually be built
16344 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16345$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16346 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
16347$as_echo "$can_build_shared" >&6; }
16348
16349 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16350$as_echo_n "checking whether to build shared libraries... " >&6; }
16351 test "$can_build_shared" = "no" && enable_shared=no
16352
16353 # On AIX, shared libraries and static libraries use the same namespace, and
16354 # are all built from PIC.
16355 case $host_os in
16356 aix3*)
16357 test "$enable_shared" = yes && enable_static=no
16358 if test -n "$RANLIB"; then
16359 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16360 postinstall_cmds='$RANLIB $lib'
16361 fi
16362 ;;
16363
16364 aix[4-9]*)
16365 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16366 test "$enable_shared" = yes && enable_static=no
16367 fi
16368 ;;
16369 esac
16370 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
16371$as_echo "$enable_shared" >&6; }
16372
16373 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16374$as_echo_n "checking whether to build static libraries... " >&6; }
16375 # Make sure either enable_shared or enable_static is yes.
16376 test "$enable_shared" = yes || enable_static=yes
16377 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
16378$as_echo "$enable_static" >&6; }
16379
16380
16381
16382
16383fi
16384ac_ext=c
16385ac_cpp='$CPP $CPPFLAGS'
16386ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16387ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16388ac_compiler_gnu=$ac_cv_c_compiler_gnu
16389
16390CC="$lt_save_CC"
16391
16392
16393ac_ext=cpp
16394ac_cpp='$CXXCPP $CPPFLAGS'
16395ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16396ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16397ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16398
16399archive_cmds_need_lc_CXX=no
16400allow_undefined_flag_CXX=
16401always_export_symbols_CXX=no
16402archive_expsym_cmds_CXX=
16403compiler_needs_object_CXX=no
16404export_dynamic_flag_spec_CXX=
16405hardcode_direct_CXX=no
16406hardcode_direct_absolute_CXX=no
16407hardcode_libdir_flag_spec_CXX=
16408hardcode_libdir_flag_spec_ld_CXX=
16409hardcode_libdir_separator_CXX=
16410hardcode_minus_L_CXX=no
16411hardcode_shlibpath_var_CXX=unsupported
16412hardcode_automatic_CXX=no
16413inherit_rpath_CXX=no
16414module_cmds_CXX=
16415module_expsym_cmds_CXX=
16416link_all_deplibs_CXX=unknown
16417old_archive_cmds_CXX=$old_archive_cmds
16418no_undefined_flag_CXX=
16419whole_archive_flag_spec_CXX=
16420enable_shared_with_static_runtimes_CXX=no
16421
16422# Source file extension for C++ test sources.
16423ac_ext=cpp
16424
16425# Object file extension for compiled C++ test sources.
16426objext=o
16427objext_CXX=$objext
16428
16429# No sense in running all these tests if we already determined that
16430# the CXX compiler isn't working. Some variables (like enable_shared)
16431# are currently assumed to apply to all compilers on this platform,
16432# and will be corrupted by setting them based on a non-working compiler.
16433if test "$_lt_caught_CXX_error" != yes; then
16434 # Code to be used in simple compile tests
16435 lt_simple_compile_test_code="int some_variable = 0;"
16436
16437 # Code to be used in simple link tests
16438 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16439
16440 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16441
16442
16443
16444
16445
16446
16447# If no C compiler was specified, use CC.
16448LTCC=${LTCC-"$CC"}
16449
16450# If no C compiler flags were specified, use CFLAGS.
16451LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16452
16453# Allow CC to be a program name with arguments.
16454compiler=$CC
16455
16456
16457 # save warnings/boilerplate of simple test code
16458 ac_outfile=conftest.$ac_objext
16459echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16460eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16461_lt_compiler_boilerplate=`cat conftest.err`
16462$RM conftest*
16463
16464 ac_outfile=conftest.$ac_objext
16465echo "$lt_simple_link_test_code" >conftest.$ac_ext
16466eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16467_lt_linker_boilerplate=`cat conftest.err`
16468$RM -r conftest*
16469
16470
16471 # Allow CC to be a program name with arguments.
16472 lt_save_CC=$CC
16473 lt_save_LD=$LD
16474 lt_save_GCC=$GCC
16475 GCC=$GXX
16476 lt_save_with_gnu_ld=$with_gnu_ld
16477 lt_save_path_LD=$lt_cv_path_LD
16478 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16479 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16480 else
16481 $as_unset lt_cv_prog_gnu_ld
16482 fi
16483 if test -n "${lt_cv_path_LDCXX+set}"; then
16484 lt_cv_path_LD=$lt_cv_path_LDCXX
16485 else
16486 $as_unset lt_cv_path_LD
16487 fi
16488 test -z "${LDCXX+set}" || LD=$LDCXX
16489 CC=${CXX-"c++"}
16490 compiler=$CC
16491 compiler_CXX=$CC
16492 for cc_temp in $compiler""; do
16493 case $cc_temp in
16494 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16495 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16496 \-*) ;;
16497 *) break;;
16498 esac
16499done
16500cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16501
16502
16503 if test -n "$compiler"; then
16504 # We don't want -fno-exception when compiling C++ code, so set the
16505 # no_builtin_flag separately
16506 if test "$GXX" = yes; then
16507 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16508 else
16509 lt_prog_compiler_no_builtin_flag_CXX=
16510 fi
16511
16512 if test "$GXX" = yes; then
16513 # Set up default GNU C++ configuration
16514
16515
16516
16517# Check whether --with-gnu-ld was given.
16518if test "${with_gnu_ld+set}" = set; then
16519 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16520else
16521 with_gnu_ld=no
16522fi
16523
16524ac_prog=ld
16525if test "$GCC" = yes; then
16526 # Check if gcc -print-prog-name=ld gives a path.
16527 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16528$as_echo_n "checking for ld used by $CC... " >&6; }
16529 case $host in
16530 *-*-mingw*)
16531 # gcc leaves a trailing carriage return which upsets mingw
16532 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16533 *)
16534 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16535 esac
16536 case $ac_prog in
16537 # Accept absolute paths.
16538 [\\/]* | ?:[\\/]*)
16539 re_direlt='/[^/][^/]*/\.\./'
16540 # Canonicalize the pathname of ld
16541 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16542 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16543 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16544 done
16545 test -z "$LD" && LD="$ac_prog"
16546 ;;
16547 "")
16548 # If it fails, then pretend we aren't using GCC.
16549 ac_prog=ld
16550 ;;
16551 *)
16552 # If it is relative, then search for the first ld in PATH.
16553 with_gnu_ld=unknown
16554 ;;
16555 esac
16556elif test "$with_gnu_ld" = yes; then
16557 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
16558$as_echo_n "checking for GNU ld... " >&6; }
16559else
16560 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16561$as_echo_n "checking for non-GNU ld... " >&6; }
16562fi
16563if test "${lt_cv_path_LD+set}" = set; then
16564 $as_echo_n "(cached) " >&6
16565else
16566 if test -z "$LD"; then
16567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16568 for ac_dir in $PATH; do
16569 IFS="$lt_save_ifs"
16570 test -z "$ac_dir" && ac_dir=.
16571 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16572 lt_cv_path_LD="$ac_dir/$ac_prog"
16573 # Check to see if the program is GNU ld. I'd rather use --version,
16574 # but apparently some variants of GNU ld only accept -v.
16575 # Break only if it was the GNU/non-GNU ld that we prefer.
16576 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16577 *GNU* | *'with BFD'*)
16578 test "$with_gnu_ld" != no && break
16579 ;;
16580 *)
16581 test "$with_gnu_ld" != yes && break
16582 ;;
16583 esac
16584 fi
16585 done
16586 IFS="$lt_save_ifs"
16587else
16588 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16589fi
16590fi
16591
16592LD="$lt_cv_path_LD"
16593if test -n "$LD"; then
16594 { $as_echo "$as_me:$LINENO: result: $LD" >&5
16595$as_echo "$LD" >&6; }
16596else
16597 { $as_echo "$as_me:$LINENO: result: no" >&5
16598$as_echo "no" >&6; }
16599fi
16600test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16601$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16602 { (exit 1); exit 1; }; }
16603{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16604$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16605if test "${lt_cv_prog_gnu_ld+set}" = set; then
16606 $as_echo_n "(cached) " >&6
16607else
16608 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16609case `$LD -v 2>&1 </dev/null` in
16610*GNU* | *'with BFD'*)
16611 lt_cv_prog_gnu_ld=yes
16612 ;;
16613*)
16614 lt_cv_prog_gnu_ld=no
16615 ;;
16616esac
16617fi
16618{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16619$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16620with_gnu_ld=$lt_cv_prog_gnu_ld
16621
16622
16623
16624
16625
16626
16627
16628 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16629 # archiving commands below assume that GNU ld is being used.
16630 if test "$with_gnu_ld" = yes; then
16631 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16632 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'
16633
16634 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16635 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16636
16637 # If archive_cmds runs LD, not CC, wlarc should be empty
16638 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16639 # investigate it a little bit more. (MM)
16640 wlarc='${wl}'
16641
16642 # ancient GNU ld didn't support --whole-archive et. al.
16643 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16644 $GREP 'no-whole-archive' > /dev/null; then
16645 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16646 else
16647 whole_archive_flag_spec_CXX=
16648 fi
16649 else
16650 with_gnu_ld=no
16651 wlarc=
16652
16653 # A generic and very simple default shared library creation
16654 # command for GNU C++ for the case where it uses the native
16655 # linker, instead of GNU ld. If possible, this setting should
16656 # overridden to take advantage of the native linker features on
16657 # the platform it is being used on.
16658 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16659 fi
16660
16661 # Commands to make compiler produce verbose output that lists
16662 # what "hidden" libraries, object files and flags are used when
16663 # linking a shared library.
16664 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16665
16666 else
16667 GXX=no
16668 with_gnu_ld=no
16669 wlarc=
16670 fi
16671
16672 # PORTME: fill in a description of your system's C++ link characteristics
16673 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16674$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16675 ld_shlibs_CXX=yes
16676 case $host_os in
16677 aix3*)
16678 # FIXME: insert proper C++ library support
16679 ld_shlibs_CXX=no
16680 ;;
16681 aix[4-9]*)
16682 if test "$host_cpu" = ia64; then
16683 # On IA64, the linker does run time linking by default, so we don't
16684 # have to do anything special.
16685 aix_use_runtimelinking=no
16686 exp_sym_flag='-Bexport'
16687 no_entry_flag=""
16688 else
16689 aix_use_runtimelinking=no
16690
16691 # Test if we are trying to use run time linking or normal
16692 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16693 # need to do runtime linking.
16694 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16695 for ld_flag in $LDFLAGS; do
16696 case $ld_flag in
16697 *-brtl*)
16698 aix_use_runtimelinking=yes
16699 break
16700 ;;
16701 esac
16702 done
16703 ;;
16704 esac
16705
16706 exp_sym_flag='-bexport'
16707 no_entry_flag='-bnoentry'
16708 fi
16709
16710 # When large executables or shared objects are built, AIX ld can
16711 # have problems creating the table of contents. If linking a library
16712 # or program results in "error TOC overflow" add -mminimal-toc to
16713 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16714 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16715
16716 archive_cmds_CXX=''
16717 hardcode_direct_CXX=yes
16718 hardcode_direct_absolute_CXX=yes
16719 hardcode_libdir_separator_CXX=':'
16720 link_all_deplibs_CXX=yes
16721 file_list_spec_CXX='${wl}-f,'
16722
16723 if test "$GXX" = yes; then
16724 case $host_os in aix4.[012]|aix4.[012].*)
16725 # We only want to do this on AIX 4.2 and lower, the check
16726 # below for broken collect2 doesn't work under 4.3+
16727 collect2name=`${CC} -print-prog-name=collect2`
16728 if test -f "$collect2name" &&
16729 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16730 then
16731 # We have reworked collect2
16732 :
16733 else
16734 # We have old collect2
16735 hardcode_direct_CXX=unsupported
16736 # It fails to find uninstalled libraries when the uninstalled
16737 # path is not listed in the libpath. Setting hardcode_minus_L
16738 # to unsupported forces relinking
16739 hardcode_minus_L_CXX=yes
16740 hardcode_libdir_flag_spec_CXX='-L$libdir'
16741 hardcode_libdir_separator_CXX=
16742 fi
16743 esac
16744 shared_flag='-shared'
16745 if test "$aix_use_runtimelinking" = yes; then
16746 shared_flag="$shared_flag "'${wl}-G'
16747 fi
16748 else
16749 # not using gcc
16750 if test "$host_cpu" = ia64; then
16751 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16752 # chokes on -Wl,-G. The following line is correct:
16753 shared_flag='-G'
16754 else
16755 if test "$aix_use_runtimelinking" = yes; then
16756 shared_flag='${wl}-G'
16757 else
16758 shared_flag='${wl}-bM:SRE'
16759 fi
16760 fi
16761 fi
16762
16763 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16764 # It seems that -bexpall does not export symbols beginning with
16765 # underscore (_), so it is better to generate a list of symbols to
16766 # export.
16767 always_export_symbols_CXX=yes
16768 if test "$aix_use_runtimelinking" = yes; then
16769 # Warning - without using the other runtime loading flags (-brtl),
16770 # -berok will link without error, but may produce a broken library.
16771 allow_undefined_flag_CXX='-berok'
16772 # Determine the default libpath from the value encoded in an empty
16773 # executable.
16774 cat >conftest.$ac_ext <<_ACEOF
16775/* confdefs.h. */
16776_ACEOF
16777cat confdefs.h >>conftest.$ac_ext
16778cat >>conftest.$ac_ext <<_ACEOF
16779/* end confdefs.h. */
16780
16781int
16782main ()
16783{
16784
16785 ;
16786 return 0;
16787}
16788_ACEOF
16789rm -f conftest.$ac_objext conftest$ac_exeext
16790if { (ac_try="$ac_link"
16791case "(($ac_try" in
16792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16793 *) ac_try_echo=$ac_try;;
16794esac
16795eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16796$as_echo "$ac_try_echo") >&5
16797 (eval "$ac_link") 2>conftest.er1
16798 ac_status=$?
16799 grep -v '^ *+' conftest.er1 >conftest.err
16800 rm -f conftest.er1
16801 cat conftest.err >&5
16802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); } && {
16804 test -z "$ac_cxx_werror_flag" ||
16805 test ! -s conftest.err
16806 } && test -s conftest$ac_exeext && {
16807 test "$cross_compiling" = yes ||
16808 $as_test_x conftest$ac_exeext
16809 }; then
16810
16811lt_aix_libpath_sed='
16812 /Import File Strings/,/^$/ {
16813 /^0/ {
16814 s/^0 *\(.*\)$/\1/
16815 p
16816 }
16817 }'
16818aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16819# Check for a 64-bit object if we didn't find anything.
16820if test -z "$aix_libpath"; then
16821 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16822fi
16823else
16824 $as_echo "$as_me: failed program was:" >&5
16825sed 's/^/| /' conftest.$ac_ext >&5
16826
16827
16828fi
16829
16830rm -rf conftest.dSYM
16831rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16832 conftest$ac_exeext conftest.$ac_ext
16833if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16834
16835 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16836
16837 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"
16838 else
16839 if test "$host_cpu" = ia64; then
16840 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16841 allow_undefined_flag_CXX="-z nodefs"
16842 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"
16843 else
16844 # Determine the default libpath from the value encoded in an
16845 # empty executable.
16846 cat >conftest.$ac_ext <<_ACEOF
16847/* confdefs.h. */
16848_ACEOF
16849cat confdefs.h >>conftest.$ac_ext
16850cat >>conftest.$ac_ext <<_ACEOF
16851/* end confdefs.h. */
16852
16853int
16854main ()
16855{
16856
16857 ;
16858 return 0;
16859}
16860_ACEOF
16861rm -f conftest.$ac_objext conftest$ac_exeext
16862if { (ac_try="$ac_link"
16863case "(($ac_try" in
16864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16865 *) ac_try_echo=$ac_try;;
16866esac
16867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16868$as_echo "$ac_try_echo") >&5
16869 (eval "$ac_link") 2>conftest.er1
16870 ac_status=$?
16871 grep -v '^ *+' conftest.er1 >conftest.err
16872 rm -f conftest.er1
16873 cat conftest.err >&5
16874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } && {
16876 test -z "$ac_cxx_werror_flag" ||
16877 test ! -s conftest.err
16878 } && test -s conftest$ac_exeext && {
16879 test "$cross_compiling" = yes ||
16880 $as_test_x conftest$ac_exeext
16881 }; then
16882
16883lt_aix_libpath_sed='
16884 /Import File Strings/,/^$/ {
16885 /^0/ {
16886 s/^0 *\(.*\)$/\1/
16887 p
16888 }
16889 }'
16890aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16891# Check for a 64-bit object if we didn't find anything.
16892if test -z "$aix_libpath"; then
16893 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16894fi
16895else
16896 $as_echo "$as_me: failed program was:" >&5
16897sed 's/^/| /' conftest.$ac_ext >&5
16898
16899
16900fi
16901
16902rm -rf conftest.dSYM
16903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16904 conftest$ac_exeext conftest.$ac_ext
16905if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16906
16907 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16908 # Warning - without using the other run time loading flags,
16909 # -berok will link without error, but may produce a broken library.
16910 no_undefined_flag_CXX=' ${wl}-bernotok'
16911 allow_undefined_flag_CXX=' ${wl}-berok'
16912 # Exported symbols can be pulled into shared objects from archives
16913 whole_archive_flag_spec_CXX='$convenience'
16914 archive_cmds_need_lc_CXX=yes
16915 # This is similar to how AIX traditionally builds its shared
16916 # libraries.
16917 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'
16918 fi
16919 fi
16920 ;;
16921
16922 beos*)
16923 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16924 allow_undefined_flag_CXX=unsupported
16925 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16926 # support --undefined. This deserves some investigation. FIXME
16927 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16928 else
16929 ld_shlibs_CXX=no
16930 fi
16931 ;;
16932
16933 chorus*)
16934 case $cc_basename in
16935 *)
16936 # FIXME: insert proper C++ library support
16937 ld_shlibs_CXX=no
16938 ;;
16939 esac
16940 ;;
16941
16942 cygwin* | mingw* | pw32* | cegcc*)
16943 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16944 # as there is no search path for DLLs.
16945 hardcode_libdir_flag_spec_CXX='-L$libdir'
16946 allow_undefined_flag_CXX=unsupported
16947 always_export_symbols_CXX=no
16948 enable_shared_with_static_runtimes_CXX=yes
16949
16950 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16951 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'
16952 # If the export-symbols file already is a .def file (1st line
16953 # is EXPORTS), use it as is; otherwise, prepend...
16954 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16955 cp $export_symbols $output_objdir/$soname.def;
16956 else
16957 echo EXPORTS > $output_objdir/$soname.def;
16958 cat $export_symbols >> $output_objdir/$soname.def;
16959 fi~
16960 $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'
16961 else
16962 ld_shlibs_CXX=no
16963 fi
16964 ;;
16965 darwin* | rhapsody*)
16966
16967
16968 archive_cmds_need_lc_CXX=no
16969 hardcode_direct_CXX=no
16970 hardcode_automatic_CXX=yes
16971 hardcode_shlibpath_var_CXX=unsupported
16972 whole_archive_flag_spec_CXX=''
16973 link_all_deplibs_CXX=yes
16974 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16975 case $cc_basename in
16976 ifort*) _lt_dar_can_shared=yes ;;
16977 *) _lt_dar_can_shared=$GCC ;;
16978 esac
16979 if test "$_lt_dar_can_shared" = "yes"; then
16980 output_verbose_link_cmd=echo
16981 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}"
16982 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16983 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}"
16984 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}"
16985 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16986 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}"
16987 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}"
16988 fi
16989
16990 else
16991 ld_shlibs_CXX=no
16992 fi
16993
16994 ;;
16995
16996 dgux*)
16997 case $cc_basename in
16998 ec++*)
16999 # FIXME: insert proper C++ library support
17000 ld_shlibs_CXX=no
17001 ;;
17002 ghcx*)
17003 # Green Hills C++ Compiler
17004 # FIXME: insert proper C++ library support
17005 ld_shlibs_CXX=no
17006 ;;
17007 *)
17008 # FIXME: insert proper C++ library support
17009 ld_shlibs_CXX=no
17010 ;;
17011 esac
17012 ;;
17013
17014 freebsd[12]*)
17015 # C++ shared libraries reported to be fairly broken before
17016 # switch to ELF
17017 ld_shlibs_CXX=no
17018 ;;
17019
17020 freebsd-elf*)
17021 archive_cmds_need_lc_CXX=no
17022 ;;
17023
17024 freebsd* | dragonfly*)
17025 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17026 # conventions
17027 ld_shlibs_CXX=yes
17028 ;;
17029
17030 gnu*)
17031 ;;
17032
17033 hpux9*)
17034 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17035 hardcode_libdir_separator_CXX=:
17036 export_dynamic_flag_spec_CXX='${wl}-E'
17037 hardcode_direct_CXX=yes
17038 hardcode_minus_L_CXX=yes # Not in the search PATH,
17039 # but as the default
17040 # location of the library.
17041
17042 case $cc_basename in
17043 CC*)
17044 # FIXME: insert proper C++ library support
17045 ld_shlibs_CXX=no
17046 ;;
17047 aCC*)
17048 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'
17049 # Commands to make compiler produce verbose output that lists
17050 # what "hidden" libraries, object files and flags are used when
17051 # linking a shared library.
17052 #
17053 # There doesn't appear to be a way to prevent this compiler from
17054 # explicitly linking system object files so we need to strip them
17055 # from the output so that they don't get included in the library
17056 # dependencies.
17057 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'
17058 ;;
17059 *)
17060 if test "$GXX" = yes; then
17061 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'
17062 else
17063 # FIXME: insert proper C++ library support
17064 ld_shlibs_CXX=no
17065 fi
17066 ;;
17067 esac
17068 ;;
17069
17070 hpux10*|hpux11*)
17071 if test $with_gnu_ld = no; then
17072 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17073 hardcode_libdir_separator_CXX=:
17074
17075 case $host_cpu in
17076 hppa*64*|ia64*)
17077 ;;
17078 *)
17079 export_dynamic_flag_spec_CXX='${wl}-E'
17080 ;;
17081 esac
17082 fi
17083 case $host_cpu in
17084 hppa*64*|ia64*)
17085 hardcode_direct_CXX=no
17086 hardcode_shlibpath_var_CXX=no
17087 ;;
17088 *)
17089 hardcode_direct_CXX=yes
17090 hardcode_direct_absolute_CXX=yes
17091 hardcode_minus_L_CXX=yes # Not in the search PATH,
17092 # but as the default
17093 # location of the library.
17094 ;;
17095 esac
17096
17097 case $cc_basename in
17098 CC*)
17099 # FIXME: insert proper C++ library support
17100 ld_shlibs_CXX=no
17101 ;;
17102 aCC*)
17103 case $host_cpu in
17104 hppa*64*)
17105 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17106 ;;
17107 ia64*)
17108 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17109 ;;
17110 *)
17111 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17112 ;;
17113 esac
17114 # Commands to make compiler produce verbose output that lists
17115 # what "hidden" libraries, object files and flags are used when
17116 # linking a shared library.
17117 #
17118 # There doesn't appear to be a way to prevent this compiler from
17119 # explicitly linking system object files so we need to strip them
17120 # from the output so that they don't get included in the library
17121 # dependencies.
17122 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'
17123 ;;
17124 *)
17125 if test "$GXX" = yes; then
17126 if test $with_gnu_ld = no; then
17127 case $host_cpu in
17128 hppa*64*)
17129 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17130 ;;
17131 ia64*)
17132 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17133 ;;
17134 *)
17135 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'
17136 ;;
17137 esac
17138 fi
17139 else
17140 # FIXME: insert proper C++ library support
17141 ld_shlibs_CXX=no
17142 fi
17143 ;;
17144 esac
17145 ;;
17146
17147 interix[3-9]*)
17148 hardcode_direct_CXX=no
17149 hardcode_shlibpath_var_CXX=no
17150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17151 export_dynamic_flag_spec_CXX='${wl}-E'
17152 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17153 # Instead, shared libraries are loaded at an image base (0x10000000 by
17154 # default) and relocated if they conflict, which is a slow very memory
17155 # consuming and fragmenting process. To avoid this, we pick a random,
17156 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17157 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17158 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'
17159 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'
17160 ;;
17161 irix5* | irix6*)
17162 case $cc_basename in
17163 CC*)
17164 # SGI C++
17165 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'
17166
17167 # Archives containing C++ object files must be created using
17168 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17169 # necessary to make sure instantiated templates are included
17170 # in the archive.
17171 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17172 ;;
17173 *)
17174 if test "$GXX" = yes; then
17175 if test "$with_gnu_ld" = no; then
17176 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'
17177 else
17178 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'
17179 fi
17180 fi
17181 link_all_deplibs_CXX=yes
17182 ;;
17183 esac
17184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17185 hardcode_libdir_separator_CXX=:
17186 inherit_rpath_CXX=yes
17187 ;;
17188
17189 linux* | k*bsd*-gnu)
17190 case $cc_basename in
17191 KCC*)
17192 # Kuck and Associates, Inc. (KAI) C++ Compiler
17193
17194 # KCC will only create a shared library if the output file
17195 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17196 # to its proper name (with version) after linking.
17197 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'
17198 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'
17199 # Commands to make compiler produce verbose output that lists
17200 # what "hidden" libraries, object files and flags are used when
17201 # linking a shared library.
17202 #
17203 # There doesn't appear to be a way to prevent this compiler from
17204 # explicitly linking system object files so we need to strip them
17205 # from the output so that they don't get included in the library
17206 # dependencies.
17207 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'
17208
17209 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17210 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17211
17212 # Archives containing C++ object files must be created using
17213 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17214 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17215 ;;
17216 icpc* | ecpc* )
17217 # Intel C++
17218 with_gnu_ld=yes
17219 # version 8.0 and above of icpc choke on multiply defined symbols
17220 # if we add $predep_objects and $postdep_objects, however 7.1 and
17221 # earlier do not add the objects themselves.
17222 case `$CC -V 2>&1` in
17223 *"Version 7."*)
17224 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17225 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'
17226 ;;
17227 *) # Version 8.0 or newer
17228 tmp_idyn=
17229 case $host_cpu in
17230 ia64*) tmp_idyn=' -i_dynamic';;
17231 esac
17232 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17233 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'
17234 ;;
17235 esac
17236 archive_cmds_need_lc_CXX=no
17237 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17238 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17239 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17240 ;;
17241 pgCC* | pgcpp*)
17242 # Portland Group C++ compiler
17243 case `$CC -V` in
17244 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
17245 prelink_cmds_CXX='tpldir=Template.dir~
17246 rm -rf $tpldir~
17247 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17248 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
17249 old_archive_cmds_CXX='tpldir=Template.dir~
17250 rm -rf $tpldir~
17251 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17252 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
17253 $RANLIB $oldlib'
17254 archive_cmds_CXX='tpldir=Template.dir~
17255 rm -rf $tpldir~
17256 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17257 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17258 archive_expsym_cmds_CXX='tpldir=Template.dir~
17259 rm -rf $tpldir~
17260 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17261 $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'
17262 ;;
17263 *) # Version 6 will use weak symbols
17264 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17265 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'
17266 ;;
17267 esac
17268
17269 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17270 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17271 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'
17272 ;;
17273 cxx*)
17274 # Compaq C++
17275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17276 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'
17277
17278 runpath_var=LD_RUN_PATH
17279 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17280 hardcode_libdir_separator_CXX=:
17281
17282 # Commands to make compiler produce verbose output that lists
17283 # what "hidden" libraries, object files and flags are used when
17284 # linking a shared library.
17285 #
17286 # There doesn't appear to be a way to prevent this compiler from
17287 # explicitly linking system object files so we need to strip them
17288 # from the output so that they don't get included in the library
17289 # dependencies.
17290 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'
17291 ;;
17292 xl*)
17293 # IBM XL 8.0 on PPC, with GNU ld
17294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17295 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17296 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17297 if test "x$supports_anon_versioning" = xyes; then
17298 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17299 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17300 echo "local: *; };" >> $output_objdir/$libname.ver~
17301 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17302 fi
17303 ;;
17304 *)
17305 case `$CC -V 2>&1 | sed 5q` in
17306 *Sun\ C*)
17307 # Sun C++ 5.9
17308 no_undefined_flag_CXX=' -zdefs'
17309 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17310 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'
17311 hardcode_libdir_flag_spec_CXX='-R$libdir'
17312 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'
17313 compiler_needs_object_CXX=yes
17314
17315 # Not sure whether something based on
17316 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17317 # would be better.
17318 output_verbose_link_cmd='echo'
17319
17320 # Archives containing C++ object files must be created using
17321 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17322 # necessary to make sure instantiated templates are included
17323 # in the archive.
17324 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17325 ;;
17326 esac
17327 ;;
17328 esac
17329 ;;
17330
17331 lynxos*)
17332 # FIXME: insert proper C++ library support
17333 ld_shlibs_CXX=no
17334 ;;
17335
17336 m88k*)
17337 # FIXME: insert proper C++ library support
17338 ld_shlibs_CXX=no
17339 ;;
17340
17341 mvs*)
17342 case $cc_basename in
17343 cxx*)
17344 # FIXME: insert proper C++ library support
17345 ld_shlibs_CXX=no
17346 ;;
17347 *)
17348 # FIXME: insert proper C++ library support
17349 ld_shlibs_CXX=no
17350 ;;
17351 esac
17352 ;;
17353
17354 netbsd*)
17355 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17356 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17357 wlarc=
17358 hardcode_libdir_flag_spec_CXX='-R$libdir'
17359 hardcode_direct_CXX=yes
17360 hardcode_shlibpath_var_CXX=no
17361 fi
17362 # Workaround some broken pre-1.5 toolchains
17363 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17364 ;;
17365
17366 *nto* | *qnx*)
17367 ld_shlibs_CXX=yes
17368 ;;
17369
17370 openbsd2*)
17371 # C++ shared libraries are fairly broken
17372 ld_shlibs_CXX=no
17373 ;;
17374
17375 openbsd*)
17376 if test -f /usr/libexec/ld.so; then
17377 hardcode_direct_CXX=yes
17378 hardcode_shlibpath_var_CXX=no
17379 hardcode_direct_absolute_CXX=yes
17380 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17382 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17383 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17384 export_dynamic_flag_spec_CXX='${wl}-E'
17385 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17386 fi
17387 output_verbose_link_cmd=echo
17388 else
17389 ld_shlibs_CXX=no
17390 fi
17391 ;;
17392
17393 osf3* | osf4* | osf5*)
17394 case $cc_basename in
17395 KCC*)
17396 # Kuck and Associates, Inc. (KAI) C++ Compiler
17397
17398 # KCC will only create a shared library if the output file
17399 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17400 # to its proper name (with version) after linking.
17401 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'
17402
17403 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17404 hardcode_libdir_separator_CXX=:
17405
17406 # Archives containing C++ object files must be created using
17407 # the KAI C++ compiler.
17408 case $host in
17409 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17410 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17411 esac
17412 ;;
17413 RCC*)
17414 # Rational C++ 2.4.1
17415 # FIXME: insert proper C++ library support
17416 ld_shlibs_CXX=no
17417 ;;
17418 cxx*)
17419 case $host in
17420 osf3*)
17421 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17422 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'
17423 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17424 ;;
17425 *)
17426 allow_undefined_flag_CXX=' -expect_unresolved \*'
17427 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'
17428 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17429 echo "-hidden">> $lib.exp~
17430 $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~
17431 $RM $lib.exp'
17432 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17433 ;;
17434 esac
17435
17436 hardcode_libdir_separator_CXX=:
17437
17438 # Commands to make compiler produce verbose output that lists
17439 # what "hidden" libraries, object files and flags are used when
17440 # linking a shared library.
17441 #
17442 # There doesn't appear to be a way to prevent this compiler from
17443 # explicitly linking system object files so we need to strip them
17444 # from the output so that they don't get included in the library
17445 # dependencies.
17446 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'
17447 ;;
17448 *)
17449 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17450 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17451 case $host in
17452 osf3*)
17453 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'
17454 ;;
17455 *)
17456 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'
17457 ;;
17458 esac
17459
17460 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17461 hardcode_libdir_separator_CXX=:
17462
17463 # Commands to make compiler produce verbose output that lists
17464 # what "hidden" libraries, object files and flags are used when
17465 # linking a shared library.
17466 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17467
17468 else
17469 # FIXME: insert proper C++ library support
17470 ld_shlibs_CXX=no
17471 fi
17472 ;;
17473 esac
17474 ;;
17475
17476 psos*)
17477 # FIXME: insert proper C++ library support
17478 ld_shlibs_CXX=no
17479 ;;
17480
17481 sunos4*)
17482 case $cc_basename in
17483 CC*)
17484 # Sun C++ 4.x
17485 # FIXME: insert proper C++ library support
17486 ld_shlibs_CXX=no
17487 ;;
17488 lcc*)
17489 # Lucid
17490 # FIXME: insert proper C++ library support
17491 ld_shlibs_CXX=no
17492 ;;
17493 *)
17494 # FIXME: insert proper C++ library support
17495 ld_shlibs_CXX=no
17496 ;;
17497 esac
17498 ;;
17499
17500 solaris*)
17501 case $cc_basename in
17502 CC*)
17503 # Sun C++ 4.2, 5.x and Centerline C++
17504 archive_cmds_need_lc_CXX=yes
17505 no_undefined_flag_CXX=' -zdefs'
17506 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17507 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17508 $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'
17509
17510 hardcode_libdir_flag_spec_CXX='-R$libdir'
17511 hardcode_shlibpath_var_CXX=no
17512 case $host_os in
17513 solaris2.[0-5] | solaris2.[0-5].*) ;;
17514 *)
17515 # The compiler driver will combine and reorder linker options,
17516 # but understands `-z linker_flag'.
17517 # Supported since Solaris 2.6 (maybe 2.5.1?)
17518 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17519 ;;
17520 esac
17521 link_all_deplibs_CXX=yes
17522
17523 output_verbose_link_cmd='echo'
17524
17525 # Archives containing C++ object files must be created using
17526 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17527 # necessary to make sure instantiated templates are included
17528 # in the archive.
17529 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17530 ;;
17531 gcx*)
17532 # Green Hills C++ Compiler
17533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17534
17535 # The C++ compiler must be used to create the archive.
17536 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17537 ;;
17538 *)
17539 # GNU C++ compiler with Solaris linker
17540 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17541 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17542 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17543 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17544 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17545 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17546
17547 # Commands to make compiler produce verbose output that lists
17548 # what "hidden" libraries, object files and flags are used when
17549 # linking a shared library.
17550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17551 else
17552 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17553 # platform.
17554 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17555 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17556 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17557
17558 # Commands to make compiler produce verbose output that lists
17559 # what "hidden" libraries, object files and flags are used when
17560 # linking a shared library.
17561 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17562 fi
17563
17564 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17565 case $host_os in
17566 solaris2.[0-5] | solaris2.[0-5].*) ;;
17567 *)
17568 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17569 ;;
17570 esac
17571 fi
17572 ;;
17573 esac
17574 ;;
17575
17576 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17577 no_undefined_flag_CXX='${wl}-z,text'
17578 archive_cmds_need_lc_CXX=no
17579 hardcode_shlibpath_var_CXX=no
17580 runpath_var='LD_RUN_PATH'
17581
17582 case $cc_basename in
17583 CC*)
17584 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17585 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17586 ;;
17587 *)
17588 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17589 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17590 ;;
17591 esac
17592 ;;
17593
17594 sysv5* | sco3.2v5* | sco5v6*)
17595 # Note: We can NOT use -z defs as we might desire, because we do not
17596 # link with -lc, and that would cause any symbols used from libc to
17597 # always be unresolved, which means just about no library would
17598 # ever link correctly. If we're not using GNU ld we use -z text
17599 # though, which does catch some bad symbols but isn't as heavy-handed
17600 # as -z defs.
17601 no_undefined_flag_CXX='${wl}-z,text'
17602 allow_undefined_flag_CXX='${wl}-z,nodefs'
17603 archive_cmds_need_lc_CXX=no
17604 hardcode_shlibpath_var_CXX=no
17605 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17606 hardcode_libdir_separator_CXX=':'
17607 link_all_deplibs_CXX=yes
17608 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17609 runpath_var='LD_RUN_PATH'
17610
17611 case $cc_basename in
17612 CC*)
17613 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17614 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17615 ;;
17616 *)
17617 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17618 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17619 ;;
17620 esac
17621 ;;
17622
17623 tandem*)
17624 case $cc_basename in
17625 NCC*)
17626 # NonStop-UX NCC 3.20
17627 # FIXME: insert proper C++ library support
17628 ld_shlibs_CXX=no
17629 ;;
17630 *)
17631 # FIXME: insert proper C++ library support
17632 ld_shlibs_CXX=no
17633 ;;
17634 esac
17635 ;;
17636
17637 vxworks*)
17638 # FIXME: insert proper C++ library support
17639 ld_shlibs_CXX=no
17640 ;;
17641
17642 *)
17643 # FIXME: insert proper C++ library support
17644 ld_shlibs_CXX=no
17645 ;;
17646 esac
17647
17648 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17649$as_echo "$ld_shlibs_CXX" >&6; }
17650 test "$ld_shlibs_CXX" = no && can_build_shared=no
17651
17652 GCC_CXX="$GXX"
17653 LD_CXX="$LD"
17654
17655 ## CAVEAT EMPTOR:
17656 ## There is no encapsulation within the following macros, do not change
17657 ## the running order or otherwise move them around unless you know exactly
17658 ## what you are doing...
17659 # Dependencies to place before and after the object being linked:
17660predep_objects_CXX=
17661postdep_objects_CXX=
17662predeps_CXX=
17663postdeps_CXX=
17664compiler_lib_search_path_CXX=
17665
17666cat > conftest.$ac_ext <<_LT_EOF
17667class Foo
17668{
17669public:
17670 Foo (void) { a = 0; }
17671private:
17672 int a;
17673};
17674_LT_EOF
17675
17676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17677 (eval $ac_compile) 2>&5
17678 ac_status=$?
17679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); }; then
17681 # Parse the compiler output and extract the necessary
17682 # objects, libraries and library flags.
17683
17684 # Sentinel used to keep track of whether or not we are before
17685 # the conftest object file.
17686 pre_test_object_deps_done=no
17687
17688 for p in `eval "$output_verbose_link_cmd"`; do
17689 case $p in
17690
17691 -L* | -R* | -l*)
17692 # Some compilers place space between "-{L,R}" and the path.
17693 # Remove the space.
17694 if test $p = "-L" ||
17695 test $p = "-R"; then
17696 prev=$p
17697 continue
17698 else
17699 prev=
17700 fi
17701
17702 if test "$pre_test_object_deps_done" = no; then
17703 case $p in
17704 -L* | -R*)
17705 # Internal compiler library paths should come after those
17706 # provided the user. The postdeps already come after the
17707 # user supplied libs so there is no need to process them.
17708 if test -z "$compiler_lib_search_path_CXX"; then
17709 compiler_lib_search_path_CXX="${prev}${p}"
17710 else
17711 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17712 fi
17713 ;;
17714 # The "-l" case would never come before the object being
17715 # linked, so don't bother handling this case.
17716 esac
17717 else
17718 if test -z "$postdeps_CXX"; then
17719 postdeps_CXX="${prev}${p}"
17720 else
17721 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17722 fi
17723 fi
17724 ;;
17725
17726 *.$objext)
17727 # This assumes that the test object file only shows up
17728 # once in the compiler output.
17729 if test "$p" = "conftest.$objext"; then
17730 pre_test_object_deps_done=yes
17731 continue
17732 fi
17733
17734 if test "$pre_test_object_deps_done" = no; then
17735 if test -z "$predep_objects_CXX"; then
17736 predep_objects_CXX="$p"
17737 else
17738 predep_objects_CXX="$predep_objects_CXX $p"
17739 fi
17740 else
17741 if test -z "$postdep_objects_CXX"; then
17742 postdep_objects_CXX="$p"
17743 else
17744 postdep_objects_CXX="$postdep_objects_CXX $p"
17745 fi
17746 fi
17747 ;;
17748
17749 *) ;; # Ignore the rest.
17750
17751 esac
17752 done
17753
17754 # Clean up.
17755 rm -f a.out a.exe
17756else
17757 echo "libtool.m4: error: problem compiling CXX test program"
17758fi
17759
17760$RM -f confest.$objext
17761
17762# PORTME: override above test on systems where it is broken
17763case $host_os in
17764interix[3-9]*)
17765 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17766 # hack all around it, let's just trust "g++" to DTRT.
17767 predep_objects_CXX=
17768 postdep_objects_CXX=
17769 postdeps_CXX=
17770 ;;
17771
17772linux*)
17773 case `$CC -V 2>&1 | sed 5q` in
17774 *Sun\ C*)
17775 # Sun C++ 5.9
17776
17777 # The more standards-conforming stlport4 library is
17778 # incompatible with the Cstd library. Avoid specifying
17779 # it if it's in CXXFLAGS. Ignore libCrun as
17780 # -library=stlport4 depends on it.
17781 case " $CXX $CXXFLAGS " in
17782 *" -library=stlport4 "*)
17783 solaris_use_stlport4=yes
17784 ;;
17785 esac
17786
17787 if test "$solaris_use_stlport4" != yes; then
17788 postdeps_CXX='-library=Cstd -library=Crun'
17789 fi
17790 ;;
17791 esac
17792 ;;
17793
17794solaris*)
17795 case $cc_basename in
17796 CC*)
17797 # The more standards-conforming stlport4 library is
17798 # incompatible with the Cstd library. Avoid specifying
17799 # it if it's in CXXFLAGS. Ignore libCrun as
17800 # -library=stlport4 depends on it.
17801 case " $CXX $CXXFLAGS " in
17802 *" -library=stlport4 "*)
17803 solaris_use_stlport4=yes
17804 ;;
17805 esac
17806
17807 # Adding this requires a known-good setup of shared libraries for
17808 # Sun compiler versions before 5.6, else PIC objects from an old
17809 # archive will be linked into the output, leading to subtle bugs.
17810 if test "$solaris_use_stlport4" != yes; then
17811 postdeps_CXX='-library=Cstd -library=Crun'
17812 fi
17813 ;;
17814 esac
17815 ;;
17816esac
17817
17818
17819case " $postdeps_CXX " in
17820*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17821esac
17822 compiler_lib_search_dirs_CXX=
17823if test -n "${compiler_lib_search_path_CXX}"; then
17824 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17825fi
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857 lt_prog_compiler_wl_CXX=
17858lt_prog_compiler_pic_CXX=
17859lt_prog_compiler_static_CXX=
17860
17861{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17862$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17863
17864 # C++ specific cases for pic, static, wl, etc.
17865 if test "$GXX" = yes; then
17866 lt_prog_compiler_wl_CXX='-Wl,'
17867 lt_prog_compiler_static_CXX='-static'
17868
17869 case $host_os in
17870 aix*)
17871 # All AIX code is PIC.
17872 if test "$host_cpu" = ia64; then
17873 # AIX 5 now supports IA64 processor
17874 lt_prog_compiler_static_CXX='-Bstatic'
17875 fi
17876 ;;
17877
17878 amigaos*)
17879 case $host_cpu in
17880 powerpc)
17881 # see comment about AmigaOS4 .so support
17882 lt_prog_compiler_pic_CXX='-fPIC'
17883 ;;
17884 m68k)
17885 # FIXME: we need at least 68020 code to build shared libraries, but
17886 # adding the `-m68020' flag to GCC prevents building anything better,
17887 # like `-m68040'.
17888 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17889 ;;
17890 esac
17891 ;;
17892
17893 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17894 # PIC is the default for these OSes.
17895 ;;
17896 mingw* | cygwin* | os2* | pw32* | cegcc*)
17897 # This hack is so that the source file can tell whether it is being
17898 # built for inclusion in a dll (and should export symbols for example).
17899 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17900 # (--disable-auto-import) libraries
17901 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17902 ;;
17903 darwin* | rhapsody*)
17904 # PIC is the default on this platform
17905 # Common symbols not allowed in MH_DYLIB files
17906 lt_prog_compiler_pic_CXX='-fno-common'
17907 ;;
17908 *djgpp*)
17909 # DJGPP does not support shared libraries at all
17910 lt_prog_compiler_pic_CXX=
17911 ;;
17912 interix[3-9]*)
17913 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17914 # Instead, we relocate shared libraries at runtime.
17915 ;;
17916 sysv4*MP*)
17917 if test -d /usr/nec; then
17918 lt_prog_compiler_pic_CXX=-Kconform_pic
17919 fi
17920 ;;
17921 hpux*)
17922 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17923 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17924 # sets the default TLS model and affects inlining.
17925 case $host_cpu in
17926 hppa*64*)
17927 ;;
17928 *)
17929 lt_prog_compiler_pic_CXX='-fPIC'
17930 ;;
17931 esac
17932 ;;
17933 *qnx* | *nto*)
17934 # QNX uses GNU C++, but need to define -shared option too, otherwise
17935 # it will coredump.
17936 lt_prog_compiler_pic_CXX='-fPIC -shared'
17937 ;;
17938 *)
17939 lt_prog_compiler_pic_CXX='-fPIC'
17940 ;;
17941 esac
17942 else
17943 case $host_os in
17944 aix[4-9]*)
17945 # All AIX code is PIC.
17946 if test "$host_cpu" = ia64; then
17947 # AIX 5 now supports IA64 processor
17948 lt_prog_compiler_static_CXX='-Bstatic'
17949 else
17950 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17951 fi
17952 ;;
17953 chorus*)
17954 case $cc_basename in
17955 cxch68*)
17956 # Green Hills C++ Compiler
17957 # _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"
17958 ;;
17959 esac
17960 ;;
17961 dgux*)
17962 case $cc_basename in
17963 ec++*)
17964 lt_prog_compiler_pic_CXX='-KPIC'
17965 ;;
17966 ghcx*)
17967 # Green Hills C++ Compiler
17968 lt_prog_compiler_pic_CXX='-pic'
17969 ;;
17970 *)
17971 ;;
17972 esac
17973 ;;
17974 freebsd* | dragonfly*)
17975 # FreeBSD uses GNU C++
17976 ;;
17977 hpux9* | hpux10* | hpux11*)
17978 case $cc_basename in
17979 CC*)
17980 lt_prog_compiler_wl_CXX='-Wl,'
17981 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17982 if test "$host_cpu" != ia64; then
17983 lt_prog_compiler_pic_CXX='+Z'
17984 fi
17985 ;;
17986 aCC*)
17987 lt_prog_compiler_wl_CXX='-Wl,'
17988 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17989 case $host_cpu in
17990 hppa*64*|ia64*)
17991 # +Z the default
17992 ;;
17993 *)
17994 lt_prog_compiler_pic_CXX='+Z'
17995 ;;
17996 esac
17997 ;;
17998 *)
17999 ;;
18000 esac
18001 ;;
18002 interix*)
18003 # This is c89, which is MS Visual C++ (no shared libs)
18004 # Anyone wants to do a port?
18005 ;;
18006 irix5* | irix6* | nonstopux*)
18007 case $cc_basename in
18008 CC*)
18009 lt_prog_compiler_wl_CXX='-Wl,'
18010 lt_prog_compiler_static_CXX='-non_shared'
18011 # CC pic flag -KPIC is the default.
18012 ;;
18013 *)
18014 ;;
18015 esac
18016 ;;
18017 linux* | k*bsd*-gnu)
18018 case $cc_basename in
18019 KCC*)
18020 # KAI C++ Compiler
18021 lt_prog_compiler_wl_CXX='--backend -Wl,'
18022 lt_prog_compiler_pic_CXX='-fPIC'
18023 ;;
18024 ecpc* )
18025 # old Intel C++ for x86_64 which still supported -KPIC.
18026 lt_prog_compiler_wl_CXX='-Wl,'
18027 lt_prog_compiler_pic_CXX='-KPIC'
18028 lt_prog_compiler_static_CXX='-static'
18029 ;;
18030 icpc* )
18031 # Intel C++, used to be incompatible with GCC.
18032 # ICC 10 doesn't accept -KPIC any more.
18033 lt_prog_compiler_wl_CXX='-Wl,'
18034 lt_prog_compiler_pic_CXX='-fPIC'
18035 lt_prog_compiler_static_CXX='-static'
18036 ;;
18037 pgCC* | pgcpp*)
18038 # Portland Group C++ compiler
18039 lt_prog_compiler_wl_CXX='-Wl,'
18040 lt_prog_compiler_pic_CXX='-fpic'
18041 lt_prog_compiler_static_CXX='-Bstatic'
18042 ;;
18043 cxx*)
18044 # Compaq C++
18045 # Make sure the PIC flag is empty. It appears that all Alpha
18046 # Linux and Compaq Tru64 Unix objects are PIC.
18047 lt_prog_compiler_pic_CXX=
18048 lt_prog_compiler_static_CXX='-non_shared'
18049 ;;
18050 xlc* | xlC*)
18051 # IBM XL 8.0 on PPC
18052 lt_prog_compiler_wl_CXX='-Wl,'
18053 lt_prog_compiler_pic_CXX='-qpic'
18054 lt_prog_compiler_static_CXX='-qstaticlink'
18055 ;;
18056 *)
18057 case `$CC -V 2>&1 | sed 5q` in
18058 *Sun\ C*)
18059 # Sun C++ 5.9
18060 lt_prog_compiler_pic_CXX='-KPIC'
18061 lt_prog_compiler_static_CXX='-Bstatic'
18062 lt_prog_compiler_wl_CXX='-Qoption ld '
18063 ;;
18064 esac
18065 ;;
18066 esac
18067 ;;
18068 lynxos*)
18069 ;;
18070 m88k*)
18071 ;;
18072 mvs*)
18073 case $cc_basename in
18074 cxx*)
18075 lt_prog_compiler_pic_CXX='-W c,exportall'
18076 ;;
18077 *)
18078 ;;
18079 esac
18080 ;;
18081 netbsd*)
18082 ;;
18083 *qnx* | *nto*)
18084 # QNX uses GNU C++, but need to define -shared option too, otherwise
18085 # it will coredump.
18086 lt_prog_compiler_pic_CXX='-fPIC -shared'
18087 ;;
18088 osf3* | osf4* | osf5*)
18089 case $cc_basename in
18090 KCC*)
18091 lt_prog_compiler_wl_CXX='--backend -Wl,'
18092 ;;
18093 RCC*)
18094 # Rational C++ 2.4.1
18095 lt_prog_compiler_pic_CXX='-pic'
18096 ;;
18097 cxx*)
18098 # Digital/Compaq C++
18099 lt_prog_compiler_wl_CXX='-Wl,'
18100 # Make sure the PIC flag is empty. It appears that all Alpha
18101 # Linux and Compaq Tru64 Unix objects are PIC.
18102 lt_prog_compiler_pic_CXX=
18103 lt_prog_compiler_static_CXX='-non_shared'
18104 ;;
18105 *)
18106 ;;
18107 esac
18108 ;;
18109 psos*)
18110 ;;
18111 solaris*)
18112 case $cc_basename in
18113 CC*)
18114 # Sun C++ 4.2, 5.x and Centerline C++
18115 lt_prog_compiler_pic_CXX='-KPIC'
18116 lt_prog_compiler_static_CXX='-Bstatic'
18117 lt_prog_compiler_wl_CXX='-Qoption ld '
18118 ;;
18119 gcx*)
18120 # Green Hills C++ Compiler
18121 lt_prog_compiler_pic_CXX='-PIC'
18122 ;;
18123 *)
18124 ;;
18125 esac
18126 ;;
18127 sunos4*)
18128 case $cc_basename in
18129 CC*)
18130 # Sun C++ 4.x
18131 lt_prog_compiler_pic_CXX='-pic'
18132 lt_prog_compiler_static_CXX='-Bstatic'
18133 ;;
18134 lcc*)
18135 # Lucid
18136 lt_prog_compiler_pic_CXX='-pic'
18137 ;;
18138 *)
18139 ;;
18140 esac
18141 ;;
18142 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18143 case $cc_basename in
18144 CC*)
18145 lt_prog_compiler_wl_CXX='-Wl,'
18146 lt_prog_compiler_pic_CXX='-KPIC'
18147 lt_prog_compiler_static_CXX='-Bstatic'
18148 ;;
18149 esac
18150 ;;
18151 tandem*)
18152 case $cc_basename in
18153 NCC*)
18154 # NonStop-UX NCC 3.20
18155 lt_prog_compiler_pic_CXX='-KPIC'
18156 ;;
18157 *)
18158 ;;
18159 esac
18160 ;;
18161 vxworks*)
18162 ;;
18163 *)
18164 lt_prog_compiler_can_build_shared_CXX=no
18165 ;;
18166 esac
18167 fi
18168
18169case $host_os in
18170 # For platforms which do not support PIC, -DPIC is meaningless:
18171 *djgpp*)
18172 lt_prog_compiler_pic_CXX=
18173 ;;
18174 *)
18175 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18176 ;;
18177esac
18178{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18179$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
18180
18181
18182
18183#
18184# Check to make sure the PIC flag actually works.
18185#
18186if test -n "$lt_prog_compiler_pic_CXX"; then
18187 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18188$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18189if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
18190 $as_echo_n "(cached) " >&6
18191else
18192 lt_cv_prog_compiler_pic_works_CXX=no
18193 ac_outfile=conftest.$ac_objext
18194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18195 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18196 # Insert the option either (1) after the last *FLAGS variable, or
18197 # (2) before a word containing "conftest.", or (3) at the end.
18198 # Note that $ac_compile itself does not contain backslashes and begins
18199 # with a dollar sign (not a hyphen), so the echo should work correctly.
18200 # The option is referenced via a variable to avoid confusing sed.
18201 lt_compile=`echo "$ac_compile" | $SED \
18202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18204 -e 's:$: $lt_compiler_flag:'`
cristyc7083c12009-10-14 03:16:55 +000018205 (eval echo "\"\$as_me:18205: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018206 (eval "$lt_compile" 2>conftest.err)
18207 ac_status=$?
18208 cat conftest.err >&5
cristyc7083c12009-10-14 03:16:55 +000018209 echo "$as_me:18209: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018210 if (exit $ac_status) && test -s "$ac_outfile"; then
18211 # The compiler can only warn and ignore the option if not recognized
18212 # So say no if there are warnings other than the usual output.
18213 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18214 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18215 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18216 lt_cv_prog_compiler_pic_works_CXX=yes
18217 fi
18218 fi
18219 $RM conftest*
18220
18221fi
18222{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18223$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18224
18225if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18226 case $lt_prog_compiler_pic_CXX in
18227 "" | " "*) ;;
18228 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18229 esac
18230else
18231 lt_prog_compiler_pic_CXX=
18232 lt_prog_compiler_can_build_shared_CXX=no
18233fi
18234
18235fi
18236
18237
18238
18239#
18240# Check to make sure the static flag actually works.
18241#
18242wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18243{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18244$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18245if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
18246 $as_echo_n "(cached) " >&6
18247else
18248 lt_cv_prog_compiler_static_works_CXX=no
18249 save_LDFLAGS="$LDFLAGS"
18250 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18251 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18252 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18253 # The linker can only warn and ignore the option if not recognized
18254 # So say no if there are warnings
18255 if test -s conftest.err; then
18256 # Append any errors to the config.log.
18257 cat conftest.err 1>&5
18258 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18259 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18260 if diff conftest.exp conftest.er2 >/dev/null; then
18261 lt_cv_prog_compiler_static_works_CXX=yes
18262 fi
18263 else
18264 lt_cv_prog_compiler_static_works_CXX=yes
18265 fi
18266 fi
18267 $RM -r conftest*
18268 LDFLAGS="$save_LDFLAGS"
18269
18270fi
18271{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18272$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18273
18274if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18275 :
18276else
18277 lt_prog_compiler_static_CXX=
18278fi
18279
18280
18281
18282
18283 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18284$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18285if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18286 $as_echo_n "(cached) " >&6
18287else
18288 lt_cv_prog_compiler_c_o_CXX=no
18289 $RM -r conftest 2>/dev/null
18290 mkdir conftest
18291 cd conftest
18292 mkdir out
18293 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18294
18295 lt_compiler_flag="-o out/conftest2.$ac_objext"
18296 # Insert the option either (1) after the last *FLAGS variable, or
18297 # (2) before a word containing "conftest.", or (3) at the end.
18298 # Note that $ac_compile itself does not contain backslashes and begins
18299 # with a dollar sign (not a hyphen), so the echo should work correctly.
18300 lt_compile=`echo "$ac_compile" | $SED \
18301 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18302 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18303 -e 's:$: $lt_compiler_flag:'`
cristyc7083c12009-10-14 03:16:55 +000018304 (eval echo "\"\$as_me:18304: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018305 (eval "$lt_compile" 2>out/conftest.err)
18306 ac_status=$?
18307 cat out/conftest.err >&5
cristyc7083c12009-10-14 03:16:55 +000018308 echo "$as_me:18308: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018309 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18310 then
18311 # The compiler can only warn and ignore the option if not recognized
18312 # So say no if there are warnings
18313 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18314 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18315 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18316 lt_cv_prog_compiler_c_o_CXX=yes
18317 fi
18318 fi
18319 chmod u+w . 2>&5
18320 $RM conftest*
18321 # SGI C++ compiler will create directory out/ii_files/ for
18322 # template instantiation
18323 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18324 $RM out/* && rmdir out
18325 cd ..
18326 $RM -r conftest
18327 $RM conftest*
18328
18329fi
18330{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18331$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18332
18333
18334
18335 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18336$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18337if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18338 $as_echo_n "(cached) " >&6
18339else
18340 lt_cv_prog_compiler_c_o_CXX=no
18341 $RM -r conftest 2>/dev/null
18342 mkdir conftest
18343 cd conftest
18344 mkdir out
18345 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18346
18347 lt_compiler_flag="-o out/conftest2.$ac_objext"
18348 # Insert the option either (1) after the last *FLAGS variable, or
18349 # (2) before a word containing "conftest.", or (3) at the end.
18350 # Note that $ac_compile itself does not contain backslashes and begins
18351 # with a dollar sign (not a hyphen), so the echo should work correctly.
18352 lt_compile=`echo "$ac_compile" | $SED \
18353 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18355 -e 's:$: $lt_compiler_flag:'`
cristyc7083c12009-10-14 03:16:55 +000018356 (eval echo "\"\$as_me:18356: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018357 (eval "$lt_compile" 2>out/conftest.err)
18358 ac_status=$?
18359 cat out/conftest.err >&5
cristyc7083c12009-10-14 03:16:55 +000018360 echo "$as_me:18360: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018361 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18362 then
18363 # The compiler can only warn and ignore the option if not recognized
18364 # So say no if there are warnings
18365 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18366 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18367 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18368 lt_cv_prog_compiler_c_o_CXX=yes
18369 fi
18370 fi
18371 chmod u+w . 2>&5
18372 $RM conftest*
18373 # SGI C++ compiler will create directory out/ii_files/ for
18374 # template instantiation
18375 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18376 $RM out/* && rmdir out
18377 cd ..
18378 $RM -r conftest
18379 $RM conftest*
18380
18381fi
18382{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18383$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18384
18385
18386
18387
18388hard_links="nottested"
18389if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18390 # do not overwrite the value of need_locks provided by the user
18391 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18392$as_echo_n "checking if we can lock with hard links... " >&6; }
18393 hard_links=yes
18394 $RM conftest*
18395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18396 touch conftest.a
18397 ln conftest.a conftest.b 2>&5 || hard_links=no
18398 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18399 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
18400$as_echo "$hard_links" >&6; }
18401 if test "$hard_links" = no; then
18402 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18403$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18404 need_locks=warn
18405 fi
18406else
18407 need_locks=no
18408fi
18409
18410
18411
18412 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18413$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18414
18415 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18416 case $host_os in
18417 aix[4-9]*)
18418 # If we're using GNU nm, then we don't want the "-C" option.
18419 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18420 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18421 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'
18422 else
18423 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'
18424 fi
18425 ;;
18426 pw32*)
18427 export_symbols_cmds_CXX="$ltdll_cmds"
18428 ;;
18429 cygwin* | mingw* | cegcc*)
18430 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'
18431 ;;
18432 *)
18433 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18434 ;;
18435 esac
18436 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18437
18438{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18439$as_echo "$ld_shlibs_CXX" >&6; }
18440test "$ld_shlibs_CXX" = no && can_build_shared=no
18441
18442with_gnu_ld_CXX=$with_gnu_ld
18443
18444
18445
18446
18447
18448
18449#
18450# Do we need to explicitly link libc?
18451#
18452case "x$archive_cmds_need_lc_CXX" in
18453x|xyes)
18454 # Assume -lc should be added
18455 archive_cmds_need_lc_CXX=yes
18456
18457 if test "$enable_shared" = yes && test "$GCC" = yes; then
18458 case $archive_cmds_CXX in
18459 *'~'*)
18460 # FIXME: we may have to deal with multi-command sequences.
18461 ;;
18462 '$CC '*)
18463 # Test whether the compiler implicitly links with -lc since on some
18464 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18465 # to ld, don't add -lc before -lgcc.
18466 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18467$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18468 $RM conftest*
18469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18470
18471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18472 (eval $ac_compile) 2>&5
18473 ac_status=$?
18474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18475 (exit $ac_status); } 2>conftest.err; then
18476 soname=conftest
18477 lib=conftest
18478 libobjs=conftest.$ac_objext
18479 deplibs=
18480 wl=$lt_prog_compiler_wl_CXX
18481 pic_flag=$lt_prog_compiler_pic_CXX
18482 compiler_flags=-v
18483 linker_flags=-v
18484 verstring=
18485 output_objdir=.
18486 libname=conftest
18487 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18488 allow_undefined_flag_CXX=
18489 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18490 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18491 ac_status=$?
18492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18493 (exit $ac_status); }
18494 then
18495 archive_cmds_need_lc_CXX=no
18496 else
18497 archive_cmds_need_lc_CXX=yes
18498 fi
18499 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18500 else
18501 cat conftest.err 1>&5
18502 fi
18503 $RM conftest*
18504 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18505$as_echo "$archive_cmds_need_lc_CXX" >&6; }
18506 ;;
18507 esac
18508 fi
18509 ;;
18510esac
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530
18531
18532
18533
18534
18535
18536
18537
18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
18556
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18576$as_echo_n "checking dynamic linker characteristics... " >&6; }
18577
18578library_names_spec=
18579libname_spec='lib$name'
18580soname_spec=
18581shrext_cmds=".so"
18582postinstall_cmds=
18583postuninstall_cmds=
18584finish_cmds=
18585finish_eval=
18586shlibpath_var=
18587shlibpath_overrides_runpath=unknown
18588version_type=none
18589dynamic_linker="$host_os ld.so"
18590sys_lib_dlsearch_path_spec="/lib /usr/lib"
18591need_lib_prefix=unknown
18592hardcode_into_libs=no
18593
18594# when you set need_version to no, make sure it does not cause -set_version
18595# flags to be left without arguments
18596need_version=unknown
18597
18598case $host_os in
18599aix3*)
18600 version_type=linux
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18602 shlibpath_var=LIBPATH
18603
18604 # AIX 3 has no versioning support, so we append a major version to the name.
18605 soname_spec='${libname}${release}${shared_ext}$major'
18606 ;;
18607
18608aix[4-9]*)
18609 version_type=linux
18610 need_lib_prefix=no
18611 need_version=no
18612 hardcode_into_libs=yes
18613 if test "$host_cpu" = ia64; then
18614 # AIX 5 supports IA64
18615 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18616 shlibpath_var=LD_LIBRARY_PATH
18617 else
18618 # With GCC up to 2.95.x, collect2 would create an import file
18619 # for dependence libraries. The import file would start with
18620 # the line `#! .'. This would cause the generated library to
18621 # depend on `.', always an invalid library. This was fixed in
18622 # development snapshots of GCC prior to 3.0.
18623 case $host_os in
18624 aix4 | aix4.[01] | aix4.[01].*)
18625 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18626 echo ' yes '
18627 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18628 :
18629 else
18630 can_build_shared=no
18631 fi
18632 ;;
18633 esac
18634 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18635 # soname into executable. Probably we can add versioning support to
18636 # collect2, so additional links can be useful in future.
18637 if test "$aix_use_runtimelinking" = yes; then
18638 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18639 # instead of lib<name>.a to let people know that these are not
18640 # typical AIX shared libraries.
18641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18642 else
18643 # We preserve .a as extension for shared libraries through AIX4.2
18644 # and later when we are not doing run time linking.
18645 library_names_spec='${libname}${release}.a $libname.a'
18646 soname_spec='${libname}${release}${shared_ext}$major'
18647 fi
18648 shlibpath_var=LIBPATH
18649 fi
18650 ;;
18651
18652amigaos*)
18653 case $host_cpu in
18654 powerpc)
18655 # Since July 2007 AmigaOS4 officially supports .so libraries.
18656 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18658 ;;
18659 m68k)
18660 library_names_spec='$libname.ixlibrary $libname.a'
18661 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18662 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'
18663 ;;
18664 esac
18665 ;;
18666
18667beos*)
18668 library_names_spec='${libname}${shared_ext}'
18669 dynamic_linker="$host_os ld.so"
18670 shlibpath_var=LIBRARY_PATH
18671 ;;
18672
18673bsdi[45]*)
18674 version_type=linux
18675 need_version=no
18676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18677 soname_spec='${libname}${release}${shared_ext}$major'
18678 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18679 shlibpath_var=LD_LIBRARY_PATH
18680 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18681 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18682 # the default ld.so.conf also contains /usr/contrib/lib and
18683 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18684 # libtool to hard-code these into programs
18685 ;;
18686
18687cygwin* | mingw* | pw32* | cegcc*)
18688 version_type=windows
18689 shrext_cmds=".dll"
18690 need_version=no
18691 need_lib_prefix=no
18692
18693 case $GCC,$host_os in
18694 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18695 library_names_spec='$libname.dll.a'
18696 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18697 postinstall_cmds='base_file=`basename \${file}`~
18698 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18699 dldir=$destdir/`dirname \$dlpath`~
18700 test -d \$dldir || mkdir -p \$dldir~
18701 $install_prog $dir/$dlname \$dldir/$dlname~
18702 chmod a+x \$dldir/$dlname~
18703 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18704 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18705 fi'
18706 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18707 dlpath=$dir/\$dldll~
18708 $RM \$dlpath'
18709 shlibpath_overrides_runpath=yes
18710
18711 case $host_os in
18712 cygwin*)
18713 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18714 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18715 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18716 ;;
18717 mingw* | cegcc*)
18718 # MinGW DLLs use traditional 'lib' prefix
18719 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18720 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18721 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18722 # It is most probably a Windows format PATH printed by
18723 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18724 # path with ; separators, and with drive letters. We can handle the
18725 # drive letters (cygwin fileutils understands them), so leave them,
18726 # especially as we might pass files found there to a mingw objdump,
18727 # which wouldn't understand a cygwinified path. Ahh.
18728 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18729 else
18730 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18731 fi
18732 ;;
18733 pw32*)
18734 # pw32 DLLs use 'pw' prefix rather than 'lib'
18735 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18736 ;;
18737 esac
18738 ;;
18739
18740 *)
18741 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18742 ;;
18743 esac
18744 dynamic_linker='Win32 ld.exe'
18745 # FIXME: first we should search . and the directory the executable is in
18746 shlibpath_var=PATH
18747 ;;
18748
18749darwin* | rhapsody*)
18750 dynamic_linker="$host_os dyld"
18751 version_type=darwin
18752 need_lib_prefix=no
18753 need_version=no
18754 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18755 soname_spec='${libname}${release}${major}$shared_ext'
18756 shlibpath_overrides_runpath=yes
18757 shlibpath_var=DYLD_LIBRARY_PATH
18758 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18759
18760 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18761 ;;
18762
18763dgux*)
18764 version_type=linux
18765 need_lib_prefix=no
18766 need_version=no
18767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18768 soname_spec='${libname}${release}${shared_ext}$major'
18769 shlibpath_var=LD_LIBRARY_PATH
18770 ;;
18771
18772freebsd1*)
18773 dynamic_linker=no
18774 ;;
18775
18776freebsd* | dragonfly*)
18777 # DragonFly does not have aout. When/if they implement a new
18778 # versioning mechanism, adjust this.
18779 if test -x /usr/bin/objformat; then
18780 objformat=`/usr/bin/objformat`
18781 else
18782 case $host_os in
18783 freebsd[123]*) objformat=aout ;;
18784 *) objformat=elf ;;
18785 esac
18786 fi
18787 version_type=freebsd-$objformat
18788 case $version_type in
18789 freebsd-elf*)
18790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18791 need_version=no
18792 need_lib_prefix=no
18793 ;;
18794 freebsd-*)
18795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18796 need_version=yes
18797 ;;
18798 esac
18799 shlibpath_var=LD_LIBRARY_PATH
18800 case $host_os in
18801 freebsd2*)
18802 shlibpath_overrides_runpath=yes
18803 ;;
18804 freebsd3.[01]* | freebsdelf3.[01]*)
18805 shlibpath_overrides_runpath=yes
18806 hardcode_into_libs=yes
18807 ;;
18808 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18809 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18810 shlibpath_overrides_runpath=no
18811 hardcode_into_libs=yes
18812 ;;
18813 *) # from 4.6 on, and DragonFly
18814 shlibpath_overrides_runpath=yes
18815 hardcode_into_libs=yes
18816 ;;
18817 esac
18818 ;;
18819
18820gnu*)
18821 version_type=linux
18822 need_lib_prefix=no
18823 need_version=no
18824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18825 soname_spec='${libname}${release}${shared_ext}$major'
18826 shlibpath_var=LD_LIBRARY_PATH
18827 hardcode_into_libs=yes
18828 ;;
18829
18830hpux9* | hpux10* | hpux11*)
18831 # Give a soname corresponding to the major version so that dld.sl refuses to
18832 # link against other versions.
18833 version_type=sunos
18834 need_lib_prefix=no
18835 need_version=no
18836 case $host_cpu in
18837 ia64*)
18838 shrext_cmds='.so'
18839 hardcode_into_libs=yes
18840 dynamic_linker="$host_os dld.so"
18841 shlibpath_var=LD_LIBRARY_PATH
18842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18844 soname_spec='${libname}${release}${shared_ext}$major'
18845 if test "X$HPUX_IA64_MODE" = X32; then
18846 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18847 else
18848 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18849 fi
18850 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18851 ;;
18852 hppa*64*)
18853 shrext_cmds='.sl'
18854 hardcode_into_libs=yes
18855 dynamic_linker="$host_os dld.sl"
18856 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18857 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18859 soname_spec='${libname}${release}${shared_ext}$major'
18860 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18861 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18862 ;;
18863 *)
18864 shrext_cmds='.sl'
18865 dynamic_linker="$host_os dld.sl"
18866 shlibpath_var=SHLIB_PATH
18867 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18869 soname_spec='${libname}${release}${shared_ext}$major'
18870 ;;
18871 esac
18872 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18873 postinstall_cmds='chmod 555 $lib'
18874 ;;
18875
18876interix[3-9]*)
18877 version_type=linux
18878 need_lib_prefix=no
18879 need_version=no
18880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18881 soname_spec='${libname}${release}${shared_ext}$major'
18882 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18883 shlibpath_var=LD_LIBRARY_PATH
18884 shlibpath_overrides_runpath=no
18885 hardcode_into_libs=yes
18886 ;;
18887
18888irix5* | irix6* | nonstopux*)
18889 case $host_os in
18890 nonstopux*) version_type=nonstopux ;;
18891 *)
18892 if test "$lt_cv_prog_gnu_ld" = yes; then
18893 version_type=linux
18894 else
18895 version_type=irix
18896 fi ;;
18897 esac
18898 need_lib_prefix=no
18899 need_version=no
18900 soname_spec='${libname}${release}${shared_ext}$major'
18901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18902 case $host_os in
18903 irix5* | nonstopux*)
18904 libsuff= shlibsuff=
18905 ;;
18906 *)
18907 case $LD in # libtool.m4 will add one of these switches to LD
18908 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18909 libsuff= shlibsuff= libmagic=32-bit;;
18910 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18911 libsuff=32 shlibsuff=N32 libmagic=N32;;
18912 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18913 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18914 *) libsuff= shlibsuff= libmagic=never-match;;
18915 esac
18916 ;;
18917 esac
18918 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18919 shlibpath_overrides_runpath=no
18920 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18921 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18922 hardcode_into_libs=yes
18923 ;;
18924
18925# No shared lib support for Linux oldld, aout, or coff.
18926linux*oldld* | linux*aout* | linux*coff*)
18927 dynamic_linker=no
18928 ;;
18929
18930# This must be Linux ELF.
18931linux* | k*bsd*-gnu)
18932 version_type=linux
18933 need_lib_prefix=no
18934 need_version=no
18935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18936 soname_spec='${libname}${release}${shared_ext}$major'
18937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18938 shlibpath_var=LD_LIBRARY_PATH
18939 shlibpath_overrides_runpath=no
18940 # Some binutils ld are patched to set DT_RUNPATH
18941 save_LDFLAGS=$LDFLAGS
18942 save_libdir=$libdir
18943 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18944 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18945 cat >conftest.$ac_ext <<_ACEOF
18946/* confdefs.h. */
18947_ACEOF
18948cat confdefs.h >>conftest.$ac_ext
18949cat >>conftest.$ac_ext <<_ACEOF
18950/* end confdefs.h. */
18951
18952int
18953main ()
18954{
18955
18956 ;
18957 return 0;
18958}
18959_ACEOF
18960rm -f conftest.$ac_objext conftest$ac_exeext
18961if { (ac_try="$ac_link"
18962case "(($ac_try" in
18963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964 *) ac_try_echo=$ac_try;;
18965esac
18966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18967$as_echo "$ac_try_echo") >&5
18968 (eval "$ac_link") 2>conftest.er1
18969 ac_status=$?
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
18973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } && {
18975 test -z "$ac_cxx_werror_flag" ||
18976 test ! -s conftest.err
18977 } && test -s conftest$ac_exeext && {
18978 test "$cross_compiling" = yes ||
18979 $as_test_x conftest$ac_exeext
18980 }; then
18981 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
18982 shlibpath_overrides_runpath=yes
18983fi
18984
18985else
18986 $as_echo "$as_me: failed program was:" >&5
18987sed 's/^/| /' conftest.$ac_ext >&5
18988
18989
18990fi
18991
18992rm -rf conftest.dSYM
18993rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18994 conftest$ac_exeext conftest.$ac_ext
18995 LDFLAGS=$save_LDFLAGS
18996 libdir=$save_libdir
18997
18998 # This implies no fast_install, which is unacceptable.
18999 # Some rework will be needed to allow for fast_install
19000 # before this can be enabled.
19001 hardcode_into_libs=yes
19002
19003 # Add ABI-specific directories to the system library path.
19004 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19005
19006 # Append ld.so.conf contents to the search path
19007 if test -f /etc/ld.so.conf; then
19008 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' ' '`
19009 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19010 fi
19011
19012 # We used to test for /lib/ld.so.1 and disable shared libraries on
19013 # powerpc, because MkLinux only supported shared libraries with the
19014 # GNU dynamic linker. Since this was broken with cross compilers,
19015 # most powerpc-linux boxes support dynamic linking these days and
19016 # people can always --disable-shared, the test was removed, and we
19017 # assume the GNU/Linux dynamic linker is in use.
19018 dynamic_linker='GNU/Linux ld.so'
19019 ;;
19020
19021netbsd*)
19022 version_type=sunos
19023 need_lib_prefix=no
19024 need_version=no
19025 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19028 dynamic_linker='NetBSD (a.out) ld.so'
19029 else
19030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19031 soname_spec='${libname}${release}${shared_ext}$major'
19032 dynamic_linker='NetBSD ld.elf_so'
19033 fi
19034 shlibpath_var=LD_LIBRARY_PATH
19035 shlibpath_overrides_runpath=yes
19036 hardcode_into_libs=yes
19037 ;;
19038
19039newsos6)
19040 version_type=linux
19041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19042 shlibpath_var=LD_LIBRARY_PATH
19043 shlibpath_overrides_runpath=yes
19044 ;;
19045
19046*nto* | *qnx*)
19047 version_type=qnx
19048 need_lib_prefix=no
19049 need_version=no
19050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19051 soname_spec='${libname}${release}${shared_ext}$major'
19052 shlibpath_var=LD_LIBRARY_PATH
19053 shlibpath_overrides_runpath=no
19054 hardcode_into_libs=yes
19055 dynamic_linker='ldqnx.so'
19056 ;;
19057
19058openbsd*)
19059 version_type=sunos
19060 sys_lib_dlsearch_path_spec="/usr/lib"
19061 need_lib_prefix=no
19062 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19063 case $host_os in
19064 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19065 *) need_version=no ;;
19066 esac
19067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19069 shlibpath_var=LD_LIBRARY_PATH
19070 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19071 case $host_os in
19072 openbsd2.[89] | openbsd2.[89].*)
19073 shlibpath_overrides_runpath=no
19074 ;;
19075 *)
19076 shlibpath_overrides_runpath=yes
19077 ;;
19078 esac
19079 else
19080 shlibpath_overrides_runpath=yes
19081 fi
19082 ;;
19083
19084os2*)
19085 libname_spec='$name'
19086 shrext_cmds=".dll"
19087 need_lib_prefix=no
19088 library_names_spec='$libname${shared_ext} $libname.a'
19089 dynamic_linker='OS/2 ld.exe'
19090 shlibpath_var=LIBPATH
19091 ;;
19092
19093osf3* | osf4* | osf5*)
19094 version_type=osf
19095 need_lib_prefix=no
19096 need_version=no
19097 soname_spec='${libname}${release}${shared_ext}$major'
19098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19099 shlibpath_var=LD_LIBRARY_PATH
19100 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19101 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19102 ;;
19103
19104rdos*)
19105 dynamic_linker=no
19106 ;;
19107
19108solaris*)
19109 version_type=linux
19110 need_lib_prefix=no
19111 need_version=no
19112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19113 soname_spec='${libname}${release}${shared_ext}$major'
19114 shlibpath_var=LD_LIBRARY_PATH
19115 shlibpath_overrides_runpath=yes
19116 hardcode_into_libs=yes
19117 # ldd complains unless libraries are executable
19118 postinstall_cmds='chmod +x $lib'
19119 ;;
19120
19121sunos4*)
19122 version_type=sunos
19123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19124 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19125 shlibpath_var=LD_LIBRARY_PATH
19126 shlibpath_overrides_runpath=yes
19127 if test "$with_gnu_ld" = yes; then
19128 need_lib_prefix=no
19129 fi
19130 need_version=yes
19131 ;;
19132
19133sysv4 | sysv4.3*)
19134 version_type=linux
19135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19136 soname_spec='${libname}${release}${shared_ext}$major'
19137 shlibpath_var=LD_LIBRARY_PATH
19138 case $host_vendor in
19139 sni)
19140 shlibpath_overrides_runpath=no
19141 need_lib_prefix=no
19142 runpath_var=LD_RUN_PATH
19143 ;;
19144 siemens)
19145 need_lib_prefix=no
19146 ;;
19147 motorola)
19148 need_lib_prefix=no
19149 need_version=no
19150 shlibpath_overrides_runpath=no
19151 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19152 ;;
19153 esac
19154 ;;
19155
19156sysv4*MP*)
19157 if test -d /usr/nec ;then
19158 version_type=linux
19159 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19160 soname_spec='$libname${shared_ext}.$major'
19161 shlibpath_var=LD_LIBRARY_PATH
19162 fi
19163 ;;
19164
19165sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19166 version_type=freebsd-elf
19167 need_lib_prefix=no
19168 need_version=no
19169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19170 soname_spec='${libname}${release}${shared_ext}$major'
19171 shlibpath_var=LD_LIBRARY_PATH
19172 shlibpath_overrides_runpath=yes
19173 hardcode_into_libs=yes
19174 if test "$with_gnu_ld" = yes; then
19175 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19176 else
19177 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19178 case $host_os in
19179 sco3.2v5*)
19180 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19181 ;;
19182 esac
19183 fi
19184 sys_lib_dlsearch_path_spec='/usr/lib'
19185 ;;
19186
19187tpf*)
19188 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19189 version_type=linux
19190 need_lib_prefix=no
19191 need_version=no
19192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19193 shlibpath_var=LD_LIBRARY_PATH
19194 shlibpath_overrides_runpath=no
19195 hardcode_into_libs=yes
19196 ;;
19197
19198uts4*)
19199 version_type=linux
19200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19201 soname_spec='${libname}${release}${shared_ext}$major'
19202 shlibpath_var=LD_LIBRARY_PATH
19203 ;;
19204
19205*)
19206 dynamic_linker=no
19207 ;;
19208esac
19209{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19210$as_echo "$dynamic_linker" >&6; }
19211test "$dynamic_linker" = no && can_build_shared=no
19212
19213variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19214if test "$GCC" = yes; then
19215 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19216fi
19217
19218if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19219 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19220fi
19221if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19222 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19223fi
19224
19225
19226
19227
19228
19229
19230
19231
19232
19233
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258
19259
19260 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19261$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19262hardcode_action_CXX=
19263if test -n "$hardcode_libdir_flag_spec_CXX" ||
19264 test -n "$runpath_var_CXX" ||
19265 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19266
19267 # We can hardcode non-existent directories.
19268 if test "$hardcode_direct_CXX" != no &&
19269 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19270 # have to relink, otherwise we might link with an installed library
19271 # when we should be linking with a yet-to-be-installed one
19272 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19273 test "$hardcode_minus_L_CXX" != no; then
19274 # Linking always hardcodes the temporary library directory.
19275 hardcode_action_CXX=relink
19276 else
19277 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19278 hardcode_action_CXX=immediate
19279 fi
19280else
19281 # We cannot hardcode anything, or else we can only hardcode existing
19282 # directories.
19283 hardcode_action_CXX=unsupported
19284fi
19285{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19286$as_echo "$hardcode_action_CXX" >&6; }
19287
19288if test "$hardcode_action_CXX" = relink ||
19289 test "$inherit_rpath_CXX" = yes; then
19290 # Fast installation is not supported
19291 enable_fast_install=no
19292elif test "$shlibpath_overrides_runpath" = yes ||
19293 test "$enable_shared" = no; then
19294 # Fast installation is not necessary
19295 enable_fast_install=needless
19296fi
19297
19298
19299
19300
19301
19302
19303
19304 fi # test -n "$compiler"
19305
19306 CC=$lt_save_CC
19307 LDCXX=$LD
19308 LD=$lt_save_LD
19309 GCC=$lt_save_GCC
19310 with_gnu_ld=$lt_save_with_gnu_ld
19311 lt_cv_path_LDCXX=$lt_cv_path_LD
19312 lt_cv_path_LD=$lt_save_path_LD
19313 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19314 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19315fi # test "$_lt_caught_CXX_error" != yes
19316
19317ac_ext=c
19318ac_cpp='$CPP $CPPFLAGS'
19319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19321ac_compiler_gnu=$ac_cv_c_compiler_gnu
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332
19333
19334
19335 ac_config_commands="$ac_config_commands libtool"
19336
19337
19338
19339
19340# Only expand once:
19341
19342
19343
19344
19345
19346# Configure libltdl
19347
19348
19349
19350
19351
19352
19353
19354
19355{ $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
19356$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19357if test "${libltdl_cv_shlibext+set}" = set; then
19358 $as_echo_n "(cached) " >&6
19359else
19360
19361module=yes
19362eval libltdl_cv_shlibext=$shrext_cmds
19363
19364fi
19365{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19366$as_echo "$libltdl_cv_shlibext" >&6; }
19367if test -n "$libltdl_cv_shlibext"; then
19368
19369cat >>confdefs.h <<_ACEOF
19370#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19371_ACEOF
19372
19373fi
19374
19375{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
19376$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19377if test "${lt_cv_module_path_var+set}" = set; then
19378 $as_echo_n "(cached) " >&6
19379else
19380 lt_cv_module_path_var="$shlibpath_var"
19381fi
19382{ $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
19383$as_echo "$lt_cv_module_path_var" >&6; }
19384if test -n "$lt_cv_module_path_var"; then
19385
19386cat >>confdefs.h <<_ACEOF
19387#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19388_ACEOF
19389
19390fi
19391
19392{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
19393$as_echo_n "checking for the default library search path... " >&6; }
19394if test "${lt_cv_sys_dlsearch_path+set}" = set; then
19395 $as_echo_n "(cached) " >&6
19396else
19397 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19398fi
19399{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
19400$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19401if test -n "$lt_cv_sys_dlsearch_path"; then
19402 sys_dlsearch_path=
19403 for dir in $lt_cv_sys_dlsearch_path; do
19404 if test -z "$sys_dlsearch_path"; then
19405 sys_dlsearch_path="$dir"
19406 else
19407 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19408 fi
19409 done
19410
19411cat >>confdefs.h <<_ACEOF
19412#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19413_ACEOF
19414
19415fi
19416
19417
19418LT_DLLOADERS=
19419
19420
19421ac_ext=c
19422ac_cpp='$CPP $CPPFLAGS'
19423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19425ac_compiler_gnu=$ac_cv_c_compiler_gnu
19426
19427
19428LIBADD_DLOPEN=
19429{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19430$as_echo_n "checking for library containing dlopen... " >&6; }
19431if test "${ac_cv_search_dlopen+set}" = set; then
19432 $as_echo_n "(cached) " >&6
19433else
19434 ac_func_search_save_LIBS=$LIBS
19435cat >conftest.$ac_ext <<_ACEOF
19436/* confdefs.h. */
19437_ACEOF
19438cat confdefs.h >>conftest.$ac_ext
19439cat >>conftest.$ac_ext <<_ACEOF
19440/* end confdefs.h. */
19441
19442/* Override any GCC internal prototype to avoid an error.
19443 Use char because int might match the return type of a GCC
19444 builtin and then its argument prototype would still apply. */
19445#ifdef __cplusplus
19446extern "C"
19447#endif
19448char dlopen ();
19449int
19450main ()
19451{
19452return dlopen ();
19453 ;
19454 return 0;
19455}
19456_ACEOF
19457for ac_lib in '' dl; do
19458 if test -z "$ac_lib"; then
19459 ac_res="none required"
19460 else
19461 ac_res=-l$ac_lib
19462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19463 fi
19464 rm -f conftest.$ac_objext conftest$ac_exeext
19465if { (ac_try="$ac_link"
19466case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469esac
19470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19471$as_echo "$ac_try_echo") >&5
19472 (eval "$ac_link") 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } && {
19479 test -z "$ac_c_werror_flag" ||
19480 test ! -s conftest.err
19481 } && test -s conftest$ac_exeext && {
19482 test "$cross_compiling" = yes ||
19483 $as_test_x conftest$ac_exeext
19484 }; then
19485 ac_cv_search_dlopen=$ac_res
19486else
19487 $as_echo "$as_me: failed program was:" >&5
19488sed 's/^/| /' conftest.$ac_ext >&5
19489
19490
19491fi
19492
19493rm -rf conftest.dSYM
19494rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19495 conftest$ac_exeext
19496 if test "${ac_cv_search_dlopen+set}" = set; then
19497 break
19498fi
19499done
19500if test "${ac_cv_search_dlopen+set}" = set; then
19501 :
19502else
19503 ac_cv_search_dlopen=no
19504fi
19505rm conftest.$ac_ext
19506LIBS=$ac_func_search_save_LIBS
19507fi
19508{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19509$as_echo "$ac_cv_search_dlopen" >&6; }
19510ac_res=$ac_cv_search_dlopen
19511if test "$ac_res" != no; then
19512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19513
19514cat >>confdefs.h <<\_ACEOF
19515#define HAVE_LIBDL 1
19516_ACEOF
19517
19518 if test "$ac_cv_search_dlopen" != "none required" ; then
19519 LIBADD_DLOPEN="-ldl"
19520 fi
19521 libltdl_cv_lib_dl_dlopen="yes"
19522 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19523else
19524 cat >conftest.$ac_ext <<_ACEOF
19525/* confdefs.h. */
19526_ACEOF
19527cat confdefs.h >>conftest.$ac_ext
19528cat >>conftest.$ac_ext <<_ACEOF
19529/* end confdefs.h. */
19530#if HAVE_DLFCN_H
19531# include <dlfcn.h>
19532#endif
19533
19534int
19535main ()
19536{
19537dlopen(0, 0);
19538 ;
19539 return 0;
19540}
19541_ACEOF
19542rm -f conftest.$ac_objext conftest$ac_exeext
19543if { (ac_try="$ac_link"
19544case "(($ac_try" in
19545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546 *) ac_try_echo=$ac_try;;
19547esac
19548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19549$as_echo "$ac_try_echo") >&5
19550 (eval "$ac_link") 2>conftest.er1
19551 ac_status=$?
19552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
19555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } && {
19557 test -z "$ac_c_werror_flag" ||
19558 test ! -s conftest.err
19559 } && test -s conftest$ac_exeext && {
19560 test "$cross_compiling" = yes ||
19561 $as_test_x conftest$ac_exeext
19562 }; then
19563
19564cat >>confdefs.h <<\_ACEOF
19565#define HAVE_LIBDL 1
19566_ACEOF
19567
19568 libltdl_cv_func_dlopen="yes"
19569 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19570else
19571 $as_echo "$as_me: failed program was:" >&5
19572sed 's/^/| /' conftest.$ac_ext >&5
19573
19574 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19575$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19576if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19577 $as_echo_n "(cached) " >&6
19578else
19579 ac_check_lib_save_LIBS=$LIBS
19580LIBS="-lsvld $LIBS"
19581cat >conftest.$ac_ext <<_ACEOF
19582/* confdefs.h. */
19583_ACEOF
19584cat confdefs.h >>conftest.$ac_ext
19585cat >>conftest.$ac_ext <<_ACEOF
19586/* end confdefs.h. */
19587
19588/* Override any GCC internal prototype to avoid an error.
19589 Use char because int might match the return type of a GCC
19590 builtin and then its argument prototype would still apply. */
19591#ifdef __cplusplus
19592extern "C"
19593#endif
19594char dlopen ();
19595int
19596main ()
19597{
19598return dlopen ();
19599 ;
19600 return 0;
19601}
19602_ACEOF
19603rm -f conftest.$ac_objext conftest$ac_exeext
19604if { (ac_try="$ac_link"
19605case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19608esac
19609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19610$as_echo "$ac_try_echo") >&5
19611 (eval "$ac_link") 2>conftest.er1
19612 ac_status=$?
19613 grep -v '^ *+' conftest.er1 >conftest.err
19614 rm -f conftest.er1
19615 cat conftest.err >&5
19616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19617 (exit $ac_status); } && {
19618 test -z "$ac_c_werror_flag" ||
19619 test ! -s conftest.err
19620 } && test -s conftest$ac_exeext && {
19621 test "$cross_compiling" = yes ||
19622 $as_test_x conftest$ac_exeext
19623 }; then
19624 ac_cv_lib_svld_dlopen=yes
19625else
19626 $as_echo "$as_me: failed program was:" >&5
19627sed 's/^/| /' conftest.$ac_ext >&5
19628
19629 ac_cv_lib_svld_dlopen=no
19630fi
19631
19632rm -rf conftest.dSYM
19633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19634 conftest$ac_exeext conftest.$ac_ext
19635LIBS=$ac_check_lib_save_LIBS
19636fi
19637{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19638$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19639if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
19640
19641cat >>confdefs.h <<\_ACEOF
19642#define HAVE_LIBDL 1
19643_ACEOF
19644
19645 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19646 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19647fi
19648
19649fi
19650
19651rm -rf conftest.dSYM
19652rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19653 conftest$ac_exeext conftest.$ac_ext
19654fi
19655
19656if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19657then
19658 lt_save_LIBS="$LIBS"
19659 LIBS="$LIBS $LIBADD_DLOPEN"
19660
19661for ac_func in dlerror
19662do
19663as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19664{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19665$as_echo_n "checking for $ac_func... " >&6; }
19666if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19667 $as_echo_n "(cached) " >&6
19668else
19669 cat >conftest.$ac_ext <<_ACEOF
19670/* confdefs.h. */
19671_ACEOF
19672cat confdefs.h >>conftest.$ac_ext
19673cat >>conftest.$ac_ext <<_ACEOF
19674/* end confdefs.h. */
19675/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19677#define $ac_func innocuous_$ac_func
19678
19679/* System header to define __stub macros and hopefully few prototypes,
19680 which can conflict with char $ac_func (); below.
19681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19682 <limits.h> exists even on freestanding compilers. */
19683
19684#ifdef __STDC__
19685# include <limits.h>
19686#else
19687# include <assert.h>
19688#endif
19689
19690#undef $ac_func
19691
19692/* Override any GCC internal prototype to avoid an error.
19693 Use char because int might match the return type of a GCC
19694 builtin and then its argument prototype would still apply. */
19695#ifdef __cplusplus
19696extern "C"
19697#endif
19698char $ac_func ();
19699/* The GNU C library defines this for functions which it implements
19700 to always fail with ENOSYS. Some functions are actually named
19701 something starting with __ and the normal name is an alias. */
19702#if defined __stub_$ac_func || defined __stub___$ac_func
19703choke me
19704#endif
19705
19706int
19707main ()
19708{
19709return $ac_func ();
19710 ;
19711 return 0;
19712}
19713_ACEOF
19714rm -f conftest.$ac_objext conftest$ac_exeext
19715if { (ac_try="$ac_link"
19716case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19719esac
19720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19721$as_echo "$ac_try_echo") >&5
19722 (eval "$ac_link") 2>conftest.er1
19723 ac_status=$?
19724 grep -v '^ *+' conftest.er1 >conftest.err
19725 rm -f conftest.er1
19726 cat conftest.err >&5
19727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); } && {
19729 test -z "$ac_c_werror_flag" ||
19730 test ! -s conftest.err
19731 } && test -s conftest$ac_exeext && {
19732 test "$cross_compiling" = yes ||
19733 $as_test_x conftest$ac_exeext
19734 }; then
19735 eval "$as_ac_var=yes"
19736else
19737 $as_echo "$as_me: failed program was:" >&5
19738sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 eval "$as_ac_var=no"
19741fi
19742
19743rm -rf conftest.dSYM
19744rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19745 conftest$ac_exeext conftest.$ac_ext
19746fi
19747ac_res=`eval 'as_val=${'$as_ac_var'}
19748 $as_echo "$as_val"'`
19749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19750$as_echo "$ac_res" >&6; }
19751as_val=`eval 'as_val=${'$as_ac_var'}
19752 $as_echo "$as_val"'`
19753 if test "x$as_val" = x""yes; then
19754 cat >>confdefs.h <<_ACEOF
19755#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19756_ACEOF
19757
19758fi
19759done
19760
19761 LIBS="$lt_save_LIBS"
19762fi
19763
19764
19765LIBADD_SHL_LOAD=
19766{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
19767$as_echo_n "checking for shl_load... " >&6; }
19768if test "${ac_cv_func_shl_load+set}" = set; then
19769 $as_echo_n "(cached) " >&6
19770else
19771 cat >conftest.$ac_ext <<_ACEOF
19772/* confdefs.h. */
19773_ACEOF
19774cat confdefs.h >>conftest.$ac_ext
19775cat >>conftest.$ac_ext <<_ACEOF
19776/* end confdefs.h. */
19777/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19779#define shl_load innocuous_shl_load
19780
19781/* System header to define __stub macros and hopefully few prototypes,
19782 which can conflict with char shl_load (); below.
19783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19784 <limits.h> exists even on freestanding compilers. */
19785
19786#ifdef __STDC__
19787# include <limits.h>
19788#else
19789# include <assert.h>
19790#endif
19791
19792#undef shl_load
19793
19794/* Override any GCC internal prototype to avoid an error.
19795 Use char because int might match the return type of a GCC
19796 builtin and then its argument prototype would still apply. */
19797#ifdef __cplusplus
19798extern "C"
19799#endif
19800char shl_load ();
19801/* The GNU C library defines this for functions which it implements
19802 to always fail with ENOSYS. Some functions are actually named
19803 something starting with __ and the normal name is an alias. */
19804#if defined __stub_shl_load || defined __stub___shl_load
19805choke me
19806#endif
19807
19808int
19809main ()
19810{
19811return shl_load ();
19812 ;
19813 return 0;
19814}
19815_ACEOF
19816rm -f conftest.$ac_objext conftest$ac_exeext
19817if { (ac_try="$ac_link"
19818case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821esac
19822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19823$as_echo "$ac_try_echo") >&5
19824 (eval "$ac_link") 2>conftest.er1
19825 ac_status=$?
19826 grep -v '^ *+' conftest.er1 >conftest.err
19827 rm -f conftest.er1
19828 cat conftest.err >&5
19829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19830 (exit $ac_status); } && {
19831 test -z "$ac_c_werror_flag" ||
19832 test ! -s conftest.err
19833 } && test -s conftest$ac_exeext && {
19834 test "$cross_compiling" = yes ||
19835 $as_test_x conftest$ac_exeext
19836 }; then
19837 ac_cv_func_shl_load=yes
19838else
19839 $as_echo "$as_me: failed program was:" >&5
19840sed 's/^/| /' conftest.$ac_ext >&5
19841
19842 ac_cv_func_shl_load=no
19843fi
19844
19845rm -rf conftest.dSYM
19846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19847 conftest$ac_exeext conftest.$ac_ext
19848fi
19849{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19850$as_echo "$ac_cv_func_shl_load" >&6; }
19851if test "x$ac_cv_func_shl_load" = x""yes; then
19852
19853cat >>confdefs.h <<\_ACEOF
19854#define HAVE_SHL_LOAD 1
19855_ACEOF
19856
19857 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19858else
19859 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19860$as_echo_n "checking for shl_load in -ldld... " >&6; }
19861if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19862 $as_echo_n "(cached) " >&6
19863else
19864 ac_check_lib_save_LIBS=$LIBS
19865LIBS="-ldld $LIBS"
19866cat >conftest.$ac_ext <<_ACEOF
19867/* confdefs.h. */
19868_ACEOF
19869cat confdefs.h >>conftest.$ac_ext
19870cat >>conftest.$ac_ext <<_ACEOF
19871/* end confdefs.h. */
19872
19873/* Override any GCC internal prototype to avoid an error.
19874 Use char because int might match the return type of a GCC
19875 builtin and then its argument prototype would still apply. */
19876#ifdef __cplusplus
19877extern "C"
19878#endif
19879char shl_load ();
19880int
19881main ()
19882{
19883return shl_load ();
19884 ;
19885 return 0;
19886}
19887_ACEOF
19888rm -f conftest.$ac_objext conftest$ac_exeext
19889if { (ac_try="$ac_link"
19890case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19893esac
19894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19895$as_echo "$ac_try_echo") >&5
19896 (eval "$ac_link") 2>conftest.er1
19897 ac_status=$?
19898 grep -v '^ *+' conftest.er1 >conftest.err
19899 rm -f conftest.er1
19900 cat conftest.err >&5
19901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902 (exit $ac_status); } && {
19903 test -z "$ac_c_werror_flag" ||
19904 test ! -s conftest.err
19905 } && test -s conftest$ac_exeext && {
19906 test "$cross_compiling" = yes ||
19907 $as_test_x conftest$ac_exeext
19908 }; then
19909 ac_cv_lib_dld_shl_load=yes
19910else
19911 $as_echo "$as_me: failed program was:" >&5
19912sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 ac_cv_lib_dld_shl_load=no
19915fi
19916
19917rm -rf conftest.dSYM
19918rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19919 conftest$ac_exeext conftest.$ac_ext
19920LIBS=$ac_check_lib_save_LIBS
19921fi
19922{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19923$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19924if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
19925
19926cat >>confdefs.h <<\_ACEOF
19927#define HAVE_SHL_LOAD 1
19928_ACEOF
19929
19930 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19931 LIBADD_SHL_LOAD="-ldld"
19932fi
19933
19934fi
19935
19936
19937
19938case $host_os in
19939darwin[1567].*)
19940# We only want this for pre-Mac OS X 10.4.
19941 { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
19942$as_echo_n "checking for _dyld_func_lookup... " >&6; }
19943if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
19944 $as_echo_n "(cached) " >&6
19945else
19946 cat >conftest.$ac_ext <<_ACEOF
19947/* confdefs.h. */
19948_ACEOF
19949cat confdefs.h >>conftest.$ac_ext
19950cat >>conftest.$ac_ext <<_ACEOF
19951/* end confdefs.h. */
19952/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
19953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19954#define _dyld_func_lookup innocuous__dyld_func_lookup
19955
19956/* System header to define __stub macros and hopefully few prototypes,
19957 which can conflict with char _dyld_func_lookup (); below.
19958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19959 <limits.h> exists even on freestanding compilers. */
19960
19961#ifdef __STDC__
19962# include <limits.h>
19963#else
19964# include <assert.h>
19965#endif
19966
19967#undef _dyld_func_lookup
19968
19969/* Override any GCC internal prototype to avoid an error.
19970 Use char because int might match the return type of a GCC
19971 builtin and then its argument prototype would still apply. */
19972#ifdef __cplusplus
19973extern "C"
19974#endif
19975char _dyld_func_lookup ();
19976/* The GNU C library defines this for functions which it implements
19977 to always fail with ENOSYS. Some functions are actually named
19978 something starting with __ and the normal name is an alias. */
19979#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
19980choke me
19981#endif
19982
19983int
19984main ()
19985{
19986return _dyld_func_lookup ();
19987 ;
19988 return 0;
19989}
19990_ACEOF
19991rm -f conftest.$ac_objext conftest$ac_exeext
19992if { (ac_try="$ac_link"
19993case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19996esac
19997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19998$as_echo "$ac_try_echo") >&5
19999 (eval "$ac_link") 2>conftest.er1
20000 ac_status=$?
20001 grep -v '^ *+' conftest.er1 >conftest.err
20002 rm -f conftest.er1
20003 cat conftest.err >&5
20004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20005 (exit $ac_status); } && {
20006 test -z "$ac_c_werror_flag" ||
20007 test ! -s conftest.err
20008 } && test -s conftest$ac_exeext && {
20009 test "$cross_compiling" = yes ||
20010 $as_test_x conftest$ac_exeext
20011 }; then
20012 ac_cv_func__dyld_func_lookup=yes
20013else
20014 $as_echo "$as_me: failed program was:" >&5
20015sed 's/^/| /' conftest.$ac_ext >&5
20016
20017 ac_cv_func__dyld_func_lookup=no
20018fi
20019
20020rm -rf conftest.dSYM
20021rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20022 conftest$ac_exeext conftest.$ac_ext
20023fi
20024{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20025$as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
20026if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
20027
20028cat >>confdefs.h <<\_ACEOF
20029#define HAVE_DYLD 1
20030_ACEOF
20031
20032 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20033fi
20034
20035 ;;
20036beos*)
20037 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20038 ;;
20039cygwin* | mingw* | os2* | pw32*)
20040 { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
20041$as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
20042if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
20043 $as_echo_n "(cached) " >&6
20044else
20045 cat >conftest.$ac_ext <<_ACEOF
20046/* confdefs.h. */
20047_ACEOF
20048cat confdefs.h >>conftest.$ac_ext
20049cat >>conftest.$ac_ext <<_ACEOF
20050/* end confdefs.h. */
20051#include <sys/cygwin.h>
20052
20053int
20054main ()
20055{
20056#ifndef cygwin_conv_path
20057 (void) cygwin_conv_path;
20058#endif
20059
20060 ;
20061 return 0;
20062}
20063_ACEOF
20064rm -f conftest.$ac_objext
20065if { (ac_try="$ac_compile"
20066case "(($ac_try" in
20067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20068 *) ac_try_echo=$ac_try;;
20069esac
20070eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20071$as_echo "$ac_try_echo") >&5
20072 (eval "$ac_compile") 2>conftest.er1
20073 ac_status=$?
20074 grep -v '^ *+' conftest.er1 >conftest.err
20075 rm -f conftest.er1
20076 cat conftest.err >&5
20077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); } && {
20079 test -z "$ac_c_werror_flag" ||
20080 test ! -s conftest.err
20081 } && test -s conftest.$ac_objext; then
20082 ac_cv_have_decl_cygwin_conv_path=yes
20083else
20084 $as_echo "$as_me: failed program was:" >&5
20085sed 's/^/| /' conftest.$ac_ext >&5
20086
20087 ac_cv_have_decl_cygwin_conv_path=no
20088fi
20089
20090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20091fi
20092{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
20093$as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
20094if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
20095
20096cat >>confdefs.h <<_ACEOF
20097#define HAVE_DECL_CYGWIN_CONV_PATH 1
20098_ACEOF
20099
20100
20101else
20102 cat >>confdefs.h <<_ACEOF
20103#define HAVE_DECL_CYGWIN_CONV_PATH 0
20104_ACEOF
20105
20106
20107fi
20108
20109
20110 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20111 ;;
20112esac
20113
20114{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20115$as_echo_n "checking for dld_link in -ldld... " >&6; }
20116if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20117 $as_echo_n "(cached) " >&6
20118else
20119 ac_check_lib_save_LIBS=$LIBS
20120LIBS="-ldld $LIBS"
20121cat >conftest.$ac_ext <<_ACEOF
20122/* confdefs.h. */
20123_ACEOF
20124cat confdefs.h >>conftest.$ac_ext
20125cat >>conftest.$ac_ext <<_ACEOF
20126/* end confdefs.h. */
20127
20128/* Override any GCC internal prototype to avoid an error.
20129 Use char because int might match the return type of a GCC
20130 builtin and then its argument prototype would still apply. */
20131#ifdef __cplusplus
20132extern "C"
20133#endif
20134char dld_link ();
20135int
20136main ()
20137{
20138return dld_link ();
20139 ;
20140 return 0;
20141}
20142_ACEOF
20143rm -f conftest.$ac_objext conftest$ac_exeext
20144if { (ac_try="$ac_link"
20145case "(($ac_try" in
20146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20147 *) ac_try_echo=$ac_try;;
20148esac
20149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20150$as_echo "$ac_try_echo") >&5
20151 (eval "$ac_link") 2>conftest.er1
20152 ac_status=$?
20153 grep -v '^ *+' conftest.er1 >conftest.err
20154 rm -f conftest.er1
20155 cat conftest.err >&5
20156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } && {
20158 test -z "$ac_c_werror_flag" ||
20159 test ! -s conftest.err
20160 } && test -s conftest$ac_exeext && {
20161 test "$cross_compiling" = yes ||
20162 $as_test_x conftest$ac_exeext
20163 }; then
20164 ac_cv_lib_dld_dld_link=yes
20165else
20166 $as_echo "$as_me: failed program was:" >&5
20167sed 's/^/| /' conftest.$ac_ext >&5
20168
20169 ac_cv_lib_dld_dld_link=no
20170fi
20171
20172rm -rf conftest.dSYM
20173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20174 conftest$ac_exeext conftest.$ac_ext
20175LIBS=$ac_check_lib_save_LIBS
20176fi
20177{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20178$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20179if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
20180
20181cat >>confdefs.h <<\_ACEOF
20182#define HAVE_DLD 1
20183_ACEOF
20184
20185 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20186fi
20187
20188
20189
20190
20191LT_DLPREOPEN=
20192if test -n "$LT_DLLOADERS"
20193then
20194 for lt_loader in $LT_DLLOADERS; do
20195 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20196 done
20197
20198cat >>confdefs.h <<\_ACEOF
20199#define HAVE_LIBDLLOADER 1
20200_ACEOF
20201
20202fi
20203
20204
20205LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20206
20207
20208ac_ext=c
20209ac_cpp='$CPP $CPPFLAGS'
20210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20212ac_compiler_gnu=$ac_cv_c_compiler_gnu
20213
20214
20215{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20216$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20217if test "${lt_cv_sys_symbol_underscore+set}" = set; then
20218 $as_echo_n "(cached) " >&6
20219else
20220 lt_cv_sys_symbol_underscore=no
20221 cat > conftest.$ac_ext <<_LT_EOF
20222void nm_test_func(){}
20223int main(){nm_test_func;return 0;}
20224_LT_EOF
20225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20226 (eval $ac_compile) 2>&5
20227 ac_status=$?
20228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; then
20230 # Now try to grab the symbols.
20231 ac_nlist=conftest.nm
20232 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20233 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20234 ac_status=$?
20235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } && test -s "$ac_nlist"; then
20237 # See whether the symbols have a leading underscore.
20238 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20239 lt_cv_sys_symbol_underscore=yes
20240 else
20241 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20242 :
20243 else
20244 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20245 fi
20246 fi
20247 else
20248 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20249 fi
20250 else
20251 echo "configure: failed program was:" >&5
20252 cat conftest.c >&5
20253 fi
20254 rm -rf conftest*
20255
20256fi
20257{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
20258$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20259 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20260
20261
20262if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20263 if test x"$libltdl_cv_func_dlopen" = xyes ||
20264 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20265 { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20266$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20267if test "${libltdl_cv_need_uscore+set}" = set; then
20268 $as_echo_n "(cached) " >&6
20269else
20270 libltdl_cv_need_uscore=unknown
20271 save_LIBS="$LIBS"
20272 LIBS="$LIBS $LIBADD_DLOPEN"
20273 if test "$cross_compiling" = yes; then :
20274 libltdl_cv_need_uscore=cross
20275else
20276 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20277 lt_status=$lt_dlunknown
20278 cat > conftest.$ac_ext <<_LT_EOF
cristyc7083c12009-10-14 03:16:55 +000020279#line 20279 "configure"
cristy3ed852e2009-09-05 21:47:34 +000020280#include "confdefs.h"
20281
20282#if HAVE_DLFCN_H
20283#include <dlfcn.h>
20284#endif
20285
20286#include <stdio.h>
20287
20288#ifdef RTLD_GLOBAL
20289# define LT_DLGLOBAL RTLD_GLOBAL
20290#else
20291# ifdef DL_GLOBAL
20292# define LT_DLGLOBAL DL_GLOBAL
20293# else
20294# define LT_DLGLOBAL 0
20295# endif
20296#endif
20297
20298/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20299 find out it does not work in some platform. */
20300#ifndef LT_DLLAZY_OR_NOW
20301# ifdef RTLD_LAZY
20302# define LT_DLLAZY_OR_NOW RTLD_LAZY
20303# else
20304# ifdef DL_LAZY
20305# define LT_DLLAZY_OR_NOW DL_LAZY
20306# else
20307# ifdef RTLD_NOW
20308# define LT_DLLAZY_OR_NOW RTLD_NOW
20309# else
20310# ifdef DL_NOW
20311# define LT_DLLAZY_OR_NOW DL_NOW
20312# else
20313# define LT_DLLAZY_OR_NOW 0
20314# endif
20315# endif
20316# endif
20317# endif
20318#endif
20319
20320void fnord() { int i=42;}
20321int main ()
20322{
20323 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20324 int status = $lt_dlunknown;
20325
20326 if (self)
20327 {
20328 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20329 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20330 /* dlclose (self); */
20331 }
20332 else
20333 puts (dlerror ());
20334
20335 return status;
20336}
20337_LT_EOF
20338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20339 (eval $ac_link) 2>&5
20340 ac_status=$?
20341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20343 (./conftest; exit; ) >&5 2>/dev/null
20344 lt_status=$?
20345 case x$lt_status in
20346 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20347 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20348 x$lt_dlunknown|x*) ;;
20349 esac
20350 else :
20351 # compilation failed
20352
20353 fi
20354fi
20355rm -fr conftest*
20356
20357 LIBS="$save_LIBS"
20358
20359fi
20360{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20361$as_echo "$libltdl_cv_need_uscore" >&6; }
20362 fi
20363fi
20364
20365if test x"$libltdl_cv_need_uscore" = xyes; then
20366
20367cat >>confdefs.h <<\_ACEOF
20368#define NEED_USCORE 1
20369_ACEOF
20370
20371fi
20372
20373{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20374$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20375if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
20376 $as_echo_n "(cached) " >&6
20377else
20378 # PORTME does your system automatically load deplibs for dlopen?
20379 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20380 # For now, we just catch OSes we know something about -- in the
20381 # future, we'll try test this programmatically.
20382 lt_cv_sys_dlopen_deplibs=unknown
20383 case $host_os in
20384 aix3*|aix4.1.*|aix4.2.*)
20385 # Unknown whether this is true for these versions of AIX, but
20386 # we want this `case' here to explicitly catch those versions.
20387 lt_cv_sys_dlopen_deplibs=unknown
20388 ;;
20389 aix[4-9]*)
20390 lt_cv_sys_dlopen_deplibs=yes
20391 ;;
20392 amigaos*)
20393 case $host_cpu in
20394 powerpc)
20395 lt_cv_sys_dlopen_deplibs=no
20396 ;;
20397 esac
20398 ;;
20399 darwin*)
20400 # Assuming the user has installed a libdl from somewhere, this is true
20401 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20402 lt_cv_sys_dlopen_deplibs=yes
20403 ;;
20404 freebsd* | dragonfly*)
20405 lt_cv_sys_dlopen_deplibs=yes
20406 ;;
20407 gnu* | linux* | k*bsd*-gnu)
20408 # GNU and its variants, using gnu ld.so (Glibc)
20409 lt_cv_sys_dlopen_deplibs=yes
20410 ;;
20411 hpux10*|hpux11*)
20412 lt_cv_sys_dlopen_deplibs=yes
20413 ;;
20414 interix*)
20415 lt_cv_sys_dlopen_deplibs=yes
20416 ;;
20417 irix[12345]*|irix6.[01]*)
20418 # Catch all versions of IRIX before 6.2, and indicate that we don't
20419 # know how it worked for any of those versions.
20420 lt_cv_sys_dlopen_deplibs=unknown
20421 ;;
20422 irix*)
20423 # The case above catches anything before 6.2, and it's known that
20424 # at 6.2 and later dlopen does load deplibs.
20425 lt_cv_sys_dlopen_deplibs=yes
20426 ;;
20427 netbsd*)
20428 lt_cv_sys_dlopen_deplibs=yes
20429 ;;
20430 openbsd*)
20431 lt_cv_sys_dlopen_deplibs=yes
20432 ;;
20433 osf[1234]*)
20434 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20435 # it did *not* use an RPATH in a shared library to find objects the
20436 # library depends on, so we explicitly say `no'.
20437 lt_cv_sys_dlopen_deplibs=no
20438 ;;
20439 osf5.0|osf5.0a|osf5.1)
20440 # dlopen *does* load deplibs and with the right loader patch applied
20441 # it even uses RPATH in a shared library to search for shared objects
20442 # that the library depends on, but there's no easy way to know if that
20443 # patch is installed. Since this is the case, all we can really
20444 # say is unknown -- it depends on the patch being installed. If
20445 # it is, this changes to `yes'. Without it, it would be `no'.
20446 lt_cv_sys_dlopen_deplibs=unknown
20447 ;;
20448 osf*)
20449 # the two cases above should catch all versions of osf <= 5.1. Read
20450 # the comments above for what we know about them.
20451 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20452 # is used to find them so we can finally say `yes'.
20453 lt_cv_sys_dlopen_deplibs=yes
20454 ;;
20455 qnx*)
20456 lt_cv_sys_dlopen_deplibs=yes
20457 ;;
20458 solaris*)
20459 lt_cv_sys_dlopen_deplibs=yes
20460 ;;
20461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20462 libltdl_cv_sys_dlopen_deplibs=yes
20463 ;;
20464 esac
20465
20466fi
20467{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
20468$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20469if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20470
20471cat >>confdefs.h <<\_ACEOF
20472#define LTDL_DLOPEN_DEPLIBS 1
20473_ACEOF
20474
20475fi
20476
20477:
20478
20479
20480for ac_header in argz.h
20481do
20482as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20483{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20484$as_echo_n "checking for $ac_header... " >&6; }
20485if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20486 $as_echo_n "(cached) " >&6
20487else
20488 cat >conftest.$ac_ext <<_ACEOF
20489/* confdefs.h. */
20490_ACEOF
20491cat confdefs.h >>conftest.$ac_ext
20492cat >>conftest.$ac_ext <<_ACEOF
20493/* end confdefs.h. */
20494$ac_includes_default
20495
20496#include <$ac_header>
20497_ACEOF
20498rm -f conftest.$ac_objext
20499if { (ac_try="$ac_compile"
20500case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20503esac
20504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20505$as_echo "$ac_try_echo") >&5
20506 (eval "$ac_compile") 2>conftest.er1
20507 ac_status=$?
20508 grep -v '^ *+' conftest.er1 >conftest.err
20509 rm -f conftest.er1
20510 cat conftest.err >&5
20511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest.$ac_objext; then
20516 eval "$as_ac_Header=yes"
20517else
20518 $as_echo "$as_me: failed program was:" >&5
20519sed 's/^/| /' conftest.$ac_ext >&5
20520
20521 eval "$as_ac_Header=no"
20522fi
20523
20524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525fi
20526ac_res=`eval 'as_val=${'$as_ac_Header'}
20527 $as_echo "$as_val"'`
20528 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20529$as_echo "$ac_res" >&6; }
20530as_val=`eval 'as_val=${'$as_ac_Header'}
20531 $as_echo "$as_val"'`
20532 if test "x$as_val" = x""yes; then
20533 cat >>confdefs.h <<_ACEOF
20534#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20535_ACEOF
20536
20537fi
20538
20539done
20540
20541
20542{ $as_echo "$as_me:$LINENO: checking for error_t" >&5
20543$as_echo_n "checking for error_t... " >&6; }
20544if test "${ac_cv_type_error_t+set}" = set; then
20545 $as_echo_n "(cached) " >&6
20546else
20547 ac_cv_type_error_t=no
20548cat >conftest.$ac_ext <<_ACEOF
20549/* confdefs.h. */
20550_ACEOF
20551cat confdefs.h >>conftest.$ac_ext
20552cat >>conftest.$ac_ext <<_ACEOF
20553/* end confdefs.h. */
20554#if defined(HAVE_ARGZ_H)
20555# include <argz.h>
20556#endif
20557
20558int
20559main ()
20560{
20561if (sizeof (error_t))
20562 return 0;
20563 ;
20564 return 0;
20565}
20566_ACEOF
20567rm -f conftest.$ac_objext
20568if { (ac_try="$ac_compile"
20569case "(($ac_try" in
20570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20571 *) ac_try_echo=$ac_try;;
20572esac
20573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20574$as_echo "$ac_try_echo") >&5
20575 (eval "$ac_compile") 2>conftest.er1
20576 ac_status=$?
20577 grep -v '^ *+' conftest.er1 >conftest.err
20578 rm -f conftest.er1
20579 cat conftest.err >&5
20580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } && {
20582 test -z "$ac_c_werror_flag" ||
20583 test ! -s conftest.err
20584 } && test -s conftest.$ac_objext; then
20585 cat >conftest.$ac_ext <<_ACEOF
20586/* confdefs.h. */
20587_ACEOF
20588cat confdefs.h >>conftest.$ac_ext
20589cat >>conftest.$ac_ext <<_ACEOF
20590/* end confdefs.h. */
20591#if defined(HAVE_ARGZ_H)
20592# include <argz.h>
20593#endif
20594
20595int
20596main ()
20597{
20598if (sizeof ((error_t)))
20599 return 0;
20600 ;
20601 return 0;
20602}
20603_ACEOF
20604rm -f conftest.$ac_objext
20605if { (ac_try="$ac_compile"
20606case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20609esac
20610eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20611$as_echo "$ac_try_echo") >&5
20612 (eval "$ac_compile") 2>conftest.er1
20613 ac_status=$?
20614 grep -v '^ *+' conftest.er1 >conftest.err
20615 rm -f conftest.er1
20616 cat conftest.err >&5
20617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20618 (exit $ac_status); } && {
20619 test -z "$ac_c_werror_flag" ||
20620 test ! -s conftest.err
20621 } && test -s conftest.$ac_objext; then
20622 :
20623else
20624 $as_echo "$as_me: failed program was:" >&5
20625sed 's/^/| /' conftest.$ac_ext >&5
20626
20627 ac_cv_type_error_t=yes
20628fi
20629
20630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20631else
20632 $as_echo "$as_me: failed program was:" >&5
20633sed 's/^/| /' conftest.$ac_ext >&5
20634
20635
20636fi
20637
20638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20639fi
20640{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20641$as_echo "$ac_cv_type_error_t" >&6; }
20642if test "x$ac_cv_type_error_t" = x""yes; then
20643
20644cat >>confdefs.h <<_ACEOF
20645#define HAVE_ERROR_T 1
20646_ACEOF
20647
20648
20649else
20650
20651cat >>confdefs.h <<\_ACEOF
20652#define error_t int
20653_ACEOF
20654
20655
20656cat >>confdefs.h <<\_ACEOF
20657#define __error_t_defined 1
20658_ACEOF
20659
20660fi
20661
20662
20663ARGZ_H=
20664
20665
20666
20667
20668
20669
20670
20671for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20672 argz_next argz_stringify
20673do
20674as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20675{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20676$as_echo_n "checking for $ac_func... " >&6; }
20677if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20678 $as_echo_n "(cached) " >&6
20679else
20680 cat >conftest.$ac_ext <<_ACEOF
20681/* confdefs.h. */
20682_ACEOF
20683cat confdefs.h >>conftest.$ac_ext
20684cat >>conftest.$ac_ext <<_ACEOF
20685/* end confdefs.h. */
20686/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20687 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20688#define $ac_func innocuous_$ac_func
20689
20690/* System header to define __stub macros and hopefully few prototypes,
20691 which can conflict with char $ac_func (); below.
20692 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20693 <limits.h> exists even on freestanding compilers. */
20694
20695#ifdef __STDC__
20696# include <limits.h>
20697#else
20698# include <assert.h>
20699#endif
20700
20701#undef $ac_func
20702
20703/* Override any GCC internal prototype to avoid an error.
20704 Use char because int might match the return type of a GCC
20705 builtin and then its argument prototype would still apply. */
20706#ifdef __cplusplus
20707extern "C"
20708#endif
20709char $ac_func ();
20710/* The GNU C library defines this for functions which it implements
20711 to always fail with ENOSYS. Some functions are actually named
20712 something starting with __ and the normal name is an alias. */
20713#if defined __stub_$ac_func || defined __stub___$ac_func
20714choke me
20715#endif
20716
20717int
20718main ()
20719{
20720return $ac_func ();
20721 ;
20722 return 0;
20723}
20724_ACEOF
20725rm -f conftest.$ac_objext conftest$ac_exeext
20726if { (ac_try="$ac_link"
20727case "(($ac_try" in
20728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20729 *) ac_try_echo=$ac_try;;
20730esac
20731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20732$as_echo "$ac_try_echo") >&5
20733 (eval "$ac_link") 2>conftest.er1
20734 ac_status=$?
20735 grep -v '^ *+' conftest.er1 >conftest.err
20736 rm -f conftest.er1
20737 cat conftest.err >&5
20738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); } && {
20740 test -z "$ac_c_werror_flag" ||
20741 test ! -s conftest.err
20742 } && test -s conftest$ac_exeext && {
20743 test "$cross_compiling" = yes ||
20744 $as_test_x conftest$ac_exeext
20745 }; then
20746 eval "$as_ac_var=yes"
20747else
20748 $as_echo "$as_me: failed program was:" >&5
20749sed 's/^/| /' conftest.$ac_ext >&5
20750
20751 eval "$as_ac_var=no"
20752fi
20753
20754rm -rf conftest.dSYM
20755rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20756 conftest$ac_exeext conftest.$ac_ext
20757fi
20758ac_res=`eval 'as_val=${'$as_ac_var'}
20759 $as_echo "$as_val"'`
20760 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20761$as_echo "$ac_res" >&6; }
20762as_val=`eval 'as_val=${'$as_ac_var'}
20763 $as_echo "$as_val"'`
20764 if test "x$as_val" = x""yes; then
20765 cat >>confdefs.h <<_ACEOF
20766#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20767_ACEOF
20768
20769else
20770 ARGZ_H=argz.h;
20771
20772 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20773
20774fi
20775done
20776
20777
20778if test -z "$ARGZ_H"; then
20779 { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
20780$as_echo_n "checking if argz actually works... " >&6; }
20781if test "${lt_cv_sys_argz_works+set}" = set; then
20782 $as_echo_n "(cached) " >&6
20783else
20784 case $host_os in #(
20785 *cygwin*)
20786 lt_cv_sys_argz_works=no
20787 if test "$cross_compiling" != no; then
20788 lt_cv_sys_argz_works="guessing no"
20789 else
20790 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20791 save_IFS=$IFS
20792 IFS=-.
20793 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20794 IFS=$save_IFS
20795 lt_os_major=${2-0}
20796 lt_os_minor=${3-0}
20797 lt_os_micro=${4-0}
20798 if test "$lt_os_major" -gt 1 \
20799 || { test "$lt_os_major" -eq 1 \
20800 && { test "$lt_os_minor" -gt 5 \
20801 || { test "$lt_os_minor" -eq 5 \
20802 && test "$lt_os_micro" -gt 24; }; }; }; then
20803 lt_cv_sys_argz_works=yes
20804 fi
20805 fi
20806 ;; #(
20807 *) lt_cv_sys_argz_works=yes ;;
20808 esac
20809fi
20810{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
20811$as_echo "$lt_cv_sys_argz_works" >&6; }
20812 if test $lt_cv_sys_argz_works = yes; then
20813
20814cat >>confdefs.h <<\_ACEOF
20815#define HAVE_WORKING_ARGZ 1
20816_ACEOF
20817
20818else
20819 ARGZ_H=argz.h
20820
20821
20822 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20823
20824fi
20825
20826fi
20827
20828
20829
20830
20831{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20832$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20833if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20834 $as_echo_n "(cached) " >&6
20835else
20836 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20837 libltdl_cv_preloaded_symbols=yes
20838 else
20839 libltdl_cv_preloaded_symbols=no
20840 fi
20841
20842fi
20843{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20844$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20845if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20846
20847cat >>confdefs.h <<\_ACEOF
20848#define HAVE_PRELOADED_SYMBOLS 1
20849_ACEOF
20850
20851fi
20852
20853# Set options
20854
20855
20856
20857
20858
20859
20860
20861
20862
20863
20864
20865# Check whether --with-included_ltdl was given.
20866if test "${with_included_ltdl+set}" = set; then
20867 withval=$with_included_ltdl;
20868fi
20869
20870
20871if test "x$with_included_ltdl" != xyes; then
20872 # We are not being forced to use the included libltdl sources, so
20873 # decide whether there is a useful installed version we can use.
20874 { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
20875$as_echo_n "checking for ltdl.h... " >&6; }
20876if test "${ac_cv_header_ltdl_h+set}" = set; then
20877 $as_echo_n "(cached) " >&6
20878else
20879 cat >conftest.$ac_ext <<_ACEOF
20880/* confdefs.h. */
20881_ACEOF
20882cat confdefs.h >>conftest.$ac_ext
20883cat >>conftest.$ac_ext <<_ACEOF
20884/* end confdefs.h. */
20885$ac_includes_default
20886
20887
20888#include <ltdl.h>
20889_ACEOF
20890rm -f conftest.$ac_objext
20891if { (ac_try="$ac_compile"
20892case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20895esac
20896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20897$as_echo "$ac_try_echo") >&5
20898 (eval "$ac_compile") 2>conftest.er1
20899 ac_status=$?
20900 grep -v '^ *+' conftest.er1 >conftest.err
20901 rm -f conftest.er1
20902 cat conftest.err >&5
20903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20904 (exit $ac_status); } && {
20905 test -z "$ac_c_werror_flag" ||
20906 test ! -s conftest.err
20907 } && test -s conftest.$ac_objext; then
20908 ac_cv_header_ltdl_h=yes
20909else
20910 $as_echo "$as_me: failed program was:" >&5
20911sed 's/^/| /' conftest.$ac_ext >&5
20912
20913 ac_cv_header_ltdl_h=no
20914fi
20915
20916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20917fi
20918{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20919$as_echo "$ac_cv_header_ltdl_h" >&6; }
20920if test "x$ac_cv_header_ltdl_h" = x""yes; then
20921 { $as_echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
20922$as_echo_n "checking whether lt_dlinterface_register is declared... " >&6; }
20923if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
20924 $as_echo_n "(cached) " >&6
20925else
20926 cat >conftest.$ac_ext <<_ACEOF
20927/* confdefs.h. */
20928_ACEOF
20929cat confdefs.h >>conftest.$ac_ext
20930cat >>conftest.$ac_ext <<_ACEOF
20931/* end confdefs.h. */
20932$ac_includes_default
20933 #include <ltdl.h>
20934
20935int
20936main ()
20937{
20938#ifndef lt_dlinterface_register
20939 (void) lt_dlinterface_register;
20940#endif
20941
20942 ;
20943 return 0;
20944}
20945_ACEOF
20946rm -f conftest.$ac_objext
20947if { (ac_try="$ac_compile"
20948case "(($ac_try" in
20949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950 *) ac_try_echo=$ac_try;;
20951esac
20952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20953$as_echo "$ac_try_echo") >&5
20954 (eval "$ac_compile") 2>conftest.er1
20955 ac_status=$?
20956 grep -v '^ *+' conftest.er1 >conftest.err
20957 rm -f conftest.er1
20958 cat conftest.err >&5
20959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20960 (exit $ac_status); } && {
20961 test -z "$ac_c_werror_flag" ||
20962 test ! -s conftest.err
20963 } && test -s conftest.$ac_objext; then
20964 ac_cv_have_decl_lt_dlinterface_register=yes
20965else
20966 $as_echo "$as_me: failed program was:" >&5
20967sed 's/^/| /' conftest.$ac_ext >&5
20968
20969 ac_cv_have_decl_lt_dlinterface_register=no
20970fi
20971
20972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20973fi
20974{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
20975$as_echo "$ac_cv_have_decl_lt_dlinterface_register" >&6; }
20976if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then
20977 { $as_echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
20978$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20979if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
20980 $as_echo_n "(cached) " >&6
20981else
20982 ac_check_lib_save_LIBS=$LIBS
20983LIBS="-lltdl $LIBS"
20984cat >conftest.$ac_ext <<_ACEOF
20985/* confdefs.h. */
20986_ACEOF
20987cat confdefs.h >>conftest.$ac_ext
20988cat >>conftest.$ac_ext <<_ACEOF
20989/* end confdefs.h. */
20990
20991/* Override any GCC internal prototype to avoid an error.
20992 Use char because int might match the return type of a GCC
20993 builtin and then its argument prototype would still apply. */
20994#ifdef __cplusplus
20995extern "C"
20996#endif
20997char lt_dladvise_preload ();
20998int
20999main ()
21000{
21001return lt_dladvise_preload ();
21002 ;
21003 return 0;
21004}
21005_ACEOF
21006rm -f conftest.$ac_objext conftest$ac_exeext
21007if { (ac_try="$ac_link"
21008case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21011esac
21012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21013$as_echo "$ac_try_echo") >&5
21014 (eval "$ac_link") 2>conftest.er1
21015 ac_status=$?
21016 grep -v '^ *+' conftest.er1 >conftest.err
21017 rm -f conftest.er1
21018 cat conftest.err >&5
21019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); } && {
21021 test -z "$ac_c_werror_flag" ||
21022 test ! -s conftest.err
21023 } && test -s conftest$ac_exeext && {
21024 test "$cross_compiling" = yes ||
21025 $as_test_x conftest$ac_exeext
21026 }; then
21027 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21028else
21029 $as_echo "$as_me: failed program was:" >&5
21030sed 's/^/| /' conftest.$ac_ext >&5
21031
21032 ac_cv_lib_ltdl_lt_dladvise_preload=no
21033fi
21034
21035rm -rf conftest.dSYM
21036rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21037 conftest$ac_exeext conftest.$ac_ext
21038LIBS=$ac_check_lib_save_LIBS
21039fi
21040{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21041$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
21042if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then
21043 with_included_ltdl=no
21044else
21045 with_included_ltdl=yes
21046fi
21047
21048else
21049 with_included_ltdl=yes
21050fi
21051
21052else
21053 with_included_ltdl=yes
21054fi
21055
21056
21057fi
21058
21059
21060
21061
21062# Check whether --with-ltdl_include was given.
21063if test "${with_ltdl_include+set}" = set; then
21064 withval=$with_ltdl_include;
21065fi
21066
21067
21068if test -n "$with_ltdl_include"; then
21069 if test -f "$with_ltdl_include/ltdl.h"; then :
21070 else
21071 { { $as_echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
21072$as_echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
21073 { (exit 1); exit 1; }; }
21074 fi
21075else
21076 with_ltdl_include=no
21077fi
21078
21079
21080# Check whether --with-ltdl_lib was given.
21081if test "${with_ltdl_lib+set}" = set; then
21082 withval=$with_ltdl_lib;
21083fi
21084
21085
21086if test -n "$with_ltdl_lib"; then
21087 if test -f "$with_ltdl_lib/libltdl.la"; then :
21088 else
21089 { { $as_echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
21090$as_echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
21091 { (exit 1); exit 1; }; }
21092 fi
21093else
21094 with_ltdl_lib=no
21095fi
21096
21097case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21098 ,yes,no,no,)
21099 case $enable_ltdl_convenience in
21100 no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
21101$as_echo "$as_me: error: this package needs a convenience libltdl" >&2;}
21102 { (exit 1); exit 1; }; } ;;
21103 "") enable_ltdl_convenience=yes
21104 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21105esac
21106LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21107LTDLDEPS=$LIBLTDL
21108LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21109
21110
21111
21112
21113
21114# For backwards non-gettext consistent compatibility...
21115INCLTDL="$LTDLINCL"
21116
21117
21118 ;;
21119 ,no,no,no,)
21120 # If the included ltdl is not to be used, then use the
21121 # preinstalled libltdl we found.
21122
21123cat >>confdefs.h <<\_ACEOF
21124#define HAVE_LTDL 1
21125_ACEOF
21126
21127 LIBLTDL=-lltdl
21128 LTDLDEPS=
21129 LTDLINCL=
21130 ;;
21131 ,no*,no,*)
21132 { { $as_echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
21133$as_echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
21134 { (exit 1); exit 1; }; }
21135 ;;
21136 *) with_included_ltdl=no
21137 LIBLTDL="-L$with_ltdl_lib -lltdl"
21138 LTDLDEPS=
21139 LTDLINCL="-I$with_ltdl_include"
21140 ;;
21141esac
21142INCLTDL="$LTDLINCL"
21143
21144# Report our decision...
21145{ $as_echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
21146$as_echo_n "checking where to find libltdl headers... " >&6; }
21147{ $as_echo "$as_me:$LINENO: result: $LTDLINCL" >&5
21148$as_echo "$LTDLINCL" >&6; }
21149{ $as_echo "$as_me:$LINENO: checking where to find libltdl library" >&5
21150$as_echo_n "checking where to find libltdl library... " >&6; }
21151{ $as_echo "$as_me:$LINENO: result: $LIBLTDL" >&5
21152$as_echo "$LIBLTDL" >&6; }
21153
21154
21155
21156# Check whether --enable-ltdl-install was given.
21157if test "${enable_ltdl_install+set}" = set; then
21158 enableval=$enable_ltdl_install;
21159fi
21160
21161
21162case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21163 *yes*) ;;
21164 *) enable_ltdl_convenience=yes ;;
21165esac
21166
21167 if test x"${enable_ltdl_install-no}" != xno; then
21168 INSTALL_LTDL_TRUE=
21169 INSTALL_LTDL_FALSE='#'
21170else
21171 INSTALL_LTDL_TRUE='#'
21172 INSTALL_LTDL_FALSE=
21173fi
21174
21175 if test x"${enable_ltdl_convenience-no}" != xno; then
21176 CONVENIENCE_LTDL_TRUE=
21177 CONVENIENCE_LTDL_FALSE='#'
21178else
21179 CONVENIENCE_LTDL_TRUE='#'
21180 CONVENIENCE_LTDL_FALSE=
21181fi
21182
21183
21184
21185
21186
21187
21188
21189# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21190# the user used. This is so that ltdl.h can pick up the parent projects
21191# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21192# definitions required by ltdl.c.
21193# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21194
21195
21196
21197
21198
21199
21200
21201
21202
21203for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21204do
21205as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21206{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21207$as_echo_n "checking for $ac_header... " >&6; }
21208if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21209 $as_echo_n "(cached) " >&6
21210else
21211 cat >conftest.$ac_ext <<_ACEOF
21212/* confdefs.h. */
21213_ACEOF
21214cat confdefs.h >>conftest.$ac_ext
21215cat >>conftest.$ac_ext <<_ACEOF
21216/* end confdefs.h. */
21217$ac_includes_default
21218
21219#include <$ac_header>
21220_ACEOF
21221rm -f conftest.$ac_objext
21222if { (ac_try="$ac_compile"
21223case "(($ac_try" in
21224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21225 *) ac_try_echo=$ac_try;;
21226esac
21227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21228$as_echo "$ac_try_echo") >&5
21229 (eval "$ac_compile") 2>conftest.er1
21230 ac_status=$?
21231 grep -v '^ *+' conftest.er1 >conftest.err
21232 rm -f conftest.er1
21233 cat conftest.err >&5
21234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest.$ac_objext; then
21239 eval "$as_ac_Header=yes"
21240else
21241 $as_echo "$as_me: failed program was:" >&5
21242sed 's/^/| /' conftest.$ac_ext >&5
21243
21244 eval "$as_ac_Header=no"
21245fi
21246
21247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21248fi
21249ac_res=`eval 'as_val=${'$as_ac_Header'}
21250 $as_echo "$as_val"'`
21251 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21252$as_echo "$ac_res" >&6; }
21253as_val=`eval 'as_val=${'$as_ac_Header'}
21254 $as_echo "$as_val"'`
21255 if test "x$as_val" = x""yes; then
21256 cat >>confdefs.h <<_ACEOF
21257#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21258_ACEOF
21259
21260fi
21261
21262done
21263
21264
21265
21266
21267
21268for ac_func in closedir opendir readdir
21269do
21270as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21271{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21272$as_echo_n "checking for $ac_func... " >&6; }
21273if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21274 $as_echo_n "(cached) " >&6
21275else
21276 cat >conftest.$ac_ext <<_ACEOF
21277/* confdefs.h. */
21278_ACEOF
21279cat confdefs.h >>conftest.$ac_ext
21280cat >>conftest.$ac_ext <<_ACEOF
21281/* end confdefs.h. */
21282/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21284#define $ac_func innocuous_$ac_func
21285
21286/* System header to define __stub macros and hopefully few prototypes,
21287 which can conflict with char $ac_func (); below.
21288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21289 <limits.h> exists even on freestanding compilers. */
21290
21291#ifdef __STDC__
21292# include <limits.h>
21293#else
21294# include <assert.h>
21295#endif
21296
21297#undef $ac_func
21298
21299/* Override any GCC internal prototype to avoid an error.
21300 Use char because int might match the return type of a GCC
21301 builtin and then its argument prototype would still apply. */
21302#ifdef __cplusplus
21303extern "C"
21304#endif
21305char $ac_func ();
21306/* The GNU C library defines this for functions which it implements
21307 to always fail with ENOSYS. Some functions are actually named
21308 something starting with __ and the normal name is an alias. */
21309#if defined __stub_$ac_func || defined __stub___$ac_func
21310choke me
21311#endif
21312
21313int
21314main ()
21315{
21316return $ac_func ();
21317 ;
21318 return 0;
21319}
21320_ACEOF
21321rm -f conftest.$ac_objext conftest$ac_exeext
21322if { (ac_try="$ac_link"
21323case "(($ac_try" in
21324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21325 *) ac_try_echo=$ac_try;;
21326esac
21327eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21328$as_echo "$ac_try_echo") >&5
21329 (eval "$ac_link") 2>conftest.er1
21330 ac_status=$?
21331 grep -v '^ *+' conftest.er1 >conftest.err
21332 rm -f conftest.er1
21333 cat conftest.err >&5
21334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); } && {
21336 test -z "$ac_c_werror_flag" ||
21337 test ! -s conftest.err
21338 } && test -s conftest$ac_exeext && {
21339 test "$cross_compiling" = yes ||
21340 $as_test_x conftest$ac_exeext
21341 }; then
21342 eval "$as_ac_var=yes"
21343else
21344 $as_echo "$as_me: failed program was:" >&5
21345sed 's/^/| /' conftest.$ac_ext >&5
21346
21347 eval "$as_ac_var=no"
21348fi
21349
21350rm -rf conftest.dSYM
21351rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21352 conftest$ac_exeext conftest.$ac_ext
21353fi
21354ac_res=`eval 'as_val=${'$as_ac_var'}
21355 $as_echo "$as_val"'`
21356 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21357$as_echo "$ac_res" >&6; }
21358as_val=`eval 'as_val=${'$as_ac_var'}
21359 $as_echo "$as_val"'`
21360 if test "x$as_val" = x""yes; then
21361 cat >>confdefs.h <<_ACEOF
21362#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21363_ACEOF
21364
21365else
21366
21367
21368 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21369
21370fi
21371done
21372
21373
21374
21375for ac_func in strlcat strlcpy
21376do
21377as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21378{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21379$as_echo_n "checking for $ac_func... " >&6; }
21380if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21381 $as_echo_n "(cached) " >&6
21382else
21383 cat >conftest.$ac_ext <<_ACEOF
21384/* confdefs.h. */
21385_ACEOF
21386cat confdefs.h >>conftest.$ac_ext
21387cat >>conftest.$ac_ext <<_ACEOF
21388/* end confdefs.h. */
21389/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21391#define $ac_func innocuous_$ac_func
21392
21393/* System header to define __stub macros and hopefully few prototypes,
21394 which can conflict with char $ac_func (); below.
21395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21396 <limits.h> exists even on freestanding compilers. */
21397
21398#ifdef __STDC__
21399# include <limits.h>
21400#else
21401# include <assert.h>
21402#endif
21403
21404#undef $ac_func
21405
21406/* Override any GCC internal prototype to avoid an error.
21407 Use char because int might match the return type of a GCC
21408 builtin and then its argument prototype would still apply. */
21409#ifdef __cplusplus
21410extern "C"
21411#endif
21412char $ac_func ();
21413/* The GNU C library defines this for functions which it implements
21414 to always fail with ENOSYS. Some functions are actually named
21415 something starting with __ and the normal name is an alias. */
21416#if defined __stub_$ac_func || defined __stub___$ac_func
21417choke me
21418#endif
21419
21420int
21421main ()
21422{
21423return $ac_func ();
21424 ;
21425 return 0;
21426}
21427_ACEOF
21428rm -f conftest.$ac_objext conftest$ac_exeext
21429if { (ac_try="$ac_link"
21430case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21433esac
21434eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21435$as_echo "$ac_try_echo") >&5
21436 (eval "$ac_link") 2>conftest.er1
21437 ac_status=$?
21438 grep -v '^ *+' conftest.er1 >conftest.err
21439 rm -f conftest.er1
21440 cat conftest.err >&5
21441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } && {
21443 test -z "$ac_c_werror_flag" ||
21444 test ! -s conftest.err
21445 } && test -s conftest$ac_exeext && {
21446 test "$cross_compiling" = yes ||
21447 $as_test_x conftest$ac_exeext
21448 }; then
21449 eval "$as_ac_var=yes"
21450else
21451 $as_echo "$as_me: failed program was:" >&5
21452sed 's/^/| /' conftest.$ac_ext >&5
21453
21454 eval "$as_ac_var=no"
21455fi
21456
21457rm -rf conftest.dSYM
21458rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21459 conftest$ac_exeext conftest.$ac_ext
21460fi
21461ac_res=`eval 'as_val=${'$as_ac_var'}
21462 $as_echo "$as_val"'`
21463 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21464$as_echo "$ac_res" >&6; }
21465as_val=`eval 'as_val=${'$as_ac_var'}
21466 $as_echo "$as_val"'`
21467 if test "x$as_val" = x""yes; then
21468 cat >>confdefs.h <<_ACEOF
21469#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21470_ACEOF
21471
21472else
21473
21474
21475 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21476
21477fi
21478done
21479
21480
21481
21482cat >>confdefs.h <<_ACEOF
21483#define LT_LIBEXT "$libext"
21484_ACEOF
21485
21486
21487name=ltdl
21488LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
21489
21490
21491
21492
21493
21494
21495
21496
21497# Only expand once:
21498
21499
21500
21501# Check to see if building shared libraries
21502libtool_build_shared_libs='no'
21503if test "$enable_shared" = 'yes'; then
21504 libtool_build_shared_libs='yes'
21505fi
21506
21507# Check to see if building static libraries
21508libtool_build_static_libs='no'
21509if test "$enable_static" = 'yes'; then
21510 libtool_build_static_libs='yes'
21511fi
21512
21513# MinGW and Cygwin can't build C++ DLLs which support exceptions.
21514if test "${StaticCplusPlusLibraries}" = 'yes'; then
21515 LTCXXLIBOPTS='--static'
21516
21517fi
21518
21519#
21520# Enable support for building loadable modules
21521#
21522
21523# Check whether --with-modules was given.
21524if test "${with_modules+set}" = set; then
21525 withval=$with_modules; with_modules=$withval
21526else
21527 with_modules=$libtool_build_shared_libs
21528fi
21529
21530
21531# Only allow building loadable modules if we are building shared libraries
21532if test "$with_modules" != 'no' ; then
21533 if test "$libtool_build_shared_libs" = 'no'; then
21534 { $as_echo "$as_me:$LINENO: WARNING: Modules may only be built if building shared libraries is enabled." >&5
21535$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21536 with_modules='no'
21537 fi
21538fi
21539if test "$with_modules" != 'no'; then
21540
21541cat >>confdefs.h <<\_ACEOF
21542#define BUILD_MODULES 1
21543_ACEOF
21544
21545fi
21546 if test "$with_modules" != 'no'; then
21547 WITH_MODULES_TRUE=
21548 WITH_MODULES_FALSE='#'
21549else
21550 WITH_MODULES_TRUE='#'
21551 WITH_MODULES_FALSE=
21552fi
21553
21554
21555# Enable building/use of libltdl if we are building shared libraries regardless
21556# of whether modules are built or not.
21557with_ltdl='no'
21558if test "$libtool_build_shared_libs" != 'no'; then
21559 with_ltdl='yes'
21560fi
21561
21562 if test "$with_ltdl" != 'no'; then
21563 WITH_LTDL_TRUE=
21564 WITH_LTDL_FALSE='#'
21565else
21566 WITH_LTDL_TRUE='#'
21567 WITH_LTDL_FALSE=
21568fi
21569
21570if test "$with_ltdl" != 'no'; then
21571
21572cat >>confdefs.h <<\_ACEOF
21573#define LTDL_DELEGATE 1
21574_ACEOF
21575
21576
21577 # Set DLLDFLAGS
21578 if test X"$enable_shared" = Xyes; then
21579 DLLDFLAGS=-export-dynamic
21580
21581 fi
21582fi
21583
21584# Enable build using delegate libraries built in subdirectories rather than installed
21585# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
21586# Check whether --enable-delegate-build was given.
21587if test "${enable_delegate_build+set}" = set; then
21588 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21589else
21590 enable_delegate_build='no'
21591fi
21592
21593
21594# Check whether --enable-deprecated was given.
21595if test "${enable_deprecated+set}" = set; then
21596 enableval=$enable_deprecated; enable_deprecated=$enableval
21597else
21598 enable_deprecated='no'
21599fi
21600
21601
21602if test "$enable_deprecated" = 'yes'; then
21603
21604cat >>confdefs.h <<\_ACEOF
21605#define EXCLUDE_DEPRECATED 1
21606_ACEOF
21607
21608else
21609 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21610fi
21611
21612# Build a version of ImageMagick which operates uninstalled.
21613# Used to build distributions located via MAGICK_HOME / executable path
21614# Check whether --enable-installed was given.
21615if test "${enable_installed+set}" = set; then
21616 enableval=$enable_installed; enable_installed=$enableval
21617else
21618 enable_installed='yes'
21619fi
21620
21621
21622if test "$enable_installed" = 'yes'; then
21623
21624cat >>confdefs.h <<\_ACEOF
21625#define INSTALLED_SUPPORT 1
21626_ACEOF
21627
21628else
21629 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21630fi
21631
21632# Permit enciphering and deciphering image pixels.
21633# Check whether --enable-cipher was given.
21634if test "${enable_cipher+set}" = set; then
21635 enableval=$enable_cipher; enable_cipher=$enableval
21636else
21637 enable_cipher='yes'
21638fi
21639
21640
21641if test "$enable_cipher" = 'yes'; then
21642
21643cat >>confdefs.h <<\_ACEOF
21644#define CIPHER_SUPPORT 1
21645_ACEOF
21646
21647fi
21648
21649# Build an embeddable version of ImageMagick.
21650# Check whether --enable-embeddable was given.
21651if test "${enable_embeddable+set}" = set; then
21652 enableval=$enable_embeddable; enable_embeddable=$enableval
21653else
21654 enable_embeddable='no'
21655fi
21656
21657
21658if test "$enable_embeddable" = 'yes'; then
21659
21660cat >>confdefs.h <<\_ACEOF
21661#define EMBEDDABLE_SUPPORT 1
21662_ACEOF
21663
21664fi
21665
21666# Build a high dynamic range version of ImageMagick.
21667# Check whether --enable-hdri was given.
21668if test "${enable_hdri+set}" = set; then
21669 enableval=$enable_hdri; enable_hdri=$enableval
21670else
21671 enable_hdri='no'
21672fi
21673
21674
21675MAGICK_HDRI=""
21676if test "$enable_hdri" = 'yes'; then
21677 MAGICK_HDRI="HDRI"
21678
21679cat >>confdefs.h <<\_ACEOF
21680#define HDRI_SUPPORT 1
21681_ACEOF
21682
21683fi
21684
21685# Enable verbose output from libtool (enable libtool's default)
21686# Check whether --enable-libtool-verbose was given.
21687if test "${enable_libtool_verbose+set}" = set; then
21688 enableval=$enable_libtool_verbose; enable_libtool_verbose=$enableval
21689else
21690 enable_libtool_verbose='no'
21691fi
21692
21693
21694if test "$enable_libtool_verbose" = 'no'; then
21695 LIBTOOL="$LIBTOOL --silent"
21696fi
21697
21698# Build a version of ImageMagick with assert statements.
21699# Check whether --enable-assert was given.
21700if test "${enable_assert+set}" = set; then
21701 enableval=$enable_assert; enable_assert=$enableval
21702else
21703 enable_assert='yes'
21704fi
21705
21706
21707if test "$enable_assert" = 'no'; then
21708
21709cat >>confdefs.h <<\_ACEOF
21710#define NDEBUG 1
21711_ACEOF
21712
21713fi
21714
21715# Add configure option --enable-maintainer-mode which enables dependency
21716# checking and generation useful to package maintainers. This is made an
21717# option to avoid confusing end users.
21718
21719{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
21720$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21721 # Check whether --enable-maintainer-mode was given.
21722if test "${enable_maintainer_mode+set}" = set; then
21723 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21724else
21725 USE_MAINTAINER_MODE=no
21726fi
21727
21728 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
21729$as_echo "$USE_MAINTAINER_MODE" >&6; }
21730 if test $USE_MAINTAINER_MODE = yes; then
21731 MAINTAINER_MODE_TRUE=
21732 MAINTAINER_MODE_FALSE='#'
21733else
21734 MAINTAINER_MODE_TRUE='#'
21735 MAINTAINER_MODE_FALSE=
21736fi
21737
21738 MAINT=$MAINTAINER_MODE_TRUE
21739
21740
21741
21742
21743# Enable ccmalloc memory debugging support
21744# Check whether --enable-ccmalloc was given.
21745if test "${enable_ccmalloc+set}" = set; then
21746 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21747else
21748 enable_ccmalloc='no'
21749fi
21750
21751
21752# Enable Electric Fence memory debugging support
21753# Check whether --enable-efence was given.
21754if test "${enable_efence+set}" = set; then
21755 enableval=$enable_efence; enable_efence=$enableval
21756else
21757 enable_efence='no'
21758fi
21759
21760
21761# Enable prof-based profiling support
21762# Check whether --enable-prof was given.
21763if test "${enable_prof+set}" = set; then
21764 enableval=$enable_prof; enable_prof=$enableval
21765else
21766 enable_prof='no'
21767fi
21768
21769
21770# Enable gprof-based profiling support
21771# Check whether --enable-gprof was given.
21772if test "${enable_gprof+set}" = set; then
21773 enableval=$enable_gprof; enable_gprof=$enableval
21774else
21775 enable_gprof='no'
21776fi
21777
21778
21779# Enable gcov-based profiling support
21780# Check whether --enable-gcov was given.
21781if test "${enable_gcov+set}" = set; then
21782 enableval=$enable_gcov; enable_gcov=$enableval
21783else
21784 enable_gcov='no'
21785fi
21786
21787
21788enable_profiling='no'
21789if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21790 enable_profiling='yes'
21791 if test "$libtool_build_shared_libs" = 'yes'; then
21792 echo "Warning: Can not profile code using shared libraries"
21793 fi
21794fi
21795
21796# Magick API method prefix
21797
21798# Check whether --with-method-prefix was given.
21799if test "${with_method_prefix+set}" = set; then
21800 withval=$with_method_prefix; with_method_prefix=$enableval
21801else
21802 with_method_prefix=''
21803fi
21804
21805
21806if test "$with_method_prefix" != ''; then
21807
21808cat >>confdefs.h <<_ACEOF
21809#define NAMESPACE_PREFIX $with_method_prefix
21810_ACEOF
21811
21812fi
21813
21814# Number of bits in a Quantum
21815
21816# Check whether --with-quantum-depth was given.
21817if test "${with_quantum_depth+set}" = set; then
21818 withval=$with_quantum_depth; with_quantum_depth=$withval
21819else
21820 with_quantum_depth=16
21821fi
21822
21823
21824if test "$with_quantum_depth" != '8'; then
21825 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21826fi
21827
21828case "${with_quantum_depth}" in
21829 8 ) ;;
21830 16 ) ;;
21831 32 ) ;;
21832 64 ) ;;
21833 * ) { { $as_echo "$as_me:$LINENO: error: \"Pixel quantum depth must have value of 8" >&5
21834$as_echo "$as_me: error: \"Pixel quantum depth must have value of 8" >&2;}
21835 { (exit 16); exit 16; }; } ;;
21836esac
21837QUANTUM_DEPTH="$with_quantum_depth"
21838
21839cat >>confdefs.h <<_ACEOF
21840#define QUANTUM_DEPTH $QUANTUM_DEPTH
21841_ACEOF
21842
21843
21844# Set pixel cache threshold
21845
21846# Check whether --with-cache was given.
21847if test "${with_cache+set}" = set; then
21848 withval=$with_cache; with_cache=$withval
21849else
21850 with_cache=''
21851fi
21852
21853
21854if test "$with_cache" != ''; then
21855
21856cat >>confdefs.h <<_ACEOF
21857#define PixelCacheThreshold $with_cache
21858_ACEOF
21859
21860 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21861fi
21862
21863# Disable/Enable support for full delegate paths
21864
21865# Check whether --with-frozenpaths was given.
21866if test "${with_frozenpaths+set}" = set; then
21867 withval=$with_frozenpaths; with_frozenpaths=$withval
21868else
21869 with_frozenpaths='no'
21870fi
21871
21872
21873# Enable build/install of Magick++
21874
21875# Check whether --with-magick-plus-plus was given.
21876if test "${with_magick_plus_plus+set}" = set; then
21877 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21878else
21879 with_magick_plus_plus='yes'
21880fi
21881
21882
21883# Disable build/install of PerlMagick.
21884
21885# Check whether --with-perl was given.
21886if test "${with_perl+set}" = set; then
21887 withval=$with_perl; with_perl=$withval
21888else
21889 with_perl=$libtool_build_shared_libs
21890fi
21891
21892
21893# Options to pass when configuring PerlMagick
21894
21895# Check whether --with-perl-options was given.
21896if test "${with_perl_options+set}" = set; then
21897 withval=$with_perl_options;
21898fi
21899
21900
21901PERL_MAKE_OPTIONS=$with_perl_options
21902
21903
21904
21905# Enable umem, object-caching memory allocation library.
21906
21907# Check whether --with-umem was given.
21908if test "${with_umem+set}" = set; then
21909 withval=$with_umem; with_umem=$withval
21910else
21911 with_umem='no'
21912fi
21913
21914if test "$with_umem" != 'yes' ; then
21915 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21916fi
21917
21918#
21919# Specify path to shared libstdc++ if not in normal location
21920#
21921
21922# Check whether --with-libstdc was given.
21923if test "${with_libstdc+set}" = set; then
21924 withval=$with_libstdc; with_libstdc=$withval
21925else
21926 with_libstdc=''
21927fi
21928
21929
21930if test "$with_libstdc" != ''; then
21931 if test -d "$with_libstdc"; then
21932 LIBSTDCLDFLAGS="-L$with_libstdc"
21933 fi
21934fi
21935
21936
21937# Does gcc required -traditional?
21938if test $ac_cv_c_compiler_gnu = yes; then
21939 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21940$as_echo_n "checking whether $CC needs -traditional... " >&6; }
21941if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21942 $as_echo_n "(cached) " >&6
21943else
21944 ac_pattern="Autoconf.*'x'"
21945 cat >conftest.$ac_ext <<_ACEOF
21946/* confdefs.h. */
21947_ACEOF
21948cat confdefs.h >>conftest.$ac_ext
21949cat >>conftest.$ac_ext <<_ACEOF
21950/* end confdefs.h. */
21951#include <sgtty.h>
21952Autoconf TIOCGETP
21953_ACEOF
21954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21955 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21956 ac_cv_prog_gcc_traditional=yes
21957else
21958 ac_cv_prog_gcc_traditional=no
21959fi
21960rm -f conftest*
21961
21962
21963 if test $ac_cv_prog_gcc_traditional = no; then
21964 cat >conftest.$ac_ext <<_ACEOF
21965/* confdefs.h. */
21966_ACEOF
21967cat confdefs.h >>conftest.$ac_ext
21968cat >>conftest.$ac_ext <<_ACEOF
21969/* end confdefs.h. */
21970#include <termio.h>
21971Autoconf TCGETA
21972_ACEOF
21973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21974 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21975 ac_cv_prog_gcc_traditional=yes
21976fi
21977rm -f conftest*
21978
21979 fi
21980fi
21981{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21982$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21983 if test $ac_cv_prog_gcc_traditional = yes; then
21984 CC="$CC -traditional"
21985 fi
21986fi
21987
21988
21989########
21990#
21991# Set defines required to build DLLs and modules using MinGW
21992#
21993########
21994# These options are set for multi-thread DLL module build
21995# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21996# module: _DLL
21997# executable/Magick++: _DLL _MAGICKMOD_
21998MODULE_EXTRA_CPPFLAGS=''
21999LIBRARY_EXTRA_CPPFLAGS=''
22000if test "${native_win32_build}" = 'yes'; then
22001 if test "${libtool_build_shared_libs}" = 'yes'; then
22002 CPPFLAGS="$CPPFLAGS -D_DLL"
22003 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22004 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22005 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22006 if test "$with_modules" = 'yes'; then
22007 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22008 else
22009 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22010 fi
22011 else
22012 CPPFLAGS="$CPPFLAGS -D_LIB"
22013 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22014 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22015 fi
22016 if test "$with_threads" = 'yes'; then
22017 CPPFLAGS="$CPPFLAGS -D_MT"
22018 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22019 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22020 fi
22021fi
22022
22023
22024
22025# Check standard headers
22026{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22027$as_echo_n "checking for ANSI C header files... " >&6; }
22028if test "${ac_cv_header_stdc+set}" = set; then
22029 $as_echo_n "(cached) " >&6
22030else
22031 cat >conftest.$ac_ext <<_ACEOF
22032/* confdefs.h. */
22033_ACEOF
22034cat confdefs.h >>conftest.$ac_ext
22035cat >>conftest.$ac_ext <<_ACEOF
22036/* end confdefs.h. */
22037#include <stdlib.h>
22038#include <stdarg.h>
22039#include <string.h>
22040#include <float.h>
22041
22042int
22043main ()
22044{
22045
22046 ;
22047 return 0;
22048}
22049_ACEOF
22050rm -f conftest.$ac_objext
22051if { (ac_try="$ac_compile"
22052case "(($ac_try" in
22053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054 *) ac_try_echo=$ac_try;;
22055esac
22056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22057$as_echo "$ac_try_echo") >&5
22058 (eval "$ac_compile") 2>conftest.er1
22059 ac_status=$?
22060 grep -v '^ *+' conftest.er1 >conftest.err
22061 rm -f conftest.er1
22062 cat conftest.err >&5
22063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } && {
22065 test -z "$ac_c_werror_flag" ||
22066 test ! -s conftest.err
22067 } && test -s conftest.$ac_objext; then
22068 ac_cv_header_stdc=yes
22069else
22070 $as_echo "$as_me: failed program was:" >&5
22071sed 's/^/| /' conftest.$ac_ext >&5
22072
22073 ac_cv_header_stdc=no
22074fi
22075
22076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22077
22078if test $ac_cv_header_stdc = yes; then
22079 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22080 cat >conftest.$ac_ext <<_ACEOF
22081/* confdefs.h. */
22082_ACEOF
22083cat confdefs.h >>conftest.$ac_ext
22084cat >>conftest.$ac_ext <<_ACEOF
22085/* end confdefs.h. */
22086#include <string.h>
22087
22088_ACEOF
22089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22090 $EGREP "memchr" >/dev/null 2>&1; then
22091 :
22092else
22093 ac_cv_header_stdc=no
22094fi
22095rm -f conftest*
22096
22097fi
22098
22099if test $ac_cv_header_stdc = yes; then
22100 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22101 cat >conftest.$ac_ext <<_ACEOF
22102/* confdefs.h. */
22103_ACEOF
22104cat confdefs.h >>conftest.$ac_ext
22105cat >>conftest.$ac_ext <<_ACEOF
22106/* end confdefs.h. */
22107#include <stdlib.h>
22108
22109_ACEOF
22110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22111 $EGREP "free" >/dev/null 2>&1; then
22112 :
22113else
22114 ac_cv_header_stdc=no
22115fi
22116rm -f conftest*
22117
22118fi
22119
22120if test $ac_cv_header_stdc = yes; then
22121 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22122 if test "$cross_compiling" = yes; then
22123 :
22124else
22125 cat >conftest.$ac_ext <<_ACEOF
22126/* confdefs.h. */
22127_ACEOF
22128cat confdefs.h >>conftest.$ac_ext
22129cat >>conftest.$ac_ext <<_ACEOF
22130/* end confdefs.h. */
22131#include <ctype.h>
22132#include <stdlib.h>
22133#if ((' ' & 0x0FF) == 0x020)
22134# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22135# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22136#else
22137# define ISLOWER(c) \
22138 (('a' <= (c) && (c) <= 'i') \
22139 || ('j' <= (c) && (c) <= 'r') \
22140 || ('s' <= (c) && (c) <= 'z'))
22141# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22142#endif
22143
22144#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22145int
22146main ()
22147{
22148 int i;
22149 for (i = 0; i < 256; i++)
22150 if (XOR (islower (i), ISLOWER (i))
22151 || toupper (i) != TOUPPER (i))
22152 return 2;
22153 return 0;
22154}
22155_ACEOF
22156rm -f conftest$ac_exeext
22157if { (ac_try="$ac_link"
22158case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22161esac
22162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22163$as_echo "$ac_try_echo") >&5
22164 (eval "$ac_link") 2>&5
22165 ac_status=$?
22166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22168 { (case "(($ac_try" in
22169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170 *) ac_try_echo=$ac_try;;
22171esac
22172eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22173$as_echo "$ac_try_echo") >&5
22174 (eval "$ac_try") 2>&5
22175 ac_status=$?
22176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; }; then
22178 :
22179else
22180 $as_echo "$as_me: program exited with status $ac_status" >&5
22181$as_echo "$as_me: failed program was:" >&5
22182sed 's/^/| /' conftest.$ac_ext >&5
22183
22184( exit $ac_status )
22185ac_cv_header_stdc=no
22186fi
22187rm -rf conftest.dSYM
22188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22189fi
22190
22191
22192fi
22193fi
22194{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22195$as_echo "$ac_cv_header_stdc" >&6; }
22196if test $ac_cv_header_stdc = yes; then
22197
22198cat >>confdefs.h <<\_ACEOF
22199#define STDC_HEADERS 1
22200_ACEOF
22201
22202fi
22203
22204if ! test x"$ac_cv_header_stdc" = x"yes"; then
22205 { $as_echo "$as_me:$LINENO: WARNING: configure has detected that you do not have the ANSI standard C
22206 header files. Compilation cannot proceed. Please install the ANSI C
22207 headers and rerun this script." >&5
22208$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22209 header files. Compilation cannot proceed. Please install the ANSI C
22210 headers and rerun this script." >&2;};
22211fi
22212
22213
22214
22215
22216
22217ac_header_dirent=no
22218for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22219 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22220{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22221$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22223 $as_echo_n "(cached) " >&6
22224else
22225 cat >conftest.$ac_ext <<_ACEOF
22226/* confdefs.h. */
22227_ACEOF
22228cat confdefs.h >>conftest.$ac_ext
22229cat >>conftest.$ac_ext <<_ACEOF
22230/* end confdefs.h. */
22231#include <sys/types.h>
22232#include <$ac_hdr>
22233
22234int
22235main ()
22236{
22237if ((DIR *) 0)
22238return 0;
22239 ;
22240 return 0;
22241}
22242_ACEOF
22243rm -f conftest.$ac_objext
22244if { (ac_try="$ac_compile"
22245case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22248esac
22249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22250$as_echo "$ac_try_echo") >&5
22251 (eval "$ac_compile") 2>conftest.er1
22252 ac_status=$?
22253 grep -v '^ *+' conftest.er1 >conftest.err
22254 rm -f conftest.er1
22255 cat conftest.err >&5
22256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); } && {
22258 test -z "$ac_c_werror_flag" ||
22259 test ! -s conftest.err
22260 } && test -s conftest.$ac_objext; then
22261 eval "$as_ac_Header=yes"
22262else
22263 $as_echo "$as_me: failed program was:" >&5
22264sed 's/^/| /' conftest.$ac_ext >&5
22265
22266 eval "$as_ac_Header=no"
22267fi
22268
22269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22270fi
22271ac_res=`eval 'as_val=${'$as_ac_Header'}
22272 $as_echo "$as_val"'`
22273 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22274$as_echo "$ac_res" >&6; }
22275as_val=`eval 'as_val=${'$as_ac_Header'}
22276 $as_echo "$as_val"'`
22277 if test "x$as_val" = x""yes; then
22278 cat >>confdefs.h <<_ACEOF
22279#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22280_ACEOF
22281
22282ac_header_dirent=$ac_hdr; break
22283fi
22284
22285done
22286# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22287if test $ac_header_dirent = dirent.h; then
22288 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
22289$as_echo_n "checking for library containing opendir... " >&6; }
22290if test "${ac_cv_search_opendir+set}" = set; then
22291 $as_echo_n "(cached) " >&6
22292else
22293 ac_func_search_save_LIBS=$LIBS
22294cat >conftest.$ac_ext <<_ACEOF
22295/* confdefs.h. */
22296_ACEOF
22297cat confdefs.h >>conftest.$ac_ext
22298cat >>conftest.$ac_ext <<_ACEOF
22299/* end confdefs.h. */
22300
22301/* Override any GCC internal prototype to avoid an error.
22302 Use char because int might match the return type of a GCC
22303 builtin and then its argument prototype would still apply. */
22304#ifdef __cplusplus
22305extern "C"
22306#endif
22307char opendir ();
22308int
22309main ()
22310{
22311return opendir ();
22312 ;
22313 return 0;
22314}
22315_ACEOF
22316for ac_lib in '' dir; do
22317 if test -z "$ac_lib"; then
22318 ac_res="none required"
22319 else
22320 ac_res=-l$ac_lib
22321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22322 fi
22323 rm -f conftest.$ac_objext conftest$ac_exeext
22324if { (ac_try="$ac_link"
22325case "(($ac_try" in
22326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22327 *) ac_try_echo=$ac_try;;
22328esac
22329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22330$as_echo "$ac_try_echo") >&5
22331 (eval "$ac_link") 2>conftest.er1
22332 ac_status=$?
22333 grep -v '^ *+' conftest.er1 >conftest.err
22334 rm -f conftest.er1
22335 cat conftest.err >&5
22336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); } && {
22338 test -z "$ac_c_werror_flag" ||
22339 test ! -s conftest.err
22340 } && test -s conftest$ac_exeext && {
22341 test "$cross_compiling" = yes ||
22342 $as_test_x conftest$ac_exeext
22343 }; then
22344 ac_cv_search_opendir=$ac_res
22345else
22346 $as_echo "$as_me: failed program was:" >&5
22347sed 's/^/| /' conftest.$ac_ext >&5
22348
22349
22350fi
22351
22352rm -rf conftest.dSYM
22353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22354 conftest$ac_exeext
22355 if test "${ac_cv_search_opendir+set}" = set; then
22356 break
22357fi
22358done
22359if test "${ac_cv_search_opendir+set}" = set; then
22360 :
22361else
22362 ac_cv_search_opendir=no
22363fi
22364rm conftest.$ac_ext
22365LIBS=$ac_func_search_save_LIBS
22366fi
22367{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22368$as_echo "$ac_cv_search_opendir" >&6; }
22369ac_res=$ac_cv_search_opendir
22370if test "$ac_res" != no; then
22371 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22372
22373fi
22374
22375else
22376 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
22377$as_echo_n "checking for library containing opendir... " >&6; }
22378if test "${ac_cv_search_opendir+set}" = set; then
22379 $as_echo_n "(cached) " >&6
22380else
22381 ac_func_search_save_LIBS=$LIBS
22382cat >conftest.$ac_ext <<_ACEOF
22383/* confdefs.h. */
22384_ACEOF
22385cat confdefs.h >>conftest.$ac_ext
22386cat >>conftest.$ac_ext <<_ACEOF
22387/* end confdefs.h. */
22388
22389/* Override any GCC internal prototype to avoid an error.
22390 Use char because int might match the return type of a GCC
22391 builtin and then its argument prototype would still apply. */
22392#ifdef __cplusplus
22393extern "C"
22394#endif
22395char opendir ();
22396int
22397main ()
22398{
22399return opendir ();
22400 ;
22401 return 0;
22402}
22403_ACEOF
22404for ac_lib in '' x; do
22405 if test -z "$ac_lib"; then
22406 ac_res="none required"
22407 else
22408 ac_res=-l$ac_lib
22409 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22410 fi
22411 rm -f conftest.$ac_objext conftest$ac_exeext
22412if { (ac_try="$ac_link"
22413case "(($ac_try" in
22414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22415 *) ac_try_echo=$ac_try;;
22416esac
22417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22418$as_echo "$ac_try_echo") >&5
22419 (eval "$ac_link") 2>conftest.er1
22420 ac_status=$?
22421 grep -v '^ *+' conftest.er1 >conftest.err
22422 rm -f conftest.er1
22423 cat conftest.err >&5
22424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22425 (exit $ac_status); } && {
22426 test -z "$ac_c_werror_flag" ||
22427 test ! -s conftest.err
22428 } && test -s conftest$ac_exeext && {
22429 test "$cross_compiling" = yes ||
22430 $as_test_x conftest$ac_exeext
22431 }; then
22432 ac_cv_search_opendir=$ac_res
22433else
22434 $as_echo "$as_me: failed program was:" >&5
22435sed 's/^/| /' conftest.$ac_ext >&5
22436
22437
22438fi
22439
22440rm -rf conftest.dSYM
22441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22442 conftest$ac_exeext
22443 if test "${ac_cv_search_opendir+set}" = set; then
22444 break
22445fi
22446done
22447if test "${ac_cv_search_opendir+set}" = set; then
22448 :
22449else
22450 ac_cv_search_opendir=no
22451fi
22452rm conftest.$ac_ext
22453LIBS=$ac_func_search_save_LIBS
22454fi
22455{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22456$as_echo "$ac_cv_search_opendir" >&6; }
22457ac_res=$ac_cv_search_opendir
22458if test "$ac_res" != no; then
22459 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22460
22461fi
22462
22463fi
22464
22465
22466# Check additional headers
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481
22482
22483
22484
22485
22486
22487
22488
22489
22490
22491
22492for 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
22493do
22494as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22496 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22497$as_echo_n "checking for $ac_header... " >&6; }
22498if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22499 $as_echo_n "(cached) " >&6
22500fi
22501ac_res=`eval 'as_val=${'$as_ac_Header'}
22502 $as_echo "$as_val"'`
22503 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22504$as_echo "$ac_res" >&6; }
22505else
22506 # Is the header compilable?
22507{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22508$as_echo_n "checking $ac_header usability... " >&6; }
22509cat >conftest.$ac_ext <<_ACEOF
22510/* confdefs.h. */
22511_ACEOF
22512cat confdefs.h >>conftest.$ac_ext
22513cat >>conftest.$ac_ext <<_ACEOF
22514/* end confdefs.h. */
22515$ac_includes_default
22516#include <$ac_header>
22517_ACEOF
22518rm -f conftest.$ac_objext
22519if { (ac_try="$ac_compile"
22520case "(($ac_try" in
22521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22522 *) ac_try_echo=$ac_try;;
22523esac
22524eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22525$as_echo "$ac_try_echo") >&5
22526 (eval "$ac_compile") 2>conftest.er1
22527 ac_status=$?
22528 grep -v '^ *+' conftest.er1 >conftest.err
22529 rm -f conftest.er1
22530 cat conftest.err >&5
22531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22532 (exit $ac_status); } && {
22533 test -z "$ac_c_werror_flag" ||
22534 test ! -s conftest.err
22535 } && test -s conftest.$ac_objext; then
22536 ac_header_compiler=yes
22537else
22538 $as_echo "$as_me: failed program was:" >&5
22539sed 's/^/| /' conftest.$ac_ext >&5
22540
22541 ac_header_compiler=no
22542fi
22543
22544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22545{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22546$as_echo "$ac_header_compiler" >&6; }
22547
22548# Is the header present?
22549{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22550$as_echo_n "checking $ac_header presence... " >&6; }
22551cat >conftest.$ac_ext <<_ACEOF
22552/* confdefs.h. */
22553_ACEOF
22554cat confdefs.h >>conftest.$ac_ext
22555cat >>conftest.$ac_ext <<_ACEOF
22556/* end confdefs.h. */
22557#include <$ac_header>
22558_ACEOF
22559if { (ac_try="$ac_cpp conftest.$ac_ext"
22560case "(($ac_try" in
22561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22562 *) ac_try_echo=$ac_try;;
22563esac
22564eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22565$as_echo "$ac_try_echo") >&5
22566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22567 ac_status=$?
22568 grep -v '^ *+' conftest.er1 >conftest.err
22569 rm -f conftest.er1
22570 cat conftest.err >&5
22571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } >/dev/null && {
22573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22574 test ! -s conftest.err
22575 }; then
22576 ac_header_preproc=yes
22577else
22578 $as_echo "$as_me: failed program was:" >&5
22579sed 's/^/| /' conftest.$ac_ext >&5
22580
22581 ac_header_preproc=no
22582fi
22583
22584rm -f conftest.err conftest.$ac_ext
22585{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22586$as_echo "$ac_header_preproc" >&6; }
22587
22588# So? What about this header?
22589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22590 yes:no: )
22591 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22592$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22594$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22595 ac_header_preproc=yes
22596 ;;
22597 no:yes:* )
22598 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22599$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22601$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22603$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22605$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22607$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22609$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22610 ( cat <<\_ASBOX
22611## ----------------------------------------- ##
22612## Report this to http://www.imagemagick.org ##
22613## ----------------------------------------- ##
22614_ASBOX
22615 ) | sed "s/^/$as_me: WARNING: /" >&2
22616 ;;
22617esac
22618{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22619$as_echo_n "checking for $ac_header... " >&6; }
22620if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22621 $as_echo_n "(cached) " >&6
22622else
22623 eval "$as_ac_Header=\$ac_header_preproc"
22624fi
22625ac_res=`eval 'as_val=${'$as_ac_Header'}
22626 $as_echo "$as_val"'`
22627 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22628$as_echo "$ac_res" >&6; }
22629
22630fi
22631as_val=`eval 'as_val=${'$as_ac_Header'}
22632 $as_echo "$as_val"'`
22633 if test "x$as_val" = x""yes; then
22634 cat >>confdefs.h <<_ACEOF
22635#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22636_ACEOF
22637
22638fi
22639
22640done
22641
22642
22643########
22644#
22645# Checks for typedefs, structures, and compiler characteristics.
22646#
22647########
22648
22649{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
22650$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
22651if test "${ac_cv_header_stdbool_h+set}" = set; then
22652 $as_echo_n "(cached) " >&6
22653else
22654 cat >conftest.$ac_ext <<_ACEOF
22655/* confdefs.h. */
22656_ACEOF
22657cat confdefs.h >>conftest.$ac_ext
22658cat >>conftest.$ac_ext <<_ACEOF
22659/* end confdefs.h. */
22660
22661#include <stdbool.h>
22662#ifndef bool
22663 "error: bool is not defined"
22664#endif
22665#ifndef false
22666 "error: false is not defined"
22667#endif
22668#if false
22669 "error: false is not 0"
22670#endif
22671#ifndef true
22672 "error: true is not defined"
22673#endif
22674#if true != 1
22675 "error: true is not 1"
22676#endif
22677#ifndef __bool_true_false_are_defined
22678 "error: __bool_true_false_are_defined is not defined"
22679#endif
22680
22681 struct s { _Bool s: 1; _Bool t; } s;
22682
22683 char a[true == 1 ? 1 : -1];
22684 char b[false == 0 ? 1 : -1];
22685 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22686 char d[(bool) 0.5 == true ? 1 : -1];
22687 bool e = &s;
22688 char f[(_Bool) 0.0 == false ? 1 : -1];
22689 char g[true];
22690 char h[sizeof (_Bool)];
22691 char i[sizeof s.t];
22692 enum { j = false, k = true, l = false * true, m = true * 256 };
22693 /* The following fails for
22694 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22695 _Bool n[m];
22696 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22697 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22698# if defined __xlc__ || defined __GNUC__
22699 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
22700 reported by James Lemley on 2005-10-05; see
22701 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
22702 This test is not quite right, since xlc is allowed to
22703 reject this program, as the initializer for xlcbug is
22704 not one of the forms that C requires support for.
22705 However, doing the test right would require a runtime
22706 test, and that would make cross-compilation harder.
22707 Let us hope that IBM fixes the xlc bug, and also adds
22708 support for this kind of constant expression. In the
22709 meantime, this test will reject xlc, which is OK, since
22710 our stdbool.h substitute should suffice. We also test
22711 this with GCC, where it should work, to detect more
22712 quickly whether someone messes up the test in the
22713 future. */
22714 char digs[] = "0123456789";
22715 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
22716# endif
22717 /* Catch a bug in an HP-UX C compiler. See
22718 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22719 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22720 */
22721 _Bool q = true;
22722 _Bool *pq = &q;
22723
22724int
22725main ()
22726{
22727
22728 *pq |= q;
22729 *pq |= ! q;
22730 /* Refer to every declared value, to avoid compiler optimizations. */
22731 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22732 + !m + !n + !o + !p + !q + !pq);
22733
22734 ;
22735 return 0;
22736}
22737_ACEOF
22738rm -f conftest.$ac_objext
22739if { (ac_try="$ac_compile"
22740case "(($ac_try" in
22741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22743esac
22744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22745$as_echo "$ac_try_echo") >&5
22746 (eval "$ac_compile") 2>conftest.er1
22747 ac_status=$?
22748 grep -v '^ *+' conftest.er1 >conftest.err
22749 rm -f conftest.er1
22750 cat conftest.err >&5
22751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); } && {
22753 test -z "$ac_c_werror_flag" ||
22754 test ! -s conftest.err
22755 } && test -s conftest.$ac_objext; then
22756 ac_cv_header_stdbool_h=yes
22757else
22758 $as_echo "$as_me: failed program was:" >&5
22759sed 's/^/| /' conftest.$ac_ext >&5
22760
22761 ac_cv_header_stdbool_h=no
22762fi
22763
22764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22765fi
22766{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
22767$as_echo "$ac_cv_header_stdbool_h" >&6; }
22768{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
22769$as_echo_n "checking for _Bool... " >&6; }
22770if test "${ac_cv_type__Bool+set}" = set; then
22771 $as_echo_n "(cached) " >&6
22772else
22773 ac_cv_type__Bool=no
22774cat >conftest.$ac_ext <<_ACEOF
22775/* confdefs.h. */
22776_ACEOF
22777cat confdefs.h >>conftest.$ac_ext
22778cat >>conftest.$ac_ext <<_ACEOF
22779/* end confdefs.h. */
22780$ac_includes_default
22781int
22782main ()
22783{
22784if (sizeof (_Bool))
22785 return 0;
22786 ;
22787 return 0;
22788}
22789_ACEOF
22790rm -f conftest.$ac_objext
22791if { (ac_try="$ac_compile"
22792case "(($ac_try" in
22793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794 *) ac_try_echo=$ac_try;;
22795esac
22796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22797$as_echo "$ac_try_echo") >&5
22798 (eval "$ac_compile") 2>conftest.er1
22799 ac_status=$?
22800 grep -v '^ *+' conftest.er1 >conftest.err
22801 rm -f conftest.er1
22802 cat conftest.err >&5
22803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22804 (exit $ac_status); } && {
22805 test -z "$ac_c_werror_flag" ||
22806 test ! -s conftest.err
22807 } && test -s conftest.$ac_objext; then
22808 cat >conftest.$ac_ext <<_ACEOF
22809/* confdefs.h. */
22810_ACEOF
22811cat confdefs.h >>conftest.$ac_ext
22812cat >>conftest.$ac_ext <<_ACEOF
22813/* end confdefs.h. */
22814$ac_includes_default
22815int
22816main ()
22817{
22818if (sizeof ((_Bool)))
22819 return 0;
22820 ;
22821 return 0;
22822}
22823_ACEOF
22824rm -f conftest.$ac_objext
22825if { (ac_try="$ac_compile"
22826case "(($ac_try" in
22827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828 *) ac_try_echo=$ac_try;;
22829esac
22830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22831$as_echo "$ac_try_echo") >&5
22832 (eval "$ac_compile") 2>conftest.er1
22833 ac_status=$?
22834 grep -v '^ *+' conftest.er1 >conftest.err
22835 rm -f conftest.er1
22836 cat conftest.err >&5
22837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } && {
22839 test -z "$ac_c_werror_flag" ||
22840 test ! -s conftest.err
22841 } && test -s conftest.$ac_objext; then
22842 :
22843else
22844 $as_echo "$as_me: failed program was:" >&5
22845sed 's/^/| /' conftest.$ac_ext >&5
22846
22847 ac_cv_type__Bool=yes
22848fi
22849
22850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22851else
22852 $as_echo "$as_me: failed program was:" >&5
22853sed 's/^/| /' conftest.$ac_ext >&5
22854
22855
22856fi
22857
22858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22859fi
22860{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
22861$as_echo "$ac_cv_type__Bool" >&6; }
22862if test "x$ac_cv_type__Bool" = x""yes; then
22863
22864cat >>confdefs.h <<_ACEOF
22865#define HAVE__BOOL 1
22866_ACEOF
22867
22868
22869fi
22870
22871if test $ac_cv_header_stdbool_h = yes; then
22872
22873cat >>confdefs.h <<\_ACEOF
22874#define HAVE_STDBOOL_H 1
22875_ACEOF
22876
22877fi
22878
22879{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
22880$as_echo_n "checking for working volatile... " >&6; }
22881if test "${ac_cv_c_volatile+set}" = set; then
22882 $as_echo_n "(cached) " >&6
22883else
22884 cat >conftest.$ac_ext <<_ACEOF
22885/* confdefs.h. */
22886_ACEOF
22887cat confdefs.h >>conftest.$ac_ext
22888cat >>conftest.$ac_ext <<_ACEOF
22889/* end confdefs.h. */
22890
22891int
22892main ()
22893{
22894
22895volatile int x;
22896int * volatile y = (int *) 0;
22897return !x && !y;
22898 ;
22899 return 0;
22900}
22901_ACEOF
22902rm -f conftest.$ac_objext
22903if { (ac_try="$ac_compile"
22904case "(($ac_try" in
22905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22906 *) ac_try_echo=$ac_try;;
22907esac
22908eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22909$as_echo "$ac_try_echo") >&5
22910 (eval "$ac_compile") 2>conftest.er1
22911 ac_status=$?
22912 grep -v '^ *+' conftest.er1 >conftest.err
22913 rm -f conftest.er1
22914 cat conftest.err >&5
22915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); } && {
22917 test -z "$ac_c_werror_flag" ||
22918 test ! -s conftest.err
22919 } && test -s conftest.$ac_objext; then
22920 ac_cv_c_volatile=yes
22921else
22922 $as_echo "$as_me: failed program was:" >&5
22923sed 's/^/| /' conftest.$ac_ext >&5
22924
22925 ac_cv_c_volatile=no
22926fi
22927
22928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22929fi
22930{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
22931$as_echo "$ac_cv_c_volatile" >&6; }
22932if test $ac_cv_c_volatile = no; then
22933
22934cat >>confdefs.h <<\_ACEOF
22935#define volatile /**/
22936_ACEOF
22937
22938fi
22939
22940{ $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
22941$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
22942if test "${ac_cv_c_stringize+set}" = set; then
22943 $as_echo_n "(cached) " >&6
22944else
22945 cat >conftest.$ac_ext <<_ACEOF
22946/* confdefs.h. */
22947_ACEOF
22948cat confdefs.h >>conftest.$ac_ext
22949cat >>conftest.$ac_ext <<_ACEOF
22950/* end confdefs.h. */
22951#define x(y) #y
22952
22953char *s = x(teststring);
22954_ACEOF
22955if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22956 $EGREP "#teststring" >/dev/null 2>&1; then
22957 ac_cv_c_stringize=no
22958else
22959 ac_cv_c_stringize=yes
22960fi
22961rm -f conftest*
22962
22963fi
22964{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
22965$as_echo "$ac_cv_c_stringize" >&6; }
22966if test $ac_cv_c_stringize = yes; then
22967
22968cat >>confdefs.h <<\_ACEOF
22969#define HAVE_STRINGIZE 1
22970_ACEOF
22971
22972fi
22973
22974{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22975$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22976if test "${ac_cv_header_stat_broken+set}" = set; then
22977 $as_echo_n "(cached) " >&6
22978else
22979 cat >conftest.$ac_ext <<_ACEOF
22980/* confdefs.h. */
22981_ACEOF
22982cat confdefs.h >>conftest.$ac_ext
22983cat >>conftest.$ac_ext <<_ACEOF
22984/* end confdefs.h. */
22985#include <sys/types.h>
22986#include <sys/stat.h>
22987
22988#if defined S_ISBLK && defined S_IFDIR
22989extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22990#endif
22991
22992#if defined S_ISBLK && defined S_IFCHR
22993extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22994#endif
22995
22996#if defined S_ISLNK && defined S_IFREG
22997extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22998#endif
22999
23000#if defined S_ISSOCK && defined S_IFREG
23001extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
23002#endif
23003
23004_ACEOF
23005rm -f conftest.$ac_objext
23006if { (ac_try="$ac_compile"
23007case "(($ac_try" in
23008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23009 *) ac_try_echo=$ac_try;;
23010esac
23011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23012$as_echo "$ac_try_echo") >&5
23013 (eval "$ac_compile") 2>conftest.er1
23014 ac_status=$?
23015 grep -v '^ *+' conftest.er1 >conftest.err
23016 rm -f conftest.er1
23017 cat conftest.err >&5
23018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); } && {
23020 test -z "$ac_c_werror_flag" ||
23021 test ! -s conftest.err
23022 } && test -s conftest.$ac_objext; then
23023 ac_cv_header_stat_broken=no
23024else
23025 $as_echo "$as_me: failed program was:" >&5
23026sed 's/^/| /' conftest.$ac_ext >&5
23027
23028 ac_cv_header_stat_broken=yes
23029fi
23030
23031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23032fi
23033{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
23034$as_echo "$ac_cv_header_stat_broken" >&6; }
23035if test $ac_cv_header_stat_broken = yes; then
23036
23037cat >>confdefs.h <<\_ACEOF
23038#define STAT_MACROS_BROKEN 1
23039_ACEOF
23040
23041fi
23042
23043{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23044$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23045if test "${ac_cv_header_time+set}" = set; then
23046 $as_echo_n "(cached) " >&6
23047else
23048 cat >conftest.$ac_ext <<_ACEOF
23049/* confdefs.h. */
23050_ACEOF
23051cat confdefs.h >>conftest.$ac_ext
23052cat >>conftest.$ac_ext <<_ACEOF
23053/* end confdefs.h. */
23054#include <sys/types.h>
23055#include <sys/time.h>
23056#include <time.h>
23057
23058int
23059main ()
23060{
23061if ((struct tm *) 0)
23062return 0;
23063 ;
23064 return 0;
23065}
23066_ACEOF
23067rm -f conftest.$ac_objext
23068if { (ac_try="$ac_compile"
23069case "(($ac_try" in
23070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071 *) ac_try_echo=$ac_try;;
23072esac
23073eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23074$as_echo "$ac_try_echo") >&5
23075 (eval "$ac_compile") 2>conftest.er1
23076 ac_status=$?
23077 grep -v '^ *+' conftest.er1 >conftest.err
23078 rm -f conftest.er1
23079 cat conftest.err >&5
23080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } && {
23082 test -z "$ac_c_werror_flag" ||
23083 test ! -s conftest.err
23084 } && test -s conftest.$ac_objext; then
23085 ac_cv_header_time=yes
23086else
23087 $as_echo "$as_me: failed program was:" >&5
23088sed 's/^/| /' conftest.$ac_ext >&5
23089
23090 ac_cv_header_time=no
23091fi
23092
23093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23094fi
23095{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23096$as_echo "$ac_cv_header_time" >&6; }
23097if test $ac_cv_header_time = yes; then
23098
23099cat >>confdefs.h <<\_ACEOF
23100#define TIME_WITH_SYS_TIME 1
23101_ACEOF
23102
23103fi
23104
23105{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23106$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
23107if test "${ac_cv_struct_tm+set}" = set; then
23108 $as_echo_n "(cached) " >&6
23109else
23110 cat >conftest.$ac_ext <<_ACEOF
23111/* confdefs.h. */
23112_ACEOF
23113cat confdefs.h >>conftest.$ac_ext
23114cat >>conftest.$ac_ext <<_ACEOF
23115/* end confdefs.h. */
23116#include <sys/types.h>
23117#include <time.h>
23118
23119int
23120main ()
23121{
23122struct tm tm;
23123 int *p = &tm.tm_sec;
23124 return !p;
23125 ;
23126 return 0;
23127}
23128_ACEOF
23129rm -f conftest.$ac_objext
23130if { (ac_try="$ac_compile"
23131case "(($ac_try" in
23132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23133 *) ac_try_echo=$ac_try;;
23134esac
23135eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23136$as_echo "$ac_try_echo") >&5
23137 (eval "$ac_compile") 2>conftest.er1
23138 ac_status=$?
23139 grep -v '^ *+' conftest.er1 >conftest.err
23140 rm -f conftest.er1
23141 cat conftest.err >&5
23142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23143 (exit $ac_status); } && {
23144 test -z "$ac_c_werror_flag" ||
23145 test ! -s conftest.err
23146 } && test -s conftest.$ac_objext; then
23147 ac_cv_struct_tm=time.h
23148else
23149 $as_echo "$as_me: failed program was:" >&5
23150sed 's/^/| /' conftest.$ac_ext >&5
23151
23152 ac_cv_struct_tm=sys/time.h
23153fi
23154
23155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23156fi
23157{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23158$as_echo "$ac_cv_struct_tm" >&6; }
23159if test $ac_cv_struct_tm = sys/time.h; then
23160
23161cat >>confdefs.h <<\_ACEOF
23162#define TM_IN_SYS_TIME 1
23163_ACEOF
23164
23165fi
23166
23167{ $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
23168$as_echo_n "checking whether #! works in shell scripts... " >&6; }
23169if test "${ac_cv_sys_interpreter+set}" = set; then
23170 $as_echo_n "(cached) " >&6
23171else
23172 echo '#! /bin/cat
23173exit 69
23174' >conftest
23175chmod u+x conftest
23176(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
23177if test $? -ne 69; then
23178 ac_cv_sys_interpreter=yes
23179else
23180 ac_cv_sys_interpreter=no
23181fi
23182rm -f conftest
23183fi
23184{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
23185$as_echo "$ac_cv_sys_interpreter" >&6; }
23186interpval=$ac_cv_sys_interpreter
23187
23188
23189# If the C compiler does not fully support the ANSI C qualifier const,
23190# define const to be empty.
23191{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23192$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23193if test "${ac_cv_c_const+set}" = set; then
23194 $as_echo_n "(cached) " >&6
23195else
23196 cat >conftest.$ac_ext <<_ACEOF
23197/* confdefs.h. */
23198_ACEOF
23199cat confdefs.h >>conftest.$ac_ext
23200cat >>conftest.$ac_ext <<_ACEOF
23201/* end confdefs.h. */
23202
23203int
23204main ()
23205{
23206/* FIXME: Include the comments suggested by Paul. */
23207#ifndef __cplusplus
23208 /* Ultrix mips cc rejects this. */
23209 typedef int charset[2];
23210 const charset cs;
23211 /* SunOS 4.1.1 cc rejects this. */
23212 char const *const *pcpcc;
23213 char **ppc;
23214 /* NEC SVR4.0.2 mips cc rejects this. */
23215 struct point {int x, y;};
23216 static struct point const zero = {0,0};
23217 /* AIX XL C 1.02.0.0 rejects this.
23218 It does not let you subtract one const X* pointer from another in
23219 an arm of an if-expression whose if-part is not a constant
23220 expression */
23221 const char *g = "string";
23222 pcpcc = &g + (g ? g-g : 0);
23223 /* HPUX 7.0 cc rejects these. */
23224 ++pcpcc;
23225 ppc = (char**) pcpcc;
23226 pcpcc = (char const *const *) ppc;
23227 { /* SCO 3.2v4 cc rejects this. */
23228 char *t;
23229 char const *s = 0 ? (char *) 0 : (char const *) 0;
23230
23231 *t++ = 0;
23232 if (s) return 0;
23233 }
23234 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23235 int x[] = {25, 17};
23236 const int *foo = &x[0];
23237 ++foo;
23238 }
23239 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23240 typedef const int *iptr;
23241 iptr p = 0;
23242 ++p;
23243 }
23244 { /* AIX XL C 1.02.0.0 rejects this saying
23245 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23246 struct s { int j; const int *ap[3]; };
23247 struct s *b; b->j = 5;
23248 }
23249 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23250 const int foo = 10;
23251 if (!foo) return 0;
23252 }
23253 return !cs[0] && !zero.x;
23254#endif
23255
23256 ;
23257 return 0;
23258}
23259_ACEOF
23260rm -f conftest.$ac_objext
23261if { (ac_try="$ac_compile"
23262case "(($ac_try" in
23263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23264 *) ac_try_echo=$ac_try;;
23265esac
23266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23267$as_echo "$ac_try_echo") >&5
23268 (eval "$ac_compile") 2>conftest.er1
23269 ac_status=$?
23270 grep -v '^ *+' conftest.er1 >conftest.err
23271 rm -f conftest.er1
23272 cat conftest.err >&5
23273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); } && {
23275 test -z "$ac_c_werror_flag" ||
23276 test ! -s conftest.err
23277 } && test -s conftest.$ac_objext; then
23278 ac_cv_c_const=yes
23279else
23280 $as_echo "$as_me: failed program was:" >&5
23281sed 's/^/| /' conftest.$ac_ext >&5
23282
23283 ac_cv_c_const=no
23284fi
23285
23286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23287fi
23288{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23289$as_echo "$ac_cv_c_const" >&6; }
23290if test $ac_cv_c_const = no; then
23291
23292cat >>confdefs.h <<\_ACEOF
23293#define const /**/
23294_ACEOF
23295
23296fi
23297
23298
23299# If the C compiler supports the keyword inline, do nothing. Otherwise
23300# define inline to __inline__ or __inline if it accepts one of those,
23301# otherwise define inline to be empty.
23302{ $as_echo "$as_me:$LINENO: checking for inline" >&5
23303$as_echo_n "checking for inline... " >&6; }
23304if test "${ac_cv_c_inline+set}" = set; then
23305 $as_echo_n "(cached) " >&6
23306else
23307 ac_cv_c_inline=no
23308for ac_kw in inline __inline__ __inline; do
23309 cat >conftest.$ac_ext <<_ACEOF
23310/* confdefs.h. */
23311_ACEOF
23312cat confdefs.h >>conftest.$ac_ext
23313cat >>conftest.$ac_ext <<_ACEOF
23314/* end confdefs.h. */
23315#ifndef __cplusplus
23316typedef int foo_t;
23317static $ac_kw foo_t static_foo () {return 0; }
23318$ac_kw foo_t foo () {return 0; }
23319#endif
23320
23321_ACEOF
23322rm -f conftest.$ac_objext
23323if { (ac_try="$ac_compile"
23324case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23327esac
23328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23329$as_echo "$ac_try_echo") >&5
23330 (eval "$ac_compile") 2>conftest.er1
23331 ac_status=$?
23332 grep -v '^ *+' conftest.er1 >conftest.err
23333 rm -f conftest.er1
23334 cat conftest.err >&5
23335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); } && {
23337 test -z "$ac_c_werror_flag" ||
23338 test ! -s conftest.err
23339 } && test -s conftest.$ac_objext; then
23340 ac_cv_c_inline=$ac_kw
23341else
23342 $as_echo "$as_me: failed program was:" >&5
23343sed 's/^/| /' conftest.$ac_ext >&5
23344
23345
23346fi
23347
23348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23349 test "$ac_cv_c_inline" != no && break
23350done
23351
23352fi
23353{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23354$as_echo "$ac_cv_c_inline" >&6; }
23355
23356
23357case $ac_cv_c_inline in
23358 inline | yes) ;;
23359 *)
23360 case $ac_cv_c_inline in
23361 no) ac_val=;;
23362 *) ac_val=$ac_cv_c_inline;;
23363 esac
23364 cat >>confdefs.h <<_ACEOF
23365#ifndef __cplusplus
23366#define inline $ac_val
23367#endif
23368_ACEOF
23369 ;;
23370esac
23371
23372
23373# If the C compiler supports the keyword restrict, do nothing. Otherwise
23374# define restrict to __restrict__ or __restrict if it accepts one of those,
23375# otherwise define restrict to be empty.
23376{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
23377$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
23378if test "${ac_cv_c_restrict+set}" = set; then
23379 $as_echo_n "(cached) " >&6
23380else
23381 ac_cv_c_restrict=no
23382 # The order here caters to the fact that C++ does not require restrict.
23383 for ac_kw in __restrict __restrict__ _Restrict restrict; do
23384 cat >conftest.$ac_ext <<_ACEOF
23385/* confdefs.h. */
23386_ACEOF
23387cat confdefs.h >>conftest.$ac_ext
23388cat >>conftest.$ac_ext <<_ACEOF
23389/* end confdefs.h. */
23390typedef int * int_ptr;
23391 int foo (int_ptr $ac_kw ip) {
23392 return ip[0];
23393 }
23394int
23395main ()
23396{
23397int s[1];
23398 int * $ac_kw t = s;
23399 t[0] = 0;
23400 return foo(t)
23401 ;
23402 return 0;
23403}
23404_ACEOF
23405rm -f conftest.$ac_objext
23406if { (ac_try="$ac_compile"
23407case "(($ac_try" in
23408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409 *) ac_try_echo=$ac_try;;
23410esac
23411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23412$as_echo "$ac_try_echo") >&5
23413 (eval "$ac_compile") 2>conftest.er1
23414 ac_status=$?
23415 grep -v '^ *+' conftest.er1 >conftest.err
23416 rm -f conftest.er1
23417 cat conftest.err >&5
23418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } && {
23420 test -z "$ac_c_werror_flag" ||
23421 test ! -s conftest.err
23422 } && test -s conftest.$ac_objext; then
23423 ac_cv_c_restrict=$ac_kw
23424else
23425 $as_echo "$as_me: failed program was:" >&5
23426sed 's/^/| /' conftest.$ac_ext >&5
23427
23428
23429fi
23430
23431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23432 test "$ac_cv_c_restrict" != no && break
23433 done
23434
23435fi
23436{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
23437$as_echo "$ac_cv_c_restrict" >&6; }
23438
23439
23440 case $ac_cv_c_restrict in
23441 restrict) ;;
23442 no) cat >>confdefs.h <<\_ACEOF
23443#define restrict /**/
23444_ACEOF
23445 ;;
23446 *) cat >>confdefs.h <<_ACEOF
23447#define restrict $ac_cv_c_restrict
23448_ACEOF
23449 ;;
23450 esac
23451
23452
23453# If words are stored with the most significant byte first (like
23454# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
23455
23456 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23457$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23458if test "${ac_cv_c_bigendian+set}" = set; then
23459 $as_echo_n "(cached) " >&6
23460else
23461 ac_cv_c_bigendian=unknown
23462 # See if we're dealing with a universal compiler.
23463 cat >conftest.$ac_ext <<_ACEOF
23464/* confdefs.h. */
23465_ACEOF
23466cat confdefs.h >>conftest.$ac_ext
23467cat >>conftest.$ac_ext <<_ACEOF
23468/* end confdefs.h. */
23469#ifndef __APPLE_CC__
23470 not a universal capable compiler
23471 #endif
23472 typedef int dummy;
23473
23474_ACEOF
23475rm -f conftest.$ac_objext
23476if { (ac_try="$ac_compile"
23477case "(($ac_try" in
23478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23479 *) ac_try_echo=$ac_try;;
23480esac
23481eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23482$as_echo "$ac_try_echo") >&5
23483 (eval "$ac_compile") 2>conftest.er1
23484 ac_status=$?
23485 grep -v '^ *+' conftest.er1 >conftest.err
23486 rm -f conftest.er1
23487 cat conftest.err >&5
23488 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23489 (exit $ac_status); } && {
23490 test -z "$ac_c_werror_flag" ||
23491 test ! -s conftest.err
23492 } && test -s conftest.$ac_objext; then
23493
23494 # Check for potential -arch flags. It is not universal unless
23495 # there are some -arch flags. Note that *ppc* also matches
23496 # ppc64. This check is also rather less than ideal.
23497 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
23498 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
23499 esac
23500else
23501 $as_echo "$as_me: failed program was:" >&5
23502sed 's/^/| /' conftest.$ac_ext >&5
23503
23504
23505fi
23506
23507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23508 if test $ac_cv_c_bigendian = unknown; then
23509 # See if sys/param.h defines the BYTE_ORDER macro.
23510 cat >conftest.$ac_ext <<_ACEOF
23511/* confdefs.h. */
23512_ACEOF
23513cat confdefs.h >>conftest.$ac_ext
23514cat >>conftest.$ac_ext <<_ACEOF
23515/* end confdefs.h. */
23516#include <sys/types.h>
23517 #include <sys/param.h>
23518
23519int
23520main ()
23521{
23522#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23523 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23524 && LITTLE_ENDIAN)
23525 bogus endian macros
23526 #endif
23527
23528 ;
23529 return 0;
23530}
23531_ACEOF
23532rm -f conftest.$ac_objext
23533if { (ac_try="$ac_compile"
23534case "(($ac_try" in
23535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23536 *) ac_try_echo=$ac_try;;
23537esac
23538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23539$as_echo "$ac_try_echo") >&5
23540 (eval "$ac_compile") 2>conftest.er1
23541 ac_status=$?
23542 grep -v '^ *+' conftest.er1 >conftest.err
23543 rm -f conftest.er1
23544 cat conftest.err >&5
23545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); } && {
23547 test -z "$ac_c_werror_flag" ||
23548 test ! -s conftest.err
23549 } && test -s conftest.$ac_objext; then
23550 # It does; now see whether it defined to BIG_ENDIAN or not.
23551 cat >conftest.$ac_ext <<_ACEOF
23552/* confdefs.h. */
23553_ACEOF
23554cat confdefs.h >>conftest.$ac_ext
23555cat >>conftest.$ac_ext <<_ACEOF
23556/* end confdefs.h. */
23557#include <sys/types.h>
23558 #include <sys/param.h>
23559
23560int
23561main ()
23562{
23563#if BYTE_ORDER != BIG_ENDIAN
23564 not big endian
23565 #endif
23566
23567 ;
23568 return 0;
23569}
23570_ACEOF
23571rm -f conftest.$ac_objext
23572if { (ac_try="$ac_compile"
23573case "(($ac_try" in
23574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575 *) ac_try_echo=$ac_try;;
23576esac
23577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23578$as_echo "$ac_try_echo") >&5
23579 (eval "$ac_compile") 2>conftest.er1
23580 ac_status=$?
23581 grep -v '^ *+' conftest.er1 >conftest.err
23582 rm -f conftest.er1
23583 cat conftest.err >&5
23584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } && {
23586 test -z "$ac_c_werror_flag" ||
23587 test ! -s conftest.err
23588 } && test -s conftest.$ac_objext; then
23589 ac_cv_c_bigendian=yes
23590else
23591 $as_echo "$as_me: failed program was:" >&5
23592sed 's/^/| /' conftest.$ac_ext >&5
23593
23594 ac_cv_c_bigendian=no
23595fi
23596
23597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23598else
23599 $as_echo "$as_me: failed program was:" >&5
23600sed 's/^/| /' conftest.$ac_ext >&5
23601
23602
23603fi
23604
23605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23606 fi
23607 if test $ac_cv_c_bigendian = unknown; then
23608 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23609 cat >conftest.$ac_ext <<_ACEOF
23610/* confdefs.h. */
23611_ACEOF
23612cat confdefs.h >>conftest.$ac_ext
23613cat >>conftest.$ac_ext <<_ACEOF
23614/* end confdefs.h. */
23615#include <limits.h>
23616
23617int
23618main ()
23619{
23620#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23621 bogus endian macros
23622 #endif
23623
23624 ;
23625 return 0;
23626}
23627_ACEOF
23628rm -f conftest.$ac_objext
23629if { (ac_try="$ac_compile"
23630case "(($ac_try" in
23631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23632 *) ac_try_echo=$ac_try;;
23633esac
23634eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23635$as_echo "$ac_try_echo") >&5
23636 (eval "$ac_compile") 2>conftest.er1
23637 ac_status=$?
23638 grep -v '^ *+' conftest.er1 >conftest.err
23639 rm -f conftest.er1
23640 cat conftest.err >&5
23641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); } && {
23643 test -z "$ac_c_werror_flag" ||
23644 test ! -s conftest.err
23645 } && test -s conftest.$ac_objext; then
23646 # It does; now see whether it defined to _BIG_ENDIAN or not.
23647 cat >conftest.$ac_ext <<_ACEOF
23648/* confdefs.h. */
23649_ACEOF
23650cat confdefs.h >>conftest.$ac_ext
23651cat >>conftest.$ac_ext <<_ACEOF
23652/* end confdefs.h. */
23653#include <limits.h>
23654
23655int
23656main ()
23657{
23658#ifndef _BIG_ENDIAN
23659 not big endian
23660 #endif
23661
23662 ;
23663 return 0;
23664}
23665_ACEOF
23666rm -f conftest.$ac_objext
23667if { (ac_try="$ac_compile"
23668case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23671esac
23672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23673$as_echo "$ac_try_echo") >&5
23674 (eval "$ac_compile") 2>conftest.er1
23675 ac_status=$?
23676 grep -v '^ *+' conftest.er1 >conftest.err
23677 rm -f conftest.er1
23678 cat conftest.err >&5
23679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); } && {
23681 test -z "$ac_c_werror_flag" ||
23682 test ! -s conftest.err
23683 } && test -s conftest.$ac_objext; then
23684 ac_cv_c_bigendian=yes
23685else
23686 $as_echo "$as_me: failed program was:" >&5
23687sed 's/^/| /' conftest.$ac_ext >&5
23688
23689 ac_cv_c_bigendian=no
23690fi
23691
23692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23693else
23694 $as_echo "$as_me: failed program was:" >&5
23695sed 's/^/| /' conftest.$ac_ext >&5
23696
23697
23698fi
23699
23700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23701 fi
23702 if test $ac_cv_c_bigendian = unknown; then
23703 # Compile a test program.
23704 if test "$cross_compiling" = yes; then
23705 # Try to guess by grepping values from an object file.
23706 cat >conftest.$ac_ext <<_ACEOF
23707/* confdefs.h. */
23708_ACEOF
23709cat confdefs.h >>conftest.$ac_ext
23710cat >>conftest.$ac_ext <<_ACEOF
23711/* end confdefs.h. */
23712short int ascii_mm[] =
23713 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23714 short int ascii_ii[] =
23715 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23716 int use_ascii (int i) {
23717 return ascii_mm[i] + ascii_ii[i];
23718 }
23719 short int ebcdic_ii[] =
23720 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23721 short int ebcdic_mm[] =
23722 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23723 int use_ebcdic (int i) {
23724 return ebcdic_mm[i] + ebcdic_ii[i];
23725 }
23726 extern int foo;
23727
23728int
23729main ()
23730{
23731return use_ascii (foo) == use_ebcdic (foo);
23732 ;
23733 return 0;
23734}
23735_ACEOF
23736rm -f conftest.$ac_objext
23737if { (ac_try="$ac_compile"
23738case "(($ac_try" in
23739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23740 *) ac_try_echo=$ac_try;;
23741esac
23742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23743$as_echo "$ac_try_echo") >&5
23744 (eval "$ac_compile") 2>conftest.er1
23745 ac_status=$?
23746 grep -v '^ *+' conftest.er1 >conftest.err
23747 rm -f conftest.er1
23748 cat conftest.err >&5
23749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); } && {
23751 test -z "$ac_c_werror_flag" ||
23752 test ! -s conftest.err
23753 } && test -s conftest.$ac_objext; then
23754 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23755 ac_cv_c_bigendian=yes
23756 fi
23757 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23758 if test "$ac_cv_c_bigendian" = unknown; then
23759 ac_cv_c_bigendian=no
23760 else
23761 # finding both strings is unlikely to happen, but who knows?
23762 ac_cv_c_bigendian=unknown
23763 fi
23764 fi
23765else
23766 $as_echo "$as_me: failed program was:" >&5
23767sed 's/^/| /' conftest.$ac_ext >&5
23768
23769
23770fi
23771
23772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773else
23774 cat >conftest.$ac_ext <<_ACEOF
23775/* confdefs.h. */
23776_ACEOF
23777cat confdefs.h >>conftest.$ac_ext
23778cat >>conftest.$ac_ext <<_ACEOF
23779/* end confdefs.h. */
23780$ac_includes_default
23781int
23782main ()
23783{
23784
23785 /* Are we little or big endian? From Harbison&Steele. */
23786 union
23787 {
23788 long int l;
23789 char c[sizeof (long int)];
23790 } u;
23791 u.l = 1;
23792 return u.c[sizeof (long int) - 1] == 1;
23793
23794 ;
23795 return 0;
23796}
23797_ACEOF
23798rm -f conftest$ac_exeext
23799if { (ac_try="$ac_link"
23800case "(($ac_try" in
23801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23802 *) ac_try_echo=$ac_try;;
23803esac
23804eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23805$as_echo "$ac_try_echo") >&5
23806 (eval "$ac_link") 2>&5
23807 ac_status=$?
23808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23810 { (case "(($ac_try" in
23811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23812 *) ac_try_echo=$ac_try;;
23813esac
23814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23815$as_echo "$ac_try_echo") >&5
23816 (eval "$ac_try") 2>&5
23817 ac_status=$?
23818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); }; }; then
23820 ac_cv_c_bigendian=no
23821else
23822 $as_echo "$as_me: program exited with status $ac_status" >&5
23823$as_echo "$as_me: failed program was:" >&5
23824sed 's/^/| /' conftest.$ac_ext >&5
23825
23826( exit $ac_status )
23827ac_cv_c_bigendian=yes
23828fi
23829rm -rf conftest.dSYM
23830rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23831fi
23832
23833
23834 fi
23835fi
23836{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23837$as_echo "$ac_cv_c_bigendian" >&6; }
23838 case $ac_cv_c_bigendian in #(
23839 yes)
23840 cat >>confdefs.h <<\_ACEOF
23841#define WORDS_BIGENDIAN 1
23842_ACEOF
23843;; #(
23844 no)
23845 ;; #(
23846 universal)
23847
23848cat >>confdefs.h <<\_ACEOF
23849#define AC_APPLE_UNIVERSAL_BUILD 1
23850_ACEOF
23851
23852 ;; #(
23853 *)
23854 { { $as_echo "$as_me:$LINENO: error: unknown endianness
23855 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23856$as_echo "$as_me: error: unknown endianness
23857 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23858 { (exit 1); exit 1; }; } ;;
23859 esac
23860
23861
23862# Define mode_t to a suitable type, if standard headers do not define it.
23863{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
23864$as_echo_n "checking for mode_t... " >&6; }
23865if test "${ac_cv_type_mode_t+set}" = set; then
23866 $as_echo_n "(cached) " >&6
23867else
23868 ac_cv_type_mode_t=no
23869cat >conftest.$ac_ext <<_ACEOF
23870/* confdefs.h. */
23871_ACEOF
23872cat confdefs.h >>conftest.$ac_ext
23873cat >>conftest.$ac_ext <<_ACEOF
23874/* end confdefs.h. */
23875$ac_includes_default
23876int
23877main ()
23878{
23879if (sizeof (mode_t))
23880 return 0;
23881 ;
23882 return 0;
23883}
23884_ACEOF
23885rm -f conftest.$ac_objext
23886if { (ac_try="$ac_compile"
23887case "(($ac_try" in
23888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23889 *) ac_try_echo=$ac_try;;
23890esac
23891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23892$as_echo "$ac_try_echo") >&5
23893 (eval "$ac_compile") 2>conftest.er1
23894 ac_status=$?
23895 grep -v '^ *+' conftest.er1 >conftest.err
23896 rm -f conftest.er1
23897 cat conftest.err >&5
23898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23899 (exit $ac_status); } && {
23900 test -z "$ac_c_werror_flag" ||
23901 test ! -s conftest.err
23902 } && test -s conftest.$ac_objext; then
23903 cat >conftest.$ac_ext <<_ACEOF
23904/* confdefs.h. */
23905_ACEOF
23906cat confdefs.h >>conftest.$ac_ext
23907cat >>conftest.$ac_ext <<_ACEOF
23908/* end confdefs.h. */
23909$ac_includes_default
23910int
23911main ()
23912{
23913if (sizeof ((mode_t)))
23914 return 0;
23915 ;
23916 return 0;
23917}
23918_ACEOF
23919rm -f conftest.$ac_objext
23920if { (ac_try="$ac_compile"
23921case "(($ac_try" in
23922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23923 *) ac_try_echo=$ac_try;;
23924esac
23925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23926$as_echo "$ac_try_echo") >&5
23927 (eval "$ac_compile") 2>conftest.er1
23928 ac_status=$?
23929 grep -v '^ *+' conftest.er1 >conftest.err
23930 rm -f conftest.er1
23931 cat conftest.err >&5
23932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23933 (exit $ac_status); } && {
23934 test -z "$ac_c_werror_flag" ||
23935 test ! -s conftest.err
23936 } && test -s conftest.$ac_objext; then
23937 :
23938else
23939 $as_echo "$as_me: failed program was:" >&5
23940sed 's/^/| /' conftest.$ac_ext >&5
23941
23942 ac_cv_type_mode_t=yes
23943fi
23944
23945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23946else
23947 $as_echo "$as_me: failed program was:" >&5
23948sed 's/^/| /' conftest.$ac_ext >&5
23949
23950
23951fi
23952
23953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23954fi
23955{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
23956$as_echo "$ac_cv_type_mode_t" >&6; }
23957if test "x$ac_cv_type_mode_t" = x""yes; then
23958 :
23959else
23960
23961cat >>confdefs.h <<_ACEOF
23962#define mode_t int
23963_ACEOF
23964
23965fi
23966
23967
23968# Define off_t to a suitable type, if standard headers do not define it.
23969{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
23970$as_echo_n "checking for off_t... " >&6; }
23971if test "${ac_cv_type_off_t+set}" = set; then
23972 $as_echo_n "(cached) " >&6
23973else
23974 ac_cv_type_off_t=no
23975cat >conftest.$ac_ext <<_ACEOF
23976/* confdefs.h. */
23977_ACEOF
23978cat confdefs.h >>conftest.$ac_ext
23979cat >>conftest.$ac_ext <<_ACEOF
23980/* end confdefs.h. */
23981$ac_includes_default
23982int
23983main ()
23984{
23985if (sizeof (off_t))
23986 return 0;
23987 ;
23988 return 0;
23989}
23990_ACEOF
23991rm -f conftest.$ac_objext
23992if { (ac_try="$ac_compile"
23993case "(($ac_try" in
23994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23995 *) ac_try_echo=$ac_try;;
23996esac
23997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23998$as_echo "$ac_try_echo") >&5
23999 (eval "$ac_compile") 2>conftest.er1
24000 ac_status=$?
24001 grep -v '^ *+' conftest.er1 >conftest.err
24002 rm -f conftest.er1
24003 cat conftest.err >&5
24004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } && {
24006 test -z "$ac_c_werror_flag" ||
24007 test ! -s conftest.err
24008 } && test -s conftest.$ac_objext; then
24009 cat >conftest.$ac_ext <<_ACEOF
24010/* confdefs.h. */
24011_ACEOF
24012cat confdefs.h >>conftest.$ac_ext
24013cat >>conftest.$ac_ext <<_ACEOF
24014/* end confdefs.h. */
24015$ac_includes_default
24016int
24017main ()
24018{
24019if (sizeof ((off_t)))
24020 return 0;
24021 ;
24022 return 0;
24023}
24024_ACEOF
24025rm -f conftest.$ac_objext
24026if { (ac_try="$ac_compile"
24027case "(($ac_try" in
24028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24029 *) ac_try_echo=$ac_try;;
24030esac
24031eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24032$as_echo "$ac_try_echo") >&5
24033 (eval "$ac_compile") 2>conftest.er1
24034 ac_status=$?
24035 grep -v '^ *+' conftest.er1 >conftest.err
24036 rm -f conftest.er1
24037 cat conftest.err >&5
24038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } && {
24040 test -z "$ac_c_werror_flag" ||
24041 test ! -s conftest.err
24042 } && test -s conftest.$ac_objext; then
24043 :
24044else
24045 $as_echo "$as_me: failed program was:" >&5
24046sed 's/^/| /' conftest.$ac_ext >&5
24047
24048 ac_cv_type_off_t=yes
24049fi
24050
24051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24052else
24053 $as_echo "$as_me: failed program was:" >&5
24054sed 's/^/| /' conftest.$ac_ext >&5
24055
24056
24057fi
24058
24059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24060fi
24061{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24062$as_echo "$ac_cv_type_off_t" >&6; }
24063if test "x$ac_cv_type_off_t" = x""yes; then
24064 :
24065else
24066
24067cat >>confdefs.h <<_ACEOF
24068#define off_t long int
24069_ACEOF
24070
24071fi
24072
24073
24074# Define pid_t to a suitable type, if standard headers do not define it.
24075{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24076$as_echo_n "checking for pid_t... " >&6; }
24077if test "${ac_cv_type_pid_t+set}" = set; then
24078 $as_echo_n "(cached) " >&6
24079else
24080 ac_cv_type_pid_t=no
24081cat >conftest.$ac_ext <<_ACEOF
24082/* confdefs.h. */
24083_ACEOF
24084cat confdefs.h >>conftest.$ac_ext
24085cat >>conftest.$ac_ext <<_ACEOF
24086/* end confdefs.h. */
24087$ac_includes_default
24088int
24089main ()
24090{
24091if (sizeof (pid_t))
24092 return 0;
24093 ;
24094 return 0;
24095}
24096_ACEOF
24097rm -f conftest.$ac_objext
24098if { (ac_try="$ac_compile"
24099case "(($ac_try" in
24100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24101 *) ac_try_echo=$ac_try;;
24102esac
24103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24104$as_echo "$ac_try_echo") >&5
24105 (eval "$ac_compile") 2>conftest.er1
24106 ac_status=$?
24107 grep -v '^ *+' conftest.er1 >conftest.err
24108 rm -f conftest.er1
24109 cat conftest.err >&5
24110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); } && {
24112 test -z "$ac_c_werror_flag" ||
24113 test ! -s conftest.err
24114 } && test -s conftest.$ac_objext; then
24115 cat >conftest.$ac_ext <<_ACEOF
24116/* confdefs.h. */
24117_ACEOF
24118cat confdefs.h >>conftest.$ac_ext
24119cat >>conftest.$ac_ext <<_ACEOF
24120/* end confdefs.h. */
24121$ac_includes_default
24122int
24123main ()
24124{
24125if (sizeof ((pid_t)))
24126 return 0;
24127 ;
24128 return 0;
24129}
24130_ACEOF
24131rm -f conftest.$ac_objext
24132if { (ac_try="$ac_compile"
24133case "(($ac_try" in
24134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24135 *) ac_try_echo=$ac_try;;
24136esac
24137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24138$as_echo "$ac_try_echo") >&5
24139 (eval "$ac_compile") 2>conftest.er1
24140 ac_status=$?
24141 grep -v '^ *+' conftest.er1 >conftest.err
24142 rm -f conftest.er1
24143 cat conftest.err >&5
24144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24145 (exit $ac_status); } && {
24146 test -z "$ac_c_werror_flag" ||
24147 test ! -s conftest.err
24148 } && test -s conftest.$ac_objext; then
24149 :
24150else
24151 $as_echo "$as_me: failed program was:" >&5
24152sed 's/^/| /' conftest.$ac_ext >&5
24153
24154 ac_cv_type_pid_t=yes
24155fi
24156
24157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24158else
24159 $as_echo "$as_me: failed program was:" >&5
24160sed 's/^/| /' conftest.$ac_ext >&5
24161
24162
24163fi
24164
24165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24166fi
24167{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24168$as_echo "$ac_cv_type_pid_t" >&6; }
24169if test "x$ac_cv_type_pid_t" = x""yes; then
24170 :
24171else
24172
24173cat >>confdefs.h <<_ACEOF
24174#define pid_t int
24175_ACEOF
24176
24177fi
24178
24179
24180# Define size_t to a suitable type, if standard headers do not define it.
24181{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
24182$as_echo_n "checking for size_t... " >&6; }
24183if test "${ac_cv_type_size_t+set}" = set; then
24184 $as_echo_n "(cached) " >&6
24185else
24186 ac_cv_type_size_t=no
24187cat >conftest.$ac_ext <<_ACEOF
24188/* confdefs.h. */
24189_ACEOF
24190cat confdefs.h >>conftest.$ac_ext
24191cat >>conftest.$ac_ext <<_ACEOF
24192/* end confdefs.h. */
24193$ac_includes_default
24194int
24195main ()
24196{
24197if (sizeof (size_t))
24198 return 0;
24199 ;
24200 return 0;
24201}
24202_ACEOF
24203rm -f conftest.$ac_objext
24204if { (ac_try="$ac_compile"
24205case "(($ac_try" in
24206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24207 *) ac_try_echo=$ac_try;;
24208esac
24209eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24210$as_echo "$ac_try_echo") >&5
24211 (eval "$ac_compile") 2>conftest.er1
24212 ac_status=$?
24213 grep -v '^ *+' conftest.er1 >conftest.err
24214 rm -f conftest.er1
24215 cat conftest.err >&5
24216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24217 (exit $ac_status); } && {
24218 test -z "$ac_c_werror_flag" ||
24219 test ! -s conftest.err
24220 } && test -s conftest.$ac_objext; then
24221 cat >conftest.$ac_ext <<_ACEOF
24222/* confdefs.h. */
24223_ACEOF
24224cat confdefs.h >>conftest.$ac_ext
24225cat >>conftest.$ac_ext <<_ACEOF
24226/* end confdefs.h. */
24227$ac_includes_default
24228int
24229main ()
24230{
24231if (sizeof ((size_t)))
24232 return 0;
24233 ;
24234 return 0;
24235}
24236_ACEOF
24237rm -f conftest.$ac_objext
24238if { (ac_try="$ac_compile"
24239case "(($ac_try" in
24240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24241 *) ac_try_echo=$ac_try;;
24242esac
24243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24244$as_echo "$ac_try_echo") >&5
24245 (eval "$ac_compile") 2>conftest.er1
24246 ac_status=$?
24247 grep -v '^ *+' conftest.er1 >conftest.err
24248 rm -f conftest.er1
24249 cat conftest.err >&5
24250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24251 (exit $ac_status); } && {
24252 test -z "$ac_c_werror_flag" ||
24253 test ! -s conftest.err
24254 } && test -s conftest.$ac_objext; then
24255 :
24256else
24257 $as_echo "$as_me: failed program was:" >&5
24258sed 's/^/| /' conftest.$ac_ext >&5
24259
24260 ac_cv_type_size_t=yes
24261fi
24262
24263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24264else
24265 $as_echo "$as_me: failed program was:" >&5
24266sed 's/^/| /' conftest.$ac_ext >&5
24267
24268
24269fi
24270
24271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24272fi
24273{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24274$as_echo "$ac_cv_type_size_t" >&6; }
24275if test "x$ac_cv_type_size_t" = x""yes; then
24276 :
24277else
24278
24279cat >>confdefs.h <<_ACEOF
24280#define size_t unsigned int
24281_ACEOF
24282
24283fi
24284
24285
24286# Define ssize_t to a suitable type, if standard headers do not define it.
24287{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
24288$as_echo_n "checking for ssize_t... " >&6; }
24289if test "${ac_cv_type_ssize_t+set}" = set; then
24290 $as_echo_n "(cached) " >&6
24291else
24292 ac_cv_type_ssize_t=no
24293cat >conftest.$ac_ext <<_ACEOF
24294/* confdefs.h. */
24295_ACEOF
24296cat confdefs.h >>conftest.$ac_ext
24297cat >>conftest.$ac_ext <<_ACEOF
24298/* end confdefs.h. */
24299$ac_includes_default
24300int
24301main ()
24302{
24303if (sizeof (ssize_t))
24304 return 0;
24305 ;
24306 return 0;
24307}
24308_ACEOF
24309rm -f conftest.$ac_objext
24310if { (ac_try="$ac_compile"
24311case "(($ac_try" in
24312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24313 *) ac_try_echo=$ac_try;;
24314esac
24315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24316$as_echo "$ac_try_echo") >&5
24317 (eval "$ac_compile") 2>conftest.er1
24318 ac_status=$?
24319 grep -v '^ *+' conftest.er1 >conftest.err
24320 rm -f conftest.er1
24321 cat conftest.err >&5
24322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24323 (exit $ac_status); } && {
24324 test -z "$ac_c_werror_flag" ||
24325 test ! -s conftest.err
24326 } && test -s conftest.$ac_objext; then
24327 cat >conftest.$ac_ext <<_ACEOF
24328/* confdefs.h. */
24329_ACEOF
24330cat confdefs.h >>conftest.$ac_ext
24331cat >>conftest.$ac_ext <<_ACEOF
24332/* end confdefs.h. */
24333$ac_includes_default
24334int
24335main ()
24336{
24337if (sizeof ((ssize_t)))
24338 return 0;
24339 ;
24340 return 0;
24341}
24342_ACEOF
24343rm -f conftest.$ac_objext
24344if { (ac_try="$ac_compile"
24345case "(($ac_try" in
24346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347 *) ac_try_echo=$ac_try;;
24348esac
24349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24350$as_echo "$ac_try_echo") >&5
24351 (eval "$ac_compile") 2>conftest.er1
24352 ac_status=$?
24353 grep -v '^ *+' conftest.er1 >conftest.err
24354 rm -f conftest.er1
24355 cat conftest.err >&5
24356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24357 (exit $ac_status); } && {
24358 test -z "$ac_c_werror_flag" ||
24359 test ! -s conftest.err
24360 } && test -s conftest.$ac_objext; then
24361 :
24362else
24363 $as_echo "$as_me: failed program was:" >&5
24364sed 's/^/| /' conftest.$ac_ext >&5
24365
24366 ac_cv_type_ssize_t=yes
24367fi
24368
24369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24370else
24371 $as_echo "$as_me: failed program was:" >&5
24372sed 's/^/| /' conftest.$ac_ext >&5
24373
24374
24375fi
24376
24377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24378fi
24379{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
24380$as_echo "$ac_cv_type_ssize_t" >&6; }
24381if test "x$ac_cv_type_ssize_t" = x""yes; then
24382 :
24383else
24384
24385cat >>confdefs.h <<_ACEOF
24386#define ssize_t int
24387_ACEOF
24388
24389fi
24390
24391
24392# If the C compiler supports a working long double type with more range
24393# or precision than the double type, define HAVE_LONG_DOUBLE.
24394
24395 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
24396$as_echo_n "checking for long double with more range or precision than double... " >&6; }
24397if test "${ac_cv_type_long_double_wider+set}" = set; then
24398 $as_echo_n "(cached) " >&6
24399else
24400 cat >conftest.$ac_ext <<_ACEOF
24401/* confdefs.h. */
24402_ACEOF
24403cat confdefs.h >>conftest.$ac_ext
24404cat >>conftest.$ac_ext <<_ACEOF
24405/* end confdefs.h. */
24406#include <float.h>
24407 long double const a[] =
24408 {
24409 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
24410 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
24411 };
24412 long double
24413 f (long double x)
24414 {
24415 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
24416 + (x ? f (x) : 'c'));
24417 }
24418
24419int
24420main ()
24421{
24422static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
24423 + (DBL_MANT_DIG < LDBL_MANT_DIG)
24424 - (LDBL_MAX_EXP < DBL_MAX_EXP)
24425 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
24426 && (int) LDBL_EPSILON == 0
24427 )];
24428test_array [0] = 0
24429
24430 ;
24431 return 0;
24432}
24433_ACEOF
24434rm -f conftest.$ac_objext
24435if { (ac_try="$ac_compile"
24436case "(($ac_try" in
24437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438 *) ac_try_echo=$ac_try;;
24439esac
24440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24441$as_echo "$ac_try_echo") >&5
24442 (eval "$ac_compile") 2>conftest.er1
24443 ac_status=$?
24444 grep -v '^ *+' conftest.er1 >conftest.err
24445 rm -f conftest.er1
24446 cat conftest.err >&5
24447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); } && {
24449 test -z "$ac_c_werror_flag" ||
24450 test ! -s conftest.err
24451 } && test -s conftest.$ac_objext; then
24452 ac_cv_type_long_double_wider=yes
24453else
24454 $as_echo "$as_me: failed program was:" >&5
24455sed 's/^/| /' conftest.$ac_ext >&5
24456
24457 ac_cv_type_long_double_wider=no
24458fi
24459
24460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24461fi
24462{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
24463$as_echo "$ac_cv_type_long_double_wider" >&6; }
24464 if test $ac_cv_type_long_double_wider = yes; then
24465
24466cat >>confdefs.h <<\_ACEOF
24467#define HAVE_LONG_DOUBLE_WIDER 1
24468_ACEOF
24469
24470 fi
24471
24472
24473# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
24474# C compiler predefines it.
24475
24476{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
24477$as_echo_n "checking whether char is unsigned... " >&6; }
24478if test "${ac_cv_c_char_unsigned+set}" = set; then
24479 $as_echo_n "(cached) " >&6
24480else
24481 cat >conftest.$ac_ext <<_ACEOF
24482/* confdefs.h. */
24483_ACEOF
24484cat confdefs.h >>conftest.$ac_ext
24485cat >>conftest.$ac_ext <<_ACEOF
24486/* end confdefs.h. */
24487$ac_includes_default
24488int
24489main ()
24490{
24491static int test_array [1 - 2 * !(((char) -1) < 0)];
24492test_array [0] = 0
24493
24494 ;
24495 return 0;
24496}
24497_ACEOF
24498rm -f conftest.$ac_objext
24499if { (ac_try="$ac_compile"
24500case "(($ac_try" in
24501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502 *) ac_try_echo=$ac_try;;
24503esac
24504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24505$as_echo "$ac_try_echo") >&5
24506 (eval "$ac_compile") 2>conftest.er1
24507 ac_status=$?
24508 grep -v '^ *+' conftest.er1 >conftest.err
24509 rm -f conftest.er1
24510 cat conftest.err >&5
24511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24512 (exit $ac_status); } && {
24513 test -z "$ac_c_werror_flag" ||
24514 test ! -s conftest.err
24515 } && test -s conftest.$ac_objext; then
24516 ac_cv_c_char_unsigned=no
24517else
24518 $as_echo "$as_me: failed program was:" >&5
24519sed 's/^/| /' conftest.$ac_ext >&5
24520
24521 ac_cv_c_char_unsigned=yes
24522fi
24523
24524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24525fi
24526{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
24527$as_echo "$ac_cv_c_char_unsigned" >&6; }
24528if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
24529 cat >>confdefs.h <<\_ACEOF
24530#define __CHAR_UNSIGNED__ 1
24531_ACEOF
24532
24533fi
24534
24535
24536# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24537# The cast to long int works around a bug in the HP C Compiler
24538# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24539# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24540# This bug is HP SR number 8606223364.
24541{ $as_echo "$as_me:$LINENO: checking size of signed short" >&5
24542$as_echo_n "checking size of signed short... " >&6; }
24543if test "${ac_cv_sizeof_signed_short+set}" = set; then
24544 $as_echo_n "(cached) " >&6
24545else
24546 if test "$cross_compiling" = yes; then
24547 # Depending upon the size, compute the lo and hi bounds.
24548cat >conftest.$ac_ext <<_ACEOF
24549/* confdefs.h. */
24550_ACEOF
24551cat confdefs.h >>conftest.$ac_ext
24552cat >>conftest.$ac_ext <<_ACEOF
24553/* end confdefs.h. */
24554$ac_includes_default
24555int
24556main ()
24557{
24558static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
24559test_array [0] = 0
24560
24561 ;
24562 return 0;
24563}
24564_ACEOF
24565rm -f conftest.$ac_objext
24566if { (ac_try="$ac_compile"
24567case "(($ac_try" in
24568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24569 *) ac_try_echo=$ac_try;;
24570esac
24571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24572$as_echo "$ac_try_echo") >&5
24573 (eval "$ac_compile") 2>conftest.er1
24574 ac_status=$?
24575 grep -v '^ *+' conftest.er1 >conftest.err
24576 rm -f conftest.er1
24577 cat conftest.err >&5
24578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); } && {
24580 test -z "$ac_c_werror_flag" ||
24581 test ! -s conftest.err
24582 } && test -s conftest.$ac_objext; then
24583 ac_lo=0 ac_mid=0
24584 while :; do
24585 cat >conftest.$ac_ext <<_ACEOF
24586/* confdefs.h. */
24587_ACEOF
24588cat confdefs.h >>conftest.$ac_ext
24589cat >>conftest.$ac_ext <<_ACEOF
24590/* end confdefs.h. */
24591$ac_includes_default
24592int
24593main ()
24594{
24595static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
24596test_array [0] = 0
24597
24598 ;
24599 return 0;
24600}
24601_ACEOF
24602rm -f conftest.$ac_objext
24603if { (ac_try="$ac_compile"
24604case "(($ac_try" in
24605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24606 *) ac_try_echo=$ac_try;;
24607esac
24608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24609$as_echo "$ac_try_echo") >&5
24610 (eval "$ac_compile") 2>conftest.er1
24611 ac_status=$?
24612 grep -v '^ *+' conftest.er1 >conftest.err
24613 rm -f conftest.er1
24614 cat conftest.err >&5
24615 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24616 (exit $ac_status); } && {
24617 test -z "$ac_c_werror_flag" ||
24618 test ! -s conftest.err
24619 } && test -s conftest.$ac_objext; then
24620 ac_hi=$ac_mid; break
24621else
24622 $as_echo "$as_me: failed program was:" >&5
24623sed 's/^/| /' conftest.$ac_ext >&5
24624
24625 ac_lo=`expr $ac_mid + 1`
24626 if test $ac_lo -le $ac_mid; then
24627 ac_lo= ac_hi=
24628 break
24629 fi
24630 ac_mid=`expr 2 '*' $ac_mid + 1`
24631fi
24632
24633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24634 done
24635else
24636 $as_echo "$as_me: failed program was:" >&5
24637sed 's/^/| /' conftest.$ac_ext >&5
24638
24639 cat >conftest.$ac_ext <<_ACEOF
24640/* confdefs.h. */
24641_ACEOF
24642cat confdefs.h >>conftest.$ac_ext
24643cat >>conftest.$ac_ext <<_ACEOF
24644/* end confdefs.h. */
24645$ac_includes_default
24646int
24647main ()
24648{
24649static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
24650test_array [0] = 0
24651
24652 ;
24653 return 0;
24654}
24655_ACEOF
24656rm -f conftest.$ac_objext
24657if { (ac_try="$ac_compile"
24658case "(($ac_try" in
24659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24660 *) ac_try_echo=$ac_try;;
24661esac
24662eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24663$as_echo "$ac_try_echo") >&5
24664 (eval "$ac_compile") 2>conftest.er1
24665 ac_status=$?
24666 grep -v '^ *+' conftest.er1 >conftest.err
24667 rm -f conftest.er1
24668 cat conftest.err >&5
24669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); } && {
24671 test -z "$ac_c_werror_flag" ||
24672 test ! -s conftest.err
24673 } && test -s conftest.$ac_objext; then
24674 ac_hi=-1 ac_mid=-1
24675 while :; do
24676 cat >conftest.$ac_ext <<_ACEOF
24677/* confdefs.h. */
24678_ACEOF
24679cat confdefs.h >>conftest.$ac_ext
24680cat >>conftest.$ac_ext <<_ACEOF
24681/* end confdefs.h. */
24682$ac_includes_default
24683int
24684main ()
24685{
24686static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
24687test_array [0] = 0
24688
24689 ;
24690 return 0;
24691}
24692_ACEOF
24693rm -f conftest.$ac_objext
24694if { (ac_try="$ac_compile"
24695case "(($ac_try" in
24696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24697 *) ac_try_echo=$ac_try;;
24698esac
24699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24700$as_echo "$ac_try_echo") >&5
24701 (eval "$ac_compile") 2>conftest.er1
24702 ac_status=$?
24703 grep -v '^ *+' conftest.er1 >conftest.err
24704 rm -f conftest.er1
24705 cat conftest.err >&5
24706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24707 (exit $ac_status); } && {
24708 test -z "$ac_c_werror_flag" ||
24709 test ! -s conftest.err
24710 } && test -s conftest.$ac_objext; then
24711 ac_lo=$ac_mid; break
24712else
24713 $as_echo "$as_me: failed program was:" >&5
24714sed 's/^/| /' conftest.$ac_ext >&5
24715
24716 ac_hi=`expr '(' $ac_mid ')' - 1`
24717 if test $ac_mid -le $ac_hi; then
24718 ac_lo= ac_hi=
24719 break
24720 fi
24721 ac_mid=`expr 2 '*' $ac_mid`
24722fi
24723
24724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24725 done
24726else
24727 $as_echo "$as_me: failed program was:" >&5
24728sed 's/^/| /' conftest.$ac_ext >&5
24729
24730 ac_lo= ac_hi=
24731fi
24732
24733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24734fi
24735
24736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24737# Binary search between lo and hi bounds.
24738while test "x$ac_lo" != "x$ac_hi"; do
24739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24740 cat >conftest.$ac_ext <<_ACEOF
24741/* confdefs.h. */
24742_ACEOF
24743cat confdefs.h >>conftest.$ac_ext
24744cat >>conftest.$ac_ext <<_ACEOF
24745/* end confdefs.h. */
24746$ac_includes_default
24747int
24748main ()
24749{
24750static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
24751test_array [0] = 0
24752
24753 ;
24754 return 0;
24755}
24756_ACEOF
24757rm -f conftest.$ac_objext
24758if { (ac_try="$ac_compile"
24759case "(($ac_try" in
24760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24761 *) ac_try_echo=$ac_try;;
24762esac
24763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24764$as_echo "$ac_try_echo") >&5
24765 (eval "$ac_compile") 2>conftest.er1
24766 ac_status=$?
24767 grep -v '^ *+' conftest.er1 >conftest.err
24768 rm -f conftest.er1
24769 cat conftest.err >&5
24770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); } && {
24772 test -z "$ac_c_werror_flag" ||
24773 test ! -s conftest.err
24774 } && test -s conftest.$ac_objext; then
24775 ac_hi=$ac_mid
24776else
24777 $as_echo "$as_me: failed program was:" >&5
24778sed 's/^/| /' conftest.$ac_ext >&5
24779
24780 ac_lo=`expr '(' $ac_mid ')' + 1`
24781fi
24782
24783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24784done
24785case $ac_lo in
24786?*) ac_cv_sizeof_signed_short=$ac_lo;;
24787'') if test "$ac_cv_type_signed_short" = yes; then
24788 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24790{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
24791See \`config.log' for more details." >&5
24792$as_echo "$as_me: error: cannot compute sizeof (signed short)
24793See \`config.log' for more details." >&2;}
24794 { (exit 77); exit 77; }; }; }
24795 else
24796 ac_cv_sizeof_signed_short=0
24797 fi ;;
24798esac
24799else
24800 cat >conftest.$ac_ext <<_ACEOF
24801/* confdefs.h. */
24802_ACEOF
24803cat confdefs.h >>conftest.$ac_ext
24804cat >>conftest.$ac_ext <<_ACEOF
24805/* end confdefs.h. */
24806$ac_includes_default
24807static long int longval () { return (long int) (sizeof (signed short)); }
24808static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
24809#include <stdio.h>
24810#include <stdlib.h>
24811int
24812main ()
24813{
24814
24815 FILE *f = fopen ("conftest.val", "w");
24816 if (! f)
24817 return 1;
24818 if (((long int) (sizeof (signed short))) < 0)
24819 {
24820 long int i = longval ();
24821 if (i != ((long int) (sizeof (signed short))))
24822 return 1;
24823 fprintf (f, "%ld", i);
24824 }
24825 else
24826 {
24827 unsigned long int i = ulongval ();
24828 if (i != ((long int) (sizeof (signed short))))
24829 return 1;
24830 fprintf (f, "%lu", i);
24831 }
24832 /* Do not output a trailing newline, as this causes \r\n confusion
24833 on some platforms. */
24834 return ferror (f) || fclose (f) != 0;
24835
24836 ;
24837 return 0;
24838}
24839_ACEOF
24840rm -f conftest$ac_exeext
24841if { (ac_try="$ac_link"
24842case "(($ac_try" in
24843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24844 *) ac_try_echo=$ac_try;;
24845esac
24846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24847$as_echo "$ac_try_echo") >&5
24848 (eval "$ac_link") 2>&5
24849 ac_status=$?
24850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24852 { (case "(($ac_try" in
24853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854 *) ac_try_echo=$ac_try;;
24855esac
24856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24857$as_echo "$ac_try_echo") >&5
24858 (eval "$ac_try") 2>&5
24859 ac_status=$?
24860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); }; }; then
24862 ac_cv_sizeof_signed_short=`cat conftest.val`
24863else
24864 $as_echo "$as_me: program exited with status $ac_status" >&5
24865$as_echo "$as_me: failed program was:" >&5
24866sed 's/^/| /' conftest.$ac_ext >&5
24867
24868( exit $ac_status )
24869if test "$ac_cv_type_signed_short" = yes; then
24870 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24872{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
24873See \`config.log' for more details." >&5
24874$as_echo "$as_me: error: cannot compute sizeof (signed short)
24875See \`config.log' for more details." >&2;}
24876 { (exit 77); exit 77; }; }; }
24877 else
24878 ac_cv_sizeof_signed_short=0
24879 fi
24880fi
24881rm -rf conftest.dSYM
24882rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24883fi
24884rm -f conftest.val
24885fi
24886{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
24887$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24888
24889
24890
24891cat >>confdefs.h <<_ACEOF
24892#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24893_ACEOF
24894
24895
24896
24897# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24898# The cast to long int works around a bug in the HP C Compiler
24899# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24900# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24901# This bug is HP SR number 8606223364.
24902{ $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
24903$as_echo_n "checking size of unsigned short... " >&6; }
24904if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
24905 $as_echo_n "(cached) " >&6
24906else
24907 if test "$cross_compiling" = yes; then
24908 # Depending upon the size, compute the lo and hi bounds.
24909cat >conftest.$ac_ext <<_ACEOF
24910/* confdefs.h. */
24911_ACEOF
24912cat confdefs.h >>conftest.$ac_ext
24913cat >>conftest.$ac_ext <<_ACEOF
24914/* end confdefs.h. */
24915$ac_includes_default
24916int
24917main ()
24918{
24919static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
24920test_array [0] = 0
24921
24922 ;
24923 return 0;
24924}
24925_ACEOF
24926rm -f conftest.$ac_objext
24927if { (ac_try="$ac_compile"
24928case "(($ac_try" in
24929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24930 *) ac_try_echo=$ac_try;;
24931esac
24932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24933$as_echo "$ac_try_echo") >&5
24934 (eval "$ac_compile") 2>conftest.er1
24935 ac_status=$?
24936 grep -v '^ *+' conftest.er1 >conftest.err
24937 rm -f conftest.er1
24938 cat conftest.err >&5
24939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940 (exit $ac_status); } && {
24941 test -z "$ac_c_werror_flag" ||
24942 test ! -s conftest.err
24943 } && test -s conftest.$ac_objext; then
24944 ac_lo=0 ac_mid=0
24945 while :; do
24946 cat >conftest.$ac_ext <<_ACEOF
24947/* confdefs.h. */
24948_ACEOF
24949cat confdefs.h >>conftest.$ac_ext
24950cat >>conftest.$ac_ext <<_ACEOF
24951/* end confdefs.h. */
24952$ac_includes_default
24953int
24954main ()
24955{
24956static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
24957test_array [0] = 0
24958
24959 ;
24960 return 0;
24961}
24962_ACEOF
24963rm -f conftest.$ac_objext
24964if { (ac_try="$ac_compile"
24965case "(($ac_try" in
24966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24967 *) ac_try_echo=$ac_try;;
24968esac
24969eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24970$as_echo "$ac_try_echo") >&5
24971 (eval "$ac_compile") 2>conftest.er1
24972 ac_status=$?
24973 grep -v '^ *+' conftest.er1 >conftest.err
24974 rm -f conftest.er1
24975 cat conftest.err >&5
24976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); } && {
24978 test -z "$ac_c_werror_flag" ||
24979 test ! -s conftest.err
24980 } && test -s conftest.$ac_objext; then
24981 ac_hi=$ac_mid; break
24982else
24983 $as_echo "$as_me: failed program was:" >&5
24984sed 's/^/| /' conftest.$ac_ext >&5
24985
24986 ac_lo=`expr $ac_mid + 1`
24987 if test $ac_lo -le $ac_mid; then
24988 ac_lo= ac_hi=
24989 break
24990 fi
24991 ac_mid=`expr 2 '*' $ac_mid + 1`
24992fi
24993
24994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24995 done
24996else
24997 $as_echo "$as_me: failed program was:" >&5
24998sed 's/^/| /' conftest.$ac_ext >&5
24999
25000 cat >conftest.$ac_ext <<_ACEOF
25001/* confdefs.h. */
25002_ACEOF
25003cat confdefs.h >>conftest.$ac_ext
25004cat >>conftest.$ac_ext <<_ACEOF
25005/* end confdefs.h. */
25006$ac_includes_default
25007int
25008main ()
25009{
25010static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
25011test_array [0] = 0
25012
25013 ;
25014 return 0;
25015}
25016_ACEOF
25017rm -f conftest.$ac_objext
25018if { (ac_try="$ac_compile"
25019case "(($ac_try" in
25020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021 *) ac_try_echo=$ac_try;;
25022esac
25023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25024$as_echo "$ac_try_echo") >&5
25025 (eval "$ac_compile") 2>conftest.er1
25026 ac_status=$?
25027 grep -v '^ *+' conftest.er1 >conftest.err
25028 rm -f conftest.er1
25029 cat conftest.err >&5
25030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031 (exit $ac_status); } && {
25032 test -z "$ac_c_werror_flag" ||
25033 test ! -s conftest.err
25034 } && test -s conftest.$ac_objext; then
25035 ac_hi=-1 ac_mid=-1
25036 while :; do
25037 cat >conftest.$ac_ext <<_ACEOF
25038/* confdefs.h. */
25039_ACEOF
25040cat confdefs.h >>conftest.$ac_ext
25041cat >>conftest.$ac_ext <<_ACEOF
25042/* end confdefs.h. */
25043$ac_includes_default
25044int
25045main ()
25046{
25047static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
25048test_array [0] = 0
25049
25050 ;
25051 return 0;
25052}
25053_ACEOF
25054rm -f conftest.$ac_objext
25055if { (ac_try="$ac_compile"
25056case "(($ac_try" in
25057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25058 *) ac_try_echo=$ac_try;;
25059esac
25060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25061$as_echo "$ac_try_echo") >&5
25062 (eval "$ac_compile") 2>conftest.er1
25063 ac_status=$?
25064 grep -v '^ *+' conftest.er1 >conftest.err
25065 rm -f conftest.er1
25066 cat conftest.err >&5
25067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25068 (exit $ac_status); } && {
25069 test -z "$ac_c_werror_flag" ||
25070 test ! -s conftest.err
25071 } && test -s conftest.$ac_objext; then
25072 ac_lo=$ac_mid; break
25073else
25074 $as_echo "$as_me: failed program was:" >&5
25075sed 's/^/| /' conftest.$ac_ext >&5
25076
25077 ac_hi=`expr '(' $ac_mid ')' - 1`
25078 if test $ac_mid -le $ac_hi; then
25079 ac_lo= ac_hi=
25080 break
25081 fi
25082 ac_mid=`expr 2 '*' $ac_mid`
25083fi
25084
25085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25086 done
25087else
25088 $as_echo "$as_me: failed program was:" >&5
25089sed 's/^/| /' conftest.$ac_ext >&5
25090
25091 ac_lo= ac_hi=
25092fi
25093
25094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25095fi
25096
25097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25098# Binary search between lo and hi bounds.
25099while test "x$ac_lo" != "x$ac_hi"; do
25100 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25101 cat >conftest.$ac_ext <<_ACEOF
25102/* confdefs.h. */
25103_ACEOF
25104cat confdefs.h >>conftest.$ac_ext
25105cat >>conftest.$ac_ext <<_ACEOF
25106/* end confdefs.h. */
25107$ac_includes_default
25108int
25109main ()
25110{
25111static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
25112test_array [0] = 0
25113
25114 ;
25115 return 0;
25116}
25117_ACEOF
25118rm -f conftest.$ac_objext
25119if { (ac_try="$ac_compile"
25120case "(($ac_try" in
25121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25122 *) ac_try_echo=$ac_try;;
25123esac
25124eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25125$as_echo "$ac_try_echo") >&5
25126 (eval "$ac_compile") 2>conftest.er1
25127 ac_status=$?
25128 grep -v '^ *+' conftest.er1 >conftest.err
25129 rm -f conftest.er1
25130 cat conftest.err >&5
25131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); } && {
25133 test -z "$ac_c_werror_flag" ||
25134 test ! -s conftest.err
25135 } && test -s conftest.$ac_objext; then
25136 ac_hi=$ac_mid
25137else
25138 $as_echo "$as_me: failed program was:" >&5
25139sed 's/^/| /' conftest.$ac_ext >&5
25140
25141 ac_lo=`expr '(' $ac_mid ')' + 1`
25142fi
25143
25144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25145done
25146case $ac_lo in
25147?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
25148'') if test "$ac_cv_type_unsigned_short" = yes; then
25149 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25151{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25152See \`config.log' for more details." >&5
25153$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
25154See \`config.log' for more details." >&2;}
25155 { (exit 77); exit 77; }; }; }
25156 else
25157 ac_cv_sizeof_unsigned_short=0
25158 fi ;;
25159esac
25160else
25161 cat >conftest.$ac_ext <<_ACEOF
25162/* confdefs.h. */
25163_ACEOF
25164cat confdefs.h >>conftest.$ac_ext
25165cat >>conftest.$ac_ext <<_ACEOF
25166/* end confdefs.h. */
25167$ac_includes_default
25168static long int longval () { return (long int) (sizeof (unsigned short)); }
25169static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
25170#include <stdio.h>
25171#include <stdlib.h>
25172int
25173main ()
25174{
25175
25176 FILE *f = fopen ("conftest.val", "w");
25177 if (! f)
25178 return 1;
25179 if (((long int) (sizeof (unsigned short))) < 0)
25180 {
25181 long int i = longval ();
25182 if (i != ((long int) (sizeof (unsigned short))))
25183 return 1;
25184 fprintf (f, "%ld", i);
25185 }
25186 else
25187 {
25188 unsigned long int i = ulongval ();
25189 if (i != ((long int) (sizeof (unsigned short))))
25190 return 1;
25191 fprintf (f, "%lu", i);
25192 }
25193 /* Do not output a trailing newline, as this causes \r\n confusion
25194 on some platforms. */
25195 return ferror (f) || fclose (f) != 0;
25196
25197 ;
25198 return 0;
25199}
25200_ACEOF
25201rm -f conftest$ac_exeext
25202if { (ac_try="$ac_link"
25203case "(($ac_try" in
25204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25205 *) ac_try_echo=$ac_try;;
25206esac
25207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25208$as_echo "$ac_try_echo") >&5
25209 (eval "$ac_link") 2>&5
25210 ac_status=$?
25211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25212 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25213 { (case "(($ac_try" in
25214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25215 *) ac_try_echo=$ac_try;;
25216esac
25217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25218$as_echo "$ac_try_echo") >&5
25219 (eval "$ac_try") 2>&5
25220 ac_status=$?
25221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); }; }; then
25223 ac_cv_sizeof_unsigned_short=`cat conftest.val`
25224else
25225 $as_echo "$as_me: program exited with status $ac_status" >&5
25226$as_echo "$as_me: failed program was:" >&5
25227sed 's/^/| /' conftest.$ac_ext >&5
25228
25229( exit $ac_status )
25230if test "$ac_cv_type_unsigned_short" = yes; then
25231 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25232$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25233{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25234See \`config.log' for more details." >&5
25235$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
25236See \`config.log' for more details." >&2;}
25237 { (exit 77); exit 77; }; }; }
25238 else
25239 ac_cv_sizeof_unsigned_short=0
25240 fi
25241fi
25242rm -rf conftest.dSYM
25243rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25244fi
25245rm -f conftest.val
25246fi
25247{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
25248$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
25249
25250
25251
25252cat >>confdefs.h <<_ACEOF
25253#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
25254_ACEOF
25255
25256
25257
25258# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
25259# The cast to long int works around a bug in the HP C Compiler
25260# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25261# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25262# This bug is HP SR number 8606223364.
25263{ $as_echo "$as_me:$LINENO: checking size of signed int" >&5
25264$as_echo_n "checking size of signed int... " >&6; }
25265if test "${ac_cv_sizeof_signed_int+set}" = set; then
25266 $as_echo_n "(cached) " >&6
25267else
25268 if test "$cross_compiling" = yes; then
25269 # Depending upon the size, compute the lo and hi bounds.
25270cat >conftest.$ac_ext <<_ACEOF
25271/* confdefs.h. */
25272_ACEOF
25273cat confdefs.h >>conftest.$ac_ext
25274cat >>conftest.$ac_ext <<_ACEOF
25275/* end confdefs.h. */
25276$ac_includes_default
25277int
25278main ()
25279{
25280static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= 0)];
25281test_array [0] = 0
25282
25283 ;
25284 return 0;
25285}
25286_ACEOF
25287rm -f conftest.$ac_objext
25288if { (ac_try="$ac_compile"
25289case "(($ac_try" in
25290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25291 *) ac_try_echo=$ac_try;;
25292esac
25293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25294$as_echo "$ac_try_echo") >&5
25295 (eval "$ac_compile") 2>conftest.er1
25296 ac_status=$?
25297 grep -v '^ *+' conftest.er1 >conftest.err
25298 rm -f conftest.er1
25299 cat conftest.err >&5
25300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25301 (exit $ac_status); } && {
25302 test -z "$ac_c_werror_flag" ||
25303 test ! -s conftest.err
25304 } && test -s conftest.$ac_objext; then
25305 ac_lo=0 ac_mid=0
25306 while :; do
25307 cat >conftest.$ac_ext <<_ACEOF
25308/* confdefs.h. */
25309_ACEOF
25310cat confdefs.h >>conftest.$ac_ext
25311cat >>conftest.$ac_ext <<_ACEOF
25312/* end confdefs.h. */
25313$ac_includes_default
25314int
25315main ()
25316{
25317static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
25318test_array [0] = 0
25319
25320 ;
25321 return 0;
25322}
25323_ACEOF
25324rm -f conftest.$ac_objext
25325if { (ac_try="$ac_compile"
25326case "(($ac_try" in
25327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25328 *) ac_try_echo=$ac_try;;
25329esac
25330eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25331$as_echo "$ac_try_echo") >&5
25332 (eval "$ac_compile") 2>conftest.er1
25333 ac_status=$?
25334 grep -v '^ *+' conftest.er1 >conftest.err
25335 rm -f conftest.er1
25336 cat conftest.err >&5
25337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); } && {
25339 test -z "$ac_c_werror_flag" ||
25340 test ! -s conftest.err
25341 } && test -s conftest.$ac_objext; then
25342 ac_hi=$ac_mid; break
25343else
25344 $as_echo "$as_me: failed program was:" >&5
25345sed 's/^/| /' conftest.$ac_ext >&5
25346
25347 ac_lo=`expr $ac_mid + 1`
25348 if test $ac_lo -le $ac_mid; then
25349 ac_lo= ac_hi=
25350 break
25351 fi
25352 ac_mid=`expr 2 '*' $ac_mid + 1`
25353fi
25354
25355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25356 done
25357else
25358 $as_echo "$as_me: failed program was:" >&5
25359sed 's/^/| /' conftest.$ac_ext >&5
25360
25361 cat >conftest.$ac_ext <<_ACEOF
25362/* confdefs.h. */
25363_ACEOF
25364cat confdefs.h >>conftest.$ac_ext
25365cat >>conftest.$ac_ext <<_ACEOF
25366/* end confdefs.h. */
25367$ac_includes_default
25368int
25369main ()
25370{
25371static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) < 0)];
25372test_array [0] = 0
25373
25374 ;
25375 return 0;
25376}
25377_ACEOF
25378rm -f conftest.$ac_objext
25379if { (ac_try="$ac_compile"
25380case "(($ac_try" in
25381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382 *) ac_try_echo=$ac_try;;
25383esac
25384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25385$as_echo "$ac_try_echo") >&5
25386 (eval "$ac_compile") 2>conftest.er1
25387 ac_status=$?
25388 grep -v '^ *+' conftest.er1 >conftest.err
25389 rm -f conftest.er1
25390 cat conftest.err >&5
25391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25392 (exit $ac_status); } && {
25393 test -z "$ac_c_werror_flag" ||
25394 test ! -s conftest.err
25395 } && test -s conftest.$ac_objext; then
25396 ac_hi=-1 ac_mid=-1
25397 while :; do
25398 cat >conftest.$ac_ext <<_ACEOF
25399/* confdefs.h. */
25400_ACEOF
25401cat confdefs.h >>conftest.$ac_ext
25402cat >>conftest.$ac_ext <<_ACEOF
25403/* end confdefs.h. */
25404$ac_includes_default
25405int
25406main ()
25407{
25408static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= $ac_mid)];
25409test_array [0] = 0
25410
25411 ;
25412 return 0;
25413}
25414_ACEOF
25415rm -f conftest.$ac_objext
25416if { (ac_try="$ac_compile"
25417case "(($ac_try" in
25418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25419 *) ac_try_echo=$ac_try;;
25420esac
25421eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25422$as_echo "$ac_try_echo") >&5
25423 (eval "$ac_compile") 2>conftest.er1
25424 ac_status=$?
25425 grep -v '^ *+' conftest.er1 >conftest.err
25426 rm -f conftest.er1
25427 cat conftest.err >&5
25428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25429 (exit $ac_status); } && {
25430 test -z "$ac_c_werror_flag" ||
25431 test ! -s conftest.err
25432 } && test -s conftest.$ac_objext; then
25433 ac_lo=$ac_mid; break
25434else
25435 $as_echo "$as_me: failed program was:" >&5
25436sed 's/^/| /' conftest.$ac_ext >&5
25437
25438 ac_hi=`expr '(' $ac_mid ')' - 1`
25439 if test $ac_mid -le $ac_hi; then
25440 ac_lo= ac_hi=
25441 break
25442 fi
25443 ac_mid=`expr 2 '*' $ac_mid`
25444fi
25445
25446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25447 done
25448else
25449 $as_echo "$as_me: failed program was:" >&5
25450sed 's/^/| /' conftest.$ac_ext >&5
25451
25452 ac_lo= ac_hi=
25453fi
25454
25455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25456fi
25457
25458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25459# Binary search between lo and hi bounds.
25460while test "x$ac_lo" != "x$ac_hi"; do
25461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25462 cat >conftest.$ac_ext <<_ACEOF
25463/* confdefs.h. */
25464_ACEOF
25465cat confdefs.h >>conftest.$ac_ext
25466cat >>conftest.$ac_ext <<_ACEOF
25467/* end confdefs.h. */
25468$ac_includes_default
25469int
25470main ()
25471{
25472static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
25473test_array [0] = 0
25474
25475 ;
25476 return 0;
25477}
25478_ACEOF
25479rm -f conftest.$ac_objext
25480if { (ac_try="$ac_compile"
25481case "(($ac_try" in
25482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25483 *) ac_try_echo=$ac_try;;
25484esac
25485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25486$as_echo "$ac_try_echo") >&5
25487 (eval "$ac_compile") 2>conftest.er1
25488 ac_status=$?
25489 grep -v '^ *+' conftest.er1 >conftest.err
25490 rm -f conftest.er1
25491 cat conftest.err >&5
25492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25493 (exit $ac_status); } && {
25494 test -z "$ac_c_werror_flag" ||
25495 test ! -s conftest.err
25496 } && test -s conftest.$ac_objext; then
25497 ac_hi=$ac_mid
25498else
25499 $as_echo "$as_me: failed program was:" >&5
25500sed 's/^/| /' conftest.$ac_ext >&5
25501
25502 ac_lo=`expr '(' $ac_mid ')' + 1`
25503fi
25504
25505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25506done
25507case $ac_lo in
25508?*) ac_cv_sizeof_signed_int=$ac_lo;;
25509'') if test "$ac_cv_type_signed_int" = yes; then
25510 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25512{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
25513See \`config.log' for more details." >&5
25514$as_echo "$as_me: error: cannot compute sizeof (signed int)
25515See \`config.log' for more details." >&2;}
25516 { (exit 77); exit 77; }; }; }
25517 else
25518 ac_cv_sizeof_signed_int=0
25519 fi ;;
25520esac
25521else
25522 cat >conftest.$ac_ext <<_ACEOF
25523/* confdefs.h. */
25524_ACEOF
25525cat confdefs.h >>conftest.$ac_ext
25526cat >>conftest.$ac_ext <<_ACEOF
25527/* end confdefs.h. */
25528$ac_includes_default
25529static long int longval () { return (long int) (sizeof (signed int)); }
25530static unsigned long int ulongval () { return (long int) (sizeof (signed int)); }
25531#include <stdio.h>
25532#include <stdlib.h>
25533int
25534main ()
25535{
25536
25537 FILE *f = fopen ("conftest.val", "w");
25538 if (! f)
25539 return 1;
25540 if (((long int) (sizeof (signed int))) < 0)
25541 {
25542 long int i = longval ();
25543 if (i != ((long int) (sizeof (signed int))))
25544 return 1;
25545 fprintf (f, "%ld", i);
25546 }
25547 else
25548 {
25549 unsigned long int i = ulongval ();
25550 if (i != ((long int) (sizeof (signed int))))
25551 return 1;
25552 fprintf (f, "%lu", i);
25553 }
25554 /* Do not output a trailing newline, as this causes \r\n confusion
25555 on some platforms. */
25556 return ferror (f) || fclose (f) != 0;
25557
25558 ;
25559 return 0;
25560}
25561_ACEOF
25562rm -f conftest$ac_exeext
25563if { (ac_try="$ac_link"
25564case "(($ac_try" in
25565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25566 *) ac_try_echo=$ac_try;;
25567esac
25568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25569$as_echo "$ac_try_echo") >&5
25570 (eval "$ac_link") 2>&5
25571 ac_status=$?
25572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25574 { (case "(($ac_try" in
25575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25576 *) ac_try_echo=$ac_try;;
25577esac
25578eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25579$as_echo "$ac_try_echo") >&5
25580 (eval "$ac_try") 2>&5
25581 ac_status=$?
25582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); }; }; then
25584 ac_cv_sizeof_signed_int=`cat conftest.val`
25585else
25586 $as_echo "$as_me: program exited with status $ac_status" >&5
25587$as_echo "$as_me: failed program was:" >&5
25588sed 's/^/| /' conftest.$ac_ext >&5
25589
25590( exit $ac_status )
25591if test "$ac_cv_type_signed_int" = yes; then
25592 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25594{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
25595See \`config.log' for more details." >&5
25596$as_echo "$as_me: error: cannot compute sizeof (signed int)
25597See \`config.log' for more details." >&2;}
25598 { (exit 77); exit 77; }; }; }
25599 else
25600 ac_cv_sizeof_signed_int=0
25601 fi
25602fi
25603rm -rf conftest.dSYM
25604rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25605fi
25606rm -f conftest.val
25607fi
25608{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_int" >&5
25609$as_echo "$ac_cv_sizeof_signed_int" >&6; }
25610
25611
25612
25613cat >>confdefs.h <<_ACEOF
25614#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
25615_ACEOF
25616
25617
25618
25619# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
25620# The cast to long int works around a bug in the HP C Compiler
25621# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25622# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25623# This bug is HP SR number 8606223364.
25624{ $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
25625$as_echo_n "checking size of unsigned int... " >&6; }
25626if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
25627 $as_echo_n "(cached) " >&6
25628else
25629 if test "$cross_compiling" = yes; then
25630 # Depending upon the size, compute the lo and hi bounds.
25631cat >conftest.$ac_ext <<_ACEOF
25632/* confdefs.h. */
25633_ACEOF
25634cat confdefs.h >>conftest.$ac_ext
25635cat >>conftest.$ac_ext <<_ACEOF
25636/* end confdefs.h. */
25637$ac_includes_default
25638int
25639main ()
25640{
25641static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
25642test_array [0] = 0
25643
25644 ;
25645 return 0;
25646}
25647_ACEOF
25648rm -f conftest.$ac_objext
25649if { (ac_try="$ac_compile"
25650case "(($ac_try" in
25651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25652 *) ac_try_echo=$ac_try;;
25653esac
25654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25655$as_echo "$ac_try_echo") >&5
25656 (eval "$ac_compile") 2>conftest.er1
25657 ac_status=$?
25658 grep -v '^ *+' conftest.er1 >conftest.err
25659 rm -f conftest.er1
25660 cat conftest.err >&5
25661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25662 (exit $ac_status); } && {
25663 test -z "$ac_c_werror_flag" ||
25664 test ! -s conftest.err
25665 } && test -s conftest.$ac_objext; then
25666 ac_lo=0 ac_mid=0
25667 while :; do
25668 cat >conftest.$ac_ext <<_ACEOF
25669/* confdefs.h. */
25670_ACEOF
25671cat confdefs.h >>conftest.$ac_ext
25672cat >>conftest.$ac_ext <<_ACEOF
25673/* end confdefs.h. */
25674$ac_includes_default
25675int
25676main ()
25677{
25678static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
25679test_array [0] = 0
25680
25681 ;
25682 return 0;
25683}
25684_ACEOF
25685rm -f conftest.$ac_objext
25686if { (ac_try="$ac_compile"
25687case "(($ac_try" in
25688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25689 *) ac_try_echo=$ac_try;;
25690esac
25691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25692$as_echo "$ac_try_echo") >&5
25693 (eval "$ac_compile") 2>conftest.er1
25694 ac_status=$?
25695 grep -v '^ *+' conftest.er1 >conftest.err
25696 rm -f conftest.er1
25697 cat conftest.err >&5
25698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25699 (exit $ac_status); } && {
25700 test -z "$ac_c_werror_flag" ||
25701 test ! -s conftest.err
25702 } && test -s conftest.$ac_objext; then
25703 ac_hi=$ac_mid; break
25704else
25705 $as_echo "$as_me: failed program was:" >&5
25706sed 's/^/| /' conftest.$ac_ext >&5
25707
25708 ac_lo=`expr $ac_mid + 1`
25709 if test $ac_lo -le $ac_mid; then
25710 ac_lo= ac_hi=
25711 break
25712 fi
25713 ac_mid=`expr 2 '*' $ac_mid + 1`
25714fi
25715
25716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25717 done
25718else
25719 $as_echo "$as_me: failed program was:" >&5
25720sed 's/^/| /' conftest.$ac_ext >&5
25721
25722 cat >conftest.$ac_ext <<_ACEOF
25723/* confdefs.h. */
25724_ACEOF
25725cat confdefs.h >>conftest.$ac_ext
25726cat >>conftest.$ac_ext <<_ACEOF
25727/* end confdefs.h. */
25728$ac_includes_default
25729int
25730main ()
25731{
25732static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
25733test_array [0] = 0
25734
25735 ;
25736 return 0;
25737}
25738_ACEOF
25739rm -f conftest.$ac_objext
25740if { (ac_try="$ac_compile"
25741case "(($ac_try" in
25742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25743 *) ac_try_echo=$ac_try;;
25744esac
25745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25746$as_echo "$ac_try_echo") >&5
25747 (eval "$ac_compile") 2>conftest.er1
25748 ac_status=$?
25749 grep -v '^ *+' conftest.er1 >conftest.err
25750 rm -f conftest.er1
25751 cat conftest.err >&5
25752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } && {
25754 test -z "$ac_c_werror_flag" ||
25755 test ! -s conftest.err
25756 } && test -s conftest.$ac_objext; then
25757 ac_hi=-1 ac_mid=-1
25758 while :; do
25759 cat >conftest.$ac_ext <<_ACEOF
25760/* confdefs.h. */
25761_ACEOF
25762cat confdefs.h >>conftest.$ac_ext
25763cat >>conftest.$ac_ext <<_ACEOF
25764/* end confdefs.h. */
25765$ac_includes_default
25766int
25767main ()
25768{
25769static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
25770test_array [0] = 0
25771
25772 ;
25773 return 0;
25774}
25775_ACEOF
25776rm -f conftest.$ac_objext
25777if { (ac_try="$ac_compile"
25778case "(($ac_try" in
25779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25780 *) ac_try_echo=$ac_try;;
25781esac
25782eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25783$as_echo "$ac_try_echo") >&5
25784 (eval "$ac_compile") 2>conftest.er1
25785 ac_status=$?
25786 grep -v '^ *+' conftest.er1 >conftest.err
25787 rm -f conftest.er1
25788 cat conftest.err >&5
25789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25790 (exit $ac_status); } && {
25791 test -z "$ac_c_werror_flag" ||
25792 test ! -s conftest.err
25793 } && test -s conftest.$ac_objext; then
25794 ac_lo=$ac_mid; break
25795else
25796 $as_echo "$as_me: failed program was:" >&5
25797sed 's/^/| /' conftest.$ac_ext >&5
25798
25799 ac_hi=`expr '(' $ac_mid ')' - 1`
25800 if test $ac_mid -le $ac_hi; then
25801 ac_lo= ac_hi=
25802 break
25803 fi
25804 ac_mid=`expr 2 '*' $ac_mid`
25805fi
25806
25807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25808 done
25809else
25810 $as_echo "$as_me: failed program was:" >&5
25811sed 's/^/| /' conftest.$ac_ext >&5
25812
25813 ac_lo= ac_hi=
25814fi
25815
25816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25817fi
25818
25819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25820# Binary search between lo and hi bounds.
25821while test "x$ac_lo" != "x$ac_hi"; do
25822 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25823 cat >conftest.$ac_ext <<_ACEOF
25824/* confdefs.h. */
25825_ACEOF
25826cat confdefs.h >>conftest.$ac_ext
25827cat >>conftest.$ac_ext <<_ACEOF
25828/* end confdefs.h. */
25829$ac_includes_default
25830int
25831main ()
25832{
25833static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
25834test_array [0] = 0
25835
25836 ;
25837 return 0;
25838}
25839_ACEOF
25840rm -f conftest.$ac_objext
25841if { (ac_try="$ac_compile"
25842case "(($ac_try" in
25843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844 *) ac_try_echo=$ac_try;;
25845esac
25846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25847$as_echo "$ac_try_echo") >&5
25848 (eval "$ac_compile") 2>conftest.er1
25849 ac_status=$?
25850 grep -v '^ *+' conftest.er1 >conftest.err
25851 rm -f conftest.er1
25852 cat conftest.err >&5
25853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25854 (exit $ac_status); } && {
25855 test -z "$ac_c_werror_flag" ||
25856 test ! -s conftest.err
25857 } && test -s conftest.$ac_objext; then
25858 ac_hi=$ac_mid
25859else
25860 $as_echo "$as_me: failed program was:" >&5
25861sed 's/^/| /' conftest.$ac_ext >&5
25862
25863 ac_lo=`expr '(' $ac_mid ')' + 1`
25864fi
25865
25866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25867done
25868case $ac_lo in
25869?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
25870'') if test "$ac_cv_type_unsigned_int" = yes; then
25871 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25873{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
25874See \`config.log' for more details." >&5
25875$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
25876See \`config.log' for more details." >&2;}
25877 { (exit 77); exit 77; }; }; }
25878 else
25879 ac_cv_sizeof_unsigned_int=0
25880 fi ;;
25881esac
25882else
25883 cat >conftest.$ac_ext <<_ACEOF
25884/* confdefs.h. */
25885_ACEOF
25886cat confdefs.h >>conftest.$ac_ext
25887cat >>conftest.$ac_ext <<_ACEOF
25888/* end confdefs.h. */
25889$ac_includes_default
25890static long int longval () { return (long int) (sizeof (unsigned int)); }
25891static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
25892#include <stdio.h>
25893#include <stdlib.h>
25894int
25895main ()
25896{
25897
25898 FILE *f = fopen ("conftest.val", "w");
25899 if (! f)
25900 return 1;
25901 if (((long int) (sizeof (unsigned int))) < 0)
25902 {
25903 long int i = longval ();
25904 if (i != ((long int) (sizeof (unsigned int))))
25905 return 1;
25906 fprintf (f, "%ld", i);
25907 }
25908 else
25909 {
25910 unsigned long int i = ulongval ();
25911 if (i != ((long int) (sizeof (unsigned int))))
25912 return 1;
25913 fprintf (f, "%lu", i);
25914 }
25915 /* Do not output a trailing newline, as this causes \r\n confusion
25916 on some platforms. */
25917 return ferror (f) || fclose (f) != 0;
25918
25919 ;
25920 return 0;
25921}
25922_ACEOF
25923rm -f conftest$ac_exeext
25924if { (ac_try="$ac_link"
25925case "(($ac_try" in
25926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25927 *) ac_try_echo=$ac_try;;
25928esac
25929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25930$as_echo "$ac_try_echo") >&5
25931 (eval "$ac_link") 2>&5
25932 ac_status=$?
25933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25934 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25935 { (case "(($ac_try" in
25936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25937 *) ac_try_echo=$ac_try;;
25938esac
25939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25940$as_echo "$ac_try_echo") >&5
25941 (eval "$ac_try") 2>&5
25942 ac_status=$?
25943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); }; }; then
25945 ac_cv_sizeof_unsigned_int=`cat conftest.val`
25946else
25947 $as_echo "$as_me: program exited with status $ac_status" >&5
25948$as_echo "$as_me: failed program was:" >&5
25949sed 's/^/| /' conftest.$ac_ext >&5
25950
25951( exit $ac_status )
25952if test "$ac_cv_type_unsigned_int" = yes; then
25953 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25954$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25955{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
25956See \`config.log' for more details." >&5
25957$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
25958See \`config.log' for more details." >&2;}
25959 { (exit 77); exit 77; }; }; }
25960 else
25961 ac_cv_sizeof_unsigned_int=0
25962 fi
25963fi
25964rm -rf conftest.dSYM
25965rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25966fi
25967rm -f conftest.val
25968fi
25969{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
25970$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
25971
25972
25973
25974cat >>confdefs.h <<_ACEOF
25975#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
25976_ACEOF
25977
25978
25979
25980# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
25981# The cast to long int works around a bug in the HP C Compiler
25982# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25983# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25984# This bug is HP SR number 8606223364.
25985{ $as_echo "$as_me:$LINENO: checking size of signed long" >&5
25986$as_echo_n "checking size of signed long... " >&6; }
25987if test "${ac_cv_sizeof_signed_long+set}" = set; then
25988 $as_echo_n "(cached) " >&6
25989else
25990 if test "$cross_compiling" = yes; then
25991 # Depending upon the size, compute the lo and hi bounds.
25992cat >conftest.$ac_ext <<_ACEOF
25993/* confdefs.h. */
25994_ACEOF
25995cat confdefs.h >>conftest.$ac_ext
25996cat >>conftest.$ac_ext <<_ACEOF
25997/* end confdefs.h. */
25998$ac_includes_default
25999int
26000main ()
26001{
26002static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= 0)];
26003test_array [0] = 0
26004
26005 ;
26006 return 0;
26007}
26008_ACEOF
26009rm -f conftest.$ac_objext
26010if { (ac_try="$ac_compile"
26011case "(($ac_try" in
26012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26013 *) ac_try_echo=$ac_try;;
26014esac
26015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26016$as_echo "$ac_try_echo") >&5
26017 (eval "$ac_compile") 2>conftest.er1
26018 ac_status=$?
26019 grep -v '^ *+' conftest.er1 >conftest.err
26020 rm -f conftest.er1
26021 cat conftest.err >&5
26022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26023 (exit $ac_status); } && {
26024 test -z "$ac_c_werror_flag" ||
26025 test ! -s conftest.err
26026 } && test -s conftest.$ac_objext; then
26027 ac_lo=0 ac_mid=0
26028 while :; do
26029 cat >conftest.$ac_ext <<_ACEOF
26030/* confdefs.h. */
26031_ACEOF
26032cat confdefs.h >>conftest.$ac_ext
26033cat >>conftest.$ac_ext <<_ACEOF
26034/* end confdefs.h. */
26035$ac_includes_default
26036int
26037main ()
26038{
26039static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)];
26040test_array [0] = 0
26041
26042 ;
26043 return 0;
26044}
26045_ACEOF
26046rm -f conftest.$ac_objext
26047if { (ac_try="$ac_compile"
26048case "(($ac_try" in
26049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26050 *) ac_try_echo=$ac_try;;
26051esac
26052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26053$as_echo "$ac_try_echo") >&5
26054 (eval "$ac_compile") 2>conftest.er1
26055 ac_status=$?
26056 grep -v '^ *+' conftest.er1 >conftest.err
26057 rm -f conftest.er1
26058 cat conftest.err >&5
26059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060 (exit $ac_status); } && {
26061 test -z "$ac_c_werror_flag" ||
26062 test ! -s conftest.err
26063 } && test -s conftest.$ac_objext; then
26064 ac_hi=$ac_mid; break
26065else
26066 $as_echo "$as_me: failed program was:" >&5
26067sed 's/^/| /' conftest.$ac_ext >&5
26068
26069 ac_lo=`expr $ac_mid + 1`
26070 if test $ac_lo -le $ac_mid; then
26071 ac_lo= ac_hi=
26072 break
26073 fi
26074 ac_mid=`expr 2 '*' $ac_mid + 1`
26075fi
26076
26077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26078 done
26079else
26080 $as_echo "$as_me: failed program was:" >&5
26081sed 's/^/| /' conftest.$ac_ext >&5
26082
26083 cat >conftest.$ac_ext <<_ACEOF
26084/* confdefs.h. */
26085_ACEOF
26086cat confdefs.h >>conftest.$ac_ext
26087cat >>conftest.$ac_ext <<_ACEOF
26088/* end confdefs.h. */
26089$ac_includes_default
26090int
26091main ()
26092{
26093static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) < 0)];
26094test_array [0] = 0
26095
26096 ;
26097 return 0;
26098}
26099_ACEOF
26100rm -f conftest.$ac_objext
26101if { (ac_try="$ac_compile"
26102case "(($ac_try" in
26103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26104 *) ac_try_echo=$ac_try;;
26105esac
26106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26107$as_echo "$ac_try_echo") >&5
26108 (eval "$ac_compile") 2>conftest.er1
26109 ac_status=$?
26110 grep -v '^ *+' conftest.er1 >conftest.err
26111 rm -f conftest.er1
26112 cat conftest.err >&5
26113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); } && {
26115 test -z "$ac_c_werror_flag" ||
26116 test ! -s conftest.err
26117 } && test -s conftest.$ac_objext; then
26118 ac_hi=-1 ac_mid=-1
26119 while :; do
26120 cat >conftest.$ac_ext <<_ACEOF
26121/* confdefs.h. */
26122_ACEOF
26123cat confdefs.h >>conftest.$ac_ext
26124cat >>conftest.$ac_ext <<_ACEOF
26125/* end confdefs.h. */
26126$ac_includes_default
26127int
26128main ()
26129{
26130static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= $ac_mid)];
26131test_array [0] = 0
26132
26133 ;
26134 return 0;
26135}
26136_ACEOF
26137rm -f conftest.$ac_objext
26138if { (ac_try="$ac_compile"
26139case "(($ac_try" in
26140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26141 *) ac_try_echo=$ac_try;;
26142esac
26143eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26144$as_echo "$ac_try_echo") >&5
26145 (eval "$ac_compile") 2>conftest.er1
26146 ac_status=$?
26147 grep -v '^ *+' conftest.er1 >conftest.err
26148 rm -f conftest.er1
26149 cat conftest.err >&5
26150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26151 (exit $ac_status); } && {
26152 test -z "$ac_c_werror_flag" ||
26153 test ! -s conftest.err
26154 } && test -s conftest.$ac_objext; then
26155 ac_lo=$ac_mid; break
26156else
26157 $as_echo "$as_me: failed program was:" >&5
26158sed 's/^/| /' conftest.$ac_ext >&5
26159
26160 ac_hi=`expr '(' $ac_mid ')' - 1`
26161 if test $ac_mid -le $ac_hi; then
26162 ac_lo= ac_hi=
26163 break
26164 fi
26165 ac_mid=`expr 2 '*' $ac_mid`
26166fi
26167
26168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26169 done
26170else
26171 $as_echo "$as_me: failed program was:" >&5
26172sed 's/^/| /' conftest.$ac_ext >&5
26173
26174 ac_lo= ac_hi=
26175fi
26176
26177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26178fi
26179
26180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26181# Binary search between lo and hi bounds.
26182while test "x$ac_lo" != "x$ac_hi"; do
26183 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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))) <= $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
26220else
26221 $as_echo "$as_me: failed program was:" >&5
26222sed 's/^/| /' conftest.$ac_ext >&5
26223
26224 ac_lo=`expr '(' $ac_mid ')' + 1`
26225fi
26226
26227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26228done
26229case $ac_lo in
26230?*) ac_cv_sizeof_signed_long=$ac_lo;;
26231'') if test "$ac_cv_type_signed_long" = yes; then
26232 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26234{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
26235See \`config.log' for more details." >&5
26236$as_echo "$as_me: error: cannot compute sizeof (signed long)
26237See \`config.log' for more details." >&2;}
26238 { (exit 77); exit 77; }; }; }
26239 else
26240 ac_cv_sizeof_signed_long=0
26241 fi ;;
26242esac
26243else
26244 cat >conftest.$ac_ext <<_ACEOF
26245/* confdefs.h. */
26246_ACEOF
26247cat confdefs.h >>conftest.$ac_ext
26248cat >>conftest.$ac_ext <<_ACEOF
26249/* end confdefs.h. */
26250$ac_includes_default
26251static long int longval () { return (long int) (sizeof (signed long)); }
26252static unsigned long int ulongval () { return (long int) (sizeof (signed long)); }
26253#include <stdio.h>
26254#include <stdlib.h>
26255int
26256main ()
26257{
26258
26259 FILE *f = fopen ("conftest.val", "w");
26260 if (! f)
26261 return 1;
26262 if (((long int) (sizeof (signed long))) < 0)
26263 {
26264 long int i = longval ();
26265 if (i != ((long int) (sizeof (signed long))))
26266 return 1;
26267 fprintf (f, "%ld", i);
26268 }
26269 else
26270 {
26271 unsigned long int i = ulongval ();
26272 if (i != ((long int) (sizeof (signed long))))
26273 return 1;
26274 fprintf (f, "%lu", i);
26275 }
26276 /* Do not output a trailing newline, as this causes \r\n confusion
26277 on some platforms. */
26278 return ferror (f) || fclose (f) != 0;
26279
26280 ;
26281 return 0;
26282}
26283_ACEOF
26284rm -f conftest$ac_exeext
26285if { (ac_try="$ac_link"
26286case "(($ac_try" in
26287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26288 *) ac_try_echo=$ac_try;;
26289esac
26290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26291$as_echo "$ac_try_echo") >&5
26292 (eval "$ac_link") 2>&5
26293 ac_status=$?
26294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26296 { (case "(($ac_try" in
26297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298 *) ac_try_echo=$ac_try;;
26299esac
26300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26301$as_echo "$ac_try_echo") >&5
26302 (eval "$ac_try") 2>&5
26303 ac_status=$?
26304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26305 (exit $ac_status); }; }; then
26306 ac_cv_sizeof_signed_long=`cat conftest.val`
26307else
26308 $as_echo "$as_me: program exited with status $ac_status" >&5
26309$as_echo "$as_me: failed program was:" >&5
26310sed 's/^/| /' conftest.$ac_ext >&5
26311
26312( exit $ac_status )
26313if test "$ac_cv_type_signed_long" = yes; then
26314 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26316{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
26317See \`config.log' for more details." >&5
26318$as_echo "$as_me: error: cannot compute sizeof (signed long)
26319See \`config.log' for more details." >&2;}
26320 { (exit 77); exit 77; }; }; }
26321 else
26322 ac_cv_sizeof_signed_long=0
26323 fi
26324fi
26325rm -rf conftest.dSYM
26326rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26327fi
26328rm -f conftest.val
26329fi
26330{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
26331$as_echo "$ac_cv_sizeof_signed_long" >&6; }
26332
26333
26334
26335cat >>confdefs.h <<_ACEOF
26336#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
26337_ACEOF
26338
26339
26340
26341# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
26342# The cast to long int works around a bug in the HP C Compiler
26343# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26344# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26345# This bug is HP SR number 8606223364.
26346{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
26347$as_echo_n "checking size of unsigned long... " >&6; }
26348if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
26349 $as_echo_n "(cached) " >&6
26350else
26351 if test "$cross_compiling" = yes; then
26352 # Depending upon the size, compute the lo and hi bounds.
26353cat >conftest.$ac_ext <<_ACEOF
26354/* confdefs.h. */
26355_ACEOF
26356cat confdefs.h >>conftest.$ac_ext
26357cat >>conftest.$ac_ext <<_ACEOF
26358/* end confdefs.h. */
26359$ac_includes_default
26360int
26361main ()
26362{
26363static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
26364test_array [0] = 0
26365
26366 ;
26367 return 0;
26368}
26369_ACEOF
26370rm -f conftest.$ac_objext
26371if { (ac_try="$ac_compile"
26372case "(($ac_try" in
26373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26374 *) ac_try_echo=$ac_try;;
26375esac
26376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26377$as_echo "$ac_try_echo") >&5
26378 (eval "$ac_compile") 2>conftest.er1
26379 ac_status=$?
26380 grep -v '^ *+' conftest.er1 >conftest.err
26381 rm -f conftest.er1
26382 cat conftest.err >&5
26383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26384 (exit $ac_status); } && {
26385 test -z "$ac_c_werror_flag" ||
26386 test ! -s conftest.err
26387 } && test -s conftest.$ac_objext; then
26388 ac_lo=0 ac_mid=0
26389 while :; do
26390 cat >conftest.$ac_ext <<_ACEOF
26391/* confdefs.h. */
26392_ACEOF
26393cat confdefs.h >>conftest.$ac_ext
26394cat >>conftest.$ac_ext <<_ACEOF
26395/* end confdefs.h. */
26396$ac_includes_default
26397int
26398main ()
26399{
26400static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
26401test_array [0] = 0
26402
26403 ;
26404 return 0;
26405}
26406_ACEOF
26407rm -f conftest.$ac_objext
26408if { (ac_try="$ac_compile"
26409case "(($ac_try" in
26410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26411 *) ac_try_echo=$ac_try;;
26412esac
26413eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26414$as_echo "$ac_try_echo") >&5
26415 (eval "$ac_compile") 2>conftest.er1
26416 ac_status=$?
26417 grep -v '^ *+' conftest.er1 >conftest.err
26418 rm -f conftest.er1
26419 cat conftest.err >&5
26420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26421 (exit $ac_status); } && {
26422 test -z "$ac_c_werror_flag" ||
26423 test ! -s conftest.err
26424 } && test -s conftest.$ac_objext; then
26425 ac_hi=$ac_mid; break
26426else
26427 $as_echo "$as_me: failed program was:" >&5
26428sed 's/^/| /' conftest.$ac_ext >&5
26429
26430 ac_lo=`expr $ac_mid + 1`
26431 if test $ac_lo -le $ac_mid; then
26432 ac_lo= ac_hi=
26433 break
26434 fi
26435 ac_mid=`expr 2 '*' $ac_mid + 1`
26436fi
26437
26438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26439 done
26440else
26441 $as_echo "$as_me: failed program was:" >&5
26442sed 's/^/| /' conftest.$ac_ext >&5
26443
26444 cat >conftest.$ac_ext <<_ACEOF
26445/* confdefs.h. */
26446_ACEOF
26447cat confdefs.h >>conftest.$ac_ext
26448cat >>conftest.$ac_ext <<_ACEOF
26449/* end confdefs.h. */
26450$ac_includes_default
26451int
26452main ()
26453{
26454static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
26455test_array [0] = 0
26456
26457 ;
26458 return 0;
26459}
26460_ACEOF
26461rm -f conftest.$ac_objext
26462if { (ac_try="$ac_compile"
26463case "(($ac_try" in
26464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26465 *) ac_try_echo=$ac_try;;
26466esac
26467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26468$as_echo "$ac_try_echo") >&5
26469 (eval "$ac_compile") 2>conftest.er1
26470 ac_status=$?
26471 grep -v '^ *+' conftest.er1 >conftest.err
26472 rm -f conftest.er1
26473 cat conftest.err >&5
26474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); } && {
26476 test -z "$ac_c_werror_flag" ||
26477 test ! -s conftest.err
26478 } && test -s conftest.$ac_objext; then
26479 ac_hi=-1 ac_mid=-1
26480 while :; do
26481 cat >conftest.$ac_ext <<_ACEOF
26482/* confdefs.h. */
26483_ACEOF
26484cat confdefs.h >>conftest.$ac_ext
26485cat >>conftest.$ac_ext <<_ACEOF
26486/* end confdefs.h. */
26487$ac_includes_default
26488int
26489main ()
26490{
26491static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
26492test_array [0] = 0
26493
26494 ;
26495 return 0;
26496}
26497_ACEOF
26498rm -f conftest.$ac_objext
26499if { (ac_try="$ac_compile"
26500case "(($ac_try" in
26501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26502 *) ac_try_echo=$ac_try;;
26503esac
26504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26505$as_echo "$ac_try_echo") >&5
26506 (eval "$ac_compile") 2>conftest.er1
26507 ac_status=$?
26508 grep -v '^ *+' conftest.er1 >conftest.err
26509 rm -f conftest.er1
26510 cat conftest.err >&5
26511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512 (exit $ac_status); } && {
26513 test -z "$ac_c_werror_flag" ||
26514 test ! -s conftest.err
26515 } && test -s conftest.$ac_objext; then
26516 ac_lo=$ac_mid; break
26517else
26518 $as_echo "$as_me: failed program was:" >&5
26519sed 's/^/| /' conftest.$ac_ext >&5
26520
26521 ac_hi=`expr '(' $ac_mid ')' - 1`
26522 if test $ac_mid -le $ac_hi; then
26523 ac_lo= ac_hi=
26524 break
26525 fi
26526 ac_mid=`expr 2 '*' $ac_mid`
26527fi
26528
26529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26530 done
26531else
26532 $as_echo "$as_me: failed program was:" >&5
26533sed 's/^/| /' conftest.$ac_ext >&5
26534
26535 ac_lo= ac_hi=
26536fi
26537
26538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26539fi
26540
26541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26542# Binary search between lo and hi bounds.
26543while test "x$ac_lo" != "x$ac_hi"; do
26544 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26545 cat >conftest.$ac_ext <<_ACEOF
26546/* confdefs.h. */
26547_ACEOF
26548cat confdefs.h >>conftest.$ac_ext
26549cat >>conftest.$ac_ext <<_ACEOF
26550/* end confdefs.h. */
26551$ac_includes_default
26552int
26553main ()
26554{
26555static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
26556test_array [0] = 0
26557
26558 ;
26559 return 0;
26560}
26561_ACEOF
26562rm -f conftest.$ac_objext
26563if { (ac_try="$ac_compile"
26564case "(($ac_try" in
26565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26566 *) ac_try_echo=$ac_try;;
26567esac
26568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26569$as_echo "$ac_try_echo") >&5
26570 (eval "$ac_compile") 2>conftest.er1
26571 ac_status=$?
26572 grep -v '^ *+' conftest.er1 >conftest.err
26573 rm -f conftest.er1
26574 cat conftest.err >&5
26575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26576 (exit $ac_status); } && {
26577 test -z "$ac_c_werror_flag" ||
26578 test ! -s conftest.err
26579 } && test -s conftest.$ac_objext; then
26580 ac_hi=$ac_mid
26581else
26582 $as_echo "$as_me: failed program was:" >&5
26583sed 's/^/| /' conftest.$ac_ext >&5
26584
26585 ac_lo=`expr '(' $ac_mid ')' + 1`
26586fi
26587
26588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26589done
26590case $ac_lo in
26591?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
26592'') if test "$ac_cv_type_unsigned_long" = yes; then
26593 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26594$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26595{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26596See \`config.log' for more details." >&5
26597$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26598See \`config.log' for more details." >&2;}
26599 { (exit 77); exit 77; }; }; }
26600 else
26601 ac_cv_sizeof_unsigned_long=0
26602 fi ;;
26603esac
26604else
26605 cat >conftest.$ac_ext <<_ACEOF
26606/* confdefs.h. */
26607_ACEOF
26608cat confdefs.h >>conftest.$ac_ext
26609cat >>conftest.$ac_ext <<_ACEOF
26610/* end confdefs.h. */
26611$ac_includes_default
26612static long int longval () { return (long int) (sizeof (unsigned long)); }
26613static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
26614#include <stdio.h>
26615#include <stdlib.h>
26616int
26617main ()
26618{
26619
26620 FILE *f = fopen ("conftest.val", "w");
26621 if (! f)
26622 return 1;
26623 if (((long int) (sizeof (unsigned long))) < 0)
26624 {
26625 long int i = longval ();
26626 if (i != ((long int) (sizeof (unsigned long))))
26627 return 1;
26628 fprintf (f, "%ld", i);
26629 }
26630 else
26631 {
26632 unsigned long int i = ulongval ();
26633 if (i != ((long int) (sizeof (unsigned long))))
26634 return 1;
26635 fprintf (f, "%lu", i);
26636 }
26637 /* Do not output a trailing newline, as this causes \r\n confusion
26638 on some platforms. */
26639 return ferror (f) || fclose (f) != 0;
26640
26641 ;
26642 return 0;
26643}
26644_ACEOF
26645rm -f conftest$ac_exeext
26646if { (ac_try="$ac_link"
26647case "(($ac_try" in
26648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26649 *) ac_try_echo=$ac_try;;
26650esac
26651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26652$as_echo "$ac_try_echo") >&5
26653 (eval "$ac_link") 2>&5
26654 ac_status=$?
26655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26657 { (case "(($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_try") 2>&5
26664 ac_status=$?
26665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26666 (exit $ac_status); }; }; then
26667 ac_cv_sizeof_unsigned_long=`cat conftest.val`
26668else
26669 $as_echo "$as_me: program exited with status $ac_status" >&5
26670$as_echo "$as_me: failed program was:" >&5
26671sed 's/^/| /' conftest.$ac_ext >&5
26672
26673( exit $ac_status )
26674if test "$ac_cv_type_unsigned_long" = yes; then
26675 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26676$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26677{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26678See \`config.log' for more details." >&5
26679$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26680See \`config.log' for more details." >&2;}
26681 { (exit 77); exit 77; }; }; }
26682 else
26683 ac_cv_sizeof_unsigned_long=0
26684 fi
26685fi
26686rm -rf conftest.dSYM
26687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26688fi
26689rm -f conftest.val
26690fi
26691{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
26692$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
26693
26694
26695
26696cat >>confdefs.h <<_ACEOF
26697#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26698_ACEOF
26699
26700
26701
26702# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
26703# 'signed long long' is not supported then the value defined is zero.
26704# The cast to long int works around a bug in the HP C Compiler
26705# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26706# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26707# This bug is HP SR number 8606223364.
26708{ $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
26709$as_echo_n "checking size of signed long long... " >&6; }
26710if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
26711 $as_echo_n "(cached) " >&6
26712else
26713 if test "$cross_compiling" = yes; then
26714 # Depending upon the size, compute the lo and hi bounds.
26715cat >conftest.$ac_ext <<_ACEOF
26716/* confdefs.h. */
26717_ACEOF
26718cat confdefs.h >>conftest.$ac_ext
26719cat >>conftest.$ac_ext <<_ACEOF
26720/* end confdefs.h. */
26721$ac_includes_default
26722int
26723main ()
26724{
26725static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
26726test_array [0] = 0
26727
26728 ;
26729 return 0;
26730}
26731_ACEOF
26732rm -f conftest.$ac_objext
26733if { (ac_try="$ac_compile"
26734case "(($ac_try" in
26735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26736 *) ac_try_echo=$ac_try;;
26737esac
26738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26739$as_echo "$ac_try_echo") >&5
26740 (eval "$ac_compile") 2>conftest.er1
26741 ac_status=$?
26742 grep -v '^ *+' conftest.er1 >conftest.err
26743 rm -f conftest.er1
26744 cat conftest.err >&5
26745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26746 (exit $ac_status); } && {
26747 test -z "$ac_c_werror_flag" ||
26748 test ! -s conftest.err
26749 } && test -s conftest.$ac_objext; then
26750 ac_lo=0 ac_mid=0
26751 while :; do
26752 cat >conftest.$ac_ext <<_ACEOF
26753/* confdefs.h. */
26754_ACEOF
26755cat confdefs.h >>conftest.$ac_ext
26756cat >>conftest.$ac_ext <<_ACEOF
26757/* end confdefs.h. */
26758$ac_includes_default
26759int
26760main ()
26761{
26762static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
26763test_array [0] = 0
26764
26765 ;
26766 return 0;
26767}
26768_ACEOF
26769rm -f conftest.$ac_objext
26770if { (ac_try="$ac_compile"
26771case "(($ac_try" in
26772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26773 *) ac_try_echo=$ac_try;;
26774esac
26775eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26776$as_echo "$ac_try_echo") >&5
26777 (eval "$ac_compile") 2>conftest.er1
26778 ac_status=$?
26779 grep -v '^ *+' conftest.er1 >conftest.err
26780 rm -f conftest.er1
26781 cat conftest.err >&5
26782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26783 (exit $ac_status); } && {
26784 test -z "$ac_c_werror_flag" ||
26785 test ! -s conftest.err
26786 } && test -s conftest.$ac_objext; then
26787 ac_hi=$ac_mid; break
26788else
26789 $as_echo "$as_me: failed program was:" >&5
26790sed 's/^/| /' conftest.$ac_ext >&5
26791
26792 ac_lo=`expr $ac_mid + 1`
26793 if test $ac_lo -le $ac_mid; then
26794 ac_lo= ac_hi=
26795 break
26796 fi
26797 ac_mid=`expr 2 '*' $ac_mid + 1`
26798fi
26799
26800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26801 done
26802else
26803 $as_echo "$as_me: failed program was:" >&5
26804sed 's/^/| /' conftest.$ac_ext >&5
26805
26806 cat >conftest.$ac_ext <<_ACEOF
26807/* confdefs.h. */
26808_ACEOF
26809cat confdefs.h >>conftest.$ac_ext
26810cat >>conftest.$ac_ext <<_ACEOF
26811/* end confdefs.h. */
26812$ac_includes_default
26813int
26814main ()
26815{
26816static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
26817test_array [0] = 0
26818
26819 ;
26820 return 0;
26821}
26822_ACEOF
26823rm -f conftest.$ac_objext
26824if { (ac_try="$ac_compile"
26825case "(($ac_try" in
26826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26827 *) ac_try_echo=$ac_try;;
26828esac
26829eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26830$as_echo "$ac_try_echo") >&5
26831 (eval "$ac_compile") 2>conftest.er1
26832 ac_status=$?
26833 grep -v '^ *+' conftest.er1 >conftest.err
26834 rm -f conftest.er1
26835 cat conftest.err >&5
26836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26837 (exit $ac_status); } && {
26838 test -z "$ac_c_werror_flag" ||
26839 test ! -s conftest.err
26840 } && test -s conftest.$ac_objext; then
26841 ac_hi=-1 ac_mid=-1
26842 while :; do
26843 cat >conftest.$ac_ext <<_ACEOF
26844/* confdefs.h. */
26845_ACEOF
26846cat confdefs.h >>conftest.$ac_ext
26847cat >>conftest.$ac_ext <<_ACEOF
26848/* end confdefs.h. */
26849$ac_includes_default
26850int
26851main ()
26852{
26853static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
26854test_array [0] = 0
26855
26856 ;
26857 return 0;
26858}
26859_ACEOF
26860rm -f conftest.$ac_objext
26861if { (ac_try="$ac_compile"
26862case "(($ac_try" in
26863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26864 *) ac_try_echo=$ac_try;;
26865esac
26866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26867$as_echo "$ac_try_echo") >&5
26868 (eval "$ac_compile") 2>conftest.er1
26869 ac_status=$?
26870 grep -v '^ *+' conftest.er1 >conftest.err
26871 rm -f conftest.er1
26872 cat conftest.err >&5
26873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874 (exit $ac_status); } && {
26875 test -z "$ac_c_werror_flag" ||
26876 test ! -s conftest.err
26877 } && test -s conftest.$ac_objext; then
26878 ac_lo=$ac_mid; break
26879else
26880 $as_echo "$as_me: failed program was:" >&5
26881sed 's/^/| /' conftest.$ac_ext >&5
26882
26883 ac_hi=`expr '(' $ac_mid ')' - 1`
26884 if test $ac_mid -le $ac_hi; then
26885 ac_lo= ac_hi=
26886 break
26887 fi
26888 ac_mid=`expr 2 '*' $ac_mid`
26889fi
26890
26891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26892 done
26893else
26894 $as_echo "$as_me: failed program was:" >&5
26895sed 's/^/| /' conftest.$ac_ext >&5
26896
26897 ac_lo= ac_hi=
26898fi
26899
26900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26901fi
26902
26903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26904# Binary search between lo and hi bounds.
26905while test "x$ac_lo" != "x$ac_hi"; do
26906 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26907 cat >conftest.$ac_ext <<_ACEOF
26908/* confdefs.h. */
26909_ACEOF
26910cat confdefs.h >>conftest.$ac_ext
26911cat >>conftest.$ac_ext <<_ACEOF
26912/* end confdefs.h. */
26913$ac_includes_default
26914int
26915main ()
26916{
26917static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
26918test_array [0] = 0
26919
26920 ;
26921 return 0;
26922}
26923_ACEOF
26924rm -f conftest.$ac_objext
26925if { (ac_try="$ac_compile"
26926case "(($ac_try" in
26927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26928 *) ac_try_echo=$ac_try;;
26929esac
26930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26931$as_echo "$ac_try_echo") >&5
26932 (eval "$ac_compile") 2>conftest.er1
26933 ac_status=$?
26934 grep -v '^ *+' conftest.er1 >conftest.err
26935 rm -f conftest.er1
26936 cat conftest.err >&5
26937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938 (exit $ac_status); } && {
26939 test -z "$ac_c_werror_flag" ||
26940 test ! -s conftest.err
26941 } && test -s conftest.$ac_objext; then
26942 ac_hi=$ac_mid
26943else
26944 $as_echo "$as_me: failed program was:" >&5
26945sed 's/^/| /' conftest.$ac_ext >&5
26946
26947 ac_lo=`expr '(' $ac_mid ')' + 1`
26948fi
26949
26950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26951done
26952case $ac_lo in
26953?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
26954'') if test "$ac_cv_type_signed_long_long" = yes; then
26955 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26956$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26957{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
26958See \`config.log' for more details." >&5
26959$as_echo "$as_me: error: cannot compute sizeof (signed long long)
26960See \`config.log' for more details." >&2;}
26961 { (exit 77); exit 77; }; }; }
26962 else
26963 ac_cv_sizeof_signed_long_long=0
26964 fi ;;
26965esac
26966else
26967 cat >conftest.$ac_ext <<_ACEOF
26968/* confdefs.h. */
26969_ACEOF
26970cat confdefs.h >>conftest.$ac_ext
26971cat >>conftest.$ac_ext <<_ACEOF
26972/* end confdefs.h. */
26973$ac_includes_default
26974static long int longval () { return (long int) (sizeof (signed long long)); }
26975static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
26976#include <stdio.h>
26977#include <stdlib.h>
26978int
26979main ()
26980{
26981
26982 FILE *f = fopen ("conftest.val", "w");
26983 if (! f)
26984 return 1;
26985 if (((long int) (sizeof (signed long long))) < 0)
26986 {
26987 long int i = longval ();
26988 if (i != ((long int) (sizeof (signed long long))))
26989 return 1;
26990 fprintf (f, "%ld", i);
26991 }
26992 else
26993 {
26994 unsigned long int i = ulongval ();
26995 if (i != ((long int) (sizeof (signed long long))))
26996 return 1;
26997 fprintf (f, "%lu", i);
26998 }
26999 /* Do not output a trailing newline, as this causes \r\n confusion
27000 on some platforms. */
27001 return ferror (f) || fclose (f) != 0;
27002
27003 ;
27004 return 0;
27005}
27006_ACEOF
27007rm -f conftest$ac_exeext
27008if { (ac_try="$ac_link"
27009case "(($ac_try" in
27010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27011 *) ac_try_echo=$ac_try;;
27012esac
27013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27014$as_echo "$ac_try_echo") >&5
27015 (eval "$ac_link") 2>&5
27016 ac_status=$?
27017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27019 { (case "(($ac_try" in
27020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27021 *) ac_try_echo=$ac_try;;
27022esac
27023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27024$as_echo "$ac_try_echo") >&5
27025 (eval "$ac_try") 2>&5
27026 ac_status=$?
27027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27028 (exit $ac_status); }; }; then
27029 ac_cv_sizeof_signed_long_long=`cat conftest.val`
27030else
27031 $as_echo "$as_me: program exited with status $ac_status" >&5
27032$as_echo "$as_me: failed program was:" >&5
27033sed 's/^/| /' conftest.$ac_ext >&5
27034
27035( exit $ac_status )
27036if test "$ac_cv_type_signed_long_long" = yes; then
27037 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27038$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27039{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
27040See \`config.log' for more details." >&5
27041$as_echo "$as_me: error: cannot compute sizeof (signed long long)
27042See \`config.log' for more details." >&2;}
27043 { (exit 77); exit 77; }; }; }
27044 else
27045 ac_cv_sizeof_signed_long_long=0
27046 fi
27047fi
27048rm -rf conftest.dSYM
27049rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27050fi
27051rm -f conftest.val
27052fi
27053{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
27054$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
27055
27056
27057
27058cat >>confdefs.h <<_ACEOF
27059#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
27060_ACEOF
27061
27062
27063
27064# Obtain size of a 'unsigned long long' and define as
27065# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
27066# supported then the value defined is zero.
27067# The cast to long int works around a bug in the HP C Compiler
27068# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27069# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27070# This bug is HP SR number 8606223364.
27071{ $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
27072$as_echo_n "checking size of unsigned long long... " >&6; }
27073if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
27074 $as_echo_n "(cached) " >&6
27075else
27076 if test "$cross_compiling" = yes; then
27077 # Depending upon the size, compute the lo and hi bounds.
27078cat >conftest.$ac_ext <<_ACEOF
27079/* confdefs.h. */
27080_ACEOF
27081cat confdefs.h >>conftest.$ac_ext
27082cat >>conftest.$ac_ext <<_ACEOF
27083/* end confdefs.h. */
27084$ac_includes_default
27085int
27086main ()
27087{
27088static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
27089test_array [0] = 0
27090
27091 ;
27092 return 0;
27093}
27094_ACEOF
27095rm -f conftest.$ac_objext
27096if { (ac_try="$ac_compile"
27097case "(($ac_try" in
27098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099 *) ac_try_echo=$ac_try;;
27100esac
27101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27102$as_echo "$ac_try_echo") >&5
27103 (eval "$ac_compile") 2>conftest.er1
27104 ac_status=$?
27105 grep -v '^ *+' conftest.er1 >conftest.err
27106 rm -f conftest.er1
27107 cat conftest.err >&5
27108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109 (exit $ac_status); } && {
27110 test -z "$ac_c_werror_flag" ||
27111 test ! -s conftest.err
27112 } && test -s conftest.$ac_objext; then
27113 ac_lo=0 ac_mid=0
27114 while :; do
27115 cat >conftest.$ac_ext <<_ACEOF
27116/* confdefs.h. */
27117_ACEOF
27118cat confdefs.h >>conftest.$ac_ext
27119cat >>conftest.$ac_ext <<_ACEOF
27120/* end confdefs.h. */
27121$ac_includes_default
27122int
27123main ()
27124{
27125static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
27126test_array [0] = 0
27127
27128 ;
27129 return 0;
27130}
27131_ACEOF
27132rm -f conftest.$ac_objext
27133if { (ac_try="$ac_compile"
27134case "(($ac_try" in
27135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136 *) ac_try_echo=$ac_try;;
27137esac
27138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27139$as_echo "$ac_try_echo") >&5
27140 (eval "$ac_compile") 2>conftest.er1
27141 ac_status=$?
27142 grep -v '^ *+' conftest.er1 >conftest.err
27143 rm -f conftest.er1
27144 cat conftest.err >&5
27145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146 (exit $ac_status); } && {
27147 test -z "$ac_c_werror_flag" ||
27148 test ! -s conftest.err
27149 } && test -s conftest.$ac_objext; then
27150 ac_hi=$ac_mid; break
27151else
27152 $as_echo "$as_me: failed program was:" >&5
27153sed 's/^/| /' conftest.$ac_ext >&5
27154
27155 ac_lo=`expr $ac_mid + 1`
27156 if test $ac_lo -le $ac_mid; then
27157 ac_lo= ac_hi=
27158 break
27159 fi
27160 ac_mid=`expr 2 '*' $ac_mid + 1`
27161fi
27162
27163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27164 done
27165else
27166 $as_echo "$as_me: failed program was:" >&5
27167sed 's/^/| /' conftest.$ac_ext >&5
27168
27169 cat >conftest.$ac_ext <<_ACEOF
27170/* confdefs.h. */
27171_ACEOF
27172cat confdefs.h >>conftest.$ac_ext
27173cat >>conftest.$ac_ext <<_ACEOF
27174/* end confdefs.h. */
27175$ac_includes_default
27176int
27177main ()
27178{
27179static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
27180test_array [0] = 0
27181
27182 ;
27183 return 0;
27184}
27185_ACEOF
27186rm -f conftest.$ac_objext
27187if { (ac_try="$ac_compile"
27188case "(($ac_try" in
27189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27190 *) ac_try_echo=$ac_try;;
27191esac
27192eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27193$as_echo "$ac_try_echo") >&5
27194 (eval "$ac_compile") 2>conftest.er1
27195 ac_status=$?
27196 grep -v '^ *+' conftest.er1 >conftest.err
27197 rm -f conftest.er1
27198 cat conftest.err >&5
27199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); } && {
27201 test -z "$ac_c_werror_flag" ||
27202 test ! -s conftest.err
27203 } && test -s conftest.$ac_objext; then
27204 ac_hi=-1 ac_mid=-1
27205 while :; do
27206 cat >conftest.$ac_ext <<_ACEOF
27207/* confdefs.h. */
27208_ACEOF
27209cat confdefs.h >>conftest.$ac_ext
27210cat >>conftest.$ac_ext <<_ACEOF
27211/* end confdefs.h. */
27212$ac_includes_default
27213int
27214main ()
27215{
27216static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
27217test_array [0] = 0
27218
27219 ;
27220 return 0;
27221}
27222_ACEOF
27223rm -f conftest.$ac_objext
27224if { (ac_try="$ac_compile"
27225case "(($ac_try" in
27226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27227 *) ac_try_echo=$ac_try;;
27228esac
27229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27230$as_echo "$ac_try_echo") >&5
27231 (eval "$ac_compile") 2>conftest.er1
27232 ac_status=$?
27233 grep -v '^ *+' conftest.er1 >conftest.err
27234 rm -f conftest.er1
27235 cat conftest.err >&5
27236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27237 (exit $ac_status); } && {
27238 test -z "$ac_c_werror_flag" ||
27239 test ! -s conftest.err
27240 } && test -s conftest.$ac_objext; then
27241 ac_lo=$ac_mid; break
27242else
27243 $as_echo "$as_me: failed program was:" >&5
27244sed 's/^/| /' conftest.$ac_ext >&5
27245
27246 ac_hi=`expr '(' $ac_mid ')' - 1`
27247 if test $ac_mid -le $ac_hi; then
27248 ac_lo= ac_hi=
27249 break
27250 fi
27251 ac_mid=`expr 2 '*' $ac_mid`
27252fi
27253
27254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27255 done
27256else
27257 $as_echo "$as_me: failed program was:" >&5
27258sed 's/^/| /' conftest.$ac_ext >&5
27259
27260 ac_lo= ac_hi=
27261fi
27262
27263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27264fi
27265
27266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27267# Binary search between lo and hi bounds.
27268while test "x$ac_lo" != "x$ac_hi"; do
27269 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27270 cat >conftest.$ac_ext <<_ACEOF
27271/* confdefs.h. */
27272_ACEOF
27273cat confdefs.h >>conftest.$ac_ext
27274cat >>conftest.$ac_ext <<_ACEOF
27275/* end confdefs.h. */
27276$ac_includes_default
27277int
27278main ()
27279{
27280static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
27281test_array [0] = 0
27282
27283 ;
27284 return 0;
27285}
27286_ACEOF
27287rm -f conftest.$ac_objext
27288if { (ac_try="$ac_compile"
27289case "(($ac_try" in
27290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27291 *) ac_try_echo=$ac_try;;
27292esac
27293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27294$as_echo "$ac_try_echo") >&5
27295 (eval "$ac_compile") 2>conftest.er1
27296 ac_status=$?
27297 grep -v '^ *+' conftest.er1 >conftest.err
27298 rm -f conftest.er1
27299 cat conftest.err >&5
27300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27301 (exit $ac_status); } && {
27302 test -z "$ac_c_werror_flag" ||
27303 test ! -s conftest.err
27304 } && test -s conftest.$ac_objext; then
27305 ac_hi=$ac_mid
27306else
27307 $as_echo "$as_me: failed program was:" >&5
27308sed 's/^/| /' conftest.$ac_ext >&5
27309
27310 ac_lo=`expr '(' $ac_mid ')' + 1`
27311fi
27312
27313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27314done
27315case $ac_lo in
27316?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
27317'') if test "$ac_cv_type_unsigned_long_long" = yes; then
27318 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27320{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27321See \`config.log' for more details." >&5
27322$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
27323See \`config.log' for more details." >&2;}
27324 { (exit 77); exit 77; }; }; }
27325 else
27326 ac_cv_sizeof_unsigned_long_long=0
27327 fi ;;
27328esac
27329else
27330 cat >conftest.$ac_ext <<_ACEOF
27331/* confdefs.h. */
27332_ACEOF
27333cat confdefs.h >>conftest.$ac_ext
27334cat >>conftest.$ac_ext <<_ACEOF
27335/* end confdefs.h. */
27336$ac_includes_default
27337static long int longval () { return (long int) (sizeof (unsigned long long)); }
27338static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
27339#include <stdio.h>
27340#include <stdlib.h>
27341int
27342main ()
27343{
27344
27345 FILE *f = fopen ("conftest.val", "w");
27346 if (! f)
27347 return 1;
27348 if (((long int) (sizeof (unsigned long long))) < 0)
27349 {
27350 long int i = longval ();
27351 if (i != ((long int) (sizeof (unsigned long long))))
27352 return 1;
27353 fprintf (f, "%ld", i);
27354 }
27355 else
27356 {
27357 unsigned long int i = ulongval ();
27358 if (i != ((long int) (sizeof (unsigned long long))))
27359 return 1;
27360 fprintf (f, "%lu", i);
27361 }
27362 /* Do not output a trailing newline, as this causes \r\n confusion
27363 on some platforms. */
27364 return ferror (f) || fclose (f) != 0;
27365
27366 ;
27367 return 0;
27368}
27369_ACEOF
27370rm -f conftest$ac_exeext
27371if { (ac_try="$ac_link"
27372case "(($ac_try" in
27373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27374 *) ac_try_echo=$ac_try;;
27375esac
27376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27377$as_echo "$ac_try_echo") >&5
27378 (eval "$ac_link") 2>&5
27379 ac_status=$?
27380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27382 { (case "(($ac_try" in
27383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27384 *) ac_try_echo=$ac_try;;
27385esac
27386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27387$as_echo "$ac_try_echo") >&5
27388 (eval "$ac_try") 2>&5
27389 ac_status=$?
27390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); }; }; then
27392 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
27393else
27394 $as_echo "$as_me: program exited with status $ac_status" >&5
27395$as_echo "$as_me: failed program was:" >&5
27396sed 's/^/| /' conftest.$ac_ext >&5
27397
27398( exit $ac_status )
27399if test "$ac_cv_type_unsigned_long_long" = yes; then
27400 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27401$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27402{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27403See \`config.log' for more details." >&5
27404$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
27405See \`config.log' for more details." >&2;}
27406 { (exit 77); exit 77; }; }; }
27407 else
27408 ac_cv_sizeof_unsigned_long_long=0
27409 fi
27410fi
27411rm -rf conftest.dSYM
27412rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27413fi
27414rm -f conftest.val
27415fi
27416{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
27417$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
27418
27419
27420
27421cat >>confdefs.h <<_ACEOF
27422#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27423_ACEOF
27424
27425
27426
27427# Obtain size of off_t and define as SIZEOF_OFF_T
27428# The cast to long int works around a bug in the HP C Compiler
27429# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27430# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27431# This bug is HP SR number 8606223364.
27432{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
27433$as_echo_n "checking size of off_t... " >&6; }
27434if test "${ac_cv_sizeof_off_t+set}" = set; then
27435 $as_echo_n "(cached) " >&6
27436else
27437 if test "$cross_compiling" = yes; then
27438 # Depending upon the size, compute the lo and hi bounds.
27439cat >conftest.$ac_ext <<_ACEOF
27440/* confdefs.h. */
27441_ACEOF
27442cat confdefs.h >>conftest.$ac_ext
27443cat >>conftest.$ac_ext <<_ACEOF
27444/* end confdefs.h. */
27445$ac_includes_default
27446int
27447main ()
27448{
27449static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
27450test_array [0] = 0
27451
27452 ;
27453 return 0;
27454}
27455_ACEOF
27456rm -f conftest.$ac_objext
27457if { (ac_try="$ac_compile"
27458case "(($ac_try" in
27459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460 *) ac_try_echo=$ac_try;;
27461esac
27462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27463$as_echo "$ac_try_echo") >&5
27464 (eval "$ac_compile") 2>conftest.er1
27465 ac_status=$?
27466 grep -v '^ *+' conftest.er1 >conftest.err
27467 rm -f conftest.er1
27468 cat conftest.err >&5
27469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27470 (exit $ac_status); } && {
27471 test -z "$ac_c_werror_flag" ||
27472 test ! -s conftest.err
27473 } && test -s conftest.$ac_objext; then
27474 ac_lo=0 ac_mid=0
27475 while :; do
27476 cat >conftest.$ac_ext <<_ACEOF
27477/* confdefs.h. */
27478_ACEOF
27479cat confdefs.h >>conftest.$ac_ext
27480cat >>conftest.$ac_ext <<_ACEOF
27481/* end confdefs.h. */
27482$ac_includes_default
27483int
27484main ()
27485{
27486static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27487test_array [0] = 0
27488
27489 ;
27490 return 0;
27491}
27492_ACEOF
27493rm -f conftest.$ac_objext
27494if { (ac_try="$ac_compile"
27495case "(($ac_try" in
27496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27497 *) ac_try_echo=$ac_try;;
27498esac
27499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27500$as_echo "$ac_try_echo") >&5
27501 (eval "$ac_compile") 2>conftest.er1
27502 ac_status=$?
27503 grep -v '^ *+' conftest.er1 >conftest.err
27504 rm -f conftest.er1
27505 cat conftest.err >&5
27506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507 (exit $ac_status); } && {
27508 test -z "$ac_c_werror_flag" ||
27509 test ! -s conftest.err
27510 } && test -s conftest.$ac_objext; then
27511 ac_hi=$ac_mid; break
27512else
27513 $as_echo "$as_me: failed program was:" >&5
27514sed 's/^/| /' conftest.$ac_ext >&5
27515
27516 ac_lo=`expr $ac_mid + 1`
27517 if test $ac_lo -le $ac_mid; then
27518 ac_lo= ac_hi=
27519 break
27520 fi
27521 ac_mid=`expr 2 '*' $ac_mid + 1`
27522fi
27523
27524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27525 done
27526else
27527 $as_echo "$as_me: failed program was:" >&5
27528sed 's/^/| /' conftest.$ac_ext >&5
27529
27530 cat >conftest.$ac_ext <<_ACEOF
27531/* confdefs.h. */
27532_ACEOF
27533cat confdefs.h >>conftest.$ac_ext
27534cat >>conftest.$ac_ext <<_ACEOF
27535/* end confdefs.h. */
27536$ac_includes_default
27537int
27538main ()
27539{
27540static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
27541test_array [0] = 0
27542
27543 ;
27544 return 0;
27545}
27546_ACEOF
27547rm -f conftest.$ac_objext
27548if { (ac_try="$ac_compile"
27549case "(($ac_try" in
27550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27551 *) ac_try_echo=$ac_try;;
27552esac
27553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27554$as_echo "$ac_try_echo") >&5
27555 (eval "$ac_compile") 2>conftest.er1
27556 ac_status=$?
27557 grep -v '^ *+' conftest.er1 >conftest.err
27558 rm -f conftest.er1
27559 cat conftest.err >&5
27560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27561 (exit $ac_status); } && {
27562 test -z "$ac_c_werror_flag" ||
27563 test ! -s conftest.err
27564 } && test -s conftest.$ac_objext; then
27565 ac_hi=-1 ac_mid=-1
27566 while :; do
27567 cat >conftest.$ac_ext <<_ACEOF
27568/* confdefs.h. */
27569_ACEOF
27570cat confdefs.h >>conftest.$ac_ext
27571cat >>conftest.$ac_ext <<_ACEOF
27572/* end confdefs.h. */
27573$ac_includes_default
27574int
27575main ()
27576{
27577static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
27578test_array [0] = 0
27579
27580 ;
27581 return 0;
27582}
27583_ACEOF
27584rm -f conftest.$ac_objext
27585if { (ac_try="$ac_compile"
27586case "(($ac_try" in
27587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27588 *) ac_try_echo=$ac_try;;
27589esac
27590eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27591$as_echo "$ac_try_echo") >&5
27592 (eval "$ac_compile") 2>conftest.er1
27593 ac_status=$?
27594 grep -v '^ *+' conftest.er1 >conftest.err
27595 rm -f conftest.er1
27596 cat conftest.err >&5
27597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27598 (exit $ac_status); } && {
27599 test -z "$ac_c_werror_flag" ||
27600 test ! -s conftest.err
27601 } && test -s conftest.$ac_objext; then
27602 ac_lo=$ac_mid; break
27603else
27604 $as_echo "$as_me: failed program was:" >&5
27605sed 's/^/| /' conftest.$ac_ext >&5
27606
27607 ac_hi=`expr '(' $ac_mid ')' - 1`
27608 if test $ac_mid -le $ac_hi; then
27609 ac_lo= ac_hi=
27610 break
27611 fi
27612 ac_mid=`expr 2 '*' $ac_mid`
27613fi
27614
27615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27616 done
27617else
27618 $as_echo "$as_me: failed program was:" >&5
27619sed 's/^/| /' conftest.$ac_ext >&5
27620
27621 ac_lo= ac_hi=
27622fi
27623
27624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27625fi
27626
27627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27628# Binary search between lo and hi bounds.
27629while test "x$ac_lo" != "x$ac_hi"; do
27630 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27631 cat >conftest.$ac_ext <<_ACEOF
27632/* confdefs.h. */
27633_ACEOF
27634cat confdefs.h >>conftest.$ac_ext
27635cat >>conftest.$ac_ext <<_ACEOF
27636/* end confdefs.h. */
27637$ac_includes_default
27638int
27639main ()
27640{
27641static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27642test_array [0] = 0
27643
27644 ;
27645 return 0;
27646}
27647_ACEOF
27648rm -f conftest.$ac_objext
27649if { (ac_try="$ac_compile"
27650case "(($ac_try" in
27651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27652 *) ac_try_echo=$ac_try;;
27653esac
27654eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27655$as_echo "$ac_try_echo") >&5
27656 (eval "$ac_compile") 2>conftest.er1
27657 ac_status=$?
27658 grep -v '^ *+' conftest.er1 >conftest.err
27659 rm -f conftest.er1
27660 cat conftest.err >&5
27661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27662 (exit $ac_status); } && {
27663 test -z "$ac_c_werror_flag" ||
27664 test ! -s conftest.err
27665 } && test -s conftest.$ac_objext; then
27666 ac_hi=$ac_mid
27667else
27668 $as_echo "$as_me: failed program was:" >&5
27669sed 's/^/| /' conftest.$ac_ext >&5
27670
27671 ac_lo=`expr '(' $ac_mid ')' + 1`
27672fi
27673
27674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27675done
27676case $ac_lo in
27677?*) ac_cv_sizeof_off_t=$ac_lo;;
27678'') if test "$ac_cv_type_off_t" = yes; then
27679 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27681{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27682See \`config.log' for more details." >&5
27683$as_echo "$as_me: error: cannot compute sizeof (off_t)
27684See \`config.log' for more details." >&2;}
27685 { (exit 77); exit 77; }; }; }
27686 else
27687 ac_cv_sizeof_off_t=0
27688 fi ;;
27689esac
27690else
27691 cat >conftest.$ac_ext <<_ACEOF
27692/* confdefs.h. */
27693_ACEOF
27694cat confdefs.h >>conftest.$ac_ext
27695cat >>conftest.$ac_ext <<_ACEOF
27696/* end confdefs.h. */
27697$ac_includes_default
27698static long int longval () { return (long int) (sizeof (off_t)); }
27699static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
27700#include <stdio.h>
27701#include <stdlib.h>
27702int
27703main ()
27704{
27705
27706 FILE *f = fopen ("conftest.val", "w");
27707 if (! f)
27708 return 1;
27709 if (((long int) (sizeof (off_t))) < 0)
27710 {
27711 long int i = longval ();
27712 if (i != ((long int) (sizeof (off_t))))
27713 return 1;
27714 fprintf (f, "%ld", i);
27715 }
27716 else
27717 {
27718 unsigned long int i = ulongval ();
27719 if (i != ((long int) (sizeof (off_t))))
27720 return 1;
27721 fprintf (f, "%lu", i);
27722 }
27723 /* Do not output a trailing newline, as this causes \r\n confusion
27724 on some platforms. */
27725 return ferror (f) || fclose (f) != 0;
27726
27727 ;
27728 return 0;
27729}
27730_ACEOF
27731rm -f conftest$ac_exeext
27732if { (ac_try="$ac_link"
27733case "(($ac_try" in
27734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27735 *) ac_try_echo=$ac_try;;
27736esac
27737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27738$as_echo "$ac_try_echo") >&5
27739 (eval "$ac_link") 2>&5
27740 ac_status=$?
27741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27743 { (case "(($ac_try" in
27744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27745 *) ac_try_echo=$ac_try;;
27746esac
27747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27748$as_echo "$ac_try_echo") >&5
27749 (eval "$ac_try") 2>&5
27750 ac_status=$?
27751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); }; }; then
27753 ac_cv_sizeof_off_t=`cat conftest.val`
27754else
27755 $as_echo "$as_me: program exited with status $ac_status" >&5
27756$as_echo "$as_me: failed program was:" >&5
27757sed 's/^/| /' conftest.$ac_ext >&5
27758
27759( exit $ac_status )
27760if test "$ac_cv_type_off_t" = yes; then
27761 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27762$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27763{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27764See \`config.log' for more details." >&5
27765$as_echo "$as_me: error: cannot compute sizeof (off_t)
27766See \`config.log' for more details." >&2;}
27767 { (exit 77); exit 77; }; }; }
27768 else
27769 ac_cv_sizeof_off_t=0
27770 fi
27771fi
27772rm -rf conftest.dSYM
27773rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27774fi
27775rm -f conftest.val
27776fi
27777{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
27778$as_echo "$ac_cv_sizeof_off_t" >&6; }
27779
27780
27781
27782cat >>confdefs.h <<_ACEOF
27783#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27784_ACEOF
27785
27786
27787
27788# Obtain size of size_t and define as SIZEOF_SIZE_T
27789# The cast to long int works around a bug in the HP C Compiler
27790# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27791# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27792# This bug is HP SR number 8606223364.
27793{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
27794$as_echo_n "checking size of size_t... " >&6; }
27795if test "${ac_cv_sizeof_size_t+set}" = set; then
27796 $as_echo_n "(cached) " >&6
27797else
27798 if test "$cross_compiling" = yes; then
27799 # Depending upon the size, compute the lo and hi bounds.
27800cat >conftest.$ac_ext <<_ACEOF
27801/* confdefs.h. */
27802_ACEOF
27803cat confdefs.h >>conftest.$ac_ext
27804cat >>conftest.$ac_ext <<_ACEOF
27805/* end confdefs.h. */
27806$ac_includes_default
27807int
27808main ()
27809{
27810static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
27811test_array [0] = 0
27812
27813 ;
27814 return 0;
27815}
27816_ACEOF
27817rm -f conftest.$ac_objext
27818if { (ac_try="$ac_compile"
27819case "(($ac_try" in
27820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27821 *) ac_try_echo=$ac_try;;
27822esac
27823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27824$as_echo "$ac_try_echo") >&5
27825 (eval "$ac_compile") 2>conftest.er1
27826 ac_status=$?
27827 grep -v '^ *+' conftest.er1 >conftest.err
27828 rm -f conftest.er1
27829 cat conftest.err >&5
27830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27831 (exit $ac_status); } && {
27832 test -z "$ac_c_werror_flag" ||
27833 test ! -s conftest.err
27834 } && test -s conftest.$ac_objext; then
27835 ac_lo=0 ac_mid=0
27836 while :; do
27837 cat >conftest.$ac_ext <<_ACEOF
27838/* confdefs.h. */
27839_ACEOF
27840cat confdefs.h >>conftest.$ac_ext
27841cat >>conftest.$ac_ext <<_ACEOF
27842/* end confdefs.h. */
27843$ac_includes_default
27844int
27845main ()
27846{
27847static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27848test_array [0] = 0
27849
27850 ;
27851 return 0;
27852}
27853_ACEOF
27854rm -f conftest.$ac_objext
27855if { (ac_try="$ac_compile"
27856case "(($ac_try" in
27857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27858 *) ac_try_echo=$ac_try;;
27859esac
27860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27861$as_echo "$ac_try_echo") >&5
27862 (eval "$ac_compile") 2>conftest.er1
27863 ac_status=$?
27864 grep -v '^ *+' conftest.er1 >conftest.err
27865 rm -f conftest.er1
27866 cat conftest.err >&5
27867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27868 (exit $ac_status); } && {
27869 test -z "$ac_c_werror_flag" ||
27870 test ! -s conftest.err
27871 } && test -s conftest.$ac_objext; then
27872 ac_hi=$ac_mid; break
27873else
27874 $as_echo "$as_me: failed program was:" >&5
27875sed 's/^/| /' conftest.$ac_ext >&5
27876
27877 ac_lo=`expr $ac_mid + 1`
27878 if test $ac_lo -le $ac_mid; then
27879 ac_lo= ac_hi=
27880 break
27881 fi
27882 ac_mid=`expr 2 '*' $ac_mid + 1`
27883fi
27884
27885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27886 done
27887else
27888 $as_echo "$as_me: failed program was:" >&5
27889sed 's/^/| /' conftest.$ac_ext >&5
27890
27891 cat >conftest.$ac_ext <<_ACEOF
27892/* confdefs.h. */
27893_ACEOF
27894cat confdefs.h >>conftest.$ac_ext
27895cat >>conftest.$ac_ext <<_ACEOF
27896/* end confdefs.h. */
27897$ac_includes_default
27898int
27899main ()
27900{
27901static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
27902test_array [0] = 0
27903
27904 ;
27905 return 0;
27906}
27907_ACEOF
27908rm -f conftest.$ac_objext
27909if { (ac_try="$ac_compile"
27910case "(($ac_try" in
27911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27912 *) ac_try_echo=$ac_try;;
27913esac
27914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27915$as_echo "$ac_try_echo") >&5
27916 (eval "$ac_compile") 2>conftest.er1
27917 ac_status=$?
27918 grep -v '^ *+' conftest.er1 >conftest.err
27919 rm -f conftest.er1
27920 cat conftest.err >&5
27921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922 (exit $ac_status); } && {
27923 test -z "$ac_c_werror_flag" ||
27924 test ! -s conftest.err
27925 } && test -s conftest.$ac_objext; then
27926 ac_hi=-1 ac_mid=-1
27927 while :; do
27928 cat >conftest.$ac_ext <<_ACEOF
27929/* confdefs.h. */
27930_ACEOF
27931cat confdefs.h >>conftest.$ac_ext
27932cat >>conftest.$ac_ext <<_ACEOF
27933/* end confdefs.h. */
27934$ac_includes_default
27935int
27936main ()
27937{
27938static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
27939test_array [0] = 0
27940
27941 ;
27942 return 0;
27943}
27944_ACEOF
27945rm -f conftest.$ac_objext
27946if { (ac_try="$ac_compile"
27947case "(($ac_try" in
27948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27949 *) ac_try_echo=$ac_try;;
27950esac
27951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27952$as_echo "$ac_try_echo") >&5
27953 (eval "$ac_compile") 2>conftest.er1
27954 ac_status=$?
27955 grep -v '^ *+' conftest.er1 >conftest.err
27956 rm -f conftest.er1
27957 cat conftest.err >&5
27958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); } && {
27960 test -z "$ac_c_werror_flag" ||
27961 test ! -s conftest.err
27962 } && test -s conftest.$ac_objext; then
27963 ac_lo=$ac_mid; break
27964else
27965 $as_echo "$as_me: failed program was:" >&5
27966sed 's/^/| /' conftest.$ac_ext >&5
27967
27968 ac_hi=`expr '(' $ac_mid ')' - 1`
27969 if test $ac_mid -le $ac_hi; then
27970 ac_lo= ac_hi=
27971 break
27972 fi
27973 ac_mid=`expr 2 '*' $ac_mid`
27974fi
27975
27976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27977 done
27978else
27979 $as_echo "$as_me: failed program was:" >&5
27980sed 's/^/| /' conftest.$ac_ext >&5
27981
27982 ac_lo= ac_hi=
27983fi
27984
27985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27986fi
27987
27988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27989# Binary search between lo and hi bounds.
27990while test "x$ac_lo" != "x$ac_hi"; do
27991 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27992 cat >conftest.$ac_ext <<_ACEOF
27993/* confdefs.h. */
27994_ACEOF
27995cat confdefs.h >>conftest.$ac_ext
27996cat >>conftest.$ac_ext <<_ACEOF
27997/* end confdefs.h. */
27998$ac_includes_default
27999int
28000main ()
28001{
28002static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
28003test_array [0] = 0
28004
28005 ;
28006 return 0;
28007}
28008_ACEOF
28009rm -f conftest.$ac_objext
28010if { (ac_try="$ac_compile"
28011case "(($ac_try" in
28012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013 *) ac_try_echo=$ac_try;;
28014esac
28015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28016$as_echo "$ac_try_echo") >&5
28017 (eval "$ac_compile") 2>conftest.er1
28018 ac_status=$?
28019 grep -v '^ *+' conftest.er1 >conftest.err
28020 rm -f conftest.er1
28021 cat conftest.err >&5
28022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28023 (exit $ac_status); } && {
28024 test -z "$ac_c_werror_flag" ||
28025 test ! -s conftest.err
28026 } && test -s conftest.$ac_objext; then
28027 ac_hi=$ac_mid
28028else
28029 $as_echo "$as_me: failed program was:" >&5
28030sed 's/^/| /' conftest.$ac_ext >&5
28031
28032 ac_lo=`expr '(' $ac_mid ')' + 1`
28033fi
28034
28035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28036done
28037case $ac_lo in
28038?*) ac_cv_sizeof_size_t=$ac_lo;;
28039'') if test "$ac_cv_type_size_t" = yes; then
28040 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28042{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28043See \`config.log' for more details." >&5
28044$as_echo "$as_me: error: cannot compute sizeof (size_t)
28045See \`config.log' for more details." >&2;}
28046 { (exit 77); exit 77; }; }; }
28047 else
28048 ac_cv_sizeof_size_t=0
28049 fi ;;
28050esac
28051else
28052 cat >conftest.$ac_ext <<_ACEOF
28053/* confdefs.h. */
28054_ACEOF
28055cat confdefs.h >>conftest.$ac_ext
28056cat >>conftest.$ac_ext <<_ACEOF
28057/* end confdefs.h. */
28058$ac_includes_default
28059static long int longval () { return (long int) (sizeof (size_t)); }
28060static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
28061#include <stdio.h>
28062#include <stdlib.h>
28063int
28064main ()
28065{
28066
28067 FILE *f = fopen ("conftest.val", "w");
28068 if (! f)
28069 return 1;
28070 if (((long int) (sizeof (size_t))) < 0)
28071 {
28072 long int i = longval ();
28073 if (i != ((long int) (sizeof (size_t))))
28074 return 1;
28075 fprintf (f, "%ld", i);
28076 }
28077 else
28078 {
28079 unsigned long int i = ulongval ();
28080 if (i != ((long int) (sizeof (size_t))))
28081 return 1;
28082 fprintf (f, "%lu", i);
28083 }
28084 /* Do not output a trailing newline, as this causes \r\n confusion
28085 on some platforms. */
28086 return ferror (f) || fclose (f) != 0;
28087
28088 ;
28089 return 0;
28090}
28091_ACEOF
28092rm -f conftest$ac_exeext
28093if { (ac_try="$ac_link"
28094case "(($ac_try" in
28095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28096 *) ac_try_echo=$ac_try;;
28097esac
28098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28099$as_echo "$ac_try_echo") >&5
28100 (eval "$ac_link") 2>&5
28101 ac_status=$?
28102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28104 { (case "(($ac_try" in
28105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28106 *) ac_try_echo=$ac_try;;
28107esac
28108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28109$as_echo "$ac_try_echo") >&5
28110 (eval "$ac_try") 2>&5
28111 ac_status=$?
28112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28113 (exit $ac_status); }; }; then
28114 ac_cv_sizeof_size_t=`cat conftest.val`
28115else
28116 $as_echo "$as_me: program exited with status $ac_status" >&5
28117$as_echo "$as_me: failed program was:" >&5
28118sed 's/^/| /' conftest.$ac_ext >&5
28119
28120( exit $ac_status )
28121if test "$ac_cv_type_size_t" = yes; then
28122 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28124{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28125See \`config.log' for more details." >&5
28126$as_echo "$as_me: error: cannot compute sizeof (size_t)
28127See \`config.log' for more details." >&2;}
28128 { (exit 77); exit 77; }; }; }
28129 else
28130 ac_cv_sizeof_size_t=0
28131 fi
28132fi
28133rm -rf conftest.dSYM
28134rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28135fi
28136rm -f conftest.val
28137fi
28138{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28139$as_echo "$ac_cv_sizeof_size_t" >&6; }
28140
28141
28142
28143cat >>confdefs.h <<_ACEOF
28144#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28145_ACEOF
28146
28147
28148
28149# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
28150# The cast to long int works around a bug in the HP C Compiler
28151# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28152# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28153# This bug is HP SR number 8606223364.
28154{ $as_echo "$as_me:$LINENO: checking size of unsigned int*" >&5
28155$as_echo_n "checking size of unsigned int*... " >&6; }
28156if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then
28157 $as_echo_n "(cached) " >&6
28158else
28159 if test "$cross_compiling" = yes; then
28160 # Depending upon the size, compute the lo and hi bounds.
28161cat >conftest.$ac_ext <<_ACEOF
28162/* confdefs.h. */
28163_ACEOF
28164cat confdefs.h >>conftest.$ac_ext
28165cat >>conftest.$ac_ext <<_ACEOF
28166/* end confdefs.h. */
28167$ac_includes_default
28168int
28169main ()
28170{
28171static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= 0)];
28172test_array [0] = 0
28173
28174 ;
28175 return 0;
28176}
28177_ACEOF
28178rm -f conftest.$ac_objext
28179if { (ac_try="$ac_compile"
28180case "(($ac_try" in
28181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28182 *) ac_try_echo=$ac_try;;
28183esac
28184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28185$as_echo "$ac_try_echo") >&5
28186 (eval "$ac_compile") 2>conftest.er1
28187 ac_status=$?
28188 grep -v '^ *+' conftest.er1 >conftest.err
28189 rm -f conftest.er1
28190 cat conftest.err >&5
28191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28192 (exit $ac_status); } && {
28193 test -z "$ac_c_werror_flag" ||
28194 test ! -s conftest.err
28195 } && test -s conftest.$ac_objext; then
28196 ac_lo=0 ac_mid=0
28197 while :; do
28198 cat >conftest.$ac_ext <<_ACEOF
28199/* confdefs.h. */
28200_ACEOF
28201cat confdefs.h >>conftest.$ac_ext
28202cat >>conftest.$ac_ext <<_ACEOF
28203/* end confdefs.h. */
28204$ac_includes_default
28205int
28206main ()
28207{
28208static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
28209test_array [0] = 0
28210
28211 ;
28212 return 0;
28213}
28214_ACEOF
28215rm -f conftest.$ac_objext
28216if { (ac_try="$ac_compile"
28217case "(($ac_try" in
28218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28219 *) ac_try_echo=$ac_try;;
28220esac
28221eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28222$as_echo "$ac_try_echo") >&5
28223 (eval "$ac_compile") 2>conftest.er1
28224 ac_status=$?
28225 grep -v '^ *+' conftest.er1 >conftest.err
28226 rm -f conftest.er1
28227 cat conftest.err >&5
28228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229 (exit $ac_status); } && {
28230 test -z "$ac_c_werror_flag" ||
28231 test ! -s conftest.err
28232 } && test -s conftest.$ac_objext; then
28233 ac_hi=$ac_mid; break
28234else
28235 $as_echo "$as_me: failed program was:" >&5
28236sed 's/^/| /' conftest.$ac_ext >&5
28237
28238 ac_lo=`expr $ac_mid + 1`
28239 if test $ac_lo -le $ac_mid; then
28240 ac_lo= ac_hi=
28241 break
28242 fi
28243 ac_mid=`expr 2 '*' $ac_mid + 1`
28244fi
28245
28246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28247 done
28248else
28249 $as_echo "$as_me: failed program was:" >&5
28250sed 's/^/| /' conftest.$ac_ext >&5
28251
28252 cat >conftest.$ac_ext <<_ACEOF
28253/* confdefs.h. */
28254_ACEOF
28255cat confdefs.h >>conftest.$ac_ext
28256cat >>conftest.$ac_ext <<_ACEOF
28257/* end confdefs.h. */
28258$ac_includes_default
28259int
28260main ()
28261{
28262static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) < 0)];
28263test_array [0] = 0
28264
28265 ;
28266 return 0;
28267}
28268_ACEOF
28269rm -f conftest.$ac_objext
28270if { (ac_try="$ac_compile"
28271case "(($ac_try" in
28272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28273 *) ac_try_echo=$ac_try;;
28274esac
28275eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28276$as_echo "$ac_try_echo") >&5
28277 (eval "$ac_compile") 2>conftest.er1
28278 ac_status=$?
28279 grep -v '^ *+' conftest.er1 >conftest.err
28280 rm -f conftest.er1
28281 cat conftest.err >&5
28282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28283 (exit $ac_status); } && {
28284 test -z "$ac_c_werror_flag" ||
28285 test ! -s conftest.err
28286 } && test -s conftest.$ac_objext; then
28287 ac_hi=-1 ac_mid=-1
28288 while :; do
28289 cat >conftest.$ac_ext <<_ACEOF
28290/* confdefs.h. */
28291_ACEOF
28292cat confdefs.h >>conftest.$ac_ext
28293cat >>conftest.$ac_ext <<_ACEOF
28294/* end confdefs.h. */
28295$ac_includes_default
28296int
28297main ()
28298{
28299static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= $ac_mid)];
28300test_array [0] = 0
28301
28302 ;
28303 return 0;
28304}
28305_ACEOF
28306rm -f conftest.$ac_objext
28307if { (ac_try="$ac_compile"
28308case "(($ac_try" in
28309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28310 *) ac_try_echo=$ac_try;;
28311esac
28312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28313$as_echo "$ac_try_echo") >&5
28314 (eval "$ac_compile") 2>conftest.er1
28315 ac_status=$?
28316 grep -v '^ *+' conftest.er1 >conftest.err
28317 rm -f conftest.er1
28318 cat conftest.err >&5
28319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28320 (exit $ac_status); } && {
28321 test -z "$ac_c_werror_flag" ||
28322 test ! -s conftest.err
28323 } && test -s conftest.$ac_objext; then
28324 ac_lo=$ac_mid; break
28325else
28326 $as_echo "$as_me: failed program was:" >&5
28327sed 's/^/| /' conftest.$ac_ext >&5
28328
28329 ac_hi=`expr '(' $ac_mid ')' - 1`
28330 if test $ac_mid -le $ac_hi; then
28331 ac_lo= ac_hi=
28332 break
28333 fi
28334 ac_mid=`expr 2 '*' $ac_mid`
28335fi
28336
28337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28338 done
28339else
28340 $as_echo "$as_me: failed program was:" >&5
28341sed 's/^/| /' conftest.$ac_ext >&5
28342
28343 ac_lo= ac_hi=
28344fi
28345
28346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28347fi
28348
28349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28350# Binary search between lo and hi bounds.
28351while test "x$ac_lo" != "x$ac_hi"; do
28352 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28353 cat >conftest.$ac_ext <<_ACEOF
28354/* confdefs.h. */
28355_ACEOF
28356cat confdefs.h >>conftest.$ac_ext
28357cat >>conftest.$ac_ext <<_ACEOF
28358/* end confdefs.h. */
28359$ac_includes_default
28360int
28361main ()
28362{
28363static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
28364test_array [0] = 0
28365
28366 ;
28367 return 0;
28368}
28369_ACEOF
28370rm -f conftest.$ac_objext
28371if { (ac_try="$ac_compile"
28372case "(($ac_try" in
28373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28374 *) ac_try_echo=$ac_try;;
28375esac
28376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28377$as_echo "$ac_try_echo") >&5
28378 (eval "$ac_compile") 2>conftest.er1
28379 ac_status=$?
28380 grep -v '^ *+' conftest.er1 >conftest.err
28381 rm -f conftest.er1
28382 cat conftest.err >&5
28383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28384 (exit $ac_status); } && {
28385 test -z "$ac_c_werror_flag" ||
28386 test ! -s conftest.err
28387 } && test -s conftest.$ac_objext; then
28388 ac_hi=$ac_mid
28389else
28390 $as_echo "$as_me: failed program was:" >&5
28391sed 's/^/| /' conftest.$ac_ext >&5
28392
28393 ac_lo=`expr '(' $ac_mid ')' + 1`
28394fi
28395
28396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28397done
28398case $ac_lo in
28399?*) ac_cv_sizeof_unsigned_intp=$ac_lo;;
28400'') if test "$ac_cv_type_unsigned_intp" = yes; then
28401 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28403{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
28404See \`config.log' for more details." >&5
28405$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
28406See \`config.log' for more details." >&2;}
28407 { (exit 77); exit 77; }; }; }
28408 else
28409 ac_cv_sizeof_unsigned_intp=0
28410 fi ;;
28411esac
28412else
28413 cat >conftest.$ac_ext <<_ACEOF
28414/* confdefs.h. */
28415_ACEOF
28416cat confdefs.h >>conftest.$ac_ext
28417cat >>conftest.$ac_ext <<_ACEOF
28418/* end confdefs.h. */
28419$ac_includes_default
28420static long int longval () { return (long int) (sizeof (unsigned int*)); }
28421static unsigned long int ulongval () { return (long int) (sizeof (unsigned int*)); }
28422#include <stdio.h>
28423#include <stdlib.h>
28424int
28425main ()
28426{
28427
28428 FILE *f = fopen ("conftest.val", "w");
28429 if (! f)
28430 return 1;
28431 if (((long int) (sizeof (unsigned int*))) < 0)
28432 {
28433 long int i = longval ();
28434 if (i != ((long int) (sizeof (unsigned int*))))
28435 return 1;
28436 fprintf (f, "%ld", i);
28437 }
28438 else
28439 {
28440 unsigned long int i = ulongval ();
28441 if (i != ((long int) (sizeof (unsigned int*))))
28442 return 1;
28443 fprintf (f, "%lu", i);
28444 }
28445 /* Do not output a trailing newline, as this causes \r\n confusion
28446 on some platforms. */
28447 return ferror (f) || fclose (f) != 0;
28448
28449 ;
28450 return 0;
28451}
28452_ACEOF
28453rm -f conftest$ac_exeext
28454if { (ac_try="$ac_link"
28455case "(($ac_try" in
28456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28457 *) ac_try_echo=$ac_try;;
28458esac
28459eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28460$as_echo "$ac_try_echo") >&5
28461 (eval "$ac_link") 2>&5
28462 ac_status=$?
28463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28465 { (case "(($ac_try" in
28466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28467 *) ac_try_echo=$ac_try;;
28468esac
28469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28470$as_echo "$ac_try_echo") >&5
28471 (eval "$ac_try") 2>&5
28472 ac_status=$?
28473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); }; }; then
28475 ac_cv_sizeof_unsigned_intp=`cat conftest.val`
28476else
28477 $as_echo "$as_me: program exited with status $ac_status" >&5
28478$as_echo "$as_me: failed program was:" >&5
28479sed 's/^/| /' conftest.$ac_ext >&5
28480
28481( exit $ac_status )
28482if test "$ac_cv_type_unsigned_intp" = yes; then
28483 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28485{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
28486See \`config.log' for more details." >&5
28487$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
28488See \`config.log' for more details." >&2;}
28489 { (exit 77); exit 77; }; }; }
28490 else
28491 ac_cv_sizeof_unsigned_intp=0
28492 fi
28493fi
28494rm -rf conftest.dSYM
28495rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28496fi
28497rm -f conftest.val
28498fi
28499{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_intp" >&5
28500$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
28501
28502
28503
28504cat >>confdefs.h <<_ACEOF
28505#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
28506_ACEOF
28507
28508
28509
28510#
28511# Compute sized types for current CPU and compiler options.
28512#
28513
28514{ $as_echo "$as_me:$LINENO: checking for signed 8-bit type" >&5
28515$as_echo_n "checking for signed 8-bit type... " >&6; }
28516INT8_T='signed char'
28517{ $as_echo "$as_me:$LINENO: result: $INT8_T" >&5
28518$as_echo "$INT8_T" >&6; }
28519
28520
28521{ $as_echo "$as_me:$LINENO: checking for unsigned 8-bit type" >&5
28522$as_echo_n "checking for unsigned 8-bit type... " >&6; }
28523UINT8_T='unsigned char'
28524{ $as_echo "$as_me:$LINENO: result: $UINT8_T" >&5
28525$as_echo "$UINT8_T" >&6; }
28526
28527
28528{ $as_echo "$as_me:$LINENO: checking for signed 16-bit type" >&5
28529$as_echo_n "checking for signed 16-bit type... " >&6; }
28530INT16_T='signed short'
28531{ $as_echo "$as_me:$LINENO: result: $INT16_T" >&5
28532$as_echo "$INT16_T" >&6; }
28533
28534
28535{ $as_echo "$as_me:$LINENO: checking for unsigned 16-bit type" >&5
28536$as_echo_n "checking for unsigned 16-bit type... " >&6; }
28537UINT16_T='unsigned short'
28538{ $as_echo "$as_me:$LINENO: result: $UINT16_T" >&5
28539$as_echo "$UINT16_T" >&6; }
28540
28541
28542{ $as_echo "$as_me:$LINENO: checking for signed 32-bit type" >&5
28543$as_echo_n "checking for signed 32-bit type... " >&6; }
28544INT32_T='none'
28545if test $ac_cv_sizeof_signed_int -eq 4; then
28546 INT32_T='signed int'
28547elif test $ac_cv_sizeof_signed_long -eq 4; then
28548 INT32_T='signed long'
28549fi
28550{ $as_echo "$as_me:$LINENO: result: $INT32_T" >&5
28551$as_echo "$INT32_T" >&6; }
28552
28553
28554{ $as_echo "$as_me:$LINENO: checking for unsigned 32-bit type" >&5
28555$as_echo_n "checking for unsigned 32-bit type... " >&6; }
28556UINT32_T='none'
28557if test $ac_cv_sizeof_unsigned_int -eq 4; then
28558 UINT32_T='unsigned int'
28559elif test $ac_cv_sizeof_unsigned_long -eq 4; then
28560 UINT32_T='unsigned long'
28561fi
28562{ $as_echo "$as_me:$LINENO: result: $UINT32_T" >&5
28563$as_echo "$UINT32_T" >&6; }
28564
28565
28566{ $as_echo "$as_me:$LINENO: checking for signed 64-bit type" >&5
28567$as_echo_n "checking for signed 64-bit type... " >&6; }
28568INT64_T='none'
28569if test $ac_cv_sizeof_signed_long -eq 8; then
28570 INT64_T='signed long'
28571elif test $ac_cv_sizeof_signed_long_long -eq 8; then
28572 INT64_T='signed long long'
28573fi
28574{ $as_echo "$as_me:$LINENO: result: $INT64_T" >&5
28575$as_echo "$INT64_T" >&6; }
28576
28577
28578{ $as_echo "$as_me:$LINENO: checking for unsigned 64-bit type" >&5
28579$as_echo_n "checking for unsigned 64-bit type... " >&6; }
28580UINT64_T='none'
28581if test $ac_cv_sizeof_unsigned_long -eq 8; then
28582 UINT64_T='unsigned long'
28583elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
28584 UINT64_T='unsigned long long'
28585fi
28586{ $as_echo "$as_me:$LINENO: result: $UINT64_T" >&5
28587$as_echo "$UINT64_T" >&6; }
28588
28589
28590{ $as_echo "$as_me:$LINENO: checking for unsigned maximum type" >&5
28591$as_echo_n "checking for unsigned maximum type... " >&6; }
28592UINTMAX_T='none'
28593if test "$UINT64_T" != 'none'; then
28594 UINTMAX_T=$UINT64_T
28595elif test "$UINT32_T" != 'none'; then
28596 UINTMAX_T=$UINT32_T
28597fi
28598{ $as_echo "$as_me:$LINENO: result: $UINTMAX_T" >&5
28599$as_echo "$UINTMAX_T" >&6; }
28600
28601
28602{ $as_echo "$as_me:$LINENO: checking for pointer difference type" >&5
28603$as_echo_n "checking for pointer difference type... " >&6; }
28604UINTPTR_T='none'
28605if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
28606 UINTPTR_T='unsigned long'
28607elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
28608 UINTPTR_T='unsigned long long'
28609fi
28610{ $as_echo "$as_me:$LINENO: result: $UINTPTR_T" >&5
28611$as_echo "$UINTPTR_T" >&6; }
28612
28613
28614{ $as_echo "$as_me:$LINENO: checking whether our compiler supports __func__" >&5
28615$as_echo_n "checking whether our compiler supports __func__... " >&6; }
28616cat >conftest.$ac_ext <<_ACEOF
28617/* confdefs.h. */
28618_ACEOF
28619cat confdefs.h >>conftest.$ac_ext
28620cat >>conftest.$ac_ext <<_ACEOF
28621/* end confdefs.h. */
28622
28623int
28624main ()
28625{
28626{ const char *func = __func__; return(func != 0 ? 0 : 1); }
28627 ;
28628 return 0;
28629}
28630_ACEOF
28631rm -f conftest.$ac_objext
28632if { (ac_try="$ac_compile"
28633case "(($ac_try" in
28634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28635 *) ac_try_echo=$ac_try;;
28636esac
28637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28638$as_echo "$ac_try_echo") >&5
28639 (eval "$ac_compile") 2>conftest.er1
28640 ac_status=$?
28641 grep -v '^ *+' conftest.er1 >conftest.err
28642 rm -f conftest.er1
28643 cat conftest.err >&5
28644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); } && {
28646 test -z "$ac_c_werror_flag" ||
28647 test ! -s conftest.err
28648 } && test -s conftest.$ac_objext; then
28649 { $as_echo "$as_me:$LINENO: result: yes" >&5
28650$as_echo "yes" >&6; }
28651else
28652 $as_echo "$as_me: failed program was:" >&5
28653sed 's/^/| /' conftest.$ac_ext >&5
28654
28655 { $as_echo "$as_me:$LINENO: result: no" >&5
28656$as_echo "no" >&6; }
28657 { $as_echo "$as_me:$LINENO: checking whether our compiler supports __FUNCTION__" >&5
28658$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
28659 cat >conftest.$ac_ext <<_ACEOF
28660/* confdefs.h. */
28661_ACEOF
28662cat confdefs.h >>conftest.$ac_ext
28663cat >>conftest.$ac_ext <<_ACEOF
28664/* end confdefs.h. */
28665
28666int
28667main ()
28668{
28669{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
28670 ;
28671 return 0;
28672}
28673_ACEOF
28674rm -f conftest.$ac_objext
28675if { (ac_try="$ac_compile"
28676case "(($ac_try" in
28677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28678 *) ac_try_echo=$ac_try;;
28679esac
28680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28681$as_echo "$ac_try_echo") >&5
28682 (eval "$ac_compile") 2>conftest.er1
28683 ac_status=$?
28684 grep -v '^ *+' conftest.er1 >conftest.err
28685 rm -f conftest.er1
28686 cat conftest.err >&5
28687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28688 (exit $ac_status); } && {
28689 test -z "$ac_c_werror_flag" ||
28690 test ! -s conftest.err
28691 } && test -s conftest.$ac_objext; then
28692 { $as_echo "$as_me:$LINENO: result: yes" >&5
28693$as_echo "yes" >&6; }
28694
28695cat >>confdefs.h <<\_ACEOF
28696#define __func__ __FUNCTION__
28697_ACEOF
28698
28699else
28700 $as_echo "$as_me: failed program was:" >&5
28701sed 's/^/| /' conftest.$ac_ext >&5
28702
28703 { $as_echo "$as_me:$LINENO: result: no" >&5
28704$as_echo "no" >&6; }
28705
28706cat >>confdefs.h <<\_ACEOF
28707#define __func__ __FILE__
28708_ACEOF
28709
28710fi
28711
28712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28713fi
28714
28715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28716
28717########
28718#
28719# Check for functions
28720#
28721########
28722
28723
28724for ac_header in stdlib.h unistd.h
28725do
28726as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28727if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28728 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28729$as_echo_n "checking for $ac_header... " >&6; }
28730if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28731 $as_echo_n "(cached) " >&6
28732fi
28733ac_res=`eval 'as_val=${'$as_ac_Header'}
28734 $as_echo "$as_val"'`
28735 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28736$as_echo "$ac_res" >&6; }
28737else
28738 # Is the header compilable?
28739{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28740$as_echo_n "checking $ac_header usability... " >&6; }
28741cat >conftest.$ac_ext <<_ACEOF
28742/* confdefs.h. */
28743_ACEOF
28744cat confdefs.h >>conftest.$ac_ext
28745cat >>conftest.$ac_ext <<_ACEOF
28746/* end confdefs.h. */
28747$ac_includes_default
28748#include <$ac_header>
28749_ACEOF
28750rm -f conftest.$ac_objext
28751if { (ac_try="$ac_compile"
28752case "(($ac_try" in
28753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28754 *) ac_try_echo=$ac_try;;
28755esac
28756eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28757$as_echo "$ac_try_echo") >&5
28758 (eval "$ac_compile") 2>conftest.er1
28759 ac_status=$?
28760 grep -v '^ *+' conftest.er1 >conftest.err
28761 rm -f conftest.er1
28762 cat conftest.err >&5
28763 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28764 (exit $ac_status); } && {
28765 test -z "$ac_c_werror_flag" ||
28766 test ! -s conftest.err
28767 } && test -s conftest.$ac_objext; then
28768 ac_header_compiler=yes
28769else
28770 $as_echo "$as_me: failed program was:" >&5
28771sed 's/^/| /' conftest.$ac_ext >&5
28772
28773 ac_header_compiler=no
28774fi
28775
28776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28777{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28778$as_echo "$ac_header_compiler" >&6; }
28779
28780# Is the header present?
28781{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28782$as_echo_n "checking $ac_header presence... " >&6; }
28783cat >conftest.$ac_ext <<_ACEOF
28784/* confdefs.h. */
28785_ACEOF
28786cat confdefs.h >>conftest.$ac_ext
28787cat >>conftest.$ac_ext <<_ACEOF
28788/* end confdefs.h. */
28789#include <$ac_header>
28790_ACEOF
28791if { (ac_try="$ac_cpp conftest.$ac_ext"
28792case "(($ac_try" in
28793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28794 *) ac_try_echo=$ac_try;;
28795esac
28796eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28797$as_echo "$ac_try_echo") >&5
28798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28799 ac_status=$?
28800 grep -v '^ *+' conftest.er1 >conftest.err
28801 rm -f conftest.er1
28802 cat conftest.err >&5
28803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28804 (exit $ac_status); } >/dev/null && {
28805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28806 test ! -s conftest.err
28807 }; then
28808 ac_header_preproc=yes
28809else
28810 $as_echo "$as_me: failed program was:" >&5
28811sed 's/^/| /' conftest.$ac_ext >&5
28812
28813 ac_header_preproc=no
28814fi
28815
28816rm -f conftest.err conftest.$ac_ext
28817{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28818$as_echo "$ac_header_preproc" >&6; }
28819
28820# So? What about this header?
28821case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28822 yes:no: )
28823 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28824$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28825 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28826$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28827 ac_header_preproc=yes
28828 ;;
28829 no:yes:* )
28830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28831$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28833$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28835$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28836 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28837$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28838 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28839$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28841$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28842 ( cat <<\_ASBOX
28843## ----------------------------------------- ##
28844## Report this to http://www.imagemagick.org ##
28845## ----------------------------------------- ##
28846_ASBOX
28847 ) | sed "s/^/$as_me: WARNING: /" >&2
28848 ;;
28849esac
28850{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28851$as_echo_n "checking for $ac_header... " >&6; }
28852if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28853 $as_echo_n "(cached) " >&6
28854else
28855 eval "$as_ac_Header=\$ac_header_preproc"
28856fi
28857ac_res=`eval 'as_val=${'$as_ac_Header'}
28858 $as_echo "$as_val"'`
28859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28860$as_echo "$ac_res" >&6; }
28861
28862fi
28863as_val=`eval 'as_val=${'$as_ac_Header'}
28864 $as_echo "$as_val"'`
28865 if test "x$as_val" = x""yes; then
28866 cat >>confdefs.h <<_ACEOF
28867#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28868_ACEOF
28869
28870fi
28871
28872done
28873
28874
28875for ac_func in getpagesize
28876do
28877as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28878{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28879$as_echo_n "checking for $ac_func... " >&6; }
28880if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28881 $as_echo_n "(cached) " >&6
28882else
28883 cat >conftest.$ac_ext <<_ACEOF
28884/* confdefs.h. */
28885_ACEOF
28886cat confdefs.h >>conftest.$ac_ext
28887cat >>conftest.$ac_ext <<_ACEOF
28888/* end confdefs.h. */
28889/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28890 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28891#define $ac_func innocuous_$ac_func
28892
28893/* System header to define __stub macros and hopefully few prototypes,
28894 which can conflict with char $ac_func (); below.
28895 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28896 <limits.h> exists even on freestanding compilers. */
28897
28898#ifdef __STDC__
28899# include <limits.h>
28900#else
28901# include <assert.h>
28902#endif
28903
28904#undef $ac_func
28905
28906/* Override any GCC internal prototype to avoid an error.
28907 Use char because int might match the return type of a GCC
28908 builtin and then its argument prototype would still apply. */
28909#ifdef __cplusplus
28910extern "C"
28911#endif
28912char $ac_func ();
28913/* The GNU C library defines this for functions which it implements
28914 to always fail with ENOSYS. Some functions are actually named
28915 something starting with __ and the normal name is an alias. */
28916#if defined __stub_$ac_func || defined __stub___$ac_func
28917choke me
28918#endif
28919
28920int
28921main ()
28922{
28923return $ac_func ();
28924 ;
28925 return 0;
28926}
28927_ACEOF
28928rm -f conftest.$ac_objext conftest$ac_exeext
28929if { (ac_try="$ac_link"
28930case "(($ac_try" in
28931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28932 *) ac_try_echo=$ac_try;;
28933esac
28934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28935$as_echo "$ac_try_echo") >&5
28936 (eval "$ac_link") 2>conftest.er1
28937 ac_status=$?
28938 grep -v '^ *+' conftest.er1 >conftest.err
28939 rm -f conftest.er1
28940 cat conftest.err >&5
28941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28942 (exit $ac_status); } && {
28943 test -z "$ac_c_werror_flag" ||
28944 test ! -s conftest.err
28945 } && test -s conftest$ac_exeext && {
28946 test "$cross_compiling" = yes ||
28947 $as_test_x conftest$ac_exeext
28948 }; then
28949 eval "$as_ac_var=yes"
28950else
28951 $as_echo "$as_me: failed program was:" >&5
28952sed 's/^/| /' conftest.$ac_ext >&5
28953
28954 eval "$as_ac_var=no"
28955fi
28956
28957rm -rf conftest.dSYM
28958rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28959 conftest$ac_exeext conftest.$ac_ext
28960fi
28961ac_res=`eval 'as_val=${'$as_ac_var'}
28962 $as_echo "$as_val"'`
28963 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28964$as_echo "$ac_res" >&6; }
28965as_val=`eval 'as_val=${'$as_ac_var'}
28966 $as_echo "$as_val"'`
28967 if test "x$as_val" = x""yes; then
28968 cat >>confdefs.h <<_ACEOF
28969#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28970_ACEOF
28971
28972fi
28973done
28974
28975{ $as_echo "$as_me:$LINENO: checking for working mmap file i/o" >&5
28976$as_echo_n "checking for working mmap file i/o... " >&6; }
28977if test "${magick_cv_func_mmap_fileio+set}" = set; then
28978 $as_echo_n "(cached) " >&6
28979else
28980 if test "$cross_compiling" = yes; then
28981 magick_cv_func_mmap_fileio=no
28982else
28983 cat >conftest.$ac_ext <<_ACEOF
28984/* confdefs.h. */
28985_ACEOF
28986cat confdefs.h >>conftest.$ac_ext
28987cat >>conftest.$ac_ext <<_ACEOF
28988/* end confdefs.h. */
28989$ac_includes_default
28990/* malloc might have been renamed as rpl_malloc. */
28991#undef malloc
28992
28993/*
28994 This test is derived from GNU Autoconf's similar macro.
28995 The purpose of this test is to verify that files may be memory
28996 mapped, and that memory mapping and file I/O are coherent.
28997
28998 The test creates a test file, memory maps the file, updates
28999 the file using the memory map, and then reads the file using
29000 file I/O to verify that the file contains the updates.
29001*/
29002
29003#include <fcntl.h>
29004#include <sys/mman.h>
29005
29006#if !STDC_HEADERS && !HAVE_STDLIB_H
29007char *malloc ();
29008#endif
29009
29010/* This mess was copied from the GNU getpagesize.h. */
29011#if !HAVE_GETPAGESIZE
29012/* Assume that all systems that can run configure have sys/param.h. */
29013# if !HAVE_SYS_PARAM_H
29014# define HAVE_SYS_PARAM_H 1
29015# endif
29016
29017# ifdef _SC_PAGESIZE
29018# define getpagesize() sysconf(_SC_PAGESIZE)
29019# else /* no _SC_PAGESIZE */
29020# if HAVE_SYS_PARAM_H
29021# include <sys/param.h>
29022# ifdef EXEC_PAGESIZE
29023# define getpagesize() EXEC_PAGESIZE
29024# else /* no EXEC_PAGESIZE */
29025# ifdef NBPG
29026# define getpagesize() NBPG * CLSIZE
29027# ifndef CLSIZE
29028# define CLSIZE 1
29029# endif /* no CLSIZE */
29030# else /* no NBPG */
29031# ifdef NBPC
29032# define getpagesize() NBPC
29033# else /* no NBPC */
29034# ifdef PAGESIZE
29035# define getpagesize() PAGESIZE
29036# endif /* PAGESIZE */
29037# endif /* no NBPC */
29038# endif /* no NBPG */
29039# endif /* no EXEC_PAGESIZE */
29040# else /* no HAVE_SYS_PARAM_H */
29041# define getpagesize() 8192 /* punt totally */
29042# endif /* no HAVE_SYS_PARAM_H */
29043# endif /* no _SC_PAGESIZE */
29044
29045#endif /* no HAVE_GETPAGESIZE */
29046
29047int
29048main ()
29049{
29050 char *data, *data2, *data3;
29051 int i, pagesize;
29052 int fd;
29053
29054 pagesize = getpagesize ();
29055
29056 /* First, make a file with some known garbage in it. */
29057 data = (char *) malloc (pagesize);
29058 if (!data)
29059 exit (1);
29060 for (i = 0; i < pagesize; ++i)
29061 *(data + i) = rand ();
29062 umask (0);
29063 fd = creat ("conftest.mmap", 0600);
29064 if (fd < 0)
29065 exit (1);
29066 if (write (fd, data, pagesize) != pagesize)
29067 exit (1);
29068 close (fd);
29069
29070 /* Mmap the file as read/write/shared and verify that we see the
29071 same garbage. */
29072 fd = open ("conftest.mmap", O_RDWR);
29073 if (fd < 0)
29074 exit (1);
29075 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
29076 if (data2 == 0)
29077 exit (1);
29078 for (i = 0; i < pagesize; ++i)
29079 if (*(data + i) != *(data2 + i))
29080 exit (1);
29081
29082 /* Finally, make sure that changes to the mapped area
29083 percolate back to the file as seen by read(). */
29084 for (i = 0; i < pagesize; ++i)
29085 *(data2 + i) = *(data2 + i) + 1;
29086 data3 = (char *) malloc (pagesize);
29087 if (!data3)
29088 exit (1);
29089 if (read (fd, data3, pagesize) != pagesize)
29090 exit (1);
29091 for (i = 0; i < pagesize; ++i)
29092 if (*(data2 + i) != *(data3 + i))
29093 exit (1);
29094 close (fd);
29095 exit (0);
29096}
29097_ACEOF
29098rm -f conftest$ac_exeext
29099if { (ac_try="$ac_link"
29100case "(($ac_try" in
29101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102 *) ac_try_echo=$ac_try;;
29103esac
29104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29105$as_echo "$ac_try_echo") >&5
29106 (eval "$ac_link") 2>&5
29107 ac_status=$?
29108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29110 { (case "(($ac_try" in
29111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29112 *) ac_try_echo=$ac_try;;
29113esac
29114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29115$as_echo "$ac_try_echo") >&5
29116 (eval "$ac_try") 2>&5
29117 ac_status=$?
29118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29119 (exit $ac_status); }; }; then
29120 magick_cv_func_mmap_fileio=yes
29121else
29122 $as_echo "$as_me: program exited with status $ac_status" >&5
29123$as_echo "$as_me: failed program was:" >&5
29124sed 's/^/| /' conftest.$ac_ext >&5
29125
29126( exit $ac_status )
29127magick_cv_func_mmap_fileio=no
29128fi
29129rm -rf conftest.dSYM
29130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29131fi
29132
29133
29134fi
29135{ $as_echo "$as_me:$LINENO: result: $magick_cv_func_mmap_fileio" >&5
29136$as_echo "$magick_cv_func_mmap_fileio" >&6; }
29137if test $magick_cv_func_mmap_fileio = yes; then
29138
29139cat >>confdefs.h <<\_ACEOF
29140#define HAVE_MMAP_FILEIO 1
29141_ACEOF
29142
29143fi
29144rm -f conftest.mmap
29145
29146{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29147$as_echo_n "checking whether closedir returns void... " >&6; }
29148if test "${ac_cv_func_closedir_void+set}" = set; then
29149 $as_echo_n "(cached) " >&6
29150else
29151 if test "$cross_compiling" = yes; then
29152 ac_cv_func_closedir_void=yes
29153else
29154 cat >conftest.$ac_ext <<_ACEOF
29155/* confdefs.h. */
29156_ACEOF
29157cat confdefs.h >>conftest.$ac_ext
29158cat >>conftest.$ac_ext <<_ACEOF
29159/* end confdefs.h. */
29160$ac_includes_default
29161#include <$ac_header_dirent>
29162#ifndef __cplusplus
29163int closedir ();
29164#endif
29165
29166int
29167main ()
29168{
29169return closedir (opendir (".")) != 0;
29170 ;
29171 return 0;
29172}
29173_ACEOF
29174rm -f conftest$ac_exeext
29175if { (ac_try="$ac_link"
29176case "(($ac_try" in
29177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29178 *) ac_try_echo=$ac_try;;
29179esac
29180eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29181$as_echo "$ac_try_echo") >&5
29182 (eval "$ac_link") 2>&5
29183 ac_status=$?
29184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29185 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29186 { (case "(($ac_try" in
29187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29188 *) ac_try_echo=$ac_try;;
29189esac
29190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29191$as_echo "$ac_try_echo") >&5
29192 (eval "$ac_try") 2>&5
29193 ac_status=$?
29194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); }; }; then
29196 ac_cv_func_closedir_void=no
29197else
29198 $as_echo "$as_me: program exited with status $ac_status" >&5
29199$as_echo "$as_me: failed program was:" >&5
29200sed 's/^/| /' conftest.$ac_ext >&5
29201
29202( exit $ac_status )
29203ac_cv_func_closedir_void=yes
29204fi
29205rm -rf conftest.dSYM
29206rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29207fi
29208
29209
29210fi
29211{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29212$as_echo "$ac_cv_func_closedir_void" >&6; }
29213if test $ac_cv_func_closedir_void = yes; then
29214
29215cat >>confdefs.h <<\_ACEOF
29216#define CLOSEDIR_VOID 1
29217_ACEOF
29218
29219fi
29220
29221
29222
29223for ac_header in stdlib.h unistd.h
29224do
29225as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29227 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29228$as_echo_n "checking for $ac_header... " >&6; }
29229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29230 $as_echo_n "(cached) " >&6
29231fi
29232ac_res=`eval 'as_val=${'$as_ac_Header'}
29233 $as_echo "$as_val"'`
29234 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29235$as_echo "$ac_res" >&6; }
29236else
29237 # Is the header compilable?
29238{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29239$as_echo_n "checking $ac_header usability... " >&6; }
29240cat >conftest.$ac_ext <<_ACEOF
29241/* confdefs.h. */
29242_ACEOF
29243cat confdefs.h >>conftest.$ac_ext
29244cat >>conftest.$ac_ext <<_ACEOF
29245/* end confdefs.h. */
29246$ac_includes_default
29247#include <$ac_header>
29248_ACEOF
29249rm -f conftest.$ac_objext
29250if { (ac_try="$ac_compile"
29251case "(($ac_try" in
29252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29253 *) ac_try_echo=$ac_try;;
29254esac
29255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29256$as_echo "$ac_try_echo") >&5
29257 (eval "$ac_compile") 2>conftest.er1
29258 ac_status=$?
29259 grep -v '^ *+' conftest.er1 >conftest.err
29260 rm -f conftest.er1
29261 cat conftest.err >&5
29262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29263 (exit $ac_status); } && {
29264 test -z "$ac_c_werror_flag" ||
29265 test ! -s conftest.err
29266 } && test -s conftest.$ac_objext; then
29267 ac_header_compiler=yes
29268else
29269 $as_echo "$as_me: failed program was:" >&5
29270sed 's/^/| /' conftest.$ac_ext >&5
29271
29272 ac_header_compiler=no
29273fi
29274
29275rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29276{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29277$as_echo "$ac_header_compiler" >&6; }
29278
29279# Is the header present?
29280{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29281$as_echo_n "checking $ac_header presence... " >&6; }
29282cat >conftest.$ac_ext <<_ACEOF
29283/* confdefs.h. */
29284_ACEOF
29285cat confdefs.h >>conftest.$ac_ext
29286cat >>conftest.$ac_ext <<_ACEOF
29287/* end confdefs.h. */
29288#include <$ac_header>
29289_ACEOF
29290if { (ac_try="$ac_cpp conftest.$ac_ext"
29291case "(($ac_try" in
29292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29293 *) ac_try_echo=$ac_try;;
29294esac
29295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29296$as_echo "$ac_try_echo") >&5
29297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29298 ac_status=$?
29299 grep -v '^ *+' conftest.er1 >conftest.err
29300 rm -f conftest.er1
29301 cat conftest.err >&5
29302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); } >/dev/null && {
29304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29305 test ! -s conftest.err
29306 }; then
29307 ac_header_preproc=yes
29308else
29309 $as_echo "$as_me: failed program was:" >&5
29310sed 's/^/| /' conftest.$ac_ext >&5
29311
29312 ac_header_preproc=no
29313fi
29314
29315rm -f conftest.err conftest.$ac_ext
29316{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29317$as_echo "$ac_header_preproc" >&6; }
29318
29319# So? What about this header?
29320case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29321 yes:no: )
29322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29323$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29325$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29326 ac_header_preproc=yes
29327 ;;
29328 no:yes:* )
29329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29330$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29332$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29334$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29336$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29338$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29339 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29340$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29341 ( cat <<\_ASBOX
29342## ----------------------------------------- ##
29343## Report this to http://www.imagemagick.org ##
29344## ----------------------------------------- ##
29345_ASBOX
29346 ) | sed "s/^/$as_me: WARNING: /" >&2
29347 ;;
29348esac
29349{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29350$as_echo_n "checking for $ac_header... " >&6; }
29351if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29352 $as_echo_n "(cached) " >&6
29353else
29354 eval "$as_ac_Header=\$ac_header_preproc"
29355fi
29356ac_res=`eval 'as_val=${'$as_ac_Header'}
29357 $as_echo "$as_val"'`
29358 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29359$as_echo "$ac_res" >&6; }
29360
29361fi
29362as_val=`eval 'as_val=${'$as_ac_Header'}
29363 $as_echo "$as_val"'`
29364 if test "x$as_val" = x""yes; then
29365 cat >>confdefs.h <<_ACEOF
29366#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29367_ACEOF
29368
29369fi
29370
29371done
29372
29373
29374for ac_func in getpagesize
29375do
29376as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29377{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29378$as_echo_n "checking for $ac_func... " >&6; }
29379if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29380 $as_echo_n "(cached) " >&6
29381else
29382 cat >conftest.$ac_ext <<_ACEOF
29383/* confdefs.h. */
29384_ACEOF
29385cat confdefs.h >>conftest.$ac_ext
29386cat >>conftest.$ac_ext <<_ACEOF
29387/* end confdefs.h. */
29388/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29390#define $ac_func innocuous_$ac_func
29391
29392/* System header to define __stub macros and hopefully few prototypes,
29393 which can conflict with char $ac_func (); below.
29394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29395 <limits.h> exists even on freestanding compilers. */
29396
29397#ifdef __STDC__
29398# include <limits.h>
29399#else
29400# include <assert.h>
29401#endif
29402
29403#undef $ac_func
29404
29405/* Override any GCC internal prototype to avoid an error.
29406 Use char because int might match the return type of a GCC
29407 builtin and then its argument prototype would still apply. */
29408#ifdef __cplusplus
29409extern "C"
29410#endif
29411char $ac_func ();
29412/* The GNU C library defines this for functions which it implements
29413 to always fail with ENOSYS. Some functions are actually named
29414 something starting with __ and the normal name is an alias. */
29415#if defined __stub_$ac_func || defined __stub___$ac_func
29416choke me
29417#endif
29418
29419int
29420main ()
29421{
29422return $ac_func ();
29423 ;
29424 return 0;
29425}
29426_ACEOF
29427rm -f conftest.$ac_objext conftest$ac_exeext
29428if { (ac_try="$ac_link"
29429case "(($ac_try" in
29430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29431 *) ac_try_echo=$ac_try;;
29432esac
29433eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29434$as_echo "$ac_try_echo") >&5
29435 (eval "$ac_link") 2>conftest.er1
29436 ac_status=$?
29437 grep -v '^ *+' conftest.er1 >conftest.err
29438 rm -f conftest.er1
29439 cat conftest.err >&5
29440 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29441 (exit $ac_status); } && {
29442 test -z "$ac_c_werror_flag" ||
29443 test ! -s conftest.err
29444 } && test -s conftest$ac_exeext && {
29445 test "$cross_compiling" = yes ||
29446 $as_test_x conftest$ac_exeext
29447 }; then
29448 eval "$as_ac_var=yes"
29449else
29450 $as_echo "$as_me: failed program was:" >&5
29451sed 's/^/| /' conftest.$ac_ext >&5
29452
29453 eval "$as_ac_var=no"
29454fi
29455
29456rm -rf conftest.dSYM
29457rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29458 conftest$ac_exeext conftest.$ac_ext
29459fi
29460ac_res=`eval 'as_val=${'$as_ac_var'}
29461 $as_echo "$as_val"'`
29462 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29463$as_echo "$ac_res" >&6; }
29464as_val=`eval 'as_val=${'$as_ac_var'}
29465 $as_echo "$as_val"'`
29466 if test "x$as_val" = x""yes; then
29467 cat >>confdefs.h <<_ACEOF
29468#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29469_ACEOF
29470
29471fi
29472done
29473
29474{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
29475$as_echo_n "checking for working mmap... " >&6; }
29476if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29477 $as_echo_n "(cached) " >&6
29478else
29479 if test "$cross_compiling" = yes; then
29480 ac_cv_func_mmap_fixed_mapped=no
29481else
29482 cat >conftest.$ac_ext <<_ACEOF
29483/* confdefs.h. */
29484_ACEOF
29485cat confdefs.h >>conftest.$ac_ext
29486cat >>conftest.$ac_ext <<_ACEOF
29487/* end confdefs.h. */
29488$ac_includes_default
29489/* malloc might have been renamed as rpl_malloc. */
29490#undef malloc
29491
29492/* Thanks to Mike Haertel and Jim Avera for this test.
29493 Here is a matrix of mmap possibilities:
29494 mmap private not fixed
29495 mmap private fixed at somewhere currently unmapped
29496 mmap private fixed at somewhere already mapped
29497 mmap shared not fixed
29498 mmap shared fixed at somewhere currently unmapped
29499 mmap shared fixed at somewhere already mapped
29500 For private mappings, we should verify that changes cannot be read()
29501 back from the file, nor mmap's back from the file at a different
29502 address. (There have been systems where private was not correctly
29503 implemented like the infamous i386 svr4.0, and systems where the
29504 VM page cache was not coherent with the file system buffer cache
29505 like early versions of FreeBSD and possibly contemporary NetBSD.)
29506 For shared mappings, we should conversely verify that changes get
29507 propagated back to all the places they're supposed to be.
29508
29509 Grep wants private fixed already mapped.
29510 The main things grep needs to know about mmap are:
29511 * does it exist and is it safe to write into the mmap'd area
29512 * how to use it (BSD variants) */
29513
29514#include <fcntl.h>
29515#include <sys/mman.h>
29516
29517#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
29518char *malloc ();
29519#endif
29520
29521/* This mess was copied from the GNU getpagesize.h. */
29522#ifndef HAVE_GETPAGESIZE
29523/* Assume that all systems that can run configure have sys/param.h. */
29524# ifndef HAVE_SYS_PARAM_H
29525# define HAVE_SYS_PARAM_H 1
29526# endif
29527
29528# ifdef _SC_PAGESIZE
29529# define getpagesize() sysconf(_SC_PAGESIZE)
29530# else /* no _SC_PAGESIZE */
29531# ifdef HAVE_SYS_PARAM_H
29532# include <sys/param.h>
29533# ifdef EXEC_PAGESIZE
29534# define getpagesize() EXEC_PAGESIZE
29535# else /* no EXEC_PAGESIZE */
29536# ifdef NBPG
29537# define getpagesize() NBPG * CLSIZE
29538# ifndef CLSIZE
29539# define CLSIZE 1
29540# endif /* no CLSIZE */
29541# else /* no NBPG */
29542# ifdef NBPC
29543# define getpagesize() NBPC
29544# else /* no NBPC */
29545# ifdef PAGESIZE
29546# define getpagesize() PAGESIZE
29547# endif /* PAGESIZE */
29548# endif /* no NBPC */
29549# endif /* no NBPG */
29550# endif /* no EXEC_PAGESIZE */
29551# else /* no HAVE_SYS_PARAM_H */
29552# define getpagesize() 8192 /* punt totally */
29553# endif /* no HAVE_SYS_PARAM_H */
29554# endif /* no _SC_PAGESIZE */
29555
29556#endif /* no HAVE_GETPAGESIZE */
29557
29558int
29559main ()
29560{
29561 char *data, *data2, *data3;
29562 int i, pagesize;
29563 int fd;
29564
29565 pagesize = getpagesize ();
29566
29567 /* First, make a file with some known garbage in it. */
29568 data = (char *) malloc (pagesize);
29569 if (!data)
29570 return 1;
29571 for (i = 0; i < pagesize; ++i)
29572 *(data + i) = rand ();
29573 umask (0);
29574 fd = creat ("conftest.mmap", 0600);
29575 if (fd < 0)
29576 return 1;
29577 if (write (fd, data, pagesize) != pagesize)
29578 return 1;
29579 close (fd);
29580
29581 /* Next, try to mmap the file at a fixed address which already has
29582 something else allocated at it. If we can, also make sure that
29583 we see the same garbage. */
29584 fd = open ("conftest.mmap", O_RDWR);
29585 if (fd < 0)
29586 return 1;
29587 data2 = (char *) malloc (2 * pagesize);
29588 if (!data2)
29589 return 1;
29590 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
29591 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29592 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29593 return 1;
29594 for (i = 0; i < pagesize; ++i)
29595 if (*(data + i) != *(data2 + i))
29596 return 1;
29597
29598 /* Finally, make sure that changes to the mapped area do not
29599 percolate back to the file as seen by read(). (This is a bug on
29600 some variants of i386 svr4.0.) */
29601 for (i = 0; i < pagesize; ++i)
29602 *(data2 + i) = *(data2 + i) + 1;
29603 data3 = (char *) malloc (pagesize);
29604 if (!data3)
29605 return 1;
29606 if (read (fd, data3, pagesize) != pagesize)
29607 return 1;
29608 for (i = 0; i < pagesize; ++i)
29609 if (*(data + i) != *(data3 + i))
29610 return 1;
29611 close (fd);
29612 return 0;
29613}
29614_ACEOF
29615rm -f conftest$ac_exeext
29616if { (ac_try="$ac_link"
29617case "(($ac_try" in
29618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29619 *) ac_try_echo=$ac_try;;
29620esac
29621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29622$as_echo "$ac_try_echo") >&5
29623 (eval "$ac_link") 2>&5
29624 ac_status=$?
29625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29627 { (case "(($ac_try" in
29628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29629 *) ac_try_echo=$ac_try;;
29630esac
29631eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29632$as_echo "$ac_try_echo") >&5
29633 (eval "$ac_try") 2>&5
29634 ac_status=$?
29635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29636 (exit $ac_status); }; }; then
29637 ac_cv_func_mmap_fixed_mapped=yes
29638else
29639 $as_echo "$as_me: program exited with status $ac_status" >&5
29640$as_echo "$as_me: failed program was:" >&5
29641sed 's/^/| /' conftest.$ac_ext >&5
29642
29643( exit $ac_status )
29644ac_cv_func_mmap_fixed_mapped=no
29645fi
29646rm -rf conftest.dSYM
29647rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29648fi
29649
29650
29651fi
29652{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29653$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
29654if test $ac_cv_func_mmap_fixed_mapped = yes; then
29655
29656cat >>confdefs.h <<\_ACEOF
29657#define HAVE_MMAP 1
29658_ACEOF
29659
29660fi
29661rm -f conftest.mmap
29662
29663
29664for ac_header in vfork.h
29665do
29666as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29667if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29669$as_echo_n "checking for $ac_header... " >&6; }
29670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29671 $as_echo_n "(cached) " >&6
29672fi
29673ac_res=`eval 'as_val=${'$as_ac_Header'}
29674 $as_echo "$as_val"'`
29675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29676$as_echo "$ac_res" >&6; }
29677else
29678 # Is the header compilable?
29679{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29680$as_echo_n "checking $ac_header usability... " >&6; }
29681cat >conftest.$ac_ext <<_ACEOF
29682/* confdefs.h. */
29683_ACEOF
29684cat confdefs.h >>conftest.$ac_ext
29685cat >>conftest.$ac_ext <<_ACEOF
29686/* end confdefs.h. */
29687$ac_includes_default
29688#include <$ac_header>
29689_ACEOF
29690rm -f conftest.$ac_objext
29691if { (ac_try="$ac_compile"
29692case "(($ac_try" in
29693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29694 *) ac_try_echo=$ac_try;;
29695esac
29696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29697$as_echo "$ac_try_echo") >&5
29698 (eval "$ac_compile") 2>conftest.er1
29699 ac_status=$?
29700 grep -v '^ *+' conftest.er1 >conftest.err
29701 rm -f conftest.er1
29702 cat conftest.err >&5
29703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29704 (exit $ac_status); } && {
29705 test -z "$ac_c_werror_flag" ||
29706 test ! -s conftest.err
29707 } && test -s conftest.$ac_objext; then
29708 ac_header_compiler=yes
29709else
29710 $as_echo "$as_me: failed program was:" >&5
29711sed 's/^/| /' conftest.$ac_ext >&5
29712
29713 ac_header_compiler=no
29714fi
29715
29716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29717{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29718$as_echo "$ac_header_compiler" >&6; }
29719
29720# Is the header present?
29721{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29722$as_echo_n "checking $ac_header presence... " >&6; }
29723cat >conftest.$ac_ext <<_ACEOF
29724/* confdefs.h. */
29725_ACEOF
29726cat confdefs.h >>conftest.$ac_ext
29727cat >>conftest.$ac_ext <<_ACEOF
29728/* end confdefs.h. */
29729#include <$ac_header>
29730_ACEOF
29731if { (ac_try="$ac_cpp conftest.$ac_ext"
29732case "(($ac_try" in
29733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734 *) ac_try_echo=$ac_try;;
29735esac
29736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29737$as_echo "$ac_try_echo") >&5
29738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29739 ac_status=$?
29740 grep -v '^ *+' conftest.er1 >conftest.err
29741 rm -f conftest.er1
29742 cat conftest.err >&5
29743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744 (exit $ac_status); } >/dev/null && {
29745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29746 test ! -s conftest.err
29747 }; then
29748 ac_header_preproc=yes
29749else
29750 $as_echo "$as_me: failed program was:" >&5
29751sed 's/^/| /' conftest.$ac_ext >&5
29752
29753 ac_header_preproc=no
29754fi
29755
29756rm -f conftest.err conftest.$ac_ext
29757{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29758$as_echo "$ac_header_preproc" >&6; }
29759
29760# So? What about this header?
29761case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29762 yes:no: )
29763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29764$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29766$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29767 ac_header_preproc=yes
29768 ;;
29769 no:yes:* )
29770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29771$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29773$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29775$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29777$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29779$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29781$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29782 ( cat <<\_ASBOX
29783## ----------------------------------------- ##
29784## Report this to http://www.imagemagick.org ##
29785## ----------------------------------------- ##
29786_ASBOX
29787 ) | sed "s/^/$as_me: WARNING: /" >&2
29788 ;;
29789esac
29790{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29791$as_echo_n "checking for $ac_header... " >&6; }
29792if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29793 $as_echo_n "(cached) " >&6
29794else
29795 eval "$as_ac_Header=\$ac_header_preproc"
29796fi
29797ac_res=`eval 'as_val=${'$as_ac_Header'}
29798 $as_echo "$as_val"'`
29799 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29800$as_echo "$ac_res" >&6; }
29801
29802fi
29803as_val=`eval 'as_val=${'$as_ac_Header'}
29804 $as_echo "$as_val"'`
29805 if test "x$as_val" = x""yes; then
29806 cat >>confdefs.h <<_ACEOF
29807#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29808_ACEOF
29809
29810fi
29811
29812done
29813
29814
29815
29816for ac_func in fork vfork
29817do
29818as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29819{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29820$as_echo_n "checking for $ac_func... " >&6; }
29821if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29822 $as_echo_n "(cached) " >&6
29823else
29824 cat >conftest.$ac_ext <<_ACEOF
29825/* confdefs.h. */
29826_ACEOF
29827cat confdefs.h >>conftest.$ac_ext
29828cat >>conftest.$ac_ext <<_ACEOF
29829/* end confdefs.h. */
29830/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29832#define $ac_func innocuous_$ac_func
29833
29834/* System header to define __stub macros and hopefully few prototypes,
29835 which can conflict with char $ac_func (); below.
29836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29837 <limits.h> exists even on freestanding compilers. */
29838
29839#ifdef __STDC__
29840# include <limits.h>
29841#else
29842# include <assert.h>
29843#endif
29844
29845#undef $ac_func
29846
29847/* Override any GCC internal prototype to avoid an error.
29848 Use char because int might match the return type of a GCC
29849 builtin and then its argument prototype would still apply. */
29850#ifdef __cplusplus
29851extern "C"
29852#endif
29853char $ac_func ();
29854/* The GNU C library defines this for functions which it implements
29855 to always fail with ENOSYS. Some functions are actually named
29856 something starting with __ and the normal name is an alias. */
29857#if defined __stub_$ac_func || defined __stub___$ac_func
29858choke me
29859#endif
29860
29861int
29862main ()
29863{
29864return $ac_func ();
29865 ;
29866 return 0;
29867}
29868_ACEOF
29869rm -f conftest.$ac_objext conftest$ac_exeext
29870if { (ac_try="$ac_link"
29871case "(($ac_try" in
29872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29873 *) ac_try_echo=$ac_try;;
29874esac
29875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29876$as_echo "$ac_try_echo") >&5
29877 (eval "$ac_link") 2>conftest.er1
29878 ac_status=$?
29879 grep -v '^ *+' conftest.er1 >conftest.err
29880 rm -f conftest.er1
29881 cat conftest.err >&5
29882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29883 (exit $ac_status); } && {
29884 test -z "$ac_c_werror_flag" ||
29885 test ! -s conftest.err
29886 } && test -s conftest$ac_exeext && {
29887 test "$cross_compiling" = yes ||
29888 $as_test_x conftest$ac_exeext
29889 }; then
29890 eval "$as_ac_var=yes"
29891else
29892 $as_echo "$as_me: failed program was:" >&5
29893sed 's/^/| /' conftest.$ac_ext >&5
29894
29895 eval "$as_ac_var=no"
29896fi
29897
29898rm -rf conftest.dSYM
29899rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29900 conftest$ac_exeext conftest.$ac_ext
29901fi
29902ac_res=`eval 'as_val=${'$as_ac_var'}
29903 $as_echo "$as_val"'`
29904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29905$as_echo "$ac_res" >&6; }
29906as_val=`eval 'as_val=${'$as_ac_var'}
29907 $as_echo "$as_val"'`
29908 if test "x$as_val" = x""yes; then
29909 cat >>confdefs.h <<_ACEOF
29910#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29911_ACEOF
29912
29913fi
29914done
29915
29916if test "x$ac_cv_func_fork" = xyes; then
29917 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
29918$as_echo_n "checking for working fork... " >&6; }
29919if test "${ac_cv_func_fork_works+set}" = set; then
29920 $as_echo_n "(cached) " >&6
29921else
29922 if test "$cross_compiling" = yes; then
29923 ac_cv_func_fork_works=cross
29924else
29925 cat >conftest.$ac_ext <<_ACEOF
29926/* confdefs.h. */
29927_ACEOF
29928cat confdefs.h >>conftest.$ac_ext
29929cat >>conftest.$ac_ext <<_ACEOF
29930/* end confdefs.h. */
29931$ac_includes_default
29932int
29933main ()
29934{
29935
29936 /* By Ruediger Kuhlmann. */
29937 return fork () < 0;
29938
29939 ;
29940 return 0;
29941}
29942_ACEOF
29943rm -f conftest$ac_exeext
29944if { (ac_try="$ac_link"
29945case "(($ac_try" in
29946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29947 *) ac_try_echo=$ac_try;;
29948esac
29949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29950$as_echo "$ac_try_echo") >&5
29951 (eval "$ac_link") 2>&5
29952 ac_status=$?
29953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29955 { (case "(($ac_try" in
29956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29957 *) ac_try_echo=$ac_try;;
29958esac
29959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29960$as_echo "$ac_try_echo") >&5
29961 (eval "$ac_try") 2>&5
29962 ac_status=$?
29963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964 (exit $ac_status); }; }; then
29965 ac_cv_func_fork_works=yes
29966else
29967 $as_echo "$as_me: program exited with status $ac_status" >&5
29968$as_echo "$as_me: failed program was:" >&5
29969sed 's/^/| /' conftest.$ac_ext >&5
29970
29971( exit $ac_status )
29972ac_cv_func_fork_works=no
29973fi
29974rm -rf conftest.dSYM
29975rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29976fi
29977
29978
29979fi
29980{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
29981$as_echo "$ac_cv_func_fork_works" >&6; }
29982
29983else
29984 ac_cv_func_fork_works=$ac_cv_func_fork
29985fi
29986if test "x$ac_cv_func_fork_works" = xcross; then
29987 case $host in
29988 *-*-amigaos* | *-*-msdosdjgpp*)
29989 # Override, as these systems have only a dummy fork() stub
29990 ac_cv_func_fork_works=no
29991 ;;
29992 *)
29993 ac_cv_func_fork_works=yes
29994 ;;
29995 esac
29996 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
29997$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
29998fi
29999ac_cv_func_vfork_works=$ac_cv_func_vfork
30000if test "x$ac_cv_func_vfork" = xyes; then
30001 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
30002$as_echo_n "checking for working vfork... " >&6; }
30003if test "${ac_cv_func_vfork_works+set}" = set; then
30004 $as_echo_n "(cached) " >&6
30005else
30006 if test "$cross_compiling" = yes; then
30007 ac_cv_func_vfork_works=cross
30008else
30009 cat >conftest.$ac_ext <<_ACEOF
30010/* confdefs.h. */
30011_ACEOF
30012cat confdefs.h >>conftest.$ac_ext
30013cat >>conftest.$ac_ext <<_ACEOF
30014/* end confdefs.h. */
30015/* Thanks to Paul Eggert for this test. */
30016$ac_includes_default
30017#include <sys/wait.h>
30018#ifdef HAVE_VFORK_H
30019# include <vfork.h>
30020#endif
30021/* On some sparc systems, changes by the child to local and incoming
30022 argument registers are propagated back to the parent. The compiler
30023 is told about this with #include <vfork.h>, but some compilers
30024 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
30025 static variable whose address is put into a register that is
30026 clobbered by the vfork. */
30027static void
30028#ifdef __cplusplus
30029sparc_address_test (int arg)
30030# else
30031sparc_address_test (arg) int arg;
30032#endif
30033{
30034 static pid_t child;
30035 if (!child) {
30036 child = vfork ();
30037 if (child < 0) {
30038 perror ("vfork");
30039 _exit(2);
30040 }
30041 if (!child) {
30042 arg = getpid();
30043 write(-1, "", 0);
30044 _exit (arg);
30045 }
30046 }
30047}
30048
30049int
30050main ()
30051{
30052 pid_t parent = getpid ();
30053 pid_t child;
30054
30055 sparc_address_test (0);
30056
30057 child = vfork ();
30058
30059 if (child == 0) {
30060 /* Here is another test for sparc vfork register problems. This
30061 test uses lots of local variables, at least as many local
30062 variables as main has allocated so far including compiler
30063 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
30064 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
30065 reuse the register of parent for one of the local variables,
30066 since it will think that parent can't possibly be used any more
30067 in this routine. Assigning to the local variable will thus
30068 munge parent in the parent process. */
30069 pid_t
30070 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
30071 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
30072 /* Convince the compiler that p..p7 are live; otherwise, it might
30073 use the same hardware register for all 8 local variables. */
30074 if (p != p1 || p != p2 || p != p3 || p != p4
30075 || p != p5 || p != p6 || p != p7)
30076 _exit(1);
30077
30078 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
30079 from child file descriptors. If the child closes a descriptor
30080 before it execs or exits, this munges the parent's descriptor
30081 as well. Test for this by closing stdout in the child. */
30082 _exit(close(fileno(stdout)) != 0);
30083 } else {
30084 int status;
30085 struct stat st;
30086
30087 while (wait(&status) != child)
30088 ;
30089 return (
30090 /* Was there some problem with vforking? */
30091 child < 0
30092
30093 /* Did the child fail? (This shouldn't happen.) */
30094 || status
30095
30096 /* Did the vfork/compiler bug occur? */
30097 || parent != getpid()
30098
30099 /* Did the file descriptor bug occur? */
30100 || fstat(fileno(stdout), &st) != 0
30101 );
30102 }
30103}
30104_ACEOF
30105rm -f conftest$ac_exeext
30106if { (ac_try="$ac_link"
30107case "(($ac_try" in
30108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30109 *) ac_try_echo=$ac_try;;
30110esac
30111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30112$as_echo "$ac_try_echo") >&5
30113 (eval "$ac_link") 2>&5
30114 ac_status=$?
30115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30117 { (case "(($ac_try" in
30118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30119 *) ac_try_echo=$ac_try;;
30120esac
30121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30122$as_echo "$ac_try_echo") >&5
30123 (eval "$ac_try") 2>&5
30124 ac_status=$?
30125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30126 (exit $ac_status); }; }; then
30127 ac_cv_func_vfork_works=yes
30128else
30129 $as_echo "$as_me: program exited with status $ac_status" >&5
30130$as_echo "$as_me: failed program was:" >&5
30131sed 's/^/| /' conftest.$ac_ext >&5
30132
30133( exit $ac_status )
30134ac_cv_func_vfork_works=no
30135fi
30136rm -rf conftest.dSYM
30137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30138fi
30139
30140
30141fi
30142{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
30143$as_echo "$ac_cv_func_vfork_works" >&6; }
30144
30145fi;
30146if test "x$ac_cv_func_fork_works" = xcross; then
30147 ac_cv_func_vfork_works=$ac_cv_func_vfork
30148 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
30149$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
30150fi
30151
30152if test "x$ac_cv_func_vfork_works" = xyes; then
30153
30154cat >>confdefs.h <<\_ACEOF
30155#define HAVE_WORKING_VFORK 1
30156_ACEOF
30157
30158else
30159
30160cat >>confdefs.h <<\_ACEOF
30161#define vfork fork
30162_ACEOF
30163
30164fi
30165if test "x$ac_cv_func_fork_works" = xyes; then
30166
30167cat >>confdefs.h <<\_ACEOF
30168#define HAVE_WORKING_FORK 1
30169_ACEOF
30170
30171fi
30172
30173{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
30174$as_echo_n "checking for working memcmp... " >&6; }
30175if test "${ac_cv_func_memcmp_working+set}" = set; then
30176 $as_echo_n "(cached) " >&6
30177else
30178 if test "$cross_compiling" = yes; then
30179 ac_cv_func_memcmp_working=no
30180else
30181 cat >conftest.$ac_ext <<_ACEOF
30182/* confdefs.h. */
30183_ACEOF
30184cat confdefs.h >>conftest.$ac_ext
30185cat >>conftest.$ac_ext <<_ACEOF
30186/* end confdefs.h. */
30187$ac_includes_default
30188int
30189main ()
30190{
30191
30192 /* Some versions of memcmp are not 8-bit clean. */
30193 char c0 = '\100', c1 = '\200', c2 = '\201';
30194 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
30195 return 1;
30196
30197 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
30198 or more and with at least one buffer not starting on a 4-byte boundary.
30199 William Lewis provided this test program. */
30200 {
30201 char foo[21];
30202 char bar[21];
30203 int i;
30204 for (i = 0; i < 4; i++)
30205 {
30206 char *a = foo + i;
30207 char *b = bar + i;
30208 strcpy (a, "--------01111111");
30209 strcpy (b, "--------10000000");
30210 if (memcmp (a, b, 16) >= 0)
30211 return 1;
30212 }
30213 return 0;
30214 }
30215
30216 ;
30217 return 0;
30218}
30219_ACEOF
30220rm -f conftest$ac_exeext
30221if { (ac_try="$ac_link"
30222case "(($ac_try" in
30223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30224 *) ac_try_echo=$ac_try;;
30225esac
30226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30227$as_echo "$ac_try_echo") >&5
30228 (eval "$ac_link") 2>&5
30229 ac_status=$?
30230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30232 { (case "(($ac_try" in
30233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30234 *) ac_try_echo=$ac_try;;
30235esac
30236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30237$as_echo "$ac_try_echo") >&5
30238 (eval "$ac_try") 2>&5
30239 ac_status=$?
30240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30241 (exit $ac_status); }; }; then
30242 ac_cv_func_memcmp_working=yes
30243else
30244 $as_echo "$as_me: program exited with status $ac_status" >&5
30245$as_echo "$as_me: failed program was:" >&5
30246sed 's/^/| /' conftest.$ac_ext >&5
30247
30248( exit $ac_status )
30249ac_cv_func_memcmp_working=no
30250fi
30251rm -rf conftest.dSYM
30252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30253fi
30254
30255
30256fi
30257{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
30258$as_echo "$ac_cv_func_memcmp_working" >&6; }
30259test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
30260 *" memcmp.$ac_objext "* ) ;;
30261 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
30262 ;;
30263esac
30264
30265
30266
30267
30268for ac_header in sys/select.h sys/socket.h
30269do
30270as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30271if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30272 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30273$as_echo_n "checking for $ac_header... " >&6; }
30274if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30275 $as_echo_n "(cached) " >&6
30276fi
30277ac_res=`eval 'as_val=${'$as_ac_Header'}
30278 $as_echo "$as_val"'`
30279 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30280$as_echo "$ac_res" >&6; }
30281else
30282 # Is the header compilable?
30283{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30284$as_echo_n "checking $ac_header usability... " >&6; }
30285cat >conftest.$ac_ext <<_ACEOF
30286/* confdefs.h. */
30287_ACEOF
30288cat confdefs.h >>conftest.$ac_ext
30289cat >>conftest.$ac_ext <<_ACEOF
30290/* end confdefs.h. */
30291$ac_includes_default
30292#include <$ac_header>
30293_ACEOF
30294rm -f conftest.$ac_objext
30295if { (ac_try="$ac_compile"
30296case "(($ac_try" in
30297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30298 *) ac_try_echo=$ac_try;;
30299esac
30300eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30301$as_echo "$ac_try_echo") >&5
30302 (eval "$ac_compile") 2>conftest.er1
30303 ac_status=$?
30304 grep -v '^ *+' conftest.er1 >conftest.err
30305 rm -f conftest.er1
30306 cat conftest.err >&5
30307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30308 (exit $ac_status); } && {
30309 test -z "$ac_c_werror_flag" ||
30310 test ! -s conftest.err
30311 } && test -s conftest.$ac_objext; then
30312 ac_header_compiler=yes
30313else
30314 $as_echo "$as_me: failed program was:" >&5
30315sed 's/^/| /' conftest.$ac_ext >&5
30316
30317 ac_header_compiler=no
30318fi
30319
30320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30321{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30322$as_echo "$ac_header_compiler" >&6; }
30323
30324# Is the header present?
30325{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30326$as_echo_n "checking $ac_header presence... " >&6; }
30327cat >conftest.$ac_ext <<_ACEOF
30328/* confdefs.h. */
30329_ACEOF
30330cat confdefs.h >>conftest.$ac_ext
30331cat >>conftest.$ac_ext <<_ACEOF
30332/* end confdefs.h. */
30333#include <$ac_header>
30334_ACEOF
30335if { (ac_try="$ac_cpp conftest.$ac_ext"
30336case "(($ac_try" in
30337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30338 *) ac_try_echo=$ac_try;;
30339esac
30340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30341$as_echo "$ac_try_echo") >&5
30342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30343 ac_status=$?
30344 grep -v '^ *+' conftest.er1 >conftest.err
30345 rm -f conftest.er1
30346 cat conftest.err >&5
30347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30348 (exit $ac_status); } >/dev/null && {
30349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30350 test ! -s conftest.err
30351 }; then
30352 ac_header_preproc=yes
30353else
30354 $as_echo "$as_me: failed program was:" >&5
30355sed 's/^/| /' conftest.$ac_ext >&5
30356
30357 ac_header_preproc=no
30358fi
30359
30360rm -f conftest.err conftest.$ac_ext
30361{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30362$as_echo "$ac_header_preproc" >&6; }
30363
30364# So? What about this header?
30365case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30366 yes:no: )
30367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30368$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30370$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30371 ac_header_preproc=yes
30372 ;;
30373 no:yes:* )
30374 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30375$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30376 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30377$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30378 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30379$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30380 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30381$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30382 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30383$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30384 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30385$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30386 ( cat <<\_ASBOX
30387## ----------------------------------------- ##
30388## Report this to http://www.imagemagick.org ##
30389## ----------------------------------------- ##
30390_ASBOX
30391 ) | sed "s/^/$as_me: WARNING: /" >&2
30392 ;;
30393esac
30394{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30395$as_echo_n "checking for $ac_header... " >&6; }
30396if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30397 $as_echo_n "(cached) " >&6
30398else
30399 eval "$as_ac_Header=\$ac_header_preproc"
30400fi
30401ac_res=`eval 'as_val=${'$as_ac_Header'}
30402 $as_echo "$as_val"'`
30403 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30404$as_echo "$ac_res" >&6; }
30405
30406fi
30407as_val=`eval 'as_val=${'$as_ac_Header'}
30408 $as_echo "$as_val"'`
30409 if test "x$as_val" = x""yes; then
30410 cat >>confdefs.h <<_ACEOF
30411#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30412_ACEOF
30413
30414fi
30415
30416done
30417
30418{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
30419$as_echo_n "checking types of arguments for select... " >&6; }
30420if test "${ac_cv_func_select_args+set}" = set; then
30421 $as_echo_n "(cached) " >&6
30422else
30423 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
30424 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
30425 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
30426 cat >conftest.$ac_ext <<_ACEOF
30427/* confdefs.h. */
30428_ACEOF
30429cat confdefs.h >>conftest.$ac_ext
30430cat >>conftest.$ac_ext <<_ACEOF
30431/* end confdefs.h. */
30432$ac_includes_default
30433#ifdef HAVE_SYS_SELECT_H
30434# include <sys/select.h>
30435#endif
30436#ifdef HAVE_SYS_SOCKET_H
30437# include <sys/socket.h>
30438#endif
30439
30440int
30441main ()
30442{
30443extern int select ($ac_arg1,
30444 $ac_arg234, $ac_arg234, $ac_arg234,
30445 $ac_arg5);
30446 ;
30447 return 0;
30448}
30449_ACEOF
30450rm -f conftest.$ac_objext
30451if { (ac_try="$ac_compile"
30452case "(($ac_try" in
30453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30454 *) ac_try_echo=$ac_try;;
30455esac
30456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30457$as_echo "$ac_try_echo") >&5
30458 (eval "$ac_compile") 2>conftest.er1
30459 ac_status=$?
30460 grep -v '^ *+' conftest.er1 >conftest.err
30461 rm -f conftest.er1
30462 cat conftest.err >&5
30463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30464 (exit $ac_status); } && {
30465 test -z "$ac_c_werror_flag" ||
30466 test ! -s conftest.err
30467 } && test -s conftest.$ac_objext; then
30468 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
30469else
30470 $as_echo "$as_me: failed program was:" >&5
30471sed 's/^/| /' conftest.$ac_ext >&5
30472
30473
30474fi
30475
30476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30477 done
30478 done
30479done
30480# Provide a safe default value.
30481: ${ac_cv_func_select_args='int,int *,struct timeval *'}
30482
30483fi
30484{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
30485$as_echo "$ac_cv_func_select_args" >&6; }
30486ac_save_IFS=$IFS; IFS=','
30487set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
30488IFS=$ac_save_IFS
30489shift
30490
30491cat >>confdefs.h <<_ACEOF
30492#define SELECT_TYPE_ARG1 $1
30493_ACEOF
30494
30495
30496cat >>confdefs.h <<_ACEOF
30497#define SELECT_TYPE_ARG234 ($2)
30498_ACEOF
30499
30500
30501cat >>confdefs.h <<_ACEOF
30502#define SELECT_TYPE_ARG5 ($3)
30503_ACEOF
30504
30505rm -f conftest*
30506
30507if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
30508 $as_echo_n "(cached) " >&6
30509else
30510 ac_cv_func_setvbuf_reversed=no
30511fi
30512
30513
30514{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30515$as_echo_n "checking return type of signal handlers... " >&6; }
30516if test "${ac_cv_type_signal+set}" = set; then
30517 $as_echo_n "(cached) " >&6
30518else
30519 cat >conftest.$ac_ext <<_ACEOF
30520/* confdefs.h. */
30521_ACEOF
30522cat confdefs.h >>conftest.$ac_ext
30523cat >>conftest.$ac_ext <<_ACEOF
30524/* end confdefs.h. */
30525#include <sys/types.h>
30526#include <signal.h>
30527
30528int
30529main ()
30530{
30531return *(signal (0, 0)) (0) == 1;
30532 ;
30533 return 0;
30534}
30535_ACEOF
30536rm -f conftest.$ac_objext
30537if { (ac_try="$ac_compile"
30538case "(($ac_try" in
30539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30540 *) ac_try_echo=$ac_try;;
30541esac
30542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30543$as_echo "$ac_try_echo") >&5
30544 (eval "$ac_compile") 2>conftest.er1
30545 ac_status=$?
30546 grep -v '^ *+' conftest.er1 >conftest.err
30547 rm -f conftest.er1
30548 cat conftest.err >&5
30549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30550 (exit $ac_status); } && {
30551 test -z "$ac_c_werror_flag" ||
30552 test ! -s conftest.err
30553 } && test -s conftest.$ac_objext; then
30554 ac_cv_type_signal=int
30555else
30556 $as_echo "$as_me: failed program was:" >&5
30557sed 's/^/| /' conftest.$ac_ext >&5
30558
30559 ac_cv_type_signal=void
30560fi
30561
30562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30563fi
30564{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30565$as_echo "$ac_cv_type_signal" >&6; }
30566
30567cat >>confdefs.h <<_ACEOF
30568#define RETSIGTYPE $ac_cv_type_signal
30569_ACEOF
30570
30571
30572{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
30573$as_echo_n "checking for working strtod... " >&6; }
30574if test "${ac_cv_func_strtod+set}" = set; then
30575 $as_echo_n "(cached) " >&6
30576else
30577 if test "$cross_compiling" = yes; then
30578 ac_cv_func_strtod=no
30579else
30580 cat >conftest.$ac_ext <<_ACEOF
30581/* confdefs.h. */
30582_ACEOF
30583cat confdefs.h >>conftest.$ac_ext
30584cat >>conftest.$ac_ext <<_ACEOF
30585/* end confdefs.h. */
30586
30587$ac_includes_default
30588#ifndef strtod
30589double strtod ();
30590#endif
30591int
30592main()
30593{
30594 {
30595 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
30596 char *string = " +69";
30597 char *term;
30598 double value;
30599 value = strtod (string, &term);
30600 if (value != 69 || term != (string + 4))
30601 return 1;
30602 }
30603
30604 {
30605 /* Under Solaris 2.4, strtod returns the wrong value for the
30606 terminating character under some conditions. */
30607 char *string = "NaN";
30608 char *term;
30609 strtod (string, &term);
30610 if (term != string && *(term - 1) == 0)
30611 return 1;
30612 }
30613 return 0;
30614}
30615
30616_ACEOF
30617rm -f conftest$ac_exeext
30618if { (ac_try="$ac_link"
30619case "(($ac_try" in
30620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30621 *) ac_try_echo=$ac_try;;
30622esac
30623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30624$as_echo "$ac_try_echo") >&5
30625 (eval "$ac_link") 2>&5
30626 ac_status=$?
30627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30629 { (case "(($ac_try" in
30630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30631 *) ac_try_echo=$ac_try;;
30632esac
30633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30634$as_echo "$ac_try_echo") >&5
30635 (eval "$ac_try") 2>&5
30636 ac_status=$?
30637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30638 (exit $ac_status); }; }; then
30639 ac_cv_func_strtod=yes
30640else
30641 $as_echo "$as_me: program exited with status $ac_status" >&5
30642$as_echo "$as_me: failed program was:" >&5
30643sed 's/^/| /' conftest.$ac_ext >&5
30644
30645( exit $ac_status )
30646ac_cv_func_strtod=no
30647fi
30648rm -rf conftest.dSYM
30649rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30650fi
30651
30652
30653fi
30654{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
30655$as_echo "$ac_cv_func_strtod" >&6; }
30656if test $ac_cv_func_strtod = no; then
30657 case " $LIBOBJS " in
30658 *" strtod.$ac_objext "* ) ;;
30659 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
30660 ;;
30661esac
30662
30663{ $as_echo "$as_me:$LINENO: checking for pow" >&5
30664$as_echo_n "checking for pow... " >&6; }
30665if test "${ac_cv_func_pow+set}" = set; then
30666 $as_echo_n "(cached) " >&6
30667else
30668 cat >conftest.$ac_ext <<_ACEOF
30669/* confdefs.h. */
30670_ACEOF
30671cat confdefs.h >>conftest.$ac_ext
30672cat >>conftest.$ac_ext <<_ACEOF
30673/* end confdefs.h. */
30674/* Define pow to an innocuous variant, in case <limits.h> declares pow.
30675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30676#define pow innocuous_pow
30677
30678/* System header to define __stub macros and hopefully few prototypes,
30679 which can conflict with char pow (); below.
30680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30681 <limits.h> exists even on freestanding compilers. */
30682
30683#ifdef __STDC__
30684# include <limits.h>
30685#else
30686# include <assert.h>
30687#endif
30688
30689#undef pow
30690
30691/* Override any GCC internal prototype to avoid an error.
30692 Use char because int might match the return type of a GCC
30693 builtin and then its argument prototype would still apply. */
30694#ifdef __cplusplus
30695extern "C"
30696#endif
30697char pow ();
30698/* The GNU C library defines this for functions which it implements
30699 to always fail with ENOSYS. Some functions are actually named
30700 something starting with __ and the normal name is an alias. */
30701#if defined __stub_pow || defined __stub___pow
30702choke me
30703#endif
30704
30705int
30706main ()
30707{
30708return pow ();
30709 ;
30710 return 0;
30711}
30712_ACEOF
30713rm -f conftest.$ac_objext conftest$ac_exeext
30714if { (ac_try="$ac_link"
30715case "(($ac_try" in
30716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30717 *) ac_try_echo=$ac_try;;
30718esac
30719eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30720$as_echo "$ac_try_echo") >&5
30721 (eval "$ac_link") 2>conftest.er1
30722 ac_status=$?
30723 grep -v '^ *+' conftest.er1 >conftest.err
30724 rm -f conftest.er1
30725 cat conftest.err >&5
30726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); } && {
30728 test -z "$ac_c_werror_flag" ||
30729 test ! -s conftest.err
30730 } && test -s conftest$ac_exeext && {
30731 test "$cross_compiling" = yes ||
30732 $as_test_x conftest$ac_exeext
30733 }; then
30734 ac_cv_func_pow=yes
30735else
30736 $as_echo "$as_me: failed program was:" >&5
30737sed 's/^/| /' conftest.$ac_ext >&5
30738
30739 ac_cv_func_pow=no
30740fi
30741
30742rm -rf conftest.dSYM
30743rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30744 conftest$ac_exeext conftest.$ac_ext
30745fi
30746{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
30747$as_echo "$ac_cv_func_pow" >&6; }
30748
30749if test $ac_cv_func_pow = no; then
30750 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
30751$as_echo_n "checking for pow in -lm... " >&6; }
30752if test "${ac_cv_lib_m_pow+set}" = set; then
30753 $as_echo_n "(cached) " >&6
30754else
30755 ac_check_lib_save_LIBS=$LIBS
30756LIBS="-lm $LIBS"
30757cat >conftest.$ac_ext <<_ACEOF
30758/* confdefs.h. */
30759_ACEOF
30760cat confdefs.h >>conftest.$ac_ext
30761cat >>conftest.$ac_ext <<_ACEOF
30762/* end confdefs.h. */
30763
30764/* Override any GCC internal prototype to avoid an error.
30765 Use char because int might match the return type of a GCC
30766 builtin and then its argument prototype would still apply. */
30767#ifdef __cplusplus
30768extern "C"
30769#endif
30770char pow ();
30771int
30772main ()
30773{
30774return pow ();
30775 ;
30776 return 0;
30777}
30778_ACEOF
30779rm -f conftest.$ac_objext conftest$ac_exeext
30780if { (ac_try="$ac_link"
30781case "(($ac_try" in
30782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30783 *) ac_try_echo=$ac_try;;
30784esac
30785eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30786$as_echo "$ac_try_echo") >&5
30787 (eval "$ac_link") 2>conftest.er1
30788 ac_status=$?
30789 grep -v '^ *+' conftest.er1 >conftest.err
30790 rm -f conftest.er1
30791 cat conftest.err >&5
30792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30793 (exit $ac_status); } && {
30794 test -z "$ac_c_werror_flag" ||
30795 test ! -s conftest.err
30796 } && test -s conftest$ac_exeext && {
30797 test "$cross_compiling" = yes ||
30798 $as_test_x conftest$ac_exeext
30799 }; then
30800 ac_cv_lib_m_pow=yes
30801else
30802 $as_echo "$as_me: failed program was:" >&5
30803sed 's/^/| /' conftest.$ac_ext >&5
30804
30805 ac_cv_lib_m_pow=no
30806fi
30807
30808rm -rf conftest.dSYM
30809rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30810 conftest$ac_exeext conftest.$ac_ext
30811LIBS=$ac_check_lib_save_LIBS
30812fi
30813{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
30814$as_echo "$ac_cv_lib_m_pow" >&6; }
30815if test "x$ac_cv_lib_m_pow" = x""yes; then
30816 POW_LIB=-lm
30817else
30818 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
30819$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
30820fi
30821
30822fi
30823
30824fi
30825
30826
30827for ac_func in vprintf
30828do
30829as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30830{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30831$as_echo_n "checking for $ac_func... " >&6; }
30832if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30833 $as_echo_n "(cached) " >&6
30834else
30835 cat >conftest.$ac_ext <<_ACEOF
30836/* confdefs.h. */
30837_ACEOF
30838cat confdefs.h >>conftest.$ac_ext
30839cat >>conftest.$ac_ext <<_ACEOF
30840/* end confdefs.h. */
30841/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30843#define $ac_func innocuous_$ac_func
30844
30845/* System header to define __stub macros and hopefully few prototypes,
30846 which can conflict with char $ac_func (); below.
30847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30848 <limits.h> exists even on freestanding compilers. */
30849
30850#ifdef __STDC__
30851# include <limits.h>
30852#else
30853# include <assert.h>
30854#endif
30855
30856#undef $ac_func
30857
30858/* Override any GCC internal prototype to avoid an error.
30859 Use char because int might match the return type of a GCC
30860 builtin and then its argument prototype would still apply. */
30861#ifdef __cplusplus
30862extern "C"
30863#endif
30864char $ac_func ();
30865/* The GNU C library defines this for functions which it implements
30866 to always fail with ENOSYS. Some functions are actually named
30867 something starting with __ and the normal name is an alias. */
30868#if defined __stub_$ac_func || defined __stub___$ac_func
30869choke me
30870#endif
30871
30872int
30873main ()
30874{
30875return $ac_func ();
30876 ;
30877 return 0;
30878}
30879_ACEOF
30880rm -f conftest.$ac_objext conftest$ac_exeext
30881if { (ac_try="$ac_link"
30882case "(($ac_try" in
30883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30884 *) ac_try_echo=$ac_try;;
30885esac
30886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30887$as_echo "$ac_try_echo") >&5
30888 (eval "$ac_link") 2>conftest.er1
30889 ac_status=$?
30890 grep -v '^ *+' conftest.er1 >conftest.err
30891 rm -f conftest.er1
30892 cat conftest.err >&5
30893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894 (exit $ac_status); } && {
30895 test -z "$ac_c_werror_flag" ||
30896 test ! -s conftest.err
30897 } && test -s conftest$ac_exeext && {
30898 test "$cross_compiling" = yes ||
30899 $as_test_x conftest$ac_exeext
30900 }; then
30901 eval "$as_ac_var=yes"
30902else
30903 $as_echo "$as_me: failed program was:" >&5
30904sed 's/^/| /' conftest.$ac_ext >&5
30905
30906 eval "$as_ac_var=no"
30907fi
30908
30909rm -rf conftest.dSYM
30910rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30911 conftest$ac_exeext conftest.$ac_ext
30912fi
30913ac_res=`eval 'as_val=${'$as_ac_var'}
30914 $as_echo "$as_val"'`
30915 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30916$as_echo "$ac_res" >&6; }
30917as_val=`eval 'as_val=${'$as_ac_var'}
30918 $as_echo "$as_val"'`
30919 if test "x$as_val" = x""yes; then
30920 cat >>confdefs.h <<_ACEOF
30921#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30922_ACEOF
30923
30924{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
30925$as_echo_n "checking for _doprnt... " >&6; }
30926if test "${ac_cv_func__doprnt+set}" = set; then
30927 $as_echo_n "(cached) " >&6
30928else
30929 cat >conftest.$ac_ext <<_ACEOF
30930/* confdefs.h. */
30931_ACEOF
30932cat confdefs.h >>conftest.$ac_ext
30933cat >>conftest.$ac_ext <<_ACEOF
30934/* end confdefs.h. */
30935/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
30936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30937#define _doprnt innocuous__doprnt
30938
30939/* System header to define __stub macros and hopefully few prototypes,
30940 which can conflict with char _doprnt (); below.
30941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30942 <limits.h> exists even on freestanding compilers. */
30943
30944#ifdef __STDC__
30945# include <limits.h>
30946#else
30947# include <assert.h>
30948#endif
30949
30950#undef _doprnt
30951
30952/* Override any GCC internal prototype to avoid an error.
30953 Use char because int might match the return type of a GCC
30954 builtin and then its argument prototype would still apply. */
30955#ifdef __cplusplus
30956extern "C"
30957#endif
30958char _doprnt ();
30959/* The GNU C library defines this for functions which it implements
30960 to always fail with ENOSYS. Some functions are actually named
30961 something starting with __ and the normal name is an alias. */
30962#if defined __stub__doprnt || defined __stub____doprnt
30963choke me
30964#endif
30965
30966int
30967main ()
30968{
30969return _doprnt ();
30970 ;
30971 return 0;
30972}
30973_ACEOF
30974rm -f conftest.$ac_objext conftest$ac_exeext
30975if { (ac_try="$ac_link"
30976case "(($ac_try" in
30977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30978 *) ac_try_echo=$ac_try;;
30979esac
30980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30981$as_echo "$ac_try_echo") >&5
30982 (eval "$ac_link") 2>conftest.er1
30983 ac_status=$?
30984 grep -v '^ *+' conftest.er1 >conftest.err
30985 rm -f conftest.er1
30986 cat conftest.err >&5
30987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30988 (exit $ac_status); } && {
30989 test -z "$ac_c_werror_flag" ||
30990 test ! -s conftest.err
30991 } && test -s conftest$ac_exeext && {
30992 test "$cross_compiling" = yes ||
30993 $as_test_x conftest$ac_exeext
30994 }; then
30995 ac_cv_func__doprnt=yes
30996else
30997 $as_echo "$as_me: failed program was:" >&5
30998sed 's/^/| /' conftest.$ac_ext >&5
30999
31000 ac_cv_func__doprnt=no
31001fi
31002
31003rm -rf conftest.dSYM
31004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31005 conftest$ac_exeext conftest.$ac_ext
31006fi
31007{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
31008$as_echo "$ac_cv_func__doprnt" >&6; }
31009if test "x$ac_cv_func__doprnt" = x""yes; then
31010
31011cat >>confdefs.h <<\_ACEOF
31012#define HAVE_DOPRNT 1
31013_ACEOF
31014
31015fi
31016
31017fi
31018done
31019
31020
31021
31022
31023
31024
31025
31026
31027
31028
31029
31030
31031
31032
31033
31034
31035
31036
31037
31038
31039
31040
31041
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053
31054
31055
31056
31057
31058
31059
31060
31061
31062
31063
31064
31065
31066
31067
31068
31069
31070
31071
31072
31073
31074
31075
31076
31077
31078
31079
31080
31081
31082
31083
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093
31094
31095
31096
cristye43a45e2009-09-28 14:49:00 +000031097for ac_func in _exit atexit clock directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol symlink sysconf sigemptyset sigaction strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
cristy3ed852e2009-09-05 21:47:34 +000031098do
31099as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31100{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31101$as_echo_n "checking for $ac_func... " >&6; }
31102if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31103 $as_echo_n "(cached) " >&6
31104else
31105 cat >conftest.$ac_ext <<_ACEOF
31106/* confdefs.h. */
31107_ACEOF
31108cat confdefs.h >>conftest.$ac_ext
31109cat >>conftest.$ac_ext <<_ACEOF
31110/* end confdefs.h. */
31111/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31113#define $ac_func innocuous_$ac_func
31114
31115/* System header to define __stub macros and hopefully few prototypes,
31116 which can conflict with char $ac_func (); below.
31117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31118 <limits.h> exists even on freestanding compilers. */
31119
31120#ifdef __STDC__
31121# include <limits.h>
31122#else
31123# include <assert.h>
31124#endif
31125
31126#undef $ac_func
31127
31128/* Override any GCC internal prototype to avoid an error.
31129 Use char because int might match the return type of a GCC
31130 builtin and then its argument prototype would still apply. */
31131#ifdef __cplusplus
31132extern "C"
31133#endif
31134char $ac_func ();
31135/* The GNU C library defines this for functions which it implements
31136 to always fail with ENOSYS. Some functions are actually named
31137 something starting with __ and the normal name is an alias. */
31138#if defined __stub_$ac_func || defined __stub___$ac_func
31139choke me
31140#endif
31141
31142int
31143main ()
31144{
31145return $ac_func ();
31146 ;
31147 return 0;
31148}
31149_ACEOF
31150rm -f conftest.$ac_objext conftest$ac_exeext
31151if { (ac_try="$ac_link"
31152case "(($ac_try" in
31153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31154 *) ac_try_echo=$ac_try;;
31155esac
31156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31157$as_echo "$ac_try_echo") >&5
31158 (eval "$ac_link") 2>conftest.er1
31159 ac_status=$?
31160 grep -v '^ *+' conftest.er1 >conftest.err
31161 rm -f conftest.er1
31162 cat conftest.err >&5
31163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31164 (exit $ac_status); } && {
31165 test -z "$ac_c_werror_flag" ||
31166 test ! -s conftest.err
31167 } && test -s conftest$ac_exeext && {
31168 test "$cross_compiling" = yes ||
31169 $as_test_x conftest$ac_exeext
31170 }; then
31171 eval "$as_ac_var=yes"
31172else
31173 $as_echo "$as_me: failed program was:" >&5
31174sed 's/^/| /' conftest.$ac_ext >&5
31175
31176 eval "$as_ac_var=no"
31177fi
31178
31179rm -rf conftest.dSYM
31180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31181 conftest$ac_exeext conftest.$ac_ext
31182fi
31183ac_res=`eval 'as_val=${'$as_ac_var'}
31184 $as_echo "$as_val"'`
31185 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31186$as_echo "$ac_res" >&6; }
31187as_val=`eval 'as_val=${'$as_ac_var'}
31188 $as_echo "$as_val"'`
31189 if test "x$as_val" = x""yes; then
31190 cat >>confdefs.h <<_ACEOF
31191#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31192_ACEOF
31193
31194fi
31195done
31196
31197
cristye43a45e2009-09-28 14:49:00 +000031198#
31199# Check for clock_gettime().
31200#
31201{ $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
31202$as_echo_n "checking for library containing clock_gettime... " >&6; }
31203if test "${ac_cv_search_clock_gettime+set}" = set; then
31204 $as_echo_n "(cached) " >&6
31205else
31206 ac_func_search_save_LIBS=$LIBS
31207cat >conftest.$ac_ext <<_ACEOF
31208/* confdefs.h. */
31209_ACEOF
31210cat confdefs.h >>conftest.$ac_ext
31211cat >>conftest.$ac_ext <<_ACEOF
31212/* end confdefs.h. */
31213
31214/* Override any GCC internal prototype to avoid an error.
31215 Use char because int might match the return type of a GCC
31216 builtin and then its argument prototype would still apply. */
31217#ifdef __cplusplus
31218extern "C"
31219#endif
31220char clock_gettime ();
31221int
31222main ()
31223{
31224return clock_gettime ();
31225 ;
31226 return 0;
31227}
31228_ACEOF
31229for ac_lib in '' rt; do
31230 if test -z "$ac_lib"; then
31231 ac_res="none required"
31232 else
31233 ac_res=-l$ac_lib
31234 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31235 fi
31236 rm -f conftest.$ac_objext conftest$ac_exeext
31237if { (ac_try="$ac_link"
31238case "(($ac_try" in
31239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240 *) ac_try_echo=$ac_try;;
31241esac
31242eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31243$as_echo "$ac_try_echo") >&5
31244 (eval "$ac_link") 2>conftest.er1
31245 ac_status=$?
31246 grep -v '^ *+' conftest.er1 >conftest.err
31247 rm -f conftest.er1
31248 cat conftest.err >&5
31249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31250 (exit $ac_status); } && {
31251 test -z "$ac_c_werror_flag" ||
31252 test ! -s conftest.err
31253 } && test -s conftest$ac_exeext && {
31254 test "$cross_compiling" = yes ||
31255 $as_test_x conftest$ac_exeext
31256 }; then
31257 ac_cv_search_clock_gettime=$ac_res
31258else
31259 $as_echo "$as_me: failed program was:" >&5
31260sed 's/^/| /' conftest.$ac_ext >&5
31261
31262
31263fi
31264
31265rm -rf conftest.dSYM
31266rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31267 conftest$ac_exeext
31268 if test "${ac_cv_search_clock_gettime+set}" = set; then
31269 break
31270fi
31271done
31272if test "${ac_cv_search_clock_gettime+set}" = set; then
31273 :
31274else
31275 ac_cv_search_clock_gettime=no
31276fi
31277rm conftest.$ac_ext
31278LIBS=$ac_func_search_save_LIBS
31279fi
31280{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
31281$as_echo "$ac_cv_search_clock_gettime" >&6; }
31282ac_res=$ac_cv_search_clock_gettime
31283if test "$ac_res" != no; then
31284 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31285
31286
31287cat >>confdefs.h <<\_ACEOF
31288#define HAVE_CLOCK_GETTIME 1
31289_ACEOF
31290
cristyc1c61662009-09-30 14:04:37 +000031291 { $as_echo "$as_me:$LINENO: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000031292$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristyc1c61662009-09-30 14:04:37 +000031293 cat >conftest.$ac_ext <<_ACEOF
cristye43a45e2009-09-28 14:49:00 +000031294/* confdefs.h. */
31295_ACEOF
31296cat confdefs.h >>conftest.$ac_ext
31297cat >>conftest.$ac_ext <<_ACEOF
31298/* end confdefs.h. */
31299#include <time.h>
31300int
31301main ()
31302{
31303clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000031304 ;
31305 return 0;
31306}
31307_ACEOF
31308rm -f conftest.$ac_objext
31309if { (ac_try="$ac_compile"
31310case "(($ac_try" in
31311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31312 *) ac_try_echo=$ac_try;;
31313esac
31314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31315$as_echo "$ac_try_echo") >&5
31316 (eval "$ac_compile") 2>conftest.er1
31317 ac_status=$?
31318 grep -v '^ *+' conftest.er1 >conftest.err
31319 rm -f conftest.er1
31320 cat conftest.err >&5
31321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31322 (exit $ac_status); } && {
31323 test -z "$ac_c_werror_flag" ||
31324 test ! -s conftest.err
31325 } && test -s conftest.$ac_objext; then
31326
31327 { $as_echo "$as_me:$LINENO: result: yes" >&5
31328$as_echo "yes" >&6; }
31329
31330cat >>confdefs.h <<\_ACEOF
31331#define HAVE_CLOCK_REALTIME 1
31332_ACEOF
31333
31334
31335else
31336 $as_echo "$as_me: failed program was:" >&5
31337sed 's/^/| /' conftest.$ac_ext >&5
31338
31339 { $as_echo "$as_me:$LINENO: result: no" >&5
31340$as_echo "no" >&6; }
31341
31342fi
31343
31344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31345
31346else
31347
31348
31349
31350for ac_func in gettimeofday ftime
31351do
31352as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31353{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31354$as_echo_n "checking for $ac_func... " >&6; }
31355if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31356 $as_echo_n "(cached) " >&6
31357else
31358 cat >conftest.$ac_ext <<_ACEOF
31359/* confdefs.h. */
31360_ACEOF
31361cat confdefs.h >>conftest.$ac_ext
31362cat >>conftest.$ac_ext <<_ACEOF
31363/* end confdefs.h. */
31364/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31366#define $ac_func innocuous_$ac_func
31367
31368/* System header to define __stub macros and hopefully few prototypes,
31369 which can conflict with char $ac_func (); below.
31370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31371 <limits.h> exists even on freestanding compilers. */
31372
31373#ifdef __STDC__
31374# include <limits.h>
31375#else
31376# include <assert.h>
31377#endif
31378
31379#undef $ac_func
31380
31381/* Override any GCC internal prototype to avoid an error.
31382 Use char because int might match the return type of a GCC
31383 builtin and then its argument prototype would still apply. */
31384#ifdef __cplusplus
31385extern "C"
31386#endif
31387char $ac_func ();
31388/* The GNU C library defines this for functions which it implements
31389 to always fail with ENOSYS. Some functions are actually named
31390 something starting with __ and the normal name is an alias. */
31391#if defined __stub_$ac_func || defined __stub___$ac_func
31392choke me
31393#endif
31394
31395int
31396main ()
31397{
31398return $ac_func ();
31399 ;
31400 return 0;
31401}
31402_ACEOF
31403rm -f conftest.$ac_objext conftest$ac_exeext
31404if { (ac_try="$ac_link"
31405case "(($ac_try" in
31406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31407 *) ac_try_echo=$ac_try;;
31408esac
31409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31410$as_echo "$ac_try_echo") >&5
31411 (eval "$ac_link") 2>conftest.er1
31412 ac_status=$?
31413 grep -v '^ *+' conftest.er1 >conftest.err
31414 rm -f conftest.er1
31415 cat conftest.err >&5
31416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417 (exit $ac_status); } && {
31418 test -z "$ac_c_werror_flag" ||
31419 test ! -s conftest.err
31420 } && test -s conftest$ac_exeext && {
31421 test "$cross_compiling" = yes ||
31422 $as_test_x conftest$ac_exeext
31423 }; then
31424 eval "$as_ac_var=yes"
31425else
31426 $as_echo "$as_me: failed program was:" >&5
31427sed 's/^/| /' conftest.$ac_ext >&5
31428
31429 eval "$as_ac_var=no"
31430fi
31431
31432rm -rf conftest.dSYM
31433rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31434 conftest$ac_exeext conftest.$ac_ext
31435fi
31436ac_res=`eval 'as_val=${'$as_ac_var'}
31437 $as_echo "$as_val"'`
31438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31439$as_echo "$ac_res" >&6; }
31440as_val=`eval 'as_val=${'$as_ac_var'}
31441 $as_echo "$as_val"'`
31442 if test "x$as_val" = x""yes; then
31443 cat >>confdefs.h <<_ACEOF
31444#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31445_ACEOF
31446 break
31447fi
31448done
31449
31450
31451
31452fi
31453
31454
cristy3ed852e2009-09-05 21:47:34 +000031455########
31456#
31457# Check for function prototypes
31458#
31459########
31460
31461{ $as_echo "$as_me:$LINENO: checking whether pread is declared" >&5
31462$as_echo_n "checking whether pread is declared... " >&6; }
31463if test "${ac_cv_have_decl_pread+set}" = set; then
31464 $as_echo_n "(cached) " >&6
31465else
31466 cat >conftest.$ac_ext <<_ACEOF
31467/* confdefs.h. */
31468_ACEOF
31469cat confdefs.h >>conftest.$ac_ext
31470cat >>conftest.$ac_ext <<_ACEOF
31471/* end confdefs.h. */
31472
31473#include <unistd.h>
31474
31475int
31476main ()
31477{
31478#ifndef pread
31479 (void) pread;
31480#endif
31481
31482 ;
31483 return 0;
31484}
31485_ACEOF
31486rm -f conftest.$ac_objext
31487if { (ac_try="$ac_compile"
31488case "(($ac_try" in
31489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31490 *) ac_try_echo=$ac_try;;
31491esac
31492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31493$as_echo "$ac_try_echo") >&5
31494 (eval "$ac_compile") 2>conftest.er1
31495 ac_status=$?
31496 grep -v '^ *+' conftest.er1 >conftest.err
31497 rm -f conftest.er1
31498 cat conftest.err >&5
31499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31500 (exit $ac_status); } && {
31501 test -z "$ac_c_werror_flag" ||
31502 test ! -s conftest.err
31503 } && test -s conftest.$ac_objext; then
31504 ac_cv_have_decl_pread=yes
31505else
31506 $as_echo "$as_me: failed program was:" >&5
31507sed 's/^/| /' conftest.$ac_ext >&5
31508
31509 ac_cv_have_decl_pread=no
31510fi
31511
31512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31513fi
31514{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pread" >&5
31515$as_echo "$ac_cv_have_decl_pread" >&6; }
31516if test "x$ac_cv_have_decl_pread" = x""yes; then
31517
31518cat >>confdefs.h <<_ACEOF
31519#define HAVE_DECL_PREAD 1
31520_ACEOF
31521
31522
31523else
31524 cat >>confdefs.h <<_ACEOF
31525#define HAVE_DECL_PREAD 0
31526_ACEOF
31527
31528
31529fi
31530{ $as_echo "$as_me:$LINENO: checking whether pwrite is declared" >&5
31531$as_echo_n "checking whether pwrite is declared... " >&6; }
31532if test "${ac_cv_have_decl_pwrite+set}" = set; then
31533 $as_echo_n "(cached) " >&6
31534else
31535 cat >conftest.$ac_ext <<_ACEOF
31536/* confdefs.h. */
31537_ACEOF
31538cat confdefs.h >>conftest.$ac_ext
31539cat >>conftest.$ac_ext <<_ACEOF
31540/* end confdefs.h. */
31541
31542#include <unistd.h>
31543
31544int
31545main ()
31546{
31547#ifndef pwrite
31548 (void) pwrite;
31549#endif
31550
31551 ;
31552 return 0;
31553}
31554_ACEOF
31555rm -f conftest.$ac_objext
31556if { (ac_try="$ac_compile"
31557case "(($ac_try" in
31558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31559 *) ac_try_echo=$ac_try;;
31560esac
31561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31562$as_echo "$ac_try_echo") >&5
31563 (eval "$ac_compile") 2>conftest.er1
31564 ac_status=$?
31565 grep -v '^ *+' conftest.er1 >conftest.err
31566 rm -f conftest.er1
31567 cat conftest.err >&5
31568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); } && {
31570 test -z "$ac_c_werror_flag" ||
31571 test ! -s conftest.err
31572 } && test -s conftest.$ac_objext; then
31573 ac_cv_have_decl_pwrite=yes
31574else
31575 $as_echo "$as_me: failed program was:" >&5
31576sed 's/^/| /' conftest.$ac_ext >&5
31577
31578 ac_cv_have_decl_pwrite=no
31579fi
31580
31581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31582fi
31583{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwrite" >&5
31584$as_echo "$ac_cv_have_decl_pwrite" >&6; }
31585if test "x$ac_cv_have_decl_pwrite" = x""yes; then
31586
31587cat >>confdefs.h <<_ACEOF
31588#define HAVE_DECL_PWRITE 1
31589_ACEOF
31590
31591
31592else
31593 cat >>confdefs.h <<_ACEOF
31594#define HAVE_DECL_PWRITE 0
31595_ACEOF
31596
31597
31598fi
31599
31600
31601
31602{ $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
31603$as_echo_n "checking whether strlcpy is declared... " >&6; }
31604if test "${ac_cv_have_decl_strlcpy+set}" = set; then
31605 $as_echo_n "(cached) " >&6
31606else
31607 cat >conftest.$ac_ext <<_ACEOF
31608/* confdefs.h. */
31609_ACEOF
31610cat confdefs.h >>conftest.$ac_ext
31611cat >>conftest.$ac_ext <<_ACEOF
31612/* end confdefs.h. */
31613
31614#include <strings.h>
31615
31616int
31617main ()
31618{
31619#ifndef strlcpy
31620 (void) strlcpy;
31621#endif
31622
31623 ;
31624 return 0;
31625}
31626_ACEOF
31627rm -f conftest.$ac_objext
31628if { (ac_try="$ac_compile"
31629case "(($ac_try" in
31630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31631 *) ac_try_echo=$ac_try;;
31632esac
31633eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31634$as_echo "$ac_try_echo") >&5
31635 (eval "$ac_compile") 2>conftest.er1
31636 ac_status=$?
31637 grep -v '^ *+' conftest.er1 >conftest.err
31638 rm -f conftest.er1
31639 cat conftest.err >&5
31640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31641 (exit $ac_status); } && {
31642 test -z "$ac_c_werror_flag" ||
31643 test ! -s conftest.err
31644 } && test -s conftest.$ac_objext; then
31645 ac_cv_have_decl_strlcpy=yes
31646else
31647 $as_echo "$as_me: failed program was:" >&5
31648sed 's/^/| /' conftest.$ac_ext >&5
31649
31650 ac_cv_have_decl_strlcpy=no
31651fi
31652
31653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31654fi
31655{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
31656$as_echo "$ac_cv_have_decl_strlcpy" >&6; }
31657if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
31658
31659cat >>confdefs.h <<_ACEOF
31660#define HAVE_DECL_STRLCPY 1
31661_ACEOF
31662
31663
31664else
31665 cat >>confdefs.h <<_ACEOF
31666#define HAVE_DECL_STRLCPY 0
31667_ACEOF
31668
31669
31670fi
31671
31672
31673
31674{ $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
31675$as_echo_n "checking whether vsnprintf is declared... " >&6; }
31676if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
31677 $as_echo_n "(cached) " >&6
31678else
31679 cat >conftest.$ac_ext <<_ACEOF
31680/* confdefs.h. */
31681_ACEOF
31682cat confdefs.h >>conftest.$ac_ext
31683cat >>conftest.$ac_ext <<_ACEOF
31684/* end confdefs.h. */
31685
31686#include <stdio.h>
31687#include <stdarg.h>
31688
31689int
31690main ()
31691{
31692#ifndef vsnprintf
31693 (void) vsnprintf;
31694#endif
31695
31696 ;
31697 return 0;
31698}
31699_ACEOF
31700rm -f conftest.$ac_objext
31701if { (ac_try="$ac_compile"
31702case "(($ac_try" in
31703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31704 *) ac_try_echo=$ac_try;;
31705esac
31706eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31707$as_echo "$ac_try_echo") >&5
31708 (eval "$ac_compile") 2>conftest.er1
31709 ac_status=$?
31710 grep -v '^ *+' conftest.er1 >conftest.err
31711 rm -f conftest.er1
31712 cat conftest.err >&5
31713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); } && {
31715 test -z "$ac_c_werror_flag" ||
31716 test ! -s conftest.err
31717 } && test -s conftest.$ac_objext; then
31718 ac_cv_have_decl_vsnprintf=yes
31719else
31720 $as_echo "$as_me: failed program was:" >&5
31721sed 's/^/| /' conftest.$ac_ext >&5
31722
31723 ac_cv_have_decl_vsnprintf=no
31724fi
31725
31726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31727fi
31728{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
31729$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
31730if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
31731
31732cat >>confdefs.h <<_ACEOF
31733#define HAVE_DECL_VSNPRINTF 1
31734_ACEOF
31735
31736
31737else
31738 cat >>confdefs.h <<_ACEOF
31739#define HAVE_DECL_VSNPRINTF 0
31740_ACEOF
31741
31742
31743fi
31744
31745
31746
31747########
31748#
31749# C++ Support Tests (For Magick++)
31750#
31751########
31752have_magick_plus_plus='no'
31753if test "$with_magick_plus_plus" = 'yes'; then
31754 OLIBS="$LIBS"
31755 LIBS=''
31756 ac_ext=cpp
31757ac_cpp='$CXXCPP $CPPFLAGS'
31758ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31759ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31760ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31761
31762
31763 # Full set of headers used...
31764 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
31765 # functional iomanip iosfwd iostream iterator list string strstream utility
31766 ac_ext=cpp
31767ac_cpp='$CXXCPP $CPPFLAGS'
31768ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31769ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31770ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31771
31772 ac_ext=cpp
31773ac_cpp='$CXXCPP $CPPFLAGS'
31774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31777if test -z "$CXX"; then
31778 if test -n "$CCC"; then
31779 CXX=$CCC
31780 else
31781 if test -n "$ac_tool_prefix"; then
31782 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
31783 do
31784 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31785set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31786{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31787$as_echo_n "checking for $ac_word... " >&6; }
31788if test "${ac_cv_prog_CXX+set}" = set; then
31789 $as_echo_n "(cached) " >&6
31790else
31791 if test -n "$CXX"; then
31792 ac_cv_prog_CXX="$CXX" # Let the user override the test.
31793else
31794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31795for as_dir in $PATH
31796do
31797 IFS=$as_save_IFS
31798 test -z "$as_dir" && as_dir=.
31799 for ac_exec_ext in '' $ac_executable_extensions; do
31800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31801 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
31802 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31803 break 2
31804 fi
31805done
31806done
31807IFS=$as_save_IFS
31808
31809fi
31810fi
31811CXX=$ac_cv_prog_CXX
31812if test -n "$CXX"; then
31813 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
31814$as_echo "$CXX" >&6; }
31815else
31816 { $as_echo "$as_me:$LINENO: result: no" >&5
31817$as_echo "no" >&6; }
31818fi
31819
31820
31821 test -n "$CXX" && break
31822 done
31823fi
31824if test -z "$CXX"; then
31825 ac_ct_CXX=$CXX
31826 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
31827do
31828 # Extract the first word of "$ac_prog", so it can be a program name with args.
31829set dummy $ac_prog; ac_word=$2
31830{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31831$as_echo_n "checking for $ac_word... " >&6; }
31832if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
31833 $as_echo_n "(cached) " >&6
31834else
31835 if test -n "$ac_ct_CXX"; then
31836 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
31837else
31838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31839for as_dir in $PATH
31840do
31841 IFS=$as_save_IFS
31842 test -z "$as_dir" && as_dir=.
31843 for ac_exec_ext in '' $ac_executable_extensions; do
31844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31845 ac_cv_prog_ac_ct_CXX="$ac_prog"
31846 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31847 break 2
31848 fi
31849done
31850done
31851IFS=$as_save_IFS
31852
31853fi
31854fi
31855ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
31856if test -n "$ac_ct_CXX"; then
31857 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
31858$as_echo "$ac_ct_CXX" >&6; }
31859else
31860 { $as_echo "$as_me:$LINENO: result: no" >&5
31861$as_echo "no" >&6; }
31862fi
31863
31864
31865 test -n "$ac_ct_CXX" && break
31866done
31867
31868 if test "x$ac_ct_CXX" = x; then
31869 CXX="g++"
31870 else
31871 case $cross_compiling:$ac_tool_warned in
31872yes:)
31873{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
31874$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31875ac_tool_warned=yes ;;
31876esac
31877 CXX=$ac_ct_CXX
31878 fi
31879fi
31880
31881 fi
31882fi
31883# Provide some information about the compiler.
31884$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
31885set X $ac_compile
31886ac_compiler=$2
31887{ (ac_try="$ac_compiler --version >&5"
31888case "(($ac_try" in
31889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31890 *) ac_try_echo=$ac_try;;
31891esac
31892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31893$as_echo "$ac_try_echo") >&5
31894 (eval "$ac_compiler --version >&5") 2>&5
31895 ac_status=$?
31896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }
31898{ (ac_try="$ac_compiler -v >&5"
31899case "(($ac_try" in
31900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31901 *) ac_try_echo=$ac_try;;
31902esac
31903eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31904$as_echo "$ac_try_echo") >&5
31905 (eval "$ac_compiler -v >&5") 2>&5
31906 ac_status=$?
31907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31908 (exit $ac_status); }
31909{ (ac_try="$ac_compiler -V >&5"
31910case "(($ac_try" in
31911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31912 *) ac_try_echo=$ac_try;;
31913esac
31914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31915$as_echo "$ac_try_echo") >&5
31916 (eval "$ac_compiler -V >&5") 2>&5
31917 ac_status=$?
31918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31919 (exit $ac_status); }
31920
31921{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
31922$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
31923if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
31924 $as_echo_n "(cached) " >&6
31925else
31926 cat >conftest.$ac_ext <<_ACEOF
31927/* confdefs.h. */
31928_ACEOF
31929cat confdefs.h >>conftest.$ac_ext
31930cat >>conftest.$ac_ext <<_ACEOF
31931/* end confdefs.h. */
31932
31933int
31934main ()
31935{
31936#ifndef __GNUC__
31937 choke me
31938#endif
31939
31940 ;
31941 return 0;
31942}
31943_ACEOF
31944rm -f conftest.$ac_objext
31945if { (ac_try="$ac_compile"
31946case "(($ac_try" in
31947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31948 *) ac_try_echo=$ac_try;;
31949esac
31950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31951$as_echo "$ac_try_echo") >&5
31952 (eval "$ac_compile") 2>conftest.er1
31953 ac_status=$?
31954 grep -v '^ *+' conftest.er1 >conftest.err
31955 rm -f conftest.er1
31956 cat conftest.err >&5
31957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958 (exit $ac_status); } && {
31959 test -z "$ac_cxx_werror_flag" ||
31960 test ! -s conftest.err
31961 } && test -s conftest.$ac_objext; then
31962 ac_compiler_gnu=yes
31963else
31964 $as_echo "$as_me: failed program was:" >&5
31965sed 's/^/| /' conftest.$ac_ext >&5
31966
31967 ac_compiler_gnu=no
31968fi
31969
31970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31971ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
31972
31973fi
31974{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
31975$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
31976if test $ac_compiler_gnu = yes; then
31977 GXX=yes
31978else
31979 GXX=
31980fi
31981ac_test_CXXFLAGS=${CXXFLAGS+set}
31982ac_save_CXXFLAGS=$CXXFLAGS
31983{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
31984$as_echo_n "checking whether $CXX accepts -g... " >&6; }
31985if test "${ac_cv_prog_cxx_g+set}" = set; then
31986 $as_echo_n "(cached) " >&6
31987else
31988 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
31989 ac_cxx_werror_flag=yes
31990 ac_cv_prog_cxx_g=no
31991 CXXFLAGS="-g"
31992 cat >conftest.$ac_ext <<_ACEOF
31993/* confdefs.h. */
31994_ACEOF
31995cat confdefs.h >>conftest.$ac_ext
31996cat >>conftest.$ac_ext <<_ACEOF
31997/* end confdefs.h. */
31998
31999int
32000main ()
32001{
32002
32003 ;
32004 return 0;
32005}
32006_ACEOF
32007rm -f conftest.$ac_objext
32008if { (ac_try="$ac_compile"
32009case "(($ac_try" in
32010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32011 *) ac_try_echo=$ac_try;;
32012esac
32013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32014$as_echo "$ac_try_echo") >&5
32015 (eval "$ac_compile") 2>conftest.er1
32016 ac_status=$?
32017 grep -v '^ *+' conftest.er1 >conftest.err
32018 rm -f conftest.er1
32019 cat conftest.err >&5
32020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32021 (exit $ac_status); } && {
32022 test -z "$ac_cxx_werror_flag" ||
32023 test ! -s conftest.err
32024 } && test -s conftest.$ac_objext; then
32025 ac_cv_prog_cxx_g=yes
32026else
32027 $as_echo "$as_me: failed program was:" >&5
32028sed 's/^/| /' conftest.$ac_ext >&5
32029
32030 CXXFLAGS=""
32031 cat >conftest.$ac_ext <<_ACEOF
32032/* confdefs.h. */
32033_ACEOF
32034cat confdefs.h >>conftest.$ac_ext
32035cat >>conftest.$ac_ext <<_ACEOF
32036/* end confdefs.h. */
32037
32038int
32039main ()
32040{
32041
32042 ;
32043 return 0;
32044}
32045_ACEOF
32046rm -f conftest.$ac_objext
32047if { (ac_try="$ac_compile"
32048case "(($ac_try" in
32049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32050 *) ac_try_echo=$ac_try;;
32051esac
32052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32053$as_echo "$ac_try_echo") >&5
32054 (eval "$ac_compile") 2>conftest.er1
32055 ac_status=$?
32056 grep -v '^ *+' conftest.er1 >conftest.err
32057 rm -f conftest.er1
32058 cat conftest.err >&5
32059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32060 (exit $ac_status); } && {
32061 test -z "$ac_cxx_werror_flag" ||
32062 test ! -s conftest.err
32063 } && test -s conftest.$ac_objext; then
32064 :
32065else
32066 $as_echo "$as_me: failed program was:" >&5
32067sed 's/^/| /' conftest.$ac_ext >&5
32068
32069 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32070 CXXFLAGS="-g"
32071 cat >conftest.$ac_ext <<_ACEOF
32072/* confdefs.h. */
32073_ACEOF
32074cat confdefs.h >>conftest.$ac_ext
32075cat >>conftest.$ac_ext <<_ACEOF
32076/* end confdefs.h. */
32077
32078int
32079main ()
32080{
32081
32082 ;
32083 return 0;
32084}
32085_ACEOF
32086rm -f conftest.$ac_objext
32087if { (ac_try="$ac_compile"
32088case "(($ac_try" in
32089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32090 *) ac_try_echo=$ac_try;;
32091esac
32092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32093$as_echo "$ac_try_echo") >&5
32094 (eval "$ac_compile") 2>conftest.er1
32095 ac_status=$?
32096 grep -v '^ *+' conftest.er1 >conftest.err
32097 rm -f conftest.er1
32098 cat conftest.err >&5
32099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32100 (exit $ac_status); } && {
32101 test -z "$ac_cxx_werror_flag" ||
32102 test ! -s conftest.err
32103 } && test -s conftest.$ac_objext; then
32104 ac_cv_prog_cxx_g=yes
32105else
32106 $as_echo "$as_me: failed program was:" >&5
32107sed 's/^/| /' conftest.$ac_ext >&5
32108
32109
32110fi
32111
32112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32113fi
32114
32115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32116fi
32117
32118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32119 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32120fi
32121{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
32122$as_echo "$ac_cv_prog_cxx_g" >&6; }
32123if test "$ac_test_CXXFLAGS" = set; then
32124 CXXFLAGS=$ac_save_CXXFLAGS
32125elif test $ac_cv_prog_cxx_g = yes; then
32126 if test "$GXX" = yes; then
32127 CXXFLAGS="-g -O2"
32128 else
32129 CXXFLAGS="-g"
32130 fi
32131else
32132 if test "$GXX" = yes; then
32133 CXXFLAGS="-O2"
32134 else
32135 CXXFLAGS=
32136 fi
32137fi
32138ac_ext=cpp
32139ac_cpp='$CXXCPP $CPPFLAGS'
32140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32143
32144depcc="$CXX" am_compiler_list=
32145
32146{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
32147$as_echo_n "checking dependency style of $depcc... " >&6; }
32148if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
32149 $as_echo_n "(cached) " >&6
32150else
32151 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32152 # We make a subdir and do the tests there. Otherwise we can end up
32153 # making bogus files that we don't know about and never remove. For
32154 # instance it was reported that on HP-UX the gcc test will end up
32155 # making a dummy file named `D' -- because `-MD' means `put the output
32156 # in D'.
32157 mkdir conftest.dir
32158 # Copy depcomp to subdir because otherwise we won't find it if we're
32159 # using a relative directory.
32160 cp "$am_depcomp" conftest.dir
32161 cd conftest.dir
32162 # We will build objects and dependencies in a subdirectory because
32163 # it helps to detect inapplicable dependency modes. For instance
32164 # both Tru64's cc and ICC support -MD to output dependencies as a
32165 # side effect of compilation, but ICC will put the dependencies in
32166 # the current directory while Tru64 will put them in the object
32167 # directory.
32168 mkdir sub
32169
32170 am_cv_CXX_dependencies_compiler_type=none
32171 if test "$am_compiler_list" = ""; then
32172 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
32173 fi
32174 am__universal=false
32175 case " $depcc " in #(
32176 *\ -arch\ *\ -arch\ *) am__universal=true ;;
32177 esac
32178
32179 for depmode in $am_compiler_list; do
32180 # Setup a source with many dependencies, because some compilers
32181 # like to wrap large dependency lists on column 80 (with \), and
32182 # we should not choose a depcomp mode which is confused by this.
32183 #
32184 # We need to recreate these files for each test, as the compiler may
32185 # overwrite some of them when testing with obscure command lines.
32186 # This happens at least with the AIX C compiler.
32187 : > sub/conftest.c
32188 for i in 1 2 3 4 5 6; do
32189 echo '#include "conftst'$i'.h"' >> sub/conftest.c
32190 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
32191 # Solaris 8's {/usr,}/bin/sh.
32192 touch sub/conftst$i.h
32193 done
32194 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
32195
32196 # We check with `-c' and `-o' for the sake of the "dashmstdout"
32197 # mode. It turns out that the SunPro C++ compiler does not properly
32198 # handle `-M -o', and we need to detect this. Also, some Intel
32199 # versions had trouble with output in subdirs
32200 am__obj=sub/conftest.${OBJEXT-o}
32201 am__minus_obj="-o $am__obj"
32202 case $depmode in
32203 gcc)
32204 # This depmode causes a compiler race in universal mode.
32205 test "$am__universal" = false || continue
32206 ;;
32207 nosideeffect)
32208 # after this tag, mechanisms are not by side-effect, so they'll
32209 # only be used when explicitly requested
32210 if test "x$enable_dependency_tracking" = xyes; then
32211 continue
32212 else
32213 break
32214 fi
32215 ;;
32216 msvisualcpp | msvcmsys)
32217 # This compiler won't grok `-c -o', but also, the minuso test has
32218 # not run yet. These depmodes are late enough in the game, and
32219 # so weak that their functioning should not be impacted.
32220 am__obj=conftest.${OBJEXT-o}
32221 am__minus_obj=
32222 ;;
32223 none) break ;;
32224 esac
32225 if depmode=$depmode \
32226 source=sub/conftest.c object=$am__obj \
32227 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
32228 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
32229 >/dev/null 2>conftest.err &&
32230 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
32231 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
32232 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
32233 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
32234 # icc doesn't choke on unknown options, it will just issue warnings
32235 # or remarks (even with -Werror). So we grep stderr for any message
32236 # that says an option was ignored or not supported.
32237 # When given -MP, icc 7.0 and 7.1 complain thusly:
32238 # icc: Command line warning: ignoring option '-M'; no argument required
32239 # The diagnosis changed in icc 8.0:
32240 # icc: Command line remark: option '-MP' not supported
32241 if (grep 'ignoring option' conftest.err ||
32242 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
32243 am_cv_CXX_dependencies_compiler_type=$depmode
32244 break
32245 fi
32246 fi
32247 done
32248
32249 cd ..
32250 rm -rf conftest.dir
32251else
32252 am_cv_CXX_dependencies_compiler_type=none
32253fi
32254
32255fi
32256{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
32257$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
32258CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
32259
32260 if
32261 test "x$enable_dependency_tracking" != xno \
32262 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
32263 am__fastdepCXX_TRUE=
32264 am__fastdepCXX_FALSE='#'
32265else
32266 am__fastdepCXX_TRUE='#'
32267 am__fastdepCXX_FALSE=
32268fi
32269
32270
32271 { $as_echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5
32272$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
32273if test "${ac_cv_cxx_have_bool+set}" = set; then
32274 $as_echo_n "(cached) " >&6
32275else
32276
32277 ac_ext=cpp
32278ac_cpp='$CXXCPP $CPPFLAGS'
32279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32282
32283 cat >conftest.$ac_ext <<_ACEOF
32284/* confdefs.h. */
32285_ACEOF
32286cat confdefs.h >>conftest.$ac_ext
32287cat >>conftest.$ac_ext <<_ACEOF
32288/* end confdefs.h. */
32289
32290int f(int x){return 1;}
32291int f(char x){return 1;}
32292int f(bool x){return 1;}
32293
32294int
32295main ()
32296{
32297bool b = true; return f(b);
32298 ;
32299 return 0;
32300}
32301_ACEOF
32302rm -f conftest.$ac_objext
32303if { (ac_try="$ac_compile"
32304case "(($ac_try" in
32305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32306 *) ac_try_echo=$ac_try;;
32307esac
32308eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32309$as_echo "$ac_try_echo") >&5
32310 (eval "$ac_compile") 2>conftest.er1
32311 ac_status=$?
32312 grep -v '^ *+' conftest.er1 >conftest.err
32313 rm -f conftest.er1
32314 cat conftest.err >&5
32315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32316 (exit $ac_status); } && {
32317 test -z "$ac_cxx_werror_flag" ||
32318 test ! -s conftest.err
32319 } && test -s conftest.$ac_objext; then
32320 ac_cv_cxx_have_bool=yes
32321else
32322 $as_echo "$as_me: failed program was:" >&5
32323sed 's/^/| /' conftest.$ac_ext >&5
32324
32325 ac_cv_cxx_have_bool=no
32326fi
32327
32328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32329 ac_ext=cpp
32330ac_cpp='$CXXCPP $CPPFLAGS'
32331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32334
32335
32336fi
32337{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bool" >&5
32338$as_echo "$ac_cv_cxx_have_bool" >&6; }
32339if test "$ac_cv_cxx_have_bool" = yes; then
32340
32341cat >>confdefs.h <<\_ACEOF
32342#define HAVE_BOOL /**/
32343_ACEOF
32344
32345fi
32346
32347 { $as_echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32348$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
32349if test "${ac_cv_cxx_have_namespaces+set}" = set; then
32350 $as_echo_n "(cached) " >&6
32351else
32352
32353 ac_ext=cpp
32354ac_cpp='$CXXCPP $CPPFLAGS'
32355ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32356ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32357ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32358
32359 cat >conftest.$ac_ext <<_ACEOF
32360/* confdefs.h. */
32361_ACEOF
32362cat confdefs.h >>conftest.$ac_ext
32363cat >>conftest.$ac_ext <<_ACEOF
32364/* end confdefs.h. */
32365namespace Outer { namespace Inner { int i = 0; }}
32366int
32367main ()
32368{
32369using namespace Outer::Inner; return i;
32370 ;
32371 return 0;
32372}
32373_ACEOF
32374rm -f conftest.$ac_objext
32375if { (ac_try="$ac_compile"
32376case "(($ac_try" in
32377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32378 *) ac_try_echo=$ac_try;;
32379esac
32380eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32381$as_echo "$ac_try_echo") >&5
32382 (eval "$ac_compile") 2>conftest.er1
32383 ac_status=$?
32384 grep -v '^ *+' conftest.er1 >conftest.err
32385 rm -f conftest.er1
32386 cat conftest.err >&5
32387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32388 (exit $ac_status); } && {
32389 test -z "$ac_cxx_werror_flag" ||
32390 test ! -s conftest.err
32391 } && test -s conftest.$ac_objext; then
32392 ac_cv_cxx_have_namespaces=yes
32393else
32394 $as_echo "$as_me: failed program was:" >&5
32395sed 's/^/| /' conftest.$ac_ext >&5
32396
32397 ac_cv_cxx_have_namespaces=no
32398fi
32399
32400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32401 ac_ext=cpp
32402ac_cpp='$CXXCPP $CPPFLAGS'
32403ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32404ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32405ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32406
32407
32408fi
32409{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_namespaces" >&5
32410$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
32411if test "$ac_cv_cxx_have_namespaces" = yes; then
32412
32413cat >>confdefs.h <<\_ACEOF
32414#define HAVE_NAMESPACES /**/
32415_ACEOF
32416
32417fi
32418
32419 { $as_echo "$as_me:$LINENO: checking whether the compiler supports the std namespace" >&5
32420$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
32421if test "${ac_cv_cxx_have_std_namespace+set}" = set; then
32422 $as_echo_n "(cached) " >&6
32423else
32424
32425 ac_ext=cpp
32426ac_cpp='$CXXCPP $CPPFLAGS'
32427ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32428ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32429ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32430
32431 cat >conftest.$ac_ext <<_ACEOF
32432/* confdefs.h. */
32433_ACEOF
32434cat confdefs.h >>conftest.$ac_ext
32435cat >>conftest.$ac_ext <<_ACEOF
32436/* end confdefs.h. */
32437#include <iostream>
32438 std::istream& is = std::cin;
32439
32440int
32441main ()
32442{
32443return 0;
32444 ;
32445 return 0;
32446}
32447_ACEOF
32448rm -f conftest.$ac_objext
32449if { (ac_try="$ac_compile"
32450case "(($ac_try" in
32451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32452 *) ac_try_echo=$ac_try;;
32453esac
32454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32455$as_echo "$ac_try_echo") >&5
32456 (eval "$ac_compile") 2>conftest.er1
32457 ac_status=$?
32458 grep -v '^ *+' conftest.er1 >conftest.err
32459 rm -f conftest.er1
32460 cat conftest.err >&5
32461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); } && {
32463 test -z "$ac_cxx_werror_flag" ||
32464 test ! -s conftest.err
32465 } && test -s conftest.$ac_objext; then
32466 ac_cv_cxx_have_std_namespace=yes
32467else
32468 $as_echo "$as_me: failed program was:" >&5
32469sed 's/^/| /' conftest.$ac_ext >&5
32470
32471 ac_cv_cxx_have_std_namespace=no
32472fi
32473
32474rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32475 ac_ext=cpp
32476ac_cpp='$CXXCPP $CPPFLAGS'
32477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32480
32481
32482fi
32483{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_namespace" >&5
32484$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
32485if test "$ac_cv_cxx_have_std_namespace" = yes; then
32486
32487cat >>confdefs.h <<\_ACEOF
32488#define HAVE_STD_NAMESPACE /**/
32489_ACEOF
32490
32491fi
32492
32493 { $as_echo "$as_me:$LINENO: checking whether the compiler supports ISO C++ standard library" >&5
32494$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
32495if test "${ac_cv_cxx_have_std_libs+set}" = set; then
32496 $as_echo_n "(cached) " >&6
32497else
32498
32499
32500 ac_ext=cpp
32501ac_cpp='$CXXCPP $CPPFLAGS'
32502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32505
32506 cat >conftest.$ac_ext <<_ACEOF
32507/* confdefs.h. */
32508_ACEOF
32509cat confdefs.h >>conftest.$ac_ext
32510cat >>conftest.$ac_ext <<_ACEOF
32511/* end confdefs.h. */
32512#include <iostream>
32513#include <map>
32514#include <iomanip>
32515#include <cmath>
32516#ifdef HAVE_NAMESPACES
32517using namespace std;
32518#endif
32519int
32520main ()
32521{
32522return 0;
32523 ;
32524 return 0;
32525}
32526_ACEOF
32527rm -f conftest.$ac_objext
32528if { (ac_try="$ac_compile"
32529case "(($ac_try" in
32530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32531 *) ac_try_echo=$ac_try;;
32532esac
32533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32534$as_echo "$ac_try_echo") >&5
32535 (eval "$ac_compile") 2>conftest.er1
32536 ac_status=$?
32537 grep -v '^ *+' conftest.er1 >conftest.err
32538 rm -f conftest.er1
32539 cat conftest.err >&5
32540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32541 (exit $ac_status); } && {
32542 test -z "$ac_cxx_werror_flag" ||
32543 test ! -s conftest.err
32544 } && test -s conftest.$ac_objext; then
32545 ac_cv_cxx_have_std_libs=yes
32546else
32547 $as_echo "$as_me: failed program was:" >&5
32548sed 's/^/| /' conftest.$ac_ext >&5
32549
32550 ac_cv_cxx_have_std_libs=no
32551fi
32552
32553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32554 ac_ext=cpp
32555ac_cpp='$CXXCPP $CPPFLAGS'
32556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32559
32560
32561fi
32562{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_libs" >&5
32563$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
32564if test "$ac_cv_cxx_have_std_libs" = yes; then
32565
32566cat >>confdefs.h <<\_ACEOF
32567#define HAVE_STD_LIBS /**/
32568_ACEOF
32569
32570fi
32571
32572 { $as_echo "$as_me:$LINENO: checking whether the compiler implements L\"widestring\"" >&5
32573$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
32574if test "${ac_cv_cxx_have_lstring+set}" = set; then
32575 $as_echo_n "(cached) " >&6
32576else
32577
32578 ac_ext=cpp
32579ac_cpp='$CXXCPP $CPPFLAGS'
32580ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32581ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32582ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32583
32584 cat >conftest.$ac_ext <<_ACEOF
32585/* confdefs.h. */
32586_ACEOF
32587cat confdefs.h >>conftest.$ac_ext
32588cat >>conftest.$ac_ext <<_ACEOF
32589/* end confdefs.h. */
32590const wchar_t* s=L"wide string";
32591_ACEOF
32592rm -f conftest.$ac_objext
32593if { (ac_try="$ac_compile"
32594case "(($ac_try" in
32595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32596 *) ac_try_echo=$ac_try;;
32597esac
32598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32599$as_echo "$ac_try_echo") >&5
32600 (eval "$ac_compile") 2>conftest.er1
32601 ac_status=$?
32602 grep -v '^ *+' conftest.er1 >conftest.err
32603 rm -f conftest.er1
32604 cat conftest.err >&5
32605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32606 (exit $ac_status); } && {
32607 test -z "$ac_cxx_werror_flag" ||
32608 test ! -s conftest.err
32609 } && test -s conftest.$ac_objext; then
32610 ac_cv_cxx_have_lstring=yes
32611else
32612 $as_echo "$as_me: failed program was:" >&5
32613sed 's/^/| /' conftest.$ac_ext >&5
32614
32615 ac_cv_cxx_have_lstring=no
32616fi
32617
32618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32619 ac_ext=cpp
32620ac_cpp='$CXXCPP $CPPFLAGS'
32621ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32622ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32623ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32624
32625
32626fi
32627{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_lstring" >&5
32628$as_echo "$ac_cv_cxx_have_lstring" >&6; }
32629if test "$ac_cv_cxx_have_lstring" = yes; then
32630
32631cat >>confdefs.h <<\_ACEOF
32632#define HAVE_LSTRING /**/
32633_ACEOF
32634
32635fi
32636
32637
32638 OPENMP_CXXFLAGS=
32639 # Check whether --enable-openmp was given.
32640if test "${enable_openmp+set}" = set; then
32641 enableval=$enable_openmp;
32642fi
32643
32644 if test "$enable_openmp" != no; then
32645 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
32646$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
32647if test "${ac_cv_prog_cxx_openmp+set}" = set; then
32648 $as_echo_n "(cached) " >&6
32649else
32650 cat >conftest.$ac_ext <<_ACEOF
32651
32652#ifndef _OPENMP
32653 choke me
32654#endif
32655#include <omp.h>
32656int main () { return omp_get_num_threads (); }
32657
32658_ACEOF
32659rm -f conftest.$ac_objext conftest$ac_exeext
32660if { (ac_try="$ac_link"
32661case "(($ac_try" in
32662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32663 *) ac_try_echo=$ac_try;;
32664esac
32665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32666$as_echo "$ac_try_echo") >&5
32667 (eval "$ac_link") 2>conftest.er1
32668 ac_status=$?
32669 grep -v '^ *+' conftest.er1 >conftest.err
32670 rm -f conftest.er1
32671 cat conftest.err >&5
32672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32673 (exit $ac_status); } && {
32674 test -z "$ac_cxx_werror_flag" ||
32675 test ! -s conftest.err
32676 } && test -s conftest$ac_exeext && {
32677 test "$cross_compiling" = yes ||
32678 $as_test_x conftest$ac_exeext
32679 }; then
32680 ac_cv_prog_cxx_openmp='none needed'
32681else
32682 $as_echo "$as_me: failed program was:" >&5
32683sed 's/^/| /' conftest.$ac_ext >&5
32684
32685 ac_cv_prog_cxx_openmp='unsupported'
32686 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
32687 ac_save_CXXFLAGS=$CXXFLAGS
32688 CXXFLAGS="$CXXFLAGS $ac_option"
32689 cat >conftest.$ac_ext <<_ACEOF
32690
32691#ifndef _OPENMP
32692 choke me
32693#endif
32694#include <omp.h>
32695int main () { return omp_get_num_threads (); }
32696
32697_ACEOF
32698rm -f conftest.$ac_objext conftest$ac_exeext
32699if { (ac_try="$ac_link"
32700case "(($ac_try" in
32701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32702 *) ac_try_echo=$ac_try;;
32703esac
32704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32705$as_echo "$ac_try_echo") >&5
32706 (eval "$ac_link") 2>conftest.er1
32707 ac_status=$?
32708 grep -v '^ *+' conftest.er1 >conftest.err
32709 rm -f conftest.er1
32710 cat conftest.err >&5
32711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32712 (exit $ac_status); } && {
32713 test -z "$ac_cxx_werror_flag" ||
32714 test ! -s conftest.err
32715 } && test -s conftest$ac_exeext && {
32716 test "$cross_compiling" = yes ||
32717 $as_test_x conftest$ac_exeext
32718 }; then
32719 ac_cv_prog_cxx_openmp=$ac_option
32720else
32721 $as_echo "$as_me: failed program was:" >&5
32722sed 's/^/| /' conftest.$ac_ext >&5
32723
32724
32725fi
32726
32727rm -rf conftest.dSYM
32728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32729 conftest$ac_exeext conftest.$ac_ext
32730 CXXFLAGS=$ac_save_CXXFLAGS
32731 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
32732 break
32733 fi
32734 done
32735fi
32736
32737rm -rf conftest.dSYM
32738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32739 conftest$ac_exeext conftest.$ac_ext
32740fi
32741{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_openmp" >&5
32742$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
32743 case $ac_cv_prog_cxx_openmp in #(
32744 "none needed" | unsupported)
32745 ;; #(
32746 *)
32747 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
32748 esac
32749 fi
32750
32751
32752 ac_ext=c
32753ac_cpp='$CPP $CPPFLAGS'
32754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32756ac_compiler_gnu=$ac_cv_c_compiler_gnu
32757
32758
32759 { $as_echo "$as_me:$LINENO: checking whether C++ compiler is sufficient for Magick++" >&5
32760$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
32761 if \
32762 test $ac_cv_cxx_have_bool = 'yes' && \
32763 test $ac_cv_cxx_have_lstring = 'yes' && \
32764 test $ac_cv_cxx_have_namespaces = 'yes' && \
32765 test $ac_cv_cxx_have_std_libs = 'yes' && \
32766 test $ac_cv_cxx_have_std_namespace = 'yes'; then
32767 have_magick_plus_plus='yes'
32768 else
32769 have_magick_plus_plus='no (failed tests)'
32770 fi
32771 { $as_echo "$as_me:$LINENO: result: $have_magick_plus_plus" >&5
32772$as_echo "$have_magick_plus_plus" >&6; }
32773 LIBS="$OLIBS"
32774fi
32775 if test "$have_magick_plus_plus" = 'yes'; then
32776 WITH_MAGICK_PLUS_PLUS_TRUE=
32777 WITH_MAGICK_PLUS_PLUS_FALSE='#'
32778else
32779 WITH_MAGICK_PLUS_PLUS_TRUE='#'
32780 WITH_MAGICK_PLUS_PLUS_FALSE=
32781fi
32782
32783
32784# Only check for delegate libraries in subdirectories if requested.
32785if test "$enable_delegate_build" != 'no'; then
32786 # Check for delegate sub-directories and add -I & -L options as required.
32787 # This presumes that delegates are installed as detailed in the ImageMagick
32788 # README. If delegates are installed in a standard location where the
32789 # compiler will automatically find them then these options should not be
32790 # required.
32791
32792 #
32793 # Most delegates have includes in the same directory as the library, but not all...
32794 #
32795 # Includes
32796 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
32797 if test -d "$builddir/$dir"; then
32798 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
32799 else
32800 if test -d "$srcdirfull/$dir"; then
32801 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
32802 fi
32803 fi
32804 done
32805
32806 # Libraries
32807 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
32808 if test -d "$builddir/$dir/.libs"; then
32809 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
32810 else
32811 if test -d "$srcdirfull/$dir/.libs"; then
32812 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
32813 fi
32814 fi
32815 if test -d "$builddir/$dir"; then
32816 LDFLAGS="$LDFLAGS -L$builddir/$dir"
32817 else
32818 if test -d "$srcdirfull/$dir"; then
32819 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
32820 fi
32821 fi
32822 done
32823fi
32824
32825# Assume that delegate headers reside under same directory as ImageMagick
32826# installation prefix.
32827MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
32828
32829#
32830# Find the X11 RGB database
32831#
32832{ $as_echo "$as_me:$LINENO: checking for X11 configure files" >&5
32833$as_echo_n "checking for X11 configure files... " >&6; }
32834if test "${im_cv_x_configure+set}" = set; then
32835 $as_echo_n "(cached) " >&6
32836else
32837 # Look for the header file in a standard set of common directories.
32838# Check X11 before X11Rn because it is often a symlink to the current release.
32839 for ac_dir in \
32840 /lib/usr/lib/X11 \
32841 /usr/X11/lib \
32842 /usr/X11R4/lib \
32843 /usr/X11R5/lib \
32844 /usr/X11R6/lib \
32845 /usr/X11R7/lib \
32846 /usr/X386/lib \
32847 /usr/XFree86/lib/X11 \
32848 /usr/athena/lib \
32849 /usr/lib \
32850 /usr/lib/X11 \
32851 /usr/lib/X11R4 \
32852 /usr/lib/X11R5 \
32853 /usr/lib/X11R6 \
32854 /usr/lib/X11R7 \
32855 /usr/local/X11/lib \
32856 /usr/local/X11R4/lib \
32857 /usr/local/X11R5/lib \
32858 /usr/local/X11R6/lib \
32859 /usr/local/lib \
32860 /usr/local/lib/X11 \
32861 /usr/local/lib/X11R4 \
32862 /usr/local/lib/X11R5 \
32863 /usr/local/lib/X11R6 \
32864 /usr/local/lib/X11R7 \
32865 /usr/local/x11r5/lib \
32866 /usr/lpp/Xamples/lib \
32867 /usr/openwin/lib \
32868 /usr/openwin/share/lib \
32869 /usr/unsupported/lib \
32870 /usr/x386/lib \
32871 ; do
32872 if test -f "$ac_dir/X11/rgb.txt"; then
32873 im_cv_x_configure="$ac_dir/X11/"
32874 break
32875 elif test -f "$ac_dir/rgb.txt"; then
32876 im_cv_x_configure="$ac_dir/"
32877 break
32878 fi
32879
32880 done
32881fi
32882{ $as_echo "$as_me:$LINENO: result: $im_cv_x_configure" >&5
32883$as_echo "$im_cv_x_configure" >&6; }
32884X11_CONFIGURE_PATH="$im_cv_x_configure"
32885case "${build_os}" in
32886 mingw* )
32887 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
32888 ;;
32889esac
32890
32891cat >>confdefs.h <<_ACEOF
32892#define X11_CONFIGURE_PATH "$X11ConfigurePath"
32893_ACEOF
32894
32895
32896#
32897# Find OpenMP library
32898#
32899GOMP_LIBS=''
32900if test "$enable_openmp" != 'no'; then
32901 if test "${GCC}" = "yes"; then
32902 { $as_echo "$as_me:$LINENO: checking for GOMP_parallel_start in -lgomp" >&5
32903$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
32904if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then
32905 $as_echo_n "(cached) " >&6
32906else
32907 ac_check_lib_save_LIBS=$LIBS
32908LIBS="-lgomp $LIBS"
32909cat >conftest.$ac_ext <<_ACEOF
32910/* confdefs.h. */
32911_ACEOF
32912cat confdefs.h >>conftest.$ac_ext
32913cat >>conftest.$ac_ext <<_ACEOF
32914/* end confdefs.h. */
32915
32916/* Override any GCC internal prototype to avoid an error.
32917 Use char because int might match the return type of a GCC
32918 builtin and then its argument prototype would still apply. */
32919#ifdef __cplusplus
32920extern "C"
32921#endif
32922char GOMP_parallel_start ();
32923int
32924main ()
32925{
32926return GOMP_parallel_start ();
32927 ;
32928 return 0;
32929}
32930_ACEOF
32931rm -f conftest.$ac_objext conftest$ac_exeext
32932if { (ac_try="$ac_link"
32933case "(($ac_try" in
32934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32935 *) ac_try_echo=$ac_try;;
32936esac
32937eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32938$as_echo "$ac_try_echo") >&5
32939 (eval "$ac_link") 2>conftest.er1
32940 ac_status=$?
32941 grep -v '^ *+' conftest.er1 >conftest.err
32942 rm -f conftest.er1
32943 cat conftest.err >&5
32944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32945 (exit $ac_status); } && {
32946 test -z "$ac_c_werror_flag" ||
32947 test ! -s conftest.err
32948 } && test -s conftest$ac_exeext && {
32949 test "$cross_compiling" = yes ||
32950 $as_test_x conftest$ac_exeext
32951 }; then
32952 ac_cv_lib_gomp_GOMP_parallel_start=yes
32953else
32954 $as_echo "$as_me: failed program was:" >&5
32955sed 's/^/| /' conftest.$ac_ext >&5
32956
32957 ac_cv_lib_gomp_GOMP_parallel_start=no
32958fi
32959
32960rm -rf conftest.dSYM
32961rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32962 conftest$ac_exeext conftest.$ac_ext
32963LIBS=$ac_check_lib_save_LIBS
32964fi
32965{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
32966$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
32967if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then
32968 GOMP_LIBS="-lgomp"
32969fi
32970 # gcc
32971 else
32972 { $as_echo "$as_me:$LINENO: checking for sunw_mp_register_warn in -lmtsk" >&5
32973$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
32974if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then
32975 $as_echo_n "(cached) " >&6
32976else
32977 ac_check_lib_save_LIBS=$LIBS
32978LIBS="-lmtsk $LIBS"
32979cat >conftest.$ac_ext <<_ACEOF
32980/* confdefs.h. */
32981_ACEOF
32982cat confdefs.h >>conftest.$ac_ext
32983cat >>conftest.$ac_ext <<_ACEOF
32984/* end confdefs.h. */
32985
32986/* Override any GCC internal prototype to avoid an error.
32987 Use char because int might match the return type of a GCC
32988 builtin and then its argument prototype would still apply. */
32989#ifdef __cplusplus
32990extern "C"
32991#endif
32992char sunw_mp_register_warn ();
32993int
32994main ()
32995{
32996return sunw_mp_register_warn ();
32997 ;
32998 return 0;
32999}
33000_ACEOF
33001rm -f conftest.$ac_objext conftest$ac_exeext
33002if { (ac_try="$ac_link"
33003case "(($ac_try" in
33004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005 *) ac_try_echo=$ac_try;;
33006esac
33007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33008$as_echo "$ac_try_echo") >&5
33009 (eval "$ac_link") 2>conftest.er1
33010 ac_status=$?
33011 grep -v '^ *+' conftest.er1 >conftest.err
33012 rm -f conftest.er1
33013 cat conftest.err >&5
33014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33015 (exit $ac_status); } && {
33016 test -z "$ac_c_werror_flag" ||
33017 test ! -s conftest.err
33018 } && test -s conftest$ac_exeext && {
33019 test "$cross_compiling" = yes ||
33020 $as_test_x conftest$ac_exeext
33021 }; then
33022 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
33023else
33024 $as_echo "$as_me: failed program was:" >&5
33025sed 's/^/| /' conftest.$ac_ext >&5
33026
33027 ac_cv_lib_mtsk_sunw_mp_register_warn=no
33028fi
33029
33030rm -rf conftest.dSYM
33031rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33032 conftest$ac_exeext conftest.$ac_ext
33033LIBS=$ac_check_lib_save_LIBS
33034fi
33035{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
33036$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
33037if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then
33038 GOMP_LIBS="-lmtsk"
33039fi
33040 # solaris cc
33041 { $as_echo "$as_me:$LINENO: checking for _xlsmpFlush in -lxlsmp" >&5
33042$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
33043if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then
33044 $as_echo_n "(cached) " >&6
33045else
33046 ac_check_lib_save_LIBS=$LIBS
33047LIBS="-lxlsmp $LIBS"
33048cat >conftest.$ac_ext <<_ACEOF
33049/* confdefs.h. */
33050_ACEOF
33051cat confdefs.h >>conftest.$ac_ext
33052cat >>conftest.$ac_ext <<_ACEOF
33053/* end confdefs.h. */
33054
33055/* Override any GCC internal prototype to avoid an error.
33056 Use char because int might match the return type of a GCC
33057 builtin and then its argument prototype would still apply. */
33058#ifdef __cplusplus
33059extern "C"
33060#endif
33061char _xlsmpFlush ();
33062int
33063main ()
33064{
33065return _xlsmpFlush ();
33066 ;
33067 return 0;
33068}
33069_ACEOF
33070rm -f conftest.$ac_objext conftest$ac_exeext
33071if { (ac_try="$ac_link"
33072case "(($ac_try" in
33073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33074 *) ac_try_echo=$ac_try;;
33075esac
33076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33077$as_echo "$ac_try_echo") >&5
33078 (eval "$ac_link") 2>conftest.er1
33079 ac_status=$?
33080 grep -v '^ *+' conftest.er1 >conftest.err
33081 rm -f conftest.er1
33082 cat conftest.err >&5
33083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084 (exit $ac_status); } && {
33085 test -z "$ac_c_werror_flag" ||
33086 test ! -s conftest.err
33087 } && test -s conftest$ac_exeext && {
33088 test "$cross_compiling" = yes ||
33089 $as_test_x conftest$ac_exeext
33090 }; then
33091 ac_cv_lib_xlsmp__xlsmpFlush=yes
33092else
33093 $as_echo "$as_me: failed program was:" >&5
33094sed 's/^/| /' conftest.$ac_ext >&5
33095
33096 ac_cv_lib_xlsmp__xlsmpFlush=no
33097fi
33098
33099rm -rf conftest.dSYM
33100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33101 conftest$ac_exeext conftest.$ac_ext
33102LIBS=$ac_check_lib_save_LIBS
33103fi
33104{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
33105$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
33106if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then
33107 GOMP_LIBS="-lxlsmp"
33108fi
33109 # AIX xlc
33110 { $as_echo "$as_me:$LINENO: checking for mp_destroy in -lmp" >&5
33111$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
33112if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then
33113 $as_echo_n "(cached) " >&6
33114else
33115 ac_check_lib_save_LIBS=$LIBS
33116LIBS="-lmp $LIBS"
33117cat >conftest.$ac_ext <<_ACEOF
33118/* confdefs.h. */
33119_ACEOF
33120cat confdefs.h >>conftest.$ac_ext
33121cat >>conftest.$ac_ext <<_ACEOF
33122/* end confdefs.h. */
33123
33124/* Override any GCC internal prototype to avoid an error.
33125 Use char because int might match the return type of a GCC
33126 builtin and then its argument prototype would still apply. */
33127#ifdef __cplusplus
33128extern "C"
33129#endif
33130char mp_destroy ();
33131int
33132main ()
33133{
33134return mp_destroy ();
33135 ;
33136 return 0;
33137}
33138_ACEOF
33139rm -f conftest.$ac_objext conftest$ac_exeext
33140if { (ac_try="$ac_link"
33141case "(($ac_try" in
33142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33143 *) ac_try_echo=$ac_try;;
33144esac
33145eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33146$as_echo "$ac_try_echo") >&5
33147 (eval "$ac_link") 2>conftest.er1
33148 ac_status=$?
33149 grep -v '^ *+' conftest.er1 >conftest.err
33150 rm -f conftest.er1
33151 cat conftest.err >&5
33152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33153 (exit $ac_status); } && {
33154 test -z "$ac_c_werror_flag" ||
33155 test ! -s conftest.err
33156 } && test -s conftest$ac_exeext && {
33157 test "$cross_compiling" = yes ||
33158 $as_test_x conftest$ac_exeext
33159 }; then
33160 ac_cv_lib_mp_mp_destroy=yes
33161else
33162 $as_echo "$as_me: failed program was:" >&5
33163sed 's/^/| /' conftest.$ac_ext >&5
33164
33165 ac_cv_lib_mp_mp_destroy=no
33166fi
33167
33168rm -rf conftest.dSYM
33169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33170 conftest$ac_exeext conftest.$ac_ext
33171LIBS=$ac_check_lib_save_LIBS
33172fi
33173{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp_mp_destroy" >&5
33174$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
33175if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then
33176 GOMP_LIBS="-lmp"
33177fi
33178 # SGI IRIX 6.5 MIPSpro C/C++
33179 fi
33180 LIBS="$GOMP_LIBS $LIBS"
33181fi
33182
33183
33184#
33185# Find Posix threads library
33186#
33187THREAD_LIBS=''
33188if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
33189
33190 if test "x$PTHREAD_LIBS" = "x"; then
33191 case "${host_cpu}-${host_os}" in
33192 *-freebsd*)
33193
33194
33195
33196ac_ext=c
33197ac_cpp='$CPP $CPPFLAGS'
33198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33200ac_compiler_gnu=$ac_cv_c_compiler_gnu
33201
33202magick_pthread_lib_ok=no
33203
33204LIB=-lc_r
33205save_LIBS="$LIBS"
33206LIBS="$LIBS $LIB"
33207
33208{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
33209$as_echo_n "checking for the pthreads library $LIB... " >&6; }
33210cat >conftest.$ac_ext <<_ACEOF
33211/* confdefs.h. */
33212_ACEOF
33213cat confdefs.h >>conftest.$ac_ext
33214cat >>conftest.$ac_ext <<_ACEOF
33215/* end confdefs.h. */
33216#include <pthread.h>
33217int
33218main ()
33219{
33220 pthread_t th;
33221 pthread_join(th, 0);
33222 pthread_attr_init(0);
33223 pthread_cleanup_push(0, 0);
33224 pthread_create(0,0,0,0);
33225 pthread_cleanup_pop(0);
33226 ;
33227 return 0;
33228}
33229_ACEOF
33230rm -f conftest.$ac_objext conftest$ac_exeext
33231if { (ac_try="$ac_link"
33232case "(($ac_try" in
33233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33234 *) ac_try_echo=$ac_try;;
33235esac
33236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33237$as_echo "$ac_try_echo") >&5
33238 (eval "$ac_link") 2>conftest.er1
33239 ac_status=$?
33240 grep -v '^ *+' conftest.er1 >conftest.err
33241 rm -f conftest.er1
33242 cat conftest.err >&5
33243 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244 (exit $ac_status); } && {
33245 test -z "$ac_c_werror_flag" ||
33246 test ! -s conftest.err
33247 } && test -s conftest$ac_exeext && {
33248 test "$cross_compiling" = yes ||
33249 $as_test_x conftest$ac_exeext
33250 }; then
33251 magick_pthread_lib_ok=yes
33252else
33253 $as_echo "$as_me: failed program was:" >&5
33254sed 's/^/| /' conftest.$ac_ext >&5
33255
33256
33257fi
33258
33259rm -rf conftest.dSYM
33260rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33261 conftest$ac_exeext conftest.$ac_ext
33262
33263{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
33264$as_echo "${magick_pthread_lib_ok}" >&6; }
33265if test "$magick_pthread_lib_ok" = yes
33266then
33267 PTHREAD_LIBS=-lc_r
33268 :
33269else
33270
33271 :
33272fi
33273
33274LIBS="$save_LIBS"
33275
33276ac_ext=c
33277ac_cpp='$CPP $CPPFLAGS'
33278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33280ac_compiler_gnu=$ac_cv_c_compiler_gnu
33281
33282 ;;
33283 esac
33284 fi
33285
33286 for lib in pthread pthreads; do
33287 if test "x$PTHREAD_LIBS" = "x"; then
33288
33289
33290
33291ac_ext=c
33292ac_cpp='$CPP $CPPFLAGS'
33293ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33294ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33295ac_compiler_gnu=$ac_cv_c_compiler_gnu
33296
33297magick_pthread_lib_ok=no
33298
33299LIB=-l$lib
33300save_LIBS="$LIBS"
33301LIBS="$LIBS $LIB"
33302
33303{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
33304$as_echo_n "checking for the pthreads library $LIB... " >&6; }
33305cat >conftest.$ac_ext <<_ACEOF
33306/* confdefs.h. */
33307_ACEOF
33308cat confdefs.h >>conftest.$ac_ext
33309cat >>conftest.$ac_ext <<_ACEOF
33310/* end confdefs.h. */
33311#include <pthread.h>
33312int
33313main ()
33314{
33315 pthread_t th;
33316 pthread_join(th, 0);
33317 pthread_attr_init(0);
33318 pthread_cleanup_push(0, 0);
33319 pthread_create(0,0,0,0);
33320 pthread_cleanup_pop(0);
33321 ;
33322 return 0;
33323}
33324_ACEOF
33325rm -f conftest.$ac_objext conftest$ac_exeext
33326if { (ac_try="$ac_link"
33327case "(($ac_try" in
33328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33329 *) ac_try_echo=$ac_try;;
33330esac
33331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33332$as_echo "$ac_try_echo") >&5
33333 (eval "$ac_link") 2>conftest.er1
33334 ac_status=$?
33335 grep -v '^ *+' conftest.er1 >conftest.err
33336 rm -f conftest.er1
33337 cat conftest.err >&5
33338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33339 (exit $ac_status); } && {
33340 test -z "$ac_c_werror_flag" ||
33341 test ! -s conftest.err
33342 } && test -s conftest$ac_exeext && {
33343 test "$cross_compiling" = yes ||
33344 $as_test_x conftest$ac_exeext
33345 }; then
33346 magick_pthread_lib_ok=yes
33347else
33348 $as_echo "$as_me: failed program was:" >&5
33349sed 's/^/| /' conftest.$ac_ext >&5
33350
33351
33352fi
33353
33354rm -rf conftest.dSYM
33355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33356 conftest$ac_exeext conftest.$ac_ext
33357
33358{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
33359$as_echo "${magick_pthread_lib_ok}" >&6; }
33360if test "$magick_pthread_lib_ok" = yes
33361then
33362 PTHREAD_LIBS=-l$lib
33363 :
33364else
33365
33366 :
33367fi
33368
33369LIBS="$save_LIBS"
33370
33371ac_ext=c
33372ac_cpp='$CPP $CPPFLAGS'
33373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33375ac_compiler_gnu=$ac_cv_c_compiler_gnu
33376
33377
33378 fi
33379 done
33380
33381 THREAD_LIBS="$PTHREAD_LIBS"
33382 LIBS="$LIBS $THREAD_LIBS"
33383fi
33384
33385
33386#
33387# Check for umem.
33388#
33389have_umem='no'
33390UMEM_LIBS=''
33391if test "$with_umem" != 'no'; then
33392 { $as_echo "$as_me:$LINENO: checking for UMEM support " >&5
33393$as_echo_n "checking for UMEM support ... " >&6; }
33394 { $as_echo "$as_me:$LINENO: result: " >&5
33395$as_echo "" >&6; }
33396 failed=0
33397 passed=0
33398 if test "${ac_cv_header_umem_h+set}" = set; then
33399 { $as_echo "$as_me:$LINENO: checking for umem.h" >&5
33400$as_echo_n "checking for umem.h... " >&6; }
33401if test "${ac_cv_header_umem_h+set}" = set; then
33402 $as_echo_n "(cached) " >&6
33403fi
33404{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
33405$as_echo "$ac_cv_header_umem_h" >&6; }
33406else
33407 # Is the header compilable?
33408{ $as_echo "$as_me:$LINENO: checking umem.h usability" >&5
33409$as_echo_n "checking umem.h usability... " >&6; }
33410cat >conftest.$ac_ext <<_ACEOF
33411/* confdefs.h. */
33412_ACEOF
33413cat confdefs.h >>conftest.$ac_ext
33414cat >>conftest.$ac_ext <<_ACEOF
33415/* end confdefs.h. */
33416$ac_includes_default
33417#include <umem.h>
33418_ACEOF
33419rm -f conftest.$ac_objext
33420if { (ac_try="$ac_compile"
33421case "(($ac_try" in
33422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33423 *) ac_try_echo=$ac_try;;
33424esac
33425eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33426$as_echo "$ac_try_echo") >&5
33427 (eval "$ac_compile") 2>conftest.er1
33428 ac_status=$?
33429 grep -v '^ *+' conftest.er1 >conftest.err
33430 rm -f conftest.er1
33431 cat conftest.err >&5
33432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33433 (exit $ac_status); } && {
33434 test -z "$ac_c_werror_flag" ||
33435 test ! -s conftest.err
33436 } && test -s conftest.$ac_objext; then
33437 ac_header_compiler=yes
33438else
33439 $as_echo "$as_me: failed program was:" >&5
33440sed 's/^/| /' conftest.$ac_ext >&5
33441
33442 ac_header_compiler=no
33443fi
33444
33445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33446{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33447$as_echo "$ac_header_compiler" >&6; }
33448
33449# Is the header present?
33450{ $as_echo "$as_me:$LINENO: checking umem.h presence" >&5
33451$as_echo_n "checking umem.h presence... " >&6; }
33452cat >conftest.$ac_ext <<_ACEOF
33453/* confdefs.h. */
33454_ACEOF
33455cat confdefs.h >>conftest.$ac_ext
33456cat >>conftest.$ac_ext <<_ACEOF
33457/* end confdefs.h. */
33458#include <umem.h>
33459_ACEOF
33460if { (ac_try="$ac_cpp conftest.$ac_ext"
33461case "(($ac_try" in
33462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33463 *) ac_try_echo=$ac_try;;
33464esac
33465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33466$as_echo "$ac_try_echo") >&5
33467 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33468 ac_status=$?
33469 grep -v '^ *+' conftest.er1 >conftest.err
33470 rm -f conftest.er1
33471 cat conftest.err >&5
33472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33473 (exit $ac_status); } >/dev/null && {
33474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33475 test ! -s conftest.err
33476 }; then
33477 ac_header_preproc=yes
33478else
33479 $as_echo "$as_me: failed program was:" >&5
33480sed 's/^/| /' conftest.$ac_ext >&5
33481
33482 ac_header_preproc=no
33483fi
33484
33485rm -f conftest.err conftest.$ac_ext
33486{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33487$as_echo "$ac_header_preproc" >&6; }
33488
33489# So? What about this header?
33490case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33491 yes:no: )
33492 { $as_echo "$as_me:$LINENO: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&5
33493$as_echo "$as_me: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33494 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the compiler's result" >&5
33495$as_echo "$as_me: WARNING: umem.h: proceeding with the compiler's result" >&2;}
33496 ac_header_preproc=yes
33497 ;;
33498 no:yes:* )
33499 { $as_echo "$as_me:$LINENO: WARNING: umem.h: present but cannot be compiled" >&5
33500$as_echo "$as_me: WARNING: umem.h: present but cannot be compiled" >&2;}
33501 { $as_echo "$as_me:$LINENO: WARNING: umem.h: check for missing prerequisite headers?" >&5
33502$as_echo "$as_me: WARNING: umem.h: check for missing prerequisite headers?" >&2;}
33503 { $as_echo "$as_me:$LINENO: WARNING: umem.h: see the Autoconf documentation" >&5
33504$as_echo "$as_me: WARNING: umem.h: see the Autoconf documentation" >&2;}
33505 { $as_echo "$as_me:$LINENO: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&5
33506$as_echo "$as_me: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&2;}
33507 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the preprocessor's result" >&5
33508$as_echo "$as_me: WARNING: umem.h: proceeding with the preprocessor's result" >&2;}
33509 { $as_echo "$as_me:$LINENO: WARNING: umem.h: in the future, the compiler will take precedence" >&5
33510$as_echo "$as_me: WARNING: umem.h: in the future, the compiler will take precedence" >&2;}
33511 ( cat <<\_ASBOX
33512## ----------------------------------------- ##
33513## Report this to http://www.imagemagick.org ##
33514## ----------------------------------------- ##
33515_ASBOX
33516 ) | sed "s/^/$as_me: WARNING: /" >&2
33517 ;;
33518esac
33519{ $as_echo "$as_me:$LINENO: checking for umem.h" >&5
33520$as_echo_n "checking for umem.h... " >&6; }
33521if test "${ac_cv_header_umem_h+set}" = set; then
33522 $as_echo_n "(cached) " >&6
33523else
33524 ac_cv_header_umem_h=$ac_header_preproc
33525fi
33526{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
33527$as_echo "$ac_cv_header_umem_h" >&6; }
33528
33529fi
33530if test "x$ac_cv_header_umem_h" = x""yes; then
33531 passed=`expr $passed + 1`
33532else
33533 failed=`expr $failed + 1`
33534fi
33535
33536
33537 { $as_echo "$as_me:$LINENO: checking for umem_alloc in -lumem" >&5
33538$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
33539if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then
33540 $as_echo_n "(cached) " >&6
33541else
33542 ac_check_lib_save_LIBS=$LIBS
33543LIBS="-lumem $LIBS"
33544cat >conftest.$ac_ext <<_ACEOF
33545/* confdefs.h. */
33546_ACEOF
33547cat confdefs.h >>conftest.$ac_ext
33548cat >>conftest.$ac_ext <<_ACEOF
33549/* end confdefs.h. */
33550
33551/* Override any GCC internal prototype to avoid an error.
33552 Use char because int might match the return type of a GCC
33553 builtin and then its argument prototype would still apply. */
33554#ifdef __cplusplus
33555extern "C"
33556#endif
33557char umem_alloc ();
33558int
33559main ()
33560{
33561return umem_alloc ();
33562 ;
33563 return 0;
33564}
33565_ACEOF
33566rm -f conftest.$ac_objext conftest$ac_exeext
33567if { (ac_try="$ac_link"
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_link") 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); } && {
33581 test -z "$ac_c_werror_flag" ||
33582 test ! -s conftest.err
33583 } && test -s conftest$ac_exeext && {
33584 test "$cross_compiling" = yes ||
33585 $as_test_x conftest$ac_exeext
33586 }; then
33587 ac_cv_lib_umem_umem_alloc=yes
33588else
33589 $as_echo "$as_me: failed program was:" >&5
33590sed 's/^/| /' conftest.$ac_ext >&5
33591
33592 ac_cv_lib_umem_umem_alloc=no
33593fi
33594
33595rm -rf conftest.dSYM
33596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33597 conftest$ac_exeext conftest.$ac_ext
33598LIBS=$ac_check_lib_save_LIBS
33599fi
33600{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_alloc" >&5
33601$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
33602if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then
33603 passed=`expr $passed + 1`
33604else
33605 failed=`expr $failed + 1`
33606fi
33607
33608 { $as_echo "$as_me:$LINENO: checking for umem_free in -lumem" >&5
33609$as_echo_n "checking for umem_free in -lumem... " >&6; }
33610if test "${ac_cv_lib_umem_umem_free+set}" = set; then
33611 $as_echo_n "(cached) " >&6
33612else
33613 ac_check_lib_save_LIBS=$LIBS
33614LIBS="-lumem $LIBS"
33615cat >conftest.$ac_ext <<_ACEOF
33616/* confdefs.h. */
33617_ACEOF
33618cat confdefs.h >>conftest.$ac_ext
33619cat >>conftest.$ac_ext <<_ACEOF
33620/* end confdefs.h. */
33621
33622/* Override any GCC internal prototype to avoid an error.
33623 Use char because int might match the return type of a GCC
33624 builtin and then its argument prototype would still apply. */
33625#ifdef __cplusplus
33626extern "C"
33627#endif
33628char umem_free ();
33629int
33630main ()
33631{
33632return umem_free ();
33633 ;
33634 return 0;
33635}
33636_ACEOF
33637rm -f conftest.$ac_objext conftest$ac_exeext
33638if { (ac_try="$ac_link"
33639case "(($ac_try" in
33640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33641 *) ac_try_echo=$ac_try;;
33642esac
33643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33644$as_echo "$ac_try_echo") >&5
33645 (eval "$ac_link") 2>conftest.er1
33646 ac_status=$?
33647 grep -v '^ *+' conftest.er1 >conftest.err
33648 rm -f conftest.er1
33649 cat conftest.err >&5
33650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651 (exit $ac_status); } && {
33652 test -z "$ac_c_werror_flag" ||
33653 test ! -s conftest.err
33654 } && test -s conftest$ac_exeext && {
33655 test "$cross_compiling" = yes ||
33656 $as_test_x conftest$ac_exeext
33657 }; then
33658 ac_cv_lib_umem_umem_free=yes
33659else
33660 $as_echo "$as_me: failed program was:" >&5
33661sed 's/^/| /' conftest.$ac_ext >&5
33662
33663 ac_cv_lib_umem_umem_free=no
33664fi
33665
33666rm -rf conftest.dSYM
33667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33668 conftest$ac_exeext conftest.$ac_ext
33669LIBS=$ac_check_lib_save_LIBS
33670fi
33671{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_free" >&5
33672$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
33673if test "x$ac_cv_lib_umem_umem_free" = x""yes; then
33674 passed=`expr $passed + 1`
33675else
33676 failed=`expr $failed + 1`
33677fi
33678
33679 { $as_echo "$as_me:$LINENO: checking if umem memory allocation library is complete" >&5
33680$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
33681 if test $passed -gt 0; then
33682 if test $failed -gt 0; then
33683 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
33684$as_echo "no -- some components failed test" >&6; }
33685 have_umem='no (failed tests)'
33686 else
33687 UMEM_LIBS='-lumem'
33688 LIBS="$UMEM_LIBS $LIBS"
33689
33690cat >>confdefs.h <<\_ACEOF
33691#define HasUMEM 1
33692_ACEOF
33693
33694 { $as_echo "$as_me:$LINENO: result: yes" >&5
33695$as_echo "yes" >&6; }
33696 have_umem='yes'
33697 fi
33698 else
33699 { $as_echo "$as_me:$LINENO: result: no" >&5
33700$as_echo "no" >&6; }
33701 fi
33702fi
33703 if test "$have_umem" = 'yes'; then
33704 HasUMEM_TRUE=
33705 HasUMEM_FALSE='#'
33706else
33707 HasUMEM_TRUE='#'
33708 HasUMEM_FALSE=
33709fi
33710
33711
33712
33713#
33714# Add support for ccmalloc memory debugging library if requested
33715#
33716have_ccmalloc='no'
33717CCMALLOC_LIBS=''
33718if test "$enable_ccmalloc" = 'yes'; then
33719 # Extract the first word of "ccmalloc", so it can be a program name with args.
33720set dummy ccmalloc; ac_word=$2
33721{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33722$as_echo_n "checking for $ac_word... " >&6; }
33723if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then
33724 $as_echo_n "(cached) " >&6
33725else
33726 case $CCMALLOCDelegate in
33727 [\\/]* | ?:[\\/]*)
33728 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
33729 ;;
33730 *)
33731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33732for as_dir in $PATH
33733do
33734 IFS=$as_save_IFS
33735 test -z "$as_dir" && as_dir=.
33736 for ac_exec_ext in '' $ac_executable_extensions; do
33737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33738 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
33739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33740 break 2
33741 fi
33742done
33743done
33744IFS=$as_save_IFS
33745
33746 ;;
33747esac
33748fi
33749CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
33750if test -n "$CCMALLOCDelegate"; then
33751 { $as_echo "$as_me:$LINENO: result: $CCMALLOCDelegate" >&5
33752$as_echo "$CCMALLOCDelegate" >&6; }
33753else
33754 { $as_echo "$as_me:$LINENO: result: no" >&5
33755$as_echo "no" >&6; }
33756fi
33757
33758
33759 if test -n "$CCMALLOCDelegate"; then
33760 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
33761 OLIBS="$LIBS"
33762 # Assume that gcc is used with ccmalloc.
33763 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
33764 { $as_echo "$as_me:$LINENO: checking for ccmalloc_malloc in -lccmalloc" >&5
33765$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
33766if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then
33767 $as_echo_n "(cached) " >&6
33768else
33769 ac_check_lib_save_LIBS=$LIBS
33770LIBS="-lccmalloc -ldl $LIBS"
33771cat >conftest.$ac_ext <<_ACEOF
33772/* confdefs.h. */
33773_ACEOF
33774cat confdefs.h >>conftest.$ac_ext
33775cat >>conftest.$ac_ext <<_ACEOF
33776/* end confdefs.h. */
33777
33778/* Override any GCC internal prototype to avoid an error.
33779 Use char because int might match the return type of a GCC
33780 builtin and then its argument prototype would still apply. */
33781#ifdef __cplusplus
33782extern "C"
33783#endif
33784char ccmalloc_malloc ();
33785int
33786main ()
33787{
33788return ccmalloc_malloc ();
33789 ;
33790 return 0;
33791}
33792_ACEOF
33793rm -f conftest.$ac_objext conftest$ac_exeext
33794if { (ac_try="$ac_link"
33795case "(($ac_try" in
33796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33797 *) ac_try_echo=$ac_try;;
33798esac
33799eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33800$as_echo "$ac_try_echo") >&5
33801 (eval "$ac_link") 2>conftest.er1
33802 ac_status=$?
33803 grep -v '^ *+' conftest.er1 >conftest.err
33804 rm -f conftest.er1
33805 cat conftest.err >&5
33806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33807 (exit $ac_status); } && {
33808 test -z "$ac_c_werror_flag" ||
33809 test ! -s conftest.err
33810 } && test -s conftest$ac_exeext && {
33811 test "$cross_compiling" = yes ||
33812 $as_test_x conftest$ac_exeext
33813 }; then
33814 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
33815else
33816 $as_echo "$as_me: failed program was:" >&5
33817sed 's/^/| /' conftest.$ac_ext >&5
33818
33819 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
33820fi
33821
33822rm -rf conftest.dSYM
33823rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33824 conftest$ac_exeext conftest.$ac_ext
33825LIBS=$ac_check_lib_save_LIBS
33826fi
33827{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
33828$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
33829if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then
33830 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
33831fi
33832
33833 if test -n "$CCMALLOC_LIBS"; then
33834 LIBS="$OLIBS"
33835 LIBS="$LIBS $CCMALLOC_LIBS"
33836 have_ccmalloc='yes'
33837 else
33838 LIBS="$OLIBS"
33839 fi
33840 fi
33841fi
33842
33843#
33844# Add support for efence memory debugging library if requested
33845#
33846if test "$enable_efence" = 'yes'; then
33847 EFENCE_LIBS='-lefence'
33848 LIBS="$EFENCE_LIBS $LIBS"
33849fi
33850
33851#
33852# Find math library
33853#
33854MATH_LIBS=''
33855{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
33856$as_echo_n "checking for sqrt in -lm... " >&6; }
33857if test "${ac_cv_lib_m_sqrt+set}" = set; then
33858 $as_echo_n "(cached) " >&6
33859else
33860 ac_check_lib_save_LIBS=$LIBS
33861LIBS="-lm $LIBS"
33862cat >conftest.$ac_ext <<_ACEOF
33863/* confdefs.h. */
33864_ACEOF
33865cat confdefs.h >>conftest.$ac_ext
33866cat >>conftest.$ac_ext <<_ACEOF
33867/* end confdefs.h. */
33868
33869/* Override any GCC internal prototype to avoid an error.
33870 Use char because int might match the return type of a GCC
33871 builtin and then its argument prototype would still apply. */
33872#ifdef __cplusplus
33873extern "C"
33874#endif
33875char sqrt ();
33876int
33877main ()
33878{
33879return sqrt ();
33880 ;
33881 return 0;
33882}
33883_ACEOF
33884rm -f conftest.$ac_objext conftest$ac_exeext
33885if { (ac_try="$ac_link"
33886case "(($ac_try" in
33887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33888 *) ac_try_echo=$ac_try;;
33889esac
33890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33891$as_echo "$ac_try_echo") >&5
33892 (eval "$ac_link") 2>conftest.er1
33893 ac_status=$?
33894 grep -v '^ *+' conftest.er1 >conftest.err
33895 rm -f conftest.er1
33896 cat conftest.err >&5
33897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33898 (exit $ac_status); } && {
33899 test -z "$ac_c_werror_flag" ||
33900 test ! -s conftest.err
33901 } && test -s conftest$ac_exeext && {
33902 test "$cross_compiling" = yes ||
33903 $as_test_x conftest$ac_exeext
33904 }; then
33905 ac_cv_lib_m_sqrt=yes
33906else
33907 $as_echo "$as_me: failed program was:" >&5
33908sed 's/^/| /' conftest.$ac_ext >&5
33909
33910 ac_cv_lib_m_sqrt=no
33911fi
33912
33913rm -rf conftest.dSYM
33914rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33915 conftest$ac_exeext conftest.$ac_ext
33916LIBS=$ac_check_lib_save_LIBS
33917fi
33918{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
33919$as_echo "$ac_cv_lib_m_sqrt" >&6; }
33920if test "x$ac_cv_lib_m_sqrt" = x""yes; then
33921 MATH_LIBS="-lm"
33922fi
33923
33924LIBS="$MATH_LIBS $LIBS"
33925
33926
33927
33928#
33929# Check for BZLIB
33930#
33931
33932
33933# Check whether --with-bzlib was given.
33934if test "${with_bzlib+set}" = set; then
33935 withval=$with_bzlib; with_bzlib=$withval
33936else
33937 with_bzlib='yes'
33938fi
33939
33940
33941if test "$with_bzlib" != 'yes'; then
33942 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
33943fi
33944
33945have_bzlib='no'
33946if test "$with_bzlib" != 'no'; then
33947 BZLIB_LIBS=''
33948 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
33949$as_echo "-------------------------------------------------------------" >&6; }
33950 { $as_echo "$as_me:$LINENO: checking for BZLIB" >&5
33951$as_echo_n "checking for BZLIB... " >&6; }
33952 { $as_echo "$as_me:$LINENO: result: " >&5
33953$as_echo "" >&6; }
33954 failed=0
33955 passed=0
33956 found_libbz=0
33957 if test "${ac_cv_header_bzlib_h+set}" = set; then
33958 { $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
33959$as_echo_n "checking for bzlib.h... " >&6; }
33960if test "${ac_cv_header_bzlib_h+set}" = set; then
33961 $as_echo_n "(cached) " >&6
33962fi
33963{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
33964$as_echo "$ac_cv_header_bzlib_h" >&6; }
33965else
33966 # Is the header compilable?
33967{ $as_echo "$as_me:$LINENO: checking bzlib.h usability" >&5
33968$as_echo_n "checking bzlib.h usability... " >&6; }
33969cat >conftest.$ac_ext <<_ACEOF
33970/* confdefs.h. */
33971_ACEOF
33972cat confdefs.h >>conftest.$ac_ext
33973cat >>conftest.$ac_ext <<_ACEOF
33974/* end confdefs.h. */
33975$ac_includes_default
33976#include <bzlib.h>
33977_ACEOF
33978rm -f conftest.$ac_objext
33979if { (ac_try="$ac_compile"
33980case "(($ac_try" in
33981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33982 *) ac_try_echo=$ac_try;;
33983esac
33984eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33985$as_echo "$ac_try_echo") >&5
33986 (eval "$ac_compile") 2>conftest.er1
33987 ac_status=$?
33988 grep -v '^ *+' conftest.er1 >conftest.err
33989 rm -f conftest.er1
33990 cat conftest.err >&5
33991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33992 (exit $ac_status); } && {
33993 test -z "$ac_c_werror_flag" ||
33994 test ! -s conftest.err
33995 } && test -s conftest.$ac_objext; then
33996 ac_header_compiler=yes
33997else
33998 $as_echo "$as_me: failed program was:" >&5
33999sed 's/^/| /' conftest.$ac_ext >&5
34000
34001 ac_header_compiler=no
34002fi
34003
34004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34005{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34006$as_echo "$ac_header_compiler" >&6; }
34007
34008# Is the header present?
34009{ $as_echo "$as_me:$LINENO: checking bzlib.h presence" >&5
34010$as_echo_n "checking bzlib.h presence... " >&6; }
34011cat >conftest.$ac_ext <<_ACEOF
34012/* confdefs.h. */
34013_ACEOF
34014cat confdefs.h >>conftest.$ac_ext
34015cat >>conftest.$ac_ext <<_ACEOF
34016/* end confdefs.h. */
34017#include <bzlib.h>
34018_ACEOF
34019if { (ac_try="$ac_cpp conftest.$ac_ext"
34020case "(($ac_try" in
34021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34022 *) ac_try_echo=$ac_try;;
34023esac
34024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34025$as_echo "$ac_try_echo") >&5
34026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34027 ac_status=$?
34028 grep -v '^ *+' conftest.er1 >conftest.err
34029 rm -f conftest.er1
34030 cat conftest.err >&5
34031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34032 (exit $ac_status); } >/dev/null && {
34033 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34034 test ! -s conftest.err
34035 }; then
34036 ac_header_preproc=yes
34037else
34038 $as_echo "$as_me: failed program was:" >&5
34039sed 's/^/| /' conftest.$ac_ext >&5
34040
34041 ac_header_preproc=no
34042fi
34043
34044rm -f conftest.err conftest.$ac_ext
34045{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34046$as_echo "$ac_header_preproc" >&6; }
34047
34048# So? What about this header?
34049case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34050 yes:no: )
34051 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34052$as_echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34053 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5
34054$as_echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;}
34055 ac_header_preproc=yes
34056 ;;
34057 no:yes:* )
34058 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5
34059$as_echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;}
34060 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5
34061$as_echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;}
34062 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5
34063$as_echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;}
34064 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5
34065$as_echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34066 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
34067$as_echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;}
34068 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5
34069$as_echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;}
34070 ( cat <<\_ASBOX
34071## ----------------------------------------- ##
34072## Report this to http://www.imagemagick.org ##
34073## ----------------------------------------- ##
34074_ASBOX
34075 ) | sed "s/^/$as_me: WARNING: /" >&2
34076 ;;
34077esac
34078{ $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
34079$as_echo_n "checking for bzlib.h... " >&6; }
34080if test "${ac_cv_header_bzlib_h+set}" = set; then
34081 $as_echo_n "(cached) " >&6
34082else
34083 ac_cv_header_bzlib_h=$ac_header_preproc
34084fi
34085{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
34086$as_echo "$ac_cv_header_bzlib_h" >&6; }
34087
34088fi
34089if test "x$ac_cv_header_bzlib_h" = x""yes; then
34090 passed=`expr $passed + 1`
34091else
34092 failed=`expr $failed + 1`
34093fi
34094
34095
34096 { $as_echo "$as_me:$LINENO: checking for BZ2_bzDecompress in -lbz2" >&5
34097$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
34098if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then
34099 $as_echo_n "(cached) " >&6
34100else
34101 ac_check_lib_save_LIBS=$LIBS
34102LIBS="-lbz2 $LIBS"
34103cat >conftest.$ac_ext <<_ACEOF
34104/* confdefs.h. */
34105_ACEOF
34106cat confdefs.h >>conftest.$ac_ext
34107cat >>conftest.$ac_ext <<_ACEOF
34108/* end confdefs.h. */
34109
34110/* Override any GCC internal prototype to avoid an error.
34111 Use char because int might match the return type of a GCC
34112 builtin and then its argument prototype would still apply. */
34113#ifdef __cplusplus
34114extern "C"
34115#endif
34116char BZ2_bzDecompress ();
34117int
34118main ()
34119{
34120return BZ2_bzDecompress ();
34121 ;
34122 return 0;
34123}
34124_ACEOF
34125rm -f conftest.$ac_objext conftest$ac_exeext
34126if { (ac_try="$ac_link"
34127case "(($ac_try" in
34128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34129 *) ac_try_echo=$ac_try;;
34130esac
34131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34132$as_echo "$ac_try_echo") >&5
34133 (eval "$ac_link") 2>conftest.er1
34134 ac_status=$?
34135 grep -v '^ *+' conftest.er1 >conftest.err
34136 rm -f conftest.er1
34137 cat conftest.err >&5
34138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34139 (exit $ac_status); } && {
34140 test -z "$ac_c_werror_flag" ||
34141 test ! -s conftest.err
34142 } && test -s conftest$ac_exeext && {
34143 test "$cross_compiling" = yes ||
34144 $as_test_x conftest$ac_exeext
34145 }; then
34146 ac_cv_lib_bz2_BZ2_bzDecompress=yes
34147else
34148 $as_echo "$as_me: failed program was:" >&5
34149sed 's/^/| /' conftest.$ac_ext >&5
34150
34151 ac_cv_lib_bz2_BZ2_bzDecompress=no
34152fi
34153
34154rm -rf conftest.dSYM
34155rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34156 conftest$ac_exeext conftest.$ac_ext
34157LIBS=$ac_check_lib_save_LIBS
34158fi
34159{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
34160$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
34161if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then
34162 found_libbz=`expr $found_libbz + 1`
34163fi
34164
34165 if test "$native_win32_build" = 'yes'; then
34166 { $as_echo "$as_me:$LINENO: checking for _imp__BZ2_decompress in -lbz2" >&5
34167$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
34168if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then
34169 $as_echo_n "(cached) " >&6
34170else
34171 ac_check_lib_save_LIBS=$LIBS
34172LIBS="-lbz2 $LIBS"
34173cat >conftest.$ac_ext <<_ACEOF
34174/* confdefs.h. */
34175_ACEOF
34176cat confdefs.h >>conftest.$ac_ext
34177cat >>conftest.$ac_ext <<_ACEOF
34178/* end confdefs.h. */
34179
34180/* Override any GCC internal prototype to avoid an error.
34181 Use char because int might match the return type of a GCC
34182 builtin and then its argument prototype would still apply. */
34183#ifdef __cplusplus
34184extern "C"
34185#endif
34186char _imp__BZ2_decompress ();
34187int
34188main ()
34189{
34190return _imp__BZ2_decompress ();
34191 ;
34192 return 0;
34193}
34194_ACEOF
34195rm -f conftest.$ac_objext conftest$ac_exeext
34196if { (ac_try="$ac_link"
34197case "(($ac_try" in
34198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34199 *) ac_try_echo=$ac_try;;
34200esac
34201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34202$as_echo "$ac_try_echo") >&5
34203 (eval "$ac_link") 2>conftest.er1
34204 ac_status=$?
34205 grep -v '^ *+' conftest.er1 >conftest.err
34206 rm -f conftest.er1
34207 cat conftest.err >&5
34208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209 (exit $ac_status); } && {
34210 test -z "$ac_c_werror_flag" ||
34211 test ! -s conftest.err
34212 } && test -s conftest$ac_exeext && {
34213 test "$cross_compiling" = yes ||
34214 $as_test_x conftest$ac_exeext
34215 }; then
34216 ac_cv_lib_bz2__imp__BZ2_decompress=yes
34217else
34218 $as_echo "$as_me: failed program was:" >&5
34219sed 's/^/| /' conftest.$ac_ext >&5
34220
34221 ac_cv_lib_bz2__imp__BZ2_decompress=no
34222fi
34223
34224rm -rf conftest.dSYM
34225rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34226 conftest$ac_exeext conftest.$ac_ext
34227LIBS=$ac_check_lib_save_LIBS
34228fi
34229{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
34230$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
34231if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then
34232 found_libbz=`expr $found_libbz + 1`
34233fi
34234
34235 fi
34236 if test $found_libbz -gt 0; then
34237 passed=`expr $passed + 1`
34238 else
34239 failed=`expr $failed + 1`
34240 fi
34241 { $as_echo "$as_me:$LINENO: checking if BZLIB package is complete" >&5
34242$as_echo_n "checking if BZLIB package is complete... " >&6; }
34243 if test $passed -gt 0; then
34244 if test $failed -gt 0; then
34245 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
34246$as_echo "no -- some components failed test" >&6; }
34247 have_bzlib='no (failed tests)'
34248 else
34249 BZLIB_LIBS='-lbz2'
34250 LIBS="$BZLIB_LIBS $LIBS"
34251
34252cat >>confdefs.h <<\_ACEOF
34253#define BZLIB_DELEGATE 1
34254_ACEOF
34255
34256 { $as_echo "$as_me:$LINENO: result: yes" >&5
34257$as_echo "yes" >&6; }
34258 have_bzlib='yes'
34259 fi
34260 else
34261 { $as_echo "$as_me:$LINENO: result: no" >&5
34262$as_echo "no" >&6; }
34263 fi
34264fi
34265 if test "$have_bzlib" = 'yes'; then
34266 BZLIB_DELEGATE_TRUE=
34267 BZLIB_DELEGATE_FALSE='#'
34268else
34269 BZLIB_DELEGATE_TRUE='#'
34270 BZLIB_DELEGATE_FALSE=
34271fi
34272
34273
34274
34275#
34276# Find the X11 include and library directories.
34277#
34278IPC_LIBS=''
34279X11_LIBS=''
34280XEXT_LIBS=''
34281XT_LIBS=''
cristyc7083c12009-10-14 03:16:55 +000034282{ $as_echo "$as_me:$LINENO: checking for X" >&5
34283$as_echo_n "checking for X... " >&6; }
34284
34285
34286# Check whether --with-x was given.
34287if test "${with_x+set}" = set; then
34288 withval=$with_x;
34289fi
34290
34291# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
34292if test "x$with_x" = xno; then
34293 # The user explicitly disabled X.
34294 have_x=disabled
34295else
34296 case $x_includes,$x_libraries in #(
34297 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
34298$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
34299 { (exit 1); exit 1; }; };; #(
34300 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
34301 $as_echo_n "(cached) " >&6
34302else
34303 # One or both of the vars are not set, and there is no cached value.
34304ac_x_includes=no ac_x_libraries=no
34305rm -f -r conftest.dir
34306if mkdir conftest.dir; then
34307 cd conftest.dir
34308 cat >Imakefile <<'_ACEOF'
34309incroot:
34310 @echo incroot='${INCROOT}'
34311usrlibdir:
34312 @echo usrlibdir='${USRLIBDIR}'
34313libdir:
34314 @echo libdir='${LIBDIR}'
34315_ACEOF
34316 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
34317 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34318 for ac_var in incroot usrlibdir libdir; do
34319 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
34320 done
34321 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
34322 for ac_extension in a so sl dylib la dll; do
34323 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
34324 test -f "$ac_im_libdir/libX11.$ac_extension"; then
34325 ac_im_usrlibdir=$ac_im_libdir; break
34326 fi
34327 done
34328 # Screen out bogus values from the imake configuration. They are
34329 # bogus both because they are the default anyway, and because
34330 # using them would break gcc on systems where it needs fixed includes.
34331 case $ac_im_incroot in
34332 /usr/include) ac_x_includes= ;;
34333 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
34334 esac
34335 case $ac_im_usrlibdir in
34336 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
34337 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
34338 esac
34339 fi
34340 cd ..
34341 rm -f -r conftest.dir
34342fi
34343
34344# Standard set of common directories for X headers.
34345# Check X11 before X11Rn because it is often a symlink to the current release.
34346ac_x_header_dirs='
34347/usr/X11/include
34348/usr/X11R6/include
34349/usr/X11R5/include
34350/usr/X11R4/include
34351
34352/usr/include/X11
34353/usr/include/X11R6
34354/usr/include/X11R5
34355/usr/include/X11R4
34356
34357/usr/local/X11/include
34358/usr/local/X11R6/include
34359/usr/local/X11R5/include
34360/usr/local/X11R4/include
34361
34362/usr/local/include/X11
34363/usr/local/include/X11R6
34364/usr/local/include/X11R5
34365/usr/local/include/X11R4
34366
34367/usr/X386/include
34368/usr/x386/include
34369/usr/XFree86/include/X11
34370
34371/usr/include
34372/usr/local/include
34373/usr/unsupported/include
34374/usr/athena/include
34375/usr/local/x11r5/include
34376/usr/lpp/Xamples/include
34377
34378/usr/openwin/include
34379/usr/openwin/share/include'
34380
34381if test "$ac_x_includes" = no; then
34382 # Guess where to find include files, by looking for Xlib.h.
34383 # First, try using that file with no special directory specified.
34384 cat >conftest.$ac_ext <<_ACEOF
34385/* confdefs.h. */
34386_ACEOF
34387cat confdefs.h >>conftest.$ac_ext
34388cat >>conftest.$ac_ext <<_ACEOF
34389/* end confdefs.h. */
34390#include <X11/Xlib.h>
34391_ACEOF
34392if { (ac_try="$ac_cpp conftest.$ac_ext"
34393case "(($ac_try" in
34394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34395 *) ac_try_echo=$ac_try;;
34396esac
34397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34398$as_echo "$ac_try_echo") >&5
34399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34400 ac_status=$?
34401 grep -v '^ *+' conftest.er1 >conftest.err
34402 rm -f conftest.er1
34403 cat conftest.err >&5
34404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34405 (exit $ac_status); } >/dev/null && {
34406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34407 test ! -s conftest.err
34408 }; then
34409 # We can compile using X headers with no special include directory.
34410ac_x_includes=
34411else
34412 $as_echo "$as_me: failed program was:" >&5
34413sed 's/^/| /' conftest.$ac_ext >&5
34414
34415 for ac_dir in $ac_x_header_dirs; do
34416 if test -r "$ac_dir/X11/Xlib.h"; then
34417 ac_x_includes=$ac_dir
34418 break
34419 fi
34420done
34421fi
34422
34423rm -f conftest.err conftest.$ac_ext
34424fi # $ac_x_includes = no
34425
34426if test "$ac_x_libraries" = no; then
34427 # Check for the libraries.
34428 # See if we find them without any special options.
34429 # Don't add to $LIBS permanently.
34430 ac_save_LIBS=$LIBS
34431 LIBS="-lX11 $LIBS"
34432 cat >conftest.$ac_ext <<_ACEOF
34433/* confdefs.h. */
34434_ACEOF
34435cat confdefs.h >>conftest.$ac_ext
34436cat >>conftest.$ac_ext <<_ACEOF
34437/* end confdefs.h. */
34438#include <X11/Xlib.h>
34439int
34440main ()
34441{
34442XrmInitialize ()
34443 ;
34444 return 0;
34445}
34446_ACEOF
34447rm -f conftest.$ac_objext conftest$ac_exeext
34448if { (ac_try="$ac_link"
34449case "(($ac_try" in
34450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34451 *) ac_try_echo=$ac_try;;
34452esac
34453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34454$as_echo "$ac_try_echo") >&5
34455 (eval "$ac_link") 2>conftest.er1
34456 ac_status=$?
34457 grep -v '^ *+' conftest.er1 >conftest.err
34458 rm -f conftest.er1
34459 cat conftest.err >&5
34460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34461 (exit $ac_status); } && {
34462 test -z "$ac_c_werror_flag" ||
34463 test ! -s conftest.err
34464 } && test -s conftest$ac_exeext && {
34465 test "$cross_compiling" = yes ||
34466 $as_test_x conftest$ac_exeext
34467 }; then
34468 LIBS=$ac_save_LIBS
34469# We can link X programs with no special library path.
34470ac_x_libraries=
34471else
34472 $as_echo "$as_me: failed program was:" >&5
34473sed 's/^/| /' conftest.$ac_ext >&5
34474
34475 LIBS=$ac_save_LIBS
34476for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
34477do
34478 # Don't even attempt the hair of trying to link an X program!
34479 for ac_extension in a so sl dylib la dll; do
34480 if test -r "$ac_dir/libX11.$ac_extension"; then
34481 ac_x_libraries=$ac_dir
34482 break 2
34483 fi
34484 done
34485done
34486fi
34487
34488rm -rf conftest.dSYM
34489rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34490 conftest$ac_exeext conftest.$ac_ext
34491fi # $ac_x_libraries = no
34492
34493case $ac_x_includes,$ac_x_libraries in #(
34494 no,* | *,no | *\'*)
34495 # Didn't find X, or a directory has "'" in its name.
34496 ac_cv_have_x="have_x=no";; #(
34497 *)
34498 # Record where we found X for the cache.
34499 ac_cv_have_x="have_x=yes\
34500 ac_x_includes='$ac_x_includes'\
34501 ac_x_libraries='$ac_x_libraries'"
34502esac
34503fi
34504;; #(
34505 *) have_x=yes;;
34506 esac
34507 eval "$ac_cv_have_x"
34508fi # $with_x != no
34509
34510if test "$have_x" != yes; then
34511 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
34512$as_echo "$have_x" >&6; }
34513 no_x=yes
34514else
34515 # If each of the values was on the command line, it overrides each guess.
34516 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
34517 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
34518 # Update the cache value to reflect the command line values.
34519 ac_cv_have_x="have_x=yes\
34520 ac_x_includes='$x_includes'\
34521 ac_x_libraries='$x_libraries'"
34522 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
34523$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
34524fi
34525
cristy3ed852e2009-09-05 21:47:34 +000034526if test "$no_x" = yes; then
34527 # Not all programs may use this symbol, but it does not hurt to define it.
34528
34529cat >>confdefs.h <<\_ACEOF
34530#define X_DISPLAY_MISSING 1
34531_ACEOF
34532
34533 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
34534else
34535 if test -n "$x_includes"; then
34536 X_CFLAGS="$X_CFLAGS -I$x_includes"
34537 fi
34538
34539 # It would also be nice to do this for all -L options, not just this one.
34540 if test -n "$x_libraries"; then
34541 X_LIBS="$X_LIBS -L$x_libraries"
34542 # For Solaris; some versions of Sun CC require a space after -R and
34543 # others require no space. Words are not sufficient . . . .
34544 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
34545$as_echo_n "checking whether -R must be followed by a space... " >&6; }
34546 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
34547 ac_xsave_c_werror_flag=$ac_c_werror_flag
34548 ac_c_werror_flag=yes
34549 cat >conftest.$ac_ext <<_ACEOF
34550/* confdefs.h. */
34551_ACEOF
34552cat confdefs.h >>conftest.$ac_ext
34553cat >>conftest.$ac_ext <<_ACEOF
34554/* end confdefs.h. */
34555
34556int
34557main ()
34558{
34559
34560 ;
34561 return 0;
34562}
34563_ACEOF
34564rm -f conftest.$ac_objext conftest$ac_exeext
34565if { (ac_try="$ac_link"
34566case "(($ac_try" in
34567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34568 *) ac_try_echo=$ac_try;;
34569esac
34570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34571$as_echo "$ac_try_echo") >&5
34572 (eval "$ac_link") 2>conftest.er1
34573 ac_status=$?
34574 grep -v '^ *+' conftest.er1 >conftest.err
34575 rm -f conftest.er1
34576 cat conftest.err >&5
34577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34578 (exit $ac_status); } && {
34579 test -z "$ac_c_werror_flag" ||
34580 test ! -s conftest.err
34581 } && test -s conftest$ac_exeext && {
34582 test "$cross_compiling" = yes ||
34583 $as_test_x conftest$ac_exeext
34584 }; then
34585 { $as_echo "$as_me:$LINENO: result: no" >&5
34586$as_echo "no" >&6; }
34587 X_LIBS="$X_LIBS -R$x_libraries"
34588else
34589 $as_echo "$as_me: failed program was:" >&5
34590sed 's/^/| /' conftest.$ac_ext >&5
34591
34592 LIBS="$ac_xsave_LIBS -R $x_libraries"
34593 cat >conftest.$ac_ext <<_ACEOF
34594/* confdefs.h. */
34595_ACEOF
34596cat confdefs.h >>conftest.$ac_ext
34597cat >>conftest.$ac_ext <<_ACEOF
34598/* end confdefs.h. */
34599
34600int
34601main ()
34602{
34603
34604 ;
34605 return 0;
34606}
34607_ACEOF
34608rm -f conftest.$ac_objext conftest$ac_exeext
34609if { (ac_try="$ac_link"
34610case "(($ac_try" in
34611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34612 *) ac_try_echo=$ac_try;;
34613esac
34614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34615$as_echo "$ac_try_echo") >&5
34616 (eval "$ac_link") 2>conftest.er1
34617 ac_status=$?
34618 grep -v '^ *+' conftest.er1 >conftest.err
34619 rm -f conftest.er1
34620 cat conftest.err >&5
34621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34622 (exit $ac_status); } && {
34623 test -z "$ac_c_werror_flag" ||
34624 test ! -s conftest.err
34625 } && test -s conftest$ac_exeext && {
34626 test "$cross_compiling" = yes ||
34627 $as_test_x conftest$ac_exeext
34628 }; then
34629 { $as_echo "$as_me:$LINENO: result: yes" >&5
34630$as_echo "yes" >&6; }
34631 X_LIBS="$X_LIBS -R $x_libraries"
34632else
34633 $as_echo "$as_me: failed program was:" >&5
34634sed 's/^/| /' conftest.$ac_ext >&5
34635
34636 { $as_echo "$as_me:$LINENO: result: neither works" >&5
34637$as_echo "neither works" >&6; }
34638fi
34639
34640rm -rf conftest.dSYM
34641rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34642 conftest$ac_exeext conftest.$ac_ext
34643fi
34644
34645rm -rf conftest.dSYM
34646rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34647 conftest$ac_exeext conftest.$ac_ext
34648 ac_c_werror_flag=$ac_xsave_c_werror_flag
34649 LIBS=$ac_xsave_LIBS
34650 fi
34651
34652 # Check for system-dependent libraries X programs must link with.
34653 # Do this before checking for the system-independent R6 libraries
34654 # (-lICE), since we may need -lsocket or whatever for X linking.
34655
34656 if test "$ISC" = yes; then
34657 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
34658 else
34659 # Martyn Johnson says this is needed for Ultrix, if the X
34660 # libraries were built with DECnet support. And Karl Berry says
34661 # the Alpha needs dnet_stub (dnet does not exist).
34662 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
34663 cat >conftest.$ac_ext <<_ACEOF
34664/* confdefs.h. */
34665_ACEOF
34666cat confdefs.h >>conftest.$ac_ext
34667cat >>conftest.$ac_ext <<_ACEOF
34668/* end confdefs.h. */
34669
34670/* Override any GCC internal prototype to avoid an error.
34671 Use char because int might match the return type of a GCC
34672 builtin and then its argument prototype would still apply. */
34673#ifdef __cplusplus
34674extern "C"
34675#endif
34676char XOpenDisplay ();
34677int
34678main ()
34679{
34680return XOpenDisplay ();
34681 ;
34682 return 0;
34683}
34684_ACEOF
34685rm -f conftest.$ac_objext conftest$ac_exeext
34686if { (ac_try="$ac_link"
34687case "(($ac_try" in
34688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34689 *) ac_try_echo=$ac_try;;
34690esac
34691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34692$as_echo "$ac_try_echo") >&5
34693 (eval "$ac_link") 2>conftest.er1
34694 ac_status=$?
34695 grep -v '^ *+' conftest.er1 >conftest.err
34696 rm -f conftest.er1
34697 cat conftest.err >&5
34698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34699 (exit $ac_status); } && {
34700 test -z "$ac_c_werror_flag" ||
34701 test ! -s conftest.err
34702 } && test -s conftest$ac_exeext && {
34703 test "$cross_compiling" = yes ||
34704 $as_test_x conftest$ac_exeext
34705 }; then
34706 :
34707else
34708 $as_echo "$as_me: failed program was:" >&5
34709sed 's/^/| /' conftest.$ac_ext >&5
34710
34711 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
34712$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
34713if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
34714 $as_echo_n "(cached) " >&6
34715else
34716 ac_check_lib_save_LIBS=$LIBS
34717LIBS="-ldnet $LIBS"
34718cat >conftest.$ac_ext <<_ACEOF
34719/* confdefs.h. */
34720_ACEOF
34721cat confdefs.h >>conftest.$ac_ext
34722cat >>conftest.$ac_ext <<_ACEOF
34723/* end confdefs.h. */
34724
34725/* Override any GCC internal prototype to avoid an error.
34726 Use char because int might match the return type of a GCC
34727 builtin and then its argument prototype would still apply. */
34728#ifdef __cplusplus
34729extern "C"
34730#endif
34731char dnet_ntoa ();
34732int
34733main ()
34734{
34735return dnet_ntoa ();
34736 ;
34737 return 0;
34738}
34739_ACEOF
34740rm -f conftest.$ac_objext conftest$ac_exeext
34741if { (ac_try="$ac_link"
34742case "(($ac_try" in
34743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34744 *) ac_try_echo=$ac_try;;
34745esac
34746eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34747$as_echo "$ac_try_echo") >&5
34748 (eval "$ac_link") 2>conftest.er1
34749 ac_status=$?
34750 grep -v '^ *+' conftest.er1 >conftest.err
34751 rm -f conftest.er1
34752 cat conftest.err >&5
34753 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34754 (exit $ac_status); } && {
34755 test -z "$ac_c_werror_flag" ||
34756 test ! -s conftest.err
34757 } && test -s conftest$ac_exeext && {
34758 test "$cross_compiling" = yes ||
34759 $as_test_x conftest$ac_exeext
34760 }; then
34761 ac_cv_lib_dnet_dnet_ntoa=yes
34762else
34763 $as_echo "$as_me: failed program was:" >&5
34764sed 's/^/| /' conftest.$ac_ext >&5
34765
34766 ac_cv_lib_dnet_dnet_ntoa=no
34767fi
34768
34769rm -rf conftest.dSYM
34770rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34771 conftest$ac_exeext conftest.$ac_ext
34772LIBS=$ac_check_lib_save_LIBS
34773fi
34774{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
34775$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
34776if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
34777 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
34778fi
34779
34780 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
34781 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
34782$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
34783if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
34784 $as_echo_n "(cached) " >&6
34785else
34786 ac_check_lib_save_LIBS=$LIBS
34787LIBS="-ldnet_stub $LIBS"
34788cat >conftest.$ac_ext <<_ACEOF
34789/* confdefs.h. */
34790_ACEOF
34791cat confdefs.h >>conftest.$ac_ext
34792cat >>conftest.$ac_ext <<_ACEOF
34793/* end confdefs.h. */
34794
34795/* Override any GCC internal prototype to avoid an error.
34796 Use char because int might match the return type of a GCC
34797 builtin and then its argument prototype would still apply. */
34798#ifdef __cplusplus
34799extern "C"
34800#endif
34801char dnet_ntoa ();
34802int
34803main ()
34804{
34805return dnet_ntoa ();
34806 ;
34807 return 0;
34808}
34809_ACEOF
34810rm -f conftest.$ac_objext conftest$ac_exeext
34811if { (ac_try="$ac_link"
34812case "(($ac_try" in
34813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34814 *) ac_try_echo=$ac_try;;
34815esac
34816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34817$as_echo "$ac_try_echo") >&5
34818 (eval "$ac_link") 2>conftest.er1
34819 ac_status=$?
34820 grep -v '^ *+' conftest.er1 >conftest.err
34821 rm -f conftest.er1
34822 cat conftest.err >&5
34823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34824 (exit $ac_status); } && {
34825 test -z "$ac_c_werror_flag" ||
34826 test ! -s conftest.err
34827 } && test -s conftest$ac_exeext && {
34828 test "$cross_compiling" = yes ||
34829 $as_test_x conftest$ac_exeext
34830 }; then
34831 ac_cv_lib_dnet_stub_dnet_ntoa=yes
34832else
34833 $as_echo "$as_me: failed program was:" >&5
34834sed 's/^/| /' conftest.$ac_ext >&5
34835
34836 ac_cv_lib_dnet_stub_dnet_ntoa=no
34837fi
34838
34839rm -rf conftest.dSYM
34840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34841 conftest$ac_exeext conftest.$ac_ext
34842LIBS=$ac_check_lib_save_LIBS
34843fi
34844{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
34845$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
34846if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
34847 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
34848fi
34849
34850 fi
34851fi
34852
34853rm -rf conftest.dSYM
34854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34855 conftest$ac_exeext conftest.$ac_ext
34856 LIBS="$ac_xsave_LIBS"
34857
34858 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
34859 # to get the SysV transport functions.
34860 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
34861 # needs -lnsl.
34862 # The nsl library prevents programs from opening the X display
34863 # on Irix 5.2, according to T.E. Dickey.
34864 # The functions gethostbyname, getservbyname, and inet_addr are
34865 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
34866 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
34867$as_echo_n "checking for gethostbyname... " >&6; }
34868if test "${ac_cv_func_gethostbyname+set}" = set; then
34869 $as_echo_n "(cached) " >&6
34870else
34871 cat >conftest.$ac_ext <<_ACEOF
34872/* confdefs.h. */
34873_ACEOF
34874cat confdefs.h >>conftest.$ac_ext
34875cat >>conftest.$ac_ext <<_ACEOF
34876/* end confdefs.h. */
34877/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
34878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34879#define gethostbyname innocuous_gethostbyname
34880
34881/* System header to define __stub macros and hopefully few prototypes,
34882 which can conflict with char gethostbyname (); below.
34883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34884 <limits.h> exists even on freestanding compilers. */
34885
34886#ifdef __STDC__
34887# include <limits.h>
34888#else
34889# include <assert.h>
34890#endif
34891
34892#undef gethostbyname
34893
34894/* Override any GCC internal prototype to avoid an error.
34895 Use char because int might match the return type of a GCC
34896 builtin and then its argument prototype would still apply. */
34897#ifdef __cplusplus
34898extern "C"
34899#endif
34900char gethostbyname ();
34901/* The GNU C library defines this for functions which it implements
34902 to always fail with ENOSYS. Some functions are actually named
34903 something starting with __ and the normal name is an alias. */
34904#if defined __stub_gethostbyname || defined __stub___gethostbyname
34905choke me
34906#endif
34907
34908int
34909main ()
34910{
34911return gethostbyname ();
34912 ;
34913 return 0;
34914}
34915_ACEOF
34916rm -f conftest.$ac_objext conftest$ac_exeext
34917if { (ac_try="$ac_link"
34918case "(($ac_try" in
34919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34920 *) ac_try_echo=$ac_try;;
34921esac
34922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34923$as_echo "$ac_try_echo") >&5
34924 (eval "$ac_link") 2>conftest.er1
34925 ac_status=$?
34926 grep -v '^ *+' conftest.er1 >conftest.err
34927 rm -f conftest.er1
34928 cat conftest.err >&5
34929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34930 (exit $ac_status); } && {
34931 test -z "$ac_c_werror_flag" ||
34932 test ! -s conftest.err
34933 } && test -s conftest$ac_exeext && {
34934 test "$cross_compiling" = yes ||
34935 $as_test_x conftest$ac_exeext
34936 }; then
34937 ac_cv_func_gethostbyname=yes
34938else
34939 $as_echo "$as_me: failed program was:" >&5
34940sed 's/^/| /' conftest.$ac_ext >&5
34941
34942 ac_cv_func_gethostbyname=no
34943fi
34944
34945rm -rf conftest.dSYM
34946rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34947 conftest$ac_exeext conftest.$ac_ext
34948fi
34949{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
34950$as_echo "$ac_cv_func_gethostbyname" >&6; }
34951
34952 if test $ac_cv_func_gethostbyname = no; then
34953 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
34954$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
34955if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
34956 $as_echo_n "(cached) " >&6
34957else
34958 ac_check_lib_save_LIBS=$LIBS
34959LIBS="-lnsl $LIBS"
34960cat >conftest.$ac_ext <<_ACEOF
34961/* confdefs.h. */
34962_ACEOF
34963cat confdefs.h >>conftest.$ac_ext
34964cat >>conftest.$ac_ext <<_ACEOF
34965/* end confdefs.h. */
34966
34967/* Override any GCC internal prototype to avoid an error.
34968 Use char because int might match the return type of a GCC
34969 builtin and then its argument prototype would still apply. */
34970#ifdef __cplusplus
34971extern "C"
34972#endif
34973char gethostbyname ();
34974int
34975main ()
34976{
34977return gethostbyname ();
34978 ;
34979 return 0;
34980}
34981_ACEOF
34982rm -f conftest.$ac_objext conftest$ac_exeext
34983if { (ac_try="$ac_link"
34984case "(($ac_try" in
34985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34986 *) ac_try_echo=$ac_try;;
34987esac
34988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34989$as_echo "$ac_try_echo") >&5
34990 (eval "$ac_link") 2>conftest.er1
34991 ac_status=$?
34992 grep -v '^ *+' conftest.er1 >conftest.err
34993 rm -f conftest.er1
34994 cat conftest.err >&5
34995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34996 (exit $ac_status); } && {
34997 test -z "$ac_c_werror_flag" ||
34998 test ! -s conftest.err
34999 } && test -s conftest$ac_exeext && {
35000 test "$cross_compiling" = yes ||
35001 $as_test_x conftest$ac_exeext
35002 }; then
35003 ac_cv_lib_nsl_gethostbyname=yes
35004else
35005 $as_echo "$as_me: failed program was:" >&5
35006sed 's/^/| /' conftest.$ac_ext >&5
35007
35008 ac_cv_lib_nsl_gethostbyname=no
35009fi
35010
35011rm -rf conftest.dSYM
35012rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35013 conftest$ac_exeext conftest.$ac_ext
35014LIBS=$ac_check_lib_save_LIBS
35015fi
35016{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
35017$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
35018if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
35019 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
35020fi
35021
35022 if test $ac_cv_lib_nsl_gethostbyname = no; then
35023 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
35024$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
35025if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
35026 $as_echo_n "(cached) " >&6
35027else
35028 ac_check_lib_save_LIBS=$LIBS
35029LIBS="-lbsd $LIBS"
35030cat >conftest.$ac_ext <<_ACEOF
35031/* confdefs.h. */
35032_ACEOF
35033cat confdefs.h >>conftest.$ac_ext
35034cat >>conftest.$ac_ext <<_ACEOF
35035/* end confdefs.h. */
35036
35037/* Override any GCC internal prototype to avoid an error.
35038 Use char because int might match the return type of a GCC
35039 builtin and then its argument prototype would still apply. */
35040#ifdef __cplusplus
35041extern "C"
35042#endif
35043char gethostbyname ();
35044int
35045main ()
35046{
35047return gethostbyname ();
35048 ;
35049 return 0;
35050}
35051_ACEOF
35052rm -f conftest.$ac_objext conftest$ac_exeext
35053if { (ac_try="$ac_link"
35054case "(($ac_try" in
35055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35056 *) ac_try_echo=$ac_try;;
35057esac
35058eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35059$as_echo "$ac_try_echo") >&5
35060 (eval "$ac_link") 2>conftest.er1
35061 ac_status=$?
35062 grep -v '^ *+' conftest.er1 >conftest.err
35063 rm -f conftest.er1
35064 cat conftest.err >&5
35065 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35066 (exit $ac_status); } && {
35067 test -z "$ac_c_werror_flag" ||
35068 test ! -s conftest.err
35069 } && test -s conftest$ac_exeext && {
35070 test "$cross_compiling" = yes ||
35071 $as_test_x conftest$ac_exeext
35072 }; then
35073 ac_cv_lib_bsd_gethostbyname=yes
35074else
35075 $as_echo "$as_me: failed program was:" >&5
35076sed 's/^/| /' conftest.$ac_ext >&5
35077
35078 ac_cv_lib_bsd_gethostbyname=no
35079fi
35080
35081rm -rf conftest.dSYM
35082rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35083 conftest$ac_exeext conftest.$ac_ext
35084LIBS=$ac_check_lib_save_LIBS
35085fi
35086{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
35087$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
35088if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
35089 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
35090fi
35091
35092 fi
35093 fi
35094
35095 # lieder@skyler.mavd.honeywell.com says without -lsocket,
35096 # socket/setsockopt and other routines are undefined under SCO ODT
35097 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
35098 # on later versions), says Simon Leinen: it contains gethostby*
35099 # variants that don't use the name server (or something). -lsocket
35100 # must be given before -lnsl if both are needed. We assume that
35101 # if connect needs -lnsl, so does gethostbyname.
35102 { $as_echo "$as_me:$LINENO: checking for connect" >&5
35103$as_echo_n "checking for connect... " >&6; }
35104if test "${ac_cv_func_connect+set}" = set; then
35105 $as_echo_n "(cached) " >&6
35106else
35107 cat >conftest.$ac_ext <<_ACEOF
35108/* confdefs.h. */
35109_ACEOF
35110cat confdefs.h >>conftest.$ac_ext
35111cat >>conftest.$ac_ext <<_ACEOF
35112/* end confdefs.h. */
35113/* Define connect to an innocuous variant, in case <limits.h> declares connect.
35114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35115#define connect innocuous_connect
35116
35117/* System header to define __stub macros and hopefully few prototypes,
35118 which can conflict with char connect (); below.
35119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35120 <limits.h> exists even on freestanding compilers. */
35121
35122#ifdef __STDC__
35123# include <limits.h>
35124#else
35125# include <assert.h>
35126#endif
35127
35128#undef connect
35129
35130/* Override any GCC internal prototype to avoid an error.
35131 Use char because int might match the return type of a GCC
35132 builtin and then its argument prototype would still apply. */
35133#ifdef __cplusplus
35134extern "C"
35135#endif
35136char connect ();
35137/* The GNU C library defines this for functions which it implements
35138 to always fail with ENOSYS. Some functions are actually named
35139 something starting with __ and the normal name is an alias. */
35140#if defined __stub_connect || defined __stub___connect
35141choke me
35142#endif
35143
35144int
35145main ()
35146{
35147return connect ();
35148 ;
35149 return 0;
35150}
35151_ACEOF
35152rm -f conftest.$ac_objext conftest$ac_exeext
35153if { (ac_try="$ac_link"
35154case "(($ac_try" in
35155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35156 *) ac_try_echo=$ac_try;;
35157esac
35158eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35159$as_echo "$ac_try_echo") >&5
35160 (eval "$ac_link") 2>conftest.er1
35161 ac_status=$?
35162 grep -v '^ *+' conftest.er1 >conftest.err
35163 rm -f conftest.er1
35164 cat conftest.err >&5
35165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35166 (exit $ac_status); } && {
35167 test -z "$ac_c_werror_flag" ||
35168 test ! -s conftest.err
35169 } && test -s conftest$ac_exeext && {
35170 test "$cross_compiling" = yes ||
35171 $as_test_x conftest$ac_exeext
35172 }; then
35173 ac_cv_func_connect=yes
35174else
35175 $as_echo "$as_me: failed program was:" >&5
35176sed 's/^/| /' conftest.$ac_ext >&5
35177
35178 ac_cv_func_connect=no
35179fi
35180
35181rm -rf conftest.dSYM
35182rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35183 conftest$ac_exeext conftest.$ac_ext
35184fi
35185{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
35186$as_echo "$ac_cv_func_connect" >&6; }
35187
35188 if test $ac_cv_func_connect = no; then
35189 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
35190$as_echo_n "checking for connect in -lsocket... " >&6; }
35191if test "${ac_cv_lib_socket_connect+set}" = set; then
35192 $as_echo_n "(cached) " >&6
35193else
35194 ac_check_lib_save_LIBS=$LIBS
35195LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
35196cat >conftest.$ac_ext <<_ACEOF
35197/* confdefs.h. */
35198_ACEOF
35199cat confdefs.h >>conftest.$ac_ext
35200cat >>conftest.$ac_ext <<_ACEOF
35201/* end confdefs.h. */
35202
35203/* Override any GCC internal prototype to avoid an error.
35204 Use char because int might match the return type of a GCC
35205 builtin and then its argument prototype would still apply. */
35206#ifdef __cplusplus
35207extern "C"
35208#endif
35209char connect ();
35210int
35211main ()
35212{
35213return connect ();
35214 ;
35215 return 0;
35216}
35217_ACEOF
35218rm -f conftest.$ac_objext conftest$ac_exeext
35219if { (ac_try="$ac_link"
35220case "(($ac_try" in
35221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35222 *) ac_try_echo=$ac_try;;
35223esac
35224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35225$as_echo "$ac_try_echo") >&5
35226 (eval "$ac_link") 2>conftest.er1
35227 ac_status=$?
35228 grep -v '^ *+' conftest.er1 >conftest.err
35229 rm -f conftest.er1
35230 cat conftest.err >&5
35231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35232 (exit $ac_status); } && {
35233 test -z "$ac_c_werror_flag" ||
35234 test ! -s conftest.err
35235 } && test -s conftest$ac_exeext && {
35236 test "$cross_compiling" = yes ||
35237 $as_test_x conftest$ac_exeext
35238 }; then
35239 ac_cv_lib_socket_connect=yes
35240else
35241 $as_echo "$as_me: failed program was:" >&5
35242sed 's/^/| /' conftest.$ac_ext >&5
35243
35244 ac_cv_lib_socket_connect=no
35245fi
35246
35247rm -rf conftest.dSYM
35248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35249 conftest$ac_exeext conftest.$ac_ext
35250LIBS=$ac_check_lib_save_LIBS
35251fi
35252{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
35253$as_echo "$ac_cv_lib_socket_connect" >&6; }
35254if test "x$ac_cv_lib_socket_connect" = x""yes; then
35255 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
35256fi
35257
35258 fi
35259
35260 # Guillermo Gomez says -lposix is necessary on A/UX.
35261 { $as_echo "$as_me:$LINENO: checking for remove" >&5
35262$as_echo_n "checking for remove... " >&6; }
35263if test "${ac_cv_func_remove+set}" = set; then
35264 $as_echo_n "(cached) " >&6
35265else
35266 cat >conftest.$ac_ext <<_ACEOF
35267/* confdefs.h. */
35268_ACEOF
35269cat confdefs.h >>conftest.$ac_ext
35270cat >>conftest.$ac_ext <<_ACEOF
35271/* end confdefs.h. */
35272/* Define remove to an innocuous variant, in case <limits.h> declares remove.
35273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35274#define remove innocuous_remove
35275
35276/* System header to define __stub macros and hopefully few prototypes,
35277 which can conflict with char remove (); below.
35278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35279 <limits.h> exists even on freestanding compilers. */
35280
35281#ifdef __STDC__
35282# include <limits.h>
35283#else
35284# include <assert.h>
35285#endif
35286
35287#undef remove
35288
35289/* Override any GCC internal prototype to avoid an error.
35290 Use char because int might match the return type of a GCC
35291 builtin and then its argument prototype would still apply. */
35292#ifdef __cplusplus
35293extern "C"
35294#endif
35295char remove ();
35296/* The GNU C library defines this for functions which it implements
35297 to always fail with ENOSYS. Some functions are actually named
35298 something starting with __ and the normal name is an alias. */
35299#if defined __stub_remove || defined __stub___remove
35300choke me
35301#endif
35302
35303int
35304main ()
35305{
35306return remove ();
35307 ;
35308 return 0;
35309}
35310_ACEOF
35311rm -f conftest.$ac_objext conftest$ac_exeext
35312if { (ac_try="$ac_link"
35313case "(($ac_try" in
35314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35315 *) ac_try_echo=$ac_try;;
35316esac
35317eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35318$as_echo "$ac_try_echo") >&5
35319 (eval "$ac_link") 2>conftest.er1
35320 ac_status=$?
35321 grep -v '^ *+' conftest.er1 >conftest.err
35322 rm -f conftest.er1
35323 cat conftest.err >&5
35324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35325 (exit $ac_status); } && {
35326 test -z "$ac_c_werror_flag" ||
35327 test ! -s conftest.err
35328 } && test -s conftest$ac_exeext && {
35329 test "$cross_compiling" = yes ||
35330 $as_test_x conftest$ac_exeext
35331 }; then
35332 ac_cv_func_remove=yes
35333else
35334 $as_echo "$as_me: failed program was:" >&5
35335sed 's/^/| /' conftest.$ac_ext >&5
35336
35337 ac_cv_func_remove=no
35338fi
35339
35340rm -rf conftest.dSYM
35341rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35342 conftest$ac_exeext conftest.$ac_ext
35343fi
35344{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
35345$as_echo "$ac_cv_func_remove" >&6; }
35346
35347 if test $ac_cv_func_remove = no; then
35348 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
35349$as_echo_n "checking for remove in -lposix... " >&6; }
35350if test "${ac_cv_lib_posix_remove+set}" = set; then
35351 $as_echo_n "(cached) " >&6
35352else
35353 ac_check_lib_save_LIBS=$LIBS
35354LIBS="-lposix $LIBS"
35355cat >conftest.$ac_ext <<_ACEOF
35356/* confdefs.h. */
35357_ACEOF
35358cat confdefs.h >>conftest.$ac_ext
35359cat >>conftest.$ac_ext <<_ACEOF
35360/* end confdefs.h. */
35361
35362/* Override any GCC internal prototype to avoid an error.
35363 Use char because int might match the return type of a GCC
35364 builtin and then its argument prototype would still apply. */
35365#ifdef __cplusplus
35366extern "C"
35367#endif
35368char remove ();
35369int
35370main ()
35371{
35372return remove ();
35373 ;
35374 return 0;
35375}
35376_ACEOF
35377rm -f conftest.$ac_objext conftest$ac_exeext
35378if { (ac_try="$ac_link"
35379case "(($ac_try" in
35380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35381 *) ac_try_echo=$ac_try;;
35382esac
35383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35384$as_echo "$ac_try_echo") >&5
35385 (eval "$ac_link") 2>conftest.er1
35386 ac_status=$?
35387 grep -v '^ *+' conftest.er1 >conftest.err
35388 rm -f conftest.er1
35389 cat conftest.err >&5
35390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35391 (exit $ac_status); } && {
35392 test -z "$ac_c_werror_flag" ||
35393 test ! -s conftest.err
35394 } && test -s conftest$ac_exeext && {
35395 test "$cross_compiling" = yes ||
35396 $as_test_x conftest$ac_exeext
35397 }; then
35398 ac_cv_lib_posix_remove=yes
35399else
35400 $as_echo "$as_me: failed program was:" >&5
35401sed 's/^/| /' conftest.$ac_ext >&5
35402
35403 ac_cv_lib_posix_remove=no
35404fi
35405
35406rm -rf conftest.dSYM
35407rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35408 conftest$ac_exeext conftest.$ac_ext
35409LIBS=$ac_check_lib_save_LIBS
35410fi
35411{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
35412$as_echo "$ac_cv_lib_posix_remove" >&6; }
35413if test "x$ac_cv_lib_posix_remove" = x""yes; then
35414 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
35415fi
35416
35417 fi
35418
35419 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
35420 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
35421$as_echo_n "checking for shmat... " >&6; }
35422if test "${ac_cv_func_shmat+set}" = set; then
35423 $as_echo_n "(cached) " >&6
35424else
35425 cat >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/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
35432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35433#define shmat innocuous_shmat
35434
35435/* System header to define __stub macros and hopefully few prototypes,
35436 which can conflict with char shmat (); below.
35437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35438 <limits.h> exists even on freestanding compilers. */
35439
35440#ifdef __STDC__
35441# include <limits.h>
35442#else
35443# include <assert.h>
35444#endif
35445
35446#undef shmat
35447
35448/* Override any GCC internal prototype to avoid an error.
35449 Use char because int might match the return type of a GCC
35450 builtin and then its argument prototype would still apply. */
35451#ifdef __cplusplus
35452extern "C"
35453#endif
35454char shmat ();
35455/* The GNU C library defines this for functions which it implements
35456 to always fail with ENOSYS. Some functions are actually named
35457 something starting with __ and the normal name is an alias. */
35458#if defined __stub_shmat || defined __stub___shmat
35459choke me
35460#endif
35461
35462int
35463main ()
35464{
35465return shmat ();
35466 ;
35467 return 0;
35468}
35469_ACEOF
35470rm -f conftest.$ac_objext conftest$ac_exeext
35471if { (ac_try="$ac_link"
35472case "(($ac_try" in
35473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35474 *) ac_try_echo=$ac_try;;
35475esac
35476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35477$as_echo "$ac_try_echo") >&5
35478 (eval "$ac_link") 2>conftest.er1
35479 ac_status=$?
35480 grep -v '^ *+' conftest.er1 >conftest.err
35481 rm -f conftest.er1
35482 cat conftest.err >&5
35483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35484 (exit $ac_status); } && {
35485 test -z "$ac_c_werror_flag" ||
35486 test ! -s conftest.err
35487 } && test -s conftest$ac_exeext && {
35488 test "$cross_compiling" = yes ||
35489 $as_test_x conftest$ac_exeext
35490 }; then
35491 ac_cv_func_shmat=yes
35492else
35493 $as_echo "$as_me: failed program was:" >&5
35494sed 's/^/| /' conftest.$ac_ext >&5
35495
35496 ac_cv_func_shmat=no
35497fi
35498
35499rm -rf conftest.dSYM
35500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35501 conftest$ac_exeext conftest.$ac_ext
35502fi
35503{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
35504$as_echo "$ac_cv_func_shmat" >&6; }
35505
35506 if test $ac_cv_func_shmat = no; then
35507 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
35508$as_echo_n "checking for shmat in -lipc... " >&6; }
35509if test "${ac_cv_lib_ipc_shmat+set}" = set; then
35510 $as_echo_n "(cached) " >&6
35511else
35512 ac_check_lib_save_LIBS=$LIBS
35513LIBS="-lipc $LIBS"
35514cat >conftest.$ac_ext <<_ACEOF
35515/* confdefs.h. */
35516_ACEOF
35517cat confdefs.h >>conftest.$ac_ext
35518cat >>conftest.$ac_ext <<_ACEOF
35519/* end confdefs.h. */
35520
35521/* Override any GCC internal prototype to avoid an error.
35522 Use char because int might match the return type of a GCC
35523 builtin and then its argument prototype would still apply. */
35524#ifdef __cplusplus
35525extern "C"
35526#endif
35527char shmat ();
35528int
35529main ()
35530{
35531return shmat ();
35532 ;
35533 return 0;
35534}
35535_ACEOF
35536rm -f conftest.$ac_objext conftest$ac_exeext
35537if { (ac_try="$ac_link"
35538case "(($ac_try" in
35539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35540 *) ac_try_echo=$ac_try;;
35541esac
35542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35543$as_echo "$ac_try_echo") >&5
35544 (eval "$ac_link") 2>conftest.er1
35545 ac_status=$?
35546 grep -v '^ *+' conftest.er1 >conftest.err
35547 rm -f conftest.er1
35548 cat conftest.err >&5
35549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35550 (exit $ac_status); } && {
35551 test -z "$ac_c_werror_flag" ||
35552 test ! -s conftest.err
35553 } && test -s conftest$ac_exeext && {
35554 test "$cross_compiling" = yes ||
35555 $as_test_x conftest$ac_exeext
35556 }; then
35557 ac_cv_lib_ipc_shmat=yes
35558else
35559 $as_echo "$as_me: failed program was:" >&5
35560sed 's/^/| /' conftest.$ac_ext >&5
35561
35562 ac_cv_lib_ipc_shmat=no
35563fi
35564
35565rm -rf conftest.dSYM
35566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35567 conftest$ac_exeext conftest.$ac_ext
35568LIBS=$ac_check_lib_save_LIBS
35569fi
35570{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
35571$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
35572if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
35573 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
35574fi
35575
35576 fi
35577 fi
35578
35579 # Check for libraries that X11R6 Xt/Xaw programs need.
35580 ac_save_LDFLAGS=$LDFLAGS
35581 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
35582 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
35583 # check for ICE first), but we must link in the order -lSM -lICE or
35584 # we get undefined symbols. So assume we have SM if we have ICE.
35585 # These have to be linked with before -lX11, unlike the other
35586 # libraries we check for below, so use a different variable.
35587 # John Interrante, Karl Berry
35588 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
35589$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
35590if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
35591 $as_echo_n "(cached) " >&6
35592else
35593 ac_check_lib_save_LIBS=$LIBS
35594LIBS="-lICE $X_EXTRA_LIBS $LIBS"
35595cat >conftest.$ac_ext <<_ACEOF
35596/* confdefs.h. */
35597_ACEOF
35598cat confdefs.h >>conftest.$ac_ext
35599cat >>conftest.$ac_ext <<_ACEOF
35600/* end confdefs.h. */
35601
35602/* Override any GCC internal prototype to avoid an error.
35603 Use char because int might match the return type of a GCC
35604 builtin and then its argument prototype would still apply. */
35605#ifdef __cplusplus
35606extern "C"
35607#endif
35608char IceConnectionNumber ();
35609int
35610main ()
35611{
35612return IceConnectionNumber ();
35613 ;
35614 return 0;
35615}
35616_ACEOF
35617rm -f conftest.$ac_objext conftest$ac_exeext
35618if { (ac_try="$ac_link"
35619case "(($ac_try" in
35620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35621 *) ac_try_echo=$ac_try;;
35622esac
35623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35624$as_echo "$ac_try_echo") >&5
35625 (eval "$ac_link") 2>conftest.er1
35626 ac_status=$?
35627 grep -v '^ *+' conftest.er1 >conftest.err
35628 rm -f conftest.er1
35629 cat conftest.err >&5
35630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35631 (exit $ac_status); } && {
35632 test -z "$ac_c_werror_flag" ||
35633 test ! -s conftest.err
35634 } && test -s conftest$ac_exeext && {
35635 test "$cross_compiling" = yes ||
35636 $as_test_x conftest$ac_exeext
35637 }; then
35638 ac_cv_lib_ICE_IceConnectionNumber=yes
35639else
35640 $as_echo "$as_me: failed program was:" >&5
35641sed 's/^/| /' conftest.$ac_ext >&5
35642
35643 ac_cv_lib_ICE_IceConnectionNumber=no
35644fi
35645
35646rm -rf conftest.dSYM
35647rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35648 conftest$ac_exeext conftest.$ac_ext
35649LIBS=$ac_check_lib_save_LIBS
35650fi
35651{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
35652$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
35653if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
35654 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
35655fi
35656
35657 LDFLAGS=$ac_save_LDFLAGS
35658
35659fi
35660
35661if test "$no_x" != 'yes'; then
35662 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
35663$as_echo "-------------------------------------------------------------" >&6; }
35664 { $as_echo "$as_me:$LINENO: checking for X11" >&5
35665$as_echo_n "checking for X11... " >&6; }
35666 { $as_echo "$as_me:$LINENO: result: " >&5
35667$as_echo "" >&6; }
35668 LDFLAGS="$LDFLAGS $X_LIBS"
35669 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
35670 LIBS="$X11_LIBS $LIBS"
35671 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
35672
35673
35674cat >>confdefs.h <<\_ACEOF
35675#define X11_DELEGATE 1
35676_ACEOF
35677
35678 #
35679 # Check for X11 shared memory extension
35680 #
35681 # shmctl is required to support the shared memory extension
35682 { $as_echo "$as_me:$LINENO: checking for shmctl" >&5
35683$as_echo_n "checking for shmctl... " >&6; }
35684if test "${ac_cv_func_shmctl+set}" = set; then
35685 $as_echo_n "(cached) " >&6
35686else
35687 cat >conftest.$ac_ext <<_ACEOF
35688/* confdefs.h. */
35689_ACEOF
35690cat confdefs.h >>conftest.$ac_ext
35691cat >>conftest.$ac_ext <<_ACEOF
35692/* end confdefs.h. */
35693/* Define shmctl to an innocuous variant, in case <limits.h> declares shmctl.
35694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35695#define shmctl innocuous_shmctl
35696
35697/* System header to define __stub macros and hopefully few prototypes,
35698 which can conflict with char shmctl (); below.
35699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35700 <limits.h> exists even on freestanding compilers. */
35701
35702#ifdef __STDC__
35703# include <limits.h>
35704#else
35705# include <assert.h>
35706#endif
35707
35708#undef shmctl
35709
35710/* Override any GCC internal prototype to avoid an error.
35711 Use char because int might match the return type of a GCC
35712 builtin and then its argument prototype would still apply. */
35713#ifdef __cplusplus
35714extern "C"
35715#endif
35716char shmctl ();
35717/* The GNU C library defines this for functions which it implements
35718 to always fail with ENOSYS. Some functions are actually named
35719 something starting with __ and the normal name is an alias. */
35720#if defined __stub_shmctl || defined __stub___shmctl
35721choke me
35722#endif
35723
35724int
35725main ()
35726{
35727return shmctl ();
35728 ;
35729 return 0;
35730}
35731_ACEOF
35732rm -f conftest.$ac_objext conftest$ac_exeext
35733if { (ac_try="$ac_link"
35734case "(($ac_try" in
35735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35736 *) ac_try_echo=$ac_try;;
35737esac
35738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35739$as_echo "$ac_try_echo") >&5
35740 (eval "$ac_link") 2>conftest.er1
35741 ac_status=$?
35742 grep -v '^ *+' conftest.er1 >conftest.err
35743 rm -f conftest.er1
35744 cat conftest.err >&5
35745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35746 (exit $ac_status); } && {
35747 test -z "$ac_c_werror_flag" ||
35748 test ! -s conftest.err
35749 } && test -s conftest$ac_exeext && {
35750 test "$cross_compiling" = yes ||
35751 $as_test_x conftest$ac_exeext
35752 }; then
35753 ac_cv_func_shmctl=yes
35754else
35755 $as_echo "$as_me: failed program was:" >&5
35756sed 's/^/| /' conftest.$ac_ext >&5
35757
35758 ac_cv_func_shmctl=no
35759fi
35760
35761rm -rf conftest.dSYM
35762rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35763 conftest$ac_exeext conftest.$ac_ext
35764fi
35765{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmctl" >&5
35766$as_echo "$ac_cv_func_shmctl" >&6; }
35767if test "x$ac_cv_func_shmctl" = x""yes; then
35768 have_shmctl='yes'
35769fi
35770
35771 if test "$have_shmctl" != 'yes'; then
35772 PERSIST_LIBS=$LIBS
35773 LIBS="$LIBS -lcygipc"
35774 cat >conftest.$ac_ext <<_ACEOF
35775/* confdefs.h. */
35776_ACEOF
35777cat confdefs.h >>conftest.$ac_ext
35778cat >>conftest.$ac_ext <<_ACEOF
35779/* end confdefs.h. */
35780
35781/* Override any GCC internal prototype to avoid an error.
35782 Use char because int might match the return type of a GCC
35783 builtin and then its argument prototype would still apply. */
35784#ifdef __cplusplus
35785extern "C"
35786#endif
35787char shmctl ();
35788int
35789main ()
35790{
35791return shmctl ();
35792 ;
35793 return 0;
35794}
35795_ACEOF
35796rm -f conftest.$ac_objext conftest$ac_exeext
35797if { (ac_try="$ac_link"
35798case "(($ac_try" in
35799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35800 *) ac_try_echo=$ac_try;;
35801esac
35802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35803$as_echo "$ac_try_echo") >&5
35804 (eval "$ac_link") 2>conftest.er1
35805 ac_status=$?
35806 grep -v '^ *+' conftest.er1 >conftest.err
35807 rm -f conftest.er1
35808 cat conftest.err >&5
35809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810 (exit $ac_status); } && {
35811 test -z "$ac_c_werror_flag" ||
35812 test ! -s conftest.err
35813 } && test -s conftest$ac_exeext && {
35814 test "$cross_compiling" = yes ||
35815 $as_test_x conftest$ac_exeext
35816 }; then
35817 have_shmctl='yes'; IPC_LIBS='-lcygipc'
35818else
35819 $as_echo "$as_me: failed program was:" >&5
35820sed 's/^/| /' conftest.$ac_ext >&5
35821
35822
35823fi
35824
35825rm -rf conftest.dSYM
35826rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35827 conftest$ac_exeext conftest.$ac_ext
35828 LIBS=$PERSIST_LIBS
35829 fi
35830
35831 if test "$have_shmctl" = 'yes'; then
35832 { $as_echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
35833$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
35834if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
35835 $as_echo_n "(cached) " >&6
35836else
35837 ac_check_lib_save_LIBS=$LIBS
35838LIBS="-lXext $LIBS"
35839cat >conftest.$ac_ext <<_ACEOF
35840/* confdefs.h. */
35841_ACEOF
35842cat confdefs.h >>conftest.$ac_ext
35843cat >>conftest.$ac_ext <<_ACEOF
35844/* end confdefs.h. */
35845
35846/* Override any GCC internal prototype to avoid an error.
35847 Use char because int might match the return type of a GCC
35848 builtin and then its argument prototype would still apply. */
35849#ifdef __cplusplus
35850extern "C"
35851#endif
35852char XShmAttach ();
35853int
35854main ()
35855{
35856return XShmAttach ();
35857 ;
35858 return 0;
35859}
35860_ACEOF
35861rm -f conftest.$ac_objext conftest$ac_exeext
35862if { (ac_try="$ac_link"
35863case "(($ac_try" in
35864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35865 *) ac_try_echo=$ac_try;;
35866esac
35867eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35868$as_echo "$ac_try_echo") >&5
35869 (eval "$ac_link") 2>conftest.er1
35870 ac_status=$?
35871 grep -v '^ *+' conftest.er1 >conftest.err
35872 rm -f conftest.er1
35873 cat conftest.err >&5
35874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35875 (exit $ac_status); } && {
35876 test -z "$ac_c_werror_flag" ||
35877 test ! -s conftest.err
35878 } && test -s conftest$ac_exeext && {
35879 test "$cross_compiling" = yes ||
35880 $as_test_x conftest$ac_exeext
35881 }; then
35882 ac_cv_lib_Xext_XShmAttach=yes
35883else
35884 $as_echo "$as_me: failed program was:" >&5
35885sed 's/^/| /' conftest.$ac_ext >&5
35886
35887 ac_cv_lib_Xext_XShmAttach=no
35888fi
35889
35890rm -rf conftest.dSYM
35891rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35892 conftest$ac_exeext conftest.$ac_ext
35893LIBS=$ac_check_lib_save_LIBS
35894fi
35895{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
35896$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
35897if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then
35898 XEXT_LIBS='-lXext' ;
35899cat >>confdefs.h <<\_ACEOF
35900#define HAVE_SHARED_MEMORY 1
35901_ACEOF
35902
35903fi
35904
35905 fi
35906
35907 #
35908 # Check for X11 shape extension
35909 #
35910 { $as_echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
35911$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
35912if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
35913 $as_echo_n "(cached) " >&6
35914else
35915 ac_check_lib_save_LIBS=$LIBS
35916LIBS="-lXext $LIBS"
35917cat >conftest.$ac_ext <<_ACEOF
35918/* confdefs.h. */
35919_ACEOF
35920cat confdefs.h >>conftest.$ac_ext
35921cat >>conftest.$ac_ext <<_ACEOF
35922/* end confdefs.h. */
35923
35924/* Override any GCC internal prototype to avoid an error.
35925 Use char because int might match the return type of a GCC
35926 builtin and then its argument prototype would still apply. */
35927#ifdef __cplusplus
35928extern "C"
35929#endif
35930char XShapeCombineMask ();
35931int
35932main ()
35933{
35934return XShapeCombineMask ();
35935 ;
35936 return 0;
35937}
35938_ACEOF
35939rm -f conftest.$ac_objext conftest$ac_exeext
35940if { (ac_try="$ac_link"
35941case "(($ac_try" in
35942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35943 *) ac_try_echo=$ac_try;;
35944esac
35945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35946$as_echo "$ac_try_echo") >&5
35947 (eval "$ac_link") 2>conftest.er1
35948 ac_status=$?
35949 grep -v '^ *+' conftest.er1 >conftest.err
35950 rm -f conftest.er1
35951 cat conftest.err >&5
35952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35953 (exit $ac_status); } && {
35954 test -z "$ac_c_werror_flag" ||
35955 test ! -s conftest.err
35956 } && test -s conftest$ac_exeext && {
35957 test "$cross_compiling" = yes ||
35958 $as_test_x conftest$ac_exeext
35959 }; then
35960 ac_cv_lib_Xext_XShapeCombineMask=yes
35961else
35962 $as_echo "$as_me: failed program was:" >&5
35963sed 's/^/| /' conftest.$ac_ext >&5
35964
35965 ac_cv_lib_Xext_XShapeCombineMask=no
35966fi
35967
35968rm -rf conftest.dSYM
35969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35970 conftest$ac_exeext conftest.$ac_ext
35971LIBS=$ac_check_lib_save_LIBS
35972fi
35973{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
35974$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
35975if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then
35976 XEXT_LIBS='-lXext' ;
35977cat >>confdefs.h <<\_ACEOF
35978#define HAVE_SHAPE 1
35979_ACEOF
35980
35981fi
35982
35983 { $as_echo "$as_me:$LINENO: checking for XtSetEventDispatcher in -lXt" >&5
35984$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
35985if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then
35986 $as_echo_n "(cached) " >&6
35987else
35988 ac_check_lib_save_LIBS=$LIBS
35989LIBS="-lXt $LIBS"
35990cat >conftest.$ac_ext <<_ACEOF
35991/* confdefs.h. */
35992_ACEOF
35993cat confdefs.h >>conftest.$ac_ext
35994cat >>conftest.$ac_ext <<_ACEOF
35995/* end confdefs.h. */
35996
35997/* Override any GCC internal prototype to avoid an error.
35998 Use char because int might match the return type of a GCC
35999 builtin and then its argument prototype would still apply. */
36000#ifdef __cplusplus
36001extern "C"
36002#endif
36003char XtSetEventDispatcher ();
36004int
36005main ()
36006{
36007return XtSetEventDispatcher ();
36008 ;
36009 return 0;
36010}
36011_ACEOF
36012rm -f conftest.$ac_objext conftest$ac_exeext
36013if { (ac_try="$ac_link"
36014case "(($ac_try" in
36015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36016 *) ac_try_echo=$ac_try;;
36017esac
36018eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36019$as_echo "$ac_try_echo") >&5
36020 (eval "$ac_link") 2>conftest.er1
36021 ac_status=$?
36022 grep -v '^ *+' conftest.er1 >conftest.err
36023 rm -f conftest.er1
36024 cat conftest.err >&5
36025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36026 (exit $ac_status); } && {
36027 test -z "$ac_c_werror_flag" ||
36028 test ! -s conftest.err
36029 } && test -s conftest$ac_exeext && {
36030 test "$cross_compiling" = yes ||
36031 $as_test_x conftest$ac_exeext
36032 }; then
36033 ac_cv_lib_Xt_XtSetEventDispatcher=yes
36034else
36035 $as_echo "$as_me: failed program was:" >&5
36036sed 's/^/| /' conftest.$ac_ext >&5
36037
36038 ac_cv_lib_Xt_XtSetEventDispatcher=no
36039fi
36040
36041rm -rf conftest.dSYM
36042rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36043 conftest$ac_exeext conftest.$ac_ext
36044LIBS=$ac_check_lib_save_LIBS
36045fi
36046{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
36047$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
36048if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then
36049 XT_LIBS='-lXt'
36050fi
36051
36052 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
36053fi
36054if test "$no_x" != 'yes'; then
36055 have_x='yes'
36056else
36057 have_x='no'
36058fi
36059 if test "$have_x" = 'yes'; then
36060 X11_DELEGATE_TRUE=
36061 X11_DELEGATE_FALSE='#'
36062else
36063 X11_DELEGATE_TRUE='#'
36064 X11_DELEGATE_FALSE=
36065fi
36066
36067
36068
36069
36070
36071#
36072# Check for ZLIB
36073#
36074
36075# Check whether --with-zlib was given.
36076if test "${with_zlib+set}" = set; then
36077 withval=$with_zlib; with_zlib=$withval
36078else
36079 with_zlib='yes'
36080fi
36081
36082
36083if test "$with_zlib" != 'yes'; then
36084 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
36085fi
36086
36087have_zlib='no'
36088ZLIB_LIBS=''
36089if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
36090 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36091$as_echo "-------------------------------------------------------------" >&6; }
36092 { $as_echo "$as_me:$LINENO: checking for ZLIB" >&5
36093$as_echo_n "checking for ZLIB... " >&6; }
36094 { $as_echo "$as_me:$LINENO: result: " >&5
36095$as_echo "" >&6; }
36096 ZLIB_LIBS=''
36097 failed=0
36098 passed=0
36099 if test "${ac_cv_header_zconf_h+set}" = set; then
36100 { $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
36101$as_echo_n "checking for zconf.h... " >&6; }
36102if test "${ac_cv_header_zconf_h+set}" = set; then
36103 $as_echo_n "(cached) " >&6
36104fi
36105{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
36106$as_echo "$ac_cv_header_zconf_h" >&6; }
36107else
36108 # Is the header compilable?
36109{ $as_echo "$as_me:$LINENO: checking zconf.h usability" >&5
36110$as_echo_n "checking zconf.h usability... " >&6; }
36111cat >conftest.$ac_ext <<_ACEOF
36112/* confdefs.h. */
36113_ACEOF
36114cat confdefs.h >>conftest.$ac_ext
36115cat >>conftest.$ac_ext <<_ACEOF
36116/* end confdefs.h. */
36117$ac_includes_default
36118#include <zconf.h>
36119_ACEOF
36120rm -f conftest.$ac_objext
36121if { (ac_try="$ac_compile"
36122case "(($ac_try" in
36123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36124 *) ac_try_echo=$ac_try;;
36125esac
36126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36127$as_echo "$ac_try_echo") >&5
36128 (eval "$ac_compile") 2>conftest.er1
36129 ac_status=$?
36130 grep -v '^ *+' conftest.er1 >conftest.err
36131 rm -f conftest.er1
36132 cat conftest.err >&5
36133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36134 (exit $ac_status); } && {
36135 test -z "$ac_c_werror_flag" ||
36136 test ! -s conftest.err
36137 } && test -s conftest.$ac_objext; then
36138 ac_header_compiler=yes
36139else
36140 $as_echo "$as_me: failed program was:" >&5
36141sed 's/^/| /' conftest.$ac_ext >&5
36142
36143 ac_header_compiler=no
36144fi
36145
36146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36147{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36148$as_echo "$ac_header_compiler" >&6; }
36149
36150# Is the header present?
36151{ $as_echo "$as_me:$LINENO: checking zconf.h presence" >&5
36152$as_echo_n "checking zconf.h presence... " >&6; }
36153cat >conftest.$ac_ext <<_ACEOF
36154/* confdefs.h. */
36155_ACEOF
36156cat confdefs.h >>conftest.$ac_ext
36157cat >>conftest.$ac_ext <<_ACEOF
36158/* end confdefs.h. */
36159#include <zconf.h>
36160_ACEOF
36161if { (ac_try="$ac_cpp conftest.$ac_ext"
36162case "(($ac_try" in
36163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36164 *) ac_try_echo=$ac_try;;
36165esac
36166eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36167$as_echo "$ac_try_echo") >&5
36168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36169 ac_status=$?
36170 grep -v '^ *+' conftest.er1 >conftest.err
36171 rm -f conftest.er1
36172 cat conftest.err >&5
36173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36174 (exit $ac_status); } >/dev/null && {
36175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36176 test ! -s conftest.err
36177 }; then
36178 ac_header_preproc=yes
36179else
36180 $as_echo "$as_me: failed program was:" >&5
36181sed 's/^/| /' conftest.$ac_ext >&5
36182
36183 ac_header_preproc=no
36184fi
36185
36186rm -f conftest.err conftest.$ac_ext
36187{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36188$as_echo "$ac_header_preproc" >&6; }
36189
36190# So? What about this header?
36191case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36192 yes:no: )
36193 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&5
36194$as_echo "$as_me: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36195 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the compiler's result" >&5
36196$as_echo "$as_me: WARNING: zconf.h: proceeding with the compiler's result" >&2;}
36197 ac_header_preproc=yes
36198 ;;
36199 no:yes:* )
36200 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: present but cannot be compiled" >&5
36201$as_echo "$as_me: WARNING: zconf.h: present but cannot be compiled" >&2;}
36202 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: check for missing prerequisite headers?" >&5
36203$as_echo "$as_me: WARNING: zconf.h: check for missing prerequisite headers?" >&2;}
36204 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: see the Autoconf documentation" >&5
36205$as_echo "$as_me: WARNING: zconf.h: see the Autoconf documentation" >&2;}
36206 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&5
36207$as_echo "$as_me: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&2;}
36208 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the preprocessor's result" >&5
36209$as_echo "$as_me: WARNING: zconf.h: proceeding with the preprocessor's result" >&2;}
36210 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: in the future, the compiler will take precedence" >&5
36211$as_echo "$as_me: WARNING: zconf.h: in the future, the compiler will take precedence" >&2;}
36212 ( cat <<\_ASBOX
36213## ----------------------------------------- ##
36214## Report this to http://www.imagemagick.org ##
36215## ----------------------------------------- ##
36216_ASBOX
36217 ) | sed "s/^/$as_me: WARNING: /" >&2
36218 ;;
36219esac
36220{ $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
36221$as_echo_n "checking for zconf.h... " >&6; }
36222if test "${ac_cv_header_zconf_h+set}" = set; then
36223 $as_echo_n "(cached) " >&6
36224else
36225 ac_cv_header_zconf_h=$ac_header_preproc
36226fi
36227{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
36228$as_echo "$ac_cv_header_zconf_h" >&6; }
36229
36230fi
36231if test "x$ac_cv_header_zconf_h" = x""yes; then
36232 passed=`expr $passed + 1`
36233else
36234 failed=`expr $failed + 1`
36235fi
36236
36237
36238 if test "${ac_cv_header_zlib_h+set}" = set; then
36239 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
36240$as_echo_n "checking for zlib.h... " >&6; }
36241if test "${ac_cv_header_zlib_h+set}" = set; then
36242 $as_echo_n "(cached) " >&6
36243fi
36244{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36245$as_echo "$ac_cv_header_zlib_h" >&6; }
36246else
36247 # Is the header compilable?
36248{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
36249$as_echo_n "checking zlib.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 <zlib.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 zlib.h presence" >&5
36291$as_echo_n "checking zlib.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 <zlib.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: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
36333$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36334 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
36335$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
36336 ac_header_preproc=yes
36337 ;;
36338 no:yes:* )
36339 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
36340$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
36341 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
36342$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
36343 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
36344$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
36345 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
36346$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
36347 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
36348$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
36349 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
36350$as_echo "$as_me: WARNING: zlib.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 zlib.h" >&5
36360$as_echo_n "checking for zlib.h... " >&6; }
36361if test "${ac_cv_header_zlib_h+set}" = set; then
36362 $as_echo_n "(cached) " >&6
36363else
36364 ac_cv_header_zlib_h=$ac_header_preproc
36365fi
36366{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36367$as_echo "$ac_cv_header_zlib_h" >&6; }
36368
36369fi
36370if test "x$ac_cv_header_zlib_h" = x""yes; then
36371 passed=`expr $passed + 1`
36372else
36373 failed=`expr $failed + 1`
36374fi
36375
36376
36377 { $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5
36378$as_echo_n "checking for compress in -lz... " >&6; }
36379if test "${ac_cv_lib_z_compress+set}" = set; then
36380 $as_echo_n "(cached) " >&6
36381else
36382 ac_check_lib_save_LIBS=$LIBS
36383LIBS="-lz $LIBS"
36384cat >conftest.$ac_ext <<_ACEOF
36385/* confdefs.h. */
36386_ACEOF
36387cat confdefs.h >>conftest.$ac_ext
36388cat >>conftest.$ac_ext <<_ACEOF
36389/* end confdefs.h. */
36390
36391/* Override any GCC internal prototype to avoid an error.
36392 Use char because int might match the return type of a GCC
36393 builtin and then its argument prototype would still apply. */
36394#ifdef __cplusplus
36395extern "C"
36396#endif
36397char compress ();
36398int
36399main ()
36400{
36401return compress ();
36402 ;
36403 return 0;
36404}
36405_ACEOF
36406rm -f conftest.$ac_objext conftest$ac_exeext
36407if { (ac_try="$ac_link"
36408case "(($ac_try" in
36409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36410 *) ac_try_echo=$ac_try;;
36411esac
36412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36413$as_echo "$ac_try_echo") >&5
36414 (eval "$ac_link") 2>conftest.er1
36415 ac_status=$?
36416 grep -v '^ *+' conftest.er1 >conftest.err
36417 rm -f conftest.er1
36418 cat conftest.err >&5
36419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36420 (exit $ac_status); } && {
36421 test -z "$ac_c_werror_flag" ||
36422 test ! -s conftest.err
36423 } && test -s conftest$ac_exeext && {
36424 test "$cross_compiling" = yes ||
36425 $as_test_x conftest$ac_exeext
36426 }; then
36427 ac_cv_lib_z_compress=yes
36428else
36429 $as_echo "$as_me: failed program was:" >&5
36430sed 's/^/| /' conftest.$ac_ext >&5
36431
36432 ac_cv_lib_z_compress=no
36433fi
36434
36435rm -rf conftest.dSYM
36436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36437 conftest$ac_exeext conftest.$ac_ext
36438LIBS=$ac_check_lib_save_LIBS
36439fi
36440{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
36441$as_echo "$ac_cv_lib_z_compress" >&6; }
36442if test "x$ac_cv_lib_z_compress" = x""yes; then
36443 passed=`expr $passed + 1`
36444else
36445 failed=`expr $failed + 1`
36446fi
36447
36448 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
36449$as_echo_n "checking for uncompress in -lz... " >&6; }
36450if test "${ac_cv_lib_z_uncompress+set}" = set; then
36451 $as_echo_n "(cached) " >&6
36452else
36453 ac_check_lib_save_LIBS=$LIBS
36454LIBS="-lz $LIBS"
36455cat >conftest.$ac_ext <<_ACEOF
36456/* confdefs.h. */
36457_ACEOF
36458cat confdefs.h >>conftest.$ac_ext
36459cat >>conftest.$ac_ext <<_ACEOF
36460/* end confdefs.h. */
36461
36462/* Override any GCC internal prototype to avoid an error.
36463 Use char because int might match the return type of a GCC
36464 builtin and then its argument prototype would still apply. */
36465#ifdef __cplusplus
36466extern "C"
36467#endif
36468char uncompress ();
36469int
36470main ()
36471{
36472return uncompress ();
36473 ;
36474 return 0;
36475}
36476_ACEOF
36477rm -f conftest.$ac_objext conftest$ac_exeext
36478if { (ac_try="$ac_link"
36479case "(($ac_try" in
36480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36481 *) ac_try_echo=$ac_try;;
36482esac
36483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36484$as_echo "$ac_try_echo") >&5
36485 (eval "$ac_link") 2>conftest.er1
36486 ac_status=$?
36487 grep -v '^ *+' conftest.er1 >conftest.err
36488 rm -f conftest.er1
36489 cat conftest.err >&5
36490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36491 (exit $ac_status); } && {
36492 test -z "$ac_c_werror_flag" ||
36493 test ! -s conftest.err
36494 } && test -s conftest$ac_exeext && {
36495 test "$cross_compiling" = yes ||
36496 $as_test_x conftest$ac_exeext
36497 }; then
36498 ac_cv_lib_z_uncompress=yes
36499else
36500 $as_echo "$as_me: failed program was:" >&5
36501sed 's/^/| /' conftest.$ac_ext >&5
36502
36503 ac_cv_lib_z_uncompress=no
36504fi
36505
36506rm -rf conftest.dSYM
36507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36508 conftest$ac_exeext conftest.$ac_ext
36509LIBS=$ac_check_lib_save_LIBS
36510fi
36511{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
36512$as_echo "$ac_cv_lib_z_uncompress" >&6; }
36513if test "x$ac_cv_lib_z_uncompress" = x""yes; then
36514 passed=`expr $passed + 1`
36515else
36516 failed=`expr $failed + 1`
36517fi
36518
36519 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
36520$as_echo_n "checking for deflate in -lz... " >&6; }
36521if test "${ac_cv_lib_z_deflate+set}" = set; then
36522 $as_echo_n "(cached) " >&6
36523else
36524 ac_check_lib_save_LIBS=$LIBS
36525LIBS="-lz $LIBS"
36526cat >conftest.$ac_ext <<_ACEOF
36527/* confdefs.h. */
36528_ACEOF
36529cat confdefs.h >>conftest.$ac_ext
36530cat >>conftest.$ac_ext <<_ACEOF
36531/* end confdefs.h. */
36532
36533/* Override any GCC internal prototype to avoid an error.
36534 Use char because int might match the return type of a GCC
36535 builtin and then its argument prototype would still apply. */
36536#ifdef __cplusplus
36537extern "C"
36538#endif
36539char deflate ();
36540int
36541main ()
36542{
36543return deflate ();
36544 ;
36545 return 0;
36546}
36547_ACEOF
36548rm -f conftest.$ac_objext conftest$ac_exeext
36549if { (ac_try="$ac_link"
36550case "(($ac_try" in
36551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36552 *) ac_try_echo=$ac_try;;
36553esac
36554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36555$as_echo "$ac_try_echo") >&5
36556 (eval "$ac_link") 2>conftest.er1
36557 ac_status=$?
36558 grep -v '^ *+' conftest.er1 >conftest.err
36559 rm -f conftest.er1
36560 cat conftest.err >&5
36561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36562 (exit $ac_status); } && {
36563 test -z "$ac_c_werror_flag" ||
36564 test ! -s conftest.err
36565 } && test -s conftest$ac_exeext && {
36566 test "$cross_compiling" = yes ||
36567 $as_test_x conftest$ac_exeext
36568 }; then
36569 ac_cv_lib_z_deflate=yes
36570else
36571 $as_echo "$as_me: failed program was:" >&5
36572sed 's/^/| /' conftest.$ac_ext >&5
36573
36574 ac_cv_lib_z_deflate=no
36575fi
36576
36577rm -rf conftest.dSYM
36578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36579 conftest$ac_exeext conftest.$ac_ext
36580LIBS=$ac_check_lib_save_LIBS
36581fi
36582{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
36583$as_echo "$ac_cv_lib_z_deflate" >&6; }
36584if test "x$ac_cv_lib_z_deflate" = x""yes; then
36585 passed=`expr $passed + 1`
36586else
36587 failed=`expr $failed + 1`
36588fi
36589
36590 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
36591$as_echo_n "checking for inflate in -lz... " >&6; }
36592if test "${ac_cv_lib_z_inflate+set}" = set; then
36593 $as_echo_n "(cached) " >&6
36594else
36595 ac_check_lib_save_LIBS=$LIBS
36596LIBS="-lz $LIBS"
36597cat >conftest.$ac_ext <<_ACEOF
36598/* confdefs.h. */
36599_ACEOF
36600cat confdefs.h >>conftest.$ac_ext
36601cat >>conftest.$ac_ext <<_ACEOF
36602/* end confdefs.h. */
36603
36604/* Override any GCC internal prototype to avoid an error.
36605 Use char because int might match the return type of a GCC
36606 builtin and then its argument prototype would still apply. */
36607#ifdef __cplusplus
36608extern "C"
36609#endif
36610char inflate ();
36611int
36612main ()
36613{
36614return inflate ();
36615 ;
36616 return 0;
36617}
36618_ACEOF
36619rm -f conftest.$ac_objext conftest$ac_exeext
36620if { (ac_try="$ac_link"
36621case "(($ac_try" in
36622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36623 *) ac_try_echo=$ac_try;;
36624esac
36625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36626$as_echo "$ac_try_echo") >&5
36627 (eval "$ac_link") 2>conftest.er1
36628 ac_status=$?
36629 grep -v '^ *+' conftest.er1 >conftest.err
36630 rm -f conftest.er1
36631 cat conftest.err >&5
36632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36633 (exit $ac_status); } && {
36634 test -z "$ac_c_werror_flag" ||
36635 test ! -s conftest.err
36636 } && test -s conftest$ac_exeext && {
36637 test "$cross_compiling" = yes ||
36638 $as_test_x conftest$ac_exeext
36639 }; then
36640 ac_cv_lib_z_inflate=yes
36641else
36642 $as_echo "$as_me: failed program was:" >&5
36643sed 's/^/| /' conftest.$ac_ext >&5
36644
36645 ac_cv_lib_z_inflate=no
36646fi
36647
36648rm -rf conftest.dSYM
36649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36650 conftest$ac_exeext conftest.$ac_ext
36651LIBS=$ac_check_lib_save_LIBS
36652fi
36653{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
36654$as_echo "$ac_cv_lib_z_inflate" >&6; }
36655if test "x$ac_cv_lib_z_inflate" = x""yes; then
36656 passed=`expr $passed + 1`
36657else
36658 failed=`expr $failed + 1`
36659fi
36660
36661 { $as_echo "$as_me:$LINENO: checking for gzseek in -lz" >&5
36662$as_echo_n "checking for gzseek in -lz... " >&6; }
36663if test "${ac_cv_lib_z_gzseek+set}" = set; then
36664 $as_echo_n "(cached) " >&6
36665else
36666 ac_check_lib_save_LIBS=$LIBS
36667LIBS="-lz $LIBS"
36668cat >conftest.$ac_ext <<_ACEOF
36669/* confdefs.h. */
36670_ACEOF
36671cat confdefs.h >>conftest.$ac_ext
36672cat >>conftest.$ac_ext <<_ACEOF
36673/* end confdefs.h. */
36674
36675/* Override any GCC internal prototype to avoid an error.
36676 Use char because int might match the return type of a GCC
36677 builtin and then its argument prototype would still apply. */
36678#ifdef __cplusplus
36679extern "C"
36680#endif
36681char gzseek ();
36682int
36683main ()
36684{
36685return gzseek ();
36686 ;
36687 return 0;
36688}
36689_ACEOF
36690rm -f conftest.$ac_objext conftest$ac_exeext
36691if { (ac_try="$ac_link"
36692case "(($ac_try" in
36693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36694 *) ac_try_echo=$ac_try;;
36695esac
36696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36697$as_echo "$ac_try_echo") >&5
36698 (eval "$ac_link") 2>conftest.er1
36699 ac_status=$?
36700 grep -v '^ *+' conftest.er1 >conftest.err
36701 rm -f conftest.er1
36702 cat conftest.err >&5
36703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36704 (exit $ac_status); } && {
36705 test -z "$ac_c_werror_flag" ||
36706 test ! -s conftest.err
36707 } && test -s conftest$ac_exeext && {
36708 test "$cross_compiling" = yes ||
36709 $as_test_x conftest$ac_exeext
36710 }; then
36711 ac_cv_lib_z_gzseek=yes
36712else
36713 $as_echo "$as_me: failed program was:" >&5
36714sed 's/^/| /' conftest.$ac_ext >&5
36715
36716 ac_cv_lib_z_gzseek=no
36717fi
36718
36719rm -rf conftest.dSYM
36720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36721 conftest$ac_exeext conftest.$ac_ext
36722LIBS=$ac_check_lib_save_LIBS
36723fi
36724{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzseek" >&5
36725$as_echo "$ac_cv_lib_z_gzseek" >&6; }
36726if test "x$ac_cv_lib_z_gzseek" = x""yes; then
36727 passed=`expr $passed + 1`
36728else
36729 failed=`expr $failed + 1`
36730fi
36731
36732 { $as_echo "$as_me:$LINENO: checking for gztell in -lz" >&5
36733$as_echo_n "checking for gztell in -lz... " >&6; }
36734if test "${ac_cv_lib_z_gztell+set}" = set; then
36735 $as_echo_n "(cached) " >&6
36736else
36737 ac_check_lib_save_LIBS=$LIBS
36738LIBS="-lz $LIBS"
36739cat >conftest.$ac_ext <<_ACEOF
36740/* confdefs.h. */
36741_ACEOF
36742cat confdefs.h >>conftest.$ac_ext
36743cat >>conftest.$ac_ext <<_ACEOF
36744/* end confdefs.h. */
36745
36746/* Override any GCC internal prototype to avoid an error.
36747 Use char because int might match the return type of a GCC
36748 builtin and then its argument prototype would still apply. */
36749#ifdef __cplusplus
36750extern "C"
36751#endif
36752char gztell ();
36753int
36754main ()
36755{
36756return gztell ();
36757 ;
36758 return 0;
36759}
36760_ACEOF
36761rm -f conftest.$ac_objext conftest$ac_exeext
36762if { (ac_try="$ac_link"
36763case "(($ac_try" in
36764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36765 *) ac_try_echo=$ac_try;;
36766esac
36767eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36768$as_echo "$ac_try_echo") >&5
36769 (eval "$ac_link") 2>conftest.er1
36770 ac_status=$?
36771 grep -v '^ *+' conftest.er1 >conftest.err
36772 rm -f conftest.er1
36773 cat conftest.err >&5
36774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36775 (exit $ac_status); } && {
36776 test -z "$ac_c_werror_flag" ||
36777 test ! -s conftest.err
36778 } && test -s conftest$ac_exeext && {
36779 test "$cross_compiling" = yes ||
36780 $as_test_x conftest$ac_exeext
36781 }; then
36782 ac_cv_lib_z_gztell=yes
36783else
36784 $as_echo "$as_me: failed program was:" >&5
36785sed 's/^/| /' conftest.$ac_ext >&5
36786
36787 ac_cv_lib_z_gztell=no
36788fi
36789
36790rm -rf conftest.dSYM
36791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36792 conftest$ac_exeext conftest.$ac_ext
36793LIBS=$ac_check_lib_save_LIBS
36794fi
36795{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gztell" >&5
36796$as_echo "$ac_cv_lib_z_gztell" >&6; }
36797if test "x$ac_cv_lib_z_gztell" = x""yes; then
36798 passed=`expr $passed + 1`
36799else
36800 failed=`expr $failed + 1`
36801fi
36802
36803 { $as_echo "$as_me:$LINENO: checking if ZLIB package is complete" >&5
36804$as_echo_n "checking if ZLIB package is complete... " >&6; }
36805 if test $passed -gt 0; then
36806 if test $failed -gt 0; then
36807 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
36808$as_echo "no -- some components failed test" >&6; }
36809 have_zlib='no (failed tests)'
36810 else
36811 ZLIB_LIBS='-lz'
36812 LIBS="$ZLIB_LIBS $LIBS"
36813
36814cat >>confdefs.h <<\_ACEOF
36815#define ZLIB_DELEGATE 1
36816_ACEOF
36817
36818 { $as_echo "$as_me:$LINENO: result: yes" >&5
36819$as_echo "yes" >&6; }
36820 have_zlib='yes'
36821 fi
36822 else
36823 { $as_echo "$as_me:$LINENO: result: no" >&5
36824$as_echo "no" >&6; }
36825 fi
36826fi
36827 if test "$have_zlib" = 'yes'; then
36828 ZLIB_DELEGATE_TRUE=
36829 ZLIB_DELEGATE_FALSE='#'
36830else
36831 ZLIB_DELEGATE_TRUE='#'
36832 ZLIB_DELEGATE_FALSE=
36833fi
36834
36835
36836
36837#
36838# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
36839#
36840LIB_DL=''
36841if test "$enable_profiling" = 'yes'; then
36842 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36843$as_echo_n "checking for dlopen in -ldl... " >&6; }
36844if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36845 $as_echo_n "(cached) " >&6
36846else
36847 ac_check_lib_save_LIBS=$LIBS
36848LIBS="-ldl $LIBS"
36849cat >conftest.$ac_ext <<_ACEOF
36850/* confdefs.h. */
36851_ACEOF
36852cat confdefs.h >>conftest.$ac_ext
36853cat >>conftest.$ac_ext <<_ACEOF
36854/* end confdefs.h. */
36855
36856/* Override any GCC internal prototype to avoid an error.
36857 Use char because int might match the return type of a GCC
36858 builtin and then its argument prototype would still apply. */
36859#ifdef __cplusplus
36860extern "C"
36861#endif
36862char dlopen ();
36863int
36864main ()
36865{
36866return dlopen ();
36867 ;
36868 return 0;
36869}
36870_ACEOF
36871rm -f conftest.$ac_objext conftest$ac_exeext
36872if { (ac_try="$ac_link"
36873case "(($ac_try" in
36874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36875 *) ac_try_echo=$ac_try;;
36876esac
36877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36878$as_echo "$ac_try_echo") >&5
36879 (eval "$ac_link") 2>conftest.er1
36880 ac_status=$?
36881 grep -v '^ *+' conftest.er1 >conftest.err
36882 rm -f conftest.er1
36883 cat conftest.err >&5
36884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36885 (exit $ac_status); } && {
36886 test -z "$ac_c_werror_flag" ||
36887 test ! -s conftest.err
36888 } && test -s conftest$ac_exeext && {
36889 test "$cross_compiling" = yes ||
36890 $as_test_x conftest$ac_exeext
36891 }; then
36892 ac_cv_lib_dl_dlopen=yes
36893else
36894 $as_echo "$as_me: failed program was:" >&5
36895sed 's/^/| /' conftest.$ac_ext >&5
36896
36897 ac_cv_lib_dl_dlopen=no
36898fi
36899
36900rm -rf conftest.dSYM
36901rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36902 conftest$ac_exeext conftest.$ac_ext
36903LIBS=$ac_check_lib_save_LIBS
36904fi
36905{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36906$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36907if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
36908 LIB_DL='-ldl'
36909fi
36910
36911 LIBS="$LIB_DL $LIBS"
36912fi
36913
36914
36915
36916#
36917# Check for Autotrace delegate library.
36918#
36919
36920# Check whether --with-autotrace was given.
36921if test "${with_autotrace+set}" = set; then
36922 withval=$with_autotrace; with_autotrace=$withval
36923else
36924 with_autotrace='no'
36925fi
36926
36927
36928if test "$with_autotrace" != 'yes'; then
36929 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
36930fi
36931
36932have_autotrace='no'
36933AUTOTRACE_CFLAGS=""
36934AUTOTRACE_LIBS=""
36935AUTOTRACE_PKG=""
36936if test "x$with_autotrace" = "xyes"; then
36937 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36938$as_echo "-------------------------------------------------------------" >&6; }
36939
36940pkg_failed=no
36941{ $as_echo "$as_me:$LINENO: checking for AUTOTRACE" >&5
36942$as_echo_n "checking for AUTOTRACE... " >&6; }
36943
36944if test -n "$AUTOTRACE_CFLAGS"; then
36945 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
36946 elif test -n "$PKG_CONFIG"; then
36947 if test -n "$PKG_CONFIG" && \
36948 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36949 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36950 ac_status=$?
36951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36952 (exit $ac_status); }; then
36953 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
36954else
36955 pkg_failed=yes
36956fi
36957 else
36958 pkg_failed=untried
36959fi
36960if test -n "$AUTOTRACE_LIBS"; then
36961 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
36962 elif test -n "$PKG_CONFIG"; then
36963 if test -n "$PKG_CONFIG" && \
36964 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36965 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36966 ac_status=$?
36967 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36968 (exit $ac_status); }; then
36969 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
36970else
36971 pkg_failed=yes
36972fi
36973 else
36974 pkg_failed=untried
36975fi
36976
36977
36978
36979if test $pkg_failed = yes; then
36980
36981if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36982 _pkg_short_errors_supported=yes
36983else
36984 _pkg_short_errors_supported=no
36985fi
36986 if test $_pkg_short_errors_supported = yes; then
36987 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
36988 else
36989 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
36990 fi
36991 # Put the nasty error message in config.log where it belongs
36992 echo "$AUTOTRACE_PKG_ERRORS" >&5
36993
36994 { $as_echo "$as_me:$LINENO: result: no" >&5
36995$as_echo "no" >&6; }
36996 have_autotrace=no
36997elif test $pkg_failed = untried; then
36998 have_autotrace=no
36999else
37000 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
37001 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
37002 { $as_echo "$as_me:$LINENO: result: yes" >&5
37003$as_echo "yes" >&6; }
37004 have_autotrace=yes
37005fi
37006 { $as_echo "$as_me:$LINENO: result: " >&5
37007$as_echo "" >&6; }
37008fi
37009
37010if test "$have_autotrace" = 'yes'; then
37011 failed=0
37012
37013cat >>confdefs.h <<\_ACEOF
37014#define AUTOTRACE_DELEGATE 1
37015_ACEOF
37016
37017 if test "$with_modules" = 'no'; then
37018 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
37019 fi
37020fi
37021
37022 if test "$have_autotrace" = 'yes'; then
37023 AUTOTRACE_DELEGATE_TRUE=
37024 AUTOTRACE_DELEGATE_FALSE='#'
37025else
37026 AUTOTRACE_DELEGATE_TRUE='#'
37027 AUTOTRACE_DELEGATE_FALSE=
37028fi
37029
37030
37031
37032
37033
37034#
37035# Check for Display Postscript delegate library.
37036#
37037
37038# Check whether --with-dps was given.
37039if test "${with_dps+set}" = set; then
37040 withval=$with_dps; with_dps=$withval
37041else
37042 with_dps='yes'
37043fi
37044
37045
37046if test "$with_dps" != 'yes'; then
37047 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
37048fi
37049
37050have_dps='no'
37051DPS_LIBS=''
37052if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
37053 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37054$as_echo "-------------------------------------------------------------" >&6; }
37055 { $as_echo "$as_me:$LINENO: checking for DPS" >&5
37056$as_echo_n "checking for DPS... " >&6; }
37057 { $as_echo "$as_me:$LINENO: result: " >&5
37058$as_echo "" >&6; }
37059 failed=0
37060 passed=0
37061 PERSIST_CPPFLAGS="$CPPFLAGS"
37062 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
37063 if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37064 { $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
37065$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
37066if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37067 $as_echo_n "(cached) " >&6
37068fi
37069{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
37070$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
37071else
37072 # Is the header compilable?
37073{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h usability" >&5
37074$as_echo_n "checking DPS/dpsXclient.h usability... " >&6; }
37075cat >conftest.$ac_ext <<_ACEOF
37076/* confdefs.h. */
37077_ACEOF
37078cat confdefs.h >>conftest.$ac_ext
37079cat >>conftest.$ac_ext <<_ACEOF
37080/* end confdefs.h. */
37081$ac_includes_default
37082#include <DPS/dpsXclient.h>
37083_ACEOF
37084rm -f conftest.$ac_objext
37085if { (ac_try="$ac_compile"
37086case "(($ac_try" in
37087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37088 *) ac_try_echo=$ac_try;;
37089esac
37090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37091$as_echo "$ac_try_echo") >&5
37092 (eval "$ac_compile") 2>conftest.er1
37093 ac_status=$?
37094 grep -v '^ *+' conftest.er1 >conftest.err
37095 rm -f conftest.er1
37096 cat conftest.err >&5
37097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37098 (exit $ac_status); } && {
37099 test -z "$ac_c_werror_flag" ||
37100 test ! -s conftest.err
37101 } && test -s conftest.$ac_objext; then
37102 ac_header_compiler=yes
37103else
37104 $as_echo "$as_me: failed program was:" >&5
37105sed 's/^/| /' conftest.$ac_ext >&5
37106
37107 ac_header_compiler=no
37108fi
37109
37110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37111{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37112$as_echo "$ac_header_compiler" >&6; }
37113
37114# Is the header present?
37115{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h presence" >&5
37116$as_echo_n "checking DPS/dpsXclient.h presence... " >&6; }
37117cat >conftest.$ac_ext <<_ACEOF
37118/* confdefs.h. */
37119_ACEOF
37120cat confdefs.h >>conftest.$ac_ext
37121cat >>conftest.$ac_ext <<_ACEOF
37122/* end confdefs.h. */
37123#include <DPS/dpsXclient.h>
37124_ACEOF
37125if { (ac_try="$ac_cpp conftest.$ac_ext"
37126case "(($ac_try" in
37127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37128 *) ac_try_echo=$ac_try;;
37129esac
37130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37131$as_echo "$ac_try_echo") >&5
37132 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37133 ac_status=$?
37134 grep -v '^ *+' conftest.er1 >conftest.err
37135 rm -f conftest.er1
37136 cat conftest.err >&5
37137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37138 (exit $ac_status); } >/dev/null && {
37139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37140 test ! -s conftest.err
37141 }; then
37142 ac_header_preproc=yes
37143else
37144 $as_echo "$as_me: failed program was:" >&5
37145sed 's/^/| /' conftest.$ac_ext >&5
37146
37147 ac_header_preproc=no
37148fi
37149
37150rm -f conftest.err conftest.$ac_ext
37151{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37152$as_echo "$ac_header_preproc" >&6; }
37153
37154# So? What about this header?
37155case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37156 yes:no: )
37157 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&5
37158$as_echo "$as_me: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37159 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&5
37160$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&2;}
37161 ac_header_preproc=yes
37162 ;;
37163 no:yes:* )
37164 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&5
37165$as_echo "$as_me: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&2;}
37166 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&5
37167$as_echo "$as_me: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&2;}
37168 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&5
37169$as_echo "$as_me: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&2;}
37170 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&5
37171$as_echo "$as_me: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&2;}
37172 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&5
37173$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&2;}
37174 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&5
37175$as_echo "$as_me: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&2;}
37176 ( cat <<\_ASBOX
37177## ----------------------------------------- ##
37178## Report this to http://www.imagemagick.org ##
37179## ----------------------------------------- ##
37180_ASBOX
37181 ) | sed "s/^/$as_me: WARNING: /" >&2
37182 ;;
37183esac
37184{ $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
37185$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
37186if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37187 $as_echo_n "(cached) " >&6
37188else
37189 ac_cv_header_DPS_dpsXclient_h=$ac_header_preproc
37190fi
37191{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
37192$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
37193
37194fi
37195if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then
37196 passed=`expr $passed + 1`
37197else
37198 failed=`expr $failed + 1`
37199fi
37200
37201
37202 # DPS issues:
37203 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
37204 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
37205 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
37206 # ImageMagick itself doesn't use -lXt.
37207 have_libdps='no'
37208 LIBDPS_XT=''
37209 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
37210$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
37211if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
37212 $as_echo_n "(cached) " >&6
37213else
37214 ac_check_lib_save_LIBS=$LIBS
37215LIBS="-ldps $LIBS"
37216cat >conftest.$ac_ext <<_ACEOF
37217/* confdefs.h. */
37218_ACEOF
37219cat confdefs.h >>conftest.$ac_ext
37220cat >>conftest.$ac_ext <<_ACEOF
37221/* end confdefs.h. */
37222
37223/* Override any GCC internal prototype to avoid an error.
37224 Use char because int might match the return type of a GCC
37225 builtin and then its argument prototype would still apply. */
37226#ifdef __cplusplus
37227extern "C"
37228#endif
37229char DPSInitialize ();
37230int
37231main ()
37232{
37233return DPSInitialize ();
37234 ;
37235 return 0;
37236}
37237_ACEOF
37238rm -f conftest.$ac_objext conftest$ac_exeext
37239if { (ac_try="$ac_link"
37240case "(($ac_try" in
37241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37242 *) ac_try_echo=$ac_try;;
37243esac
37244eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37245$as_echo "$ac_try_echo") >&5
37246 (eval "$ac_link") 2>conftest.er1
37247 ac_status=$?
37248 grep -v '^ *+' conftest.er1 >conftest.err
37249 rm -f conftest.er1
37250 cat conftest.err >&5
37251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37252 (exit $ac_status); } && {
37253 test -z "$ac_c_werror_flag" ||
37254 test ! -s conftest.err
37255 } && test -s conftest$ac_exeext && {
37256 test "$cross_compiling" = yes ||
37257 $as_test_x conftest$ac_exeext
37258 }; then
37259 ac_cv_lib_dps_DPSInitialize=yes
37260else
37261 $as_echo "$as_me: failed program was:" >&5
37262sed 's/^/| /' conftest.$ac_ext >&5
37263
37264 ac_cv_lib_dps_DPSInitialize=no
37265fi
37266
37267rm -rf conftest.dSYM
37268rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37269 conftest$ac_exeext conftest.$ac_ext
37270LIBS=$ac_check_lib_save_LIBS
37271fi
37272{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
37273$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
37274if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
37275 have_libdps='yes'
37276else
37277 have_libdps='no'
37278fi
37279
37280 if test "$have_libdps" != 'yes'; then
37281 # Unset cache variable so we can try again.
37282 unset ac_cv_lib_dps_DPSInitialize
37283 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
37284$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
37285if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
37286 $as_echo_n "(cached) " >&6
37287else
37288 ac_check_lib_save_LIBS=$LIBS
37289LIBS="-ldps -lXt $LIBS"
37290cat >conftest.$ac_ext <<_ACEOF
37291/* confdefs.h. */
37292_ACEOF
37293cat confdefs.h >>conftest.$ac_ext
37294cat >>conftest.$ac_ext <<_ACEOF
37295/* end confdefs.h. */
37296
37297/* Override any GCC internal prototype to avoid an error.
37298 Use char because int might match the return type of a GCC
37299 builtin and then its argument prototype would still apply. */
37300#ifdef __cplusplus
37301extern "C"
37302#endif
37303char DPSInitialize ();
37304int
37305main ()
37306{
37307return DPSInitialize ();
37308 ;
37309 return 0;
37310}
37311_ACEOF
37312rm -f conftest.$ac_objext conftest$ac_exeext
37313if { (ac_try="$ac_link"
37314case "(($ac_try" in
37315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37316 *) ac_try_echo=$ac_try;;
37317esac
37318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37319$as_echo "$ac_try_echo") >&5
37320 (eval "$ac_link") 2>conftest.er1
37321 ac_status=$?
37322 grep -v '^ *+' conftest.er1 >conftest.err
37323 rm -f conftest.er1
37324 cat conftest.err >&5
37325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37326 (exit $ac_status); } && {
37327 test -z "$ac_c_werror_flag" ||
37328 test ! -s conftest.err
37329 } && test -s conftest$ac_exeext && {
37330 test "$cross_compiling" = yes ||
37331 $as_test_x conftest$ac_exeext
37332 }; then
37333 ac_cv_lib_dps_DPSInitialize=yes
37334else
37335 $as_echo "$as_me: failed program was:" >&5
37336sed 's/^/| /' conftest.$ac_ext >&5
37337
37338 ac_cv_lib_dps_DPSInitialize=no
37339fi
37340
37341rm -rf conftest.dSYM
37342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37343 conftest$ac_exeext conftest.$ac_ext
37344LIBS=$ac_check_lib_save_LIBS
37345fi
37346{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
37347$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
37348if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
37349 have_libdps='yes'
37350else
37351 have_libdps='no'
37352fi
37353
37354 if test "$have_libdps" = 'yes'; then
37355 LIBDPS_XT='-lXt'
37356 fi
37357 fi
37358 if test "$have_libdps" = 'yes'; then
37359 passed=`expr $passed + 1`
37360 else
37361 failed=`expr $failed + 1`
37362 fi
37363 { $as_echo "$as_me:$LINENO: checking for XDPSPixelsPerPoint in -ldpstk" >&5
37364$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
37365if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then
37366 $as_echo_n "(cached) " >&6
37367else
37368 ac_check_lib_save_LIBS=$LIBS
37369LIBS="-ldpstk -ldps $LIBDPS_XT $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 XDPSPixelsPerPoint ();
37384int
37385main ()
37386{
37387return XDPSPixelsPerPoint ();
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_c_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_dpstk_XDPSPixelsPerPoint=yes
37414else
37415 $as_echo "$as_me: failed program was:" >&5
37416sed 's/^/| /' conftest.$ac_ext >&5
37417
37418 ac_cv_lib_dpstk_XDPSPixelsPerPoint=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_dpstk_XDPSPixelsPerPoint" >&5
37427$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
37428if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then
37429 passed=`expr $passed + 1`
37430else
37431 failed=`expr $failed + 1`
37432fi
37433
37434 { $as_echo "$as_me:$LINENO: checking if DPS package is complete" >&5
37435$as_echo_n "checking if DPS package is complete... " >&6; }
37436 if test $passed -gt 0; then
37437 if test $failed -gt 0; then
37438 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37439$as_echo "no -- some components failed test" >&6; }
37440 have_dps='no (failed tests)'
37441 CPPFLAGS="$PERSIST_CPPFLAGS"
37442 else
37443 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
37444 LIBS="$DPS_LIBS $LIBS"
37445
37446cat >>confdefs.h <<\_ACEOF
37447#define DPS_DELEGATE 1
37448_ACEOF
37449
37450 { $as_echo "$as_me:$LINENO: result: yes" >&5
37451$as_echo "yes" >&6; }
37452 have_dps='yes'
37453 fi
37454 else
37455 { $as_echo "$as_me:$LINENO: result: no" >&5
37456$as_echo "no" >&6; }
37457 CPPFLAGS=$PERSIST_CPPFLAGS
37458 fi
37459fi
37460 if test "$have_dps" = 'yes'; then
37461 DPS_DELEGATE_TRUE=
37462 DPS_DELEGATE_FALSE='#'
37463else
37464 DPS_DELEGATE_TRUE='#'
37465 DPS_DELEGATE_FALSE=
37466fi
37467
37468
37469
37470
37471#
37472# Check for DJVU delegate library.
37473#
37474
37475# Check whether --with-djvu was given.
37476if test "${with_djvu+set}" = set; then
37477 withval=$with_djvu; with_djvu=$withval
37478else
37479 with_djvu='yes'
37480fi
37481
37482
37483if test "$with_djvu" != 'yes'; then
37484 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
37485fi
37486
37487have_djvu='no'
37488DJVU_LIBS=''
37489if test "$with_djvu" != 'no'; then
37490 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37491$as_echo "-------------------------------------------------------------" >&6; }
37492 { $as_echo "$as_me:$LINENO: checking for DJVU" >&5
37493$as_echo_n "checking for DJVU... " >&6; }
37494 { $as_echo "$as_me:$LINENO: result: " >&5
37495$as_echo "" >&6; }
37496 failed=0
37497 passed=0
37498 if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37499 { $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
37500$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
37501if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37502 $as_echo_n "(cached) " >&6
37503fi
37504{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
37505$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
37506else
37507 # Is the header compilable?
37508{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h usability" >&5
37509$as_echo_n "checking libdjvu/ddjvuapi.h usability... " >&6; }
37510cat >conftest.$ac_ext <<_ACEOF
37511/* confdefs.h. */
37512_ACEOF
37513cat confdefs.h >>conftest.$ac_ext
37514cat >>conftest.$ac_ext <<_ACEOF
37515/* end confdefs.h. */
37516$ac_includes_default
37517#include <libdjvu/ddjvuapi.h>
37518_ACEOF
37519rm -f conftest.$ac_objext
37520if { (ac_try="$ac_compile"
37521case "(($ac_try" in
37522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37523 *) ac_try_echo=$ac_try;;
37524esac
37525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37526$as_echo "$ac_try_echo") >&5
37527 (eval "$ac_compile") 2>conftest.er1
37528 ac_status=$?
37529 grep -v '^ *+' conftest.er1 >conftest.err
37530 rm -f conftest.er1
37531 cat conftest.err >&5
37532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37533 (exit $ac_status); } && {
37534 test -z "$ac_c_werror_flag" ||
37535 test ! -s conftest.err
37536 } && test -s conftest.$ac_objext; then
37537 ac_header_compiler=yes
37538else
37539 $as_echo "$as_me: failed program was:" >&5
37540sed 's/^/| /' conftest.$ac_ext >&5
37541
37542 ac_header_compiler=no
37543fi
37544
37545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37546{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37547$as_echo "$ac_header_compiler" >&6; }
37548
37549# Is the header present?
37550{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h presence" >&5
37551$as_echo_n "checking libdjvu/ddjvuapi.h presence... " >&6; }
37552cat >conftest.$ac_ext <<_ACEOF
37553/* confdefs.h. */
37554_ACEOF
37555cat confdefs.h >>conftest.$ac_ext
37556cat >>conftest.$ac_ext <<_ACEOF
37557/* end confdefs.h. */
37558#include <libdjvu/ddjvuapi.h>
37559_ACEOF
37560if { (ac_try="$ac_cpp conftest.$ac_ext"
37561case "(($ac_try" in
37562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37563 *) ac_try_echo=$ac_try;;
37564esac
37565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37566$as_echo "$ac_try_echo") >&5
37567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37568 ac_status=$?
37569 grep -v '^ *+' conftest.er1 >conftest.err
37570 rm -f conftest.er1
37571 cat conftest.err >&5
37572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37573 (exit $ac_status); } >/dev/null && {
37574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37575 test ! -s conftest.err
37576 }; then
37577 ac_header_preproc=yes
37578else
37579 $as_echo "$as_me: failed program was:" >&5
37580sed 's/^/| /' conftest.$ac_ext >&5
37581
37582 ac_header_preproc=no
37583fi
37584
37585rm -f conftest.err conftest.$ac_ext
37586{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37587$as_echo "$ac_header_preproc" >&6; }
37588
37589# So? What about this header?
37590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37591 yes:no: )
37592 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
37593$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37594 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&5
37595$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&2;}
37596 ac_header_preproc=yes
37597 ;;
37598 no:yes:* )
37599 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&5
37600$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&2;}
37601 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&5
37602$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&2;}
37603 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&5
37604$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&2;}
37605 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&5
37606$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
37607 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&5
37608$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&2;}
37609 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&5
37610$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&2;}
37611 ( cat <<\_ASBOX
37612## ----------------------------------------- ##
37613## Report this to http://www.imagemagick.org ##
37614## ----------------------------------------- ##
37615_ASBOX
37616 ) | sed "s/^/$as_me: WARNING: /" >&2
37617 ;;
37618esac
37619{ $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
37620$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
37621if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37622 $as_echo_n "(cached) " >&6
37623else
37624 ac_cv_header_libdjvu_ddjvuapi_h=$ac_header_preproc
37625fi
37626{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
37627$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
37628
37629fi
37630if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then
37631 passed=`expr $passed + 1`
37632else
37633 failed=`expr $failed + 1`
37634fi
37635
37636
37637 { $as_echo "$as_me:$LINENO: checking for ddjvu_context_create in -ldjvulibre" >&5
37638$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
37639if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then
37640 $as_echo_n "(cached) " >&6
37641else
37642 ac_check_lib_save_LIBS=$LIBS
37643LIBS="-ldjvulibre $LIBS"
37644cat >conftest.$ac_ext <<_ACEOF
37645/* confdefs.h. */
37646_ACEOF
37647cat confdefs.h >>conftest.$ac_ext
37648cat >>conftest.$ac_ext <<_ACEOF
37649/* end confdefs.h. */
37650
37651/* Override any GCC internal prototype to avoid an error.
37652 Use char because int might match the return type of a GCC
37653 builtin and then its argument prototype would still apply. */
37654#ifdef __cplusplus
37655extern "C"
37656#endif
37657char ddjvu_context_create ();
37658int
37659main ()
37660{
37661return ddjvu_context_create ();
37662 ;
37663 return 0;
37664}
37665_ACEOF
37666rm -f conftest.$ac_objext conftest$ac_exeext
37667if { (ac_try="$ac_link"
37668case "(($ac_try" in
37669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37670 *) ac_try_echo=$ac_try;;
37671esac
37672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37673$as_echo "$ac_try_echo") >&5
37674 (eval "$ac_link") 2>conftest.er1
37675 ac_status=$?
37676 grep -v '^ *+' conftest.er1 >conftest.err
37677 rm -f conftest.er1
37678 cat conftest.err >&5
37679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37680 (exit $ac_status); } && {
37681 test -z "$ac_c_werror_flag" ||
37682 test ! -s conftest.err
37683 } && test -s conftest$ac_exeext && {
37684 test "$cross_compiling" = yes ||
37685 $as_test_x conftest$ac_exeext
37686 }; then
37687 ac_cv_lib_djvulibre_ddjvu_context_create=yes
37688else
37689 $as_echo "$as_me: failed program was:" >&5
37690sed 's/^/| /' conftest.$ac_ext >&5
37691
37692 ac_cv_lib_djvulibre_ddjvu_context_create=no
37693fi
37694
37695rm -rf conftest.dSYM
37696rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37697 conftest$ac_exeext conftest.$ac_ext
37698LIBS=$ac_check_lib_save_LIBS
37699fi
37700{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
37701$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
37702if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then
37703 passed=`expr $passed + 1`
37704else
37705 failed=`expr $failed + 1`
37706fi
37707
37708 { $as_echo "$as_me:$LINENO: checking if DJVU package is complete" >&5
37709$as_echo_n "checking if DJVU package is complete... " >&6; }
37710 if test $passed -gt 0; then
37711 if test $failed -gt 0; then
37712 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37713$as_echo "no -- some components failed test" >&6; }
37714 have_djvu='no (failed tests)'
37715 else
37716 DJVU_LIBS='-ldjvulibre'
37717 LIBS="$DJVU_LIBS $LIBS"
37718
37719cat >>confdefs.h <<\_ACEOF
37720#define DJVU_DELEGATE 1
37721_ACEOF
37722
37723 { $as_echo "$as_me:$LINENO: result: yes" >&5
37724$as_echo "yes" >&6; }
37725 have_djvu='yes'
37726 fi
37727 else
37728 { $as_echo "$as_me:$LINENO: result: no" >&5
37729$as_echo "no" >&6; }
37730 fi
37731fi
37732 if test "$have_djvu" = 'yes'; then
37733 DJVU_DELEGATE_TRUE=
37734 DJVU_DELEGATE_FALSE='#'
37735else
37736 DJVU_DELEGATE_TRUE='#'
37737 DJVU_DELEGATE_FALSE=
37738fi
37739
37740
37741
37742
37743#
37744# Check for FFTW delegate library.
37745#
37746
37747# Check whether --with-fftw was given.
37748if test "${with_fftw+set}" = set; then
37749 withval=$with_fftw; with_fftw=$withval
37750else
37751 with_fftw='yes'
37752fi
37753
37754
37755if test "$with_fftw" != 'yes'; then
37756 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
37757fi
37758
37759have_fftw='no'
37760FFTW_LIBS=''
37761if test "$with_fftw" != 'no'; then
37762 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37763$as_echo "-------------------------------------------------------------" >&6; }
37764 { $as_echo "$as_me:$LINENO: checking for FFTW" >&5
37765$as_echo_n "checking for FFTW... " >&6; }
37766 { $as_echo "$as_me:$LINENO: result: " >&5
37767$as_echo "" >&6; }
37768 failed=0
37769 passed=0
37770 if test "${ac_cv_header_fftw3_h+set}" = set; then
37771 { $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37772$as_echo_n "checking for fftw3.h... " >&6; }
37773if test "${ac_cv_header_fftw3_h+set}" = set; then
37774 $as_echo_n "(cached) " >&6
37775fi
37776{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37777$as_echo "$ac_cv_header_fftw3_h" >&6; }
37778else
37779 # Is the header compilable?
37780{ $as_echo "$as_me:$LINENO: checking fftw3.h usability" >&5
37781$as_echo_n "checking fftw3.h usability... " >&6; }
37782cat >conftest.$ac_ext <<_ACEOF
37783/* confdefs.h. */
37784_ACEOF
37785cat confdefs.h >>conftest.$ac_ext
37786cat >>conftest.$ac_ext <<_ACEOF
37787/* end confdefs.h. */
37788$ac_includes_default
37789#include <fftw3.h>
37790_ACEOF
37791rm -f conftest.$ac_objext
37792if { (ac_try="$ac_compile"
37793case "(($ac_try" in
37794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37795 *) ac_try_echo=$ac_try;;
37796esac
37797eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37798$as_echo "$ac_try_echo") >&5
37799 (eval "$ac_compile") 2>conftest.er1
37800 ac_status=$?
37801 grep -v '^ *+' conftest.er1 >conftest.err
37802 rm -f conftest.er1
37803 cat conftest.err >&5
37804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37805 (exit $ac_status); } && {
37806 test -z "$ac_c_werror_flag" ||
37807 test ! -s conftest.err
37808 } && test -s conftest.$ac_objext; then
37809 ac_header_compiler=yes
37810else
37811 $as_echo "$as_me: failed program was:" >&5
37812sed 's/^/| /' conftest.$ac_ext >&5
37813
37814 ac_header_compiler=no
37815fi
37816
37817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37818{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37819$as_echo "$ac_header_compiler" >&6; }
37820
37821# Is the header present?
37822{ $as_echo "$as_me:$LINENO: checking fftw3.h presence" >&5
37823$as_echo_n "checking fftw3.h presence... " >&6; }
37824cat >conftest.$ac_ext <<_ACEOF
37825/* confdefs.h. */
37826_ACEOF
37827cat confdefs.h >>conftest.$ac_ext
37828cat >>conftest.$ac_ext <<_ACEOF
37829/* end confdefs.h. */
37830#include <fftw3.h>
37831_ACEOF
37832if { (ac_try="$ac_cpp conftest.$ac_ext"
37833case "(($ac_try" in
37834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37835 *) ac_try_echo=$ac_try;;
37836esac
37837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37838$as_echo "$ac_try_echo") >&5
37839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37840 ac_status=$?
37841 grep -v '^ *+' conftest.er1 >conftest.err
37842 rm -f conftest.er1
37843 cat conftest.err >&5
37844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37845 (exit $ac_status); } >/dev/null && {
37846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37847 test ! -s conftest.err
37848 }; then
37849 ac_header_preproc=yes
37850else
37851 $as_echo "$as_me: failed program was:" >&5
37852sed 's/^/| /' conftest.$ac_ext >&5
37853
37854 ac_header_preproc=no
37855fi
37856
37857rm -f conftest.err conftest.$ac_ext
37858{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37859$as_echo "$ac_header_preproc" >&6; }
37860
37861# So? What about this header?
37862case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37863 yes:no: )
37864 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
37865$as_echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37866 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
37867$as_echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
37868 ac_header_preproc=yes
37869 ;;
37870 no:yes:* )
37871 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
37872$as_echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
37873 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5
37874$as_echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;}
37875 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
37876$as_echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
37877 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5
37878$as_echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;}
37879 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
37880$as_echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
37881 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
37882$as_echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
37883 ( cat <<\_ASBOX
37884## ----------------------------------------- ##
37885## Report this to http://www.imagemagick.org ##
37886## ----------------------------------------- ##
37887_ASBOX
37888 ) | sed "s/^/$as_me: WARNING: /" >&2
37889 ;;
37890esac
37891{ $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37892$as_echo_n "checking for fftw3.h... " >&6; }
37893if test "${ac_cv_header_fftw3_h+set}" = set; then
37894 $as_echo_n "(cached) " >&6
37895else
37896 ac_cv_header_fftw3_h=$ac_header_preproc
37897fi
37898{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37899$as_echo "$ac_cv_header_fftw3_h" >&6; }
37900
37901fi
37902if test "x$ac_cv_header_fftw3_h" = x""yes; then
37903 passed=`expr $passed + 1`
37904else
37905 failed=`expr $failed + 1`
37906fi
37907
37908
37909 { $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
37910$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
37911if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
37912 $as_echo_n "(cached) " >&6
37913else
37914 ac_check_lib_save_LIBS=$LIBS
37915LIBS="-lfftw3 $LIBS"
37916cat >conftest.$ac_ext <<_ACEOF
37917/* confdefs.h. */
37918_ACEOF
37919cat confdefs.h >>conftest.$ac_ext
37920cat >>conftest.$ac_ext <<_ACEOF
37921/* end confdefs.h. */
37922
37923/* Override any GCC internal prototype to avoid an error.
37924 Use char because int might match the return type of a GCC
37925 builtin and then its argument prototype would still apply. */
37926#ifdef __cplusplus
37927extern "C"
37928#endif
37929char fftw_execute ();
37930int
37931main ()
37932{
37933return fftw_execute ();
37934 ;
37935 return 0;
37936}
37937_ACEOF
37938rm -f conftest.$ac_objext conftest$ac_exeext
37939if { (ac_try="$ac_link"
37940case "(($ac_try" in
37941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37942 *) ac_try_echo=$ac_try;;
37943esac
37944eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37945$as_echo "$ac_try_echo") >&5
37946 (eval "$ac_link") 2>conftest.er1
37947 ac_status=$?
37948 grep -v '^ *+' conftest.er1 >conftest.err
37949 rm -f conftest.er1
37950 cat conftest.err >&5
37951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37952 (exit $ac_status); } && {
37953 test -z "$ac_c_werror_flag" ||
37954 test ! -s conftest.err
37955 } && test -s conftest$ac_exeext && {
37956 test "$cross_compiling" = yes ||
37957 $as_test_x conftest$ac_exeext
37958 }; then
37959 ac_cv_lib_fftw3_fftw_execute=yes
37960else
37961 $as_echo "$as_me: failed program was:" >&5
37962sed 's/^/| /' conftest.$ac_ext >&5
37963
37964 ac_cv_lib_fftw3_fftw_execute=no
37965fi
37966
37967rm -rf conftest.dSYM
37968rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37969 conftest$ac_exeext conftest.$ac_ext
37970LIBS=$ac_check_lib_save_LIBS
37971fi
37972{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
37973$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
37974if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then
37975 passed=`expr $passed + 1`
37976else
37977 failed=`expr $failed + 1`
37978fi
37979
37980 { $as_echo "$as_me:$LINENO: checking if FFTW package is complete" >&5
37981$as_echo_n "checking if FFTW package is complete... " >&6; }
37982 if test $passed -gt 0; then
37983 if test $failed -gt 0; then
37984 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37985$as_echo "no -- some components failed test" >&6; }
37986 have_fftw='no (failed tests)'
37987 else
37988 FFTW_LIBS='-lfftw3'
37989 LIBS="$FFTW_LIBS $LIBS"
37990
37991cat >>confdefs.h <<\_ACEOF
37992#define FFTW_DELEGATE 1
37993_ACEOF
37994
37995 { $as_echo "$as_me:$LINENO: result: yes" >&5
37996$as_echo "yes" >&6; }
37997 have_fftw='yes'
37998 fi
37999 else
38000 { $as_echo "$as_me:$LINENO: result: no" >&5
38001$as_echo "no" >&6; }
38002 fi
38003fi
38004 if test "$have_fftw" = 'yes'; then
38005 FFTW_DELEGATE_TRUE=
38006 FFTW_DELEGATE_FALSE='#'
38007else
38008 FFTW_DELEGATE_TRUE='#'
38009 FFTW_DELEGATE_FALSE=
38010fi
38011
38012
38013
38014
38015#
38016# Check for FlashPIX delegate library.
38017#
38018
38019# Check whether --with-fpx was given.
38020if test "${with_fpx+set}" = set; then
38021 withval=$with_fpx; with_fpx=$withval
38022else
38023 with_fpx='yes'
38024fi
38025
38026
38027if test "$with_fpx" != 'yes'; then
38028 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
38029fi
38030
38031have_fpx='no'
38032FPX_LIBS=''
38033if test "$with_fpx" != 'no'; then
38034 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38035$as_echo "-------------------------------------------------------------" >&6; }
38036 { $as_echo "$as_me:$LINENO: checking for FlashPIX" >&5
38037$as_echo_n "checking for FlashPIX... " >&6; }
38038 { $as_echo "$as_me:$LINENO: result: " >&5
38039$as_echo "" >&6; }
38040 failed=0
38041 passed=0
38042 ac_ext=cpp
38043ac_cpp='$CXXCPP $CPPFLAGS'
38044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38047
38048
38049if test "${ac_cv_header_fpxlib_h+set}" = set; then
38050 { $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
38051$as_echo_n "checking for fpxlib.h... " >&6; }
38052if test "${ac_cv_header_fpxlib_h+set}" = set; then
38053 $as_echo_n "(cached) " >&6
38054fi
38055{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
38056$as_echo "$ac_cv_header_fpxlib_h" >&6; }
38057else
38058 # Is the header compilable?
38059{ $as_echo "$as_me:$LINENO: checking fpxlib.h usability" >&5
38060$as_echo_n "checking fpxlib.h usability... " >&6; }
38061cat >conftest.$ac_ext <<_ACEOF
38062/* confdefs.h. */
38063_ACEOF
38064cat confdefs.h >>conftest.$ac_ext
38065cat >>conftest.$ac_ext <<_ACEOF
38066/* end confdefs.h. */
38067$ac_includes_default
38068#include <fpxlib.h>
38069_ACEOF
38070rm -f conftest.$ac_objext
38071if { (ac_try="$ac_compile"
38072case "(($ac_try" in
38073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38074 *) ac_try_echo=$ac_try;;
38075esac
38076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38077$as_echo "$ac_try_echo") >&5
38078 (eval "$ac_compile") 2>conftest.er1
38079 ac_status=$?
38080 grep -v '^ *+' conftest.er1 >conftest.err
38081 rm -f conftest.er1
38082 cat conftest.err >&5
38083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38084 (exit $ac_status); } && {
38085 test -z "$ac_cxx_werror_flag" ||
38086 test ! -s conftest.err
38087 } && test -s conftest.$ac_objext; then
38088 ac_header_compiler=yes
38089else
38090 $as_echo "$as_me: failed program was:" >&5
38091sed 's/^/| /' conftest.$ac_ext >&5
38092
38093 ac_header_compiler=no
38094fi
38095
38096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38097{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38098$as_echo "$ac_header_compiler" >&6; }
38099
38100# Is the header present?
38101{ $as_echo "$as_me:$LINENO: checking fpxlib.h presence" >&5
38102$as_echo_n "checking fpxlib.h presence... " >&6; }
38103cat >conftest.$ac_ext <<_ACEOF
38104/* confdefs.h. */
38105_ACEOF
38106cat confdefs.h >>conftest.$ac_ext
38107cat >>conftest.$ac_ext <<_ACEOF
38108/* end confdefs.h. */
38109#include <fpxlib.h>
38110_ACEOF
38111if { (ac_try="$ac_cpp conftest.$ac_ext"
38112case "(($ac_try" in
38113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38114 *) ac_try_echo=$ac_try;;
38115esac
38116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38117$as_echo "$ac_try_echo") >&5
38118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38119 ac_status=$?
38120 grep -v '^ *+' conftest.er1 >conftest.err
38121 rm -f conftest.er1
38122 cat conftest.err >&5
38123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38124 (exit $ac_status); } >/dev/null && {
38125 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
38126 test ! -s conftest.err
38127 }; then
38128 ac_header_preproc=yes
38129else
38130 $as_echo "$as_me: failed program was:" >&5
38131sed 's/^/| /' conftest.$ac_ext >&5
38132
38133 ac_header_preproc=no
38134fi
38135
38136rm -f conftest.err conftest.$ac_ext
38137{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38138$as_echo "$ac_header_preproc" >&6; }
38139
38140# So? What about this header?
38141case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38142 yes:no: )
38143 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
38144$as_echo "$as_me: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38145 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the compiler's result" >&5
38146$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the compiler's result" >&2;}
38147 ac_header_preproc=yes
38148 ;;
38149 no:yes:* )
38150 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: present but cannot be compiled" >&5
38151$as_echo "$as_me: WARNING: fpxlib.h: present but cannot be compiled" >&2;}
38152 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: check for missing prerequisite headers?" >&5
38153$as_echo "$as_me: WARNING: fpxlib.h: check for missing prerequisite headers?" >&2;}
38154 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: see the Autoconf documentation" >&5
38155$as_echo "$as_me: WARNING: fpxlib.h: see the Autoconf documentation" >&2;}
38156 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&5
38157$as_echo "$as_me: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
38158 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&5
38159$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&2;}
38160 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&5
38161$as_echo "$as_me: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&2;}
38162 ( cat <<\_ASBOX
38163## ----------------------------------------- ##
38164## Report this to http://www.imagemagick.org ##
38165## ----------------------------------------- ##
38166_ASBOX
38167 ) | sed "s/^/$as_me: WARNING: /" >&2
38168 ;;
38169esac
38170{ $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
38171$as_echo_n "checking for fpxlib.h... " >&6; }
38172if test "${ac_cv_header_fpxlib_h+set}" = set; then
38173 $as_echo_n "(cached) " >&6
38174else
38175 ac_cv_header_fpxlib_h=$ac_header_preproc
38176fi
38177{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
38178$as_echo "$ac_cv_header_fpxlib_h" >&6; }
38179
38180fi
38181if test "x$ac_cv_header_fpxlib_h" = x""yes; then
38182 passed=`expr $passed + 1`
38183else
38184 failed=`expr $failed + 1`
38185fi
38186
38187
38188 { $as_echo "$as_me:$LINENO: checking for FPX_OpenImageByFilename in -lfpx" >&5
38189$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
38190if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then
38191 $as_echo_n "(cached) " >&6
38192else
38193 ac_check_lib_save_LIBS=$LIBS
38194LIBS="-lfpx $LIBS"
38195cat >conftest.$ac_ext <<_ACEOF
38196/* confdefs.h. */
38197_ACEOF
38198cat confdefs.h >>conftest.$ac_ext
38199cat >>conftest.$ac_ext <<_ACEOF
38200/* end confdefs.h. */
38201
38202/* Override any GCC internal prototype to avoid an error.
38203 Use char because int might match the return type of a GCC
38204 builtin and then its argument prototype would still apply. */
38205#ifdef __cplusplus
38206extern "C"
38207#endif
38208char FPX_OpenImageByFilename ();
38209int
38210main ()
38211{
38212return FPX_OpenImageByFilename ();
38213 ;
38214 return 0;
38215}
38216_ACEOF
38217rm -f conftest.$ac_objext conftest$ac_exeext
38218if { (ac_try="$ac_link"
38219case "(($ac_try" in
38220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38221 *) ac_try_echo=$ac_try;;
38222esac
38223eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38224$as_echo "$ac_try_echo") >&5
38225 (eval "$ac_link") 2>conftest.er1
38226 ac_status=$?
38227 grep -v '^ *+' conftest.er1 >conftest.err
38228 rm -f conftest.er1
38229 cat conftest.err >&5
38230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38231 (exit $ac_status); } && {
38232 test -z "$ac_cxx_werror_flag" ||
38233 test ! -s conftest.err
38234 } && test -s conftest$ac_exeext && {
38235 test "$cross_compiling" = yes ||
38236 $as_test_x conftest$ac_exeext
38237 }; then
38238 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
38239else
38240 $as_echo "$as_me: failed program was:" >&5
38241sed 's/^/| /' conftest.$ac_ext >&5
38242
38243 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
38244fi
38245
38246rm -rf conftest.dSYM
38247rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38248 conftest$ac_exeext conftest.$ac_ext
38249LIBS=$ac_check_lib_save_LIBS
38250fi
38251{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
38252$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
38253if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then
38254 passed=`expr $passed + 1`
38255else
38256 failed=`expr $failed + 1`
38257fi
38258
38259 ac_ext=c
38260ac_cpp='$CPP $CPPFLAGS'
38261ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38262ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38263ac_compiler_gnu=$ac_cv_c_compiler_gnu
38264
38265 { $as_echo "$as_me:$LINENO: checking if FlashPIX package is complete" >&5
38266$as_echo_n "checking if FlashPIX package is complete... " >&6; }
38267 if test $passed -gt 0; then
38268 if test $failed -gt 0; then
38269 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38270$as_echo "no -- some components failed test" >&6; }
38271 have_fpx='no (failed tests)'
38272 else
38273 FPX_LIBS='-lfpx'
38274
38275cat >>confdefs.h <<\_ACEOF
38276#define FPX_DELEGATE 1
38277_ACEOF
38278
38279 { $as_echo "$as_me:$LINENO: result: yes" >&5
38280$as_echo "yes" >&6; }
38281 have_fpx='yes'
38282 PERLMAINCC="$CXX"
38283 fi
38284 else
38285 { $as_echo "$as_me:$LINENO: result: no" >&5
38286$as_echo "no" >&6; }
38287 fi
38288fi
38289 if test "$have_fpx" = 'yes'; then
38290 FPX_DELEGATE_TRUE=
38291 FPX_DELEGATE_FALSE='#'
38292else
38293 FPX_DELEGATE_TRUE='#'
38294 FPX_DELEGATE_FALSE=
38295fi
38296
38297
38298
38299
38300#
38301# Check for fontconfig delegate library.
38302#
38303
38304# Check whether --with-fontconfig was given.
38305if test "${with_fontconfig+set}" = set; then
38306 withval=$with_fontconfig; with_fontconfig=$withval
38307else
38308 with_fontconfig=$have_x
38309fi
38310
38311
38312if test "$with_fontconfig" != 'yes'; then
38313 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
38314fi
38315
38316have_fontconfig='no'
38317FONTCONFIG_CFLAGS=""
38318FONTCONFIG_LIBS=""
38319FONTCONFIG_PKG=""
38320if test "x$with_fontconfig" = "xyes"; then
38321 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38322$as_echo "-------------------------------------------------------------" >&6; }
38323
38324pkg_failed=no
38325{ $as_echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
38326$as_echo_n "checking for FONTCONFIG... " >&6; }
38327
38328if test -n "$FONTCONFIG_CFLAGS"; then
38329 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
38330 elif test -n "$PKG_CONFIG"; then
38331 if test -n "$PKG_CONFIG" && \
38332 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
38333 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
38334 ac_status=$?
38335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38336 (exit $ac_status); }; then
38337 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
38338else
38339 pkg_failed=yes
38340fi
38341 else
38342 pkg_failed=untried
38343fi
38344if test -n "$FONTCONFIG_LIBS"; then
38345 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
38346 elif test -n "$PKG_CONFIG"; then
38347 if test -n "$PKG_CONFIG" && \
38348 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
38349 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
38350 ac_status=$?
38351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38352 (exit $ac_status); }; then
38353 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
38354else
38355 pkg_failed=yes
38356fi
38357 else
38358 pkg_failed=untried
38359fi
38360
38361
38362
38363if test $pkg_failed = yes; then
38364
38365if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38366 _pkg_short_errors_supported=yes
38367else
38368 _pkg_short_errors_supported=no
38369fi
38370 if test $_pkg_short_errors_supported = yes; then
38371 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
38372 else
38373 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
38374 fi
38375 # Put the nasty error message in config.log where it belongs
38376 echo "$FONTCONFIG_PKG_ERRORS" >&5
38377
38378 { $as_echo "$as_me:$LINENO: result: no" >&5
38379$as_echo "no" >&6; }
38380 have_fontconfig=no
38381elif test $pkg_failed = untried; then
38382 have_fontconfig=no
38383else
38384 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
38385 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
38386 { $as_echo "$as_me:$LINENO: result: yes" >&5
38387$as_echo "yes" >&6; }
38388 have_fontconfig=yes
38389fi
38390 { $as_echo "$as_me:$LINENO: result: " >&5
38391$as_echo "" >&6; }
38392fi
38393
38394if test "$have_fontconfig" = 'yes'; then
38395
38396cat >>confdefs.h <<\_ACEOF
38397#define FONTCONFIG_DELEGATE 1
38398_ACEOF
38399
38400 if test "$with_modules" = 'no'; then
38401 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
38402 fi
38403fi
38404
38405 if test "$have_fontconfig" = 'yes'; then
38406 FONTCONFIG_DELEGATE_TRUE=
38407 FONTCONFIG_DELEGATE_FALSE='#'
38408else
38409 FONTCONFIG_DELEGATE_TRUE='#'
38410 FONTCONFIG_DELEGATE_FALSE=
38411fi
38412
38413
38414
38415
38416
38417#
38418# Check for freetype delegate library.
38419#
38420
38421# Check whether --with-freetype was given.
38422if test "${with_freetype+set}" = set; then
38423 withval=$with_freetype; with_freetype=$withval
38424else
38425 with_freetype='yes'
38426fi
38427
38428
38429
38430if test "$with_freetype" != 'yes'; then
38431 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
38432fi
38433
38434have_freetype='no'
38435FREETYPE_LIBS=''
38436if test "$with_freetype" != 'no'; then
38437 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38438$as_echo "-------------------------------------------------------------" >&6; }
38439 { $as_echo "$as_me:$LINENO: checking for FreeType 2.0" >&5
38440$as_echo_n "checking for FreeType 2.0... " >&6; }
38441 { $as_echo "$as_me:$LINENO: result: " >&5
38442$as_echo "" >&6; }
38443 failed=0
38444 passed=0
cristy66291112009-10-03 22:44:36 +000038445 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000038446 PERSIST_CPPFLAGS="$CPPFLAGS"
38447 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
38448 :
38449 else
38450 freetype_config=''
38451 for ac_prog in freetype-config
38452do
38453 # Extract the first word of "$ac_prog", so it can be a program name with args.
38454set dummy $ac_prog; ac_word=$2
38455{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38456$as_echo_n "checking for $ac_word... " >&6; }
38457if test "${ac_cv_prog_freetype_config+set}" = set; then
38458 $as_echo_n "(cached) " >&6
38459else
38460 if test -n "$freetype_config"; then
38461 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
38462else
38463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38464for as_dir in $PATH
38465do
38466 IFS=$as_save_IFS
38467 test -z "$as_dir" && as_dir=.
38468 for ac_exec_ext in '' $ac_executable_extensions; do
38469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38470 ac_cv_prog_freetype_config="$ac_prog"
38471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38472 break 2
38473 fi
38474done
38475done
38476IFS=$as_save_IFS
38477
38478fi
38479fi
38480freetype_config=$ac_cv_prog_freetype_config
38481if test -n "$freetype_config"; then
38482 { $as_echo "$as_me:$LINENO: result: $freetype_config" >&5
38483$as_echo "$freetype_config" >&6; }
38484else
38485 { $as_echo "$as_me:$LINENO: result: no" >&5
38486$as_echo "no" >&6; }
38487fi
38488
38489
38490 test -n "$freetype_config" && break
38491done
38492 if test -n "$freetype_config"; then
38493 freetype_cflags=`$freetype_config --cflags`
38494 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000038495 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000038496 CPPFLAGS="$freetype_cflags $CPPFLAGS"
38497 fi
38498 fi
38499
38500 if test "$FREETYPE_LIBS" = ''; then
38501 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
38502$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
38503if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
38504 $as_echo_n "(cached) " >&6
38505else
38506 ac_check_lib_save_LIBS=$LIBS
38507LIBS="-lfreetype $LIBS"
38508cat >conftest.$ac_ext <<_ACEOF
38509/* confdefs.h. */
38510_ACEOF
38511cat confdefs.h >>conftest.$ac_ext
38512cat >>conftest.$ac_ext <<_ACEOF
38513/* end confdefs.h. */
38514
38515/* Override any GCC internal prototype to avoid an error.
38516 Use char because int might match the return type of a GCC
38517 builtin and then its argument prototype would still apply. */
38518#ifdef __cplusplus
38519extern "C"
38520#endif
38521char FT_Init_FreeType ();
38522int
38523main ()
38524{
38525return FT_Init_FreeType ();
38526 ;
38527 return 0;
38528}
38529_ACEOF
38530rm -f conftest.$ac_objext conftest$ac_exeext
38531if { (ac_try="$ac_link"
38532case "(($ac_try" in
38533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38534 *) ac_try_echo=$ac_try;;
38535esac
38536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38537$as_echo "$ac_try_echo") >&5
38538 (eval "$ac_link") 2>conftest.er1
38539 ac_status=$?
38540 grep -v '^ *+' conftest.er1 >conftest.err
38541 rm -f conftest.er1
38542 cat conftest.err >&5
38543 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38544 (exit $ac_status); } && {
38545 test -z "$ac_c_werror_flag" ||
38546 test ! -s conftest.err
38547 } && test -s conftest$ac_exeext && {
38548 test "$cross_compiling" = yes ||
38549 $as_test_x conftest$ac_exeext
38550 }; then
38551 ac_cv_lib_freetype_FT_Init_FreeType=yes
38552else
38553 $as_echo "$as_me: failed program was:" >&5
38554sed 's/^/| /' conftest.$ac_ext >&5
38555
38556 ac_cv_lib_freetype_FT_Init_FreeType=no
38557fi
38558
38559rm -rf conftest.dSYM
38560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38561 conftest$ac_exeext conftest.$ac_ext
38562LIBS=$ac_check_lib_save_LIBS
38563fi
38564{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
38565$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
38566if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
38567 FREETYPE_LIBS='-lfreetype'
38568fi
38569
38570 if test "$FREETYPE_LIBS" != ''; then
38571 passed=`expr $passed + 1`
38572 else
38573 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000038574 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000038575 fi
38576 fi
38577
38578 if test "${ac_cv_header_ft2build_h+set}" = set; then
38579 { $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
38580$as_echo_n "checking for ft2build.h... " >&6; }
38581if test "${ac_cv_header_ft2build_h+set}" = set; then
38582 $as_echo_n "(cached) " >&6
38583fi
38584{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
38585$as_echo "$ac_cv_header_ft2build_h" >&6; }
38586else
38587 # Is the header compilable?
38588{ $as_echo "$as_me:$LINENO: checking ft2build.h usability" >&5
38589$as_echo_n "checking ft2build.h usability... " >&6; }
38590cat >conftest.$ac_ext <<_ACEOF
38591/* confdefs.h. */
38592_ACEOF
38593cat confdefs.h >>conftest.$ac_ext
38594cat >>conftest.$ac_ext <<_ACEOF
38595/* end confdefs.h. */
38596$ac_includes_default
38597#include <ft2build.h>
38598_ACEOF
38599rm -f conftest.$ac_objext
38600if { (ac_try="$ac_compile"
38601case "(($ac_try" in
38602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38603 *) ac_try_echo=$ac_try;;
38604esac
38605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38606$as_echo "$ac_try_echo") >&5
38607 (eval "$ac_compile") 2>conftest.er1
38608 ac_status=$?
38609 grep -v '^ *+' conftest.er1 >conftest.err
38610 rm -f conftest.er1
38611 cat conftest.err >&5
38612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38613 (exit $ac_status); } && {
38614 test -z "$ac_c_werror_flag" ||
38615 test ! -s conftest.err
38616 } && test -s conftest.$ac_objext; then
38617 ac_header_compiler=yes
38618else
38619 $as_echo "$as_me: failed program was:" >&5
38620sed 's/^/| /' conftest.$ac_ext >&5
38621
38622 ac_header_compiler=no
38623fi
38624
38625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38626{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38627$as_echo "$ac_header_compiler" >&6; }
38628
38629# Is the header present?
38630{ $as_echo "$as_me:$LINENO: checking ft2build.h presence" >&5
38631$as_echo_n "checking ft2build.h presence... " >&6; }
38632cat >conftest.$ac_ext <<_ACEOF
38633/* confdefs.h. */
38634_ACEOF
38635cat confdefs.h >>conftest.$ac_ext
38636cat >>conftest.$ac_ext <<_ACEOF
38637/* end confdefs.h. */
38638#include <ft2build.h>
38639_ACEOF
38640if { (ac_try="$ac_cpp conftest.$ac_ext"
38641case "(($ac_try" in
38642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38643 *) ac_try_echo=$ac_try;;
38644esac
38645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38646$as_echo "$ac_try_echo") >&5
38647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38648 ac_status=$?
38649 grep -v '^ *+' conftest.er1 >conftest.err
38650 rm -f conftest.er1
38651 cat conftest.err >&5
38652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38653 (exit $ac_status); } >/dev/null && {
38654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38655 test ! -s conftest.err
38656 }; then
38657 ac_header_preproc=yes
38658else
38659 $as_echo "$as_me: failed program was:" >&5
38660sed 's/^/| /' conftest.$ac_ext >&5
38661
38662 ac_header_preproc=no
38663fi
38664
38665rm -f conftest.err conftest.$ac_ext
38666{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38667$as_echo "$ac_header_preproc" >&6; }
38668
38669# So? What about this header?
38670case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38671 yes:no: )
38672 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
38673$as_echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38674 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
38675$as_echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
38676 ac_header_preproc=yes
38677 ;;
38678 no:yes:* )
38679 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
38680$as_echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
38681 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
38682$as_echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
38683 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
38684$as_echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
38685 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
38686$as_echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
38687 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
38688$as_echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
38689 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
38690$as_echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
38691 ( cat <<\_ASBOX
38692## ----------------------------------------- ##
38693## Report this to http://www.imagemagick.org ##
38694## ----------------------------------------- ##
38695_ASBOX
38696 ) | sed "s/^/$as_me: WARNING: /" >&2
38697 ;;
38698esac
38699{ $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
38700$as_echo_n "checking for ft2build.h... " >&6; }
38701if test "${ac_cv_header_ft2build_h+set}" = set; then
38702 $as_echo_n "(cached) " >&6
38703else
38704 ac_cv_header_ft2build_h=$ac_header_preproc
38705fi
38706{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
38707$as_echo "$ac_cv_header_ft2build_h" >&6; }
38708
38709fi
38710if test "x$ac_cv_header_ft2build_h" = x""yes; then
38711 FT2BUILD_H='#include <ft2build.h>'
38712else
38713 ft2build=''
38714fi
38715
38716
38717 { $as_echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
38718$as_echo_n "checking for freetype/freetype.h... " >&6; }
38719if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
38720 $as_echo_n "(cached) " >&6
38721else
38722 cat >conftest.$ac_ext <<_ACEOF
38723/* confdefs.h. */
38724_ACEOF
38725cat confdefs.h >>conftest.$ac_ext
38726cat >>conftest.$ac_ext <<_ACEOF
38727/* end confdefs.h. */
38728$FT2BUILD_H
38729
38730#include <freetype/freetype.h>
38731_ACEOF
38732rm -f conftest.$ac_objext
38733if { (ac_try="$ac_compile"
38734case "(($ac_try" in
38735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38736 *) ac_try_echo=$ac_try;;
38737esac
38738eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38739$as_echo "$ac_try_echo") >&5
38740 (eval "$ac_compile") 2>conftest.er1
38741 ac_status=$?
38742 grep -v '^ *+' conftest.er1 >conftest.err
38743 rm -f conftest.er1
38744 cat conftest.err >&5
38745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38746 (exit $ac_status); } && {
38747 test -z "$ac_c_werror_flag" ||
38748 test ! -s conftest.err
38749 } && test -s conftest.$ac_objext; then
38750 ac_cv_header_freetype_freetype_h=yes
38751else
38752 $as_echo "$as_me: failed program was:" >&5
38753sed 's/^/| /' conftest.$ac_ext >&5
38754
38755 ac_cv_header_freetype_freetype_h=no
38756fi
38757
38758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38759fi
38760{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
38761$as_echo "$ac_cv_header_freetype_freetype_h" >&6; }
38762if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then
38763 have_freetype_h='yes'
38764else
38765 have_freetype_h='no'
38766fi
38767
38768
38769 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
38770 passed=`expr $passed + 1`
38771 else
38772 failed=`expr $failed + 1`
38773 CPPFLAGS="$PERSIST_CPPFLAGS"
38774 fi
38775
38776 { $as_echo "$as_me:$LINENO: checking if FreeType package is complete" >&5
38777$as_echo_n "checking if FreeType package is complete... " >&6; }
38778 if test $passed -gt 0; then
38779 if test $failed -gt 0; then
38780 FREETYPE_LIBS=''
38781 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38782$as_echo "no -- some components failed test" >&6; }
38783 have_freetype='no (failed tests)'
38784 else
38785 LIBS="$FREETYPE_LIBS $LIBS"
38786
38787cat >>confdefs.h <<\_ACEOF
38788#define FREETYPE_DELEGATE 1
38789_ACEOF
38790
38791 if test "$ac_cv_header_ft2build_h" = 'yes'; then
38792
38793cat >>confdefs.h <<\_ACEOF
38794#define HAVE_FT2BUILD_H 1
38795_ACEOF
38796
38797 fi
38798 { $as_echo "$as_me:$LINENO: result: yes" >&5
38799$as_echo "yes" >&6; }
38800 have_freetype='yes'
38801 fi
38802 else
38803 { $as_echo "$as_me:$LINENO: result: no" >&5
38804$as_echo "no" >&6; }
38805 fi
38806fi
38807 if test "$have_freetype" = 'yes'; then
38808 FREETYPE_DELEGATE_TRUE=
38809 FREETYPE_DELEGATE_FALSE='#'
38810else
38811 FREETYPE_DELEGATE_TRUE='#'
38812 FREETYPE_DELEGATE_FALSE=
38813fi
38814
38815
38816
38817
38818
38819#
38820# Check for Ghostscript library or framework.
38821#
38822# Test for iapi.h & test for gsapi_new_instance in -lgs
38823# or -framework Ghostscript
38824
38825
38826# Check whether --with-gslib was given.
38827if test "${with_gslib+set}" = set; then
38828 withval=$with_gslib; with_gslib=$withval
38829else
38830 with_gslib='no'
38831fi
38832
38833
cristyb7931f12009-09-25 10:22:21 +000038834gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000038835if test "$with_gslib" != 'yes'; then
38836 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
38837fi
38838
38839have_gslib='no'
38840GS_LIBS=''
38841if test "$with_gslib" != 'no'; then
38842 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38843$as_echo "-------------------------------------------------------------" >&6; }
38844 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
38845$as_echo_n "checking for Ghostscript... " >&6; }
38846 { $as_echo "$as_me:$LINENO: result: " >&5
38847$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000038848 framework=0
cristy3ed852e2009-09-05 21:47:34 +000038849 failed=0
38850 passed=0
38851 if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38852 { $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38853$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38854if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38855 $as_echo_n "(cached) " >&6
38856fi
38857{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38858$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38859else
38860 # Is the header compilable?
38861{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h usability" >&5
38862$as_echo_n "checking ghostscript/iapi.h usability... " >&6; }
38863cat >conftest.$ac_ext <<_ACEOF
38864/* confdefs.h. */
38865_ACEOF
38866cat confdefs.h >>conftest.$ac_ext
38867cat >>conftest.$ac_ext <<_ACEOF
38868/* end confdefs.h. */
38869$ac_includes_default
38870#include <ghostscript/iapi.h>
38871_ACEOF
38872rm -f conftest.$ac_objext
38873if { (ac_try="$ac_compile"
38874case "(($ac_try" in
38875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38876 *) ac_try_echo=$ac_try;;
38877esac
38878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38879$as_echo "$ac_try_echo") >&5
38880 (eval "$ac_compile") 2>conftest.er1
38881 ac_status=$?
38882 grep -v '^ *+' conftest.er1 >conftest.err
38883 rm -f conftest.er1
38884 cat conftest.err >&5
38885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38886 (exit $ac_status); } && {
38887 test -z "$ac_c_werror_flag" ||
38888 test ! -s conftest.err
38889 } && test -s conftest.$ac_objext; then
38890 ac_header_compiler=yes
38891else
38892 $as_echo "$as_me: failed program was:" >&5
38893sed 's/^/| /' conftest.$ac_ext >&5
38894
38895 ac_header_compiler=no
38896fi
38897
38898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38899{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38900$as_echo "$ac_header_compiler" >&6; }
38901
38902# Is the header present?
38903{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h presence" >&5
38904$as_echo_n "checking ghostscript/iapi.h presence... " >&6; }
38905cat >conftest.$ac_ext <<_ACEOF
38906/* confdefs.h. */
38907_ACEOF
38908cat confdefs.h >>conftest.$ac_ext
38909cat >>conftest.$ac_ext <<_ACEOF
38910/* end confdefs.h. */
38911#include <ghostscript/iapi.h>
38912_ACEOF
38913if { (ac_try="$ac_cpp conftest.$ac_ext"
38914case "(($ac_try" in
38915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38916 *) ac_try_echo=$ac_try;;
38917esac
38918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38919$as_echo "$ac_try_echo") >&5
38920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38921 ac_status=$?
38922 grep -v '^ *+' conftest.er1 >conftest.err
38923 rm -f conftest.er1
38924 cat conftest.err >&5
38925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38926 (exit $ac_status); } >/dev/null && {
38927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38928 test ! -s conftest.err
38929 }; then
38930 ac_header_preproc=yes
38931else
38932 $as_echo "$as_me: failed program was:" >&5
38933sed 's/^/| /' conftest.$ac_ext >&5
38934
38935 ac_header_preproc=no
38936fi
38937
38938rm -f conftest.err conftest.$ac_ext
38939{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38940$as_echo "$ac_header_preproc" >&6; }
38941
38942# So? What about this header?
38943case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38944 yes:no: )
38945 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
38946$as_echo "$as_me: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38947 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&5
38948$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&2;}
38949 ac_header_preproc=yes
38950 ;;
38951 no:yes:* )
38952 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&5
38953$as_echo "$as_me: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&2;}
38954 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&5
38955$as_echo "$as_me: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&2;}
38956 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&5
38957$as_echo "$as_me: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&2;}
38958 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&5
38959$as_echo "$as_me: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
38960 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&5
38961$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&2;}
38962 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&5
38963$as_echo "$as_me: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&2;}
38964 ( cat <<\_ASBOX
38965## ----------------------------------------- ##
38966## Report this to http://www.imagemagick.org ##
38967## ----------------------------------------- ##
38968_ASBOX
38969 ) | sed "s/^/$as_me: WARNING: /" >&2
38970 ;;
38971esac
38972{ $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38973$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38974if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38975 $as_echo_n "(cached) " >&6
38976else
38977 ac_cv_header_ghostscript_iapi_h=$ac_header_preproc
38978fi
38979{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38980$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38981
38982fi
38983if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then
38984 passed=`expr $passed + 1`
38985else
38986 failed=`expr $failed + 1`
38987fi
38988
38989
38990 if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38991 { $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
38992$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
38993if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38994 $as_echo_n "(cached) " >&6
38995fi
38996{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
38997$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
38998else
38999 # Is the header compilable?
39000{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h usability" >&5
39001$as_echo_n "checking ghostscript/ierrors.h usability... " >&6; }
39002cat >conftest.$ac_ext <<_ACEOF
39003/* confdefs.h. */
39004_ACEOF
39005cat confdefs.h >>conftest.$ac_ext
39006cat >>conftest.$ac_ext <<_ACEOF
39007/* end confdefs.h. */
39008$ac_includes_default
39009#include <ghostscript/ierrors.h>
39010_ACEOF
39011rm -f conftest.$ac_objext
39012if { (ac_try="$ac_compile"
39013case "(($ac_try" in
39014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39015 *) ac_try_echo=$ac_try;;
39016esac
39017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39018$as_echo "$ac_try_echo") >&5
39019 (eval "$ac_compile") 2>conftest.er1
39020 ac_status=$?
39021 grep -v '^ *+' conftest.er1 >conftest.err
39022 rm -f conftest.er1
39023 cat conftest.err >&5
39024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39025 (exit $ac_status); } && {
39026 test -z "$ac_c_werror_flag" ||
39027 test ! -s conftest.err
39028 } && test -s conftest.$ac_objext; then
39029 ac_header_compiler=yes
39030else
39031 $as_echo "$as_me: failed program was:" >&5
39032sed 's/^/| /' conftest.$ac_ext >&5
39033
39034 ac_header_compiler=no
39035fi
39036
39037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39038{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39039$as_echo "$ac_header_compiler" >&6; }
39040
39041# Is the header present?
39042{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h presence" >&5
39043$as_echo_n "checking ghostscript/ierrors.h presence... " >&6; }
39044cat >conftest.$ac_ext <<_ACEOF
39045/* confdefs.h. */
39046_ACEOF
39047cat confdefs.h >>conftest.$ac_ext
39048cat >>conftest.$ac_ext <<_ACEOF
39049/* end confdefs.h. */
39050#include <ghostscript/ierrors.h>
39051_ACEOF
39052if { (ac_try="$ac_cpp conftest.$ac_ext"
39053case "(($ac_try" in
39054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39055 *) ac_try_echo=$ac_try;;
39056esac
39057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39058$as_echo "$ac_try_echo") >&5
39059 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39060 ac_status=$?
39061 grep -v '^ *+' conftest.er1 >conftest.err
39062 rm -f conftest.er1
39063 cat conftest.err >&5
39064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39065 (exit $ac_status); } >/dev/null && {
39066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39067 test ! -s conftest.err
39068 }; then
39069 ac_header_preproc=yes
39070else
39071 $as_echo "$as_me: failed program was:" >&5
39072sed 's/^/| /' conftest.$ac_ext >&5
39073
39074 ac_header_preproc=no
39075fi
39076
39077rm -f conftest.err conftest.$ac_ext
39078{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39079$as_echo "$ac_header_preproc" >&6; }
39080
39081# So? What about this header?
39082case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39083 yes:no: )
39084 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&5
39085$as_echo "$as_me: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39086 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&5
39087$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&2;}
39088 ac_header_preproc=yes
39089 ;;
39090 no:yes:* )
39091 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&5
39092$as_echo "$as_me: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&2;}
39093 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&5
39094$as_echo "$as_me: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&2;}
39095 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&5
39096$as_echo "$as_me: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&2;}
39097 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&5
39098$as_echo "$as_me: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&2;}
39099 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&5
39100$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&2;}
39101 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&5
39102$as_echo "$as_me: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&2;}
39103 ( cat <<\_ASBOX
39104## ----------------------------------------- ##
39105## Report this to http://www.imagemagick.org ##
39106## ----------------------------------------- ##
39107_ASBOX
39108 ) | sed "s/^/$as_me: WARNING: /" >&2
39109 ;;
39110esac
39111{ $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
39112$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
39113if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
39114 $as_echo_n "(cached) " >&6
39115else
39116 ac_cv_header_ghostscript_ierrors_h=$ac_header_preproc
39117fi
39118{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
39119$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
39120
39121fi
39122if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then
39123 passed=`expr $passed + 1`
39124else
39125 failed=`expr $failed + 1`
39126fi
39127
39128
39129 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in Ghostscript framework" >&5
39130$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
39131if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then
39132 $as_echo_n "(cached) " >&6
39133else
39134 ac_check_framework_save_LIBS=$LIBS
39135LIBS="-framework Ghostscript $LIBS"
39136cat >conftest.$ac_ext <<_ACEOF
39137/* confdefs.h. */
39138_ACEOF
39139cat confdefs.h >>conftest.$ac_ext
39140cat >>conftest.$ac_ext <<_ACEOF
39141/* end confdefs.h. */
39142
39143/* Override any GCC internal prototype to avoid an error.
39144 Use char because int might match the return type of a GCC
39145 builtin and then its argument prototype would still apply. */
39146#ifdef __cplusplus
39147extern "C"
39148#endif
39149char gsapi_new_instance ();
39150int
39151main ()
39152{
39153return gsapi_new_instance ();
39154 ;
39155 return 0;
39156}
39157_ACEOF
39158rm -f conftest.$ac_objext conftest$ac_exeext
39159if { (ac_try="$ac_link"
39160case "(($ac_try" in
39161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39162 *) ac_try_echo=$ac_try;;
39163esac
39164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39165$as_echo "$ac_try_echo") >&5
39166 (eval "$ac_link") 2>conftest.er1
39167 ac_status=$?
39168 grep -v '^ *+' conftest.er1 >conftest.err
39169 rm -f conftest.er1
39170 cat conftest.err >&5
39171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39172 (exit $ac_status); } && {
39173 test -z "$ac_c_werror_flag" ||
39174 test ! -s conftest.err
39175 } && test -s conftest$ac_exeext && {
39176 test "$cross_compiling" = yes ||
39177 $as_test_x conftest$ac_exeext
39178 }; then
39179 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
39180else
39181 $as_echo "$as_me: failed program was:" >&5
39182sed 's/^/| /' conftest.$ac_ext >&5
39183
39184 ac_cv_framework_Ghostscript_gsapi_new_instance=no
39185fi
39186
39187rm -rf conftest.dSYM
39188rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39189 conftest$ac_exeext conftest.$ac_ext
39190LIBS=$ac_check_framework_save_LIBS
39191fi
39192{ $as_echo "$as_me:$LINENO: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
39193$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
39194if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then
39195 framework=`expr $framework + 1`
39196else
39197 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in -lgs" >&5
39198$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
39199if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then
39200 $as_echo_n "(cached) " >&6
39201else
39202 ac_check_lib_save_LIBS=$LIBS
39203LIBS="-lgs $LIBS"
39204cat >conftest.$ac_ext <<_ACEOF
39205/* confdefs.h. */
39206_ACEOF
39207cat confdefs.h >>conftest.$ac_ext
39208cat >>conftest.$ac_ext <<_ACEOF
39209/* end confdefs.h. */
39210
39211/* Override any GCC internal prototype to avoid an error.
39212 Use char because int might match the return type of a GCC
39213 builtin and then its argument prototype would still apply. */
39214#ifdef __cplusplus
39215extern "C"
39216#endif
39217char gsapi_new_instance ();
39218int
39219main ()
39220{
39221return gsapi_new_instance ();
39222 ;
39223 return 0;
39224}
39225_ACEOF
39226rm -f conftest.$ac_objext conftest$ac_exeext
39227if { (ac_try="$ac_link"
39228case "(($ac_try" in
39229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39230 *) ac_try_echo=$ac_try;;
39231esac
39232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39233$as_echo "$ac_try_echo") >&5
39234 (eval "$ac_link") 2>conftest.er1
39235 ac_status=$?
39236 grep -v '^ *+' conftest.er1 >conftest.err
39237 rm -f conftest.er1
39238 cat conftest.err >&5
39239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39240 (exit $ac_status); } && {
39241 test -z "$ac_c_werror_flag" ||
39242 test ! -s conftest.err
39243 } && test -s conftest$ac_exeext && {
39244 test "$cross_compiling" = yes ||
39245 $as_test_x conftest$ac_exeext
39246 }; then
39247 ac_cv_lib_gs_gsapi_new_instance=yes
39248else
39249 $as_echo "$as_me: failed program was:" >&5
39250sed 's/^/| /' conftest.$ac_ext >&5
39251
39252 ac_cv_lib_gs_gsapi_new_instance=no
39253fi
39254
39255rm -rf conftest.dSYM
39256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39257 conftest$ac_exeext conftest.$ac_ext
39258LIBS=$ac_check_lib_save_LIBS
39259fi
39260{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
39261$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
39262if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then
39263 passed=`expr $passed + 1`
39264else
39265 failed=`expr $failed + 1`
39266fi
39267
39268fi
39269
39270 { $as_echo "$as_me:$LINENO: checking if Ghostscript package is complete" >&5
39271$as_echo_n "checking if Ghostscript package is complete... " >&6; }
39272 if test $passed -gt 0; then
39273 if test $failed -gt 0; then
39274 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39275$as_echo "no -- some components failed test" >&6; }
39276 have_gslib='no (failed tests)'
39277 else
39278 if test $framework -gt 0; then
39279 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000039280 gslib_framework='yes'
cristy3ed852e2009-09-05 21:47:34 +000039281 { $as_echo "$as_me:$LINENO: result: yes, using framework." >&5
39282$as_echo "yes, using framework." >&6; }
39283 else
39284 { $as_echo "$as_me:$LINENO: result: yes, using library." >&5
39285$as_echo "yes, using library." >&6; }
39286 GS_LIBS='-lgs'
39287 fi
39288 LIBS="$GS_LIBS $LIBS"
39289
39290cat >>confdefs.h <<\_ACEOF
39291#define GS_DELEGATE 1
39292_ACEOF
39293
39294 have_gslib='yes'
39295 fi
39296 else
39297 { $as_echo "$as_me:$LINENO: result: no" >&5
39298$as_echo "no" >&6; }
39299 fi
39300fi
39301 if test "$have_gslib" = 'yes'; then
39302 GS_DELEGATE_TRUE=
39303 GS_DELEGATE_FALSE='#'
39304else
39305 GS_DELEGATE_TRUE='#'
39306 GS_DELEGATE_FALSE=
39307fi
39308
39309
39310
39311# Set default font search path
39312
39313# Check whether --with-fontpath was given.
39314if test "${with_fontpath+set}" = set; then
39315 withval=$with_fontpath; with_fontpath=$withval
39316else
39317 with_fontpath=''
39318fi
39319
39320
39321if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
39322 with_fontpath=''
39323else
39324
39325cat >>confdefs.h <<_ACEOF
39326#define MAGICK_FONT_PATH "$with_fontpath"
39327_ACEOF
39328
39329fi
39330if test "$with_fontpath=" != ''; then
39331 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
39332fi
39333
39334# Set Ghostscript font directory
39335
39336# Check whether --with-gs-font-dir was given.
39337if test "${with_gs_font_dir+set}" = set; then
39338 withval=$with_gs_font_dir; with_gs_font_dir=$withval
39339else
39340 with_gs_font_dir='default'
39341fi
39342
39343
39344if test "$with_gs_font_dir" != 'default'; then
39345 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
39346fi
39347
39348
39349#
39350# Check for GVC delegate library.
39351#
39352
39353# Check whether --with-gvc was given.
39354if test "${with_gvc+set}" = set; then
39355 withval=$with_gvc; with_gvc=$withval
39356else
39357 with_gvc='yes'
39358fi
39359
39360
39361if test "$with_gvc" != 'yes'; then
39362 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
39363fi
39364
39365GVC_PKG=""
39366if test "x$with_gvc" = "xyes"; then
39367 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39368$as_echo "-------------------------------------------------------------" >&6; }
39369
39370pkg_failed=no
39371{ $as_echo "$as_me:$LINENO: checking for GVC" >&5
39372$as_echo_n "checking for GVC... " >&6; }
39373
39374if test -n "$GVC_CFLAGS"; then
39375 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
39376 elif test -n "$PKG_CONFIG"; then
39377 if test -n "$PKG_CONFIG" && \
39378 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
39379 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
39380 ac_status=$?
39381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39382 (exit $ac_status); }; then
39383 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
39384else
39385 pkg_failed=yes
39386fi
39387 else
39388 pkg_failed=untried
39389fi
39390if test -n "$GVC_LIBS"; then
39391 pkg_cv_GVC_LIBS="$GVC_LIBS"
39392 elif test -n "$PKG_CONFIG"; then
39393 if test -n "$PKG_CONFIG" && \
39394 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
39395 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
39396 ac_status=$?
39397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39398 (exit $ac_status); }; then
39399 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
39400else
39401 pkg_failed=yes
39402fi
39403 else
39404 pkg_failed=untried
39405fi
39406
39407
39408
39409if test $pkg_failed = yes; then
39410
39411if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39412 _pkg_short_errors_supported=yes
39413else
39414 _pkg_short_errors_supported=no
39415fi
39416 if test $_pkg_short_errors_supported = yes; then
39417 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
39418 else
39419 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
39420 fi
39421 # Put the nasty error message in config.log where it belongs
39422 echo "$GVC_PKG_ERRORS" >&5
39423
39424 { $as_echo "$as_me:$LINENO: result: no" >&5
39425$as_echo "no" >&6; }
39426 have_gvc=no
39427elif test $pkg_failed = untried; then
39428 have_gvc=no
39429else
39430 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
39431 GVC_LIBS=$pkg_cv_GVC_LIBS
39432 { $as_echo "$as_me:$LINENO: result: yes" >&5
39433$as_echo "yes" >&6; }
39434 have_gvc=yes
39435fi
39436 { $as_echo "$as_me:$LINENO: result: " >&5
39437$as_echo "" >&6; }
39438fi
39439
39440if test "$have_gvc" = 'yes'; then
39441
39442cat >>confdefs.h <<\_ACEOF
39443#define GVC_DELEGATE 1
39444_ACEOF
39445
39446 if test "$with_modules" = 'no'; then
39447 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
39448 fi
39449fi
39450
39451 if test "$have_gvc" = 'yes'; then
39452 GVC_DELEGATE_TRUE=
39453 GVC_DELEGATE_FALSE='#'
39454else
39455 GVC_DELEGATE_TRUE='#'
39456 GVC_DELEGATE_FALSE=
39457fi
39458
39459
39460
39461
39462
39463#
39464# Check for JBIG delegate library.
39465#
39466
39467
39468# Check whether --with-jbig was given.
39469if test "${with_jbig+set}" = set; then
39470 withval=$with_jbig; with_jbig=$withval
39471else
39472 with_jbig='yes'
39473fi
39474
39475
39476have_jbig='no'
39477JBIG_LIBS=''
39478if test "$with_jbig" != 'no'; then
39479 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39480$as_echo "-------------------------------------------------------------" >&6; }
39481 { $as_echo "$as_me:$LINENO: checking for JBIG" >&5
39482$as_echo_n "checking for JBIG... " >&6; }
39483 { $as_echo "$as_me:$LINENO: result: " >&5
39484$as_echo "" >&6; }
39485 failed=0
39486 passed=0
39487 if test "${ac_cv_header_jbig_h+set}" = set; then
39488 { $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
39489$as_echo_n "checking for jbig.h... " >&6; }
39490if test "${ac_cv_header_jbig_h+set}" = set; then
39491 $as_echo_n "(cached) " >&6
39492fi
39493{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
39494$as_echo "$ac_cv_header_jbig_h" >&6; }
39495else
39496 # Is the header compilable?
39497{ $as_echo "$as_me:$LINENO: checking jbig.h usability" >&5
39498$as_echo_n "checking jbig.h usability... " >&6; }
39499cat >conftest.$ac_ext <<_ACEOF
39500/* confdefs.h. */
39501_ACEOF
39502cat confdefs.h >>conftest.$ac_ext
39503cat >>conftest.$ac_ext <<_ACEOF
39504/* end confdefs.h. */
39505$ac_includes_default
39506#include <jbig.h>
39507_ACEOF
39508rm -f conftest.$ac_objext
39509if { (ac_try="$ac_compile"
39510case "(($ac_try" in
39511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39512 *) ac_try_echo=$ac_try;;
39513esac
39514eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39515$as_echo "$ac_try_echo") >&5
39516 (eval "$ac_compile") 2>conftest.er1
39517 ac_status=$?
39518 grep -v '^ *+' conftest.er1 >conftest.err
39519 rm -f conftest.er1
39520 cat conftest.err >&5
39521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39522 (exit $ac_status); } && {
39523 test -z "$ac_c_werror_flag" ||
39524 test ! -s conftest.err
39525 } && test -s conftest.$ac_objext; then
39526 ac_header_compiler=yes
39527else
39528 $as_echo "$as_me: failed program was:" >&5
39529sed 's/^/| /' conftest.$ac_ext >&5
39530
39531 ac_header_compiler=no
39532fi
39533
39534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39535{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39536$as_echo "$ac_header_compiler" >&6; }
39537
39538# Is the header present?
39539{ $as_echo "$as_me:$LINENO: checking jbig.h presence" >&5
39540$as_echo_n "checking jbig.h presence... " >&6; }
39541cat >conftest.$ac_ext <<_ACEOF
39542/* confdefs.h. */
39543_ACEOF
39544cat confdefs.h >>conftest.$ac_ext
39545cat >>conftest.$ac_ext <<_ACEOF
39546/* end confdefs.h. */
39547#include <jbig.h>
39548_ACEOF
39549if { (ac_try="$ac_cpp conftest.$ac_ext"
39550case "(($ac_try" in
39551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39552 *) ac_try_echo=$ac_try;;
39553esac
39554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39555$as_echo "$ac_try_echo") >&5
39556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39557 ac_status=$?
39558 grep -v '^ *+' conftest.er1 >conftest.err
39559 rm -f conftest.er1
39560 cat conftest.err >&5
39561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39562 (exit $ac_status); } >/dev/null && {
39563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39564 test ! -s conftest.err
39565 }; then
39566 ac_header_preproc=yes
39567else
39568 $as_echo "$as_me: failed program was:" >&5
39569sed 's/^/| /' conftest.$ac_ext >&5
39570
39571 ac_header_preproc=no
39572fi
39573
39574rm -f conftest.err conftest.$ac_ext
39575{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39576$as_echo "$ac_header_preproc" >&6; }
39577
39578# So? What about this header?
39579case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39580 yes:no: )
39581 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39582$as_echo "$as_me: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39583 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the compiler's result" >&5
39584$as_echo "$as_me: WARNING: jbig.h: proceeding with the compiler's result" >&2;}
39585 ac_header_preproc=yes
39586 ;;
39587 no:yes:* )
39588 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: present but cannot be compiled" >&5
39589$as_echo "$as_me: WARNING: jbig.h: present but cannot be compiled" >&2;}
39590 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: check for missing prerequisite headers?" >&5
39591$as_echo "$as_me: WARNING: jbig.h: check for missing prerequisite headers?" >&2;}
39592 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: see the Autoconf documentation" >&5
39593$as_echo "$as_me: WARNING: jbig.h: see the Autoconf documentation" >&2;}
39594 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&5
39595$as_echo "$as_me: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39596 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the preprocessor's result" >&5
39597$as_echo "$as_me: WARNING: jbig.h: proceeding with the preprocessor's result" >&2;}
39598 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: in the future, the compiler will take precedence" >&5
39599$as_echo "$as_me: WARNING: jbig.h: in the future, the compiler will take precedence" >&2;}
39600 ( cat <<\_ASBOX
39601## ----------------------------------------- ##
39602## Report this to http://www.imagemagick.org ##
39603## ----------------------------------------- ##
39604_ASBOX
39605 ) | sed "s/^/$as_me: WARNING: /" >&2
39606 ;;
39607esac
39608{ $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
39609$as_echo_n "checking for jbig.h... " >&6; }
39610if test "${ac_cv_header_jbig_h+set}" = set; then
39611 $as_echo_n "(cached) " >&6
39612else
39613 ac_cv_header_jbig_h=$ac_header_preproc
39614fi
39615{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
39616$as_echo "$ac_cv_header_jbig_h" >&6; }
39617
39618fi
39619if test "x$ac_cv_header_jbig_h" = x""yes; then
39620 passed=`expr $passed + 1`
39621else
39622 failed=`expr $failed + 1`
39623fi
39624
39625
39626 { $as_echo "$as_me:$LINENO: checking for jbg_dec_init in -ljbig" >&5
39627$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
39628if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then
39629 $as_echo_n "(cached) " >&6
39630else
39631 ac_check_lib_save_LIBS=$LIBS
39632LIBS="-ljbig $LIBS"
39633cat >conftest.$ac_ext <<_ACEOF
39634/* confdefs.h. */
39635_ACEOF
39636cat confdefs.h >>conftest.$ac_ext
39637cat >>conftest.$ac_ext <<_ACEOF
39638/* end confdefs.h. */
39639
39640/* Override any GCC internal prototype to avoid an error.
39641 Use char because int might match the return type of a GCC
39642 builtin and then its argument prototype would still apply. */
39643#ifdef __cplusplus
39644extern "C"
39645#endif
39646char jbg_dec_init ();
39647int
39648main ()
39649{
39650return jbg_dec_init ();
39651 ;
39652 return 0;
39653}
39654_ACEOF
39655rm -f conftest.$ac_objext conftest$ac_exeext
39656if { (ac_try="$ac_link"
39657case "(($ac_try" in
39658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39659 *) ac_try_echo=$ac_try;;
39660esac
39661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39662$as_echo "$ac_try_echo") >&5
39663 (eval "$ac_link") 2>conftest.er1
39664 ac_status=$?
39665 grep -v '^ *+' conftest.er1 >conftest.err
39666 rm -f conftest.er1
39667 cat conftest.err >&5
39668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39669 (exit $ac_status); } && {
39670 test -z "$ac_c_werror_flag" ||
39671 test ! -s conftest.err
39672 } && test -s conftest$ac_exeext && {
39673 test "$cross_compiling" = yes ||
39674 $as_test_x conftest$ac_exeext
39675 }; then
39676 ac_cv_lib_jbig_jbg_dec_init=yes
39677else
39678 $as_echo "$as_me: failed program was:" >&5
39679sed 's/^/| /' conftest.$ac_ext >&5
39680
39681 ac_cv_lib_jbig_jbg_dec_init=no
39682fi
39683
39684rm -rf conftest.dSYM
39685rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39686 conftest$ac_exeext conftest.$ac_ext
39687LIBS=$ac_check_lib_save_LIBS
39688fi
39689{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
39690$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
39691if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then
39692 passed=`expr $passed + 1`
39693else
39694 failed=`expr $failed + 1`
39695fi
39696
39697 { $as_echo "$as_me:$LINENO: checking if JBIG package is complete" >&5
39698$as_echo_n "checking if JBIG package is complete... " >&6; }
39699 if test $passed -gt 0; then
39700 if test $failed -gt 0; then
39701 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39702$as_echo "no -- some components failed test" >&6; }
39703 have_jbig='no (failed tests)'
39704 else
39705 JBIG_LIBS='-ljbig'
39706 LIBS="$JBIG_LIBS $LIBS"
39707
39708cat >>confdefs.h <<\_ACEOF
39709#define JBIG_DELEGATE 1
39710_ACEOF
39711
39712 { $as_echo "$as_me:$LINENO: result: yes" >&5
39713$as_echo "yes" >&6; }
39714 have_jbig='yes'
39715 fi
39716 else
39717 { $as_echo "$as_me:$LINENO: result: no" >&5
39718$as_echo "no" >&6; }
39719 fi
39720fi
39721 if test "$have_jbig" = 'yes'; then
39722 JBIG_DELEGATE_TRUE=
39723 JBIG_DELEGATE_FALSE='#'
39724else
39725 JBIG_DELEGATE_TRUE='#'
39726 JBIG_DELEGATE_FALSE=
39727fi
39728
39729
39730
39731
39732#
39733# Check for JPEG delegate library.
39734#
39735
39736# Check whether --with-jpeg was given.
39737if test "${with_jpeg+set}" = set; then
39738 withval=$with_jpeg; with_jpeg=$withval
39739else
39740 with_jpeg='yes'
39741fi
39742
39743
39744if test "$with_jpeg" != 'yes'; then
39745 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
39746fi
39747
39748have_jpeg='no'
39749JPEG_LIBS=''
39750if test "$with_jpeg" != 'no'; then
39751 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39752$as_echo "-------------------------------------------------------------" >&6; }
39753 { $as_echo "$as_me:$LINENO: checking for JPEG" >&5
39754$as_echo_n "checking for JPEG... " >&6; }
39755 { $as_echo "$as_me:$LINENO: result: " >&5
39756$as_echo "" >&6; }
39757 failed=0
39758 passed=0
39759 if test "${ac_cv_header_jconfig_h+set}" = set; then
39760 { $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39761$as_echo_n "checking for jconfig.h... " >&6; }
39762if test "${ac_cv_header_jconfig_h+set}" = set; then
39763 $as_echo_n "(cached) " >&6
39764fi
39765{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39766$as_echo "$ac_cv_header_jconfig_h" >&6; }
39767else
39768 # Is the header compilable?
39769{ $as_echo "$as_me:$LINENO: checking jconfig.h usability" >&5
39770$as_echo_n "checking jconfig.h usability... " >&6; }
39771cat >conftest.$ac_ext <<_ACEOF
39772/* confdefs.h. */
39773_ACEOF
39774cat confdefs.h >>conftest.$ac_ext
39775cat >>conftest.$ac_ext <<_ACEOF
39776/* end confdefs.h. */
39777$ac_includes_default
39778#include <jconfig.h>
39779_ACEOF
39780rm -f conftest.$ac_objext
39781if { (ac_try="$ac_compile"
39782case "(($ac_try" in
39783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39784 *) ac_try_echo=$ac_try;;
39785esac
39786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39787$as_echo "$ac_try_echo") >&5
39788 (eval "$ac_compile") 2>conftest.er1
39789 ac_status=$?
39790 grep -v '^ *+' conftest.er1 >conftest.err
39791 rm -f conftest.er1
39792 cat conftest.err >&5
39793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39794 (exit $ac_status); } && {
39795 test -z "$ac_c_werror_flag" ||
39796 test ! -s conftest.err
39797 } && test -s conftest.$ac_objext; then
39798 ac_header_compiler=yes
39799else
39800 $as_echo "$as_me: failed program was:" >&5
39801sed 's/^/| /' conftest.$ac_ext >&5
39802
39803 ac_header_compiler=no
39804fi
39805
39806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39807{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39808$as_echo "$ac_header_compiler" >&6; }
39809
39810# Is the header present?
39811{ $as_echo "$as_me:$LINENO: checking jconfig.h presence" >&5
39812$as_echo_n "checking jconfig.h presence... " >&6; }
39813cat >conftest.$ac_ext <<_ACEOF
39814/* confdefs.h. */
39815_ACEOF
39816cat confdefs.h >>conftest.$ac_ext
39817cat >>conftest.$ac_ext <<_ACEOF
39818/* end confdefs.h. */
39819#include <jconfig.h>
39820_ACEOF
39821if { (ac_try="$ac_cpp conftest.$ac_ext"
39822case "(($ac_try" in
39823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39824 *) ac_try_echo=$ac_try;;
39825esac
39826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39827$as_echo "$ac_try_echo") >&5
39828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39829 ac_status=$?
39830 grep -v '^ *+' conftest.er1 >conftest.err
39831 rm -f conftest.er1
39832 cat conftest.err >&5
39833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39834 (exit $ac_status); } >/dev/null && {
39835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39836 test ! -s conftest.err
39837 }; then
39838 ac_header_preproc=yes
39839else
39840 $as_echo "$as_me: failed program was:" >&5
39841sed 's/^/| /' conftest.$ac_ext >&5
39842
39843 ac_header_preproc=no
39844fi
39845
39846rm -f conftest.err conftest.$ac_ext
39847{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39848$as_echo "$ac_header_preproc" >&6; }
39849
39850# So? What about this header?
39851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39852 yes:no: )
39853 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39854$as_echo "$as_me: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39855 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the compiler's result" >&5
39856$as_echo "$as_me: WARNING: jconfig.h: proceeding with the compiler's result" >&2;}
39857 ac_header_preproc=yes
39858 ;;
39859 no:yes:* )
39860 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: present but cannot be compiled" >&5
39861$as_echo "$as_me: WARNING: jconfig.h: present but cannot be compiled" >&2;}
39862 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: check for missing prerequisite headers?" >&5
39863$as_echo "$as_me: WARNING: jconfig.h: check for missing prerequisite headers?" >&2;}
39864 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: see the Autoconf documentation" >&5
39865$as_echo "$as_me: WARNING: jconfig.h: see the Autoconf documentation" >&2;}
39866 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&5
39867$as_echo "$as_me: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39868 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the preprocessor's result" >&5
39869$as_echo "$as_me: WARNING: jconfig.h: proceeding with the preprocessor's result" >&2;}
39870 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: in the future, the compiler will take precedence" >&5
39871$as_echo "$as_me: WARNING: jconfig.h: in the future, the compiler will take precedence" >&2;}
39872 ( cat <<\_ASBOX
39873## ----------------------------------------- ##
39874## Report this to http://www.imagemagick.org ##
39875## ----------------------------------------- ##
39876_ASBOX
39877 ) | sed "s/^/$as_me: WARNING: /" >&2
39878 ;;
39879esac
39880{ $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39881$as_echo_n "checking for jconfig.h... " >&6; }
39882if test "${ac_cv_header_jconfig_h+set}" = set; then
39883 $as_echo_n "(cached) " >&6
39884else
39885 ac_cv_header_jconfig_h=$ac_header_preproc
39886fi
39887{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39888$as_echo "$ac_cv_header_jconfig_h" >&6; }
39889
39890fi
39891if test "x$ac_cv_header_jconfig_h" = x""yes; then
39892 passed=`expr $passed + 1`
39893else
39894 failed=`expr $failed + 1`
39895fi
39896
39897
39898 if test "${ac_cv_header_jerror_h+set}" = set; then
39899 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
39900$as_echo_n "checking for jerror.h... " >&6; }
39901if test "${ac_cv_header_jerror_h+set}" = set; then
39902 $as_echo_n "(cached) " >&6
39903fi
39904{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
39905$as_echo "$ac_cv_header_jerror_h" >&6; }
39906else
39907 # Is the header compilable?
39908{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
39909$as_echo_n "checking jerror.h usability... " >&6; }
39910cat >conftest.$ac_ext <<_ACEOF
39911/* confdefs.h. */
39912_ACEOF
39913cat confdefs.h >>conftest.$ac_ext
39914cat >>conftest.$ac_ext <<_ACEOF
39915/* end confdefs.h. */
39916$ac_includes_default
39917#include <jerror.h>
39918_ACEOF
39919rm -f conftest.$ac_objext
39920if { (ac_try="$ac_compile"
39921case "(($ac_try" in
39922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39923 *) ac_try_echo=$ac_try;;
39924esac
39925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39926$as_echo "$ac_try_echo") >&5
39927 (eval "$ac_compile") 2>conftest.er1
39928 ac_status=$?
39929 grep -v '^ *+' conftest.er1 >conftest.err
39930 rm -f conftest.er1
39931 cat conftest.err >&5
39932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39933 (exit $ac_status); } && {
39934 test -z "$ac_c_werror_flag" ||
39935 test ! -s conftest.err
39936 } && test -s conftest.$ac_objext; then
39937 ac_header_compiler=yes
39938else
39939 $as_echo "$as_me: failed program was:" >&5
39940sed 's/^/| /' conftest.$ac_ext >&5
39941
39942 ac_header_compiler=no
39943fi
39944
39945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39946{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39947$as_echo "$ac_header_compiler" >&6; }
39948
39949# Is the header present?
39950{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
39951$as_echo_n "checking jerror.h presence... " >&6; }
39952cat >conftest.$ac_ext <<_ACEOF
39953/* confdefs.h. */
39954_ACEOF
39955cat confdefs.h >>conftest.$ac_ext
39956cat >>conftest.$ac_ext <<_ACEOF
39957/* end confdefs.h. */
39958#include <jerror.h>
39959_ACEOF
39960if { (ac_try="$ac_cpp conftest.$ac_ext"
39961case "(($ac_try" in
39962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39963 *) ac_try_echo=$ac_try;;
39964esac
39965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39966$as_echo "$ac_try_echo") >&5
39967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39968 ac_status=$?
39969 grep -v '^ *+' conftest.er1 >conftest.err
39970 rm -f conftest.er1
39971 cat conftest.err >&5
39972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39973 (exit $ac_status); } >/dev/null && {
39974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39975 test ! -s conftest.err
39976 }; then
39977 ac_header_preproc=yes
39978else
39979 $as_echo "$as_me: failed program was:" >&5
39980sed 's/^/| /' conftest.$ac_ext >&5
39981
39982 ac_header_preproc=no
39983fi
39984
39985rm -f conftest.err conftest.$ac_ext
39986{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39987$as_echo "$ac_header_preproc" >&6; }
39988
39989# So? What about this header?
39990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39991 yes:no: )
39992 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
39993$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39994 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
39995$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
39996 ac_header_preproc=yes
39997 ;;
39998 no:yes:* )
39999 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
40000$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
40001 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
40002$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
40003 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
40004$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
40005 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
40006$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
40007 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
40008$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
40009 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
40010$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
40011 ( cat <<\_ASBOX
40012## ----------------------------------------- ##
40013## Report this to http://www.imagemagick.org ##
40014## ----------------------------------------- ##
40015_ASBOX
40016 ) | sed "s/^/$as_me: WARNING: /" >&2
40017 ;;
40018esac
40019{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
40020$as_echo_n "checking for jerror.h... " >&6; }
40021if test "${ac_cv_header_jerror_h+set}" = set; then
40022 $as_echo_n "(cached) " >&6
40023else
40024 ac_cv_header_jerror_h=$ac_header_preproc
40025fi
40026{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
40027$as_echo "$ac_cv_header_jerror_h" >&6; }
40028
40029fi
40030if test "x$ac_cv_header_jerror_h" = x""yes; then
40031 passed=`expr $passed + 1`
40032else
40033 failed=`expr $failed + 1`
40034fi
40035
40036
40037 if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40038 { $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
40039$as_echo_n "checking for jmorecfg.h... " >&6; }
40040if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40041 $as_echo_n "(cached) " >&6
40042fi
40043{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
40044$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
40045else
40046 # Is the header compilable?
40047{ $as_echo "$as_me:$LINENO: checking jmorecfg.h usability" >&5
40048$as_echo_n "checking jmorecfg.h usability... " >&6; }
40049cat >conftest.$ac_ext <<_ACEOF
40050/* confdefs.h. */
40051_ACEOF
40052cat confdefs.h >>conftest.$ac_ext
40053cat >>conftest.$ac_ext <<_ACEOF
40054/* end confdefs.h. */
40055$ac_includes_default
40056#include <jmorecfg.h>
40057_ACEOF
40058rm -f conftest.$ac_objext
40059if { (ac_try="$ac_compile"
40060case "(($ac_try" in
40061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40062 *) ac_try_echo=$ac_try;;
40063esac
40064eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40065$as_echo "$ac_try_echo") >&5
40066 (eval "$ac_compile") 2>conftest.er1
40067 ac_status=$?
40068 grep -v '^ *+' conftest.er1 >conftest.err
40069 rm -f conftest.er1
40070 cat conftest.err >&5
40071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40072 (exit $ac_status); } && {
40073 test -z "$ac_c_werror_flag" ||
40074 test ! -s conftest.err
40075 } && test -s conftest.$ac_objext; then
40076 ac_header_compiler=yes
40077else
40078 $as_echo "$as_me: failed program was:" >&5
40079sed 's/^/| /' conftest.$ac_ext >&5
40080
40081 ac_header_compiler=no
40082fi
40083
40084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40085{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40086$as_echo "$ac_header_compiler" >&6; }
40087
40088# Is the header present?
40089{ $as_echo "$as_me:$LINENO: checking jmorecfg.h presence" >&5
40090$as_echo_n "checking jmorecfg.h presence... " >&6; }
40091cat >conftest.$ac_ext <<_ACEOF
40092/* confdefs.h. */
40093_ACEOF
40094cat confdefs.h >>conftest.$ac_ext
40095cat >>conftest.$ac_ext <<_ACEOF
40096/* end confdefs.h. */
40097#include <jmorecfg.h>
40098_ACEOF
40099if { (ac_try="$ac_cpp conftest.$ac_ext"
40100case "(($ac_try" in
40101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40102 *) ac_try_echo=$ac_try;;
40103esac
40104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40105$as_echo "$ac_try_echo") >&5
40106 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40107 ac_status=$?
40108 grep -v '^ *+' conftest.er1 >conftest.err
40109 rm -f conftest.er1
40110 cat conftest.err >&5
40111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40112 (exit $ac_status); } >/dev/null && {
40113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40114 test ! -s conftest.err
40115 }; then
40116 ac_header_preproc=yes
40117else
40118 $as_echo "$as_me: failed program was:" >&5
40119sed 's/^/| /' conftest.$ac_ext >&5
40120
40121 ac_header_preproc=no
40122fi
40123
40124rm -f conftest.err conftest.$ac_ext
40125{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40126$as_echo "$ac_header_preproc" >&6; }
40127
40128# So? What about this header?
40129case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40130 yes:no: )
40131 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&5
40132$as_echo "$as_me: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40133 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the compiler's result" >&5
40134$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the compiler's result" >&2;}
40135 ac_header_preproc=yes
40136 ;;
40137 no:yes:* )
40138 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: present but cannot be compiled" >&5
40139$as_echo "$as_me: WARNING: jmorecfg.h: present but cannot be compiled" >&2;}
40140 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&5
40141$as_echo "$as_me: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&2;}
40142 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: see the Autoconf documentation" >&5
40143$as_echo "$as_me: WARNING: jmorecfg.h: see the Autoconf documentation" >&2;}
40144 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&5
40145$as_echo "$as_me: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&2;}
40146 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&5
40147$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&2;}
40148 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&5
40149$as_echo "$as_me: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&2;}
40150 ( cat <<\_ASBOX
40151## ----------------------------------------- ##
40152## Report this to http://www.imagemagick.org ##
40153## ----------------------------------------- ##
40154_ASBOX
40155 ) | sed "s/^/$as_me: WARNING: /" >&2
40156 ;;
40157esac
40158{ $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
40159$as_echo_n "checking for jmorecfg.h... " >&6; }
40160if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40161 $as_echo_n "(cached) " >&6
40162else
40163 ac_cv_header_jmorecfg_h=$ac_header_preproc
40164fi
40165{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
40166$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
40167
40168fi
40169if test "x$ac_cv_header_jmorecfg_h" = x""yes; then
40170 passed=`expr $passed + 1`
40171else
40172 failed=`expr $failed + 1`
40173fi
40174
40175
40176 if test "${ac_cv_header_jpeglib_h+set}" = set; then
40177 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
40178$as_echo_n "checking for jpeglib.h... " >&6; }
40179if test "${ac_cv_header_jpeglib_h+set}" = set; then
40180 $as_echo_n "(cached) " >&6
40181fi
40182{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
40183$as_echo "$ac_cv_header_jpeglib_h" >&6; }
40184else
40185 # Is the header compilable?
40186{ $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
40187$as_echo_n "checking jpeglib.h usability... " >&6; }
40188cat >conftest.$ac_ext <<_ACEOF
40189/* confdefs.h. */
40190_ACEOF
40191cat confdefs.h >>conftest.$ac_ext
40192cat >>conftest.$ac_ext <<_ACEOF
40193/* end confdefs.h. */
40194$ac_includes_default
40195#include <jpeglib.h>
40196_ACEOF
40197rm -f conftest.$ac_objext
40198if { (ac_try="$ac_compile"
40199case "(($ac_try" in
40200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40201 *) ac_try_echo=$ac_try;;
40202esac
40203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40204$as_echo "$ac_try_echo") >&5
40205 (eval "$ac_compile") 2>conftest.er1
40206 ac_status=$?
40207 grep -v '^ *+' conftest.er1 >conftest.err
40208 rm -f conftest.er1
40209 cat conftest.err >&5
40210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40211 (exit $ac_status); } && {
40212 test -z "$ac_c_werror_flag" ||
40213 test ! -s conftest.err
40214 } && test -s conftest.$ac_objext; then
40215 ac_header_compiler=yes
40216else
40217 $as_echo "$as_me: failed program was:" >&5
40218sed 's/^/| /' conftest.$ac_ext >&5
40219
40220 ac_header_compiler=no
40221fi
40222
40223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40224{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40225$as_echo "$ac_header_compiler" >&6; }
40226
40227# Is the header present?
40228{ $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
40229$as_echo_n "checking jpeglib.h presence... " >&6; }
40230cat >conftest.$ac_ext <<_ACEOF
40231/* confdefs.h. */
40232_ACEOF
40233cat confdefs.h >>conftest.$ac_ext
40234cat >>conftest.$ac_ext <<_ACEOF
40235/* end confdefs.h. */
40236#include <jpeglib.h>
40237_ACEOF
40238if { (ac_try="$ac_cpp conftest.$ac_ext"
40239case "(($ac_try" in
40240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40241 *) ac_try_echo=$ac_try;;
40242esac
40243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40244$as_echo "$ac_try_echo") >&5
40245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40246 ac_status=$?
40247 grep -v '^ *+' conftest.er1 >conftest.err
40248 rm -f conftest.er1
40249 cat conftest.err >&5
40250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40251 (exit $ac_status); } >/dev/null && {
40252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40253 test ! -s conftest.err
40254 }; then
40255 ac_header_preproc=yes
40256else
40257 $as_echo "$as_me: failed program was:" >&5
40258sed 's/^/| /' conftest.$ac_ext >&5
40259
40260 ac_header_preproc=no
40261fi
40262
40263rm -f conftest.err conftest.$ac_ext
40264{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40265$as_echo "$ac_header_preproc" >&6; }
40266
40267# So? What about this header?
40268case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40269 yes:no: )
40270 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40271$as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40272 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
40273$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
40274 ac_header_preproc=yes
40275 ;;
40276 no:yes:* )
40277 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
40278$as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
40279 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
40280$as_echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
40281 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
40282$as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
40283 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
40284$as_echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40285 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
40286$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
40287 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
40288$as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
40289 ( cat <<\_ASBOX
40290## ----------------------------------------- ##
40291## Report this to http://www.imagemagick.org ##
40292## ----------------------------------------- ##
40293_ASBOX
40294 ) | sed "s/^/$as_me: WARNING: /" >&2
40295 ;;
40296esac
40297{ $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
40298$as_echo_n "checking for jpeglib.h... " >&6; }
40299if test "${ac_cv_header_jpeglib_h+set}" = set; then
40300 $as_echo_n "(cached) " >&6
40301else
40302 ac_cv_header_jpeglib_h=$ac_header_preproc
40303fi
40304{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
40305$as_echo "$ac_cv_header_jpeglib_h" >&6; }
40306
40307fi
40308if test "x$ac_cv_header_jpeglib_h" = x""yes; then
40309 passed=`expr $passed + 1`
40310else
40311 failed=`expr $failed + 1`
40312fi
40313
40314
40315 { $as_echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
40316$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
40317if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
40318 $as_echo_n "(cached) " >&6
40319else
40320 ac_check_lib_save_LIBS=$LIBS
40321LIBS="-ljpeg $LIBS"
40322cat >conftest.$ac_ext <<_ACEOF
40323/* confdefs.h. */
40324_ACEOF
40325cat confdefs.h >>conftest.$ac_ext
40326cat >>conftest.$ac_ext <<_ACEOF
40327/* end confdefs.h. */
40328
40329/* Override any GCC internal prototype to avoid an error.
40330 Use char because int might match the return type of a GCC
40331 builtin and then its argument prototype would still apply. */
40332#ifdef __cplusplus
40333extern "C"
40334#endif
40335char jpeg_read_header ();
40336int
40337main ()
40338{
40339return jpeg_read_header ();
40340 ;
40341 return 0;
40342}
40343_ACEOF
40344rm -f conftest.$ac_objext conftest$ac_exeext
40345if { (ac_try="$ac_link"
40346case "(($ac_try" in
40347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40348 *) ac_try_echo=$ac_try;;
40349esac
40350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40351$as_echo "$ac_try_echo") >&5
40352 (eval "$ac_link") 2>conftest.er1
40353 ac_status=$?
40354 grep -v '^ *+' conftest.er1 >conftest.err
40355 rm -f conftest.er1
40356 cat conftest.err >&5
40357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40358 (exit $ac_status); } && {
40359 test -z "$ac_c_werror_flag" ||
40360 test ! -s conftest.err
40361 } && test -s conftest$ac_exeext && {
40362 test "$cross_compiling" = yes ||
40363 $as_test_x conftest$ac_exeext
40364 }; then
40365 ac_cv_lib_jpeg_jpeg_read_header=yes
40366else
40367 $as_echo "$as_me: failed program was:" >&5
40368sed 's/^/| /' conftest.$ac_ext >&5
40369
40370 ac_cv_lib_jpeg_jpeg_read_header=no
40371fi
40372
40373rm -rf conftest.dSYM
40374rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40375 conftest$ac_exeext conftest.$ac_ext
40376LIBS=$ac_check_lib_save_LIBS
40377fi
40378{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
40379$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
40380if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then
40381 passed=`expr $passed + 1`
40382else
40383 failed=`expr $failed + 1`
40384fi
40385
40386
40387# Test for compatible JPEG library
40388if test "$ac_cv_jpeg_version_ok" != 'yes'; then
40389{ $as_echo "$as_me:$LINENO: checking for JPEG library is version 6b or later" >&5
40390$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
40391if test "${ac_cv_jpeg_version_ok+set}" = set; then
40392 $as_echo_n "(cached) " >&6
40393else
40394 cat >conftest.$ac_ext <<_ACEOF
40395/* confdefs.h. */
40396_ACEOF
40397cat confdefs.h >>conftest.$ac_ext
40398cat >>conftest.$ac_ext <<_ACEOF
40399/* end confdefs.h. */
40400#include <stdio.h>
40401#include <stdlib.h>
40402#include <jpeglib.h>
40403
40404int
40405main ()
40406{
40407
40408#if JPEG_LIB_VERSION < 62
40409#error IJG JPEG library must be version 6b or newer!
40410#endif
40411return 0;
40412
40413 ;
40414 return 0;
40415}
40416_ACEOF
40417rm -f conftest.$ac_objext
40418if { (ac_try="$ac_compile"
40419case "(($ac_try" in
40420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40421 *) ac_try_echo=$ac_try;;
40422esac
40423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40424$as_echo "$ac_try_echo") >&5
40425 (eval "$ac_compile") 2>conftest.er1
40426 ac_status=$?
40427 grep -v '^ *+' conftest.er1 >conftest.err
40428 rm -f conftest.er1
40429 cat conftest.err >&5
40430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40431 (exit $ac_status); } && {
40432 test -z "$ac_c_werror_flag" ||
40433 test ! -s conftest.err
40434 } && test -s conftest.$ac_objext; then
40435 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
40436else
40437 $as_echo "$as_me: failed program was:" >&5
40438sed 's/^/| /' conftest.$ac_ext >&5
40439
40440 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
40441fi
40442
40443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40444fi
40445{ $as_echo "$as_me:$LINENO: result: $ac_cv_jpeg_version_ok" >&5
40446$as_echo "$ac_cv_jpeg_version_ok" >&6; }
40447fi
40448 { $as_echo "$as_me:$LINENO: checking if JPEG package is complete" >&5
40449$as_echo_n "checking if JPEG package is complete... " >&6; }
40450 if test $passed -gt 0; then
40451 if test $failed -gt 0; then
40452 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40453$as_echo "no -- some components failed test" >&6; }
40454 have_jpeg='no (failed tests)'
40455 else
40456 JPEG_LIBS='-ljpeg'
40457 LIBS="$JPEG_LIBS $LIBS"
40458
40459cat >>confdefs.h <<\_ACEOF
40460#define JPEG_DELEGATE 1
40461_ACEOF
40462
40463 { $as_echo "$as_me:$LINENO: result: yes" >&5
40464$as_echo "yes" >&6; }
40465 have_jpeg='yes'
40466 fi
40467 else
40468 { $as_echo "$as_me:$LINENO: result: no" >&5
40469$as_echo "no" >&6; }
40470 fi
40471fi
40472 if test "$have_jpeg" = 'yes'; then
40473 JPEG_DELEGATE_TRUE=
40474 JPEG_DELEGATE_FALSE='#'
40475else
40476 JPEG_DELEGATE_TRUE='#'
40477 JPEG_DELEGATE_FALSE=
40478fi
40479
40480
40481
40482
40483#
40484# Check for JPEG Version 2 delegate library.
40485#
40486
40487# Check whether --with-jp2 was given.
40488if test "${with_jp2+set}" = set; then
40489 withval=$with_jp2; with_jp2=$withval
40490else
40491 with_jp2='yes'
40492fi
40493
40494
40495if test "$with_jp2" != 'yes'; then
40496 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
40497fi
40498
40499have_jp2='no'
40500JP2_LIBS=''
40501if test "$with_jp2" != 'no'; then
40502 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40503$as_echo "-------------------------------------------------------------" >&6; }
40504 { $as_echo "$as_me:$LINENO: checking for JPEG Version 2" >&5
40505$as_echo_n "checking for JPEG Version 2... " >&6; }
40506 { $as_echo "$as_me:$LINENO: result: " >&5
40507$as_echo "" >&6; }
40508 failed=0
40509 passed=0
40510 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40511 { $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
40512$as_echo_n "checking for jasper/jasper.h... " >&6; }
40513if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40514 $as_echo_n "(cached) " >&6
40515fi
40516{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
40517$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
40518else
40519 # Is the header compilable?
40520{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
40521$as_echo_n "checking jasper/jasper.h usability... " >&6; }
40522cat >conftest.$ac_ext <<_ACEOF
40523/* confdefs.h. */
40524_ACEOF
40525cat confdefs.h >>conftest.$ac_ext
40526cat >>conftest.$ac_ext <<_ACEOF
40527/* end confdefs.h. */
40528$ac_includes_default
40529#include <jasper/jasper.h>
40530_ACEOF
40531rm -f conftest.$ac_objext
40532if { (ac_try="$ac_compile"
40533case "(($ac_try" in
40534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40535 *) ac_try_echo=$ac_try;;
40536esac
40537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40538$as_echo "$ac_try_echo") >&5
40539 (eval "$ac_compile") 2>conftest.er1
40540 ac_status=$?
40541 grep -v '^ *+' conftest.er1 >conftest.err
40542 rm -f conftest.er1
40543 cat conftest.err >&5
40544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40545 (exit $ac_status); } && {
40546 test -z "$ac_c_werror_flag" ||
40547 test ! -s conftest.err
40548 } && test -s conftest.$ac_objext; then
40549 ac_header_compiler=yes
40550else
40551 $as_echo "$as_me: failed program was:" >&5
40552sed 's/^/| /' conftest.$ac_ext >&5
40553
40554 ac_header_compiler=no
40555fi
40556
40557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40558{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40559$as_echo "$ac_header_compiler" >&6; }
40560
40561# Is the header present?
40562{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
40563$as_echo_n "checking jasper/jasper.h presence... " >&6; }
40564cat >conftest.$ac_ext <<_ACEOF
40565/* confdefs.h. */
40566_ACEOF
40567cat confdefs.h >>conftest.$ac_ext
40568cat >>conftest.$ac_ext <<_ACEOF
40569/* end confdefs.h. */
40570#include <jasper/jasper.h>
40571_ACEOF
40572if { (ac_try="$ac_cpp conftest.$ac_ext"
40573case "(($ac_try" in
40574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40575 *) ac_try_echo=$ac_try;;
40576esac
40577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40578$as_echo "$ac_try_echo") >&5
40579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40580 ac_status=$?
40581 grep -v '^ *+' conftest.er1 >conftest.err
40582 rm -f conftest.er1
40583 cat conftest.err >&5
40584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40585 (exit $ac_status); } >/dev/null && {
40586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40587 test ! -s conftest.err
40588 }; then
40589 ac_header_preproc=yes
40590else
40591 $as_echo "$as_me: failed program was:" >&5
40592sed 's/^/| /' conftest.$ac_ext >&5
40593
40594 ac_header_preproc=no
40595fi
40596
40597rm -f conftest.err conftest.$ac_ext
40598{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40599$as_echo "$ac_header_preproc" >&6; }
40600
40601# So? What about this header?
40602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40603 yes:no: )
40604 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
40605$as_echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40606 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
40607$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
40608 ac_header_preproc=yes
40609 ;;
40610 no:yes:* )
40611 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
40612$as_echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
40613 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&5
40614$as_echo "$as_me: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&2;}
40615 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
40616$as_echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
40617 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&5
40618$as_echo "$as_me: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&2;}
40619 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
40620$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
40621 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
40622$as_echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
40623 ( cat <<\_ASBOX
40624## ----------------------------------------- ##
40625## Report this to http://www.imagemagick.org ##
40626## ----------------------------------------- ##
40627_ASBOX
40628 ) | sed "s/^/$as_me: WARNING: /" >&2
40629 ;;
40630esac
40631{ $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
40632$as_echo_n "checking for jasper/jasper.h... " >&6; }
40633if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40634 $as_echo_n "(cached) " >&6
40635else
40636 ac_cv_header_jasper_jasper_h=$ac_header_preproc
40637fi
40638{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
40639$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
40640
40641fi
40642if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then
40643 passed=`expr $passed + 1`
40644else
40645 failed=`expr $failed + 1`
40646fi
40647
40648
40649 { $as_echo "$as_me:$LINENO: checking for jas_stream_fopen in -ljasper" >&5
40650$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
40651if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then
40652 $as_echo_n "(cached) " >&6
40653else
40654 ac_check_lib_save_LIBS=$LIBS
40655LIBS="-ljasper $LIBS"
40656cat >conftest.$ac_ext <<_ACEOF
40657/* confdefs.h. */
40658_ACEOF
40659cat confdefs.h >>conftest.$ac_ext
40660cat >>conftest.$ac_ext <<_ACEOF
40661/* end confdefs.h. */
40662
40663/* Override any GCC internal prototype to avoid an error.
40664 Use char because int might match the return type of a GCC
40665 builtin and then its argument prototype would still apply. */
40666#ifdef __cplusplus
40667extern "C"
40668#endif
40669char jas_stream_fopen ();
40670int
40671main ()
40672{
40673return jas_stream_fopen ();
40674 ;
40675 return 0;
40676}
40677_ACEOF
40678rm -f conftest.$ac_objext conftest$ac_exeext
40679if { (ac_try="$ac_link"
40680case "(($ac_try" in
40681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40682 *) ac_try_echo=$ac_try;;
40683esac
40684eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40685$as_echo "$ac_try_echo") >&5
40686 (eval "$ac_link") 2>conftest.er1
40687 ac_status=$?
40688 grep -v '^ *+' conftest.er1 >conftest.err
40689 rm -f conftest.er1
40690 cat conftest.err >&5
40691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40692 (exit $ac_status); } && {
40693 test -z "$ac_c_werror_flag" ||
40694 test ! -s conftest.err
40695 } && test -s conftest$ac_exeext && {
40696 test "$cross_compiling" = yes ||
40697 $as_test_x conftest$ac_exeext
40698 }; then
40699 ac_cv_lib_jasper_jas_stream_fopen=yes
40700else
40701 $as_echo "$as_me: failed program was:" >&5
40702sed 's/^/| /' conftest.$ac_ext >&5
40703
40704 ac_cv_lib_jasper_jas_stream_fopen=no
40705fi
40706
40707rm -rf conftest.dSYM
40708rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40709 conftest$ac_exeext conftest.$ac_ext
40710LIBS=$ac_check_lib_save_LIBS
40711fi
40712{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
40713$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
40714if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then
40715 passed=`expr $passed + 1`
40716else
40717 failed=`expr $failed + 1`
40718fi
40719
40720 { $as_echo "$as_me:$LINENO: checking if JPEG version 2 support package is complete" >&5
40721$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
40722 if test $passed -gt 0; then
40723 if test $failed -gt 0; then
40724 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40725$as_echo "no -- some components failed test" >&6; }
40726 have_jp2='no (failed tests)'
40727 else
40728 JP2_LIBS='-ljasper'
40729 LIBS="$JP2_LIBS $LIBS"
40730
40731cat >>confdefs.h <<\_ACEOF
40732#define JP2_DELEGATE 1
40733_ACEOF
40734
40735 { $as_echo "$as_me:$LINENO: result: yes" >&5
40736$as_echo "yes" >&6; }
40737 have_jp2='yes'
40738 fi
40739 else
40740 { $as_echo "$as_me:$LINENO: result: no" >&5
40741$as_echo "no" >&6; }
40742 fi
40743fi
40744 if test "$have_jp2" = 'yes'; then
40745 JP2_DELEGATE_TRUE=
40746 JP2_DELEGATE_FALSE='#'
40747else
40748 JP2_DELEGATE_TRUE='#'
40749 JP2_DELEGATE_FALSE=
40750fi
40751
40752
40753
40754
40755#
40756# Check for LCMS delegate library.
40757#
40758
40759# Check whether --with-lcms was given.
40760if test "${with_lcms+set}" = set; then
40761 withval=$with_lcms; with_lcms=$withval
40762else
40763 with_lcms='yes'
40764fi
40765
40766
40767if test "$with_lcms" != 'yes'; then
40768 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
40769fi
40770
40771have_lcms='no'
40772LCMS_LIBS=''
40773if test "$with_lcms" != 'no'; then
40774 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40775$as_echo "-------------------------------------------------------------" >&6; }
40776 { $as_echo "$as_me:$LINENO: checking for LCMS" >&5
40777$as_echo_n "checking for LCMS... " >&6; }
40778 { $as_echo "$as_me:$LINENO: result: " >&5
40779$as_echo "" >&6; }
40780 failed=0
40781 passed=0
40782 have_lcms_header='no'
40783 if test "${ac_cv_header_lcms_h+set}" = set; then
40784 { $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40785$as_echo_n "checking for lcms.h... " >&6; }
40786if test "${ac_cv_header_lcms_h+set}" = set; then
40787 $as_echo_n "(cached) " >&6
40788fi
40789{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40790$as_echo "$ac_cv_header_lcms_h" >&6; }
40791else
40792 # Is the header compilable?
40793{ $as_echo "$as_me:$LINENO: checking lcms.h usability" >&5
40794$as_echo_n "checking lcms.h usability... " >&6; }
40795cat >conftest.$ac_ext <<_ACEOF
40796/* confdefs.h. */
40797_ACEOF
40798cat confdefs.h >>conftest.$ac_ext
40799cat >>conftest.$ac_ext <<_ACEOF
40800/* end confdefs.h. */
40801$ac_includes_default
40802#include <lcms.h>
40803_ACEOF
40804rm -f conftest.$ac_objext
40805if { (ac_try="$ac_compile"
40806case "(($ac_try" in
40807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40808 *) ac_try_echo=$ac_try;;
40809esac
40810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40811$as_echo "$ac_try_echo") >&5
40812 (eval "$ac_compile") 2>conftest.er1
40813 ac_status=$?
40814 grep -v '^ *+' conftest.er1 >conftest.err
40815 rm -f conftest.er1
40816 cat conftest.err >&5
40817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40818 (exit $ac_status); } && {
40819 test -z "$ac_c_werror_flag" ||
40820 test ! -s conftest.err
40821 } && test -s conftest.$ac_objext; then
40822 ac_header_compiler=yes
40823else
40824 $as_echo "$as_me: failed program was:" >&5
40825sed 's/^/| /' conftest.$ac_ext >&5
40826
40827 ac_header_compiler=no
40828fi
40829
40830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40831{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40832$as_echo "$ac_header_compiler" >&6; }
40833
40834# Is the header present?
40835{ $as_echo "$as_me:$LINENO: checking lcms.h presence" >&5
40836$as_echo_n "checking lcms.h presence... " >&6; }
40837cat >conftest.$ac_ext <<_ACEOF
40838/* confdefs.h. */
40839_ACEOF
40840cat confdefs.h >>conftest.$ac_ext
40841cat >>conftest.$ac_ext <<_ACEOF
40842/* end confdefs.h. */
40843#include <lcms.h>
40844_ACEOF
40845if { (ac_try="$ac_cpp conftest.$ac_ext"
40846case "(($ac_try" in
40847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40848 *) ac_try_echo=$ac_try;;
40849esac
40850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40851$as_echo "$ac_try_echo") >&5
40852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40853 ac_status=$?
40854 grep -v '^ *+' conftest.er1 >conftest.err
40855 rm -f conftest.er1
40856 cat conftest.err >&5
40857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40858 (exit $ac_status); } >/dev/null && {
40859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40860 test ! -s conftest.err
40861 }; then
40862 ac_header_preproc=yes
40863else
40864 $as_echo "$as_me: failed program was:" >&5
40865sed 's/^/| /' conftest.$ac_ext >&5
40866
40867 ac_header_preproc=no
40868fi
40869
40870rm -f conftest.err conftest.$ac_ext
40871{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40872$as_echo "$ac_header_preproc" >&6; }
40873
40874# So? What about this header?
40875case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40876 yes:no: )
40877 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
40878$as_echo "$as_me: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40879 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the compiler's result" >&5
40880$as_echo "$as_me: WARNING: lcms.h: proceeding with the compiler's result" >&2;}
40881 ac_header_preproc=yes
40882 ;;
40883 no:yes:* )
40884 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: present but cannot be compiled" >&5
40885$as_echo "$as_me: WARNING: lcms.h: present but cannot be compiled" >&2;}
40886 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: check for missing prerequisite headers?" >&5
40887$as_echo "$as_me: WARNING: lcms.h: check for missing prerequisite headers?" >&2;}
40888 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: see the Autoconf documentation" >&5
40889$as_echo "$as_me: WARNING: lcms.h: see the Autoconf documentation" >&2;}
40890 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&5
40891$as_echo "$as_me: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
40892 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the preprocessor's result" >&5
40893$as_echo "$as_me: WARNING: lcms.h: proceeding with the preprocessor's result" >&2;}
40894 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: in the future, the compiler will take precedence" >&5
40895$as_echo "$as_me: WARNING: lcms.h: in the future, the compiler will take precedence" >&2;}
40896 ( cat <<\_ASBOX
40897## ----------------------------------------- ##
40898## Report this to http://www.imagemagick.org ##
40899## ----------------------------------------- ##
40900_ASBOX
40901 ) | sed "s/^/$as_me: WARNING: /" >&2
40902 ;;
40903esac
40904{ $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40905$as_echo_n "checking for lcms.h... " >&6; }
40906if test "${ac_cv_header_lcms_h+set}" = set; then
40907 $as_echo_n "(cached) " >&6
40908else
40909 ac_cv_header_lcms_h=$ac_header_preproc
40910fi
40911{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40912$as_echo "$ac_cv_header_lcms_h" >&6; }
40913
40914fi
40915if test "x$ac_cv_header_lcms_h" = x""yes; then
40916 have_lcms_header='yes'
40917fi
40918
40919
40920 if test "$have_lcms_header" = 'yes'; then
40921 passed=`expr $passed + 1`
40922
40923cat >>confdefs.h <<\_ACEOF
40924#define HAVE_LCMS_H 1
40925_ACEOF
40926
40927 else
40928 if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40929 { $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
40930$as_echo_n "checking for lcms/lcms.h... " >&6; }
40931if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40932 $as_echo_n "(cached) " >&6
40933fi
40934{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
40935$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
40936else
40937 # Is the header compilable?
40938{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h usability" >&5
40939$as_echo_n "checking lcms/lcms.h usability... " >&6; }
40940cat >conftest.$ac_ext <<_ACEOF
40941/* confdefs.h. */
40942_ACEOF
40943cat confdefs.h >>conftest.$ac_ext
40944cat >>conftest.$ac_ext <<_ACEOF
40945/* end confdefs.h. */
40946$ac_includes_default
40947#include <lcms/lcms.h>
40948_ACEOF
40949rm -f conftest.$ac_objext
40950if { (ac_try="$ac_compile"
40951case "(($ac_try" in
40952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40953 *) ac_try_echo=$ac_try;;
40954esac
40955eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40956$as_echo "$ac_try_echo") >&5
40957 (eval "$ac_compile") 2>conftest.er1
40958 ac_status=$?
40959 grep -v '^ *+' conftest.er1 >conftest.err
40960 rm -f conftest.er1
40961 cat conftest.err >&5
40962 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963 (exit $ac_status); } && {
40964 test -z "$ac_c_werror_flag" ||
40965 test ! -s conftest.err
40966 } && test -s conftest.$ac_objext; then
40967 ac_header_compiler=yes
40968else
40969 $as_echo "$as_me: failed program was:" >&5
40970sed 's/^/| /' conftest.$ac_ext >&5
40971
40972 ac_header_compiler=no
40973fi
40974
40975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40976{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40977$as_echo "$ac_header_compiler" >&6; }
40978
40979# Is the header present?
40980{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h presence" >&5
40981$as_echo_n "checking lcms/lcms.h presence... " >&6; }
40982cat >conftest.$ac_ext <<_ACEOF
40983/* confdefs.h. */
40984_ACEOF
40985cat confdefs.h >>conftest.$ac_ext
40986cat >>conftest.$ac_ext <<_ACEOF
40987/* end confdefs.h. */
40988#include <lcms/lcms.h>
40989_ACEOF
40990if { (ac_try="$ac_cpp conftest.$ac_ext"
40991case "(($ac_try" in
40992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40993 *) ac_try_echo=$ac_try;;
40994esac
40995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40996$as_echo "$ac_try_echo") >&5
40997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40998 ac_status=$?
40999 grep -v '^ *+' conftest.er1 >conftest.err
41000 rm -f conftest.er1
41001 cat conftest.err >&5
41002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41003 (exit $ac_status); } >/dev/null && {
41004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41005 test ! -s conftest.err
41006 }; then
41007 ac_header_preproc=yes
41008else
41009 $as_echo "$as_me: failed program was:" >&5
41010sed 's/^/| /' conftest.$ac_ext >&5
41011
41012 ac_header_preproc=no
41013fi
41014
41015rm -f conftest.err conftest.$ac_ext
41016{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41017$as_echo "$ac_header_preproc" >&6; }
41018
41019# So? What about this header?
41020case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41021 yes:no: )
41022 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
41023$as_echo "$as_me: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41024 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&5
41025$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&2;}
41026 ac_header_preproc=yes
41027 ;;
41028 no:yes:* )
41029 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: present but cannot be compiled" >&5
41030$as_echo "$as_me: WARNING: lcms/lcms.h: present but cannot be compiled" >&2;}
41031 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&5
41032$as_echo "$as_me: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&2;}
41033 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: see the Autoconf documentation" >&5
41034$as_echo "$as_me: WARNING: lcms/lcms.h: see the Autoconf documentation" >&2;}
41035 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&5
41036$as_echo "$as_me: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
41037 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&5
41038$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&2;}
41039 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&5
41040$as_echo "$as_me: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&2;}
41041 ( cat <<\_ASBOX
41042## ----------------------------------------- ##
41043## Report this to http://www.imagemagick.org ##
41044## ----------------------------------------- ##
41045_ASBOX
41046 ) | sed "s/^/$as_me: WARNING: /" >&2
41047 ;;
41048esac
41049{ $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
41050$as_echo_n "checking for lcms/lcms.h... " >&6; }
41051if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
41052 $as_echo_n "(cached) " >&6
41053else
41054 ac_cv_header_lcms_lcms_h=$ac_header_preproc
41055fi
41056{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
41057$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
41058
41059fi
41060if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then
41061 have_lcms_header='yes'
41062fi
41063
41064
41065 if test "$have_lcms_header" = 'yes'; then
41066 passed=`expr $passed + 1`
41067
41068cat >>confdefs.h <<\_ACEOF
41069#define HAVE_LCMS_LCMS_H 1
41070_ACEOF
41071
41072 else
41073 failed=`expr $failed + 1`
41074 fi
41075 fi
41076 { $as_echo "$as_me:$LINENO: checking for cmsOpenProfileFromMem in -llcms" >&5
41077$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
41078if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then
41079 $as_echo_n "(cached) " >&6
41080else
41081 ac_check_lib_save_LIBS=$LIBS
41082LIBS="-llcms $LIBS"
41083cat >conftest.$ac_ext <<_ACEOF
41084/* confdefs.h. */
41085_ACEOF
41086cat confdefs.h >>conftest.$ac_ext
41087cat >>conftest.$ac_ext <<_ACEOF
41088/* end confdefs.h. */
41089
41090/* Override any GCC internal prototype to avoid an error.
41091 Use char because int might match the return type of a GCC
41092 builtin and then its argument prototype would still apply. */
41093#ifdef __cplusplus
41094extern "C"
41095#endif
41096char cmsOpenProfileFromMem ();
41097int
41098main ()
41099{
41100return cmsOpenProfileFromMem ();
41101 ;
41102 return 0;
41103}
41104_ACEOF
41105rm -f conftest.$ac_objext conftest$ac_exeext
41106if { (ac_try="$ac_link"
41107case "(($ac_try" in
41108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41109 *) ac_try_echo=$ac_try;;
41110esac
41111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41112$as_echo "$ac_try_echo") >&5
41113 (eval "$ac_link") 2>conftest.er1
41114 ac_status=$?
41115 grep -v '^ *+' conftest.er1 >conftest.err
41116 rm -f conftest.er1
41117 cat conftest.err >&5
41118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41119 (exit $ac_status); } && {
41120 test -z "$ac_c_werror_flag" ||
41121 test ! -s conftest.err
41122 } && test -s conftest$ac_exeext && {
41123 test "$cross_compiling" = yes ||
41124 $as_test_x conftest$ac_exeext
41125 }; then
41126 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
41127else
41128 $as_echo "$as_me: failed program was:" >&5
41129sed 's/^/| /' conftest.$ac_ext >&5
41130
41131 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
41132fi
41133
41134rm -rf conftest.dSYM
41135rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41136 conftest$ac_exeext conftest.$ac_ext
41137LIBS=$ac_check_lib_save_LIBS
41138fi
41139{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
41140$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
41141if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then
41142 passed=`expr $passed + 1`
41143else
41144 failed=`expr $failed + 1`
41145fi
41146
41147 { $as_echo "$as_me:$LINENO: checking if LCMS package is complete" >&5
41148$as_echo_n "checking if LCMS package is complete... " >&6; }
41149 if test $passed -gt 0; then
41150 if test $failed -gt 0; then
41151 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
41152$as_echo "no -- some components failed test" >&6; }
41153 have_lcms='no (failed tests)'
41154 else
41155 LCMS_LIBS='-llcms'
41156 LIBS="$LCMS_LIBS $LIBS"
41157
41158cat >>confdefs.h <<\_ACEOF
41159#define LCMS_DELEGATE 1
41160_ACEOF
41161
41162 { $as_echo "$as_me:$LINENO: result: yes" >&5
41163$as_echo "yes" >&6; }
41164 have_lcms='yes'
41165 fi
41166 else
41167 { $as_echo "$as_me:$LINENO: result: no" >&5
41168$as_echo "no" >&6; }
41169 fi
41170fi
41171 if test "$have_lcms" = 'yes'; then
41172 LCMS_DELEGATE_TRUE=
41173 LCMS_DELEGATE_FALSE='#'
41174else
41175 LCMS_DELEGATE_TRUE='#'
41176 LCMS_DELEGATE_FALSE=
41177fi
41178
41179
41180
41181
41182#
41183# Check for the LQR (Liquid Rescale) delegate library.
41184#
41185
41186# Check whether --with-lqr was given.
41187if test "${with_lqr+set}" = set; then
41188 withval=$with_lqr; with_lqr=$withval
41189else
41190 with_lqr='yes'
41191fi
41192
41193
41194if test "$with_lqr" != 'yes'; then
41195 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
41196fi
41197
41198have_lqr='no'
41199LQR_CFLAGS=""
41200LQR_LIBS=""
41201LQR_PKG=""
41202if test "x$with_lqr" = "xyes"; then
41203 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41204$as_echo "-------------------------------------------------------------" >&6; }
41205
41206pkg_failed=no
41207{ $as_echo "$as_me:$LINENO: checking for LQR" >&5
41208$as_echo_n "checking for LQR... " >&6; }
41209
41210if test -n "$LQR_CFLAGS"; then
41211 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
41212 elif test -n "$PKG_CONFIG"; then
41213 if test -n "$PKG_CONFIG" && \
41214 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
41215 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
41216 ac_status=$?
41217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41218 (exit $ac_status); }; then
41219 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
41220else
41221 pkg_failed=yes
41222fi
41223 else
41224 pkg_failed=untried
41225fi
41226if test -n "$LQR_LIBS"; then
41227 pkg_cv_LQR_LIBS="$LQR_LIBS"
41228 elif test -n "$PKG_CONFIG"; then
41229 if test -n "$PKG_CONFIG" && \
41230 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
41231 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
41232 ac_status=$?
41233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41234 (exit $ac_status); }; then
41235 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
41236else
41237 pkg_failed=yes
41238fi
41239 else
41240 pkg_failed=untried
41241fi
41242
41243
41244
41245if test $pkg_failed = yes; then
41246
41247if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41248 _pkg_short_errors_supported=yes
41249else
41250 _pkg_short_errors_supported=no
41251fi
41252 if test $_pkg_short_errors_supported = yes; then
41253 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
41254 else
41255 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
41256 fi
41257 # Put the nasty error message in config.log where it belongs
41258 echo "$LQR_PKG_ERRORS" >&5
41259
41260 { $as_echo "$as_me:$LINENO: result: no" >&5
41261$as_echo "no" >&6; }
41262 have_lqr=no
41263elif test $pkg_failed = untried; then
41264 have_lqr=no
41265else
41266 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
41267 LQR_LIBS=$pkg_cv_LQR_LIBS
41268 { $as_echo "$as_me:$LINENO: result: yes" >&5
41269$as_echo "yes" >&6; }
41270 have_lqr=yes
41271fi
41272 { $as_echo "$as_me:$LINENO: result: " >&5
41273$as_echo "" >&6; }
41274fi
41275
41276if test "$have_lqr" = 'yes'; then
41277
41278cat >>confdefs.h <<\_ACEOF
41279#define LQR_DELEGATE 1
41280_ACEOF
41281
41282 CFLAGS="$LQR_CFLAGS $CFLAGS"
41283fi
41284
41285 if test "$have_lqr" = 'yes'; then
41286 LQR_DELEGATE_TRUE=
41287 LQR_DELEGATE_FALSE='#'
41288else
41289 LQR_DELEGATE_TRUE='#'
41290 LQR_DELEGATE_FALSE=
41291fi
41292
41293
41294
41295
41296
41297#
41298# Check for the OpenEXR delegate library.
41299#
41300
41301# Check whether --with-openexr was given.
41302if test "${with_openexr+set}" = set; then
41303 withval=$with_openexr; with_openexr=$withval
41304else
41305 with_openexr='yes'
41306fi
41307
41308
41309if test "$with_openexr" != 'yes'; then
41310 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
41311fi
41312
41313have_openexr='no'
41314OPENEXR_CFLAGS=""
41315OPENEXR_LIBS=""
41316OPENEXR_PKG=""
41317if test "x$with_openexr" = "xyes"; then
41318 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41319$as_echo "-------------------------------------------------------------" >&6; }
41320
41321pkg_failed=no
41322{ $as_echo "$as_me:$LINENO: checking for OPENEXR" >&5
41323$as_echo_n "checking for OPENEXR... " >&6; }
41324
41325if test -n "$OPENEXR_CFLAGS"; then
41326 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
41327 elif test -n "$PKG_CONFIG"; then
41328 if test -n "$PKG_CONFIG" && \
41329 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
41330 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
41331 ac_status=$?
41332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41333 (exit $ac_status); }; then
41334 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
41335else
41336 pkg_failed=yes
41337fi
41338 else
41339 pkg_failed=untried
41340fi
41341if test -n "$OPENEXR_LIBS"; then
41342 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
41343 elif test -n "$PKG_CONFIG"; then
41344 if test -n "$PKG_CONFIG" && \
41345 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
41346 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
41347 ac_status=$?
41348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41349 (exit $ac_status); }; then
41350 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
41351else
41352 pkg_failed=yes
41353fi
41354 else
41355 pkg_failed=untried
41356fi
41357
41358
41359
41360if test $pkg_failed = yes; then
41361
41362if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41363 _pkg_short_errors_supported=yes
41364else
41365 _pkg_short_errors_supported=no
41366fi
41367 if test $_pkg_short_errors_supported = yes; then
41368 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
41369 else
41370 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
41371 fi
41372 # Put the nasty error message in config.log where it belongs
41373 echo "$OPENEXR_PKG_ERRORS" >&5
41374
41375 { $as_echo "$as_me:$LINENO: result: no" >&5
41376$as_echo "no" >&6; }
41377 have_openexr=no
41378elif test $pkg_failed = untried; then
41379 have_openexr=no
41380else
41381 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
41382 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
41383 { $as_echo "$as_me:$LINENO: result: yes" >&5
41384$as_echo "yes" >&6; }
41385 have_openexr=yes
41386fi
41387 { $as_echo "$as_me:$LINENO: result: " >&5
41388$as_echo "" >&6; }
41389fi
41390
41391if test "$have_openexr" = 'yes'; then
41392
41393cat >>confdefs.h <<\_ACEOF
41394#define OPENEXR_DELEGATE 1
41395_ACEOF
41396
41397 if test "$with_modules" = 'no'; then
41398 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
41399 fi
41400fi
41401
41402 if test "$have_openexr" = 'yes'; then
41403 OPENEXR_DELEGATE_TRUE=
41404 OPENEXR_DELEGATE_FALSE='#'
41405else
41406 OPENEXR_DELEGATE_TRUE='#'
41407 OPENEXR_DELEGATE_FALSE=
41408fi
41409
41410
41411
41412
41413
41414#
41415# Check for PNG delegate library.
41416#
41417
41418# Check whether --with-png was given.
41419if test "${with_png+set}" = set; then
41420 withval=$with_png; with_png=$withval
41421else
41422 with_png='yes'
41423fi
41424
41425
41426if test "$with_png" != 'yes'; then
41427 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
41428fi
41429
41430have_png='no'
41431PNG_LIBS=''
41432if test "$with_png" != 'no'; then
41433 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41434$as_echo "-------------------------------------------------------------" >&6; }
41435 { $as_echo "$as_me:$LINENO: checking for PNG" >&5
41436$as_echo_n "checking for PNG... " >&6; }
41437 { $as_echo "$as_me:$LINENO: result: " >&5
41438$as_echo "" >&6; }
41439 failed=0
41440 passed=0
41441 if test "${ac_cv_header_png_h+set}" = set; then
41442 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
41443$as_echo_n "checking for png.h... " >&6; }
41444if test "${ac_cv_header_png_h+set}" = set; then
41445 $as_echo_n "(cached) " >&6
41446fi
41447{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
41448$as_echo "$ac_cv_header_png_h" >&6; }
41449else
41450 # Is the header compilable?
41451{ $as_echo "$as_me:$LINENO: checking png.h usability" >&5
41452$as_echo_n "checking png.h usability... " >&6; }
41453cat >conftest.$ac_ext <<_ACEOF
41454/* confdefs.h. */
41455_ACEOF
41456cat confdefs.h >>conftest.$ac_ext
41457cat >>conftest.$ac_ext <<_ACEOF
41458/* end confdefs.h. */
41459$ac_includes_default
41460#include <png.h>
41461_ACEOF
41462rm -f conftest.$ac_objext
41463if { (ac_try="$ac_compile"
41464case "(($ac_try" in
41465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41466 *) ac_try_echo=$ac_try;;
41467esac
41468eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41469$as_echo "$ac_try_echo") >&5
41470 (eval "$ac_compile") 2>conftest.er1
41471 ac_status=$?
41472 grep -v '^ *+' conftest.er1 >conftest.err
41473 rm -f conftest.er1
41474 cat conftest.err >&5
41475 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41476 (exit $ac_status); } && {
41477 test -z "$ac_c_werror_flag" ||
41478 test ! -s conftest.err
41479 } && test -s conftest.$ac_objext; then
41480 ac_header_compiler=yes
41481else
41482 $as_echo "$as_me: failed program was:" >&5
41483sed 's/^/| /' conftest.$ac_ext >&5
41484
41485 ac_header_compiler=no
41486fi
41487
41488rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41489{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41490$as_echo "$ac_header_compiler" >&6; }
41491
41492# Is the header present?
41493{ $as_echo "$as_me:$LINENO: checking png.h presence" >&5
41494$as_echo_n "checking png.h presence... " >&6; }
41495cat >conftest.$ac_ext <<_ACEOF
41496/* confdefs.h. */
41497_ACEOF
41498cat confdefs.h >>conftest.$ac_ext
41499cat >>conftest.$ac_ext <<_ACEOF
41500/* end confdefs.h. */
41501#include <png.h>
41502_ACEOF
41503if { (ac_try="$ac_cpp conftest.$ac_ext"
41504case "(($ac_try" in
41505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41506 *) ac_try_echo=$ac_try;;
41507esac
41508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41509$as_echo "$ac_try_echo") >&5
41510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41511 ac_status=$?
41512 grep -v '^ *+' conftest.er1 >conftest.err
41513 rm -f conftest.er1
41514 cat conftest.err >&5
41515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41516 (exit $ac_status); } >/dev/null && {
41517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41518 test ! -s conftest.err
41519 }; then
41520 ac_header_preproc=yes
41521else
41522 $as_echo "$as_me: failed program was:" >&5
41523sed 's/^/| /' conftest.$ac_ext >&5
41524
41525 ac_header_preproc=no
41526fi
41527
41528rm -f conftest.err conftest.$ac_ext
41529{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41530$as_echo "$ac_header_preproc" >&6; }
41531
41532# So? What about this header?
41533case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41534 yes:no: )
41535 { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
41536$as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41537 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
41538$as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
41539 ac_header_preproc=yes
41540 ;;
41541 no:yes:* )
41542 { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
41543$as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
41544 { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
41545$as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
41546 { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
41547$as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
41548 { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
41549$as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
41550 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
41551$as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
41552 { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
41553$as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
41554 ( cat <<\_ASBOX
41555## ----------------------------------------- ##
41556## Report this to http://www.imagemagick.org ##
41557## ----------------------------------------- ##
41558_ASBOX
41559 ) | sed "s/^/$as_me: WARNING: /" >&2
41560 ;;
41561esac
41562{ $as_echo "$as_me:$LINENO: checking for png.h" >&5
41563$as_echo_n "checking for png.h... " >&6; }
41564if test "${ac_cv_header_png_h+set}" = set; then
41565 $as_echo_n "(cached) " >&6
41566else
41567 ac_cv_header_png_h=$ac_header_preproc
41568fi
41569{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
41570$as_echo "$ac_cv_header_png_h" >&6; }
41571
41572fi
41573if test "x$ac_cv_header_png_h" = x""yes; then
41574 passed=`expr $passed + 1`
41575else
41576 failed=`expr $failed + 1`
41577fi
41578
41579
41580 { $as_echo "$as_me:$LINENO: checking for png_get_io_ptr in -lpng" >&5
41581$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
41582if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then
41583 $as_echo_n "(cached) " >&6
41584else
41585 ac_check_lib_save_LIBS=$LIBS
41586LIBS="-lpng $LIBS"
41587cat >conftest.$ac_ext <<_ACEOF
41588/* confdefs.h. */
41589_ACEOF
41590cat confdefs.h >>conftest.$ac_ext
41591cat >>conftest.$ac_ext <<_ACEOF
41592/* end confdefs.h. */
41593
41594/* Override any GCC internal prototype to avoid an error.
41595 Use char because int might match the return type of a GCC
41596 builtin and then its argument prototype would still apply. */
41597#ifdef __cplusplus
41598extern "C"
41599#endif
41600char png_get_io_ptr ();
41601int
41602main ()
41603{
41604return png_get_io_ptr ();
41605 ;
41606 return 0;
41607}
41608_ACEOF
41609rm -f conftest.$ac_objext conftest$ac_exeext
41610if { (ac_try="$ac_link"
41611case "(($ac_try" in
41612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41613 *) ac_try_echo=$ac_try;;
41614esac
41615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41616$as_echo "$ac_try_echo") >&5
41617 (eval "$ac_link") 2>conftest.er1
41618 ac_status=$?
41619 grep -v '^ *+' conftest.er1 >conftest.err
41620 rm -f conftest.er1
41621 cat conftest.err >&5
41622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41623 (exit $ac_status); } && {
41624 test -z "$ac_c_werror_flag" ||
41625 test ! -s conftest.err
41626 } && test -s conftest$ac_exeext && {
41627 test "$cross_compiling" = yes ||
41628 $as_test_x conftest$ac_exeext
41629 }; then
41630 ac_cv_lib_png_png_get_io_ptr=yes
41631else
41632 $as_echo "$as_me: failed program was:" >&5
41633sed 's/^/| /' conftest.$ac_ext >&5
41634
41635 ac_cv_lib_png_png_get_io_ptr=no
41636fi
41637
41638rm -rf conftest.dSYM
41639rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41640 conftest$ac_exeext conftest.$ac_ext
41641LIBS=$ac_check_lib_save_LIBS
41642fi
41643{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_io_ptr" >&5
41644$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
41645if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then
41646 passed=`expr $passed + 1`
41647else
41648 failed=`expr $failed + 1`
41649fi
41650
41651 { $as_echo "$as_me:$LINENO: checking if PNG package is complete" >&5
41652$as_echo_n "checking if PNG package is complete... " >&6; }
41653 if test $passed -gt 0; then
41654 if test $failed -gt 0; then
41655 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
41656$as_echo "no -- some components failed test" >&6; }
41657 have_png='no (failed tests)'
41658 else
41659 PNG_LIBS='-lpng'
41660 LIBS="$PNG_LIBS $LIBS"
41661
41662cat >>confdefs.h <<\_ACEOF
41663#define PNG_DELEGATE 1
41664_ACEOF
41665
41666 { $as_echo "$as_me:$LINENO: result: yes" >&5
41667$as_echo "yes" >&6; }
41668 have_png='yes'
41669 fi
41670 else
41671 { $as_echo "$as_me:$LINENO: result: no" >&5
41672$as_echo "no" >&6; }
41673 fi
41674fi
41675 if test "$have_png" = 'yes'; then
41676 PNG_DELEGATE_TRUE=
41677 PNG_DELEGATE_FALSE='#'
41678else
41679 PNG_DELEGATE_TRUE='#'
41680 PNG_DELEGATE_FALSE=
41681fi
41682
41683
41684
41685
41686#
41687# Check for RSVG delegate library.
41688#
41689
41690# Check whether --with-rsvg was given.
41691if test "${with_rsvg+set}" = set; then
41692 withval=$with_rsvg; with_rsvg=$withval
41693else
41694 with_rsvg=$have_x
41695fi
41696
41697
41698if test "$with_rsvg" != 'yes'; then
41699 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
41700fi
41701
41702have_rsvg='no'
41703have_cairo='no'
41704RSVG_CFLAGS=""
41705RSVG_LIBS=""
41706RSVG_PKG=""
41707if test "x$with_rsvg" = "xyes"; then
41708 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41709$as_echo "-------------------------------------------------------------" >&6; }
41710
41711pkg_failed=no
41712{ $as_echo "$as_me:$LINENO: checking for RSVG" >&5
41713$as_echo_n "checking for RSVG... " >&6; }
41714
41715if test -n "$RSVG_CFLAGS"; then
41716 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
41717 elif test -n "$PKG_CONFIG"; then
41718 if test -n "$PKG_CONFIG" && \
41719 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
41720 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
41721 ac_status=$?
41722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41723 (exit $ac_status); }; then
41724 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
41725else
41726 pkg_failed=yes
41727fi
41728 else
41729 pkg_failed=untried
41730fi
41731if test -n "$RSVG_LIBS"; then
41732 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
41733 elif test -n "$PKG_CONFIG"; then
41734 if test -n "$PKG_CONFIG" && \
41735 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
41736 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
41737 ac_status=$?
41738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41739 (exit $ac_status); }; then
41740 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
41741else
41742 pkg_failed=yes
41743fi
41744 else
41745 pkg_failed=untried
41746fi
41747
41748
41749
41750if test $pkg_failed = yes; then
41751
41752if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41753 _pkg_short_errors_supported=yes
41754else
41755 _pkg_short_errors_supported=no
41756fi
41757 if test $_pkg_short_errors_supported = yes; then
41758 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
41759 else
41760 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
41761 fi
41762 # Put the nasty error message in config.log where it belongs
41763 echo "$RSVG_PKG_ERRORS" >&5
41764
41765 { $as_echo "$as_me:$LINENO: result: no" >&5
41766$as_echo "no" >&6; }
41767 have_rsvg=no
41768elif test $pkg_failed = untried; then
41769 have_rsvg=no
41770else
41771 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
41772 RSVG_LIBS=$pkg_cv_RSVG_LIBS
41773 { $as_echo "$as_me:$LINENO: result: yes" >&5
41774$as_echo "yes" >&6; }
41775 have_rsvg=yes
41776fi
41777 { $as_echo "$as_me:$LINENO: result: " >&5
41778$as_echo "" >&6; }
41779
41780pkg_failed=no
41781{ $as_echo "$as_me:$LINENO: checking for CAIRO_SVG" >&5
41782$as_echo_n "checking for CAIRO_SVG... " >&6; }
41783
41784if test -n "$CAIRO_SVG_CFLAGS"; then
41785 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
41786 elif test -n "$PKG_CONFIG"; then
41787 if test -n "$PKG_CONFIG" && \
41788 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
41789 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
41790 ac_status=$?
41791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41792 (exit $ac_status); }; then
41793 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
41794else
41795 pkg_failed=yes
41796fi
41797 else
41798 pkg_failed=untried
41799fi
41800if test -n "$CAIRO_SVG_LIBS"; then
41801 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
41802 elif test -n "$PKG_CONFIG"; then
41803 if test -n "$PKG_CONFIG" && \
41804 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
41805 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
41806 ac_status=$?
41807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41808 (exit $ac_status); }; then
41809 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
41810else
41811 pkg_failed=yes
41812fi
41813 else
41814 pkg_failed=untried
41815fi
41816
41817
41818
41819if test $pkg_failed = yes; then
41820
41821if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41822 _pkg_short_errors_supported=yes
41823else
41824 _pkg_short_errors_supported=no
41825fi
41826 if test $_pkg_short_errors_supported = yes; then
41827 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
41828 else
41829 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
41830 fi
41831 # Put the nasty error message in config.log where it belongs
41832 echo "$CAIRO_SVG_PKG_ERRORS" >&5
41833
41834 { $as_echo "$as_me:$LINENO: result: no" >&5
41835$as_echo "no" >&6; }
41836 have_cairo=no
41837elif test $pkg_failed = untried; then
41838 have_cairo=no
41839else
41840 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
41841 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
41842 { $as_echo "$as_me:$LINENO: result: yes" >&5
41843$as_echo "yes" >&6; }
41844 have_cairo=yes
41845fi
41846 { $as_echo "$as_me:$LINENO: result: " >&5
41847$as_echo "" >&6; }
41848fi
41849
41850if test "$have_rsvg" = 'yes'; then
41851
41852cat >>confdefs.h <<\_ACEOF
41853#define RSVG_DELEGATE 1
41854_ACEOF
41855
41856 if test "$with_modules" = 'no'; then
41857 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
41858 fi
41859fi
41860
41861if test "$have_cairo" = 'yes'; then
41862
41863cat >>confdefs.h <<\_ACEOF
41864#define CAIRO_DELEGATE 1
41865_ACEOF
41866
41867 if test "$with_modules" = 'no'; then
41868 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
41869 fi
41870fi
41871
41872 if test "$have_rsvg" = 'yes'; then
41873 RSVG_DELEGATE_TRUE=
41874 RSVG_DELEGATE_FALSE='#'
41875else
41876 RSVG_DELEGATE_TRUE='#'
41877 RSVG_DELEGATE_FALSE=
41878fi
41879
41880 if test "$have_cairo" = 'yes'; then
41881 CAIRO_DELEGATE_TRUE=
41882 CAIRO_DELEGATE_FALSE='#'
41883else
41884 CAIRO_DELEGATE_TRUE='#'
41885 CAIRO_DELEGATE_FALSE=
41886fi
41887
41888
41889
41890
41891
41892#
41893# Check for TIFF delegate library.
41894#
41895
41896# Check whether --with-tiff was given.
41897if test "${with_tiff+set}" = set; then
41898 withval=$with_tiff; with_tiff=$withval
41899else
41900 with_tiff='yes'
41901fi
41902
41903
41904if test "$with_tiff" != 'yes'; then
41905 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
41906fi
41907
41908have_tiff='no'
41909TIFF_LIBS=''
41910if test "$with_tiff" != 'no'; then
41911 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41912$as_echo "-------------------------------------------------------------" >&6; }
41913 { $as_echo "$as_me:$LINENO: checking for TIFF" >&5
41914$as_echo_n "checking for TIFF... " >&6; }
41915 { $as_echo "$as_me:$LINENO: result: " >&5
41916$as_echo "" >&6; }
41917 failed=0
41918 passed=0
41919 if test "${ac_cv_header_tiff_h+set}" = set; then
41920 { $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
41921$as_echo_n "checking for tiff.h... " >&6; }
41922if test "${ac_cv_header_tiff_h+set}" = set; then
41923 $as_echo_n "(cached) " >&6
41924fi
41925{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
41926$as_echo "$ac_cv_header_tiff_h" >&6; }
41927else
41928 # Is the header compilable?
41929{ $as_echo "$as_me:$LINENO: checking tiff.h usability" >&5
41930$as_echo_n "checking tiff.h usability... " >&6; }
41931cat >conftest.$ac_ext <<_ACEOF
41932/* confdefs.h. */
41933_ACEOF
41934cat confdefs.h >>conftest.$ac_ext
41935cat >>conftest.$ac_ext <<_ACEOF
41936/* end confdefs.h. */
41937$ac_includes_default
41938#include <tiff.h>
41939_ACEOF
41940rm -f conftest.$ac_objext
41941if { (ac_try="$ac_compile"
41942case "(($ac_try" in
41943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41944 *) ac_try_echo=$ac_try;;
41945esac
41946eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41947$as_echo "$ac_try_echo") >&5
41948 (eval "$ac_compile") 2>conftest.er1
41949 ac_status=$?
41950 grep -v '^ *+' conftest.er1 >conftest.err
41951 rm -f conftest.er1
41952 cat conftest.err >&5
41953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41954 (exit $ac_status); } && {
41955 test -z "$ac_c_werror_flag" ||
41956 test ! -s conftest.err
41957 } && test -s conftest.$ac_objext; then
41958 ac_header_compiler=yes
41959else
41960 $as_echo "$as_me: failed program was:" >&5
41961sed 's/^/| /' conftest.$ac_ext >&5
41962
41963 ac_header_compiler=no
41964fi
41965
41966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41967{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41968$as_echo "$ac_header_compiler" >&6; }
41969
41970# Is the header present?
41971{ $as_echo "$as_me:$LINENO: checking tiff.h presence" >&5
41972$as_echo_n "checking tiff.h presence... " >&6; }
41973cat >conftest.$ac_ext <<_ACEOF
41974/* confdefs.h. */
41975_ACEOF
41976cat confdefs.h >>conftest.$ac_ext
41977cat >>conftest.$ac_ext <<_ACEOF
41978/* end confdefs.h. */
41979#include <tiff.h>
41980_ACEOF
41981if { (ac_try="$ac_cpp conftest.$ac_ext"
41982case "(($ac_try" in
41983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41984 *) ac_try_echo=$ac_try;;
41985esac
41986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41987$as_echo "$ac_try_echo") >&5
41988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41989 ac_status=$?
41990 grep -v '^ *+' conftest.er1 >conftest.err
41991 rm -f conftest.er1
41992 cat conftest.err >&5
41993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41994 (exit $ac_status); } >/dev/null && {
41995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41996 test ! -s conftest.err
41997 }; then
41998 ac_header_preproc=yes
41999else
42000 $as_echo "$as_me: failed program was:" >&5
42001sed 's/^/| /' conftest.$ac_ext >&5
42002
42003 ac_header_preproc=no
42004fi
42005
42006rm -f conftest.err conftest.$ac_ext
42007{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42008$as_echo "$ac_header_preproc" >&6; }
42009
42010# So? What about this header?
42011case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42012 yes:no: )
42013 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5
42014$as_echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42015 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5
42016$as_echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;}
42017 ac_header_preproc=yes
42018 ;;
42019 no:yes:* )
42020 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5
42021$as_echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;}
42022 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: check for missing prerequisite headers?" >&5
42023$as_echo "$as_me: WARNING: tiff.h: check for missing prerequisite headers?" >&2;}
42024 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5
42025$as_echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;}
42026 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&5
42027$as_echo "$as_me: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&2;}
42028 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5
42029$as_echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;}
42030 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5
42031$as_echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;}
42032 ( cat <<\_ASBOX
42033## ----------------------------------------- ##
42034## Report this to http://www.imagemagick.org ##
42035## ----------------------------------------- ##
42036_ASBOX
42037 ) | sed "s/^/$as_me: WARNING: /" >&2
42038 ;;
42039esac
42040{ $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
42041$as_echo_n "checking for tiff.h... " >&6; }
42042if test "${ac_cv_header_tiff_h+set}" = set; then
42043 $as_echo_n "(cached) " >&6
42044else
42045 ac_cv_header_tiff_h=$ac_header_preproc
42046fi
42047{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
42048$as_echo "$ac_cv_header_tiff_h" >&6; }
42049
42050fi
42051if test "x$ac_cv_header_tiff_h" = x""yes; then
42052 passed=`expr $passed + 1`
42053else
42054 failed=`expr $failed + 1`
42055fi
42056
42057
42058 if test "${ac_cv_header_tiffio_h+set}" = set; then
42059 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
42060$as_echo_n "checking for tiffio.h... " >&6; }
42061if test "${ac_cv_header_tiffio_h+set}" = set; then
42062 $as_echo_n "(cached) " >&6
42063fi
42064{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
42065$as_echo "$ac_cv_header_tiffio_h" >&6; }
42066else
42067 # Is the header compilable?
42068{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
42069$as_echo_n "checking tiffio.h usability... " >&6; }
42070cat >conftest.$ac_ext <<_ACEOF
42071/* confdefs.h. */
42072_ACEOF
42073cat confdefs.h >>conftest.$ac_ext
42074cat >>conftest.$ac_ext <<_ACEOF
42075/* end confdefs.h. */
42076$ac_includes_default
42077#include <tiffio.h>
42078_ACEOF
42079rm -f conftest.$ac_objext
42080if { (ac_try="$ac_compile"
42081case "(($ac_try" in
42082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42083 *) ac_try_echo=$ac_try;;
42084esac
42085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42086$as_echo "$ac_try_echo") >&5
42087 (eval "$ac_compile") 2>conftest.er1
42088 ac_status=$?
42089 grep -v '^ *+' conftest.er1 >conftest.err
42090 rm -f conftest.er1
42091 cat conftest.err >&5
42092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42093 (exit $ac_status); } && {
42094 test -z "$ac_c_werror_flag" ||
42095 test ! -s conftest.err
42096 } && test -s conftest.$ac_objext; then
42097 ac_header_compiler=yes
42098else
42099 $as_echo "$as_me: failed program was:" >&5
42100sed 's/^/| /' conftest.$ac_ext >&5
42101
42102 ac_header_compiler=no
42103fi
42104
42105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42106{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42107$as_echo "$ac_header_compiler" >&6; }
42108
42109# Is the header present?
42110{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
42111$as_echo_n "checking tiffio.h presence... " >&6; }
42112cat >conftest.$ac_ext <<_ACEOF
42113/* confdefs.h. */
42114_ACEOF
42115cat confdefs.h >>conftest.$ac_ext
42116cat >>conftest.$ac_ext <<_ACEOF
42117/* end confdefs.h. */
42118#include <tiffio.h>
42119_ACEOF
42120if { (ac_try="$ac_cpp conftest.$ac_ext"
42121case "(($ac_try" in
42122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42123 *) ac_try_echo=$ac_try;;
42124esac
42125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42126$as_echo "$ac_try_echo") >&5
42127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42128 ac_status=$?
42129 grep -v '^ *+' conftest.er1 >conftest.err
42130 rm -f conftest.er1
42131 cat conftest.err >&5
42132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42133 (exit $ac_status); } >/dev/null && {
42134 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42135 test ! -s conftest.err
42136 }; then
42137 ac_header_preproc=yes
42138else
42139 $as_echo "$as_me: failed program was:" >&5
42140sed 's/^/| /' conftest.$ac_ext >&5
42141
42142 ac_header_preproc=no
42143fi
42144
42145rm -f conftest.err conftest.$ac_ext
42146{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42147$as_echo "$ac_header_preproc" >&6; }
42148
42149# So? What about this header?
42150case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42151 yes:no: )
42152 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
42153$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42154 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
42155$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
42156 ac_header_preproc=yes
42157 ;;
42158 no:yes:* )
42159 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
42160$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
42161 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
42162$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
42163 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
42164$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
42165 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
42166$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
42167 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
42168$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
42169 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
42170$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
42171 ( cat <<\_ASBOX
42172## ----------------------------------------- ##
42173## Report this to http://www.imagemagick.org ##
42174## ----------------------------------------- ##
42175_ASBOX
42176 ) | sed "s/^/$as_me: WARNING: /" >&2
42177 ;;
42178esac
42179{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
42180$as_echo_n "checking for tiffio.h... " >&6; }
42181if test "${ac_cv_header_tiffio_h+set}" = set; then
42182 $as_echo_n "(cached) " >&6
42183else
42184 ac_cv_header_tiffio_h=$ac_header_preproc
42185fi
42186{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
42187$as_echo "$ac_cv_header_tiffio_h" >&6; }
42188
42189fi
42190if test "x$ac_cv_header_tiffio_h" = x""yes; then
42191 passed=`expr $passed + 1`
42192else
42193 failed=`expr $failed + 1`
42194fi
42195
42196
42197 { $as_echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
42198$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
42199if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
42200 $as_echo_n "(cached) " >&6
42201else
42202 ac_check_lib_save_LIBS=$LIBS
42203LIBS="-ltiff $LIBS"
42204cat >conftest.$ac_ext <<_ACEOF
42205/* confdefs.h. */
42206_ACEOF
42207cat confdefs.h >>conftest.$ac_ext
42208cat >>conftest.$ac_ext <<_ACEOF
42209/* end confdefs.h. */
42210
42211/* Override any GCC internal prototype to avoid an error.
42212 Use char because int might match the return type of a GCC
42213 builtin and then its argument prototype would still apply. */
42214#ifdef __cplusplus
42215extern "C"
42216#endif
42217char TIFFOpen ();
42218int
42219main ()
42220{
42221return TIFFOpen ();
42222 ;
42223 return 0;
42224}
42225_ACEOF
42226rm -f conftest.$ac_objext conftest$ac_exeext
42227if { (ac_try="$ac_link"
42228case "(($ac_try" in
42229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42230 *) ac_try_echo=$ac_try;;
42231esac
42232eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42233$as_echo "$ac_try_echo") >&5
42234 (eval "$ac_link") 2>conftest.er1
42235 ac_status=$?
42236 grep -v '^ *+' conftest.er1 >conftest.err
42237 rm -f conftest.er1
42238 cat conftest.err >&5
42239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42240 (exit $ac_status); } && {
42241 test -z "$ac_c_werror_flag" ||
42242 test ! -s conftest.err
42243 } && test -s conftest$ac_exeext && {
42244 test "$cross_compiling" = yes ||
42245 $as_test_x conftest$ac_exeext
42246 }; then
42247 ac_cv_lib_tiff_TIFFOpen=yes
42248else
42249 $as_echo "$as_me: failed program was:" >&5
42250sed 's/^/| /' conftest.$ac_ext >&5
42251
42252 ac_cv_lib_tiff_TIFFOpen=no
42253fi
42254
42255rm -rf conftest.dSYM
42256rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42257 conftest$ac_exeext conftest.$ac_ext
42258LIBS=$ac_check_lib_save_LIBS
42259fi
42260{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
42261$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
42262if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then
42263 passed=`expr $passed + 1`
42264else
42265 failed=`expr $failed + 1`
42266fi
42267
42268 { $as_echo "$as_me:$LINENO: checking for TIFFClientOpen in -ltiff" >&5
42269$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
42270if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then
42271 $as_echo_n "(cached) " >&6
42272else
42273 ac_check_lib_save_LIBS=$LIBS
42274LIBS="-ltiff $LIBS"
42275cat >conftest.$ac_ext <<_ACEOF
42276/* confdefs.h. */
42277_ACEOF
42278cat confdefs.h >>conftest.$ac_ext
42279cat >>conftest.$ac_ext <<_ACEOF
42280/* end confdefs.h. */
42281
42282/* Override any GCC internal prototype to avoid an error.
42283 Use char because int might match the return type of a GCC
42284 builtin and then its argument prototype would still apply. */
42285#ifdef __cplusplus
42286extern "C"
42287#endif
42288char TIFFClientOpen ();
42289int
42290main ()
42291{
42292return TIFFClientOpen ();
42293 ;
42294 return 0;
42295}
42296_ACEOF
42297rm -f conftest.$ac_objext conftest$ac_exeext
42298if { (ac_try="$ac_link"
42299case "(($ac_try" in
42300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42301 *) ac_try_echo=$ac_try;;
42302esac
42303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42304$as_echo "$ac_try_echo") >&5
42305 (eval "$ac_link") 2>conftest.er1
42306 ac_status=$?
42307 grep -v '^ *+' conftest.er1 >conftest.err
42308 rm -f conftest.er1
42309 cat conftest.err >&5
42310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42311 (exit $ac_status); } && {
42312 test -z "$ac_c_werror_flag" ||
42313 test ! -s conftest.err
42314 } && test -s conftest$ac_exeext && {
42315 test "$cross_compiling" = yes ||
42316 $as_test_x conftest$ac_exeext
42317 }; then
42318 ac_cv_lib_tiff_TIFFClientOpen=yes
42319else
42320 $as_echo "$as_me: failed program was:" >&5
42321sed 's/^/| /' conftest.$ac_ext >&5
42322
42323 ac_cv_lib_tiff_TIFFClientOpen=no
42324fi
42325
42326rm -rf conftest.dSYM
42327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42328 conftest$ac_exeext conftest.$ac_ext
42329LIBS=$ac_check_lib_save_LIBS
42330fi
42331{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
42332$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
42333if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then
42334 passed=`expr $passed + 1`
42335else
42336 failed=`expr $failed + 1`
42337fi
42338
42339 { $as_echo "$as_me:$LINENO: checking for TIFFIsByteSwapped in -ltiff" >&5
42340$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
42341if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then
42342 $as_echo_n "(cached) " >&6
42343else
42344 ac_check_lib_save_LIBS=$LIBS
42345LIBS="-ltiff $LIBS"
42346cat >conftest.$ac_ext <<_ACEOF
42347/* confdefs.h. */
42348_ACEOF
42349cat confdefs.h >>conftest.$ac_ext
42350cat >>conftest.$ac_ext <<_ACEOF
42351/* end confdefs.h. */
42352
42353/* Override any GCC internal prototype to avoid an error.
42354 Use char because int might match the return type of a GCC
42355 builtin and then its argument prototype would still apply. */
42356#ifdef __cplusplus
42357extern "C"
42358#endif
42359char TIFFIsByteSwapped ();
42360int
42361main ()
42362{
42363return TIFFIsByteSwapped ();
42364 ;
42365 return 0;
42366}
42367_ACEOF
42368rm -f conftest.$ac_objext conftest$ac_exeext
42369if { (ac_try="$ac_link"
42370case "(($ac_try" in
42371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42372 *) ac_try_echo=$ac_try;;
42373esac
42374eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42375$as_echo "$ac_try_echo") >&5
42376 (eval "$ac_link") 2>conftest.er1
42377 ac_status=$?
42378 grep -v '^ *+' conftest.er1 >conftest.err
42379 rm -f conftest.er1
42380 cat conftest.err >&5
42381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42382 (exit $ac_status); } && {
42383 test -z "$ac_c_werror_flag" ||
42384 test ! -s conftest.err
42385 } && test -s conftest$ac_exeext && {
42386 test "$cross_compiling" = yes ||
42387 $as_test_x conftest$ac_exeext
42388 }; then
42389 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
42390else
42391 $as_echo "$as_me: failed program was:" >&5
42392sed 's/^/| /' conftest.$ac_ext >&5
42393
42394 ac_cv_lib_tiff_TIFFIsByteSwapped=no
42395fi
42396
42397rm -rf conftest.dSYM
42398rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42399 conftest$ac_exeext conftest.$ac_ext
42400LIBS=$ac_check_lib_save_LIBS
42401fi
42402{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
42403$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
42404if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then
42405 passed=`expr $passed + 1`
42406else
42407 failed=`expr $failed + 1`
42408fi
42409
42410 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBATile in -ltiff" >&5
42411$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
42412if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then
42413 $as_echo_n "(cached) " >&6
42414else
42415 ac_check_lib_save_LIBS=$LIBS
42416LIBS="-ltiff $LIBS"
42417cat >conftest.$ac_ext <<_ACEOF
42418/* confdefs.h. */
42419_ACEOF
42420cat confdefs.h >>conftest.$ac_ext
42421cat >>conftest.$ac_ext <<_ACEOF
42422/* end confdefs.h. */
42423
42424/* Override any GCC internal prototype to avoid an error.
42425 Use char because int might match the return type of a GCC
42426 builtin and then its argument prototype would still apply. */
42427#ifdef __cplusplus
42428extern "C"
42429#endif
42430char TIFFReadRGBATile ();
42431int
42432main ()
42433{
42434return TIFFReadRGBATile ();
42435 ;
42436 return 0;
42437}
42438_ACEOF
42439rm -f conftest.$ac_objext conftest$ac_exeext
42440if { (ac_try="$ac_link"
42441case "(($ac_try" in
42442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42443 *) ac_try_echo=$ac_try;;
42444esac
42445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42446$as_echo "$ac_try_echo") >&5
42447 (eval "$ac_link") 2>conftest.er1
42448 ac_status=$?
42449 grep -v '^ *+' conftest.er1 >conftest.err
42450 rm -f conftest.er1
42451 cat conftest.err >&5
42452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42453 (exit $ac_status); } && {
42454 test -z "$ac_c_werror_flag" ||
42455 test ! -s conftest.err
42456 } && test -s conftest$ac_exeext && {
42457 test "$cross_compiling" = yes ||
42458 $as_test_x conftest$ac_exeext
42459 }; then
42460 ac_cv_lib_tiff_TIFFReadRGBATile=yes
42461else
42462 $as_echo "$as_me: failed program was:" >&5
42463sed 's/^/| /' conftest.$ac_ext >&5
42464
42465 ac_cv_lib_tiff_TIFFReadRGBATile=no
42466fi
42467
42468rm -rf conftest.dSYM
42469rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42470 conftest$ac_exeext conftest.$ac_ext
42471LIBS=$ac_check_lib_save_LIBS
42472fi
42473{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
42474$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
42475if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then
42476 passed=`expr $passed + 1`
42477else
42478 failed=`expr $failed + 1`
42479fi
42480
42481 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBAStrip in -ltiff" >&5
42482$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
42483if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then
42484 $as_echo_n "(cached) " >&6
42485else
42486 ac_check_lib_save_LIBS=$LIBS
42487LIBS="-ltiff $LIBS"
42488cat >conftest.$ac_ext <<_ACEOF
42489/* confdefs.h. */
42490_ACEOF
42491cat confdefs.h >>conftest.$ac_ext
42492cat >>conftest.$ac_ext <<_ACEOF
42493/* end confdefs.h. */
42494
42495/* Override any GCC internal prototype to avoid an error.
42496 Use char because int might match the return type of a GCC
42497 builtin and then its argument prototype would still apply. */
42498#ifdef __cplusplus
42499extern "C"
42500#endif
42501char TIFFReadRGBAStrip ();
42502int
42503main ()
42504{
42505return TIFFReadRGBAStrip ();
42506 ;
42507 return 0;
42508}
42509_ACEOF
42510rm -f conftest.$ac_objext conftest$ac_exeext
42511if { (ac_try="$ac_link"
42512case "(($ac_try" in
42513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42514 *) ac_try_echo=$ac_try;;
42515esac
42516eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42517$as_echo "$ac_try_echo") >&5
42518 (eval "$ac_link") 2>conftest.er1
42519 ac_status=$?
42520 grep -v '^ *+' conftest.er1 >conftest.err
42521 rm -f conftest.er1
42522 cat conftest.err >&5
42523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42524 (exit $ac_status); } && {
42525 test -z "$ac_c_werror_flag" ||
42526 test ! -s conftest.err
42527 } && test -s conftest$ac_exeext && {
42528 test "$cross_compiling" = yes ||
42529 $as_test_x conftest$ac_exeext
42530 }; then
42531 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
42532else
42533 $as_echo "$as_me: failed program was:" >&5
42534sed 's/^/| /' conftest.$ac_ext >&5
42535
42536 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
42537fi
42538
42539rm -rf conftest.dSYM
42540rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42541 conftest$ac_exeext conftest.$ac_ext
42542LIBS=$ac_check_lib_save_LIBS
42543fi
42544{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
42545$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
42546if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then
42547 passed=`expr $passed + 1`
42548else
42549 failed=`expr $failed + 1`
42550fi
42551
42552 { $as_echo "$as_me:$LINENO: checking if TIFF package is complete" >&5
42553$as_echo_n "checking if TIFF package is complete... " >&6; }
42554 if test $passed -gt 0; then
42555 if test $failed -gt 0; then
42556 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
42557$as_echo "no -- some components failed test" >&6; }
42558 have_tiff='no (failed tests)'
42559 else
42560 TIFF_LIBS='-ltiff'
42561 LIBS="$TIFF_LIBS $LIBS"
42562
42563cat >>confdefs.h <<\_ACEOF
42564#define TIFF_DELEGATE 1
42565_ACEOF
42566
42567 { $as_echo "$as_me:$LINENO: result: yes" >&5
42568$as_echo "yes" >&6; }
42569 have_tiff='yes'
42570
42571for ac_header in tiffconf.h
42572do
42573as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42574if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42575 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42576$as_echo_n "checking for $ac_header... " >&6; }
42577if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42578 $as_echo_n "(cached) " >&6
42579fi
42580ac_res=`eval 'as_val=${'$as_ac_Header'}
42581 $as_echo "$as_val"'`
42582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42583$as_echo "$ac_res" >&6; }
42584else
42585 # Is the header compilable?
42586{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42587$as_echo_n "checking $ac_header usability... " >&6; }
42588cat >conftest.$ac_ext <<_ACEOF
42589/* confdefs.h. */
42590_ACEOF
42591cat confdefs.h >>conftest.$ac_ext
42592cat >>conftest.$ac_ext <<_ACEOF
42593/* end confdefs.h. */
42594$ac_includes_default
42595#include <$ac_header>
42596_ACEOF
42597rm -f conftest.$ac_objext
42598if { (ac_try="$ac_compile"
42599case "(($ac_try" in
42600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42601 *) ac_try_echo=$ac_try;;
42602esac
42603eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42604$as_echo "$ac_try_echo") >&5
42605 (eval "$ac_compile") 2>conftest.er1
42606 ac_status=$?
42607 grep -v '^ *+' conftest.er1 >conftest.err
42608 rm -f conftest.er1
42609 cat conftest.err >&5
42610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42611 (exit $ac_status); } && {
42612 test -z "$ac_c_werror_flag" ||
42613 test ! -s conftest.err
42614 } && test -s conftest.$ac_objext; then
42615 ac_header_compiler=yes
42616else
42617 $as_echo "$as_me: failed program was:" >&5
42618sed 's/^/| /' conftest.$ac_ext >&5
42619
42620 ac_header_compiler=no
42621fi
42622
42623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42624{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42625$as_echo "$ac_header_compiler" >&6; }
42626
42627# Is the header present?
42628{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42629$as_echo_n "checking $ac_header presence... " >&6; }
42630cat >conftest.$ac_ext <<_ACEOF
42631/* confdefs.h. */
42632_ACEOF
42633cat confdefs.h >>conftest.$ac_ext
42634cat >>conftest.$ac_ext <<_ACEOF
42635/* end confdefs.h. */
42636#include <$ac_header>
42637_ACEOF
42638if { (ac_try="$ac_cpp conftest.$ac_ext"
42639case "(($ac_try" in
42640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42641 *) ac_try_echo=$ac_try;;
42642esac
42643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42644$as_echo "$ac_try_echo") >&5
42645 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42646 ac_status=$?
42647 grep -v '^ *+' conftest.er1 >conftest.err
42648 rm -f conftest.er1
42649 cat conftest.err >&5
42650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42651 (exit $ac_status); } >/dev/null && {
42652 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42653 test ! -s conftest.err
42654 }; then
42655 ac_header_preproc=yes
42656else
42657 $as_echo "$as_me: failed program was:" >&5
42658sed 's/^/| /' conftest.$ac_ext >&5
42659
42660 ac_header_preproc=no
42661fi
42662
42663rm -f conftest.err conftest.$ac_ext
42664{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42665$as_echo "$ac_header_preproc" >&6; }
42666
42667# So? What about this header?
42668case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42669 yes:no: )
42670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42671$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42673$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42674 ac_header_preproc=yes
42675 ;;
42676 no:yes:* )
42677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42678$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42680$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42682$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42684$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42686$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42687 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42688$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42689 ( cat <<\_ASBOX
42690## ----------------------------------------- ##
42691## Report this to http://www.imagemagick.org ##
42692## ----------------------------------------- ##
42693_ASBOX
42694 ) | sed "s/^/$as_me: WARNING: /" >&2
42695 ;;
42696esac
42697{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42698$as_echo_n "checking for $ac_header... " >&6; }
42699if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42700 $as_echo_n "(cached) " >&6
42701else
42702 eval "$as_ac_Header=\$ac_header_preproc"
42703fi
42704ac_res=`eval 'as_val=${'$as_ac_Header'}
42705 $as_echo "$as_val"'`
42706 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42707$as_echo "$ac_res" >&6; }
42708
42709fi
42710as_val=`eval 'as_val=${'$as_ac_Header'}
42711 $as_echo "$as_val"'`
42712 if test "x$as_val" = x""yes; then
42713 cat >>confdefs.h <<_ACEOF
42714#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42715_ACEOF
42716
42717fi
42718
42719done
42720
42721
42722
42723
42724
42725
42726
42727
42728for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
42729 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
42730 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
42731do
42732as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42733{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42734$as_echo_n "checking for $ac_func... " >&6; }
42735if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42736 $as_echo_n "(cached) " >&6
42737else
42738 cat >conftest.$ac_ext <<_ACEOF
42739/* confdefs.h. */
42740_ACEOF
42741cat confdefs.h >>conftest.$ac_ext
42742cat >>conftest.$ac_ext <<_ACEOF
42743/* end confdefs.h. */
42744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42746#define $ac_func innocuous_$ac_func
42747
42748/* System header to define __stub macros and hopefully few prototypes,
42749 which can conflict with char $ac_func (); below.
42750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42751 <limits.h> exists even on freestanding compilers. */
42752
42753#ifdef __STDC__
42754# include <limits.h>
42755#else
42756# include <assert.h>
42757#endif
42758
42759#undef $ac_func
42760
42761/* Override any GCC internal prototype to avoid an error.
42762 Use char because int might match the return type of a GCC
42763 builtin and then its argument prototype would still apply. */
42764#ifdef __cplusplus
42765extern "C"
42766#endif
42767char $ac_func ();
42768/* The GNU C library defines this for functions which it implements
42769 to always fail with ENOSYS. Some functions are actually named
42770 something starting with __ and the normal name is an alias. */
42771#if defined __stub_$ac_func || defined __stub___$ac_func
42772choke me
42773#endif
42774
42775int
42776main ()
42777{
42778return $ac_func ();
42779 ;
42780 return 0;
42781}
42782_ACEOF
42783rm -f conftest.$ac_objext conftest$ac_exeext
42784if { (ac_try="$ac_link"
42785case "(($ac_try" in
42786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42787 *) ac_try_echo=$ac_try;;
42788esac
42789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42790$as_echo "$ac_try_echo") >&5
42791 (eval "$ac_link") 2>conftest.er1
42792 ac_status=$?
42793 grep -v '^ *+' conftest.er1 >conftest.err
42794 rm -f conftest.er1
42795 cat conftest.err >&5
42796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42797 (exit $ac_status); } && {
42798 test -z "$ac_c_werror_flag" ||
42799 test ! -s conftest.err
42800 } && test -s conftest$ac_exeext && {
42801 test "$cross_compiling" = yes ||
42802 $as_test_x conftest$ac_exeext
42803 }; then
42804 eval "$as_ac_var=yes"
42805else
42806 $as_echo "$as_me: failed program was:" >&5
42807sed 's/^/| /' conftest.$ac_ext >&5
42808
42809 eval "$as_ac_var=no"
42810fi
42811
42812rm -rf conftest.dSYM
42813rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42814 conftest$ac_exeext conftest.$ac_ext
42815fi
42816ac_res=`eval 'as_val=${'$as_ac_var'}
42817 $as_echo "$as_val"'`
42818 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42819$as_echo "$ac_res" >&6; }
42820as_val=`eval 'as_val=${'$as_ac_var'}
42821 $as_echo "$as_val"'`
42822 if test "x$as_val" = x""yes; then
42823 cat >>confdefs.h <<_ACEOF
42824#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42825_ACEOF
42826
42827fi
42828done
42829
42830 fi
42831 else
42832 { $as_echo "$as_me:$LINENO: result: no" >&5
42833$as_echo "no" >&6; }
42834 fi
42835fi
42836 if test "$have_tiff" = 'yes'; then
42837 TIFF_DELEGATE_TRUE=
42838 TIFF_DELEGATE_FALSE='#'
42839else
42840 TIFF_DELEGATE_TRUE='#'
42841 TIFF_DELEGATE_FALSE=
42842fi
42843
42844
42845
42846
42847#
42848# Set Windows font directory.
42849#
42850
42851# Check whether --with-windows-font-dir was given.
42852if test "${with_windows_font_dir+set}" = set; then
42853 withval=$with_windows_font_dir; with_windows_font_dir=$withval
42854else
42855 with_windows_font_dir=''
42856fi
42857
42858if test "$with_windows_font_dir" != '' ; then
42859 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
42860fi
42861
42862
42863#
42864# Check for WMF delegate library.
42865#
42866
42867# Check whether --with-wmf was given.
42868if test "${with_wmf+set}" = set; then
42869 withval=$with_wmf; with_wmf=$withval
42870else
42871 with_wmf=$with_modules
42872fi
42873
42874
42875if test "$with_wmf" != 'yes'; then
42876 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
42877fi
42878
42879have_wmf='no'
42880WMF_LIBS=''
42881WMF_LIBS_DEPS=''
42882OLIBS="$LIBS"
42883if test "$with_wmf" != 'no'; then
42884 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
42885$as_echo "-------------------------------------------------------------" >&6; }
42886 { $as_echo "$as_me:$LINENO: checking for WMF" >&5
42887$as_echo_n "checking for WMF... " >&6; }
42888 { $as_echo "$as_me:$LINENO: result: " >&5
42889$as_echo "" >&6; }
42890 have_libwmf='no'
42891 have_libwmflite='no'
42892 have_libwmf_ipa_h='no'
42893
42894 { $as_echo "$as_me:$LINENO: checking for libwmf/ipa.h" >&5
42895$as_echo_n "checking for libwmf/ipa.h... " >&6; }
42896if test "${ac_cv_header_libwmf_ipa_h+set}" = set; then
42897 $as_echo_n "(cached) " >&6
42898else
42899 cat >conftest.$ac_ext <<_ACEOF
42900/* confdefs.h. */
42901_ACEOF
42902cat confdefs.h >>conftest.$ac_ext
42903cat >>conftest.$ac_ext <<_ACEOF
42904/* end confdefs.h. */
42905$FT2BUILD_H
42906
42907#include <libwmf/ipa.h>
42908_ACEOF
42909rm -f conftest.$ac_objext
42910if { (ac_try="$ac_compile"
42911case "(($ac_try" in
42912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42913 *) ac_try_echo=$ac_try;;
42914esac
42915eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42916$as_echo "$ac_try_echo") >&5
42917 (eval "$ac_compile") 2>conftest.er1
42918 ac_status=$?
42919 grep -v '^ *+' conftest.er1 >conftest.err
42920 rm -f conftest.er1
42921 cat conftest.err >&5
42922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42923 (exit $ac_status); } && {
42924 test -z "$ac_c_werror_flag" ||
42925 test ! -s conftest.err
42926 } && test -s conftest.$ac_objext; then
42927 ac_cv_header_libwmf_ipa_h=yes
42928else
42929 $as_echo "$as_me: failed program was:" >&5
42930sed 's/^/| /' conftest.$ac_ext >&5
42931
42932 ac_cv_header_libwmf_ipa_h=no
42933fi
42934
42935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42936fi
42937{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libwmf_ipa_h" >&5
42938$as_echo "$ac_cv_header_libwmf_ipa_h" >&6; }
42939if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then
42940 have_libwmf_ipa_h='yes'
42941fi
42942
42943
42944 if test "$have_libwmf_ipa_h" = 'yes'; then
42945 { $as_echo "$as_me:$LINENO: checking for wmf_lite_create in -lwmflite" >&5
42946$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
42947if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then
42948 $as_echo_n "(cached) " >&6
42949else
42950 ac_check_lib_save_LIBS=$LIBS
42951LIBS="-lwmflite $LIBS"
42952cat >conftest.$ac_ext <<_ACEOF
42953/* confdefs.h. */
42954_ACEOF
42955cat confdefs.h >>conftest.$ac_ext
42956cat >>conftest.$ac_ext <<_ACEOF
42957/* end confdefs.h. */
42958
42959/* Override any GCC internal prototype to avoid an error.
42960 Use char because int might match the return type of a GCC
42961 builtin and then its argument prototype would still apply. */
42962#ifdef __cplusplus
42963extern "C"
42964#endif
42965char wmf_lite_create ();
42966int
42967main ()
42968{
42969return wmf_lite_create ();
42970 ;
42971 return 0;
42972}
42973_ACEOF
42974rm -f conftest.$ac_objext conftest$ac_exeext
42975if { (ac_try="$ac_link"
42976case "(($ac_try" in
42977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42978 *) ac_try_echo=$ac_try;;
42979esac
42980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42981$as_echo "$ac_try_echo") >&5
42982 (eval "$ac_link") 2>conftest.er1
42983 ac_status=$?
42984 grep -v '^ *+' conftest.er1 >conftest.err
42985 rm -f conftest.er1
42986 cat conftest.err >&5
42987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42988 (exit $ac_status); } && {
42989 test -z "$ac_c_werror_flag" ||
42990 test ! -s conftest.err
42991 } && test -s conftest$ac_exeext && {
42992 test "$cross_compiling" = yes ||
42993 $as_test_x conftest$ac_exeext
42994 }; then
42995 ac_cv_lib_wmflite_wmf_lite_create=yes
42996else
42997 $as_echo "$as_me: failed program was:" >&5
42998sed 's/^/| /' conftest.$ac_ext >&5
42999
43000 ac_cv_lib_wmflite_wmf_lite_create=no
43001fi
43002
43003rm -rf conftest.dSYM
43004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43005 conftest$ac_exeext conftest.$ac_ext
43006LIBS=$ac_check_lib_save_LIBS
43007fi
43008{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
43009$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
43010if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then
43011 have_libwmflite='yes'
43012fi
43013
43014 if test "$have_libwmflite" = 'yes'; then
43015
43016cat >>confdefs.h <<\_ACEOF
43017#define WMFLITE_DELEGATE 1
43018_ACEOF
43019
43020 WMF_LIBS='-lwmflite'
43021 LIBS="$WMF_LIBS $LIBS"
43022 have_wmf='yes'
43023 else
43024 WMF_LIBS_DEPS=''
43025 WMF_CONFIG_LIBS=`libwmf-config --libs`
43026 for lib in xml2 expat freetype jpeg png z; do
43027 testlib="-l${lib}"
43028 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
43029 done
43030 { $as_echo "$as_me:$LINENO: checking for wmf_api_create in -lwmf" >&5
43031$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
43032if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then
43033 $as_echo_n "(cached) " >&6
43034else
43035 ac_check_lib_save_LIBS=$LIBS
43036LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
43037cat >conftest.$ac_ext <<_ACEOF
43038/* confdefs.h. */
43039_ACEOF
43040cat confdefs.h >>conftest.$ac_ext
43041cat >>conftest.$ac_ext <<_ACEOF
43042/* end confdefs.h. */
43043
43044/* Override any GCC internal prototype to avoid an error.
43045 Use char because int might match the return type of a GCC
43046 builtin and then its argument prototype would still apply. */
43047#ifdef __cplusplus
43048extern "C"
43049#endif
43050char wmf_api_create ();
43051int
43052main ()
43053{
43054return wmf_api_create ();
43055 ;
43056 return 0;
43057}
43058_ACEOF
43059rm -f conftest.$ac_objext conftest$ac_exeext
43060if { (ac_try="$ac_link"
43061case "(($ac_try" in
43062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43063 *) ac_try_echo=$ac_try;;
43064esac
43065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43066$as_echo "$ac_try_echo") >&5
43067 (eval "$ac_link") 2>conftest.er1
43068 ac_status=$?
43069 grep -v '^ *+' conftest.er1 >conftest.err
43070 rm -f conftest.er1
43071 cat conftest.err >&5
43072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43073 (exit $ac_status); } && {
43074 test -z "$ac_c_werror_flag" ||
43075 test ! -s conftest.err
43076 } && test -s conftest$ac_exeext && {
43077 test "$cross_compiling" = yes ||
43078 $as_test_x conftest$ac_exeext
43079 }; then
43080 ac_cv_lib_wmf_wmf_api_create=yes
43081else
43082 $as_echo "$as_me: failed program was:" >&5
43083sed 's/^/| /' conftest.$ac_ext >&5
43084
43085 ac_cv_lib_wmf_wmf_api_create=no
43086fi
43087
43088rm -rf conftest.dSYM
43089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43090 conftest$ac_exeext conftest.$ac_ext
43091LIBS=$ac_check_lib_save_LIBS
43092fi
43093{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmf_wmf_api_create" >&5
43094$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
43095if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then
43096 have_libwmf='yes'
43097fi
43098
43099 if test "$have_libwmf" = 'yes'; then
43100
43101cat >>confdefs.h <<\_ACEOF
43102#define WMF_DELEGATE 1
43103_ACEOF
43104
43105 WMF_LIBS='-lwmf'
43106 LIBS="$WMF_LIBS $LIBS"
43107 have_wmf='yes'
43108 else
43109 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
43110$as_echo "no -- some components failed test" >&6; }
43111 have_wmf='no (failed tests)'
43112 have_wmflite='no (failed tests)'
43113 LIBS="$OLIBS"
43114 WMF_LIBS=''
43115 fi
43116 fi
43117 fi
43118 { $as_echo "$as_me:$LINENO: checking if WMF package is complete" >&5
43119$as_echo_n "checking if WMF package is complete... " >&6; }
43120 if test "$have_wmf" = 'yes'; then
43121 { $as_echo "$as_me:$LINENO: result: yes" >&5
43122$as_echo "yes" >&6; }
43123 else
43124 { $as_echo "$as_me:$LINENO: result: no" >&5
43125$as_echo "no" >&6; }
43126 fi
43127fi
43128 if test "$have_wmf" = 'yes'; then
43129 WMF_DELEGATE_TRUE=
43130 WMF_DELEGATE_FALSE='#'
43131else
43132 WMF_DELEGATE_TRUE='#'
43133 WMF_DELEGATE_FALSE=
43134fi
43135
43136
43137
43138
43139
43140#
43141# Check for XML delegate library.
43142#
43143
43144# Check whether --with-xml was given.
43145if test "${with_xml+set}" = set; then
43146 withval=$with_xml; with_xml=$withval
43147else
43148 with_xml=$have_x
43149fi
43150
43151
43152if test "$with_xml" != 'yes' ; then
43153 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
43154fi
43155
43156have_xml='no'
43157XML_LIBS=''
43158if test "$with_xml" != 'no'; then
43159 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
43160$as_echo "-------------------------------------------------------------" >&6; }
43161 { $as_echo "$as_me:$LINENO: checking for XML" >&5
43162$as_echo_n "checking for XML... " >&6; }
43163 { $as_echo "$as_me:$LINENO: result: " >&5
43164$as_echo "" >&6; }
43165 PERSIST_LDFLAGS=$LDFLAGS
43166 PERSIST_CPPFLAGS=$CPPFLAGS
43167 xml2_config=''
43168 for ac_prog in xml2-config
43169do
43170 # Extract the first word of "$ac_prog", so it can be a program name with args.
43171set dummy $ac_prog; ac_word=$2
43172{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43173$as_echo_n "checking for $ac_word... " >&6; }
43174if test "${ac_cv_prog_xml2_config+set}" = set; then
43175 $as_echo_n "(cached) " >&6
43176else
43177 if test -n "$xml2_config"; then
43178 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
43179else
43180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43181for as_dir in $PATH
43182do
43183 IFS=$as_save_IFS
43184 test -z "$as_dir" && as_dir=.
43185 for ac_exec_ext in '' $ac_executable_extensions; do
43186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43187 ac_cv_prog_xml2_config="$ac_prog"
43188 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43189 break 2
43190 fi
43191done
43192done
43193IFS=$as_save_IFS
43194
43195fi
43196fi
43197xml2_config=$ac_cv_prog_xml2_config
43198if test -n "$xml2_config"; then
43199 { $as_echo "$as_me:$LINENO: result: $xml2_config" >&5
43200$as_echo "$xml2_config" >&6; }
43201else
43202 { $as_echo "$as_me:$LINENO: result: no" >&5
43203$as_echo "no" >&6; }
43204fi
43205
43206
43207 test -n "$xml2_config" && break
43208done
43209 if test -n "$xml2_config"; then
43210 # Debian installs libxml headers under /usr/include/libxml2/libxml with
43211 # the shared library installed under /usr/lib, whereas the package
43212 # installs itself under $prefix/libxml and $prefix/lib.
43213 xml2_prefix=`xml2-config --prefix`
43214 if test -d "${xml2_prefix}/include/libxml2"; then
43215 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
43216 fi
43217 if test "${xml2_prefix}" != '/usr'; then
43218 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
43219 fi
43220 fi
43221 failed=0
43222 passed=0
43223 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43224 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
43225$as_echo_n "checking for libxml/parser.h... " >&6; }
43226if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43227 $as_echo_n "(cached) " >&6
43228fi
43229{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
43230$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
43231else
43232 # Is the header compilable?
43233{ $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
43234$as_echo_n "checking libxml/parser.h usability... " >&6; }
43235cat >conftest.$ac_ext <<_ACEOF
43236/* confdefs.h. */
43237_ACEOF
43238cat confdefs.h >>conftest.$ac_ext
43239cat >>conftest.$ac_ext <<_ACEOF
43240/* end confdefs.h. */
43241$ac_includes_default
43242#include <libxml/parser.h>
43243_ACEOF
43244rm -f conftest.$ac_objext
43245if { (ac_try="$ac_compile"
43246case "(($ac_try" in
43247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43248 *) ac_try_echo=$ac_try;;
43249esac
43250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43251$as_echo "$ac_try_echo") >&5
43252 (eval "$ac_compile") 2>conftest.er1
43253 ac_status=$?
43254 grep -v '^ *+' conftest.er1 >conftest.err
43255 rm -f conftest.er1
43256 cat conftest.err >&5
43257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43258 (exit $ac_status); } && {
43259 test -z "$ac_c_werror_flag" ||
43260 test ! -s conftest.err
43261 } && test -s conftest.$ac_objext; then
43262 ac_header_compiler=yes
43263else
43264 $as_echo "$as_me: failed program was:" >&5
43265sed 's/^/| /' conftest.$ac_ext >&5
43266
43267 ac_header_compiler=no
43268fi
43269
43270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43271{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43272$as_echo "$ac_header_compiler" >&6; }
43273
43274# Is the header present?
43275{ $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
43276$as_echo_n "checking libxml/parser.h presence... " >&6; }
43277cat >conftest.$ac_ext <<_ACEOF
43278/* confdefs.h. */
43279_ACEOF
43280cat confdefs.h >>conftest.$ac_ext
43281cat >>conftest.$ac_ext <<_ACEOF
43282/* end confdefs.h. */
43283#include <libxml/parser.h>
43284_ACEOF
43285if { (ac_try="$ac_cpp conftest.$ac_ext"
43286case "(($ac_try" in
43287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43288 *) ac_try_echo=$ac_try;;
43289esac
43290eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43291$as_echo "$ac_try_echo") >&5
43292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43293 ac_status=$?
43294 grep -v '^ *+' conftest.er1 >conftest.err
43295 rm -f conftest.er1
43296 cat conftest.err >&5
43297 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43298 (exit $ac_status); } >/dev/null && {
43299 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43300 test ! -s conftest.err
43301 }; then
43302 ac_header_preproc=yes
43303else
43304 $as_echo "$as_me: failed program was:" >&5
43305sed 's/^/| /' conftest.$ac_ext >&5
43306
43307 ac_header_preproc=no
43308fi
43309
43310rm -f conftest.err conftest.$ac_ext
43311{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43312$as_echo "$ac_header_preproc" >&6; }
43313
43314# So? What about this header?
43315case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43316 yes:no: )
43317 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
43318$as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43319 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
43320$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
43321 ac_header_preproc=yes
43322 ;;
43323 no:yes:* )
43324 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
43325$as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
43326 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
43327$as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
43328 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
43329$as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
43330 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
43331$as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
43332 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
43333$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
43334 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
43335$as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
43336 ( cat <<\_ASBOX
43337## ----------------------------------------- ##
43338## Report this to http://www.imagemagick.org ##
43339## ----------------------------------------- ##
43340_ASBOX
43341 ) | sed "s/^/$as_me: WARNING: /" >&2
43342 ;;
43343esac
43344{ $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
43345$as_echo_n "checking for libxml/parser.h... " >&6; }
43346if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43347 $as_echo_n "(cached) " >&6
43348else
43349 ac_cv_header_libxml_parser_h=$ac_header_preproc
43350fi
43351{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
43352$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
43353
43354fi
43355if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
43356 passed=`expr $passed + 1`
43357else
43358 failed=`expr $failed + 1`
43359fi
43360
43361
43362 { $as_echo "$as_me:$LINENO: checking for xmlParseExternalEntity in -lxml2" >&5
43363$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
43364if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then
43365 $as_echo_n "(cached) " >&6
43366else
43367 ac_check_lib_save_LIBS=$LIBS
43368LIBS="-lxml2 $LIBS"
43369cat >conftest.$ac_ext <<_ACEOF
43370/* confdefs.h. */
43371_ACEOF
43372cat confdefs.h >>conftest.$ac_ext
43373cat >>conftest.$ac_ext <<_ACEOF
43374/* end confdefs.h. */
43375
43376/* Override any GCC internal prototype to avoid an error.
43377 Use char because int might match the return type of a GCC
43378 builtin and then its argument prototype would still apply. */
43379#ifdef __cplusplus
43380extern "C"
43381#endif
43382char xmlParseExternalEntity ();
43383int
43384main ()
43385{
43386return xmlParseExternalEntity ();
43387 ;
43388 return 0;
43389}
43390_ACEOF
43391rm -f conftest.$ac_objext conftest$ac_exeext
43392if { (ac_try="$ac_link"
43393case "(($ac_try" in
43394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43395 *) ac_try_echo=$ac_try;;
43396esac
43397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43398$as_echo "$ac_try_echo") >&5
43399 (eval "$ac_link") 2>conftest.er1
43400 ac_status=$?
43401 grep -v '^ *+' conftest.er1 >conftest.err
43402 rm -f conftest.er1
43403 cat conftest.err >&5
43404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43405 (exit $ac_status); } && {
43406 test -z "$ac_c_werror_flag" ||
43407 test ! -s conftest.err
43408 } && test -s conftest$ac_exeext && {
43409 test "$cross_compiling" = yes ||
43410 $as_test_x conftest$ac_exeext
43411 }; then
43412 ac_cv_lib_xml2_xmlParseExternalEntity=yes
43413else
43414 $as_echo "$as_me: failed program was:" >&5
43415sed 's/^/| /' conftest.$ac_ext >&5
43416
43417 ac_cv_lib_xml2_xmlParseExternalEntity=no
43418fi
43419
43420rm -rf conftest.dSYM
43421rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43422 conftest$ac_exeext conftest.$ac_ext
43423LIBS=$ac_check_lib_save_LIBS
43424fi
43425{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
43426$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
43427if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then
43428 passed=`expr $passed + 1`
43429else
43430 failed=`expr $failed + 1`
43431fi
43432
43433 { $as_echo "$as_me:$LINENO: checking if XML package is complete" >&5
43434$as_echo_n "checking if XML package is complete... " >&6; }
43435 if test $passed -gt 0; then
43436 if test $failed -gt 0; then
43437 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
43438$as_echo "no -- some components failed test" >&6; }
43439 have_xml='no (failed tests)'
43440 LDFLAGS="$PERSIST_LDFLAGS"
43441 CPPFLAGS="$PERSIST_CPPFLAGS"
43442 else
43443 XML_LIBS='-lxml2'
43444 LIBS="$XML_LIBS $LIBS"
43445
43446cat >>confdefs.h <<\_ACEOF
43447#define XML_DELEGATE 1
43448_ACEOF
43449
43450 { $as_echo "$as_me:$LINENO: result: yes" >&5
43451$as_echo "yes" >&6; }
43452 have_xml='yes'
43453 fi
43454 else
43455 { $as_echo "$as_me:$LINENO: result: no" >&5
43456$as_echo "no" >&6; }
43457 fi
43458fi
43459 if test "$have_xml" = 'yes'; then
43460 XML_DELEGATE_TRUE=
43461 XML_DELEGATE_FALSE='#'
43462else
43463 XML_DELEGATE_TRUE='#'
43464 XML_DELEGATE_FALSE=
43465fi
43466
43467
43468
43469
43470# Substitute compiler name to build/link PerlMagick
43471#
43472
43473
43474#
43475# Configure install Paths
43476#
43477
43478# Subdirectory under lib to place ImageMagick lib files
43479LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43480
43481cat >>confdefs.h <<_ACEOF
43482#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
43483_ACEOF
43484
43485
43486# Path to ImageMagick bin directory
43487EXECUTABLE_PATH="${BIN_DIR}"
43488DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
43489case "${build_os}" in
43490 mingw* )
43491 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
43492 ;;
43493esac
43494
43495cat >>confdefs.h <<_ACEOF
43496#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
43497_ACEOF
43498
43499
43500
43501# Path to ImageMagick lib
43502LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
43503DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
43504case "${build_os}" in
43505 mingw* )
43506 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
43507 ;;
43508esac
43509
43510cat >>confdefs.h <<_ACEOF
43511#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
43512_ACEOF
43513
43514
43515
43516# Subdirectory under lib to place ImageMagick configuration files
43517CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
43518
43519cat >>confdefs.h <<_ACEOF
43520#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
43521_ACEOF
43522
43523CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
43524DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
43525case "${build_os}" in
43526 mingw* )
43527 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
43528 ;;
43529esac
43530
43531cat >>confdefs.h <<_ACEOF
43532#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
43533_ACEOF
43534
43535
43536
43537#
43538# Subdirectory under lib to place ImageMagick coder module files
43539CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
43540
43541cat >>confdefs.h <<_ACEOF
43542#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
43543_ACEOF
43544
43545CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
43546DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
43547case "${build_os}" in
43548 mingw* )
43549 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
43550 ;;
43551esac
43552
43553cat >>confdefs.h <<_ACEOF
43554#define CODER_PATH "$DEFINE_CODER_PATH"
43555_ACEOF
43556
43557
43558
43559#
43560# Subdirectory under lib to place ImageMagick filter module files
43561FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
43562
43563cat >>confdefs.h <<_ACEOF
43564#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
43565_ACEOF
43566
43567FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
43568DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
43569case "${build_os}" in
43570 mingw* )
43571 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
43572 ;;
43573esac
43574
43575cat >>confdefs.h <<_ACEOF
43576#define FILTER_PATH "$DEFINE_FILTER_PATH"
43577_ACEOF
43578
43579
43580
43581#
43582# Path to ImageMagick documentation files
43583DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43584DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
43585DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
43586case "${build_os}" in
43587 mingw* )
43588 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
43589 ;;
43590esac
43591
43592cat >>confdefs.h <<_ACEOF
43593#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
43594_ACEOF
43595
43596
43597
43598#
43599# Path to ImageMagick share files
43600SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43601SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
43602DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
43603case "${build_os}" in
43604 mingw* )
43605 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
43606 ;;
43607esac
43608
43609cat >>confdefs.h <<_ACEOF
43610#define SHARE_PATH "$DEFINE_SHARE_PATH"
43611_ACEOF
43612
43613
43614
43615# Subdirectory under share to place ImageMagick configuration files
43616SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
43617
43618cat >>confdefs.h <<_ACEOF
43619#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
43620_ACEOF
43621
43622SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
43623DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
43624case "${build_os}" in
43625 mingw* )
43626 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
43627 ;;
43628esac
43629
43630cat >>confdefs.h <<_ACEOF
43631#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
43632_ACEOF
43633
43634
43635
43636#
43637# program_transform_name is formed for use in a Makefile, so create a
43638# modified version for use in a shell script.
43639configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
43640
43641# Default delegate definitions
43642{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
43643$as_echo "-------------------------------------------------------------" >&6; }
43644{ $as_echo "$as_me:$LINENO: checking for ImageMagick delegate programs" >&5
43645$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
43646{ $as_echo "$as_me:$LINENO: result: " >&5
43647$as_echo "" >&6; }
43648AutotraceDecodeDelegateDefault='autotrace'
43649AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000043650BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000043651BZIPDelegateDefault='bzip2'
43652BrowseDelegateDefault='xdg-open'
43653CGMDecodeDelegateDefault='ralcgm'
43654CatDelegateDefault='cat'
43655DNGDecodeDelegateDefault='ufraw-batch'
43656GVCDecodeDelegateDefault='dot'
43657DVIDecodeDelegateDefault='dvips'
43658EchoDelegateDefault='echo'
43659EditorDelegateDefault='xterm'
43660FIGDecodeDelegateDefault='fig2dev'
43661ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
43662DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
43663MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
43664GnuplotDecodeDelegateDefault='gnuplot'
43665HDRDecodeDelegateDefault='ra_pfm'
43666HPGLDecodeDelegateDefault='hp2xx'
43667HTMLDecodeDelegateDefault='html2ps'
43668ILBMDecodeDelegateDefault='ilbmtoppm'
43669ILBMEncodeDelegateDefault='ppmtoilbm'
43670LPDelegateDefault='lp'
43671LPRDelegateDefault='lpr'
43672LZWDecodeDelegateDefault='uncompress'
43673LZWEncodeDelegateDefault='compress'
43674LaunchDelegateDefault='gimp'
43675MANDelegateDefault='groff'
43676MPEGDecodeDelegateDefault='ffmpeg'
43677MPEGEncodeDelegateDefault='ffmpeg'
43678MVDelegateDefault='mv'
43679PCLDelegateDefault='pcl6'
43680PGPDecodeDelegateDefault='pgpv'
43681POVDelegateDefault='povray'
43682if test "$native_win32_build" = 'yes'; then
43683 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000043684elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000043685 PSDelegateDefault='gsc'
43686else
43687 PSDelegateDefault='gs'
43688fi
43689RLEEncodeDelegateDefault='rawtorle'
43690RMDelegateDefault='rm'
43691SCANDecodeDelegateDefault='scanimage'
43692TXTDelegateDefault='enscript'
43693WMFDecodeDelegateDefault='wmf2eps'
43694WWWDecodeDelegateDefault='curl'
43695XPSDelegateDefault='gxps'
43696ZipDelegateDefault='gzip'
43697
43698# Search for delegates
43699# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
43700set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
43701{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43702$as_echo_n "checking for $ac_word... " >&6; }
43703if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then
43704 $as_echo_n "(cached) " >&6
43705else
43706 case $AutotraceDecodeDelegate in
43707 [\\/]* | ?:[\\/]*)
43708 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
43709 ;;
43710 *)
43711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43712for as_dir in $PATH
43713do
43714 IFS=$as_save_IFS
43715 test -z "$as_dir" && as_dir=.
43716 for ac_exec_ext in '' $ac_executable_extensions; do
43717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43718 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43719 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43720 break 2
43721 fi
43722done
43723done
43724IFS=$as_save_IFS
43725
43726 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
43727 ;;
43728esac
43729fi
43730AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
43731if test -n "$AutotraceDecodeDelegate"; then
43732 { $as_echo "$as_me:$LINENO: result: $AutotraceDecodeDelegate" >&5
43733$as_echo "$AutotraceDecodeDelegate" >&6; }
43734else
43735 { $as_echo "$as_me:$LINENO: result: no" >&5
43736$as_echo "no" >&6; }
43737fi
43738
43739
43740# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
43741set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
43742{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43743$as_echo_n "checking for $ac_word... " >&6; }
43744if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then
43745 $as_echo_n "(cached) " >&6
43746else
43747 case $AVIDecodeDelegate in
43748 [\\/]* | ?:[\\/]*)
43749 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
43750 ;;
43751 *)
43752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43753for as_dir in $PATH
43754do
43755 IFS=$as_save_IFS
43756 test -z "$as_dir" && as_dir=.
43757 for ac_exec_ext in '' $ac_executable_extensions; do
43758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43759 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43760 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43761 break 2
43762 fi
43763done
43764done
43765IFS=$as_save_IFS
43766
43767 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
43768 ;;
43769esac
43770fi
43771AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
43772if test -n "$AVIDecodeDelegate"; then
43773 { $as_echo "$as_me:$LINENO: result: $AVIDecodeDelegate" >&5
43774$as_echo "$AVIDecodeDelegate" >&6; }
43775else
43776 { $as_echo "$as_me:$LINENO: result: no" >&5
43777$as_echo "no" >&6; }
43778fi
43779
43780
43781# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
43782set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
43783{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43784$as_echo_n "checking for $ac_word... " >&6; }
43785if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then
43786 $as_echo_n "(cached) " >&6
43787else
43788 case $BlenderDecodeDelegate in
43789 [\\/]* | ?:[\\/]*)
43790 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
43791 ;;
43792 *)
43793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43794for as_dir in $PATH
43795do
43796 IFS=$as_save_IFS
43797 test -z "$as_dir" && as_dir=.
43798 for ac_exec_ext in '' $ac_executable_extensions; do
43799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43800 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43801 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43802 break 2
43803 fi
43804done
43805done
43806IFS=$as_save_IFS
43807
43808 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
43809 ;;
43810esac
43811fi
43812BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
43813if test -n "$BlenderDecodeDelegate"; then
43814 { $as_echo "$as_me:$LINENO: result: $BlenderDecodeDelegate" >&5
43815$as_echo "$BlenderDecodeDelegate" >&6; }
43816else
43817 { $as_echo "$as_me:$LINENO: result: no" >&5
43818$as_echo "no" >&6; }
43819fi
43820
43821
43822# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
43823set dummy "$BZIPDelegateDefault"; ac_word=$2
43824{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43825$as_echo_n "checking for $ac_word... " >&6; }
43826if test "${ac_cv_path_BZIPDelegate+set}" = set; then
43827 $as_echo_n "(cached) " >&6
43828else
43829 case $BZIPDelegate in
43830 [\\/]* | ?:[\\/]*)
43831 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
43832 ;;
43833 *)
43834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43835for as_dir in $PATH
43836do
43837 IFS=$as_save_IFS
43838 test -z "$as_dir" && as_dir=.
43839 for ac_exec_ext in '' $ac_executable_extensions; do
43840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43841 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
43842 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43843 break 2
43844 fi
43845done
43846done
43847IFS=$as_save_IFS
43848
43849 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
43850 ;;
43851esac
43852fi
43853BZIPDelegate=$ac_cv_path_BZIPDelegate
43854if test -n "$BZIPDelegate"; then
43855 { $as_echo "$as_me:$LINENO: result: $BZIPDelegate" >&5
43856$as_echo "$BZIPDelegate" >&6; }
43857else
43858 { $as_echo "$as_me:$LINENO: result: no" >&5
43859$as_echo "no" >&6; }
43860fi
43861
43862
43863# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
43864set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
43865{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43866$as_echo_n "checking for $ac_word... " >&6; }
43867if test "${ac_cv_path_BrowseDelegate+set}" = set; then
43868 $as_echo_n "(cached) " >&6
43869else
43870 case $BrowseDelegate in
43871 [\\/]* | ?:[\\/]*)
43872 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
43873 ;;
43874 *)
43875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43876for as_dir in $PATH
43877do
43878 IFS=$as_save_IFS
43879 test -z "$as_dir" && as_dir=.
43880 for ac_exec_ext in '' $ac_executable_extensions; do
43881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43882 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
43883 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43884 break 2
43885 fi
43886done
43887done
43888IFS=$as_save_IFS
43889
43890 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
43891 ;;
43892esac
43893fi
43894BrowseDelegate=$ac_cv_path_BrowseDelegate
43895if test -n "$BrowseDelegate"; then
43896 { $as_echo "$as_me:$LINENO: result: $BrowseDelegate" >&5
43897$as_echo "$BrowseDelegate" >&6; }
43898else
43899 { $as_echo "$as_me:$LINENO: result: no" >&5
43900$as_echo "no" >&6; }
43901fi
43902
43903
43904# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
43905set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
43906{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43907$as_echo_n "checking for $ac_word... " >&6; }
43908if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then
43909 $as_echo_n "(cached) " >&6
43910else
43911 case $CGMDecodeDelegate in
43912 [\\/]* | ?:[\\/]*)
43913 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
43914 ;;
43915 *)
43916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43917for as_dir in $PATH
43918do
43919 IFS=$as_save_IFS
43920 test -z "$as_dir" && as_dir=.
43921 for ac_exec_ext in '' $ac_executable_extensions; do
43922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43923 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43924 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43925 break 2
43926 fi
43927done
43928done
43929IFS=$as_save_IFS
43930
43931 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
43932 ;;
43933esac
43934fi
43935CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
43936if test -n "$CGMDecodeDelegate"; then
43937 { $as_echo "$as_me:$LINENO: result: $CGMDecodeDelegate" >&5
43938$as_echo "$CGMDecodeDelegate" >&6; }
43939else
43940 { $as_echo "$as_me:$LINENO: result: no" >&5
43941$as_echo "no" >&6; }
43942fi
43943
43944
43945# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
43946set dummy "$CatDelegateDefault"; ac_word=$2
43947{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43948$as_echo_n "checking for $ac_word... " >&6; }
43949if test "${ac_cv_path_CatDelegate+set}" = set; then
43950 $as_echo_n "(cached) " >&6
43951else
43952 case $CatDelegate in
43953 [\\/]* | ?:[\\/]*)
43954 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
43955 ;;
43956 *)
43957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43958for as_dir in $PATH
43959do
43960 IFS=$as_save_IFS
43961 test -z "$as_dir" && as_dir=.
43962 for ac_exec_ext in '' $ac_executable_extensions; do
43963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43964 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
43965 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43966 break 2
43967 fi
43968done
43969done
43970IFS=$as_save_IFS
43971
43972 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
43973 ;;
43974esac
43975fi
43976CatDelegate=$ac_cv_path_CatDelegate
43977if test -n "$CatDelegate"; then
43978 { $as_echo "$as_me:$LINENO: result: $CatDelegate" >&5
43979$as_echo "$CatDelegate" >&6; }
43980else
43981 { $as_echo "$as_me:$LINENO: result: no" >&5
43982$as_echo "no" >&6; }
43983fi
43984
43985
43986# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
43987set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
43988{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43989$as_echo_n "checking for $ac_word... " >&6; }
43990if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then
43991 $as_echo_n "(cached) " >&6
43992else
43993 case $DNGDecodeDelegate in
43994 [\\/]* | ?:[\\/]*)
43995 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
43996 ;;
43997 *)
43998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43999for as_dir in $PATH
44000do
44001 IFS=$as_save_IFS
44002 test -z "$as_dir" && as_dir=.
44003 for ac_exec_ext in '' $ac_executable_extensions; do
44004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44005 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44006 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44007 break 2
44008 fi
44009done
44010done
44011IFS=$as_save_IFS
44012
44013 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
44014 ;;
44015esac
44016fi
44017DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
44018if test -n "$DNGDecodeDelegate"; then
44019 { $as_echo "$as_me:$LINENO: result: $DNGDecodeDelegate" >&5
44020$as_echo "$DNGDecodeDelegate" >&6; }
44021else
44022 { $as_echo "$as_me:$LINENO: result: no" >&5
44023$as_echo "no" >&6; }
44024fi
44025
44026
44027# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
44028set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
44029{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44030$as_echo_n "checking for $ac_word... " >&6; }
44031if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then
44032 $as_echo_n "(cached) " >&6
44033else
44034 case $GVCDecodeDelegate in
44035 [\\/]* | ?:[\\/]*)
44036 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
44037 ;;
44038 *)
44039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44040for as_dir in $PATH
44041do
44042 IFS=$as_save_IFS
44043 test -z "$as_dir" && as_dir=.
44044 for ac_exec_ext in '' $ac_executable_extensions; do
44045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44046 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44048 break 2
44049 fi
44050done
44051done
44052IFS=$as_save_IFS
44053
44054 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
44055 ;;
44056esac
44057fi
44058GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
44059if test -n "$GVCDecodeDelegate"; then
44060 { $as_echo "$as_me:$LINENO: result: $GVCDecodeDelegate" >&5
44061$as_echo "$GVCDecodeDelegate" >&6; }
44062else
44063 { $as_echo "$as_me:$LINENO: result: no" >&5
44064$as_echo "no" >&6; }
44065fi
44066
44067
44068# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
44069set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
44070{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44071$as_echo_n "checking for $ac_word... " >&6; }
44072if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then
44073 $as_echo_n "(cached) " >&6
44074else
44075 case $DVIDecodeDelegate in
44076 [\\/]* | ?:[\\/]*)
44077 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
44078 ;;
44079 *)
44080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44081for as_dir in $PATH
44082do
44083 IFS=$as_save_IFS
44084 test -z "$as_dir" && as_dir=.
44085 for ac_exec_ext in '' $ac_executable_extensions; do
44086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44087 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44089 break 2
44090 fi
44091done
44092done
44093IFS=$as_save_IFS
44094
44095 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
44096 ;;
44097esac
44098fi
44099DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
44100if test -n "$DVIDecodeDelegate"; then
44101 { $as_echo "$as_me:$LINENO: result: $DVIDecodeDelegate" >&5
44102$as_echo "$DVIDecodeDelegate" >&6; }
44103else
44104 { $as_echo "$as_me:$LINENO: result: no" >&5
44105$as_echo "no" >&6; }
44106fi
44107
44108
44109# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
44110set dummy "$EchoDelegateDefault"; ac_word=$2
44111{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44112$as_echo_n "checking for $ac_word... " >&6; }
44113if test "${ac_cv_path_EchoDelegate+set}" = set; then
44114 $as_echo_n "(cached) " >&6
44115else
44116 case $EchoDelegate in
44117 [\\/]* | ?:[\\/]*)
44118 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
44119 ;;
44120 *)
44121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44122for as_dir in $PATH
44123do
44124 IFS=$as_save_IFS
44125 test -z "$as_dir" && as_dir=.
44126 for ac_exec_ext in '' $ac_executable_extensions; do
44127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44128 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
44129 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44130 break 2
44131 fi
44132done
44133done
44134IFS=$as_save_IFS
44135
44136 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
44137 ;;
44138esac
44139fi
44140EchoDelegate=$ac_cv_path_EchoDelegate
44141if test -n "$EchoDelegate"; then
44142 { $as_echo "$as_me:$LINENO: result: $EchoDelegate" >&5
44143$as_echo "$EchoDelegate" >&6; }
44144else
44145 { $as_echo "$as_me:$LINENO: result: no" >&5
44146$as_echo "no" >&6; }
44147fi
44148
44149
44150# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
44151set dummy "$EditorDelegateDefault"; ac_word=$2
44152{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44153$as_echo_n "checking for $ac_word... " >&6; }
44154if test "${ac_cv_path_EditorDelegate+set}" = set; then
44155 $as_echo_n "(cached) " >&6
44156else
44157 case $EditorDelegate in
44158 [\\/]* | ?:[\\/]*)
44159 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
44160 ;;
44161 *)
44162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44163for as_dir in $PATH
44164do
44165 IFS=$as_save_IFS
44166 test -z "$as_dir" && as_dir=.
44167 for ac_exec_ext in '' $ac_executable_extensions; do
44168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44169 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
44170 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44171 break 2
44172 fi
44173done
44174done
44175IFS=$as_save_IFS
44176
44177 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
44178 ;;
44179esac
44180fi
44181EditorDelegate=$ac_cv_path_EditorDelegate
44182if test -n "$EditorDelegate"; then
44183 { $as_echo "$as_me:$LINENO: result: $EditorDelegate" >&5
44184$as_echo "$EditorDelegate" >&6; }
44185else
44186 { $as_echo "$as_me:$LINENO: result: no" >&5
44187$as_echo "no" >&6; }
44188fi
44189
44190
44191# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
44192set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
44193{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44194$as_echo_n "checking for $ac_word... " >&6; }
44195if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then
44196 $as_echo_n "(cached) " >&6
44197else
44198 case $FIGDecodeDelegate in
44199 [\\/]* | ?:[\\/]*)
44200 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
44201 ;;
44202 *)
44203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44204for as_dir in $PATH
44205do
44206 IFS=$as_save_IFS
44207 test -z "$as_dir" && as_dir=.
44208 for ac_exec_ext in '' $ac_executable_extensions; do
44209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44210 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44211 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44212 break 2
44213 fi
44214done
44215done
44216IFS=$as_save_IFS
44217
44218 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
44219 ;;
44220esac
44221fi
44222FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
44223if test -n "$FIGDecodeDelegate"; then
44224 { $as_echo "$as_me:$LINENO: result: $FIGDecodeDelegate" >&5
44225$as_echo "$FIGDecodeDelegate" >&6; }
44226else
44227 { $as_echo "$as_me:$LINENO: result: no" >&5
44228$as_echo "no" >&6; }
44229fi
44230
44231
44232# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
44233set dummy "$ConvertDelegateDefault"; ac_word=$2
44234{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44235$as_echo_n "checking for $ac_word... " >&6; }
44236if test "${ac_cv_path_ConvertDelegate+set}" = set; then
44237 $as_echo_n "(cached) " >&6
44238else
44239 case $ConvertDelegate in
44240 [\\/]* | ?:[\\/]*)
44241 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
44242 ;;
44243 *)
44244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44245for as_dir in $PATH
44246do
44247 IFS=$as_save_IFS
44248 test -z "$as_dir" && as_dir=.
44249 for ac_exec_ext in '' $ac_executable_extensions; do
44250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44251 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
44252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44253 break 2
44254 fi
44255done
44256done
44257IFS=$as_save_IFS
44258
44259 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
44260 ;;
44261esac
44262fi
44263ConvertDelegate=$ac_cv_path_ConvertDelegate
44264if test -n "$ConvertDelegate"; then
44265 { $as_echo "$as_me:$LINENO: result: $ConvertDelegate" >&5
44266$as_echo "$ConvertDelegate" >&6; }
44267else
44268 { $as_echo "$as_me:$LINENO: result: no" >&5
44269$as_echo "no" >&6; }
44270fi
44271
44272
44273# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
44274set dummy "$DisplayDelegateDefault"; ac_word=$2
44275{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44276$as_echo_n "checking for $ac_word... " >&6; }
44277if test "${ac_cv_path_DisplayDelegate+set}" = set; then
44278 $as_echo_n "(cached) " >&6
44279else
44280 case $DisplayDelegate in
44281 [\\/]* | ?:[\\/]*)
44282 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
44283 ;;
44284 *)
44285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44286for as_dir in $PATH
44287do
44288 IFS=$as_save_IFS
44289 test -z "$as_dir" && as_dir=.
44290 for ac_exec_ext in '' $ac_executable_extensions; do
44291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44292 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
44293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44294 break 2
44295 fi
44296done
44297done
44298IFS=$as_save_IFS
44299
44300 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
44301 ;;
44302esac
44303fi
44304DisplayDelegate=$ac_cv_path_DisplayDelegate
44305if test -n "$DisplayDelegate"; then
44306 { $as_echo "$as_me:$LINENO: result: $DisplayDelegate" >&5
44307$as_echo "$DisplayDelegate" >&6; }
44308else
44309 { $as_echo "$as_me:$LINENO: result: no" >&5
44310$as_echo "no" >&6; }
44311fi
44312
44313
44314# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
44315set dummy "$MogrifyDelegateDefault"; ac_word=$2
44316{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44317$as_echo_n "checking for $ac_word... " >&6; }
44318if test "${ac_cv_path_MogrifyDelegate+set}" = set; then
44319 $as_echo_n "(cached) " >&6
44320else
44321 case $MogrifyDelegate in
44322 [\\/]* | ?:[\\/]*)
44323 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
44324 ;;
44325 *)
44326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44327for as_dir in $PATH
44328do
44329 IFS=$as_save_IFS
44330 test -z "$as_dir" && as_dir=.
44331 for ac_exec_ext in '' $ac_executable_extensions; do
44332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44333 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
44334 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44335 break 2
44336 fi
44337done
44338done
44339IFS=$as_save_IFS
44340
44341 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
44342 ;;
44343esac
44344fi
44345MogrifyDelegate=$ac_cv_path_MogrifyDelegate
44346if test -n "$MogrifyDelegate"; then
44347 { $as_echo "$as_me:$LINENO: result: $MogrifyDelegate" >&5
44348$as_echo "$MogrifyDelegate" >&6; }
44349else
44350 { $as_echo "$as_me:$LINENO: result: no" >&5
44351$as_echo "no" >&6; }
44352fi
44353
44354
44355# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
44356set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
44357{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44358$as_echo_n "checking for $ac_word... " >&6; }
44359if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then
44360 $as_echo_n "(cached) " >&6
44361else
44362 case $GnuplotDecodeDelegate in
44363 [\\/]* | ?:[\\/]*)
44364 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
44365 ;;
44366 *)
44367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44368for as_dir in $PATH
44369do
44370 IFS=$as_save_IFS
44371 test -z "$as_dir" && as_dir=.
44372 for ac_exec_ext in '' $ac_executable_extensions; do
44373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44374 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44375 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44376 break 2
44377 fi
44378done
44379done
44380IFS=$as_save_IFS
44381
44382 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
44383 ;;
44384esac
44385fi
44386GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
44387if test -n "$GnuplotDecodeDelegate"; then
44388 { $as_echo "$as_me:$LINENO: result: $GnuplotDecodeDelegate" >&5
44389$as_echo "$GnuplotDecodeDelegate" >&6; }
44390else
44391 { $as_echo "$as_me:$LINENO: result: no" >&5
44392$as_echo "no" >&6; }
44393fi
44394
44395
44396# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
44397set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
44398{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44399$as_echo_n "checking for $ac_word... " >&6; }
44400if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then
44401 $as_echo_n "(cached) " >&6
44402else
44403 case $HDRDecodeDelegate in
44404 [\\/]* | ?:[\\/]*)
44405 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
44406 ;;
44407 *)
44408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44409for as_dir in $PATH
44410do
44411 IFS=$as_save_IFS
44412 test -z "$as_dir" && as_dir=.
44413 for ac_exec_ext in '' $ac_executable_extensions; do
44414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44415 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44416 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44417 break 2
44418 fi
44419done
44420done
44421IFS=$as_save_IFS
44422
44423 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
44424 ;;
44425esac
44426fi
44427HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
44428if test -n "$HDRDecodeDelegate"; then
44429 { $as_echo "$as_me:$LINENO: result: $HDRDecodeDelegate" >&5
44430$as_echo "$HDRDecodeDelegate" >&6; }
44431else
44432 { $as_echo "$as_me:$LINENO: result: no" >&5
44433$as_echo "no" >&6; }
44434fi
44435
44436
44437# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
44438set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
44439{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44440$as_echo_n "checking for $ac_word... " >&6; }
44441if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then
44442 $as_echo_n "(cached) " >&6
44443else
44444 case $HPGLDecodeDelegate in
44445 [\\/]* | ?:[\\/]*)
44446 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
44447 ;;
44448 *)
44449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44450for as_dir in $PATH
44451do
44452 IFS=$as_save_IFS
44453 test -z "$as_dir" && as_dir=.
44454 for ac_exec_ext in '' $ac_executable_extensions; do
44455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44456 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44458 break 2
44459 fi
44460done
44461done
44462IFS=$as_save_IFS
44463
44464 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
44465 ;;
44466esac
44467fi
44468HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
44469if test -n "$HPGLDecodeDelegate"; then
44470 { $as_echo "$as_me:$LINENO: result: $HPGLDecodeDelegate" >&5
44471$as_echo "$HPGLDecodeDelegate" >&6; }
44472else
44473 { $as_echo "$as_me:$LINENO: result: no" >&5
44474$as_echo "no" >&6; }
44475fi
44476
44477
44478# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
44479set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
44480{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44481$as_echo_n "checking for $ac_word... " >&6; }
44482if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then
44483 $as_echo_n "(cached) " >&6
44484else
44485 case $HTMLDecodeDelegate in
44486 [\\/]* | ?:[\\/]*)
44487 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
44488 ;;
44489 *)
44490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44491for as_dir in $PATH
44492do
44493 IFS=$as_save_IFS
44494 test -z "$as_dir" && as_dir=.
44495 for ac_exec_ext in '' $ac_executable_extensions; do
44496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44497 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44498 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44499 break 2
44500 fi
44501done
44502done
44503IFS=$as_save_IFS
44504
44505 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
44506 ;;
44507esac
44508fi
44509HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
44510if test -n "$HTMLDecodeDelegate"; then
44511 { $as_echo "$as_me:$LINENO: result: $HTMLDecodeDelegate" >&5
44512$as_echo "$HTMLDecodeDelegate" >&6; }
44513else
44514 { $as_echo "$as_me:$LINENO: result: no" >&5
44515$as_echo "no" >&6; }
44516fi
44517
44518
44519# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
44520set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
44521{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44522$as_echo_n "checking for $ac_word... " >&6; }
44523if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then
44524 $as_echo_n "(cached) " >&6
44525else
44526 case $ILBMDecodeDelegate in
44527 [\\/]* | ?:[\\/]*)
44528 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
44529 ;;
44530 *)
44531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44532for as_dir in $PATH
44533do
44534 IFS=$as_save_IFS
44535 test -z "$as_dir" && as_dir=.
44536 for ac_exec_ext in '' $ac_executable_extensions; do
44537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44538 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44540 break 2
44541 fi
44542done
44543done
44544IFS=$as_save_IFS
44545
44546 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
44547 ;;
44548esac
44549fi
44550ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
44551if test -n "$ILBMDecodeDelegate"; then
44552 { $as_echo "$as_me:$LINENO: result: $ILBMDecodeDelegate" >&5
44553$as_echo "$ILBMDecodeDelegate" >&6; }
44554else
44555 { $as_echo "$as_me:$LINENO: result: no" >&5
44556$as_echo "no" >&6; }
44557fi
44558
44559
44560# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
44561set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
44562{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44563$as_echo_n "checking for $ac_word... " >&6; }
44564if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then
44565 $as_echo_n "(cached) " >&6
44566else
44567 case $ILBMEncodeDelegate in
44568 [\\/]* | ?:[\\/]*)
44569 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
44570 ;;
44571 *)
44572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44573for as_dir in $PATH
44574do
44575 IFS=$as_save_IFS
44576 test -z "$as_dir" && as_dir=.
44577 for ac_exec_ext in '' $ac_executable_extensions; do
44578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44579 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44580 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44581 break 2
44582 fi
44583done
44584done
44585IFS=$as_save_IFS
44586
44587 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
44588 ;;
44589esac
44590fi
44591ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
44592if test -n "$ILBMEncodeDelegate"; then
44593 { $as_echo "$as_me:$LINENO: result: $ILBMEncodeDelegate" >&5
44594$as_echo "$ILBMEncodeDelegate" >&6; }
44595else
44596 { $as_echo "$as_me:$LINENO: result: no" >&5
44597$as_echo "no" >&6; }
44598fi
44599
44600
44601# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
44602set dummy "$LPDelegateDefault"; ac_word=$2
44603{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44604$as_echo_n "checking for $ac_word... " >&6; }
44605if test "${ac_cv_path_LPDelegate+set}" = set; then
44606 $as_echo_n "(cached) " >&6
44607else
44608 case $LPDelegate in
44609 [\\/]* | ?:[\\/]*)
44610 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
44611 ;;
44612 *)
44613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44614for as_dir in $PATH
44615do
44616 IFS=$as_save_IFS
44617 test -z "$as_dir" && as_dir=.
44618 for ac_exec_ext in '' $ac_executable_extensions; do
44619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44620 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
44621 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44622 break 2
44623 fi
44624done
44625done
44626IFS=$as_save_IFS
44627
44628 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
44629 ;;
44630esac
44631fi
44632LPDelegate=$ac_cv_path_LPDelegate
44633if test -n "$LPDelegate"; then
44634 { $as_echo "$as_me:$LINENO: result: $LPDelegate" >&5
44635$as_echo "$LPDelegate" >&6; }
44636else
44637 { $as_echo "$as_me:$LINENO: result: no" >&5
44638$as_echo "no" >&6; }
44639fi
44640
44641
44642# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
44643set dummy "$LPRDelegateDefault"; ac_word=$2
44644{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44645$as_echo_n "checking for $ac_word... " >&6; }
44646if test "${ac_cv_path_LPRDelegate+set}" = set; then
44647 $as_echo_n "(cached) " >&6
44648else
44649 case $LPRDelegate in
44650 [\\/]* | ?:[\\/]*)
44651 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
44652 ;;
44653 *)
44654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44655for as_dir in $PATH
44656do
44657 IFS=$as_save_IFS
44658 test -z "$as_dir" && as_dir=.
44659 for ac_exec_ext in '' $ac_executable_extensions; do
44660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44661 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
44662 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44663 break 2
44664 fi
44665done
44666done
44667IFS=$as_save_IFS
44668
44669 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
44670 ;;
44671esac
44672fi
44673LPRDelegate=$ac_cv_path_LPRDelegate
44674if test -n "$LPRDelegate"; then
44675 { $as_echo "$as_me:$LINENO: result: $LPRDelegate" >&5
44676$as_echo "$LPRDelegate" >&6; }
44677else
44678 { $as_echo "$as_me:$LINENO: result: no" >&5
44679$as_echo "no" >&6; }
44680fi
44681
44682
44683# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
44684set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
44685{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44686$as_echo_n "checking for $ac_word... " >&6; }
44687if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then
44688 $as_echo_n "(cached) " >&6
44689else
44690 case $LZWDecodeDelegate in
44691 [\\/]* | ?:[\\/]*)
44692 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
44693 ;;
44694 *)
44695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44696for as_dir in $PATH
44697do
44698 IFS=$as_save_IFS
44699 test -z "$as_dir" && as_dir=.
44700 for ac_exec_ext in '' $ac_executable_extensions; do
44701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44702 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44704 break 2
44705 fi
44706done
44707done
44708IFS=$as_save_IFS
44709
44710 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
44711 ;;
44712esac
44713fi
44714LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
44715if test -n "$LZWDecodeDelegate"; then
44716 { $as_echo "$as_me:$LINENO: result: $LZWDecodeDelegate" >&5
44717$as_echo "$LZWDecodeDelegate" >&6; }
44718else
44719 { $as_echo "$as_me:$LINENO: result: no" >&5
44720$as_echo "no" >&6; }
44721fi
44722
44723
44724# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
44725set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
44726{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44727$as_echo_n "checking for $ac_word... " >&6; }
44728if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then
44729 $as_echo_n "(cached) " >&6
44730else
44731 case $LZWEncodeDelegate in
44732 [\\/]* | ?:[\\/]*)
44733 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
44734 ;;
44735 *)
44736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44737for as_dir in $PATH
44738do
44739 IFS=$as_save_IFS
44740 test -z "$as_dir" && as_dir=.
44741 for ac_exec_ext in '' $ac_executable_extensions; do
44742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44743 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44745 break 2
44746 fi
44747done
44748done
44749IFS=$as_save_IFS
44750
44751 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
44752 ;;
44753esac
44754fi
44755LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
44756if test -n "$LZWEncodeDelegate"; then
44757 { $as_echo "$as_me:$LINENO: result: $LZWEncodeDelegate" >&5
44758$as_echo "$LZWEncodeDelegate" >&6; }
44759else
44760 { $as_echo "$as_me:$LINENO: result: no" >&5
44761$as_echo "no" >&6; }
44762fi
44763
44764
44765# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
44766set dummy "$LaunchDelegateDefault"; ac_word=$2
44767{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44768$as_echo_n "checking for $ac_word... " >&6; }
44769if test "${ac_cv_path_LaunchDelegate+set}" = set; then
44770 $as_echo_n "(cached) " >&6
44771else
44772 case $LaunchDelegate in
44773 [\\/]* | ?:[\\/]*)
44774 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
44775 ;;
44776 *)
44777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44778for as_dir in $PATH
44779do
44780 IFS=$as_save_IFS
44781 test -z "$as_dir" && as_dir=.
44782 for ac_exec_ext in '' $ac_executable_extensions; do
44783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44784 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
44785 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44786 break 2
44787 fi
44788done
44789done
44790IFS=$as_save_IFS
44791
44792 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
44793 ;;
44794esac
44795fi
44796LaunchDelegate=$ac_cv_path_LaunchDelegate
44797if test -n "$LaunchDelegate"; then
44798 { $as_echo "$as_me:$LINENO: result: $LaunchDelegate" >&5
44799$as_echo "$LaunchDelegate" >&6; }
44800else
44801 { $as_echo "$as_me:$LINENO: result: no" >&5
44802$as_echo "no" >&6; }
44803fi
44804
44805
44806# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
44807set dummy "$MANDelegateDefault"; ac_word=$2
44808{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44809$as_echo_n "checking for $ac_word... " >&6; }
44810if test "${ac_cv_path_MANDelegate+set}" = set; then
44811 $as_echo_n "(cached) " >&6
44812else
44813 case $MANDelegate in
44814 [\\/]* | ?:[\\/]*)
44815 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
44816 ;;
44817 *)
44818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44819for as_dir in $PATH
44820do
44821 IFS=$as_save_IFS
44822 test -z "$as_dir" && as_dir=.
44823 for ac_exec_ext in '' $ac_executable_extensions; do
44824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44825 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
44826 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44827 break 2
44828 fi
44829done
44830done
44831IFS=$as_save_IFS
44832
44833 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
44834 ;;
44835esac
44836fi
44837MANDelegate=$ac_cv_path_MANDelegate
44838if test -n "$MANDelegate"; then
44839 { $as_echo "$as_me:$LINENO: result: $MANDelegate" >&5
44840$as_echo "$MANDelegate" >&6; }
44841else
44842 { $as_echo "$as_me:$LINENO: result: no" >&5
44843$as_echo "no" >&6; }
44844fi
44845
44846
44847# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
44848set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
44849{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44850$as_echo_n "checking for $ac_word... " >&6; }
44851if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then
44852 $as_echo_n "(cached) " >&6
44853else
44854 case $MPEGDecodeDelegate in
44855 [\\/]* | ?:[\\/]*)
44856 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
44857 ;;
44858 *)
44859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44860for as_dir in $PATH
44861do
44862 IFS=$as_save_IFS
44863 test -z "$as_dir" && as_dir=.
44864 for ac_exec_ext in '' $ac_executable_extensions; do
44865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44866 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44868 break 2
44869 fi
44870done
44871done
44872IFS=$as_save_IFS
44873
44874 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
44875 ;;
44876esac
44877fi
44878MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
44879if test -n "$MPEGDecodeDelegate"; then
44880 { $as_echo "$as_me:$LINENO: result: $MPEGDecodeDelegate" >&5
44881$as_echo "$MPEGDecodeDelegate" >&6; }
44882else
44883 { $as_echo "$as_me:$LINENO: result: no" >&5
44884$as_echo "no" >&6; }
44885fi
44886
44887
44888# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
44889set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
44890{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44891$as_echo_n "checking for $ac_word... " >&6; }
44892if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then
44893 $as_echo_n "(cached) " >&6
44894else
44895 case $MPEGEncodeDelegate in
44896 [\\/]* | ?:[\\/]*)
44897 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
44898 ;;
44899 *)
44900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44901for as_dir in $PATH
44902do
44903 IFS=$as_save_IFS
44904 test -z "$as_dir" && as_dir=.
44905 for ac_exec_ext in '' $ac_executable_extensions; do
44906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44907 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44908 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44909 break 2
44910 fi
44911done
44912done
44913IFS=$as_save_IFS
44914
44915 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
44916 ;;
44917esac
44918fi
44919MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
44920if test -n "$MPEGEncodeDelegate"; then
44921 { $as_echo "$as_me:$LINENO: result: $MPEGEncodeDelegate" >&5
44922$as_echo "$MPEGEncodeDelegate" >&6; }
44923else
44924 { $as_echo "$as_me:$LINENO: result: no" >&5
44925$as_echo "no" >&6; }
44926fi
44927
44928
44929# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
44930set dummy "$MVDelegateDefault"; ac_word=$2
44931{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44932$as_echo_n "checking for $ac_word... " >&6; }
44933if test "${ac_cv_path_MVDelegate+set}" = set; then
44934 $as_echo_n "(cached) " >&6
44935else
44936 case $MVDelegate in
44937 [\\/]* | ?:[\\/]*)
44938 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
44939 ;;
44940 *)
44941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44942for as_dir in $PATH
44943do
44944 IFS=$as_save_IFS
44945 test -z "$as_dir" && as_dir=.
44946 for ac_exec_ext in '' $ac_executable_extensions; do
44947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44948 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
44949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44950 break 2
44951 fi
44952done
44953done
44954IFS=$as_save_IFS
44955
44956 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
44957 ;;
44958esac
44959fi
44960MVDelegate=$ac_cv_path_MVDelegate
44961if test -n "$MVDelegate"; then
44962 { $as_echo "$as_me:$LINENO: result: $MVDelegate" >&5
44963$as_echo "$MVDelegate" >&6; }
44964else
44965 { $as_echo "$as_me:$LINENO: result: no" >&5
44966$as_echo "no" >&6; }
44967fi
44968
44969
44970# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
44971set dummy "$PCLDelegateDefault"; ac_word=$2
44972{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44973$as_echo_n "checking for $ac_word... " >&6; }
44974if test "${ac_cv_path_PCLDelegate+set}" = set; then
44975 $as_echo_n "(cached) " >&6
44976else
44977 case $PCLDelegate in
44978 [\\/]* | ?:[\\/]*)
44979 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
44980 ;;
44981 *)
44982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44983for as_dir in $PATH
44984do
44985 IFS=$as_save_IFS
44986 test -z "$as_dir" && as_dir=.
44987 for ac_exec_ext in '' $ac_executable_extensions; do
44988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44989 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
44990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44991 break 2
44992 fi
44993done
44994done
44995IFS=$as_save_IFS
44996
44997 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
44998 ;;
44999esac
45000fi
45001PCLDelegate=$ac_cv_path_PCLDelegate
45002if test -n "$PCLDelegate"; then
45003 { $as_echo "$as_me:$LINENO: result: $PCLDelegate" >&5
45004$as_echo "$PCLDelegate" >&6; }
45005else
45006 { $as_echo "$as_me:$LINENO: result: no" >&5
45007$as_echo "no" >&6; }
45008fi
45009
45010
45011# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
45012set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
45013{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45014$as_echo_n "checking for $ac_word... " >&6; }
45015if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then
45016 $as_echo_n "(cached) " >&6
45017else
45018 case $PGPDecodeDelegate in
45019 [\\/]* | ?:[\\/]*)
45020 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
45021 ;;
45022 *)
45023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45024for as_dir in $PATH
45025do
45026 IFS=$as_save_IFS
45027 test -z "$as_dir" && as_dir=.
45028 for ac_exec_ext in '' $ac_executable_extensions; do
45029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45030 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45032 break 2
45033 fi
45034done
45035done
45036IFS=$as_save_IFS
45037
45038 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
45039 ;;
45040esac
45041fi
45042PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
45043if test -n "$PGPDecodeDelegate"; then
45044 { $as_echo "$as_me:$LINENO: result: $PGPDecodeDelegate" >&5
45045$as_echo "$PGPDecodeDelegate" >&6; }
45046else
45047 { $as_echo "$as_me:$LINENO: result: no" >&5
45048$as_echo "no" >&6; }
45049fi
45050
45051
45052# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
45053set dummy "$POVDelegateDefault"; ac_word=$2
45054{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45055$as_echo_n "checking for $ac_word... " >&6; }
45056if test "${ac_cv_path_POVDelegate+set}" = set; then
45057 $as_echo_n "(cached) " >&6
45058else
45059 case $POVDelegate in
45060 [\\/]* | ?:[\\/]*)
45061 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
45062 ;;
45063 *)
45064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45065for as_dir in $PATH
45066do
45067 IFS=$as_save_IFS
45068 test -z "$as_dir" && as_dir=.
45069 for ac_exec_ext in '' $ac_executable_extensions; do
45070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45071 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
45072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45073 break 2
45074 fi
45075done
45076done
45077IFS=$as_save_IFS
45078
45079 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
45080 ;;
45081esac
45082fi
45083POVDelegate=$ac_cv_path_POVDelegate
45084if test -n "$POVDelegate"; then
45085 { $as_echo "$as_me:$LINENO: result: $POVDelegate" >&5
45086$as_echo "$POVDelegate" >&6; }
45087else
45088 { $as_echo "$as_me:$LINENO: result: no" >&5
45089$as_echo "no" >&6; }
45090fi
45091
45092
45093for ac_prog in gsx gsc "$PSDelegateDefault"
45094do
45095 # Extract the first word of "$ac_prog", so it can be a program name with args.
45096set dummy $ac_prog; ac_word=$2
45097{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45098$as_echo_n "checking for $ac_word... " >&6; }
45099if test "${ac_cv_path_PSDelegate+set}" = set; then
45100 $as_echo_n "(cached) " >&6
45101else
45102 case $PSDelegate in
45103 [\\/]* | ?:[\\/]*)
45104 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
45105 ;;
45106 *)
45107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45108for as_dir in $PATH
45109do
45110 IFS=$as_save_IFS
45111 test -z "$as_dir" && as_dir=.
45112 for ac_exec_ext in '' $ac_executable_extensions; do
45113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45114 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
45115 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45116 break 2
45117 fi
45118done
45119done
45120IFS=$as_save_IFS
45121
45122 ;;
45123esac
45124fi
45125PSDelegate=$ac_cv_path_PSDelegate
45126if test -n "$PSDelegate"; then
45127 { $as_echo "$as_me:$LINENO: result: $PSDelegate" >&5
45128$as_echo "$PSDelegate" >&6; }
45129else
45130 { $as_echo "$as_me:$LINENO: result: no" >&5
45131$as_echo "no" >&6; }
45132fi
45133
45134
45135 test -n "$PSDelegate" && break
45136done
45137test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
45138
45139# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
45140set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
45141{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45142$as_echo_n "checking for $ac_word... " >&6; }
45143if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then
45144 $as_echo_n "(cached) " >&6
45145else
45146 case $RLEEncodeDelegate in
45147 [\\/]* | ?:[\\/]*)
45148 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
45149 ;;
45150 *)
45151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45152for as_dir in $PATH
45153do
45154 IFS=$as_save_IFS
45155 test -z "$as_dir" && as_dir=.
45156 for ac_exec_ext in '' $ac_executable_extensions; do
45157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45158 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45159 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45160 break 2
45161 fi
45162done
45163done
45164IFS=$as_save_IFS
45165
45166 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
45167 ;;
45168esac
45169fi
45170RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
45171if test -n "$RLEEncodeDelegate"; then
45172 { $as_echo "$as_me:$LINENO: result: $RLEEncodeDelegate" >&5
45173$as_echo "$RLEEncodeDelegate" >&6; }
45174else
45175 { $as_echo "$as_me:$LINENO: result: no" >&5
45176$as_echo "no" >&6; }
45177fi
45178
45179
45180# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
45181set dummy "$RMDelegateDefault"; ac_word=$2
45182{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45183$as_echo_n "checking for $ac_word... " >&6; }
45184if test "${ac_cv_path_RMDelegate+set}" = set; then
45185 $as_echo_n "(cached) " >&6
45186else
45187 case $RMDelegate in
45188 [\\/]* | ?:[\\/]*)
45189 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
45190 ;;
45191 *)
45192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45193for as_dir in $PATH
45194do
45195 IFS=$as_save_IFS
45196 test -z "$as_dir" && as_dir=.
45197 for ac_exec_ext in '' $ac_executable_extensions; do
45198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45199 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
45200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45201 break 2
45202 fi
45203done
45204done
45205IFS=$as_save_IFS
45206
45207 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
45208 ;;
45209esac
45210fi
45211RMDelegate=$ac_cv_path_RMDelegate
45212if test -n "$RMDelegate"; then
45213 { $as_echo "$as_me:$LINENO: result: $RMDelegate" >&5
45214$as_echo "$RMDelegate" >&6; }
45215else
45216 { $as_echo "$as_me:$LINENO: result: no" >&5
45217$as_echo "no" >&6; }
45218fi
45219
45220
45221# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
45222set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
45223{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45224$as_echo_n "checking for $ac_word... " >&6; }
45225if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then
45226 $as_echo_n "(cached) " >&6
45227else
45228 case $SCANDecodeDelegate in
45229 [\\/]* | ?:[\\/]*)
45230 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
45231 ;;
45232 *)
45233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45234for as_dir in $PATH
45235do
45236 IFS=$as_save_IFS
45237 test -z "$as_dir" && as_dir=.
45238 for ac_exec_ext in '' $ac_executable_extensions; do
45239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45240 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45241 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45242 break 2
45243 fi
45244done
45245done
45246IFS=$as_save_IFS
45247
45248 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
45249 ;;
45250esac
45251fi
45252SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
45253if test -n "$SCANDecodeDelegate"; then
45254 { $as_echo "$as_me:$LINENO: result: $SCANDecodeDelegate" >&5
45255$as_echo "$SCANDecodeDelegate" >&6; }
45256else
45257 { $as_echo "$as_me:$LINENO: result: no" >&5
45258$as_echo "no" >&6; }
45259fi
45260
45261
45262# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
45263set dummy "$TXTDelegateDefault"; ac_word=$2
45264{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45265$as_echo_n "checking for $ac_word... " >&6; }
45266if test "${ac_cv_path_TXTDelegate+set}" = set; then
45267 $as_echo_n "(cached) " >&6
45268else
45269 case $TXTDelegate in
45270 [\\/]* | ?:[\\/]*)
45271 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
45272 ;;
45273 *)
45274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45275for as_dir in $PATH
45276do
45277 IFS=$as_save_IFS
45278 test -z "$as_dir" && as_dir=.
45279 for ac_exec_ext in '' $ac_executable_extensions; do
45280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45281 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
45282 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45283 break 2
45284 fi
45285done
45286done
45287IFS=$as_save_IFS
45288
45289 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
45290 ;;
45291esac
45292fi
45293TXTDelegate=$ac_cv_path_TXTDelegate
45294if test -n "$TXTDelegate"; then
45295 { $as_echo "$as_me:$LINENO: result: $TXTDelegate" >&5
45296$as_echo "$TXTDelegate" >&6; }
45297else
45298 { $as_echo "$as_me:$LINENO: result: no" >&5
45299$as_echo "no" >&6; }
45300fi
45301
45302
45303# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
45304set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
45305{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45306$as_echo_n "checking for $ac_word... " >&6; }
45307if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then
45308 $as_echo_n "(cached) " >&6
45309else
45310 case $WMFDecodeDelegate in
45311 [\\/]* | ?:[\\/]*)
45312 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
45313 ;;
45314 *)
45315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45316for as_dir in $PATH
45317do
45318 IFS=$as_save_IFS
45319 test -z "$as_dir" && as_dir=.
45320 for ac_exec_ext in '' $ac_executable_extensions; do
45321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45322 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45323 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45324 break 2
45325 fi
45326done
45327done
45328IFS=$as_save_IFS
45329
45330 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
45331 ;;
45332esac
45333fi
45334WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
45335if test -n "$WMFDecodeDelegate"; then
45336 { $as_echo "$as_me:$LINENO: result: $WMFDecodeDelegate" >&5
45337$as_echo "$WMFDecodeDelegate" >&6; }
45338else
45339 { $as_echo "$as_me:$LINENO: result: no" >&5
45340$as_echo "no" >&6; }
45341fi
45342
45343
45344# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
45345set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
45346{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45347$as_echo_n "checking for $ac_word... " >&6; }
45348if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then
45349 $as_echo_n "(cached) " >&6
45350else
45351 case $WWWDecodeDelegate in
45352 [\\/]* | ?:[\\/]*)
45353 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
45354 ;;
45355 *)
45356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45357for as_dir in $PATH
45358do
45359 IFS=$as_save_IFS
45360 test -z "$as_dir" && as_dir=.
45361 for ac_exec_ext in '' $ac_executable_extensions; do
45362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45363 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45364 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45365 break 2
45366 fi
45367done
45368done
45369IFS=$as_save_IFS
45370
45371 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
45372 ;;
45373esac
45374fi
45375WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
45376if test -n "$WWWDecodeDelegate"; then
45377 { $as_echo "$as_me:$LINENO: result: $WWWDecodeDelegate" >&5
45378$as_echo "$WWWDecodeDelegate" >&6; }
45379else
45380 { $as_echo "$as_me:$LINENO: result: no" >&5
45381$as_echo "no" >&6; }
45382fi
45383
45384
45385# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
45386set dummy "$XPSDelegateDefault"; ac_word=$2
45387{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45388$as_echo_n "checking for $ac_word... " >&6; }
45389if test "${ac_cv_path_XPSDelegate+set}" = set; then
45390 $as_echo_n "(cached) " >&6
45391else
45392 case $XPSDelegate in
45393 [\\/]* | ?:[\\/]*)
45394 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
45395 ;;
45396 *)
45397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45398for as_dir in $PATH
45399do
45400 IFS=$as_save_IFS
45401 test -z "$as_dir" && as_dir=.
45402 for ac_exec_ext in '' $ac_executable_extensions; do
45403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45404 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
45405 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45406 break 2
45407 fi
45408done
45409done
45410IFS=$as_save_IFS
45411
45412 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
45413 ;;
45414esac
45415fi
45416XPSDelegate=$ac_cv_path_XPSDelegate
45417if test -n "$XPSDelegate"; then
45418 { $as_echo "$as_me:$LINENO: result: $XPSDelegate" >&5
45419$as_echo "$XPSDelegate" >&6; }
45420else
45421 { $as_echo "$as_me:$LINENO: result: no" >&5
45422$as_echo "no" >&6; }
45423fi
45424
45425
45426# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
45427set dummy "$ZipDelegateDefault"; ac_word=$2
45428{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45429$as_echo_n "checking for $ac_word... " >&6; }
45430if test "${ac_cv_path_ZipDelegate+set}" = set; then
45431 $as_echo_n "(cached) " >&6
45432else
45433 case $ZipDelegate in
45434 [\\/]* | ?:[\\/]*)
45435 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
45436 ;;
45437 *)
45438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45439for as_dir in $PATH
45440do
45441 IFS=$as_save_IFS
45442 test -z "$as_dir" && as_dir=.
45443 for ac_exec_ext in '' $ac_executable_extensions; do
45444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45445 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
45446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45447 break 2
45448 fi
45449done
45450done
45451IFS=$as_save_IFS
45452
45453 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
45454 ;;
45455esac
45456fi
45457ZipDelegate=$ac_cv_path_ZipDelegate
45458if test -n "$ZipDelegate"; then
45459 { $as_echo "$as_me:$LINENO: result: $ZipDelegate" >&5
45460$as_echo "$ZipDelegate" >&6; }
45461else
45462 { $as_echo "$as_me:$LINENO: result: no" >&5
45463$as_echo "no" >&6; }
45464fi
45465
45466
45467
45468# Prefer lpr to lp; lp needs options tacked on.
45469if test "$LPRDelegate" != no; then
45470 PrintDelegate="$LPRDelegate"
45471else
45472 PrintDelegate="$LPDelegate -c -s"
45473fi
45474
45475
45476# Installed ImageMagick utiltity paths
45477ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
45478DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
45479MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
45480
45481# Set delegate booleans
45482have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
45483have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
45484have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
45485have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
45486have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
45487have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
45488have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
45489have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
45490have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
45491have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
45492have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
45493
45494#
45495# Test for font directories
45496#
45497type_include_files=''
45498
45499# Windows
45500windows_font_dir=''
45501if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
45502 windows_font_dir="${with_windows_font_dir}/"
45503fi
45504if test -n "$windows_font_dir"; then
45505 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
45506 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
45507 fi
45508 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
45509 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
45510 fi
45511 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
45512 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
45513 fi
45514fi
45515if test -n "$windows_font_dir"; then
45516 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
45517fi
45518
45519
45520# Ghostscript
45521{ $as_echo "$as_me:$LINENO: checking for Ghostscript fonts directory" >&5
45522$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
45523ghostscript_font_dir=''
45524if test "${with_gs_font_dir}" != 'default'; then
45525 ghostscript_font_dir="${with_gs_font_dir}/"
45526else
45527 if test "${native_win32_build}" = 'yes'; then
45528 # Native Windows Build
45529 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
45530 if test -f "${font_dir}a010013l.pfb"; then
45531 ghostscript_font_dir="$font_dir"
45532 break 1
45533 fi
45534 done
45535 if test "${PSDelegate}" != 'gswin32c'; then
45536 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
45537 fi
45538 else
45539 # Linux / Mac OS X / Unix Build
45540 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
45541 if test -f "${font_dir}a010013l.pfb"; then
45542 ghostscript_font_dir="${font_dir}"
45543 break 1
45544 fi
45545 done
45546 if test "${ghostscript_font_dir}x" = 'x'; then
45547 if test "$PSDelegate" != 'gs'; then
45548 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
45549 fi
45550 fi
45551 fi
45552fi
45553if test "${ghostscript_font_dir}x" != 'x'; then
45554 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
45555 { $as_echo "$as_me:$LINENO: result: $ghostscript_font_dir" >&5
45556$as_echo "$ghostscript_font_dir" >&6; }
45557else
45558 { $as_echo "$as_me:$LINENO: result: not found!" >&5
45559$as_echo "not found!" >&6; };
45560fi
45561
45562case "${build_os}" in
45563 mingw* )
45564 PSDelegate=`$WinPathScript "$PSDelegate" 1`
45565 ;;
45566esac
45567
45568
45569
45570#
45571# Handle case where user doesn't want frozen paths
45572#
45573if test "$with_frozenpaths" != 'yes'; then
45574 # Re-set delegate definitions to default (no paths)
45575 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
45576 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
45577 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
45578 BZIPDelegate="$BZIPDelegateDefault"
45579 BrowseDelegate="$BrowseDelegateDefault"
45580 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
45581 CatDelegate="$CatDelegateDefault"
45582 ConvertDelegate="$ConvertDelegateDefault"
45583 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
45584 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
45585 EchoDelegate="$EchoDelegateDefault"
45586 EditorDelegate="$EditorDelegateDefault"
45587 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
45588 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
45589 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
45590 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
45591 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
45592 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
45593 LPDelegate="$LPDelegateDefault"
45594 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
45595 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
45596 LaunchDelegate="$LaunchDelegateDefault"
45597 MANDelegate="$MANDelegateDefault"
45598 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
45599 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
45600 MVDelegate="$MVDelegateDefault"
45601 MogrifyDelegate="$MogrifyDelegateDefault"
45602 PCLDelegate="$PCLDelegateDefault"
45603 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
45604 POVDelegate="$POVDelegateDefault"
45605 PSDelegate="$PSDelegateDefault"
45606 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
45607 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
45608 RMDelegate="$RMDelegateDefault"
45609 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
45610 ShowImageDelegate="$ShowImageDelegateDefault"
45611 TXTDelegate="$TXTDelegateDefault"
45612 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
45613 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
45614 XPSDelegate="$XPSDelegateDefault"
45615 ZipDelegate="$ZipDelegateDefault"
45616fi
45617
45618# Delegate substitutions
45619
45620
45621
45622
45623
45624
45625
45626
45627
45628
45629
45630
45631
45632
45633
45634
45635
45636
45637
45638
45639
45640
45641
45642
45643
45644
45645
45646
45647
45648
45649
45650
45651
45652
45653
45654
45655
45656
45657
45658
45659
45660
45661#
45662# RPM support.
45663#
45664RPM=''
45665for ac_prog in gnutar gtar tar
45666do
45667 # Extract the first word of "$ac_prog", so it can be a program name with args.
45668set dummy $ac_prog; ac_word=$2
45669{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45670$as_echo_n "checking for $ac_word... " >&6; }
45671if test "${ac_cv_prog_TAR+set}" = set; then
45672 $as_echo_n "(cached) " >&6
45673else
45674 if test -n "$TAR"; then
45675 ac_cv_prog_TAR="$TAR" # Let the user override the test.
45676else
45677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45678for as_dir in $PATH
45679do
45680 IFS=$as_save_IFS
45681 test -z "$as_dir" && as_dir=.
45682 for ac_exec_ext in '' $ac_executable_extensions; do
45683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45684 ac_cv_prog_TAR="$ac_prog"
45685 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45686 break 2
45687 fi
45688done
45689done
45690IFS=$as_save_IFS
45691
45692fi
45693fi
45694TAR=$ac_cv_prog_TAR
45695if test -n "$TAR"; then
45696 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
45697$as_echo "$TAR" >&6; }
45698else
45699 { $as_echo "$as_me:$LINENO: result: no" >&5
45700$as_echo "no" >&6; }
45701fi
45702
45703
45704 test -n "$TAR" && break
45705done
45706
45707for ac_prog in perl
45708do
45709 # Extract the first word of "$ac_prog", so it can be a program name with args.
45710set dummy $ac_prog; ac_word=$2
45711{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45712$as_echo_n "checking for $ac_word... " >&6; }
45713if test "${ac_cv_prog_PERL+set}" = set; then
45714 $as_echo_n "(cached) " >&6
45715else
45716 if test -n "$PERL"; then
45717 ac_cv_prog_PERL="$PERL" # Let the user override the test.
45718else
45719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45720for as_dir in $PATH
45721do
45722 IFS=$as_save_IFS
45723 test -z "$as_dir" && as_dir=.
45724 for ac_exec_ext in '' $ac_executable_extensions; do
45725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45726 ac_cv_prog_PERL="$ac_prog"
45727 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45728 break 2
45729 fi
45730done
45731done
45732IFS=$as_save_IFS
45733
45734fi
45735fi
45736PERL=$ac_cv_prog_PERL
45737if test -n "$PERL"; then
45738 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
45739$as_echo "$PERL" >&6; }
45740else
45741 { $as_echo "$as_me:$LINENO: result: no" >&5
45742$as_echo "no" >&6; }
45743fi
45744
45745
45746 test -n "$PERL" && break
45747done
45748
45749for ac_prog in rpmbuild rpm
45750do
45751 # Extract the first word of "$ac_prog", so it can be a program name with args.
45752set dummy $ac_prog; ac_word=$2
45753{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45754$as_echo_n "checking for $ac_word... " >&6; }
45755if test "${ac_cv_prog_RPM+set}" = set; then
45756 $as_echo_n "(cached) " >&6
45757else
45758 if test -n "$RPM"; then
45759 ac_cv_prog_RPM="$RPM" # Let the user override the test.
45760else
45761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45762for as_dir in $PATH
45763do
45764 IFS=$as_save_IFS
45765 test -z "$as_dir" && as_dir=.
45766 for ac_exec_ext in '' $ac_executable_extensions; do
45767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45768 ac_cv_prog_RPM="$ac_prog"
45769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45770 break 2
45771 fi
45772done
45773done
45774IFS=$as_save_IFS
45775
45776fi
45777fi
45778RPM=$ac_cv_prog_RPM
45779if test -n "$RPM"; then
45780 { $as_echo "$as_me:$LINENO: result: $RPM" >&5
45781$as_echo "$RPM" >&6; }
45782else
45783 { $as_echo "$as_me:$LINENO: result: no" >&5
45784$as_echo "no" >&6; }
45785fi
45786
45787
45788 test -n "$RPM" && break
45789done
45790
45791
45792ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
45793
45794
45795AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
45796
45797
45798AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
45799
45800
45801AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
45802
45803
45804 if test "x$RPM" != "x" ; then
45805 RPM_DELEGATE_TRUE=
45806 RPM_DELEGATE_FALSE='#'
45807else
45808 RPM_DELEGATE_TRUE='#'
45809 RPM_DELEGATE_FALSE=
45810fi
45811
45812
45813#
45814# 7ZIP support (http://p7zip.sourceforge.net/)
45815#
45816P7ZIP=''
45817for ac_prog in 7za
45818do
45819 # Extract the first word of "$ac_prog", so it can be a program name with args.
45820set dummy $ac_prog; ac_word=$2
45821{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45822$as_echo_n "checking for $ac_word... " >&6; }
45823if test "${ac_cv_prog_P7ZIP+set}" = set; then
45824 $as_echo_n "(cached) " >&6
45825else
45826 if test -n "$P7ZIP"; then
45827 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
45828else
45829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45830for as_dir in $PATH
45831do
45832 IFS=$as_save_IFS
45833 test -z "$as_dir" && as_dir=.
45834 for ac_exec_ext in '' $ac_executable_extensions; do
45835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45836 ac_cv_prog_P7ZIP="$ac_prog"
45837 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45838 break 2
45839 fi
45840done
45841done
45842IFS=$as_save_IFS
45843
45844fi
45845fi
45846P7ZIP=$ac_cv_prog_P7ZIP
45847if test -n "$P7ZIP"; then
45848 { $as_echo "$as_me:$LINENO: result: $P7ZIP" >&5
45849$as_echo "$P7ZIP" >&6; }
45850else
45851 { $as_echo "$as_me:$LINENO: result: no" >&5
45852$as_echo "no" >&6; }
45853fi
45854
45855
45856 test -n "$P7ZIP" && break
45857done
45858
45859
45860 if test "x$P7ZIP" != "x" ; then
45861 P7ZIP_DELEGATE_TRUE=
45862 P7ZIP_DELEGATE_FALSE='#'
45863else
45864 P7ZIP_DELEGATE_TRUE='#'
45865 P7ZIP_DELEGATE_FALSE=
45866fi
45867
45868
45869#
45870# ZIP support (http://www.info-zip.org/Zip.html)
45871#
45872ZIP=''
45873for ac_prog in zip
45874do
45875 # Extract the first word of "$ac_prog", so it can be a program name with args.
45876set dummy $ac_prog; ac_word=$2
45877{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45878$as_echo_n "checking for $ac_word... " >&6; }
45879if test "${ac_cv_prog_ZIP+set}" = set; then
45880 $as_echo_n "(cached) " >&6
45881else
45882 if test -n "$ZIP"; then
45883 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
45884else
45885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45886for as_dir in $PATH
45887do
45888 IFS=$as_save_IFS
45889 test -z "$as_dir" && as_dir=.
45890 for ac_exec_ext in '' $ac_executable_extensions; do
45891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45892 ac_cv_prog_ZIP="$ac_prog"
45893 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45894 break 2
45895 fi
45896done
45897done
45898IFS=$as_save_IFS
45899
45900fi
45901fi
45902ZIP=$ac_cv_prog_ZIP
45903if test -n "$ZIP"; then
45904 { $as_echo "$as_me:$LINENO: result: $ZIP" >&5
45905$as_echo "$ZIP" >&6; }
45906else
45907 { $as_echo "$as_me:$LINENO: result: no" >&5
45908$as_echo "no" >&6; }
45909fi
45910
45911
45912 test -n "$ZIP" && break
45913done
45914
45915
45916 if test "x$ZIP" != "x" ; then
45917 ZIP_DELEGATE_TRUE=
45918 ZIP_DELEGATE_FALSE='#'
45919else
45920 ZIP_DELEGATE_TRUE='#'
45921 ZIP_DELEGATE_FALSE=
45922fi
45923
45924
45925#
45926# GhostPCL related configuration.
45927#
45928PCLColorDevice=ppmraw
45929PCLCMYKDevice=bmpsep8
45930PCLMonoDevice=pbmraw
45931if test -z "$PCLVersion"; then
45932 PCLVersion='unknown'
45933fi
45934if test $have_pcl = 'yes'; then
45935 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45936$as_echo "-------------------------------------------------------------" >&6; }
45937 { $as_echo "$as_me:$LINENO: checking for PCL" >&5
45938$as_echo_n "checking for PCL... " >&6; }
45939 { $as_echo "$as_me:$LINENO: result: " >&5
45940$as_echo "" >&6; }
45941 # PCLColorDevice
45942 { $as_echo "$as_me:$LINENO: checking for pcl color device" >&5
45943$as_echo_n "checking for pcl color device... " >&6; }
45944 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45945 :
45946 else
45947 PCLColorDevice=ppmraw
45948 fi
45949 { $as_echo "$as_me:$LINENO: result: $PCLColorDevice" >&5
45950$as_echo "$PCLColorDevice" >&6; }
45951
45952 # PCLCMYKDevice
45953 { $as_echo "$as_me:$LINENO: checking for pcl CMYK device" >&5
45954$as_echo_n "checking for pcl CMYK device... " >&6; }
45955 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45956 :
45957 else
45958 PCLCMYKDevice=$PCLColorDevice
45959 fi
45960 { $as_echo "$as_me:$LINENO: result: $PCLCMYKDevice" >&5
45961$as_echo "$PCLCMYKDevice" >&6; }
45962
45963 # PCLMonoDevice
45964 { $as_echo "$as_me:$LINENO: checking for pcl mono device" >&5
45965$as_echo_n "checking for pcl mono device... " >&6; }
45966 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45967 :
45968 else
45969 PCLMonoDevice=$PCLColorDevice
45970 fi
45971 { $as_echo "$as_me:$LINENO: result: $PCLMonoDevice" >&5
45972$as_echo "$PCLMonoDevice" >&6; }
45973fi
45974
45975
45976
45977
45978
45979
45980#
45981# GhostXPS related configuration.
45982#
45983XPSColorDevice=ppmraw
45984XPSCMYKDevice=bmpsep8
45985XPSMonoDevice=pbmraw
45986if test -z "$XPSVersion"; then
45987 XPSVersion='unknown'
45988fi
45989if test $have_xps = 'yes'; then
45990 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45991$as_echo "-------------------------------------------------------------" >&6; }
45992 { $as_echo "$as_me:$LINENO: checking for XPS" >&5
45993$as_echo_n "checking for XPS... " >&6; }
45994 { $as_echo "$as_me:$LINENO: result: " >&5
45995$as_echo "" >&6; }
45996 # XPSColorDevice
45997 { $as_echo "$as_me:$LINENO: checking for xps color device" >&5
45998$as_echo_n "checking for xps color device... " >&6; }
45999 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46000 :
46001 else
46002 XPSColorDevice=ppmraw
46003 fi
46004 { $as_echo "$as_me:$LINENO: result: $XPSColorDevice" >&5
46005$as_echo "$XPSColorDevice" >&6; }
46006
46007 # XPSCMYKDevice
46008 { $as_echo "$as_me:$LINENO: checking for xps CMYK device" >&5
46009$as_echo_n "checking for xps CMYK device... " >&6; }
46010 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46011 :
46012 else
46013 XPSCMYKDevice=$XPSColorDevice
46014 fi
46015 { $as_echo "$as_me:$LINENO: result: $XPSCMYKDevice" >&5
46016$as_echo "$XPSCMYKDevice" >&6; }
46017
46018 # XPSMonoDevice
46019 { $as_echo "$as_me:$LINENO: checking for xps mono device" >&5
46020$as_echo_n "checking for xps mono device... " >&6; }
46021 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46022 :
46023 else
46024 XPSMonoDevice=$XPSColorDevice
46025 fi
46026 { $as_echo "$as_me:$LINENO: result: $XPSMonoDevice" >&5
46027$as_echo "$XPSMonoDevice" >&6; }
46028fi
46029
46030
46031
46032
46033
46034
46035#
46036# Ghostscript related configuration.
46037#
46038if test "$have_png" = 'yes'; then
46039 GSAlphaDevice=pngalpha
46040else
46041 GSAlphaDevice=pnmraw
46042fi
46043GSColorDevice=pnmraw
46044GSCMYKDevice=pam
46045GSMonoDevice=pbmraw
46046GSPDFDevice=pdfwrite
46047GSPSDevice=pswrite
46048GSEPSDevice=epswrite
46049GSVersion='unknown'
46050if test $have_gs = 'yes'; then
46051 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46052$as_echo "-------------------------------------------------------------" >&6; }
46053 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
46054$as_echo_n "checking for Ghostscript... " >&6; }
46055 { $as_echo "$as_me:$LINENO: result: " >&5
46056$as_echo "" >&6; }
46057 { $as_echo "$as_me:$LINENO: checking for Ghostscript version" >&5
46058$as_echo_n "checking for Ghostscript version... " >&6; }
46059 if GSVersion=`$PSDelegate --version`; then
46060 :
46061 else
46062 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
46063 fi
46064 { $as_echo "$as_me:$LINENO: result: $GSVersion" >&5
46065$as_echo "$GSVersion" >&6; }
46066
46067 # GSAlphaDevice
46068 { $as_echo "$as_me:$LINENO: checking for gs alpha device" >&5
46069$as_echo_n "checking for gs alpha device... " >&6; }
46070 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46071 :
46072 else
46073 GSAlphaDevice=pnmraw
46074 fi
46075 { $as_echo "$as_me:$LINENO: result: $GSAlphaDevice" >&5
46076$as_echo "$GSAlphaDevice" >&6; }
46077
46078 # GSColorDevice
46079 { $as_echo "$as_me:$LINENO: checking for gs color device" >&5
46080$as_echo_n "checking for gs color device... " >&6; }
46081 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46082 :
46083 else
46084 GSColorDevice=pnmraw
46085 fi
46086 { $as_echo "$as_me:$LINENO: result: $GSColorDevice" >&5
46087$as_echo "$GSColorDevice" >&6; }
46088
46089 # GSCMYKDevice
46090 { $as_echo "$as_me:$LINENO: checking for gs CMYK device" >&5
46091$as_echo_n "checking for gs CMYK device... " >&6; }
46092 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46093 :
46094 else
46095 GSCMYKDevice=bmpsep8
46096 fi
46097 { $as_echo "$as_me:$LINENO: result: $GSCMYKDevice" >&5
46098$as_echo "$GSCMYKDevice" >&6; }
46099
46100 # GSMonoDevice
46101 { $as_echo "$as_me:$LINENO: checking for gs mono device" >&5
46102$as_echo_n "checking for gs mono device... " >&6; }
46103 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46104 :
46105 else
46106 GSMonoDevice=$GSColorDevice
46107 fi
46108 { $as_echo "$as_me:$LINENO: result: $GSMonoDevice" >&5
46109$as_echo "$GSMonoDevice" >&6; }
46110
46111 # GSPDFDevice
46112 { $as_echo "$as_me:$LINENO: checking for gs PDF writing device" >&5
46113$as_echo_n "checking for gs PDF writing device... " >&6; }
46114 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46115 :
46116 else
46117 GSPDFDevice=nodevice
46118 fi
46119 { $as_echo "$as_me:$LINENO: result: $GSPDFDevice" >&5
46120$as_echo "$GSPDFDevice" >&6; }
46121
46122 # GSPSDevice
46123 { $as_echo "$as_me:$LINENO: checking for gs PS writing device" >&5
46124$as_echo_n "checking for gs PS writing device... " >&6; }
46125 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46126 :
46127 else
46128 GSPSDevice=nodevice
46129 fi
46130 { $as_echo "$as_me:$LINENO: result: $GSPSDevice" >&5
46131$as_echo "$GSPSDevice" >&6; }
46132
46133 # GSEPSDevice
46134 { $as_echo "$as_me:$LINENO: checking for gs EPS writing device" >&5
46135$as_echo_n "checking for gs EPS writing device... " >&6; }
46136 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46137 :
46138 else
46139 GSEPSDevice=nodevice
46140 fi
46141 { $as_echo "$as_me:$LINENO: result: $GSEPSDevice" >&5
46142$as_echo "$GSEPSDevice" >&6; }
46143fi
46144
46145
46146
46147
46148
46149
46150
46151
46152
46153
46154#
46155# PerlMagick-related configuration
46156#
46157
46158# Look for PERL if PerlMagick requested
46159# If name/path of desired PERL interpreter is specified, look for that one first
46160have_perl='no'
46161if test "$with_perl" != 'no'; then
46162 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46163$as_echo "-------------------------------------------------------------" >&6; }
46164 { $as_echo "$as_me:$LINENO: checking for Perl" >&5
46165$as_echo_n "checking for Perl... " >&6; }
46166 { $as_echo "$as_me:$LINENO: result: " >&5
46167$as_echo "" >&6; }
46168 if test "$with_perl" != 'yes'; then
46169 { $as_echo "$as_me:$LINENO: checking for perl" >&5
46170$as_echo_n "checking for perl... " >&6; }
46171if test "${ac_cv_path_PERL+set}" = set; then
46172 $as_echo_n "(cached) " >&6
46173else
46174 ac_cv_path_PERL="$with_perl"
46175fi
46176{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_PERL" >&5
46177$as_echo "$ac_cv_path_PERL" >&6; };
46178 PERL=$ac_cv_path_PERL
46179 have_perl="$ac_cv_path_PERL"
46180 else
46181 for ac_prog in perl perl5
46182do
46183 # Extract the first word of "$ac_prog", so it can be a program name with args.
46184set dummy $ac_prog; ac_word=$2
46185{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46186$as_echo_n "checking for $ac_word... " >&6; }
46187if test "${ac_cv_path_PERL+set}" = set; then
46188 $as_echo_n "(cached) " >&6
46189else
46190 case $PERL in
46191 [\\/]* | ?:[\\/]*)
46192 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
46193 ;;
46194 *)
46195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46196for as_dir in $PATH
46197do
46198 IFS=$as_save_IFS
46199 test -z "$as_dir" && as_dir=.
46200 for ac_exec_ext in '' $ac_executable_extensions; do
46201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46202 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
46203 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46204 break 2
46205 fi
46206done
46207done
46208IFS=$as_save_IFS
46209
46210 ;;
46211esac
46212fi
46213PERL=$ac_cv_path_PERL
46214if test -n "$PERL"; then
46215 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
46216$as_echo "$PERL" >&6; }
46217else
46218 { $as_echo "$as_me:$LINENO: result: no" >&5
46219$as_echo "no" >&6; }
46220fi
46221
46222
46223 test -n "$PERL" && break
46224done
46225 if test "$ac_cv_path_PERL"; then
46226 have_perl="$ac_cv_path_PERL"
46227 fi
46228 fi
46229fi
46230
46231with_perl_static='no'
46232with_perl_dynamic='no'
46233if test "$have_perl" != 'no'; then
46234 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
46235 with_perl_static='yes'
46236 fi
46237 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
46238 with_perl_dynamic='yes'
46239 fi
46240 # Is PERL's MakeMaker new enough to support DESTDIR?
46241 # Make sure we have perl
46242if test -z "$PERL"; then
46243# Extract the first word of "perl", so it can be a program name with args.
46244set dummy perl; ac_word=$2
46245{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46246$as_echo_n "checking for $ac_word... " >&6; }
46247if test "${ac_cv_prog_PERL+set}" = set; then
46248 $as_echo_n "(cached) " >&6
46249else
46250 if test -n "$PERL"; then
46251 ac_cv_prog_PERL="$PERL" # Let the user override the test.
46252else
46253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46254for as_dir in $PATH
46255do
46256 IFS=$as_save_IFS
46257 test -z "$as_dir" && as_dir=.
46258 for ac_exec_ext in '' $ac_executable_extensions; do
46259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46260 ac_cv_prog_PERL="perl"
46261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46262 break 2
46263 fi
46264done
46265done
46266IFS=$as_save_IFS
46267
46268fi
46269fi
46270PERL=$ac_cv_prog_PERL
46271if test -n "$PERL"; then
46272 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
46273$as_echo "$PERL" >&6; }
46274else
46275 { $as_echo "$as_me:$LINENO: result: no" >&5
46276$as_echo "no" >&6; }
46277fi
46278
46279
46280fi
46281
46282# Check if version of Perl is sufficient
46283ac_perl_version="5.8.1"
46284
46285if test "x$PERL" != "x"; then
46286 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
46287$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
46288 # NB: It would be nice to log the error if there is one, but we cannot rely
46289 # on autoconf internals
46290 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
46291 if test $? -ne 0; then
46292 { $as_echo "$as_me:$LINENO: result: no" >&5
46293$as_echo "no" >&6; };
46294 PERL_SUPPORTS_DESTDIR='no'
46295 else
46296 { $as_echo "$as_me:$LINENO: result: ok" >&5
46297$as_echo "ok" >&6; };
46298 PERL_SUPPORTS_DESTDIR='yes'
46299 fi
46300else
46301 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
46302$as_echo "$as_me: WARNING: could not find perl" >&2;}
46303fi
46304
46305fi
46306 if test "$have_perl" != 'no'; then
46307 WITH_PERL_TRUE=
46308 WITH_PERL_FALSE='#'
46309else
46310 WITH_PERL_TRUE='#'
46311 WITH_PERL_FALSE=
46312fi
46313
46314 if test $with_perl_static = 'yes'; then
46315 WITH_PERL_STATIC_TRUE=
46316 WITH_PERL_STATIC_FALSE='#'
46317else
46318 WITH_PERL_STATIC_TRUE='#'
46319 WITH_PERL_STATIC_FALSE=
46320fi
46321
46322 if test $with_perl_dynamic = 'yes'; then
46323 WITH_PERL_DYNAMIC_TRUE=
46324 WITH_PERL_DYNAMIC_FALSE='#'
46325else
46326 WITH_PERL_DYNAMIC_TRUE='#'
46327 WITH_PERL_DYNAMIC_FALSE=
46328fi
46329
46330
46331
46332# Determine path to pick up MagickCore library from for use with building PerlMagick
46333MAGICKCORE_PATH="${LIB_DIR}"
46334if test $with_perl_static = 'yes'; then
46335 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
46336 libtool_objdir=$objdir
46337
46338 # Linker search path to library, followed by -lMagickCore
46339 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
46340fi
46341
46342
46343# Create a simple string containing format names for all delegate libraries
46344DELEGATES=''
46345if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
46346if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
46347if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
46348if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
46349if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
46350if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
46351if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
46352if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
46353if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
46354if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
46355if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
46356if test "$have_jpeg" = 'yes'; then
46357 DELEGATES="$DELEGATES jpeg";
46358 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
46359fi
46360if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
46361if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
46362if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
46363if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
46364if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
46365if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
46366if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
46367if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
46368if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
46369if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
46370if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
46371if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
46372
46373
46374
46375#
46376# Handle special compiler flags
46377#
46378
46379# Add '-p' if prof source profiling support enabled
46380if test "$enable_prof" = 'yes'; then
46381 CFLAGS="-p $CFLAGS"
46382 CXXFLAGS="-p $CXXFLAGS"
46383 LDFLAGS="-p $LDFLAGS"
46384fi
46385
46386# Add '-pg' if gprof source profiling support enabled
46387if test "$enable_gprof" = 'yes'; then
46388 CFLAGS="-pg $CFLAGS"
46389 CXXFLAGS="-pg $CXXFLAGS"
46390 LDFLAGS="-pg $LDFLAGS"
46391fi
46392
46393# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
46394# This is a gcc-specific feature
46395if test "$enable_gcov" = 'yes'; then
46396
46397{ $as_echo "$as_me:$LINENO: checking for _gcov_init in -lgcov" >&5
46398$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
46399if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then
46400 $as_echo_n "(cached) " >&6
46401else
46402 ac_check_lib_save_LIBS=$LIBS
46403LIBS="-lgcov $LIBS"
46404cat >conftest.$ac_ext <<_ACEOF
46405/* confdefs.h. */
46406_ACEOF
46407cat confdefs.h >>conftest.$ac_ext
46408cat >>conftest.$ac_ext <<_ACEOF
46409/* end confdefs.h. */
46410
46411/* Override any GCC internal prototype to avoid an error.
46412 Use char because int might match the return type of a GCC
46413 builtin and then its argument prototype would still apply. */
46414#ifdef __cplusplus
46415extern "C"
46416#endif
46417char _gcov_init ();
46418int
46419main ()
46420{
46421return _gcov_init ();
46422 ;
46423 return 0;
46424}
46425_ACEOF
46426rm -f conftest.$ac_objext conftest$ac_exeext
46427if { (ac_try="$ac_link"
46428case "(($ac_try" in
46429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46430 *) ac_try_echo=$ac_try;;
46431esac
46432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46433$as_echo "$ac_try_echo") >&5
46434 (eval "$ac_link") 2>conftest.er1
46435 ac_status=$?
46436 grep -v '^ *+' conftest.er1 >conftest.err
46437 rm -f conftest.er1
46438 cat conftest.err >&5
46439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46440 (exit $ac_status); } && {
46441 test -z "$ac_c_werror_flag" ||
46442 test ! -s conftest.err
46443 } && test -s conftest$ac_exeext && {
46444 test "$cross_compiling" = yes ||
46445 $as_test_x conftest$ac_exeext
46446 }; then
46447 ac_cv_lib_gcov__gcov_init=yes
46448else
46449 $as_echo "$as_me: failed program was:" >&5
46450sed 's/^/| /' conftest.$ac_ext >&5
46451
46452 ac_cv_lib_gcov__gcov_init=no
46453fi
46454
46455rm -rf conftest.dSYM
46456rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46457 conftest$ac_exeext conftest.$ac_ext
46458LIBS=$ac_check_lib_save_LIBS
46459fi
46460{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov__gcov_init" >&5
46461$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
46462if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then
46463 cat >>confdefs.h <<_ACEOF
46464#define HAVE_LIBGCOV 1
46465_ACEOF
46466
46467 LIBS="-lgcov $LIBS"
46468
46469fi
46470
46471
46472{ $as_echo "$as_me:$LINENO: checking for __gcov_init in -lgcov" >&5
46473$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
46474if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then
46475 $as_echo_n "(cached) " >&6
46476else
46477 ac_check_lib_save_LIBS=$LIBS
46478LIBS="-lgcov $LIBS"
46479cat >conftest.$ac_ext <<_ACEOF
46480/* confdefs.h. */
46481_ACEOF
46482cat confdefs.h >>conftest.$ac_ext
46483cat >>conftest.$ac_ext <<_ACEOF
46484/* end confdefs.h. */
46485
46486/* Override any GCC internal prototype to avoid an error.
46487 Use char because int might match the return type of a GCC
46488 builtin and then its argument prototype would still apply. */
46489#ifdef __cplusplus
46490extern "C"
46491#endif
46492char __gcov_init ();
46493int
46494main ()
46495{
46496return __gcov_init ();
46497 ;
46498 return 0;
46499}
46500_ACEOF
46501rm -f conftest.$ac_objext conftest$ac_exeext
46502if { (ac_try="$ac_link"
46503case "(($ac_try" in
46504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46505 *) ac_try_echo=$ac_try;;
46506esac
46507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46508$as_echo "$ac_try_echo") >&5
46509 (eval "$ac_link") 2>conftest.er1
46510 ac_status=$?
46511 grep -v '^ *+' conftest.er1 >conftest.err
46512 rm -f conftest.er1
46513 cat conftest.err >&5
46514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46515 (exit $ac_status); } && {
46516 test -z "$ac_c_werror_flag" ||
46517 test ! -s conftest.err
46518 } && test -s conftest$ac_exeext && {
46519 test "$cross_compiling" = yes ||
46520 $as_test_x conftest$ac_exeext
46521 }; then
46522 ac_cv_lib_gcov___gcov_init=yes
46523else
46524 $as_echo "$as_me: failed program was:" >&5
46525sed 's/^/| /' conftest.$ac_ext >&5
46526
46527 ac_cv_lib_gcov___gcov_init=no
46528fi
46529
46530rm -rf conftest.dSYM
46531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46532 conftest$ac_exeext conftest.$ac_ext
46533LIBS=$ac_check_lib_save_LIBS
46534fi
46535{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov___gcov_init" >&5
46536$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
46537if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then
46538 cat >>confdefs.h <<_ACEOF
46539#define HAVE_LIBGCOV 1
46540_ACEOF
46541
46542 LIBS="-lgcov $LIBS"
46543
46544fi
46545
46546 case "$target_os" in
46547 darwin*)
46548 OSX_GCOV_LDFLAG="-Wl,-single_module"
46549 ;;
46550 *)
46551 OSX_GCOV_LDFLAG=""
46552 ;;
46553 esac
46554
46555 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
46556 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
46557 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
46558fi
46559
46560#
46561# Build library dependency list for libMagickCore
46562#
46563
46564MAGICK_LIBLTDL='' # Libltdl for build
46565MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
46566MAGICK_LTDLDEPS='' # extra libltdl dependencies
46567if test "$with_ltdl" != 'no'
46568then
46569 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
46570 MAGICK_API_LIBLTDL='-lltdl'
46571 fi
46572 MAGICK_LIBLTDL=${LIBLTDL}
46573 MAGICK_LTDLDEPS=${LTDLDEPS}
46574fi
46575
46576
46577
46578if test "$with_modules" != 'no'; then
46579 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"
46580else
46581 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"
46582fi
46583
46584
46585#
46586# Remove extraneous spaces from output variables (asthetic)
46587#
46588X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
46589X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
46590X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
46591X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
46592
46593CC=`echo $CC | sed -e 's/ */ /g'`
46594CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
46595CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
46596CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
46597DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
46598DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
46599LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
46600TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
46601MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
46602#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
46603
46604# Pass only user-provided LIBS as "global" libraries
46605LIBS=$USER_LIBS
46606
46607#AC_SUBST(CPPFLAGS)
46608
46609#AC_SUBST(LDFLAGS)
46610#AC_SUBST(X_PRE_LIBS)
46611#AC_SUBST(X_LIBS)
46612#AC_SUBST(X_EXTRA_LIBS)
46613
46614MAGICK_CFLAGS=$CFLAGS
46615MAGICK_CXXFLAGS="$CXXFLAGS"
46616MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
46617MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
46618MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
46619MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
46620
46621
46622
46623
46624
46625
46626
46627
46628# Set configured scripts to executable.
46629ac_config_commands="$ac_config_commands default"
46630
46631ac_config_commands="$ac_config_commands MagickCore-config.in"
46632
46633ac_config_commands="$ac_config_commands Magick-config.in"
46634
46635ac_config_commands="$ac_config_commands MagickWand-config.in"
46636
46637ac_config_commands="$ac_config_commands Wand-config.in"
46638
46639ac_config_commands="$ac_config_commands Magick++-config.in"
46640
46641ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
46642
46643
46644{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46645$as_echo "-------------------------------------------------------------" >&6; }
46646{ $as_echo "$as_me:$LINENO: result: Update ImageMagick configuration" >&5
46647$as_echo "Update ImageMagick configuration" >&6; }
46648cat >confcache <<\_ACEOF
46649# This file is a shell script that caches the results of configure
46650# tests run on this system so they can be shared between configure
46651# scripts and configure runs, see configure's option --config-cache.
46652# It is not useful on other systems. If it contains results you don't
46653# want to keep, you may remove or edit it.
46654#
46655# config.status only pays attention to the cache file if you give it
46656# the --recheck option to rerun configure.
46657#
46658# `ac_cv_env_foo' variables (set or unset) will be overridden when
46659# loading this file, other *unset* `ac_cv_foo' will be assigned the
46660# following values.
46661
46662_ACEOF
46663
46664# The following way of writing the cache mishandles newlines in values,
46665# but we know of no workaround that is simple, portable, and efficient.
46666# So, we kill variables containing newlines.
46667# Ultrix sh set writes to stderr and can't be redirected directly,
46668# and sets the high bit in the cache file unless we assign to the vars.
46669(
46670 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46671 eval ac_val=\$$ac_var
46672 case $ac_val in #(
46673 *${as_nl}*)
46674 case $ac_var in #(
46675 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
46676$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
46677 esac
46678 case $ac_var in #(
46679 _ | IFS | as_nl) ;; #(
46680 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
46681 *) $as_unset $ac_var ;;
46682 esac ;;
46683 esac
46684 done
46685
46686 (set) 2>&1 |
46687 case $as_nl`(ac_space=' '; set) 2>&1` in #(
46688 *${as_nl}ac_space=\ *)
46689 # `set' does not quote correctly, so add quotes (double-quote
46690 # substitution turns \\\\ into \\, and sed turns \\ into \).
46691 sed -n \
46692 "s/'/'\\\\''/g;
46693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46694 ;; #(
46695 *)
46696 # `set' quotes correctly as required by POSIX, so do not add quotes.
46697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
46698 ;;
46699 esac |
46700 sort
46701) |
46702 sed '
46703 /^ac_cv_env_/b end
46704 t clear
46705 :clear
46706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46707 t end
46708 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46709 :end' >>confcache
46710if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
46711 if test -w "$cache_file"; then
46712 test "x$cache_file" != "x/dev/null" &&
46713 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
46714$as_echo "$as_me: updating cache $cache_file" >&6;}
46715 cat confcache >$cache_file
46716 else
46717 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
46718$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
46719 fi
46720fi
46721rm -f confcache
46722
46723test "x$prefix" = xNONE && prefix=$ac_default_prefix
46724# Let make expand exec_prefix.
46725test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46726
46727DEFS=-DHAVE_CONFIG_H
46728
46729ac_libobjs=
46730ac_ltlibobjs=
46731for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46732 # 1. Remove the extension, and $U if already installed.
46733 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
46734 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
46735 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
46736 # will be set to the directory where LIBOBJS objects are built.
46737 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
46738 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
46739done
46740LIBOBJS=$ac_libobjs
46741
46742LTLIBOBJS=$ac_ltlibobjs
46743
46744
46745 if test -n "$EXEEXT"; then
46746 am__EXEEXT_TRUE=
46747 am__EXEEXT_FALSE='#'
46748else
46749 am__EXEEXT_TRUE='#'
46750 am__EXEEXT_FALSE=
46751fi
46752
46753if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
46754 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
46755Usually this means the macro was only invoked conditionally." >&5
46756$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
46757Usually this means the macro was only invoked conditionally." >&2;}
46758 { (exit 1); exit 1; }; }
46759fi
46760if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46761 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
46762Usually this means the macro was only invoked conditionally." >&5
46763$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
46764Usually this means the macro was only invoked conditionally." >&2;}
46765 { (exit 1); exit 1; }; }
46766fi
46767if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46768 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46769Usually this means the macro was only invoked conditionally." >&5
46770$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46771Usually this means the macro was only invoked conditionally." >&2;}
46772 { (exit 1); exit 1; }; }
46773fi
46774if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
46775 { { $as_echo "$as_me:$LINENO: error: conditional \"WINGDI32_DELEGATE\" was never defined.
46776Usually this means the macro was only invoked conditionally." >&5
46777$as_echo "$as_me: error: conditional \"WINGDI32_DELEGATE\" was never defined.
46778Usually this means the macro was only invoked conditionally." >&2;}
46779 { (exit 1); exit 1; }; }
46780fi
46781if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
46782 { { $as_echo "$as_me:$LINENO: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
46783Usually this means the macro was only invoked conditionally." >&5
46784$as_echo "$as_me: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
46785Usually this means the macro was only invoked conditionally." >&2;}
46786 { (exit 1); exit 1; }; }
46787fi
46788if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
46789 { { $as_echo "$as_me:$LINENO: error: conditional \"CYGWIN_BUILD\" was never defined.
46790Usually this means the macro was only invoked conditionally." >&5
46791$as_echo "$as_me: error: conditional \"CYGWIN_BUILD\" was never defined.
46792Usually this means the macro was only invoked conditionally." >&2;}
46793 { (exit 1); exit 1; }; }
46794fi
46795if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
46796 { { $as_echo "$as_me:$LINENO: error: conditional \"USING_CL\" was never defined.
46797Usually this means the macro was only invoked conditionally." >&5
46798$as_echo "$as_me: error: conditional \"USING_CL\" was never defined.
46799Usually this means the macro was only invoked conditionally." >&2;}
46800 { (exit 1); exit 1; }; }
46801fi
46802if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46803 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46804Usually this means the macro was only invoked conditionally." >&5
46805$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46806Usually this means the macro was only invoked conditionally." >&2;}
46807 { (exit 1); exit 1; }; }
46808fi
46809if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
46810 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
46811Usually this means the macro was only invoked conditionally." >&5
46812$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
46813Usually this means the macro was only invoked conditionally." >&2;}
46814 { (exit 1); exit 1; }; }
46815fi
46816if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
46817 { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
46818Usually this means the macro was only invoked conditionally." >&5
46819$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
46820Usually this means the macro was only invoked conditionally." >&2;}
46821 { (exit 1); exit 1; }; }
46822fi
46823LT_CONFIG_H=config/config.h
46824
46825 _ltdl_libobjs=
46826 _ltdl_ltlibobjs=
46827 if test -n "$_LT_LIBOBJS"; then
46828 # Remove the extension.
46829 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
46830 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
46831 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
46832 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
46833 done
46834 fi
46835 ltdl_LIBOBJS=$_ltdl_libobjs
46836
46837 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
46838
46839
46840if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
46841 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MODULES\" was never defined.
46842Usually this means the macro was only invoked conditionally." >&5
46843$as_echo "$as_me: error: conditional \"WITH_MODULES\" was never defined.
46844Usually this means the macro was only invoked conditionally." >&2;}
46845 { (exit 1); exit 1; }; }
46846fi
46847if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
46848 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LTDL\" was never defined.
46849Usually this means the macro was only invoked conditionally." >&5
46850$as_echo "$as_me: error: conditional \"WITH_LTDL\" was never defined.
46851Usually this means the macro was only invoked conditionally." >&2;}
46852 { (exit 1); exit 1; }; }
46853fi
46854if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46855 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
46856Usually this means the macro was only invoked conditionally." >&5
46857$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
46858Usually this means the macro was only invoked conditionally." >&2;}
46859 { (exit 1); exit 1; }; }
46860fi
46861
46862if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46863 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46864Usually this means the macro was only invoked conditionally." >&5
46865$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46866Usually this means the macro was only invoked conditionally." >&2;}
46867 { (exit 1); exit 1; }; }
46868fi
46869if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
46870 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46871Usually this means the macro was only invoked conditionally." >&5
46872$as_echo "$as_me: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46873Usually this means the macro was only invoked conditionally." >&2;}
46874 { (exit 1); exit 1; }; }
46875fi
46876if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
46877 { { $as_echo "$as_me:$LINENO: error: conditional \"HasUMEM\" was never defined.
46878Usually this means the macro was only invoked conditionally." >&5
46879$as_echo "$as_me: error: conditional \"HasUMEM\" was never defined.
46880Usually this means the macro was only invoked conditionally." >&2;}
46881 { (exit 1); exit 1; }; }
46882fi
46883if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
46884 { { $as_echo "$as_me:$LINENO: error: conditional \"BZLIB_DELEGATE\" was never defined.
46885Usually this means the macro was only invoked conditionally." >&5
46886$as_echo "$as_me: error: conditional \"BZLIB_DELEGATE\" was never defined.
46887Usually this means the macro was only invoked conditionally." >&2;}
46888 { (exit 1); exit 1; }; }
46889fi
46890if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
46891 { { $as_echo "$as_me:$LINENO: error: conditional \"X11_DELEGATE\" was never defined.
46892Usually this means the macro was only invoked conditionally." >&5
46893$as_echo "$as_me: error: conditional \"X11_DELEGATE\" was never defined.
46894Usually this means the macro was only invoked conditionally." >&2;}
46895 { (exit 1); exit 1; }; }
46896fi
46897if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
46898 { { $as_echo "$as_me:$LINENO: error: conditional \"ZLIB_DELEGATE\" was never defined.
46899Usually this means the macro was only invoked conditionally." >&5
46900$as_echo "$as_me: error: conditional \"ZLIB_DELEGATE\" was never defined.
46901Usually this means the macro was only invoked conditionally." >&2;}
46902 { (exit 1); exit 1; }; }
46903fi
46904if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
46905 { { $as_echo "$as_me:$LINENO: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46906Usually this means the macro was only invoked conditionally." >&5
46907$as_echo "$as_me: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46908Usually this means the macro was only invoked conditionally." >&2;}
46909 { (exit 1); exit 1; }; }
46910fi
46911if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
46912 { { $as_echo "$as_me:$LINENO: error: conditional \"DPS_DELEGATE\" was never defined.
46913Usually this means the macro was only invoked conditionally." >&5
46914$as_echo "$as_me: error: conditional \"DPS_DELEGATE\" was never defined.
46915Usually this means the macro was only invoked conditionally." >&2;}
46916 { (exit 1); exit 1; }; }
46917fi
46918if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
46919 { { $as_echo "$as_me:$LINENO: error: conditional \"DJVU_DELEGATE\" was never defined.
46920Usually this means the macro was only invoked conditionally." >&5
46921$as_echo "$as_me: error: conditional \"DJVU_DELEGATE\" was never defined.
46922Usually this means the macro was only invoked conditionally." >&2;}
46923 { (exit 1); exit 1; }; }
46924fi
46925if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
46926 { { $as_echo "$as_me:$LINENO: error: conditional \"FFTW_DELEGATE\" was never defined.
46927Usually this means the macro was only invoked conditionally." >&5
46928$as_echo "$as_me: error: conditional \"FFTW_DELEGATE\" was never defined.
46929Usually this means the macro was only invoked conditionally." >&2;}
46930 { (exit 1); exit 1; }; }
46931fi
46932if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
46933 { { $as_echo "$as_me:$LINENO: error: conditional \"FPX_DELEGATE\" was never defined.
46934Usually this means the macro was only invoked conditionally." >&5
46935$as_echo "$as_me: error: conditional \"FPX_DELEGATE\" was never defined.
46936Usually this means the macro was only invoked conditionally." >&2;}
46937 { (exit 1); exit 1; }; }
46938fi
46939if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
46940 { { $as_echo "$as_me:$LINENO: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46941Usually this means the macro was only invoked conditionally." >&5
46942$as_echo "$as_me: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46943Usually this means the macro was only invoked conditionally." >&2;}
46944 { (exit 1); exit 1; }; }
46945fi
46946if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
46947 { { $as_echo "$as_me:$LINENO: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46948Usually this means the macro was only invoked conditionally." >&5
46949$as_echo "$as_me: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46950Usually this means the macro was only invoked conditionally." >&2;}
46951 { (exit 1); exit 1; }; }
46952fi
46953if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
46954 { { $as_echo "$as_me:$LINENO: error: conditional \"GS_DELEGATE\" was never defined.
46955Usually this means the macro was only invoked conditionally." >&5
46956$as_echo "$as_me: error: conditional \"GS_DELEGATE\" was never defined.
46957Usually this means the macro was only invoked conditionally." >&2;}
46958 { (exit 1); exit 1; }; }
46959fi
46960if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
46961 { { $as_echo "$as_me:$LINENO: error: conditional \"GVC_DELEGATE\" was never defined.
46962Usually this means the macro was only invoked conditionally." >&5
46963$as_echo "$as_me: error: conditional \"GVC_DELEGATE\" was never defined.
46964Usually this means the macro was only invoked conditionally." >&2;}
46965 { (exit 1); exit 1; }; }
46966fi
46967if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
46968 { { $as_echo "$as_me:$LINENO: error: conditional \"JBIG_DELEGATE\" was never defined.
46969Usually this means the macro was only invoked conditionally." >&5
46970$as_echo "$as_me: error: conditional \"JBIG_DELEGATE\" was never defined.
46971Usually this means the macro was only invoked conditionally." >&2;}
46972 { (exit 1); exit 1; }; }
46973fi
46974if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
46975 { { $as_echo "$as_me:$LINENO: error: conditional \"JPEG_DELEGATE\" was never defined.
46976Usually this means the macro was only invoked conditionally." >&5
46977$as_echo "$as_me: error: conditional \"JPEG_DELEGATE\" was never defined.
46978Usually this means the macro was only invoked conditionally." >&2;}
46979 { (exit 1); exit 1; }; }
46980fi
46981if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
46982 { { $as_echo "$as_me:$LINENO: error: conditional \"JP2_DELEGATE\" was never defined.
46983Usually this means the macro was only invoked conditionally." >&5
46984$as_echo "$as_me: error: conditional \"JP2_DELEGATE\" was never defined.
46985Usually this means the macro was only invoked conditionally." >&2;}
46986 { (exit 1); exit 1; }; }
46987fi
46988if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
46989 { { $as_echo "$as_me:$LINENO: error: conditional \"LCMS_DELEGATE\" was never defined.
46990Usually this means the macro was only invoked conditionally." >&5
46991$as_echo "$as_me: error: conditional \"LCMS_DELEGATE\" was never defined.
46992Usually this means the macro was only invoked conditionally." >&2;}
46993 { (exit 1); exit 1; }; }
46994fi
46995if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
46996 { { $as_echo "$as_me:$LINENO: error: conditional \"LQR_DELEGATE\" was never defined.
46997Usually this means the macro was only invoked conditionally." >&5
46998$as_echo "$as_me: error: conditional \"LQR_DELEGATE\" was never defined.
46999Usually this means the macro was only invoked conditionally." >&2;}
47000 { (exit 1); exit 1; }; }
47001fi
47002if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
47003 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENEXR_DELEGATE\" was never defined.
47004Usually this means the macro was only invoked conditionally." >&5
47005$as_echo "$as_me: error: conditional \"OPENEXR_DELEGATE\" was never defined.
47006Usually this means the macro was only invoked conditionally." >&2;}
47007 { (exit 1); exit 1; }; }
47008fi
47009if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
47010 { { $as_echo "$as_me:$LINENO: error: conditional \"PNG_DELEGATE\" was never defined.
47011Usually this means the macro was only invoked conditionally." >&5
47012$as_echo "$as_me: error: conditional \"PNG_DELEGATE\" was never defined.
47013Usually this means the macro was only invoked conditionally." >&2;}
47014 { (exit 1); exit 1; }; }
47015fi
47016if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
47017 { { $as_echo "$as_me:$LINENO: error: conditional \"RSVG_DELEGATE\" was never defined.
47018Usually this means the macro was only invoked conditionally." >&5
47019$as_echo "$as_me: error: conditional \"RSVG_DELEGATE\" was never defined.
47020Usually this means the macro was only invoked conditionally." >&2;}
47021 { (exit 1); exit 1; }; }
47022fi
47023if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
47024 { { $as_echo "$as_me:$LINENO: error: conditional \"CAIRO_DELEGATE\" was never defined.
47025Usually this means the macro was only invoked conditionally." >&5
47026$as_echo "$as_me: error: conditional \"CAIRO_DELEGATE\" was never defined.
47027Usually this means the macro was only invoked conditionally." >&2;}
47028 { (exit 1); exit 1; }; }
47029fi
47030if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
47031 { { $as_echo "$as_me:$LINENO: error: conditional \"TIFF_DELEGATE\" was never defined.
47032Usually this means the macro was only invoked conditionally." >&5
47033$as_echo "$as_me: error: conditional \"TIFF_DELEGATE\" was never defined.
47034Usually this means the macro was only invoked conditionally." >&2;}
47035 { (exit 1); exit 1; }; }
47036fi
47037if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
47038 { { $as_echo "$as_me:$LINENO: error: conditional \"WMF_DELEGATE\" was never defined.
47039Usually this means the macro was only invoked conditionally." >&5
47040$as_echo "$as_me: error: conditional \"WMF_DELEGATE\" was never defined.
47041Usually this means the macro was only invoked conditionally." >&2;}
47042 { (exit 1); exit 1; }; }
47043fi
47044if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
47045 { { $as_echo "$as_me:$LINENO: error: conditional \"XML_DELEGATE\" was never defined.
47046Usually this means the macro was only invoked conditionally." >&5
47047$as_echo "$as_me: error: conditional \"XML_DELEGATE\" was never defined.
47048Usually this means the macro was only invoked conditionally." >&2;}
47049 { (exit 1); exit 1; }; }
47050fi
47051if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
47052 { { $as_echo "$as_me:$LINENO: error: conditional \"RPM_DELEGATE\" was never defined.
47053Usually this means the macro was only invoked conditionally." >&5
47054$as_echo "$as_me: error: conditional \"RPM_DELEGATE\" was never defined.
47055Usually this means the macro was only invoked conditionally." >&2;}
47056 { (exit 1); exit 1; }; }
47057fi
47058if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
47059 { { $as_echo "$as_me:$LINENO: error: conditional \"P7ZIP_DELEGATE\" was never defined.
47060Usually this means the macro was only invoked conditionally." >&5
47061$as_echo "$as_me: error: conditional \"P7ZIP_DELEGATE\" was never defined.
47062Usually this means the macro was only invoked conditionally." >&2;}
47063 { (exit 1); exit 1; }; }
47064fi
47065if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
47066 { { $as_echo "$as_me:$LINENO: error: conditional \"ZIP_DELEGATE\" was never defined.
47067Usually this means the macro was only invoked conditionally." >&5
47068$as_echo "$as_me: error: conditional \"ZIP_DELEGATE\" was never defined.
47069Usually this means the macro was only invoked conditionally." >&2;}
47070 { (exit 1); exit 1; }; }
47071fi
47072if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
47073 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
47074Usually this means the macro was only invoked conditionally." >&5
47075$as_echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
47076Usually this means the macro was only invoked conditionally." >&2;}
47077 { (exit 1); exit 1; }; }
47078fi
47079if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
47080 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_STATIC\" was never defined.
47081Usually this means the macro was only invoked conditionally." >&5
47082$as_echo "$as_me: error: conditional \"WITH_PERL_STATIC\" was never defined.
47083Usually this means the macro was only invoked conditionally." >&2;}
47084 { (exit 1); exit 1; }; }
47085fi
47086if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
47087 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
47088Usually this means the macro was only invoked conditionally." >&5
47089$as_echo "$as_me: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
47090Usually this means the macro was only invoked conditionally." >&2;}
47091 { (exit 1); exit 1; }; }
47092fi
47093
47094: ${CONFIG_STATUS=./config.status}
47095ac_write_fail=0
47096ac_clean_files_save=$ac_clean_files
47097ac_clean_files="$ac_clean_files $CONFIG_STATUS"
47098{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
47099$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
47100cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47101#! $SHELL
47102# Generated by $as_me.
47103# Run this file to recreate the current configuration.
47104# Compiler output produced by configure, useful for debugging
47105# configure, is in config.log if it exists.
47106
47107debug=false
47108ac_cs_recheck=false
47109ac_cs_silent=false
47110SHELL=\${CONFIG_SHELL-$SHELL}
47111_ACEOF
47112
47113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47114## --------------------- ##
47115## M4sh Initialization. ##
47116## --------------------- ##
47117
47118# Be more Bourne compatible
47119DUALCASE=1; export DUALCASE # for MKS sh
47120if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
47121 emulate sh
47122 NULLCMD=:
47123 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47124 # is contrary to our usage. Disable this feature.
47125 alias -g '${1+"$@"}'='"$@"'
47126 setopt NO_GLOB_SUBST
47127else
47128 case `(set -o) 2>/dev/null` in
47129 *posix*) set -o posix ;;
47130esac
47131
47132fi
47133
47134
47135
47136
47137# PATH needs CR
47138# Avoid depending upon Character Ranges.
47139as_cr_letters='abcdefghijklmnopqrstuvwxyz'
47140as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47141as_cr_Letters=$as_cr_letters$as_cr_LETTERS
47142as_cr_digits='0123456789'
47143as_cr_alnum=$as_cr_Letters$as_cr_digits
47144
47145as_nl='
47146'
47147export as_nl
47148# Printing a long string crashes Solaris 7 /usr/bin/printf.
47149as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47150as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47151as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47152if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47153 as_echo='printf %s\n'
47154 as_echo_n='printf %s'
47155else
47156 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
47157 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
47158 as_echo_n='/usr/ucb/echo -n'
47159 else
47160 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
47161 as_echo_n_body='eval
47162 arg=$1;
47163 case $arg in
47164 *"$as_nl"*)
47165 expr "X$arg" : "X\\(.*\\)$as_nl";
47166 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
47167 esac;
47168 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
47169 '
47170 export as_echo_n_body
47171 as_echo_n='sh -c $as_echo_n_body as_echo'
47172 fi
47173 export as_echo_body
47174 as_echo='sh -c $as_echo_body as_echo'
47175fi
47176
47177# The user is always right.
47178if test "${PATH_SEPARATOR+set}" != set; then
47179 PATH_SEPARATOR=:
47180 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
47181 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
47182 PATH_SEPARATOR=';'
47183 }
47184fi
47185
47186# Support unset when possible.
47187if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
47188 as_unset=unset
47189else
47190 as_unset=false
47191fi
47192
47193
47194# IFS
47195# We need space, tab and new line, in precisely that order. Quoting is
47196# there to prevent editors from complaining about space-tab.
47197# (If _AS_PATH_WALK were called with IFS unset, it would disable word
47198# splitting by setting IFS to empty value.)
47199IFS=" "" $as_nl"
47200
47201# Find who we are. Look in the path if we contain no directory separator.
47202case $0 in
47203 *[\\/]* ) as_myself=$0 ;;
47204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47205for as_dir in $PATH
47206do
47207 IFS=$as_save_IFS
47208 test -z "$as_dir" && as_dir=.
47209 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
47210done
47211IFS=$as_save_IFS
47212
47213 ;;
47214esac
47215# We did not find ourselves, most probably we were run as `sh COMMAND'
47216# in which case we are not to be found in the path.
47217if test "x$as_myself" = x; then
47218 as_myself=$0
47219fi
47220if test ! -f "$as_myself"; then
47221 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
47222 { (exit 1); exit 1; }
47223fi
47224
47225# Work around bugs in pre-3.0 UWIN ksh.
47226for as_var in ENV MAIL MAILPATH
47227do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
47228done
47229PS1='$ '
47230PS2='> '
47231PS4='+ '
47232
47233# NLS nuisances.
47234LC_ALL=C
47235export LC_ALL
47236LANGUAGE=C
47237export LANGUAGE
47238
47239# Required to use basename.
47240if expr a : '\(a\)' >/dev/null 2>&1 &&
47241 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47242 as_expr=expr
47243else
47244 as_expr=false
47245fi
47246
47247if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47248 as_basename=basename
47249else
47250 as_basename=false
47251fi
47252
47253
47254# Name of the executable.
47255as_me=`$as_basename -- "$0" ||
47256$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
47257 X"$0" : 'X\(//\)$' \| \
47258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47259$as_echo X/"$0" |
47260 sed '/^.*\/\([^/][^/]*\)\/*$/{
47261 s//\1/
47262 q
47263 }
47264 /^X\/\(\/\/\)$/{
47265 s//\1/
47266 q
47267 }
47268 /^X\/\(\/\).*/{
47269 s//\1/
47270 q
47271 }
47272 s/.*/./; q'`
47273
47274# CDPATH.
47275$as_unset CDPATH
47276
47277
47278
47279 as_lineno_1=$LINENO
47280 as_lineno_2=$LINENO
47281 test "x$as_lineno_1" != "x$as_lineno_2" &&
47282 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
47283
47284 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
47285 # uniformly replaced by the line number. The first 'sed' inserts a
47286 # line-number line after each line using $LINENO; the second 'sed'
47287 # does the real work. The second script uses 'N' to pair each
47288 # line-number line with the line containing $LINENO, and appends
47289 # trailing '-' during substitution so that $LINENO is not a special
47290 # case at line end.
47291 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
47292 # scripts with optimization help from Paolo Bonzini. Blame Lee
47293 # E. McMahon (1931-1989) for sed's syntax. :-)
47294 sed -n '
47295 p
47296 /[$]LINENO/=
47297 ' <$as_myself |
47298 sed '
47299 s/[$]LINENO.*/&-/
47300 t lineno
47301 b
47302 :lineno
47303 N
47304 :loop
47305 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
47306 t loop
47307 s/-\n.*//
47308 ' >$as_me.lineno &&
47309 chmod +x "$as_me.lineno" ||
47310 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
47311 { (exit 1); exit 1; }; }
47312
47313 # Don't try to exec as it changes $[0], causing all sort of problems
47314 # (the dirname of $[0] is not the place where we might find the
47315 # original and so on. Autoconf is especially sensitive to this).
47316 . "./$as_me.lineno"
47317 # Exit status is that of the last command.
47318 exit
47319}
47320
47321
47322if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
47323 as_dirname=dirname
47324else
47325 as_dirname=false
47326fi
47327
47328ECHO_C= ECHO_N= ECHO_T=
47329case `echo -n x` in
47330-n*)
47331 case `echo 'x\c'` in
47332 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
47333 *) ECHO_C='\c';;
47334 esac;;
47335*)
47336 ECHO_N='-n';;
47337esac
47338if expr a : '\(a\)' >/dev/null 2>&1 &&
47339 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47340 as_expr=expr
47341else
47342 as_expr=false
47343fi
47344
47345rm -f conf$$ conf$$.exe conf$$.file
47346if test -d conf$$.dir; then
47347 rm -f conf$$.dir/conf$$.file
47348else
47349 rm -f conf$$.dir
47350 mkdir conf$$.dir 2>/dev/null
47351fi
47352if (echo >conf$$.file) 2>/dev/null; then
47353 if ln -s conf$$.file conf$$ 2>/dev/null; then
47354 as_ln_s='ln -s'
47355 # ... but there are two gotchas:
47356 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
47357 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
47358 # In both cases, we have to default to `cp -p'.
47359 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
47360 as_ln_s='cp -p'
47361 elif ln conf$$.file conf$$ 2>/dev/null; then
47362 as_ln_s=ln
47363 else
47364 as_ln_s='cp -p'
47365 fi
47366else
47367 as_ln_s='cp -p'
47368fi
47369rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
47370rmdir conf$$.dir 2>/dev/null
47371
47372if mkdir -p . 2>/dev/null; then
47373 as_mkdir_p=:
47374else
47375 test -d ./-p && rmdir ./-p
47376 as_mkdir_p=false
47377fi
47378
47379if test -x / >/dev/null 2>&1; then
47380 as_test_x='test -x'
47381else
47382 if ls -dL / >/dev/null 2>&1; then
47383 as_ls_L_option=L
47384 else
47385 as_ls_L_option=
47386 fi
47387 as_test_x='
47388 eval sh -c '\''
47389 if test -d "$1"; then
47390 test -d "$1/.";
47391 else
47392 case $1 in
47393 -*)set "./$1";;
47394 esac;
47395 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
47396 ???[sx]*):;;*)false;;esac;fi
47397 '\'' sh
47398 '
47399fi
47400as_executable_p=$as_test_x
47401
47402# Sed expression to map a string onto a valid CPP name.
47403as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47404
47405# Sed expression to map a string onto a valid variable name.
47406as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47407
47408
47409exec 6>&1
47410
47411# Save the log message, to keep $[0] and so on meaningful, and to
47412# report actual input values of CONFIG_FILES etc. instead of their
47413# values after options handling.
47414ac_log="
cristyd934d102009-10-10 12:55:13 +000047415This file was extended by ImageMagick $as_me 6.5.7, which was
cristy3ed852e2009-09-05 21:47:34 +000047416generated by GNU Autoconf 2.63. Invocation command line was
47417
47418 CONFIG_FILES = $CONFIG_FILES
47419 CONFIG_HEADERS = $CONFIG_HEADERS
47420 CONFIG_LINKS = $CONFIG_LINKS
47421 CONFIG_COMMANDS = $CONFIG_COMMANDS
47422 $ $0 $@
47423
47424on `(hostname || uname -n) 2>/dev/null | sed 1q`
47425"
47426
47427_ACEOF
47428
47429case $ac_config_files in *"
47430"*) set x $ac_config_files; shift; ac_config_files=$*;;
47431esac
47432
47433case $ac_config_headers in *"
47434"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
47435esac
47436
47437
47438cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47439# Files that config.status was made for.
47440config_files="$ac_config_files"
47441config_headers="$ac_config_headers"
47442config_commands="$ac_config_commands"
47443
47444_ACEOF
47445
47446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47447ac_cs_usage="\
47448\`$as_me' instantiates files from templates according to the
47449current configuration.
47450
47451Usage: $0 [OPTION]... [FILE]...
47452
47453 -h, --help print this help, then exit
47454 -V, --version print version number and configuration settings, then exit
47455 -q, --quiet, --silent
47456 do not print progress messages
47457 -d, --debug don't remove temporary files
47458 --recheck update $as_me by reconfiguring in the same conditions
47459 --file=FILE[:TEMPLATE]
47460 instantiate the configuration file FILE
47461 --header=FILE[:TEMPLATE]
47462 instantiate the configuration header FILE
47463
47464Configuration files:
47465$config_files
47466
47467Configuration headers:
47468$config_headers
47469
47470Configuration commands:
47471$config_commands
47472
47473Report bugs to <bug-autoconf@gnu.org>."
47474
47475_ACEOF
47476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47477ac_cs_version="\\
cristyd934d102009-10-10 12:55:13 +000047478ImageMagick config.status 6.5.7
cristy3ed852e2009-09-05 21:47:34 +000047479configured by $0, generated by GNU Autoconf 2.63,
47480 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
47481
47482Copyright (C) 2008 Free Software Foundation, Inc.
47483This config.status script is free software; the Free Software Foundation
47484gives unlimited permission to copy, distribute and modify it."
47485
47486ac_pwd='$ac_pwd'
47487srcdir='$srcdir'
47488INSTALL='$INSTALL'
47489MKDIR_P='$MKDIR_P'
47490AWK='$AWK'
47491test -n "\$AWK" || AWK=awk
47492_ACEOF
47493
47494cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47495# The default lists apply if the user does not specify any file.
47496ac_need_defaults=:
47497while test $# != 0
47498do
47499 case $1 in
47500 --*=*)
47501 ac_option=`expr "X$1" : 'X\([^=]*\)='`
47502 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
47503 ac_shift=:
47504 ;;
47505 *)
47506 ac_option=$1
47507 ac_optarg=$2
47508 ac_shift=shift
47509 ;;
47510 esac
47511
47512 case $ac_option in
47513 # Handling of the options.
47514 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47515 ac_cs_recheck=: ;;
47516 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
47517 $as_echo "$ac_cs_version"; exit ;;
47518 --debug | --debu | --deb | --de | --d | -d )
47519 debug=: ;;
47520 --file | --fil | --fi | --f )
47521 $ac_shift
47522 case $ac_optarg in
47523 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47524 esac
47525 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
47526 ac_need_defaults=false;;
47527 --header | --heade | --head | --hea )
47528 $ac_shift
47529 case $ac_optarg in
47530 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47531 esac
47532 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
47533 ac_need_defaults=false;;
47534 --he | --h)
47535 # Conflict between --help and --header
47536 { $as_echo "$as_me: error: ambiguous option: $1
47537Try \`$0 --help' for more information." >&2
47538 { (exit 1); exit 1; }; };;
47539 --help | --hel | -h )
47540 $as_echo "$ac_cs_usage"; exit ;;
47541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47542 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47543 ac_cs_silent=: ;;
47544
47545 # This is an error.
47546 -*) { $as_echo "$as_me: error: unrecognized option: $1
47547Try \`$0 --help' for more information." >&2
47548 { (exit 1); exit 1; }; } ;;
47549
47550 *) ac_config_targets="$ac_config_targets $1"
47551 ac_need_defaults=false ;;
47552
47553 esac
47554 shift
47555done
47556
47557ac_configure_extra_args=
47558
47559if $ac_cs_silent; then
47560 exec 6>/dev/null
47561 ac_configure_extra_args="$ac_configure_extra_args --silent"
47562fi
47563
47564_ACEOF
47565cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47566if \$ac_cs_recheck; then
47567 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47568 shift
47569 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
47570 CONFIG_SHELL='$SHELL'
47571 export CONFIG_SHELL
47572 exec "\$@"
47573fi
47574
47575_ACEOF
47576cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47577exec 5>>config.log
47578{
47579 echo
47580 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47581## Running $as_me. ##
47582_ASBOX
47583 $as_echo "$ac_log"
47584} >&5
47585
47586_ACEOF
47587cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47588#
47589# INIT-COMMANDS
47590#
47591PACKAGE="$PACKAGE"
47592AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
47593
47594
47595# The HP-UX ksh and POSIX shell print the target directory to stdout
47596# if CDPATH is set.
47597(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
47598
47599sed_quote_subst='$sed_quote_subst'
47600double_quote_subst='$double_quote_subst'
47601delay_variable_subst='$delay_variable_subst'
47602SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
47603Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
47604GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
47605EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
47606FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
47607LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
47608macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
47609macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
47610AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
47611DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
47612OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
47613enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
47614enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
47615pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
47616enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
47617host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
47618host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
47619host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
47620build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
47621build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
47622build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
47623NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
47624LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
47625max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
47626ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
47627exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
47628lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
47629lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
47630lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
47631reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
47632reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47633deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
47634file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
47635AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
47636AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
47637STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
47638RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
47639old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47640old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47641old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47642CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
47643CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
47644compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
47645GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
47646lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
47647lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
47648lt_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"`'
47649lt_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"`'
47650objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
47651SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
47652ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
47653MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
47654lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
47655lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
47656lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
47657lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
47658lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
47659need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
47660DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
47661NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
47662LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
47663OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
47664OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
47665libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
47666shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47667extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47668archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
47669enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
47670export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47671whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47672compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
47673old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47674old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47675archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47676archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47677module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47678module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47679with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
47680allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
47681no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
47682hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47683hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
47684hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
47685hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
47686hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
47687hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
47688hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47689hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
47690inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
47691link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
47692fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
47693always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
47694export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47695exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
47696include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
47697prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47698file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
47699variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
47700need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
47701need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
47702version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
47703runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47704shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47705shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
47706libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
47707library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
47708soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
47709postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47710postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47711finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47712finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
47713hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
47714sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
47715sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
47716hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
47717enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
47718enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
47719enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
47720old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
47721striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
47722compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
47723predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
47724postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
47725predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
47726postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
47727compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
47728LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47729old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47730compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47731GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47732lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47733lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47734lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47735lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47736lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47737archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47738enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47739export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47740whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47741compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47742old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47743old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47744archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47745archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47746module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47747module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47748with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47749allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47750no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47751hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47752hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47753hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47754hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47755hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47756hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47757hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47758hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47759inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47760link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47761fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47762always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47763export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47764exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47765include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47766prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47767file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47768hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47769compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47770predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47771postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47772predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47773postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47774compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47775
47776LTCC='$LTCC'
47777LTCFLAGS='$LTCFLAGS'
47778compiler='$compiler_DEFAULT'
47779
47780# Quote evaled strings.
47781for var in SED \
47782GREP \
47783EGREP \
47784FGREP \
47785LD \
47786NM \
47787LN_S \
47788lt_SP2NL \
47789lt_NL2SP \
47790reload_flag \
47791deplibs_check_method \
47792file_magic_cmd \
47793AR \
47794AR_FLAGS \
47795STRIP \
47796RANLIB \
47797CC \
47798CFLAGS \
47799compiler \
47800lt_cv_sys_global_symbol_pipe \
47801lt_cv_sys_global_symbol_to_cdecl \
47802lt_cv_sys_global_symbol_to_c_name_address \
47803lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
47804SHELL \
47805ECHO \
47806lt_prog_compiler_no_builtin_flag \
47807lt_prog_compiler_wl \
47808lt_prog_compiler_pic \
47809lt_prog_compiler_static \
47810lt_cv_prog_compiler_c_o \
47811need_locks \
47812DSYMUTIL \
47813NMEDIT \
47814LIPO \
47815OTOOL \
47816OTOOL64 \
47817shrext_cmds \
47818export_dynamic_flag_spec \
47819whole_archive_flag_spec \
47820compiler_needs_object \
47821with_gnu_ld \
47822allow_undefined_flag \
47823no_undefined_flag \
47824hardcode_libdir_flag_spec \
47825hardcode_libdir_flag_spec_ld \
47826hardcode_libdir_separator \
47827fix_srcfile_path \
47828exclude_expsyms \
47829include_expsyms \
47830file_list_spec \
47831variables_saved_for_relink \
47832libname_spec \
47833library_names_spec \
47834soname_spec \
47835finish_eval \
47836old_striplib \
47837striplib \
47838compiler_lib_search_dirs \
47839predep_objects \
47840postdep_objects \
47841predeps \
47842postdeps \
47843compiler_lib_search_path \
47844LD_CXX \
47845compiler_CXX \
47846lt_prog_compiler_no_builtin_flag_CXX \
47847lt_prog_compiler_wl_CXX \
47848lt_prog_compiler_pic_CXX \
47849lt_prog_compiler_static_CXX \
47850lt_cv_prog_compiler_c_o_CXX \
47851export_dynamic_flag_spec_CXX \
47852whole_archive_flag_spec_CXX \
47853compiler_needs_object_CXX \
47854with_gnu_ld_CXX \
47855allow_undefined_flag_CXX \
47856no_undefined_flag_CXX \
47857hardcode_libdir_flag_spec_CXX \
47858hardcode_libdir_flag_spec_ld_CXX \
47859hardcode_libdir_separator_CXX \
47860fix_srcfile_path_CXX \
47861exclude_expsyms_CXX \
47862include_expsyms_CXX \
47863file_list_spec_CXX \
47864compiler_lib_search_dirs_CXX \
47865predep_objects_CXX \
47866postdep_objects_CXX \
47867predeps_CXX \
47868postdeps_CXX \
47869compiler_lib_search_path_CXX; do
47870 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47871 *[\\\\\\\`\\"\\\$]*)
47872 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
47873 ;;
47874 *)
47875 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47876 ;;
47877 esac
47878done
47879
47880# Double-quote double-evaled strings.
47881for var in reload_cmds \
47882old_postinstall_cmds \
47883old_postuninstall_cmds \
47884old_archive_cmds \
47885extract_expsyms_cmds \
47886old_archive_from_new_cmds \
47887old_archive_from_expsyms_cmds \
47888archive_cmds \
47889archive_expsym_cmds \
47890module_cmds \
47891module_expsym_cmds \
47892export_symbols_cmds \
47893prelink_cmds \
47894postinstall_cmds \
47895postuninstall_cmds \
47896finish_cmds \
47897sys_lib_search_path_spec \
47898sys_lib_dlsearch_path_spec \
47899old_archive_cmds_CXX \
47900old_archive_from_new_cmds_CXX \
47901old_archive_from_expsyms_cmds_CXX \
47902archive_cmds_CXX \
47903archive_expsym_cmds_CXX \
47904module_cmds_CXX \
47905module_expsym_cmds_CXX \
47906export_symbols_cmds_CXX \
47907prelink_cmds_CXX; do
47908 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47909 *[\\\\\\\`\\"\\\$]*)
47910 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
47911 ;;
47912 *)
47913 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47914 ;;
47915 esac
47916done
47917
47918# Fix-up fallback echo if it was mangled by the above quoting rules.
47919case \$lt_ECHO in
47920*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
47921 ;;
47922esac
47923
47924ac_aux_dir='$ac_aux_dir'
47925xsi_shell='$xsi_shell'
47926lt_shell_append='$lt_shell_append'
47927
47928# See if we are running on zsh, and set the options which allow our
47929# commands through without removal of \ escapes INIT.
47930if test -n "\${ZSH_VERSION+set}" ; then
47931 setopt NO_GLOB_SUBST
47932fi
47933
47934
47935 PACKAGE='$PACKAGE'
47936 VERSION='$VERSION'
47937 TIMESTAMP='$TIMESTAMP'
47938 RM='$RM'
47939 ofile='$ofile'
47940
47941
47942
47943
47944
47945
47946_ACEOF
47947
47948cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47949
47950# Handling of arguments.
47951for ac_config_target in $ac_config_targets
47952do
47953 case $ac_config_target in
47954 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
47955 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
47956 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
47957 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
47958 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
47959 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
47960 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
47961 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
47962 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
47963 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
47964 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
47965 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
47966 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
47967 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
47968 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
47969 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
47970 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
47971 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
47972 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
47973 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47974 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
47975 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
47976 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
47977 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
47978 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
47979 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
47980 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
47981 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
47982 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
47983 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
47984 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
47985 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
47986 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
47987 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
47988 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
47989 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
47990 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
47991 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
47992 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
47993 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
47994 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
47995 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
47996 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
47997 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
47998 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
47999 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
48000 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
48001 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
48002 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
48003
48004 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
48005$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
48006 { (exit 1); exit 1; }; };;
48007 esac
48008done
48009
48010
48011# If the user did not use the arguments to specify the items to instantiate,
48012# then the envvar interface is used. Set only those that are not.
48013# We use the long form for the default assignment because of an extremely
48014# bizarre bug on SunOS 4.1.3.
48015if $ac_need_defaults; then
48016 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48017 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48018 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48019fi
48020
48021# Have a temporary directory for convenience. Make it in the build tree
48022# simply because there is no reason against having it here, and in addition,
48023# creating and moving files from /tmp can sometimes cause problems.
48024# Hook for its removal unless debugging.
48025# Note that there is a small window in which the directory will not be cleaned:
48026# after its creation but before its name has been assigned to `$tmp'.
48027$debug ||
48028{
48029 tmp=
48030 trap 'exit_status=$?
48031 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
48032' 0
48033 trap '{ (exit 1); exit 1; }' 1 2 13 15
48034}
48035# Create a (secure) tmp directory for tmp files.
48036
48037{
48038 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
48039 test -n "$tmp" && test -d "$tmp"
48040} ||
48041{
48042 tmp=./conf$$-$RANDOM
48043 (umask 077 && mkdir "$tmp")
48044} ||
48045{
48046 $as_echo "$as_me: cannot create a temporary directory in ." >&2
48047 { (exit 1); exit 1; }
48048}
48049
48050# Set up the scripts for CONFIG_FILES section.
48051# No need to generate them if there are no CONFIG_FILES.
48052# This happens for instance with `./config.status config.h'.
48053if test -n "$CONFIG_FILES"; then
48054
48055
48056ac_cr=' '
48057ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
48058if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
48059 ac_cs_awk_cr='\\r'
48060else
48061 ac_cs_awk_cr=$ac_cr
48062fi
48063
48064echo 'BEGIN {' >"$tmp/subs1.awk" &&
48065_ACEOF
48066
48067
48068{
48069 echo "cat >conf$$subs.awk <<_ACEOF" &&
48070 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
48071 echo "_ACEOF"
48072} >conf$$subs.sh ||
48073 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48074$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48075 { (exit 1); exit 1; }; }
48076ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
48077ac_delim='%!_!# '
48078for ac_last_try in false false false false false :; do
48079 . ./conf$$subs.sh ||
48080 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48081$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48082 { (exit 1); exit 1; }; }
48083
48084 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
48085 if test $ac_delim_n = $ac_delim_num; then
48086 break
48087 elif $ac_last_try; then
48088 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48089$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48090 { (exit 1); exit 1; }; }
48091 else
48092 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48093 fi
48094done
48095rm -f conf$$subs.sh
48096
48097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48098cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
48099_ACEOF
48100sed -n '
48101h
48102s/^/S["/; s/!.*/"]=/
48103p
48104g
48105s/^[^!]*!//
48106:repl
48107t repl
48108s/'"$ac_delim"'$//
48109t delim
48110:nl
48111h
48112s/\(.\{148\}\).*/\1/
48113t more1
48114s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
48115p
48116n
48117b repl
48118:more1
48119s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48120p
48121g
48122s/.\{148\}//
48123t nl
48124:delim
48125h
48126s/\(.\{148\}\).*/\1/
48127t more2
48128s/["\\]/\\&/g; s/^/"/; s/$/"/
48129p
48130b
48131:more2
48132s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48133p
48134g
48135s/.\{148\}//
48136t delim
48137' <conf$$subs.awk | sed '
48138/^[^""]/{
48139 N
48140 s/\n//
48141}
48142' >>$CONFIG_STATUS || ac_write_fail=1
48143rm -f conf$$subs.awk
48144cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48145_ACAWK
48146cat >>"\$tmp/subs1.awk" <<_ACAWK &&
48147 for (key in S) S_is_set[key] = 1
48148 FS = ""
48149
48150}
48151{
48152 line = $ 0
48153 nfields = split(line, field, "@")
48154 substed = 0
48155 len = length(field[1])
48156 for (i = 2; i < nfields; i++) {
48157 key = field[i]
48158 keylen = length(key)
48159 if (S_is_set[key]) {
48160 value = S[key]
48161 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
48162 len += length(value) + length(field[++i])
48163 substed = 1
48164 } else
48165 len += 1 + keylen
48166 }
48167
48168 print line
48169}
48170
48171_ACAWK
48172_ACEOF
48173cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48174if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
48175 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
48176else
48177 cat
48178fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
48179 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
48180$as_echo "$as_me: error: could not setup config files machinery" >&2;}
48181 { (exit 1); exit 1; }; }
48182_ACEOF
48183
48184# VPATH may cause trouble with some makes, so we remove $(srcdir),
48185# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48186# trailing colons and then remove the whole line if VPATH becomes empty
48187# (actually we leave an empty line to preserve line numbers).
48188if test "x$srcdir" = x.; then
48189 ac_vpsub='/^[ ]*VPATH[ ]*=/{
48190s/:*\$(srcdir):*/:/
48191s/:*\${srcdir}:*/:/
48192s/:*@srcdir@:*/:/
48193s/^\([^=]*=[ ]*\):*/\1/
48194s/:*$//
48195s/^[^=]*=[ ]*$//
48196}'
48197fi
48198
48199cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48200fi # test -n "$CONFIG_FILES"
48201
48202# Set up the scripts for CONFIG_HEADERS section.
48203# No need to generate them if there are no CONFIG_HEADERS.
48204# This happens for instance with `./config.status Makefile'.
48205if test -n "$CONFIG_HEADERS"; then
48206cat >"$tmp/defines.awk" <<\_ACAWK ||
48207BEGIN {
48208_ACEOF
48209
48210# Transform confdefs.h into an awk script `defines.awk', embedded as
48211# here-document in config.status, that substitutes the proper values into
48212# config.h.in to produce config.h.
48213
48214# Create a delimiter string that does not exist in confdefs.h, to ease
48215# handling of long lines.
48216ac_delim='%!_!# '
48217for ac_last_try in false false :; do
48218 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
48219 if test -z "$ac_t"; then
48220 break
48221 elif $ac_last_try; then
48222 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
48223$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
48224 { (exit 1); exit 1; }; }
48225 else
48226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48227 fi
48228done
48229
48230# For the awk script, D is an array of macro values keyed by name,
48231# likewise P contains macro parameters if any. Preserve backslash
48232# newline sequences.
48233
48234ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
48235sed -n '
48236s/.\{148\}/&'"$ac_delim"'/g
48237t rset
48238:rset
48239s/^[ ]*#[ ]*define[ ][ ]*/ /
48240t def
48241d
48242:def
48243s/\\$//
48244t bsnl
48245s/["\\]/\\&/g
48246s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48247D["\1"]=" \3"/p
48248s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
48249d
48250:bsnl
48251s/["\\]/\\&/g
48252s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48253D["\1"]=" \3\\\\\\n"\\/p
48254t cont
48255s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
48256t cont
48257d
48258:cont
48259n
48260s/.\{148\}/&'"$ac_delim"'/g
48261t clear
48262:clear
48263s/\\$//
48264t bsnlc
48265s/["\\]/\\&/g; s/^/"/; s/$/"/p
48266d
48267:bsnlc
48268s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
48269b cont
48270' <confdefs.h | sed '
48271s/'"$ac_delim"'/"\\\
48272"/g' >>$CONFIG_STATUS || ac_write_fail=1
48273
48274cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48275 for (key in D) D_is_set[key] = 1
48276 FS = ""
48277}
48278/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
48279 line = \$ 0
48280 split(line, arg, " ")
48281 if (arg[1] == "#") {
48282 defundef = arg[2]
48283 mac1 = arg[3]
48284 } else {
48285 defundef = substr(arg[1], 2)
48286 mac1 = arg[2]
48287 }
48288 split(mac1, mac2, "(") #)
48289 macro = mac2[1]
48290 prefix = substr(line, 1, index(line, defundef) - 1)
48291 if (D_is_set[macro]) {
48292 # Preserve the white space surrounding the "#".
48293 print prefix "define", macro P[macro] D[macro]
48294 next
48295 } else {
48296 # Replace #undef with comments. This is necessary, for example,
48297 # in the case of _POSIX_SOURCE, which is predefined and required
48298 # on some systems where configure will not decide to define it.
48299 if (defundef == "undef") {
48300 print "/*", prefix defundef, macro, "*/"
48301 next
48302 }
48303 }
48304}
48305{ print }
48306_ACAWK
48307_ACEOF
48308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48309 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
48310$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
48311 { (exit 1); exit 1; }; }
48312fi # test -n "$CONFIG_HEADERS"
48313
48314
48315eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
48316shift
48317for ac_tag
48318do
48319 case $ac_tag in
48320 :[FHLC]) ac_mode=$ac_tag; continue;;
48321 esac
48322 case $ac_mode$ac_tag in
48323 :[FHL]*:*);;
48324 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
48325$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
48326 { (exit 1); exit 1; }; };;
48327 :[FH]-) ac_tag=-:-;;
48328 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
48329 esac
48330 ac_save_IFS=$IFS
48331 IFS=:
48332 set x $ac_tag
48333 IFS=$ac_save_IFS
48334 shift
48335 ac_file=$1
48336 shift
48337
48338 case $ac_mode in
48339 :L) ac_source=$1;;
48340 :[FH])
48341 ac_file_inputs=
48342 for ac_f
48343 do
48344 case $ac_f in
48345 -) ac_f="$tmp/stdin";;
48346 *) # Look for the file first in the build tree, then in the source tree
48347 # (if the path is not absolute). The absolute path cannot be DOS-style,
48348 # because $ac_f cannot contain `:'.
48349 test -f "$ac_f" ||
48350 case $ac_f in
48351 [\\/$]*) false;;
48352 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
48353 esac ||
48354 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
48355$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
48356 { (exit 1); exit 1; }; };;
48357 esac
48358 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
48359 ac_file_inputs="$ac_file_inputs '$ac_f'"
48360 done
48361
48362 # Let's still pretend it is `configure' which instantiates (i.e., don't
48363 # use $as_me), people would be surprised to read:
48364 # /* config.h. Generated by config.status. */
48365 configure_input='Generated from '`
48366 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
48367 `' by configure.'
48368 if test x"$ac_file" != x-; then
48369 configure_input="$ac_file. $configure_input"
48370 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
48371$as_echo "$as_me: creating $ac_file" >&6;}
48372 fi
48373 # Neutralize special characters interpreted by sed in replacement strings.
48374 case $configure_input in #(
48375 *\&* | *\|* | *\\* )
48376 ac_sed_conf_input=`$as_echo "$configure_input" |
48377 sed 's/[\\\\&|]/\\\\&/g'`;; #(
48378 *) ac_sed_conf_input=$configure_input;;
48379 esac
48380
48381 case $ac_tag in
48382 *:-:* | *:-) cat >"$tmp/stdin" \
48383 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48384$as_echo "$as_me: error: could not create $ac_file" >&2;}
48385 { (exit 1); exit 1; }; } ;;
48386 esac
48387 ;;
48388 esac
48389
48390 ac_dir=`$as_dirname -- "$ac_file" ||
48391$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48392 X"$ac_file" : 'X\(//\)[^/]' \| \
48393 X"$ac_file" : 'X\(//\)$' \| \
48394 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
48395$as_echo X"$ac_file" |
48396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48397 s//\1/
48398 q
48399 }
48400 /^X\(\/\/\)[^/].*/{
48401 s//\1/
48402 q
48403 }
48404 /^X\(\/\/\)$/{
48405 s//\1/
48406 q
48407 }
48408 /^X\(\/\).*/{
48409 s//\1/
48410 q
48411 }
48412 s/.*/./; q'`
48413 { as_dir="$ac_dir"
48414 case $as_dir in #(
48415 -*) as_dir=./$as_dir;;
48416 esac
48417 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48418 as_dirs=
48419 while :; do
48420 case $as_dir in #(
48421 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48422 *) as_qdir=$as_dir;;
48423 esac
48424 as_dirs="'$as_qdir' $as_dirs"
48425 as_dir=`$as_dirname -- "$as_dir" ||
48426$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48427 X"$as_dir" : 'X\(//\)[^/]' \| \
48428 X"$as_dir" : 'X\(//\)$' \| \
48429 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48430$as_echo X"$as_dir" |
48431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48432 s//\1/
48433 q
48434 }
48435 /^X\(\/\/\)[^/].*/{
48436 s//\1/
48437 q
48438 }
48439 /^X\(\/\/\)$/{
48440 s//\1/
48441 q
48442 }
48443 /^X\(\/\).*/{
48444 s//\1/
48445 q
48446 }
48447 s/.*/./; q'`
48448 test -d "$as_dir" && break
48449 done
48450 test -z "$as_dirs" || eval "mkdir $as_dirs"
48451 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48452$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48453 { (exit 1); exit 1; }; }; }
48454 ac_builddir=.
48455
48456case "$ac_dir" in
48457.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
48458*)
48459 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
48460 # A ".." for each directory in $ac_dir_suffix.
48461 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
48462 case $ac_top_builddir_sub in
48463 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
48464 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
48465 esac ;;
48466esac
48467ac_abs_top_builddir=$ac_pwd
48468ac_abs_builddir=$ac_pwd$ac_dir_suffix
48469# for backward compatibility:
48470ac_top_builddir=$ac_top_build_prefix
48471
48472case $srcdir in
48473 .) # We are building in place.
48474 ac_srcdir=.
48475 ac_top_srcdir=$ac_top_builddir_sub
48476 ac_abs_top_srcdir=$ac_pwd ;;
48477 [\\/]* | ?:[\\/]* ) # Absolute name.
48478 ac_srcdir=$srcdir$ac_dir_suffix;
48479 ac_top_srcdir=$srcdir
48480 ac_abs_top_srcdir=$srcdir ;;
48481 *) # Relative name.
48482 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
48483 ac_top_srcdir=$ac_top_build_prefix$srcdir
48484 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
48485esac
48486ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
48487
48488
48489 case $ac_mode in
48490 :F)
48491 #
48492 # CONFIG_FILE
48493 #
48494
48495 case $INSTALL in
48496 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
48497 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
48498 esac
48499 ac_MKDIR_P=$MKDIR_P
48500 case $MKDIR_P in
48501 [\\/$]* | ?:[\\/]* ) ;;
48502 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
48503 esac
48504_ACEOF
48505
48506cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48507# If the template does not know about datarootdir, expand it.
48508# FIXME: This hack should be removed a few years after 2.60.
48509ac_datarootdir_hack=; ac_datarootdir_seen=
48510
48511ac_sed_dataroot='
48512/datarootdir/ {
48513 p
48514 q
48515}
48516/@datadir@/p
48517/@docdir@/p
48518/@infodir@/p
48519/@localedir@/p
48520/@mandir@/p
48521'
48522case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
48523*datarootdir*) ac_datarootdir_seen=yes;;
48524*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
48525 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
48526$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
48527_ACEOF
48528cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48529 ac_datarootdir_hack='
48530 s&@datadir@&$datadir&g
48531 s&@docdir@&$docdir&g
48532 s&@infodir@&$infodir&g
48533 s&@localedir@&$localedir&g
48534 s&@mandir@&$mandir&g
48535 s&\\\${datarootdir}&$datarootdir&g' ;;
48536esac
48537_ACEOF
48538
48539# Neutralize VPATH when `$srcdir' = `.'.
48540# Shell code in configure.ac might set extrasub.
48541# FIXME: do we really want to maintain this feature?
48542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48543ac_sed_extra="$ac_vpsub
48544$extrasub
48545_ACEOF
48546cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48547:t
48548/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
48549s|@configure_input@|$ac_sed_conf_input|;t t
48550s&@top_builddir@&$ac_top_builddir_sub&;t t
48551s&@top_build_prefix@&$ac_top_build_prefix&;t t
48552s&@srcdir@&$ac_srcdir&;t t
48553s&@abs_srcdir@&$ac_abs_srcdir&;t t
48554s&@top_srcdir@&$ac_top_srcdir&;t t
48555s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
48556s&@builddir@&$ac_builddir&;t t
48557s&@abs_builddir@&$ac_abs_builddir&;t t
48558s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
48559s&@INSTALL@&$ac_INSTALL&;t t
48560s&@MKDIR_P@&$ac_MKDIR_P&;t t
48561$ac_datarootdir_hack
48562"
48563eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
48564 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48565$as_echo "$as_me: error: could not create $ac_file" >&2;}
48566 { (exit 1); exit 1; }; }
48567
48568test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
48569 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
48570 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
48571 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48572which seems to be undefined. Please make sure it is defined." >&5
48573$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48574which seems to be undefined. Please make sure it is defined." >&2;}
48575
48576 rm -f "$tmp/stdin"
48577 case $ac_file in
48578 -) cat "$tmp/out" && rm -f "$tmp/out";;
48579 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
48580 esac \
48581 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48582$as_echo "$as_me: error: could not create $ac_file" >&2;}
48583 { (exit 1); exit 1; }; }
48584 ;;
48585 :H)
48586 #
48587 # CONFIG_HEADER
48588 #
48589 if test x"$ac_file" != x-; then
48590 {
48591 $as_echo "/* $configure_input */" \
48592 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
48593 } >"$tmp/config.h" \
48594 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48595$as_echo "$as_me: error: could not create $ac_file" >&2;}
48596 { (exit 1); exit 1; }; }
48597 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
48598 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
48599$as_echo "$as_me: $ac_file is unchanged" >&6;}
48600 else
48601 rm -f "$ac_file"
48602 mv "$tmp/config.h" "$ac_file" \
48603 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48604$as_echo "$as_me: error: could not create $ac_file" >&2;}
48605 { (exit 1); exit 1; }; }
48606 fi
48607 else
48608 $as_echo "/* $configure_input */" \
48609 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
48610 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
48611$as_echo "$as_me: error: could not create -" >&2;}
48612 { (exit 1); exit 1; }; }
48613 fi
48614# Compute "$ac_file"'s index in $config_headers.
48615_am_arg="$ac_file"
48616_am_stamp_count=1
48617for _am_header in $config_headers :; do
48618 case $_am_header in
48619 $_am_arg | $_am_arg:* )
48620 break ;;
48621 * )
48622 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
48623 esac
48624done
48625echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
48626$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48627 X"$_am_arg" : 'X\(//\)[^/]' \| \
48628 X"$_am_arg" : 'X\(//\)$' \| \
48629 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
48630$as_echo X"$_am_arg" |
48631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48632 s//\1/
48633 q
48634 }
48635 /^X\(\/\/\)[^/].*/{
48636 s//\1/
48637 q
48638 }
48639 /^X\(\/\/\)$/{
48640 s//\1/
48641 q
48642 }
48643 /^X\(\/\).*/{
48644 s//\1/
48645 q
48646 }
48647 s/.*/./; q'`/stamp-h$_am_stamp_count
48648 ;;
48649
48650 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
48651$as_echo "$as_me: executing $ac_file commands" >&6;}
48652 ;;
48653 esac
48654
48655
48656 case $ac_file$ac_mode in
48657 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
48658ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
48659ac_prefix_conf_PKG=`echo MagickCore`
48660ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
48661ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
48662ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
48663if test ".$ac_prefix_conf_INP" = "."; then
48664 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
48665 case "$ac_file" in
48666 *.h) ac_prefix_conf_INP=$ac_file ;;
48667 *)
48668 esac
48669 test ".$ac_prefix_conf_INP" != "." && break
48670 done
48671fi
48672if test ".$ac_prefix_conf_INP" = "."; then
48673 case "$ac_prefix_conf_OUT" in
48674 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
48675 ;;
48676 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
48677 ;;
48678 *) ac_prefix_conf_INP=config.h
48679 ;;
48680 esac
48681fi
48682if test -z "$ac_prefix_conf_PKG" ; then
48683 { { $as_echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
48684$as_echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
48685 { (exit 1); exit 1; }; }
48686else
48687 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
48688 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
48689 fi fi
48690 { $as_echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
48691$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
48692 if test -f $ac_prefix_conf_INP ; then
48693 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
48694 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
48695 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
48696 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
48697 echo "#endif/" >>conftest.prefix
48698 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
48699 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
48700 echo "#endif/" >> conftest.prefix
48701 # now executing _script on _DEF input to create _OUT output file
48702 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
48703 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
48704 echo ' ' >>$tmp/pconfig.h
48705 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
48706
48707 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
48708 echo ' ' >>$tmp/pconfig.h
48709 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
48710 echo "#endif" >>$tmp/pconfig.h
48711 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
48712 { $as_echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
48713$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
48714 else
48715 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
48716$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48717 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
48718 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
48719 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
48720$as_echo X"$ac_prefix_conf_OUT" |
48721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48722 s//\1/
48723 q
48724 }
48725 /^X\(\/\/\)[^/].*/{
48726 s//\1/
48727 q
48728 }
48729 /^X\(\/\/\)$/{
48730 s//\1/
48731 q
48732 }
48733 /^X\(\/\).*/{
48734 s//\1/
48735 q
48736 }
48737 s/.*/./; q'`
48738 { as_dir="$ac_dir"
48739 case $as_dir in #(
48740 -*) as_dir=./$as_dir;;
48741 esac
48742 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48743 as_dirs=
48744 while :; do
48745 case $as_dir in #(
48746 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48747 *) as_qdir=$as_dir;;
48748 esac
48749 as_dirs="'$as_qdir' $as_dirs"
48750 as_dir=`$as_dirname -- "$as_dir" ||
48751$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48752 X"$as_dir" : 'X\(//\)[^/]' \| \
48753 X"$as_dir" : 'X\(//\)$' \| \
48754 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48755$as_echo X"$as_dir" |
48756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48757 s//\1/
48758 q
48759 }
48760 /^X\(\/\/\)[^/].*/{
48761 s//\1/
48762 q
48763 }
48764 /^X\(\/\/\)$/{
48765 s//\1/
48766 q
48767 }
48768 /^X\(\/\).*/{
48769 s//\1/
48770 q
48771 }
48772 s/.*/./; q'`
48773 test -d "$as_dir" && break
48774 done
48775 test -z "$as_dirs" || eval "mkdir $as_dirs"
48776 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48777$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48778 { (exit 1); exit 1; }; }; }
48779 rm -f "$ac_prefix_conf_OUT"
48780 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
48781 fi
48782 cp conftest.prefix _configs.sed
48783 else
48784 { { $as_echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
48785$as_echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
48786 { (exit 1); exit 1; }; }
48787 fi
48788 rm -f conftest.*
48789fi
48790 ;;
48791 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
48792 # Autoconf 2.62 quotes --file arguments for eval, but not when files
48793 # are listed without --file. Let's play safe and only enable the eval
48794 # if we detect the quoting.
48795 case $CONFIG_FILES in
48796 *\'*) eval set x "$CONFIG_FILES" ;;
48797 *) set x $CONFIG_FILES ;;
48798 esac
48799 shift
48800 for mf
48801 do
48802 # Strip MF so we end up with the name of the file.
48803 mf=`echo "$mf" | sed -e 's/:.*$//'`
48804 # Check whether this is an Automake generated Makefile or not.
48805 # We used to match only the files named `Makefile.in', but
48806 # some people rename them; so instead we look at the file content.
48807 # Grep'ing the first line is not enough: some people post-process
48808 # each Makefile.in and add a new line on top of each file to say so.
48809 # Grep'ing the whole file is not good either: AIX grep has a line
48810 # limit of 2048, but all sed's we know have understand at least 4000.
48811 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
48812 dirpart=`$as_dirname -- "$mf" ||
48813$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48814 X"$mf" : 'X\(//\)[^/]' \| \
48815 X"$mf" : 'X\(//\)$' \| \
48816 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
48817$as_echo X"$mf" |
48818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48819 s//\1/
48820 q
48821 }
48822 /^X\(\/\/\)[^/].*/{
48823 s//\1/
48824 q
48825 }
48826 /^X\(\/\/\)$/{
48827 s//\1/
48828 q
48829 }
48830 /^X\(\/\).*/{
48831 s//\1/
48832 q
48833 }
48834 s/.*/./; q'`
48835 else
48836 continue
48837 fi
48838 # Extract the definition of DEPDIR, am__include, and am__quote
48839 # from the Makefile without running `make'.
48840 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
48841 test -z "$DEPDIR" && continue
48842 am__include=`sed -n 's/^am__include = //p' < "$mf"`
48843 test -z "am__include" && continue
48844 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
48845 # When using ansi2knr, U may be empty or an underscore; expand it
48846 U=`sed -n 's/^U = //p' < "$mf"`
48847 # Find all dependency output files, they are included files with
48848 # $(DEPDIR) in their names. We invoke sed twice because it is the
48849 # simplest approach to changing $(DEPDIR) to its actual value in the
48850 # expansion.
48851 for file in `sed -n "
48852 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
48853 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
48854 # Make sure the directory exists.
48855 test -f "$dirpart/$file" && continue
48856 fdir=`$as_dirname -- "$file" ||
48857$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48858 X"$file" : 'X\(//\)[^/]' \| \
48859 X"$file" : 'X\(//\)$' \| \
48860 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
48861$as_echo X"$file" |
48862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48863 s//\1/
48864 q
48865 }
48866 /^X\(\/\/\)[^/].*/{
48867 s//\1/
48868 q
48869 }
48870 /^X\(\/\/\)$/{
48871 s//\1/
48872 q
48873 }
48874 /^X\(\/\).*/{
48875 s//\1/
48876 q
48877 }
48878 s/.*/./; q'`
48879 { as_dir=$dirpart/$fdir
48880 case $as_dir in #(
48881 -*) as_dir=./$as_dir;;
48882 esac
48883 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48884 as_dirs=
48885 while :; do
48886 case $as_dir in #(
48887 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48888 *) as_qdir=$as_dir;;
48889 esac
48890 as_dirs="'$as_qdir' $as_dirs"
48891 as_dir=`$as_dirname -- "$as_dir" ||
48892$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48893 X"$as_dir" : 'X\(//\)[^/]' \| \
48894 X"$as_dir" : 'X\(//\)$' \| \
48895 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48896$as_echo X"$as_dir" |
48897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48898 s//\1/
48899 q
48900 }
48901 /^X\(\/\/\)[^/].*/{
48902 s//\1/
48903 q
48904 }
48905 /^X\(\/\/\)$/{
48906 s//\1/
48907 q
48908 }
48909 /^X\(\/\).*/{
48910 s//\1/
48911 q
48912 }
48913 s/.*/./; q'`
48914 test -d "$as_dir" && break
48915 done
48916 test -z "$as_dirs" || eval "mkdir $as_dirs"
48917 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48918$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48919 { (exit 1); exit 1; }; }; }
48920 # echo "creating $dirpart/$file"
48921 echo '# dummy' > "$dirpart/$file"
48922 done
48923 done
48924}
48925 ;;
48926 "libtool":C)
48927
48928 # See if we are running on zsh, and set the options which allow our
48929 # commands through without removal of \ escapes.
48930 if test -n "${ZSH_VERSION+set}" ; then
48931 setopt NO_GLOB_SUBST
48932 fi
48933
48934 cfgfile="${ofile}T"
48935 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
48936 $RM "$cfgfile"
48937
48938 cat <<_LT_EOF >> "$cfgfile"
48939#! $SHELL
48940
48941# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
48942# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
48943# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
48944# NOTE: Changes made to this file will be lost: look at ltmain.sh.
48945#
48946# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
48947# 2006, 2007, 2008 Free Software Foundation, Inc.
48948# Written by Gordon Matzigkeit, 1996
48949#
48950# This file is part of GNU Libtool.
48951#
48952# GNU Libtool is free software; you can redistribute it and/or
48953# modify it under the terms of the GNU General Public License as
48954# published by the Free Software Foundation; either version 2 of
48955# the License, or (at your option) any later version.
48956#
48957# As a special exception to the GNU General Public License,
48958# if you distribute this file as part of a program or library that
48959# is built using GNU Libtool, you may include this file under the
48960# same distribution terms that you use for the rest of that program.
48961#
48962# GNU Libtool is distributed in the hope that it will be useful,
48963# but WITHOUT ANY WARRANTY; without even the implied warranty of
48964# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48965# GNU General Public License for more details.
48966#
48967# You should have received a copy of the GNU General Public License
48968# along with GNU Libtool; see the file COPYING. If not, a copy
48969# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
48970# obtained by writing to the Free Software Foundation, Inc.,
48971# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
48972
48973
48974# The names of the tagged configurations supported by this script.
48975available_tags="CXX "
48976
48977# ### BEGIN LIBTOOL CONFIG
48978
48979# A sed program that does not truncate output.
48980SED=$lt_SED
48981
48982# Sed that helps us avoid accidentally triggering echo(1) options like -n.
48983Xsed="\$SED -e 1s/^X//"
48984
48985# A grep program that handles long lines.
48986GREP=$lt_GREP
48987
48988# An ERE matcher.
48989EGREP=$lt_EGREP
48990
48991# A literal string matcher.
48992FGREP=$lt_FGREP
48993
48994# Which release of libtool.m4 was used?
48995macro_version=$macro_version
48996macro_revision=$macro_revision
48997
48998# Assembler program.
48999AS=$AS
49000
49001# DLL creation program.
49002DLLTOOL=$DLLTOOL
49003
49004# Object dumper program.
49005OBJDUMP=$OBJDUMP
49006
49007# Whether or not to build shared libraries.
49008build_libtool_libs=$enable_shared
49009
49010# Whether or not to build static libraries.
49011build_old_libs=$enable_static
49012
49013# What type of objects to build.
49014pic_mode=$pic_mode
49015
49016# Whether or not to optimize for fast installation.
49017fast_install=$enable_fast_install
49018
49019# The host system.
49020host_alias=$host_alias
49021host=$host
49022host_os=$host_os
49023
49024# The build system.
49025build_alias=$build_alias
49026build=$build
49027build_os=$build_os
49028
49029# A BSD- or MS-compatible name lister.
49030NM=$lt_NM
49031
49032# Whether we need soft or hard links.
49033LN_S=$lt_LN_S
49034
49035# What is the maximum length of a command?
49036max_cmd_len=$max_cmd_len
49037
49038# Object file suffix (normally "o").
49039objext=$ac_objext
49040
49041# Executable file suffix (normally "").
49042exeext=$exeext
49043
49044# whether the shell understands "unset".
49045lt_unset=$lt_unset
49046
49047# turn spaces into newlines.
49048SP2NL=$lt_lt_SP2NL
49049
49050# turn newlines into spaces.
49051NL2SP=$lt_lt_NL2SP
49052
49053# How to create reloadable object files.
49054reload_flag=$lt_reload_flag
49055reload_cmds=$lt_reload_cmds
49056
49057# Method to check whether dependent libraries are shared objects.
49058deplibs_check_method=$lt_deplibs_check_method
49059
49060# Command to use when deplibs_check_method == "file_magic".
49061file_magic_cmd=$lt_file_magic_cmd
49062
49063# The archiver.
49064AR=$lt_AR
49065AR_FLAGS=$lt_AR_FLAGS
49066
49067# A symbol stripping program.
49068STRIP=$lt_STRIP
49069
49070# Commands used to install an old-style archive.
49071RANLIB=$lt_RANLIB
49072old_postinstall_cmds=$lt_old_postinstall_cmds
49073old_postuninstall_cmds=$lt_old_postuninstall_cmds
49074
49075# A C compiler.
49076LTCC=$lt_CC
49077
49078# LTCC compiler flags.
49079LTCFLAGS=$lt_CFLAGS
49080
49081# Take the output of nm and produce a listing of raw symbols and C names.
49082global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
49083
49084# Transform the output of nm in a proper C declaration.
49085global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
49086
49087# Transform the output of nm in a C name address pair.
49088global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
49089
49090# Transform the output of nm in a C name address pair when lib prefix is needed.
49091global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
49092
49093# The name of the directory that contains temporary libtool files.
49094objdir=$objdir
49095
49096# Shell to use when invoking shell scripts.
49097SHELL=$lt_SHELL
49098
49099# An echo program that does not interpret backslashes.
49100ECHO=$lt_ECHO
49101
49102# Used to examine libraries when file_magic_cmd begins with "file".
49103MAGIC_CMD=$MAGIC_CMD
49104
49105# Must we lock files when doing compilation?
49106need_locks=$lt_need_locks
49107
49108# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
49109DSYMUTIL=$lt_DSYMUTIL
49110
49111# Tool to change global to local symbols on Mac OS X.
49112NMEDIT=$lt_NMEDIT
49113
49114# Tool to manipulate fat objects and archives on Mac OS X.
49115LIPO=$lt_LIPO
49116
49117# ldd/readelf like tool for Mach-O binaries on Mac OS X.
49118OTOOL=$lt_OTOOL
49119
49120# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
49121OTOOL64=$lt_OTOOL64
49122
49123# Old archive suffix (normally "a").
49124libext=$libext
49125
49126# Shared library suffix (normally ".so").
49127shrext_cmds=$lt_shrext_cmds
49128
49129# The commands to extract the exported symbol list from a shared archive.
49130extract_expsyms_cmds=$lt_extract_expsyms_cmds
49131
49132# Variables whose values should be saved in libtool wrapper scripts and
49133# restored at link time.
49134variables_saved_for_relink=$lt_variables_saved_for_relink
49135
49136# Do we need the "lib" prefix for modules?
49137need_lib_prefix=$need_lib_prefix
49138
49139# Do we need a version for libraries?
49140need_version=$need_version
49141
49142# Library versioning type.
49143version_type=$version_type
49144
49145# Shared library runtime path variable.
49146runpath_var=$runpath_var
49147
49148# Shared library path variable.
49149shlibpath_var=$shlibpath_var
49150
49151# Is shlibpath searched before the hard-coded library search path?
49152shlibpath_overrides_runpath=$shlibpath_overrides_runpath
49153
49154# Format of library name prefix.
49155libname_spec=$lt_libname_spec
49156
49157# List of archive names. First name is the real one, the rest are links.
49158# The last name is the one that the linker finds with -lNAME
49159library_names_spec=$lt_library_names_spec
49160
49161# The coded name of the library, if different from the real name.
49162soname_spec=$lt_soname_spec
49163
49164# Command to use after installation of a shared archive.
49165postinstall_cmds=$lt_postinstall_cmds
49166
49167# Command to use after uninstallation of a shared archive.
49168postuninstall_cmds=$lt_postuninstall_cmds
49169
49170# Commands used to finish a libtool library installation in a directory.
49171finish_cmds=$lt_finish_cmds
49172
49173# As "finish_cmds", except a single script fragment to be evaled but
49174# not shown.
49175finish_eval=$lt_finish_eval
49176
49177# Whether we should hardcode library paths into libraries.
49178hardcode_into_libs=$hardcode_into_libs
49179
49180# Compile-time system search path for libraries.
49181sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
49182
49183# Run-time system search path for libraries.
49184sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
49185
49186# Whether dlopen is supported.
49187dlopen_support=$enable_dlopen
49188
49189# Whether dlopen of programs is supported.
49190dlopen_self=$enable_dlopen_self
49191
49192# Whether dlopen of statically linked programs is supported.
49193dlopen_self_static=$enable_dlopen_self_static
49194
49195# Commands to strip libraries.
49196old_striplib=$lt_old_striplib
49197striplib=$lt_striplib
49198
49199
49200# The linker used to build libraries.
49201LD=$lt_LD
49202
49203# Commands used to build an old-style archive.
49204old_archive_cmds=$lt_old_archive_cmds
49205
49206# A language specific compiler.
49207CC=$lt_compiler
49208
49209# Is the compiler the GNU compiler?
49210with_gcc=$GCC
49211
49212# Compiler flag to turn off builtin functions.
49213no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
49214
49215# How to pass a linker flag through the compiler.
49216wl=$lt_lt_prog_compiler_wl
49217
49218# Additional compiler flags for building library objects.
49219pic_flag=$lt_lt_prog_compiler_pic
49220
49221# Compiler flag to prevent dynamic linking.
49222link_static_flag=$lt_lt_prog_compiler_static
49223
49224# Does compiler simultaneously support -c and -o options?
49225compiler_c_o=$lt_lt_cv_prog_compiler_c_o
49226
49227# Whether or not to add -lc for building shared libraries.
49228build_libtool_need_lc=$archive_cmds_need_lc
49229
49230# Whether or not to disallow shared libs when runtime libs are static.
49231allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
49232
49233# Compiler flag to allow reflexive dlopens.
49234export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
49235
49236# Compiler flag to generate shared objects directly from archives.
49237whole_archive_flag_spec=$lt_whole_archive_flag_spec
49238
49239# Whether the compiler copes with passing no objects directly.
49240compiler_needs_object=$lt_compiler_needs_object
49241
49242# Create an old-style archive from a shared archive.
49243old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
49244
49245# Create a temporary old-style archive to link instead of a shared archive.
49246old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
49247
49248# Commands used to build a shared archive.
49249archive_cmds=$lt_archive_cmds
49250archive_expsym_cmds=$lt_archive_expsym_cmds
49251
49252# Commands used to build a loadable module if different from building
49253# a shared archive.
49254module_cmds=$lt_module_cmds
49255module_expsym_cmds=$lt_module_expsym_cmds
49256
49257# Whether we are building with GNU ld or not.
49258with_gnu_ld=$lt_with_gnu_ld
49259
49260# Flag that allows shared libraries with undefined symbols to be built.
49261allow_undefined_flag=$lt_allow_undefined_flag
49262
49263# Flag that enforces no undefined symbols.
49264no_undefined_flag=$lt_no_undefined_flag
49265
49266# Flag to hardcode \$libdir into a binary during linking.
49267# This must work even if \$libdir does not exist
49268hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
49269
49270# If ld is used when linking, flag to hardcode \$libdir into a binary
49271# during linking. This must work even if \$libdir does not exist.
49272hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
49273
49274# Whether we need a single "-rpath" flag with a separated argument.
49275hardcode_libdir_separator=$lt_hardcode_libdir_separator
49276
49277# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49278# DIR into the resulting binary.
49279hardcode_direct=$hardcode_direct
49280
49281# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49282# DIR into the resulting binary and the resulting library dependency is
49283# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49284# library is relocated.
49285hardcode_direct_absolute=$hardcode_direct_absolute
49286
49287# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49288# into the resulting binary.
49289hardcode_minus_L=$hardcode_minus_L
49290
49291# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49292# into the resulting binary.
49293hardcode_shlibpath_var=$hardcode_shlibpath_var
49294
49295# Set to "yes" if building a shared library automatically hardcodes DIR
49296# into the library and all subsequent libraries and executables linked
49297# against it.
49298hardcode_automatic=$hardcode_automatic
49299
49300# Set to yes if linker adds runtime paths of dependent libraries
49301# to runtime path list.
49302inherit_rpath=$inherit_rpath
49303
49304# Whether libtool must link a program against all its dependency libraries.
49305link_all_deplibs=$link_all_deplibs
49306
49307# Fix the shell variable \$srcfile for the compiler.
49308fix_srcfile_path=$lt_fix_srcfile_path
49309
49310# Set to "yes" if exported symbols are required.
49311always_export_symbols=$always_export_symbols
49312
49313# The commands to list exported symbols.
49314export_symbols_cmds=$lt_export_symbols_cmds
49315
49316# Symbols that should not be listed in the preloaded symbols.
49317exclude_expsyms=$lt_exclude_expsyms
49318
49319# Symbols that must always be exported.
49320include_expsyms=$lt_include_expsyms
49321
49322# Commands necessary for linking programs (against libraries) with templates.
49323prelink_cmds=$lt_prelink_cmds
49324
49325# Specify filename containing input files.
49326file_list_spec=$lt_file_list_spec
49327
49328# How to hardcode a shared library path into an executable.
49329hardcode_action=$hardcode_action
49330
49331# The directories searched by this compiler when creating a shared library.
49332compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
49333
49334# Dependencies to place before and after the objects being linked to
49335# create a shared library.
49336predep_objects=$lt_predep_objects
49337postdep_objects=$lt_postdep_objects
49338predeps=$lt_predeps
49339postdeps=$lt_postdeps
49340
49341# The library search path used internally by the compiler when linking
49342# a shared library.
49343compiler_lib_search_path=$lt_compiler_lib_search_path
49344
49345# ### END LIBTOOL CONFIG
49346
49347_LT_EOF
49348
49349 case $host_os in
49350 aix3*)
49351 cat <<\_LT_EOF >> "$cfgfile"
49352# AIX sometimes has problems with the GCC collect2 program. For some
49353# reason, if we set the COLLECT_NAMES environment variable, the problems
49354# vanish in a puff of smoke.
49355if test "X${COLLECT_NAMES+set}" != Xset; then
49356 COLLECT_NAMES=
49357 export COLLECT_NAMES
49358fi
49359_LT_EOF
49360 ;;
49361 esac
49362
49363
49364ltmain="$ac_aux_dir/ltmain.sh"
49365
49366
49367 # We use sed instead of cat because bash on DJGPP gets confused if
49368 # if finds mixed CR/LF and LF-only lines. Since sed operates in
49369 # text mode, it properly converts lines to CR/LF. This bash problem
49370 # is reportedly fixed, but why not run on old versions too?
49371 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
49372 || (rm -f "$cfgfile"; exit 1)
49373
49374 case $xsi_shell in
49375 yes)
49376 cat << \_LT_EOF >> "$cfgfile"
49377
49378# func_dirname file append nondir_replacement
49379# Compute the dirname of FILE. If nonempty, add APPEND to the result,
49380# otherwise set result to NONDIR_REPLACEMENT.
49381func_dirname ()
49382{
49383 case ${1} in
49384 */*) func_dirname_result="${1%/*}${2}" ;;
49385 * ) func_dirname_result="${3}" ;;
49386 esac
49387}
49388
49389# func_basename file
49390func_basename ()
49391{
49392 func_basename_result="${1##*/}"
49393}
49394
49395# func_dirname_and_basename file append nondir_replacement
49396# perform func_basename and func_dirname in a single function
49397# call:
49398# dirname: Compute the dirname of FILE. If nonempty,
49399# add APPEND to the result, otherwise set result
49400# to NONDIR_REPLACEMENT.
49401# value returned in "$func_dirname_result"
49402# basename: Compute filename of FILE.
49403# value retuned in "$func_basename_result"
49404# Implementation must be kept synchronized with func_dirname
49405# and func_basename. For efficiency, we do not delegate to
49406# those functions but instead duplicate the functionality here.
49407func_dirname_and_basename ()
49408{
49409 case ${1} in
49410 */*) func_dirname_result="${1%/*}${2}" ;;
49411 * ) func_dirname_result="${3}" ;;
49412 esac
49413 func_basename_result="${1##*/}"
49414}
49415
49416# func_stripname prefix suffix name
49417# strip PREFIX and SUFFIX off of NAME.
49418# PREFIX and SUFFIX must not contain globbing or regex special
49419# characters, hashes, percent signs, but SUFFIX may contain a leading
49420# dot (in which case that matches only a dot).
49421func_stripname ()
49422{
49423 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
49424 # positional parameters, so assign one to ordinary parameter first.
49425 func_stripname_result=${3}
49426 func_stripname_result=${func_stripname_result#"${1}"}
49427 func_stripname_result=${func_stripname_result%"${2}"}
49428}
49429
49430# func_opt_split
49431func_opt_split ()
49432{
49433 func_opt_split_opt=${1%%=*}
49434 func_opt_split_arg=${1#*=}
49435}
49436
49437# func_lo2o object
49438func_lo2o ()
49439{
49440 case ${1} in
49441 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
49442 *) func_lo2o_result=${1} ;;
49443 esac
49444}
49445
49446# func_xform libobj-or-source
49447func_xform ()
49448{
49449 func_xform_result=${1%.*}.lo
49450}
49451
49452# func_arith arithmetic-term...
49453func_arith ()
49454{
49455 func_arith_result=$(( $* ))
49456}
49457
49458# func_len string
49459# STRING may not start with a hyphen.
49460func_len ()
49461{
49462 func_len_result=${#1}
49463}
49464
49465_LT_EOF
49466 ;;
49467 *) # Bourne compatible functions.
49468 cat << \_LT_EOF >> "$cfgfile"
49469
49470# func_dirname file append nondir_replacement
49471# Compute the dirname of FILE. If nonempty, add APPEND to the result,
49472# otherwise set result to NONDIR_REPLACEMENT.
49473func_dirname ()
49474{
49475 # Extract subdirectory from the argument.
49476 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
49477 if test "X$func_dirname_result" = "X${1}"; then
49478 func_dirname_result="${3}"
49479 else
49480 func_dirname_result="$func_dirname_result${2}"
49481 fi
49482}
49483
49484# func_basename file
49485func_basename ()
49486{
49487 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
49488}
49489
49490
49491# func_stripname prefix suffix name
49492# strip PREFIX and SUFFIX off of NAME.
49493# PREFIX and SUFFIX must not contain globbing or regex special
49494# characters, hashes, percent signs, but SUFFIX may contain a leading
49495# dot (in which case that matches only a dot).
49496# func_strip_suffix prefix name
49497func_stripname ()
49498{
49499 case ${2} in
49500 .*) func_stripname_result=`$ECHO "X${3}" \
49501 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
49502 *) func_stripname_result=`$ECHO "X${3}" \
49503 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
49504 esac
49505}
49506
49507# sed scripts:
49508my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
49509my_sed_long_arg='1s/^-[^=]*=//'
49510
49511# func_opt_split
49512func_opt_split ()
49513{
49514 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
49515 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
49516}
49517
49518# func_lo2o object
49519func_lo2o ()
49520{
49521 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
49522}
49523
49524# func_xform libobj-or-source
49525func_xform ()
49526{
49527 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
49528}
49529
49530# func_arith arithmetic-term...
49531func_arith ()
49532{
49533 func_arith_result=`expr "$@"`
49534}
49535
49536# func_len string
49537# STRING may not start with a hyphen.
49538func_len ()
49539{
49540 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
49541}
49542
49543_LT_EOF
49544esac
49545
49546case $lt_shell_append in
49547 yes)
49548 cat << \_LT_EOF >> "$cfgfile"
49549
49550# func_append var value
49551# Append VALUE to the end of shell variable VAR.
49552func_append ()
49553{
49554 eval "$1+=\$2"
49555}
49556_LT_EOF
49557 ;;
49558 *)
49559 cat << \_LT_EOF >> "$cfgfile"
49560
49561# func_append var value
49562# Append VALUE to the end of shell variable VAR.
49563func_append ()
49564{
49565 eval "$1=\$$1\$2"
49566}
49567
49568_LT_EOF
49569 ;;
49570 esac
49571
49572
49573 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
49574 || (rm -f "$cfgfile"; exit 1)
49575
49576 mv -f "$cfgfile" "$ofile" ||
49577 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
49578 chmod +x "$ofile"
49579
49580
49581 cat <<_LT_EOF >> "$ofile"
49582
49583# ### BEGIN LIBTOOL TAG CONFIG: CXX
49584
49585# The linker used to build libraries.
49586LD=$lt_LD_CXX
49587
49588# Commands used to build an old-style archive.
49589old_archive_cmds=$lt_old_archive_cmds_CXX
49590
49591# A language specific compiler.
49592CC=$lt_compiler_CXX
49593
49594# Is the compiler the GNU compiler?
49595with_gcc=$GCC_CXX
49596
49597# Compiler flag to turn off builtin functions.
49598no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
49599
49600# How to pass a linker flag through the compiler.
49601wl=$lt_lt_prog_compiler_wl_CXX
49602
49603# Additional compiler flags for building library objects.
49604pic_flag=$lt_lt_prog_compiler_pic_CXX
49605
49606# Compiler flag to prevent dynamic linking.
49607link_static_flag=$lt_lt_prog_compiler_static_CXX
49608
49609# Does compiler simultaneously support -c and -o options?
49610compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
49611
49612# Whether or not to add -lc for building shared libraries.
49613build_libtool_need_lc=$archive_cmds_need_lc_CXX
49614
49615# Whether or not to disallow shared libs when runtime libs are static.
49616allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
49617
49618# Compiler flag to allow reflexive dlopens.
49619export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
49620
49621# Compiler flag to generate shared objects directly from archives.
49622whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
49623
49624# Whether the compiler copes with passing no objects directly.
49625compiler_needs_object=$lt_compiler_needs_object_CXX
49626
49627# Create an old-style archive from a shared archive.
49628old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
49629
49630# Create a temporary old-style archive to link instead of a shared archive.
49631old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
49632
49633# Commands used to build a shared archive.
49634archive_cmds=$lt_archive_cmds_CXX
49635archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
49636
49637# Commands used to build a loadable module if different from building
49638# a shared archive.
49639module_cmds=$lt_module_cmds_CXX
49640module_expsym_cmds=$lt_module_expsym_cmds_CXX
49641
49642# Whether we are building with GNU ld or not.
49643with_gnu_ld=$lt_with_gnu_ld_CXX
49644
49645# Flag that allows shared libraries with undefined symbols to be built.
49646allow_undefined_flag=$lt_allow_undefined_flag_CXX
49647
49648# Flag that enforces no undefined symbols.
49649no_undefined_flag=$lt_no_undefined_flag_CXX
49650
49651# Flag to hardcode \$libdir into a binary during linking.
49652# This must work even if \$libdir does not exist
49653hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
49654
49655# If ld is used when linking, flag to hardcode \$libdir into a binary
49656# during linking. This must work even if \$libdir does not exist.
49657hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
49658
49659# Whether we need a single "-rpath" flag with a separated argument.
49660hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
49661
49662# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49663# DIR into the resulting binary.
49664hardcode_direct=$hardcode_direct_CXX
49665
49666# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49667# DIR into the resulting binary and the resulting library dependency is
49668# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49669# library is relocated.
49670hardcode_direct_absolute=$hardcode_direct_absolute_CXX
49671
49672# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49673# into the resulting binary.
49674hardcode_minus_L=$hardcode_minus_L_CXX
49675
49676# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49677# into the resulting binary.
49678hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
49679
49680# Set to "yes" if building a shared library automatically hardcodes DIR
49681# into the library and all subsequent libraries and executables linked
49682# against it.
49683hardcode_automatic=$hardcode_automatic_CXX
49684
49685# Set to yes if linker adds runtime paths of dependent libraries
49686# to runtime path list.
49687inherit_rpath=$inherit_rpath_CXX
49688
49689# Whether libtool must link a program against all its dependency libraries.
49690link_all_deplibs=$link_all_deplibs_CXX
49691
49692# Fix the shell variable \$srcfile for the compiler.
49693fix_srcfile_path=$lt_fix_srcfile_path_CXX
49694
49695# Set to "yes" if exported symbols are required.
49696always_export_symbols=$always_export_symbols_CXX
49697
49698# The commands to list exported symbols.
49699export_symbols_cmds=$lt_export_symbols_cmds_CXX
49700
49701# Symbols that should not be listed in the preloaded symbols.
49702exclude_expsyms=$lt_exclude_expsyms_CXX
49703
49704# Symbols that must always be exported.
49705include_expsyms=$lt_include_expsyms_CXX
49706
49707# Commands necessary for linking programs (against libraries) with templates.
49708prelink_cmds=$lt_prelink_cmds_CXX
49709
49710# Specify filename containing input files.
49711file_list_spec=$lt_file_list_spec_CXX
49712
49713# How to hardcode a shared library path into an executable.
49714hardcode_action=$hardcode_action_CXX
49715
49716# The directories searched by this compiler when creating a shared library.
49717compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
49718
49719# Dependencies to place before and after the objects being linked to
49720# create a shared library.
49721predep_objects=$lt_predep_objects_CXX
49722postdep_objects=$lt_postdep_objects_CXX
49723predeps=$lt_predeps_CXX
49724postdeps=$lt_postdeps_CXX
49725
49726# The library search path used internally by the compiler when linking
49727# a shared library.
49728compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
49729
49730# ### END LIBTOOL TAG CONFIG: CXX
49731_LT_EOF
49732
49733 ;;
49734 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
49735 "Magick-config.in":C) chmod +x magick/Magick-config ;;
49736 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
49737 "Wand-config.in":C) chmod +x wand/Wand-config ;;
49738 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
49739 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
49740
49741 esac
49742done # for ac_tag
49743
49744
49745{ (exit 0); exit 0; }
49746_ACEOF
49747chmod +x $CONFIG_STATUS
49748ac_clean_files=$ac_clean_files_save
49749
49750test $ac_write_fail = 0 ||
49751 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
49752$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
49753 { (exit 1); exit 1; }; }
49754
49755
49756# configure is writing to config.log, and then calls config.status.
49757# config.status does its own redirection, appending to config.log.
49758# Unfortunately, on DOS this fails, as config.log is still kept open
49759# by configure, so config.status won't be able to write to it; its
49760# output is simply discarded. So we exec the FD to /dev/null,
49761# effectively closing config.log, so it can be properly (re)opened and
49762# appended to by config.status. When coming back to configure, we
49763# need to make the FD available again.
49764if test "$no_create" != yes; then
49765 ac_cs_success=:
49766 ac_config_status_args=
49767 test "$silent" = yes &&
49768 ac_config_status_args="$ac_config_status_args --quiet"
49769 exec 5>/dev/null
49770 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49771 exec 5>>config.log
49772 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49773 # would make configure fail if this is the last instruction.
49774 $ac_cs_success || { (exit 1); exit 1; }
49775fi
49776if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
49777 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
49778$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
49779fi
49780
49781
49782rm -f magick-version
49783
49784result_ghostscript_font_dir='none'
49785if test "${ghostscript_font_dir}x" != 'x'; then
49786 result_ghostscript_font_dir=$ghostscript_font_dir
49787fi
49788
49789result_windows_font_dir='none'
49790if test "${windows_font_dir}x" != 'x'; then
49791 result_windows_font_dir=${windows_font_dir}
49792fi
49793
49794{ $as_echo "$as_me:$LINENO: result:
49795ImageMagick is configured as follows. Please verify that this configuration
49796matches your expectations.
49797
49798Host system type: $host
49799Build system type: $build
49800
49801 Option Value
49802-------------------------------------------------------------------------------
49803Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49804Static libraries --enable-static=$enable_static $libtool_build_static_libs
49805Module support --with-modules=$with_modules $with_modules
49806GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49807Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49808High Dynamic Range Imagery
49809 --enable-hdri=$enable_hdri $enable_hdri
49810
49811Delegate Configuration:
49812BZLIB --with-bzlib=$with_bzlib $have_bzlib
49813Autotrace --with-autotrace=$with_autotrace $have_autotrace
49814DJVU --with-djvu=$with_djvu $have_djvu
49815DPS --with-dps=$with_dps $have_dps
49816FFTW --with-fftw=$with_fftw $have_fftw
49817FlashPIX --with-fpx=$with_fpx $have_fpx
49818FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49819FreeType --with-freetype=$with_freetype $have_freetype
49820GhostPCL None $PCLDelegate ($PCLVersion)
49821GhostXPS None $XPSDelegate ($XPSVersion)
49822Ghostscript None $PSDelegate ($GSVersion)
49823Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49824Ghostscript lib --with-gslib=$with_gslib $have_gslib
49825Graphviz --with-gvc=$with_gvc $have_gvc
49826JBIG --with-jbig=$with_jbig $have_jbig
49827JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49828JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49829LCMS --with-lcms=$with_lcms $have_lcms
49830LQR --with-lqr=$with_lqr $have_lqr
49831Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49832OpenEXR --with-openexr=$with_openexr $have_openexr
49833PERL --with-perl=$with_perl $have_perl
49834PNG --with-png=$with_png $have_png
49835RSVG --with-rsvg=$with_rsvg $have_rsvg
49836TIFF --with-tiff=$with_tiff $have_tiff
49837Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49838WMF --with-wmf=$with_wmf $have_wmf
49839X11 --with-x=$with_x $have_x
49840XML --with-xml=$with_xml $have_xml
49841ZLIB --with-zlib=$with_zlib $have_zlib
49842
49843X11 Configuration:
49844 X_CFLAGS = $X_CFLAGS
49845 X_PRE_LIBS = $X_PRE_LIBS
49846 X_LIBS = $X_LIBS
49847 X_EXTRA_LIBS = $X_EXTRA_LIBS
49848
49849Options used to compile and link:
49850 PREFIX = $PREFIX_DIR
49851 EXEC-PREFIX = $EXEC_PREFIX_DIR
49852 VERSION = $PACKAGE_VERSION
49853 CC = $CC
49854 CFLAGS = $CFLAGS
49855 MAGICK_CFLAGS = $MAGICK_CFLAGS
49856 CPPFLAGS = $MAGICK_CPPFLAGS
49857 PCFLAGS = $MAGICK_PCFLAGS
49858 DEFS = $DEFS
49859 LDFLAGS = $LDFLAGS
49860 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49861 LIBS = $MAGICK_LIBS
49862 CXX = $CXX
49863 CXXFLAGS = $CXXFLAGS
49864" >&5
49865$as_echo "
49866ImageMagick is configured as follows. Please verify that this configuration
49867matches your expectations.
49868
49869Host system type: $host
49870Build system type: $build
49871
49872 Option Value
49873-------------------------------------------------------------------------------
49874Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49875Static libraries --enable-static=$enable_static $libtool_build_static_libs
49876Module support --with-modules=$with_modules $with_modules
49877GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49878Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49879High Dynamic Range Imagery
49880 --enable-hdri=$enable_hdri $enable_hdri
49881
49882Delegate Configuration:
49883BZLIB --with-bzlib=$with_bzlib $have_bzlib
49884Autotrace --with-autotrace=$with_autotrace $have_autotrace
49885DJVU --with-djvu=$with_djvu $have_djvu
49886DPS --with-dps=$with_dps $have_dps
49887FFTW --with-fftw=$with_fftw $have_fftw
49888FlashPIX --with-fpx=$with_fpx $have_fpx
49889FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49890FreeType --with-freetype=$with_freetype $have_freetype
49891GhostPCL None $PCLDelegate ($PCLVersion)
49892GhostXPS None $XPSDelegate ($XPSVersion)
49893Ghostscript None $PSDelegate ($GSVersion)
49894Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49895Ghostscript lib --with-gslib=$with_gslib $have_gslib
49896Graphviz --with-gvc=$with_gvc $have_gvc
49897JBIG --with-jbig=$with_jbig $have_jbig
49898JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49899JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49900LCMS --with-lcms=$with_lcms $have_lcms
49901LQR --with-lqr=$with_lqr $have_lqr
49902Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49903OpenEXR --with-openexr=$with_openexr $have_openexr
49904PERL --with-perl=$with_perl $have_perl
49905PNG --with-png=$with_png $have_png
49906RSVG --with-rsvg=$with_rsvg $have_rsvg
49907TIFF --with-tiff=$with_tiff $have_tiff
49908Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49909WMF --with-wmf=$with_wmf $have_wmf
49910X11 --with-x=$with_x $have_x
49911XML --with-xml=$with_xml $have_xml
49912ZLIB --with-zlib=$with_zlib $have_zlib
49913
49914X11 Configuration:
49915 X_CFLAGS = $X_CFLAGS
49916 X_PRE_LIBS = $X_PRE_LIBS
49917 X_LIBS = $X_LIBS
49918 X_EXTRA_LIBS = $X_EXTRA_LIBS
49919
49920Options used to compile and link:
49921 PREFIX = $PREFIX_DIR
49922 EXEC-PREFIX = $EXEC_PREFIX_DIR
49923 VERSION = $PACKAGE_VERSION
49924 CC = $CC
49925 CFLAGS = $CFLAGS
49926 MAGICK_CFLAGS = $MAGICK_CFLAGS
49927 CPPFLAGS = $MAGICK_CPPFLAGS
49928 PCFLAGS = $MAGICK_PCFLAGS
49929 DEFS = $DEFS
49930 LDFLAGS = $LDFLAGS
49931 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49932 LIBS = $MAGICK_LIBS
49933 CXX = $CXX
49934 CXXFLAGS = $CXXFLAGS
49935" >&6; }