blob: 2a9b04bdbd79dc13e9bc2d0f585867da7e715045 [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
cristy3ed852e2009-09-05 21:47:34 +00001248enable_assert
1249enable_maintainer_mode
1250enable_ccmalloc
1251enable_efence
1252enable_prof
1253enable_gprof
1254enable_gcov
1255with_method_prefix
1256with_quantum_depth
1257with_cache
1258with_frozenpaths
1259with_magick_plus_plus
1260with_perl
1261with_perl_options
1262with_umem
1263with_libstdc
1264with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001265with_x
cristy3ed852e2009-09-05 21:47:34 +00001266with_zlib
1267with_autotrace
1268with_dps
1269with_djvu
1270with_fftw
1271with_fpx
1272with_fontconfig
1273with_freetype
1274with_gslib
1275with_fontpath
1276with_gs_font_dir
1277with_gvc
1278with_jbig
1279with_jpeg
1280with_jp2
1281with_lcms
1282with_lqr
1283with_openexr
1284with_png
1285with_rsvg
1286with_tiff
1287with_windows_font_dir
1288with_wmf
1289with_xml
1290'
1291 ac_precious_vars='build_alias
1292host_alias
1293target_alias
1294CC
1295CFLAGS
1296LDFLAGS
1297LIBS
1298CPPFLAGS
1299CPP
1300CXX
1301CXXFLAGS
1302CCC
1303PKG_CONFIG
cristy736173a2009-09-20 21:18:22 +00001304CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001305XMKMF
cristy3ed852e2009-09-05 21:47:34 +00001306AUTOTRACE_CFLAGS
1307AUTOTRACE_LIBS
1308FONTCONFIG_CFLAGS
1309FONTCONFIG_LIBS
1310GVC_CFLAGS
1311GVC_LIBS
1312LQR_CFLAGS
1313LQR_LIBS
1314OPENEXR_CFLAGS
1315OPENEXR_LIBS
1316RSVG_CFLAGS
1317RSVG_LIBS
1318CAIRO_SVG_CFLAGS
1319CAIRO_SVG_LIBS'
1320
1321
1322# Initialize some variables set by options.
1323ac_init_help=
1324ac_init_version=false
1325ac_unrecognized_opts=
1326ac_unrecognized_sep=
1327# The variables have the same names as the options, with
1328# dashes changed to underlines.
1329cache_file=/dev/null
1330exec_prefix=NONE
1331no_create=
1332no_recursion=
1333prefix=NONE
1334program_prefix=NONE
1335program_suffix=NONE
1336program_transform_name=s,x,x,
1337silent=
1338site=
1339srcdir=
1340verbose=
1341x_includes=NONE
1342x_libraries=NONE
1343
1344# Installation directory options.
1345# These are left unexpanded so users can "make install exec_prefix=/foo"
1346# and all the variables that are supposed to be based on exec_prefix
1347# by default will actually change.
1348# Use braces instead of parens because sh, perl, etc. also accept them.
1349# (The list follows the same order as the GNU Coding Standards.)
1350bindir='${exec_prefix}/bin'
1351sbindir='${exec_prefix}/sbin'
1352libexecdir='${exec_prefix}/libexec'
1353datarootdir='${prefix}/share'
1354datadir='${datarootdir}'
1355sysconfdir='${prefix}/etc'
1356sharedstatedir='${prefix}/com'
1357localstatedir='${prefix}/var'
1358includedir='${prefix}/include'
1359oldincludedir='/usr/include'
1360docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1361infodir='${datarootdir}/info'
1362htmldir='${docdir}'
1363dvidir='${docdir}'
1364pdfdir='${docdir}'
1365psdir='${docdir}'
1366libdir='${exec_prefix}/lib'
1367localedir='${datarootdir}/locale'
1368mandir='${datarootdir}/man'
1369
1370ac_prev=
1371ac_dashdash=
1372for ac_option
1373do
1374 # If the previous option needs an argument, assign it.
1375 if test -n "$ac_prev"; then
1376 eval $ac_prev=\$ac_option
1377 ac_prev=
1378 continue
1379 fi
1380
1381 case $ac_option in
1382 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1383 *) ac_optarg=yes ;;
1384 esac
1385
1386 # Accept the important Cygnus configure options, so we can diagnose typos.
1387
1388 case $ac_dashdash$ac_option in
1389 --)
1390 ac_dashdash=yes ;;
1391
1392 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1393 ac_prev=bindir ;;
1394 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1395 bindir=$ac_optarg ;;
1396
1397 -build | --build | --buil | --bui | --bu)
1398 ac_prev=build_alias ;;
1399 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1400 build_alias=$ac_optarg ;;
1401
1402 -cache-file | --cache-file | --cache-fil | --cache-fi \
1403 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1404 ac_prev=cache_file ;;
1405 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1406 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1407 cache_file=$ac_optarg ;;
1408
1409 --config-cache | -C)
1410 cache_file=config.cache ;;
1411
1412 -datadir | --datadir | --datadi | --datad)
1413 ac_prev=datadir ;;
1414 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1415 datadir=$ac_optarg ;;
1416
1417 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1418 | --dataroo | --dataro | --datar)
1419 ac_prev=datarootdir ;;
1420 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1421 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1422 datarootdir=$ac_optarg ;;
1423
1424 -disable-* | --disable-*)
1425 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1426 # Reject names that are not valid shell variable names.
1427 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1428 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1429 { (exit 1); exit 1; }; }
1430 ac_useropt_orig=$ac_useropt
1431 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1432 case $ac_user_opts in
1433 *"
1434"enable_$ac_useropt"
1435"*) ;;
1436 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1437 ac_unrecognized_sep=', ';;
1438 esac
1439 eval enable_$ac_useropt=no ;;
1440
1441 -docdir | --docdir | --docdi | --doc | --do)
1442 ac_prev=docdir ;;
1443 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1444 docdir=$ac_optarg ;;
1445
1446 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1447 ac_prev=dvidir ;;
1448 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1449 dvidir=$ac_optarg ;;
1450
1451 -enable-* | --enable-*)
1452 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1453 # Reject names that are not valid shell variable names.
1454 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1455 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1456 { (exit 1); exit 1; }; }
1457 ac_useropt_orig=$ac_useropt
1458 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1459 case $ac_user_opts in
1460 *"
1461"enable_$ac_useropt"
1462"*) ;;
1463 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1464 ac_unrecognized_sep=', ';;
1465 esac
1466 eval enable_$ac_useropt=\$ac_optarg ;;
1467
1468 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1469 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1470 | --exec | --exe | --ex)
1471 ac_prev=exec_prefix ;;
1472 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1473 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1474 | --exec=* | --exe=* | --ex=*)
1475 exec_prefix=$ac_optarg ;;
1476
1477 -gas | --gas | --ga | --g)
1478 # Obsolete; use --with-gas.
1479 with_gas=yes ;;
1480
1481 -help | --help | --hel | --he | -h)
1482 ac_init_help=long ;;
1483 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1484 ac_init_help=recursive ;;
1485 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1486 ac_init_help=short ;;
1487
1488 -host | --host | --hos | --ho)
1489 ac_prev=host_alias ;;
1490 -host=* | --host=* | --hos=* | --ho=*)
1491 host_alias=$ac_optarg ;;
1492
1493 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1494 ac_prev=htmldir ;;
1495 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1496 | --ht=*)
1497 htmldir=$ac_optarg ;;
1498
1499 -includedir | --includedir | --includedi | --included | --include \
1500 | --includ | --inclu | --incl | --inc)
1501 ac_prev=includedir ;;
1502 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1503 | --includ=* | --inclu=* | --incl=* | --inc=*)
1504 includedir=$ac_optarg ;;
1505
1506 -infodir | --infodir | --infodi | --infod | --info | --inf)
1507 ac_prev=infodir ;;
1508 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1509 infodir=$ac_optarg ;;
1510
1511 -libdir | --libdir | --libdi | --libd)
1512 ac_prev=libdir ;;
1513 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1514 libdir=$ac_optarg ;;
1515
1516 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1517 | --libexe | --libex | --libe)
1518 ac_prev=libexecdir ;;
1519 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1520 | --libexe=* | --libex=* | --libe=*)
1521 libexecdir=$ac_optarg ;;
1522
1523 -localedir | --localedir | --localedi | --localed | --locale)
1524 ac_prev=localedir ;;
1525 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1526 localedir=$ac_optarg ;;
1527
1528 -localstatedir | --localstatedir | --localstatedi | --localstated \
1529 | --localstate | --localstat | --localsta | --localst | --locals)
1530 ac_prev=localstatedir ;;
1531 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1532 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1533 localstatedir=$ac_optarg ;;
1534
1535 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1536 ac_prev=mandir ;;
1537 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1538 mandir=$ac_optarg ;;
1539
1540 -nfp | --nfp | --nf)
1541 # Obsolete; use --without-fp.
1542 with_fp=no ;;
1543
1544 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1545 | --no-cr | --no-c | -n)
1546 no_create=yes ;;
1547
1548 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1549 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1550 no_recursion=yes ;;
1551
1552 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1553 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1554 | --oldin | --oldi | --old | --ol | --o)
1555 ac_prev=oldincludedir ;;
1556 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1557 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1558 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1559 oldincludedir=$ac_optarg ;;
1560
1561 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1562 ac_prev=prefix ;;
1563 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1564 prefix=$ac_optarg ;;
1565
1566 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1567 | --program-pre | --program-pr | --program-p)
1568 ac_prev=program_prefix ;;
1569 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1570 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1571 program_prefix=$ac_optarg ;;
1572
1573 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1574 | --program-suf | --program-su | --program-s)
1575 ac_prev=program_suffix ;;
1576 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1577 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1578 program_suffix=$ac_optarg ;;
1579
1580 -program-transform-name | --program-transform-name \
1581 | --program-transform-nam | --program-transform-na \
1582 | --program-transform-n | --program-transform- \
1583 | --program-transform | --program-transfor \
1584 | --program-transfo | --program-transf \
1585 | --program-trans | --program-tran \
1586 | --progr-tra | --program-tr | --program-t)
1587 ac_prev=program_transform_name ;;
1588 -program-transform-name=* | --program-transform-name=* \
1589 | --program-transform-nam=* | --program-transform-na=* \
1590 | --program-transform-n=* | --program-transform-=* \
1591 | --program-transform=* | --program-transfor=* \
1592 | --program-transfo=* | --program-transf=* \
1593 | --program-trans=* | --program-tran=* \
1594 | --progr-tra=* | --program-tr=* | --program-t=*)
1595 program_transform_name=$ac_optarg ;;
1596
1597 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1598 ac_prev=pdfdir ;;
1599 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1600 pdfdir=$ac_optarg ;;
1601
1602 -psdir | --psdir | --psdi | --psd | --ps)
1603 ac_prev=psdir ;;
1604 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1605 psdir=$ac_optarg ;;
1606
1607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1608 | -silent | --silent | --silen | --sile | --sil)
1609 silent=yes ;;
1610
1611 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1612 ac_prev=sbindir ;;
1613 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1614 | --sbi=* | --sb=*)
1615 sbindir=$ac_optarg ;;
1616
1617 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1618 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1619 | --sharedst | --shareds | --shared | --share | --shar \
1620 | --sha | --sh)
1621 ac_prev=sharedstatedir ;;
1622 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1623 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1624 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1625 | --sha=* | --sh=*)
1626 sharedstatedir=$ac_optarg ;;
1627
1628 -site | --site | --sit)
1629 ac_prev=site ;;
1630 -site=* | --site=* | --sit=*)
1631 site=$ac_optarg ;;
1632
1633 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1634 ac_prev=srcdir ;;
1635 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1636 srcdir=$ac_optarg ;;
1637
1638 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1639 | --syscon | --sysco | --sysc | --sys | --sy)
1640 ac_prev=sysconfdir ;;
1641 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1642 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1643 sysconfdir=$ac_optarg ;;
1644
1645 -target | --target | --targe | --targ | --tar | --ta | --t)
1646 ac_prev=target_alias ;;
1647 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1648 target_alias=$ac_optarg ;;
1649
1650 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1651 verbose=yes ;;
1652
1653 -version | --version | --versio | --versi | --vers | -V)
1654 ac_init_version=: ;;
1655
1656 -with-* | --with-*)
1657 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1658 # Reject names that are not valid shell variable names.
1659 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1660 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1661 { (exit 1); exit 1; }; }
1662 ac_useropt_orig=$ac_useropt
1663 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1664 case $ac_user_opts in
1665 *"
1666"with_$ac_useropt"
1667"*) ;;
1668 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1669 ac_unrecognized_sep=', ';;
1670 esac
1671 eval with_$ac_useropt=\$ac_optarg ;;
1672
1673 -without-* | --without-*)
1674 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1675 # Reject names that are not valid shell variable names.
1676 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1677 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1678 { (exit 1); exit 1; }; }
1679 ac_useropt_orig=$ac_useropt
1680 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1681 case $ac_user_opts in
1682 *"
1683"with_$ac_useropt"
1684"*) ;;
1685 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1686 ac_unrecognized_sep=', ';;
1687 esac
1688 eval with_$ac_useropt=no ;;
1689
1690 --x)
1691 # Obsolete; use --with-x.
1692 with_x=yes ;;
1693
1694 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1695 | --x-incl | --x-inc | --x-in | --x-i)
1696 ac_prev=x_includes ;;
1697 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1698 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1699 x_includes=$ac_optarg ;;
1700
1701 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1702 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1703 ac_prev=x_libraries ;;
1704 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1705 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1706 x_libraries=$ac_optarg ;;
1707
1708 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1709Try \`$0 --help' for more information." >&2
1710 { (exit 1); exit 1; }; }
1711 ;;
1712
1713 *=*)
1714 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1715 # Reject names that are not valid shell variable names.
1716 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1717 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1718 { (exit 1); exit 1; }; }
1719 eval $ac_envvar=\$ac_optarg
1720 export $ac_envvar ;;
1721
1722 *)
1723 # FIXME: should be removed in autoconf 3.0.
1724 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1725 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1726 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1727 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1728 ;;
1729
1730 esac
1731done
1732
1733if test -n "$ac_prev"; then
1734 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1735 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1736 { (exit 1); exit 1; }; }
1737fi
1738
1739if test -n "$ac_unrecognized_opts"; then
1740 case $enable_option_checking in
1741 no) ;;
1742 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1743 { (exit 1); exit 1; }; } ;;
1744 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1745 esac
1746fi
1747
1748# Check all directory arguments for consistency.
1749for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1750 datadir sysconfdir sharedstatedir localstatedir includedir \
1751 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1752 libdir localedir mandir
1753do
1754 eval ac_val=\$$ac_var
1755 # Remove trailing slashes.
1756 case $ac_val in
1757 */ )
1758 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1759 eval $ac_var=\$ac_val;;
1760 esac
1761 # Be sure to have absolute directory names.
1762 case $ac_val in
1763 [\\/$]* | ?:[\\/]* ) continue;;
1764 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1765 esac
1766 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1767 { (exit 1); exit 1; }; }
1768done
1769
1770# There might be people who depend on the old broken behavior: `$host'
1771# used to hold the argument of --host etc.
1772# FIXME: To remove some day.
1773build=$build_alias
1774host=$host_alias
1775target=$target_alias
1776
1777# FIXME: To remove some day.
1778if test "x$host_alias" != x; then
1779 if test "x$build_alias" = x; then
1780 cross_compiling=maybe
1781 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1782 If a cross compiler is detected then cross compile mode will be used." >&2
1783 elif test "x$build_alias" != "x$host_alias"; then
1784 cross_compiling=yes
1785 fi
1786fi
1787
1788ac_tool_prefix=
1789test -n "$host_alias" && ac_tool_prefix=$host_alias-
1790
1791test "$silent" = yes && exec 6>/dev/null
1792
1793
1794ac_pwd=`pwd` && test -n "$ac_pwd" &&
1795ac_ls_di=`ls -di .` &&
1796ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1797 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1798 { (exit 1); exit 1; }; }
1799test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1800 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1801 { (exit 1); exit 1; }; }
1802
1803
1804# Find the source files, if location was not specified.
1805if test -z "$srcdir"; then
1806 ac_srcdir_defaulted=yes
1807 # Try the directory containing this script, then the parent directory.
1808 ac_confdir=`$as_dirname -- "$as_myself" ||
1809$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1810 X"$as_myself" : 'X\(//\)[^/]' \| \
1811 X"$as_myself" : 'X\(//\)$' \| \
1812 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1813$as_echo X"$as_myself" |
1814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1815 s//\1/
1816 q
1817 }
1818 /^X\(\/\/\)[^/].*/{
1819 s//\1/
1820 q
1821 }
1822 /^X\(\/\/\)$/{
1823 s//\1/
1824 q
1825 }
1826 /^X\(\/\).*/{
1827 s//\1/
1828 q
1829 }
1830 s/.*/./; q'`
1831 srcdir=$ac_confdir
1832 if test ! -r "$srcdir/$ac_unique_file"; then
1833 srcdir=..
1834 fi
1835else
1836 ac_srcdir_defaulted=no
1837fi
1838if test ! -r "$srcdir/$ac_unique_file"; then
1839 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1840 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1841 { (exit 1); exit 1; }; }
1842fi
1843ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1844ac_abs_confdir=`(
1845 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1846 { (exit 1); exit 1; }; }
1847 pwd)`
1848# When building in place, set srcdir=.
1849if test "$ac_abs_confdir" = "$ac_pwd"; then
1850 srcdir=.
1851fi
1852# Remove unnecessary trailing slashes from srcdir.
1853# Double slashes in file names in object file debugging info
1854# mess up M-x gdb in Emacs.
1855case $srcdir in
1856*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1857esac
1858for ac_var in $ac_precious_vars; do
1859 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1860 eval ac_env_${ac_var}_value=\$${ac_var}
1861 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1862 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1863done
1864
1865#
1866# Report the --help message.
1867#
1868if test "$ac_init_help" = "long"; then
1869 # Omit some internal or obsolete options to make the list less imposing.
1870 # This message is too long to be a string in the A/UX 3.1 sh.
1871 cat <<_ACEOF
cristyd934d102009-10-10 12:55:13 +00001872\`configure' configures ImageMagick 6.5.7 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001873
1874Usage: $0 [OPTION]... [VAR=VALUE]...
1875
1876To assign environment variables (e.g., CC, CFLAGS...), specify them as
1877VAR=VALUE. See below for descriptions of some of the useful variables.
1878
1879Defaults for the options are specified in brackets.
1880
1881Configuration:
1882 -h, --help display this help and exit
1883 --help=short display options specific to this package
1884 --help=recursive display the short help of all the included packages
1885 -V, --version display version information and exit
1886 -q, --quiet, --silent do not print \`checking...' messages
1887 --cache-file=FILE cache test results in FILE [disabled]
1888 -C, --config-cache alias for \`--cache-file=config.cache'
1889 -n, --no-create do not create output files
1890 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1891
1892Installation directories:
1893 --prefix=PREFIX install architecture-independent files in PREFIX
1894 [$ac_default_prefix]
1895 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1896 [PREFIX]
1897
1898By default, \`make install' will install all the files in
1899\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1900an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1901for instance \`--prefix=\$HOME'.
1902
1903For better control, use the options below.
1904
1905Fine tuning of the installation directories:
1906 --bindir=DIR user executables [EPREFIX/bin]
1907 --sbindir=DIR system admin executables [EPREFIX/sbin]
1908 --libexecdir=DIR program executables [EPREFIX/libexec]
1909 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1910 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1911 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1912 --libdir=DIR object code libraries [EPREFIX/lib]
1913 --includedir=DIR C header files [PREFIX/include]
1914 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1915 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1916 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1917 --infodir=DIR info documentation [DATAROOTDIR/info]
1918 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1919 --mandir=DIR man documentation [DATAROOTDIR/man]
1920 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1921 --htmldir=DIR html documentation [DOCDIR]
1922 --dvidir=DIR dvi documentation [DOCDIR]
1923 --pdfdir=DIR pdf documentation [DOCDIR]
1924 --psdir=DIR ps documentation [DOCDIR]
1925_ACEOF
1926
1927 cat <<\_ACEOF
1928
1929Program names:
1930 --program-prefix=PREFIX prepend PREFIX to installed program names
1931 --program-suffix=SUFFIX append SUFFIX to installed program names
1932 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1933
1934X features:
1935 --x-includes=DIR X include files are in DIR
1936 --x-libraries=DIR X library files are in DIR
1937
1938System types:
1939 --build=BUILD configure for building on BUILD [guessed]
1940 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1941 --target=TARGET configure for building compilers for TARGET [HOST]
1942_ACEOF
1943fi
1944
1945if test -n "$ac_init_help"; then
1946 case $ac_init_help in
cristyd934d102009-10-10 12:55:13 +00001947 short | recursive ) echo "Configuration of ImageMagick 6.5.7:";;
cristy3ed852e2009-09-05 21:47:34 +00001948 esac
1949 cat <<\_ACEOF
1950
1951Optional Features:
1952 --disable-option-checking ignore unrecognized --enable/--with options
1953 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1954 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1955 --enable-silent-rules less verbose build output (undo: `make V=1')
1956 --disable-silent-rules verbose build output (undo: `make V=0')
1957 --disable-dependency-tracking speeds up one-time build
1958 --enable-dependency-tracking do not reject slow dependency extractors
1959 --bounds-checking enable run-time bounds-checking
1960 --enable-osx-universal-binary
1961 build universal binary on OS X [default=no]
1962 --disable-openmp do not use OpenMP
1963 --disable-largefile omit support for large files
1964 --enable-shared[=PKGS] build shared libraries [default=yes]
1965 --enable-static[=PKGS] build static libraries [default=yes]
1966 --enable-fast-install[=PKGS]
1967 optimize for fast installation [default=yes]
1968 --disable-libtool-lock avoid locking (might break parallel builds)
1969 --enable-ltdl-install install libltdl
1970 --enable-delegate-build look for delegate libraries in build directory
1971 --disable-deprecated exclude deprecated methods in MagickCore and
1972 MagickWand API's
1973 --disable-installed Formally install ImageMagick under PREFIX
1974 --disable-cipher disable enciphering and deciphering image pixels
1975 --enable-embeddable enable self-contained, embeddable,
1976 zero-configuration ImageMagick
1977 --enable-hdri accurately represent the wide range of intensity
1978 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001979 --disable-assert disable assert() statements in build
1980 --enable-maintainer-mode enable make rules and dependencies not useful
1981 (and sometimes confusing) to the casual installer
1982 --enable-ccmalloc enable 'ccmalloc' memory debug support
1983 --enable-efence enable 'efence' memory debug support
1984 --enable-prof enable 'prof' profiling support
1985 --enable-gprof enable 'gprof' profiling support
1986 --enable-gcov enable 'gcov' profiling support
1987
1988Optional Packages:
1989 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1990 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1991 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1992 --without-maximum-compile-warnings
1993 Disable maximum warning verbosity
1994 --with-dmalloc use dmalloc, as in
1995 http://www.dmalloc.com/dmalloc.tar.gz
1996 --without-threads disable threads support
1997 --with-pic try to use only PIC/non-PIC objects [default=use
1998 both]
1999 --with-included-ltdl use the GNU ltdl sources included here
2000 --with-ltdl-include=DIR use the ltdl headers installed in DIR
2001 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
2002 --with-modules enable building dynamically loadable modules
2003 --with-method-prefix=PREFIX
2004 prefix MagickCore API methods
2005 --with-quantum-depth=DEPTH
2006 number of bits in a pixel quantum (default 16)
2007 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
2008 memory)
2009 --with-frozenpaths freeze delegate paths
2010 --without-magick-plus-plus
2011 disable build/install of Magick++
2012 --with-perl enable build/install of PerlMagick
2013 --with-perl-options=OPTIONS
2014 options to pass on command-line when generating
2015 PerlMagick's build file
2016 --with-umem enable umem memory allocation library support
2017 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
2018 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00002019 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00002020 --without-zlib disable ZLIB support
2021 --with-autotrace enable autotrace support
2022 --without-dps disable Display Postscript support
2023 --without-djvu disable DjVu support
2024 --without-fftw disable FFTW support
2025 --without-fpx disable FlashPIX support
2026 --without-fontconfig disable fontconfig support
2027 --without-freetype disable Freetype support
2028 --without-gslib enable Ghostscript library support
2029 --with-fontpath=DIR prepend to default font search path
2030 --with-gs-font-dir=DIR Ghostscript font directory
2031 --without-gvc disable GVC support
2032 --without-jbig disable JBIG support
2033 --without-jpeg disable JPEG support
2034 --without-jp2 disable JPEG-2000 support
2035 --without-lcms disable LCMS support
2036 --without-lqr disable Liquid Rescale support (experimental)
2037 --without-openexr disable OpenEXR support
2038 --without-png disable PNG support
2039 --without-rsvg disable RSVG support
2040 --without-tiff disable TIFF support
2041 --with-windows-font-dir=DIR
2042 directory containing MS-Windows fonts
2043 --without-wmf disable WMF support
2044 --without-xml disable XML support
2045
2046Some influential environment variables:
2047 CC C compiler command
2048 CFLAGS C compiler flags
2049 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2050 nonstandard directory <lib dir>
2051 LIBS libraries to pass to the linker, e.g. -l<library>
2052 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2053 you have headers in a nonstandard directory <include dir>
2054 CPP C preprocessor
2055 CXX C++ compiler command
2056 CXXFLAGS C++ compiler flags
2057 PKG_CONFIG path to pkg-config utility
cristy736173a2009-09-20 21:18:22 +00002058 CXXCPP C++ preprocessor
cristyc7083c12009-10-14 03:16:55 +00002059 XMKMF Path to xmkmf, Makefile generator for X Window System
cristy3ed852e2009-09-05 21:47:34 +00002060 AUTOTRACE_CFLAGS
2061 C compiler flags for AUTOTRACE, overriding pkg-config
2062 AUTOTRACE_LIBS
2063 linker flags for AUTOTRACE, overriding pkg-config
2064 FONTCONFIG_CFLAGS
2065 C compiler flags for FONTCONFIG, overriding pkg-config
2066 FONTCONFIG_LIBS
2067 linker flags for FONTCONFIG, overriding pkg-config
2068 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2069 GVC_LIBS linker flags for GVC, overriding pkg-config
2070 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2071 LQR_LIBS linker flags for LQR, overriding pkg-config
2072 OPENEXR_CFLAGS
2073 C compiler flags for OPENEXR, overriding pkg-config
2074 OPENEXR_LIBS
2075 linker flags for OPENEXR, overriding pkg-config
2076 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2077 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2078 CAIRO_SVG_CFLAGS
2079 C compiler flags for CAIRO_SVG, overriding pkg-config
2080 CAIRO_SVG_LIBS
2081 linker flags for CAIRO_SVG, overriding pkg-config
2082
2083Use these variables to override the choices made by `configure' or to help
2084it to find libraries and programs with nonstandard names/locations.
2085
2086Report bugs to <http://www.imagemagick.org>.
2087_ACEOF
2088ac_status=$?
2089fi
2090
2091if test "$ac_init_help" = "recursive"; then
2092 # If there are subdirs, report their specific --help.
2093 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2094 test -d "$ac_dir" ||
2095 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2096 continue
2097 ac_builddir=.
2098
2099case "$ac_dir" in
2100.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2101*)
2102 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2103 # A ".." for each directory in $ac_dir_suffix.
2104 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2105 case $ac_top_builddir_sub in
2106 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2107 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2108 esac ;;
2109esac
2110ac_abs_top_builddir=$ac_pwd
2111ac_abs_builddir=$ac_pwd$ac_dir_suffix
2112# for backward compatibility:
2113ac_top_builddir=$ac_top_build_prefix
2114
2115case $srcdir in
2116 .) # We are building in place.
2117 ac_srcdir=.
2118 ac_top_srcdir=$ac_top_builddir_sub
2119 ac_abs_top_srcdir=$ac_pwd ;;
2120 [\\/]* | ?:[\\/]* ) # Absolute name.
2121 ac_srcdir=$srcdir$ac_dir_suffix;
2122 ac_top_srcdir=$srcdir
2123 ac_abs_top_srcdir=$srcdir ;;
2124 *) # Relative name.
2125 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2126 ac_top_srcdir=$ac_top_build_prefix$srcdir
2127 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2128esac
2129ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2130
2131 cd "$ac_dir" || { ac_status=$?; continue; }
2132 # Check for guested configure.
2133 if test -f "$ac_srcdir/configure.gnu"; then
2134 echo &&
2135 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2136 elif test -f "$ac_srcdir/configure"; then
2137 echo &&
2138 $SHELL "$ac_srcdir/configure" --help=recursive
2139 else
2140 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2141 fi || ac_status=$?
2142 cd "$ac_pwd" || { ac_status=$?; break; }
2143 done
2144fi
2145
2146test -n "$ac_init_help" && exit $ac_status
2147if $ac_init_version; then
2148 cat <<\_ACEOF
cristyd934d102009-10-10 12:55:13 +00002149ImageMagick configure 6.5.7
cristy3ed852e2009-09-05 21:47:34 +00002150generated by GNU Autoconf 2.63
2151
2152Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
21532002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2154This configure script is free software; the Free Software Foundation
2155gives unlimited permission to copy, distribute and modify it.
2156_ACEOF
2157 exit
2158fi
2159cat >config.log <<_ACEOF
2160This file contains any messages produced by compilers while
2161running configure, to aid debugging if configure makes a mistake.
2162
cristyd934d102009-10-10 12:55:13 +00002163It was created by ImageMagick $as_me 6.5.7, which was
cristy3ed852e2009-09-05 21:47:34 +00002164generated by GNU Autoconf 2.63. Invocation command line was
2165
2166 $ $0 $@
2167
2168_ACEOF
2169exec 5>>config.log
2170{
2171cat <<_ASUNAME
2172## --------- ##
2173## Platform. ##
2174## --------- ##
2175
2176hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2177uname -m = `(uname -m) 2>/dev/null || echo unknown`
2178uname -r = `(uname -r) 2>/dev/null || echo unknown`
2179uname -s = `(uname -s) 2>/dev/null || echo unknown`
2180uname -v = `(uname -v) 2>/dev/null || echo unknown`
2181
2182/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2183/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2184
2185/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2186/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2187/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2188/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2189/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2190/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2191/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2192
2193_ASUNAME
2194
2195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196for as_dir in $PATH
2197do
2198 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=.
2200 $as_echo "PATH: $as_dir"
2201done
2202IFS=$as_save_IFS
2203
2204} >&5
2205
2206cat >&5 <<_ACEOF
2207
2208
2209## ----------- ##
2210## Core tests. ##
2211## ----------- ##
2212
2213_ACEOF
2214
2215
2216# Keep a trace of the command line.
2217# Strip out --no-create and --no-recursion so they do not pile up.
2218# Strip out --silent because we don't want to record it for future runs.
2219# Also quote any args containing shell meta-characters.
2220# Make two passes to allow for proper duplicate-argument suppression.
2221ac_configure_args=
2222ac_configure_args0=
2223ac_configure_args1=
2224ac_must_keep_next=false
2225for ac_pass in 1 2
2226do
2227 for ac_arg
2228 do
2229 case $ac_arg in
2230 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232 | -silent | --silent | --silen | --sile | --sil)
2233 continue ;;
2234 *\'*)
2235 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2236 esac
2237 case $ac_pass in
2238 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2239 2)
2240 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2241 if test $ac_must_keep_next = true; then
2242 ac_must_keep_next=false # Got value, back to normal.
2243 else
2244 case $ac_arg in
2245 *=* | --config-cache | -C | -disable-* | --disable-* \
2246 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248 | -with-* | --with-* | -without-* | --without-* | --x)
2249 case "$ac_configure_args0 " in
2250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2251 esac
2252 ;;
2253 -* ) ac_must_keep_next=true ;;
2254 esac
2255 fi
2256 ac_configure_args="$ac_configure_args '$ac_arg'"
2257 ;;
2258 esac
2259 done
2260done
2261$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2262$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2263
2264# When interrupted or exit'd, cleanup temporary files, and complete
2265# config.log. We remove comments because anyway the quotes in there
2266# would cause problems or look ugly.
2267# WARNING: Use '\'' to represent an apostrophe within the trap.
2268# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269trap 'exit_status=$?
2270 # Save into config.log some information that might help in debugging.
2271 {
2272 echo
2273
2274 cat <<\_ASBOX
2275## ---------------- ##
2276## Cache variables. ##
2277## ---------------- ##
2278_ASBOX
2279 echo
2280 # The following way of writing the cache mishandles newlines in values,
2281(
2282 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2283 eval ac_val=\$$ac_var
2284 case $ac_val in #(
2285 *${as_nl}*)
2286 case $ac_var in #(
2287 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2288$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2289 esac
2290 case $ac_var in #(
2291 _ | IFS | as_nl) ;; #(
2292 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2293 *) $as_unset $ac_var ;;
2294 esac ;;
2295 esac
2296 done
2297 (set) 2>&1 |
2298 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2299 *${as_nl}ac_space=\ *)
2300 sed -n \
2301 "s/'\''/'\''\\\\'\'''\''/g;
2302 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2303 ;; #(
2304 *)
2305 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2306 ;;
2307 esac |
2308 sort
2309)
2310 echo
2311
2312 cat <<\_ASBOX
2313## ----------------- ##
2314## Output variables. ##
2315## ----------------- ##
2316_ASBOX
2317 echo
2318 for ac_var in $ac_subst_vars
2319 do
2320 eval ac_val=\$$ac_var
2321 case $ac_val in
2322 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2323 esac
2324 $as_echo "$ac_var='\''$ac_val'\''"
2325 done | sort
2326 echo
2327
2328 if test -n "$ac_subst_files"; then
2329 cat <<\_ASBOX
2330## ------------------- ##
2331## File substitutions. ##
2332## ------------------- ##
2333_ASBOX
2334 echo
2335 for ac_var in $ac_subst_files
2336 do
2337 eval ac_val=\$$ac_var
2338 case $ac_val in
2339 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340 esac
2341 $as_echo "$ac_var='\''$ac_val'\''"
2342 done | sort
2343 echo
2344 fi
2345
2346 if test -s confdefs.h; then
2347 cat <<\_ASBOX
2348## ----------- ##
2349## confdefs.h. ##
2350## ----------- ##
2351_ASBOX
2352 echo
2353 cat confdefs.h
2354 echo
2355 fi
2356 test "$ac_signal" != 0 &&
2357 $as_echo "$as_me: caught signal $ac_signal"
2358 $as_echo "$as_me: exit $exit_status"
2359 } >&5
2360 rm -f core *.core core.conftest.* &&
2361 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2362 exit $exit_status
2363' 0
2364for ac_signal in 1 2 13 15; do
2365 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2366done
2367ac_signal=0
2368
2369# confdefs.h avoids OS command line length limits that DEFS can exceed.
2370rm -f -r conftest* confdefs.h
2371
2372# Predefined preprocessor variables.
2373
2374cat >>confdefs.h <<_ACEOF
2375#define PACKAGE_NAME "$PACKAGE_NAME"
2376_ACEOF
2377
2378
2379cat >>confdefs.h <<_ACEOF
2380#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2381_ACEOF
2382
2383
2384cat >>confdefs.h <<_ACEOF
2385#define PACKAGE_VERSION "$PACKAGE_VERSION"
2386_ACEOF
2387
2388
2389cat >>confdefs.h <<_ACEOF
2390#define PACKAGE_STRING "$PACKAGE_STRING"
2391_ACEOF
2392
2393
2394cat >>confdefs.h <<_ACEOF
2395#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2396_ACEOF
2397
2398
2399# Let the site file select an alternate cache file if it wants to.
2400# Prefer an explicitly selected file to automatically selected ones.
2401ac_site_file1=NONE
2402ac_site_file2=NONE
2403if test -n "$CONFIG_SITE"; then
2404 ac_site_file1=$CONFIG_SITE
2405elif test "x$prefix" != xNONE; then
2406 ac_site_file1=$prefix/share/config.site
2407 ac_site_file2=$prefix/etc/config.site
2408else
2409 ac_site_file1=$ac_default_prefix/share/config.site
2410 ac_site_file2=$ac_default_prefix/etc/config.site
2411fi
2412for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2413do
2414 test "x$ac_site_file" = xNONE && continue
2415 if test -r "$ac_site_file"; then
2416 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2417$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2418 sed 's/^/| /' "$ac_site_file" >&5
2419 . "$ac_site_file"
2420 fi
2421done
2422
2423if test -r "$cache_file"; then
2424 # Some versions of bash will fail to source /dev/null (special
2425 # files actually), so we avoid doing that.
2426 if test -f "$cache_file"; then
2427 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2428$as_echo "$as_me: loading cache $cache_file" >&6;}
2429 case $cache_file in
2430 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2431 *) . "./$cache_file";;
2432 esac
2433 fi
2434else
2435 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2436$as_echo "$as_me: creating cache $cache_file" >&6;}
2437 >$cache_file
2438fi
2439
2440# Check that the precious variables saved in the cache have kept the same
2441# value.
2442ac_cache_corrupted=false
2443for ac_var in $ac_precious_vars; do
2444 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2445 eval ac_new_set=\$ac_env_${ac_var}_set
2446 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2447 eval ac_new_val=\$ac_env_${ac_var}_value
2448 case $ac_old_set,$ac_new_set in
2449 set,)
2450 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2451$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2453 ,set)
2454 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2455$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2457 ,);;
2458 *)
2459 if test "x$ac_old_val" != "x$ac_new_val"; then
2460 # differences in whitespace do not lead to failure.
2461 ac_old_val_w=`echo x $ac_old_val`
2462 ac_new_val_w=`echo x $ac_new_val`
2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2464 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2465$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2466 ac_cache_corrupted=:
2467 else
2468 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2469$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2470 eval $ac_var=\$ac_old_val
2471 fi
2472 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2473$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2474 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2475$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2476 fi;;
2477 esac
2478 # Pass precious variables to config.status.
2479 if test "$ac_new_set" = set; then
2480 case $ac_new_val in
2481 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2482 *) ac_arg=$ac_var=$ac_new_val ;;
2483 esac
2484 case " $ac_configure_args " in
2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2486 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2487 esac
2488 fi
2489done
2490if $ac_cache_corrupted; then
2491 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2492$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2494$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2495 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2496$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2497 { (exit 1); exit 1; }; }
2498fi
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524ac_ext=c
2525ac_cpp='$CPP $CPPFLAGS'
2526ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529
2530
2531
2532ac_aux_dir=
2533for ac_dir in config "$srcdir"/config; do
2534 if test -f "$ac_dir/install-sh"; then
2535 ac_aux_dir=$ac_dir
2536 ac_install_sh="$ac_aux_dir/install-sh -c"
2537 break
2538 elif test -f "$ac_dir/install.sh"; then
2539 ac_aux_dir=$ac_dir
2540 ac_install_sh="$ac_aux_dir/install.sh -c"
2541 break
2542 elif test -f "$ac_dir/shtool"; then
2543 ac_aux_dir=$ac_dir
2544 ac_install_sh="$ac_aux_dir/shtool install -c"
2545 break
2546 fi
2547done
2548if test -z "$ac_aux_dir"; then
2549 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2550$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2551 { (exit 1); exit 1; }; }
2552fi
2553
2554# These three variables are undocumented and unsupported,
2555# and are intended to be withdrawn in a future Autoconf release.
2556# They can cause serious problems if a builder's source tree is in a directory
2557# whose full name contains unusual characters.
2558ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2559ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2560ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2561
2562
2563
2564
2565ac_config_headers="$ac_config_headers config/config.h"
2566
2567ac_config_commands="$ac_config_commands magick/magick-config.h"
2568
2569ac_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"
2570
2571
2572#
2573# Save initial user-tunable values
2574#
2575USER_LIBS=$LIBS
2576for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
2577 eval isset=\${$var+set}
2578 if test "$isset" = 'set'; then
2579 eval val=$`echo $var`
2580 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
2581 fi
2582done
2583
2584
2585CONFIGURE_ARGS="$0 ${ac_configure_args}"
2586
2587
2588# Source file containing package/library versioning information.
2589. ${srcdir}/version.sh
2590
2591echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
2592# Make sure we can run config.sub.
2593$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2594 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2595$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2596 { (exit 1); exit 1; }; }
2597
2598{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2599$as_echo_n "checking build system type... " >&6; }
2600if test "${ac_cv_build+set}" = set; then
2601 $as_echo_n "(cached) " >&6
2602else
2603 ac_build_alias=$build_alias
2604test "x$ac_build_alias" = x &&
2605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2606test "x$ac_build_alias" = x &&
2607 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2608$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2609 { (exit 1); exit 1; }; }
2610ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2611 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2612$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2613 { (exit 1); exit 1; }; }
2614
2615fi
2616{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2617$as_echo "$ac_cv_build" >&6; }
2618case $ac_cv_build in
2619*-*-*) ;;
2620*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2621$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2622 { (exit 1); exit 1; }; };;
2623esac
2624build=$ac_cv_build
2625ac_save_IFS=$IFS; IFS='-'
2626set x $ac_cv_build
2627shift
2628build_cpu=$1
2629build_vendor=$2
2630shift; shift
2631# Remember, the first character of IFS is used to create $*,
2632# except with old shells:
2633build_os=$*
2634IFS=$ac_save_IFS
2635case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2636
2637
2638{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2639$as_echo_n "checking host system type... " >&6; }
2640if test "${ac_cv_host+set}" = set; then
2641 $as_echo_n "(cached) " >&6
2642else
2643 if test "x$host_alias" = x; then
2644 ac_cv_host=$ac_cv_build
2645else
2646 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2647 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2648$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2649 { (exit 1); exit 1; }; }
2650fi
2651
2652fi
2653{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2654$as_echo "$ac_cv_host" >&6; }
2655case $ac_cv_host in
2656*-*-*) ;;
2657*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2658$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2659 { (exit 1); exit 1; }; };;
2660esac
2661host=$ac_cv_host
2662ac_save_IFS=$IFS; IFS='-'
2663set x $ac_cv_host
2664shift
2665host_cpu=$1
2666host_vendor=$2
2667shift; shift
2668# Remember, the first character of IFS is used to create $*,
2669# except with old shells:
2670host_os=$*
2671IFS=$ac_save_IFS
2672case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2673
2674
2675{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2676$as_echo_n "checking target system type... " >&6; }
2677if test "${ac_cv_target+set}" = set; then
2678 $as_echo_n "(cached) " >&6
2679else
2680 if test "x$target_alias" = x; then
2681 ac_cv_target=$ac_cv_host
2682else
2683 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2684 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2685$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2686 { (exit 1); exit 1; }; }
2687fi
2688
2689fi
2690{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2691$as_echo "$ac_cv_target" >&6; }
2692case $ac_cv_target in
2693*-*-*) ;;
2694*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2695$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2696 { (exit 1); exit 1; }; };;
2697esac
2698target=$ac_cv_target
2699ac_save_IFS=$IFS; IFS='-'
2700set x $ac_cv_target
2701shift
2702target_cpu=$1
2703target_vendor=$2
2704shift; shift
2705# Remember, the first character of IFS is used to create $*,
2706# except with old shells:
2707target_os=$*
2708IFS=$ac_save_IFS
2709case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2710
2711
2712# The aliases save the names the user supplied, while $host etc.
2713# will get canonicalized.
2714test -n "$target_alias" &&
2715 test "$program_prefix$program_suffix$program_transform_name" = \
2716 NONENONEs,x,x, &&
2717 program_prefix=${target_alias}-
2718
2719# Substitute library versioning
2720
2721
2722# Ensure that make can run correctly
2723{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2724$as_echo_n "checking whether build environment is sane... " >&6; }
2725# Just in case
2726sleep 1
2727echo timestamp > conftest.file
2728# Reject unsafe characters in $srcdir or the absolute working directory
2729# name. Accept space and tab only in the latter.
2730am_lf='
2731'
2732case `pwd` in
2733 *[\\\"\#\$\&\'\`$am_lf]*)
2734 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2735$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2736 { (exit 1); exit 1; }; };;
2737esac
2738case $srcdir in
2739 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2740 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2741$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2742 { (exit 1); exit 1; }; };;
2743esac
2744
2745# Do `set' in a subshell so we don't clobber the current shell's
2746# arguments. Must try -L first in case configure is actually a
2747# symlink; some systems play weird games with the mod time of symlinks
2748# (eg FreeBSD returns the mod time of the symlink's containing
2749# directory).
2750if (
2751 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2752 if test "$*" = "X"; then
2753 # -L didn't work.
2754 set X `ls -t "$srcdir/configure" conftest.file`
2755 fi
2756 rm -f conftest.file
2757 if test "$*" != "X $srcdir/configure conftest.file" \
2758 && test "$*" != "X conftest.file $srcdir/configure"; then
2759
2760 # If neither matched, then we have a broken ls. This can happen
2761 # if, for instance, CONFIG_SHELL is bash and it inherits a
2762 # broken ls alias from the environment. This has actually
2763 # happened. Such a system could not be considered "sane".
2764 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2765alias in your environment" >&5
2766$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2767alias in your environment" >&2;}
2768 { (exit 1); exit 1; }; }
2769 fi
2770
2771 test "$2" = conftest.file
2772 )
2773then
2774 # Ok.
2775 :
2776else
2777 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2778Check your system clock" >&5
2779$as_echo "$as_me: error: newly created file is older than distributed files!
2780Check your system clock" >&2;}
2781 { (exit 1); exit 1; }; }
2782fi
2783{ $as_echo "$as_me:$LINENO: result: yes" >&5
2784$as_echo "yes" >&6; }
2785
2786am__api_version='1.11'
2787
2788# Find a good install program. We prefer a C program (faster),
2789# so one script is as good as another. But avoid the broken or
2790# incompatible versions:
2791# SysV /etc/install, /usr/sbin/install
2792# SunOS /usr/etc/install
2793# IRIX /sbin/install
2794# AIX /bin/install
2795# AmigaOS /C/install, which installs bootblocks on floppy discs
2796# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2797# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2798# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2799# OS/2's system install, which has a completely different semantic
2800# ./install, which can be erroneously created by make from ./install.sh.
2801# Reject install programs that cannot install multiple files.
2802{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2803$as_echo_n "checking for a BSD-compatible install... " >&6; }
2804if test -z "$INSTALL"; then
2805if test "${ac_cv_path_install+set}" = set; then
2806 $as_echo_n "(cached) " >&6
2807else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809for as_dir in $PATH
2810do
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 # Account for people who put trailing slashes in PATH elements.
2814case $as_dir/ in
2815 ./ | .// | /cC/* | \
2816 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2817 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2818 /usr/ucb/* ) ;;
2819 *)
2820 # OSF1 and SCO ODT 3.0 have their own names for install.
2821 # Don't use installbsd from OSF since it installs stuff as root
2822 # by default.
2823 for ac_prog in ginstall scoinst install; do
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2826 if test $ac_prog = install &&
2827 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2828 # AIX install. It has an incompatible calling convention.
2829 :
2830 elif test $ac_prog = install &&
2831 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2832 # program-specific install script used by HP pwplus--don't use.
2833 :
2834 else
2835 rm -rf conftest.one conftest.two conftest.dir
2836 echo one > conftest.one
2837 echo two > conftest.two
2838 mkdir conftest.dir
2839 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2840 test -s conftest.one && test -s conftest.two &&
2841 test -s conftest.dir/conftest.one &&
2842 test -s conftest.dir/conftest.two
2843 then
2844 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2845 break 3
2846 fi
2847 fi
2848 fi
2849 done
2850 done
2851 ;;
2852esac
2853
2854done
2855IFS=$as_save_IFS
2856
2857rm -rf conftest.one conftest.two conftest.dir
2858
2859fi
2860 if test "${ac_cv_path_install+set}" = set; then
2861 INSTALL=$ac_cv_path_install
2862 else
2863 # As a last resort, use the slow shell script. Don't cache a
2864 # value for INSTALL within a source directory, because that will
2865 # break other packages using the cache if that directory is
2866 # removed, or if the value is a relative name.
2867 INSTALL=$ac_install_sh
2868 fi
2869fi
2870{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2871$as_echo "$INSTALL" >&6; }
2872
2873# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2874# It thinks the first close brace ends the variable substitution.
2875test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2876
2877test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2878
2879test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2880
2881test "$program_prefix" != NONE &&
2882 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2883# Use a double $ so make ignores it.
2884test "$program_suffix" != NONE &&
2885 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2886# Double any \ or $.
2887# By default was `s,x,x', remove it if useless.
2888ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2889program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2890
2891# expand $ac_aux_dir to an absolute path
2892am_aux_dir=`cd $ac_aux_dir && pwd`
2893
2894if test x"${MISSING+set}" != xset; then
2895 case $am_aux_dir in
2896 *\ * | *\ *)
2897 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2898 *)
2899 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2900 esac
2901fi
2902# Use eval to expand $SHELL
2903if eval "$MISSING --run true"; then
2904 am_missing_run="$MISSING --run "
2905else
2906 am_missing_run=
2907 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2908$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2909fi
2910
2911if test x"${install_sh}" != xset; then
2912 case $am_aux_dir in
2913 *\ * | *\ *)
2914 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2915 *)
2916 install_sh="\${SHELL} $am_aux_dir/install-sh"
2917 esac
2918fi
2919
2920# Installed binaries are usually stripped using `strip' when the user
2921# run `make install-strip'. However `strip' might not be the right
2922# tool to use in cross-compilation environments, therefore Automake
2923# will honor the `STRIP' environment variable to overrule this program.
2924if test "$cross_compiling" != no; then
2925 if test -n "$ac_tool_prefix"; then
2926 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2927set dummy ${ac_tool_prefix}strip; ac_word=$2
2928{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2929$as_echo_n "checking for $ac_word... " >&6; }
2930if test "${ac_cv_prog_STRIP+set}" = set; then
2931 $as_echo_n "(cached) " >&6
2932else
2933 if test -n "$STRIP"; then
2934 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2935else
2936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2937for as_dir in $PATH
2938do
2939 IFS=$as_save_IFS
2940 test -z "$as_dir" && as_dir=.
2941 for ac_exec_ext in '' $ac_executable_extensions; do
2942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2943 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2944 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 break 2
2946 fi
2947done
2948done
2949IFS=$as_save_IFS
2950
2951fi
2952fi
2953STRIP=$ac_cv_prog_STRIP
2954if test -n "$STRIP"; then
2955 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2956$as_echo "$STRIP" >&6; }
2957else
2958 { $as_echo "$as_me:$LINENO: result: no" >&5
2959$as_echo "no" >&6; }
2960fi
2961
2962
2963fi
2964if test -z "$ac_cv_prog_STRIP"; then
2965 ac_ct_STRIP=$STRIP
2966 # Extract the first word of "strip", so it can be a program name with args.
2967set dummy strip; ac_word=$2
2968{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2969$as_echo_n "checking for $ac_word... " >&6; }
2970if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2971 $as_echo_n "(cached) " >&6
2972else
2973 if test -n "$ac_ct_STRIP"; then
2974 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2975else
2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977for as_dir in $PATH
2978do
2979 IFS=$as_save_IFS
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2983 ac_cv_prog_ac_ct_STRIP="strip"
2984 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2985 break 2
2986 fi
2987done
2988done
2989IFS=$as_save_IFS
2990
2991fi
2992fi
2993ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2994if test -n "$ac_ct_STRIP"; then
2995 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2996$as_echo "$ac_ct_STRIP" >&6; }
2997else
2998 { $as_echo "$as_me:$LINENO: result: no" >&5
2999$as_echo "no" >&6; }
3000fi
3001
3002 if test "x$ac_ct_STRIP" = x; then
3003 STRIP=":"
3004 else
3005 case $cross_compiling:$ac_tool_warned in
3006yes:)
3007{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3008$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3009ac_tool_warned=yes ;;
3010esac
3011 STRIP=$ac_ct_STRIP
3012 fi
3013else
3014 STRIP="$ac_cv_prog_STRIP"
3015fi
3016
3017fi
3018INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3019
3020{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3021$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3022if test -z "$MKDIR_P"; then
3023 if test "${ac_cv_path_mkdir+set}" = set; then
3024 $as_echo_n "(cached) " >&6
3025else
3026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3028do
3029 IFS=$as_save_IFS
3030 test -z "$as_dir" && as_dir=.
3031 for ac_prog in mkdir gmkdir; do
3032 for ac_exec_ext in '' $ac_executable_extensions; do
3033 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3034 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3035 'mkdir (GNU coreutils) '* | \
3036 'mkdir (coreutils) '* | \
3037 'mkdir (fileutils) '4.1*)
3038 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3039 break 3;;
3040 esac
3041 done
3042 done
3043done
3044IFS=$as_save_IFS
3045
3046fi
3047
3048 if test "${ac_cv_path_mkdir+set}" = set; then
3049 MKDIR_P="$ac_cv_path_mkdir -p"
3050 else
3051 # As a last resort, use the slow shell script. Don't cache a
3052 # value for MKDIR_P within a source directory, because that will
3053 # break other packages using the cache if that directory is
3054 # removed, or if the value is a relative name.
3055 test -d ./--version && rmdir ./--version
3056 MKDIR_P="$ac_install_sh -d"
3057 fi
3058fi
3059{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3060$as_echo "$MKDIR_P" >&6; }
3061
3062mkdir_p="$MKDIR_P"
3063case $mkdir_p in
3064 [\\/$]* | ?:[\\/]*) ;;
3065 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3066esac
3067
3068for ac_prog in gawk mawk nawk awk
3069do
3070 # Extract the first word of "$ac_prog", so it can be a program name with args.
3071set dummy $ac_prog; ac_word=$2
3072{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3073$as_echo_n "checking for $ac_word... " >&6; }
3074if test "${ac_cv_prog_AWK+set}" = set; then
3075 $as_echo_n "(cached) " >&6
3076else
3077 if test -n "$AWK"; then
3078 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3079else
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3087 ac_cv_prog_AWK="$ac_prog"
3088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089 break 2
3090 fi
3091done
3092done
3093IFS=$as_save_IFS
3094
3095fi
3096fi
3097AWK=$ac_cv_prog_AWK
3098if test -n "$AWK"; then
3099 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3100$as_echo "$AWK" >&6; }
3101else
3102 { $as_echo "$as_me:$LINENO: result: no" >&5
3103$as_echo "no" >&6; }
3104fi
3105
3106
3107 test -n "$AWK" && break
3108done
3109
3110{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3111$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3112set x ${MAKE-make}
3113ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3114if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3115 $as_echo_n "(cached) " >&6
3116else
3117 cat >conftest.make <<\_ACEOF
3118SHELL = /bin/sh
3119all:
3120 @echo '@@@%%%=$(MAKE)=@@@%%%'
3121_ACEOF
3122# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3123case `${MAKE-make} -f conftest.make 2>/dev/null` in
3124 *@@@%%%=?*=@@@%%%*)
3125 eval ac_cv_prog_make_${ac_make}_set=yes;;
3126 *)
3127 eval ac_cv_prog_make_${ac_make}_set=no;;
3128esac
3129rm -f conftest.make
3130fi
3131if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3132 { $as_echo "$as_me:$LINENO: result: yes" >&5
3133$as_echo "yes" >&6; }
3134 SET_MAKE=
3135else
3136 { $as_echo "$as_me:$LINENO: result: no" >&5
3137$as_echo "no" >&6; }
3138 SET_MAKE="MAKE=${MAKE-make}"
3139fi
3140
3141rm -rf .tst 2>/dev/null
3142mkdir .tst 2>/dev/null
3143if test -d .tst; then
3144 am__leading_dot=.
3145else
3146 am__leading_dot=_
3147fi
3148rmdir .tst 2>/dev/null
3149
3150if test "`cd $srcdir && pwd`" != "`pwd`"; then
3151 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3152 # is not polluted with repeated "-I."
3153 am__isrc=' -I$(srcdir)'
3154 # test to see if srcdir already configured
3155 if test -f $srcdir/config.status; then
3156 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3157$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3158 { (exit 1); exit 1; }; }
3159 fi
3160fi
3161
3162# test whether we have cygpath
3163if test -z "$CYGPATH_W"; then
3164 if (cygpath --version) >/dev/null 2>/dev/null; then
3165 CYGPATH_W='cygpath -w'
3166 else
3167 CYGPATH_W=echo
3168 fi
3169fi
3170
3171
3172# Define the identity of the package.
3173 PACKAGE=$PACKAGE_NAME
3174 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3175
3176
3177# Some tools Automake needs.
3178
3179ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3180
3181
3182AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3183
3184
3185AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3186
3187
3188AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3189
3190
3191MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3192
3193# We need awk for the "check" target. The system "awk" is bad on
3194# some platforms.
3195# Always define AMTAR for backward compatibility.
3196
3197AMTAR=${AMTAR-"${am_missing_run}tar"}
3198
3199am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3200
3201
3202
3203
3204
3205
3206# Enable support for silent build rules
3207# Check whether --enable-silent-rules was given.
3208if test "${enable_silent_rules+set}" = set; then
3209 enableval=$enable_silent_rules;
3210fi
3211
3212case $enable_silent_rules in
3213yes) AM_DEFAULT_VERBOSITY=0;;
3214no) AM_DEFAULT_VERBOSITY=1;;
3215*) AM_DEFAULT_VERBOSITY=0;;
3216esac
3217AM_BACKSLASH='\'
3218
3219
3220MAGICK_LIB_VERSION="0x"
3221if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3222 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3223fi
3224MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3225if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3226 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3227fi
3228MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3229if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3230 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3231fi
3232MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3233
3234
3235# Definition used to define MagickLibVersionText in version.h
3236MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3237
3238
3239# Definition used to define MagickLibVersionNumber in version.h
3240MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3241
3242
3243# Regenerate config.status if ChangeLog or version.sh is updated.
3244CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3245
3246
3247PERLMAINCC=$CC
3248
3249MAGICK_CFLAGS=''
3250MAGICK_CPPFLAGS=$CPPFLAGS_USER
3251MAGICK_PCFLAGS=$CPPFLAGS_USER
3252MAGICK_LDFLAGS=''
3253MAGICK_LIBS=''
3254
3255#
3256# Evaluate shell variable equivalents to Makefile directory variables
3257#
3258if test "x$prefix" = xNONE; then
3259 prefix=$ac_default_prefix
3260fi
3261# Let make expand exec_prefix.
3262if test "x$exec_prefix" = xNONE; then
3263 exec_prefix='${prefix}'
3264fi
3265
3266#
3267eval "eval PREFIX_DIR=${prefix}"
3268
3269eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3270
3271eval "eval BIN_DIR=$bindir"
3272
3273eval "eval SBIN_DIR=$sbindir"
3274
3275eval "eval LIBEXEC_DIR=$libexecdir"
3276
3277eval "eval DATA_DIR=$datadir"
3278
3279eval "eval SYSCONF_DIR=$sysconfdir"
3280
3281eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3282
3283eval "eval LOCALSTATE_DIR=$localstatedir"
3284
3285eval "eval LIB_DIR=$libdir"
3286
3287eval "eval INCLUDE_DIR=$includedir"
3288
3289eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3290
3291eval "eval INFO_DIR=$infodir"
3292
3293eval "eval MAN_DIR=$mandir"
3294
3295
3296# Get full paths to source and build directories
3297srcdirfull="`cd $srcdir && pwd`"
3298builddir="`pwd`"
3299
3300#
3301# Compute variables useful for running uninstalled software.
3302#
3303MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3304MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
3305MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
3306MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
3307DIRSEP=':'
3308case "${build_os}" in
3309 mingw* )
3310 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
3311 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
3312 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
3313 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
3314 DIRSEP=';'
3315 ;;
3316esac
3317case "${host_os}" in
3318 mingw* )
3319 DIRSEP=';'
3320 ;;
3321esac
3322
3323
3324
3325
3326
3327
3328# Check for programs
3329ac_ext=c
3330ac_cpp='$CPP $CPPFLAGS'
3331ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333ac_compiler_gnu=$ac_cv_c_compiler_gnu
3334if test -n "$ac_tool_prefix"; then
3335 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3336set dummy ${ac_tool_prefix}gcc; ac_word=$2
3337{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3338$as_echo_n "checking for $ac_word... " >&6; }
3339if test "${ac_cv_prog_CC+set}" = set; then
3340 $as_echo_n "(cached) " >&6
3341else
3342 if test -n "$CC"; then
3343 ac_cv_prog_CC="$CC" # Let the user override the test.
3344else
3345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3346for as_dir in $PATH
3347do
3348 IFS=$as_save_IFS
3349 test -z "$as_dir" && as_dir=.
3350 for ac_exec_ext in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3353 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3354 break 2
3355 fi
3356done
3357done
3358IFS=$as_save_IFS
3359
3360fi
3361fi
3362CC=$ac_cv_prog_CC
3363if test -n "$CC"; then
3364 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3365$as_echo "$CC" >&6; }
3366else
3367 { $as_echo "$as_me:$LINENO: result: no" >&5
3368$as_echo "no" >&6; }
3369fi
3370
3371
3372fi
3373if test -z "$ac_cv_prog_CC"; then
3374 ac_ct_CC=$CC
3375 # Extract the first word of "gcc", so it can be a program name with args.
3376set dummy gcc; ac_word=$2
3377{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3378$as_echo_n "checking for $ac_word... " >&6; }
3379if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3380 $as_echo_n "(cached) " >&6
3381else
3382 if test -n "$ac_ct_CC"; then
3383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3384else
3385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3386for as_dir in $PATH
3387do
3388 IFS=$as_save_IFS
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392 ac_cv_prog_ac_ct_CC="gcc"
3393 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396done
3397done
3398IFS=$as_save_IFS
3399
3400fi
3401fi
3402ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403if test -n "$ac_ct_CC"; then
3404 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3405$as_echo "$ac_ct_CC" >&6; }
3406else
3407 { $as_echo "$as_me:$LINENO: result: no" >&5
3408$as_echo "no" >&6; }
3409fi
3410
3411 if test "x$ac_ct_CC" = x; then
3412 CC=""
3413 else
3414 case $cross_compiling:$ac_tool_warned in
3415yes:)
3416{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3418ac_tool_warned=yes ;;
3419esac
3420 CC=$ac_ct_CC
3421 fi
3422else
3423 CC="$ac_cv_prog_CC"
3424fi
3425
3426if test -z "$CC"; then
3427 if test -n "$ac_tool_prefix"; then
3428 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3429set dummy ${ac_tool_prefix}cc; ac_word=$2
3430{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3431$as_echo_n "checking for $ac_word... " >&6; }
3432if test "${ac_cv_prog_CC+set}" = set; then
3433 $as_echo_n "(cached) " >&6
3434else
3435 if test -n "$CC"; then
3436 ac_cv_prog_CC="$CC" # Let the user override the test.
3437else
3438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439for as_dir in $PATH
3440do
3441 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_CC="${ac_tool_prefix}cc"
3446 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3448 fi
3449done
3450done
3451IFS=$as_save_IFS
3452
3453fi
3454fi
3455CC=$ac_cv_prog_CC
3456if test -n "$CC"; then
3457 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3458$as_echo "$CC" >&6; }
3459else
3460 { $as_echo "$as_me:$LINENO: result: no" >&5
3461$as_echo "no" >&6; }
3462fi
3463
3464
3465 fi
3466fi
3467if test -z "$CC"; then
3468 # Extract the first word of "cc", so it can be a program name with args.
3469set dummy cc; ac_word=$2
3470{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3471$as_echo_n "checking for $ac_word... " >&6; }
3472if test "${ac_cv_prog_CC+set}" = set; then
3473 $as_echo_n "(cached) " >&6
3474else
3475 if test -n "$CC"; then
3476 ac_cv_prog_CC="$CC" # Let the user override the test.
3477else
3478 ac_prog_rejected=no
3479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480for as_dir in $PATH
3481do
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_exec_ext in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3487 ac_prog_rejected=yes
3488 continue
3489 fi
3490 ac_cv_prog_CC="cc"
3491 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3493 fi
3494done
3495done
3496IFS=$as_save_IFS
3497
3498if test $ac_prog_rejected = yes; then
3499 # We found a bogon in the path, so make sure we never use it.
3500 set dummy $ac_cv_prog_CC
3501 shift
3502 if test $# != 0; then
3503 # We chose a different compiler from the bogus one.
3504 # However, it has the same basename, so the bogon will be chosen
3505 # first if we set CC to just the basename; use the full file name.
3506 shift
3507 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3508 fi
3509fi
3510fi
3511fi
3512CC=$ac_cv_prog_CC
3513if test -n "$CC"; then
3514 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3515$as_echo "$CC" >&6; }
3516else
3517 { $as_echo "$as_me:$LINENO: result: no" >&5
3518$as_echo "no" >&6; }
3519fi
3520
3521
3522fi
3523if test -z "$CC"; then
3524 if test -n "$ac_tool_prefix"; then
3525 for ac_prog in cl.exe
3526 do
3527 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3528set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3529{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3530$as_echo_n "checking for $ac_word... " >&6; }
3531if test "${ac_cv_prog_CC+set}" = set; then
3532 $as_echo_n "(cached) " >&6
3533else
3534 if test -n "$CC"; then
3535 ac_cv_prog_CC="$CC" # Let the user override the test.
3536else
3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH
3539do
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3545 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3546 break 2
3547 fi
3548done
3549done
3550IFS=$as_save_IFS
3551
3552fi
3553fi
3554CC=$ac_cv_prog_CC
3555if test -n "$CC"; then
3556 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3557$as_echo "$CC" >&6; }
3558else
3559 { $as_echo "$as_me:$LINENO: result: no" >&5
3560$as_echo "no" >&6; }
3561fi
3562
3563
3564 test -n "$CC" && break
3565 done
3566fi
3567if test -z "$CC"; then
3568 ac_ct_CC=$CC
3569 for ac_prog in cl.exe
3570do
3571 # Extract the first word of "$ac_prog", so it can be a program name with args.
3572set dummy $ac_prog; ac_word=$2
3573{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3574$as_echo_n "checking for $ac_word... " >&6; }
3575if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3576 $as_echo_n "(cached) " >&6
3577else
3578 if test -n "$ac_ct_CC"; then
3579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3580else
3581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3582for as_dir in $PATH
3583do
3584 IFS=$as_save_IFS
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3588 ac_cv_prog_ac_ct_CC="$ac_prog"
3589 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3590 break 2
3591 fi
3592done
3593done
3594IFS=$as_save_IFS
3595
3596fi
3597fi
3598ac_ct_CC=$ac_cv_prog_ac_ct_CC
3599if test -n "$ac_ct_CC"; then
3600 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3601$as_echo "$ac_ct_CC" >&6; }
3602else
3603 { $as_echo "$as_me:$LINENO: result: no" >&5
3604$as_echo "no" >&6; }
3605fi
3606
3607
3608 test -n "$ac_ct_CC" && break
3609done
3610
3611 if test "x$ac_ct_CC" = x; then
3612 CC=""
3613 else
3614 case $cross_compiling:$ac_tool_warned in
3615yes:)
3616{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3617$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3618ac_tool_warned=yes ;;
3619esac
3620 CC=$ac_ct_CC
3621 fi
3622fi
3623
3624fi
3625
3626
3627test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3629{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3630See \`config.log' for more details." >&5
3631$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3632See \`config.log' for more details." >&2;}
3633 { (exit 1); exit 1; }; }; }
3634
3635# Provide some information about the compiler.
3636$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3637set X $ac_compile
3638ac_compiler=$2
3639{ (ac_try="$ac_compiler --version >&5"
3640case "(($ac_try" in
3641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3642 *) ac_try_echo=$ac_try;;
3643esac
3644eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3645$as_echo "$ac_try_echo") >&5
3646 (eval "$ac_compiler --version >&5") 2>&5
3647 ac_status=$?
3648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); }
3650{ (ac_try="$ac_compiler -v >&5"
3651case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654esac
3655eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3656$as_echo "$ac_try_echo") >&5
3657 (eval "$ac_compiler -v >&5") 2>&5
3658 ac_status=$?
3659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }
3661{ (ac_try="$ac_compiler -V >&5"
3662case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665esac
3666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3667$as_echo "$ac_try_echo") >&5
3668 (eval "$ac_compiler -V >&5") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671 (exit $ac_status); }
3672
3673cat >conftest.$ac_ext <<_ACEOF
3674/* confdefs.h. */
3675_ACEOF
3676cat confdefs.h >>conftest.$ac_ext
3677cat >>conftest.$ac_ext <<_ACEOF
3678/* end confdefs.h. */
3679
3680int
3681main ()
3682{
3683
3684 ;
3685 return 0;
3686}
3687_ACEOF
3688ac_clean_files_save=$ac_clean_files
3689ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3690# Try to create an executable without -o first, disregard a.out.
3691# It will help us diagnose broken compilers, and finding out an intuition
3692# of exeext.
3693{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3694$as_echo_n "checking for C compiler default output file name... " >&6; }
3695ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3696
3697# The possible output files:
3698ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3699
3700ac_rmfiles=
3701for ac_file in $ac_files
3702do
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3705 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3706 esac
3707done
3708rm -f $ac_rmfiles
3709
3710if { (ac_try="$ac_link_default"
3711case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714esac
3715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3716$as_echo "$ac_try_echo") >&5
3717 (eval "$ac_link_default") 2>&5
3718 ac_status=$?
3719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }; then
3721 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3722# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3723# in a Makefile. We should not override ac_cv_exeext if it was cached,
3724# so that the user can short-circuit this test for compilers unknown to
3725# Autoconf.
3726for ac_file in $ac_files ''
3727do
3728 test -f "$ac_file" || continue
3729 case $ac_file in
3730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3731 ;;
3732 [ab].out )
3733 # We found the default executable, but exeext='' is most
3734 # certainly right.
3735 break;;
3736 *.* )
3737 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3738 then :; else
3739 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3740 fi
3741 # We set ac_cv_exeext here because the later test for it is not
3742 # safe: cross compilers may not add the suffix if given an `-o'
3743 # argument, so we may need to know it at that point already.
3744 # Even if this section looks crufty: it has the advantage of
3745 # actually working.
3746 break;;
3747 * )
3748 break;;
3749 esac
3750done
3751test "$ac_cv_exeext" = no && ac_cv_exeext=
3752
3753else
3754 ac_file=''
3755fi
3756
3757{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3758$as_echo "$ac_file" >&6; }
3759if test -z "$ac_file"; then
3760 $as_echo "$as_me: failed program was:" >&5
3761sed 's/^/| /' conftest.$ac_ext >&5
3762
3763{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3764$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3765{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3766See \`config.log' for more details." >&5
3767$as_echo "$as_me: error: C compiler cannot create executables
3768See \`config.log' for more details." >&2;}
3769 { (exit 77); exit 77; }; }; }
3770fi
3771
3772ac_exeext=$ac_cv_exeext
3773
3774# Check that the compiler produces executables we can run. If not, either
3775# the compiler is broken, or we cross compile.
3776{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3777$as_echo_n "checking whether the C compiler works... " >&6; }
3778# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3779# If not cross compiling, check that we can run a simple program.
3780if test "$cross_compiling" != yes; then
3781 if { ac_try='./$ac_file'
3782 { (case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785esac
3786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787$as_echo "$ac_try_echo") >&5
3788 (eval "$ac_try") 2>&5
3789 ac_status=$?
3790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 (exit $ac_status); }; }; then
3792 cross_compiling=no
3793 else
3794 if test "$cross_compiling" = maybe; then
3795 cross_compiling=yes
3796 else
3797 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3800If you meant to cross compile, use \`--host'.
3801See \`config.log' for more details." >&5
3802$as_echo "$as_me: error: cannot run C compiled programs.
3803If you meant to cross compile, use \`--host'.
3804See \`config.log' for more details." >&2;}
3805 { (exit 1); exit 1; }; }; }
3806 fi
3807 fi
3808fi
3809{ $as_echo "$as_me:$LINENO: result: yes" >&5
3810$as_echo "yes" >&6; }
3811
3812rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3813ac_clean_files=$ac_clean_files_save
3814# Check that the compiler produces executables we can run. If not, either
3815# the compiler is broken, or we cross compile.
3816{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3817$as_echo_n "checking whether we are cross compiling... " >&6; }
3818{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3819$as_echo "$cross_compiling" >&6; }
3820
3821{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3822$as_echo_n "checking for suffix of executables... " >&6; }
3823if { (ac_try="$ac_link"
3824case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3827esac
3828eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3829$as_echo "$ac_try_echo") >&5
3830 (eval "$ac_link") 2>&5
3831 ac_status=$?
3832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; then
3834 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3835# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3836# work properly (i.e., refer to `conftest.exe'), while it won't with
3837# `rm'.
3838for ac_file in conftest.exe conftest conftest.*; do
3839 test -f "$ac_file" || continue
3840 case $ac_file in
3841 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3842 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3843 break;;
3844 * ) break;;
3845 esac
3846done
3847else
3848 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3849$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3850{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3851See \`config.log' for more details." >&5
3852$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3853See \`config.log' for more details." >&2;}
3854 { (exit 1); exit 1; }; }; }
3855fi
3856
3857rm -f conftest$ac_cv_exeext
3858{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3859$as_echo "$ac_cv_exeext" >&6; }
3860
3861rm -f conftest.$ac_ext
3862EXEEXT=$ac_cv_exeext
3863ac_exeext=$EXEEXT
3864{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3865$as_echo_n "checking for suffix of object files... " >&6; }
3866if test "${ac_cv_objext+set}" = set; then
3867 $as_echo_n "(cached) " >&6
3868else
3869 cat >conftest.$ac_ext <<_ACEOF
3870/* confdefs.h. */
3871_ACEOF
3872cat confdefs.h >>conftest.$ac_ext
3873cat >>conftest.$ac_ext <<_ACEOF
3874/* end confdefs.h. */
3875
3876int
3877main ()
3878{
3879
3880 ;
3881 return 0;
3882}
3883_ACEOF
3884rm -f conftest.o conftest.obj
3885if { (ac_try="$ac_compile"
3886case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889esac
3890eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3891$as_echo "$ac_try_echo") >&5
3892 (eval "$ac_compile") 2>&5
3893 ac_status=$?
3894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); }; then
3896 for ac_file in conftest.o conftest.obj conftest.*; do
3897 test -f "$ac_file" || continue;
3898 case $ac_file in
3899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3900 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3901 break;;
3902 esac
3903done
3904else
3905 $as_echo "$as_me: failed program was:" >&5
3906sed 's/^/| /' conftest.$ac_ext >&5
3907
3908{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3909$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3910{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3911See \`config.log' for more details." >&5
3912$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3913See \`config.log' for more details." >&2;}
3914 { (exit 1); exit 1; }; }; }
3915fi
3916
3917rm -f conftest.$ac_cv_objext conftest.$ac_ext
3918fi
3919{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3920$as_echo "$ac_cv_objext" >&6; }
3921OBJEXT=$ac_cv_objext
3922ac_objext=$OBJEXT
3923{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3924$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3925if test "${ac_cv_c_compiler_gnu+set}" = set; then
3926 $as_echo_n "(cached) " >&6
3927else
3928 cat >conftest.$ac_ext <<_ACEOF
3929/* confdefs.h. */
3930_ACEOF
3931cat confdefs.h >>conftest.$ac_ext
3932cat >>conftest.$ac_ext <<_ACEOF
3933/* end confdefs.h. */
3934
3935int
3936main ()
3937{
3938#ifndef __GNUC__
3939 choke me
3940#endif
3941
3942 ;
3943 return 0;
3944}
3945_ACEOF
3946rm -f conftest.$ac_objext
3947if { (ac_try="$ac_compile"
3948case "(($ac_try" in
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3951esac
3952eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3953$as_echo "$ac_try_echo") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3955 ac_status=$?
3956 grep -v '^ *+' conftest.er1 >conftest.err
3957 rm -f conftest.er1
3958 cat conftest.err >&5
3959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.$ac_objext; then
3964 ac_compiler_gnu=yes
3965else
3966 $as_echo "$as_me: failed program was:" >&5
3967sed 's/^/| /' conftest.$ac_ext >&5
3968
3969 ac_compiler_gnu=no
3970fi
3971
3972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973ac_cv_c_compiler_gnu=$ac_compiler_gnu
3974
3975fi
3976{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3977$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3978if test $ac_compiler_gnu = yes; then
3979 GCC=yes
3980else
3981 GCC=
3982fi
3983ac_test_CFLAGS=${CFLAGS+set}
3984ac_save_CFLAGS=$CFLAGS
3985{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3986$as_echo_n "checking whether $CC accepts -g... " >&6; }
3987if test "${ac_cv_prog_cc_g+set}" = set; then
3988 $as_echo_n "(cached) " >&6
3989else
3990 ac_save_c_werror_flag=$ac_c_werror_flag
3991 ac_c_werror_flag=yes
3992 ac_cv_prog_cc_g=no
3993 CFLAGS="-g"
3994 cat >conftest.$ac_ext <<_ACEOF
3995/* confdefs.h. */
3996_ACEOF
3997cat confdefs.h >>conftest.$ac_ext
3998cat >>conftest.$ac_ext <<_ACEOF
3999/* end confdefs.h. */
4000
4001int
4002main ()
4003{
4004
4005 ;
4006 return 0;
4007}
4008_ACEOF
4009rm -f conftest.$ac_objext
4010if { (ac_try="$ac_compile"
4011case "(($ac_try" in
4012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013 *) ac_try_echo=$ac_try;;
4014esac
4015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4016$as_echo "$ac_try_echo") >&5
4017 (eval "$ac_compile") 2>conftest.er1
4018 ac_status=$?
4019 grep -v '^ *+' conftest.er1 >conftest.err
4020 rm -f conftest.er1
4021 cat conftest.err >&5
4022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023 (exit $ac_status); } && {
4024 test -z "$ac_c_werror_flag" ||
4025 test ! -s conftest.err
4026 } && test -s conftest.$ac_objext; then
4027 ac_cv_prog_cc_g=yes
4028else
4029 $as_echo "$as_me: failed program was:" >&5
4030sed 's/^/| /' conftest.$ac_ext >&5
4031
4032 CFLAGS=""
4033 cat >conftest.$ac_ext <<_ACEOF
4034/* confdefs.h. */
4035_ACEOF
4036cat confdefs.h >>conftest.$ac_ext
4037cat >>conftest.$ac_ext <<_ACEOF
4038/* end confdefs.h. */
4039
4040int
4041main ()
4042{
4043
4044 ;
4045 return 0;
4046}
4047_ACEOF
4048rm -f conftest.$ac_objext
4049if { (ac_try="$ac_compile"
4050case "(($ac_try" in
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4053esac
4054eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4055$as_echo "$ac_try_echo") >&5
4056 (eval "$ac_compile") 2>conftest.er1
4057 ac_status=$?
4058 grep -v '^ *+' conftest.er1 >conftest.err
4059 rm -f conftest.er1
4060 cat conftest.err >&5
4061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); } && {
4063 test -z "$ac_c_werror_flag" ||
4064 test ! -s conftest.err
4065 } && test -s conftest.$ac_objext; then
4066 :
4067else
4068 $as_echo "$as_me: failed program was:" >&5
4069sed 's/^/| /' conftest.$ac_ext >&5
4070
4071 ac_c_werror_flag=$ac_save_c_werror_flag
4072 CFLAGS="-g"
4073 cat >conftest.$ac_ext <<_ACEOF
4074/* confdefs.h. */
4075_ACEOF
4076cat confdefs.h >>conftest.$ac_ext
4077cat >>conftest.$ac_ext <<_ACEOF
4078/* end confdefs.h. */
4079
4080int
4081main ()
4082{
4083
4084 ;
4085 return 0;
4086}
4087_ACEOF
4088rm -f conftest.$ac_objext
4089if { (ac_try="$ac_compile"
4090case "(($ac_try" in
4091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4092 *) ac_try_echo=$ac_try;;
4093esac
4094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4095$as_echo "$ac_try_echo") >&5
4096 (eval "$ac_compile") 2>conftest.er1
4097 ac_status=$?
4098 grep -v '^ *+' conftest.er1 >conftest.err
4099 rm -f conftest.er1
4100 cat conftest.err >&5
4101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4102 (exit $ac_status); } && {
4103 test -z "$ac_c_werror_flag" ||
4104 test ! -s conftest.err
4105 } && test -s conftest.$ac_objext; then
4106 ac_cv_prog_cc_g=yes
4107else
4108 $as_echo "$as_me: failed program was:" >&5
4109sed 's/^/| /' conftest.$ac_ext >&5
4110
4111
4112fi
4113
4114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
4121 ac_c_werror_flag=$ac_save_c_werror_flag
4122fi
4123{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4124$as_echo "$ac_cv_prog_cc_g" >&6; }
4125if test "$ac_test_CFLAGS" = set; then
4126 CFLAGS=$ac_save_CFLAGS
4127elif test $ac_cv_prog_cc_g = yes; then
4128 if test "$GCC" = yes; then
4129 CFLAGS="-g -O2"
4130 else
4131 CFLAGS="-g"
4132 fi
4133else
4134 if test "$GCC" = yes; then
4135 CFLAGS="-O2"
4136 else
4137 CFLAGS=
4138 fi
4139fi
4140{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4141$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4142if test "${ac_cv_prog_cc_c89+set}" = set; then
4143 $as_echo_n "(cached) " >&6
4144else
4145 ac_cv_prog_cc_c89=no
4146ac_save_CC=$CC
4147cat >conftest.$ac_ext <<_ACEOF
4148/* confdefs.h. */
4149_ACEOF
4150cat confdefs.h >>conftest.$ac_ext
4151cat >>conftest.$ac_ext <<_ACEOF
4152/* end confdefs.h. */
4153#include <stdarg.h>
4154#include <stdio.h>
4155#include <sys/types.h>
4156#include <sys/stat.h>
4157/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4158struct buf { int x; };
4159FILE * (*rcsopen) (struct buf *, struct stat *, int);
4160static char *e (p, i)
4161 char **p;
4162 int i;
4163{
4164 return p[i];
4165}
4166static char *f (char * (*g) (char **, int), char **p, ...)
4167{
4168 char *s;
4169 va_list v;
4170 va_start (v,p);
4171 s = g (p, va_arg (v,int));
4172 va_end (v);
4173 return s;
4174}
4175
4176/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4177 function prototypes and stuff, but not '\xHH' hex character constants.
4178 These don't provoke an error unfortunately, instead are silently treated
4179 as 'x'. The following induces an error, until -std is added to get
4180 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4181 array size at least. It's necessary to write '\x00'==0 to get something
4182 that's true only with -std. */
4183int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4184
4185/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4186 inside strings and character constants. */
4187#define FOO(x) 'x'
4188int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4189
4190int test (int i, double x);
4191struct s1 {int (*f) (int a);};
4192struct s2 {int (*f) (double a);};
4193int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4194int argc;
4195char **argv;
4196int
4197main ()
4198{
4199return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4200 ;
4201 return 0;
4202}
4203_ACEOF
4204for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4205 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4206do
4207 CC="$ac_save_CC $ac_arg"
4208 rm -f conftest.$ac_objext
4209if { (ac_try="$ac_compile"
4210case "(($ac_try" in
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4213esac
4214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4215$as_echo "$ac_try_echo") >&5
4216 (eval "$ac_compile") 2>conftest.er1
4217 ac_status=$?
4218 grep -v '^ *+' conftest.er1 >conftest.err
4219 rm -f conftest.er1
4220 cat conftest.err >&5
4221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4222 (exit $ac_status); } && {
4223 test -z "$ac_c_werror_flag" ||
4224 test ! -s conftest.err
4225 } && test -s conftest.$ac_objext; then
4226 ac_cv_prog_cc_c89=$ac_arg
4227else
4228 $as_echo "$as_me: failed program was:" >&5
4229sed 's/^/| /' conftest.$ac_ext >&5
4230
4231
4232fi
4233
4234rm -f core conftest.err conftest.$ac_objext
4235 test "x$ac_cv_prog_cc_c89" != "xno" && break
4236done
4237rm -f conftest.$ac_ext
4238CC=$ac_save_CC
4239
4240fi
4241# AC_CACHE_VAL
4242case "x$ac_cv_prog_cc_c89" in
4243 x)
4244 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4245$as_echo "none needed" >&6; } ;;
4246 xno)
4247 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4248$as_echo "unsupported" >&6; } ;;
4249 *)
4250 CC="$CC $ac_cv_prog_cc_c89"
4251 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4252$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4253esac
4254
4255
4256ac_ext=c
4257ac_cpp='$CPP $CPPFLAGS'
4258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4260ac_compiler_gnu=$ac_cv_c_compiler_gnu
4261DEPDIR="${am__leading_dot}deps"
4262
4263ac_config_commands="$ac_config_commands depfiles"
4264
4265
4266am_make=${MAKE-make}
4267cat > confinc << 'END'
4268am__doit:
4269 @echo this is the am__doit target
4270.PHONY: am__doit
4271END
4272# If we don't find an include directive, just comment out the code.
4273{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4274$as_echo_n "checking for style of include used by $am_make... " >&6; }
4275am__include="#"
4276am__quote=
4277_am_result=none
4278# First try GNU make style include.
4279echo "include confinc" > confmf
4280# Ignore all kinds of additional output from `make'.
4281case `$am_make -s -f confmf 2> /dev/null` in #(
4282*the\ am__doit\ target*)
4283 am__include=include
4284 am__quote=
4285 _am_result=GNU
4286 ;;
4287esac
4288# Now try BSD make style include.
4289if test "$am__include" = "#"; then
4290 echo '.include "confinc"' > confmf
4291 case `$am_make -s -f confmf 2> /dev/null` in #(
4292 *the\ am__doit\ target*)
4293 am__include=.include
4294 am__quote="\""
4295 _am_result=BSD
4296 ;;
4297 esac
4298fi
4299
4300
4301{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4302$as_echo "$_am_result" >&6; }
4303rm -f confinc confmf
4304
4305# Check whether --enable-dependency-tracking was given.
4306if test "${enable_dependency_tracking+set}" = set; then
4307 enableval=$enable_dependency_tracking;
4308fi
4309
4310if test "x$enable_dependency_tracking" != xno; then
4311 am_depcomp="$ac_aux_dir/depcomp"
4312 AMDEPBACKSLASH='\'
4313fi
4314 if test "x$enable_dependency_tracking" != xno; then
4315 AMDEP_TRUE=
4316 AMDEP_FALSE='#'
4317else
4318 AMDEP_TRUE='#'
4319 AMDEP_FALSE=
4320fi
4321
4322
4323
4324depcc="$CC" am_compiler_list=
4325
4326{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4327$as_echo_n "checking dependency style of $depcc... " >&6; }
4328if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4329 $as_echo_n "(cached) " >&6
4330else
4331 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4332 # We make a subdir and do the tests there. Otherwise we can end up
4333 # making bogus files that we don't know about and never remove. For
4334 # instance it was reported that on HP-UX the gcc test will end up
4335 # making a dummy file named `D' -- because `-MD' means `put the output
4336 # in D'.
4337 mkdir conftest.dir
4338 # Copy depcomp to subdir because otherwise we won't find it if we're
4339 # using a relative directory.
4340 cp "$am_depcomp" conftest.dir
4341 cd conftest.dir
4342 # We will build objects and dependencies in a subdirectory because
4343 # it helps to detect inapplicable dependency modes. For instance
4344 # both Tru64's cc and ICC support -MD to output dependencies as a
4345 # side effect of compilation, but ICC will put the dependencies in
4346 # the current directory while Tru64 will put them in the object
4347 # directory.
4348 mkdir sub
4349
4350 am_cv_CC_dependencies_compiler_type=none
4351 if test "$am_compiler_list" = ""; then
4352 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4353 fi
4354 am__universal=false
4355 case " $depcc " in #(
4356 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4357 esac
4358
4359 for depmode in $am_compiler_list; do
4360 # Setup a source with many dependencies, because some compilers
4361 # like to wrap large dependency lists on column 80 (with \), and
4362 # we should not choose a depcomp mode which is confused by this.
4363 #
4364 # We need to recreate these files for each test, as the compiler may
4365 # overwrite some of them when testing with obscure command lines.
4366 # This happens at least with the AIX C compiler.
4367 : > sub/conftest.c
4368 for i in 1 2 3 4 5 6; do
4369 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4370 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4371 # Solaris 8's {/usr,}/bin/sh.
4372 touch sub/conftst$i.h
4373 done
4374 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4375
4376 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4377 # mode. It turns out that the SunPro C++ compiler does not properly
4378 # handle `-M -o', and we need to detect this. Also, some Intel
4379 # versions had trouble with output in subdirs
4380 am__obj=sub/conftest.${OBJEXT-o}
4381 am__minus_obj="-o $am__obj"
4382 case $depmode in
4383 gcc)
4384 # This depmode causes a compiler race in universal mode.
4385 test "$am__universal" = false || continue
4386 ;;
4387 nosideeffect)
4388 # after this tag, mechanisms are not by side-effect, so they'll
4389 # only be used when explicitly requested
4390 if test "x$enable_dependency_tracking" = xyes; then
4391 continue
4392 else
4393 break
4394 fi
4395 ;;
4396 msvisualcpp | msvcmsys)
4397 # This compiler won't grok `-c -o', but also, the minuso test has
4398 # not run yet. These depmodes are late enough in the game, and
4399 # so weak that their functioning should not be impacted.
4400 am__obj=conftest.${OBJEXT-o}
4401 am__minus_obj=
4402 ;;
4403 none) break ;;
4404 esac
4405 if depmode=$depmode \
4406 source=sub/conftest.c object=$am__obj \
4407 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4408 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4409 >/dev/null 2>conftest.err &&
4410 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4412 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4414 # icc doesn't choke on unknown options, it will just issue warnings
4415 # or remarks (even with -Werror). So we grep stderr for any message
4416 # that says an option was ignored or not supported.
4417 # When given -MP, icc 7.0 and 7.1 complain thusly:
4418 # icc: Command line warning: ignoring option '-M'; no argument required
4419 # The diagnosis changed in icc 8.0:
4420 # icc: Command line remark: option '-MP' not supported
4421 if (grep 'ignoring option' conftest.err ||
4422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4423 am_cv_CC_dependencies_compiler_type=$depmode
4424 break
4425 fi
4426 fi
4427 done
4428
4429 cd ..
4430 rm -rf conftest.dir
4431else
4432 am_cv_CC_dependencies_compiler_type=none
4433fi
4434
4435fi
4436{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4437$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4438CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4439
4440 if
4441 test "x$enable_dependency_tracking" != xno \
4442 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4443 am__fastdepCC_TRUE=
4444 am__fastdepCC_FALSE='#'
4445else
4446 am__fastdepCC_TRUE='#'
4447 am__fastdepCC_FALSE=
4448fi
4449
4450
4451 case $ac_cv_prog_cc_stdc in
4452 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
4453 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4454$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4455if test "${ac_cv_prog_cc_c99+set}" = set; then
4456 $as_echo_n "(cached) " >&6
4457else
4458 ac_cv_prog_cc_c99=no
4459ac_save_CC=$CC
4460cat >conftest.$ac_ext <<_ACEOF
4461/* confdefs.h. */
4462_ACEOF
4463cat confdefs.h >>conftest.$ac_ext
4464cat >>conftest.$ac_ext <<_ACEOF
4465/* end confdefs.h. */
4466#include <stdarg.h>
4467#include <stdbool.h>
4468#include <stdlib.h>
4469#include <wchar.h>
4470#include <stdio.h>
4471
4472// Check varargs macros. These examples are taken from C99 6.10.3.5.
4473#define debug(...) fprintf (stderr, __VA_ARGS__)
4474#define showlist(...) puts (#__VA_ARGS__)
4475#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4476static void
4477test_varargs_macros (void)
4478{
4479 int x = 1234;
4480 int y = 5678;
4481 debug ("Flag");
4482 debug ("X = %d\n", x);
4483 showlist (The first, second, and third items.);
4484 report (x>y, "x is %d but y is %d", x, y);
4485}
4486
4487// Check long long types.
4488#define BIG64 18446744073709551615ull
4489#define BIG32 4294967295ul
4490#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4491#if !BIG_OK
4492 your preprocessor is broken;
4493#endif
4494#if BIG_OK
4495#else
4496 your preprocessor is broken;
4497#endif
4498static long long int bignum = -9223372036854775807LL;
4499static unsigned long long int ubignum = BIG64;
4500
4501struct incomplete_array
4502{
4503 int datasize;
4504 double data[];
4505};
4506
4507struct named_init {
4508 int number;
4509 const wchar_t *name;
4510 double average;
4511};
4512
4513typedef const char *ccp;
4514
4515static inline int
4516test_restrict (ccp restrict text)
4517{
4518 // See if C++-style comments work.
4519 // Iterate through items via the restricted pointer.
4520 // Also check for declarations in for loops.
4521 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4522 continue;
4523 return 0;
4524}
4525
4526// Check varargs and va_copy.
4527static void
4528test_varargs (const char *format, ...)
4529{
4530 va_list args;
4531 va_start (args, format);
4532 va_list args_copy;
4533 va_copy (args_copy, args);
4534
4535 const char *str;
4536 int number;
4537 float fnumber;
4538
4539 while (*format)
4540 {
4541 switch (*format++)
4542 {
4543 case 's': // string
4544 str = va_arg (args_copy, const char *);
4545 break;
4546 case 'd': // int
4547 number = va_arg (args_copy, int);
4548 break;
4549 case 'f': // float
4550 fnumber = va_arg (args_copy, double);
4551 break;
4552 default:
4553 break;
4554 }
4555 }
4556 va_end (args_copy);
4557 va_end (args);
4558}
4559
4560int
4561main ()
4562{
4563
4564 // Check bool.
4565 _Bool success = false;
4566
4567 // Check restrict.
4568 if (test_restrict ("String literal") == 0)
4569 success = true;
4570 char *restrict newvar = "Another string";
4571
4572 // Check varargs.
4573 test_varargs ("s, d' f .", "string", 65, 34.234);
4574 test_varargs_macros ();
4575
4576 // Check flexible array members.
4577 struct incomplete_array *ia =
4578 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4579 ia->datasize = 10;
4580 for (int i = 0; i < ia->datasize; ++i)
4581 ia->data[i] = i * 1.234;
4582
4583 // Check named initializers.
4584 struct named_init ni = {
4585 .number = 34,
4586 .name = L"Test wide string",
4587 .average = 543.34343,
4588 };
4589
4590 ni.number = 58;
4591
4592 int dynamic_array[ni.number];
4593 dynamic_array[ni.number - 1] = 543;
4594
4595 // work around unused variable warnings
4596 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4597 || dynamic_array[ni.number - 1] != 543);
4598
4599 ;
4600 return 0;
4601}
4602_ACEOF
4603for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4604do
4605 CC="$ac_save_CC $ac_arg"
4606 rm -f conftest.$ac_objext
4607if { (ac_try="$ac_compile"
4608case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611esac
4612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4613$as_echo "$ac_try_echo") >&5
4614 (eval "$ac_compile") 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } && {
4621 test -z "$ac_c_werror_flag" ||
4622 test ! -s conftest.err
4623 } && test -s conftest.$ac_objext; then
4624 ac_cv_prog_cc_c99=$ac_arg
4625else
4626 $as_echo "$as_me: failed program was:" >&5
4627sed 's/^/| /' conftest.$ac_ext >&5
4628
4629
4630fi
4631
4632rm -f core conftest.err conftest.$ac_objext
4633 test "x$ac_cv_prog_cc_c99" != "xno" && break
4634done
4635rm -f conftest.$ac_ext
4636CC=$ac_save_CC
4637
4638fi
4639# AC_CACHE_VAL
4640case "x$ac_cv_prog_cc_c99" in
4641 x)
4642 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4643$as_echo "none needed" >&6; } ;;
4644 xno)
4645 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4646$as_echo "unsupported" >&6; } ;;
4647 *)
4648 CC="$CC $ac_cv_prog_cc_c99"
4649 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4650$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4651esac
4652if test "x$ac_cv_prog_cc_c99" != xno; then
4653 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4654else
4655 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4656$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4657if test "${ac_cv_prog_cc_c89+set}" = set; then
4658 $as_echo_n "(cached) " >&6
4659else
4660 ac_cv_prog_cc_c89=no
4661ac_save_CC=$CC
4662cat >conftest.$ac_ext <<_ACEOF
4663/* confdefs.h. */
4664_ACEOF
4665cat confdefs.h >>conftest.$ac_ext
4666cat >>conftest.$ac_ext <<_ACEOF
4667/* end confdefs.h. */
4668#include <stdarg.h>
4669#include <stdio.h>
4670#include <sys/types.h>
4671#include <sys/stat.h>
4672/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4673struct buf { int x; };
4674FILE * (*rcsopen) (struct buf *, struct stat *, int);
4675static char *e (p, i)
4676 char **p;
4677 int i;
4678{
4679 return p[i];
4680}
4681static char *f (char * (*g) (char **, int), char **p, ...)
4682{
4683 char *s;
4684 va_list v;
4685 va_start (v,p);
4686 s = g (p, va_arg (v,int));
4687 va_end (v);
4688 return s;
4689}
4690
4691/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4692 function prototypes and stuff, but not '\xHH' hex character constants.
4693 These don't provoke an error unfortunately, instead are silently treated
4694 as 'x'. The following induces an error, until -std is added to get
4695 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4696 array size at least. It's necessary to write '\x00'==0 to get something
4697 that's true only with -std. */
4698int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4699
4700/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4701 inside strings and character constants. */
4702#define FOO(x) 'x'
4703int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4704
4705int test (int i, double x);
4706struct s1 {int (*f) (int a);};
4707struct s2 {int (*f) (double a);};
4708int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4709int argc;
4710char **argv;
4711int
4712main ()
4713{
4714return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4715 ;
4716 return 0;
4717}
4718_ACEOF
4719for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4720 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4721do
4722 CC="$ac_save_CC $ac_arg"
4723 rm -f conftest.$ac_objext
4724if { (ac_try="$ac_compile"
4725case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728esac
4729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4730$as_echo "$ac_try_echo") >&5
4731 (eval "$ac_compile") 2>conftest.er1
4732 ac_status=$?
4733 grep -v '^ *+' conftest.er1 >conftest.err
4734 rm -f conftest.er1
4735 cat conftest.err >&5
4736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4737 (exit $ac_status); } && {
4738 test -z "$ac_c_werror_flag" ||
4739 test ! -s conftest.err
4740 } && test -s conftest.$ac_objext; then
4741 ac_cv_prog_cc_c89=$ac_arg
4742else
4743 $as_echo "$as_me: failed program was:" >&5
4744sed 's/^/| /' conftest.$ac_ext >&5
4745
4746
4747fi
4748
4749rm -f core conftest.err conftest.$ac_objext
4750 test "x$ac_cv_prog_cc_c89" != "xno" && break
4751done
4752rm -f conftest.$ac_ext
4753CC=$ac_save_CC
4754
4755fi
4756# AC_CACHE_VAL
4757case "x$ac_cv_prog_cc_c89" in
4758 x)
4759 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4760$as_echo "none needed" >&6; } ;;
4761 xno)
4762 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4763$as_echo "unsupported" >&6; } ;;
4764 *)
4765 CC="$CC $ac_cv_prog_cc_c89"
4766 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4767$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4768esac
4769if test "x$ac_cv_prog_cc_c89" != xno; then
4770 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4771else
4772 ac_cv_prog_cc_stdc=no
4773fi
4774
4775
4776fi
4777
4778 ;;
4779esac
4780 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4781$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4782 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4783 $as_echo_n "(cached) " >&6
4784fi
4785
4786 case $ac_cv_prog_cc_stdc in
4787 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4788$as_echo "unsupported" >&6; } ;;
4789 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4790$as_echo "none needed" >&6; } ;;
4791 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4792$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4793esac
4794
4795
4796ac_ext=c
4797ac_cpp='$CPP $CPPFLAGS'
4798ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4799ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4800ac_compiler_gnu=$ac_cv_c_compiler_gnu
4801{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4802$as_echo_n "checking how to run the C preprocessor... " >&6; }
4803# On Suns, sometimes $CPP names a directory.
4804if test -n "$CPP" && test -d "$CPP"; then
4805 CPP=
4806fi
4807if test -z "$CPP"; then
4808 if test "${ac_cv_prog_CPP+set}" = set; then
4809 $as_echo_n "(cached) " >&6
4810else
4811 # Double quotes because CPP needs to be expanded
4812 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4813 do
4814 ac_preproc_ok=false
4815for ac_c_preproc_warn_flag in '' yes
4816do
4817 # Use a header file that comes with gcc, so configuring glibc
4818 # with a fresh cross-compiler works.
4819 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4820 # <limits.h> exists even on freestanding compilers.
4821 # On the NeXT, cc -E runs the code through the compiler's parser,
4822 # not just through cpp. "Syntax error" is here to catch this case.
4823 cat >conftest.$ac_ext <<_ACEOF
4824/* confdefs.h. */
4825_ACEOF
4826cat confdefs.h >>conftest.$ac_ext
4827cat >>conftest.$ac_ext <<_ACEOF
4828/* end confdefs.h. */
4829#ifdef __STDC__
4830# include <limits.h>
4831#else
4832# include <assert.h>
4833#endif
4834 Syntax error
4835_ACEOF
4836if { (ac_try="$ac_cpp conftest.$ac_ext"
4837case "(($ac_try" in
4838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4839 *) ac_try_echo=$ac_try;;
4840esac
4841eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4842$as_echo "$ac_try_echo") >&5
4843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } >/dev/null && {
4850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4852 }; then
4853 :
4854else
4855 $as_echo "$as_me: failed program was:" >&5
4856sed 's/^/| /' conftest.$ac_ext >&5
4857
4858 # Broken: fails on valid input.
4859continue
4860fi
4861
4862rm -f conftest.err conftest.$ac_ext
4863
4864 # OK, works on sane cases. Now check whether nonexistent headers
4865 # can be detected and how.
4866 cat >conftest.$ac_ext <<_ACEOF
4867/* confdefs.h. */
4868_ACEOF
4869cat confdefs.h >>conftest.$ac_ext
4870cat >>conftest.$ac_ext <<_ACEOF
4871/* end confdefs.h. */
4872#include <ac_nonexistent.h>
4873_ACEOF
4874if { (ac_try="$ac_cpp conftest.$ac_ext"
4875case "(($ac_try" in
4876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4877 *) ac_try_echo=$ac_try;;
4878esac
4879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4880$as_echo "$ac_try_echo") >&5
4881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4882 ac_status=$?
4883 grep -v '^ *+' conftest.er1 >conftest.err
4884 rm -f conftest.er1
4885 cat conftest.err >&5
4886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); } >/dev/null && {
4888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4889 test ! -s conftest.err
4890 }; then
4891 # Broken: success on invalid input.
4892continue
4893else
4894 $as_echo "$as_me: failed program was:" >&5
4895sed 's/^/| /' conftest.$ac_ext >&5
4896
4897 # Passes both tests.
4898ac_preproc_ok=:
4899break
4900fi
4901
4902rm -f conftest.err conftest.$ac_ext
4903
4904done
4905# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4906rm -f conftest.err conftest.$ac_ext
4907if $ac_preproc_ok; then
4908 break
4909fi
4910
4911 done
4912 ac_cv_prog_CPP=$CPP
4913
4914fi
4915 CPP=$ac_cv_prog_CPP
4916else
4917 ac_cv_prog_CPP=$CPP
4918fi
4919{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4920$as_echo "$CPP" >&6; }
4921ac_preproc_ok=false
4922for ac_c_preproc_warn_flag in '' yes
4923do
4924 # Use a header file that comes with gcc, so configuring glibc
4925 # with a fresh cross-compiler works.
4926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927 # <limits.h> exists even on freestanding compilers.
4928 # On the NeXT, cc -E runs the code through the compiler's parser,
4929 # not just through cpp. "Syntax error" is here to catch this case.
4930 cat >conftest.$ac_ext <<_ACEOF
4931/* confdefs.h. */
4932_ACEOF
4933cat confdefs.h >>conftest.$ac_ext
4934cat >>conftest.$ac_ext <<_ACEOF
4935/* end confdefs.h. */
4936#ifdef __STDC__
4937# include <limits.h>
4938#else
4939# include <assert.h>
4940#endif
4941 Syntax error
4942_ACEOF
4943if { (ac_try="$ac_cpp conftest.$ac_ext"
4944case "(($ac_try" in
4945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4946 *) ac_try_echo=$ac_try;;
4947esac
4948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4949$as_echo "$ac_try_echo") >&5
4950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null && {
4957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4958 test ! -s conftest.err
4959 }; then
4960 :
4961else
4962 $as_echo "$as_me: failed program was:" >&5
4963sed 's/^/| /' conftest.$ac_ext >&5
4964
4965 # Broken: fails on valid input.
4966continue
4967fi
4968
4969rm -f conftest.err conftest.$ac_ext
4970
4971 # OK, works on sane cases. Now check whether nonexistent headers
4972 # can be detected and how.
4973 cat >conftest.$ac_ext <<_ACEOF
4974/* confdefs.h. */
4975_ACEOF
4976cat confdefs.h >>conftest.$ac_ext
4977cat >>conftest.$ac_ext <<_ACEOF
4978/* end confdefs.h. */
4979#include <ac_nonexistent.h>
4980_ACEOF
4981if { (ac_try="$ac_cpp conftest.$ac_ext"
4982case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985esac
4986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4987$as_echo "$ac_try_echo") >&5
4988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4989 ac_status=$?
4990 grep -v '^ *+' conftest.er1 >conftest.err
4991 rm -f conftest.er1
4992 cat conftest.err >&5
4993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); } >/dev/null && {
4995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4996 test ! -s conftest.err
4997 }; then
4998 # Broken: success on invalid input.
4999continue
5000else
5001 $as_echo "$as_me: failed program was:" >&5
5002sed 's/^/| /' conftest.$ac_ext >&5
5003
5004 # Passes both tests.
5005ac_preproc_ok=:
5006break
5007fi
5008
5009rm -f conftest.err conftest.$ac_ext
5010
5011done
5012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5013rm -f conftest.err conftest.$ac_ext
5014if $ac_preproc_ok; then
5015 :
5016else
5017 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5018$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5019{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5020See \`config.log' for more details." >&5
5021$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5022See \`config.log' for more details." >&2;}
5023 { (exit 1); exit 1; }; }; }
5024fi
5025
5026ac_ext=c
5027ac_cpp='$CPP $CPPFLAGS'
5028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5030ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031
5032{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5033$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5034if test "${ac_cv_path_SED+set}" = set; then
5035 $as_echo_n "(cached) " >&6
5036else
5037 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5038 for ac_i in 1 2 3 4 5 6 7; do
5039 ac_script="$ac_script$as_nl$ac_script"
5040 done
5041 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5042 $as_unset ac_script || ac_script=
5043 if test -z "$SED"; then
5044 ac_path_SED_found=false
5045 # Loop through the user's path and test for each of PROGNAME-LIST
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047for as_dir in $PATH
5048do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_prog in sed gsed; do
5052 for ac_exec_ext in '' $ac_executable_extensions; do
5053 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5054 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5055# Check for GNU ac_path_SED and select it if it is found.
5056 # Check for GNU $ac_path_SED
5057case `"$ac_path_SED" --version 2>&1` in
5058*GNU*)
5059 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5060*)
5061 ac_count=0
5062 $as_echo_n 0123456789 >"conftest.in"
5063 while :
5064 do
5065 cat "conftest.in" "conftest.in" >"conftest.tmp"
5066 mv "conftest.tmp" "conftest.in"
5067 cp "conftest.in" "conftest.nl"
5068 $as_echo '' >> "conftest.nl"
5069 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5070 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5071 ac_count=`expr $ac_count + 1`
5072 if test $ac_count -gt ${ac_path_SED_max-0}; then
5073 # Best one so far, save it but keep looking for a better one
5074 ac_cv_path_SED="$ac_path_SED"
5075 ac_path_SED_max=$ac_count
5076 fi
5077 # 10*(2^10) chars as input seems more than enough
5078 test $ac_count -gt 10 && break
5079 done
5080 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5081esac
5082
5083 $ac_path_SED_found && break 3
5084 done
5085 done
5086done
5087IFS=$as_save_IFS
5088 if test -z "$ac_cv_path_SED"; then
5089 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5090$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5091 { (exit 1); exit 1; }; }
5092 fi
5093else
5094 ac_cv_path_SED=$SED
5095fi
5096
5097fi
5098{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5099$as_echo "$ac_cv_path_SED" >&6; }
5100 SED="$ac_cv_path_SED"
5101 rm -f conftest.sed
5102
5103test -z "$SED" && SED=sed
5104Xsed="$SED -e 1s/^X//"
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5117$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5118if test "${ac_cv_path_GREP+set}" = set; then
5119 $as_echo_n "(cached) " >&6
5120else
5121 if test -z "$GREP"; then
5122 ac_path_GREP_found=false
5123 # Loop through the user's path and test for each of PROGNAME-LIST
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5126do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_prog in grep ggrep; do
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5132 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5133# Check for GNU ac_path_GREP and select it if it is found.
5134 # Check for GNU $ac_path_GREP
5135case `"$ac_path_GREP" --version 2>&1` in
5136*GNU*)
5137 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5138*)
5139 ac_count=0
5140 $as_echo_n 0123456789 >"conftest.in"
5141 while :
5142 do
5143 cat "conftest.in" "conftest.in" >"conftest.tmp"
5144 mv "conftest.tmp" "conftest.in"
5145 cp "conftest.in" "conftest.nl"
5146 $as_echo 'GREP' >> "conftest.nl"
5147 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5148 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5149 ac_count=`expr $ac_count + 1`
5150 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5151 # Best one so far, save it but keep looking for a better one
5152 ac_cv_path_GREP="$ac_path_GREP"
5153 ac_path_GREP_max=$ac_count
5154 fi
5155 # 10*(2^10) chars as input seems more than enough
5156 test $ac_count -gt 10 && break
5157 done
5158 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5159esac
5160
5161 $ac_path_GREP_found && break 3
5162 done
5163 done
5164done
5165IFS=$as_save_IFS
5166 if test -z "$ac_cv_path_GREP"; then
5167 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5168$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5169 { (exit 1); exit 1; }; }
5170 fi
5171else
5172 ac_cv_path_GREP=$GREP
5173fi
5174
5175fi
5176{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5177$as_echo "$ac_cv_path_GREP" >&6; }
5178 GREP="$ac_cv_path_GREP"
5179
5180
5181{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5182$as_echo_n "checking for egrep... " >&6; }
5183if test "${ac_cv_path_EGREP+set}" = set; then
5184 $as_echo_n "(cached) " >&6
5185else
5186 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5187 then ac_cv_path_EGREP="$GREP -E"
5188 else
5189 if test -z "$EGREP"; then
5190 ac_path_EGREP_found=false
5191 # Loop through the user's path and test for each of PROGNAME-LIST
5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5194do
5195 IFS=$as_save_IFS
5196 test -z "$as_dir" && as_dir=.
5197 for ac_prog in egrep; do
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5200 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5201# Check for GNU ac_path_EGREP and select it if it is found.
5202 # Check for GNU $ac_path_EGREP
5203case `"$ac_path_EGREP" --version 2>&1` in
5204*GNU*)
5205 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5206*)
5207 ac_count=0
5208 $as_echo_n 0123456789 >"conftest.in"
5209 while :
5210 do
5211 cat "conftest.in" "conftest.in" >"conftest.tmp"
5212 mv "conftest.tmp" "conftest.in"
5213 cp "conftest.in" "conftest.nl"
5214 $as_echo 'EGREP' >> "conftest.nl"
5215 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5216 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5217 ac_count=`expr $ac_count + 1`
5218 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5219 # Best one so far, save it but keep looking for a better one
5220 ac_cv_path_EGREP="$ac_path_EGREP"
5221 ac_path_EGREP_max=$ac_count
5222 fi
5223 # 10*(2^10) chars as input seems more than enough
5224 test $ac_count -gt 10 && break
5225 done
5226 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5227esac
5228
5229 $ac_path_EGREP_found && break 3
5230 done
5231 done
5232done
5233IFS=$as_save_IFS
5234 if test -z "$ac_cv_path_EGREP"; then
5235 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5236$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5237 { (exit 1); exit 1; }; }
5238 fi
5239else
5240 ac_cv_path_EGREP=$EGREP
5241fi
5242
5243 fi
5244fi
5245{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5246$as_echo "$ac_cv_path_EGREP" >&6; }
5247 EGREP="$ac_cv_path_EGREP"
5248
5249
5250{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5251$as_echo_n "checking for fgrep... " >&6; }
5252if test "${ac_cv_path_FGREP+set}" = set; then
5253 $as_echo_n "(cached) " >&6
5254else
5255 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5256 then ac_cv_path_FGREP="$GREP -F"
5257 else
5258 if test -z "$FGREP"; then
5259 ac_path_FGREP_found=false
5260 # Loop through the user's path and test for each of PROGNAME-LIST
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5263do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_prog in fgrep; do
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5269 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5270# Check for GNU ac_path_FGREP and select it if it is found.
5271 # Check for GNU $ac_path_FGREP
5272case `"$ac_path_FGREP" --version 2>&1` in
5273*GNU*)
5274 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5275*)
5276 ac_count=0
5277 $as_echo_n 0123456789 >"conftest.in"
5278 while :
5279 do
5280 cat "conftest.in" "conftest.in" >"conftest.tmp"
5281 mv "conftest.tmp" "conftest.in"
5282 cp "conftest.in" "conftest.nl"
5283 $as_echo 'FGREP' >> "conftest.nl"
5284 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5285 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5286 ac_count=`expr $ac_count + 1`
5287 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5288 # Best one so far, save it but keep looking for a better one
5289 ac_cv_path_FGREP="$ac_path_FGREP"
5290 ac_path_FGREP_max=$ac_count
5291 fi
5292 # 10*(2^10) chars as input seems more than enough
5293 test $ac_count -gt 10 && break
5294 done
5295 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5296esac
5297
5298 $ac_path_FGREP_found && break 3
5299 done
5300 done
5301done
5302IFS=$as_save_IFS
5303 if test -z "$ac_cv_path_FGREP"; then
5304 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5305$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5306 { (exit 1); exit 1; }; }
5307 fi
5308else
5309 ac_cv_path_FGREP=$FGREP
5310fi
5311
5312 fi
5313fi
5314{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5315$as_echo "$ac_cv_path_FGREP" >&6; }
5316 FGREP="$ac_cv_path_FGREP"
5317
5318
5319test -z "$GREP" && GREP=grep
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339# Check whether --with-gnu-ld was given.
5340if test "${with_gnu_ld+set}" = set; then
5341 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5342else
5343 with_gnu_ld=no
5344fi
5345
5346ac_prog=ld
5347if test "$GCC" = yes; then
5348 # Check if gcc -print-prog-name=ld gives a path.
5349 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5350$as_echo_n "checking for ld used by $CC... " >&6; }
5351 case $host in
5352 *-*-mingw*)
5353 # gcc leaves a trailing carriage return which upsets mingw
5354 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5355 *)
5356 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5357 esac
5358 case $ac_prog in
5359 # Accept absolute paths.
5360 [\\/]* | ?:[\\/]*)
5361 re_direlt='/[^/][^/]*/\.\./'
5362 # Canonicalize the pathname of ld
5363 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5364 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5365 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5366 done
5367 test -z "$LD" && LD="$ac_prog"
5368 ;;
5369 "")
5370 # If it fails, then pretend we aren't using GCC.
5371 ac_prog=ld
5372 ;;
5373 *)
5374 # If it is relative, then search for the first ld in PATH.
5375 with_gnu_ld=unknown
5376 ;;
5377 esac
5378elif test "$with_gnu_ld" = yes; then
5379 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5380$as_echo_n "checking for GNU ld... " >&6; }
5381else
5382 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5383$as_echo_n "checking for non-GNU ld... " >&6; }
5384fi
5385if test "${lt_cv_path_LD+set}" = set; then
5386 $as_echo_n "(cached) " >&6
5387else
5388 if test -z "$LD"; then
5389 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5390 for ac_dir in $PATH; do
5391 IFS="$lt_save_ifs"
5392 test -z "$ac_dir" && ac_dir=.
5393 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5394 lt_cv_path_LD="$ac_dir/$ac_prog"
5395 # Check to see if the program is GNU ld. I'd rather use --version,
5396 # but apparently some variants of GNU ld only accept -v.
5397 # Break only if it was the GNU/non-GNU ld that we prefer.
5398 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5399 *GNU* | *'with BFD'*)
5400 test "$with_gnu_ld" != no && break
5401 ;;
5402 *)
5403 test "$with_gnu_ld" != yes && break
5404 ;;
5405 esac
5406 fi
5407 done
5408 IFS="$lt_save_ifs"
5409else
5410 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5411fi
5412fi
5413
5414LD="$lt_cv_path_LD"
5415if test -n "$LD"; then
5416 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5417$as_echo "$LD" >&6; }
5418else
5419 { $as_echo "$as_me:$LINENO: result: no" >&5
5420$as_echo "no" >&6; }
5421fi
5422test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5423$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5424 { (exit 1); exit 1; }; }
5425{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5426$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5427if test "${lt_cv_prog_gnu_ld+set}" = set; then
5428 $as_echo_n "(cached) " >&6
5429else
5430 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5431case `$LD -v 2>&1 </dev/null` in
5432*GNU* | *'with BFD'*)
5433 lt_cv_prog_gnu_ld=yes
5434 ;;
5435*)
5436 lt_cv_prog_gnu_ld=no
5437 ;;
5438esac
5439fi
5440{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5441$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5442with_gnu_ld=$lt_cv_prog_gnu_ld
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452if test -n "$ac_tool_prefix"; then
5453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5454set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5455{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5456$as_echo_n "checking for $ac_word... " >&6; }
5457if test "${ac_cv_prog_RANLIB+set}" = set; then
5458 $as_echo_n "(cached) " >&6
5459else
5460 if test -n "$RANLIB"; then
5461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5462else
5463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464for as_dir in $PATH
5465do
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5471 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5473 fi
5474done
5475done
5476IFS=$as_save_IFS
5477
5478fi
5479fi
5480RANLIB=$ac_cv_prog_RANLIB
5481if test -n "$RANLIB"; then
5482 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5483$as_echo "$RANLIB" >&6; }
5484else
5485 { $as_echo "$as_me:$LINENO: result: no" >&5
5486$as_echo "no" >&6; }
5487fi
5488
5489
5490fi
5491if test -z "$ac_cv_prog_RANLIB"; then
5492 ac_ct_RANLIB=$RANLIB
5493 # Extract the first word of "ranlib", so it can be a program name with args.
5494set dummy ranlib; ac_word=$2
5495{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5496$as_echo_n "checking for $ac_word... " >&6; }
5497if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5498 $as_echo_n "(cached) " >&6
5499else
5500 if test -n "$ac_ct_RANLIB"; then
5501 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5502else
5503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504for as_dir in $PATH
5505do
5506 IFS=$as_save_IFS
5507 test -z "$as_dir" && as_dir=.
5508 for ac_exec_ext in '' $ac_executable_extensions; do
5509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510 ac_cv_prog_ac_ct_RANLIB="ranlib"
5511 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 break 2
5513 fi
5514done
5515done
5516IFS=$as_save_IFS
5517
5518fi
5519fi
5520ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5521if test -n "$ac_ct_RANLIB"; then
5522 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5523$as_echo "$ac_ct_RANLIB" >&6; }
5524else
5525 { $as_echo "$as_me:$LINENO: result: no" >&5
5526$as_echo "no" >&6; }
5527fi
5528
5529 if test "x$ac_ct_RANLIB" = x; then
5530 RANLIB=":"
5531 else
5532 case $cross_compiling:$ac_tool_warned in
5533yes:)
5534{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5535$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5536ac_tool_warned=yes ;;
5537esac
5538 RANLIB=$ac_ct_RANLIB
5539 fi
5540else
5541 RANLIB="$ac_cv_prog_RANLIB"
5542fi
5543
5544
5545if test "x$CC" != xcc; then
5546 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5547$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5548else
5549 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5550$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5551fi
5552set dummy $CC; ac_cc=`$as_echo "$2" |
5553 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5554if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5555 $as_echo_n "(cached) " >&6
5556else
5557 cat >conftest.$ac_ext <<_ACEOF
5558/* confdefs.h. */
5559_ACEOF
5560cat confdefs.h >>conftest.$ac_ext
5561cat >>conftest.$ac_ext <<_ACEOF
5562/* end confdefs.h. */
5563
5564int
5565main ()
5566{
5567
5568 ;
5569 return 0;
5570}
5571_ACEOF
5572# Make sure it works both with $CC and with simple cc.
5573# We do the test twice because some compilers refuse to overwrite an
5574# existing .o file with -o, though they will create one.
5575ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5576rm -f conftest2.*
5577if { (case "(($ac_try" in
5578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5579 *) ac_try_echo=$ac_try;;
5580esac
5581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5582$as_echo "$ac_try_echo") >&5
5583 (eval "$ac_try") 2>&5
5584 ac_status=$?
5585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } &&
5587 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5590esac
5591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5592$as_echo "$ac_try_echo") >&5
5593 (eval "$ac_try") 2>&5
5594 ac_status=$?
5595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); };
5597then
5598 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5599 if test "x$CC" != xcc; then
5600 # Test first that cc exists at all.
5601 if { ac_try='cc -c conftest.$ac_ext >&5'
5602 { (case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605esac
5606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5607$as_echo "$ac_try_echo") >&5
5608 (eval "$ac_try") 2>&5
5609 ac_status=$?
5610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); }; }; then
5612 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5613 rm -f conftest2.*
5614 if { (case "(($ac_try" in
5615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5616 *) ac_try_echo=$ac_try;;
5617esac
5618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5619$as_echo "$ac_try_echo") >&5
5620 (eval "$ac_try") 2>&5
5621 ac_status=$?
5622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623 (exit $ac_status); } &&
5624 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626 *) ac_try_echo=$ac_try;;
5627esac
5628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629$as_echo "$ac_try_echo") >&5
5630 (eval "$ac_try") 2>&5
5631 ac_status=$?
5632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); };
5634 then
5635 # cc works too.
5636 :
5637 else
5638 # cc exists but doesn't like -o.
5639 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5640 fi
5641 fi
5642 fi
5643else
5644 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5645fi
5646rm -f core conftest*
5647
5648fi
5649if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5650 { $as_echo "$as_me:$LINENO: result: yes" >&5
5651$as_echo "yes" >&6; }
5652else
5653 { $as_echo "$as_me:$LINENO: result: no" >&5
5654$as_echo "no" >&6; }
5655
5656cat >>confdefs.h <<\_ACEOF
5657#define NO_MINUS_C_MINUS_O 1
5658_ACEOF
5659
5660fi
5661
5662# FIXME: we rely on the cache variable name because
5663# there is no other way.
5664set dummy $CC
5665am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5666eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5667if test "$am_t" != yes; then
5668 # Losing compiler, so override with the script.
5669 # FIXME: It is wrong to rewrite CC.
5670 # But if we don't then we get into trouble of one sort or another.
5671 # A longer-term fix would be to have automake use am__CC in this case,
5672 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5673 CC="$am_aux_dir/compile $CC"
5674fi
5675
5676
5677# Find a good install program. We prefer a C program (faster),
5678# so one script is as good as another. But avoid the broken or
5679# incompatible versions:
5680# SysV /etc/install, /usr/sbin/install
5681# SunOS /usr/etc/install
5682# IRIX /sbin/install
5683# AIX /bin/install
5684# AmigaOS /C/install, which installs bootblocks on floppy discs
5685# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5686# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5687# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5688# OS/2's system install, which has a completely different semantic
5689# ./install, which can be erroneously created by make from ./install.sh.
5690# Reject install programs that cannot install multiple files.
5691{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5692$as_echo_n "checking for a BSD-compatible install... " >&6; }
5693if test -z "$INSTALL"; then
5694if test "${ac_cv_path_install+set}" = set; then
5695 $as_echo_n "(cached) " >&6
5696else
5697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH
5699do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 # Account for people who put trailing slashes in PATH elements.
5703case $as_dir/ in
5704 ./ | .// | /cC/* | \
5705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5706 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5707 /usr/ucb/* ) ;;
5708 *)
5709 # OSF1 and SCO ODT 3.0 have their own names for install.
5710 # Don't use installbsd from OSF since it installs stuff as root
5711 # by default.
5712 for ac_prog in ginstall scoinst install; do
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5715 if test $ac_prog = install &&
5716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5717 # AIX install. It has an incompatible calling convention.
5718 :
5719 elif test $ac_prog = install &&
5720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5721 # program-specific install script used by HP pwplus--don't use.
5722 :
5723 else
5724 rm -rf conftest.one conftest.two conftest.dir
5725 echo one > conftest.one
5726 echo two > conftest.two
5727 mkdir conftest.dir
5728 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5729 test -s conftest.one && test -s conftest.two &&
5730 test -s conftest.dir/conftest.one &&
5731 test -s conftest.dir/conftest.two
5732 then
5733 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5734 break 3
5735 fi
5736 fi
5737 fi
5738 done
5739 done
5740 ;;
5741esac
5742
5743done
5744IFS=$as_save_IFS
5745
5746rm -rf conftest.one conftest.two conftest.dir
5747
5748fi
5749 if test "${ac_cv_path_install+set}" = set; then
5750 INSTALL=$ac_cv_path_install
5751 else
5752 # As a last resort, use the slow shell script. Don't cache a
5753 # value for INSTALL within a source directory, because that will
5754 # break other packages using the cache if that directory is
5755 # removed, or if the value is a relative name.
5756 INSTALL=$ac_install_sh
5757 fi
5758fi
5759{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5760$as_echo "$INSTALL" >&6; }
5761
5762# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5763# It thinks the first close brace ends the variable substitution.
5764test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5765
5766test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5767
5768test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5769
5770{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5771$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5772set x ${MAKE-make}
5773ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5774if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5775 $as_echo_n "(cached) " >&6
5776else
5777 cat >conftest.make <<\_ACEOF
5778SHELL = /bin/sh
5779all:
5780 @echo '@@@%%%=$(MAKE)=@@@%%%'
5781_ACEOF
5782# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5783case `${MAKE-make} -f conftest.make 2>/dev/null` in
5784 *@@@%%%=?*=@@@%%%*)
5785 eval ac_cv_prog_make_${ac_make}_set=yes;;
5786 *)
5787 eval ac_cv_prog_make_${ac_make}_set=no;;
5788esac
5789rm -f conftest.make
5790fi
5791if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5792 { $as_echo "$as_me:$LINENO: result: yes" >&5
5793$as_echo "yes" >&6; }
5794 SET_MAKE=
5795else
5796 { $as_echo "$as_me:$LINENO: result: no" >&5
5797$as_echo "no" >&6; }
5798 SET_MAKE="MAKE=${MAKE-make}"
5799fi
5800
5801ac_ext=cpp
5802ac_cpp='$CXXCPP $CPPFLAGS'
5803ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5804ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5805ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5806if test -z "$CXX"; then
5807 if test -n "$CCC"; then
5808 CXX=$CCC
5809 else
5810 if test -n "$ac_tool_prefix"; then
5811 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5812 do
5813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5814set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5815{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5816$as_echo_n "checking for $ac_word... " >&6; }
5817if test "${ac_cv_prog_CXX+set}" = set; then
5818 $as_echo_n "(cached) " >&6
5819else
5820 if test -n "$CXX"; then
5821 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5822else
5823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824for as_dir in $PATH
5825do
5826 IFS=$as_save_IFS
5827 test -z "$as_dir" && as_dir=.
5828 for ac_exec_ext in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5831 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5832 break 2
5833 fi
5834done
5835done
5836IFS=$as_save_IFS
5837
5838fi
5839fi
5840CXX=$ac_cv_prog_CXX
5841if test -n "$CXX"; then
5842 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5843$as_echo "$CXX" >&6; }
5844else
5845 { $as_echo "$as_me:$LINENO: result: no" >&5
5846$as_echo "no" >&6; }
5847fi
5848
5849
5850 test -n "$CXX" && break
5851 done
5852fi
5853if test -z "$CXX"; then
5854 ac_ct_CXX=$CXX
5855 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5856do
5857 # Extract the first word of "$ac_prog", so it can be a program name with args.
5858set dummy $ac_prog; ac_word=$2
5859{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5860$as_echo_n "checking for $ac_word... " >&6; }
5861if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5862 $as_echo_n "(cached) " >&6
5863else
5864 if test -n "$ac_ct_CXX"; then
5865 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5866else
5867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868for as_dir in $PATH
5869do
5870 IFS=$as_save_IFS
5871 test -z "$as_dir" && as_dir=.
5872 for ac_exec_ext in '' $ac_executable_extensions; do
5873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5874 ac_cv_prog_ac_ct_CXX="$ac_prog"
5875 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5876 break 2
5877 fi
5878done
5879done
5880IFS=$as_save_IFS
5881
5882fi
5883fi
5884ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5885if test -n "$ac_ct_CXX"; then
5886 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5887$as_echo "$ac_ct_CXX" >&6; }
5888else
5889 { $as_echo "$as_me:$LINENO: result: no" >&5
5890$as_echo "no" >&6; }
5891fi
5892
5893
5894 test -n "$ac_ct_CXX" && break
5895done
5896
5897 if test "x$ac_ct_CXX" = x; then
5898 CXX="g++"
5899 else
5900 case $cross_compiling:$ac_tool_warned in
5901yes:)
5902{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5903$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5904ac_tool_warned=yes ;;
5905esac
5906 CXX=$ac_ct_CXX
5907 fi
5908fi
5909
5910 fi
5911fi
5912# Provide some information about the compiler.
5913$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5914set X $ac_compile
5915ac_compiler=$2
5916{ (ac_try="$ac_compiler --version >&5"
5917case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920esac
5921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5922$as_echo "$ac_try_echo") >&5
5923 (eval "$ac_compiler --version >&5") 2>&5
5924 ac_status=$?
5925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }
5927{ (ac_try="$ac_compiler -v >&5"
5928case "(($ac_try" in
5929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5930 *) ac_try_echo=$ac_try;;
5931esac
5932eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5933$as_echo "$ac_try_echo") >&5
5934 (eval "$ac_compiler -v >&5") 2>&5
5935 ac_status=$?
5936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }
5938{ (ac_try="$ac_compiler -V >&5"
5939case "(($ac_try" in
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5942esac
5943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5944$as_echo "$ac_try_echo") >&5
5945 (eval "$ac_compiler -V >&5") 2>&5
5946 ac_status=$?
5947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }
5949
5950{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5951$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5952if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5953 $as_echo_n "(cached) " >&6
5954else
5955 cat >conftest.$ac_ext <<_ACEOF
5956/* confdefs.h. */
5957_ACEOF
5958cat confdefs.h >>conftest.$ac_ext
5959cat >>conftest.$ac_ext <<_ACEOF
5960/* end confdefs.h. */
5961
5962int
5963main ()
5964{
5965#ifndef __GNUC__
5966 choke me
5967#endif
5968
5969 ;
5970 return 0;
5971}
5972_ACEOF
5973rm -f conftest.$ac_objext
5974if { (ac_try="$ac_compile"
5975case "(($ac_try" in
5976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5978esac
5979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5980$as_echo "$ac_try_echo") >&5
5981 (eval "$ac_compile") 2>conftest.er1
5982 ac_status=$?
5983 grep -v '^ *+' conftest.er1 >conftest.err
5984 rm -f conftest.er1
5985 cat conftest.err >&5
5986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); } && {
5988 test -z "$ac_cxx_werror_flag" ||
5989 test ! -s conftest.err
5990 } && test -s conftest.$ac_objext; then
5991 ac_compiler_gnu=yes
5992else
5993 $as_echo "$as_me: failed program was:" >&5
5994sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 ac_compiler_gnu=no
5997fi
5998
5999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6000ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6001
6002fi
6003{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6004$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6005if test $ac_compiler_gnu = yes; then
6006 GXX=yes
6007else
6008 GXX=
6009fi
6010ac_test_CXXFLAGS=${CXXFLAGS+set}
6011ac_save_CXXFLAGS=$CXXFLAGS
6012{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6013$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6014if test "${ac_cv_prog_cxx_g+set}" = set; then
6015 $as_echo_n "(cached) " >&6
6016else
6017 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6018 ac_cxx_werror_flag=yes
6019 ac_cv_prog_cxx_g=no
6020 CXXFLAGS="-g"
6021 cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h. */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h. */
6027
6028int
6029main ()
6030{
6031
6032 ;
6033 return 0;
6034}
6035_ACEOF
6036rm -f conftest.$ac_objext
6037if { (ac_try="$ac_compile"
6038case "(($ac_try" in
6039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6041esac
6042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6043$as_echo "$ac_try_echo") >&5
6044 (eval "$ac_compile") 2>conftest.er1
6045 ac_status=$?
6046 grep -v '^ *+' conftest.er1 >conftest.err
6047 rm -f conftest.er1
6048 cat conftest.err >&5
6049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050 (exit $ac_status); } && {
6051 test -z "$ac_cxx_werror_flag" ||
6052 test ! -s conftest.err
6053 } && test -s conftest.$ac_objext; then
6054 ac_cv_prog_cxx_g=yes
6055else
6056 $as_echo "$as_me: failed program was:" >&5
6057sed 's/^/| /' conftest.$ac_ext >&5
6058
6059 CXXFLAGS=""
6060 cat >conftest.$ac_ext <<_ACEOF
6061/* confdefs.h. */
6062_ACEOF
6063cat confdefs.h >>conftest.$ac_ext
6064cat >>conftest.$ac_ext <<_ACEOF
6065/* end confdefs.h. */
6066
6067int
6068main ()
6069{
6070
6071 ;
6072 return 0;
6073}
6074_ACEOF
6075rm -f conftest.$ac_objext
6076if { (ac_try="$ac_compile"
6077case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080esac
6081eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6082$as_echo "$ac_try_echo") >&5
6083 (eval "$ac_compile") 2>conftest.er1
6084 ac_status=$?
6085 grep -v '^ *+' conftest.er1 >conftest.err
6086 rm -f conftest.er1
6087 cat conftest.err >&5
6088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_cxx_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest.$ac_objext; then
6093 :
6094else
6095 $as_echo "$as_me: failed program was:" >&5
6096sed 's/^/| /' conftest.$ac_ext >&5
6097
6098 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6099 CXXFLAGS="-g"
6100 cat >conftest.$ac_ext <<_ACEOF
6101/* confdefs.h. */
6102_ACEOF
6103cat confdefs.h >>conftest.$ac_ext
6104cat >>conftest.$ac_ext <<_ACEOF
6105/* end confdefs.h. */
6106
6107int
6108main ()
6109{
6110
6111 ;
6112 return 0;
6113}
6114_ACEOF
6115rm -f conftest.$ac_objext
6116if { (ac_try="$ac_compile"
6117case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120esac
6121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6122$as_echo "$ac_try_echo") >&5
6123 (eval "$ac_compile") 2>conftest.er1
6124 ac_status=$?
6125 grep -v '^ *+' conftest.er1 >conftest.err
6126 rm -f conftest.er1
6127 cat conftest.err >&5
6128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); } && {
6130 test -z "$ac_cxx_werror_flag" ||
6131 test ! -s conftest.err
6132 } && test -s conftest.$ac_objext; then
6133 ac_cv_prog_cxx_g=yes
6134else
6135 $as_echo "$as_me: failed program was:" >&5
6136sed 's/^/| /' conftest.$ac_ext >&5
6137
6138
6139fi
6140
6141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
6148 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6149fi
6150{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6151$as_echo "$ac_cv_prog_cxx_g" >&6; }
6152if test "$ac_test_CXXFLAGS" = set; then
6153 CXXFLAGS=$ac_save_CXXFLAGS
6154elif test $ac_cv_prog_cxx_g = yes; then
6155 if test "$GXX" = yes; then
6156 CXXFLAGS="-g -O2"
6157 else
6158 CXXFLAGS="-g"
6159 fi
6160else
6161 if test "$GXX" = yes; then
6162 CXXFLAGS="-O2"
6163 else
6164 CXXFLAGS=
6165 fi
6166fi
6167ac_ext=c
6168ac_cpp='$CPP $CPPFLAGS'
6169ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171ac_compiler_gnu=$ac_cv_c_compiler_gnu
6172
6173depcc="$CXX" am_compiler_list=
6174
6175{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6176$as_echo_n "checking dependency style of $depcc... " >&6; }
6177if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6178 $as_echo_n "(cached) " >&6
6179else
6180 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6181 # We make a subdir and do the tests there. Otherwise we can end up
6182 # making bogus files that we don't know about and never remove. For
6183 # instance it was reported that on HP-UX the gcc test will end up
6184 # making a dummy file named `D' -- because `-MD' means `put the output
6185 # in D'.
6186 mkdir conftest.dir
6187 # Copy depcomp to subdir because otherwise we won't find it if we're
6188 # using a relative directory.
6189 cp "$am_depcomp" conftest.dir
6190 cd conftest.dir
6191 # We will build objects and dependencies in a subdirectory because
6192 # it helps to detect inapplicable dependency modes. For instance
6193 # both Tru64's cc and ICC support -MD to output dependencies as a
6194 # side effect of compilation, but ICC will put the dependencies in
6195 # the current directory while Tru64 will put them in the object
6196 # directory.
6197 mkdir sub
6198
6199 am_cv_CXX_dependencies_compiler_type=none
6200 if test "$am_compiler_list" = ""; then
6201 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6202 fi
6203 am__universal=false
6204 case " $depcc " in #(
6205 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6206 esac
6207
6208 for depmode in $am_compiler_list; do
6209 # Setup a source with many dependencies, because some compilers
6210 # like to wrap large dependency lists on column 80 (with \), and
6211 # we should not choose a depcomp mode which is confused by this.
6212 #
6213 # We need to recreate these files for each test, as the compiler may
6214 # overwrite some of them when testing with obscure command lines.
6215 # This happens at least with the AIX C compiler.
6216 : > sub/conftest.c
6217 for i in 1 2 3 4 5 6; do
6218 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6219 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6220 # Solaris 8's {/usr,}/bin/sh.
6221 touch sub/conftst$i.h
6222 done
6223 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6224
6225 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6226 # mode. It turns out that the SunPro C++ compiler does not properly
6227 # handle `-M -o', and we need to detect this. Also, some Intel
6228 # versions had trouble with output in subdirs
6229 am__obj=sub/conftest.${OBJEXT-o}
6230 am__minus_obj="-o $am__obj"
6231 case $depmode in
6232 gcc)
6233 # This depmode causes a compiler race in universal mode.
6234 test "$am__universal" = false || continue
6235 ;;
6236 nosideeffect)
6237 # after this tag, mechanisms are not by side-effect, so they'll
6238 # only be used when explicitly requested
6239 if test "x$enable_dependency_tracking" = xyes; then
6240 continue
6241 else
6242 break
6243 fi
6244 ;;
6245 msvisualcpp | msvcmsys)
6246 # This compiler won't grok `-c -o', but also, the minuso test has
6247 # not run yet. These depmodes are late enough in the game, and
6248 # so weak that their functioning should not be impacted.
6249 am__obj=conftest.${OBJEXT-o}
6250 am__minus_obj=
6251 ;;
6252 none) break ;;
6253 esac
6254 if depmode=$depmode \
6255 source=sub/conftest.c object=$am__obj \
6256 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6257 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6258 >/dev/null 2>conftest.err &&
6259 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6260 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6261 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6262 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6263 # icc doesn't choke on unknown options, it will just issue warnings
6264 # or remarks (even with -Werror). So we grep stderr for any message
6265 # that says an option was ignored or not supported.
6266 # When given -MP, icc 7.0 and 7.1 complain thusly:
6267 # icc: Command line warning: ignoring option '-M'; no argument required
6268 # The diagnosis changed in icc 8.0:
6269 # icc: Command line remark: option '-MP' not supported
6270 if (grep 'ignoring option' conftest.err ||
6271 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6272 am_cv_CXX_dependencies_compiler_type=$depmode
6273 break
6274 fi
6275 fi
6276 done
6277
6278 cd ..
6279 rm -rf conftest.dir
6280else
6281 am_cv_CXX_dependencies_compiler_type=none
6282fi
6283
6284fi
6285{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6286$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6287CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6288
6289 if
6290 test "x$enable_dependency_tracking" != xno \
6291 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6292 am__fastdepCXX_TRUE=
6293 am__fastdepCXX_FALSE='#'
6294else
6295 am__fastdepCXX_TRUE='#'
6296 am__fastdepCXX_FALSE=
6297fi
6298
6299
6300
6301{ $as_echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5
6302$as_echo_n "checking maximum warning verbosity option... " >&6; }
6303
6304
6305
6306
6307# Check whether --with-maximum-compile-warnings was given.
6308if test "${with_maximum_compile_warnings+set}" = set; then
6309 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6310else
6311 ac_compile_warnings_on=""
6312fi
6313
6314
6315 if test x"$ac_compile_warnings_on" = xno
6316 then
6317 ac_compile_warnings_msg=no
6318 else
6319 if test -n "$CXX"
6320 then
6321 if test "$GXX" = "yes"
6322 then
6323 ac_compile_warnings_opt='-Wall -W'
6324 fi
6325 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6326 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6327 fi
6328
6329 if test -n "$CC"
6330 then
6331 if test "$GCC" = "yes"
6332 then
6333 ac_compile_warnings_opt='-Wall -W'
6334 fi
6335 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6336 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6337 fi
6338 fi
6339 { $as_echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
6340$as_echo "$ac_compile_warnings_msg" >&6; }
6341 unset ac_compile_warnings_msg
6342 unset ac_compile_warnings_opt
6343
6344{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6345$as_echo_n "checking whether ln -s works... " >&6; }
6346LN_S=$as_ln_s
6347if test "$LN_S" = "ln -s"; then
6348 { $as_echo "$as_me:$LINENO: result: yes" >&5
6349$as_echo "yes" >&6; }
6350else
6351 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6352$as_echo "no, using $LN_S" >&6; }
6353fi
6354
6355{ $as_echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6356$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6357
6358# Check whether --with-dmalloc was given.
6359if test "${with_dmalloc+set}" = set; then
6360 withval=$with_dmalloc; if test "$withval" = yes; then
6361 { $as_echo "$as_me:$LINENO: result: yes" >&5
6362$as_echo "yes" >&6; }
6363
6364cat >>confdefs.h <<\_ACEOF
6365#define WITH_DMALLOC 1
6366_ACEOF
6367
6368 LIBS="$LIBS -ldmalloc"
6369 LDFLAGS="$LDFLAGS -g"
6370else
6371 { $as_echo "$as_me:$LINENO: result: no" >&5
6372$as_echo "no" >&6; }
6373fi
6374else
6375 { $as_echo "$as_me:$LINENO: result: no" >&5
6376$as_echo "no" >&6; }
6377fi
6378
6379
6380
6381
6382if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6383 if test -n "$ac_tool_prefix"; then
6384 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6385set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6386{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6387$as_echo_n "checking for $ac_word... " >&6; }
6388if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6389 $as_echo_n "(cached) " >&6
6390else
6391 case $PKG_CONFIG in
6392 [\\/]* | ?:[\\/]*)
6393 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6394 ;;
6395 *)
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
6401 for ac_exec_ext in '' $ac_executable_extensions; do
6402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6403 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6404 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6405 break 2
6406 fi
6407done
6408done
6409IFS=$as_save_IFS
6410
6411 ;;
6412esac
6413fi
6414PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6415if test -n "$PKG_CONFIG"; then
6416 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6417$as_echo "$PKG_CONFIG" >&6; }
6418else
6419 { $as_echo "$as_me:$LINENO: result: no" >&5
6420$as_echo "no" >&6; }
6421fi
6422
6423
6424fi
6425if test -z "$ac_cv_path_PKG_CONFIG"; then
6426 ac_pt_PKG_CONFIG=$PKG_CONFIG
6427 # Extract the first word of "pkg-config", so it can be a program name with args.
6428set dummy pkg-config; ac_word=$2
6429{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6430$as_echo_n "checking for $ac_word... " >&6; }
6431if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6432 $as_echo_n "(cached) " >&6
6433else
6434 case $ac_pt_PKG_CONFIG in
6435 [\\/]* | ?:[\\/]*)
6436 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6437 ;;
6438 *)
6439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440for as_dir in $PATH
6441do
6442 IFS=$as_save_IFS
6443 test -z "$as_dir" && as_dir=.
6444 for ac_exec_ext in '' $ac_executable_extensions; do
6445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6446 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6448 break 2
6449 fi
6450done
6451done
6452IFS=$as_save_IFS
6453
6454 ;;
6455esac
6456fi
6457ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6458if test -n "$ac_pt_PKG_CONFIG"; then
6459 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6460$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6461else
6462 { $as_echo "$as_me:$LINENO: result: no" >&5
6463$as_echo "no" >&6; }
6464fi
6465
6466 if test "x$ac_pt_PKG_CONFIG" = x; then
6467 PKG_CONFIG=""
6468 else
6469 case $cross_compiling:$ac_tool_warned in
6470yes:)
6471{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6473ac_tool_warned=yes ;;
6474esac
6475 PKG_CONFIG=$ac_pt_PKG_CONFIG
6476 fi
6477else
6478 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6479fi
6480
6481fi
6482if test -n "$PKG_CONFIG"; then
6483 _pkg_min_version=0.9.0
6484 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6485$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6486 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6487 { $as_echo "$as_me:$LINENO: result: yes" >&5
6488$as_echo "yes" >&6; }
6489 else
6490 { $as_echo "$as_me:$LINENO: result: no" >&5
6491$as_echo "no" >&6; }
6492 PKG_CONFIG=""
6493 fi
6494
6495fi
6496
6497#
6498# Enable OS features.
6499#
6500
6501
6502{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6503$as_echo_n "checking for ANSI C header files... " >&6; }
6504if test "${ac_cv_header_stdc+set}" = set; then
6505 $as_echo_n "(cached) " >&6
6506else
6507 cat >conftest.$ac_ext <<_ACEOF
6508/* confdefs.h. */
6509_ACEOF
6510cat confdefs.h >>conftest.$ac_ext
6511cat >>conftest.$ac_ext <<_ACEOF
6512/* end confdefs.h. */
6513#include <stdlib.h>
6514#include <stdarg.h>
6515#include <string.h>
6516#include <float.h>
6517
6518int
6519main ()
6520{
6521
6522 ;
6523 return 0;
6524}
6525_ACEOF
6526rm -f conftest.$ac_objext
6527if { (ac_try="$ac_compile"
6528case "(($ac_try" in
6529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6530 *) ac_try_echo=$ac_try;;
6531esac
6532eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6533$as_echo "$ac_try_echo") >&5
6534 (eval "$ac_compile") 2>conftest.er1
6535 ac_status=$?
6536 grep -v '^ *+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } && {
6541 test -z "$ac_c_werror_flag" ||
6542 test ! -s conftest.err
6543 } && test -s conftest.$ac_objext; then
6544 ac_cv_header_stdc=yes
6545else
6546 $as_echo "$as_me: failed program was:" >&5
6547sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 ac_cv_header_stdc=no
6550fi
6551
6552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553
6554if test $ac_cv_header_stdc = yes; then
6555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6556 cat >conftest.$ac_ext <<_ACEOF
6557/* confdefs.h. */
6558_ACEOF
6559cat confdefs.h >>conftest.$ac_ext
6560cat >>conftest.$ac_ext <<_ACEOF
6561/* end confdefs.h. */
6562#include <string.h>
6563
6564_ACEOF
6565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6566 $EGREP "memchr" >/dev/null 2>&1; then
6567 :
6568else
6569 ac_cv_header_stdc=no
6570fi
6571rm -f conftest*
6572
6573fi
6574
6575if test $ac_cv_header_stdc = yes; then
6576 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6577 cat >conftest.$ac_ext <<_ACEOF
6578/* confdefs.h. */
6579_ACEOF
6580cat confdefs.h >>conftest.$ac_ext
6581cat >>conftest.$ac_ext <<_ACEOF
6582/* end confdefs.h. */
6583#include <stdlib.h>
6584
6585_ACEOF
6586if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6587 $EGREP "free" >/dev/null 2>&1; then
6588 :
6589else
6590 ac_cv_header_stdc=no
6591fi
6592rm -f conftest*
6593
6594fi
6595
6596if test $ac_cv_header_stdc = yes; then
6597 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6598 if test "$cross_compiling" = yes; then
6599 :
6600else
6601 cat >conftest.$ac_ext <<_ACEOF
6602/* confdefs.h. */
6603_ACEOF
6604cat confdefs.h >>conftest.$ac_ext
6605cat >>conftest.$ac_ext <<_ACEOF
6606/* end confdefs.h. */
6607#include <ctype.h>
6608#include <stdlib.h>
6609#if ((' ' & 0x0FF) == 0x020)
6610# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6611# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6612#else
6613# define ISLOWER(c) \
6614 (('a' <= (c) && (c) <= 'i') \
6615 || ('j' <= (c) && (c) <= 'r') \
6616 || ('s' <= (c) && (c) <= 'z'))
6617# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6618#endif
6619
6620#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6621int
6622main ()
6623{
6624 int i;
6625 for (i = 0; i < 256; i++)
6626 if (XOR (islower (i), ISLOWER (i))
6627 || toupper (i) != TOUPPER (i))
6628 return 2;
6629 return 0;
6630}
6631_ACEOF
6632rm -f conftest$ac_exeext
6633if { (ac_try="$ac_link"
6634case "(($ac_try" in
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6637esac
6638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6639$as_echo "$ac_try_echo") >&5
6640 (eval "$ac_link") 2>&5
6641 ac_status=$?
6642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6644 { (case "(($ac_try" in
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6647esac
6648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6649$as_echo "$ac_try_echo") >&5
6650 (eval "$ac_try") 2>&5
6651 ac_status=$?
6652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 :
6655else
6656 $as_echo "$as_me: program exited with status $ac_status" >&5
6657$as_echo "$as_me: failed program was:" >&5
6658sed 's/^/| /' conftest.$ac_ext >&5
6659
6660( exit $ac_status )
6661ac_cv_header_stdc=no
6662fi
6663rm -rf conftest.dSYM
6664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6665fi
6666
6667
6668fi
6669fi
6670{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6671$as_echo "$ac_cv_header_stdc" >&6; }
6672if test $ac_cv_header_stdc = yes; then
6673
6674cat >>confdefs.h <<\_ACEOF
6675#define STDC_HEADERS 1
6676_ACEOF
6677
6678fi
6679
6680# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6691 inttypes.h stdint.h unistd.h
6692do
6693as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6694{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6695$as_echo_n "checking for $ac_header... " >&6; }
6696if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6697 $as_echo_n "(cached) " >&6
6698else
6699 cat >conftest.$ac_ext <<_ACEOF
6700/* confdefs.h. */
6701_ACEOF
6702cat confdefs.h >>conftest.$ac_ext
6703cat >>conftest.$ac_ext <<_ACEOF
6704/* end confdefs.h. */
6705$ac_includes_default
6706
6707#include <$ac_header>
6708_ACEOF
6709rm -f conftest.$ac_objext
6710if { (ac_try="$ac_compile"
6711case "(($ac_try" in
6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713 *) ac_try_echo=$ac_try;;
6714esac
6715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6716$as_echo "$ac_try_echo") >&5
6717 (eval "$ac_compile") 2>conftest.er1
6718 ac_status=$?
6719 grep -v '^ *+' conftest.er1 >conftest.err
6720 rm -f conftest.er1
6721 cat conftest.err >&5
6722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); } && {
6724 test -z "$ac_c_werror_flag" ||
6725 test ! -s conftest.err
6726 } && test -s conftest.$ac_objext; then
6727 eval "$as_ac_Header=yes"
6728else
6729 $as_echo "$as_me: failed program was:" >&5
6730sed 's/^/| /' conftest.$ac_ext >&5
6731
6732 eval "$as_ac_Header=no"
6733fi
6734
6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736fi
6737ac_res=`eval 'as_val=${'$as_ac_Header'}
6738 $as_echo "$as_val"'`
6739 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6740$as_echo "$ac_res" >&6; }
6741as_val=`eval 'as_val=${'$as_ac_Header'}
6742 $as_echo "$as_val"'`
6743 if test "x$as_val" = x""yes; then
6744 cat >>confdefs.h <<_ACEOF
6745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6746_ACEOF
6747
6748fi
6749
6750done
6751
6752
6753
6754 if test "${ac_cv_header_minix_config_h+set}" = set; then
6755 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6756$as_echo_n "checking for minix/config.h... " >&6; }
6757if test "${ac_cv_header_minix_config_h+set}" = set; then
6758 $as_echo_n "(cached) " >&6
6759fi
6760{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6761$as_echo "$ac_cv_header_minix_config_h" >&6; }
6762else
6763 # Is the header compilable?
6764{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
6765$as_echo_n "checking minix/config.h usability... " >&6; }
6766cat >conftest.$ac_ext <<_ACEOF
6767/* confdefs.h. */
6768_ACEOF
6769cat confdefs.h >>conftest.$ac_ext
6770cat >>conftest.$ac_ext <<_ACEOF
6771/* end confdefs.h. */
6772$ac_includes_default
6773#include <minix/config.h>
6774_ACEOF
6775rm -f conftest.$ac_objext
6776if { (ac_try="$ac_compile"
6777case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780esac
6781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6782$as_echo "$ac_try_echo") >&5
6783 (eval "$ac_compile") 2>conftest.er1
6784 ac_status=$?
6785 grep -v '^ *+' conftest.er1 >conftest.err
6786 rm -f conftest.er1
6787 cat conftest.err >&5
6788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6789 (exit $ac_status); } && {
6790 test -z "$ac_c_werror_flag" ||
6791 test ! -s conftest.err
6792 } && test -s conftest.$ac_objext; then
6793 ac_header_compiler=yes
6794else
6795 $as_echo "$as_me: failed program was:" >&5
6796sed 's/^/| /' conftest.$ac_ext >&5
6797
6798 ac_header_compiler=no
6799fi
6800
6801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6802{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6803$as_echo "$ac_header_compiler" >&6; }
6804
6805# Is the header present?
6806{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
6807$as_echo_n "checking minix/config.h presence... " >&6; }
6808cat >conftest.$ac_ext <<_ACEOF
6809/* confdefs.h. */
6810_ACEOF
6811cat confdefs.h >>conftest.$ac_ext
6812cat >>conftest.$ac_ext <<_ACEOF
6813/* end confdefs.h. */
6814#include <minix/config.h>
6815_ACEOF
6816if { (ac_try="$ac_cpp conftest.$ac_ext"
6817case "(($ac_try" in
6818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6819 *) ac_try_echo=$ac_try;;
6820esac
6821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6822$as_echo "$ac_try_echo") >&5
6823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6824 ac_status=$?
6825 grep -v '^ *+' conftest.er1 >conftest.err
6826 rm -f conftest.er1
6827 cat conftest.err >&5
6828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6829 (exit $ac_status); } >/dev/null && {
6830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6831 test ! -s conftest.err
6832 }; then
6833 ac_header_preproc=yes
6834else
6835 $as_echo "$as_me: failed program was:" >&5
6836sed 's/^/| /' conftest.$ac_ext >&5
6837
6838 ac_header_preproc=no
6839fi
6840
6841rm -f conftest.err conftest.$ac_ext
6842{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6843$as_echo "$ac_header_preproc" >&6; }
6844
6845# So? What about this header?
6846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6847 yes:no: )
6848 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6849$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6850 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6851$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6852 ac_header_preproc=yes
6853 ;;
6854 no:yes:* )
6855 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6856$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6857 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
6858$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
6859 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6860$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6861 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
6862$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
6863 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6864$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6865 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6866$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6867 ( cat <<\_ASBOX
6868## ----------------------------------------- ##
6869## Report this to http://www.imagemagick.org ##
6870## ----------------------------------------- ##
6871_ASBOX
6872 ) | sed "s/^/$as_me: WARNING: /" >&2
6873 ;;
6874esac
6875{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6876$as_echo_n "checking for minix/config.h... " >&6; }
6877if test "${ac_cv_header_minix_config_h+set}" = set; then
6878 $as_echo_n "(cached) " >&6
6879else
6880 ac_cv_header_minix_config_h=$ac_header_preproc
6881fi
6882{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6883$as_echo "$ac_cv_header_minix_config_h" >&6; }
6884
6885fi
6886if test "x$ac_cv_header_minix_config_h" = x""yes; then
6887 MINIX=yes
6888else
6889 MINIX=
6890fi
6891
6892
6893 if test "$MINIX" = yes; then
6894
6895cat >>confdefs.h <<\_ACEOF
6896#define _POSIX_SOURCE 1
6897_ACEOF
6898
6899
6900cat >>confdefs.h <<\_ACEOF
6901#define _POSIX_1_SOURCE 2
6902_ACEOF
6903
6904
6905cat >>confdefs.h <<\_ACEOF
6906#define _MINIX 1
6907_ACEOF
6908
6909 fi
6910
6911
6912
6913 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6914$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6915if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6916 $as_echo_n "(cached) " >&6
6917else
6918 cat >conftest.$ac_ext <<_ACEOF
6919/* confdefs.h. */
6920_ACEOF
6921cat confdefs.h >>conftest.$ac_ext
6922cat >>conftest.$ac_ext <<_ACEOF
6923/* end confdefs.h. */
6924
6925# define __EXTENSIONS__ 1
6926 $ac_includes_default
6927int
6928main ()
6929{
6930
6931 ;
6932 return 0;
6933}
6934_ACEOF
6935rm -f conftest.$ac_objext
6936if { (ac_try="$ac_compile"
6937case "(($ac_try" in
6938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6939 *) ac_try_echo=$ac_try;;
6940esac
6941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6942$as_echo "$ac_try_echo") >&5
6943 (eval "$ac_compile") 2>conftest.er1
6944 ac_status=$?
6945 grep -v '^ *+' conftest.er1 >conftest.err
6946 rm -f conftest.er1
6947 cat conftest.err >&5
6948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6949 (exit $ac_status); } && {
6950 test -z "$ac_c_werror_flag" ||
6951 test ! -s conftest.err
6952 } && test -s conftest.$ac_objext; then
6953 ac_cv_safe_to_define___extensions__=yes
6954else
6955 $as_echo "$as_me: failed program was:" >&5
6956sed 's/^/| /' conftest.$ac_ext >&5
6957
6958 ac_cv_safe_to_define___extensions__=no
6959fi
6960
6961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6962fi
6963{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6964$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6965 test $ac_cv_safe_to_define___extensions__ = yes &&
6966 cat >>confdefs.h <<\_ACEOF
6967#define __EXTENSIONS__ 1
6968_ACEOF
6969
6970 cat >>confdefs.h <<\_ACEOF
6971#define _ALL_SOURCE 1
6972_ACEOF
6973
6974 cat >>confdefs.h <<\_ACEOF
6975#define _GNU_SOURCE 1
6976_ACEOF
6977
6978 cat >>confdefs.h <<\_ACEOF
6979#define _POSIX_PTHREAD_SEMANTICS 1
6980_ACEOF
6981
6982 cat >>confdefs.h <<\_ACEOF
6983#define _TANDEM_SOURCE 1
6984_ACEOF
6985
6986
6987
6988#
6989# Enable run-time checking.
6990#
6991# Check whether --enable-bounds-checking was given.
6992if test "${enable_bounds_checking+set}" = set; then
6993 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6994else
6995 enable_bounds_checking='no'
6996fi
6997
6998
6999if test "$enable_bounds_checking" = yes; then
7000
7001cat >>confdefs.h <<\_ACEOF
7002#define _FORTIFY_SOURCE 2
7003_ACEOF
7004
7005fi
7006
7007#
7008# Tests for Windows
7009#
7010
7011
7012
7013GDI32_LIBS=''
7014StaticCplusPlusLibraries='no'
7015native_win32_build='no'
7016cygwin_build='no'
7017case "${host_os}" in
7018 cygwin* )
7019 StaticCplusPlusLibraries='yes'
7020 cygwin_build='yes'
7021 GDI32_LIBS='-lgdi32'
7022 ;;
7023 mingw* )
7024 StaticCplusPlusLibraries='yes'
7025 native_win32_build='yes'
7026 GDI32_LIBS='-lgdi32'
7027 ;;
7028esac
7029if test "${GDI32_LIBS}x" != 'x'; then
7030
7031cat >>confdefs.h <<\_ACEOF
7032#define WINGDI32_DELEGATE 1
7033_ACEOF
7034
7035fi
7036
7037 if test "${GDI32_LIBS}x" != 'x' ; then
7038 WINGDI32_DELEGATE_TRUE=
7039 WINGDI32_DELEGATE_FALSE='#'
7040else
7041 WINGDI32_DELEGATE_TRUE='#'
7042 WINGDI32_DELEGATE_FALSE=
7043fi
7044
7045 if test "${native_win32_build}" = 'yes' ; then
7046 WIN32_NATIVE_BUILD_TRUE=
7047 WIN32_NATIVE_BUILD_FALSE='#'
7048else
7049 WIN32_NATIVE_BUILD_TRUE='#'
7050 WIN32_NATIVE_BUILD_FALSE=
7051fi
7052
7053 if test "${cygwin_build}" = 'yes' ; then
7054 CYGWIN_BUILD_TRUE=
7055 CYGWIN_BUILD_FALSE='#'
7056else
7057 CYGWIN_BUILD_TRUE='#'
7058 CYGWIN_BUILD_FALSE=
7059fi
7060
7061 if test "x${CC}" = 'xcl.exe' ; then
7062 USING_CL_TRUE=
7063 USING_CL_FALSE='#'
7064else
7065 USING_CL_TRUE='#'
7066 USING_CL_FALSE=
7067fi
7068
7069
7070WinPathScript="${srcdirfull}/winpath.sh"
7071
7072
7073#
7074# Compiler flags tweaks
7075#
7076if test "${GCC}" != "yes"; then
7077 case "${host}" in
7078 *-*-hpux* )
7079 # aCC: HP ANSI C++ B3910B A.03.34
7080 CFLAGS="${CFLAGS} -Wp,-H30000"
7081 if test -n "${CXXFLAGS}"; then
7082 CXXFLAGS='-AA'
7083 else
7084 CXXFLAGS="${CXXFLAGS} -AA"
7085 fi
7086 ;;
7087 *-dec-osf5.* )
7088 # Compaq alphaev68-dec-osf5.1 compiler
7089 if test -n "${CXXFLAGS}"; then
7090 CXXFLAGS='-std strict_ansi -noimplicit_include'
7091 else
7092 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7093 fi
7094 esac
7095fi
7096
7097# Check for lazy-loading.
7098{ $as_echo "$as_me:$LINENO: checking for linker lazyload option" >&5
7099$as_echo_n "checking for linker lazyload option... " >&6; }
7100if test "${im_cv_ld_lazyload+set}" = set; then
7101 $as_echo_n "(cached) " >&6
7102else
7103
7104im_cv_ld_lazyload='none'
7105case "${host}" in
7106 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7107 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7108 im_cv_ld_lazyload='-Wl,-zlazyload'
7109 fi
7110 ;;
7111esac
7112
7113fi
7114{ $as_echo "$as_me:$LINENO: result: $im_cv_ld_lazyload" >&5
7115$as_echo "$im_cv_ld_lazyload" >&6; }
7116if test "${im_cv_ld_lazyload}" != 'none' ; then
7117 if test -z "${LDFLAGS}" ; then
7118 LDFLAGS="${im_cv_ld_lazyload}"
7119 else
7120 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7121 fi
7122fi
7123
7124case "$host" in
7125*darwin* | *-macos10*)
7126 if test -d /opt/local ; then
7127 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7128 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7129 elif test -d /sw ; then
7130 CPPFLAGS="$CPPFLAGS -I/sw/include"
7131 LDFLAGS="$LDFLAGS -L/sw/lib"
7132 fi
7133 # Check whether --enable-osx-universal-binary was given.
7134if test "${enable_osx_universal_binary+set}" = set; then
7135 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7136else
7137 build_osxuniversal=no
7138fi
7139
7140
7141 if test "${build_osxuniversal}" != no ; then
7142 if test "$enable_dependency_tracking" != no ; then
7143 { { $as_echo "$as_me:$LINENO: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7144Please re-run configure with these options:
7145 --disable-dependency-tracking --enable-osx-universal-binary
7146 " >&5
7147$as_echo "$as_me: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7148Please re-run configure with these options:
7149 --disable-dependency-tracking --enable-osx-universal-binary
7150 " >&2;}
7151 { (exit 1); exit 1; }; }
7152 fi
7153 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7154 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7155 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7156 fi
7157 ;;
7158esac
7159
7160# Enable support for threads
7161
7162# Check whether --with-threads was given.
7163if test "${with_threads+set}" = set; then
7164 withval=$with_threads; with_threads=$withval
7165else
7166 with_threads='yes'
7167fi
7168
7169
7170have_threads=no
7171if test "$with_threads" != 'no'; then
7172
7173
7174
7175ac_ext=c
7176ac_cpp='$CPP $CPPFLAGS'
7177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7179ac_compiler_gnu=$ac_cv_c_compiler_gnu
7180
7181acx_pthread_ok=no
7182
7183# We used to check for pthread.h first, but this fails if pthread.h
7184# requires special compiler flags (e.g. on True64 or Sequent).
7185# It gets checked for in the link test anyway.
7186
7187# First of all, check if the user has set any of the PTHREAD_LIBS,
7188# etcetera environment variables, and if threads linking works using
7189# them:
7190if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7191 save_CFLAGS="$CFLAGS"
7192 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7193 save_LIBS="$LIBS"
7194 LIBS="$PTHREAD_LIBS $LIBS"
7195 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7196$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
7197 cat >conftest.$ac_ext <<_ACEOF
7198/* confdefs.h. */
7199_ACEOF
7200cat confdefs.h >>conftest.$ac_ext
7201cat >>conftest.$ac_ext <<_ACEOF
7202/* end confdefs.h. */
7203
7204/* Override any GCC internal prototype to avoid an error.
7205 Use char because int might match the return type of a GCC
7206 builtin and then its argument prototype would still apply. */
7207#ifdef __cplusplus
7208extern "C"
7209#endif
7210char pthread_join ();
7211int
7212main ()
7213{
7214return pthread_join ();
7215 ;
7216 return 0;
7217}
7218_ACEOF
7219rm -f conftest.$ac_objext conftest$ac_exeext
7220if { (ac_try="$ac_link"
7221case "(($ac_try" in
7222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7224esac
7225eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7226$as_echo "$ac_try_echo") >&5
7227 (eval "$ac_link") 2>conftest.er1
7228 ac_status=$?
7229 grep -v '^ *+' conftest.er1 >conftest.err
7230 rm -f conftest.er1
7231 cat conftest.err >&5
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); } && {
7234 test -z "$ac_c_werror_flag" ||
7235 test ! -s conftest.err
7236 } && test -s conftest$ac_exeext && {
7237 test "$cross_compiling" = yes ||
7238 $as_test_x conftest$ac_exeext
7239 }; then
7240 acx_pthread_ok=yes
7241else
7242 $as_echo "$as_me: failed program was:" >&5
7243sed 's/^/| /' conftest.$ac_ext >&5
7244
7245
7246fi
7247
7248rm -rf conftest.dSYM
7249rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7250 conftest$ac_exeext conftest.$ac_ext
7251 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7252$as_echo "$acx_pthread_ok" >&6; }
7253 if test x"$acx_pthread_ok" = xno; then
7254 PTHREAD_LIBS=""
7255 PTHREAD_CFLAGS=""
7256 fi
7257 LIBS="$save_LIBS"
7258 CFLAGS="$save_CFLAGS"
7259fi
7260
7261# We must check for the threads library under a number of different
7262# names; the ordering is very important because some systems
7263# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7264# libraries is broken (non-POSIX).
7265
7266# Create a list of thread flags to try. Items starting with a "-" are
7267# C compiler flags, and other items are library names, except for "none"
7268# which indicates that we try without any flags at all, and "pthread-config"
7269# which is a program returning the flags for the Pth emulation library.
7270
7271acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7272
7273# The ordering *is* (sometimes) important. Some notes on the
7274# individual items follow:
7275
7276# pthreads: AIX (must check this before -lpthread)
7277# none: in case threads are in libc; should be tried before -Kthread and
7278# other compiler flags to prevent continual compiler warnings
7279# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7280# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7281# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7282# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7283# -pthreads: Solaris/gcc
7284# -mthreads: Mingw32/gcc, Lynx/gcc
7285# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7286# doesn't hurt to check since this sometimes defines pthreads too;
7287# also defines -D_REENTRANT)
7288# ... -mt is also the pthreads flag for HP/aCC
7289# pthread: Linux, etcetera
7290# --thread-safe: KAI C++
7291# pthread-config: use pthread-config program (for GNU Pth library)
7292
7293case "${host_cpu}-${host_os}" in
7294 *solaris*)
7295
7296 # On Solaris (at least, for some versions), libc contains stubbed
7297 # (non-functional) versions of the pthreads routines, so link-based
7298 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7299 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7300 # a function called by this macro, so we could check for that, but
7301 # who knows whether they'll stub that too in a future libc.) So,
7302 # we'll just look for -pthreads and -lpthread first:
7303
7304 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7305 ;;
cristy3ed852e2009-09-05 21:47:34 +00007306esac
7307
7308if test x"$acx_pthread_ok" = xno; then
7309for flag in $acx_pthread_flags; do
7310
7311 case $flag in
7312 none)
7313 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7314$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7315 ;;
7316
7317 -*)
7318 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7319$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7320 PTHREAD_CFLAGS="$flag"
7321 ;;
7322
7323 pthread-config)
7324 # Extract the first word of "pthread-config", so it can be a program name with args.
7325set dummy pthread-config; ac_word=$2
7326{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7327$as_echo_n "checking for $ac_word... " >&6; }
7328if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7329 $as_echo_n "(cached) " >&6
7330else
7331 if test -n "$acx_pthread_config"; then
7332 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7333else
7334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335for as_dir in $PATH
7336do
7337 IFS=$as_save_IFS
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_prog_acx_pthread_config="yes"
7342 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7343 break 2
7344 fi
7345done
7346done
7347IFS=$as_save_IFS
7348
7349 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7350fi
7351fi
7352acx_pthread_config=$ac_cv_prog_acx_pthread_config
7353if test -n "$acx_pthread_config"; then
7354 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7355$as_echo "$acx_pthread_config" >&6; }
7356else
7357 { $as_echo "$as_me:$LINENO: result: no" >&5
7358$as_echo "no" >&6; }
7359fi
7360
7361
7362 if test x"$acx_pthread_config" = xno; then continue; fi
7363 PTHREAD_CFLAGS="`pthread-config --cflags`"
7364 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7365 ;;
7366
7367 *)
7368 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7369$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7370 PTHREAD_LIBS="-l$flag"
7371 ;;
7372 esac
7373
7374 save_LIBS="$LIBS"
7375 save_CFLAGS="$CFLAGS"
7376 LIBS="$PTHREAD_LIBS $LIBS"
7377 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7378
7379 # Check for various functions. We must include pthread.h,
7380 # since some functions may be macros. (On the Sequent, we
7381 # need a special flag -Kthread to make this header compile.)
7382 # We check for pthread_join because it is in -lpthread on IRIX
7383 # while pthread_create is in libc. We check for pthread_attr_init
7384 # due to DEC craziness with -lpthreads. We check for
7385 # pthread_cleanup_push because it is one of the few pthread
7386 # functions on Solaris that doesn't have a non-functional libc stub.
7387 # We try pthread_create on general principles.
7388 cat >conftest.$ac_ext <<_ACEOF
7389/* confdefs.h. */
7390_ACEOF
7391cat confdefs.h >>conftest.$ac_ext
7392cat >>conftest.$ac_ext <<_ACEOF
7393/* end confdefs.h. */
7394#include <pthread.h>
7395int
7396main ()
7397{
7398pthread_t th; pthread_join(th, 0);
7399 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7400 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7401 ;
7402 return 0;
7403}
7404_ACEOF
7405rm -f conftest.$ac_objext conftest$ac_exeext
7406if { (ac_try="$ac_link"
7407case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410esac
7411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7412$as_echo "$ac_try_echo") >&5
7413 (eval "$ac_link") 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } && {
7420 test -z "$ac_c_werror_flag" ||
7421 test ! -s conftest.err
7422 } && test -s conftest$ac_exeext && {
7423 test "$cross_compiling" = yes ||
7424 $as_test_x conftest$ac_exeext
7425 }; then
7426 acx_pthread_ok=yes
7427else
7428 $as_echo "$as_me: failed program was:" >&5
7429sed 's/^/| /' conftest.$ac_ext >&5
7430
7431
7432fi
7433
7434rm -rf conftest.dSYM
7435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7436 conftest$ac_exeext conftest.$ac_ext
7437
7438 LIBS="$save_LIBS"
7439 CFLAGS="$save_CFLAGS"
7440
7441 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7442$as_echo "$acx_pthread_ok" >&6; }
7443 if test "x$acx_pthread_ok" = xyes; then
7444 break;
7445 fi
7446
7447 PTHREAD_LIBS=""
7448 PTHREAD_CFLAGS=""
7449done
7450fi
7451
7452# Various other checks:
7453if test "x$acx_pthread_ok" = xyes; then
7454 save_LIBS="$LIBS"
7455 LIBS="$PTHREAD_LIBS $LIBS"
7456 save_CFLAGS="$CFLAGS"
7457 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7458
7459 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7460 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7461$as_echo_n "checking for joinable pthread attribute... " >&6; }
7462 attr_name=unknown
7463 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7464 cat >conftest.$ac_ext <<_ACEOF
7465/* confdefs.h. */
7466_ACEOF
7467cat confdefs.h >>conftest.$ac_ext
7468cat >>conftest.$ac_ext <<_ACEOF
7469/* end confdefs.h. */
7470#include <pthread.h>
7471int
7472main ()
7473{
7474int attr=$attr; return attr;
7475 ;
7476 return 0;
7477}
7478_ACEOF
7479rm -f conftest.$ac_objext conftest$ac_exeext
7480if { (ac_try="$ac_link"
7481case "(($ac_try" in
7482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7483 *) ac_try_echo=$ac_try;;
7484esac
7485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7486$as_echo "$ac_try_echo") >&5
7487 (eval "$ac_link") 2>conftest.er1
7488 ac_status=$?
7489 grep -v '^ *+' conftest.er1 >conftest.err
7490 rm -f conftest.er1
7491 cat conftest.err >&5
7492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest$ac_exeext && {
7497 test "$cross_compiling" = yes ||
7498 $as_test_x conftest$ac_exeext
7499 }; then
7500 attr_name=$attr; break
7501else
7502 $as_echo "$as_me: failed program was:" >&5
7503sed 's/^/| /' conftest.$ac_ext >&5
7504
7505
7506fi
7507
7508rm -rf conftest.dSYM
7509rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7510 conftest$ac_exeext conftest.$ac_ext
7511 done
7512 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
7513$as_echo "$attr_name" >&6; }
7514 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7515
7516cat >>confdefs.h <<_ACEOF
7517#define PTHREAD_CREATE_JOINABLE $attr_name
7518_ACEOF
7519
7520 fi
7521
7522 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7523$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7524 flag=no
7525 case "${host_cpu}-${host_os}" in
7526 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7527 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7528 esac
7529 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
7530$as_echo "${flag}" >&6; }
7531 if test "x$flag" != xno; then
7532 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7533 fi
7534
7535 LIBS="$save_LIBS"
7536 CFLAGS="$save_CFLAGS"
7537
7538 # More AIX lossage: must compile with xlc_r or cc_r
cristy736173a2009-09-20 21:18:22 +00007539 if test x"$GCC" != xyes; then
7540 for ac_prog in xlc_r cc_r
7541do
7542 # Extract the first word of "$ac_prog", so it can be a program name with args.
7543set dummy $ac_prog; ac_word=$2
cristy3ed852e2009-09-05 21:47:34 +00007544{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7545$as_echo_n "checking for $ac_word... " >&6; }
7546if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7547 $as_echo_n "(cached) " >&6
7548else
7549 if test -n "$PTHREAD_CC"; then
7550 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7551else
7552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7553for as_dir in $PATH
7554do
7555 IFS=$as_save_IFS
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 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 +00007559 ac_cv_prog_PTHREAD_CC="$ac_prog"
cristy3ed852e2009-09-05 21:47:34 +00007560 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7561 break 2
7562 fi
7563done
7564done
7565IFS=$as_save_IFS
7566
cristy3ed852e2009-09-05 21:47:34 +00007567fi
7568fi
7569PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7570if test -n "$PTHREAD_CC"; then
7571 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7572$as_echo "$PTHREAD_CC" >&6; }
7573else
7574 { $as_echo "$as_me:$LINENO: result: no" >&5
7575$as_echo "no" >&6; }
7576fi
7577
cristy736173a2009-09-20 21:18:22 +00007578
7579 test -n "$PTHREAD_CC" && break
cristy3ed852e2009-09-05 21:47:34 +00007580done
cristy736173a2009-09-20 21:18:22 +00007581test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
cristy3ed852e2009-09-05 21:47:34 +00007582
cristy736173a2009-09-20 21:18:22 +00007583 else
7584 PTHREAD_CC=$CC
7585 fi
cristy3ed852e2009-09-05 21:47:34 +00007586else
cristy736173a2009-09-20 21:18:22 +00007587 PTHREAD_CC="$CC"
cristy3ed852e2009-09-05 21:47:34 +00007588fi
7589
cristy3ed852e2009-09-05 21:47:34 +00007590
7591
7592
7593
7594# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7595if test x"$acx_pthread_ok" = xyes; then
7596
7597cat >>confdefs.h <<\_ACEOF
7598#define HAVE_PTHREAD 1
7599_ACEOF
7600
7601 :
7602else
7603 acx_pthread_ok=no
7604
7605fi
7606ac_ext=c
7607ac_cpp='$CPP $CPPFLAGS'
7608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7610ac_compiler_gnu=$ac_cv_c_compiler_gnu
7611
7612
7613 if test "$acx_pthread_ok" = yes; then
7614 have_threads=yes
7615 DEF_THREAD="$PTHREAD_CFLAGS"
7616 CFLAGS="$CFLAGS $DEF_THREAD"
7617 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7618 if test "$CC" != "$PTHREAD_CC"; then
7619 { $as_echo "$as_me:$LINENO: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
7620$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7621 CC="$PTHREAD_CC"
7622 fi
7623 fi
7624fi
7625
7626# Enable support for OpenMP
7627if test "$have_threads" != 'yes'; then
7628 ac_cv_prog_c_openmp=unsupported
7629fi
7630
7631 OPENMP_CFLAGS=
7632 # Check whether --enable-openmp was given.
7633if test "${enable_openmp+set}" = set; then
7634 enableval=$enable_openmp;
7635fi
7636
7637 if test "$enable_openmp" != no; then
7638 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
7639$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
7640if test "${ac_cv_prog_c_openmp+set}" = set; then
7641 $as_echo_n "(cached) " >&6
7642else
7643 cat >conftest.$ac_ext <<_ACEOF
7644
7645#ifndef _OPENMP
7646 choke me
7647#endif
7648#include <omp.h>
7649int main () { return omp_get_num_threads (); }
7650
7651_ACEOF
7652rm -f conftest.$ac_objext conftest$ac_exeext
7653if { (ac_try="$ac_link"
7654case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657esac
7658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7659$as_echo "$ac_try_echo") >&5
7660 (eval "$ac_link") 2>conftest.er1
7661 ac_status=$?
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
7665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && {
7667 test -z "$ac_c_werror_flag" ||
7668 test ! -s conftest.err
7669 } && test -s conftest$ac_exeext && {
7670 test "$cross_compiling" = yes ||
7671 $as_test_x conftest$ac_exeext
7672 }; then
7673 ac_cv_prog_c_openmp='none needed'
7674else
7675 $as_echo "$as_me: failed program was:" >&5
7676sed 's/^/| /' conftest.$ac_ext >&5
7677
7678 ac_cv_prog_c_openmp='unsupported'
7679 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7680 ac_save_CFLAGS=$CFLAGS
7681 CFLAGS="$CFLAGS $ac_option"
7682 cat >conftest.$ac_ext <<_ACEOF
7683
7684#ifndef _OPENMP
7685 choke me
7686#endif
7687#include <omp.h>
7688int main () { return omp_get_num_threads (); }
7689
7690_ACEOF
7691rm -f conftest.$ac_objext conftest$ac_exeext
7692if { (ac_try="$ac_link"
7693case "(($ac_try" in
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7696esac
7697eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7698$as_echo "$ac_try_echo") >&5
7699 (eval "$ac_link") 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest$ac_exeext && {
7709 test "$cross_compiling" = yes ||
7710 $as_test_x conftest$ac_exeext
7711 }; then
7712 ac_cv_prog_c_openmp=$ac_option
7713else
7714 $as_echo "$as_me: failed program was:" >&5
7715sed 's/^/| /' conftest.$ac_ext >&5
7716
7717
7718fi
7719
7720rm -rf conftest.dSYM
7721rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7722 conftest$ac_exeext conftest.$ac_ext
7723 CFLAGS=$ac_save_CFLAGS
7724 if test "$ac_cv_prog_c_openmp" != unsupported; then
7725 break
7726 fi
7727 done
7728fi
7729
7730rm -rf conftest.dSYM
7731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7732 conftest$ac_exeext conftest.$ac_ext
7733fi
7734{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_c_openmp" >&5
7735$as_echo "$ac_cv_prog_c_openmp" >&6; }
7736 case $ac_cv_prog_c_openmp in #(
7737 "none needed" | unsupported)
7738 ;; #(
7739 *)
7740 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
7741 esac
7742 fi
7743
7744
7745CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7746MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7747
7748
cristy736173a2009-09-20 21:18:22 +00007749# Enable support for OpenCL
cristy736173a2009-09-20 21:18:22 +00007750
7751ac_ext=c
7752ac_cpp='$CPP $CPPFLAGS'
7753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7755ac_compiler_gnu=$ac_cv_c_compiler_gnu
7756
7757{ $as_echo "$as_me:$LINENO: checking whether we are using the Microsoft C compiler" >&5
7758$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7759if test "${ax_cv_c_compiler_ms+set}" = set; then
7760 $as_echo_n "(cached) " >&6
7761else
7762 cat >conftest.$ac_ext <<_ACEOF
7763/* confdefs.h. */
7764_ACEOF
7765cat confdefs.h >>conftest.$ac_ext
7766cat >>conftest.$ac_ext <<_ACEOF
7767/* end confdefs.h. */
7768
7769int
7770main ()
7771{
7772#ifndef _MSC_VER
7773 choke me
7774#endif
7775
7776 ;
7777 return 0;
7778}
7779_ACEOF
7780rm -f conftest.$ac_objext
7781if { (ac_try="$ac_compile"
7782case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7785esac
7786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7787$as_echo "$ac_try_echo") >&5
7788 (eval "$ac_compile") 2>conftest.er1
7789 ac_status=$?
7790 grep -v '^ *+' conftest.er1 >conftest.err
7791 rm -f conftest.er1
7792 cat conftest.err >&5
7793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } && {
7795 test -z "$ac_c_werror_flag" ||
7796 test ! -s conftest.err
7797 } && test -s conftest.$ac_objext; then
7798 ax_compiler_ms=yes
7799else
7800 $as_echo "$as_me: failed program was:" >&5
7801sed 's/^/| /' conftest.$ac_ext >&5
7802
7803 ax_compiler_ms=no
7804fi
7805
7806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7807ax_cv_c_compiler_ms=$ax_compiler_ms
7808
7809fi
7810{ $as_echo "$as_me:$LINENO: result: $ax_cv_c_compiler_ms" >&5
7811$as_echo "$ax_cv_c_compiler_ms" >&6; }
7812if test X$ax_compiler_ms = Xno; then
7813 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7814fi
7815
7816
cristy736173a2009-09-20 21:18:22 +00007817ax_save_CPPFLAGS=$CPPFLAGS
7818CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7819
7820
cristyc7083c12009-10-14 03:16:55 +00007821for ac_header in CL/opencl.h OpenCL/OpenCL.h
cristy736173a2009-09-20 21:18:22 +00007822do
7823as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7824if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7825 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7826$as_echo_n "checking for $ac_header... " >&6; }
7827if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7828 $as_echo_n "(cached) " >&6
7829fi
7830ac_res=`eval 'as_val=${'$as_ac_Header'}
7831 $as_echo "$as_val"'`
7832 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7833$as_echo "$ac_res" >&6; }
7834else
7835 # Is the header compilable?
7836{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7837$as_echo_n "checking $ac_header usability... " >&6; }
7838cat >conftest.$ac_ext <<_ACEOF
7839/* confdefs.h. */
7840_ACEOF
7841cat confdefs.h >>conftest.$ac_ext
7842cat >>conftest.$ac_ext <<_ACEOF
7843/* end confdefs.h. */
7844$ac_includes_default
7845#include <$ac_header>
7846_ACEOF
7847rm -f conftest.$ac_objext
7848if { (ac_try="$ac_compile"
7849case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852esac
7853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854$as_echo "$ac_try_echo") >&5
7855 (eval "$ac_compile") 2>conftest.er1
7856 ac_status=$?
7857 grep -v '^ *+' conftest.er1 >conftest.err
7858 rm -f conftest.er1
7859 cat conftest.err >&5
7860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7861 (exit $ac_status); } && {
7862 test -z "$ac_c_werror_flag" ||
7863 test ! -s conftest.err
7864 } && test -s conftest.$ac_objext; then
7865 ac_header_compiler=yes
7866else
7867 $as_echo "$as_me: failed program was:" >&5
7868sed 's/^/| /' conftest.$ac_ext >&5
7869
7870 ac_header_compiler=no
7871fi
7872
7873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7875$as_echo "$ac_header_compiler" >&6; }
7876
7877# Is the header present?
7878{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7879$as_echo_n "checking $ac_header presence... " >&6; }
7880cat >conftest.$ac_ext <<_ACEOF
7881/* confdefs.h. */
7882_ACEOF
7883cat confdefs.h >>conftest.$ac_ext
7884cat >>conftest.$ac_ext <<_ACEOF
7885/* end confdefs.h. */
7886#include <$ac_header>
7887_ACEOF
7888if { (ac_try="$ac_cpp conftest.$ac_ext"
7889case "(($ac_try" in
7890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7891 *) ac_try_echo=$ac_try;;
7892esac
7893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7894$as_echo "$ac_try_echo") >&5
7895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7896 ac_status=$?
7897 grep -v '^ *+' conftest.er1 >conftest.err
7898 rm -f conftest.er1
7899 cat conftest.err >&5
7900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } >/dev/null && {
7902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7903 test ! -s conftest.err
7904 }; then
7905 ac_header_preproc=yes
7906else
7907 $as_echo "$as_me: failed program was:" >&5
7908sed 's/^/| /' conftest.$ac_ext >&5
7909
7910 ac_header_preproc=no
7911fi
7912
7913rm -f conftest.err conftest.$ac_ext
7914{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7915$as_echo "$ac_header_preproc" >&6; }
7916
7917# So? What about this header?
7918case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7919 yes:no: )
7920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7921$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7923$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7924 ac_header_preproc=yes
7925 ;;
7926 no:yes:* )
7927 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7928$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7929 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7930$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7931 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7932$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7934$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7936$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7937 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7938$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7939 ( cat <<\_ASBOX
7940## ----------------------------------------- ##
7941## Report this to http://www.imagemagick.org ##
7942## ----------------------------------------- ##
7943_ASBOX
7944 ) | sed "s/^/$as_me: WARNING: /" >&2
7945 ;;
7946esac
7947{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7948$as_echo_n "checking for $ac_header... " >&6; }
7949if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7950 $as_echo_n "(cached) " >&6
7951else
7952 eval "$as_ac_Header=\$ac_header_preproc"
7953fi
7954ac_res=`eval 'as_val=${'$as_ac_Header'}
7955 $as_echo "$as_val"'`
7956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7957$as_echo "$ac_res" >&6; }
7958
7959fi
7960as_val=`eval 'as_val=${'$as_ac_Header'}
7961 $as_echo "$as_val"'`
7962 if test "x$as_val" = x""yes; then
7963 cat >>confdefs.h <<_ACEOF
7964#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7965_ACEOF
7966
7967fi
7968
7969done
7970
7971CPPFLAGS=$ax_save_CPPFLAGS
7972
7973
7974for ac_header in windows.h
7975do
7976as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7977if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7978 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7979$as_echo_n "checking for $ac_header... " >&6; }
7980if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7981 $as_echo_n "(cached) " >&6
7982fi
7983ac_res=`eval 'as_val=${'$as_ac_Header'}
7984 $as_echo "$as_val"'`
7985 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7986$as_echo "$ac_res" >&6; }
7987else
7988 # Is the header compilable?
7989{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7990$as_echo_n "checking $ac_header usability... " >&6; }
7991cat >conftest.$ac_ext <<_ACEOF
7992/* confdefs.h. */
7993_ACEOF
7994cat confdefs.h >>conftest.$ac_ext
7995cat >>conftest.$ac_ext <<_ACEOF
7996/* end confdefs.h. */
7997$ac_includes_default
7998#include <$ac_header>
7999_ACEOF
8000rm -f conftest.$ac_objext
8001if { (ac_try="$ac_compile"
8002case "(($ac_try" in
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8005esac
8006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8007$as_echo "$ac_try_echo") >&5
8008 (eval "$ac_compile") 2>conftest.er1
8009 ac_status=$?
8010 grep -v '^ *+' conftest.er1 >conftest.err
8011 rm -f conftest.er1
8012 cat conftest.err >&5
8013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); } && {
8015 test -z "$ac_c_werror_flag" ||
8016 test ! -s conftest.err
8017 } && test -s conftest.$ac_objext; then
8018 ac_header_compiler=yes
8019else
8020 $as_echo "$as_me: failed program was:" >&5
8021sed 's/^/| /' conftest.$ac_ext >&5
8022
8023 ac_header_compiler=no
8024fi
8025
8026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8028$as_echo "$ac_header_compiler" >&6; }
8029
8030# Is the header present?
8031{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8032$as_echo_n "checking $ac_header presence... " >&6; }
8033cat >conftest.$ac_ext <<_ACEOF
8034/* confdefs.h. */
8035_ACEOF
8036cat confdefs.h >>conftest.$ac_ext
8037cat >>conftest.$ac_ext <<_ACEOF
8038/* end confdefs.h. */
8039#include <$ac_header>
8040_ACEOF
8041if { (ac_try="$ac_cpp conftest.$ac_ext"
8042case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8045esac
8046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8047$as_echo "$ac_try_echo") >&5
8048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8049 ac_status=$?
8050 grep -v '^ *+' conftest.er1 >conftest.err
8051 rm -f conftest.er1
8052 cat conftest.err >&5
8053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); } >/dev/null && {
8055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8056 test ! -s conftest.err
8057 }; then
8058 ac_header_preproc=yes
8059else
8060 $as_echo "$as_me: failed program was:" >&5
8061sed 's/^/| /' conftest.$ac_ext >&5
8062
8063 ac_header_preproc=no
8064fi
8065
8066rm -f conftest.err conftest.$ac_ext
8067{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8068$as_echo "$ac_header_preproc" >&6; }
8069
8070# So? What about this header?
8071case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8072 yes:no: )
8073 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8074$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8075 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8076$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8077 ac_header_preproc=yes
8078 ;;
8079 no:yes:* )
8080 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8081$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8082 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8083$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8084 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8085$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8087$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8089$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8090 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8091$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8092 ( cat <<\_ASBOX
8093## ----------------------------------------- ##
8094## Report this to http://www.imagemagick.org ##
8095## ----------------------------------------- ##
8096_ASBOX
8097 ) | sed "s/^/$as_me: WARNING: /" >&2
8098 ;;
8099esac
8100{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8101$as_echo_n "checking for $ac_header... " >&6; }
8102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8103 $as_echo_n "(cached) " >&6
8104else
8105 eval "$as_ac_Header=\$ac_header_preproc"
8106fi
8107ac_res=`eval 'as_val=${'$as_ac_Header'}
8108 $as_echo "$as_val"'`
8109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8110$as_echo "$ac_res" >&6; }
8111
8112fi
8113as_val=`eval 'as_val=${'$as_ac_Header'}
8114 $as_echo "$as_val"'`
8115 if test "x$as_val" = x""yes; then
8116 cat >>confdefs.h <<_ACEOF
8117#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8118_ACEOF
8119
8120fi
8121
8122done
8123
8124
8125
8126
8127{ $as_echo "$as_me:$LINENO: checking for OpenCL library" >&5
8128$as_echo_n "checking for OpenCL library... " >&6; }
8129if test "${ax_cv_check_cl_libcl+set}" = set; then
8130 $as_echo_n "(cached) " >&6
8131else
8132 ax_cv_check_cl_libcl=no
8133case $host_cpu in
8134 x86_64) ax_check_cl_libdir=lib64 ;;
8135 *) ax_check_cl_libdir=lib ;;
8136esac
8137ax_save_CPPFLAGS=$CPPFLAGS
8138CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8139ax_save_LIBS=$LIBS
8140LIBS=""
cristya49aa422009-09-20 23:40:10 +00008141ax_check_libs="-lOpenCL -lCL"
cristy736173a2009-09-20 21:18:22 +00008142for ax_lib in $ax_check_libs; do
8143 if test X$ax_compiler_ms = Xyes; then
8144 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8145else
8146 ax_try_lib=$ax_lib
8147fi
8148
8149 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8150cat >conftest.$ac_ext <<_ACEOF
8151/* confdefs.h. */
8152_ACEOF
8153cat confdefs.h >>conftest.$ac_ext
8154cat >>conftest.$ac_ext <<_ACEOF
8155/* end confdefs.h. */
8156
8157# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8158# include <windows.h>
8159# endif
cristya03a0852009-10-13 02:02:39 +00008160# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00008161# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00008162# elif defined(HAVE_OPENCL_OPENCL_H)
8163# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00008164# else
cristya03a0852009-10-13 02:02:39 +00008165# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00008166# endif
8167int
8168main ()
8169{
cristyc7083c12009-10-14 03:16:55 +00008170clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008171 ;
8172 return 0;
8173}
8174_ACEOF
8175rm -f conftest.$ac_objext conftest$ac_exeext
8176if { (ac_try="$ac_link"
8177case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180esac
8181eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8182$as_echo "$ac_try_echo") >&5
8183 (eval "$ac_link") 2>conftest.er1
8184 ac_status=$?
8185 grep -v '^ *+' conftest.er1 >conftest.err
8186 rm -f conftest.er1
8187 cat conftest.err >&5
8188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); } && {
8190 test -z "$ac_c_werror_flag" ||
8191 test ! -s conftest.err
8192 } && test -s conftest$ac_exeext && {
8193 test "$cross_compiling" = yes ||
8194 $as_test_x conftest$ac_exeext
8195 }; then
8196 ax_cv_check_cl_libcl=$ax_try_lib; break
8197else
8198 $as_echo "$as_me: failed program was:" >&5
8199sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 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"
8202 cat >conftest.$ac_ext <<_ACEOF
8203/* confdefs.h. */
8204_ACEOF
8205cat confdefs.h >>conftest.$ac_ext
8206cat >>conftest.$ac_ext <<_ACEOF
8207/* end confdefs.h. */
8208
8209# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8210# include <windows.h>
8211# endif
cristya03a0852009-10-13 02:02:39 +00008212# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00008213# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00008214# elif defined(HAVE_OPENCL_OPENCL_H)
8215# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00008216# else
cristya03a0852009-10-13 02:02:39 +00008217# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00008218# endif
8219int
8220main ()
8221{
cristyc7083c12009-10-14 03:16:55 +00008222clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008223 ;
8224 return 0;
8225}
8226_ACEOF
8227rm -f conftest.$ac_objext conftest$ac_exeext
8228if { (ac_try="$ac_link"
8229case "(($ac_try" in
8230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231 *) ac_try_echo=$ac_try;;
8232esac
8233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8234$as_echo "$ac_try_echo") >&5
8235 (eval "$ac_link") 2>conftest.er1
8236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest$ac_exeext && {
8245 test "$cross_compiling" = yes ||
8246 $as_test_x conftest$ac_exeext
8247 }; then
8248 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
8249else
8250 $as_echo "$as_me: failed program was:" >&5
8251sed 's/^/| /' conftest.$ac_ext >&5
8252
8253 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"
8254 cat >conftest.$ac_ext <<_ACEOF
8255/* confdefs.h. */
8256_ACEOF
8257cat confdefs.h >>conftest.$ac_ext
8258cat >>conftest.$ac_ext <<_ACEOF
8259/* end confdefs.h. */
8260
8261# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8262# include <windows.h>
8263# endif
cristya03a0852009-10-13 02:02:39 +00008264# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00008265# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00008266# elif defined(HAVE_OPENCL_OPENCL_H)
8267# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00008268# else
cristya03a0852009-10-13 02:02:39 +00008269# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00008270# endif
8271int
8272main ()
8273{
cristyc7083c12009-10-14 03:16:55 +00008274clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008275 ;
8276 return 0;
8277}
8278_ACEOF
8279rm -f conftest.$ac_objext conftest$ac_exeext
8280if { (ac_try="$ac_link"
8281case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284esac
8285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8286$as_echo "$ac_try_echo") >&5
8287 (eval "$ac_link") 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest$ac_exeext && {
8297 test "$cross_compiling" = yes ||
8298 $as_test_x conftest$ac_exeext
8299 }; then
8300 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
8301else
8302 $as_echo "$as_me: failed program was:" >&5
8303sed 's/^/| /' conftest.$ac_ext >&5
8304
8305
8306fi
8307
8308rm -rf conftest.dSYM
8309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8310 conftest$ac_exeext conftest.$ac_ext
8311fi
8312
8313rm -rf conftest.dSYM
8314rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8315 conftest$ac_exeext conftest.$ac_ext
8316fi
8317
8318rm -rf conftest.dSYM
8319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8320 conftest$ac_exeext conftest.$ac_ext
8321done
8322
8323if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then
8324 LIBS='-framework OpenCL'
8325 cat >conftest.$ac_ext <<_ACEOF
8326/* confdefs.h. */
8327_ACEOF
8328cat confdefs.h >>conftest.$ac_ext
8329cat >>conftest.$ac_ext <<_ACEOF
8330/* end confdefs.h. */
8331
8332# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8333# include <windows.h>
8334# endif
cristya03a0852009-10-13 02:02:39 +00008335# ifdef HAVE_CL_OPENCL_H
cristyc7083c12009-10-14 03:16:55 +00008336# include <CL/opencl.h>
cristya03a0852009-10-13 02:02:39 +00008337# elif defined(HAVE_OPENCL_OPENCL_H)
8338# include <OpenCL/OpenCL.h>
cristy736173a2009-09-20 21:18:22 +00008339# else
cristya03a0852009-10-13 02:02:39 +00008340# error no OpenCL.h
cristy736173a2009-09-20 21:18:22 +00008341# endif
8342int
8343main ()
8344{
cristyc7083c12009-10-14 03:16:55 +00008345clCreateContextFromType(0,0,0,0,0)
cristy736173a2009-09-20 21:18:22 +00008346 ;
8347 return 0;
8348}
8349_ACEOF
8350rm -f conftest.$ac_objext conftest$ac_exeext
8351if { (ac_try="$ac_link"
8352case "(($ac_try" in
8353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8354 *) ac_try_echo=$ac_try;;
8355esac
8356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8357$as_echo "$ac_try_echo") >&5
8358 (eval "$ac_link") 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } && {
8365 test -z "$ac_c_werror_flag" ||
8366 test ! -s conftest.err
8367 } && test -s conftest$ac_exeext && {
8368 test "$cross_compiling" = yes ||
8369 $as_test_x conftest$ac_exeext
8370 }; then
8371 ax_cv_check_cl_libcl=$LIBS
8372else
8373 $as_echo "$as_me: failed program was:" >&5
8374sed 's/^/| /' conftest.$ac_ext >&5
8375
8376
8377fi
8378
8379rm -rf conftest.dSYM
8380rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8381 conftest$ac_exeext conftest.$ac_ext
8382fi
8383
8384
8385LIBS=$ax_save_LIBS
8386CPPFLAGS=$ax_save_CPPFLAGS
8387fi
8388{ $as_echo "$as_me:$LINENO: result: $ax_cv_check_cl_libcl" >&5
8389$as_echo "$ax_cv_check_cl_libcl" >&6; }
8390
8391if test "X$ax_cv_check_cl_libcl" = Xno; then
8392 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
8393else
8394 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
8395fi
8396
8397ac_ext=c
8398ac_cpp='$CPP $CPPFLAGS'
8399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8401ac_compiler_gnu=$ac_cv_c_compiler_gnu
8402
8403
8404
8405
8406
cristyc7083c12009-10-14 03:16:55 +00008407CFLAGS="$CL_CFLAGS $CFLAGS"
8408LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +00008409
cristy3ed852e2009-09-05 21:47:34 +00008410########
8411#
8412# Check for large file support
8413#
8414########
8415# Check whether --enable-largefile was given.
8416if test "${enable_largefile+set}" = set; then
8417 enableval=$enable_largefile;
8418fi
8419
8420if test "$enable_largefile" != no; then
8421
8422 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8423$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8424if test "${ac_cv_sys_largefile_CC+set}" = set; then
8425 $as_echo_n "(cached) " >&6
8426else
8427 ac_cv_sys_largefile_CC=no
8428 if test "$GCC" != yes; then
8429 ac_save_CC=$CC
8430 while :; do
8431 # IRIX 6.2 and later do not support large files by default,
8432 # so use the C compiler's -n32 option if that helps.
8433 cat >conftest.$ac_ext <<_ACEOF
8434/* confdefs.h. */
8435_ACEOF
8436cat confdefs.h >>conftest.$ac_ext
8437cat >>conftest.$ac_ext <<_ACEOF
8438/* end confdefs.h. */
8439#include <sys/types.h>
8440 /* Check that off_t can represent 2**63 - 1 correctly.
8441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8442 since some C++ compilers masquerading as C compilers
8443 incorrectly reject 9223372036854775807. */
8444#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8446 && LARGE_OFF_T % 2147483647 == 1)
8447 ? 1 : -1];
8448int
8449main ()
8450{
8451
8452 ;
8453 return 0;
8454}
8455_ACEOF
8456 rm -f conftest.$ac_objext
8457if { (ac_try="$ac_compile"
8458case "(($ac_try" in
8459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8460 *) ac_try_echo=$ac_try;;
8461esac
8462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8463$as_echo "$ac_try_echo") >&5
8464 (eval "$ac_compile") 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_c_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest.$ac_objext; then
8474 break
8475else
8476 $as_echo "$as_me: failed program was:" >&5
8477sed 's/^/| /' conftest.$ac_ext >&5
8478
8479
8480fi
8481
8482rm -f core conftest.err conftest.$ac_objext
8483 CC="$CC -n32"
8484 rm -f conftest.$ac_objext
8485if { (ac_try="$ac_compile"
8486case "(($ac_try" in
8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8488 *) ac_try_echo=$ac_try;;
8489esac
8490eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8491$as_echo "$ac_try_echo") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8493 ac_status=$?
8494 grep -v '^ *+' conftest.er1 >conftest.err
8495 rm -f conftest.er1
8496 cat conftest.err >&5
8497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_c_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest.$ac_objext; then
8502 ac_cv_sys_largefile_CC=' -n32'; break
8503else
8504 $as_echo "$as_me: failed program was:" >&5
8505sed 's/^/| /' conftest.$ac_ext >&5
8506
8507
8508fi
8509
8510rm -f core conftest.err conftest.$ac_objext
8511 break
8512 done
8513 CC=$ac_save_CC
8514 rm -f conftest.$ac_ext
8515 fi
8516fi
8517{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8518$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8519 if test "$ac_cv_sys_largefile_CC" != no; then
8520 CC=$CC$ac_cv_sys_largefile_CC
8521 fi
8522
8523 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8524$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8525if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8526 $as_echo_n "(cached) " >&6
8527else
8528 while :; do
8529 cat >conftest.$ac_ext <<_ACEOF
8530/* confdefs.h. */
8531_ACEOF
8532cat confdefs.h >>conftest.$ac_ext
8533cat >>conftest.$ac_ext <<_ACEOF
8534/* end confdefs.h. */
8535#include <sys/types.h>
8536 /* Check that off_t can represent 2**63 - 1 correctly.
8537 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8538 since some C++ compilers masquerading as C compilers
8539 incorrectly reject 9223372036854775807. */
8540#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8541 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8542 && LARGE_OFF_T % 2147483647 == 1)
8543 ? 1 : -1];
8544int
8545main ()
8546{
8547
8548 ;
8549 return 0;
8550}
8551_ACEOF
8552rm -f conftest.$ac_objext
8553if { (ac_try="$ac_compile"
8554case "(($ac_try" in
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8557esac
8558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8559$as_echo "$ac_try_echo") >&5
8560 (eval "$ac_compile") 2>conftest.er1
8561 ac_status=$?
8562 grep -v '^ *+' conftest.er1 >conftest.err
8563 rm -f conftest.er1
8564 cat conftest.err >&5
8565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } && {
8567 test -z "$ac_c_werror_flag" ||
8568 test ! -s conftest.err
8569 } && test -s conftest.$ac_objext; then
8570 ac_cv_sys_file_offset_bits=no; break
8571else
8572 $as_echo "$as_me: failed program was:" >&5
8573sed 's/^/| /' conftest.$ac_ext >&5
8574
8575
8576fi
8577
8578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 cat >conftest.$ac_ext <<_ACEOF
8580/* confdefs.h. */
8581_ACEOF
8582cat confdefs.h >>conftest.$ac_ext
8583cat >>conftest.$ac_ext <<_ACEOF
8584/* end confdefs.h. */
8585#define _FILE_OFFSET_BITS 64
8586#include <sys/types.h>
8587 /* Check that off_t can represent 2**63 - 1 correctly.
8588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8589 since some C++ compilers masquerading as C compilers
8590 incorrectly reject 9223372036854775807. */
8591#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8593 && LARGE_OFF_T % 2147483647 == 1)
8594 ? 1 : -1];
8595int
8596main ()
8597{
8598
8599 ;
8600 return 0;
8601}
8602_ACEOF
8603rm -f conftest.$ac_objext
8604if { (ac_try="$ac_compile"
8605case "(($ac_try" in
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8608esac
8609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8610$as_echo "$ac_try_echo") >&5
8611 (eval "$ac_compile") 2>conftest.er1
8612 ac_status=$?
8613 grep -v '^ *+' conftest.er1 >conftest.err
8614 rm -f conftest.er1
8615 cat conftest.err >&5
8616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } && {
8618 test -z "$ac_c_werror_flag" ||
8619 test ! -s conftest.err
8620 } && test -s conftest.$ac_objext; then
8621 ac_cv_sys_file_offset_bits=64; break
8622else
8623 $as_echo "$as_me: failed program was:" >&5
8624sed 's/^/| /' conftest.$ac_ext >&5
8625
8626
8627fi
8628
8629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8630 ac_cv_sys_file_offset_bits=unknown
8631 break
8632done
8633fi
8634{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8635$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8636case $ac_cv_sys_file_offset_bits in #(
8637 no | unknown) ;;
8638 *)
8639cat >>confdefs.h <<_ACEOF
8640#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8641_ACEOF
8642;;
8643esac
8644rm -rf conftest*
8645 if test $ac_cv_sys_file_offset_bits = unknown; then
8646 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8647$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8648if test "${ac_cv_sys_large_files+set}" = set; then
8649 $as_echo_n "(cached) " >&6
8650else
8651 while :; do
8652 cat >conftest.$ac_ext <<_ACEOF
8653/* confdefs.h. */
8654_ACEOF
8655cat confdefs.h >>conftest.$ac_ext
8656cat >>conftest.$ac_ext <<_ACEOF
8657/* end confdefs.h. */
8658#include <sys/types.h>
8659 /* Check that off_t can represent 2**63 - 1 correctly.
8660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8661 since some C++ compilers masquerading as C compilers
8662 incorrectly reject 9223372036854775807. */
8663#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8665 && LARGE_OFF_T % 2147483647 == 1)
8666 ? 1 : -1];
8667int
8668main ()
8669{
8670
8671 ;
8672 return 0;
8673}
8674_ACEOF
8675rm -f conftest.$ac_objext
8676if { (ac_try="$ac_compile"
8677case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680esac
8681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8682$as_echo "$ac_try_echo") >&5
8683 (eval "$ac_compile") 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } && {
8690 test -z "$ac_c_werror_flag" ||
8691 test ! -s conftest.err
8692 } && test -s conftest.$ac_objext; then
8693 ac_cv_sys_large_files=no; break
8694else
8695 $as_echo "$as_me: failed program was:" >&5
8696sed 's/^/| /' conftest.$ac_ext >&5
8697
8698
8699fi
8700
8701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 cat >conftest.$ac_ext <<_ACEOF
8703/* confdefs.h. */
8704_ACEOF
8705cat confdefs.h >>conftest.$ac_ext
8706cat >>conftest.$ac_ext <<_ACEOF
8707/* end confdefs.h. */
8708#define _LARGE_FILES 1
8709#include <sys/types.h>
8710 /* Check that off_t can represent 2**63 - 1 correctly.
8711 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8712 since some C++ compilers masquerading as C compilers
8713 incorrectly reject 9223372036854775807. */
8714#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8715 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8716 && LARGE_OFF_T % 2147483647 == 1)
8717 ? 1 : -1];
8718int
8719main ()
8720{
8721
8722 ;
8723 return 0;
8724}
8725_ACEOF
8726rm -f conftest.$ac_objext
8727if { (ac_try="$ac_compile"
8728case "(($ac_try" in
8729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730 *) ac_try_echo=$ac_try;;
8731esac
8732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8733$as_echo "$ac_try_echo") >&5
8734 (eval "$ac_compile") 2>conftest.er1
8735 ac_status=$?
8736 grep -v '^ *+' conftest.er1 >conftest.err
8737 rm -f conftest.er1
8738 cat conftest.err >&5
8739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740 (exit $ac_status); } && {
8741 test -z "$ac_c_werror_flag" ||
8742 test ! -s conftest.err
8743 } && test -s conftest.$ac_objext; then
8744 ac_cv_sys_large_files=1; break
8745else
8746 $as_echo "$as_me: failed program was:" >&5
8747sed 's/^/| /' conftest.$ac_ext >&5
8748
8749
8750fi
8751
8752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8753 ac_cv_sys_large_files=unknown
8754 break
8755done
8756fi
8757{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8758$as_echo "$ac_cv_sys_large_files" >&6; }
8759case $ac_cv_sys_large_files in #(
8760 no | unknown) ;;
8761 *)
8762cat >>confdefs.h <<_ACEOF
8763#define _LARGE_FILES $ac_cv_sys_large_files
8764_ACEOF
8765;;
8766esac
8767rm -rf conftest*
8768 fi
8769fi
8770
8771{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8772$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8773if test "${ac_cv_sys_largefile_source+set}" = set; then
8774 $as_echo_n "(cached) " >&6
8775else
8776 while :; do
8777 cat >conftest.$ac_ext <<_ACEOF
8778/* confdefs.h. */
8779_ACEOF
8780cat confdefs.h >>conftest.$ac_ext
8781cat >>conftest.$ac_ext <<_ACEOF
8782/* end confdefs.h. */
8783#include <sys/types.h> /* for off_t */
8784 #include <stdio.h>
8785int
8786main ()
8787{
8788int (*fp) (FILE *, off_t, int) = fseeko;
8789 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8790 ;
8791 return 0;
8792}
8793_ACEOF
8794rm -f conftest.$ac_objext conftest$ac_exeext
8795if { (ac_try="$ac_link"
8796case "(($ac_try" in
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8799esac
8800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8801$as_echo "$ac_try_echo") >&5
8802 (eval "$ac_link") 2>conftest.er1
8803 ac_status=$?
8804 grep -v '^ *+' conftest.er1 >conftest.err
8805 rm -f conftest.er1
8806 cat conftest.err >&5
8807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && {
8809 test -z "$ac_c_werror_flag" ||
8810 test ! -s conftest.err
8811 } && test -s conftest$ac_exeext && {
8812 test "$cross_compiling" = yes ||
8813 $as_test_x conftest$ac_exeext
8814 }; then
8815 ac_cv_sys_largefile_source=no; break
8816else
8817 $as_echo "$as_me: failed program was:" >&5
8818sed 's/^/| /' conftest.$ac_ext >&5
8819
8820
8821fi
8822
8823rm -rf conftest.dSYM
8824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8825 conftest$ac_exeext conftest.$ac_ext
8826 cat >conftest.$ac_ext <<_ACEOF
8827/* confdefs.h. */
8828_ACEOF
8829cat confdefs.h >>conftest.$ac_ext
8830cat >>conftest.$ac_ext <<_ACEOF
8831/* end confdefs.h. */
8832#define _LARGEFILE_SOURCE 1
8833#include <sys/types.h> /* for off_t */
8834 #include <stdio.h>
8835int
8836main ()
8837{
8838int (*fp) (FILE *, off_t, int) = fseeko;
8839 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8840 ;
8841 return 0;
8842}
8843_ACEOF
8844rm -f conftest.$ac_objext conftest$ac_exeext
8845if { (ac_try="$ac_link"
8846case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849esac
8850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8851$as_echo "$ac_try_echo") >&5
8852 (eval "$ac_link") 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && {
8859 test -z "$ac_c_werror_flag" ||
8860 test ! -s conftest.err
8861 } && test -s conftest$ac_exeext && {
8862 test "$cross_compiling" = yes ||
8863 $as_test_x conftest$ac_exeext
8864 }; then
8865 ac_cv_sys_largefile_source=1; break
8866else
8867 $as_echo "$as_me: failed program was:" >&5
8868sed 's/^/| /' conftest.$ac_ext >&5
8869
8870
8871fi
8872
8873rm -rf conftest.dSYM
8874rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8875 conftest$ac_exeext conftest.$ac_ext
8876 ac_cv_sys_largefile_source=unknown
8877 break
8878done
8879fi
8880{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8881$as_echo "$ac_cv_sys_largefile_source" >&6; }
8882case $ac_cv_sys_largefile_source in #(
8883 no | unknown) ;;
8884 *)
8885cat >>confdefs.h <<_ACEOF
8886#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8887_ACEOF
8888;;
8889esac
8890rm -rf conftest*
8891
8892# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8893# in glibc 2.1.3, but that breaks too many other things.
8894# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8895if test $ac_cv_sys_largefile_source != unknown; then
8896
8897cat >>confdefs.h <<\_ACEOF
8898#define HAVE_FSEEKO 1
8899_ACEOF
8900
8901fi
8902
8903LFS_CPPFLAGS=''
8904if test "$enable_largefile" != no; then
8905 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8906 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8907 else
8908 { $as_echo "$as_me:$LINENO: checking for native large file support" >&5
8909$as_echo_n "checking for native large file support... " >&6; }
8910 if test "$cross_compiling" = yes; then
8911 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8912$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8913{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8914See \`config.log' for more details." >&5
8915$as_echo "$as_me: error: cannot run test program while cross compiling
8916See \`config.log' for more details." >&2;}
8917 { (exit 1); exit 1; }; }; }
8918else
8919 cat >conftest.$ac_ext <<_ACEOF
8920#include <unistd.h>
8921 main () {
8922 exit(!(sizeof(off_t) == 8));
8923 }
8924_ACEOF
8925rm -f conftest$ac_exeext
8926if { (ac_try="$ac_link"
8927case "(($ac_try" in
8928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8929 *) ac_try_echo=$ac_try;;
8930esac
8931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8932$as_echo "$ac_try_echo") >&5
8933 (eval "$ac_link") 2>&5
8934 ac_status=$?
8935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8937 { (case "(($ac_try" in
8938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8939 *) ac_try_echo=$ac_try;;
8940esac
8941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8942$as_echo "$ac_try_echo") >&5
8943 (eval "$ac_try") 2>&5
8944 ac_status=$?
8945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 ac_cv_sys_file_offset_bits=64; cat >>confdefs.h <<\_ACEOF
8948#define _FILE_OFFSET_BITS 64
8949_ACEOF
8950
8951 { $as_echo "$as_me:$LINENO: result: yes" >&5
8952$as_echo "yes" >&6; }
8953else
8954 $as_echo "$as_me: program exited with status $ac_status" >&5
8955$as_echo "$as_me: failed program was:" >&5
8956sed 's/^/| /' conftest.$ac_ext >&5
8957
8958( exit $ac_status )
8959{ $as_echo "$as_me:$LINENO: result: no" >&5
8960$as_echo "no" >&6; }
8961fi
8962rm -rf conftest.dSYM
8963rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8964fi
8965
8966
8967 fi
8968 if test "$ac_cv_sys_large_files" != 'no'; then
8969 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8970 fi
8971 if test "$ac_cv_sys_largefile_source" != 'no'; then
8972 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8973 fi
8974fi
8975
8976
8977#
8978# Configure libtool & libltdl
8979#
8980# Configure libtool
8981enable_dlopen=yes
8982
8983
8984
8985case `pwd` in
8986 *\ * | *\ *)
8987 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8988$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8989esac
8990
8991
8992
8993macro_version='2.2.6'
8994macro_revision='1.3012'
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008ltmain="$ac_aux_dir/ltmain.sh"
9009
9010{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
9011$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9012if test "${lt_cv_path_NM+set}" = set; then
9013 $as_echo_n "(cached) " >&6
9014else
9015 if test -n "$NM"; then
9016 # Let the user override the test.
9017 lt_cv_path_NM="$NM"
9018else
9019 lt_nm_to_check="${ac_tool_prefix}nm"
9020 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9021 lt_nm_to_check="$lt_nm_to_check nm"
9022 fi
9023 for lt_tmp_nm in $lt_nm_to_check; do
9024 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9025 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9026 IFS="$lt_save_ifs"
9027 test -z "$ac_dir" && ac_dir=.
9028 tmp_nm="$ac_dir/$lt_tmp_nm"
9029 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9030 # Check to see if the nm accepts a BSD-compat flag.
9031 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9032 # nm: unknown option "B" ignored
9033 # Tru64's nm complains that /dev/null is an invalid object file
9034 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9035 */dev/null* | *'Invalid file or object type'*)
9036 lt_cv_path_NM="$tmp_nm -B"
9037 break
9038 ;;
9039 *)
9040 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9041 */dev/null*)
9042 lt_cv_path_NM="$tmp_nm -p"
9043 break
9044 ;;
9045 *)
9046 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9047 continue # so that we can try to find one that supports BSD flags
9048 ;;
9049 esac
9050 ;;
9051 esac
9052 fi
9053 done
9054 IFS="$lt_save_ifs"
9055 done
9056 : ${lt_cv_path_NM=no}
9057fi
9058fi
9059{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9060$as_echo "$lt_cv_path_NM" >&6; }
9061if test "$lt_cv_path_NM" != "no"; then
9062 NM="$lt_cv_path_NM"
9063else
9064 # Didn't find any BSD compatible name lister, look for dumpbin.
9065 if test -n "$ac_tool_prefix"; then
9066 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9067 do
9068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9069set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9070{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9071$as_echo_n "checking for $ac_word... " >&6; }
9072if test "${ac_cv_prog_DUMPBIN+set}" = set; then
9073 $as_echo_n "(cached) " >&6
9074else
9075 if test -n "$DUMPBIN"; then
9076 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9077else
9078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9079for as_dir in $PATH
9080do
9081 IFS=$as_save_IFS
9082 test -z "$as_dir" && as_dir=.
9083 for ac_exec_ext in '' $ac_executable_extensions; do
9084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9085 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9086 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9087 break 2
9088 fi
9089done
9090done
9091IFS=$as_save_IFS
9092
9093fi
9094fi
9095DUMPBIN=$ac_cv_prog_DUMPBIN
9096if test -n "$DUMPBIN"; then
9097 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
9098$as_echo "$DUMPBIN" >&6; }
9099else
9100 { $as_echo "$as_me:$LINENO: result: no" >&5
9101$as_echo "no" >&6; }
9102fi
9103
9104
9105 test -n "$DUMPBIN" && break
9106 done
9107fi
9108if test -z "$DUMPBIN"; then
9109 ac_ct_DUMPBIN=$DUMPBIN
9110 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9111do
9112 # Extract the first word of "$ac_prog", so it can be a program name with args.
9113set dummy $ac_prog; ac_word=$2
9114{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9115$as_echo_n "checking for $ac_word... " >&6; }
9116if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
9117 $as_echo_n "(cached) " >&6
9118else
9119 if test -n "$ac_ct_DUMPBIN"; then
9120 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9121else
9122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123for as_dir in $PATH
9124do
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9129 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9130 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9131 break 2
9132 fi
9133done
9134done
9135IFS=$as_save_IFS
9136
9137fi
9138fi
9139ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9140if test -n "$ac_ct_DUMPBIN"; then
9141 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
9142$as_echo "$ac_ct_DUMPBIN" >&6; }
9143else
9144 { $as_echo "$as_me:$LINENO: result: no" >&5
9145$as_echo "no" >&6; }
9146fi
9147
9148
9149 test -n "$ac_ct_DUMPBIN" && break
9150done
9151
9152 if test "x$ac_ct_DUMPBIN" = x; then
9153 DUMPBIN=":"
9154 else
9155 case $cross_compiling:$ac_tool_warned in
9156yes:)
9157{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9159ac_tool_warned=yes ;;
9160esac
9161 DUMPBIN=$ac_ct_DUMPBIN
9162 fi
9163fi
9164
9165
9166 if test "$DUMPBIN" != ":"; then
9167 NM="$DUMPBIN"
9168 fi
9169fi
9170test -z "$NM" && NM=nm
9171
9172
9173
9174
9175
9176
9177{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
9178$as_echo_n "checking the name lister ($NM) interface... " >&6; }
9179if test "${lt_cv_nm_interface+set}" = set; then
9180 $as_echo_n "(cached) " >&6
9181else
9182 lt_cv_nm_interface="BSD nm"
9183 echo "int some_variable = 0;" > conftest.$ac_ext
cristya0242ab2009-10-15 19:17:14 +00009184 (eval echo "\"\$as_me:9184: $ac_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009185 (eval "$ac_compile" 2>conftest.err)
9186 cat conftest.err >&5
cristya0242ab2009-10-15 19:17:14 +00009187 (eval echo "\"\$as_me:9187: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009188 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9189 cat conftest.err >&5
cristya0242ab2009-10-15 19:17:14 +00009190 (eval echo "\"\$as_me:9190: output\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +00009191 cat conftest.out >&5
9192 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9193 lt_cv_nm_interface="MS dumpbin"
9194 fi
9195 rm -f conftest*
9196fi
9197{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
9198$as_echo "$lt_cv_nm_interface" >&6; }
9199
9200# find the maximum length of command line arguments
9201{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9202$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9203if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9204 $as_echo_n "(cached) " >&6
9205else
9206 i=0
9207 teststring="ABCD"
9208
9209 case $build_os in
9210 msdosdjgpp*)
9211 # On DJGPP, this test can blow up pretty badly due to problems in libc
9212 # (any single argument exceeding 2000 bytes causes a buffer overrun
9213 # during glob expansion). Even if it were fixed, the result of this
9214 # check would be larger than it should be.
9215 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9216 ;;
9217
9218 gnu*)
9219 # Under GNU Hurd, this test is not required because there is
9220 # no limit to the length of command line arguments.
9221 # Libtool will interpret -1 as no limit whatsoever
9222 lt_cv_sys_max_cmd_len=-1;
9223 ;;
9224
9225 cygwin* | mingw* | cegcc*)
9226 # On Win9x/ME, this test blows up -- it succeeds, but takes
9227 # about 5 minutes as the teststring grows exponentially.
9228 # Worse, since 9x/ME are not pre-emptively multitasking,
9229 # you end up with a "frozen" computer, even though with patience
9230 # the test eventually succeeds (with a max line length of 256k).
9231 # Instead, let's just punt: use the minimum linelength reported by
9232 # all of the supported platforms: 8192 (on NT/2K/XP).
9233 lt_cv_sys_max_cmd_len=8192;
9234 ;;
9235
9236 amigaos*)
9237 # On AmigaOS with pdksh, this test takes hours, literally.
9238 # So we just punt and use a minimum line length of 8192.
9239 lt_cv_sys_max_cmd_len=8192;
9240 ;;
9241
9242 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9243 # This has been around since 386BSD, at least. Likely further.
9244 if test -x /sbin/sysctl; then
9245 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9246 elif test -x /usr/sbin/sysctl; then
9247 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9248 else
9249 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9250 fi
9251 # And add a safety zone
9252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9254 ;;
9255
9256 interix*)
9257 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9258 lt_cv_sys_max_cmd_len=196608
9259 ;;
9260
9261 osf*)
9262 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9263 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9264 # nice to cause kernel panics so lets avoid the loop below.
9265 # First set a reasonable default.
9266 lt_cv_sys_max_cmd_len=16384
9267 #
9268 if test -x /sbin/sysconfig; then
9269 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9270 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9271 esac
9272 fi
9273 ;;
9274 sco3.2v5*)
9275 lt_cv_sys_max_cmd_len=102400
9276 ;;
9277 sysv5* | sco5v6* | sysv4.2uw2*)
9278 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9279 if test -n "$kargmax"; then
9280 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9281 else
9282 lt_cv_sys_max_cmd_len=32768
9283 fi
9284 ;;
9285 *)
9286 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9287 if test -n "$lt_cv_sys_max_cmd_len"; then
9288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9290 else
9291 # Make teststring a little bigger before we do anything with it.
9292 # a 1K string should be a reasonable start.
9293 for i in 1 2 3 4 5 6 7 8 ; do
9294 teststring=$teststring$teststring
9295 done
9296 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9297 # If test is not a shell built-in, we'll probably end up computing a
9298 # maximum length that is only half of the actual maximum length, but
9299 # we can't tell.
9300 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9301 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9302 test $i != 17 # 1/2 MB should be enough
9303 do
9304 i=`expr $i + 1`
9305 teststring=$teststring$teststring
9306 done
9307 # Only check the string length outside the loop.
9308 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9309 teststring=
9310 # Add a significant safety factor because C++ compilers can tack on
9311 # massive amounts of additional arguments before passing them to the
9312 # linker. It appears as though 1/2 is a usable value.
9313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9314 fi
9315 ;;
9316 esac
9317
9318fi
9319
9320if test -n $lt_cv_sys_max_cmd_len ; then
9321 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9322$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9323else
9324 { $as_echo "$as_me:$LINENO: result: none" >&5
9325$as_echo "none" >&6; }
9326fi
9327max_cmd_len=$lt_cv_sys_max_cmd_len
9328
9329
9330
9331
9332
9333
9334: ${CP="cp -f"}
9335: ${MV="mv -f"}
9336: ${RM="rm -f"}
9337
9338{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
9339$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9340# Try some XSI features
9341xsi_shell=no
9342( _lt_dummy="a/b/c"
9343 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9344 = c,a/b,, \
9345 && eval 'test $(( 1 + 1 )) -eq 2 \
9346 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9347 && xsi_shell=yes
9348{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
9349$as_echo "$xsi_shell" >&6; }
9350
9351
9352{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
9353$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9354lt_shell_append=no
9355( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9356 >/dev/null 2>&1 \
9357 && lt_shell_append=yes
9358{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
9359$as_echo "$lt_shell_append" >&6; }
9360
9361
9362if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9363 lt_unset=unset
9364else
9365 lt_unset=false
9366fi
9367
9368
9369
9370
9371
9372# test EBCDIC or ASCII
9373case `echo X|tr X '\101'` in
9374 A) # ASCII based system
9375 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9376 lt_SP2NL='tr \040 \012'
9377 lt_NL2SP='tr \015\012 \040\040'
9378 ;;
9379 *) # EBCDIC based system
9380 lt_SP2NL='tr \100 \n'
9381 lt_NL2SP='tr \r\n \100\100'
9382 ;;
9383esac
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9394$as_echo_n "checking for $LD option to reload object files... " >&6; }
9395if test "${lt_cv_ld_reload_flag+set}" = set; then
9396 $as_echo_n "(cached) " >&6
9397else
9398 lt_cv_ld_reload_flag='-r'
9399fi
9400{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9401$as_echo "$lt_cv_ld_reload_flag" >&6; }
9402reload_flag=$lt_cv_ld_reload_flag
9403case $reload_flag in
9404"" | " "*) ;;
9405*) reload_flag=" $reload_flag" ;;
9406esac
9407reload_cmds='$LD$reload_flag -o $output$reload_objs'
9408case $host_os in
9409 darwin*)
9410 if test "$GCC" = yes; then
9411 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9412 else
9413 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9414 fi
9415 ;;
9416esac
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426if test -n "$ac_tool_prefix"; then
9427 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9428set dummy ${ac_tool_prefix}objdump; ac_word=$2
9429{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9430$as_echo_n "checking for $ac_word... " >&6; }
9431if test "${ac_cv_prog_OBJDUMP+set}" = set; then
9432 $as_echo_n "(cached) " >&6
9433else
9434 if test -n "$OBJDUMP"; then
9435 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9436else
9437as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9438for as_dir in $PATH
9439do
9440 IFS=$as_save_IFS
9441 test -z "$as_dir" && as_dir=.
9442 for ac_exec_ext in '' $ac_executable_extensions; do
9443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9444 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9446 break 2
9447 fi
9448done
9449done
9450IFS=$as_save_IFS
9451
9452fi
9453fi
9454OBJDUMP=$ac_cv_prog_OBJDUMP
9455if test -n "$OBJDUMP"; then
9456 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
9457$as_echo "$OBJDUMP" >&6; }
9458else
9459 { $as_echo "$as_me:$LINENO: result: no" >&5
9460$as_echo "no" >&6; }
9461fi
9462
9463
9464fi
9465if test -z "$ac_cv_prog_OBJDUMP"; then
9466 ac_ct_OBJDUMP=$OBJDUMP
9467 # Extract the first word of "objdump", so it can be a program name with args.
9468set dummy objdump; ac_word=$2
9469{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9470$as_echo_n "checking for $ac_word... " >&6; }
9471if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
9472 $as_echo_n "(cached) " >&6
9473else
9474 if test -n "$ac_ct_OBJDUMP"; then
9475 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9476else
9477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478for as_dir in $PATH
9479do
9480 IFS=$as_save_IFS
9481 test -z "$as_dir" && as_dir=.
9482 for ac_exec_ext in '' $ac_executable_extensions; do
9483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9484 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9485 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9486 break 2
9487 fi
9488done
9489done
9490IFS=$as_save_IFS
9491
9492fi
9493fi
9494ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9495if test -n "$ac_ct_OBJDUMP"; then
9496 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
9497$as_echo "$ac_ct_OBJDUMP" >&6; }
9498else
9499 { $as_echo "$as_me:$LINENO: result: no" >&5
9500$as_echo "no" >&6; }
9501fi
9502
9503 if test "x$ac_ct_OBJDUMP" = x; then
9504 OBJDUMP="false"
9505 else
9506 case $cross_compiling:$ac_tool_warned in
9507yes:)
9508{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9509$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9510ac_tool_warned=yes ;;
9511esac
9512 OBJDUMP=$ac_ct_OBJDUMP
9513 fi
9514else
9515 OBJDUMP="$ac_cv_prog_OBJDUMP"
9516fi
9517
9518test -z "$OBJDUMP" && OBJDUMP=objdump
9519
9520
9521
9522
9523
9524
9525{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
9526$as_echo_n "checking how to recognize dependent libraries... " >&6; }
9527if test "${lt_cv_deplibs_check_method+set}" = set; then
9528 $as_echo_n "(cached) " >&6
9529else
9530 lt_cv_file_magic_cmd='$MAGIC_CMD'
9531lt_cv_file_magic_test_file=
9532lt_cv_deplibs_check_method='unknown'
9533# Need to set the preceding variable on all platforms that support
9534# interlibrary dependencies.
9535# 'none' -- dependencies not supported.
9536# `unknown' -- same as none, but documents that we really don't know.
9537# 'pass_all' -- all dependencies passed with no checks.
9538# 'test_compile' -- check by making test program.
9539# 'file_magic [[regex]]' -- check by looking for files in library path
9540# which responds to the $file_magic_cmd with a given extended regex.
9541# If you have `file' or equivalent on your system and you're not sure
9542# whether `pass_all' will *always* work, you probably want this one.
9543
9544case $host_os in
9545aix[4-9]*)
9546 lt_cv_deplibs_check_method=pass_all
9547 ;;
9548
9549beos*)
9550 lt_cv_deplibs_check_method=pass_all
9551 ;;
9552
9553bsdi[45]*)
9554 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9555 lt_cv_file_magic_cmd='/usr/bin/file -L'
9556 lt_cv_file_magic_test_file=/shlib/libc.so
9557 ;;
9558
9559cygwin*)
9560 # func_win32_libid is a shell function defined in ltmain.sh
9561 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9562 lt_cv_file_magic_cmd='func_win32_libid'
9563 ;;
9564
9565mingw* | pw32*)
9566 # Base MSYS/MinGW do not provide the 'file' command needed by
9567 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9568 # unless we find 'file', for example because we are cross-compiling.
9569 if ( file / ) >/dev/null 2>&1; then
9570 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9571 lt_cv_file_magic_cmd='func_win32_libid'
9572 else
9573 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9574 lt_cv_file_magic_cmd='$OBJDUMP -f'
9575 fi
9576 ;;
9577
9578cegcc)
9579 # use the weaker test based on 'objdump'. See mingw*.
9580 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9581 lt_cv_file_magic_cmd='$OBJDUMP -f'
9582 ;;
9583
9584darwin* | rhapsody*)
9585 lt_cv_deplibs_check_method=pass_all
9586 ;;
9587
9588freebsd* | dragonfly*)
9589 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9590 case $host_cpu in
9591 i*86 )
9592 # Not sure whether the presence of OpenBSD here was a mistake.
9593 # Let's accept both of them until this is cleared up.
9594 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9595 lt_cv_file_magic_cmd=/usr/bin/file
9596 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9597 ;;
9598 esac
9599 else
9600 lt_cv_deplibs_check_method=pass_all
9601 fi
9602 ;;
9603
9604gnu*)
9605 lt_cv_deplibs_check_method=pass_all
9606 ;;
9607
9608hpux10.20* | hpux11*)
9609 lt_cv_file_magic_cmd=/usr/bin/file
9610 case $host_cpu in
9611 ia64*)
9612 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9613 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9614 ;;
9615 hppa*64*)
9616 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]'
9617 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9618 ;;
9619 *)
9620 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9621 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9622 ;;
9623 esac
9624 ;;
9625
9626interix[3-9]*)
9627 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9628 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9629 ;;
9630
9631irix5* | irix6* | nonstopux*)
9632 case $LD in
9633 *-32|*"-32 ") libmagic=32-bit;;
9634 *-n32|*"-n32 ") libmagic=N32;;
9635 *-64|*"-64 ") libmagic=64-bit;;
9636 *) libmagic=never-match;;
9637 esac
9638 lt_cv_deplibs_check_method=pass_all
9639 ;;
9640
9641# This must be Linux ELF.
9642linux* | k*bsd*-gnu)
9643 lt_cv_deplibs_check_method=pass_all
9644 ;;
9645
9646netbsd*)
9647 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9649 else
9650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9651 fi
9652 ;;
9653
9654newos6*)
9655 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9656 lt_cv_file_magic_cmd=/usr/bin/file
9657 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9658 ;;
9659
9660*nto* | *qnx*)
9661 lt_cv_deplibs_check_method=pass_all
9662 ;;
9663
9664openbsd*)
9665 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9667 else
9668 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9669 fi
9670 ;;
9671
9672osf3* | osf4* | osf5*)
9673 lt_cv_deplibs_check_method=pass_all
9674 ;;
9675
9676rdos*)
9677 lt_cv_deplibs_check_method=pass_all
9678 ;;
9679
9680solaris*)
9681 lt_cv_deplibs_check_method=pass_all
9682 ;;
9683
9684sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9685 lt_cv_deplibs_check_method=pass_all
9686 ;;
9687
9688sysv4 | sysv4.3*)
9689 case $host_vendor in
9690 motorola)
9691 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]'
9692 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9693 ;;
9694 ncr)
9695 lt_cv_deplibs_check_method=pass_all
9696 ;;
9697 sequent)
9698 lt_cv_file_magic_cmd='/bin/file'
9699 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9700 ;;
9701 sni)
9702 lt_cv_file_magic_cmd='/bin/file'
9703 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9704 lt_cv_file_magic_test_file=/lib/libc.so
9705 ;;
9706 siemens)
9707 lt_cv_deplibs_check_method=pass_all
9708 ;;
9709 pc)
9710 lt_cv_deplibs_check_method=pass_all
9711 ;;
9712 esac
9713 ;;
9714
9715tpf*)
9716 lt_cv_deplibs_check_method=pass_all
9717 ;;
9718esac
9719
9720fi
9721{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9722$as_echo "$lt_cv_deplibs_check_method" >&6; }
9723file_magic_cmd=$lt_cv_file_magic_cmd
9724deplibs_check_method=$lt_cv_deplibs_check_method
9725test -z "$deplibs_check_method" && deplibs_check_method=unknown
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738if test -n "$ac_tool_prefix"; then
9739 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9740set dummy ${ac_tool_prefix}ar; ac_word=$2
9741{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9742$as_echo_n "checking for $ac_word... " >&6; }
9743if test "${ac_cv_prog_AR+set}" = set; then
9744 $as_echo_n "(cached) " >&6
9745else
9746 if test -n "$AR"; then
9747 ac_cv_prog_AR="$AR" # Let the user override the test.
9748else
9749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9750for as_dir in $PATH
9751do
9752 IFS=$as_save_IFS
9753 test -z "$as_dir" && as_dir=.
9754 for ac_exec_ext in '' $ac_executable_extensions; do
9755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9756 ac_cv_prog_AR="${ac_tool_prefix}ar"
9757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9758 break 2
9759 fi
9760done
9761done
9762IFS=$as_save_IFS
9763
9764fi
9765fi
9766AR=$ac_cv_prog_AR
9767if test -n "$AR"; then
9768 { $as_echo "$as_me:$LINENO: result: $AR" >&5
9769$as_echo "$AR" >&6; }
9770else
9771 { $as_echo "$as_me:$LINENO: result: no" >&5
9772$as_echo "no" >&6; }
9773fi
9774
9775
9776fi
9777if test -z "$ac_cv_prog_AR"; then
9778 ac_ct_AR=$AR
9779 # Extract the first word of "ar", so it can be a program name with args.
9780set dummy ar; ac_word=$2
9781{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9782$as_echo_n "checking for $ac_word... " >&6; }
9783if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9784 $as_echo_n "(cached) " >&6
9785else
9786 if test -n "$ac_ct_AR"; then
9787 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9788else
9789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790for as_dir in $PATH
9791do
9792 IFS=$as_save_IFS
9793 test -z "$as_dir" && as_dir=.
9794 for ac_exec_ext in '' $ac_executable_extensions; do
9795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9796 ac_cv_prog_ac_ct_AR="ar"
9797 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9798 break 2
9799 fi
9800done
9801done
9802IFS=$as_save_IFS
9803
9804fi
9805fi
9806ac_ct_AR=$ac_cv_prog_ac_ct_AR
9807if test -n "$ac_ct_AR"; then
9808 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9809$as_echo "$ac_ct_AR" >&6; }
9810else
9811 { $as_echo "$as_me:$LINENO: result: no" >&5
9812$as_echo "no" >&6; }
9813fi
9814
9815 if test "x$ac_ct_AR" = x; then
9816 AR="false"
9817 else
9818 case $cross_compiling:$ac_tool_warned in
9819yes:)
9820{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9822ac_tool_warned=yes ;;
9823esac
9824 AR=$ac_ct_AR
9825 fi
9826else
9827 AR="$ac_cv_prog_AR"
9828fi
9829
9830test -z "$AR" && AR=ar
9831test -z "$AR_FLAGS" && AR_FLAGS=cru
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843if test -n "$ac_tool_prefix"; then
9844 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9845set dummy ${ac_tool_prefix}strip; ac_word=$2
9846{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9847$as_echo_n "checking for $ac_word... " >&6; }
9848if test "${ac_cv_prog_STRIP+set}" = set; then
9849 $as_echo_n "(cached) " >&6
9850else
9851 if test -n "$STRIP"; then
9852 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9853else
9854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9855for as_dir in $PATH
9856do
9857 IFS=$as_save_IFS
9858 test -z "$as_dir" && as_dir=.
9859 for ac_exec_ext in '' $ac_executable_extensions; do
9860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9861 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9862 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9863 break 2
9864 fi
9865done
9866done
9867IFS=$as_save_IFS
9868
9869fi
9870fi
9871STRIP=$ac_cv_prog_STRIP
9872if test -n "$STRIP"; then
9873 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
9874$as_echo "$STRIP" >&6; }
9875else
9876 { $as_echo "$as_me:$LINENO: result: no" >&5
9877$as_echo "no" >&6; }
9878fi
9879
9880
9881fi
9882if test -z "$ac_cv_prog_STRIP"; then
9883 ac_ct_STRIP=$STRIP
9884 # Extract the first word of "strip", so it can be a program name with args.
9885set dummy strip; ac_word=$2
9886{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9887$as_echo_n "checking for $ac_word... " >&6; }
9888if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9889 $as_echo_n "(cached) " >&6
9890else
9891 if test -n "$ac_ct_STRIP"; then
9892 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9893else
9894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895for as_dir in $PATH
9896do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
9899 for ac_exec_ext in '' $ac_executable_extensions; do
9900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9901 ac_cv_prog_ac_ct_STRIP="strip"
9902 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 break 2
9904 fi
9905done
9906done
9907IFS=$as_save_IFS
9908
9909fi
9910fi
9911ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9912if test -n "$ac_ct_STRIP"; then
9913 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9914$as_echo "$ac_ct_STRIP" >&6; }
9915else
9916 { $as_echo "$as_me:$LINENO: result: no" >&5
9917$as_echo "no" >&6; }
9918fi
9919
9920 if test "x$ac_ct_STRIP" = x; then
9921 STRIP=":"
9922 else
9923 case $cross_compiling:$ac_tool_warned in
9924yes:)
9925{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9927ac_tool_warned=yes ;;
9928esac
9929 STRIP=$ac_ct_STRIP
9930 fi
9931else
9932 STRIP="$ac_cv_prog_STRIP"
9933fi
9934
9935test -z "$STRIP" && STRIP=:
9936
9937
9938
9939
9940
9941
9942if test -n "$ac_tool_prefix"; then
9943 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9944set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9945{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9946$as_echo_n "checking for $ac_word... " >&6; }
9947if test "${ac_cv_prog_RANLIB+set}" = set; then
9948 $as_echo_n "(cached) " >&6
9949else
9950 if test -n "$RANLIB"; then
9951 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9952else
9953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9954for as_dir in $PATH
9955do
9956 IFS=$as_save_IFS
9957 test -z "$as_dir" && as_dir=.
9958 for ac_exec_ext in '' $ac_executable_extensions; do
9959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9960 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9961 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9962 break 2
9963 fi
9964done
9965done
9966IFS=$as_save_IFS
9967
9968fi
9969fi
9970RANLIB=$ac_cv_prog_RANLIB
9971if test -n "$RANLIB"; then
9972 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
9973$as_echo "$RANLIB" >&6; }
9974else
9975 { $as_echo "$as_me:$LINENO: result: no" >&5
9976$as_echo "no" >&6; }
9977fi
9978
9979
9980fi
9981if test -z "$ac_cv_prog_RANLIB"; then
9982 ac_ct_RANLIB=$RANLIB
9983 # Extract the first word of "ranlib", so it can be a program name with args.
9984set dummy ranlib; ac_word=$2
9985{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9986$as_echo_n "checking for $ac_word... " >&6; }
9987if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9988 $as_echo_n "(cached) " >&6
9989else
9990 if test -n "$ac_ct_RANLIB"; then
9991 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9992else
9993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994for as_dir in $PATH
9995do
9996 IFS=$as_save_IFS
9997 test -z "$as_dir" && as_dir=.
9998 for ac_exec_ext in '' $ac_executable_extensions; do
9999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10000 ac_cv_prog_ac_ct_RANLIB="ranlib"
10001 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10002 break 2
10003 fi
10004done
10005done
10006IFS=$as_save_IFS
10007
10008fi
10009fi
10010ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10011if test -n "$ac_ct_RANLIB"; then
10012 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
10013$as_echo "$ac_ct_RANLIB" >&6; }
10014else
10015 { $as_echo "$as_me:$LINENO: result: no" >&5
10016$as_echo "no" >&6; }
10017fi
10018
10019 if test "x$ac_ct_RANLIB" = x; then
10020 RANLIB=":"
10021 else
10022 case $cross_compiling:$ac_tool_warned in
10023yes:)
10024{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10025$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10026ac_tool_warned=yes ;;
10027esac
10028 RANLIB=$ac_ct_RANLIB
10029 fi
10030else
10031 RANLIB="$ac_cv_prog_RANLIB"
10032fi
10033
10034test -z "$RANLIB" && RANLIB=:
10035
10036
10037
10038
10039
10040
10041# Determine commands to create old-style static archives.
10042old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10043old_postinstall_cmds='chmod 644 $oldlib'
10044old_postuninstall_cmds=
10045
10046if test -n "$RANLIB"; then
10047 case $host_os in
10048 openbsd*)
10049 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10050 ;;
10051 *)
10052 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10053 ;;
10054 esac
10055 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10056fi
10057
10058
10059
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# If no C compiler was specified, use CC.
10092LTCC=${LTCC-"$CC"}
10093
10094# If no C compiler flags were specified, use CFLAGS.
10095LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10096
10097# Allow CC to be a program name with arguments.
10098compiler=$CC
10099
10100
10101# Check for command to grab the raw symbol name followed by C symbol from nm.
10102{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10103$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10104if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10105 $as_echo_n "(cached) " >&6
10106else
10107
10108# These are sane defaults that work on at least a few old systems.
10109# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10110
10111# Character class describing NM global symbol codes.
10112symcode='[BCDEGRST]'
10113
10114# Regexp to match symbols that can be accessed directly from C.
10115sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10116
10117# Define system-specific variables.
10118case $host_os in
10119aix*)
10120 symcode='[BCDT]'
10121 ;;
10122cygwin* | mingw* | pw32* | cegcc*)
10123 symcode='[ABCDGISTW]'
10124 ;;
10125hpux*)
10126 if test "$host_cpu" = ia64; then
10127 symcode='[ABCDEGRST]'
10128 fi
10129 ;;
10130irix* | nonstopux*)
10131 symcode='[BCDEGRST]'
10132 ;;
10133osf*)
10134 symcode='[BCDEGQRST]'
10135 ;;
10136solaris*)
10137 symcode='[BDRT]'
10138 ;;
10139sco3.2v5*)
10140 symcode='[DT]'
10141 ;;
10142sysv4.2uw2*)
10143 symcode='[DT]'
10144 ;;
10145sysv5* | sco5v6* | unixware* | OpenUNIX*)
10146 symcode='[ABDT]'
10147 ;;
10148sysv4)
10149 symcode='[DFNSTU]'
10150 ;;
10151esac
10152
10153# If we're using GNU nm, then use its standard symbol codes.
10154case `$NM -V 2>&1` in
10155*GNU* | *'with BFD'*)
10156 symcode='[ABCDGIRSTW]' ;;
10157esac
10158
10159# Transform an extracted symbol line into a proper C declaration.
10160# Some systems (esp. on ia64) link data and code symbols differently,
10161# so use this general approach.
10162lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10163
10164# Transform an extracted symbol line into symbol name and symbol address
10165lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10166lt_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'"
10167
10168# Handle CRLF in mingw tool chain
10169opt_cr=
10170case $build_os in
10171mingw*)
10172 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10173 ;;
10174esac
10175
10176# Try without a prefix underscore, then with it.
10177for ac_symprfx in "" "_"; do
10178
10179 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10180 symxfrm="\\1 $ac_symprfx\\2 \\2"
10181
10182 # Write the raw and C identifiers.
10183 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10184 # Fake it for dumpbin and say T for any non-static function
10185 # and D for any global variable.
10186 # Also find C++ and __fastcall symbols from MSVC++,
10187 # which start with @ or ?.
10188 lt_cv_sys_global_symbol_pipe="$AWK '"\
10189" {last_section=section; section=\$ 3};"\
10190" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10191" \$ 0!~/External *\|/{next};"\
10192" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10193" {if(hide[section]) next};"\
10194" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10195" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10196" s[1]~/^[@?]/{print s[1], s[1]; next};"\
10197" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10198" ' prfx=^$ac_symprfx"
10199 else
10200 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10201 fi
10202
10203 # Check to see that the pipe works correctly.
10204 pipe_works=no
10205
10206 rm -f conftest*
10207 cat > conftest.$ac_ext <<_LT_EOF
10208#ifdef __cplusplus
10209extern "C" {
10210#endif
10211char nm_test_var;
10212void nm_test_func(void);
10213void nm_test_func(void){}
10214#ifdef __cplusplus
10215}
10216#endif
10217int main(){nm_test_var='a';nm_test_func();return(0);}
10218_LT_EOF
10219
10220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10221 (eval $ac_compile) 2>&5
10222 ac_status=$?
10223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; then
10225 # Now try to grab the symbols.
10226 nlist=conftest.nm
10227 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10228 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10229 ac_status=$?
10230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } && test -s "$nlist"; then
10232 # Try sorting and uniquifying the output.
10233 if sort "$nlist" | uniq > "$nlist"T; then
10234 mv -f "$nlist"T "$nlist"
10235 else
10236 rm -f "$nlist"T
10237 fi
10238
10239 # Make sure that we snagged all the symbols we need.
10240 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10241 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10242 cat <<_LT_EOF > conftest.$ac_ext
10243#ifdef __cplusplus
10244extern "C" {
10245#endif
10246
10247_LT_EOF
10248 # Now generate the symbol file.
10249 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10250
10251 cat <<_LT_EOF >> conftest.$ac_ext
10252
10253/* The mapping between symbol names and symbols. */
10254const struct {
10255 const char *name;
10256 void *address;
10257}
10258lt__PROGRAM__LTX_preloaded_symbols[] =
10259{
10260 { "@PROGRAM@", (void *) 0 },
10261_LT_EOF
10262 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10263 cat <<\_LT_EOF >> conftest.$ac_ext
10264 {0, (void *) 0}
10265};
10266
10267/* This works around a problem in FreeBSD linker */
10268#ifdef FREEBSD_WORKAROUND
10269static const void *lt_preloaded_setup() {
10270 return lt__PROGRAM__LTX_preloaded_symbols;
10271}
10272#endif
10273
10274#ifdef __cplusplus
10275}
10276#endif
10277_LT_EOF
10278 # Now try linking the two files.
10279 mv conftest.$ac_objext conftstm.$ac_objext
10280 lt_save_LIBS="$LIBS"
10281 lt_save_CFLAGS="$CFLAGS"
10282 LIBS="conftstm.$ac_objext"
10283 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10285 (eval $ac_link) 2>&5
10286 ac_status=$?
10287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10289 pipe_works=yes
10290 fi
10291 LIBS="$lt_save_LIBS"
10292 CFLAGS="$lt_save_CFLAGS"
10293 else
10294 echo "cannot find nm_test_func in $nlist" >&5
10295 fi
10296 else
10297 echo "cannot find nm_test_var in $nlist" >&5
10298 fi
10299 else
10300 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10301 fi
10302 else
10303 echo "$progname: failed program was:" >&5
10304 cat conftest.$ac_ext >&5
10305 fi
10306 rm -rf conftest* conftst*
10307
10308 # Do not use the global_symbol_pipe unless it works.
10309 if test "$pipe_works" = yes; then
10310 break
10311 else
10312 lt_cv_sys_global_symbol_pipe=
10313 fi
10314done
10315
10316fi
10317
10318if test -z "$lt_cv_sys_global_symbol_pipe"; then
10319 lt_cv_sys_global_symbol_to_cdecl=
10320fi
10321if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10322 { $as_echo "$as_me:$LINENO: result: failed" >&5
10323$as_echo "failed" >&6; }
10324else
10325 { $as_echo "$as_me:$LINENO: result: ok" >&5
10326$as_echo "ok" >&6; }
10327fi
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350# Check whether --enable-libtool-lock was given.
10351if test "${enable_libtool_lock+set}" = set; then
10352 enableval=$enable_libtool_lock;
10353fi
10354
10355test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10356
10357# Some flags need to be propagated to the compiler or linker for good
10358# libtool support.
10359case $host in
10360ia64-*-hpux*)
10361 # Find out which ABI we are using.
10362 echo 'int i;' > conftest.$ac_ext
10363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10364 (eval $ac_compile) 2>&5
10365 ac_status=$?
10366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; then
10368 case `/usr/bin/file conftest.$ac_objext` in
10369 *ELF-32*)
10370 HPUX_IA64_MODE="32"
10371 ;;
10372 *ELF-64*)
10373 HPUX_IA64_MODE="64"
10374 ;;
10375 esac
10376 fi
10377 rm -rf conftest*
10378 ;;
10379*-*-irix6*)
10380 # Find out which ABI we are using.
cristya0242ab2009-10-15 19:17:14 +000010381 echo '#line 10381 "configure"' > conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10383 (eval $ac_compile) 2>&5
10384 ac_status=$?
10385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386 (exit $ac_status); }; then
10387 if test "$lt_cv_prog_gnu_ld" = yes; then
10388 case `/usr/bin/file conftest.$ac_objext` in
10389 *32-bit*)
10390 LD="${LD-ld} -melf32bsmip"
10391 ;;
10392 *N32*)
10393 LD="${LD-ld} -melf32bmipn32"
10394 ;;
10395 *64-bit*)
10396 LD="${LD-ld} -melf64bmip"
10397 ;;
10398 esac
10399 else
10400 case `/usr/bin/file conftest.$ac_objext` in
10401 *32-bit*)
10402 LD="${LD-ld} -32"
10403 ;;
10404 *N32*)
10405 LD="${LD-ld} -n32"
10406 ;;
10407 *64-bit*)
10408 LD="${LD-ld} -64"
10409 ;;
10410 esac
10411 fi
10412 fi
10413 rm -rf conftest*
10414 ;;
10415
10416x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10417s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10418 # Find out which ABI we are using.
10419 echo 'int i;' > conftest.$ac_ext
10420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10421 (eval $ac_compile) 2>&5
10422 ac_status=$?
10423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; then
10425 case `/usr/bin/file conftest.o` in
10426 *32-bit*)
10427 case $host in
10428 x86_64-*kfreebsd*-gnu)
10429 LD="${LD-ld} -m elf_i386_fbsd"
10430 ;;
10431 x86_64-*linux*)
10432 LD="${LD-ld} -m elf_i386"
10433 ;;
10434 ppc64-*linux*|powerpc64-*linux*)
10435 LD="${LD-ld} -m elf32ppclinux"
10436 ;;
10437 s390x-*linux*)
10438 LD="${LD-ld} -m elf_s390"
10439 ;;
10440 sparc64-*linux*)
10441 LD="${LD-ld} -m elf32_sparc"
10442 ;;
10443 esac
10444 ;;
10445 *64-bit*)
10446 case $host in
10447 x86_64-*kfreebsd*-gnu)
10448 LD="${LD-ld} -m elf_x86_64_fbsd"
10449 ;;
10450 x86_64-*linux*)
10451 LD="${LD-ld} -m elf_x86_64"
10452 ;;
10453 ppc*-*linux*|powerpc*-*linux*)
10454 LD="${LD-ld} -m elf64ppc"
10455 ;;
10456 s390*-*linux*|s390*-*tpf*)
10457 LD="${LD-ld} -m elf64_s390"
10458 ;;
10459 sparc*-*linux*)
10460 LD="${LD-ld} -m elf64_sparc"
10461 ;;
10462 esac
10463 ;;
10464 esac
10465 fi
10466 rm -rf conftest*
10467 ;;
10468
10469*-*-sco3.2v5*)
10470 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10471 SAVE_CFLAGS="$CFLAGS"
10472 CFLAGS="$CFLAGS -belf"
10473 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10474$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10475if test "${lt_cv_cc_needs_belf+set}" = set; then
10476 $as_echo_n "(cached) " >&6
10477else
10478 ac_ext=c
10479ac_cpp='$CPP $CPPFLAGS'
10480ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10481ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10482ac_compiler_gnu=$ac_cv_c_compiler_gnu
10483
10484 cat >conftest.$ac_ext <<_ACEOF
10485/* confdefs.h. */
10486_ACEOF
10487cat confdefs.h >>conftest.$ac_ext
10488cat >>conftest.$ac_ext <<_ACEOF
10489/* end confdefs.h. */
10490
10491int
10492main ()
10493{
10494
10495 ;
10496 return 0;
10497}
10498_ACEOF
10499rm -f conftest.$ac_objext conftest$ac_exeext
10500if { (ac_try="$ac_link"
10501case "(($ac_try" in
10502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503 *) ac_try_echo=$ac_try;;
10504esac
10505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10506$as_echo "$ac_try_echo") >&5
10507 (eval "$ac_link") 2>conftest.er1
10508 ac_status=$?
10509 grep -v '^ *+' conftest.er1 >conftest.err
10510 rm -f conftest.er1
10511 cat conftest.err >&5
10512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && {
10514 test -z "$ac_c_werror_flag" ||
10515 test ! -s conftest.err
10516 } && test -s conftest$ac_exeext && {
10517 test "$cross_compiling" = yes ||
10518 $as_test_x conftest$ac_exeext
10519 }; then
10520 lt_cv_cc_needs_belf=yes
10521else
10522 $as_echo "$as_me: failed program was:" >&5
10523sed 's/^/| /' conftest.$ac_ext >&5
10524
10525 lt_cv_cc_needs_belf=no
10526fi
10527
10528rm -rf conftest.dSYM
10529rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10530 conftest$ac_exeext conftest.$ac_ext
10531 ac_ext=c
10532ac_cpp='$CPP $CPPFLAGS'
10533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10535ac_compiler_gnu=$ac_cv_c_compiler_gnu
10536
10537fi
10538{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10539$as_echo "$lt_cv_cc_needs_belf" >&6; }
10540 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10541 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10542 CFLAGS="$SAVE_CFLAGS"
10543 fi
10544 ;;
10545sparc*-*solaris*)
10546 # Find out which ABI we are using.
10547 echo 'int i;' > conftest.$ac_ext
10548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10549 (eval $ac_compile) 2>&5
10550 ac_status=$?
10551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); }; then
10553 case `/usr/bin/file conftest.o` in
10554 *64-bit*)
10555 case $lt_cv_prog_gnu_ld in
10556 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10557 *)
10558 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10559 LD="${LD-ld} -64"
10560 fi
10561 ;;
10562 esac
10563 ;;
10564 esac
10565 fi
10566 rm -rf conftest*
10567 ;;
10568esac
10569
10570need_locks="$enable_libtool_lock"
10571
10572
10573 case $host_os in
10574 rhapsody* | darwin*)
10575 if test -n "$ac_tool_prefix"; then
10576 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10577set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10578{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10579$as_echo_n "checking for $ac_word... " >&6; }
10580if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10581 $as_echo_n "(cached) " >&6
10582else
10583 if test -n "$DSYMUTIL"; then
10584 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10585else
10586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587for as_dir in $PATH
10588do
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10593 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10596 fi
10597done
10598done
10599IFS=$as_save_IFS
10600
10601fi
10602fi
10603DSYMUTIL=$ac_cv_prog_DSYMUTIL
10604if test -n "$DSYMUTIL"; then
10605 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10606$as_echo "$DSYMUTIL" >&6; }
10607else
10608 { $as_echo "$as_me:$LINENO: result: no" >&5
10609$as_echo "no" >&6; }
10610fi
10611
10612
10613fi
10614if test -z "$ac_cv_prog_DSYMUTIL"; then
10615 ac_ct_DSYMUTIL=$DSYMUTIL
10616 # Extract the first word of "dsymutil", so it can be a program name with args.
10617set dummy dsymutil; ac_word=$2
10618{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10619$as_echo_n "checking for $ac_word... " >&6; }
10620if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10621 $as_echo_n "(cached) " >&6
10622else
10623 if test -n "$ac_ct_DSYMUTIL"; then
10624 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10625else
10626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10627for as_dir in $PATH
10628do
10629 IFS=$as_save_IFS
10630 test -z "$as_dir" && as_dir=.
10631 for ac_exec_ext in '' $ac_executable_extensions; do
10632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10633 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10634 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10635 break 2
10636 fi
10637done
10638done
10639IFS=$as_save_IFS
10640
10641fi
10642fi
10643ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10644if test -n "$ac_ct_DSYMUTIL"; then
10645 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10646$as_echo "$ac_ct_DSYMUTIL" >&6; }
10647else
10648 { $as_echo "$as_me:$LINENO: result: no" >&5
10649$as_echo "no" >&6; }
10650fi
10651
10652 if test "x$ac_ct_DSYMUTIL" = x; then
10653 DSYMUTIL=":"
10654 else
10655 case $cross_compiling:$ac_tool_warned in
10656yes:)
10657{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10659ac_tool_warned=yes ;;
10660esac
10661 DSYMUTIL=$ac_ct_DSYMUTIL
10662 fi
10663else
10664 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10665fi
10666
10667 if test -n "$ac_tool_prefix"; then
10668 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10669set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10670{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10671$as_echo_n "checking for $ac_word... " >&6; }
10672if test "${ac_cv_prog_NMEDIT+set}" = set; then
10673 $as_echo_n "(cached) " >&6
10674else
10675 if test -n "$NMEDIT"; then
10676 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10677else
10678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679for as_dir in $PATH
10680do
10681 IFS=$as_save_IFS
10682 test -z "$as_dir" && as_dir=.
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10685 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10686 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10687 break 2
10688 fi
10689done
10690done
10691IFS=$as_save_IFS
10692
10693fi
10694fi
10695NMEDIT=$ac_cv_prog_NMEDIT
10696if test -n "$NMEDIT"; then
10697 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
10698$as_echo "$NMEDIT" >&6; }
10699else
10700 { $as_echo "$as_me:$LINENO: result: no" >&5
10701$as_echo "no" >&6; }
10702fi
10703
10704
10705fi
10706if test -z "$ac_cv_prog_NMEDIT"; then
10707 ac_ct_NMEDIT=$NMEDIT
10708 # Extract the first word of "nmedit", so it can be a program name with args.
10709set dummy nmedit; ac_word=$2
10710{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10711$as_echo_n "checking for $ac_word... " >&6; }
10712if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10713 $as_echo_n "(cached) " >&6
10714else
10715 if test -n "$ac_ct_NMEDIT"; then
10716 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10717else
10718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719for as_dir in $PATH
10720do
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10725 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10726 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 break 2
10728 fi
10729done
10730done
10731IFS=$as_save_IFS
10732
10733fi
10734fi
10735ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10736if test -n "$ac_ct_NMEDIT"; then
10737 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10738$as_echo "$ac_ct_NMEDIT" >&6; }
10739else
10740 { $as_echo "$as_me:$LINENO: result: no" >&5
10741$as_echo "no" >&6; }
10742fi
10743
10744 if test "x$ac_ct_NMEDIT" = x; then
10745 NMEDIT=":"
10746 else
10747 case $cross_compiling:$ac_tool_warned in
10748yes:)
10749{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10750$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10751ac_tool_warned=yes ;;
10752esac
10753 NMEDIT=$ac_ct_NMEDIT
10754 fi
10755else
10756 NMEDIT="$ac_cv_prog_NMEDIT"
10757fi
10758
10759 if test -n "$ac_tool_prefix"; then
10760 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10761set dummy ${ac_tool_prefix}lipo; ac_word=$2
10762{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10763$as_echo_n "checking for $ac_word... " >&6; }
10764if test "${ac_cv_prog_LIPO+set}" = set; then
10765 $as_echo_n "(cached) " >&6
10766else
10767 if test -n "$LIPO"; then
10768 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10769else
10770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771for as_dir in $PATH
10772do
10773 IFS=$as_save_IFS
10774 test -z "$as_dir" && as_dir=.
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10777 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10778 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10779 break 2
10780 fi
10781done
10782done
10783IFS=$as_save_IFS
10784
10785fi
10786fi
10787LIPO=$ac_cv_prog_LIPO
10788if test -n "$LIPO"; then
10789 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
10790$as_echo "$LIPO" >&6; }
10791else
10792 { $as_echo "$as_me:$LINENO: result: no" >&5
10793$as_echo "no" >&6; }
10794fi
10795
10796
10797fi
10798if test -z "$ac_cv_prog_LIPO"; then
10799 ac_ct_LIPO=$LIPO
10800 # Extract the first word of "lipo", so it can be a program name with args.
10801set dummy lipo; ac_word=$2
10802{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10803$as_echo_n "checking for $ac_word... " >&6; }
10804if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
10805 $as_echo_n "(cached) " >&6
10806else
10807 if test -n "$ac_ct_LIPO"; then
10808 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10809else
10810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10811for as_dir in $PATH
10812do
10813 IFS=$as_save_IFS
10814 test -z "$as_dir" && as_dir=.
10815 for ac_exec_ext in '' $ac_executable_extensions; do
10816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10817 ac_cv_prog_ac_ct_LIPO="lipo"
10818 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10819 break 2
10820 fi
10821done
10822done
10823IFS=$as_save_IFS
10824
10825fi
10826fi
10827ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10828if test -n "$ac_ct_LIPO"; then
10829 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
10830$as_echo "$ac_ct_LIPO" >&6; }
10831else
10832 { $as_echo "$as_me:$LINENO: result: no" >&5
10833$as_echo "no" >&6; }
10834fi
10835
10836 if test "x$ac_ct_LIPO" = x; then
10837 LIPO=":"
10838 else
10839 case $cross_compiling:$ac_tool_warned in
10840yes:)
10841{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10843ac_tool_warned=yes ;;
10844esac
10845 LIPO=$ac_ct_LIPO
10846 fi
10847else
10848 LIPO="$ac_cv_prog_LIPO"
10849fi
10850
10851 if test -n "$ac_tool_prefix"; then
10852 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10853set dummy ${ac_tool_prefix}otool; ac_word=$2
10854{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10855$as_echo_n "checking for $ac_word... " >&6; }
10856if test "${ac_cv_prog_OTOOL+set}" = set; then
10857 $as_echo_n "(cached) " >&6
10858else
10859 if test -n "$OTOOL"; then
10860 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10861else
10862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863for as_dir in $PATH
10864do
10865 IFS=$as_save_IFS
10866 test -z "$as_dir" && as_dir=.
10867 for ac_exec_ext in '' $ac_executable_extensions; do
10868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10869 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10870 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10871 break 2
10872 fi
10873done
10874done
10875IFS=$as_save_IFS
10876
10877fi
10878fi
10879OTOOL=$ac_cv_prog_OTOOL
10880if test -n "$OTOOL"; then
10881 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
10882$as_echo "$OTOOL" >&6; }
10883else
10884 { $as_echo "$as_me:$LINENO: result: no" >&5
10885$as_echo "no" >&6; }
10886fi
10887
10888
10889fi
10890if test -z "$ac_cv_prog_OTOOL"; then
10891 ac_ct_OTOOL=$OTOOL
10892 # Extract the first word of "otool", so it can be a program name with args.
10893set dummy otool; ac_word=$2
10894{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10895$as_echo_n "checking for $ac_word... " >&6; }
10896if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
10897 $as_echo_n "(cached) " >&6
10898else
10899 if test -n "$ac_ct_OTOOL"; then
10900 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10901else
10902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903for as_dir in $PATH
10904do
10905 IFS=$as_save_IFS
10906 test -z "$as_dir" && as_dir=.
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10909 ac_cv_prog_ac_ct_OTOOL="otool"
10910 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10911 break 2
10912 fi
10913done
10914done
10915IFS=$as_save_IFS
10916
10917fi
10918fi
10919ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10920if test -n "$ac_ct_OTOOL"; then
10921 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
10922$as_echo "$ac_ct_OTOOL" >&6; }
10923else
10924 { $as_echo "$as_me:$LINENO: result: no" >&5
10925$as_echo "no" >&6; }
10926fi
10927
10928 if test "x$ac_ct_OTOOL" = x; then
10929 OTOOL=":"
10930 else
10931 case $cross_compiling:$ac_tool_warned in
10932yes:)
10933{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10934$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10935ac_tool_warned=yes ;;
10936esac
10937 OTOOL=$ac_ct_OTOOL
10938 fi
10939else
10940 OTOOL="$ac_cv_prog_OTOOL"
10941fi
10942
10943 if test -n "$ac_tool_prefix"; then
10944 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10945set dummy ${ac_tool_prefix}otool64; ac_word=$2
10946{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10947$as_echo_n "checking for $ac_word... " >&6; }
10948if test "${ac_cv_prog_OTOOL64+set}" = set; then
10949 $as_echo_n "(cached) " >&6
10950else
10951 if test -n "$OTOOL64"; then
10952 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10953else
10954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10955for as_dir in $PATH
10956do
10957 IFS=$as_save_IFS
10958 test -z "$as_dir" && as_dir=.
10959 for ac_exec_ext in '' $ac_executable_extensions; do
10960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10961 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10962 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10963 break 2
10964 fi
10965done
10966done
10967IFS=$as_save_IFS
10968
10969fi
10970fi
10971OTOOL64=$ac_cv_prog_OTOOL64
10972if test -n "$OTOOL64"; then
10973 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
10974$as_echo "$OTOOL64" >&6; }
10975else
10976 { $as_echo "$as_me:$LINENO: result: no" >&5
10977$as_echo "no" >&6; }
10978fi
10979
10980
10981fi
10982if test -z "$ac_cv_prog_OTOOL64"; then
10983 ac_ct_OTOOL64=$OTOOL64
10984 # Extract the first word of "otool64", so it can be a program name with args.
10985set dummy otool64; ac_word=$2
10986{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10987$as_echo_n "checking for $ac_word... " >&6; }
10988if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
10989 $as_echo_n "(cached) " >&6
10990else
10991 if test -n "$ac_ct_OTOOL64"; then
10992 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10993else
10994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10995for as_dir in $PATH
10996do
10997 IFS=$as_save_IFS
10998 test -z "$as_dir" && as_dir=.
10999 for ac_exec_ext in '' $ac_executable_extensions; do
11000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11001 ac_cv_prog_ac_ct_OTOOL64="otool64"
11002 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11003 break 2
11004 fi
11005done
11006done
11007IFS=$as_save_IFS
11008
11009fi
11010fi
11011ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11012if test -n "$ac_ct_OTOOL64"; then
11013 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
11014$as_echo "$ac_ct_OTOOL64" >&6; }
11015else
11016 { $as_echo "$as_me:$LINENO: result: no" >&5
11017$as_echo "no" >&6; }
11018fi
11019
11020 if test "x$ac_ct_OTOOL64" = x; then
11021 OTOOL64=":"
11022 else
11023 case $cross_compiling:$ac_tool_warned in
11024yes:)
11025{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11027ac_tool_warned=yes ;;
11028esac
11029 OTOOL64=$ac_ct_OTOOL64
11030 fi
11031else
11032 OTOOL64="$ac_cv_prog_OTOOL64"
11033fi
11034
11035
11036
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 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
11062$as_echo_n "checking for -single_module linker flag... " >&6; }
11063if test "${lt_cv_apple_cc_single_mod+set}" = set; then
11064 $as_echo_n "(cached) " >&6
11065else
11066 lt_cv_apple_cc_single_mod=no
11067 if test -z "${LT_MULTI_MODULE}"; then
11068 # By default we will add the -single_module flag. You can override
11069 # by either setting the environment variable LT_MULTI_MODULE
11070 # non-empty at configure time, or by adding -multi_module to the
11071 # link flags.
11072 rm -rf libconftest.dylib*
11073 echo "int foo(void){return 1;}" > conftest.c
11074 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11075-dynamiclib -Wl,-single_module conftest.c" >&5
11076 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11077 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11078 _lt_result=$?
11079 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11080 lt_cv_apple_cc_single_mod=yes
11081 else
11082 cat conftest.err >&5
11083 fi
11084 rm -rf libconftest.dylib*
11085 rm -f conftest.*
11086 fi
11087fi
11088{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
11089$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11090 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
11091$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11092if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
11093 $as_echo_n "(cached) " >&6
11094else
11095 lt_cv_ld_exported_symbols_list=no
11096 save_LDFLAGS=$LDFLAGS
11097 echo "_main" > conftest.sym
11098 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11099 cat >conftest.$ac_ext <<_ACEOF
11100/* confdefs.h. */
11101_ACEOF
11102cat confdefs.h >>conftest.$ac_ext
11103cat >>conftest.$ac_ext <<_ACEOF
11104/* end confdefs.h. */
11105
11106int
11107main ()
11108{
11109
11110 ;
11111 return 0;
11112}
11113_ACEOF
11114rm -f conftest.$ac_objext conftest$ac_exeext
11115if { (ac_try="$ac_link"
11116case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11119esac
11120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11121$as_echo "$ac_try_echo") >&5
11122 (eval "$ac_link") 2>conftest.er1
11123 ac_status=$?
11124 grep -v '^ *+' conftest.er1 >conftest.err
11125 rm -f conftest.er1
11126 cat conftest.err >&5
11127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } && {
11129 test -z "$ac_c_werror_flag" ||
11130 test ! -s conftest.err
11131 } && test -s conftest$ac_exeext && {
11132 test "$cross_compiling" = yes ||
11133 $as_test_x conftest$ac_exeext
11134 }; then
11135 lt_cv_ld_exported_symbols_list=yes
11136else
11137 $as_echo "$as_me: failed program was:" >&5
11138sed 's/^/| /' conftest.$ac_ext >&5
11139
11140 lt_cv_ld_exported_symbols_list=no
11141fi
11142
11143rm -rf conftest.dSYM
11144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11145 conftest$ac_exeext conftest.$ac_ext
11146 LDFLAGS="$save_LDFLAGS"
11147
11148fi
11149{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
11150$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11151 case $host_os in
11152 rhapsody* | darwin1.[012])
11153 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11154 darwin1.*)
11155 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11156 darwin*) # darwin 5.x on
11157 # if running on 10.5 or later, the deployment target defaults
11158 # to the OS version, if on x86, and 10.4, the deployment
11159 # target defaults to 10.4. Don't you love it?
11160 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11161 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11162 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11163 10.[012]*)
11164 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11165 10.*)
11166 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11167 esac
11168 ;;
11169 esac
11170 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11171 _lt_dar_single_mod='$single_module'
11172 fi
11173 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11174 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11175 else
11176 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11177 fi
11178 if test "$DSYMUTIL" != ":"; then
11179 _lt_dsymutil='~$DSYMUTIL $lib || :'
11180 else
11181 _lt_dsymutil=
11182 fi
11183 ;;
11184 esac
11185
11186
11187for ac_header in dlfcn.h
11188do
11189as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11190{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11191$as_echo_n "checking for $ac_header... " >&6; }
11192if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11193 $as_echo_n "(cached) " >&6
11194else
11195 cat >conftest.$ac_ext <<_ACEOF
11196/* confdefs.h. */
11197_ACEOF
11198cat confdefs.h >>conftest.$ac_ext
11199cat >>conftest.$ac_ext <<_ACEOF
11200/* end confdefs.h. */
11201$ac_includes_default
11202
11203#include <$ac_header>
11204_ACEOF
11205rm -f conftest.$ac_objext
11206if { (ac_try="$ac_compile"
11207case "(($ac_try" in
11208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11210esac
11211eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11212$as_echo "$ac_try_echo") >&5
11213 (eval "$ac_compile") 2>conftest.er1
11214 ac_status=$?
11215 grep -v '^ *+' conftest.er1 >conftest.err
11216 rm -f conftest.er1
11217 cat conftest.err >&5
11218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); } && {
11220 test -z "$ac_c_werror_flag" ||
11221 test ! -s conftest.err
11222 } && test -s conftest.$ac_objext; then
11223 eval "$as_ac_Header=yes"
11224else
11225 $as_echo "$as_me: failed program was:" >&5
11226sed 's/^/| /' conftest.$ac_ext >&5
11227
11228 eval "$as_ac_Header=no"
11229fi
11230
11231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11232fi
11233ac_res=`eval 'as_val=${'$as_ac_Header'}
11234 $as_echo "$as_val"'`
11235 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11236$as_echo "$ac_res" >&6; }
11237as_val=`eval 'as_val=${'$as_ac_Header'}
11238 $as_echo "$as_val"'`
11239 if test "x$as_val" = x""yes; then
11240 cat >>confdefs.h <<_ACEOF
11241#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11242_ACEOF
11243
11244fi
11245
11246done
11247
11248
11249
11250ac_ext=cpp
11251ac_cpp='$CXXCPP $CPPFLAGS'
11252ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11253ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11254ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11255if test -z "$CXX"; then
11256 if test -n "$CCC"; then
11257 CXX=$CCC
11258 else
11259 if test -n "$ac_tool_prefix"; then
11260 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11261 do
11262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11263set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11264{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11265$as_echo_n "checking for $ac_word... " >&6; }
11266if test "${ac_cv_prog_CXX+set}" = set; then
11267 $as_echo_n "(cached) " >&6
11268else
11269 if test -n "$CXX"; then
11270 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11271else
11272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273for as_dir in $PATH
11274do
11275 IFS=$as_save_IFS
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11279 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11281 break 2
11282 fi
11283done
11284done
11285IFS=$as_save_IFS
11286
11287fi
11288fi
11289CXX=$ac_cv_prog_CXX
11290if test -n "$CXX"; then
11291 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
11292$as_echo "$CXX" >&6; }
11293else
11294 { $as_echo "$as_me:$LINENO: result: no" >&5
11295$as_echo "no" >&6; }
11296fi
11297
11298
11299 test -n "$CXX" && break
11300 done
11301fi
11302if test -z "$CXX"; then
11303 ac_ct_CXX=$CXX
11304 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11305do
11306 # Extract the first word of "$ac_prog", so it can be a program name with args.
11307set dummy $ac_prog; ac_word=$2
11308{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11309$as_echo_n "checking for $ac_word... " >&6; }
11310if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
11311 $as_echo_n "(cached) " >&6
11312else
11313 if test -n "$ac_ct_CXX"; then
11314 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11315else
11316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11317for as_dir in $PATH
11318do
11319 IFS=$as_save_IFS
11320 test -z "$as_dir" && as_dir=.
11321 for ac_exec_ext in '' $ac_executable_extensions; do
11322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11323 ac_cv_prog_ac_ct_CXX="$ac_prog"
11324 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11325 break 2
11326 fi
11327done
11328done
11329IFS=$as_save_IFS
11330
11331fi
11332fi
11333ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11334if test -n "$ac_ct_CXX"; then
11335 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
11336$as_echo "$ac_ct_CXX" >&6; }
11337else
11338 { $as_echo "$as_me:$LINENO: result: no" >&5
11339$as_echo "no" >&6; }
11340fi
11341
11342
11343 test -n "$ac_ct_CXX" && break
11344done
11345
11346 if test "x$ac_ct_CXX" = x; then
11347 CXX="g++"
11348 else
11349 case $cross_compiling:$ac_tool_warned in
11350yes:)
11351{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11352$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11353ac_tool_warned=yes ;;
11354esac
11355 CXX=$ac_ct_CXX
11356 fi
11357fi
11358
11359 fi
11360fi
11361# Provide some information about the compiler.
11362$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
11363set X $ac_compile
11364ac_compiler=$2
11365{ (ac_try="$ac_compiler --version >&5"
11366case "(($ac_try" in
11367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368 *) ac_try_echo=$ac_try;;
11369esac
11370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11371$as_echo "$ac_try_echo") >&5
11372 (eval "$ac_compiler --version >&5") 2>&5
11373 ac_status=$?
11374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); }
11376{ (ac_try="$ac_compiler -v >&5"
11377case "(($ac_try" in
11378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11379 *) ac_try_echo=$ac_try;;
11380esac
11381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11382$as_echo "$ac_try_echo") >&5
11383 (eval "$ac_compiler -v >&5") 2>&5
11384 ac_status=$?
11385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }
11387{ (ac_try="$ac_compiler -V >&5"
11388case "(($ac_try" in
11389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390 *) ac_try_echo=$ac_try;;
11391esac
11392eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11393$as_echo "$ac_try_echo") >&5
11394 (eval "$ac_compiler -V >&5") 2>&5
11395 ac_status=$?
11396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }
11398
11399{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
11400$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11401if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
11402 $as_echo_n "(cached) " >&6
11403else
11404 cat >conftest.$ac_ext <<_ACEOF
11405/* confdefs.h. */
11406_ACEOF
11407cat confdefs.h >>conftest.$ac_ext
11408cat >>conftest.$ac_ext <<_ACEOF
11409/* end confdefs.h. */
11410
11411int
11412main ()
11413{
11414#ifndef __GNUC__
11415 choke me
11416#endif
11417
11418 ;
11419 return 0;
11420}
11421_ACEOF
11422rm -f conftest.$ac_objext
11423if { (ac_try="$ac_compile"
11424case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427esac
11428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11429$as_echo "$ac_try_echo") >&5
11430 (eval "$ac_compile") 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } && {
11437 test -z "$ac_cxx_werror_flag" ||
11438 test ! -s conftest.err
11439 } && test -s conftest.$ac_objext; then
11440 ac_compiler_gnu=yes
11441else
11442 $as_echo "$as_me: failed program was:" >&5
11443sed 's/^/| /' conftest.$ac_ext >&5
11444
11445 ac_compiler_gnu=no
11446fi
11447
11448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11449ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11450
11451fi
11452{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
11453$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11454if test $ac_compiler_gnu = yes; then
11455 GXX=yes
11456else
11457 GXX=
11458fi
11459ac_test_CXXFLAGS=${CXXFLAGS+set}
11460ac_save_CXXFLAGS=$CXXFLAGS
11461{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
11462$as_echo_n "checking whether $CXX accepts -g... " >&6; }
11463if test "${ac_cv_prog_cxx_g+set}" = set; then
11464 $as_echo_n "(cached) " >&6
11465else
11466 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11467 ac_cxx_werror_flag=yes
11468 ac_cv_prog_cxx_g=no
11469 CXXFLAGS="-g"
11470 cat >conftest.$ac_ext <<_ACEOF
11471/* confdefs.h. */
11472_ACEOF
11473cat confdefs.h >>conftest.$ac_ext
11474cat >>conftest.$ac_ext <<_ACEOF
11475/* end confdefs.h. */
11476
11477int
11478main ()
11479{
11480
11481 ;
11482 return 0;
11483}
11484_ACEOF
11485rm -f conftest.$ac_objext
11486if { (ac_try="$ac_compile"
11487case "(($ac_try" in
11488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11489 *) ac_try_echo=$ac_try;;
11490esac
11491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11492$as_echo "$ac_try_echo") >&5
11493 (eval "$ac_compile") 2>conftest.er1
11494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } && {
11500 test -z "$ac_cxx_werror_flag" ||
11501 test ! -s conftest.err
11502 } && test -s conftest.$ac_objext; then
11503 ac_cv_prog_cxx_g=yes
11504else
11505 $as_echo "$as_me: failed program was:" >&5
11506sed 's/^/| /' conftest.$ac_ext >&5
11507
11508 CXXFLAGS=""
11509 cat >conftest.$ac_ext <<_ACEOF
11510/* confdefs.h. */
11511_ACEOF
11512cat confdefs.h >>conftest.$ac_ext
11513cat >>conftest.$ac_ext <<_ACEOF
11514/* end confdefs.h. */
11515
11516int
11517main ()
11518{
11519
11520 ;
11521 return 0;
11522}
11523_ACEOF
11524rm -f conftest.$ac_objext
11525if { (ac_try="$ac_compile"
11526case "(($ac_try" in
11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528 *) ac_try_echo=$ac_try;;
11529esac
11530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11531$as_echo "$ac_try_echo") >&5
11532 (eval "$ac_compile") 2>conftest.er1
11533 ac_status=$?
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
11537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } && {
11539 test -z "$ac_cxx_werror_flag" ||
11540 test ! -s conftest.err
11541 } && test -s conftest.$ac_objext; then
11542 :
11543else
11544 $as_echo "$as_me: failed program was:" >&5
11545sed 's/^/| /' conftest.$ac_ext >&5
11546
11547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11548 CXXFLAGS="-g"
11549 cat >conftest.$ac_ext <<_ACEOF
11550/* confdefs.h. */
11551_ACEOF
11552cat confdefs.h >>conftest.$ac_ext
11553cat >>conftest.$ac_ext <<_ACEOF
11554/* end confdefs.h. */
11555
11556int
11557main ()
11558{
11559
11560 ;
11561 return 0;
11562}
11563_ACEOF
11564rm -f conftest.$ac_objext
11565if { (ac_try="$ac_compile"
11566case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11569esac
11570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11571$as_echo "$ac_try_echo") >&5
11572 (eval "$ac_compile") 2>conftest.er1
11573 ac_status=$?
11574 grep -v '^ *+' conftest.er1 >conftest.err
11575 rm -f conftest.er1
11576 cat conftest.err >&5
11577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11578 (exit $ac_status); } && {
11579 test -z "$ac_cxx_werror_flag" ||
11580 test ! -s conftest.err
11581 } && test -s conftest.$ac_objext; then
11582 ac_cv_prog_cxx_g=yes
11583else
11584 $as_echo "$as_me: failed program was:" >&5
11585sed 's/^/| /' conftest.$ac_ext >&5
11586
11587
11588fi
11589
11590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
11597 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11598fi
11599{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11600$as_echo "$ac_cv_prog_cxx_g" >&6; }
11601if test "$ac_test_CXXFLAGS" = set; then
11602 CXXFLAGS=$ac_save_CXXFLAGS
11603elif test $ac_cv_prog_cxx_g = yes; then
11604 if test "$GXX" = yes; then
11605 CXXFLAGS="-g -O2"
11606 else
11607 CXXFLAGS="-g"
11608 fi
11609else
11610 if test "$GXX" = yes; then
11611 CXXFLAGS="-O2"
11612 else
11613 CXXFLAGS=
11614 fi
11615fi
11616ac_ext=c
11617ac_cpp='$CPP $CPPFLAGS'
11618ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11619ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11620ac_compiler_gnu=$ac_cv_c_compiler_gnu
11621
11622depcc="$CXX" am_compiler_list=
11623
11624{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11625$as_echo_n "checking dependency style of $depcc... " >&6; }
11626if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11627 $as_echo_n "(cached) " >&6
11628else
11629 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11630 # We make a subdir and do the tests there. Otherwise we can end up
11631 # making bogus files that we don't know about and never remove. For
11632 # instance it was reported that on HP-UX the gcc test will end up
11633 # making a dummy file named `D' -- because `-MD' means `put the output
11634 # in D'.
11635 mkdir conftest.dir
11636 # Copy depcomp to subdir because otherwise we won't find it if we're
11637 # using a relative directory.
11638 cp "$am_depcomp" conftest.dir
11639 cd conftest.dir
11640 # We will build objects and dependencies in a subdirectory because
11641 # it helps to detect inapplicable dependency modes. For instance
11642 # both Tru64's cc and ICC support -MD to output dependencies as a
11643 # side effect of compilation, but ICC will put the dependencies in
11644 # the current directory while Tru64 will put them in the object
11645 # directory.
11646 mkdir sub
11647
11648 am_cv_CXX_dependencies_compiler_type=none
11649 if test "$am_compiler_list" = ""; then
11650 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11651 fi
11652 am__universal=false
11653 case " $depcc " in #(
11654 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11655 esac
11656
11657 for depmode in $am_compiler_list; do
11658 # Setup a source with many dependencies, because some compilers
11659 # like to wrap large dependency lists on column 80 (with \), and
11660 # we should not choose a depcomp mode which is confused by this.
11661 #
11662 # We need to recreate these files for each test, as the compiler may
11663 # overwrite some of them when testing with obscure command lines.
11664 # This happens at least with the AIX C compiler.
11665 : > sub/conftest.c
11666 for i in 1 2 3 4 5 6; do
11667 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11668 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11669 # Solaris 8's {/usr,}/bin/sh.
11670 touch sub/conftst$i.h
11671 done
11672 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11673
11674 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11675 # mode. It turns out that the SunPro C++ compiler does not properly
11676 # handle `-M -o', and we need to detect this. Also, some Intel
11677 # versions had trouble with output in subdirs
11678 am__obj=sub/conftest.${OBJEXT-o}
11679 am__minus_obj="-o $am__obj"
11680 case $depmode in
11681 gcc)
11682 # This depmode causes a compiler race in universal mode.
11683 test "$am__universal" = false || continue
11684 ;;
11685 nosideeffect)
11686 # after this tag, mechanisms are not by side-effect, so they'll
11687 # only be used when explicitly requested
11688 if test "x$enable_dependency_tracking" = xyes; then
11689 continue
11690 else
11691 break
11692 fi
11693 ;;
11694 msvisualcpp | msvcmsys)
11695 # This compiler won't grok `-c -o', but also, the minuso test has
11696 # not run yet. These depmodes are late enough in the game, and
11697 # so weak that their functioning should not be impacted.
11698 am__obj=conftest.${OBJEXT-o}
11699 am__minus_obj=
11700 ;;
11701 none) break ;;
11702 esac
11703 if depmode=$depmode \
11704 source=sub/conftest.c object=$am__obj \
11705 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11706 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11707 >/dev/null 2>conftest.err &&
11708 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11709 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11710 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11711 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11712 # icc doesn't choke on unknown options, it will just issue warnings
11713 # or remarks (even with -Werror). So we grep stderr for any message
11714 # that says an option was ignored or not supported.
11715 # When given -MP, icc 7.0 and 7.1 complain thusly:
11716 # icc: Command line warning: ignoring option '-M'; no argument required
11717 # The diagnosis changed in icc 8.0:
11718 # icc: Command line remark: option '-MP' not supported
11719 if (grep 'ignoring option' conftest.err ||
11720 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11721 am_cv_CXX_dependencies_compiler_type=$depmode
11722 break
11723 fi
11724 fi
11725 done
11726
11727 cd ..
11728 rm -rf conftest.dir
11729else
11730 am_cv_CXX_dependencies_compiler_type=none
11731fi
11732
11733fi
11734{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11735$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11736CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11737
11738 if
11739 test "x$enable_dependency_tracking" != xno \
11740 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11741 am__fastdepCXX_TRUE=
11742 am__fastdepCXX_FALSE='#'
11743else
11744 am__fastdepCXX_TRUE='#'
11745 am__fastdepCXX_FALSE=
11746fi
11747
11748
11749if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11750 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11751 (test "X$CXX" != "Xg++"))) ; then
11752 ac_ext=cpp
11753ac_cpp='$CXXCPP $CPPFLAGS'
11754ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11755ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11756ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11757{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11758$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11759if test -z "$CXXCPP"; then
11760 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11761 $as_echo_n "(cached) " >&6
11762else
11763 # Double quotes because CXXCPP needs to be expanded
11764 for CXXCPP in "$CXX -E" "/lib/cpp"
11765 do
11766 ac_preproc_ok=false
11767for ac_cxx_preproc_warn_flag in '' yes
11768do
11769 # Use a header file that comes with gcc, so configuring glibc
11770 # with a fresh cross-compiler works.
11771 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11772 # <limits.h> exists even on freestanding compilers.
11773 # On the NeXT, cc -E runs the code through the compiler's parser,
11774 # not just through cpp. "Syntax error" is here to catch this case.
11775 cat >conftest.$ac_ext <<_ACEOF
11776/* confdefs.h. */
11777_ACEOF
11778cat confdefs.h >>conftest.$ac_ext
11779cat >>conftest.$ac_ext <<_ACEOF
11780/* end confdefs.h. */
11781#ifdef __STDC__
11782# include <limits.h>
11783#else
11784# include <assert.h>
11785#endif
11786 Syntax error
11787_ACEOF
11788if { (ac_try="$ac_cpp conftest.$ac_ext"
11789case "(($ac_try" in
11790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11791 *) ac_try_echo=$ac_try;;
11792esac
11793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11794$as_echo "$ac_try_echo") >&5
11795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11796 ac_status=$?
11797 grep -v '^ *+' conftest.er1 >conftest.err
11798 rm -f conftest.er1
11799 cat conftest.err >&5
11800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); } >/dev/null && {
11802 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11803 test ! -s conftest.err
11804 }; then
11805 :
11806else
11807 $as_echo "$as_me: failed program was:" >&5
11808sed 's/^/| /' conftest.$ac_ext >&5
11809
11810 # Broken: fails on valid input.
11811continue
11812fi
11813
11814rm -f conftest.err conftest.$ac_ext
11815
11816 # OK, works on sane cases. Now check whether nonexistent headers
11817 # can be detected and how.
11818 cat >conftest.$ac_ext <<_ACEOF
11819/* confdefs.h. */
11820_ACEOF
11821cat confdefs.h >>conftest.$ac_ext
11822cat >>conftest.$ac_ext <<_ACEOF
11823/* end confdefs.h. */
11824#include <ac_nonexistent.h>
11825_ACEOF
11826if { (ac_try="$ac_cpp conftest.$ac_ext"
11827case "(($ac_try" in
11828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11829 *) ac_try_echo=$ac_try;;
11830esac
11831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11832$as_echo "$ac_try_echo") >&5
11833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } >/dev/null && {
11840 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11841 test ! -s conftest.err
11842 }; then
11843 # Broken: success on invalid input.
11844continue
11845else
11846 $as_echo "$as_me: failed program was:" >&5
11847sed 's/^/| /' conftest.$ac_ext >&5
11848
11849 # Passes both tests.
11850ac_preproc_ok=:
11851break
11852fi
11853
11854rm -f conftest.err conftest.$ac_ext
11855
11856done
11857# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11858rm -f conftest.err conftest.$ac_ext
11859if $ac_preproc_ok; then
11860 break
11861fi
11862
11863 done
11864 ac_cv_prog_CXXCPP=$CXXCPP
11865
11866fi
11867 CXXCPP=$ac_cv_prog_CXXCPP
11868else
11869 ac_cv_prog_CXXCPP=$CXXCPP
11870fi
11871{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
11872$as_echo "$CXXCPP" >&6; }
11873ac_preproc_ok=false
11874for ac_cxx_preproc_warn_flag in '' yes
11875do
11876 # Use a header file that comes with gcc, so configuring glibc
11877 # with a fresh cross-compiler works.
11878 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11879 # <limits.h> exists even on freestanding compilers.
11880 # On the NeXT, cc -E runs the code through the compiler's parser,
11881 # not just through cpp. "Syntax error" is here to catch this case.
11882 cat >conftest.$ac_ext <<_ACEOF
11883/* confdefs.h. */
11884_ACEOF
11885cat confdefs.h >>conftest.$ac_ext
11886cat >>conftest.$ac_ext <<_ACEOF
11887/* end confdefs.h. */
11888#ifdef __STDC__
11889# include <limits.h>
11890#else
11891# include <assert.h>
11892#endif
11893 Syntax error
11894_ACEOF
11895if { (ac_try="$ac_cpp conftest.$ac_ext"
11896case "(($ac_try" in
11897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11899esac
11900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11901$as_echo "$ac_try_echo") >&5
11902 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11903 ac_status=$?
11904 grep -v '^ *+' conftest.er1 >conftest.err
11905 rm -f conftest.er1
11906 cat conftest.err >&5
11907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } >/dev/null && {
11909 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11910 test ! -s conftest.err
11911 }; then
11912 :
11913else
11914 $as_echo "$as_me: failed program was:" >&5
11915sed 's/^/| /' conftest.$ac_ext >&5
11916
11917 # Broken: fails on valid input.
11918continue
11919fi
11920
11921rm -f conftest.err conftest.$ac_ext
11922
11923 # OK, works on sane cases. Now check whether nonexistent headers
11924 # can be detected and how.
11925 cat >conftest.$ac_ext <<_ACEOF
11926/* confdefs.h. */
11927_ACEOF
11928cat confdefs.h >>conftest.$ac_ext
11929cat >>conftest.$ac_ext <<_ACEOF
11930/* end confdefs.h. */
11931#include <ac_nonexistent.h>
11932_ACEOF
11933if { (ac_try="$ac_cpp conftest.$ac_ext"
11934case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11937esac
11938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11939$as_echo "$ac_try_echo") >&5
11940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } >/dev/null && {
11947 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11948 test ! -s conftest.err
11949 }; then
11950 # Broken: success on invalid input.
11951continue
11952else
11953 $as_echo "$as_me: failed program was:" >&5
11954sed 's/^/| /' conftest.$ac_ext >&5
11955
11956 # Passes both tests.
11957ac_preproc_ok=:
11958break
11959fi
11960
11961rm -f conftest.err conftest.$ac_ext
11962
11963done
11964# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11965rm -f conftest.err conftest.$ac_ext
11966if $ac_preproc_ok; then
11967 :
11968else
11969 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11971_lt_caught_CXX_error=yes; }
11972fi
11973
11974ac_ext=c
11975ac_cpp='$CPP $CPPFLAGS'
11976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11978ac_compiler_gnu=$ac_cv_c_compiler_gnu
11979
11980else
11981 _lt_caught_CXX_error=yes
11982fi
11983
11984
11985
11986
11987
11988# Set options
11989enable_win32_dll=yes
11990
11991case $host in
11992*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
11993 if test -n "$ac_tool_prefix"; then
11994 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11995set dummy ${ac_tool_prefix}as; ac_word=$2
11996{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11997$as_echo_n "checking for $ac_word... " >&6; }
11998if test "${ac_cv_prog_AS+set}" = set; then
11999 $as_echo_n "(cached) " >&6
12000else
12001 if test -n "$AS"; then
12002 ac_cv_prog_AS="$AS" # Let the user override the test.
12003else
12004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12005for as_dir in $PATH
12006do
12007 IFS=$as_save_IFS
12008 test -z "$as_dir" && as_dir=.
12009 for ac_exec_ext in '' $ac_executable_extensions; do
12010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12011 ac_cv_prog_AS="${ac_tool_prefix}as"
12012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12013 break 2
12014 fi
12015done
12016done
12017IFS=$as_save_IFS
12018
12019fi
12020fi
12021AS=$ac_cv_prog_AS
12022if test -n "$AS"; then
12023 { $as_echo "$as_me:$LINENO: result: $AS" >&5
12024$as_echo "$AS" >&6; }
12025else
12026 { $as_echo "$as_me:$LINENO: result: no" >&5
12027$as_echo "no" >&6; }
12028fi
12029
12030
12031fi
12032if test -z "$ac_cv_prog_AS"; then
12033 ac_ct_AS=$AS
12034 # Extract the first word of "as", so it can be a program name with args.
12035set dummy as; ac_word=$2
12036{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12037$as_echo_n "checking for $ac_word... " >&6; }
12038if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
12039 $as_echo_n "(cached) " >&6
12040else
12041 if test -n "$ac_ct_AS"; then
12042 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12043else
12044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12045for as_dir in $PATH
12046do
12047 IFS=$as_save_IFS
12048 test -z "$as_dir" && as_dir=.
12049 for ac_exec_ext in '' $ac_executable_extensions; do
12050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12051 ac_cv_prog_ac_ct_AS="as"
12052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12053 break 2
12054 fi
12055done
12056done
12057IFS=$as_save_IFS
12058
12059fi
12060fi
12061ac_ct_AS=$ac_cv_prog_ac_ct_AS
12062if test -n "$ac_ct_AS"; then
12063 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
12064$as_echo "$ac_ct_AS" >&6; }
12065else
12066 { $as_echo "$as_me:$LINENO: result: no" >&5
12067$as_echo "no" >&6; }
12068fi
12069
12070 if test "x$ac_ct_AS" = x; then
12071 AS="false"
12072 else
12073 case $cross_compiling:$ac_tool_warned in
12074yes:)
12075{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12077ac_tool_warned=yes ;;
12078esac
12079 AS=$ac_ct_AS
12080 fi
12081else
12082 AS="$ac_cv_prog_AS"
12083fi
12084
12085 if test -n "$ac_tool_prefix"; then
12086 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12087set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12088{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12089$as_echo_n "checking for $ac_word... " >&6; }
12090if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12091 $as_echo_n "(cached) " >&6
12092else
12093 if test -n "$DLLTOOL"; then
12094 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12095else
12096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12097for as_dir in $PATH
12098do
12099 IFS=$as_save_IFS
12100 test -z "$as_dir" && as_dir=.
12101 for ac_exec_ext in '' $ac_executable_extensions; do
12102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12103 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12104 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12105 break 2
12106 fi
12107done
12108done
12109IFS=$as_save_IFS
12110
12111fi
12112fi
12113DLLTOOL=$ac_cv_prog_DLLTOOL
12114if test -n "$DLLTOOL"; then
12115 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12116$as_echo "$DLLTOOL" >&6; }
12117else
12118 { $as_echo "$as_me:$LINENO: result: no" >&5
12119$as_echo "no" >&6; }
12120fi
12121
12122
12123fi
12124if test -z "$ac_cv_prog_DLLTOOL"; then
12125 ac_ct_DLLTOOL=$DLLTOOL
12126 # Extract the first word of "dlltool", so it can be a program name with args.
12127set dummy dlltool; ac_word=$2
12128{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12129$as_echo_n "checking for $ac_word... " >&6; }
12130if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
12131 $as_echo_n "(cached) " >&6
12132else
12133 if test -n "$ac_ct_DLLTOOL"; then
12134 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12135else
12136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12137for as_dir in $PATH
12138do
12139 IFS=$as_save_IFS
12140 test -z "$as_dir" && as_dir=.
12141 for ac_exec_ext in '' $ac_executable_extensions; do
12142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12143 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12144 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12145 break 2
12146 fi
12147done
12148done
12149IFS=$as_save_IFS
12150
12151fi
12152fi
12153ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12154if test -n "$ac_ct_DLLTOOL"; then
12155 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
12156$as_echo "$ac_ct_DLLTOOL" >&6; }
12157else
12158 { $as_echo "$as_me:$LINENO: result: no" >&5
12159$as_echo "no" >&6; }
12160fi
12161
12162 if test "x$ac_ct_DLLTOOL" = x; then
12163 DLLTOOL="false"
12164 else
12165 case $cross_compiling:$ac_tool_warned in
12166yes:)
12167{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12169ac_tool_warned=yes ;;
12170esac
12171 DLLTOOL=$ac_ct_DLLTOOL
12172 fi
12173else
12174 DLLTOOL="$ac_cv_prog_DLLTOOL"
12175fi
12176
12177 if test -n "$ac_tool_prefix"; then
12178 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12179set dummy ${ac_tool_prefix}objdump; ac_word=$2
12180{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12181$as_echo_n "checking for $ac_word... " >&6; }
12182if test "${ac_cv_prog_OBJDUMP+set}" = set; then
12183 $as_echo_n "(cached) " >&6
12184else
12185 if test -n "$OBJDUMP"; then
12186 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12187else
12188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12189for as_dir in $PATH
12190do
12191 IFS=$as_save_IFS
12192 test -z "$as_dir" && as_dir=.
12193 for ac_exec_ext in '' $ac_executable_extensions; do
12194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12195 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12196 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12197 break 2
12198 fi
12199done
12200done
12201IFS=$as_save_IFS
12202
12203fi
12204fi
12205OBJDUMP=$ac_cv_prog_OBJDUMP
12206if test -n "$OBJDUMP"; then
12207 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
12208$as_echo "$OBJDUMP" >&6; }
12209else
12210 { $as_echo "$as_me:$LINENO: result: no" >&5
12211$as_echo "no" >&6; }
12212fi
12213
12214
12215fi
12216if test -z "$ac_cv_prog_OBJDUMP"; then
12217 ac_ct_OBJDUMP=$OBJDUMP
12218 # Extract the first word of "objdump", so it can be a program name with args.
12219set dummy objdump; ac_word=$2
12220{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12221$as_echo_n "checking for $ac_word... " >&6; }
12222if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
12223 $as_echo_n "(cached) " >&6
12224else
12225 if test -n "$ac_ct_OBJDUMP"; then
12226 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12227else
12228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12229for as_dir in $PATH
12230do
12231 IFS=$as_save_IFS
12232 test -z "$as_dir" && as_dir=.
12233 for ac_exec_ext in '' $ac_executable_extensions; do
12234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12235 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12237 break 2
12238 fi
12239done
12240done
12241IFS=$as_save_IFS
12242
12243fi
12244fi
12245ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12246if test -n "$ac_ct_OBJDUMP"; then
12247 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
12248$as_echo "$ac_ct_OBJDUMP" >&6; }
12249else
12250 { $as_echo "$as_me:$LINENO: result: no" >&5
12251$as_echo "no" >&6; }
12252fi
12253
12254 if test "x$ac_ct_OBJDUMP" = x; then
12255 OBJDUMP="false"
12256 else
12257 case $cross_compiling:$ac_tool_warned in
12258yes:)
12259{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
12260$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12261ac_tool_warned=yes ;;
12262esac
12263 OBJDUMP=$ac_ct_OBJDUMP
12264 fi
12265else
12266 OBJDUMP="$ac_cv_prog_OBJDUMP"
12267fi
12268
12269 ;;
12270esac
12271
12272test -z "$AS" && AS=as
12273
12274
12275
12276
12277
12278test -z "$DLLTOOL" && DLLTOOL=dlltool
12279
12280
12281
12282
12283
12284test -z "$OBJDUMP" && OBJDUMP=objdump
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294 # Check whether --enable-shared was given.
12295if test "${enable_shared+set}" = set; then
12296 enableval=$enable_shared; p=${PACKAGE-default}
12297 case $enableval in
12298 yes) enable_shared=yes ;;
12299 no) enable_shared=no ;;
12300 *)
12301 enable_shared=no
12302 # Look at the argument we got. We use all the common list separators.
12303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12304 for pkg in $enableval; do
12305 IFS="$lt_save_ifs"
12306 if test "X$pkg" = "X$p"; then
12307 enable_shared=yes
12308 fi
12309 done
12310 IFS="$lt_save_ifs"
12311 ;;
12312 esac
12313else
12314 enable_shared=yes
12315fi
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325 # Check whether --enable-static was given.
12326if test "${enable_static+set}" = set; then
12327 enableval=$enable_static; p=${PACKAGE-default}
12328 case $enableval in
12329 yes) enable_static=yes ;;
12330 no) enable_static=no ;;
12331 *)
12332 enable_static=no
12333 # Look at the argument we got. We use all the common list separators.
12334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12335 for pkg in $enableval; do
12336 IFS="$lt_save_ifs"
12337 if test "X$pkg" = "X$p"; then
12338 enable_static=yes
12339 fi
12340 done
12341 IFS="$lt_save_ifs"
12342 ;;
12343 esac
12344else
12345 enable_static=yes
12346fi
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357# Check whether --with-pic was given.
12358if test "${with_pic+set}" = set; then
12359 withval=$with_pic; pic_mode="$withval"
12360else
12361 pic_mode=default
12362fi
12363
12364
12365test -z "$pic_mode" && pic_mode=default
12366
12367
12368
12369
12370
12371
12372
12373 # Check whether --enable-fast-install was given.
12374if test "${enable_fast_install+set}" = set; then
12375 enableval=$enable_fast_install; p=${PACKAGE-default}
12376 case $enableval in
12377 yes) enable_fast_install=yes ;;
12378 no) enable_fast_install=no ;;
12379 *)
12380 enable_fast_install=no
12381 # Look at the argument we got. We use all the common list separators.
12382 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12383 for pkg in $enableval; do
12384 IFS="$lt_save_ifs"
12385 if test "X$pkg" = "X$p"; then
12386 enable_fast_install=yes
12387 fi
12388 done
12389 IFS="$lt_save_ifs"
12390 ;;
12391 esac
12392else
12393 enable_fast_install=yes
12394fi
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406# This can be used to rebuild libtool when needed
12407LIBTOOL_DEPS="$ltmain"
12408
12409# Always use our own libtool.
12410LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436test -z "$LN_S" && LN_S="ln -s"
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451if test -n "${ZSH_VERSION+set}" ; then
12452 setopt NO_GLOB_SUBST
12453fi
12454
12455{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
12456$as_echo_n "checking for objdir... " >&6; }
12457if test "${lt_cv_objdir+set}" = set; then
12458 $as_echo_n "(cached) " >&6
12459else
12460 rm -f .libs 2>/dev/null
12461mkdir .libs 2>/dev/null
12462if test -d .libs; then
12463 lt_cv_objdir=.libs
12464else
12465 # MS-DOS does not allow filenames that begin with a dot.
12466 lt_cv_objdir=_libs
12467fi
12468rmdir .libs 2>/dev/null
12469fi
12470{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
12471$as_echo "$lt_cv_objdir" >&6; }
12472objdir=$lt_cv_objdir
12473
12474
12475
12476
12477
12478cat >>confdefs.h <<_ACEOF
12479#define LT_OBJDIR "$lt_cv_objdir/"
12480_ACEOF
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498case $host_os in
12499aix3*)
12500 # AIX sometimes has problems with the GCC collect2 program. For some
12501 # reason, if we set the COLLECT_NAMES environment variable, the problems
12502 # vanish in a puff of smoke.
12503 if test "X${COLLECT_NAMES+set}" != Xset; then
12504 COLLECT_NAMES=
12505 export COLLECT_NAMES
12506 fi
12507 ;;
12508esac
12509
12510# Sed substitution that helps us do robust quoting. It backslashifies
12511# metacharacters that are still active within double-quoted strings.
12512sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12513
12514# Same as above, but do not quote variable references.
12515double_quote_subst='s/\(["`\\]\)/\\\1/g'
12516
12517# Sed substitution to delay expansion of an escaped shell variable in a
12518# double_quote_subst'ed string.
12519delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12520
12521# Sed substitution to delay expansion of an escaped single quote.
12522delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12523
12524# Sed substitution to avoid accidental globbing in evaled expressions
12525no_glob_subst='s/\*/\\\*/g'
12526
12527# Global variables:
12528ofile=libtool
12529can_build_shared=yes
12530
12531# All known linkers require a `.a' archive for static linking (except MSVC,
12532# which needs '.lib').
12533libext=a
12534
12535with_gnu_ld="$lt_cv_prog_gnu_ld"
12536
12537old_CC="$CC"
12538old_CFLAGS="$CFLAGS"
12539
12540# Set sane defaults for various variables
12541test -z "$CC" && CC=cc
12542test -z "$LTCC" && LTCC=$CC
12543test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12544test -z "$LD" && LD=ld
12545test -z "$ac_objext" && ac_objext=o
12546
12547for cc_temp in $compiler""; do
12548 case $cc_temp in
12549 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12550 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12551 \-*) ;;
12552 *) break;;
12553 esac
12554done
12555cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12556
12557
12558# Only perform the check for file, if the check method requires it
12559test -z "$MAGIC_CMD" && MAGIC_CMD=file
12560case $deplibs_check_method in
12561file_magic*)
12562 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12563 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
12564$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12565if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12566 $as_echo_n "(cached) " >&6
12567else
12568 case $MAGIC_CMD in
12569[\\/*] | ?:[\\/]*)
12570 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12571 ;;
12572*)
12573 lt_save_MAGIC_CMD="$MAGIC_CMD"
12574 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12575 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12576 for ac_dir in $ac_dummy; do
12577 IFS="$lt_save_ifs"
12578 test -z "$ac_dir" && ac_dir=.
12579 if test -f $ac_dir/${ac_tool_prefix}file; then
12580 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12581 if test -n "$file_magic_test_file"; then
12582 case $deplibs_check_method in
12583 "file_magic "*)
12584 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12586 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12587 $EGREP "$file_magic_regex" > /dev/null; then
12588 :
12589 else
12590 cat <<_LT_EOF 1>&2
12591
12592*** Warning: the command libtool uses to detect shared libraries,
12593*** $file_magic_cmd, produces output that libtool cannot recognize.
12594*** The result is that libtool may fail to recognize shared libraries
12595*** as such. This will affect the creation of libtool libraries that
12596*** depend on shared libraries, but programs linked with such libtool
12597*** libraries will work regardless of this problem. Nevertheless, you
12598*** may want to report the problem to your system manager and/or to
12599*** bug-libtool@gnu.org
12600
12601_LT_EOF
12602 fi ;;
12603 esac
12604 fi
12605 break
12606 fi
12607 done
12608 IFS="$lt_save_ifs"
12609 MAGIC_CMD="$lt_save_MAGIC_CMD"
12610 ;;
12611esac
12612fi
12613
12614MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12615if test -n "$MAGIC_CMD"; then
12616 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12617$as_echo "$MAGIC_CMD" >&6; }
12618else
12619 { $as_echo "$as_me:$LINENO: result: no" >&5
12620$as_echo "no" >&6; }
12621fi
12622
12623
12624
12625
12626
12627if test -z "$lt_cv_path_MAGIC_CMD"; then
12628 if test -n "$ac_tool_prefix"; then
12629 { $as_echo "$as_me:$LINENO: checking for file" >&5
12630$as_echo_n "checking for file... " >&6; }
12631if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12632 $as_echo_n "(cached) " >&6
12633else
12634 case $MAGIC_CMD in
12635[\\/*] | ?:[\\/]*)
12636 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12637 ;;
12638*)
12639 lt_save_MAGIC_CMD="$MAGIC_CMD"
12640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12641 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12642 for ac_dir in $ac_dummy; do
12643 IFS="$lt_save_ifs"
12644 test -z "$ac_dir" && ac_dir=.
12645 if test -f $ac_dir/file; then
12646 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12647 if test -n "$file_magic_test_file"; then
12648 case $deplibs_check_method in
12649 "file_magic "*)
12650 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12651 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12652 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12653 $EGREP "$file_magic_regex" > /dev/null; then
12654 :
12655 else
12656 cat <<_LT_EOF 1>&2
12657
12658*** Warning: the command libtool uses to detect shared libraries,
12659*** $file_magic_cmd, produces output that libtool cannot recognize.
12660*** The result is that libtool may fail to recognize shared libraries
12661*** as such. This will affect the creation of libtool libraries that
12662*** depend on shared libraries, but programs linked with such libtool
12663*** libraries will work regardless of this problem. Nevertheless, you
12664*** may want to report the problem to your system manager and/or to
12665*** bug-libtool@gnu.org
12666
12667_LT_EOF
12668 fi ;;
12669 esac
12670 fi
12671 break
12672 fi
12673 done
12674 IFS="$lt_save_ifs"
12675 MAGIC_CMD="$lt_save_MAGIC_CMD"
12676 ;;
12677esac
12678fi
12679
12680MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12681if test -n "$MAGIC_CMD"; then
12682 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12683$as_echo "$MAGIC_CMD" >&6; }
12684else
12685 { $as_echo "$as_me:$LINENO: result: no" >&5
12686$as_echo "no" >&6; }
12687fi
12688
12689
12690 else
12691 MAGIC_CMD=:
12692 fi
12693fi
12694
12695 fi
12696 ;;
12697esac
12698
12699# Use C for the default configuration in the libtool script
12700
12701lt_save_CC="$CC"
12702ac_ext=c
12703ac_cpp='$CPP $CPPFLAGS'
12704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12706ac_compiler_gnu=$ac_cv_c_compiler_gnu
12707
12708
12709# Source file extension for C test sources.
12710ac_ext=c
12711
12712# Object file extension for compiled C test sources.
12713objext=o
12714objext=$objext
12715
12716# Code to be used in simple compile tests
12717lt_simple_compile_test_code="int some_variable = 0;"
12718
12719# Code to be used in simple link tests
12720lt_simple_link_test_code='int main(){return(0);}'
12721
12722
12723
12724
12725
12726
12727
12728# If no C compiler was specified, use CC.
12729LTCC=${LTCC-"$CC"}
12730
12731# If no C compiler flags were specified, use CFLAGS.
12732LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12733
12734# Allow CC to be a program name with arguments.
12735compiler=$CC
12736
12737# Save the default compiler, since it gets overwritten when the other
12738# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12739compiler_DEFAULT=$CC
12740
12741# save warnings/boilerplate of simple test code
12742ac_outfile=conftest.$ac_objext
12743echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12744eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12745_lt_compiler_boilerplate=`cat conftest.err`
12746$RM conftest*
12747
12748ac_outfile=conftest.$ac_objext
12749echo "$lt_simple_link_test_code" >conftest.$ac_ext
12750eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12751_lt_linker_boilerplate=`cat conftest.err`
12752$RM -r conftest*
12753
12754
12755## CAVEAT EMPTOR:
12756## There is no encapsulation within the following macros, do not change
12757## the running order or otherwise move them around unless you know exactly
12758## what you are doing...
12759if test -n "$compiler"; then
12760
12761lt_prog_compiler_no_builtin_flag=
12762
12763if test "$GCC" = yes; then
12764 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12765
12766 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12767$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12768if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12769 $as_echo_n "(cached) " >&6
12770else
12771 lt_cv_prog_compiler_rtti_exceptions=no
12772 ac_outfile=conftest.$ac_objext
12773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12774 lt_compiler_flag="-fno-rtti -fno-exceptions"
12775 # Insert the option either (1) after the last *FLAGS variable, or
12776 # (2) before a word containing "conftest.", or (3) at the end.
12777 # Note that $ac_compile itself does not contain backslashes and begins
12778 # with a dollar sign (not a hyphen), so the echo should work correctly.
12779 # The option is referenced via a variable to avoid confusing sed.
12780 lt_compile=`echo "$ac_compile" | $SED \
12781 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12782 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12783 -e 's:$: $lt_compiler_flag:'`
cristya0242ab2009-10-15 19:17:14 +000012784 (eval echo "\"\$as_me:12784: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000012785 (eval "$lt_compile" 2>conftest.err)
12786 ac_status=$?
12787 cat conftest.err >&5
cristya0242ab2009-10-15 19:17:14 +000012788 echo "$as_me:12788: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000012789 if (exit $ac_status) && test -s "$ac_outfile"; then
12790 # The compiler can only warn and ignore the option if not recognized
12791 # So say no if there are warnings other than the usual output.
12792 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12793 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12794 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12795 lt_cv_prog_compiler_rtti_exceptions=yes
12796 fi
12797 fi
12798 $RM conftest*
12799
12800fi
12801{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12802$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12803
12804if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12805 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12806else
12807 :
12808fi
12809
12810fi
12811
12812
12813
12814
12815
12816
12817 lt_prog_compiler_wl=
12818lt_prog_compiler_pic=
12819lt_prog_compiler_static=
12820
12821{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12822$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12823
12824 if test "$GCC" = yes; then
12825 lt_prog_compiler_wl='-Wl,'
12826 lt_prog_compiler_static='-static'
12827
12828 case $host_os in
12829 aix*)
12830 # All AIX code is PIC.
12831 if test "$host_cpu" = ia64; then
12832 # AIX 5 now supports IA64 processor
12833 lt_prog_compiler_static='-Bstatic'
12834 fi
12835 ;;
12836
12837 amigaos*)
12838 case $host_cpu in
12839 powerpc)
12840 # see comment about AmigaOS4 .so support
12841 lt_prog_compiler_pic='-fPIC'
12842 ;;
12843 m68k)
12844 # FIXME: we need at least 68020 code to build shared libraries, but
12845 # adding the `-m68020' flag to GCC prevents building anything better,
12846 # like `-m68040'.
12847 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12848 ;;
12849 esac
12850 ;;
12851
12852 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12853 # PIC is the default for these OSes.
12854 ;;
12855
12856 mingw* | cygwin* | pw32* | os2* | cegcc*)
12857 # This hack is so that the source file can tell whether it is being
12858 # built for inclusion in a dll (and should export symbols for example).
12859 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12860 # (--disable-auto-import) libraries
12861 lt_prog_compiler_pic='-DDLL_EXPORT'
12862 ;;
12863
12864 darwin* | rhapsody*)
12865 # PIC is the default on this platform
12866 # Common symbols not allowed in MH_DYLIB files
12867 lt_prog_compiler_pic='-fno-common'
12868 ;;
12869
12870 hpux*)
12871 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12872 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12873 # sets the default TLS model and affects inlining.
12874 case $host_cpu in
12875 hppa*64*)
12876 # +Z the default
12877 ;;
12878 *)
12879 lt_prog_compiler_pic='-fPIC'
12880 ;;
12881 esac
12882 ;;
12883
12884 interix[3-9]*)
12885 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12886 # Instead, we relocate shared libraries at runtime.
12887 ;;
12888
12889 msdosdjgpp*)
12890 # Just because we use GCC doesn't mean we suddenly get shared libraries
12891 # on systems that don't support them.
12892 lt_prog_compiler_can_build_shared=no
12893 enable_shared=no
12894 ;;
12895
12896 *nto* | *qnx*)
12897 # QNX uses GNU C++, but need to define -shared option too, otherwise
12898 # it will coredump.
12899 lt_prog_compiler_pic='-fPIC -shared'
12900 ;;
12901
12902 sysv4*MP*)
12903 if test -d /usr/nec; then
12904 lt_prog_compiler_pic=-Kconform_pic
12905 fi
12906 ;;
12907
12908 *)
12909 lt_prog_compiler_pic='-fPIC'
12910 ;;
12911 esac
12912 else
12913 # PORTME Check for flag to pass linker flags through the system compiler.
12914 case $host_os in
12915 aix*)
12916 lt_prog_compiler_wl='-Wl,'
12917 if test "$host_cpu" = ia64; then
12918 # AIX 5 now supports IA64 processor
12919 lt_prog_compiler_static='-Bstatic'
12920 else
12921 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12922 fi
12923 ;;
12924
12925 mingw* | cygwin* | pw32* | os2* | cegcc*)
12926 # This hack is so that the source file can tell whether it is being
12927 # built for inclusion in a dll (and should export symbols for example).
12928 lt_prog_compiler_pic='-DDLL_EXPORT'
12929 ;;
12930
12931 hpux9* | hpux10* | hpux11*)
12932 lt_prog_compiler_wl='-Wl,'
12933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12934 # not for PA HP-UX.
12935 case $host_cpu in
12936 hppa*64*|ia64*)
12937 # +Z the default
12938 ;;
12939 *)
12940 lt_prog_compiler_pic='+Z'
12941 ;;
12942 esac
12943 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12944 lt_prog_compiler_static='${wl}-a ${wl}archive'
12945 ;;
12946
12947 irix5* | irix6* | nonstopux*)
12948 lt_prog_compiler_wl='-Wl,'
12949 # PIC (with -KPIC) is the default.
12950 lt_prog_compiler_static='-non_shared'
12951 ;;
12952
12953 linux* | k*bsd*-gnu)
12954 case $cc_basename in
12955 # old Intel for x86_64 which still supported -KPIC.
12956 ecc*)
12957 lt_prog_compiler_wl='-Wl,'
12958 lt_prog_compiler_pic='-KPIC'
12959 lt_prog_compiler_static='-static'
12960 ;;
12961 # icc used to be incompatible with GCC.
12962 # ICC 10 doesn't accept -KPIC any more.
12963 icc* | ifort*)
12964 lt_prog_compiler_wl='-Wl,'
12965 lt_prog_compiler_pic='-fPIC'
12966 lt_prog_compiler_static='-static'
12967 ;;
12968 # Lahey Fortran 8.1.
12969 lf95*)
12970 lt_prog_compiler_wl='-Wl,'
12971 lt_prog_compiler_pic='--shared'
12972 lt_prog_compiler_static='--static'
12973 ;;
12974 pgcc* | pgf77* | pgf90* | pgf95*)
12975 # Portland Group compilers (*not* the Pentium gcc compiler,
12976 # which looks to be a dead project)
12977 lt_prog_compiler_wl='-Wl,'
12978 lt_prog_compiler_pic='-fpic'
12979 lt_prog_compiler_static='-Bstatic'
12980 ;;
12981 ccc*)
12982 lt_prog_compiler_wl='-Wl,'
12983 # All Alpha code is PIC.
12984 lt_prog_compiler_static='-non_shared'
12985 ;;
12986 xl*)
12987 # IBM XL C 8.0/Fortran 10.1 on PPC
12988 lt_prog_compiler_wl='-Wl,'
12989 lt_prog_compiler_pic='-qpic'
12990 lt_prog_compiler_static='-qstaticlink'
12991 ;;
12992 *)
12993 case `$CC -V 2>&1 | sed 5q` in
12994 *Sun\ C*)
12995 # Sun C 5.9
12996 lt_prog_compiler_pic='-KPIC'
12997 lt_prog_compiler_static='-Bstatic'
12998 lt_prog_compiler_wl='-Wl,'
12999 ;;
13000 *Sun\ F*)
13001 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13002 lt_prog_compiler_pic='-KPIC'
13003 lt_prog_compiler_static='-Bstatic'
13004 lt_prog_compiler_wl=''
13005 ;;
13006 esac
13007 ;;
13008 esac
13009 ;;
13010
13011 newsos6)
13012 lt_prog_compiler_pic='-KPIC'
13013 lt_prog_compiler_static='-Bstatic'
13014 ;;
13015
13016 *nto* | *qnx*)
13017 # QNX uses GNU C++, but need to define -shared option too, otherwise
13018 # it will coredump.
13019 lt_prog_compiler_pic='-fPIC -shared'
13020 ;;
13021
13022 osf3* | osf4* | osf5*)
13023 lt_prog_compiler_wl='-Wl,'
13024 # All OSF/1 code is PIC.
13025 lt_prog_compiler_static='-non_shared'
13026 ;;
13027
13028 rdos*)
13029 lt_prog_compiler_static='-non_shared'
13030 ;;
13031
13032 solaris*)
13033 lt_prog_compiler_pic='-KPIC'
13034 lt_prog_compiler_static='-Bstatic'
13035 case $cc_basename in
13036 f77* | f90* | f95*)
13037 lt_prog_compiler_wl='-Qoption ld ';;
13038 *)
13039 lt_prog_compiler_wl='-Wl,';;
13040 esac
13041 ;;
13042
13043 sunos4*)
13044 lt_prog_compiler_wl='-Qoption ld '
13045 lt_prog_compiler_pic='-PIC'
13046 lt_prog_compiler_static='-Bstatic'
13047 ;;
13048
13049 sysv4 | sysv4.2uw2* | sysv4.3*)
13050 lt_prog_compiler_wl='-Wl,'
13051 lt_prog_compiler_pic='-KPIC'
13052 lt_prog_compiler_static='-Bstatic'
13053 ;;
13054
13055 sysv4*MP*)
13056 if test -d /usr/nec ;then
13057 lt_prog_compiler_pic='-Kconform_pic'
13058 lt_prog_compiler_static='-Bstatic'
13059 fi
13060 ;;
13061
13062 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13063 lt_prog_compiler_wl='-Wl,'
13064 lt_prog_compiler_pic='-KPIC'
13065 lt_prog_compiler_static='-Bstatic'
13066 ;;
13067
13068 unicos*)
13069 lt_prog_compiler_wl='-Wl,'
13070 lt_prog_compiler_can_build_shared=no
13071 ;;
13072
13073 uts4*)
13074 lt_prog_compiler_pic='-pic'
13075 lt_prog_compiler_static='-Bstatic'
13076 ;;
13077
13078 *)
13079 lt_prog_compiler_can_build_shared=no
13080 ;;
13081 esac
13082 fi
13083
13084case $host_os in
13085 # For platforms which do not support PIC, -DPIC is meaningless:
13086 *djgpp*)
13087 lt_prog_compiler_pic=
13088 ;;
13089 *)
13090 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13091 ;;
13092esac
13093{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
13094$as_echo "$lt_prog_compiler_pic" >&6; }
13095
13096
13097
13098
13099
13100
13101#
13102# Check to make sure the PIC flag actually works.
13103#
13104if test -n "$lt_prog_compiler_pic"; then
13105 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13106$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13107if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
13108 $as_echo_n "(cached) " >&6
13109else
13110 lt_cv_prog_compiler_pic_works=no
13111 ac_outfile=conftest.$ac_objext
13112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13113 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13114 # Insert the option either (1) after the last *FLAGS variable, or
13115 # (2) before a word containing "conftest.", or (3) at the end.
13116 # Note that $ac_compile itself does not contain backslashes and begins
13117 # with a dollar sign (not a hyphen), so the echo should work correctly.
13118 # The option is referenced via a variable to avoid confusing sed.
13119 lt_compile=`echo "$ac_compile" | $SED \
13120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13122 -e 's:$: $lt_compiler_flag:'`
cristya0242ab2009-10-15 19:17:14 +000013123 (eval echo "\"\$as_me:13123: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013124 (eval "$lt_compile" 2>conftest.err)
13125 ac_status=$?
13126 cat conftest.err >&5
cristya0242ab2009-10-15 19:17:14 +000013127 echo "$as_me:13127: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013128 if (exit $ac_status) && test -s "$ac_outfile"; then
13129 # The compiler can only warn and ignore the option if not recognized
13130 # So say no if there are warnings other than the usual output.
13131 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13132 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13133 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13134 lt_cv_prog_compiler_pic_works=yes
13135 fi
13136 fi
13137 $RM conftest*
13138
13139fi
13140{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
13141$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13142
13143if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13144 case $lt_prog_compiler_pic in
13145 "" | " "*) ;;
13146 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13147 esac
13148else
13149 lt_prog_compiler_pic=
13150 lt_prog_compiler_can_build_shared=no
13151fi
13152
13153fi
13154
13155
13156
13157
13158
13159
13160#
13161# Check to make sure the static flag actually works.
13162#
13163wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13164{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13165$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13166if test "${lt_cv_prog_compiler_static_works+set}" = set; then
13167 $as_echo_n "(cached) " >&6
13168else
13169 lt_cv_prog_compiler_static_works=no
13170 save_LDFLAGS="$LDFLAGS"
13171 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13172 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13174 # The linker can only warn and ignore the option if not recognized
13175 # So say no if there are warnings
13176 if test -s conftest.err; then
13177 # Append any errors to the config.log.
13178 cat conftest.err 1>&5
13179 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13181 if diff conftest.exp conftest.er2 >/dev/null; then
13182 lt_cv_prog_compiler_static_works=yes
13183 fi
13184 else
13185 lt_cv_prog_compiler_static_works=yes
13186 fi
13187 fi
13188 $RM -r conftest*
13189 LDFLAGS="$save_LDFLAGS"
13190
13191fi
13192{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
13193$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13194
13195if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13196 :
13197else
13198 lt_prog_compiler_static=
13199fi
13200
13201
13202
13203
13204
13205
13206
13207 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13208$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13209if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13210 $as_echo_n "(cached) " >&6
13211else
13212 lt_cv_prog_compiler_c_o=no
13213 $RM -r conftest 2>/dev/null
13214 mkdir conftest
13215 cd conftest
13216 mkdir out
13217 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13218
13219 lt_compiler_flag="-o out/conftest2.$ac_objext"
13220 # Insert the option either (1) after the last *FLAGS variable, or
13221 # (2) before a word containing "conftest.", or (3) at the end.
13222 # Note that $ac_compile itself does not contain backslashes and begins
13223 # with a dollar sign (not a hyphen), so the echo should work correctly.
13224 lt_compile=`echo "$ac_compile" | $SED \
13225 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13227 -e 's:$: $lt_compiler_flag:'`
cristya0242ab2009-10-15 19:17:14 +000013228 (eval echo "\"\$as_me:13228: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013229 (eval "$lt_compile" 2>out/conftest.err)
13230 ac_status=$?
13231 cat out/conftest.err >&5
cristya0242ab2009-10-15 19:17:14 +000013232 echo "$as_me:13232: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013233 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13234 then
13235 # The compiler can only warn and ignore the option if not recognized
13236 # So say no if there are warnings
13237 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13238 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13239 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13240 lt_cv_prog_compiler_c_o=yes
13241 fi
13242 fi
13243 chmod u+w . 2>&5
13244 $RM conftest*
13245 # SGI C++ compiler will create directory out/ii_files/ for
13246 # template instantiation
13247 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13248 $RM out/* && rmdir out
13249 cd ..
13250 $RM -r conftest
13251 $RM conftest*
13252
13253fi
13254{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13255$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13256
13257
13258
13259
13260
13261
13262 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13263$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13264if test "${lt_cv_prog_compiler_c_o+set}" = set; then
13265 $as_echo_n "(cached) " >&6
13266else
13267 lt_cv_prog_compiler_c_o=no
13268 $RM -r conftest 2>/dev/null
13269 mkdir conftest
13270 cd conftest
13271 mkdir out
13272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13273
13274 lt_compiler_flag="-o out/conftest2.$ac_objext"
13275 # Insert the option either (1) after the last *FLAGS variable, or
13276 # (2) before a word containing "conftest.", or (3) at the end.
13277 # Note that $ac_compile itself does not contain backslashes and begins
13278 # with a dollar sign (not a hyphen), so the echo should work correctly.
13279 lt_compile=`echo "$ac_compile" | $SED \
13280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13282 -e 's:$: $lt_compiler_flag:'`
cristya0242ab2009-10-15 19:17:14 +000013283 (eval echo "\"\$as_me:13283: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000013284 (eval "$lt_compile" 2>out/conftest.err)
13285 ac_status=$?
13286 cat out/conftest.err >&5
cristya0242ab2009-10-15 19:17:14 +000013287 echo "$as_me:13287: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000013288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13289 then
13290 # The compiler can only warn and ignore the option if not recognized
13291 # So say no if there are warnings
13292 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13295 lt_cv_prog_compiler_c_o=yes
13296 fi
13297 fi
13298 chmod u+w . 2>&5
13299 $RM conftest*
13300 # SGI C++ compiler will create directory out/ii_files/ for
13301 # template instantiation
13302 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13303 $RM out/* && rmdir out
13304 cd ..
13305 $RM -r conftest
13306 $RM conftest*
13307
13308fi
13309{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
13310$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13311
13312
13313
13314
13315hard_links="nottested"
13316if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13317 # do not overwrite the value of need_locks provided by the user
13318 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13319$as_echo_n "checking if we can lock with hard links... " >&6; }
13320 hard_links=yes
13321 $RM conftest*
13322 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13323 touch conftest.a
13324 ln conftest.a conftest.b 2>&5 || hard_links=no
13325 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13326 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13327$as_echo "$hard_links" >&6; }
13328 if test "$hard_links" = no; then
13329 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13330$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13331 need_locks=warn
13332 fi
13333else
13334 need_locks=no
13335fi
13336
13337
13338
13339
13340
13341
13342 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13343$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13344
13345 runpath_var=
13346 allow_undefined_flag=
13347 always_export_symbols=no
13348 archive_cmds=
13349 archive_expsym_cmds=
13350 compiler_needs_object=no
13351 enable_shared_with_static_runtimes=no
13352 export_dynamic_flag_spec=
13353 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13354 hardcode_automatic=no
13355 hardcode_direct=no
13356 hardcode_direct_absolute=no
13357 hardcode_libdir_flag_spec=
13358 hardcode_libdir_flag_spec_ld=
13359 hardcode_libdir_separator=
13360 hardcode_minus_L=no
13361 hardcode_shlibpath_var=unsupported
13362 inherit_rpath=no
13363 link_all_deplibs=unknown
13364 module_cmds=
13365 module_expsym_cmds=
13366 old_archive_from_new_cmds=
13367 old_archive_from_expsyms_cmds=
13368 thread_safe_flag_spec=
13369 whole_archive_flag_spec=
13370 # include_expsyms should be a list of space-separated symbols to be *always*
13371 # included in the symbol list
13372 include_expsyms=
13373 # exclude_expsyms can be an extended regexp of symbols to exclude
13374 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13375 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13376 # as well as any symbol that contains `d'.
13377 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13378 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13379 # platforms (ab)use it in PIC code, but their linkers get confused if
13380 # the symbol is explicitly referenced. Since portable code cannot
13381 # rely on this symbol name, it's probably fine to never include it in
13382 # preloaded symbol tables.
13383 # Exclude shared library initialization/finalization symbols.
13384 extract_expsyms_cmds=
13385
13386 case $host_os in
13387 cygwin* | mingw* | pw32* | cegcc*)
13388 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13389 # When not using gcc, we currently assume that we are using
13390 # Microsoft Visual C++.
13391 if test "$GCC" != yes; then
13392 with_gnu_ld=no
13393 fi
13394 ;;
13395 interix*)
13396 # we just hope/assume this is gcc and not c89 (= MSVC++)
13397 with_gnu_ld=yes
13398 ;;
13399 openbsd*)
13400 with_gnu_ld=no
13401 ;;
13402 esac
13403
13404 ld_shlibs=yes
13405 if test "$with_gnu_ld" = yes; then
13406 # If archive_cmds runs LD, not CC, wlarc should be empty
13407 wlarc='${wl}'
13408
13409 # Set some defaults for GNU ld with shared library support. These
13410 # are reset later if shared libraries are not supported. Putting them
13411 # here allows them to be overridden if necessary.
13412 runpath_var=LD_RUN_PATH
13413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13414 export_dynamic_flag_spec='${wl}--export-dynamic'
13415 # ancient GNU ld didn't support --whole-archive et. al.
13416 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13417 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13418 else
13419 whole_archive_flag_spec=
13420 fi
13421 supports_anon_versioning=no
13422 case `$LD -v 2>&1` in
13423 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13424 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13425 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13426 *\ 2.11.*) ;; # other 2.11 versions
13427 *) supports_anon_versioning=yes ;;
13428 esac
13429
13430 # See if GNU ld supports shared libraries.
13431 case $host_os in
13432 aix[3-9]*)
13433 # On AIX/PPC, the GNU linker is very broken
13434 if test "$host_cpu" != ia64; then
13435 ld_shlibs=no
13436 cat <<_LT_EOF 1>&2
13437
13438*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13439*** to be unable to reliably create shared libraries on AIX.
13440*** Therefore, libtool is disabling shared libraries support. If you
13441*** really care for shared libraries, you may want to modify your PATH
13442*** so that a non-GNU linker is found, and then restart.
13443
13444_LT_EOF
13445 fi
13446 ;;
13447
13448 amigaos*)
13449 case $host_cpu in
13450 powerpc)
13451 # see comment about AmigaOS4 .so support
13452 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13453 archive_expsym_cmds=''
13454 ;;
13455 m68k)
13456 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)'
13457 hardcode_libdir_flag_spec='-L$libdir'
13458 hardcode_minus_L=yes
13459 ;;
13460 esac
13461 ;;
13462
13463 beos*)
13464 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13465 allow_undefined_flag=unsupported
13466 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13467 # support --undefined. This deserves some investigation. FIXME
13468 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13469 else
13470 ld_shlibs=no
13471 fi
13472 ;;
13473
13474 cygwin* | mingw* | pw32* | cegcc*)
13475 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13476 # as there is no search path for DLLs.
13477 hardcode_libdir_flag_spec='-L$libdir'
13478 allow_undefined_flag=unsupported
13479 always_export_symbols=no
13480 enable_shared_with_static_runtimes=yes
13481 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13482
13483 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13484 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13485 # If the export-symbols file already is a .def file (1st line
13486 # is EXPORTS), use it as is; otherwise, prepend...
13487 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13488 cp $export_symbols $output_objdir/$soname.def;
13489 else
13490 echo EXPORTS > $output_objdir/$soname.def;
13491 cat $export_symbols >> $output_objdir/$soname.def;
13492 fi~
13493 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13494 else
13495 ld_shlibs=no
13496 fi
13497 ;;
13498
13499 interix[3-9]*)
13500 hardcode_direct=no
13501 hardcode_shlibpath_var=no
13502 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13503 export_dynamic_flag_spec='${wl}-E'
13504 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13505 # Instead, shared libraries are loaded at an image base (0x10000000 by
13506 # default) and relocated if they conflict, which is a slow very memory
13507 # consuming and fragmenting process. To avoid this, we pick a random,
13508 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13509 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13510 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13511 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'
13512 ;;
13513
13514 gnu* | linux* | tpf* | k*bsd*-gnu)
13515 tmp_diet=no
13516 if test "$host_os" = linux-dietlibc; then
13517 case $cc_basename in
13518 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13519 esac
13520 fi
13521 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13522 && test "$tmp_diet" = no
13523 then
13524 tmp_addflag=
13525 tmp_sharedflag='-shared'
13526 case $cc_basename,$host_cpu in
13527 pgcc*) # Portland Group C compiler
13528 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'
13529 tmp_addflag=' $pic_flag'
13530 ;;
13531 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13532 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'
13533 tmp_addflag=' $pic_flag -Mnomain' ;;
13534 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13535 tmp_addflag=' -i_dynamic' ;;
13536 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13537 tmp_addflag=' -i_dynamic -nofor_main' ;;
13538 ifc* | ifort*) # Intel Fortran compiler
13539 tmp_addflag=' -nofor_main' ;;
13540 lf95*) # Lahey Fortran 8.1
13541 whole_archive_flag_spec=
13542 tmp_sharedflag='--shared' ;;
13543 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13544 tmp_sharedflag='-qmkshrobj'
13545 tmp_addflag= ;;
13546 esac
13547 case `$CC -V 2>&1 | sed 5q` in
13548 *Sun\ C*) # Sun C 5.9
13549 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'
13550 compiler_needs_object=yes
13551 tmp_sharedflag='-G' ;;
13552 *Sun\ F*) # Sun Fortran 8.3
13553 tmp_sharedflag='-G' ;;
13554 esac
13555 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13556
13557 if test "x$supports_anon_versioning" = xyes; then
13558 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13559 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13560 echo "local: *; };" >> $output_objdir/$libname.ver~
13561 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13562 fi
13563
13564 case $cc_basename in
13565 xlf*)
13566 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13567 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13568 hardcode_libdir_flag_spec=
13569 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13570 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13571 if test "x$supports_anon_versioning" = xyes; then
13572 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13574 echo "local: *; };" >> $output_objdir/$libname.ver~
13575 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13576 fi
13577 ;;
13578 esac
13579 else
13580 ld_shlibs=no
13581 fi
13582 ;;
13583
13584 netbsd*)
13585 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13586 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13587 wlarc=
13588 else
13589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13590 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13591 fi
13592 ;;
13593
13594 solaris*)
13595 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13596 ld_shlibs=no
13597 cat <<_LT_EOF 1>&2
13598
13599*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13600*** create shared libraries on Solaris systems. Therefore, libtool
13601*** is disabling shared libraries support. We urge you to upgrade GNU
13602*** binutils to release 2.9.1 or newer. Another option is to modify
13603*** your PATH or compiler configuration so that the native linker is
13604*** used, and then restart.
13605
13606_LT_EOF
13607 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13610 else
13611 ld_shlibs=no
13612 fi
13613 ;;
13614
13615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13616 case `$LD -v 2>&1` in
13617 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13618 ld_shlibs=no
13619 cat <<_LT_EOF 1>&2
13620
13621*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13622*** reliably create shared libraries on SCO systems. Therefore, libtool
13623*** is disabling shared libraries support. We urge you to upgrade GNU
13624*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13625*** your PATH or compiler configuration so that the native linker is
13626*** used, and then restart.
13627
13628_LT_EOF
13629 ;;
13630 *)
13631 # For security reasons, it is highly recommended that you always
13632 # use absolute paths for naming shared libraries, and exclude the
13633 # DT_RUNPATH tag from executables and libraries. But doing so
13634 # requires that you compile everything twice, which is a pain.
13635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13636 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13639 else
13640 ld_shlibs=no
13641 fi
13642 ;;
13643 esac
13644 ;;
13645
13646 sunos4*)
13647 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13648 wlarc=
13649 hardcode_direct=yes
13650 hardcode_shlibpath_var=no
13651 ;;
13652
13653 *)
13654 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13657 else
13658 ld_shlibs=no
13659 fi
13660 ;;
13661 esac
13662
13663 if test "$ld_shlibs" = no; then
13664 runpath_var=
13665 hardcode_libdir_flag_spec=
13666 export_dynamic_flag_spec=
13667 whole_archive_flag_spec=
13668 fi
13669 else
13670 # PORTME fill in a description of your system's linker (not GNU ld)
13671 case $host_os in
13672 aix3*)
13673 allow_undefined_flag=unsupported
13674 always_export_symbols=yes
13675 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'
13676 # Note: this linker hardcodes the directories in LIBPATH if there
13677 # are no directories specified by -L.
13678 hardcode_minus_L=yes
13679 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13680 # Neither direct hardcoding nor static linking is supported with a
13681 # broken collect2.
13682 hardcode_direct=unsupported
13683 fi
13684 ;;
13685
13686 aix[4-9]*)
13687 if test "$host_cpu" = ia64; then
13688 # On IA64, the linker does run time linking by default, so we don't
13689 # have to do anything special.
13690 aix_use_runtimelinking=no
13691 exp_sym_flag='-Bexport'
13692 no_entry_flag=""
13693 else
13694 # If we're using GNU nm, then we don't want the "-C" option.
13695 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13696 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13697 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'
13698 else
13699 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'
13700 fi
13701 aix_use_runtimelinking=no
13702
13703 # Test if we are trying to use run time linking or normal
13704 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13705 # need to do runtime linking.
13706 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13707 for ld_flag in $LDFLAGS; do
13708 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13709 aix_use_runtimelinking=yes
13710 break
13711 fi
13712 done
13713 ;;
13714 esac
13715
13716 exp_sym_flag='-bexport'
13717 no_entry_flag='-bnoentry'
13718 fi
13719
13720 # When large executables or shared objects are built, AIX ld can
13721 # have problems creating the table of contents. If linking a library
13722 # or program results in "error TOC overflow" add -mminimal-toc to
13723 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13724 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13725
13726 archive_cmds=''
13727 hardcode_direct=yes
13728 hardcode_direct_absolute=yes
13729 hardcode_libdir_separator=':'
13730 link_all_deplibs=yes
13731 file_list_spec='${wl}-f,'
13732
13733 if test "$GCC" = yes; then
13734 case $host_os in aix4.[012]|aix4.[012].*)
13735 # We only want to do this on AIX 4.2 and lower, the check
13736 # below for broken collect2 doesn't work under 4.3+
13737 collect2name=`${CC} -print-prog-name=collect2`
13738 if test -f "$collect2name" &&
13739 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13740 then
13741 # We have reworked collect2
13742 :
13743 else
13744 # We have old collect2
13745 hardcode_direct=unsupported
13746 # It fails to find uninstalled libraries when the uninstalled
13747 # path is not listed in the libpath. Setting hardcode_minus_L
13748 # to unsupported forces relinking
13749 hardcode_minus_L=yes
13750 hardcode_libdir_flag_spec='-L$libdir'
13751 hardcode_libdir_separator=
13752 fi
13753 ;;
13754 esac
13755 shared_flag='-shared'
13756 if test "$aix_use_runtimelinking" = yes; then
13757 shared_flag="$shared_flag "'${wl}-G'
13758 fi
13759 else
13760 # not using gcc
13761 if test "$host_cpu" = ia64; then
13762 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13763 # chokes on -Wl,-G. The following line is correct:
13764 shared_flag='-G'
13765 else
13766 if test "$aix_use_runtimelinking" = yes; then
13767 shared_flag='${wl}-G'
13768 else
13769 shared_flag='${wl}-bM:SRE'
13770 fi
13771 fi
13772 fi
13773
13774 export_dynamic_flag_spec='${wl}-bexpall'
13775 # It seems that -bexpall does not export symbols beginning with
13776 # underscore (_), so it is better to generate a list of symbols to export.
13777 always_export_symbols=yes
13778 if test "$aix_use_runtimelinking" = yes; then
13779 # Warning - without using the other runtime loading flags (-brtl),
13780 # -berok will link without error, but may produce a broken library.
13781 allow_undefined_flag='-berok'
13782 # Determine the default libpath from the value encoded in an
13783 # empty executable.
13784 cat >conftest.$ac_ext <<_ACEOF
13785/* confdefs.h. */
13786_ACEOF
13787cat confdefs.h >>conftest.$ac_ext
13788cat >>conftest.$ac_ext <<_ACEOF
13789/* end confdefs.h. */
13790
13791int
13792main ()
13793{
13794
13795 ;
13796 return 0;
13797}
13798_ACEOF
13799rm -f conftest.$ac_objext conftest$ac_exeext
13800if { (ac_try="$ac_link"
13801case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13804esac
13805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13806$as_echo "$ac_try_echo") >&5
13807 (eval "$ac_link") 2>conftest.er1
13808 ac_status=$?
13809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } && {
13814 test -z "$ac_c_werror_flag" ||
13815 test ! -s conftest.err
13816 } && test -s conftest$ac_exeext && {
13817 test "$cross_compiling" = yes ||
13818 $as_test_x conftest$ac_exeext
13819 }; then
13820
13821lt_aix_libpath_sed='
13822 /Import File Strings/,/^$/ {
13823 /^0/ {
13824 s/^0 *\(.*\)$/\1/
13825 p
13826 }
13827 }'
13828aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13829# Check for a 64-bit object if we didn't find anything.
13830if test -z "$aix_libpath"; then
13831 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13832fi
13833else
13834 $as_echo "$as_me: failed program was:" >&5
13835sed 's/^/| /' conftest.$ac_ext >&5
13836
13837
13838fi
13839
13840rm -rf conftest.dSYM
13841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13842 conftest$ac_exeext conftest.$ac_ext
13843if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13844
13845 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13846 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"
13847 else
13848 if test "$host_cpu" = ia64; then
13849 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13850 allow_undefined_flag="-z nodefs"
13851 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"
13852 else
13853 # Determine the default libpath from the value encoded in an
13854 # empty executable.
13855 cat >conftest.$ac_ext <<_ACEOF
13856/* confdefs.h. */
13857_ACEOF
13858cat confdefs.h >>conftest.$ac_ext
13859cat >>conftest.$ac_ext <<_ACEOF
13860/* end confdefs.h. */
13861
13862int
13863main ()
13864{
13865
13866 ;
13867 return 0;
13868}
13869_ACEOF
13870rm -f conftest.$ac_objext conftest$ac_exeext
13871if { (ac_try="$ac_link"
13872case "(($ac_try" in
13873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874 *) ac_try_echo=$ac_try;;
13875esac
13876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13877$as_echo "$ac_try_echo") >&5
13878 (eval "$ac_link") 2>conftest.er1
13879 ac_status=$?
13880 grep -v '^ *+' conftest.er1 >conftest.err
13881 rm -f conftest.er1
13882 cat conftest.err >&5
13883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884 (exit $ac_status); } && {
13885 test -z "$ac_c_werror_flag" ||
13886 test ! -s conftest.err
13887 } && test -s conftest$ac_exeext && {
13888 test "$cross_compiling" = yes ||
13889 $as_test_x conftest$ac_exeext
13890 }; then
13891
13892lt_aix_libpath_sed='
13893 /Import File Strings/,/^$/ {
13894 /^0/ {
13895 s/^0 *\(.*\)$/\1/
13896 p
13897 }
13898 }'
13899aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13900# Check for a 64-bit object if we didn't find anything.
13901if test -z "$aix_libpath"; then
13902 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13903fi
13904else
13905 $as_echo "$as_me: failed program was:" >&5
13906sed 's/^/| /' conftest.$ac_ext >&5
13907
13908
13909fi
13910
13911rm -rf conftest.dSYM
13912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13913 conftest$ac_exeext conftest.$ac_ext
13914if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13915
13916 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13917 # Warning - without using the other run time loading flags,
13918 # -berok will link without error, but may produce a broken library.
13919 no_undefined_flag=' ${wl}-bernotok'
13920 allow_undefined_flag=' ${wl}-berok'
13921 # Exported symbols can be pulled into shared objects from archives
13922 whole_archive_flag_spec='$convenience'
13923 archive_cmds_need_lc=yes
13924 # This is similar to how AIX traditionally builds its shared libraries.
13925 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'
13926 fi
13927 fi
13928 ;;
13929
13930 amigaos*)
13931 case $host_cpu in
13932 powerpc)
13933 # see comment about AmigaOS4 .so support
13934 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13935 archive_expsym_cmds=''
13936 ;;
13937 m68k)
13938 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)'
13939 hardcode_libdir_flag_spec='-L$libdir'
13940 hardcode_minus_L=yes
13941 ;;
13942 esac
13943 ;;
13944
13945 bsdi[45]*)
13946 export_dynamic_flag_spec=-rdynamic
13947 ;;
13948
13949 cygwin* | mingw* | pw32* | cegcc*)
13950 # When not using gcc, we currently assume that we are using
13951 # Microsoft Visual C++.
13952 # hardcode_libdir_flag_spec is actually meaningless, as there is
13953 # no search path for DLLs.
13954 hardcode_libdir_flag_spec=' '
13955 allow_undefined_flag=unsupported
13956 # Tell ltmain to make .lib files, not .a files.
13957 libext=lib
13958 # Tell ltmain to make .dll files, not .so files.
13959 shrext_cmds=".dll"
13960 # FIXME: Setting linknames here is a bad hack.
13961 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13962 # The linker will automatically build a .lib file if we build a DLL.
13963 old_archive_from_new_cmds='true'
13964 # FIXME: Should let the user specify the lib program.
13965 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13966 fix_srcfile_path='`cygpath -w "$srcfile"`'
13967 enable_shared_with_static_runtimes=yes
13968 ;;
13969
13970 darwin* | rhapsody*)
13971
13972
13973 archive_cmds_need_lc=no
13974 hardcode_direct=no
13975 hardcode_automatic=yes
13976 hardcode_shlibpath_var=unsupported
13977 whole_archive_flag_spec=''
13978 link_all_deplibs=yes
13979 allow_undefined_flag="$_lt_dar_allow_undefined"
13980 case $cc_basename in
13981 ifort*) _lt_dar_can_shared=yes ;;
13982 *) _lt_dar_can_shared=$GCC ;;
13983 esac
13984 if test "$_lt_dar_can_shared" = "yes"; then
13985 output_verbose_link_cmd=echo
13986 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13987 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13988 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}"
13989 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}"
13990
13991 else
13992 ld_shlibs=no
13993 fi
13994
13995 ;;
13996
13997 dgux*)
13998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13999 hardcode_libdir_flag_spec='-L$libdir'
14000 hardcode_shlibpath_var=no
14001 ;;
14002
14003 freebsd1*)
14004 ld_shlibs=no
14005 ;;
14006
14007 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14008 # support. Future versions do this automatically, but an explicit c++rt0.o
14009 # does not break anything, and helps significantly (at the cost of a little
14010 # extra space).
14011 freebsd2.2*)
14012 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14013 hardcode_libdir_flag_spec='-R$libdir'
14014 hardcode_direct=yes
14015 hardcode_shlibpath_var=no
14016 ;;
14017
14018 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14019 freebsd2*)
14020 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14021 hardcode_direct=yes
14022 hardcode_minus_L=yes
14023 hardcode_shlibpath_var=no
14024 ;;
14025
14026 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14027 freebsd* | dragonfly*)
14028 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14029 hardcode_libdir_flag_spec='-R$libdir'
14030 hardcode_direct=yes
14031 hardcode_shlibpath_var=no
14032 ;;
14033
14034 hpux9*)
14035 if test "$GCC" = yes; then
14036 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'
14037 else
14038 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'
14039 fi
14040 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14041 hardcode_libdir_separator=:
14042 hardcode_direct=yes
14043
14044 # hardcode_minus_L: Not really in the search PATH,
14045 # but as the default location of the library.
14046 hardcode_minus_L=yes
14047 export_dynamic_flag_spec='${wl}-E'
14048 ;;
14049
14050 hpux10*)
14051 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14052 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14053 else
14054 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14055 fi
14056 if test "$with_gnu_ld" = no; then
14057 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14058 hardcode_libdir_flag_spec_ld='+b $libdir'
14059 hardcode_libdir_separator=:
14060 hardcode_direct=yes
14061 hardcode_direct_absolute=yes
14062 export_dynamic_flag_spec='${wl}-E'
14063 # hardcode_minus_L: Not really in the search PATH,
14064 # but as the default location of the library.
14065 hardcode_minus_L=yes
14066 fi
14067 ;;
14068
14069 hpux11*)
14070 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14071 case $host_cpu in
14072 hppa*64*)
14073 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14074 ;;
14075 ia64*)
14076 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14077 ;;
14078 *)
14079 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14080 ;;
14081 esac
14082 else
14083 case $host_cpu in
14084 hppa*64*)
14085 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14086 ;;
14087 ia64*)
14088 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14089 ;;
14090 *)
14091 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14092 ;;
14093 esac
14094 fi
14095 if test "$with_gnu_ld" = no; then
14096 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14097 hardcode_libdir_separator=:
14098
14099 case $host_cpu in
14100 hppa*64*|ia64*)
14101 hardcode_direct=no
14102 hardcode_shlibpath_var=no
14103 ;;
14104 *)
14105 hardcode_direct=yes
14106 hardcode_direct_absolute=yes
14107 export_dynamic_flag_spec='${wl}-E'
14108
14109 # hardcode_minus_L: Not really in the search PATH,
14110 # but as the default location of the library.
14111 hardcode_minus_L=yes
14112 ;;
14113 esac
14114 fi
14115 ;;
14116
14117 irix5* | irix6* | nonstopux*)
14118 if test "$GCC" = yes; then
14119 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'
14120 # Try to use the -exported_symbol ld option, if it does not
14121 # work, assume that -exports_file does not work either and
14122 # implicitly export all symbols.
14123 save_LDFLAGS="$LDFLAGS"
14124 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14125 cat >conftest.$ac_ext <<_ACEOF
14126int foo(void) {}
14127_ACEOF
14128rm -f conftest.$ac_objext conftest$ac_exeext
14129if { (ac_try="$ac_link"
14130case "(($ac_try" in
14131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14133esac
14134eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14135$as_echo "$ac_try_echo") >&5
14136 (eval "$ac_link") 2>conftest.er1
14137 ac_status=$?
14138 grep -v '^ *+' conftest.er1 >conftest.err
14139 rm -f conftest.er1
14140 cat conftest.err >&5
14141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } && {
14143 test -z "$ac_c_werror_flag" ||
14144 test ! -s conftest.err
14145 } && test -s conftest$ac_exeext && {
14146 test "$cross_compiling" = yes ||
14147 $as_test_x conftest$ac_exeext
14148 }; then
14149 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'
14150
14151else
14152 $as_echo "$as_me: failed program was:" >&5
14153sed 's/^/| /' conftest.$ac_ext >&5
14154
14155
14156fi
14157
14158rm -rf conftest.dSYM
14159rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14160 conftest$ac_exeext conftest.$ac_ext
14161 LDFLAGS="$save_LDFLAGS"
14162 else
14163 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'
14164 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'
14165 fi
14166 archive_cmds_need_lc='no'
14167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14168 hardcode_libdir_separator=:
14169 inherit_rpath=yes
14170 link_all_deplibs=yes
14171 ;;
14172
14173 netbsd*)
14174 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14176 else
14177 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14178 fi
14179 hardcode_libdir_flag_spec='-R$libdir'
14180 hardcode_direct=yes
14181 hardcode_shlibpath_var=no
14182 ;;
14183
14184 newsos6)
14185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14186 hardcode_direct=yes
14187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14188 hardcode_libdir_separator=:
14189 hardcode_shlibpath_var=no
14190 ;;
14191
14192 *nto* | *qnx*)
14193 ;;
14194
14195 openbsd*)
14196 if test -f /usr/libexec/ld.so; then
14197 hardcode_direct=yes
14198 hardcode_shlibpath_var=no
14199 hardcode_direct_absolute=yes
14200 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14201 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14202 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14203 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14204 export_dynamic_flag_spec='${wl}-E'
14205 else
14206 case $host_os in
14207 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14208 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14209 hardcode_libdir_flag_spec='-R$libdir'
14210 ;;
14211 *)
14212 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14213 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14214 ;;
14215 esac
14216 fi
14217 else
14218 ld_shlibs=no
14219 fi
14220 ;;
14221
14222 os2*)
14223 hardcode_libdir_flag_spec='-L$libdir'
14224 hardcode_minus_L=yes
14225 allow_undefined_flag=unsupported
14226 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'
14227 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14228 ;;
14229
14230 osf3*)
14231 if test "$GCC" = yes; then
14232 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14233 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'
14234 else
14235 allow_undefined_flag=' -expect_unresolved \*'
14236 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'
14237 fi
14238 archive_cmds_need_lc='no'
14239 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14240 hardcode_libdir_separator=:
14241 ;;
14242
14243 osf4* | osf5*) # as osf3* with the addition of -msym flag
14244 if test "$GCC" = yes; then
14245 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14246 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'
14247 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14248 else
14249 allow_undefined_flag=' -expect_unresolved \*'
14250 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'
14251 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~
14252 $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'
14253
14254 # Both c and cxx compiler support -rpath directly
14255 hardcode_libdir_flag_spec='-rpath $libdir'
14256 fi
14257 archive_cmds_need_lc='no'
14258 hardcode_libdir_separator=:
14259 ;;
14260
14261 solaris*)
14262 no_undefined_flag=' -z defs'
14263 if test "$GCC" = yes; then
14264 wlarc='${wl}'
14265 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14266 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14267 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14268 else
14269 case `$CC -V 2>&1` in
14270 *"Compilers 5.0"*)
14271 wlarc=''
14272 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14273 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14274 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14275 ;;
14276 *)
14277 wlarc='${wl}'
14278 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14279 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14280 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14281 ;;
14282 esac
14283 fi
14284 hardcode_libdir_flag_spec='-R$libdir'
14285 hardcode_shlibpath_var=no
14286 case $host_os in
14287 solaris2.[0-5] | solaris2.[0-5].*) ;;
14288 *)
14289 # The compiler driver will combine and reorder linker options,
14290 # but understands `-z linker_flag'. GCC discards it without `$wl',
14291 # but is careful enough not to reorder.
14292 # Supported since Solaris 2.6 (maybe 2.5.1?)
14293 if test "$GCC" = yes; then
14294 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14295 else
14296 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14297 fi
14298 ;;
14299 esac
14300 link_all_deplibs=yes
14301 ;;
14302
14303 sunos4*)
14304 if test "x$host_vendor" = xsequent; then
14305 # Use $CC to link under sequent, because it throws in some extra .o
14306 # files that make .init and .fini sections work.
14307 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14308 else
14309 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14310 fi
14311 hardcode_libdir_flag_spec='-L$libdir'
14312 hardcode_direct=yes
14313 hardcode_minus_L=yes
14314 hardcode_shlibpath_var=no
14315 ;;
14316
14317 sysv4)
14318 case $host_vendor in
14319 sni)
14320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14321 hardcode_direct=yes # is this really true???
14322 ;;
14323 siemens)
14324 ## LD is ld it makes a PLAMLIB
14325 ## CC just makes a GrossModule.
14326 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14327 reload_cmds='$CC -r -o $output$reload_objs'
14328 hardcode_direct=no
14329 ;;
14330 motorola)
14331 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14332 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14333 ;;
14334 esac
14335 runpath_var='LD_RUN_PATH'
14336 hardcode_shlibpath_var=no
14337 ;;
14338
14339 sysv4.3*)
14340 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14341 hardcode_shlibpath_var=no
14342 export_dynamic_flag_spec='-Bexport'
14343 ;;
14344
14345 sysv4*MP*)
14346 if test -d /usr/nec; then
14347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14348 hardcode_shlibpath_var=no
14349 runpath_var=LD_RUN_PATH
14350 hardcode_runpath_var=yes
14351 ld_shlibs=yes
14352 fi
14353 ;;
14354
14355 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14356 no_undefined_flag='${wl}-z,text'
14357 archive_cmds_need_lc=no
14358 hardcode_shlibpath_var=no
14359 runpath_var='LD_RUN_PATH'
14360
14361 if test "$GCC" = yes; then
14362 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14363 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14364 else
14365 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14366 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14367 fi
14368 ;;
14369
14370 sysv5* | sco3.2v5* | sco5v6*)
14371 # Note: We can NOT use -z defs as we might desire, because we do not
14372 # link with -lc, and that would cause any symbols used from libc to
14373 # always be unresolved, which means just about no library would
14374 # ever link correctly. If we're not using GNU ld we use -z text
14375 # though, which does catch some bad symbols but isn't as heavy-handed
14376 # as -z defs.
14377 no_undefined_flag='${wl}-z,text'
14378 allow_undefined_flag='${wl}-z,nodefs'
14379 archive_cmds_need_lc=no
14380 hardcode_shlibpath_var=no
14381 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14382 hardcode_libdir_separator=':'
14383 link_all_deplibs=yes
14384 export_dynamic_flag_spec='${wl}-Bexport'
14385 runpath_var='LD_RUN_PATH'
14386
14387 if test "$GCC" = yes; then
14388 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14389 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14390 else
14391 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14392 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14393 fi
14394 ;;
14395
14396 uts4*)
14397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14398 hardcode_libdir_flag_spec='-L$libdir'
14399 hardcode_shlibpath_var=no
14400 ;;
14401
14402 *)
14403 ld_shlibs=no
14404 ;;
14405 esac
14406
14407 if test x$host_vendor = xsni; then
14408 case $host in
14409 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14410 export_dynamic_flag_spec='${wl}-Blargedynsym'
14411 ;;
14412 esac
14413 fi
14414 fi
14415
14416{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
14417$as_echo "$ld_shlibs" >&6; }
14418test "$ld_shlibs" = no && can_build_shared=no
14419
14420with_gnu_ld=$with_gnu_ld
14421
14422
14423
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436#
14437# Do we need to explicitly link libc?
14438#
14439case "x$archive_cmds_need_lc" in
14440x|xyes)
14441 # Assume -lc should be added
14442 archive_cmds_need_lc=yes
14443
14444 if test "$enable_shared" = yes && test "$GCC" = yes; then
14445 case $archive_cmds in
14446 *'~'*)
14447 # FIXME: we may have to deal with multi-command sequences.
14448 ;;
14449 '$CC '*)
14450 # Test whether the compiler implicitly links with -lc since on some
14451 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14452 # to ld, don't add -lc before -lgcc.
14453 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14454$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14455 $RM conftest*
14456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14457
14458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14459 (eval $ac_compile) 2>&5
14460 ac_status=$?
14461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } 2>conftest.err; then
14463 soname=conftest
14464 lib=conftest
14465 libobjs=conftest.$ac_objext
14466 deplibs=
14467 wl=$lt_prog_compiler_wl
14468 pic_flag=$lt_prog_compiler_pic
14469 compiler_flags=-v
14470 linker_flags=-v
14471 verstring=
14472 output_objdir=.
14473 libname=conftest
14474 lt_save_allow_undefined_flag=$allow_undefined_flag
14475 allow_undefined_flag=
14476 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
14477 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14478 ac_status=$?
14479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); }
14481 then
14482 archive_cmds_need_lc=no
14483 else
14484 archive_cmds_need_lc=yes
14485 fi
14486 allow_undefined_flag=$lt_save_allow_undefined_flag
14487 else
14488 cat conftest.err 1>&5
14489 fi
14490 $RM conftest*
14491 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
14492$as_echo "$archive_cmds_need_lc" >&6; }
14493 ;;
14494 esac
14495 fi
14496 ;;
14497esac
14498
14499
14500
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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14656$as_echo_n "checking dynamic linker characteristics... " >&6; }
14657
14658if test "$GCC" = yes; then
14659 case $host_os in
14660 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14661 *) lt_awk_arg="/^libraries:/" ;;
14662 esac
14663 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14664 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14665 # if the path contains ";" then we assume it to be the separator
14666 # otherwise default to the standard path separator (i.e. ":") - it is
14667 # assumed that no part of a normal pathname contains ";" but that should
14668 # okay in the real world where ";" in dirpaths is itself problematic.
14669 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14670 else
14671 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14672 fi
14673 # Ok, now we have the path, separated by spaces, we can step through it
14674 # and add multilib dir if necessary.
14675 lt_tmp_lt_search_path_spec=
14676 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14677 for lt_sys_path in $lt_search_path_spec; do
14678 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14679 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14680 else
14681 test -d "$lt_sys_path" && \
14682 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14683 fi
14684 done
14685 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14686BEGIN {RS=" "; FS="/|\n";} {
14687 lt_foo="";
14688 lt_count=0;
14689 for (lt_i = NF; lt_i > 0; lt_i--) {
14690 if ($lt_i != "" && $lt_i != ".") {
14691 if ($lt_i == "..") {
14692 lt_count++;
14693 } else {
14694 if (lt_count == 0) {
14695 lt_foo="/" $lt_i lt_foo;
14696 } else {
14697 lt_count--;
14698 }
14699 }
14700 }
14701 }
14702 if (lt_foo != "") { lt_freq[lt_foo]++; }
14703 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14704}'`
14705 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14706else
14707 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14708fi
14709library_names_spec=
14710libname_spec='lib$name'
14711soname_spec=
14712shrext_cmds=".so"
14713postinstall_cmds=
14714postuninstall_cmds=
14715finish_cmds=
14716finish_eval=
14717shlibpath_var=
14718shlibpath_overrides_runpath=unknown
14719version_type=none
14720dynamic_linker="$host_os ld.so"
14721sys_lib_dlsearch_path_spec="/lib /usr/lib"
14722need_lib_prefix=unknown
14723hardcode_into_libs=no
14724
14725# when you set need_version to no, make sure it does not cause -set_version
14726# flags to be left without arguments
14727need_version=unknown
14728
14729case $host_os in
14730aix3*)
14731 version_type=linux
14732 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14733 shlibpath_var=LIBPATH
14734
14735 # AIX 3 has no versioning support, so we append a major version to the name.
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 ;;
14738
14739aix[4-9]*)
14740 version_type=linux
14741 need_lib_prefix=no
14742 need_version=no
14743 hardcode_into_libs=yes
14744 if test "$host_cpu" = ia64; then
14745 # AIX 5 supports IA64
14746 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14747 shlibpath_var=LD_LIBRARY_PATH
14748 else
14749 # With GCC up to 2.95.x, collect2 would create an import file
14750 # for dependence libraries. The import file would start with
14751 # the line `#! .'. This would cause the generated library to
14752 # depend on `.', always an invalid library. This was fixed in
14753 # development snapshots of GCC prior to 3.0.
14754 case $host_os in
14755 aix4 | aix4.[01] | aix4.[01].*)
14756 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14757 echo ' yes '
14758 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14759 :
14760 else
14761 can_build_shared=no
14762 fi
14763 ;;
14764 esac
14765 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14766 # soname into executable. Probably we can add versioning support to
14767 # collect2, so additional links can be useful in future.
14768 if test "$aix_use_runtimelinking" = yes; then
14769 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14770 # instead of lib<name>.a to let people know that these are not
14771 # typical AIX shared libraries.
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773 else
14774 # We preserve .a as extension for shared libraries through AIX4.2
14775 # and later when we are not doing run time linking.
14776 library_names_spec='${libname}${release}.a $libname.a'
14777 soname_spec='${libname}${release}${shared_ext}$major'
14778 fi
14779 shlibpath_var=LIBPATH
14780 fi
14781 ;;
14782
14783amigaos*)
14784 case $host_cpu in
14785 powerpc)
14786 # Since July 2007 AmigaOS4 officially supports .so libraries.
14787 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 ;;
14790 m68k)
14791 library_names_spec='$libname.ixlibrary $libname.a'
14792 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14793 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'
14794 ;;
14795 esac
14796 ;;
14797
14798beos*)
14799 library_names_spec='${libname}${shared_ext}'
14800 dynamic_linker="$host_os ld.so"
14801 shlibpath_var=LIBRARY_PATH
14802 ;;
14803
14804bsdi[45]*)
14805 version_type=linux
14806 need_version=no
14807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14808 soname_spec='${libname}${release}${shared_ext}$major'
14809 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14812 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14813 # the default ld.so.conf also contains /usr/contrib/lib and
14814 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14815 # libtool to hard-code these into programs
14816 ;;
14817
14818cygwin* | mingw* | pw32* | cegcc*)
14819 version_type=windows
14820 shrext_cmds=".dll"
14821 need_version=no
14822 need_lib_prefix=no
14823
14824 case $GCC,$host_os in
14825 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14826 library_names_spec='$libname.dll.a'
14827 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14828 postinstall_cmds='base_file=`basename \${file}`~
14829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14830 dldir=$destdir/`dirname \$dlpath`~
14831 test -d \$dldir || mkdir -p \$dldir~
14832 $install_prog $dir/$dlname \$dldir/$dlname~
14833 chmod a+x \$dldir/$dlname~
14834 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14835 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14836 fi'
14837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14838 dlpath=$dir/\$dldll~
14839 $RM \$dlpath'
14840 shlibpath_overrides_runpath=yes
14841
14842 case $host_os in
14843 cygwin*)
14844 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14845 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14846 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14847 ;;
14848 mingw* | cegcc*)
14849 # MinGW DLLs use traditional 'lib' prefix
14850 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14851 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14852 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14853 # It is most probably a Windows format PATH printed by
14854 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14855 # path with ; separators, and with drive letters. We can handle the
14856 # drive letters (cygwin fileutils understands them), so leave them,
14857 # especially as we might pass files found there to a mingw objdump,
14858 # which wouldn't understand a cygwinified path. Ahh.
14859 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14860 else
14861 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14862 fi
14863 ;;
14864 pw32*)
14865 # pw32 DLLs use 'pw' prefix rather than 'lib'
14866 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14867 ;;
14868 esac
14869 ;;
14870
14871 *)
14872 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14873 ;;
14874 esac
14875 dynamic_linker='Win32 ld.exe'
14876 # FIXME: first we should search . and the directory the executable is in
14877 shlibpath_var=PATH
14878 ;;
14879
14880darwin* | rhapsody*)
14881 dynamic_linker="$host_os dyld"
14882 version_type=darwin
14883 need_lib_prefix=no
14884 need_version=no
14885 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14886 soname_spec='${libname}${release}${major}$shared_ext'
14887 shlibpath_overrides_runpath=yes
14888 shlibpath_var=DYLD_LIBRARY_PATH
14889 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14890
14891 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14892 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14893 ;;
14894
14895dgux*)
14896 version_type=linux
14897 need_lib_prefix=no
14898 need_version=no
14899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14900 soname_spec='${libname}${release}${shared_ext}$major'
14901 shlibpath_var=LD_LIBRARY_PATH
14902 ;;
14903
14904freebsd1*)
14905 dynamic_linker=no
14906 ;;
14907
14908freebsd* | dragonfly*)
14909 # DragonFly does not have aout. When/if they implement a new
14910 # versioning mechanism, adjust this.
14911 if test -x /usr/bin/objformat; then
14912 objformat=`/usr/bin/objformat`
14913 else
14914 case $host_os in
14915 freebsd[123]*) objformat=aout ;;
14916 *) objformat=elf ;;
14917 esac
14918 fi
14919 version_type=freebsd-$objformat
14920 case $version_type in
14921 freebsd-elf*)
14922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14923 need_version=no
14924 need_lib_prefix=no
14925 ;;
14926 freebsd-*)
14927 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14928 need_version=yes
14929 ;;
14930 esac
14931 shlibpath_var=LD_LIBRARY_PATH
14932 case $host_os in
14933 freebsd2*)
14934 shlibpath_overrides_runpath=yes
14935 ;;
14936 freebsd3.[01]* | freebsdelf3.[01]*)
14937 shlibpath_overrides_runpath=yes
14938 hardcode_into_libs=yes
14939 ;;
14940 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14941 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14942 shlibpath_overrides_runpath=no
14943 hardcode_into_libs=yes
14944 ;;
14945 *) # from 4.6 on, and DragonFly
14946 shlibpath_overrides_runpath=yes
14947 hardcode_into_libs=yes
14948 ;;
14949 esac
14950 ;;
14951
14952gnu*)
14953 version_type=linux
14954 need_lib_prefix=no
14955 need_version=no
14956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14957 soname_spec='${libname}${release}${shared_ext}$major'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 hardcode_into_libs=yes
14960 ;;
14961
14962hpux9* | hpux10* | hpux11*)
14963 # Give a soname corresponding to the major version so that dld.sl refuses to
14964 # link against other versions.
14965 version_type=sunos
14966 need_lib_prefix=no
14967 need_version=no
14968 case $host_cpu in
14969 ia64*)
14970 shrext_cmds='.so'
14971 hardcode_into_libs=yes
14972 dynamic_linker="$host_os dld.so"
14973 shlibpath_var=LD_LIBRARY_PATH
14974 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14976 soname_spec='${libname}${release}${shared_ext}$major'
14977 if test "X$HPUX_IA64_MODE" = X32; then
14978 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14979 else
14980 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14981 fi
14982 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14983 ;;
14984 hppa*64*)
14985 shrext_cmds='.sl'
14986 hardcode_into_libs=yes
14987 dynamic_linker="$host_os dld.sl"
14988 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14991 soname_spec='${libname}${release}${shared_ext}$major'
14992 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14993 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14994 ;;
14995 *)
14996 shrext_cmds='.sl'
14997 dynamic_linker="$host_os dld.sl"
14998 shlibpath_var=SHLIB_PATH
14999 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 ;;
15003 esac
15004 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15005 postinstall_cmds='chmod 555 $lib'
15006 ;;
15007
15008interix[3-9]*)
15009 version_type=linux
15010 need_lib_prefix=no
15011 need_version=no
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15013 soname_spec='${libname}${release}${shared_ext}$major'
15014 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15015 shlibpath_var=LD_LIBRARY_PATH
15016 shlibpath_overrides_runpath=no
15017 hardcode_into_libs=yes
15018 ;;
15019
15020irix5* | irix6* | nonstopux*)
15021 case $host_os in
15022 nonstopux*) version_type=nonstopux ;;
15023 *)
15024 if test "$lt_cv_prog_gnu_ld" = yes; then
15025 version_type=linux
15026 else
15027 version_type=irix
15028 fi ;;
15029 esac
15030 need_lib_prefix=no
15031 need_version=no
15032 soname_spec='${libname}${release}${shared_ext}$major'
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15034 case $host_os in
15035 irix5* | nonstopux*)
15036 libsuff= shlibsuff=
15037 ;;
15038 *)
15039 case $LD in # libtool.m4 will add one of these switches to LD
15040 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15041 libsuff= shlibsuff= libmagic=32-bit;;
15042 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15043 libsuff=32 shlibsuff=N32 libmagic=N32;;
15044 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15045 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15046 *) libsuff= shlibsuff= libmagic=never-match;;
15047 esac
15048 ;;
15049 esac
15050 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15051 shlibpath_overrides_runpath=no
15052 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15053 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15054 hardcode_into_libs=yes
15055 ;;
15056
15057# No shared lib support for Linux oldld, aout, or coff.
15058linux*oldld* | linux*aout* | linux*coff*)
15059 dynamic_linker=no
15060 ;;
15061
15062# This must be Linux ELF.
15063linux* | k*bsd*-gnu)
15064 version_type=linux
15065 need_lib_prefix=no
15066 need_version=no
15067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15068 soname_spec='${libname}${release}${shared_ext}$major'
15069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15070 shlibpath_var=LD_LIBRARY_PATH
15071 shlibpath_overrides_runpath=no
15072 # Some binutils ld are patched to set DT_RUNPATH
15073 save_LDFLAGS=$LDFLAGS
15074 save_libdir=$libdir
15075 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15076 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15077 cat >conftest.$ac_ext <<_ACEOF
15078/* confdefs.h. */
15079_ACEOF
15080cat confdefs.h >>conftest.$ac_ext
15081cat >>conftest.$ac_ext <<_ACEOF
15082/* end confdefs.h. */
15083
15084int
15085main ()
15086{
15087
15088 ;
15089 return 0;
15090}
15091_ACEOF
15092rm -f conftest.$ac_objext conftest$ac_exeext
15093if { (ac_try="$ac_link"
15094case "(($ac_try" in
15095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15096 *) ac_try_echo=$ac_try;;
15097esac
15098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15099$as_echo "$ac_try_echo") >&5
15100 (eval "$ac_link") 2>conftest.er1
15101 ac_status=$?
15102 grep -v '^ *+' conftest.er1 >conftest.err
15103 rm -f conftest.er1
15104 cat conftest.err >&5
15105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } && {
15107 test -z "$ac_c_werror_flag" ||
15108 test ! -s conftest.err
15109 } && test -s conftest$ac_exeext && {
15110 test "$cross_compiling" = yes ||
15111 $as_test_x conftest$ac_exeext
15112 }; then
15113 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
15114 shlibpath_overrides_runpath=yes
15115fi
15116
15117else
15118 $as_echo "$as_me: failed program was:" >&5
15119sed 's/^/| /' conftest.$ac_ext >&5
15120
15121
15122fi
15123
15124rm -rf conftest.dSYM
15125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15126 conftest$ac_exeext conftest.$ac_ext
15127 LDFLAGS=$save_LDFLAGS
15128 libdir=$save_libdir
15129
15130 # This implies no fast_install, which is unacceptable.
15131 # Some rework will be needed to allow for fast_install
15132 # before this can be enabled.
15133 hardcode_into_libs=yes
15134
15135 # Add ABI-specific directories to the system library path.
15136 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15137
15138 # Append ld.so.conf contents to the search path
15139 if test -f /etc/ld.so.conf; then
15140 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' ' '`
15141 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15142 fi
15143
15144 # We used to test for /lib/ld.so.1 and disable shared libraries on
15145 # powerpc, because MkLinux only supported shared libraries with the
15146 # GNU dynamic linker. Since this was broken with cross compilers,
15147 # most powerpc-linux boxes support dynamic linking these days and
15148 # people can always --disable-shared, the test was removed, and we
15149 # assume the GNU/Linux dynamic linker is in use.
15150 dynamic_linker='GNU/Linux ld.so'
15151 ;;
15152
15153netbsd*)
15154 version_type=sunos
15155 need_lib_prefix=no
15156 need_version=no
15157 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15160 dynamic_linker='NetBSD (a.out) ld.so'
15161 else
15162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15163 soname_spec='${libname}${release}${shared_ext}$major'
15164 dynamic_linker='NetBSD ld.elf_so'
15165 fi
15166 shlibpath_var=LD_LIBRARY_PATH
15167 shlibpath_overrides_runpath=yes
15168 hardcode_into_libs=yes
15169 ;;
15170
15171newsos6)
15172 version_type=linux
15173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15174 shlibpath_var=LD_LIBRARY_PATH
15175 shlibpath_overrides_runpath=yes
15176 ;;
15177
15178*nto* | *qnx*)
15179 version_type=qnx
15180 need_lib_prefix=no
15181 need_version=no
15182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15183 soname_spec='${libname}${release}${shared_ext}$major'
15184 shlibpath_var=LD_LIBRARY_PATH
15185 shlibpath_overrides_runpath=no
15186 hardcode_into_libs=yes
15187 dynamic_linker='ldqnx.so'
15188 ;;
15189
15190openbsd*)
15191 version_type=sunos
15192 sys_lib_dlsearch_path_spec="/usr/lib"
15193 need_lib_prefix=no
15194 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15195 case $host_os in
15196 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15197 *) need_version=no ;;
15198 esac
15199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15201 shlibpath_var=LD_LIBRARY_PATH
15202 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15203 case $host_os in
15204 openbsd2.[89] | openbsd2.[89].*)
15205 shlibpath_overrides_runpath=no
15206 ;;
15207 *)
15208 shlibpath_overrides_runpath=yes
15209 ;;
15210 esac
15211 else
15212 shlibpath_overrides_runpath=yes
15213 fi
15214 ;;
15215
15216os2*)
15217 libname_spec='$name'
15218 shrext_cmds=".dll"
15219 need_lib_prefix=no
15220 library_names_spec='$libname${shared_ext} $libname.a'
15221 dynamic_linker='OS/2 ld.exe'
15222 shlibpath_var=LIBPATH
15223 ;;
15224
15225osf3* | osf4* | osf5*)
15226 version_type=osf
15227 need_lib_prefix=no
15228 need_version=no
15229 soname_spec='${libname}${release}${shared_ext}$major'
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15231 shlibpath_var=LD_LIBRARY_PATH
15232 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15233 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15234 ;;
15235
15236rdos*)
15237 dynamic_linker=no
15238 ;;
15239
15240solaris*)
15241 version_type=linux
15242 need_lib_prefix=no
15243 need_version=no
15244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15245 soname_spec='${libname}${release}${shared_ext}$major'
15246 shlibpath_var=LD_LIBRARY_PATH
15247 shlibpath_overrides_runpath=yes
15248 hardcode_into_libs=yes
15249 # ldd complains unless libraries are executable
15250 postinstall_cmds='chmod +x $lib'
15251 ;;
15252
15253sunos4*)
15254 version_type=sunos
15255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15256 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15257 shlibpath_var=LD_LIBRARY_PATH
15258 shlibpath_overrides_runpath=yes
15259 if test "$with_gnu_ld" = yes; then
15260 need_lib_prefix=no
15261 fi
15262 need_version=yes
15263 ;;
15264
15265sysv4 | sysv4.3*)
15266 version_type=linux
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 shlibpath_var=LD_LIBRARY_PATH
15270 case $host_vendor in
15271 sni)
15272 shlibpath_overrides_runpath=no
15273 need_lib_prefix=no
15274 runpath_var=LD_RUN_PATH
15275 ;;
15276 siemens)
15277 need_lib_prefix=no
15278 ;;
15279 motorola)
15280 need_lib_prefix=no
15281 need_version=no
15282 shlibpath_overrides_runpath=no
15283 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15284 ;;
15285 esac
15286 ;;
15287
15288sysv4*MP*)
15289 if test -d /usr/nec ;then
15290 version_type=linux
15291 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15292 soname_spec='$libname${shared_ext}.$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15294 fi
15295 ;;
15296
15297sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15298 version_type=freebsd-elf
15299 need_lib_prefix=no
15300 need_version=no
15301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15302 soname_spec='${libname}${release}${shared_ext}$major'
15303 shlibpath_var=LD_LIBRARY_PATH
15304 shlibpath_overrides_runpath=yes
15305 hardcode_into_libs=yes
15306 if test "$with_gnu_ld" = yes; then
15307 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15308 else
15309 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15310 case $host_os in
15311 sco3.2v5*)
15312 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15313 ;;
15314 esac
15315 fi
15316 sys_lib_dlsearch_path_spec='/usr/lib'
15317 ;;
15318
15319tpf*)
15320 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15321 version_type=linux
15322 need_lib_prefix=no
15323 need_version=no
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15325 shlibpath_var=LD_LIBRARY_PATH
15326 shlibpath_overrides_runpath=no
15327 hardcode_into_libs=yes
15328 ;;
15329
15330uts4*)
15331 version_type=linux
15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15333 soname_spec='${libname}${release}${shared_ext}$major'
15334 shlibpath_var=LD_LIBRARY_PATH
15335 ;;
15336
15337*)
15338 dynamic_linker=no
15339 ;;
15340esac
15341{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15342$as_echo "$dynamic_linker" >&6; }
15343test "$dynamic_linker" = no && can_build_shared=no
15344
15345variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15346if test "$GCC" = yes; then
15347 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15348fi
15349
15350if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15351 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15352fi
15353if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15354 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15355fi
15356
15357
15358
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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15444$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15445hardcode_action=
15446if test -n "$hardcode_libdir_flag_spec" ||
15447 test -n "$runpath_var" ||
15448 test "X$hardcode_automatic" = "Xyes" ; then
15449
15450 # We can hardcode non-existent directories.
15451 if test "$hardcode_direct" != no &&
15452 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15453 # have to relink, otherwise we might link with an installed library
15454 # when we should be linking with a yet-to-be-installed one
15455 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15456 test "$hardcode_minus_L" != no; then
15457 # Linking always hardcodes the temporary library directory.
15458 hardcode_action=relink
15459 else
15460 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15461 hardcode_action=immediate
15462 fi
15463else
15464 # We cannot hardcode anything, or else we can only hardcode existing
15465 # directories.
15466 hardcode_action=unsupported
15467fi
15468{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
15469$as_echo "$hardcode_action" >&6; }
15470
15471if test "$hardcode_action" = relink ||
15472 test "$inherit_rpath" = yes; then
15473 # Fast installation is not supported
15474 enable_fast_install=no
15475elif test "$shlibpath_overrides_runpath" = yes ||
15476 test "$enable_shared" = no; then
15477 # Fast installation is not necessary
15478 enable_fast_install=needless
15479fi
15480
15481
15482
15483
15484
15485
15486 if test "x$enable_dlopen" != xyes; then
15487 enable_dlopen=unknown
15488 enable_dlopen_self=unknown
15489 enable_dlopen_self_static=unknown
15490else
15491 lt_cv_dlopen=no
15492 lt_cv_dlopen_libs=
15493
15494 case $host_os in
15495 beos*)
15496 lt_cv_dlopen="load_add_on"
15497 lt_cv_dlopen_libs=
15498 lt_cv_dlopen_self=yes
15499 ;;
15500
15501 mingw* | pw32* | cegcc*)
15502 lt_cv_dlopen="LoadLibrary"
15503 lt_cv_dlopen_libs=
15504 ;;
15505
15506 cygwin*)
15507 lt_cv_dlopen="dlopen"
15508 lt_cv_dlopen_libs=
15509 ;;
15510
15511 darwin*)
15512 # if libdl is installed we need to link against it
15513 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15514$as_echo_n "checking for dlopen in -ldl... " >&6; }
15515if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15516 $as_echo_n "(cached) " >&6
15517else
15518 ac_check_lib_save_LIBS=$LIBS
15519LIBS="-ldl $LIBS"
15520cat >conftest.$ac_ext <<_ACEOF
15521/* confdefs.h. */
15522_ACEOF
15523cat confdefs.h >>conftest.$ac_ext
15524cat >>conftest.$ac_ext <<_ACEOF
15525/* end confdefs.h. */
15526
15527/* Override any GCC internal prototype to avoid an error.
15528 Use char because int might match the return type of a GCC
15529 builtin and then its argument prototype would still apply. */
15530#ifdef __cplusplus
15531extern "C"
15532#endif
15533char dlopen ();
15534int
15535main ()
15536{
15537return dlopen ();
15538 ;
15539 return 0;
15540}
15541_ACEOF
15542rm -f conftest.$ac_objext conftest$ac_exeext
15543if { (ac_try="$ac_link"
15544case "(($ac_try" in
15545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15546 *) ac_try_echo=$ac_try;;
15547esac
15548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15549$as_echo "$ac_try_echo") >&5
15550 (eval "$ac_link") 2>conftest.er1
15551 ac_status=$?
15552 grep -v '^ *+' conftest.er1 >conftest.err
15553 rm -f conftest.er1
15554 cat conftest.err >&5
15555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); } && {
15557 test -z "$ac_c_werror_flag" ||
15558 test ! -s conftest.err
15559 } && test -s conftest$ac_exeext && {
15560 test "$cross_compiling" = yes ||
15561 $as_test_x conftest$ac_exeext
15562 }; then
15563 ac_cv_lib_dl_dlopen=yes
15564else
15565 $as_echo "$as_me: failed program was:" >&5
15566sed 's/^/| /' conftest.$ac_ext >&5
15567
15568 ac_cv_lib_dl_dlopen=no
15569fi
15570
15571rm -rf conftest.dSYM
15572rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15573 conftest$ac_exeext conftest.$ac_ext
15574LIBS=$ac_check_lib_save_LIBS
15575fi
15576{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15577$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15578if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15580else
15581
15582 lt_cv_dlopen="dyld"
15583 lt_cv_dlopen_libs=
15584 lt_cv_dlopen_self=yes
15585
15586fi
15587
15588 ;;
15589
15590 *)
15591 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
15592$as_echo_n "checking for shl_load... " >&6; }
15593if test "${ac_cv_func_shl_load+set}" = set; then
15594 $as_echo_n "(cached) " >&6
15595else
15596 cat >conftest.$ac_ext <<_ACEOF
15597/* confdefs.h. */
15598_ACEOF
15599cat confdefs.h >>conftest.$ac_ext
15600cat >>conftest.$ac_ext <<_ACEOF
15601/* end confdefs.h. */
15602/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15604#define shl_load innocuous_shl_load
15605
15606/* System header to define __stub macros and hopefully few prototypes,
15607 which can conflict with char shl_load (); below.
15608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15609 <limits.h> exists even on freestanding compilers. */
15610
15611#ifdef __STDC__
15612# include <limits.h>
15613#else
15614# include <assert.h>
15615#endif
15616
15617#undef shl_load
15618
15619/* Override any GCC internal prototype to avoid an error.
15620 Use char because int might match the return type of a GCC
15621 builtin and then its argument prototype would still apply. */
15622#ifdef __cplusplus
15623extern "C"
15624#endif
15625char shl_load ();
15626/* The GNU C library defines this for functions which it implements
15627 to always fail with ENOSYS. Some functions are actually named
15628 something starting with __ and the normal name is an alias. */
15629#if defined __stub_shl_load || defined __stub___shl_load
15630choke me
15631#endif
15632
15633int
15634main ()
15635{
15636return shl_load ();
15637 ;
15638 return 0;
15639}
15640_ACEOF
15641rm -f conftest.$ac_objext conftest$ac_exeext
15642if { (ac_try="$ac_link"
15643case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15646esac
15647eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15648$as_echo "$ac_try_echo") >&5
15649 (eval "$ac_link") 2>conftest.er1
15650 ac_status=$?
15651 grep -v '^ *+' conftest.er1 >conftest.err
15652 rm -f conftest.er1
15653 cat conftest.err >&5
15654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15655 (exit $ac_status); } && {
15656 test -z "$ac_c_werror_flag" ||
15657 test ! -s conftest.err
15658 } && test -s conftest$ac_exeext && {
15659 test "$cross_compiling" = yes ||
15660 $as_test_x conftest$ac_exeext
15661 }; then
15662 ac_cv_func_shl_load=yes
15663else
15664 $as_echo "$as_me: failed program was:" >&5
15665sed 's/^/| /' conftest.$ac_ext >&5
15666
15667 ac_cv_func_shl_load=no
15668fi
15669
15670rm -rf conftest.dSYM
15671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15672 conftest$ac_exeext conftest.$ac_ext
15673fi
15674{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15675$as_echo "$ac_cv_func_shl_load" >&6; }
15676if test "x$ac_cv_func_shl_load" = x""yes; then
15677 lt_cv_dlopen="shl_load"
15678else
15679 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15680$as_echo_n "checking for shl_load in -ldld... " >&6; }
15681if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15682 $as_echo_n "(cached) " >&6
15683else
15684 ac_check_lib_save_LIBS=$LIBS
15685LIBS="-ldld $LIBS"
15686cat >conftest.$ac_ext <<_ACEOF
15687/* confdefs.h. */
15688_ACEOF
15689cat confdefs.h >>conftest.$ac_ext
15690cat >>conftest.$ac_ext <<_ACEOF
15691/* end confdefs.h. */
15692
15693/* Override any GCC internal prototype to avoid an error.
15694 Use char because int might match the return type of a GCC
15695 builtin and then its argument prototype would still apply. */
15696#ifdef __cplusplus
15697extern "C"
15698#endif
15699char shl_load ();
15700int
15701main ()
15702{
15703return shl_load ();
15704 ;
15705 return 0;
15706}
15707_ACEOF
15708rm -f conftest.$ac_objext conftest$ac_exeext
15709if { (ac_try="$ac_link"
15710case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15713esac
15714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15715$as_echo "$ac_try_echo") >&5
15716 (eval "$ac_link") 2>conftest.er1
15717 ac_status=$?
15718 grep -v '^ *+' conftest.er1 >conftest.err
15719 rm -f conftest.er1
15720 cat conftest.err >&5
15721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } && {
15723 test -z "$ac_c_werror_flag" ||
15724 test ! -s conftest.err
15725 } && test -s conftest$ac_exeext && {
15726 test "$cross_compiling" = yes ||
15727 $as_test_x conftest$ac_exeext
15728 }; then
15729 ac_cv_lib_dld_shl_load=yes
15730else
15731 $as_echo "$as_me: failed program was:" >&5
15732sed 's/^/| /' conftest.$ac_ext >&5
15733
15734 ac_cv_lib_dld_shl_load=no
15735fi
15736
15737rm -rf conftest.dSYM
15738rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15739 conftest$ac_exeext conftest.$ac_ext
15740LIBS=$ac_check_lib_save_LIBS
15741fi
15742{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15743$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15744if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
15745 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15746else
15747 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
15748$as_echo_n "checking for dlopen... " >&6; }
15749if test "${ac_cv_func_dlopen+set}" = set; then
15750 $as_echo_n "(cached) " >&6
15751else
15752 cat >conftest.$ac_ext <<_ACEOF
15753/* confdefs.h. */
15754_ACEOF
15755cat confdefs.h >>conftest.$ac_ext
15756cat >>conftest.$ac_ext <<_ACEOF
15757/* end confdefs.h. */
15758/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15760#define dlopen innocuous_dlopen
15761
15762/* System header to define __stub macros and hopefully few prototypes,
15763 which can conflict with char dlopen (); below.
15764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15765 <limits.h> exists even on freestanding compilers. */
15766
15767#ifdef __STDC__
15768# include <limits.h>
15769#else
15770# include <assert.h>
15771#endif
15772
15773#undef dlopen
15774
15775/* Override any GCC internal prototype to avoid an error.
15776 Use char because int might match the return type of a GCC
15777 builtin and then its argument prototype would still apply. */
15778#ifdef __cplusplus
15779extern "C"
15780#endif
15781char dlopen ();
15782/* The GNU C library defines this for functions which it implements
15783 to always fail with ENOSYS. Some functions are actually named
15784 something starting with __ and the normal name is an alias. */
15785#if defined __stub_dlopen || defined __stub___dlopen
15786choke me
15787#endif
15788
15789int
15790main ()
15791{
15792return dlopen ();
15793 ;
15794 return 0;
15795}
15796_ACEOF
15797rm -f conftest.$ac_objext conftest$ac_exeext
15798if { (ac_try="$ac_link"
15799case "(($ac_try" in
15800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15801 *) ac_try_echo=$ac_try;;
15802esac
15803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15804$as_echo "$ac_try_echo") >&5
15805 (eval "$ac_link") 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest$ac_exeext && {
15815 test "$cross_compiling" = yes ||
15816 $as_test_x conftest$ac_exeext
15817 }; then
15818 ac_cv_func_dlopen=yes
15819else
15820 $as_echo "$as_me: failed program was:" >&5
15821sed 's/^/| /' conftest.$ac_ext >&5
15822
15823 ac_cv_func_dlopen=no
15824fi
15825
15826rm -rf conftest.dSYM
15827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15828 conftest$ac_exeext conftest.$ac_ext
15829fi
15830{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15831$as_echo "$ac_cv_func_dlopen" >&6; }
15832if test "x$ac_cv_func_dlopen" = x""yes; then
15833 lt_cv_dlopen="dlopen"
15834else
15835 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15836$as_echo_n "checking for dlopen in -ldl... " >&6; }
15837if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15838 $as_echo_n "(cached) " >&6
15839else
15840 ac_check_lib_save_LIBS=$LIBS
15841LIBS="-ldl $LIBS"
15842cat >conftest.$ac_ext <<_ACEOF
15843/* confdefs.h. */
15844_ACEOF
15845cat confdefs.h >>conftest.$ac_ext
15846cat >>conftest.$ac_ext <<_ACEOF
15847/* end confdefs.h. */
15848
15849/* Override any GCC internal prototype to avoid an error.
15850 Use char because int might match the return type of a GCC
15851 builtin and then its argument prototype would still apply. */
15852#ifdef __cplusplus
15853extern "C"
15854#endif
15855char dlopen ();
15856int
15857main ()
15858{
15859return dlopen ();
15860 ;
15861 return 0;
15862}
15863_ACEOF
15864rm -f conftest.$ac_objext conftest$ac_exeext
15865if { (ac_try="$ac_link"
15866case "(($ac_try" in
15867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15868 *) ac_try_echo=$ac_try;;
15869esac
15870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15871$as_echo "$ac_try_echo") >&5
15872 (eval "$ac_link") 2>conftest.er1
15873 ac_status=$?
15874 grep -v '^ *+' conftest.er1 >conftest.err
15875 rm -f conftest.er1
15876 cat conftest.err >&5
15877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15878 (exit $ac_status); } && {
15879 test -z "$ac_c_werror_flag" ||
15880 test ! -s conftest.err
15881 } && test -s conftest$ac_exeext && {
15882 test "$cross_compiling" = yes ||
15883 $as_test_x conftest$ac_exeext
15884 }; then
15885 ac_cv_lib_dl_dlopen=yes
15886else
15887 $as_echo "$as_me: failed program was:" >&5
15888sed 's/^/| /' conftest.$ac_ext >&5
15889
15890 ac_cv_lib_dl_dlopen=no
15891fi
15892
15893rm -rf conftest.dSYM
15894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15895 conftest$ac_exeext conftest.$ac_ext
15896LIBS=$ac_check_lib_save_LIBS
15897fi
15898{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15899$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15900if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15901 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15902else
15903 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15904$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15905if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15906 $as_echo_n "(cached) " >&6
15907else
15908 ac_check_lib_save_LIBS=$LIBS
15909LIBS="-lsvld $LIBS"
15910cat >conftest.$ac_ext <<_ACEOF
15911/* confdefs.h. */
15912_ACEOF
15913cat confdefs.h >>conftest.$ac_ext
15914cat >>conftest.$ac_ext <<_ACEOF
15915/* end confdefs.h. */
15916
15917/* Override any GCC internal prototype to avoid an error.
15918 Use char because int might match the return type of a GCC
15919 builtin and then its argument prototype would still apply. */
15920#ifdef __cplusplus
15921extern "C"
15922#endif
15923char dlopen ();
15924int
15925main ()
15926{
15927return dlopen ();
15928 ;
15929 return 0;
15930}
15931_ACEOF
15932rm -f conftest.$ac_objext conftest$ac_exeext
15933if { (ac_try="$ac_link"
15934case "(($ac_try" in
15935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15936 *) ac_try_echo=$ac_try;;
15937esac
15938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15939$as_echo "$ac_try_echo") >&5
15940 (eval "$ac_link") 2>conftest.er1
15941 ac_status=$?
15942 grep -v '^ *+' conftest.er1 >conftest.err
15943 rm -f conftest.er1
15944 cat conftest.err >&5
15945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } && {
15947 test -z "$ac_c_werror_flag" ||
15948 test ! -s conftest.err
15949 } && test -s conftest$ac_exeext && {
15950 test "$cross_compiling" = yes ||
15951 $as_test_x conftest$ac_exeext
15952 }; then
15953 ac_cv_lib_svld_dlopen=yes
15954else
15955 $as_echo "$as_me: failed program was:" >&5
15956sed 's/^/| /' conftest.$ac_ext >&5
15957
15958 ac_cv_lib_svld_dlopen=no
15959fi
15960
15961rm -rf conftest.dSYM
15962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15963 conftest$ac_exeext conftest.$ac_ext
15964LIBS=$ac_check_lib_save_LIBS
15965fi
15966{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15967$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15968if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
15969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15970else
15971 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15972$as_echo_n "checking for dld_link in -ldld... " >&6; }
15973if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15974 $as_echo_n "(cached) " >&6
15975else
15976 ac_check_lib_save_LIBS=$LIBS
15977LIBS="-ldld $LIBS"
15978cat >conftest.$ac_ext <<_ACEOF
15979/* confdefs.h. */
15980_ACEOF
15981cat confdefs.h >>conftest.$ac_ext
15982cat >>conftest.$ac_ext <<_ACEOF
15983/* end confdefs.h. */
15984
15985/* Override any GCC internal prototype to avoid an error.
15986 Use char because int might match the return type of a GCC
15987 builtin and then its argument prototype would still apply. */
15988#ifdef __cplusplus
15989extern "C"
15990#endif
15991char dld_link ();
15992int
15993main ()
15994{
15995return dld_link ();
15996 ;
15997 return 0;
15998}
15999_ACEOF
16000rm -f conftest.$ac_objext conftest$ac_exeext
16001if { (ac_try="$ac_link"
16002case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16005esac
16006eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16007$as_echo "$ac_try_echo") >&5
16008 (eval "$ac_link") 2>conftest.er1
16009 ac_status=$?
16010 grep -v '^ *+' conftest.er1 >conftest.err
16011 rm -f conftest.er1
16012 cat conftest.err >&5
16013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } && {
16015 test -z "$ac_c_werror_flag" ||
16016 test ! -s conftest.err
16017 } && test -s conftest$ac_exeext && {
16018 test "$cross_compiling" = yes ||
16019 $as_test_x conftest$ac_exeext
16020 }; then
16021 ac_cv_lib_dld_dld_link=yes
16022else
16023 $as_echo "$as_me: failed program was:" >&5
16024sed 's/^/| /' conftest.$ac_ext >&5
16025
16026 ac_cv_lib_dld_dld_link=no
16027fi
16028
16029rm -rf conftest.dSYM
16030rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16031 conftest$ac_exeext conftest.$ac_ext
16032LIBS=$ac_check_lib_save_LIBS
16033fi
16034{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16035$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16036if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
16037 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16038fi
16039
16040
16041fi
16042
16043
16044fi
16045
16046
16047fi
16048
16049
16050fi
16051
16052
16053fi
16054
16055 ;;
16056 esac
16057
16058 if test "x$lt_cv_dlopen" != xno; then
16059 enable_dlopen=yes
16060 else
16061 enable_dlopen=no
16062 fi
16063
16064 case $lt_cv_dlopen in
16065 dlopen)
16066 save_CPPFLAGS="$CPPFLAGS"
16067 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16068
16069 save_LDFLAGS="$LDFLAGS"
16070 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16071
16072 save_LIBS="$LIBS"
16073 LIBS="$lt_cv_dlopen_libs $LIBS"
16074
16075 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16076$as_echo_n "checking whether a program can dlopen itself... " >&6; }
16077if test "${lt_cv_dlopen_self+set}" = set; then
16078 $as_echo_n "(cached) " >&6
16079else
16080 if test "$cross_compiling" = yes; then :
16081 lt_cv_dlopen_self=cross
16082else
16083 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16084 lt_status=$lt_dlunknown
16085 cat > conftest.$ac_ext <<_LT_EOF
cristya0242ab2009-10-15 19:17:14 +000016086#line 16086 "configure"
cristy3ed852e2009-09-05 21:47:34 +000016087#include "confdefs.h"
16088
16089#if HAVE_DLFCN_H
16090#include <dlfcn.h>
16091#endif
16092
16093#include <stdio.h>
16094
16095#ifdef RTLD_GLOBAL
16096# define LT_DLGLOBAL RTLD_GLOBAL
16097#else
16098# ifdef DL_GLOBAL
16099# define LT_DLGLOBAL DL_GLOBAL
16100# else
16101# define LT_DLGLOBAL 0
16102# endif
16103#endif
16104
16105/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16106 find out it does not work in some platform. */
16107#ifndef LT_DLLAZY_OR_NOW
16108# ifdef RTLD_LAZY
16109# define LT_DLLAZY_OR_NOW RTLD_LAZY
16110# else
16111# ifdef DL_LAZY
16112# define LT_DLLAZY_OR_NOW DL_LAZY
16113# else
16114# ifdef RTLD_NOW
16115# define LT_DLLAZY_OR_NOW RTLD_NOW
16116# else
16117# ifdef DL_NOW
16118# define LT_DLLAZY_OR_NOW DL_NOW
16119# else
16120# define LT_DLLAZY_OR_NOW 0
16121# endif
16122# endif
16123# endif
16124# endif
16125#endif
16126
16127void fnord() { int i=42;}
16128int main ()
16129{
16130 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16131 int status = $lt_dlunknown;
16132
16133 if (self)
16134 {
16135 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16136 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16137 /* dlclose (self); */
16138 }
16139 else
16140 puts (dlerror ());
16141
16142 return status;
16143}
16144_LT_EOF
16145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16146 (eval $ac_link) 2>&5
16147 ac_status=$?
16148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16150 (./conftest; exit; ) >&5 2>/dev/null
16151 lt_status=$?
16152 case x$lt_status in
16153 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16154 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16155 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16156 esac
16157 else :
16158 # compilation failed
16159 lt_cv_dlopen_self=no
16160 fi
16161fi
16162rm -fr conftest*
16163
16164
16165fi
16166{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16167$as_echo "$lt_cv_dlopen_self" >&6; }
16168
16169 if test "x$lt_cv_dlopen_self" = xyes; then
16170 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16171 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16172$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16173if test "${lt_cv_dlopen_self_static+set}" = set; then
16174 $as_echo_n "(cached) " >&6
16175else
16176 if test "$cross_compiling" = yes; then :
16177 lt_cv_dlopen_self_static=cross
16178else
16179 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16180 lt_status=$lt_dlunknown
16181 cat > conftest.$ac_ext <<_LT_EOF
cristya0242ab2009-10-15 19:17:14 +000016182#line 16182 "configure"
cristy3ed852e2009-09-05 21:47:34 +000016183#include "confdefs.h"
16184
16185#if HAVE_DLFCN_H
16186#include <dlfcn.h>
16187#endif
16188
16189#include <stdio.h>
16190
16191#ifdef RTLD_GLOBAL
16192# define LT_DLGLOBAL RTLD_GLOBAL
16193#else
16194# ifdef DL_GLOBAL
16195# define LT_DLGLOBAL DL_GLOBAL
16196# else
16197# define LT_DLGLOBAL 0
16198# endif
16199#endif
16200
16201/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16202 find out it does not work in some platform. */
16203#ifndef LT_DLLAZY_OR_NOW
16204# ifdef RTLD_LAZY
16205# define LT_DLLAZY_OR_NOW RTLD_LAZY
16206# else
16207# ifdef DL_LAZY
16208# define LT_DLLAZY_OR_NOW DL_LAZY
16209# else
16210# ifdef RTLD_NOW
16211# define LT_DLLAZY_OR_NOW RTLD_NOW
16212# else
16213# ifdef DL_NOW
16214# define LT_DLLAZY_OR_NOW DL_NOW
16215# else
16216# define LT_DLLAZY_OR_NOW 0
16217# endif
16218# endif
16219# endif
16220# endif
16221#endif
16222
16223void fnord() { int i=42;}
16224int main ()
16225{
16226 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16227 int status = $lt_dlunknown;
16228
16229 if (self)
16230 {
16231 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16232 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16233 /* dlclose (self); */
16234 }
16235 else
16236 puts (dlerror ());
16237
16238 return status;
16239}
16240_LT_EOF
16241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16242 (eval $ac_link) 2>&5
16243 ac_status=$?
16244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16246 (./conftest; exit; ) >&5 2>/dev/null
16247 lt_status=$?
16248 case x$lt_status in
16249 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16250 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16251 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16252 esac
16253 else :
16254 # compilation failed
16255 lt_cv_dlopen_self_static=no
16256 fi
16257fi
16258rm -fr conftest*
16259
16260
16261fi
16262{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16263$as_echo "$lt_cv_dlopen_self_static" >&6; }
16264 fi
16265
16266 CPPFLAGS="$save_CPPFLAGS"
16267 LDFLAGS="$save_LDFLAGS"
16268 LIBS="$save_LIBS"
16269 ;;
16270 esac
16271
16272 case $lt_cv_dlopen_self in
16273 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16274 *) enable_dlopen_self=unknown ;;
16275 esac
16276
16277 case $lt_cv_dlopen_self_static in
16278 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16279 *) enable_dlopen_self_static=unknown ;;
16280 esac
16281fi
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299striplib=
16300old_striplib=
16301{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16302$as_echo_n "checking whether stripping libraries is possible... " >&6; }
16303if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16304 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16305 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16306 { $as_echo "$as_me:$LINENO: result: yes" >&5
16307$as_echo "yes" >&6; }
16308else
16309# FIXME - insert some real tests, host_os isn't really good enough
16310 case $host_os in
16311 darwin*)
16312 if test -n "$STRIP" ; then
16313 striplib="$STRIP -x"
16314 old_striplib="$STRIP -S"
16315 { $as_echo "$as_me:$LINENO: result: yes" >&5
16316$as_echo "yes" >&6; }
16317 else
16318 { $as_echo "$as_me:$LINENO: result: no" >&5
16319$as_echo "no" >&6; }
16320 fi
16321 ;;
16322 *)
16323 { $as_echo "$as_me:$LINENO: result: no" >&5
16324$as_echo "no" >&6; }
16325 ;;
16326 esac
16327fi
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340 # Report which library types will actually be built
16341 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16342$as_echo_n "checking if libtool supports shared libraries... " >&6; }
16343 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
16344$as_echo "$can_build_shared" >&6; }
16345
16346 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16347$as_echo_n "checking whether to build shared libraries... " >&6; }
16348 test "$can_build_shared" = "no" && enable_shared=no
16349
16350 # On AIX, shared libraries and static libraries use the same namespace, and
16351 # are all built from PIC.
16352 case $host_os in
16353 aix3*)
16354 test "$enable_shared" = yes && enable_static=no
16355 if test -n "$RANLIB"; then
16356 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16357 postinstall_cmds='$RANLIB $lib'
16358 fi
16359 ;;
16360
16361 aix[4-9]*)
16362 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16363 test "$enable_shared" = yes && enable_static=no
16364 fi
16365 ;;
16366 esac
16367 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
16368$as_echo "$enable_shared" >&6; }
16369
16370 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16371$as_echo_n "checking whether to build static libraries... " >&6; }
16372 # Make sure either enable_shared or enable_static is yes.
16373 test "$enable_shared" = yes || enable_static=yes
16374 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
16375$as_echo "$enable_static" >&6; }
16376
16377
16378
16379
16380fi
16381ac_ext=c
16382ac_cpp='$CPP $CPPFLAGS'
16383ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16384ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16385ac_compiler_gnu=$ac_cv_c_compiler_gnu
16386
16387CC="$lt_save_CC"
16388
16389
16390ac_ext=cpp
16391ac_cpp='$CXXCPP $CPPFLAGS'
16392ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16393ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16394ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16395
16396archive_cmds_need_lc_CXX=no
16397allow_undefined_flag_CXX=
16398always_export_symbols_CXX=no
16399archive_expsym_cmds_CXX=
16400compiler_needs_object_CXX=no
16401export_dynamic_flag_spec_CXX=
16402hardcode_direct_CXX=no
16403hardcode_direct_absolute_CXX=no
16404hardcode_libdir_flag_spec_CXX=
16405hardcode_libdir_flag_spec_ld_CXX=
16406hardcode_libdir_separator_CXX=
16407hardcode_minus_L_CXX=no
16408hardcode_shlibpath_var_CXX=unsupported
16409hardcode_automatic_CXX=no
16410inherit_rpath_CXX=no
16411module_cmds_CXX=
16412module_expsym_cmds_CXX=
16413link_all_deplibs_CXX=unknown
16414old_archive_cmds_CXX=$old_archive_cmds
16415no_undefined_flag_CXX=
16416whole_archive_flag_spec_CXX=
16417enable_shared_with_static_runtimes_CXX=no
16418
16419# Source file extension for C++ test sources.
16420ac_ext=cpp
16421
16422# Object file extension for compiled C++ test sources.
16423objext=o
16424objext_CXX=$objext
16425
16426# No sense in running all these tests if we already determined that
16427# the CXX compiler isn't working. Some variables (like enable_shared)
16428# are currently assumed to apply to all compilers on this platform,
16429# and will be corrupted by setting them based on a non-working compiler.
16430if test "$_lt_caught_CXX_error" != yes; then
16431 # Code to be used in simple compile tests
16432 lt_simple_compile_test_code="int some_variable = 0;"
16433
16434 # Code to be used in simple link tests
16435 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16436
16437 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16438
16439
16440
16441
16442
16443
16444# If no C compiler was specified, use CC.
16445LTCC=${LTCC-"$CC"}
16446
16447# If no C compiler flags were specified, use CFLAGS.
16448LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16449
16450# Allow CC to be a program name with arguments.
16451compiler=$CC
16452
16453
16454 # save warnings/boilerplate of simple test code
16455 ac_outfile=conftest.$ac_objext
16456echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16457eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16458_lt_compiler_boilerplate=`cat conftest.err`
16459$RM conftest*
16460
16461 ac_outfile=conftest.$ac_objext
16462echo "$lt_simple_link_test_code" >conftest.$ac_ext
16463eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16464_lt_linker_boilerplate=`cat conftest.err`
16465$RM -r conftest*
16466
16467
16468 # Allow CC to be a program name with arguments.
16469 lt_save_CC=$CC
16470 lt_save_LD=$LD
16471 lt_save_GCC=$GCC
16472 GCC=$GXX
16473 lt_save_with_gnu_ld=$with_gnu_ld
16474 lt_save_path_LD=$lt_cv_path_LD
16475 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16476 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16477 else
16478 $as_unset lt_cv_prog_gnu_ld
16479 fi
16480 if test -n "${lt_cv_path_LDCXX+set}"; then
16481 lt_cv_path_LD=$lt_cv_path_LDCXX
16482 else
16483 $as_unset lt_cv_path_LD
16484 fi
16485 test -z "${LDCXX+set}" || LD=$LDCXX
16486 CC=${CXX-"c++"}
16487 compiler=$CC
16488 compiler_CXX=$CC
16489 for cc_temp in $compiler""; do
16490 case $cc_temp in
16491 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16492 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16493 \-*) ;;
16494 *) break;;
16495 esac
16496done
16497cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16498
16499
16500 if test -n "$compiler"; then
16501 # We don't want -fno-exception when compiling C++ code, so set the
16502 # no_builtin_flag separately
16503 if test "$GXX" = yes; then
16504 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16505 else
16506 lt_prog_compiler_no_builtin_flag_CXX=
16507 fi
16508
16509 if test "$GXX" = yes; then
16510 # Set up default GNU C++ configuration
16511
16512
16513
16514# Check whether --with-gnu-ld was given.
16515if test "${with_gnu_ld+set}" = set; then
16516 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16517else
16518 with_gnu_ld=no
16519fi
16520
16521ac_prog=ld
16522if test "$GCC" = yes; then
16523 # Check if gcc -print-prog-name=ld gives a path.
16524 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
16525$as_echo_n "checking for ld used by $CC... " >&6; }
16526 case $host in
16527 *-*-mingw*)
16528 # gcc leaves a trailing carriage return which upsets mingw
16529 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16530 *)
16531 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16532 esac
16533 case $ac_prog in
16534 # Accept absolute paths.
16535 [\\/]* | ?:[\\/]*)
16536 re_direlt='/[^/][^/]*/\.\./'
16537 # Canonicalize the pathname of ld
16538 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16539 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16540 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16541 done
16542 test -z "$LD" && LD="$ac_prog"
16543 ;;
16544 "")
16545 # If it fails, then pretend we aren't using GCC.
16546 ac_prog=ld
16547 ;;
16548 *)
16549 # If it is relative, then search for the first ld in PATH.
16550 with_gnu_ld=unknown
16551 ;;
16552 esac
16553elif test "$with_gnu_ld" = yes; then
16554 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
16555$as_echo_n "checking for GNU ld... " >&6; }
16556else
16557 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
16558$as_echo_n "checking for non-GNU ld... " >&6; }
16559fi
16560if test "${lt_cv_path_LD+set}" = set; then
16561 $as_echo_n "(cached) " >&6
16562else
16563 if test -z "$LD"; then
16564 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16565 for ac_dir in $PATH; do
16566 IFS="$lt_save_ifs"
16567 test -z "$ac_dir" && ac_dir=.
16568 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16569 lt_cv_path_LD="$ac_dir/$ac_prog"
16570 # Check to see if the program is GNU ld. I'd rather use --version,
16571 # but apparently some variants of GNU ld only accept -v.
16572 # Break only if it was the GNU/non-GNU ld that we prefer.
16573 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16574 *GNU* | *'with BFD'*)
16575 test "$with_gnu_ld" != no && break
16576 ;;
16577 *)
16578 test "$with_gnu_ld" != yes && break
16579 ;;
16580 esac
16581 fi
16582 done
16583 IFS="$lt_save_ifs"
16584else
16585 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16586fi
16587fi
16588
16589LD="$lt_cv_path_LD"
16590if test -n "$LD"; then
16591 { $as_echo "$as_me:$LINENO: result: $LD" >&5
16592$as_echo "$LD" >&6; }
16593else
16594 { $as_echo "$as_me:$LINENO: result: no" >&5
16595$as_echo "no" >&6; }
16596fi
16597test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16598$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16599 { (exit 1); exit 1; }; }
16600{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16601$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16602if test "${lt_cv_prog_gnu_ld+set}" = set; then
16603 $as_echo_n "(cached) " >&6
16604else
16605 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16606case `$LD -v 2>&1 </dev/null` in
16607*GNU* | *'with BFD'*)
16608 lt_cv_prog_gnu_ld=yes
16609 ;;
16610*)
16611 lt_cv_prog_gnu_ld=no
16612 ;;
16613esac
16614fi
16615{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16616$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16617with_gnu_ld=$lt_cv_prog_gnu_ld
16618
16619
16620
16621
16622
16623
16624
16625 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16626 # archiving commands below assume that GNU ld is being used.
16627 if test "$with_gnu_ld" = yes; then
16628 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16629 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'
16630
16631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16632 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16633
16634 # If archive_cmds runs LD, not CC, wlarc should be empty
16635 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16636 # investigate it a little bit more. (MM)
16637 wlarc='${wl}'
16638
16639 # ancient GNU ld didn't support --whole-archive et. al.
16640 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16641 $GREP 'no-whole-archive' > /dev/null; then
16642 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16643 else
16644 whole_archive_flag_spec_CXX=
16645 fi
16646 else
16647 with_gnu_ld=no
16648 wlarc=
16649
16650 # A generic and very simple default shared library creation
16651 # command for GNU C++ for the case where it uses the native
16652 # linker, instead of GNU ld. If possible, this setting should
16653 # overridden to take advantage of the native linker features on
16654 # the platform it is being used on.
16655 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16656 fi
16657
16658 # Commands to make compiler produce verbose output that lists
16659 # what "hidden" libraries, object files and flags are used when
16660 # linking a shared library.
16661 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16662
16663 else
16664 GXX=no
16665 with_gnu_ld=no
16666 wlarc=
16667 fi
16668
16669 # PORTME: fill in a description of your system's C++ link characteristics
16670 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16671$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16672 ld_shlibs_CXX=yes
16673 case $host_os in
16674 aix3*)
16675 # FIXME: insert proper C++ library support
16676 ld_shlibs_CXX=no
16677 ;;
16678 aix[4-9]*)
16679 if test "$host_cpu" = ia64; then
16680 # On IA64, the linker does run time linking by default, so we don't
16681 # have to do anything special.
16682 aix_use_runtimelinking=no
16683 exp_sym_flag='-Bexport'
16684 no_entry_flag=""
16685 else
16686 aix_use_runtimelinking=no
16687
16688 # Test if we are trying to use run time linking or normal
16689 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16690 # need to do runtime linking.
16691 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16692 for ld_flag in $LDFLAGS; do
16693 case $ld_flag in
16694 *-brtl*)
16695 aix_use_runtimelinking=yes
16696 break
16697 ;;
16698 esac
16699 done
16700 ;;
16701 esac
16702
16703 exp_sym_flag='-bexport'
16704 no_entry_flag='-bnoentry'
16705 fi
16706
16707 # When large executables or shared objects are built, AIX ld can
16708 # have problems creating the table of contents. If linking a library
16709 # or program results in "error TOC overflow" add -mminimal-toc to
16710 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16711 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16712
16713 archive_cmds_CXX=''
16714 hardcode_direct_CXX=yes
16715 hardcode_direct_absolute_CXX=yes
16716 hardcode_libdir_separator_CXX=':'
16717 link_all_deplibs_CXX=yes
16718 file_list_spec_CXX='${wl}-f,'
16719
16720 if test "$GXX" = yes; then
16721 case $host_os in aix4.[012]|aix4.[012].*)
16722 # We only want to do this on AIX 4.2 and lower, the check
16723 # below for broken collect2 doesn't work under 4.3+
16724 collect2name=`${CC} -print-prog-name=collect2`
16725 if test -f "$collect2name" &&
16726 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16727 then
16728 # We have reworked collect2
16729 :
16730 else
16731 # We have old collect2
16732 hardcode_direct_CXX=unsupported
16733 # It fails to find uninstalled libraries when the uninstalled
16734 # path is not listed in the libpath. Setting hardcode_minus_L
16735 # to unsupported forces relinking
16736 hardcode_minus_L_CXX=yes
16737 hardcode_libdir_flag_spec_CXX='-L$libdir'
16738 hardcode_libdir_separator_CXX=
16739 fi
16740 esac
16741 shared_flag='-shared'
16742 if test "$aix_use_runtimelinking" = yes; then
16743 shared_flag="$shared_flag "'${wl}-G'
16744 fi
16745 else
16746 # not using gcc
16747 if test "$host_cpu" = ia64; then
16748 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16749 # chokes on -Wl,-G. The following line is correct:
16750 shared_flag='-G'
16751 else
16752 if test "$aix_use_runtimelinking" = yes; then
16753 shared_flag='${wl}-G'
16754 else
16755 shared_flag='${wl}-bM:SRE'
16756 fi
16757 fi
16758 fi
16759
16760 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16761 # It seems that -bexpall does not export symbols beginning with
16762 # underscore (_), so it is better to generate a list of symbols to
16763 # export.
16764 always_export_symbols_CXX=yes
16765 if test "$aix_use_runtimelinking" = yes; then
16766 # Warning - without using the other runtime loading flags (-brtl),
16767 # -berok will link without error, but may produce a broken library.
16768 allow_undefined_flag_CXX='-berok'
16769 # Determine the default libpath from the value encoded in an empty
16770 # executable.
16771 cat >conftest.$ac_ext <<_ACEOF
16772/* confdefs.h. */
16773_ACEOF
16774cat confdefs.h >>conftest.$ac_ext
16775cat >>conftest.$ac_ext <<_ACEOF
16776/* end confdefs.h. */
16777
16778int
16779main ()
16780{
16781
16782 ;
16783 return 0;
16784}
16785_ACEOF
16786rm -f conftest.$ac_objext conftest$ac_exeext
16787if { (ac_try="$ac_link"
16788case "(($ac_try" in
16789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16790 *) ac_try_echo=$ac_try;;
16791esac
16792eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16793$as_echo "$ac_try_echo") >&5
16794 (eval "$ac_link") 2>conftest.er1
16795 ac_status=$?
16796 grep -v '^ *+' conftest.er1 >conftest.err
16797 rm -f conftest.er1
16798 cat conftest.err >&5
16799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); } && {
16801 test -z "$ac_cxx_werror_flag" ||
16802 test ! -s conftest.err
16803 } && test -s conftest$ac_exeext && {
16804 test "$cross_compiling" = yes ||
16805 $as_test_x conftest$ac_exeext
16806 }; then
16807
16808lt_aix_libpath_sed='
16809 /Import File Strings/,/^$/ {
16810 /^0/ {
16811 s/^0 *\(.*\)$/\1/
16812 p
16813 }
16814 }'
16815aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16816# Check for a 64-bit object if we didn't find anything.
16817if test -z "$aix_libpath"; then
16818 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16819fi
16820else
16821 $as_echo "$as_me: failed program was:" >&5
16822sed 's/^/| /' conftest.$ac_ext >&5
16823
16824
16825fi
16826
16827rm -rf conftest.dSYM
16828rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16829 conftest$ac_exeext conftest.$ac_ext
16830if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16831
16832 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16833
16834 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"
16835 else
16836 if test "$host_cpu" = ia64; then
16837 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16838 allow_undefined_flag_CXX="-z nodefs"
16839 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"
16840 else
16841 # Determine the default libpath from the value encoded in an
16842 # empty executable.
16843 cat >conftest.$ac_ext <<_ACEOF
16844/* confdefs.h. */
16845_ACEOF
16846cat confdefs.h >>conftest.$ac_ext
16847cat >>conftest.$ac_ext <<_ACEOF
16848/* end confdefs.h. */
16849
16850int
16851main ()
16852{
16853
16854 ;
16855 return 0;
16856}
16857_ACEOF
16858rm -f conftest.$ac_objext conftest$ac_exeext
16859if { (ac_try="$ac_link"
16860case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16863esac
16864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16865$as_echo "$ac_try_echo") >&5
16866 (eval "$ac_link") 2>conftest.er1
16867 ac_status=$?
16868 grep -v '^ *+' conftest.er1 >conftest.err
16869 rm -f conftest.er1
16870 cat conftest.err >&5
16871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872 (exit $ac_status); } && {
16873 test -z "$ac_cxx_werror_flag" ||
16874 test ! -s conftest.err
16875 } && test -s conftest$ac_exeext && {
16876 test "$cross_compiling" = yes ||
16877 $as_test_x conftest$ac_exeext
16878 }; then
16879
16880lt_aix_libpath_sed='
16881 /Import File Strings/,/^$/ {
16882 /^0/ {
16883 s/^0 *\(.*\)$/\1/
16884 p
16885 }
16886 }'
16887aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16888# Check for a 64-bit object if we didn't find anything.
16889if test -z "$aix_libpath"; then
16890 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16891fi
16892else
16893 $as_echo "$as_me: failed program was:" >&5
16894sed 's/^/| /' conftest.$ac_ext >&5
16895
16896
16897fi
16898
16899rm -rf conftest.dSYM
16900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16901 conftest$ac_exeext conftest.$ac_ext
16902if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16903
16904 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16905 # Warning - without using the other run time loading flags,
16906 # -berok will link without error, but may produce a broken library.
16907 no_undefined_flag_CXX=' ${wl}-bernotok'
16908 allow_undefined_flag_CXX=' ${wl}-berok'
16909 # Exported symbols can be pulled into shared objects from archives
16910 whole_archive_flag_spec_CXX='$convenience'
16911 archive_cmds_need_lc_CXX=yes
16912 # This is similar to how AIX traditionally builds its shared
16913 # libraries.
16914 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'
16915 fi
16916 fi
16917 ;;
16918
16919 beos*)
16920 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16921 allow_undefined_flag_CXX=unsupported
16922 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16923 # support --undefined. This deserves some investigation. FIXME
16924 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16925 else
16926 ld_shlibs_CXX=no
16927 fi
16928 ;;
16929
16930 chorus*)
16931 case $cc_basename in
16932 *)
16933 # FIXME: insert proper C++ library support
16934 ld_shlibs_CXX=no
16935 ;;
16936 esac
16937 ;;
16938
16939 cygwin* | mingw* | pw32* | cegcc*)
16940 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16941 # as there is no search path for DLLs.
16942 hardcode_libdir_flag_spec_CXX='-L$libdir'
16943 allow_undefined_flag_CXX=unsupported
16944 always_export_symbols_CXX=no
16945 enable_shared_with_static_runtimes_CXX=yes
16946
16947 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16948 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'
16949 # If the export-symbols file already is a .def file (1st line
16950 # is EXPORTS), use it as is; otherwise, prepend...
16951 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16952 cp $export_symbols $output_objdir/$soname.def;
16953 else
16954 echo EXPORTS > $output_objdir/$soname.def;
16955 cat $export_symbols >> $output_objdir/$soname.def;
16956 fi~
16957 $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'
16958 else
16959 ld_shlibs_CXX=no
16960 fi
16961 ;;
16962 darwin* | rhapsody*)
16963
16964
16965 archive_cmds_need_lc_CXX=no
16966 hardcode_direct_CXX=no
16967 hardcode_automatic_CXX=yes
16968 hardcode_shlibpath_var_CXX=unsupported
16969 whole_archive_flag_spec_CXX=''
16970 link_all_deplibs_CXX=yes
16971 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16972 case $cc_basename in
16973 ifort*) _lt_dar_can_shared=yes ;;
16974 *) _lt_dar_can_shared=$GCC ;;
16975 esac
16976 if test "$_lt_dar_can_shared" = "yes"; then
16977 output_verbose_link_cmd=echo
16978 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}"
16979 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16980 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}"
16981 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}"
16982 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16983 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}"
16984 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}"
16985 fi
16986
16987 else
16988 ld_shlibs_CXX=no
16989 fi
16990
16991 ;;
16992
16993 dgux*)
16994 case $cc_basename in
16995 ec++*)
16996 # FIXME: insert proper C++ library support
16997 ld_shlibs_CXX=no
16998 ;;
16999 ghcx*)
17000 # Green Hills C++ Compiler
17001 # FIXME: insert proper C++ library support
17002 ld_shlibs_CXX=no
17003 ;;
17004 *)
17005 # FIXME: insert proper C++ library support
17006 ld_shlibs_CXX=no
17007 ;;
17008 esac
17009 ;;
17010
17011 freebsd[12]*)
17012 # C++ shared libraries reported to be fairly broken before
17013 # switch to ELF
17014 ld_shlibs_CXX=no
17015 ;;
17016
17017 freebsd-elf*)
17018 archive_cmds_need_lc_CXX=no
17019 ;;
17020
17021 freebsd* | dragonfly*)
17022 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17023 # conventions
17024 ld_shlibs_CXX=yes
17025 ;;
17026
17027 gnu*)
17028 ;;
17029
17030 hpux9*)
17031 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17032 hardcode_libdir_separator_CXX=:
17033 export_dynamic_flag_spec_CXX='${wl}-E'
17034 hardcode_direct_CXX=yes
17035 hardcode_minus_L_CXX=yes # Not in the search PATH,
17036 # but as the default
17037 # location of the library.
17038
17039 case $cc_basename in
17040 CC*)
17041 # FIXME: insert proper C++ library support
17042 ld_shlibs_CXX=no
17043 ;;
17044 aCC*)
17045 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'
17046 # Commands to make compiler produce verbose output that lists
17047 # what "hidden" libraries, object files and flags are used when
17048 # linking a shared library.
17049 #
17050 # There doesn't appear to be a way to prevent this compiler from
17051 # explicitly linking system object files so we need to strip them
17052 # from the output so that they don't get included in the library
17053 # dependencies.
17054 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'
17055 ;;
17056 *)
17057 if test "$GXX" = yes; then
17058 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'
17059 else
17060 # FIXME: insert proper C++ library support
17061 ld_shlibs_CXX=no
17062 fi
17063 ;;
17064 esac
17065 ;;
17066
17067 hpux10*|hpux11*)
17068 if test $with_gnu_ld = no; then
17069 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17070 hardcode_libdir_separator_CXX=:
17071
17072 case $host_cpu in
17073 hppa*64*|ia64*)
17074 ;;
17075 *)
17076 export_dynamic_flag_spec_CXX='${wl}-E'
17077 ;;
17078 esac
17079 fi
17080 case $host_cpu in
17081 hppa*64*|ia64*)
17082 hardcode_direct_CXX=no
17083 hardcode_shlibpath_var_CXX=no
17084 ;;
17085 *)
17086 hardcode_direct_CXX=yes
17087 hardcode_direct_absolute_CXX=yes
17088 hardcode_minus_L_CXX=yes # Not in the search PATH,
17089 # but as the default
17090 # location of the library.
17091 ;;
17092 esac
17093
17094 case $cc_basename in
17095 CC*)
17096 # FIXME: insert proper C++ library support
17097 ld_shlibs_CXX=no
17098 ;;
17099 aCC*)
17100 case $host_cpu in
17101 hppa*64*)
17102 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17103 ;;
17104 ia64*)
17105 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17106 ;;
17107 *)
17108 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17109 ;;
17110 esac
17111 # Commands to make compiler produce verbose output that lists
17112 # what "hidden" libraries, object files and flags are used when
17113 # linking a shared library.
17114 #
17115 # There doesn't appear to be a way to prevent this compiler from
17116 # explicitly linking system object files so we need to strip them
17117 # from the output so that they don't get included in the library
17118 # dependencies.
17119 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'
17120 ;;
17121 *)
17122 if test "$GXX" = yes; then
17123 if test $with_gnu_ld = no; then
17124 case $host_cpu in
17125 hppa*64*)
17126 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17127 ;;
17128 ia64*)
17129 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17130 ;;
17131 *)
17132 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'
17133 ;;
17134 esac
17135 fi
17136 else
17137 # FIXME: insert proper C++ library support
17138 ld_shlibs_CXX=no
17139 fi
17140 ;;
17141 esac
17142 ;;
17143
17144 interix[3-9]*)
17145 hardcode_direct_CXX=no
17146 hardcode_shlibpath_var_CXX=no
17147 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17148 export_dynamic_flag_spec_CXX='${wl}-E'
17149 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17150 # Instead, shared libraries are loaded at an image base (0x10000000 by
17151 # default) and relocated if they conflict, which is a slow very memory
17152 # consuming and fragmenting process. To avoid this, we pick a random,
17153 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17154 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17155 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'
17156 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'
17157 ;;
17158 irix5* | irix6*)
17159 case $cc_basename in
17160 CC*)
17161 # SGI C++
17162 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'
17163
17164 # Archives containing C++ object files must be created using
17165 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17166 # necessary to make sure instantiated templates are included
17167 # in the archive.
17168 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17169 ;;
17170 *)
17171 if test "$GXX" = yes; then
17172 if test "$with_gnu_ld" = no; then
17173 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'
17174 else
17175 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'
17176 fi
17177 fi
17178 link_all_deplibs_CXX=yes
17179 ;;
17180 esac
17181 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17182 hardcode_libdir_separator_CXX=:
17183 inherit_rpath_CXX=yes
17184 ;;
17185
17186 linux* | k*bsd*-gnu)
17187 case $cc_basename in
17188 KCC*)
17189 # Kuck and Associates, Inc. (KAI) C++ Compiler
17190
17191 # KCC will only create a shared library if the output file
17192 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17193 # to its proper name (with version) after linking.
17194 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'
17195 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'
17196 # Commands to make compiler produce verbose output that lists
17197 # what "hidden" libraries, object files and flags are used when
17198 # linking a shared library.
17199 #
17200 # There doesn't appear to be a way to prevent this compiler from
17201 # explicitly linking system object files so we need to strip them
17202 # from the output so that they don't get included in the library
17203 # dependencies.
17204 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'
17205
17206 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17207 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17208
17209 # Archives containing C++ object files must be created using
17210 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17211 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17212 ;;
17213 icpc* | ecpc* )
17214 # Intel C++
17215 with_gnu_ld=yes
17216 # version 8.0 and above of icpc choke on multiply defined symbols
17217 # if we add $predep_objects and $postdep_objects, however 7.1 and
17218 # earlier do not add the objects themselves.
17219 case `$CC -V 2>&1` in
17220 *"Version 7."*)
17221 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17222 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'
17223 ;;
17224 *) # Version 8.0 or newer
17225 tmp_idyn=
17226 case $host_cpu in
17227 ia64*) tmp_idyn=' -i_dynamic';;
17228 esac
17229 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17230 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'
17231 ;;
17232 esac
17233 archive_cmds_need_lc_CXX=no
17234 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17235 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17236 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17237 ;;
17238 pgCC* | pgcpp*)
17239 # Portland Group C++ compiler
17240 case `$CC -V` in
17241 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
17242 prelink_cmds_CXX='tpldir=Template.dir~
17243 rm -rf $tpldir~
17244 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17245 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
17246 old_archive_cmds_CXX='tpldir=Template.dir~
17247 rm -rf $tpldir~
17248 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17249 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
17250 $RANLIB $oldlib'
17251 archive_cmds_CXX='tpldir=Template.dir~
17252 rm -rf $tpldir~
17253 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17254 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17255 archive_expsym_cmds_CXX='tpldir=Template.dir~
17256 rm -rf $tpldir~
17257 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17258 $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'
17259 ;;
17260 *) # Version 6 will use weak symbols
17261 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17262 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'
17263 ;;
17264 esac
17265
17266 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17267 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17268 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'
17269 ;;
17270 cxx*)
17271 # Compaq C++
17272 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17273 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'
17274
17275 runpath_var=LD_RUN_PATH
17276 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17277 hardcode_libdir_separator_CXX=:
17278
17279 # Commands to make compiler produce verbose output that lists
17280 # what "hidden" libraries, object files and flags are used when
17281 # linking a shared library.
17282 #
17283 # There doesn't appear to be a way to prevent this compiler from
17284 # explicitly linking system object files so we need to strip them
17285 # from the output so that they don't get included in the library
17286 # dependencies.
17287 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'
17288 ;;
17289 xl*)
17290 # IBM XL 8.0 on PPC, with GNU ld
17291 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17292 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17293 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17294 if test "x$supports_anon_versioning" = xyes; then
17295 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17296 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17297 echo "local: *; };" >> $output_objdir/$libname.ver~
17298 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17299 fi
17300 ;;
17301 *)
17302 case `$CC -V 2>&1 | sed 5q` in
17303 *Sun\ C*)
17304 # Sun C++ 5.9
17305 no_undefined_flag_CXX=' -zdefs'
17306 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17307 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'
17308 hardcode_libdir_flag_spec_CXX='-R$libdir'
17309 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'
17310 compiler_needs_object_CXX=yes
17311
17312 # Not sure whether something based on
17313 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17314 # would be better.
17315 output_verbose_link_cmd='echo'
17316
17317 # Archives containing C++ object files must be created using
17318 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17319 # necessary to make sure instantiated templates are included
17320 # in the archive.
17321 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17322 ;;
17323 esac
17324 ;;
17325 esac
17326 ;;
17327
17328 lynxos*)
17329 # FIXME: insert proper C++ library support
17330 ld_shlibs_CXX=no
17331 ;;
17332
17333 m88k*)
17334 # FIXME: insert proper C++ library support
17335 ld_shlibs_CXX=no
17336 ;;
17337
17338 mvs*)
17339 case $cc_basename in
17340 cxx*)
17341 # FIXME: insert proper C++ library support
17342 ld_shlibs_CXX=no
17343 ;;
17344 *)
17345 # FIXME: insert proper C++ library support
17346 ld_shlibs_CXX=no
17347 ;;
17348 esac
17349 ;;
17350
17351 netbsd*)
17352 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17353 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17354 wlarc=
17355 hardcode_libdir_flag_spec_CXX='-R$libdir'
17356 hardcode_direct_CXX=yes
17357 hardcode_shlibpath_var_CXX=no
17358 fi
17359 # Workaround some broken pre-1.5 toolchains
17360 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17361 ;;
17362
17363 *nto* | *qnx*)
17364 ld_shlibs_CXX=yes
17365 ;;
17366
17367 openbsd2*)
17368 # C++ shared libraries are fairly broken
17369 ld_shlibs_CXX=no
17370 ;;
17371
17372 openbsd*)
17373 if test -f /usr/libexec/ld.so; then
17374 hardcode_direct_CXX=yes
17375 hardcode_shlibpath_var_CXX=no
17376 hardcode_direct_absolute_CXX=yes
17377 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17378 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17380 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17381 export_dynamic_flag_spec_CXX='${wl}-E'
17382 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17383 fi
17384 output_verbose_link_cmd=echo
17385 else
17386 ld_shlibs_CXX=no
17387 fi
17388 ;;
17389
17390 osf3* | osf4* | osf5*)
17391 case $cc_basename in
17392 KCC*)
17393 # Kuck and Associates, Inc. (KAI) C++ Compiler
17394
17395 # KCC will only create a shared library if the output file
17396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17397 # to its proper name (with version) after linking.
17398 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'
17399
17400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17401 hardcode_libdir_separator_CXX=:
17402
17403 # Archives containing C++ object files must be created using
17404 # the KAI C++ compiler.
17405 case $host in
17406 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17407 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17408 esac
17409 ;;
17410 RCC*)
17411 # Rational C++ 2.4.1
17412 # FIXME: insert proper C++ library support
17413 ld_shlibs_CXX=no
17414 ;;
17415 cxx*)
17416 case $host in
17417 osf3*)
17418 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17419 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'
17420 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17421 ;;
17422 *)
17423 allow_undefined_flag_CXX=' -expect_unresolved \*'
17424 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'
17425 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17426 echo "-hidden">> $lib.exp~
17427 $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~
17428 $RM $lib.exp'
17429 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17430 ;;
17431 esac
17432
17433 hardcode_libdir_separator_CXX=:
17434
17435 # Commands to make compiler produce verbose output that lists
17436 # what "hidden" libraries, object files and flags are used when
17437 # linking a shared library.
17438 #
17439 # There doesn't appear to be a way to prevent this compiler from
17440 # explicitly linking system object files so we need to strip them
17441 # from the output so that they don't get included in the library
17442 # dependencies.
17443 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'
17444 ;;
17445 *)
17446 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17447 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17448 case $host in
17449 osf3*)
17450 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'
17451 ;;
17452 *)
17453 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'
17454 ;;
17455 esac
17456
17457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17458 hardcode_libdir_separator_CXX=:
17459
17460 # Commands to make compiler produce verbose output that lists
17461 # what "hidden" libraries, object files and flags are used when
17462 # linking a shared library.
17463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17464
17465 else
17466 # FIXME: insert proper C++ library support
17467 ld_shlibs_CXX=no
17468 fi
17469 ;;
17470 esac
17471 ;;
17472
17473 psos*)
17474 # FIXME: insert proper C++ library support
17475 ld_shlibs_CXX=no
17476 ;;
17477
17478 sunos4*)
17479 case $cc_basename in
17480 CC*)
17481 # Sun C++ 4.x
17482 # FIXME: insert proper C++ library support
17483 ld_shlibs_CXX=no
17484 ;;
17485 lcc*)
17486 # Lucid
17487 # FIXME: insert proper C++ library support
17488 ld_shlibs_CXX=no
17489 ;;
17490 *)
17491 # FIXME: insert proper C++ library support
17492 ld_shlibs_CXX=no
17493 ;;
17494 esac
17495 ;;
17496
17497 solaris*)
17498 case $cc_basename in
17499 CC*)
17500 # Sun C++ 4.2, 5.x and Centerline C++
17501 archive_cmds_need_lc_CXX=yes
17502 no_undefined_flag_CXX=' -zdefs'
17503 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17504 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17505 $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'
17506
17507 hardcode_libdir_flag_spec_CXX='-R$libdir'
17508 hardcode_shlibpath_var_CXX=no
17509 case $host_os in
17510 solaris2.[0-5] | solaris2.[0-5].*) ;;
17511 *)
17512 # The compiler driver will combine and reorder linker options,
17513 # but understands `-z linker_flag'.
17514 # Supported since Solaris 2.6 (maybe 2.5.1?)
17515 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17516 ;;
17517 esac
17518 link_all_deplibs_CXX=yes
17519
17520 output_verbose_link_cmd='echo'
17521
17522 # Archives containing C++ object files must be created using
17523 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17524 # necessary to make sure instantiated templates are included
17525 # in the archive.
17526 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17527 ;;
17528 gcx*)
17529 # Green Hills C++ Compiler
17530 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17531
17532 # The C++ compiler must be used to create the archive.
17533 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17534 ;;
17535 *)
17536 # GNU C++ compiler with Solaris linker
17537 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17538 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17539 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17540 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17541 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17542 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17543
17544 # Commands to make compiler produce verbose output that lists
17545 # what "hidden" libraries, object files and flags are used when
17546 # linking a shared library.
17547 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17548 else
17549 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17550 # platform.
17551 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17552 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17553 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17554
17555 # Commands to make compiler produce verbose output that lists
17556 # what "hidden" libraries, object files and flags are used when
17557 # linking a shared library.
17558 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17559 fi
17560
17561 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17562 case $host_os in
17563 solaris2.[0-5] | solaris2.[0-5].*) ;;
17564 *)
17565 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17566 ;;
17567 esac
17568 fi
17569 ;;
17570 esac
17571 ;;
17572
17573 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17574 no_undefined_flag_CXX='${wl}-z,text'
17575 archive_cmds_need_lc_CXX=no
17576 hardcode_shlibpath_var_CXX=no
17577 runpath_var='LD_RUN_PATH'
17578
17579 case $cc_basename in
17580 CC*)
17581 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17582 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17583 ;;
17584 *)
17585 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17586 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17587 ;;
17588 esac
17589 ;;
17590
17591 sysv5* | sco3.2v5* | sco5v6*)
17592 # Note: We can NOT use -z defs as we might desire, because we do not
17593 # link with -lc, and that would cause any symbols used from libc to
17594 # always be unresolved, which means just about no library would
17595 # ever link correctly. If we're not using GNU ld we use -z text
17596 # though, which does catch some bad symbols but isn't as heavy-handed
17597 # as -z defs.
17598 no_undefined_flag_CXX='${wl}-z,text'
17599 allow_undefined_flag_CXX='${wl}-z,nodefs'
17600 archive_cmds_need_lc_CXX=no
17601 hardcode_shlibpath_var_CXX=no
17602 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17603 hardcode_libdir_separator_CXX=':'
17604 link_all_deplibs_CXX=yes
17605 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17606 runpath_var='LD_RUN_PATH'
17607
17608 case $cc_basename in
17609 CC*)
17610 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17611 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17612 ;;
17613 *)
17614 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17615 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17616 ;;
17617 esac
17618 ;;
17619
17620 tandem*)
17621 case $cc_basename in
17622 NCC*)
17623 # NonStop-UX NCC 3.20
17624 # FIXME: insert proper C++ library support
17625 ld_shlibs_CXX=no
17626 ;;
17627 *)
17628 # FIXME: insert proper C++ library support
17629 ld_shlibs_CXX=no
17630 ;;
17631 esac
17632 ;;
17633
17634 vxworks*)
17635 # FIXME: insert proper C++ library support
17636 ld_shlibs_CXX=no
17637 ;;
17638
17639 *)
17640 # FIXME: insert proper C++ library support
17641 ld_shlibs_CXX=no
17642 ;;
17643 esac
17644
17645 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17646$as_echo "$ld_shlibs_CXX" >&6; }
17647 test "$ld_shlibs_CXX" = no && can_build_shared=no
17648
17649 GCC_CXX="$GXX"
17650 LD_CXX="$LD"
17651
17652 ## CAVEAT EMPTOR:
17653 ## There is no encapsulation within the following macros, do not change
17654 ## the running order or otherwise move them around unless you know exactly
17655 ## what you are doing...
17656 # Dependencies to place before and after the object being linked:
17657predep_objects_CXX=
17658postdep_objects_CXX=
17659predeps_CXX=
17660postdeps_CXX=
17661compiler_lib_search_path_CXX=
17662
17663cat > conftest.$ac_ext <<_LT_EOF
17664class Foo
17665{
17666public:
17667 Foo (void) { a = 0; }
17668private:
17669 int a;
17670};
17671_LT_EOF
17672
17673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17674 (eval $ac_compile) 2>&5
17675 ac_status=$?
17676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; then
17678 # Parse the compiler output and extract the necessary
17679 # objects, libraries and library flags.
17680
17681 # Sentinel used to keep track of whether or not we are before
17682 # the conftest object file.
17683 pre_test_object_deps_done=no
17684
17685 for p in `eval "$output_verbose_link_cmd"`; do
17686 case $p in
17687
17688 -L* | -R* | -l*)
17689 # Some compilers place space between "-{L,R}" and the path.
17690 # Remove the space.
17691 if test $p = "-L" ||
17692 test $p = "-R"; then
17693 prev=$p
17694 continue
17695 else
17696 prev=
17697 fi
17698
17699 if test "$pre_test_object_deps_done" = no; then
17700 case $p in
17701 -L* | -R*)
17702 # Internal compiler library paths should come after those
17703 # provided the user. The postdeps already come after the
17704 # user supplied libs so there is no need to process them.
17705 if test -z "$compiler_lib_search_path_CXX"; then
17706 compiler_lib_search_path_CXX="${prev}${p}"
17707 else
17708 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17709 fi
17710 ;;
17711 # The "-l" case would never come before the object being
17712 # linked, so don't bother handling this case.
17713 esac
17714 else
17715 if test -z "$postdeps_CXX"; then
17716 postdeps_CXX="${prev}${p}"
17717 else
17718 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17719 fi
17720 fi
17721 ;;
17722
17723 *.$objext)
17724 # This assumes that the test object file only shows up
17725 # once in the compiler output.
17726 if test "$p" = "conftest.$objext"; then
17727 pre_test_object_deps_done=yes
17728 continue
17729 fi
17730
17731 if test "$pre_test_object_deps_done" = no; then
17732 if test -z "$predep_objects_CXX"; then
17733 predep_objects_CXX="$p"
17734 else
17735 predep_objects_CXX="$predep_objects_CXX $p"
17736 fi
17737 else
17738 if test -z "$postdep_objects_CXX"; then
17739 postdep_objects_CXX="$p"
17740 else
17741 postdep_objects_CXX="$postdep_objects_CXX $p"
17742 fi
17743 fi
17744 ;;
17745
17746 *) ;; # Ignore the rest.
17747
17748 esac
17749 done
17750
17751 # Clean up.
17752 rm -f a.out a.exe
17753else
17754 echo "libtool.m4: error: problem compiling CXX test program"
17755fi
17756
17757$RM -f confest.$objext
17758
17759# PORTME: override above test on systems where it is broken
17760case $host_os in
17761interix[3-9]*)
17762 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17763 # hack all around it, let's just trust "g++" to DTRT.
17764 predep_objects_CXX=
17765 postdep_objects_CXX=
17766 postdeps_CXX=
17767 ;;
17768
17769linux*)
17770 case `$CC -V 2>&1 | sed 5q` in
17771 *Sun\ C*)
17772 # Sun C++ 5.9
17773
17774 # The more standards-conforming stlport4 library is
17775 # incompatible with the Cstd library. Avoid specifying
17776 # it if it's in CXXFLAGS. Ignore libCrun as
17777 # -library=stlport4 depends on it.
17778 case " $CXX $CXXFLAGS " in
17779 *" -library=stlport4 "*)
17780 solaris_use_stlport4=yes
17781 ;;
17782 esac
17783
17784 if test "$solaris_use_stlport4" != yes; then
17785 postdeps_CXX='-library=Cstd -library=Crun'
17786 fi
17787 ;;
17788 esac
17789 ;;
17790
17791solaris*)
17792 case $cc_basename in
17793 CC*)
17794 # The more standards-conforming stlport4 library is
17795 # incompatible with the Cstd library. Avoid specifying
17796 # it if it's in CXXFLAGS. Ignore libCrun as
17797 # -library=stlport4 depends on it.
17798 case " $CXX $CXXFLAGS " in
17799 *" -library=stlport4 "*)
17800 solaris_use_stlport4=yes
17801 ;;
17802 esac
17803
17804 # Adding this requires a known-good setup of shared libraries for
17805 # Sun compiler versions before 5.6, else PIC objects from an old
17806 # archive will be linked into the output, leading to subtle bugs.
17807 if test "$solaris_use_stlport4" != yes; then
17808 postdeps_CXX='-library=Cstd -library=Crun'
17809 fi
17810 ;;
17811 esac
17812 ;;
17813esac
17814
17815
17816case " $postdeps_CXX " in
17817*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17818esac
17819 compiler_lib_search_dirs_CXX=
17820if test -n "${compiler_lib_search_path_CXX}"; then
17821 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17822fi
17823
17824
17825
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 lt_prog_compiler_wl_CXX=
17855lt_prog_compiler_pic_CXX=
17856lt_prog_compiler_static_CXX=
17857
17858{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17859$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17860
17861 # C++ specific cases for pic, static, wl, etc.
17862 if test "$GXX" = yes; then
17863 lt_prog_compiler_wl_CXX='-Wl,'
17864 lt_prog_compiler_static_CXX='-static'
17865
17866 case $host_os in
17867 aix*)
17868 # All AIX code is PIC.
17869 if test "$host_cpu" = ia64; then
17870 # AIX 5 now supports IA64 processor
17871 lt_prog_compiler_static_CXX='-Bstatic'
17872 fi
17873 ;;
17874
17875 amigaos*)
17876 case $host_cpu in
17877 powerpc)
17878 # see comment about AmigaOS4 .so support
17879 lt_prog_compiler_pic_CXX='-fPIC'
17880 ;;
17881 m68k)
17882 # FIXME: we need at least 68020 code to build shared libraries, but
17883 # adding the `-m68020' flag to GCC prevents building anything better,
17884 # like `-m68040'.
17885 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17886 ;;
17887 esac
17888 ;;
17889
17890 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17891 # PIC is the default for these OSes.
17892 ;;
17893 mingw* | cygwin* | os2* | pw32* | cegcc*)
17894 # This hack is so that the source file can tell whether it is being
17895 # built for inclusion in a dll (and should export symbols for example).
17896 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17897 # (--disable-auto-import) libraries
17898 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17899 ;;
17900 darwin* | rhapsody*)
17901 # PIC is the default on this platform
17902 # Common symbols not allowed in MH_DYLIB files
17903 lt_prog_compiler_pic_CXX='-fno-common'
17904 ;;
17905 *djgpp*)
17906 # DJGPP does not support shared libraries at all
17907 lt_prog_compiler_pic_CXX=
17908 ;;
17909 interix[3-9]*)
17910 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17911 # Instead, we relocate shared libraries at runtime.
17912 ;;
17913 sysv4*MP*)
17914 if test -d /usr/nec; then
17915 lt_prog_compiler_pic_CXX=-Kconform_pic
17916 fi
17917 ;;
17918 hpux*)
17919 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17920 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17921 # sets the default TLS model and affects inlining.
17922 case $host_cpu in
17923 hppa*64*)
17924 ;;
17925 *)
17926 lt_prog_compiler_pic_CXX='-fPIC'
17927 ;;
17928 esac
17929 ;;
17930 *qnx* | *nto*)
17931 # QNX uses GNU C++, but need to define -shared option too, otherwise
17932 # it will coredump.
17933 lt_prog_compiler_pic_CXX='-fPIC -shared'
17934 ;;
17935 *)
17936 lt_prog_compiler_pic_CXX='-fPIC'
17937 ;;
17938 esac
17939 else
17940 case $host_os in
17941 aix[4-9]*)
17942 # All AIX code is PIC.
17943 if test "$host_cpu" = ia64; then
17944 # AIX 5 now supports IA64 processor
17945 lt_prog_compiler_static_CXX='-Bstatic'
17946 else
17947 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17948 fi
17949 ;;
17950 chorus*)
17951 case $cc_basename in
17952 cxch68*)
17953 # Green Hills C++ Compiler
17954 # _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"
17955 ;;
17956 esac
17957 ;;
17958 dgux*)
17959 case $cc_basename in
17960 ec++*)
17961 lt_prog_compiler_pic_CXX='-KPIC'
17962 ;;
17963 ghcx*)
17964 # Green Hills C++ Compiler
17965 lt_prog_compiler_pic_CXX='-pic'
17966 ;;
17967 *)
17968 ;;
17969 esac
17970 ;;
17971 freebsd* | dragonfly*)
17972 # FreeBSD uses GNU C++
17973 ;;
17974 hpux9* | hpux10* | hpux11*)
17975 case $cc_basename in
17976 CC*)
17977 lt_prog_compiler_wl_CXX='-Wl,'
17978 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17979 if test "$host_cpu" != ia64; then
17980 lt_prog_compiler_pic_CXX='+Z'
17981 fi
17982 ;;
17983 aCC*)
17984 lt_prog_compiler_wl_CXX='-Wl,'
17985 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17986 case $host_cpu in
17987 hppa*64*|ia64*)
17988 # +Z the default
17989 ;;
17990 *)
17991 lt_prog_compiler_pic_CXX='+Z'
17992 ;;
17993 esac
17994 ;;
17995 *)
17996 ;;
17997 esac
17998 ;;
17999 interix*)
18000 # This is c89, which is MS Visual C++ (no shared libs)
18001 # Anyone wants to do a port?
18002 ;;
18003 irix5* | irix6* | nonstopux*)
18004 case $cc_basename in
18005 CC*)
18006 lt_prog_compiler_wl_CXX='-Wl,'
18007 lt_prog_compiler_static_CXX='-non_shared'
18008 # CC pic flag -KPIC is the default.
18009 ;;
18010 *)
18011 ;;
18012 esac
18013 ;;
18014 linux* | k*bsd*-gnu)
18015 case $cc_basename in
18016 KCC*)
18017 # KAI C++ Compiler
18018 lt_prog_compiler_wl_CXX='--backend -Wl,'
18019 lt_prog_compiler_pic_CXX='-fPIC'
18020 ;;
18021 ecpc* )
18022 # old Intel C++ for x86_64 which still supported -KPIC.
18023 lt_prog_compiler_wl_CXX='-Wl,'
18024 lt_prog_compiler_pic_CXX='-KPIC'
18025 lt_prog_compiler_static_CXX='-static'
18026 ;;
18027 icpc* )
18028 # Intel C++, used to be incompatible with GCC.
18029 # ICC 10 doesn't accept -KPIC any more.
18030 lt_prog_compiler_wl_CXX='-Wl,'
18031 lt_prog_compiler_pic_CXX='-fPIC'
18032 lt_prog_compiler_static_CXX='-static'
18033 ;;
18034 pgCC* | pgcpp*)
18035 # Portland Group C++ compiler
18036 lt_prog_compiler_wl_CXX='-Wl,'
18037 lt_prog_compiler_pic_CXX='-fpic'
18038 lt_prog_compiler_static_CXX='-Bstatic'
18039 ;;
18040 cxx*)
18041 # Compaq C++
18042 # Make sure the PIC flag is empty. It appears that all Alpha
18043 # Linux and Compaq Tru64 Unix objects are PIC.
18044 lt_prog_compiler_pic_CXX=
18045 lt_prog_compiler_static_CXX='-non_shared'
18046 ;;
18047 xlc* | xlC*)
18048 # IBM XL 8.0 on PPC
18049 lt_prog_compiler_wl_CXX='-Wl,'
18050 lt_prog_compiler_pic_CXX='-qpic'
18051 lt_prog_compiler_static_CXX='-qstaticlink'
18052 ;;
18053 *)
18054 case `$CC -V 2>&1 | sed 5q` in
18055 *Sun\ C*)
18056 # Sun C++ 5.9
18057 lt_prog_compiler_pic_CXX='-KPIC'
18058 lt_prog_compiler_static_CXX='-Bstatic'
18059 lt_prog_compiler_wl_CXX='-Qoption ld '
18060 ;;
18061 esac
18062 ;;
18063 esac
18064 ;;
18065 lynxos*)
18066 ;;
18067 m88k*)
18068 ;;
18069 mvs*)
18070 case $cc_basename in
18071 cxx*)
18072 lt_prog_compiler_pic_CXX='-W c,exportall'
18073 ;;
18074 *)
18075 ;;
18076 esac
18077 ;;
18078 netbsd*)
18079 ;;
18080 *qnx* | *nto*)
18081 # QNX uses GNU C++, but need to define -shared option too, otherwise
18082 # it will coredump.
18083 lt_prog_compiler_pic_CXX='-fPIC -shared'
18084 ;;
18085 osf3* | osf4* | osf5*)
18086 case $cc_basename in
18087 KCC*)
18088 lt_prog_compiler_wl_CXX='--backend -Wl,'
18089 ;;
18090 RCC*)
18091 # Rational C++ 2.4.1
18092 lt_prog_compiler_pic_CXX='-pic'
18093 ;;
18094 cxx*)
18095 # Digital/Compaq C++
18096 lt_prog_compiler_wl_CXX='-Wl,'
18097 # Make sure the PIC flag is empty. It appears that all Alpha
18098 # Linux and Compaq Tru64 Unix objects are PIC.
18099 lt_prog_compiler_pic_CXX=
18100 lt_prog_compiler_static_CXX='-non_shared'
18101 ;;
18102 *)
18103 ;;
18104 esac
18105 ;;
18106 psos*)
18107 ;;
18108 solaris*)
18109 case $cc_basename in
18110 CC*)
18111 # Sun C++ 4.2, 5.x and Centerline C++
18112 lt_prog_compiler_pic_CXX='-KPIC'
18113 lt_prog_compiler_static_CXX='-Bstatic'
18114 lt_prog_compiler_wl_CXX='-Qoption ld '
18115 ;;
18116 gcx*)
18117 # Green Hills C++ Compiler
18118 lt_prog_compiler_pic_CXX='-PIC'
18119 ;;
18120 *)
18121 ;;
18122 esac
18123 ;;
18124 sunos4*)
18125 case $cc_basename in
18126 CC*)
18127 # Sun C++ 4.x
18128 lt_prog_compiler_pic_CXX='-pic'
18129 lt_prog_compiler_static_CXX='-Bstatic'
18130 ;;
18131 lcc*)
18132 # Lucid
18133 lt_prog_compiler_pic_CXX='-pic'
18134 ;;
18135 *)
18136 ;;
18137 esac
18138 ;;
18139 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18140 case $cc_basename in
18141 CC*)
18142 lt_prog_compiler_wl_CXX='-Wl,'
18143 lt_prog_compiler_pic_CXX='-KPIC'
18144 lt_prog_compiler_static_CXX='-Bstatic'
18145 ;;
18146 esac
18147 ;;
18148 tandem*)
18149 case $cc_basename in
18150 NCC*)
18151 # NonStop-UX NCC 3.20
18152 lt_prog_compiler_pic_CXX='-KPIC'
18153 ;;
18154 *)
18155 ;;
18156 esac
18157 ;;
18158 vxworks*)
18159 ;;
18160 *)
18161 lt_prog_compiler_can_build_shared_CXX=no
18162 ;;
18163 esac
18164 fi
18165
18166case $host_os in
18167 # For platforms which do not support PIC, -DPIC is meaningless:
18168 *djgpp*)
18169 lt_prog_compiler_pic_CXX=
18170 ;;
18171 *)
18172 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18173 ;;
18174esac
18175{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
18176$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
18177
18178
18179
18180#
18181# Check to make sure the PIC flag actually works.
18182#
18183if test -n "$lt_prog_compiler_pic_CXX"; then
18184 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18185$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18186if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
18187 $as_echo_n "(cached) " >&6
18188else
18189 lt_cv_prog_compiler_pic_works_CXX=no
18190 ac_outfile=conftest.$ac_objext
18191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18192 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18193 # Insert the option either (1) after the last *FLAGS variable, or
18194 # (2) before a word containing "conftest.", or (3) at the end.
18195 # Note that $ac_compile itself does not contain backslashes and begins
18196 # with a dollar sign (not a hyphen), so the echo should work correctly.
18197 # The option is referenced via a variable to avoid confusing sed.
18198 lt_compile=`echo "$ac_compile" | $SED \
18199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18201 -e 's:$: $lt_compiler_flag:'`
cristya0242ab2009-10-15 19:17:14 +000018202 (eval echo "\"\$as_me:18202: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018203 (eval "$lt_compile" 2>conftest.err)
18204 ac_status=$?
18205 cat conftest.err >&5
cristya0242ab2009-10-15 19:17:14 +000018206 echo "$as_me:18206: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018207 if (exit $ac_status) && test -s "$ac_outfile"; then
18208 # The compiler can only warn and ignore the option if not recognized
18209 # So say no if there are warnings other than the usual output.
18210 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18212 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18213 lt_cv_prog_compiler_pic_works_CXX=yes
18214 fi
18215 fi
18216 $RM conftest*
18217
18218fi
18219{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18220$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18221
18222if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18223 case $lt_prog_compiler_pic_CXX in
18224 "" | " "*) ;;
18225 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18226 esac
18227else
18228 lt_prog_compiler_pic_CXX=
18229 lt_prog_compiler_can_build_shared_CXX=no
18230fi
18231
18232fi
18233
18234
18235
18236#
18237# Check to make sure the static flag actually works.
18238#
18239wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18240{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18241$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18242if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
18243 $as_echo_n "(cached) " >&6
18244else
18245 lt_cv_prog_compiler_static_works_CXX=no
18246 save_LDFLAGS="$LDFLAGS"
18247 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18248 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18249 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18250 # The linker can only warn and ignore the option if not recognized
18251 # So say no if there are warnings
18252 if test -s conftest.err; then
18253 # Append any errors to the config.log.
18254 cat conftest.err 1>&5
18255 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18256 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18257 if diff conftest.exp conftest.er2 >/dev/null; then
18258 lt_cv_prog_compiler_static_works_CXX=yes
18259 fi
18260 else
18261 lt_cv_prog_compiler_static_works_CXX=yes
18262 fi
18263 fi
18264 $RM -r conftest*
18265 LDFLAGS="$save_LDFLAGS"
18266
18267fi
18268{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18269$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18270
18271if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18272 :
18273else
18274 lt_prog_compiler_static_CXX=
18275fi
18276
18277
18278
18279
18280 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18281$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18282if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18283 $as_echo_n "(cached) " >&6
18284else
18285 lt_cv_prog_compiler_c_o_CXX=no
18286 $RM -r conftest 2>/dev/null
18287 mkdir conftest
18288 cd conftest
18289 mkdir out
18290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18291
18292 lt_compiler_flag="-o out/conftest2.$ac_objext"
18293 # Insert the option either (1) after the last *FLAGS variable, or
18294 # (2) before a word containing "conftest.", or (3) at the end.
18295 # Note that $ac_compile itself does not contain backslashes and begins
18296 # with a dollar sign (not a hyphen), so the echo should work correctly.
18297 lt_compile=`echo "$ac_compile" | $SED \
18298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18300 -e 's:$: $lt_compiler_flag:'`
cristya0242ab2009-10-15 19:17:14 +000018301 (eval echo "\"\$as_me:18301: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018302 (eval "$lt_compile" 2>out/conftest.err)
18303 ac_status=$?
18304 cat out/conftest.err >&5
cristya0242ab2009-10-15 19:17:14 +000018305 echo "$as_me:18305: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018306 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18307 then
18308 # The compiler can only warn and ignore the option if not recognized
18309 # So say no if there are warnings
18310 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18311 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18312 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18313 lt_cv_prog_compiler_c_o_CXX=yes
18314 fi
18315 fi
18316 chmod u+w . 2>&5
18317 $RM conftest*
18318 # SGI C++ compiler will create directory out/ii_files/ for
18319 # template instantiation
18320 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18321 $RM out/* && rmdir out
18322 cd ..
18323 $RM -r conftest
18324 $RM conftest*
18325
18326fi
18327{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18328$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18329
18330
18331
18332 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18333$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18334if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
18335 $as_echo_n "(cached) " >&6
18336else
18337 lt_cv_prog_compiler_c_o_CXX=no
18338 $RM -r conftest 2>/dev/null
18339 mkdir conftest
18340 cd conftest
18341 mkdir out
18342 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18343
18344 lt_compiler_flag="-o out/conftest2.$ac_objext"
18345 # Insert the option either (1) after the last *FLAGS variable, or
18346 # (2) before a word containing "conftest.", or (3) at the end.
18347 # Note that $ac_compile itself does not contain backslashes and begins
18348 # with a dollar sign (not a hyphen), so the echo should work correctly.
18349 lt_compile=`echo "$ac_compile" | $SED \
18350 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18351 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18352 -e 's:$: $lt_compiler_flag:'`
cristya0242ab2009-10-15 19:17:14 +000018353 (eval echo "\"\$as_me:18353: $lt_compile\"" >&5)
cristy3ed852e2009-09-05 21:47:34 +000018354 (eval "$lt_compile" 2>out/conftest.err)
18355 ac_status=$?
18356 cat out/conftest.err >&5
cristya0242ab2009-10-15 19:17:14 +000018357 echo "$as_me:18357: \$? = $ac_status" >&5
cristy3ed852e2009-09-05 21:47:34 +000018358 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18359 then
18360 # The compiler can only warn and ignore the option if not recognized
18361 # So say no if there are warnings
18362 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18363 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18364 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18365 lt_cv_prog_compiler_c_o_CXX=yes
18366 fi
18367 fi
18368 chmod u+w . 2>&5
18369 $RM conftest*
18370 # SGI C++ compiler will create directory out/ii_files/ for
18371 # template instantiation
18372 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18373 $RM out/* && rmdir out
18374 cd ..
18375 $RM -r conftest
18376 $RM conftest*
18377
18378fi
18379{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18380$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18381
18382
18383
18384
18385hard_links="nottested"
18386if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18387 # do not overwrite the value of need_locks provided by the user
18388 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18389$as_echo_n "checking if we can lock with hard links... " >&6; }
18390 hard_links=yes
18391 $RM conftest*
18392 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18393 touch conftest.a
18394 ln conftest.a conftest.b 2>&5 || hard_links=no
18395 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18396 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
18397$as_echo "$hard_links" >&6; }
18398 if test "$hard_links" = no; then
18399 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18400$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18401 need_locks=warn
18402 fi
18403else
18404 need_locks=no
18405fi
18406
18407
18408
18409 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18410$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18411
18412 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18413 case $host_os in
18414 aix[4-9]*)
18415 # If we're using GNU nm, then we don't want the "-C" option.
18416 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18417 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18418 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'
18419 else
18420 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'
18421 fi
18422 ;;
18423 pw32*)
18424 export_symbols_cmds_CXX="$ltdll_cmds"
18425 ;;
18426 cygwin* | mingw* | cegcc*)
18427 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'
18428 ;;
18429 *)
18430 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18431 ;;
18432 esac
18433 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18434
18435{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
18436$as_echo "$ld_shlibs_CXX" >&6; }
18437test "$ld_shlibs_CXX" = no && can_build_shared=no
18438
18439with_gnu_ld_CXX=$with_gnu_ld
18440
18441
18442
18443
18444
18445
18446#
18447# Do we need to explicitly link libc?
18448#
18449case "x$archive_cmds_need_lc_CXX" in
18450x|xyes)
18451 # Assume -lc should be added
18452 archive_cmds_need_lc_CXX=yes
18453
18454 if test "$enable_shared" = yes && test "$GCC" = yes; then
18455 case $archive_cmds_CXX in
18456 *'~'*)
18457 # FIXME: we may have to deal with multi-command sequences.
18458 ;;
18459 '$CC '*)
18460 # Test whether the compiler implicitly links with -lc since on some
18461 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18462 # to ld, don't add -lc before -lgcc.
18463 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18464$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18465 $RM conftest*
18466 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18467
18468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18469 (eval $ac_compile) 2>&5
18470 ac_status=$?
18471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } 2>conftest.err; then
18473 soname=conftest
18474 lib=conftest
18475 libobjs=conftest.$ac_objext
18476 deplibs=
18477 wl=$lt_prog_compiler_wl_CXX
18478 pic_flag=$lt_prog_compiler_pic_CXX
18479 compiler_flags=-v
18480 linker_flags=-v
18481 verstring=
18482 output_objdir=.
18483 libname=conftest
18484 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18485 allow_undefined_flag_CXX=
18486 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
18487 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18488 ac_status=$?
18489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18490 (exit $ac_status); }
18491 then
18492 archive_cmds_need_lc_CXX=no
18493 else
18494 archive_cmds_need_lc_CXX=yes
18495 fi
18496 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18497 else
18498 cat conftest.err 1>&5
18499 fi
18500 $RM conftest*
18501 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
18502$as_echo "$archive_cmds_need_lc_CXX" >&6; }
18503 ;;
18504 esac
18505 fi
18506 ;;
18507esac
18508
18509
18510
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 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18573$as_echo_n "checking dynamic linker characteristics... " >&6; }
18574
18575library_names_spec=
18576libname_spec='lib$name'
18577soname_spec=
18578shrext_cmds=".so"
18579postinstall_cmds=
18580postuninstall_cmds=
18581finish_cmds=
18582finish_eval=
18583shlibpath_var=
18584shlibpath_overrides_runpath=unknown
18585version_type=none
18586dynamic_linker="$host_os ld.so"
18587sys_lib_dlsearch_path_spec="/lib /usr/lib"
18588need_lib_prefix=unknown
18589hardcode_into_libs=no
18590
18591# when you set need_version to no, make sure it does not cause -set_version
18592# flags to be left without arguments
18593need_version=unknown
18594
18595case $host_os in
18596aix3*)
18597 version_type=linux
18598 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18599 shlibpath_var=LIBPATH
18600
18601 # AIX 3 has no versioning support, so we append a major version to the name.
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 ;;
18604
18605aix[4-9]*)
18606 version_type=linux
18607 need_lib_prefix=no
18608 need_version=no
18609 hardcode_into_libs=yes
18610 if test "$host_cpu" = ia64; then
18611 # AIX 5 supports IA64
18612 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18613 shlibpath_var=LD_LIBRARY_PATH
18614 else
18615 # With GCC up to 2.95.x, collect2 would create an import file
18616 # for dependence libraries. The import file would start with
18617 # the line `#! .'. This would cause the generated library to
18618 # depend on `.', always an invalid library. This was fixed in
18619 # development snapshots of GCC prior to 3.0.
18620 case $host_os in
18621 aix4 | aix4.[01] | aix4.[01].*)
18622 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18623 echo ' yes '
18624 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18625 :
18626 else
18627 can_build_shared=no
18628 fi
18629 ;;
18630 esac
18631 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18632 # soname into executable. Probably we can add versioning support to
18633 # collect2, so additional links can be useful in future.
18634 if test "$aix_use_runtimelinking" = yes; then
18635 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18636 # instead of lib<name>.a to let people know that these are not
18637 # typical AIX shared libraries.
18638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18639 else
18640 # We preserve .a as extension for shared libraries through AIX4.2
18641 # and later when we are not doing run time linking.
18642 library_names_spec='${libname}${release}.a $libname.a'
18643 soname_spec='${libname}${release}${shared_ext}$major'
18644 fi
18645 shlibpath_var=LIBPATH
18646 fi
18647 ;;
18648
18649amigaos*)
18650 case $host_cpu in
18651 powerpc)
18652 # Since July 2007 AmigaOS4 officially supports .so libraries.
18653 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18655 ;;
18656 m68k)
18657 library_names_spec='$libname.ixlibrary $libname.a'
18658 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18659 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'
18660 ;;
18661 esac
18662 ;;
18663
18664beos*)
18665 library_names_spec='${libname}${shared_ext}'
18666 dynamic_linker="$host_os ld.so"
18667 shlibpath_var=LIBRARY_PATH
18668 ;;
18669
18670bsdi[45]*)
18671 version_type=linux
18672 need_version=no
18673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18674 soname_spec='${libname}${release}${shared_ext}$major'
18675 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18676 shlibpath_var=LD_LIBRARY_PATH
18677 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18678 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18679 # the default ld.so.conf also contains /usr/contrib/lib and
18680 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18681 # libtool to hard-code these into programs
18682 ;;
18683
18684cygwin* | mingw* | pw32* | cegcc*)
18685 version_type=windows
18686 shrext_cmds=".dll"
18687 need_version=no
18688 need_lib_prefix=no
18689
18690 case $GCC,$host_os in
18691 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18692 library_names_spec='$libname.dll.a'
18693 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18694 postinstall_cmds='base_file=`basename \${file}`~
18695 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18696 dldir=$destdir/`dirname \$dlpath`~
18697 test -d \$dldir || mkdir -p \$dldir~
18698 $install_prog $dir/$dlname \$dldir/$dlname~
18699 chmod a+x \$dldir/$dlname~
18700 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18701 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18702 fi'
18703 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18704 dlpath=$dir/\$dldll~
18705 $RM \$dlpath'
18706 shlibpath_overrides_runpath=yes
18707
18708 case $host_os in
18709 cygwin*)
18710 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18711 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18712 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18713 ;;
18714 mingw* | cegcc*)
18715 # MinGW DLLs use traditional 'lib' prefix
18716 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18717 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18718 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18719 # It is most probably a Windows format PATH printed by
18720 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18721 # path with ; separators, and with drive letters. We can handle the
18722 # drive letters (cygwin fileutils understands them), so leave them,
18723 # especially as we might pass files found there to a mingw objdump,
18724 # which wouldn't understand a cygwinified path. Ahh.
18725 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18726 else
18727 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18728 fi
18729 ;;
18730 pw32*)
18731 # pw32 DLLs use 'pw' prefix rather than 'lib'
18732 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18733 ;;
18734 esac
18735 ;;
18736
18737 *)
18738 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18739 ;;
18740 esac
18741 dynamic_linker='Win32 ld.exe'
18742 # FIXME: first we should search . and the directory the executable is in
18743 shlibpath_var=PATH
18744 ;;
18745
18746darwin* | rhapsody*)
18747 dynamic_linker="$host_os dyld"
18748 version_type=darwin
18749 need_lib_prefix=no
18750 need_version=no
18751 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18752 soname_spec='${libname}${release}${major}$shared_ext'
18753 shlibpath_overrides_runpath=yes
18754 shlibpath_var=DYLD_LIBRARY_PATH
18755 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18756
18757 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18758 ;;
18759
18760dgux*)
18761 version_type=linux
18762 need_lib_prefix=no
18763 need_version=no
18764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18765 soname_spec='${libname}${release}${shared_ext}$major'
18766 shlibpath_var=LD_LIBRARY_PATH
18767 ;;
18768
18769freebsd1*)
18770 dynamic_linker=no
18771 ;;
18772
18773freebsd* | dragonfly*)
18774 # DragonFly does not have aout. When/if they implement a new
18775 # versioning mechanism, adjust this.
18776 if test -x /usr/bin/objformat; then
18777 objformat=`/usr/bin/objformat`
18778 else
18779 case $host_os in
18780 freebsd[123]*) objformat=aout ;;
18781 *) objformat=elf ;;
18782 esac
18783 fi
18784 version_type=freebsd-$objformat
18785 case $version_type in
18786 freebsd-elf*)
18787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18788 need_version=no
18789 need_lib_prefix=no
18790 ;;
18791 freebsd-*)
18792 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18793 need_version=yes
18794 ;;
18795 esac
18796 shlibpath_var=LD_LIBRARY_PATH
18797 case $host_os in
18798 freebsd2*)
18799 shlibpath_overrides_runpath=yes
18800 ;;
18801 freebsd3.[01]* | freebsdelf3.[01]*)
18802 shlibpath_overrides_runpath=yes
18803 hardcode_into_libs=yes
18804 ;;
18805 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18806 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18807 shlibpath_overrides_runpath=no
18808 hardcode_into_libs=yes
18809 ;;
18810 *) # from 4.6 on, and DragonFly
18811 shlibpath_overrides_runpath=yes
18812 hardcode_into_libs=yes
18813 ;;
18814 esac
18815 ;;
18816
18817gnu*)
18818 version_type=linux
18819 need_lib_prefix=no
18820 need_version=no
18821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18822 soname_spec='${libname}${release}${shared_ext}$major'
18823 shlibpath_var=LD_LIBRARY_PATH
18824 hardcode_into_libs=yes
18825 ;;
18826
18827hpux9* | hpux10* | hpux11*)
18828 # Give a soname corresponding to the major version so that dld.sl refuses to
18829 # link against other versions.
18830 version_type=sunos
18831 need_lib_prefix=no
18832 need_version=no
18833 case $host_cpu in
18834 ia64*)
18835 shrext_cmds='.so'
18836 hardcode_into_libs=yes
18837 dynamic_linker="$host_os dld.so"
18838 shlibpath_var=LD_LIBRARY_PATH
18839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18841 soname_spec='${libname}${release}${shared_ext}$major'
18842 if test "X$HPUX_IA64_MODE" = X32; then
18843 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18844 else
18845 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18846 fi
18847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18848 ;;
18849 hppa*64*)
18850 shrext_cmds='.sl'
18851 hardcode_into_libs=yes
18852 dynamic_linker="$host_os dld.sl"
18853 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18856 soname_spec='${libname}${release}${shared_ext}$major'
18857 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18859 ;;
18860 *)
18861 shrext_cmds='.sl'
18862 dynamic_linker="$host_os dld.sl"
18863 shlibpath_var=SHLIB_PATH
18864 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18866 soname_spec='${libname}${release}${shared_ext}$major'
18867 ;;
18868 esac
18869 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18870 postinstall_cmds='chmod 555 $lib'
18871 ;;
18872
18873interix[3-9]*)
18874 version_type=linux
18875 need_lib_prefix=no
18876 need_version=no
18877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18878 soname_spec='${libname}${release}${shared_ext}$major'
18879 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18880 shlibpath_var=LD_LIBRARY_PATH
18881 shlibpath_overrides_runpath=no
18882 hardcode_into_libs=yes
18883 ;;
18884
18885irix5* | irix6* | nonstopux*)
18886 case $host_os in
18887 nonstopux*) version_type=nonstopux ;;
18888 *)
18889 if test "$lt_cv_prog_gnu_ld" = yes; then
18890 version_type=linux
18891 else
18892 version_type=irix
18893 fi ;;
18894 esac
18895 need_lib_prefix=no
18896 need_version=no
18897 soname_spec='${libname}${release}${shared_ext}$major'
18898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18899 case $host_os in
18900 irix5* | nonstopux*)
18901 libsuff= shlibsuff=
18902 ;;
18903 *)
18904 case $LD in # libtool.m4 will add one of these switches to LD
18905 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18906 libsuff= shlibsuff= libmagic=32-bit;;
18907 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18908 libsuff=32 shlibsuff=N32 libmagic=N32;;
18909 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18910 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18911 *) libsuff= shlibsuff= libmagic=never-match;;
18912 esac
18913 ;;
18914 esac
18915 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18916 shlibpath_overrides_runpath=no
18917 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18918 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18919 hardcode_into_libs=yes
18920 ;;
18921
18922# No shared lib support for Linux oldld, aout, or coff.
18923linux*oldld* | linux*aout* | linux*coff*)
18924 dynamic_linker=no
18925 ;;
18926
18927# This must be Linux ELF.
18928linux* | k*bsd*-gnu)
18929 version_type=linux
18930 need_lib_prefix=no
18931 need_version=no
18932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18933 soname_spec='${libname}${release}${shared_ext}$major'
18934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18935 shlibpath_var=LD_LIBRARY_PATH
18936 shlibpath_overrides_runpath=no
18937 # Some binutils ld are patched to set DT_RUNPATH
18938 save_LDFLAGS=$LDFLAGS
18939 save_libdir=$libdir
18940 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18941 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18942 cat >conftest.$ac_ext <<_ACEOF
18943/* confdefs.h. */
18944_ACEOF
18945cat confdefs.h >>conftest.$ac_ext
18946cat >>conftest.$ac_ext <<_ACEOF
18947/* end confdefs.h. */
18948
18949int
18950main ()
18951{
18952
18953 ;
18954 return 0;
18955}
18956_ACEOF
18957rm -f conftest.$ac_objext conftest$ac_exeext
18958if { (ac_try="$ac_link"
18959case "(($ac_try" in
18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961 *) ac_try_echo=$ac_try;;
18962esac
18963eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18964$as_echo "$ac_try_echo") >&5
18965 (eval "$ac_link") 2>conftest.er1
18966 ac_status=$?
18967 grep -v '^ *+' conftest.er1 >conftest.err
18968 rm -f conftest.er1
18969 cat conftest.err >&5
18970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18971 (exit $ac_status); } && {
18972 test -z "$ac_cxx_werror_flag" ||
18973 test ! -s conftest.err
18974 } && test -s conftest$ac_exeext && {
18975 test "$cross_compiling" = yes ||
18976 $as_test_x conftest$ac_exeext
18977 }; then
18978 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
18979 shlibpath_overrides_runpath=yes
18980fi
18981
18982else
18983 $as_echo "$as_me: failed program was:" >&5
18984sed 's/^/| /' conftest.$ac_ext >&5
18985
18986
18987fi
18988
18989rm -rf conftest.dSYM
18990rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18991 conftest$ac_exeext conftest.$ac_ext
18992 LDFLAGS=$save_LDFLAGS
18993 libdir=$save_libdir
18994
18995 # This implies no fast_install, which is unacceptable.
18996 # Some rework will be needed to allow for fast_install
18997 # before this can be enabled.
18998 hardcode_into_libs=yes
18999
19000 # Add ABI-specific directories to the system library path.
19001 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19002
19003 # Append ld.so.conf contents to the search path
19004 if test -f /etc/ld.so.conf; then
19005 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' ' '`
19006 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19007 fi
19008
19009 # We used to test for /lib/ld.so.1 and disable shared libraries on
19010 # powerpc, because MkLinux only supported shared libraries with the
19011 # GNU dynamic linker. Since this was broken with cross compilers,
19012 # most powerpc-linux boxes support dynamic linking these days and
19013 # people can always --disable-shared, the test was removed, and we
19014 # assume the GNU/Linux dynamic linker is in use.
19015 dynamic_linker='GNU/Linux ld.so'
19016 ;;
19017
19018netbsd*)
19019 version_type=sunos
19020 need_lib_prefix=no
19021 need_version=no
19022 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19024 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19025 dynamic_linker='NetBSD (a.out) ld.so'
19026 else
19027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19028 soname_spec='${libname}${release}${shared_ext}$major'
19029 dynamic_linker='NetBSD ld.elf_so'
19030 fi
19031 shlibpath_var=LD_LIBRARY_PATH
19032 shlibpath_overrides_runpath=yes
19033 hardcode_into_libs=yes
19034 ;;
19035
19036newsos6)
19037 version_type=linux
19038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19039 shlibpath_var=LD_LIBRARY_PATH
19040 shlibpath_overrides_runpath=yes
19041 ;;
19042
19043*nto* | *qnx*)
19044 version_type=qnx
19045 need_lib_prefix=no
19046 need_version=no
19047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19048 soname_spec='${libname}${release}${shared_ext}$major'
19049 shlibpath_var=LD_LIBRARY_PATH
19050 shlibpath_overrides_runpath=no
19051 hardcode_into_libs=yes
19052 dynamic_linker='ldqnx.so'
19053 ;;
19054
19055openbsd*)
19056 version_type=sunos
19057 sys_lib_dlsearch_path_spec="/usr/lib"
19058 need_lib_prefix=no
19059 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19060 case $host_os in
19061 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19062 *) need_version=no ;;
19063 esac
19064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19066 shlibpath_var=LD_LIBRARY_PATH
19067 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19068 case $host_os in
19069 openbsd2.[89] | openbsd2.[89].*)
19070 shlibpath_overrides_runpath=no
19071 ;;
19072 *)
19073 shlibpath_overrides_runpath=yes
19074 ;;
19075 esac
19076 else
19077 shlibpath_overrides_runpath=yes
19078 fi
19079 ;;
19080
19081os2*)
19082 libname_spec='$name'
19083 shrext_cmds=".dll"
19084 need_lib_prefix=no
19085 library_names_spec='$libname${shared_ext} $libname.a'
19086 dynamic_linker='OS/2 ld.exe'
19087 shlibpath_var=LIBPATH
19088 ;;
19089
19090osf3* | osf4* | osf5*)
19091 version_type=osf
19092 need_lib_prefix=no
19093 need_version=no
19094 soname_spec='${libname}${release}${shared_ext}$major'
19095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19096 shlibpath_var=LD_LIBRARY_PATH
19097 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19098 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19099 ;;
19100
19101rdos*)
19102 dynamic_linker=no
19103 ;;
19104
19105solaris*)
19106 version_type=linux
19107 need_lib_prefix=no
19108 need_version=no
19109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19110 soname_spec='${libname}${release}${shared_ext}$major'
19111 shlibpath_var=LD_LIBRARY_PATH
19112 shlibpath_overrides_runpath=yes
19113 hardcode_into_libs=yes
19114 # ldd complains unless libraries are executable
19115 postinstall_cmds='chmod +x $lib'
19116 ;;
19117
19118sunos4*)
19119 version_type=sunos
19120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19121 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19122 shlibpath_var=LD_LIBRARY_PATH
19123 shlibpath_overrides_runpath=yes
19124 if test "$with_gnu_ld" = yes; then
19125 need_lib_prefix=no
19126 fi
19127 need_version=yes
19128 ;;
19129
19130sysv4 | sysv4.3*)
19131 version_type=linux
19132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19133 soname_spec='${libname}${release}${shared_ext}$major'
19134 shlibpath_var=LD_LIBRARY_PATH
19135 case $host_vendor in
19136 sni)
19137 shlibpath_overrides_runpath=no
19138 need_lib_prefix=no
19139 runpath_var=LD_RUN_PATH
19140 ;;
19141 siemens)
19142 need_lib_prefix=no
19143 ;;
19144 motorola)
19145 need_lib_prefix=no
19146 need_version=no
19147 shlibpath_overrides_runpath=no
19148 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19149 ;;
19150 esac
19151 ;;
19152
19153sysv4*MP*)
19154 if test -d /usr/nec ;then
19155 version_type=linux
19156 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19157 soname_spec='$libname${shared_ext}.$major'
19158 shlibpath_var=LD_LIBRARY_PATH
19159 fi
19160 ;;
19161
19162sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19163 version_type=freebsd-elf
19164 need_lib_prefix=no
19165 need_version=no
19166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19167 soname_spec='${libname}${release}${shared_ext}$major'
19168 shlibpath_var=LD_LIBRARY_PATH
19169 shlibpath_overrides_runpath=yes
19170 hardcode_into_libs=yes
19171 if test "$with_gnu_ld" = yes; then
19172 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19173 else
19174 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19175 case $host_os in
19176 sco3.2v5*)
19177 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19178 ;;
19179 esac
19180 fi
19181 sys_lib_dlsearch_path_spec='/usr/lib'
19182 ;;
19183
19184tpf*)
19185 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19186 version_type=linux
19187 need_lib_prefix=no
19188 need_version=no
19189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19190 shlibpath_var=LD_LIBRARY_PATH
19191 shlibpath_overrides_runpath=no
19192 hardcode_into_libs=yes
19193 ;;
19194
19195uts4*)
19196 version_type=linux
19197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19198 soname_spec='${libname}${release}${shared_ext}$major'
19199 shlibpath_var=LD_LIBRARY_PATH
19200 ;;
19201
19202*)
19203 dynamic_linker=no
19204 ;;
19205esac
19206{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19207$as_echo "$dynamic_linker" >&6; }
19208test "$dynamic_linker" = no && can_build_shared=no
19209
19210variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19211if test "$GCC" = yes; then
19212 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19213fi
19214
19215if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19216 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19217fi
19218if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19219 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19220fi
19221
19222
19223
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 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19258$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19259hardcode_action_CXX=
19260if test -n "$hardcode_libdir_flag_spec_CXX" ||
19261 test -n "$runpath_var_CXX" ||
19262 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19263
19264 # We can hardcode non-existent directories.
19265 if test "$hardcode_direct_CXX" != no &&
19266 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19267 # have to relink, otherwise we might link with an installed library
19268 # when we should be linking with a yet-to-be-installed one
19269 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19270 test "$hardcode_minus_L_CXX" != no; then
19271 # Linking always hardcodes the temporary library directory.
19272 hardcode_action_CXX=relink
19273 else
19274 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19275 hardcode_action_CXX=immediate
19276 fi
19277else
19278 # We cannot hardcode anything, or else we can only hardcode existing
19279 # directories.
19280 hardcode_action_CXX=unsupported
19281fi
19282{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
19283$as_echo "$hardcode_action_CXX" >&6; }
19284
19285if test "$hardcode_action_CXX" = relink ||
19286 test "$inherit_rpath_CXX" = yes; then
19287 # Fast installation is not supported
19288 enable_fast_install=no
19289elif test "$shlibpath_overrides_runpath" = yes ||
19290 test "$enable_shared" = no; then
19291 # Fast installation is not necessary
19292 enable_fast_install=needless
19293fi
19294
19295
19296
19297
19298
19299
19300
19301 fi # test -n "$compiler"
19302
19303 CC=$lt_save_CC
19304 LDCXX=$LD
19305 LD=$lt_save_LD
19306 GCC=$lt_save_GCC
19307 with_gnu_ld=$lt_save_with_gnu_ld
19308 lt_cv_path_LDCXX=$lt_cv_path_LD
19309 lt_cv_path_LD=$lt_save_path_LD
19310 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19311 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19312fi # test "$_lt_caught_CXX_error" != yes
19313
19314ac_ext=c
19315ac_cpp='$CPP $CPPFLAGS'
19316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19318ac_compiler_gnu=$ac_cv_c_compiler_gnu
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329
19330
19331
19332 ac_config_commands="$ac_config_commands libtool"
19333
19334
19335
19336
19337# Only expand once:
19338
19339
19340
19341
19342
19343# Configure libltdl
19344
19345
19346
19347
19348
19349
19350
19351
19352{ $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
19353$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19354if test "${libltdl_cv_shlibext+set}" = set; then
19355 $as_echo_n "(cached) " >&6
19356else
19357
19358module=yes
19359eval libltdl_cv_shlibext=$shrext_cmds
19360
19361fi
19362{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
19363$as_echo "$libltdl_cv_shlibext" >&6; }
19364if test -n "$libltdl_cv_shlibext"; then
19365
19366cat >>confdefs.h <<_ACEOF
19367#define LT_MODULE_EXT "$libltdl_cv_shlibext"
19368_ACEOF
19369
19370fi
19371
19372{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
19373$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19374if test "${lt_cv_module_path_var+set}" = set; then
19375 $as_echo_n "(cached) " >&6
19376else
19377 lt_cv_module_path_var="$shlibpath_var"
19378fi
19379{ $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
19380$as_echo "$lt_cv_module_path_var" >&6; }
19381if test -n "$lt_cv_module_path_var"; then
19382
19383cat >>confdefs.h <<_ACEOF
19384#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19385_ACEOF
19386
19387fi
19388
19389{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
19390$as_echo_n "checking for the default library search path... " >&6; }
19391if test "${lt_cv_sys_dlsearch_path+set}" = set; then
19392 $as_echo_n "(cached) " >&6
19393else
19394 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19395fi
19396{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
19397$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19398if test -n "$lt_cv_sys_dlsearch_path"; then
19399 sys_dlsearch_path=
19400 for dir in $lt_cv_sys_dlsearch_path; do
19401 if test -z "$sys_dlsearch_path"; then
19402 sys_dlsearch_path="$dir"
19403 else
19404 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19405 fi
19406 done
19407
19408cat >>confdefs.h <<_ACEOF
19409#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19410_ACEOF
19411
19412fi
19413
19414
19415LT_DLLOADERS=
19416
19417
19418ac_ext=c
19419ac_cpp='$CPP $CPPFLAGS'
19420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19422ac_compiler_gnu=$ac_cv_c_compiler_gnu
19423
19424
19425LIBADD_DLOPEN=
19426{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19427$as_echo_n "checking for library containing dlopen... " >&6; }
19428if test "${ac_cv_search_dlopen+set}" = set; then
19429 $as_echo_n "(cached) " >&6
19430else
19431 ac_func_search_save_LIBS=$LIBS
19432cat >conftest.$ac_ext <<_ACEOF
19433/* confdefs.h. */
19434_ACEOF
19435cat confdefs.h >>conftest.$ac_ext
19436cat >>conftest.$ac_ext <<_ACEOF
19437/* end confdefs.h. */
19438
19439/* Override any GCC internal prototype to avoid an error.
19440 Use char because int might match the return type of a GCC
19441 builtin and then its argument prototype would still apply. */
19442#ifdef __cplusplus
19443extern "C"
19444#endif
19445char dlopen ();
19446int
19447main ()
19448{
19449return dlopen ();
19450 ;
19451 return 0;
19452}
19453_ACEOF
19454for ac_lib in '' dl; do
19455 if test -z "$ac_lib"; then
19456 ac_res="none required"
19457 else
19458 ac_res=-l$ac_lib
19459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19460 fi
19461 rm -f conftest.$ac_objext conftest$ac_exeext
19462if { (ac_try="$ac_link"
19463case "(($ac_try" in
19464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19465 *) ac_try_echo=$ac_try;;
19466esac
19467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19468$as_echo "$ac_try_echo") >&5
19469 (eval "$ac_link") 2>conftest.er1
19470 ac_status=$?
19471 grep -v '^ *+' conftest.er1 >conftest.err
19472 rm -f conftest.er1
19473 cat conftest.err >&5
19474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); } && {
19476 test -z "$ac_c_werror_flag" ||
19477 test ! -s conftest.err
19478 } && test -s conftest$ac_exeext && {
19479 test "$cross_compiling" = yes ||
19480 $as_test_x conftest$ac_exeext
19481 }; then
19482 ac_cv_search_dlopen=$ac_res
19483else
19484 $as_echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487
19488fi
19489
19490rm -rf conftest.dSYM
19491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19492 conftest$ac_exeext
19493 if test "${ac_cv_search_dlopen+set}" = set; then
19494 break
19495fi
19496done
19497if test "${ac_cv_search_dlopen+set}" = set; then
19498 :
19499else
19500 ac_cv_search_dlopen=no
19501fi
19502rm conftest.$ac_ext
19503LIBS=$ac_func_search_save_LIBS
19504fi
19505{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19506$as_echo "$ac_cv_search_dlopen" >&6; }
19507ac_res=$ac_cv_search_dlopen
19508if test "$ac_res" != no; then
19509 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19510
19511cat >>confdefs.h <<\_ACEOF
19512#define HAVE_LIBDL 1
19513_ACEOF
19514
19515 if test "$ac_cv_search_dlopen" != "none required" ; then
19516 LIBADD_DLOPEN="-ldl"
19517 fi
19518 libltdl_cv_lib_dl_dlopen="yes"
19519 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19520else
19521 cat >conftest.$ac_ext <<_ACEOF
19522/* confdefs.h. */
19523_ACEOF
19524cat confdefs.h >>conftest.$ac_ext
19525cat >>conftest.$ac_ext <<_ACEOF
19526/* end confdefs.h. */
19527#if HAVE_DLFCN_H
19528# include <dlfcn.h>
19529#endif
19530
19531int
19532main ()
19533{
19534dlopen(0, 0);
19535 ;
19536 return 0;
19537}
19538_ACEOF
19539rm -f conftest.$ac_objext conftest$ac_exeext
19540if { (ac_try="$ac_link"
19541case "(($ac_try" in
19542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543 *) ac_try_echo=$ac_try;;
19544esac
19545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19546$as_echo "$ac_try_echo") >&5
19547 (eval "$ac_link") 2>conftest.er1
19548 ac_status=$?
19549 grep -v '^ *+' conftest.er1 >conftest.err
19550 rm -f conftest.er1
19551 cat conftest.err >&5
19552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } && {
19554 test -z "$ac_c_werror_flag" ||
19555 test ! -s conftest.err
19556 } && test -s conftest$ac_exeext && {
19557 test "$cross_compiling" = yes ||
19558 $as_test_x conftest$ac_exeext
19559 }; then
19560
19561cat >>confdefs.h <<\_ACEOF
19562#define HAVE_LIBDL 1
19563_ACEOF
19564
19565 libltdl_cv_func_dlopen="yes"
19566 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19567else
19568 $as_echo "$as_me: failed program was:" >&5
19569sed 's/^/| /' conftest.$ac_ext >&5
19570
19571 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19572$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19573if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19574 $as_echo_n "(cached) " >&6
19575else
19576 ac_check_lib_save_LIBS=$LIBS
19577LIBS="-lsvld $LIBS"
19578cat >conftest.$ac_ext <<_ACEOF
19579/* confdefs.h. */
19580_ACEOF
19581cat confdefs.h >>conftest.$ac_ext
19582cat >>conftest.$ac_ext <<_ACEOF
19583/* end confdefs.h. */
19584
19585/* Override any GCC internal prototype to avoid an error.
19586 Use char because int might match the return type of a GCC
19587 builtin and then its argument prototype would still apply. */
19588#ifdef __cplusplus
19589extern "C"
19590#endif
19591char dlopen ();
19592int
19593main ()
19594{
19595return dlopen ();
19596 ;
19597 return 0;
19598}
19599_ACEOF
19600rm -f conftest.$ac_objext conftest$ac_exeext
19601if { (ac_try="$ac_link"
19602case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605esac
19606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19607$as_echo "$ac_try_echo") >&5
19608 (eval "$ac_link") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest$ac_exeext && {
19618 test "$cross_compiling" = yes ||
19619 $as_test_x conftest$ac_exeext
19620 }; then
19621 ac_cv_lib_svld_dlopen=yes
19622else
19623 $as_echo "$as_me: failed program was:" >&5
19624sed 's/^/| /' conftest.$ac_ext >&5
19625
19626 ac_cv_lib_svld_dlopen=no
19627fi
19628
19629rm -rf conftest.dSYM
19630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19631 conftest$ac_exeext conftest.$ac_ext
19632LIBS=$ac_check_lib_save_LIBS
19633fi
19634{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19635$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19636if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
19637
19638cat >>confdefs.h <<\_ACEOF
19639#define HAVE_LIBDL 1
19640_ACEOF
19641
19642 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19643 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19644fi
19645
19646fi
19647
19648rm -rf conftest.dSYM
19649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19650 conftest$ac_exeext conftest.$ac_ext
19651fi
19652
19653if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19654then
19655 lt_save_LIBS="$LIBS"
19656 LIBS="$LIBS $LIBADD_DLOPEN"
19657
19658for ac_func in dlerror
19659do
19660as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19661{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19662$as_echo_n "checking for $ac_func... " >&6; }
19663if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19664 $as_echo_n "(cached) " >&6
19665else
19666 cat >conftest.$ac_ext <<_ACEOF
19667/* confdefs.h. */
19668_ACEOF
19669cat confdefs.h >>conftest.$ac_ext
19670cat >>conftest.$ac_ext <<_ACEOF
19671/* end confdefs.h. */
19672/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19674#define $ac_func innocuous_$ac_func
19675
19676/* System header to define __stub macros and hopefully few prototypes,
19677 which can conflict with char $ac_func (); below.
19678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19679 <limits.h> exists even on freestanding compilers. */
19680
19681#ifdef __STDC__
19682# include <limits.h>
19683#else
19684# include <assert.h>
19685#endif
19686
19687#undef $ac_func
19688
19689/* Override any GCC internal prototype to avoid an error.
19690 Use char because int might match the return type of a GCC
19691 builtin and then its argument prototype would still apply. */
19692#ifdef __cplusplus
19693extern "C"
19694#endif
19695char $ac_func ();
19696/* The GNU C library defines this for functions which it implements
19697 to always fail with ENOSYS. Some functions are actually named
19698 something starting with __ and the normal name is an alias. */
19699#if defined __stub_$ac_func || defined __stub___$ac_func
19700choke me
19701#endif
19702
19703int
19704main ()
19705{
19706return $ac_func ();
19707 ;
19708 return 0;
19709}
19710_ACEOF
19711rm -f conftest.$ac_objext conftest$ac_exeext
19712if { (ac_try="$ac_link"
19713case "(($ac_try" in
19714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19715 *) ac_try_echo=$ac_try;;
19716esac
19717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19718$as_echo "$ac_try_echo") >&5
19719 (eval "$ac_link") 2>conftest.er1
19720 ac_status=$?
19721 grep -v '^ *+' conftest.er1 >conftest.err
19722 rm -f conftest.er1
19723 cat conftest.err >&5
19724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); } && {
19726 test -z "$ac_c_werror_flag" ||
19727 test ! -s conftest.err
19728 } && test -s conftest$ac_exeext && {
19729 test "$cross_compiling" = yes ||
19730 $as_test_x conftest$ac_exeext
19731 }; then
19732 eval "$as_ac_var=yes"
19733else
19734 $as_echo "$as_me: failed program was:" >&5
19735sed 's/^/| /' conftest.$ac_ext >&5
19736
19737 eval "$as_ac_var=no"
19738fi
19739
19740rm -rf conftest.dSYM
19741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19742 conftest$ac_exeext conftest.$ac_ext
19743fi
19744ac_res=`eval 'as_val=${'$as_ac_var'}
19745 $as_echo "$as_val"'`
19746 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19747$as_echo "$ac_res" >&6; }
19748as_val=`eval 'as_val=${'$as_ac_var'}
19749 $as_echo "$as_val"'`
19750 if test "x$as_val" = x""yes; then
19751 cat >>confdefs.h <<_ACEOF
19752#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19753_ACEOF
19754
19755fi
19756done
19757
19758 LIBS="$lt_save_LIBS"
19759fi
19760
19761
19762LIBADD_SHL_LOAD=
19763{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
19764$as_echo_n "checking for shl_load... " >&6; }
19765if test "${ac_cv_func_shl_load+set}" = set; then
19766 $as_echo_n "(cached) " >&6
19767else
19768 cat >conftest.$ac_ext <<_ACEOF
19769/* confdefs.h. */
19770_ACEOF
19771cat confdefs.h >>conftest.$ac_ext
19772cat >>conftest.$ac_ext <<_ACEOF
19773/* end confdefs.h. */
19774/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19775 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19776#define shl_load innocuous_shl_load
19777
19778/* System header to define __stub macros and hopefully few prototypes,
19779 which can conflict with char shl_load (); below.
19780 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19781 <limits.h> exists even on freestanding compilers. */
19782
19783#ifdef __STDC__
19784# include <limits.h>
19785#else
19786# include <assert.h>
19787#endif
19788
19789#undef shl_load
19790
19791/* Override any GCC internal prototype to avoid an error.
19792 Use char because int might match the return type of a GCC
19793 builtin and then its argument prototype would still apply. */
19794#ifdef __cplusplus
19795extern "C"
19796#endif
19797char shl_load ();
19798/* The GNU C library defines this for functions which it implements
19799 to always fail with ENOSYS. Some functions are actually named
19800 something starting with __ and the normal name is an alias. */
19801#if defined __stub_shl_load || defined __stub___shl_load
19802choke me
19803#endif
19804
19805int
19806main ()
19807{
19808return shl_load ();
19809 ;
19810 return 0;
19811}
19812_ACEOF
19813rm -f conftest.$ac_objext conftest$ac_exeext
19814if { (ac_try="$ac_link"
19815case "(($ac_try" in
19816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19817 *) ac_try_echo=$ac_try;;
19818esac
19819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19820$as_echo "$ac_try_echo") >&5
19821 (eval "$ac_link") 2>conftest.er1
19822 ac_status=$?
19823 grep -v '^ *+' conftest.er1 >conftest.err
19824 rm -f conftest.er1
19825 cat conftest.err >&5
19826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827 (exit $ac_status); } && {
19828 test -z "$ac_c_werror_flag" ||
19829 test ! -s conftest.err
19830 } && test -s conftest$ac_exeext && {
19831 test "$cross_compiling" = yes ||
19832 $as_test_x conftest$ac_exeext
19833 }; then
19834 ac_cv_func_shl_load=yes
19835else
19836 $as_echo "$as_me: failed program was:" >&5
19837sed 's/^/| /' conftest.$ac_ext >&5
19838
19839 ac_cv_func_shl_load=no
19840fi
19841
19842rm -rf conftest.dSYM
19843rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19844 conftest$ac_exeext conftest.$ac_ext
19845fi
19846{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19847$as_echo "$ac_cv_func_shl_load" >&6; }
19848if test "x$ac_cv_func_shl_load" = x""yes; then
19849
19850cat >>confdefs.h <<\_ACEOF
19851#define HAVE_SHL_LOAD 1
19852_ACEOF
19853
19854 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19855else
19856 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19857$as_echo_n "checking for shl_load in -ldld... " >&6; }
19858if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19859 $as_echo_n "(cached) " >&6
19860else
19861 ac_check_lib_save_LIBS=$LIBS
19862LIBS="-ldld $LIBS"
19863cat >conftest.$ac_ext <<_ACEOF
19864/* confdefs.h. */
19865_ACEOF
19866cat confdefs.h >>conftest.$ac_ext
19867cat >>conftest.$ac_ext <<_ACEOF
19868/* end confdefs.h. */
19869
19870/* Override any GCC internal prototype to avoid an error.
19871 Use char because int might match the return type of a GCC
19872 builtin and then its argument prototype would still apply. */
19873#ifdef __cplusplus
19874extern "C"
19875#endif
19876char shl_load ();
19877int
19878main ()
19879{
19880return shl_load ();
19881 ;
19882 return 0;
19883}
19884_ACEOF
19885rm -f conftest.$ac_objext conftest$ac_exeext
19886if { (ac_try="$ac_link"
19887case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19890esac
19891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19892$as_echo "$ac_try_echo") >&5
19893 (eval "$ac_link") 2>conftest.er1
19894 ac_status=$?
19895 grep -v '^ *+' conftest.er1 >conftest.err
19896 rm -f conftest.er1
19897 cat conftest.err >&5
19898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } && {
19900 test -z "$ac_c_werror_flag" ||
19901 test ! -s conftest.err
19902 } && test -s conftest$ac_exeext && {
19903 test "$cross_compiling" = yes ||
19904 $as_test_x conftest$ac_exeext
19905 }; then
19906 ac_cv_lib_dld_shl_load=yes
19907else
19908 $as_echo "$as_me: failed program was:" >&5
19909sed 's/^/| /' conftest.$ac_ext >&5
19910
19911 ac_cv_lib_dld_shl_load=no
19912fi
19913
19914rm -rf conftest.dSYM
19915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19916 conftest$ac_exeext conftest.$ac_ext
19917LIBS=$ac_check_lib_save_LIBS
19918fi
19919{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19920$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19921if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
19922
19923cat >>confdefs.h <<\_ACEOF
19924#define HAVE_SHL_LOAD 1
19925_ACEOF
19926
19927 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19928 LIBADD_SHL_LOAD="-ldld"
19929fi
19930
19931fi
19932
19933
19934
19935case $host_os in
19936darwin[1567].*)
19937# We only want this for pre-Mac OS X 10.4.
19938 { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
19939$as_echo_n "checking for _dyld_func_lookup... " >&6; }
19940if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
19941 $as_echo_n "(cached) " >&6
19942else
19943 cat >conftest.$ac_ext <<_ACEOF
19944/* confdefs.h. */
19945_ACEOF
19946cat confdefs.h >>conftest.$ac_ext
19947cat >>conftest.$ac_ext <<_ACEOF
19948/* end confdefs.h. */
19949/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
19950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19951#define _dyld_func_lookup innocuous__dyld_func_lookup
19952
19953/* System header to define __stub macros and hopefully few prototypes,
19954 which can conflict with char _dyld_func_lookup (); below.
19955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19956 <limits.h> exists even on freestanding compilers. */
19957
19958#ifdef __STDC__
19959# include <limits.h>
19960#else
19961# include <assert.h>
19962#endif
19963
19964#undef _dyld_func_lookup
19965
19966/* Override any GCC internal prototype to avoid an error.
19967 Use char because int might match the return type of a GCC
19968 builtin and then its argument prototype would still apply. */
19969#ifdef __cplusplus
19970extern "C"
19971#endif
19972char _dyld_func_lookup ();
19973/* The GNU C library defines this for functions which it implements
19974 to always fail with ENOSYS. Some functions are actually named
19975 something starting with __ and the normal name is an alias. */
19976#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
19977choke me
19978#endif
19979
19980int
19981main ()
19982{
19983return _dyld_func_lookup ();
19984 ;
19985 return 0;
19986}
19987_ACEOF
19988rm -f conftest.$ac_objext conftest$ac_exeext
19989if { (ac_try="$ac_link"
19990case "(($ac_try" in
19991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992 *) ac_try_echo=$ac_try;;
19993esac
19994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19995$as_echo "$ac_try_echo") >&5
19996 (eval "$ac_link") 2>conftest.er1
19997 ac_status=$?
19998 grep -v '^ *+' conftest.er1 >conftest.err
19999 rm -f conftest.er1
20000 cat conftest.err >&5
20001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002 (exit $ac_status); } && {
20003 test -z "$ac_c_werror_flag" ||
20004 test ! -s conftest.err
20005 } && test -s conftest$ac_exeext && {
20006 test "$cross_compiling" = yes ||
20007 $as_test_x conftest$ac_exeext
20008 }; then
20009 ac_cv_func__dyld_func_lookup=yes
20010else
20011 $as_echo "$as_me: failed program was:" >&5
20012sed 's/^/| /' conftest.$ac_ext >&5
20013
20014 ac_cv_func__dyld_func_lookup=no
20015fi
20016
20017rm -rf conftest.dSYM
20018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20019 conftest$ac_exeext conftest.$ac_ext
20020fi
20021{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
20022$as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
20023if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
20024
20025cat >>confdefs.h <<\_ACEOF
20026#define HAVE_DYLD 1
20027_ACEOF
20028
20029 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20030fi
20031
20032 ;;
20033beos*)
20034 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20035 ;;
20036cygwin* | mingw* | os2* | pw32*)
20037 { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
20038$as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
20039if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
20040 $as_echo_n "(cached) " >&6
20041else
20042 cat >conftest.$ac_ext <<_ACEOF
20043/* confdefs.h. */
20044_ACEOF
20045cat confdefs.h >>conftest.$ac_ext
20046cat >>conftest.$ac_ext <<_ACEOF
20047/* end confdefs.h. */
20048#include <sys/cygwin.h>
20049
20050int
20051main ()
20052{
20053#ifndef cygwin_conv_path
20054 (void) cygwin_conv_path;
20055#endif
20056
20057 ;
20058 return 0;
20059}
20060_ACEOF
20061rm -f conftest.$ac_objext
20062if { (ac_try="$ac_compile"
20063case "(($ac_try" in
20064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20065 *) ac_try_echo=$ac_try;;
20066esac
20067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20068$as_echo "$ac_try_echo") >&5
20069 (eval "$ac_compile") 2>conftest.er1
20070 ac_status=$?
20071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
20074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } && {
20076 test -z "$ac_c_werror_flag" ||
20077 test ! -s conftest.err
20078 } && test -s conftest.$ac_objext; then
20079 ac_cv_have_decl_cygwin_conv_path=yes
20080else
20081 $as_echo "$as_me: failed program was:" >&5
20082sed 's/^/| /' conftest.$ac_ext >&5
20083
20084 ac_cv_have_decl_cygwin_conv_path=no
20085fi
20086
20087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20088fi
20089{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
20090$as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
20091if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
20092
20093cat >>confdefs.h <<_ACEOF
20094#define HAVE_DECL_CYGWIN_CONV_PATH 1
20095_ACEOF
20096
20097
20098else
20099 cat >>confdefs.h <<_ACEOF
20100#define HAVE_DECL_CYGWIN_CONV_PATH 0
20101_ACEOF
20102
20103
20104fi
20105
20106
20107 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20108 ;;
20109esac
20110
20111{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
20112$as_echo_n "checking for dld_link in -ldld... " >&6; }
20113if test "${ac_cv_lib_dld_dld_link+set}" = set; then
20114 $as_echo_n "(cached) " >&6
20115else
20116 ac_check_lib_save_LIBS=$LIBS
20117LIBS="-ldld $LIBS"
20118cat >conftest.$ac_ext <<_ACEOF
20119/* confdefs.h. */
20120_ACEOF
20121cat confdefs.h >>conftest.$ac_ext
20122cat >>conftest.$ac_ext <<_ACEOF
20123/* end confdefs.h. */
20124
20125/* Override any GCC internal prototype to avoid an error.
20126 Use char because int might match the return type of a GCC
20127 builtin and then its argument prototype would still apply. */
20128#ifdef __cplusplus
20129extern "C"
20130#endif
20131char dld_link ();
20132int
20133main ()
20134{
20135return dld_link ();
20136 ;
20137 return 0;
20138}
20139_ACEOF
20140rm -f conftest.$ac_objext conftest$ac_exeext
20141if { (ac_try="$ac_link"
20142case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20145esac
20146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20147$as_echo "$ac_try_echo") >&5
20148 (eval "$ac_link") 2>conftest.er1
20149 ac_status=$?
20150 grep -v '^ *+' conftest.er1 >conftest.err
20151 rm -f conftest.er1
20152 cat conftest.err >&5
20153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } && {
20155 test -z "$ac_c_werror_flag" ||
20156 test ! -s conftest.err
20157 } && test -s conftest$ac_exeext && {
20158 test "$cross_compiling" = yes ||
20159 $as_test_x conftest$ac_exeext
20160 }; then
20161 ac_cv_lib_dld_dld_link=yes
20162else
20163 $as_echo "$as_me: failed program was:" >&5
20164sed 's/^/| /' conftest.$ac_ext >&5
20165
20166 ac_cv_lib_dld_dld_link=no
20167fi
20168
20169rm -rf conftest.dSYM
20170rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20171 conftest$ac_exeext conftest.$ac_ext
20172LIBS=$ac_check_lib_save_LIBS
20173fi
20174{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
20175$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20176if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
20177
20178cat >>confdefs.h <<\_ACEOF
20179#define HAVE_DLD 1
20180_ACEOF
20181
20182 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20183fi
20184
20185
20186
20187
20188LT_DLPREOPEN=
20189if test -n "$LT_DLLOADERS"
20190then
20191 for lt_loader in $LT_DLLOADERS; do
20192 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20193 done
20194
20195cat >>confdefs.h <<\_ACEOF
20196#define HAVE_LIBDLLOADER 1
20197_ACEOF
20198
20199fi
20200
20201
20202LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20203
20204
20205ac_ext=c
20206ac_cpp='$CPP $CPPFLAGS'
20207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20209ac_compiler_gnu=$ac_cv_c_compiler_gnu
20210
20211
20212{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
20213$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20214if test "${lt_cv_sys_symbol_underscore+set}" = set; then
20215 $as_echo_n "(cached) " >&6
20216else
20217 lt_cv_sys_symbol_underscore=no
20218 cat > conftest.$ac_ext <<_LT_EOF
20219void nm_test_func(){}
20220int main(){nm_test_func;return 0;}
20221_LT_EOF
20222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20223 (eval $ac_compile) 2>&5
20224 ac_status=$?
20225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20226 (exit $ac_status); }; then
20227 # Now try to grab the symbols.
20228 ac_nlist=conftest.nm
20229 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
20230 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20231 ac_status=$?
20232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20233 (exit $ac_status); } && test -s "$ac_nlist"; then
20234 # See whether the symbols have a leading underscore.
20235 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20236 lt_cv_sys_symbol_underscore=yes
20237 else
20238 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20239 :
20240 else
20241 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20242 fi
20243 fi
20244 else
20245 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20246 fi
20247 else
20248 echo "configure: failed program was:" >&5
20249 cat conftest.c >&5
20250 fi
20251 rm -rf conftest*
20252
20253fi
20254{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
20255$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20256 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20257
20258
20259if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20260 if test x"$libltdl_cv_func_dlopen" = xyes ||
20261 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20262 { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
20263$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20264if test "${libltdl_cv_need_uscore+set}" = set; then
20265 $as_echo_n "(cached) " >&6
20266else
20267 libltdl_cv_need_uscore=unknown
20268 save_LIBS="$LIBS"
20269 LIBS="$LIBS $LIBADD_DLOPEN"
20270 if test "$cross_compiling" = yes; then :
20271 libltdl_cv_need_uscore=cross
20272else
20273 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20274 lt_status=$lt_dlunknown
20275 cat > conftest.$ac_ext <<_LT_EOF
cristya0242ab2009-10-15 19:17:14 +000020276#line 20276 "configure"
cristy3ed852e2009-09-05 21:47:34 +000020277#include "confdefs.h"
20278
20279#if HAVE_DLFCN_H
20280#include <dlfcn.h>
20281#endif
20282
20283#include <stdio.h>
20284
20285#ifdef RTLD_GLOBAL
20286# define LT_DLGLOBAL RTLD_GLOBAL
20287#else
20288# ifdef DL_GLOBAL
20289# define LT_DLGLOBAL DL_GLOBAL
20290# else
20291# define LT_DLGLOBAL 0
20292# endif
20293#endif
20294
20295/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20296 find out it does not work in some platform. */
20297#ifndef LT_DLLAZY_OR_NOW
20298# ifdef RTLD_LAZY
20299# define LT_DLLAZY_OR_NOW RTLD_LAZY
20300# else
20301# ifdef DL_LAZY
20302# define LT_DLLAZY_OR_NOW DL_LAZY
20303# else
20304# ifdef RTLD_NOW
20305# define LT_DLLAZY_OR_NOW RTLD_NOW
20306# else
20307# ifdef DL_NOW
20308# define LT_DLLAZY_OR_NOW DL_NOW
20309# else
20310# define LT_DLLAZY_OR_NOW 0
20311# endif
20312# endif
20313# endif
20314# endif
20315#endif
20316
20317void fnord() { int i=42;}
20318int main ()
20319{
20320 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20321 int status = $lt_dlunknown;
20322
20323 if (self)
20324 {
20325 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20326 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20327 /* dlclose (self); */
20328 }
20329 else
20330 puts (dlerror ());
20331
20332 return status;
20333}
20334_LT_EOF
20335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20336 (eval $ac_link) 2>&5
20337 ac_status=$?
20338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20340 (./conftest; exit; ) >&5 2>/dev/null
20341 lt_status=$?
20342 case x$lt_status in
20343 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20344 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20345 x$lt_dlunknown|x*) ;;
20346 esac
20347 else :
20348 # compilation failed
20349
20350 fi
20351fi
20352rm -fr conftest*
20353
20354 LIBS="$save_LIBS"
20355
20356fi
20357{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
20358$as_echo "$libltdl_cv_need_uscore" >&6; }
20359 fi
20360fi
20361
20362if test x"$libltdl_cv_need_uscore" = xyes; then
20363
20364cat >>confdefs.h <<\_ACEOF
20365#define NEED_USCORE 1
20366_ACEOF
20367
20368fi
20369
20370{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
20371$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20372if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
20373 $as_echo_n "(cached) " >&6
20374else
20375 # PORTME does your system automatically load deplibs for dlopen?
20376 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20377 # For now, we just catch OSes we know something about -- in the
20378 # future, we'll try test this programmatically.
20379 lt_cv_sys_dlopen_deplibs=unknown
20380 case $host_os in
20381 aix3*|aix4.1.*|aix4.2.*)
20382 # Unknown whether this is true for these versions of AIX, but
20383 # we want this `case' here to explicitly catch those versions.
20384 lt_cv_sys_dlopen_deplibs=unknown
20385 ;;
20386 aix[4-9]*)
20387 lt_cv_sys_dlopen_deplibs=yes
20388 ;;
20389 amigaos*)
20390 case $host_cpu in
20391 powerpc)
20392 lt_cv_sys_dlopen_deplibs=no
20393 ;;
20394 esac
20395 ;;
20396 darwin*)
20397 # Assuming the user has installed a libdl from somewhere, this is true
20398 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20399 lt_cv_sys_dlopen_deplibs=yes
20400 ;;
20401 freebsd* | dragonfly*)
20402 lt_cv_sys_dlopen_deplibs=yes
20403 ;;
20404 gnu* | linux* | k*bsd*-gnu)
20405 # GNU and its variants, using gnu ld.so (Glibc)
20406 lt_cv_sys_dlopen_deplibs=yes
20407 ;;
20408 hpux10*|hpux11*)
20409 lt_cv_sys_dlopen_deplibs=yes
20410 ;;
20411 interix*)
20412 lt_cv_sys_dlopen_deplibs=yes
20413 ;;
20414 irix[12345]*|irix6.[01]*)
20415 # Catch all versions of IRIX before 6.2, and indicate that we don't
20416 # know how it worked for any of those versions.
20417 lt_cv_sys_dlopen_deplibs=unknown
20418 ;;
20419 irix*)
20420 # The case above catches anything before 6.2, and it's known that
20421 # at 6.2 and later dlopen does load deplibs.
20422 lt_cv_sys_dlopen_deplibs=yes
20423 ;;
20424 netbsd*)
20425 lt_cv_sys_dlopen_deplibs=yes
20426 ;;
20427 openbsd*)
20428 lt_cv_sys_dlopen_deplibs=yes
20429 ;;
20430 osf[1234]*)
20431 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20432 # it did *not* use an RPATH in a shared library to find objects the
20433 # library depends on, so we explicitly say `no'.
20434 lt_cv_sys_dlopen_deplibs=no
20435 ;;
20436 osf5.0|osf5.0a|osf5.1)
20437 # dlopen *does* load deplibs and with the right loader patch applied
20438 # it even uses RPATH in a shared library to search for shared objects
20439 # that the library depends on, but there's no easy way to know if that
20440 # patch is installed. Since this is the case, all we can really
20441 # say is unknown -- it depends on the patch being installed. If
20442 # it is, this changes to `yes'. Without it, it would be `no'.
20443 lt_cv_sys_dlopen_deplibs=unknown
20444 ;;
20445 osf*)
20446 # the two cases above should catch all versions of osf <= 5.1. Read
20447 # the comments above for what we know about them.
20448 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20449 # is used to find them so we can finally say `yes'.
20450 lt_cv_sys_dlopen_deplibs=yes
20451 ;;
20452 qnx*)
20453 lt_cv_sys_dlopen_deplibs=yes
20454 ;;
20455 solaris*)
20456 lt_cv_sys_dlopen_deplibs=yes
20457 ;;
20458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20459 libltdl_cv_sys_dlopen_deplibs=yes
20460 ;;
20461 esac
20462
20463fi
20464{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
20465$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20466if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20467
20468cat >>confdefs.h <<\_ACEOF
20469#define LTDL_DLOPEN_DEPLIBS 1
20470_ACEOF
20471
20472fi
20473
20474:
20475
20476
20477for ac_header in argz.h
20478do
20479as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20480{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20481$as_echo_n "checking for $ac_header... " >&6; }
20482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20483 $as_echo_n "(cached) " >&6
20484else
20485 cat >conftest.$ac_ext <<_ACEOF
20486/* confdefs.h. */
20487_ACEOF
20488cat confdefs.h >>conftest.$ac_ext
20489cat >>conftest.$ac_ext <<_ACEOF
20490/* end confdefs.h. */
20491$ac_includes_default
20492
20493#include <$ac_header>
20494_ACEOF
20495rm -f conftest.$ac_objext
20496if { (ac_try="$ac_compile"
20497case "(($ac_try" in
20498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20499 *) ac_try_echo=$ac_try;;
20500esac
20501eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20502$as_echo "$ac_try_echo") >&5
20503 (eval "$ac_compile") 2>conftest.er1
20504 ac_status=$?
20505 grep -v '^ *+' conftest.er1 >conftest.err
20506 rm -f conftest.er1
20507 cat conftest.err >&5
20508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); } && {
20510 test -z "$ac_c_werror_flag" ||
20511 test ! -s conftest.err
20512 } && test -s conftest.$ac_objext; then
20513 eval "$as_ac_Header=yes"
20514else
20515 $as_echo "$as_me: failed program was:" >&5
20516sed 's/^/| /' conftest.$ac_ext >&5
20517
20518 eval "$as_ac_Header=no"
20519fi
20520
20521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20522fi
20523ac_res=`eval 'as_val=${'$as_ac_Header'}
20524 $as_echo "$as_val"'`
20525 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20526$as_echo "$ac_res" >&6; }
20527as_val=`eval 'as_val=${'$as_ac_Header'}
20528 $as_echo "$as_val"'`
20529 if test "x$as_val" = x""yes; then
20530 cat >>confdefs.h <<_ACEOF
20531#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20532_ACEOF
20533
20534fi
20535
20536done
20537
20538
20539{ $as_echo "$as_me:$LINENO: checking for error_t" >&5
20540$as_echo_n "checking for error_t... " >&6; }
20541if test "${ac_cv_type_error_t+set}" = set; then
20542 $as_echo_n "(cached) " >&6
20543else
20544 ac_cv_type_error_t=no
20545cat >conftest.$ac_ext <<_ACEOF
20546/* confdefs.h. */
20547_ACEOF
20548cat confdefs.h >>conftest.$ac_ext
20549cat >>conftest.$ac_ext <<_ACEOF
20550/* end confdefs.h. */
20551#if defined(HAVE_ARGZ_H)
20552# include <argz.h>
20553#endif
20554
20555int
20556main ()
20557{
20558if (sizeof (error_t))
20559 return 0;
20560 ;
20561 return 0;
20562}
20563_ACEOF
20564rm -f conftest.$ac_objext
20565if { (ac_try="$ac_compile"
20566case "(($ac_try" in
20567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20568 *) ac_try_echo=$ac_try;;
20569esac
20570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20571$as_echo "$ac_try_echo") >&5
20572 (eval "$ac_compile") 2>conftest.er1
20573 ac_status=$?
20574 grep -v '^ *+' conftest.er1 >conftest.err
20575 rm -f conftest.er1
20576 cat conftest.err >&5
20577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); } && {
20579 test -z "$ac_c_werror_flag" ||
20580 test ! -s conftest.err
20581 } && test -s conftest.$ac_objext; then
20582 cat >conftest.$ac_ext <<_ACEOF
20583/* confdefs.h. */
20584_ACEOF
20585cat confdefs.h >>conftest.$ac_ext
20586cat >>conftest.$ac_ext <<_ACEOF
20587/* end confdefs.h. */
20588#if defined(HAVE_ARGZ_H)
20589# include <argz.h>
20590#endif
20591
20592int
20593main ()
20594{
20595if (sizeof ((error_t)))
20596 return 0;
20597 ;
20598 return 0;
20599}
20600_ACEOF
20601rm -f conftest.$ac_objext
20602if { (ac_try="$ac_compile"
20603case "(($ac_try" in
20604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20605 *) ac_try_echo=$ac_try;;
20606esac
20607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20608$as_echo "$ac_try_echo") >&5
20609 (eval "$ac_compile") 2>conftest.er1
20610 ac_status=$?
20611 grep -v '^ *+' conftest.er1 >conftest.err
20612 rm -f conftest.er1
20613 cat conftest.err >&5
20614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } && {
20616 test -z "$ac_c_werror_flag" ||
20617 test ! -s conftest.err
20618 } && test -s conftest.$ac_objext; then
20619 :
20620else
20621 $as_echo "$as_me: failed program was:" >&5
20622sed 's/^/| /' conftest.$ac_ext >&5
20623
20624 ac_cv_type_error_t=yes
20625fi
20626
20627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20628else
20629 $as_echo "$as_me: failed program was:" >&5
20630sed 's/^/| /' conftest.$ac_ext >&5
20631
20632
20633fi
20634
20635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20636fi
20637{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20638$as_echo "$ac_cv_type_error_t" >&6; }
20639if test "x$ac_cv_type_error_t" = x""yes; then
20640
20641cat >>confdefs.h <<_ACEOF
20642#define HAVE_ERROR_T 1
20643_ACEOF
20644
20645
20646else
20647
20648cat >>confdefs.h <<\_ACEOF
20649#define error_t int
20650_ACEOF
20651
20652
20653cat >>confdefs.h <<\_ACEOF
20654#define __error_t_defined 1
20655_ACEOF
20656
20657fi
20658
20659
20660ARGZ_H=
20661
20662
20663
20664
20665
20666
20667
20668for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20669 argz_next argz_stringify
20670do
20671as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20672{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20673$as_echo_n "checking for $ac_func... " >&6; }
20674if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20675 $as_echo_n "(cached) " >&6
20676else
20677 cat >conftest.$ac_ext <<_ACEOF
20678/* confdefs.h. */
20679_ACEOF
20680cat confdefs.h >>conftest.$ac_ext
20681cat >>conftest.$ac_ext <<_ACEOF
20682/* end confdefs.h. */
20683/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20685#define $ac_func innocuous_$ac_func
20686
20687/* System header to define __stub macros and hopefully few prototypes,
20688 which can conflict with char $ac_func (); below.
20689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20690 <limits.h> exists even on freestanding compilers. */
20691
20692#ifdef __STDC__
20693# include <limits.h>
20694#else
20695# include <assert.h>
20696#endif
20697
20698#undef $ac_func
20699
20700/* Override any GCC internal prototype to avoid an error.
20701 Use char because int might match the return type of a GCC
20702 builtin and then its argument prototype would still apply. */
20703#ifdef __cplusplus
20704extern "C"
20705#endif
20706char $ac_func ();
20707/* The GNU C library defines this for functions which it implements
20708 to always fail with ENOSYS. Some functions are actually named
20709 something starting with __ and the normal name is an alias. */
20710#if defined __stub_$ac_func || defined __stub___$ac_func
20711choke me
20712#endif
20713
20714int
20715main ()
20716{
20717return $ac_func ();
20718 ;
20719 return 0;
20720}
20721_ACEOF
20722rm -f conftest.$ac_objext conftest$ac_exeext
20723if { (ac_try="$ac_link"
20724case "(($ac_try" in
20725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20726 *) ac_try_echo=$ac_try;;
20727esac
20728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20729$as_echo "$ac_try_echo") >&5
20730 (eval "$ac_link") 2>conftest.er1
20731 ac_status=$?
20732 grep -v '^ *+' conftest.er1 >conftest.err
20733 rm -f conftest.er1
20734 cat conftest.err >&5
20735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); } && {
20737 test -z "$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20739 } && test -s conftest$ac_exeext && {
20740 test "$cross_compiling" = yes ||
20741 $as_test_x conftest$ac_exeext
20742 }; then
20743 eval "$as_ac_var=yes"
20744else
20745 $as_echo "$as_me: failed program was:" >&5
20746sed 's/^/| /' conftest.$ac_ext >&5
20747
20748 eval "$as_ac_var=no"
20749fi
20750
20751rm -rf conftest.dSYM
20752rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20753 conftest$ac_exeext conftest.$ac_ext
20754fi
20755ac_res=`eval 'as_val=${'$as_ac_var'}
20756 $as_echo "$as_val"'`
20757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20758$as_echo "$ac_res" >&6; }
20759as_val=`eval 'as_val=${'$as_ac_var'}
20760 $as_echo "$as_val"'`
20761 if test "x$as_val" = x""yes; then
20762 cat >>confdefs.h <<_ACEOF
20763#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20764_ACEOF
20765
20766else
20767 ARGZ_H=argz.h;
20768
20769 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20770
20771fi
20772done
20773
20774
20775if test -z "$ARGZ_H"; then
20776 { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
20777$as_echo_n "checking if argz actually works... " >&6; }
20778if test "${lt_cv_sys_argz_works+set}" = set; then
20779 $as_echo_n "(cached) " >&6
20780else
20781 case $host_os in #(
20782 *cygwin*)
20783 lt_cv_sys_argz_works=no
20784 if test "$cross_compiling" != no; then
20785 lt_cv_sys_argz_works="guessing no"
20786 else
20787 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20788 save_IFS=$IFS
20789 IFS=-.
20790 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20791 IFS=$save_IFS
20792 lt_os_major=${2-0}
20793 lt_os_minor=${3-0}
20794 lt_os_micro=${4-0}
20795 if test "$lt_os_major" -gt 1 \
20796 || { test "$lt_os_major" -eq 1 \
20797 && { test "$lt_os_minor" -gt 5 \
20798 || { test "$lt_os_minor" -eq 5 \
20799 && test "$lt_os_micro" -gt 24; }; }; }; then
20800 lt_cv_sys_argz_works=yes
20801 fi
20802 fi
20803 ;; #(
20804 *) lt_cv_sys_argz_works=yes ;;
20805 esac
20806fi
20807{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
20808$as_echo "$lt_cv_sys_argz_works" >&6; }
20809 if test $lt_cv_sys_argz_works = yes; then
20810
20811cat >>confdefs.h <<\_ACEOF
20812#define HAVE_WORKING_ARGZ 1
20813_ACEOF
20814
20815else
20816 ARGZ_H=argz.h
20817
20818
20819 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20820
20821fi
20822
20823fi
20824
20825
20826
20827
20828{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20829$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20830if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20831 $as_echo_n "(cached) " >&6
20832else
20833 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20834 libltdl_cv_preloaded_symbols=yes
20835 else
20836 libltdl_cv_preloaded_symbols=no
20837 fi
20838
20839fi
20840{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20841$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20842if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20843
20844cat >>confdefs.h <<\_ACEOF
20845#define HAVE_PRELOADED_SYMBOLS 1
20846_ACEOF
20847
20848fi
20849
20850# Set options
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860
20861
20862# Check whether --with-included_ltdl was given.
20863if test "${with_included_ltdl+set}" = set; then
20864 withval=$with_included_ltdl;
20865fi
20866
20867
20868if test "x$with_included_ltdl" != xyes; then
20869 # We are not being forced to use the included libltdl sources, so
20870 # decide whether there is a useful installed version we can use.
20871 { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
20872$as_echo_n "checking for ltdl.h... " >&6; }
20873if test "${ac_cv_header_ltdl_h+set}" = set; then
20874 $as_echo_n "(cached) " >&6
20875else
20876 cat >conftest.$ac_ext <<_ACEOF
20877/* confdefs.h. */
20878_ACEOF
20879cat confdefs.h >>conftest.$ac_ext
20880cat >>conftest.$ac_ext <<_ACEOF
20881/* end confdefs.h. */
20882$ac_includes_default
20883
20884
20885#include <ltdl.h>
20886_ACEOF
20887rm -f conftest.$ac_objext
20888if { (ac_try="$ac_compile"
20889case "(($ac_try" in
20890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891 *) ac_try_echo=$ac_try;;
20892esac
20893eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20894$as_echo "$ac_try_echo") >&5
20895 (eval "$ac_compile") 2>conftest.er1
20896 ac_status=$?
20897 grep -v '^ *+' conftest.er1 >conftest.err
20898 rm -f conftest.er1
20899 cat conftest.err >&5
20900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } && {
20902 test -z "$ac_c_werror_flag" ||
20903 test ! -s conftest.err
20904 } && test -s conftest.$ac_objext; then
20905 ac_cv_header_ltdl_h=yes
20906else
20907 $as_echo "$as_me: failed program was:" >&5
20908sed 's/^/| /' conftest.$ac_ext >&5
20909
20910 ac_cv_header_ltdl_h=no
20911fi
20912
20913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20914fi
20915{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20916$as_echo "$ac_cv_header_ltdl_h" >&6; }
20917if test "x$ac_cv_header_ltdl_h" = x""yes; then
20918 { $as_echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
20919$as_echo_n "checking whether lt_dlinterface_register is declared... " >&6; }
20920if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
20921 $as_echo_n "(cached) " >&6
20922else
20923 cat >conftest.$ac_ext <<_ACEOF
20924/* confdefs.h. */
20925_ACEOF
20926cat confdefs.h >>conftest.$ac_ext
20927cat >>conftest.$ac_ext <<_ACEOF
20928/* end confdefs.h. */
20929$ac_includes_default
20930 #include <ltdl.h>
20931
20932int
20933main ()
20934{
20935#ifndef lt_dlinterface_register
20936 (void) lt_dlinterface_register;
20937#endif
20938
20939 ;
20940 return 0;
20941}
20942_ACEOF
20943rm -f conftest.$ac_objext
20944if { (ac_try="$ac_compile"
20945case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20948esac
20949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20950$as_echo "$ac_try_echo") >&5
20951 (eval "$ac_compile") 2>conftest.er1
20952 ac_status=$?
20953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
20956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } && {
20958 test -z "$ac_c_werror_flag" ||
20959 test ! -s conftest.err
20960 } && test -s conftest.$ac_objext; then
20961 ac_cv_have_decl_lt_dlinterface_register=yes
20962else
20963 $as_echo "$as_me: failed program was:" >&5
20964sed 's/^/| /' conftest.$ac_ext >&5
20965
20966 ac_cv_have_decl_lt_dlinterface_register=no
20967fi
20968
20969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20970fi
20971{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
20972$as_echo "$ac_cv_have_decl_lt_dlinterface_register" >&6; }
20973if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then
20974 { $as_echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
20975$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20976if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
20977 $as_echo_n "(cached) " >&6
20978else
20979 ac_check_lib_save_LIBS=$LIBS
20980LIBS="-lltdl $LIBS"
20981cat >conftest.$ac_ext <<_ACEOF
20982/* confdefs.h. */
20983_ACEOF
20984cat confdefs.h >>conftest.$ac_ext
20985cat >>conftest.$ac_ext <<_ACEOF
20986/* end confdefs.h. */
20987
20988/* Override any GCC internal prototype to avoid an error.
20989 Use char because int might match the return type of a GCC
20990 builtin and then its argument prototype would still apply. */
20991#ifdef __cplusplus
20992extern "C"
20993#endif
20994char lt_dladvise_preload ();
20995int
20996main ()
20997{
20998return lt_dladvise_preload ();
20999 ;
21000 return 0;
21001}
21002_ACEOF
21003rm -f conftest.$ac_objext conftest$ac_exeext
21004if { (ac_try="$ac_link"
21005case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21008esac
21009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21010$as_echo "$ac_try_echo") >&5
21011 (eval "$ac_link") 2>conftest.er1
21012 ac_status=$?
21013 grep -v '^ *+' conftest.er1 >conftest.err
21014 rm -f conftest.er1
21015 cat conftest.err >&5
21016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21017 (exit $ac_status); } && {
21018 test -z "$ac_c_werror_flag" ||
21019 test ! -s conftest.err
21020 } && test -s conftest$ac_exeext && {
21021 test "$cross_compiling" = yes ||
21022 $as_test_x conftest$ac_exeext
21023 }; then
21024 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21025else
21026 $as_echo "$as_me: failed program was:" >&5
21027sed 's/^/| /' conftest.$ac_ext >&5
21028
21029 ac_cv_lib_ltdl_lt_dladvise_preload=no
21030fi
21031
21032rm -rf conftest.dSYM
21033rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21034 conftest$ac_exeext conftest.$ac_ext
21035LIBS=$ac_check_lib_save_LIBS
21036fi
21037{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21038$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
21039if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then
21040 with_included_ltdl=no
21041else
21042 with_included_ltdl=yes
21043fi
21044
21045else
21046 with_included_ltdl=yes
21047fi
21048
21049else
21050 with_included_ltdl=yes
21051fi
21052
21053
21054fi
21055
21056
21057
21058
21059# Check whether --with-ltdl_include was given.
21060if test "${with_ltdl_include+set}" = set; then
21061 withval=$with_ltdl_include;
21062fi
21063
21064
21065if test -n "$with_ltdl_include"; then
21066 if test -f "$with_ltdl_include/ltdl.h"; then :
21067 else
21068 { { $as_echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
21069$as_echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
21070 { (exit 1); exit 1; }; }
21071 fi
21072else
21073 with_ltdl_include=no
21074fi
21075
21076
21077# Check whether --with-ltdl_lib was given.
21078if test "${with_ltdl_lib+set}" = set; then
21079 withval=$with_ltdl_lib;
21080fi
21081
21082
21083if test -n "$with_ltdl_lib"; then
21084 if test -f "$with_ltdl_lib/libltdl.la"; then :
21085 else
21086 { { $as_echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
21087$as_echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
21088 { (exit 1); exit 1; }; }
21089 fi
21090else
21091 with_ltdl_lib=no
21092fi
21093
21094case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21095 ,yes,no,no,)
21096 case $enable_ltdl_convenience in
21097 no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
21098$as_echo "$as_me: error: this package needs a convenience libltdl" >&2;}
21099 { (exit 1); exit 1; }; } ;;
21100 "") enable_ltdl_convenience=yes
21101 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
21102esac
21103LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21104LTDLDEPS=$LIBLTDL
21105LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21106
21107
21108
21109
21110
21111# For backwards non-gettext consistent compatibility...
21112INCLTDL="$LTDLINCL"
21113
21114
21115 ;;
21116 ,no,no,no,)
21117 # If the included ltdl is not to be used, then use the
21118 # preinstalled libltdl we found.
21119
21120cat >>confdefs.h <<\_ACEOF
21121#define HAVE_LTDL 1
21122_ACEOF
21123
21124 LIBLTDL=-lltdl
21125 LTDLDEPS=
21126 LTDLINCL=
21127 ;;
21128 ,no*,no,*)
21129 { { $as_echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
21130$as_echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
21131 { (exit 1); exit 1; }; }
21132 ;;
21133 *) with_included_ltdl=no
21134 LIBLTDL="-L$with_ltdl_lib -lltdl"
21135 LTDLDEPS=
21136 LTDLINCL="-I$with_ltdl_include"
21137 ;;
21138esac
21139INCLTDL="$LTDLINCL"
21140
21141# Report our decision...
21142{ $as_echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
21143$as_echo_n "checking where to find libltdl headers... " >&6; }
21144{ $as_echo "$as_me:$LINENO: result: $LTDLINCL" >&5
21145$as_echo "$LTDLINCL" >&6; }
21146{ $as_echo "$as_me:$LINENO: checking where to find libltdl library" >&5
21147$as_echo_n "checking where to find libltdl library... " >&6; }
21148{ $as_echo "$as_me:$LINENO: result: $LIBLTDL" >&5
21149$as_echo "$LIBLTDL" >&6; }
21150
21151
21152
21153# Check whether --enable-ltdl-install was given.
21154if test "${enable_ltdl_install+set}" = set; then
21155 enableval=$enable_ltdl_install;
21156fi
21157
21158
21159case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21160 *yes*) ;;
21161 *) enable_ltdl_convenience=yes ;;
21162esac
21163
21164 if test x"${enable_ltdl_install-no}" != xno; then
21165 INSTALL_LTDL_TRUE=
21166 INSTALL_LTDL_FALSE='#'
21167else
21168 INSTALL_LTDL_TRUE='#'
21169 INSTALL_LTDL_FALSE=
21170fi
21171
21172 if test x"${enable_ltdl_convenience-no}" != xno; then
21173 CONVENIENCE_LTDL_TRUE=
21174 CONVENIENCE_LTDL_FALSE='#'
21175else
21176 CONVENIENCE_LTDL_TRUE='#'
21177 CONVENIENCE_LTDL_FALSE=
21178fi
21179
21180
21181
21182
21183
21184
21185
21186# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21187# the user used. This is so that ltdl.h can pick up the parent projects
21188# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21189# definitions required by ltdl.c.
21190# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21191
21192
21193
21194
21195
21196
21197
21198
21199
21200for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21201do
21202as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21203{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21204$as_echo_n "checking for $ac_header... " >&6; }
21205if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21206 $as_echo_n "(cached) " >&6
21207else
21208 cat >conftest.$ac_ext <<_ACEOF
21209/* confdefs.h. */
21210_ACEOF
21211cat confdefs.h >>conftest.$ac_ext
21212cat >>conftest.$ac_ext <<_ACEOF
21213/* end confdefs.h. */
21214$ac_includes_default
21215
21216#include <$ac_header>
21217_ACEOF
21218rm -f conftest.$ac_objext
21219if { (ac_try="$ac_compile"
21220case "(($ac_try" in
21221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21222 *) ac_try_echo=$ac_try;;
21223esac
21224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21225$as_echo "$ac_try_echo") >&5
21226 (eval "$ac_compile") 2>conftest.er1
21227 ac_status=$?
21228 grep -v '^ *+' conftest.er1 >conftest.err
21229 rm -f conftest.er1
21230 cat conftest.err >&5
21231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); } && {
21233 test -z "$ac_c_werror_flag" ||
21234 test ! -s conftest.err
21235 } && test -s conftest.$ac_objext; then
21236 eval "$as_ac_Header=yes"
21237else
21238 $as_echo "$as_me: failed program was:" >&5
21239sed 's/^/| /' conftest.$ac_ext >&5
21240
21241 eval "$as_ac_Header=no"
21242fi
21243
21244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21245fi
21246ac_res=`eval 'as_val=${'$as_ac_Header'}
21247 $as_echo "$as_val"'`
21248 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21249$as_echo "$ac_res" >&6; }
21250as_val=`eval 'as_val=${'$as_ac_Header'}
21251 $as_echo "$as_val"'`
21252 if test "x$as_val" = x""yes; then
21253 cat >>confdefs.h <<_ACEOF
21254#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21255_ACEOF
21256
21257fi
21258
21259done
21260
21261
21262
21263
21264
21265for ac_func in closedir opendir readdir
21266do
21267as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21268{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21269$as_echo_n "checking for $ac_func... " >&6; }
21270if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21271 $as_echo_n "(cached) " >&6
21272else
21273 cat >conftest.$ac_ext <<_ACEOF
21274/* confdefs.h. */
21275_ACEOF
21276cat confdefs.h >>conftest.$ac_ext
21277cat >>conftest.$ac_ext <<_ACEOF
21278/* end confdefs.h. */
21279/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21281#define $ac_func innocuous_$ac_func
21282
21283/* System header to define __stub macros and hopefully few prototypes,
21284 which can conflict with char $ac_func (); below.
21285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21286 <limits.h> exists even on freestanding compilers. */
21287
21288#ifdef __STDC__
21289# include <limits.h>
21290#else
21291# include <assert.h>
21292#endif
21293
21294#undef $ac_func
21295
21296/* Override any GCC internal prototype to avoid an error.
21297 Use char because int might match the return type of a GCC
21298 builtin and then its argument prototype would still apply. */
21299#ifdef __cplusplus
21300extern "C"
21301#endif
21302char $ac_func ();
21303/* The GNU C library defines this for functions which it implements
21304 to always fail with ENOSYS. Some functions are actually named
21305 something starting with __ and the normal name is an alias. */
21306#if defined __stub_$ac_func || defined __stub___$ac_func
21307choke me
21308#endif
21309
21310int
21311main ()
21312{
21313return $ac_func ();
21314 ;
21315 return 0;
21316}
21317_ACEOF
21318rm -f conftest.$ac_objext conftest$ac_exeext
21319if { (ac_try="$ac_link"
21320case "(($ac_try" in
21321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21322 *) ac_try_echo=$ac_try;;
21323esac
21324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21325$as_echo "$ac_try_echo") >&5
21326 (eval "$ac_link") 2>conftest.er1
21327 ac_status=$?
21328 grep -v '^ *+' conftest.er1 >conftest.err
21329 rm -f conftest.er1
21330 cat conftest.err >&5
21331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332 (exit $ac_status); } && {
21333 test -z "$ac_c_werror_flag" ||
21334 test ! -s conftest.err
21335 } && test -s conftest$ac_exeext && {
21336 test "$cross_compiling" = yes ||
21337 $as_test_x conftest$ac_exeext
21338 }; then
21339 eval "$as_ac_var=yes"
21340else
21341 $as_echo "$as_me: failed program was:" >&5
21342sed 's/^/| /' conftest.$ac_ext >&5
21343
21344 eval "$as_ac_var=no"
21345fi
21346
21347rm -rf conftest.dSYM
21348rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21349 conftest$ac_exeext conftest.$ac_ext
21350fi
21351ac_res=`eval 'as_val=${'$as_ac_var'}
21352 $as_echo "$as_val"'`
21353 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21354$as_echo "$ac_res" >&6; }
21355as_val=`eval 'as_val=${'$as_ac_var'}
21356 $as_echo "$as_val"'`
21357 if test "x$as_val" = x""yes; then
21358 cat >>confdefs.h <<_ACEOF
21359#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21360_ACEOF
21361
21362else
21363
21364
21365 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21366
21367fi
21368done
21369
21370
21371
21372for ac_func in strlcat strlcpy
21373do
21374as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21375{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21376$as_echo_n "checking for $ac_func... " >&6; }
21377if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21378 $as_echo_n "(cached) " >&6
21379else
21380 cat >conftest.$ac_ext <<_ACEOF
21381/* confdefs.h. */
21382_ACEOF
21383cat confdefs.h >>conftest.$ac_ext
21384cat >>conftest.$ac_ext <<_ACEOF
21385/* end confdefs.h. */
21386/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21388#define $ac_func innocuous_$ac_func
21389
21390/* System header to define __stub macros and hopefully few prototypes,
21391 which can conflict with char $ac_func (); below.
21392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21393 <limits.h> exists even on freestanding compilers. */
21394
21395#ifdef __STDC__
21396# include <limits.h>
21397#else
21398# include <assert.h>
21399#endif
21400
21401#undef $ac_func
21402
21403/* Override any GCC internal prototype to avoid an error.
21404 Use char because int might match the return type of a GCC
21405 builtin and then its argument prototype would still apply. */
21406#ifdef __cplusplus
21407extern "C"
21408#endif
21409char $ac_func ();
21410/* The GNU C library defines this for functions which it implements
21411 to always fail with ENOSYS. Some functions are actually named
21412 something starting with __ and the normal name is an alias. */
21413#if defined __stub_$ac_func || defined __stub___$ac_func
21414choke me
21415#endif
21416
21417int
21418main ()
21419{
21420return $ac_func ();
21421 ;
21422 return 0;
21423}
21424_ACEOF
21425rm -f conftest.$ac_objext conftest$ac_exeext
21426if { (ac_try="$ac_link"
21427case "(($ac_try" in
21428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429 *) ac_try_echo=$ac_try;;
21430esac
21431eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21432$as_echo "$ac_try_echo") >&5
21433 (eval "$ac_link") 2>conftest.er1
21434 ac_status=$?
21435 grep -v '^ *+' conftest.er1 >conftest.err
21436 rm -f conftest.er1
21437 cat conftest.err >&5
21438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21439 (exit $ac_status); } && {
21440 test -z "$ac_c_werror_flag" ||
21441 test ! -s conftest.err
21442 } && test -s conftest$ac_exeext && {
21443 test "$cross_compiling" = yes ||
21444 $as_test_x conftest$ac_exeext
21445 }; then
21446 eval "$as_ac_var=yes"
21447else
21448 $as_echo "$as_me: failed program was:" >&5
21449sed 's/^/| /' conftest.$ac_ext >&5
21450
21451 eval "$as_ac_var=no"
21452fi
21453
21454rm -rf conftest.dSYM
21455rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21456 conftest$ac_exeext conftest.$ac_ext
21457fi
21458ac_res=`eval 'as_val=${'$as_ac_var'}
21459 $as_echo "$as_val"'`
21460 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21461$as_echo "$ac_res" >&6; }
21462as_val=`eval 'as_val=${'$as_ac_var'}
21463 $as_echo "$as_val"'`
21464 if test "x$as_val" = x""yes; then
21465 cat >>confdefs.h <<_ACEOF
21466#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21467_ACEOF
21468
21469else
21470
21471
21472 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21473
21474fi
21475done
21476
21477
21478
21479cat >>confdefs.h <<_ACEOF
21480#define LT_LIBEXT "$libext"
21481_ACEOF
21482
21483
21484name=ltdl
21485LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
21486
21487
21488
21489
21490
21491
21492
21493
21494# Only expand once:
21495
21496
21497
21498# Check to see if building shared libraries
21499libtool_build_shared_libs='no'
21500if test "$enable_shared" = 'yes'; then
21501 libtool_build_shared_libs='yes'
21502fi
21503
21504# Check to see if building static libraries
21505libtool_build_static_libs='no'
21506if test "$enable_static" = 'yes'; then
21507 libtool_build_static_libs='yes'
21508fi
21509
21510# MinGW and Cygwin can't build C++ DLLs which support exceptions.
21511if test "${StaticCplusPlusLibraries}" = 'yes'; then
21512 LTCXXLIBOPTS='--static'
21513
21514fi
21515
21516#
21517# Enable support for building loadable modules
21518#
21519
21520# Check whether --with-modules was given.
21521if test "${with_modules+set}" = set; then
21522 withval=$with_modules; with_modules=$withval
21523else
21524 with_modules=$libtool_build_shared_libs
21525fi
21526
21527
21528# Only allow building loadable modules if we are building shared libraries
21529if test "$with_modules" != 'no' ; then
21530 if test "$libtool_build_shared_libs" = 'no'; then
21531 { $as_echo "$as_me:$LINENO: WARNING: Modules may only be built if building shared libraries is enabled." >&5
21532$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21533 with_modules='no'
21534 fi
21535fi
21536if test "$with_modules" != 'no'; then
21537
21538cat >>confdefs.h <<\_ACEOF
21539#define BUILD_MODULES 1
21540_ACEOF
21541
21542fi
21543 if test "$with_modules" != 'no'; then
21544 WITH_MODULES_TRUE=
21545 WITH_MODULES_FALSE='#'
21546else
21547 WITH_MODULES_TRUE='#'
21548 WITH_MODULES_FALSE=
21549fi
21550
21551
21552# Enable building/use of libltdl if we are building shared libraries regardless
21553# of whether modules are built or not.
21554with_ltdl='no'
21555if test "$libtool_build_shared_libs" != 'no'; then
21556 with_ltdl='yes'
21557fi
21558
21559 if test "$with_ltdl" != 'no'; then
21560 WITH_LTDL_TRUE=
21561 WITH_LTDL_FALSE='#'
21562else
21563 WITH_LTDL_TRUE='#'
21564 WITH_LTDL_FALSE=
21565fi
21566
21567if test "$with_ltdl" != 'no'; then
21568
21569cat >>confdefs.h <<\_ACEOF
21570#define LTDL_DELEGATE 1
21571_ACEOF
21572
21573
21574 # Set DLLDFLAGS
21575 if test X"$enable_shared" = Xyes; then
21576 DLLDFLAGS=-export-dynamic
21577
21578 fi
21579fi
21580
21581# Enable build using delegate libraries built in subdirectories rather than installed
21582# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
21583# Check whether --enable-delegate-build was given.
21584if test "${enable_delegate_build+set}" = set; then
21585 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21586else
21587 enable_delegate_build='no'
21588fi
21589
21590
21591# Check whether --enable-deprecated was given.
21592if test "${enable_deprecated+set}" = set; then
21593 enableval=$enable_deprecated; enable_deprecated=$enableval
21594else
21595 enable_deprecated='no'
21596fi
21597
21598
21599if test "$enable_deprecated" = 'yes'; then
21600
21601cat >>confdefs.h <<\_ACEOF
21602#define EXCLUDE_DEPRECATED 1
21603_ACEOF
21604
21605else
21606 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21607fi
21608
21609# Build a version of ImageMagick which operates uninstalled.
21610# Used to build distributions located via MAGICK_HOME / executable path
21611# Check whether --enable-installed was given.
21612if test "${enable_installed+set}" = set; then
21613 enableval=$enable_installed; enable_installed=$enableval
21614else
21615 enable_installed='yes'
21616fi
21617
21618
21619if test "$enable_installed" = 'yes'; then
21620
21621cat >>confdefs.h <<\_ACEOF
21622#define INSTALLED_SUPPORT 1
21623_ACEOF
21624
21625else
21626 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21627fi
21628
21629# Permit enciphering and deciphering image pixels.
21630# Check whether --enable-cipher was given.
21631if test "${enable_cipher+set}" = set; then
21632 enableval=$enable_cipher; enable_cipher=$enableval
21633else
21634 enable_cipher='yes'
21635fi
21636
21637
21638if test "$enable_cipher" = 'yes'; then
21639
21640cat >>confdefs.h <<\_ACEOF
21641#define CIPHER_SUPPORT 1
21642_ACEOF
21643
21644fi
21645
21646# Build an embeddable version of ImageMagick.
21647# Check whether --enable-embeddable was given.
21648if test "${enable_embeddable+set}" = set; then
21649 enableval=$enable_embeddable; enable_embeddable=$enableval
21650else
21651 enable_embeddable='no'
21652fi
21653
21654
21655if test "$enable_embeddable" = 'yes'; then
21656
21657cat >>confdefs.h <<\_ACEOF
21658#define EMBEDDABLE_SUPPORT 1
21659_ACEOF
21660
21661fi
21662
21663# Build a high dynamic range version of ImageMagick.
21664# Check whether --enable-hdri was given.
21665if test "${enable_hdri+set}" = set; then
21666 enableval=$enable_hdri; enable_hdri=$enableval
21667else
21668 enable_hdri='no'
21669fi
21670
21671
21672MAGICK_HDRI=""
21673if test "$enable_hdri" = 'yes'; then
21674 MAGICK_HDRI="HDRI"
21675
21676cat >>confdefs.h <<\_ACEOF
21677#define HDRI_SUPPORT 1
21678_ACEOF
21679
21680fi
21681
cristy3ed852e2009-09-05 21:47:34 +000021682# Build a version of ImageMagick with assert statements.
21683# Check whether --enable-assert was given.
21684if test "${enable_assert+set}" = set; then
21685 enableval=$enable_assert; enable_assert=$enableval
21686else
21687 enable_assert='yes'
21688fi
21689
21690
21691if test "$enable_assert" = 'no'; then
21692
21693cat >>confdefs.h <<\_ACEOF
21694#define NDEBUG 1
21695_ACEOF
21696
21697fi
21698
21699# Add configure option --enable-maintainer-mode which enables dependency
21700# checking and generation useful to package maintainers. This is made an
21701# option to avoid confusing end users.
21702
21703{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
21704$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21705 # Check whether --enable-maintainer-mode was given.
21706if test "${enable_maintainer_mode+set}" = set; then
21707 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21708else
21709 USE_MAINTAINER_MODE=no
21710fi
21711
21712 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
21713$as_echo "$USE_MAINTAINER_MODE" >&6; }
21714 if test $USE_MAINTAINER_MODE = yes; then
21715 MAINTAINER_MODE_TRUE=
21716 MAINTAINER_MODE_FALSE='#'
21717else
21718 MAINTAINER_MODE_TRUE='#'
21719 MAINTAINER_MODE_FALSE=
21720fi
21721
21722 MAINT=$MAINTAINER_MODE_TRUE
21723
21724
21725
21726
21727# Enable ccmalloc memory debugging support
21728# Check whether --enable-ccmalloc was given.
21729if test "${enable_ccmalloc+set}" = set; then
21730 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21731else
21732 enable_ccmalloc='no'
21733fi
21734
21735
21736# Enable Electric Fence memory debugging support
21737# Check whether --enable-efence was given.
21738if test "${enable_efence+set}" = set; then
21739 enableval=$enable_efence; enable_efence=$enableval
21740else
21741 enable_efence='no'
21742fi
21743
21744
21745# Enable prof-based profiling support
21746# Check whether --enable-prof was given.
21747if test "${enable_prof+set}" = set; then
21748 enableval=$enable_prof; enable_prof=$enableval
21749else
21750 enable_prof='no'
21751fi
21752
21753
21754# Enable gprof-based profiling support
21755# Check whether --enable-gprof was given.
21756if test "${enable_gprof+set}" = set; then
21757 enableval=$enable_gprof; enable_gprof=$enableval
21758else
21759 enable_gprof='no'
21760fi
21761
21762
21763# Enable gcov-based profiling support
21764# Check whether --enable-gcov was given.
21765if test "${enable_gcov+set}" = set; then
21766 enableval=$enable_gcov; enable_gcov=$enableval
21767else
21768 enable_gcov='no'
21769fi
21770
21771
21772enable_profiling='no'
21773if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21774 enable_profiling='yes'
21775 if test "$libtool_build_shared_libs" = 'yes'; then
21776 echo "Warning: Can not profile code using shared libraries"
21777 fi
21778fi
21779
21780# Magick API method prefix
21781
21782# Check whether --with-method-prefix was given.
21783if test "${with_method_prefix+set}" = set; then
21784 withval=$with_method_prefix; with_method_prefix=$enableval
21785else
21786 with_method_prefix=''
21787fi
21788
21789
21790if test "$with_method_prefix" != ''; then
21791
21792cat >>confdefs.h <<_ACEOF
21793#define NAMESPACE_PREFIX $with_method_prefix
21794_ACEOF
21795
21796fi
21797
21798# Number of bits in a Quantum
21799
21800# Check whether --with-quantum-depth was given.
21801if test "${with_quantum_depth+set}" = set; then
21802 withval=$with_quantum_depth; with_quantum_depth=$withval
21803else
21804 with_quantum_depth=16
21805fi
21806
21807
21808if test "$with_quantum_depth" != '8'; then
21809 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21810fi
21811
21812case "${with_quantum_depth}" in
21813 8 ) ;;
21814 16 ) ;;
21815 32 ) ;;
21816 64 ) ;;
21817 * ) { { $as_echo "$as_me:$LINENO: error: \"Pixel quantum depth must have value of 8" >&5
21818$as_echo "$as_me: error: \"Pixel quantum depth must have value of 8" >&2;}
21819 { (exit 16); exit 16; }; } ;;
21820esac
21821QUANTUM_DEPTH="$with_quantum_depth"
21822
21823cat >>confdefs.h <<_ACEOF
21824#define QUANTUM_DEPTH $QUANTUM_DEPTH
21825_ACEOF
21826
21827
21828# Set pixel cache threshold
21829
21830# Check whether --with-cache was given.
21831if test "${with_cache+set}" = set; then
21832 withval=$with_cache; with_cache=$withval
21833else
21834 with_cache=''
21835fi
21836
21837
21838if test "$with_cache" != ''; then
21839
21840cat >>confdefs.h <<_ACEOF
21841#define PixelCacheThreshold $with_cache
21842_ACEOF
21843
21844 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21845fi
21846
21847# Disable/Enable support for full delegate paths
21848
21849# Check whether --with-frozenpaths was given.
21850if test "${with_frozenpaths+set}" = set; then
21851 withval=$with_frozenpaths; with_frozenpaths=$withval
21852else
21853 with_frozenpaths='no'
21854fi
21855
21856
21857# Enable build/install of Magick++
21858
21859# Check whether --with-magick-plus-plus was given.
21860if test "${with_magick_plus_plus+set}" = set; then
21861 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21862else
21863 with_magick_plus_plus='yes'
21864fi
21865
21866
21867# Disable build/install of PerlMagick.
21868
21869# Check whether --with-perl was given.
21870if test "${with_perl+set}" = set; then
21871 withval=$with_perl; with_perl=$withval
21872else
21873 with_perl=$libtool_build_shared_libs
21874fi
21875
21876
21877# Options to pass when configuring PerlMagick
21878
21879# Check whether --with-perl-options was given.
21880if test "${with_perl_options+set}" = set; then
21881 withval=$with_perl_options;
21882fi
21883
21884
21885PERL_MAKE_OPTIONS=$with_perl_options
21886
21887
21888
21889# Enable umem, object-caching memory allocation library.
21890
21891# Check whether --with-umem was given.
21892if test "${with_umem+set}" = set; then
21893 withval=$with_umem; with_umem=$withval
21894else
21895 with_umem='no'
21896fi
21897
21898if test "$with_umem" != 'yes' ; then
21899 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21900fi
21901
21902#
21903# Specify path to shared libstdc++ if not in normal location
21904#
21905
21906# Check whether --with-libstdc was given.
21907if test "${with_libstdc+set}" = set; then
21908 withval=$with_libstdc; with_libstdc=$withval
21909else
21910 with_libstdc=''
21911fi
21912
21913
21914if test "$with_libstdc" != ''; then
21915 if test -d "$with_libstdc"; then
21916 LIBSTDCLDFLAGS="-L$with_libstdc"
21917 fi
21918fi
21919
21920
21921# Does gcc required -traditional?
21922if test $ac_cv_c_compiler_gnu = yes; then
21923 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21924$as_echo_n "checking whether $CC needs -traditional... " >&6; }
21925if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21926 $as_echo_n "(cached) " >&6
21927else
21928 ac_pattern="Autoconf.*'x'"
21929 cat >conftest.$ac_ext <<_ACEOF
21930/* confdefs.h. */
21931_ACEOF
21932cat confdefs.h >>conftest.$ac_ext
21933cat >>conftest.$ac_ext <<_ACEOF
21934/* end confdefs.h. */
21935#include <sgtty.h>
21936Autoconf TIOCGETP
21937_ACEOF
21938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21939 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21940 ac_cv_prog_gcc_traditional=yes
21941else
21942 ac_cv_prog_gcc_traditional=no
21943fi
21944rm -f conftest*
21945
21946
21947 if test $ac_cv_prog_gcc_traditional = no; then
21948 cat >conftest.$ac_ext <<_ACEOF
21949/* confdefs.h. */
21950_ACEOF
21951cat confdefs.h >>conftest.$ac_ext
21952cat >>conftest.$ac_ext <<_ACEOF
21953/* end confdefs.h. */
21954#include <termio.h>
21955Autoconf TCGETA
21956_ACEOF
21957if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21958 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21959 ac_cv_prog_gcc_traditional=yes
21960fi
21961rm -f conftest*
21962
21963 fi
21964fi
21965{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21966$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21967 if test $ac_cv_prog_gcc_traditional = yes; then
21968 CC="$CC -traditional"
21969 fi
21970fi
21971
21972
21973########
21974#
21975# Set defines required to build DLLs and modules using MinGW
21976#
21977########
21978# These options are set for multi-thread DLL module build
21979# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21980# module: _DLL
21981# executable/Magick++: _DLL _MAGICKMOD_
21982MODULE_EXTRA_CPPFLAGS=''
21983LIBRARY_EXTRA_CPPFLAGS=''
21984if test "${native_win32_build}" = 'yes'; then
21985 if test "${libtool_build_shared_libs}" = 'yes'; then
21986 CPPFLAGS="$CPPFLAGS -D_DLL"
21987 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21988 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21989 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21990 if test "$with_modules" = 'yes'; then
21991 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21992 else
21993 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21994 fi
21995 else
21996 CPPFLAGS="$CPPFLAGS -D_LIB"
21997 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21998 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21999 fi
22000 if test "$with_threads" = 'yes'; then
22001 CPPFLAGS="$CPPFLAGS -D_MT"
22002 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22003 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22004 fi
22005fi
22006
22007
22008
22009# Check standard headers
22010{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22011$as_echo_n "checking for ANSI C header files... " >&6; }
22012if test "${ac_cv_header_stdc+set}" = set; then
22013 $as_echo_n "(cached) " >&6
22014else
22015 cat >conftest.$ac_ext <<_ACEOF
22016/* confdefs.h. */
22017_ACEOF
22018cat confdefs.h >>conftest.$ac_ext
22019cat >>conftest.$ac_ext <<_ACEOF
22020/* end confdefs.h. */
22021#include <stdlib.h>
22022#include <stdarg.h>
22023#include <string.h>
22024#include <float.h>
22025
22026int
22027main ()
22028{
22029
22030 ;
22031 return 0;
22032}
22033_ACEOF
22034rm -f conftest.$ac_objext
22035if { (ac_try="$ac_compile"
22036case "(($ac_try" in
22037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22038 *) ac_try_echo=$ac_try;;
22039esac
22040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22041$as_echo "$ac_try_echo") >&5
22042 (eval "$ac_compile") 2>conftest.er1
22043 ac_status=$?
22044 grep -v '^ *+' conftest.er1 >conftest.err
22045 rm -f conftest.er1
22046 cat conftest.err >&5
22047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); } && {
22049 test -z "$ac_c_werror_flag" ||
22050 test ! -s conftest.err
22051 } && test -s conftest.$ac_objext; then
22052 ac_cv_header_stdc=yes
22053else
22054 $as_echo "$as_me: failed program was:" >&5
22055sed 's/^/| /' conftest.$ac_ext >&5
22056
22057 ac_cv_header_stdc=no
22058fi
22059
22060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22061
22062if test $ac_cv_header_stdc = yes; then
22063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22064 cat >conftest.$ac_ext <<_ACEOF
22065/* confdefs.h. */
22066_ACEOF
22067cat confdefs.h >>conftest.$ac_ext
22068cat >>conftest.$ac_ext <<_ACEOF
22069/* end confdefs.h. */
22070#include <string.h>
22071
22072_ACEOF
22073if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22074 $EGREP "memchr" >/dev/null 2>&1; then
22075 :
22076else
22077 ac_cv_header_stdc=no
22078fi
22079rm -f conftest*
22080
22081fi
22082
22083if test $ac_cv_header_stdc = yes; then
22084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22085 cat >conftest.$ac_ext <<_ACEOF
22086/* confdefs.h. */
22087_ACEOF
22088cat confdefs.h >>conftest.$ac_ext
22089cat >>conftest.$ac_ext <<_ACEOF
22090/* end confdefs.h. */
22091#include <stdlib.h>
22092
22093_ACEOF
22094if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22095 $EGREP "free" >/dev/null 2>&1; then
22096 :
22097else
22098 ac_cv_header_stdc=no
22099fi
22100rm -f conftest*
22101
22102fi
22103
22104if test $ac_cv_header_stdc = yes; then
22105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22106 if test "$cross_compiling" = yes; then
22107 :
22108else
22109 cat >conftest.$ac_ext <<_ACEOF
22110/* confdefs.h. */
22111_ACEOF
22112cat confdefs.h >>conftest.$ac_ext
22113cat >>conftest.$ac_ext <<_ACEOF
22114/* end confdefs.h. */
22115#include <ctype.h>
22116#include <stdlib.h>
22117#if ((' ' & 0x0FF) == 0x020)
22118# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22119# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22120#else
22121# define ISLOWER(c) \
22122 (('a' <= (c) && (c) <= 'i') \
22123 || ('j' <= (c) && (c) <= 'r') \
22124 || ('s' <= (c) && (c) <= 'z'))
22125# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22126#endif
22127
22128#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22129int
22130main ()
22131{
22132 int i;
22133 for (i = 0; i < 256; i++)
22134 if (XOR (islower (i), ISLOWER (i))
22135 || toupper (i) != TOUPPER (i))
22136 return 2;
22137 return 0;
22138}
22139_ACEOF
22140rm -f conftest$ac_exeext
22141if { (ac_try="$ac_link"
22142case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22145esac
22146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22147$as_echo "$ac_try_echo") >&5
22148 (eval "$ac_link") 2>&5
22149 ac_status=$?
22150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22152 { (case "(($ac_try" in
22153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22154 *) ac_try_echo=$ac_try;;
22155esac
22156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22157$as_echo "$ac_try_echo") >&5
22158 (eval "$ac_try") 2>&5
22159 ac_status=$?
22160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; }; then
22162 :
22163else
22164 $as_echo "$as_me: program exited with status $ac_status" >&5
22165$as_echo "$as_me: failed program was:" >&5
22166sed 's/^/| /' conftest.$ac_ext >&5
22167
22168( exit $ac_status )
22169ac_cv_header_stdc=no
22170fi
22171rm -rf conftest.dSYM
22172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22173fi
22174
22175
22176fi
22177fi
22178{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22179$as_echo "$ac_cv_header_stdc" >&6; }
22180if test $ac_cv_header_stdc = yes; then
22181
22182cat >>confdefs.h <<\_ACEOF
22183#define STDC_HEADERS 1
22184_ACEOF
22185
22186fi
22187
22188if ! test x"$ac_cv_header_stdc" = x"yes"; then
22189 { $as_echo "$as_me:$LINENO: WARNING: configure has detected that you do not have the ANSI standard C
22190 header files. Compilation cannot proceed. Please install the ANSI C
22191 headers and rerun this script." >&5
22192$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22193 header files. Compilation cannot proceed. Please install the ANSI C
22194 headers and rerun this script." >&2;};
22195fi
22196
22197
22198
22199
22200
22201ac_header_dirent=no
22202for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22203 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22204{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
22205$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22206if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22207 $as_echo_n "(cached) " >&6
22208else
22209 cat >conftest.$ac_ext <<_ACEOF
22210/* confdefs.h. */
22211_ACEOF
22212cat confdefs.h >>conftest.$ac_ext
22213cat >>conftest.$ac_ext <<_ACEOF
22214/* end confdefs.h. */
22215#include <sys/types.h>
22216#include <$ac_hdr>
22217
22218int
22219main ()
22220{
22221if ((DIR *) 0)
22222return 0;
22223 ;
22224 return 0;
22225}
22226_ACEOF
22227rm -f conftest.$ac_objext
22228if { (ac_try="$ac_compile"
22229case "(($ac_try" in
22230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231 *) ac_try_echo=$ac_try;;
22232esac
22233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22234$as_echo "$ac_try_echo") >&5
22235 (eval "$ac_compile") 2>conftest.er1
22236 ac_status=$?
22237 grep -v '^ *+' conftest.er1 >conftest.err
22238 rm -f conftest.er1
22239 cat conftest.err >&5
22240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22241 (exit $ac_status); } && {
22242 test -z "$ac_c_werror_flag" ||
22243 test ! -s conftest.err
22244 } && test -s conftest.$ac_objext; then
22245 eval "$as_ac_Header=yes"
22246else
22247 $as_echo "$as_me: failed program was:" >&5
22248sed 's/^/| /' conftest.$ac_ext >&5
22249
22250 eval "$as_ac_Header=no"
22251fi
22252
22253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22254fi
22255ac_res=`eval 'as_val=${'$as_ac_Header'}
22256 $as_echo "$as_val"'`
22257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22258$as_echo "$ac_res" >&6; }
22259as_val=`eval 'as_val=${'$as_ac_Header'}
22260 $as_echo "$as_val"'`
22261 if test "x$as_val" = x""yes; then
22262 cat >>confdefs.h <<_ACEOF
22263#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22264_ACEOF
22265
22266ac_header_dirent=$ac_hdr; break
22267fi
22268
22269done
22270# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22271if test $ac_header_dirent = dirent.h; then
22272 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
22273$as_echo_n "checking for library containing opendir... " >&6; }
22274if test "${ac_cv_search_opendir+set}" = set; then
22275 $as_echo_n "(cached) " >&6
22276else
22277 ac_func_search_save_LIBS=$LIBS
22278cat >conftest.$ac_ext <<_ACEOF
22279/* confdefs.h. */
22280_ACEOF
22281cat confdefs.h >>conftest.$ac_ext
22282cat >>conftest.$ac_ext <<_ACEOF
22283/* end confdefs.h. */
22284
22285/* Override any GCC internal prototype to avoid an error.
22286 Use char because int might match the return type of a GCC
22287 builtin and then its argument prototype would still apply. */
22288#ifdef __cplusplus
22289extern "C"
22290#endif
22291char opendir ();
22292int
22293main ()
22294{
22295return opendir ();
22296 ;
22297 return 0;
22298}
22299_ACEOF
22300for ac_lib in '' dir; do
22301 if test -z "$ac_lib"; then
22302 ac_res="none required"
22303 else
22304 ac_res=-l$ac_lib
22305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22306 fi
22307 rm -f conftest.$ac_objext conftest$ac_exeext
22308if { (ac_try="$ac_link"
22309case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22312esac
22313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22314$as_echo "$ac_try_echo") >&5
22315 (eval "$ac_link") 2>conftest.er1
22316 ac_status=$?
22317 grep -v '^ *+' conftest.er1 >conftest.err
22318 rm -f conftest.er1
22319 cat conftest.err >&5
22320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22321 (exit $ac_status); } && {
22322 test -z "$ac_c_werror_flag" ||
22323 test ! -s conftest.err
22324 } && test -s conftest$ac_exeext && {
22325 test "$cross_compiling" = yes ||
22326 $as_test_x conftest$ac_exeext
22327 }; then
22328 ac_cv_search_opendir=$ac_res
22329else
22330 $as_echo "$as_me: failed program was:" >&5
22331sed 's/^/| /' conftest.$ac_ext >&5
22332
22333
22334fi
22335
22336rm -rf conftest.dSYM
22337rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22338 conftest$ac_exeext
22339 if test "${ac_cv_search_opendir+set}" = set; then
22340 break
22341fi
22342done
22343if test "${ac_cv_search_opendir+set}" = set; then
22344 :
22345else
22346 ac_cv_search_opendir=no
22347fi
22348rm conftest.$ac_ext
22349LIBS=$ac_func_search_save_LIBS
22350fi
22351{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22352$as_echo "$ac_cv_search_opendir" >&6; }
22353ac_res=$ac_cv_search_opendir
22354if test "$ac_res" != no; then
22355 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22356
22357fi
22358
22359else
22360 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
22361$as_echo_n "checking for library containing opendir... " >&6; }
22362if test "${ac_cv_search_opendir+set}" = set; then
22363 $as_echo_n "(cached) " >&6
22364else
22365 ac_func_search_save_LIBS=$LIBS
22366cat >conftest.$ac_ext <<_ACEOF
22367/* confdefs.h. */
22368_ACEOF
22369cat confdefs.h >>conftest.$ac_ext
22370cat >>conftest.$ac_ext <<_ACEOF
22371/* end confdefs.h. */
22372
22373/* Override any GCC internal prototype to avoid an error.
22374 Use char because int might match the return type of a GCC
22375 builtin and then its argument prototype would still apply. */
22376#ifdef __cplusplus
22377extern "C"
22378#endif
22379char opendir ();
22380int
22381main ()
22382{
22383return opendir ();
22384 ;
22385 return 0;
22386}
22387_ACEOF
22388for ac_lib in '' x; do
22389 if test -z "$ac_lib"; then
22390 ac_res="none required"
22391 else
22392 ac_res=-l$ac_lib
22393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22394 fi
22395 rm -f conftest.$ac_objext conftest$ac_exeext
22396if { (ac_try="$ac_link"
22397case "(($ac_try" in
22398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399 *) ac_try_echo=$ac_try;;
22400esac
22401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22402$as_echo "$ac_try_echo") >&5
22403 (eval "$ac_link") 2>conftest.er1
22404 ac_status=$?
22405 grep -v '^ *+' conftest.er1 >conftest.err
22406 rm -f conftest.er1
22407 cat conftest.err >&5
22408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22409 (exit $ac_status); } && {
22410 test -z "$ac_c_werror_flag" ||
22411 test ! -s conftest.err
22412 } && test -s conftest$ac_exeext && {
22413 test "$cross_compiling" = yes ||
22414 $as_test_x conftest$ac_exeext
22415 }; then
22416 ac_cv_search_opendir=$ac_res
22417else
22418 $as_echo "$as_me: failed program was:" >&5
22419sed 's/^/| /' conftest.$ac_ext >&5
22420
22421
22422fi
22423
22424rm -rf conftest.dSYM
22425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22426 conftest$ac_exeext
22427 if test "${ac_cv_search_opendir+set}" = set; then
22428 break
22429fi
22430done
22431if test "${ac_cv_search_opendir+set}" = set; then
22432 :
22433else
22434 ac_cv_search_opendir=no
22435fi
22436rm conftest.$ac_ext
22437LIBS=$ac_func_search_save_LIBS
22438fi
22439{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
22440$as_echo "$ac_cv_search_opendir" >&6; }
22441ac_res=$ac_cv_search_opendir
22442if test "$ac_res" != no; then
22443 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22444
22445fi
22446
22447fi
22448
22449
22450# Check additional headers
22451
22452
22453
22454
22455
22456
22457
22458
22459
22460
22461
22462
22463
22464
22465
22466
22467
22468
22469
22470
22471
22472
22473
22474
22475
22476for 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
22477do
22478as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22479if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22480 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22481$as_echo_n "checking for $ac_header... " >&6; }
22482if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22483 $as_echo_n "(cached) " >&6
22484fi
22485ac_res=`eval 'as_val=${'$as_ac_Header'}
22486 $as_echo "$as_val"'`
22487 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22488$as_echo "$ac_res" >&6; }
22489else
22490 # Is the header compilable?
22491{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22492$as_echo_n "checking $ac_header usability... " >&6; }
22493cat >conftest.$ac_ext <<_ACEOF
22494/* confdefs.h. */
22495_ACEOF
22496cat confdefs.h >>conftest.$ac_ext
22497cat >>conftest.$ac_ext <<_ACEOF
22498/* end confdefs.h. */
22499$ac_includes_default
22500#include <$ac_header>
22501_ACEOF
22502rm -f conftest.$ac_objext
22503if { (ac_try="$ac_compile"
22504case "(($ac_try" in
22505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22506 *) ac_try_echo=$ac_try;;
22507esac
22508eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22509$as_echo "$ac_try_echo") >&5
22510 (eval "$ac_compile") 2>conftest.er1
22511 ac_status=$?
22512 grep -v '^ *+' conftest.er1 >conftest.err
22513 rm -f conftest.er1
22514 cat conftest.err >&5
22515 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22516 (exit $ac_status); } && {
22517 test -z "$ac_c_werror_flag" ||
22518 test ! -s conftest.err
22519 } && test -s conftest.$ac_objext; then
22520 ac_header_compiler=yes
22521else
22522 $as_echo "$as_me: failed program was:" >&5
22523sed 's/^/| /' conftest.$ac_ext >&5
22524
22525 ac_header_compiler=no
22526fi
22527
22528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22529{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22530$as_echo "$ac_header_compiler" >&6; }
22531
22532# Is the header present?
22533{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22534$as_echo_n "checking $ac_header presence... " >&6; }
22535cat >conftest.$ac_ext <<_ACEOF
22536/* confdefs.h. */
22537_ACEOF
22538cat confdefs.h >>conftest.$ac_ext
22539cat >>conftest.$ac_ext <<_ACEOF
22540/* end confdefs.h. */
22541#include <$ac_header>
22542_ACEOF
22543if { (ac_try="$ac_cpp conftest.$ac_ext"
22544case "(($ac_try" in
22545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546 *) ac_try_echo=$ac_try;;
22547esac
22548eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22549$as_echo "$ac_try_echo") >&5
22550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22551 ac_status=$?
22552 grep -v '^ *+' conftest.er1 >conftest.err
22553 rm -f conftest.er1
22554 cat conftest.err >&5
22555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); } >/dev/null && {
22557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22558 test ! -s conftest.err
22559 }; then
22560 ac_header_preproc=yes
22561else
22562 $as_echo "$as_me: failed program was:" >&5
22563sed 's/^/| /' conftest.$ac_ext >&5
22564
22565 ac_header_preproc=no
22566fi
22567
22568rm -f conftest.err conftest.$ac_ext
22569{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22570$as_echo "$ac_header_preproc" >&6; }
22571
22572# So? What about this header?
22573case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22574 yes:no: )
22575 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22576$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22577 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22578$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22579 ac_header_preproc=yes
22580 ;;
22581 no:yes:* )
22582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22583$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22585$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22587$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22589$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22591$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22593$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22594 ( cat <<\_ASBOX
22595## ----------------------------------------- ##
22596## Report this to http://www.imagemagick.org ##
22597## ----------------------------------------- ##
22598_ASBOX
22599 ) | sed "s/^/$as_me: WARNING: /" >&2
22600 ;;
22601esac
22602{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22603$as_echo_n "checking for $ac_header... " >&6; }
22604if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22605 $as_echo_n "(cached) " >&6
22606else
22607 eval "$as_ac_Header=\$ac_header_preproc"
22608fi
22609ac_res=`eval 'as_val=${'$as_ac_Header'}
22610 $as_echo "$as_val"'`
22611 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22612$as_echo "$ac_res" >&6; }
22613
22614fi
22615as_val=`eval 'as_val=${'$as_ac_Header'}
22616 $as_echo "$as_val"'`
22617 if test "x$as_val" = x""yes; then
22618 cat >>confdefs.h <<_ACEOF
22619#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22620_ACEOF
22621
22622fi
22623
22624done
22625
22626
22627########
22628#
22629# Checks for typedefs, structures, and compiler characteristics.
22630#
22631########
22632
22633{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
22634$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
22635if test "${ac_cv_header_stdbool_h+set}" = set; then
22636 $as_echo_n "(cached) " >&6
22637else
22638 cat >conftest.$ac_ext <<_ACEOF
22639/* confdefs.h. */
22640_ACEOF
22641cat confdefs.h >>conftest.$ac_ext
22642cat >>conftest.$ac_ext <<_ACEOF
22643/* end confdefs.h. */
22644
22645#include <stdbool.h>
22646#ifndef bool
22647 "error: bool is not defined"
22648#endif
22649#ifndef false
22650 "error: false is not defined"
22651#endif
22652#if false
22653 "error: false is not 0"
22654#endif
22655#ifndef true
22656 "error: true is not defined"
22657#endif
22658#if true != 1
22659 "error: true is not 1"
22660#endif
22661#ifndef __bool_true_false_are_defined
22662 "error: __bool_true_false_are_defined is not defined"
22663#endif
22664
22665 struct s { _Bool s: 1; _Bool t; } s;
22666
22667 char a[true == 1 ? 1 : -1];
22668 char b[false == 0 ? 1 : -1];
22669 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22670 char d[(bool) 0.5 == true ? 1 : -1];
22671 bool e = &s;
22672 char f[(_Bool) 0.0 == false ? 1 : -1];
22673 char g[true];
22674 char h[sizeof (_Bool)];
22675 char i[sizeof s.t];
22676 enum { j = false, k = true, l = false * true, m = true * 256 };
22677 /* The following fails for
22678 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22679 _Bool n[m];
22680 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22681 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22682# if defined __xlc__ || defined __GNUC__
22683 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
22684 reported by James Lemley on 2005-10-05; see
22685 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
22686 This test is not quite right, since xlc is allowed to
22687 reject this program, as the initializer for xlcbug is
22688 not one of the forms that C requires support for.
22689 However, doing the test right would require a runtime
22690 test, and that would make cross-compilation harder.
22691 Let us hope that IBM fixes the xlc bug, and also adds
22692 support for this kind of constant expression. In the
22693 meantime, this test will reject xlc, which is OK, since
22694 our stdbool.h substitute should suffice. We also test
22695 this with GCC, where it should work, to detect more
22696 quickly whether someone messes up the test in the
22697 future. */
22698 char digs[] = "0123456789";
22699 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
22700# endif
22701 /* Catch a bug in an HP-UX C compiler. See
22702 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22703 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22704 */
22705 _Bool q = true;
22706 _Bool *pq = &q;
22707
22708int
22709main ()
22710{
22711
22712 *pq |= q;
22713 *pq |= ! q;
22714 /* Refer to every declared value, to avoid compiler optimizations. */
22715 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22716 + !m + !n + !o + !p + !q + !pq);
22717
22718 ;
22719 return 0;
22720}
22721_ACEOF
22722rm -f conftest.$ac_objext
22723if { (ac_try="$ac_compile"
22724case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22727esac
22728eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22729$as_echo "$ac_try_echo") >&5
22730 (eval "$ac_compile") 2>conftest.er1
22731 ac_status=$?
22732 grep -v '^ *+' conftest.er1 >conftest.err
22733 rm -f conftest.er1
22734 cat conftest.err >&5
22735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } && {
22737 test -z "$ac_c_werror_flag" ||
22738 test ! -s conftest.err
22739 } && test -s conftest.$ac_objext; then
22740 ac_cv_header_stdbool_h=yes
22741else
22742 $as_echo "$as_me: failed program was:" >&5
22743sed 's/^/| /' conftest.$ac_ext >&5
22744
22745 ac_cv_header_stdbool_h=no
22746fi
22747
22748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22749fi
22750{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
22751$as_echo "$ac_cv_header_stdbool_h" >&6; }
22752{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
22753$as_echo_n "checking for _Bool... " >&6; }
22754if test "${ac_cv_type__Bool+set}" = set; then
22755 $as_echo_n "(cached) " >&6
22756else
22757 ac_cv_type__Bool=no
22758cat >conftest.$ac_ext <<_ACEOF
22759/* confdefs.h. */
22760_ACEOF
22761cat confdefs.h >>conftest.$ac_ext
22762cat >>conftest.$ac_ext <<_ACEOF
22763/* end confdefs.h. */
22764$ac_includes_default
22765int
22766main ()
22767{
22768if (sizeof (_Bool))
22769 return 0;
22770 ;
22771 return 0;
22772}
22773_ACEOF
22774rm -f conftest.$ac_objext
22775if { (ac_try="$ac_compile"
22776case "(($ac_try" in
22777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22778 *) ac_try_echo=$ac_try;;
22779esac
22780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22781$as_echo "$ac_try_echo") >&5
22782 (eval "$ac_compile") 2>conftest.er1
22783 ac_status=$?
22784 grep -v '^ *+' conftest.er1 >conftest.err
22785 rm -f conftest.er1
22786 cat conftest.err >&5
22787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22788 (exit $ac_status); } && {
22789 test -z "$ac_c_werror_flag" ||
22790 test ! -s conftest.err
22791 } && test -s conftest.$ac_objext; then
22792 cat >conftest.$ac_ext <<_ACEOF
22793/* confdefs.h. */
22794_ACEOF
22795cat confdefs.h >>conftest.$ac_ext
22796cat >>conftest.$ac_ext <<_ACEOF
22797/* end confdefs.h. */
22798$ac_includes_default
22799int
22800main ()
22801{
22802if (sizeof ((_Bool)))
22803 return 0;
22804 ;
22805 return 0;
22806}
22807_ACEOF
22808rm -f conftest.$ac_objext
22809if { (ac_try="$ac_compile"
22810case "(($ac_try" in
22811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812 *) ac_try_echo=$ac_try;;
22813esac
22814eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22815$as_echo "$ac_try_echo") >&5
22816 (eval "$ac_compile") 2>conftest.er1
22817 ac_status=$?
22818 grep -v '^ *+' conftest.er1 >conftest.err
22819 rm -f conftest.er1
22820 cat conftest.err >&5
22821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); } && {
22823 test -z "$ac_c_werror_flag" ||
22824 test ! -s conftest.err
22825 } && test -s conftest.$ac_objext; then
22826 :
22827else
22828 $as_echo "$as_me: failed program was:" >&5
22829sed 's/^/| /' conftest.$ac_ext >&5
22830
22831 ac_cv_type__Bool=yes
22832fi
22833
22834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22835else
22836 $as_echo "$as_me: failed program was:" >&5
22837sed 's/^/| /' conftest.$ac_ext >&5
22838
22839
22840fi
22841
22842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22843fi
22844{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
22845$as_echo "$ac_cv_type__Bool" >&6; }
22846if test "x$ac_cv_type__Bool" = x""yes; then
22847
22848cat >>confdefs.h <<_ACEOF
22849#define HAVE__BOOL 1
22850_ACEOF
22851
22852
22853fi
22854
22855if test $ac_cv_header_stdbool_h = yes; then
22856
22857cat >>confdefs.h <<\_ACEOF
22858#define HAVE_STDBOOL_H 1
22859_ACEOF
22860
22861fi
22862
22863{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
22864$as_echo_n "checking for working volatile... " >&6; }
22865if test "${ac_cv_c_volatile+set}" = set; then
22866 $as_echo_n "(cached) " >&6
22867else
22868 cat >conftest.$ac_ext <<_ACEOF
22869/* confdefs.h. */
22870_ACEOF
22871cat confdefs.h >>conftest.$ac_ext
22872cat >>conftest.$ac_ext <<_ACEOF
22873/* end confdefs.h. */
22874
22875int
22876main ()
22877{
22878
22879volatile int x;
22880int * volatile y = (int *) 0;
22881return !x && !y;
22882 ;
22883 return 0;
22884}
22885_ACEOF
22886rm -f conftest.$ac_objext
22887if { (ac_try="$ac_compile"
22888case "(($ac_try" in
22889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22890 *) ac_try_echo=$ac_try;;
22891esac
22892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22893$as_echo "$ac_try_echo") >&5
22894 (eval "$ac_compile") 2>conftest.er1
22895 ac_status=$?
22896 grep -v '^ *+' conftest.er1 >conftest.err
22897 rm -f conftest.er1
22898 cat conftest.err >&5
22899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900 (exit $ac_status); } && {
22901 test -z "$ac_c_werror_flag" ||
22902 test ! -s conftest.err
22903 } && test -s conftest.$ac_objext; then
22904 ac_cv_c_volatile=yes
22905else
22906 $as_echo "$as_me: failed program was:" >&5
22907sed 's/^/| /' conftest.$ac_ext >&5
22908
22909 ac_cv_c_volatile=no
22910fi
22911
22912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22913fi
22914{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
22915$as_echo "$ac_cv_c_volatile" >&6; }
22916if test $ac_cv_c_volatile = no; then
22917
22918cat >>confdefs.h <<\_ACEOF
22919#define volatile /**/
22920_ACEOF
22921
22922fi
22923
22924{ $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
22925$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
22926if test "${ac_cv_c_stringize+set}" = set; then
22927 $as_echo_n "(cached) " >&6
22928else
22929 cat >conftest.$ac_ext <<_ACEOF
22930/* confdefs.h. */
22931_ACEOF
22932cat confdefs.h >>conftest.$ac_ext
22933cat >>conftest.$ac_ext <<_ACEOF
22934/* end confdefs.h. */
22935#define x(y) #y
22936
22937char *s = x(teststring);
22938_ACEOF
22939if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22940 $EGREP "#teststring" >/dev/null 2>&1; then
22941 ac_cv_c_stringize=no
22942else
22943 ac_cv_c_stringize=yes
22944fi
22945rm -f conftest*
22946
22947fi
22948{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
22949$as_echo "$ac_cv_c_stringize" >&6; }
22950if test $ac_cv_c_stringize = yes; then
22951
22952cat >>confdefs.h <<\_ACEOF
22953#define HAVE_STRINGIZE 1
22954_ACEOF
22955
22956fi
22957
22958{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22959$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22960if test "${ac_cv_header_stat_broken+set}" = set; then
22961 $as_echo_n "(cached) " >&6
22962else
22963 cat >conftest.$ac_ext <<_ACEOF
22964/* confdefs.h. */
22965_ACEOF
22966cat confdefs.h >>conftest.$ac_ext
22967cat >>conftest.$ac_ext <<_ACEOF
22968/* end confdefs.h. */
22969#include <sys/types.h>
22970#include <sys/stat.h>
22971
22972#if defined S_ISBLK && defined S_IFDIR
22973extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22974#endif
22975
22976#if defined S_ISBLK && defined S_IFCHR
22977extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22978#endif
22979
22980#if defined S_ISLNK && defined S_IFREG
22981extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22982#endif
22983
22984#if defined S_ISSOCK && defined S_IFREG
22985extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22986#endif
22987
22988_ACEOF
22989rm -f conftest.$ac_objext
22990if { (ac_try="$ac_compile"
22991case "(($ac_try" in
22992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22993 *) ac_try_echo=$ac_try;;
22994esac
22995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22996$as_echo "$ac_try_echo") >&5
22997 (eval "$ac_compile") 2>conftest.er1
22998 ac_status=$?
22999 grep -v '^ *+' conftest.er1 >conftest.err
23000 rm -f conftest.er1
23001 cat conftest.err >&5
23002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23003 (exit $ac_status); } && {
23004 test -z "$ac_c_werror_flag" ||
23005 test ! -s conftest.err
23006 } && test -s conftest.$ac_objext; then
23007 ac_cv_header_stat_broken=no
23008else
23009 $as_echo "$as_me: failed program was:" >&5
23010sed 's/^/| /' conftest.$ac_ext >&5
23011
23012 ac_cv_header_stat_broken=yes
23013fi
23014
23015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23016fi
23017{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
23018$as_echo "$ac_cv_header_stat_broken" >&6; }
23019if test $ac_cv_header_stat_broken = yes; then
23020
23021cat >>confdefs.h <<\_ACEOF
23022#define STAT_MACROS_BROKEN 1
23023_ACEOF
23024
23025fi
23026
23027{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23028$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23029if test "${ac_cv_header_time+set}" = set; then
23030 $as_echo_n "(cached) " >&6
23031else
23032 cat >conftest.$ac_ext <<_ACEOF
23033/* confdefs.h. */
23034_ACEOF
23035cat confdefs.h >>conftest.$ac_ext
23036cat >>conftest.$ac_ext <<_ACEOF
23037/* end confdefs.h. */
23038#include <sys/types.h>
23039#include <sys/time.h>
23040#include <time.h>
23041
23042int
23043main ()
23044{
23045if ((struct tm *) 0)
23046return 0;
23047 ;
23048 return 0;
23049}
23050_ACEOF
23051rm -f conftest.$ac_objext
23052if { (ac_try="$ac_compile"
23053case "(($ac_try" in
23054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23055 *) ac_try_echo=$ac_try;;
23056esac
23057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23058$as_echo "$ac_try_echo") >&5
23059 (eval "$ac_compile") 2>conftest.er1
23060 ac_status=$?
23061 grep -v '^ *+' conftest.er1 >conftest.err
23062 rm -f conftest.er1
23063 cat conftest.err >&5
23064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23065 (exit $ac_status); } && {
23066 test -z "$ac_c_werror_flag" ||
23067 test ! -s conftest.err
23068 } && test -s conftest.$ac_objext; then
23069 ac_cv_header_time=yes
23070else
23071 $as_echo "$as_me: failed program was:" >&5
23072sed 's/^/| /' conftest.$ac_ext >&5
23073
23074 ac_cv_header_time=no
23075fi
23076
23077rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23078fi
23079{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23080$as_echo "$ac_cv_header_time" >&6; }
23081if test $ac_cv_header_time = yes; then
23082
23083cat >>confdefs.h <<\_ACEOF
23084#define TIME_WITH_SYS_TIME 1
23085_ACEOF
23086
23087fi
23088
23089{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23090$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
23091if test "${ac_cv_struct_tm+set}" = set; then
23092 $as_echo_n "(cached) " >&6
23093else
23094 cat >conftest.$ac_ext <<_ACEOF
23095/* confdefs.h. */
23096_ACEOF
23097cat confdefs.h >>conftest.$ac_ext
23098cat >>conftest.$ac_ext <<_ACEOF
23099/* end confdefs.h. */
23100#include <sys/types.h>
23101#include <time.h>
23102
23103int
23104main ()
23105{
23106struct tm tm;
23107 int *p = &tm.tm_sec;
23108 return !p;
23109 ;
23110 return 0;
23111}
23112_ACEOF
23113rm -f conftest.$ac_objext
23114if { (ac_try="$ac_compile"
23115case "(($ac_try" in
23116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23117 *) ac_try_echo=$ac_try;;
23118esac
23119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23120$as_echo "$ac_try_echo") >&5
23121 (eval "$ac_compile") 2>conftest.er1
23122 ac_status=$?
23123 grep -v '^ *+' conftest.er1 >conftest.err
23124 rm -f conftest.er1
23125 cat conftest.err >&5
23126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23127 (exit $ac_status); } && {
23128 test -z "$ac_c_werror_flag" ||
23129 test ! -s conftest.err
23130 } && test -s conftest.$ac_objext; then
23131 ac_cv_struct_tm=time.h
23132else
23133 $as_echo "$as_me: failed program was:" >&5
23134sed 's/^/| /' conftest.$ac_ext >&5
23135
23136 ac_cv_struct_tm=sys/time.h
23137fi
23138
23139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23140fi
23141{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23142$as_echo "$ac_cv_struct_tm" >&6; }
23143if test $ac_cv_struct_tm = sys/time.h; then
23144
23145cat >>confdefs.h <<\_ACEOF
23146#define TM_IN_SYS_TIME 1
23147_ACEOF
23148
23149fi
23150
23151{ $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
23152$as_echo_n "checking whether #! works in shell scripts... " >&6; }
23153if test "${ac_cv_sys_interpreter+set}" = set; then
23154 $as_echo_n "(cached) " >&6
23155else
23156 echo '#! /bin/cat
23157exit 69
23158' >conftest
23159chmod u+x conftest
23160(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
23161if test $? -ne 69; then
23162 ac_cv_sys_interpreter=yes
23163else
23164 ac_cv_sys_interpreter=no
23165fi
23166rm -f conftest
23167fi
23168{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
23169$as_echo "$ac_cv_sys_interpreter" >&6; }
23170interpval=$ac_cv_sys_interpreter
23171
23172
23173# If the C compiler does not fully support the ANSI C qualifier const,
23174# define const to be empty.
23175{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23176$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
23177if test "${ac_cv_c_const+set}" = set; then
23178 $as_echo_n "(cached) " >&6
23179else
23180 cat >conftest.$ac_ext <<_ACEOF
23181/* confdefs.h. */
23182_ACEOF
23183cat confdefs.h >>conftest.$ac_ext
23184cat >>conftest.$ac_ext <<_ACEOF
23185/* end confdefs.h. */
23186
23187int
23188main ()
23189{
23190/* FIXME: Include the comments suggested by Paul. */
23191#ifndef __cplusplus
23192 /* Ultrix mips cc rejects this. */
23193 typedef int charset[2];
23194 const charset cs;
23195 /* SunOS 4.1.1 cc rejects this. */
23196 char const *const *pcpcc;
23197 char **ppc;
23198 /* NEC SVR4.0.2 mips cc rejects this. */
23199 struct point {int x, y;};
23200 static struct point const zero = {0,0};
23201 /* AIX XL C 1.02.0.0 rejects this.
23202 It does not let you subtract one const X* pointer from another in
23203 an arm of an if-expression whose if-part is not a constant
23204 expression */
23205 const char *g = "string";
23206 pcpcc = &g + (g ? g-g : 0);
23207 /* HPUX 7.0 cc rejects these. */
23208 ++pcpcc;
23209 ppc = (char**) pcpcc;
23210 pcpcc = (char const *const *) ppc;
23211 { /* SCO 3.2v4 cc rejects this. */
23212 char *t;
23213 char const *s = 0 ? (char *) 0 : (char const *) 0;
23214
23215 *t++ = 0;
23216 if (s) return 0;
23217 }
23218 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23219 int x[] = {25, 17};
23220 const int *foo = &x[0];
23221 ++foo;
23222 }
23223 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23224 typedef const int *iptr;
23225 iptr p = 0;
23226 ++p;
23227 }
23228 { /* AIX XL C 1.02.0.0 rejects this saying
23229 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23230 struct s { int j; const int *ap[3]; };
23231 struct s *b; b->j = 5;
23232 }
23233 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23234 const int foo = 10;
23235 if (!foo) return 0;
23236 }
23237 return !cs[0] && !zero.x;
23238#endif
23239
23240 ;
23241 return 0;
23242}
23243_ACEOF
23244rm -f conftest.$ac_objext
23245if { (ac_try="$ac_compile"
23246case "(($ac_try" in
23247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248 *) ac_try_echo=$ac_try;;
23249esac
23250eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23251$as_echo "$ac_try_echo") >&5
23252 (eval "$ac_compile") 2>conftest.er1
23253 ac_status=$?
23254 grep -v '^ *+' conftest.er1 >conftest.err
23255 rm -f conftest.er1
23256 cat conftest.err >&5
23257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23258 (exit $ac_status); } && {
23259 test -z "$ac_c_werror_flag" ||
23260 test ! -s conftest.err
23261 } && test -s conftest.$ac_objext; then
23262 ac_cv_c_const=yes
23263else
23264 $as_echo "$as_me: failed program was:" >&5
23265sed 's/^/| /' conftest.$ac_ext >&5
23266
23267 ac_cv_c_const=no
23268fi
23269
23270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23271fi
23272{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23273$as_echo "$ac_cv_c_const" >&6; }
23274if test $ac_cv_c_const = no; then
23275
23276cat >>confdefs.h <<\_ACEOF
23277#define const /**/
23278_ACEOF
23279
23280fi
23281
23282
23283# If the C compiler supports the keyword inline, do nothing. Otherwise
23284# define inline to __inline__ or __inline if it accepts one of those,
23285# otherwise define inline to be empty.
23286{ $as_echo "$as_me:$LINENO: checking for inline" >&5
23287$as_echo_n "checking for inline... " >&6; }
23288if test "${ac_cv_c_inline+set}" = set; then
23289 $as_echo_n "(cached) " >&6
23290else
23291 ac_cv_c_inline=no
23292for ac_kw in inline __inline__ __inline; do
23293 cat >conftest.$ac_ext <<_ACEOF
23294/* confdefs.h. */
23295_ACEOF
23296cat confdefs.h >>conftest.$ac_ext
23297cat >>conftest.$ac_ext <<_ACEOF
23298/* end confdefs.h. */
23299#ifndef __cplusplus
23300typedef int foo_t;
23301static $ac_kw foo_t static_foo () {return 0; }
23302$ac_kw foo_t foo () {return 0; }
23303#endif
23304
23305_ACEOF
23306rm -f conftest.$ac_objext
23307if { (ac_try="$ac_compile"
23308case "(($ac_try" in
23309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23310 *) ac_try_echo=$ac_try;;
23311esac
23312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23313$as_echo "$ac_try_echo") >&5
23314 (eval "$ac_compile") 2>conftest.er1
23315 ac_status=$?
23316 grep -v '^ *+' conftest.er1 >conftest.err
23317 rm -f conftest.er1
23318 cat conftest.err >&5
23319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); } && {
23321 test -z "$ac_c_werror_flag" ||
23322 test ! -s conftest.err
23323 } && test -s conftest.$ac_objext; then
23324 ac_cv_c_inline=$ac_kw
23325else
23326 $as_echo "$as_me: failed program was:" >&5
23327sed 's/^/| /' conftest.$ac_ext >&5
23328
23329
23330fi
23331
23332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23333 test "$ac_cv_c_inline" != no && break
23334done
23335
23336fi
23337{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
23338$as_echo "$ac_cv_c_inline" >&6; }
23339
23340
23341case $ac_cv_c_inline in
23342 inline | yes) ;;
23343 *)
23344 case $ac_cv_c_inline in
23345 no) ac_val=;;
23346 *) ac_val=$ac_cv_c_inline;;
23347 esac
23348 cat >>confdefs.h <<_ACEOF
23349#ifndef __cplusplus
23350#define inline $ac_val
23351#endif
23352_ACEOF
23353 ;;
23354esac
23355
23356
23357# If the C compiler supports the keyword restrict, do nothing. Otherwise
23358# define restrict to __restrict__ or __restrict if it accepts one of those,
23359# otherwise define restrict to be empty.
23360{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
23361$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
23362if test "${ac_cv_c_restrict+set}" = set; then
23363 $as_echo_n "(cached) " >&6
23364else
23365 ac_cv_c_restrict=no
23366 # The order here caters to the fact that C++ does not require restrict.
23367 for ac_kw in __restrict __restrict__ _Restrict restrict; do
23368 cat >conftest.$ac_ext <<_ACEOF
23369/* confdefs.h. */
23370_ACEOF
23371cat confdefs.h >>conftest.$ac_ext
23372cat >>conftest.$ac_ext <<_ACEOF
23373/* end confdefs.h. */
23374typedef int * int_ptr;
23375 int foo (int_ptr $ac_kw ip) {
23376 return ip[0];
23377 }
23378int
23379main ()
23380{
23381int s[1];
23382 int * $ac_kw t = s;
23383 t[0] = 0;
23384 return foo(t)
23385 ;
23386 return 0;
23387}
23388_ACEOF
23389rm -f conftest.$ac_objext
23390if { (ac_try="$ac_compile"
23391case "(($ac_try" in
23392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393 *) ac_try_echo=$ac_try;;
23394esac
23395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23396$as_echo "$ac_try_echo") >&5
23397 (eval "$ac_compile") 2>conftest.er1
23398 ac_status=$?
23399 grep -v '^ *+' conftest.er1 >conftest.err
23400 rm -f conftest.er1
23401 cat conftest.err >&5
23402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); } && {
23404 test -z "$ac_c_werror_flag" ||
23405 test ! -s conftest.err
23406 } && test -s conftest.$ac_objext; then
23407 ac_cv_c_restrict=$ac_kw
23408else
23409 $as_echo "$as_me: failed program was:" >&5
23410sed 's/^/| /' conftest.$ac_ext >&5
23411
23412
23413fi
23414
23415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23416 test "$ac_cv_c_restrict" != no && break
23417 done
23418
23419fi
23420{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
23421$as_echo "$ac_cv_c_restrict" >&6; }
23422
23423
23424 case $ac_cv_c_restrict in
23425 restrict) ;;
23426 no) cat >>confdefs.h <<\_ACEOF
23427#define restrict /**/
23428_ACEOF
23429 ;;
23430 *) cat >>confdefs.h <<_ACEOF
23431#define restrict $ac_cv_c_restrict
23432_ACEOF
23433 ;;
23434 esac
23435
23436
23437# If words are stored with the most significant byte first (like
23438# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
23439
23440 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
23441$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23442if test "${ac_cv_c_bigendian+set}" = set; then
23443 $as_echo_n "(cached) " >&6
23444else
23445 ac_cv_c_bigendian=unknown
23446 # See if we're dealing with a universal compiler.
23447 cat >conftest.$ac_ext <<_ACEOF
23448/* confdefs.h. */
23449_ACEOF
23450cat confdefs.h >>conftest.$ac_ext
23451cat >>conftest.$ac_ext <<_ACEOF
23452/* end confdefs.h. */
23453#ifndef __APPLE_CC__
23454 not a universal capable compiler
23455 #endif
23456 typedef int dummy;
23457
23458_ACEOF
23459rm -f conftest.$ac_objext
23460if { (ac_try="$ac_compile"
23461case "(($ac_try" in
23462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23463 *) ac_try_echo=$ac_try;;
23464esac
23465eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23466$as_echo "$ac_try_echo") >&5
23467 (eval "$ac_compile") 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } && {
23474 test -z "$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23476 } && test -s conftest.$ac_objext; then
23477
23478 # Check for potential -arch flags. It is not universal unless
23479 # there are some -arch flags. Note that *ppc* also matches
23480 # ppc64. This check is also rather less than ideal.
23481 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
23482 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
23483 esac
23484else
23485 $as_echo "$as_me: failed program was:" >&5
23486sed 's/^/| /' conftest.$ac_ext >&5
23487
23488
23489fi
23490
23491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23492 if test $ac_cv_c_bigendian = unknown; then
23493 # See if sys/param.h defines the BYTE_ORDER macro.
23494 cat >conftest.$ac_ext <<_ACEOF
23495/* confdefs.h. */
23496_ACEOF
23497cat confdefs.h >>conftest.$ac_ext
23498cat >>conftest.$ac_ext <<_ACEOF
23499/* end confdefs.h. */
23500#include <sys/types.h>
23501 #include <sys/param.h>
23502
23503int
23504main ()
23505{
23506#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23507 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23508 && LITTLE_ENDIAN)
23509 bogus endian macros
23510 #endif
23511
23512 ;
23513 return 0;
23514}
23515_ACEOF
23516rm -f conftest.$ac_objext
23517if { (ac_try="$ac_compile"
23518case "(($ac_try" in
23519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23520 *) ac_try_echo=$ac_try;;
23521esac
23522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23523$as_echo "$ac_try_echo") >&5
23524 (eval "$ac_compile") 2>conftest.er1
23525 ac_status=$?
23526 grep -v '^ *+' conftest.er1 >conftest.err
23527 rm -f conftest.er1
23528 cat conftest.err >&5
23529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23530 (exit $ac_status); } && {
23531 test -z "$ac_c_werror_flag" ||
23532 test ! -s conftest.err
23533 } && test -s conftest.$ac_objext; then
23534 # It does; now see whether it defined to BIG_ENDIAN or not.
23535 cat >conftest.$ac_ext <<_ACEOF
23536/* confdefs.h. */
23537_ACEOF
23538cat confdefs.h >>conftest.$ac_ext
23539cat >>conftest.$ac_ext <<_ACEOF
23540/* end confdefs.h. */
23541#include <sys/types.h>
23542 #include <sys/param.h>
23543
23544int
23545main ()
23546{
23547#if BYTE_ORDER != BIG_ENDIAN
23548 not big endian
23549 #endif
23550
23551 ;
23552 return 0;
23553}
23554_ACEOF
23555rm -f conftest.$ac_objext
23556if { (ac_try="$ac_compile"
23557case "(($ac_try" in
23558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23559 *) ac_try_echo=$ac_try;;
23560esac
23561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23562$as_echo "$ac_try_echo") >&5
23563 (eval "$ac_compile") 2>conftest.er1
23564 ac_status=$?
23565 grep -v '^ *+' conftest.er1 >conftest.err
23566 rm -f conftest.er1
23567 cat conftest.err >&5
23568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23569 (exit $ac_status); } && {
23570 test -z "$ac_c_werror_flag" ||
23571 test ! -s conftest.err
23572 } && test -s conftest.$ac_objext; then
23573 ac_cv_c_bigendian=yes
23574else
23575 $as_echo "$as_me: failed program was:" >&5
23576sed 's/^/| /' conftest.$ac_ext >&5
23577
23578 ac_cv_c_bigendian=no
23579fi
23580
23581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23582else
23583 $as_echo "$as_me: failed program was:" >&5
23584sed 's/^/| /' conftest.$ac_ext >&5
23585
23586
23587fi
23588
23589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590 fi
23591 if test $ac_cv_c_bigendian = unknown; then
23592 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23593 cat >conftest.$ac_ext <<_ACEOF
23594/* confdefs.h. */
23595_ACEOF
23596cat confdefs.h >>conftest.$ac_ext
23597cat >>conftest.$ac_ext <<_ACEOF
23598/* end confdefs.h. */
23599#include <limits.h>
23600
23601int
23602main ()
23603{
23604#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23605 bogus endian macros
23606 #endif
23607
23608 ;
23609 return 0;
23610}
23611_ACEOF
23612rm -f conftest.$ac_objext
23613if { (ac_try="$ac_compile"
23614case "(($ac_try" in
23615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23616 *) ac_try_echo=$ac_try;;
23617esac
23618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23619$as_echo "$ac_try_echo") >&5
23620 (eval "$ac_compile") 2>conftest.er1
23621 ac_status=$?
23622 grep -v '^ *+' conftest.er1 >conftest.err
23623 rm -f conftest.er1
23624 cat conftest.err >&5
23625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23626 (exit $ac_status); } && {
23627 test -z "$ac_c_werror_flag" ||
23628 test ! -s conftest.err
23629 } && test -s conftest.$ac_objext; then
23630 # It does; now see whether it defined to _BIG_ENDIAN or not.
23631 cat >conftest.$ac_ext <<_ACEOF
23632/* confdefs.h. */
23633_ACEOF
23634cat confdefs.h >>conftest.$ac_ext
23635cat >>conftest.$ac_ext <<_ACEOF
23636/* end confdefs.h. */
23637#include <limits.h>
23638
23639int
23640main ()
23641{
23642#ifndef _BIG_ENDIAN
23643 not big endian
23644 #endif
23645
23646 ;
23647 return 0;
23648}
23649_ACEOF
23650rm -f conftest.$ac_objext
23651if { (ac_try="$ac_compile"
23652case "(($ac_try" in
23653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23654 *) ac_try_echo=$ac_try;;
23655esac
23656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23657$as_echo "$ac_try_echo") >&5
23658 (eval "$ac_compile") 2>conftest.er1
23659 ac_status=$?
23660 grep -v '^ *+' conftest.er1 >conftest.err
23661 rm -f conftest.er1
23662 cat conftest.err >&5
23663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); } && {
23665 test -z "$ac_c_werror_flag" ||
23666 test ! -s conftest.err
23667 } && test -s conftest.$ac_objext; then
23668 ac_cv_c_bigendian=yes
23669else
23670 $as_echo "$as_me: failed program was:" >&5
23671sed 's/^/| /' conftest.$ac_ext >&5
23672
23673 ac_cv_c_bigendian=no
23674fi
23675
23676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23677else
23678 $as_echo "$as_me: failed program was:" >&5
23679sed 's/^/| /' conftest.$ac_ext >&5
23680
23681
23682fi
23683
23684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23685 fi
23686 if test $ac_cv_c_bigendian = unknown; then
23687 # Compile a test program.
23688 if test "$cross_compiling" = yes; then
23689 # Try to guess by grepping values from an object file.
23690 cat >conftest.$ac_ext <<_ACEOF
23691/* confdefs.h. */
23692_ACEOF
23693cat confdefs.h >>conftest.$ac_ext
23694cat >>conftest.$ac_ext <<_ACEOF
23695/* end confdefs.h. */
23696short int ascii_mm[] =
23697 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23698 short int ascii_ii[] =
23699 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23700 int use_ascii (int i) {
23701 return ascii_mm[i] + ascii_ii[i];
23702 }
23703 short int ebcdic_ii[] =
23704 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23705 short int ebcdic_mm[] =
23706 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23707 int use_ebcdic (int i) {
23708 return ebcdic_mm[i] + ebcdic_ii[i];
23709 }
23710 extern int foo;
23711
23712int
23713main ()
23714{
23715return use_ascii (foo) == use_ebcdic (foo);
23716 ;
23717 return 0;
23718}
23719_ACEOF
23720rm -f conftest.$ac_objext
23721if { (ac_try="$ac_compile"
23722case "(($ac_try" in
23723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724 *) ac_try_echo=$ac_try;;
23725esac
23726eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23727$as_echo "$ac_try_echo") >&5
23728 (eval "$ac_compile") 2>conftest.er1
23729 ac_status=$?
23730 grep -v '^ *+' conftest.er1 >conftest.err
23731 rm -f conftest.er1
23732 cat conftest.err >&5
23733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23734 (exit $ac_status); } && {
23735 test -z "$ac_c_werror_flag" ||
23736 test ! -s conftest.err
23737 } && test -s conftest.$ac_objext; then
23738 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23739 ac_cv_c_bigendian=yes
23740 fi
23741 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23742 if test "$ac_cv_c_bigendian" = unknown; then
23743 ac_cv_c_bigendian=no
23744 else
23745 # finding both strings is unlikely to happen, but who knows?
23746 ac_cv_c_bigendian=unknown
23747 fi
23748 fi
23749else
23750 $as_echo "$as_me: failed program was:" >&5
23751sed 's/^/| /' conftest.$ac_ext >&5
23752
23753
23754fi
23755
23756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23757else
23758 cat >conftest.$ac_ext <<_ACEOF
23759/* confdefs.h. */
23760_ACEOF
23761cat confdefs.h >>conftest.$ac_ext
23762cat >>conftest.$ac_ext <<_ACEOF
23763/* end confdefs.h. */
23764$ac_includes_default
23765int
23766main ()
23767{
23768
23769 /* Are we little or big endian? From Harbison&Steele. */
23770 union
23771 {
23772 long int l;
23773 char c[sizeof (long int)];
23774 } u;
23775 u.l = 1;
23776 return u.c[sizeof (long int) - 1] == 1;
23777
23778 ;
23779 return 0;
23780}
23781_ACEOF
23782rm -f conftest$ac_exeext
23783if { (ac_try="$ac_link"
23784case "(($ac_try" in
23785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23786 *) ac_try_echo=$ac_try;;
23787esac
23788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23789$as_echo "$ac_try_echo") >&5
23790 (eval "$ac_link") 2>&5
23791 ac_status=$?
23792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23793 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23794 { (case "(($ac_try" in
23795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796 *) ac_try_echo=$ac_try;;
23797esac
23798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23799$as_echo "$ac_try_echo") >&5
23800 (eval "$ac_try") 2>&5
23801 ac_status=$?
23802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); }; }; then
23804 ac_cv_c_bigendian=no
23805else
23806 $as_echo "$as_me: program exited with status $ac_status" >&5
23807$as_echo "$as_me: failed program was:" >&5
23808sed 's/^/| /' conftest.$ac_ext >&5
23809
23810( exit $ac_status )
23811ac_cv_c_bigendian=yes
23812fi
23813rm -rf conftest.dSYM
23814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23815fi
23816
23817
23818 fi
23819fi
23820{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23821$as_echo "$ac_cv_c_bigendian" >&6; }
23822 case $ac_cv_c_bigendian in #(
23823 yes)
23824 cat >>confdefs.h <<\_ACEOF
23825#define WORDS_BIGENDIAN 1
23826_ACEOF
23827;; #(
23828 no)
23829 ;; #(
23830 universal)
23831
23832cat >>confdefs.h <<\_ACEOF
23833#define AC_APPLE_UNIVERSAL_BUILD 1
23834_ACEOF
23835
23836 ;; #(
23837 *)
23838 { { $as_echo "$as_me:$LINENO: error: unknown endianness
23839 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23840$as_echo "$as_me: error: unknown endianness
23841 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23842 { (exit 1); exit 1; }; } ;;
23843 esac
23844
23845
23846# Define mode_t to a suitable type, if standard headers do not define it.
23847{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
23848$as_echo_n "checking for mode_t... " >&6; }
23849if test "${ac_cv_type_mode_t+set}" = set; then
23850 $as_echo_n "(cached) " >&6
23851else
23852 ac_cv_type_mode_t=no
23853cat >conftest.$ac_ext <<_ACEOF
23854/* confdefs.h. */
23855_ACEOF
23856cat confdefs.h >>conftest.$ac_ext
23857cat >>conftest.$ac_ext <<_ACEOF
23858/* end confdefs.h. */
23859$ac_includes_default
23860int
23861main ()
23862{
23863if (sizeof (mode_t))
23864 return 0;
23865 ;
23866 return 0;
23867}
23868_ACEOF
23869rm -f conftest.$ac_objext
23870if { (ac_try="$ac_compile"
23871case "(($ac_try" in
23872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23873 *) ac_try_echo=$ac_try;;
23874esac
23875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23876$as_echo "$ac_try_echo") >&5
23877 (eval "$ac_compile") 2>conftest.er1
23878 ac_status=$?
23879 grep -v '^ *+' conftest.er1 >conftest.err
23880 rm -f conftest.er1
23881 cat conftest.err >&5
23882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883 (exit $ac_status); } && {
23884 test -z "$ac_c_werror_flag" ||
23885 test ! -s conftest.err
23886 } && test -s conftest.$ac_objext; then
23887 cat >conftest.$ac_ext <<_ACEOF
23888/* confdefs.h. */
23889_ACEOF
23890cat confdefs.h >>conftest.$ac_ext
23891cat >>conftest.$ac_ext <<_ACEOF
23892/* end confdefs.h. */
23893$ac_includes_default
23894int
23895main ()
23896{
23897if (sizeof ((mode_t)))
23898 return 0;
23899 ;
23900 return 0;
23901}
23902_ACEOF
23903rm -f conftest.$ac_objext
23904if { (ac_try="$ac_compile"
23905case "(($ac_try" in
23906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23907 *) ac_try_echo=$ac_try;;
23908esac
23909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23910$as_echo "$ac_try_echo") >&5
23911 (eval "$ac_compile") 2>conftest.er1
23912 ac_status=$?
23913 grep -v '^ *+' conftest.er1 >conftest.err
23914 rm -f conftest.er1
23915 cat conftest.err >&5
23916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23917 (exit $ac_status); } && {
23918 test -z "$ac_c_werror_flag" ||
23919 test ! -s conftest.err
23920 } && test -s conftest.$ac_objext; then
23921 :
23922else
23923 $as_echo "$as_me: failed program was:" >&5
23924sed 's/^/| /' conftest.$ac_ext >&5
23925
23926 ac_cv_type_mode_t=yes
23927fi
23928
23929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23930else
23931 $as_echo "$as_me: failed program was:" >&5
23932sed 's/^/| /' conftest.$ac_ext >&5
23933
23934
23935fi
23936
23937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23938fi
23939{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
23940$as_echo "$ac_cv_type_mode_t" >&6; }
23941if test "x$ac_cv_type_mode_t" = x""yes; then
23942 :
23943else
23944
23945cat >>confdefs.h <<_ACEOF
23946#define mode_t int
23947_ACEOF
23948
23949fi
23950
23951
23952# Define off_t to a suitable type, if standard headers do not define it.
23953{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
23954$as_echo_n "checking for off_t... " >&6; }
23955if test "${ac_cv_type_off_t+set}" = set; then
23956 $as_echo_n "(cached) " >&6
23957else
23958 ac_cv_type_off_t=no
23959cat >conftest.$ac_ext <<_ACEOF
23960/* confdefs.h. */
23961_ACEOF
23962cat confdefs.h >>conftest.$ac_ext
23963cat >>conftest.$ac_ext <<_ACEOF
23964/* end confdefs.h. */
23965$ac_includes_default
23966int
23967main ()
23968{
23969if (sizeof (off_t))
23970 return 0;
23971 ;
23972 return 0;
23973}
23974_ACEOF
23975rm -f conftest.$ac_objext
23976if { (ac_try="$ac_compile"
23977case "(($ac_try" in
23978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23979 *) ac_try_echo=$ac_try;;
23980esac
23981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23982$as_echo "$ac_try_echo") >&5
23983 (eval "$ac_compile") 2>conftest.er1
23984 ac_status=$?
23985 grep -v '^ *+' conftest.er1 >conftest.err
23986 rm -f conftest.er1
23987 cat conftest.err >&5
23988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); } && {
23990 test -z "$ac_c_werror_flag" ||
23991 test ! -s conftest.err
23992 } && test -s conftest.$ac_objext; then
23993 cat >conftest.$ac_ext <<_ACEOF
23994/* confdefs.h. */
23995_ACEOF
23996cat confdefs.h >>conftest.$ac_ext
23997cat >>conftest.$ac_ext <<_ACEOF
23998/* end confdefs.h. */
23999$ac_includes_default
24000int
24001main ()
24002{
24003if (sizeof ((off_t)))
24004 return 0;
24005 ;
24006 return 0;
24007}
24008_ACEOF
24009rm -f conftest.$ac_objext
24010if { (ac_try="$ac_compile"
24011case "(($ac_try" in
24012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24013 *) ac_try_echo=$ac_try;;
24014esac
24015eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24016$as_echo "$ac_try_echo") >&5
24017 (eval "$ac_compile") 2>conftest.er1
24018 ac_status=$?
24019 grep -v '^ *+' conftest.er1 >conftest.err
24020 rm -f conftest.er1
24021 cat conftest.err >&5
24022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); } && {
24024 test -z "$ac_c_werror_flag" ||
24025 test ! -s conftest.err
24026 } && test -s conftest.$ac_objext; then
24027 :
24028else
24029 $as_echo "$as_me: failed program was:" >&5
24030sed 's/^/| /' conftest.$ac_ext >&5
24031
24032 ac_cv_type_off_t=yes
24033fi
24034
24035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036else
24037 $as_echo "$as_me: failed program was:" >&5
24038sed 's/^/| /' conftest.$ac_ext >&5
24039
24040
24041fi
24042
24043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24044fi
24045{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
24046$as_echo "$ac_cv_type_off_t" >&6; }
24047if test "x$ac_cv_type_off_t" = x""yes; then
24048 :
24049else
24050
24051cat >>confdefs.h <<_ACEOF
24052#define off_t long int
24053_ACEOF
24054
24055fi
24056
24057
24058# Define pid_t to a suitable type, if standard headers do not define it.
24059{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
24060$as_echo_n "checking for pid_t... " >&6; }
24061if test "${ac_cv_type_pid_t+set}" = set; then
24062 $as_echo_n "(cached) " >&6
24063else
24064 ac_cv_type_pid_t=no
24065cat >conftest.$ac_ext <<_ACEOF
24066/* confdefs.h. */
24067_ACEOF
24068cat confdefs.h >>conftest.$ac_ext
24069cat >>conftest.$ac_ext <<_ACEOF
24070/* end confdefs.h. */
24071$ac_includes_default
24072int
24073main ()
24074{
24075if (sizeof (pid_t))
24076 return 0;
24077 ;
24078 return 0;
24079}
24080_ACEOF
24081rm -f conftest.$ac_objext
24082if { (ac_try="$ac_compile"
24083case "(($ac_try" in
24084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24085 *) ac_try_echo=$ac_try;;
24086esac
24087eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24088$as_echo "$ac_try_echo") >&5
24089 (eval "$ac_compile") 2>conftest.er1
24090 ac_status=$?
24091 grep -v '^ *+' conftest.er1 >conftest.err
24092 rm -f conftest.er1
24093 cat conftest.err >&5
24094 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24095 (exit $ac_status); } && {
24096 test -z "$ac_c_werror_flag" ||
24097 test ! -s conftest.err
24098 } && test -s conftest.$ac_objext; then
24099 cat >conftest.$ac_ext <<_ACEOF
24100/* confdefs.h. */
24101_ACEOF
24102cat confdefs.h >>conftest.$ac_ext
24103cat >>conftest.$ac_ext <<_ACEOF
24104/* end confdefs.h. */
24105$ac_includes_default
24106int
24107main ()
24108{
24109if (sizeof ((pid_t)))
24110 return 0;
24111 ;
24112 return 0;
24113}
24114_ACEOF
24115rm -f conftest.$ac_objext
24116if { (ac_try="$ac_compile"
24117case "(($ac_try" in
24118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24119 *) ac_try_echo=$ac_try;;
24120esac
24121eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24122$as_echo "$ac_try_echo") >&5
24123 (eval "$ac_compile") 2>conftest.er1
24124 ac_status=$?
24125 grep -v '^ *+' conftest.er1 >conftest.err
24126 rm -f conftest.er1
24127 cat conftest.err >&5
24128 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24129 (exit $ac_status); } && {
24130 test -z "$ac_c_werror_flag" ||
24131 test ! -s conftest.err
24132 } && test -s conftest.$ac_objext; then
24133 :
24134else
24135 $as_echo "$as_me: failed program was:" >&5
24136sed 's/^/| /' conftest.$ac_ext >&5
24137
24138 ac_cv_type_pid_t=yes
24139fi
24140
24141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24142else
24143 $as_echo "$as_me: failed program was:" >&5
24144sed 's/^/| /' conftest.$ac_ext >&5
24145
24146
24147fi
24148
24149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24150fi
24151{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24152$as_echo "$ac_cv_type_pid_t" >&6; }
24153if test "x$ac_cv_type_pid_t" = x""yes; then
24154 :
24155else
24156
24157cat >>confdefs.h <<_ACEOF
24158#define pid_t int
24159_ACEOF
24160
24161fi
24162
24163
24164# Define size_t to a suitable type, if standard headers do not define it.
24165{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
24166$as_echo_n "checking for size_t... " >&6; }
24167if test "${ac_cv_type_size_t+set}" = set; then
24168 $as_echo_n "(cached) " >&6
24169else
24170 ac_cv_type_size_t=no
24171cat >conftest.$ac_ext <<_ACEOF
24172/* confdefs.h. */
24173_ACEOF
24174cat confdefs.h >>conftest.$ac_ext
24175cat >>conftest.$ac_ext <<_ACEOF
24176/* end confdefs.h. */
24177$ac_includes_default
24178int
24179main ()
24180{
24181if (sizeof (size_t))
24182 return 0;
24183 ;
24184 return 0;
24185}
24186_ACEOF
24187rm -f conftest.$ac_objext
24188if { (ac_try="$ac_compile"
24189case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24192esac
24193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24194$as_echo "$ac_try_echo") >&5
24195 (eval "$ac_compile") 2>conftest.er1
24196 ac_status=$?
24197 grep -v '^ *+' conftest.er1 >conftest.err
24198 rm -f conftest.er1
24199 cat conftest.err >&5
24200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); } && {
24202 test -z "$ac_c_werror_flag" ||
24203 test ! -s conftest.err
24204 } && test -s conftest.$ac_objext; then
24205 cat >conftest.$ac_ext <<_ACEOF
24206/* confdefs.h. */
24207_ACEOF
24208cat confdefs.h >>conftest.$ac_ext
24209cat >>conftest.$ac_ext <<_ACEOF
24210/* end confdefs.h. */
24211$ac_includes_default
24212int
24213main ()
24214{
24215if (sizeof ((size_t)))
24216 return 0;
24217 ;
24218 return 0;
24219}
24220_ACEOF
24221rm -f conftest.$ac_objext
24222if { (ac_try="$ac_compile"
24223case "(($ac_try" in
24224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24225 *) ac_try_echo=$ac_try;;
24226esac
24227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24228$as_echo "$ac_try_echo") >&5
24229 (eval "$ac_compile") 2>conftest.er1
24230 ac_status=$?
24231 grep -v '^ *+' conftest.er1 >conftest.err
24232 rm -f conftest.er1
24233 cat conftest.err >&5
24234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); } && {
24236 test -z "$ac_c_werror_flag" ||
24237 test ! -s conftest.err
24238 } && test -s conftest.$ac_objext; then
24239 :
24240else
24241 $as_echo "$as_me: failed program was:" >&5
24242sed 's/^/| /' conftest.$ac_ext >&5
24243
24244 ac_cv_type_size_t=yes
24245fi
24246
24247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24248else
24249 $as_echo "$as_me: failed program was:" >&5
24250sed 's/^/| /' conftest.$ac_ext >&5
24251
24252
24253fi
24254
24255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24256fi
24257{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
24258$as_echo "$ac_cv_type_size_t" >&6; }
24259if test "x$ac_cv_type_size_t" = x""yes; then
24260 :
24261else
24262
24263cat >>confdefs.h <<_ACEOF
24264#define size_t unsigned int
24265_ACEOF
24266
24267fi
24268
24269
24270# Define ssize_t to a suitable type, if standard headers do not define it.
24271{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
24272$as_echo_n "checking for ssize_t... " >&6; }
24273if test "${ac_cv_type_ssize_t+set}" = set; then
24274 $as_echo_n "(cached) " >&6
24275else
24276 ac_cv_type_ssize_t=no
24277cat >conftest.$ac_ext <<_ACEOF
24278/* confdefs.h. */
24279_ACEOF
24280cat confdefs.h >>conftest.$ac_ext
24281cat >>conftest.$ac_ext <<_ACEOF
24282/* end confdefs.h. */
24283$ac_includes_default
24284int
24285main ()
24286{
24287if (sizeof (ssize_t))
24288 return 0;
24289 ;
24290 return 0;
24291}
24292_ACEOF
24293rm -f conftest.$ac_objext
24294if { (ac_try="$ac_compile"
24295case "(($ac_try" in
24296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297 *) ac_try_echo=$ac_try;;
24298esac
24299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24300$as_echo "$ac_try_echo") >&5
24301 (eval "$ac_compile") 2>conftest.er1
24302 ac_status=$?
24303 grep -v '^ *+' conftest.er1 >conftest.err
24304 rm -f conftest.er1
24305 cat conftest.err >&5
24306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307 (exit $ac_status); } && {
24308 test -z "$ac_c_werror_flag" ||
24309 test ! -s conftest.err
24310 } && test -s conftest.$ac_objext; then
24311 cat >conftest.$ac_ext <<_ACEOF
24312/* confdefs.h. */
24313_ACEOF
24314cat confdefs.h >>conftest.$ac_ext
24315cat >>conftest.$ac_ext <<_ACEOF
24316/* end confdefs.h. */
24317$ac_includes_default
24318int
24319main ()
24320{
24321if (sizeof ((ssize_t)))
24322 return 0;
24323 ;
24324 return 0;
24325}
24326_ACEOF
24327rm -f conftest.$ac_objext
24328if { (ac_try="$ac_compile"
24329case "(($ac_try" in
24330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24331 *) ac_try_echo=$ac_try;;
24332esac
24333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24334$as_echo "$ac_try_echo") >&5
24335 (eval "$ac_compile") 2>conftest.er1
24336 ac_status=$?
24337 grep -v '^ *+' conftest.er1 >conftest.err
24338 rm -f conftest.er1
24339 cat conftest.err >&5
24340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24341 (exit $ac_status); } && {
24342 test -z "$ac_c_werror_flag" ||
24343 test ! -s conftest.err
24344 } && test -s conftest.$ac_objext; then
24345 :
24346else
24347 $as_echo "$as_me: failed program was:" >&5
24348sed 's/^/| /' conftest.$ac_ext >&5
24349
24350 ac_cv_type_ssize_t=yes
24351fi
24352
24353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24354else
24355 $as_echo "$as_me: failed program was:" >&5
24356sed 's/^/| /' conftest.$ac_ext >&5
24357
24358
24359fi
24360
24361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24362fi
24363{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
24364$as_echo "$ac_cv_type_ssize_t" >&6; }
24365if test "x$ac_cv_type_ssize_t" = x""yes; then
24366 :
24367else
24368
24369cat >>confdefs.h <<_ACEOF
24370#define ssize_t int
24371_ACEOF
24372
24373fi
24374
24375
24376# If the C compiler supports a working long double type with more range
24377# or precision than the double type, define HAVE_LONG_DOUBLE.
24378
24379 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
24380$as_echo_n "checking for long double with more range or precision than double... " >&6; }
24381if test "${ac_cv_type_long_double_wider+set}" = set; then
24382 $as_echo_n "(cached) " >&6
24383else
24384 cat >conftest.$ac_ext <<_ACEOF
24385/* confdefs.h. */
24386_ACEOF
24387cat confdefs.h >>conftest.$ac_ext
24388cat >>conftest.$ac_ext <<_ACEOF
24389/* end confdefs.h. */
24390#include <float.h>
24391 long double const a[] =
24392 {
24393 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
24394 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
24395 };
24396 long double
24397 f (long double x)
24398 {
24399 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
24400 + (x ? f (x) : 'c'));
24401 }
24402
24403int
24404main ()
24405{
24406static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
24407 + (DBL_MANT_DIG < LDBL_MANT_DIG)
24408 - (LDBL_MAX_EXP < DBL_MAX_EXP)
24409 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
24410 && (int) LDBL_EPSILON == 0
24411 )];
24412test_array [0] = 0
24413
24414 ;
24415 return 0;
24416}
24417_ACEOF
24418rm -f conftest.$ac_objext
24419if { (ac_try="$ac_compile"
24420case "(($ac_try" in
24421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24422 *) ac_try_echo=$ac_try;;
24423esac
24424eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24425$as_echo "$ac_try_echo") >&5
24426 (eval "$ac_compile") 2>conftest.er1
24427 ac_status=$?
24428 grep -v '^ *+' conftest.er1 >conftest.err
24429 rm -f conftest.er1
24430 cat conftest.err >&5
24431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24432 (exit $ac_status); } && {
24433 test -z "$ac_c_werror_flag" ||
24434 test ! -s conftest.err
24435 } && test -s conftest.$ac_objext; then
24436 ac_cv_type_long_double_wider=yes
24437else
24438 $as_echo "$as_me: failed program was:" >&5
24439sed 's/^/| /' conftest.$ac_ext >&5
24440
24441 ac_cv_type_long_double_wider=no
24442fi
24443
24444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24445fi
24446{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
24447$as_echo "$ac_cv_type_long_double_wider" >&6; }
24448 if test $ac_cv_type_long_double_wider = yes; then
24449
24450cat >>confdefs.h <<\_ACEOF
24451#define HAVE_LONG_DOUBLE_WIDER 1
24452_ACEOF
24453
24454 fi
24455
24456
24457# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
24458# C compiler predefines it.
24459
24460{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
24461$as_echo_n "checking whether char is unsigned... " >&6; }
24462if test "${ac_cv_c_char_unsigned+set}" = set; then
24463 $as_echo_n "(cached) " >&6
24464else
24465 cat >conftest.$ac_ext <<_ACEOF
24466/* confdefs.h. */
24467_ACEOF
24468cat confdefs.h >>conftest.$ac_ext
24469cat >>conftest.$ac_ext <<_ACEOF
24470/* end confdefs.h. */
24471$ac_includes_default
24472int
24473main ()
24474{
24475static int test_array [1 - 2 * !(((char) -1) < 0)];
24476test_array [0] = 0
24477
24478 ;
24479 return 0;
24480}
24481_ACEOF
24482rm -f conftest.$ac_objext
24483if { (ac_try="$ac_compile"
24484case "(($ac_try" in
24485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24486 *) ac_try_echo=$ac_try;;
24487esac
24488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24489$as_echo "$ac_try_echo") >&5
24490 (eval "$ac_compile") 2>conftest.er1
24491 ac_status=$?
24492 grep -v '^ *+' conftest.er1 >conftest.err
24493 rm -f conftest.er1
24494 cat conftest.err >&5
24495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24496 (exit $ac_status); } && {
24497 test -z "$ac_c_werror_flag" ||
24498 test ! -s conftest.err
24499 } && test -s conftest.$ac_objext; then
24500 ac_cv_c_char_unsigned=no
24501else
24502 $as_echo "$as_me: failed program was:" >&5
24503sed 's/^/| /' conftest.$ac_ext >&5
24504
24505 ac_cv_c_char_unsigned=yes
24506fi
24507
24508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24509fi
24510{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
24511$as_echo "$ac_cv_c_char_unsigned" >&6; }
24512if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
24513 cat >>confdefs.h <<\_ACEOF
24514#define __CHAR_UNSIGNED__ 1
24515_ACEOF
24516
24517fi
24518
24519
24520# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24521# The cast to long int works around a bug in the HP C Compiler
24522# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24523# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24524# This bug is HP SR number 8606223364.
24525{ $as_echo "$as_me:$LINENO: checking size of signed short" >&5
24526$as_echo_n "checking size of signed short... " >&6; }
24527if test "${ac_cv_sizeof_signed_short+set}" = set; then
24528 $as_echo_n "(cached) " >&6
24529else
24530 if test "$cross_compiling" = yes; then
24531 # Depending upon the size, compute the lo and hi bounds.
24532cat >conftest.$ac_ext <<_ACEOF
24533/* confdefs.h. */
24534_ACEOF
24535cat confdefs.h >>conftest.$ac_ext
24536cat >>conftest.$ac_ext <<_ACEOF
24537/* end confdefs.h. */
24538$ac_includes_default
24539int
24540main ()
24541{
24542static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
24543test_array [0] = 0
24544
24545 ;
24546 return 0;
24547}
24548_ACEOF
24549rm -f conftest.$ac_objext
24550if { (ac_try="$ac_compile"
24551case "(($ac_try" in
24552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24553 *) ac_try_echo=$ac_try;;
24554esac
24555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24556$as_echo "$ac_try_echo") >&5
24557 (eval "$ac_compile") 2>conftest.er1
24558 ac_status=$?
24559 grep -v '^ *+' conftest.er1 >conftest.err
24560 rm -f conftest.er1
24561 cat conftest.err >&5
24562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24563 (exit $ac_status); } && {
24564 test -z "$ac_c_werror_flag" ||
24565 test ! -s conftest.err
24566 } && test -s conftest.$ac_objext; then
24567 ac_lo=0 ac_mid=0
24568 while :; do
24569 cat >conftest.$ac_ext <<_ACEOF
24570/* confdefs.h. */
24571_ACEOF
24572cat confdefs.h >>conftest.$ac_ext
24573cat >>conftest.$ac_ext <<_ACEOF
24574/* end confdefs.h. */
24575$ac_includes_default
24576int
24577main ()
24578{
24579static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
24580test_array [0] = 0
24581
24582 ;
24583 return 0;
24584}
24585_ACEOF
24586rm -f conftest.$ac_objext
24587if { (ac_try="$ac_compile"
24588case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24591esac
24592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24593$as_echo "$ac_try_echo") >&5
24594 (eval "$ac_compile") 2>conftest.er1
24595 ac_status=$?
24596 grep -v '^ *+' conftest.er1 >conftest.err
24597 rm -f conftest.er1
24598 cat conftest.err >&5
24599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); } && {
24601 test -z "$ac_c_werror_flag" ||
24602 test ! -s conftest.err
24603 } && test -s conftest.$ac_objext; then
24604 ac_hi=$ac_mid; break
24605else
24606 $as_echo "$as_me: failed program was:" >&5
24607sed 's/^/| /' conftest.$ac_ext >&5
24608
24609 ac_lo=`expr $ac_mid + 1`
24610 if test $ac_lo -le $ac_mid; then
24611 ac_lo= ac_hi=
24612 break
24613 fi
24614 ac_mid=`expr 2 '*' $ac_mid + 1`
24615fi
24616
24617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24618 done
24619else
24620 $as_echo "$as_me: failed program was:" >&5
24621sed 's/^/| /' conftest.$ac_ext >&5
24622
24623 cat >conftest.$ac_ext <<_ACEOF
24624/* confdefs.h. */
24625_ACEOF
24626cat confdefs.h >>conftest.$ac_ext
24627cat >>conftest.$ac_ext <<_ACEOF
24628/* end confdefs.h. */
24629$ac_includes_default
24630int
24631main ()
24632{
24633static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
24634test_array [0] = 0
24635
24636 ;
24637 return 0;
24638}
24639_ACEOF
24640rm -f conftest.$ac_objext
24641if { (ac_try="$ac_compile"
24642case "(($ac_try" in
24643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24644 *) ac_try_echo=$ac_try;;
24645esac
24646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24647$as_echo "$ac_try_echo") >&5
24648 (eval "$ac_compile") 2>conftest.er1
24649 ac_status=$?
24650 grep -v '^ *+' conftest.er1 >conftest.err
24651 rm -f conftest.er1
24652 cat conftest.err >&5
24653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); } && {
24655 test -z "$ac_c_werror_flag" ||
24656 test ! -s conftest.err
24657 } && test -s conftest.$ac_objext; then
24658 ac_hi=-1 ac_mid=-1
24659 while :; do
24660 cat >conftest.$ac_ext <<_ACEOF
24661/* confdefs.h. */
24662_ACEOF
24663cat confdefs.h >>conftest.$ac_ext
24664cat >>conftest.$ac_ext <<_ACEOF
24665/* end confdefs.h. */
24666$ac_includes_default
24667int
24668main ()
24669{
24670static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
24671test_array [0] = 0
24672
24673 ;
24674 return 0;
24675}
24676_ACEOF
24677rm -f conftest.$ac_objext
24678if { (ac_try="$ac_compile"
24679case "(($ac_try" in
24680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24681 *) ac_try_echo=$ac_try;;
24682esac
24683eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24684$as_echo "$ac_try_echo") >&5
24685 (eval "$ac_compile") 2>conftest.er1
24686 ac_status=$?
24687 grep -v '^ *+' conftest.er1 >conftest.err
24688 rm -f conftest.er1
24689 cat conftest.err >&5
24690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691 (exit $ac_status); } && {
24692 test -z "$ac_c_werror_flag" ||
24693 test ! -s conftest.err
24694 } && test -s conftest.$ac_objext; then
24695 ac_lo=$ac_mid; break
24696else
24697 $as_echo "$as_me: failed program was:" >&5
24698sed 's/^/| /' conftest.$ac_ext >&5
24699
24700 ac_hi=`expr '(' $ac_mid ')' - 1`
24701 if test $ac_mid -le $ac_hi; then
24702 ac_lo= ac_hi=
24703 break
24704 fi
24705 ac_mid=`expr 2 '*' $ac_mid`
24706fi
24707
24708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24709 done
24710else
24711 $as_echo "$as_me: failed program was:" >&5
24712sed 's/^/| /' conftest.$ac_ext >&5
24713
24714 ac_lo= ac_hi=
24715fi
24716
24717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24718fi
24719
24720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24721# Binary search between lo and hi bounds.
24722while test "x$ac_lo" != "x$ac_hi"; do
24723 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24724 cat >conftest.$ac_ext <<_ACEOF
24725/* confdefs.h. */
24726_ACEOF
24727cat confdefs.h >>conftest.$ac_ext
24728cat >>conftest.$ac_ext <<_ACEOF
24729/* end confdefs.h. */
24730$ac_includes_default
24731int
24732main ()
24733{
24734static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
24735test_array [0] = 0
24736
24737 ;
24738 return 0;
24739}
24740_ACEOF
24741rm -f conftest.$ac_objext
24742if { (ac_try="$ac_compile"
24743case "(($ac_try" in
24744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24745 *) ac_try_echo=$ac_try;;
24746esac
24747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24748$as_echo "$ac_try_echo") >&5
24749 (eval "$ac_compile") 2>conftest.er1
24750 ac_status=$?
24751 grep -v '^ *+' conftest.er1 >conftest.err
24752 rm -f conftest.er1
24753 cat conftest.err >&5
24754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24755 (exit $ac_status); } && {
24756 test -z "$ac_c_werror_flag" ||
24757 test ! -s conftest.err
24758 } && test -s conftest.$ac_objext; then
24759 ac_hi=$ac_mid
24760else
24761 $as_echo "$as_me: failed program was:" >&5
24762sed 's/^/| /' conftest.$ac_ext >&5
24763
24764 ac_lo=`expr '(' $ac_mid ')' + 1`
24765fi
24766
24767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24768done
24769case $ac_lo in
24770?*) ac_cv_sizeof_signed_short=$ac_lo;;
24771'') if test "$ac_cv_type_signed_short" = yes; then
24772 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24773$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24774{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
24775See \`config.log' for more details." >&5
24776$as_echo "$as_me: error: cannot compute sizeof (signed short)
24777See \`config.log' for more details." >&2;}
24778 { (exit 77); exit 77; }; }; }
24779 else
24780 ac_cv_sizeof_signed_short=0
24781 fi ;;
24782esac
24783else
24784 cat >conftest.$ac_ext <<_ACEOF
24785/* confdefs.h. */
24786_ACEOF
24787cat confdefs.h >>conftest.$ac_ext
24788cat >>conftest.$ac_ext <<_ACEOF
24789/* end confdefs.h. */
24790$ac_includes_default
24791static long int longval () { return (long int) (sizeof (signed short)); }
24792static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
24793#include <stdio.h>
24794#include <stdlib.h>
24795int
24796main ()
24797{
24798
24799 FILE *f = fopen ("conftest.val", "w");
24800 if (! f)
24801 return 1;
24802 if (((long int) (sizeof (signed short))) < 0)
24803 {
24804 long int i = longval ();
24805 if (i != ((long int) (sizeof (signed short))))
24806 return 1;
24807 fprintf (f, "%ld", i);
24808 }
24809 else
24810 {
24811 unsigned long int i = ulongval ();
24812 if (i != ((long int) (sizeof (signed short))))
24813 return 1;
24814 fprintf (f, "%lu", i);
24815 }
24816 /* Do not output a trailing newline, as this causes \r\n confusion
24817 on some platforms. */
24818 return ferror (f) || fclose (f) != 0;
24819
24820 ;
24821 return 0;
24822}
24823_ACEOF
24824rm -f conftest$ac_exeext
24825if { (ac_try="$ac_link"
24826case "(($ac_try" in
24827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24828 *) ac_try_echo=$ac_try;;
24829esac
24830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24831$as_echo "$ac_try_echo") >&5
24832 (eval "$ac_link") 2>&5
24833 ac_status=$?
24834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24836 { (case "(($ac_try" in
24837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24838 *) ac_try_echo=$ac_try;;
24839esac
24840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24841$as_echo "$ac_try_echo") >&5
24842 (eval "$ac_try") 2>&5
24843 ac_status=$?
24844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24845 (exit $ac_status); }; }; then
24846 ac_cv_sizeof_signed_short=`cat conftest.val`
24847else
24848 $as_echo "$as_me: program exited with status $ac_status" >&5
24849$as_echo "$as_me: failed program was:" >&5
24850sed 's/^/| /' conftest.$ac_ext >&5
24851
24852( exit $ac_status )
24853if test "$ac_cv_type_signed_short" = yes; then
24854 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24855$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24856{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
24857See \`config.log' for more details." >&5
24858$as_echo "$as_me: error: cannot compute sizeof (signed short)
24859See \`config.log' for more details." >&2;}
24860 { (exit 77); exit 77; }; }; }
24861 else
24862 ac_cv_sizeof_signed_short=0
24863 fi
24864fi
24865rm -rf conftest.dSYM
24866rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24867fi
24868rm -f conftest.val
24869fi
24870{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
24871$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24872
24873
24874
24875cat >>confdefs.h <<_ACEOF
24876#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24877_ACEOF
24878
24879
24880
24881# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24882# The cast to long int works around a bug in the HP C Compiler
24883# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24884# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24885# This bug is HP SR number 8606223364.
24886{ $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
24887$as_echo_n "checking size of unsigned short... " >&6; }
24888if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
24889 $as_echo_n "(cached) " >&6
24890else
24891 if test "$cross_compiling" = yes; then
24892 # Depending upon the size, compute the lo and hi bounds.
24893cat >conftest.$ac_ext <<_ACEOF
24894/* confdefs.h. */
24895_ACEOF
24896cat confdefs.h >>conftest.$ac_ext
24897cat >>conftest.$ac_ext <<_ACEOF
24898/* end confdefs.h. */
24899$ac_includes_default
24900int
24901main ()
24902{
24903static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
24904test_array [0] = 0
24905
24906 ;
24907 return 0;
24908}
24909_ACEOF
24910rm -f conftest.$ac_objext
24911if { (ac_try="$ac_compile"
24912case "(($ac_try" in
24913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24914 *) ac_try_echo=$ac_try;;
24915esac
24916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24917$as_echo "$ac_try_echo") >&5
24918 (eval "$ac_compile") 2>conftest.er1
24919 ac_status=$?
24920 grep -v '^ *+' conftest.er1 >conftest.err
24921 rm -f conftest.er1
24922 cat conftest.err >&5
24923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24924 (exit $ac_status); } && {
24925 test -z "$ac_c_werror_flag" ||
24926 test ! -s conftest.err
24927 } && test -s conftest.$ac_objext; then
24928 ac_lo=0 ac_mid=0
24929 while :; do
24930 cat >conftest.$ac_ext <<_ACEOF
24931/* confdefs.h. */
24932_ACEOF
24933cat confdefs.h >>conftest.$ac_ext
24934cat >>conftest.$ac_ext <<_ACEOF
24935/* end confdefs.h. */
24936$ac_includes_default
24937int
24938main ()
24939{
24940static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
24941test_array [0] = 0
24942
24943 ;
24944 return 0;
24945}
24946_ACEOF
24947rm -f conftest.$ac_objext
24948if { (ac_try="$ac_compile"
24949case "(($ac_try" in
24950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24951 *) ac_try_echo=$ac_try;;
24952esac
24953eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24954$as_echo "$ac_try_echo") >&5
24955 (eval "$ac_compile") 2>conftest.er1
24956 ac_status=$?
24957 grep -v '^ *+' conftest.er1 >conftest.err
24958 rm -f conftest.er1
24959 cat conftest.err >&5
24960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24961 (exit $ac_status); } && {
24962 test -z "$ac_c_werror_flag" ||
24963 test ! -s conftest.err
24964 } && test -s conftest.$ac_objext; then
24965 ac_hi=$ac_mid; break
24966else
24967 $as_echo "$as_me: failed program was:" >&5
24968sed 's/^/| /' conftest.$ac_ext >&5
24969
24970 ac_lo=`expr $ac_mid + 1`
24971 if test $ac_lo -le $ac_mid; then
24972 ac_lo= ac_hi=
24973 break
24974 fi
24975 ac_mid=`expr 2 '*' $ac_mid + 1`
24976fi
24977
24978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24979 done
24980else
24981 $as_echo "$as_me: failed program was:" >&5
24982sed 's/^/| /' conftest.$ac_ext >&5
24983
24984 cat >conftest.$ac_ext <<_ACEOF
24985/* confdefs.h. */
24986_ACEOF
24987cat confdefs.h >>conftest.$ac_ext
24988cat >>conftest.$ac_ext <<_ACEOF
24989/* end confdefs.h. */
24990$ac_includes_default
24991int
24992main ()
24993{
24994static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
24995test_array [0] = 0
24996
24997 ;
24998 return 0;
24999}
25000_ACEOF
25001rm -f conftest.$ac_objext
25002if { (ac_try="$ac_compile"
25003case "(($ac_try" in
25004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25005 *) ac_try_echo=$ac_try;;
25006esac
25007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25008$as_echo "$ac_try_echo") >&5
25009 (eval "$ac_compile") 2>conftest.er1
25010 ac_status=$?
25011 grep -v '^ *+' conftest.er1 >conftest.err
25012 rm -f conftest.er1
25013 cat conftest.err >&5
25014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); } && {
25016 test -z "$ac_c_werror_flag" ||
25017 test ! -s conftest.err
25018 } && test -s conftest.$ac_objext; then
25019 ac_hi=-1 ac_mid=-1
25020 while :; do
25021 cat >conftest.$ac_ext <<_ACEOF
25022/* confdefs.h. */
25023_ACEOF
25024cat confdefs.h >>conftest.$ac_ext
25025cat >>conftest.$ac_ext <<_ACEOF
25026/* end confdefs.h. */
25027$ac_includes_default
25028int
25029main ()
25030{
25031static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
25032test_array [0] = 0
25033
25034 ;
25035 return 0;
25036}
25037_ACEOF
25038rm -f conftest.$ac_objext
25039if { (ac_try="$ac_compile"
25040case "(($ac_try" in
25041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25042 *) ac_try_echo=$ac_try;;
25043esac
25044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25045$as_echo "$ac_try_echo") >&5
25046 (eval "$ac_compile") 2>conftest.er1
25047 ac_status=$?
25048 grep -v '^ *+' conftest.er1 >conftest.err
25049 rm -f conftest.er1
25050 cat conftest.err >&5
25051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25052 (exit $ac_status); } && {
25053 test -z "$ac_c_werror_flag" ||
25054 test ! -s conftest.err
25055 } && test -s conftest.$ac_objext; then
25056 ac_lo=$ac_mid; break
25057else
25058 $as_echo "$as_me: failed program was:" >&5
25059sed 's/^/| /' conftest.$ac_ext >&5
25060
25061 ac_hi=`expr '(' $ac_mid ')' - 1`
25062 if test $ac_mid -le $ac_hi; then
25063 ac_lo= ac_hi=
25064 break
25065 fi
25066 ac_mid=`expr 2 '*' $ac_mid`
25067fi
25068
25069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25070 done
25071else
25072 $as_echo "$as_me: failed program was:" >&5
25073sed 's/^/| /' conftest.$ac_ext >&5
25074
25075 ac_lo= ac_hi=
25076fi
25077
25078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25079fi
25080
25081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25082# Binary search between lo and hi bounds.
25083while test "x$ac_lo" != "x$ac_hi"; do
25084 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25085 cat >conftest.$ac_ext <<_ACEOF
25086/* confdefs.h. */
25087_ACEOF
25088cat confdefs.h >>conftest.$ac_ext
25089cat >>conftest.$ac_ext <<_ACEOF
25090/* end confdefs.h. */
25091$ac_includes_default
25092int
25093main ()
25094{
25095static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
25096test_array [0] = 0
25097
25098 ;
25099 return 0;
25100}
25101_ACEOF
25102rm -f conftest.$ac_objext
25103if { (ac_try="$ac_compile"
25104case "(($ac_try" in
25105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25106 *) ac_try_echo=$ac_try;;
25107esac
25108eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25109$as_echo "$ac_try_echo") >&5
25110 (eval "$ac_compile") 2>conftest.er1
25111 ac_status=$?
25112 grep -v '^ *+' conftest.er1 >conftest.err
25113 rm -f conftest.er1
25114 cat conftest.err >&5
25115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25116 (exit $ac_status); } && {
25117 test -z "$ac_c_werror_flag" ||
25118 test ! -s conftest.err
25119 } && test -s conftest.$ac_objext; then
25120 ac_hi=$ac_mid
25121else
25122 $as_echo "$as_me: failed program was:" >&5
25123sed 's/^/| /' conftest.$ac_ext >&5
25124
25125 ac_lo=`expr '(' $ac_mid ')' + 1`
25126fi
25127
25128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25129done
25130case $ac_lo in
25131?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
25132'') if test "$ac_cv_type_unsigned_short" = yes; then
25133 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25135{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25136See \`config.log' for more details." >&5
25137$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
25138See \`config.log' for more details." >&2;}
25139 { (exit 77); exit 77; }; }; }
25140 else
25141 ac_cv_sizeof_unsigned_short=0
25142 fi ;;
25143esac
25144else
25145 cat >conftest.$ac_ext <<_ACEOF
25146/* confdefs.h. */
25147_ACEOF
25148cat confdefs.h >>conftest.$ac_ext
25149cat >>conftest.$ac_ext <<_ACEOF
25150/* end confdefs.h. */
25151$ac_includes_default
25152static long int longval () { return (long int) (sizeof (unsigned short)); }
25153static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
25154#include <stdio.h>
25155#include <stdlib.h>
25156int
25157main ()
25158{
25159
25160 FILE *f = fopen ("conftest.val", "w");
25161 if (! f)
25162 return 1;
25163 if (((long int) (sizeof (unsigned short))) < 0)
25164 {
25165 long int i = longval ();
25166 if (i != ((long int) (sizeof (unsigned short))))
25167 return 1;
25168 fprintf (f, "%ld", i);
25169 }
25170 else
25171 {
25172 unsigned long int i = ulongval ();
25173 if (i != ((long int) (sizeof (unsigned short))))
25174 return 1;
25175 fprintf (f, "%lu", i);
25176 }
25177 /* Do not output a trailing newline, as this causes \r\n confusion
25178 on some platforms. */
25179 return ferror (f) || fclose (f) != 0;
25180
25181 ;
25182 return 0;
25183}
25184_ACEOF
25185rm -f conftest$ac_exeext
25186if { (ac_try="$ac_link"
25187case "(($ac_try" in
25188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25189 *) ac_try_echo=$ac_try;;
25190esac
25191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25192$as_echo "$ac_try_echo") >&5
25193 (eval "$ac_link") 2>&5
25194 ac_status=$?
25195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25197 { (case "(($ac_try" in
25198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25199 *) ac_try_echo=$ac_try;;
25200esac
25201eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25202$as_echo "$ac_try_echo") >&5
25203 (eval "$ac_try") 2>&5
25204 ac_status=$?
25205 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25206 (exit $ac_status); }; }; then
25207 ac_cv_sizeof_unsigned_short=`cat conftest.val`
25208else
25209 $as_echo "$as_me: program exited with status $ac_status" >&5
25210$as_echo "$as_me: failed program was:" >&5
25211sed 's/^/| /' conftest.$ac_ext >&5
25212
25213( exit $ac_status )
25214if test "$ac_cv_type_unsigned_short" = yes; then
25215 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25216$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25217{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
25218See \`config.log' for more details." >&5
25219$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
25220See \`config.log' for more details." >&2;}
25221 { (exit 77); exit 77; }; }; }
25222 else
25223 ac_cv_sizeof_unsigned_short=0
25224 fi
25225fi
25226rm -rf conftest.dSYM
25227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25228fi
25229rm -f conftest.val
25230fi
25231{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
25232$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
25233
25234
25235
25236cat >>confdefs.h <<_ACEOF
25237#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
25238_ACEOF
25239
25240
25241
25242# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
25243# The cast to long int works around a bug in the HP C Compiler
25244# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25245# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25246# This bug is HP SR number 8606223364.
25247{ $as_echo "$as_me:$LINENO: checking size of signed int" >&5
25248$as_echo_n "checking size of signed int... " >&6; }
25249if test "${ac_cv_sizeof_signed_int+set}" = set; then
25250 $as_echo_n "(cached) " >&6
25251else
25252 if test "$cross_compiling" = yes; then
25253 # Depending upon the size, compute the lo and hi bounds.
25254cat >conftest.$ac_ext <<_ACEOF
25255/* confdefs.h. */
25256_ACEOF
25257cat confdefs.h >>conftest.$ac_ext
25258cat >>conftest.$ac_ext <<_ACEOF
25259/* end confdefs.h. */
25260$ac_includes_default
25261int
25262main ()
25263{
25264static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= 0)];
25265test_array [0] = 0
25266
25267 ;
25268 return 0;
25269}
25270_ACEOF
25271rm -f conftest.$ac_objext
25272if { (ac_try="$ac_compile"
25273case "(($ac_try" in
25274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25275 *) ac_try_echo=$ac_try;;
25276esac
25277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25278$as_echo "$ac_try_echo") >&5
25279 (eval "$ac_compile") 2>conftest.er1
25280 ac_status=$?
25281 grep -v '^ *+' conftest.er1 >conftest.err
25282 rm -f conftest.er1
25283 cat conftest.err >&5
25284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); } && {
25286 test -z "$ac_c_werror_flag" ||
25287 test ! -s conftest.err
25288 } && test -s conftest.$ac_objext; then
25289 ac_lo=0 ac_mid=0
25290 while :; do
25291 cat >conftest.$ac_ext <<_ACEOF
25292/* confdefs.h. */
25293_ACEOF
25294cat confdefs.h >>conftest.$ac_ext
25295cat >>conftest.$ac_ext <<_ACEOF
25296/* end confdefs.h. */
25297$ac_includes_default
25298int
25299main ()
25300{
25301static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
25302test_array [0] = 0
25303
25304 ;
25305 return 0;
25306}
25307_ACEOF
25308rm -f conftest.$ac_objext
25309if { (ac_try="$ac_compile"
25310case "(($ac_try" in
25311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25312 *) ac_try_echo=$ac_try;;
25313esac
25314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25315$as_echo "$ac_try_echo") >&5
25316 (eval "$ac_compile") 2>conftest.er1
25317 ac_status=$?
25318 grep -v '^ *+' conftest.er1 >conftest.err
25319 rm -f conftest.er1
25320 cat conftest.err >&5
25321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25322 (exit $ac_status); } && {
25323 test -z "$ac_c_werror_flag" ||
25324 test ! -s conftest.err
25325 } && test -s conftest.$ac_objext; then
25326 ac_hi=$ac_mid; break
25327else
25328 $as_echo "$as_me: failed program was:" >&5
25329sed 's/^/| /' conftest.$ac_ext >&5
25330
25331 ac_lo=`expr $ac_mid + 1`
25332 if test $ac_lo -le $ac_mid; then
25333 ac_lo= ac_hi=
25334 break
25335 fi
25336 ac_mid=`expr 2 '*' $ac_mid + 1`
25337fi
25338
25339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25340 done
25341else
25342 $as_echo "$as_me: failed program was:" >&5
25343sed 's/^/| /' conftest.$ac_ext >&5
25344
25345 cat >conftest.$ac_ext <<_ACEOF
25346/* confdefs.h. */
25347_ACEOF
25348cat confdefs.h >>conftest.$ac_ext
25349cat >>conftest.$ac_ext <<_ACEOF
25350/* end confdefs.h. */
25351$ac_includes_default
25352int
25353main ()
25354{
25355static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) < 0)];
25356test_array [0] = 0
25357
25358 ;
25359 return 0;
25360}
25361_ACEOF
25362rm -f conftest.$ac_objext
25363if { (ac_try="$ac_compile"
25364case "(($ac_try" in
25365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25366 *) ac_try_echo=$ac_try;;
25367esac
25368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25369$as_echo "$ac_try_echo") >&5
25370 (eval "$ac_compile") 2>conftest.er1
25371 ac_status=$?
25372 grep -v '^ *+' conftest.er1 >conftest.err
25373 rm -f conftest.er1
25374 cat conftest.err >&5
25375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); } && {
25377 test -z "$ac_c_werror_flag" ||
25378 test ! -s conftest.err
25379 } && test -s conftest.$ac_objext; then
25380 ac_hi=-1 ac_mid=-1
25381 while :; do
25382 cat >conftest.$ac_ext <<_ACEOF
25383/* confdefs.h. */
25384_ACEOF
25385cat confdefs.h >>conftest.$ac_ext
25386cat >>conftest.$ac_ext <<_ACEOF
25387/* end confdefs.h. */
25388$ac_includes_default
25389int
25390main ()
25391{
25392static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= $ac_mid)];
25393test_array [0] = 0
25394
25395 ;
25396 return 0;
25397}
25398_ACEOF
25399rm -f conftest.$ac_objext
25400if { (ac_try="$ac_compile"
25401case "(($ac_try" in
25402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25403 *) ac_try_echo=$ac_try;;
25404esac
25405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25406$as_echo "$ac_try_echo") >&5
25407 (eval "$ac_compile") 2>conftest.er1
25408 ac_status=$?
25409 grep -v '^ *+' conftest.er1 >conftest.err
25410 rm -f conftest.er1
25411 cat conftest.err >&5
25412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); } && {
25414 test -z "$ac_c_werror_flag" ||
25415 test ! -s conftest.err
25416 } && test -s conftest.$ac_objext; then
25417 ac_lo=$ac_mid; break
25418else
25419 $as_echo "$as_me: failed program was:" >&5
25420sed 's/^/| /' conftest.$ac_ext >&5
25421
25422 ac_hi=`expr '(' $ac_mid ')' - 1`
25423 if test $ac_mid -le $ac_hi; then
25424 ac_lo= ac_hi=
25425 break
25426 fi
25427 ac_mid=`expr 2 '*' $ac_mid`
25428fi
25429
25430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25431 done
25432else
25433 $as_echo "$as_me: failed program was:" >&5
25434sed 's/^/| /' conftest.$ac_ext >&5
25435
25436 ac_lo= ac_hi=
25437fi
25438
25439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25440fi
25441
25442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25443# Binary search between lo and hi bounds.
25444while test "x$ac_lo" != "x$ac_hi"; do
25445 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25446 cat >conftest.$ac_ext <<_ACEOF
25447/* confdefs.h. */
25448_ACEOF
25449cat confdefs.h >>conftest.$ac_ext
25450cat >>conftest.$ac_ext <<_ACEOF
25451/* end confdefs.h. */
25452$ac_includes_default
25453int
25454main ()
25455{
25456static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
25457test_array [0] = 0
25458
25459 ;
25460 return 0;
25461}
25462_ACEOF
25463rm -f conftest.$ac_objext
25464if { (ac_try="$ac_compile"
25465case "(($ac_try" in
25466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25467 *) ac_try_echo=$ac_try;;
25468esac
25469eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25470$as_echo "$ac_try_echo") >&5
25471 (eval "$ac_compile") 2>conftest.er1
25472 ac_status=$?
25473 grep -v '^ *+' conftest.er1 >conftest.err
25474 rm -f conftest.er1
25475 cat conftest.err >&5
25476 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477 (exit $ac_status); } && {
25478 test -z "$ac_c_werror_flag" ||
25479 test ! -s conftest.err
25480 } && test -s conftest.$ac_objext; then
25481 ac_hi=$ac_mid
25482else
25483 $as_echo "$as_me: failed program was:" >&5
25484sed 's/^/| /' conftest.$ac_ext >&5
25485
25486 ac_lo=`expr '(' $ac_mid ')' + 1`
25487fi
25488
25489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25490done
25491case $ac_lo in
25492?*) ac_cv_sizeof_signed_int=$ac_lo;;
25493'') if test "$ac_cv_type_signed_int" = yes; then
25494 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25495$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25496{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
25497See \`config.log' for more details." >&5
25498$as_echo "$as_me: error: cannot compute sizeof (signed int)
25499See \`config.log' for more details." >&2;}
25500 { (exit 77); exit 77; }; }; }
25501 else
25502 ac_cv_sizeof_signed_int=0
25503 fi ;;
25504esac
25505else
25506 cat >conftest.$ac_ext <<_ACEOF
25507/* confdefs.h. */
25508_ACEOF
25509cat confdefs.h >>conftest.$ac_ext
25510cat >>conftest.$ac_ext <<_ACEOF
25511/* end confdefs.h. */
25512$ac_includes_default
25513static long int longval () { return (long int) (sizeof (signed int)); }
25514static unsigned long int ulongval () { return (long int) (sizeof (signed int)); }
25515#include <stdio.h>
25516#include <stdlib.h>
25517int
25518main ()
25519{
25520
25521 FILE *f = fopen ("conftest.val", "w");
25522 if (! f)
25523 return 1;
25524 if (((long int) (sizeof (signed int))) < 0)
25525 {
25526 long int i = longval ();
25527 if (i != ((long int) (sizeof (signed int))))
25528 return 1;
25529 fprintf (f, "%ld", i);
25530 }
25531 else
25532 {
25533 unsigned long int i = ulongval ();
25534 if (i != ((long int) (sizeof (signed int))))
25535 return 1;
25536 fprintf (f, "%lu", i);
25537 }
25538 /* Do not output a trailing newline, as this causes \r\n confusion
25539 on some platforms. */
25540 return ferror (f) || fclose (f) != 0;
25541
25542 ;
25543 return 0;
25544}
25545_ACEOF
25546rm -f conftest$ac_exeext
25547if { (ac_try="$ac_link"
25548case "(($ac_try" in
25549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25550 *) ac_try_echo=$ac_try;;
25551esac
25552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25553$as_echo "$ac_try_echo") >&5
25554 (eval "$ac_link") 2>&5
25555 ac_status=$?
25556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25558 { (case "(($ac_try" in
25559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25560 *) ac_try_echo=$ac_try;;
25561esac
25562eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25563$as_echo "$ac_try_echo") >&5
25564 (eval "$ac_try") 2>&5
25565 ac_status=$?
25566 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25567 (exit $ac_status); }; }; then
25568 ac_cv_sizeof_signed_int=`cat conftest.val`
25569else
25570 $as_echo "$as_me: program exited with status $ac_status" >&5
25571$as_echo "$as_me: failed program was:" >&5
25572sed 's/^/| /' conftest.$ac_ext >&5
25573
25574( exit $ac_status )
25575if test "$ac_cv_type_signed_int" = yes; then
25576 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25578{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
25579See \`config.log' for more details." >&5
25580$as_echo "$as_me: error: cannot compute sizeof (signed int)
25581See \`config.log' for more details." >&2;}
25582 { (exit 77); exit 77; }; }; }
25583 else
25584 ac_cv_sizeof_signed_int=0
25585 fi
25586fi
25587rm -rf conftest.dSYM
25588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25589fi
25590rm -f conftest.val
25591fi
25592{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_int" >&5
25593$as_echo "$ac_cv_sizeof_signed_int" >&6; }
25594
25595
25596
25597cat >>confdefs.h <<_ACEOF
25598#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
25599_ACEOF
25600
25601
25602
25603# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
25604# The cast to long int works around a bug in the HP C Compiler
25605# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25606# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25607# This bug is HP SR number 8606223364.
25608{ $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
25609$as_echo_n "checking size of unsigned int... " >&6; }
25610if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
25611 $as_echo_n "(cached) " >&6
25612else
25613 if test "$cross_compiling" = yes; then
25614 # Depending upon the size, compute the lo and hi bounds.
25615cat >conftest.$ac_ext <<_ACEOF
25616/* confdefs.h. */
25617_ACEOF
25618cat confdefs.h >>conftest.$ac_ext
25619cat >>conftest.$ac_ext <<_ACEOF
25620/* end confdefs.h. */
25621$ac_includes_default
25622int
25623main ()
25624{
25625static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
25626test_array [0] = 0
25627
25628 ;
25629 return 0;
25630}
25631_ACEOF
25632rm -f conftest.$ac_objext
25633if { (ac_try="$ac_compile"
25634case "(($ac_try" in
25635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25636 *) ac_try_echo=$ac_try;;
25637esac
25638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25639$as_echo "$ac_try_echo") >&5
25640 (eval "$ac_compile") 2>conftest.er1
25641 ac_status=$?
25642 grep -v '^ *+' conftest.er1 >conftest.err
25643 rm -f conftest.er1
25644 cat conftest.err >&5
25645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25646 (exit $ac_status); } && {
25647 test -z "$ac_c_werror_flag" ||
25648 test ! -s conftest.err
25649 } && test -s conftest.$ac_objext; then
25650 ac_lo=0 ac_mid=0
25651 while :; do
25652 cat >conftest.$ac_ext <<_ACEOF
25653/* confdefs.h. */
25654_ACEOF
25655cat confdefs.h >>conftest.$ac_ext
25656cat >>conftest.$ac_ext <<_ACEOF
25657/* end confdefs.h. */
25658$ac_includes_default
25659int
25660main ()
25661{
25662static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
25663test_array [0] = 0
25664
25665 ;
25666 return 0;
25667}
25668_ACEOF
25669rm -f conftest.$ac_objext
25670if { (ac_try="$ac_compile"
25671case "(($ac_try" in
25672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25673 *) ac_try_echo=$ac_try;;
25674esac
25675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25676$as_echo "$ac_try_echo") >&5
25677 (eval "$ac_compile") 2>conftest.er1
25678 ac_status=$?
25679 grep -v '^ *+' conftest.er1 >conftest.err
25680 rm -f conftest.er1
25681 cat conftest.err >&5
25682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); } && {
25684 test -z "$ac_c_werror_flag" ||
25685 test ! -s conftest.err
25686 } && test -s conftest.$ac_objext; then
25687 ac_hi=$ac_mid; break
25688else
25689 $as_echo "$as_me: failed program was:" >&5
25690sed 's/^/| /' conftest.$ac_ext >&5
25691
25692 ac_lo=`expr $ac_mid + 1`
25693 if test $ac_lo -le $ac_mid; then
25694 ac_lo= ac_hi=
25695 break
25696 fi
25697 ac_mid=`expr 2 '*' $ac_mid + 1`
25698fi
25699
25700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25701 done
25702else
25703 $as_echo "$as_me: failed program was:" >&5
25704sed 's/^/| /' conftest.$ac_ext >&5
25705
25706 cat >conftest.$ac_ext <<_ACEOF
25707/* confdefs.h. */
25708_ACEOF
25709cat confdefs.h >>conftest.$ac_ext
25710cat >>conftest.$ac_ext <<_ACEOF
25711/* end confdefs.h. */
25712$ac_includes_default
25713int
25714main ()
25715{
25716static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
25717test_array [0] = 0
25718
25719 ;
25720 return 0;
25721}
25722_ACEOF
25723rm -f conftest.$ac_objext
25724if { (ac_try="$ac_compile"
25725case "(($ac_try" in
25726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25727 *) ac_try_echo=$ac_try;;
25728esac
25729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25730$as_echo "$ac_try_echo") >&5
25731 (eval "$ac_compile") 2>conftest.er1
25732 ac_status=$?
25733 grep -v '^ *+' conftest.er1 >conftest.err
25734 rm -f conftest.er1
25735 cat conftest.err >&5
25736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); } && {
25738 test -z "$ac_c_werror_flag" ||
25739 test ! -s conftest.err
25740 } && test -s conftest.$ac_objext; then
25741 ac_hi=-1 ac_mid=-1
25742 while :; do
25743 cat >conftest.$ac_ext <<_ACEOF
25744/* confdefs.h. */
25745_ACEOF
25746cat confdefs.h >>conftest.$ac_ext
25747cat >>conftest.$ac_ext <<_ACEOF
25748/* end confdefs.h. */
25749$ac_includes_default
25750int
25751main ()
25752{
25753static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
25754test_array [0] = 0
25755
25756 ;
25757 return 0;
25758}
25759_ACEOF
25760rm -f conftest.$ac_objext
25761if { (ac_try="$ac_compile"
25762case "(($ac_try" in
25763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25764 *) ac_try_echo=$ac_try;;
25765esac
25766eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25767$as_echo "$ac_try_echo") >&5
25768 (eval "$ac_compile") 2>conftest.er1
25769 ac_status=$?
25770 grep -v '^ *+' conftest.er1 >conftest.err
25771 rm -f conftest.er1
25772 cat conftest.err >&5
25773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25774 (exit $ac_status); } && {
25775 test -z "$ac_c_werror_flag" ||
25776 test ! -s conftest.err
25777 } && test -s conftest.$ac_objext; then
25778 ac_lo=$ac_mid; break
25779else
25780 $as_echo "$as_me: failed program was:" >&5
25781sed 's/^/| /' conftest.$ac_ext >&5
25782
25783 ac_hi=`expr '(' $ac_mid ')' - 1`
25784 if test $ac_mid -le $ac_hi; then
25785 ac_lo= ac_hi=
25786 break
25787 fi
25788 ac_mid=`expr 2 '*' $ac_mid`
25789fi
25790
25791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25792 done
25793else
25794 $as_echo "$as_me: failed program was:" >&5
25795sed 's/^/| /' conftest.$ac_ext >&5
25796
25797 ac_lo= ac_hi=
25798fi
25799
25800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25801fi
25802
25803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25804# Binary search between lo and hi bounds.
25805while test "x$ac_lo" != "x$ac_hi"; do
25806 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25807 cat >conftest.$ac_ext <<_ACEOF
25808/* confdefs.h. */
25809_ACEOF
25810cat confdefs.h >>conftest.$ac_ext
25811cat >>conftest.$ac_ext <<_ACEOF
25812/* end confdefs.h. */
25813$ac_includes_default
25814int
25815main ()
25816{
25817static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
25818test_array [0] = 0
25819
25820 ;
25821 return 0;
25822}
25823_ACEOF
25824rm -f conftest.$ac_objext
25825if { (ac_try="$ac_compile"
25826case "(($ac_try" in
25827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25828 *) ac_try_echo=$ac_try;;
25829esac
25830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25831$as_echo "$ac_try_echo") >&5
25832 (eval "$ac_compile") 2>conftest.er1
25833 ac_status=$?
25834 grep -v '^ *+' conftest.er1 >conftest.err
25835 rm -f conftest.er1
25836 cat conftest.err >&5
25837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25838 (exit $ac_status); } && {
25839 test -z "$ac_c_werror_flag" ||
25840 test ! -s conftest.err
25841 } && test -s conftest.$ac_objext; then
25842 ac_hi=$ac_mid
25843else
25844 $as_echo "$as_me: failed program was:" >&5
25845sed 's/^/| /' conftest.$ac_ext >&5
25846
25847 ac_lo=`expr '(' $ac_mid ')' + 1`
25848fi
25849
25850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851done
25852case $ac_lo in
25853?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
25854'') if test "$ac_cv_type_unsigned_int" = yes; then
25855 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25857{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
25858See \`config.log' for more details." >&5
25859$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
25860See \`config.log' for more details." >&2;}
25861 { (exit 77); exit 77; }; }; }
25862 else
25863 ac_cv_sizeof_unsigned_int=0
25864 fi ;;
25865esac
25866else
25867 cat >conftest.$ac_ext <<_ACEOF
25868/* confdefs.h. */
25869_ACEOF
25870cat confdefs.h >>conftest.$ac_ext
25871cat >>conftest.$ac_ext <<_ACEOF
25872/* end confdefs.h. */
25873$ac_includes_default
25874static long int longval () { return (long int) (sizeof (unsigned int)); }
25875static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
25876#include <stdio.h>
25877#include <stdlib.h>
25878int
25879main ()
25880{
25881
25882 FILE *f = fopen ("conftest.val", "w");
25883 if (! f)
25884 return 1;
25885 if (((long int) (sizeof (unsigned int))) < 0)
25886 {
25887 long int i = longval ();
25888 if (i != ((long int) (sizeof (unsigned int))))
25889 return 1;
25890 fprintf (f, "%ld", i);
25891 }
25892 else
25893 {
25894 unsigned long int i = ulongval ();
25895 if (i != ((long int) (sizeof (unsigned int))))
25896 return 1;
25897 fprintf (f, "%lu", i);
25898 }
25899 /* Do not output a trailing newline, as this causes \r\n confusion
25900 on some platforms. */
25901 return ferror (f) || fclose (f) != 0;
25902
25903 ;
25904 return 0;
25905}
25906_ACEOF
25907rm -f conftest$ac_exeext
25908if { (ac_try="$ac_link"
25909case "(($ac_try" in
25910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25911 *) ac_try_echo=$ac_try;;
25912esac
25913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25914$as_echo "$ac_try_echo") >&5
25915 (eval "$ac_link") 2>&5
25916 ac_status=$?
25917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25919 { (case "(($ac_try" in
25920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25921 *) ac_try_echo=$ac_try;;
25922esac
25923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25924$as_echo "$ac_try_echo") >&5
25925 (eval "$ac_try") 2>&5
25926 ac_status=$?
25927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); }; }; then
25929 ac_cv_sizeof_unsigned_int=`cat conftest.val`
25930else
25931 $as_echo "$as_me: program exited with status $ac_status" >&5
25932$as_echo "$as_me: failed program was:" >&5
25933sed 's/^/| /' conftest.$ac_ext >&5
25934
25935( exit $ac_status )
25936if test "$ac_cv_type_unsigned_int" = yes; then
25937 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25939{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
25940See \`config.log' for more details." >&5
25941$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
25942See \`config.log' for more details." >&2;}
25943 { (exit 77); exit 77; }; }; }
25944 else
25945 ac_cv_sizeof_unsigned_int=0
25946 fi
25947fi
25948rm -rf conftest.dSYM
25949rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25950fi
25951rm -f conftest.val
25952fi
25953{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
25954$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
25955
25956
25957
25958cat >>confdefs.h <<_ACEOF
25959#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
25960_ACEOF
25961
25962
25963
25964# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
25965# The cast to long int works around a bug in the HP C Compiler
25966# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25967# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25968# This bug is HP SR number 8606223364.
25969{ $as_echo "$as_me:$LINENO: checking size of signed long" >&5
25970$as_echo_n "checking size of signed long... " >&6; }
25971if test "${ac_cv_sizeof_signed_long+set}" = set; then
25972 $as_echo_n "(cached) " >&6
25973else
25974 if test "$cross_compiling" = yes; then
25975 # Depending upon the size, compute the lo and hi bounds.
25976cat >conftest.$ac_ext <<_ACEOF
25977/* confdefs.h. */
25978_ACEOF
25979cat confdefs.h >>conftest.$ac_ext
25980cat >>conftest.$ac_ext <<_ACEOF
25981/* end confdefs.h. */
25982$ac_includes_default
25983int
25984main ()
25985{
25986static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= 0)];
25987test_array [0] = 0
25988
25989 ;
25990 return 0;
25991}
25992_ACEOF
25993rm -f conftest.$ac_objext
25994if { (ac_try="$ac_compile"
25995case "(($ac_try" in
25996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25997 *) ac_try_echo=$ac_try;;
25998esac
25999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26000$as_echo "$ac_try_echo") >&5
26001 (eval "$ac_compile") 2>conftest.er1
26002 ac_status=$?
26003 grep -v '^ *+' conftest.er1 >conftest.err
26004 rm -f conftest.er1
26005 cat conftest.err >&5
26006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26007 (exit $ac_status); } && {
26008 test -z "$ac_c_werror_flag" ||
26009 test ! -s conftest.err
26010 } && test -s conftest.$ac_objext; then
26011 ac_lo=0 ac_mid=0
26012 while :; do
26013 cat >conftest.$ac_ext <<_ACEOF
26014/* confdefs.h. */
26015_ACEOF
26016cat confdefs.h >>conftest.$ac_ext
26017cat >>conftest.$ac_ext <<_ACEOF
26018/* end confdefs.h. */
26019$ac_includes_default
26020int
26021main ()
26022{
26023static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)];
26024test_array [0] = 0
26025
26026 ;
26027 return 0;
26028}
26029_ACEOF
26030rm -f conftest.$ac_objext
26031if { (ac_try="$ac_compile"
26032case "(($ac_try" in
26033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26034 *) ac_try_echo=$ac_try;;
26035esac
26036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26037$as_echo "$ac_try_echo") >&5
26038 (eval "$ac_compile") 2>conftest.er1
26039 ac_status=$?
26040 grep -v '^ *+' conftest.er1 >conftest.err
26041 rm -f conftest.er1
26042 cat conftest.err >&5
26043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); } && {
26045 test -z "$ac_c_werror_flag" ||
26046 test ! -s conftest.err
26047 } && test -s conftest.$ac_objext; then
26048 ac_hi=$ac_mid; break
26049else
26050 $as_echo "$as_me: failed program was:" >&5
26051sed 's/^/| /' conftest.$ac_ext >&5
26052
26053 ac_lo=`expr $ac_mid + 1`
26054 if test $ac_lo -le $ac_mid; then
26055 ac_lo= ac_hi=
26056 break
26057 fi
26058 ac_mid=`expr 2 '*' $ac_mid + 1`
26059fi
26060
26061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26062 done
26063else
26064 $as_echo "$as_me: failed program was:" >&5
26065sed 's/^/| /' conftest.$ac_ext >&5
26066
26067 cat >conftest.$ac_ext <<_ACEOF
26068/* confdefs.h. */
26069_ACEOF
26070cat confdefs.h >>conftest.$ac_ext
26071cat >>conftest.$ac_ext <<_ACEOF
26072/* end confdefs.h. */
26073$ac_includes_default
26074int
26075main ()
26076{
26077static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) < 0)];
26078test_array [0] = 0
26079
26080 ;
26081 return 0;
26082}
26083_ACEOF
26084rm -f conftest.$ac_objext
26085if { (ac_try="$ac_compile"
26086case "(($ac_try" in
26087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26088 *) ac_try_echo=$ac_try;;
26089esac
26090eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26091$as_echo "$ac_try_echo") >&5
26092 (eval "$ac_compile") 2>conftest.er1
26093 ac_status=$?
26094 grep -v '^ *+' conftest.er1 >conftest.err
26095 rm -f conftest.er1
26096 cat conftest.err >&5
26097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); } && {
26099 test -z "$ac_c_werror_flag" ||
26100 test ! -s conftest.err
26101 } && test -s conftest.$ac_objext; then
26102 ac_hi=-1 ac_mid=-1
26103 while :; do
26104 cat >conftest.$ac_ext <<_ACEOF
26105/* confdefs.h. */
26106_ACEOF
26107cat confdefs.h >>conftest.$ac_ext
26108cat >>conftest.$ac_ext <<_ACEOF
26109/* end confdefs.h. */
26110$ac_includes_default
26111int
26112main ()
26113{
26114static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= $ac_mid)];
26115test_array [0] = 0
26116
26117 ;
26118 return 0;
26119}
26120_ACEOF
26121rm -f conftest.$ac_objext
26122if { (ac_try="$ac_compile"
26123case "(($ac_try" in
26124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26125 *) ac_try_echo=$ac_try;;
26126esac
26127eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26128$as_echo "$ac_try_echo") >&5
26129 (eval "$ac_compile") 2>conftest.er1
26130 ac_status=$?
26131 grep -v '^ *+' conftest.er1 >conftest.err
26132 rm -f conftest.er1
26133 cat conftest.err >&5
26134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135 (exit $ac_status); } && {
26136 test -z "$ac_c_werror_flag" ||
26137 test ! -s conftest.err
26138 } && test -s conftest.$ac_objext; then
26139 ac_lo=$ac_mid; break
26140else
26141 $as_echo "$as_me: failed program was:" >&5
26142sed 's/^/| /' conftest.$ac_ext >&5
26143
26144 ac_hi=`expr '(' $ac_mid ')' - 1`
26145 if test $ac_mid -le $ac_hi; then
26146 ac_lo= ac_hi=
26147 break
26148 fi
26149 ac_mid=`expr 2 '*' $ac_mid`
26150fi
26151
26152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26153 done
26154else
26155 $as_echo "$as_me: failed program was:" >&5
26156sed 's/^/| /' conftest.$ac_ext >&5
26157
26158 ac_lo= ac_hi=
26159fi
26160
26161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26162fi
26163
26164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26165# Binary search between lo and hi bounds.
26166while test "x$ac_lo" != "x$ac_hi"; do
26167 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26168 cat >conftest.$ac_ext <<_ACEOF
26169/* confdefs.h. */
26170_ACEOF
26171cat confdefs.h >>conftest.$ac_ext
26172cat >>conftest.$ac_ext <<_ACEOF
26173/* end confdefs.h. */
26174$ac_includes_default
26175int
26176main ()
26177{
26178static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)];
26179test_array [0] = 0
26180
26181 ;
26182 return 0;
26183}
26184_ACEOF
26185rm -f conftest.$ac_objext
26186if { (ac_try="$ac_compile"
26187case "(($ac_try" in
26188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26189 *) ac_try_echo=$ac_try;;
26190esac
26191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26192$as_echo "$ac_try_echo") >&5
26193 (eval "$ac_compile") 2>conftest.er1
26194 ac_status=$?
26195 grep -v '^ *+' conftest.er1 >conftest.err
26196 rm -f conftest.er1
26197 cat conftest.err >&5
26198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); } && {
26200 test -z "$ac_c_werror_flag" ||
26201 test ! -s conftest.err
26202 } && test -s conftest.$ac_objext; then
26203 ac_hi=$ac_mid
26204else
26205 $as_echo "$as_me: failed program was:" >&5
26206sed 's/^/| /' conftest.$ac_ext >&5
26207
26208 ac_lo=`expr '(' $ac_mid ')' + 1`
26209fi
26210
26211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26212done
26213case $ac_lo in
26214?*) ac_cv_sizeof_signed_long=$ac_lo;;
26215'') if test "$ac_cv_type_signed_long" = yes; then
26216 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26218{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
26219See \`config.log' for more details." >&5
26220$as_echo "$as_me: error: cannot compute sizeof (signed long)
26221See \`config.log' for more details." >&2;}
26222 { (exit 77); exit 77; }; }; }
26223 else
26224 ac_cv_sizeof_signed_long=0
26225 fi ;;
26226esac
26227else
26228 cat >conftest.$ac_ext <<_ACEOF
26229/* confdefs.h. */
26230_ACEOF
26231cat confdefs.h >>conftest.$ac_ext
26232cat >>conftest.$ac_ext <<_ACEOF
26233/* end confdefs.h. */
26234$ac_includes_default
26235static long int longval () { return (long int) (sizeof (signed long)); }
26236static unsigned long int ulongval () { return (long int) (sizeof (signed long)); }
26237#include <stdio.h>
26238#include <stdlib.h>
26239int
26240main ()
26241{
26242
26243 FILE *f = fopen ("conftest.val", "w");
26244 if (! f)
26245 return 1;
26246 if (((long int) (sizeof (signed long))) < 0)
26247 {
26248 long int i = longval ();
26249 if (i != ((long int) (sizeof (signed long))))
26250 return 1;
26251 fprintf (f, "%ld", i);
26252 }
26253 else
26254 {
26255 unsigned long int i = ulongval ();
26256 if (i != ((long int) (sizeof (signed long))))
26257 return 1;
26258 fprintf (f, "%lu", i);
26259 }
26260 /* Do not output a trailing newline, as this causes \r\n confusion
26261 on some platforms. */
26262 return ferror (f) || fclose (f) != 0;
26263
26264 ;
26265 return 0;
26266}
26267_ACEOF
26268rm -f conftest$ac_exeext
26269if { (ac_try="$ac_link"
26270case "(($ac_try" in
26271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26272 *) ac_try_echo=$ac_try;;
26273esac
26274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26275$as_echo "$ac_try_echo") >&5
26276 (eval "$ac_link") 2>&5
26277 ac_status=$?
26278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26280 { (case "(($ac_try" in
26281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26282 *) ac_try_echo=$ac_try;;
26283esac
26284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26285$as_echo "$ac_try_echo") >&5
26286 (eval "$ac_try") 2>&5
26287 ac_status=$?
26288 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26289 (exit $ac_status); }; }; then
26290 ac_cv_sizeof_signed_long=`cat conftest.val`
26291else
26292 $as_echo "$as_me: program exited with status $ac_status" >&5
26293$as_echo "$as_me: failed program was:" >&5
26294sed 's/^/| /' conftest.$ac_ext >&5
26295
26296( exit $ac_status )
26297if test "$ac_cv_type_signed_long" = yes; then
26298 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26300{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
26301See \`config.log' for more details." >&5
26302$as_echo "$as_me: error: cannot compute sizeof (signed long)
26303See \`config.log' for more details." >&2;}
26304 { (exit 77); exit 77; }; }; }
26305 else
26306 ac_cv_sizeof_signed_long=0
26307 fi
26308fi
26309rm -rf conftest.dSYM
26310rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26311fi
26312rm -f conftest.val
26313fi
26314{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
26315$as_echo "$ac_cv_sizeof_signed_long" >&6; }
26316
26317
26318
26319cat >>confdefs.h <<_ACEOF
26320#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
26321_ACEOF
26322
26323
26324
26325# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
26326# The cast to long int works around a bug in the HP C Compiler
26327# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26328# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26329# This bug is HP SR number 8606223364.
26330{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
26331$as_echo_n "checking size of unsigned long... " >&6; }
26332if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
26333 $as_echo_n "(cached) " >&6
26334else
26335 if test "$cross_compiling" = yes; then
26336 # Depending upon the size, compute the lo and hi bounds.
26337cat >conftest.$ac_ext <<_ACEOF
26338/* confdefs.h. */
26339_ACEOF
26340cat confdefs.h >>conftest.$ac_ext
26341cat >>conftest.$ac_ext <<_ACEOF
26342/* end confdefs.h. */
26343$ac_includes_default
26344int
26345main ()
26346{
26347static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
26348test_array [0] = 0
26349
26350 ;
26351 return 0;
26352}
26353_ACEOF
26354rm -f conftest.$ac_objext
26355if { (ac_try="$ac_compile"
26356case "(($ac_try" in
26357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26358 *) ac_try_echo=$ac_try;;
26359esac
26360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26361$as_echo "$ac_try_echo") >&5
26362 (eval "$ac_compile") 2>conftest.er1
26363 ac_status=$?
26364 grep -v '^ *+' conftest.er1 >conftest.err
26365 rm -f conftest.er1
26366 cat conftest.err >&5
26367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 (exit $ac_status); } && {
26369 test -z "$ac_c_werror_flag" ||
26370 test ! -s conftest.err
26371 } && test -s conftest.$ac_objext; then
26372 ac_lo=0 ac_mid=0
26373 while :; do
26374 cat >conftest.$ac_ext <<_ACEOF
26375/* confdefs.h. */
26376_ACEOF
26377cat confdefs.h >>conftest.$ac_ext
26378cat >>conftest.$ac_ext <<_ACEOF
26379/* end confdefs.h. */
26380$ac_includes_default
26381int
26382main ()
26383{
26384static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
26385test_array [0] = 0
26386
26387 ;
26388 return 0;
26389}
26390_ACEOF
26391rm -f conftest.$ac_objext
26392if { (ac_try="$ac_compile"
26393case "(($ac_try" in
26394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26395 *) ac_try_echo=$ac_try;;
26396esac
26397eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26398$as_echo "$ac_try_echo") >&5
26399 (eval "$ac_compile") 2>conftest.er1
26400 ac_status=$?
26401 grep -v '^ *+' conftest.er1 >conftest.err
26402 rm -f conftest.er1
26403 cat conftest.err >&5
26404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26405 (exit $ac_status); } && {
26406 test -z "$ac_c_werror_flag" ||
26407 test ! -s conftest.err
26408 } && test -s conftest.$ac_objext; then
26409 ac_hi=$ac_mid; break
26410else
26411 $as_echo "$as_me: failed program was:" >&5
26412sed 's/^/| /' conftest.$ac_ext >&5
26413
26414 ac_lo=`expr $ac_mid + 1`
26415 if test $ac_lo -le $ac_mid; then
26416 ac_lo= ac_hi=
26417 break
26418 fi
26419 ac_mid=`expr 2 '*' $ac_mid + 1`
26420fi
26421
26422rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26423 done
26424else
26425 $as_echo "$as_me: failed program was:" >&5
26426sed 's/^/| /' conftest.$ac_ext >&5
26427
26428 cat >conftest.$ac_ext <<_ACEOF
26429/* confdefs.h. */
26430_ACEOF
26431cat confdefs.h >>conftest.$ac_ext
26432cat >>conftest.$ac_ext <<_ACEOF
26433/* end confdefs.h. */
26434$ac_includes_default
26435int
26436main ()
26437{
26438static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
26439test_array [0] = 0
26440
26441 ;
26442 return 0;
26443}
26444_ACEOF
26445rm -f conftest.$ac_objext
26446if { (ac_try="$ac_compile"
26447case "(($ac_try" in
26448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449 *) ac_try_echo=$ac_try;;
26450esac
26451eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26452$as_echo "$ac_try_echo") >&5
26453 (eval "$ac_compile") 2>conftest.er1
26454 ac_status=$?
26455 grep -v '^ *+' conftest.er1 >conftest.err
26456 rm -f conftest.er1
26457 cat conftest.err >&5
26458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26459 (exit $ac_status); } && {
26460 test -z "$ac_c_werror_flag" ||
26461 test ! -s conftest.err
26462 } && test -s conftest.$ac_objext; then
26463 ac_hi=-1 ac_mid=-1
26464 while :; do
26465 cat >conftest.$ac_ext <<_ACEOF
26466/* confdefs.h. */
26467_ACEOF
26468cat confdefs.h >>conftest.$ac_ext
26469cat >>conftest.$ac_ext <<_ACEOF
26470/* end confdefs.h. */
26471$ac_includes_default
26472int
26473main ()
26474{
26475static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
26476test_array [0] = 0
26477
26478 ;
26479 return 0;
26480}
26481_ACEOF
26482rm -f conftest.$ac_objext
26483if { (ac_try="$ac_compile"
26484case "(($ac_try" in
26485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26486 *) ac_try_echo=$ac_try;;
26487esac
26488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26489$as_echo "$ac_try_echo") >&5
26490 (eval "$ac_compile") 2>conftest.er1
26491 ac_status=$?
26492 grep -v '^ *+' conftest.er1 >conftest.err
26493 rm -f conftest.er1
26494 cat conftest.err >&5
26495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26496 (exit $ac_status); } && {
26497 test -z "$ac_c_werror_flag" ||
26498 test ! -s conftest.err
26499 } && test -s conftest.$ac_objext; then
26500 ac_lo=$ac_mid; break
26501else
26502 $as_echo "$as_me: failed program was:" >&5
26503sed 's/^/| /' conftest.$ac_ext >&5
26504
26505 ac_hi=`expr '(' $ac_mid ')' - 1`
26506 if test $ac_mid -le $ac_hi; then
26507 ac_lo= ac_hi=
26508 break
26509 fi
26510 ac_mid=`expr 2 '*' $ac_mid`
26511fi
26512
26513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26514 done
26515else
26516 $as_echo "$as_me: failed program was:" >&5
26517sed 's/^/| /' conftest.$ac_ext >&5
26518
26519 ac_lo= ac_hi=
26520fi
26521
26522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26523fi
26524
26525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26526# Binary search between lo and hi bounds.
26527while test "x$ac_lo" != "x$ac_hi"; do
26528 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26529 cat >conftest.$ac_ext <<_ACEOF
26530/* confdefs.h. */
26531_ACEOF
26532cat confdefs.h >>conftest.$ac_ext
26533cat >>conftest.$ac_ext <<_ACEOF
26534/* end confdefs.h. */
26535$ac_includes_default
26536int
26537main ()
26538{
26539static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
26540test_array [0] = 0
26541
26542 ;
26543 return 0;
26544}
26545_ACEOF
26546rm -f conftest.$ac_objext
26547if { (ac_try="$ac_compile"
26548case "(($ac_try" in
26549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26550 *) ac_try_echo=$ac_try;;
26551esac
26552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26553$as_echo "$ac_try_echo") >&5
26554 (eval "$ac_compile") 2>conftest.er1
26555 ac_status=$?
26556 grep -v '^ *+' conftest.er1 >conftest.err
26557 rm -f conftest.er1
26558 cat conftest.err >&5
26559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26560 (exit $ac_status); } && {
26561 test -z "$ac_c_werror_flag" ||
26562 test ! -s conftest.err
26563 } && test -s conftest.$ac_objext; then
26564 ac_hi=$ac_mid
26565else
26566 $as_echo "$as_me: failed program was:" >&5
26567sed 's/^/| /' conftest.$ac_ext >&5
26568
26569 ac_lo=`expr '(' $ac_mid ')' + 1`
26570fi
26571
26572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26573done
26574case $ac_lo in
26575?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
26576'') if test "$ac_cv_type_unsigned_long" = yes; then
26577 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26578$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26579{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26580See \`config.log' for more details." >&5
26581$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26582See \`config.log' for more details." >&2;}
26583 { (exit 77); exit 77; }; }; }
26584 else
26585 ac_cv_sizeof_unsigned_long=0
26586 fi ;;
26587esac
26588else
26589 cat >conftest.$ac_ext <<_ACEOF
26590/* confdefs.h. */
26591_ACEOF
26592cat confdefs.h >>conftest.$ac_ext
26593cat >>conftest.$ac_ext <<_ACEOF
26594/* end confdefs.h. */
26595$ac_includes_default
26596static long int longval () { return (long int) (sizeof (unsigned long)); }
26597static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
26598#include <stdio.h>
26599#include <stdlib.h>
26600int
26601main ()
26602{
26603
26604 FILE *f = fopen ("conftest.val", "w");
26605 if (! f)
26606 return 1;
26607 if (((long int) (sizeof (unsigned long))) < 0)
26608 {
26609 long int i = longval ();
26610 if (i != ((long int) (sizeof (unsigned long))))
26611 return 1;
26612 fprintf (f, "%ld", i);
26613 }
26614 else
26615 {
26616 unsigned long int i = ulongval ();
26617 if (i != ((long int) (sizeof (unsigned long))))
26618 return 1;
26619 fprintf (f, "%lu", i);
26620 }
26621 /* Do not output a trailing newline, as this causes \r\n confusion
26622 on some platforms. */
26623 return ferror (f) || fclose (f) != 0;
26624
26625 ;
26626 return 0;
26627}
26628_ACEOF
26629rm -f conftest$ac_exeext
26630if { (ac_try="$ac_link"
26631case "(($ac_try" in
26632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26633 *) ac_try_echo=$ac_try;;
26634esac
26635eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26636$as_echo "$ac_try_echo") >&5
26637 (eval "$ac_link") 2>&5
26638 ac_status=$?
26639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26640 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26641 { (case "(($ac_try" in
26642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26643 *) ac_try_echo=$ac_try;;
26644esac
26645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26646$as_echo "$ac_try_echo") >&5
26647 (eval "$ac_try") 2>&5
26648 ac_status=$?
26649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650 (exit $ac_status); }; }; then
26651 ac_cv_sizeof_unsigned_long=`cat conftest.val`
26652else
26653 $as_echo "$as_me: program exited with status $ac_status" >&5
26654$as_echo "$as_me: failed program was:" >&5
26655sed 's/^/| /' conftest.$ac_ext >&5
26656
26657( exit $ac_status )
26658if test "$ac_cv_type_unsigned_long" = yes; then
26659 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26661{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26662See \`config.log' for more details." >&5
26663$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26664See \`config.log' for more details." >&2;}
26665 { (exit 77); exit 77; }; }; }
26666 else
26667 ac_cv_sizeof_unsigned_long=0
26668 fi
26669fi
26670rm -rf conftest.dSYM
26671rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26672fi
26673rm -f conftest.val
26674fi
26675{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
26676$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
26677
26678
26679
26680cat >>confdefs.h <<_ACEOF
26681#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26682_ACEOF
26683
26684
26685
26686# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
26687# 'signed long long' is not supported then the value defined is zero.
26688# The cast to long int works around a bug in the HP C Compiler
26689# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26690# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26691# This bug is HP SR number 8606223364.
26692{ $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
26693$as_echo_n "checking size of signed long long... " >&6; }
26694if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
26695 $as_echo_n "(cached) " >&6
26696else
26697 if test "$cross_compiling" = yes; then
26698 # Depending upon the size, compute the lo and hi bounds.
26699cat >conftest.$ac_ext <<_ACEOF
26700/* confdefs.h. */
26701_ACEOF
26702cat confdefs.h >>conftest.$ac_ext
26703cat >>conftest.$ac_ext <<_ACEOF
26704/* end confdefs.h. */
26705$ac_includes_default
26706int
26707main ()
26708{
26709static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
26710test_array [0] = 0
26711
26712 ;
26713 return 0;
26714}
26715_ACEOF
26716rm -f conftest.$ac_objext
26717if { (ac_try="$ac_compile"
26718case "(($ac_try" in
26719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26720 *) ac_try_echo=$ac_try;;
26721esac
26722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26723$as_echo "$ac_try_echo") >&5
26724 (eval "$ac_compile") 2>conftest.er1
26725 ac_status=$?
26726 grep -v '^ *+' conftest.er1 >conftest.err
26727 rm -f conftest.er1
26728 cat conftest.err >&5
26729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730 (exit $ac_status); } && {
26731 test -z "$ac_c_werror_flag" ||
26732 test ! -s conftest.err
26733 } && test -s conftest.$ac_objext; then
26734 ac_lo=0 ac_mid=0
26735 while :; do
26736 cat >conftest.$ac_ext <<_ACEOF
26737/* confdefs.h. */
26738_ACEOF
26739cat confdefs.h >>conftest.$ac_ext
26740cat >>conftest.$ac_ext <<_ACEOF
26741/* end confdefs.h. */
26742$ac_includes_default
26743int
26744main ()
26745{
26746static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
26747test_array [0] = 0
26748
26749 ;
26750 return 0;
26751}
26752_ACEOF
26753rm -f conftest.$ac_objext
26754if { (ac_try="$ac_compile"
26755case "(($ac_try" in
26756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26757 *) ac_try_echo=$ac_try;;
26758esac
26759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26760$as_echo "$ac_try_echo") >&5
26761 (eval "$ac_compile") 2>conftest.er1
26762 ac_status=$?
26763 grep -v '^ *+' conftest.er1 >conftest.err
26764 rm -f conftest.er1
26765 cat conftest.err >&5
26766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767 (exit $ac_status); } && {
26768 test -z "$ac_c_werror_flag" ||
26769 test ! -s conftest.err
26770 } && test -s conftest.$ac_objext; then
26771 ac_hi=$ac_mid; break
26772else
26773 $as_echo "$as_me: failed program was:" >&5
26774sed 's/^/| /' conftest.$ac_ext >&5
26775
26776 ac_lo=`expr $ac_mid + 1`
26777 if test $ac_lo -le $ac_mid; then
26778 ac_lo= ac_hi=
26779 break
26780 fi
26781 ac_mid=`expr 2 '*' $ac_mid + 1`
26782fi
26783
26784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26785 done
26786else
26787 $as_echo "$as_me: failed program was:" >&5
26788sed 's/^/| /' conftest.$ac_ext >&5
26789
26790 cat >conftest.$ac_ext <<_ACEOF
26791/* confdefs.h. */
26792_ACEOF
26793cat confdefs.h >>conftest.$ac_ext
26794cat >>conftest.$ac_ext <<_ACEOF
26795/* end confdefs.h. */
26796$ac_includes_default
26797int
26798main ()
26799{
26800static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
26801test_array [0] = 0
26802
26803 ;
26804 return 0;
26805}
26806_ACEOF
26807rm -f conftest.$ac_objext
26808if { (ac_try="$ac_compile"
26809case "(($ac_try" in
26810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26811 *) ac_try_echo=$ac_try;;
26812esac
26813eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26814$as_echo "$ac_try_echo") >&5
26815 (eval "$ac_compile") 2>conftest.er1
26816 ac_status=$?
26817 grep -v '^ *+' conftest.er1 >conftest.err
26818 rm -f conftest.er1
26819 cat conftest.err >&5
26820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26821 (exit $ac_status); } && {
26822 test -z "$ac_c_werror_flag" ||
26823 test ! -s conftest.err
26824 } && test -s conftest.$ac_objext; then
26825 ac_hi=-1 ac_mid=-1
26826 while :; do
26827 cat >conftest.$ac_ext <<_ACEOF
26828/* confdefs.h. */
26829_ACEOF
26830cat confdefs.h >>conftest.$ac_ext
26831cat >>conftest.$ac_ext <<_ACEOF
26832/* end confdefs.h. */
26833$ac_includes_default
26834int
26835main ()
26836{
26837static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
26838test_array [0] = 0
26839
26840 ;
26841 return 0;
26842}
26843_ACEOF
26844rm -f conftest.$ac_objext
26845if { (ac_try="$ac_compile"
26846case "(($ac_try" in
26847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26848 *) ac_try_echo=$ac_try;;
26849esac
26850eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26851$as_echo "$ac_try_echo") >&5
26852 (eval "$ac_compile") 2>conftest.er1
26853 ac_status=$?
26854 grep -v '^ *+' conftest.er1 >conftest.err
26855 rm -f conftest.er1
26856 cat conftest.err >&5
26857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); } && {
26859 test -z "$ac_c_werror_flag" ||
26860 test ! -s conftest.err
26861 } && test -s conftest.$ac_objext; then
26862 ac_lo=$ac_mid; break
26863else
26864 $as_echo "$as_me: failed program was:" >&5
26865sed 's/^/| /' conftest.$ac_ext >&5
26866
26867 ac_hi=`expr '(' $ac_mid ')' - 1`
26868 if test $ac_mid -le $ac_hi; then
26869 ac_lo= ac_hi=
26870 break
26871 fi
26872 ac_mid=`expr 2 '*' $ac_mid`
26873fi
26874
26875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26876 done
26877else
26878 $as_echo "$as_me: failed program was:" >&5
26879sed 's/^/| /' conftest.$ac_ext >&5
26880
26881 ac_lo= ac_hi=
26882fi
26883
26884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26885fi
26886
26887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26888# Binary search between lo and hi bounds.
26889while test "x$ac_lo" != "x$ac_hi"; do
26890 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26891 cat >conftest.$ac_ext <<_ACEOF
26892/* confdefs.h. */
26893_ACEOF
26894cat confdefs.h >>conftest.$ac_ext
26895cat >>conftest.$ac_ext <<_ACEOF
26896/* end confdefs.h. */
26897$ac_includes_default
26898int
26899main ()
26900{
26901static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
26902test_array [0] = 0
26903
26904 ;
26905 return 0;
26906}
26907_ACEOF
26908rm -f conftest.$ac_objext
26909if { (ac_try="$ac_compile"
26910case "(($ac_try" in
26911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26912 *) ac_try_echo=$ac_try;;
26913esac
26914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26915$as_echo "$ac_try_echo") >&5
26916 (eval "$ac_compile") 2>conftest.er1
26917 ac_status=$?
26918 grep -v '^ *+' conftest.er1 >conftest.err
26919 rm -f conftest.er1
26920 cat conftest.err >&5
26921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); } && {
26923 test -z "$ac_c_werror_flag" ||
26924 test ! -s conftest.err
26925 } && test -s conftest.$ac_objext; then
26926 ac_hi=$ac_mid
26927else
26928 $as_echo "$as_me: failed program was:" >&5
26929sed 's/^/| /' conftest.$ac_ext >&5
26930
26931 ac_lo=`expr '(' $ac_mid ')' + 1`
26932fi
26933
26934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26935done
26936case $ac_lo in
26937?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
26938'') if test "$ac_cv_type_signed_long_long" = yes; then
26939 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26940$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26941{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
26942See \`config.log' for more details." >&5
26943$as_echo "$as_me: error: cannot compute sizeof (signed long long)
26944See \`config.log' for more details." >&2;}
26945 { (exit 77); exit 77; }; }; }
26946 else
26947 ac_cv_sizeof_signed_long_long=0
26948 fi ;;
26949esac
26950else
26951 cat >conftest.$ac_ext <<_ACEOF
26952/* confdefs.h. */
26953_ACEOF
26954cat confdefs.h >>conftest.$ac_ext
26955cat >>conftest.$ac_ext <<_ACEOF
26956/* end confdefs.h. */
26957$ac_includes_default
26958static long int longval () { return (long int) (sizeof (signed long long)); }
26959static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
26960#include <stdio.h>
26961#include <stdlib.h>
26962int
26963main ()
26964{
26965
26966 FILE *f = fopen ("conftest.val", "w");
26967 if (! f)
26968 return 1;
26969 if (((long int) (sizeof (signed long long))) < 0)
26970 {
26971 long int i = longval ();
26972 if (i != ((long int) (sizeof (signed long long))))
26973 return 1;
26974 fprintf (f, "%ld", i);
26975 }
26976 else
26977 {
26978 unsigned long int i = ulongval ();
26979 if (i != ((long int) (sizeof (signed long long))))
26980 return 1;
26981 fprintf (f, "%lu", i);
26982 }
26983 /* Do not output a trailing newline, as this causes \r\n confusion
26984 on some platforms. */
26985 return ferror (f) || fclose (f) != 0;
26986
26987 ;
26988 return 0;
26989}
26990_ACEOF
26991rm -f conftest$ac_exeext
26992if { (ac_try="$ac_link"
26993case "(($ac_try" in
26994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26995 *) ac_try_echo=$ac_try;;
26996esac
26997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26998$as_echo "$ac_try_echo") >&5
26999 (eval "$ac_link") 2>&5
27000 ac_status=$?
27001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27003 { (case "(($ac_try" in
27004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27005 *) ac_try_echo=$ac_try;;
27006esac
27007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27008$as_echo "$ac_try_echo") >&5
27009 (eval "$ac_try") 2>&5
27010 ac_status=$?
27011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012 (exit $ac_status); }; }; then
27013 ac_cv_sizeof_signed_long_long=`cat conftest.val`
27014else
27015 $as_echo "$as_me: program exited with status $ac_status" >&5
27016$as_echo "$as_me: failed program was:" >&5
27017sed 's/^/| /' conftest.$ac_ext >&5
27018
27019( exit $ac_status )
27020if test "$ac_cv_type_signed_long_long" = yes; then
27021 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27023{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
27024See \`config.log' for more details." >&5
27025$as_echo "$as_me: error: cannot compute sizeof (signed long long)
27026See \`config.log' for more details." >&2;}
27027 { (exit 77); exit 77; }; }; }
27028 else
27029 ac_cv_sizeof_signed_long_long=0
27030 fi
27031fi
27032rm -rf conftest.dSYM
27033rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27034fi
27035rm -f conftest.val
27036fi
27037{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
27038$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
27039
27040
27041
27042cat >>confdefs.h <<_ACEOF
27043#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
27044_ACEOF
27045
27046
27047
27048# Obtain size of a 'unsigned long long' and define as
27049# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
27050# supported then the value defined is zero.
27051# The cast to long int works around a bug in the HP C Compiler
27052# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27053# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27054# This bug is HP SR number 8606223364.
27055{ $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
27056$as_echo_n "checking size of unsigned long long... " >&6; }
27057if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
27058 $as_echo_n "(cached) " >&6
27059else
27060 if test "$cross_compiling" = yes; then
27061 # Depending upon the size, compute the lo and hi bounds.
27062cat >conftest.$ac_ext <<_ACEOF
27063/* confdefs.h. */
27064_ACEOF
27065cat confdefs.h >>conftest.$ac_ext
27066cat >>conftest.$ac_ext <<_ACEOF
27067/* end confdefs.h. */
27068$ac_includes_default
27069int
27070main ()
27071{
27072static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
27073test_array [0] = 0
27074
27075 ;
27076 return 0;
27077}
27078_ACEOF
27079rm -f conftest.$ac_objext
27080if { (ac_try="$ac_compile"
27081case "(($ac_try" in
27082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27083 *) ac_try_echo=$ac_try;;
27084esac
27085eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27086$as_echo "$ac_try_echo") >&5
27087 (eval "$ac_compile") 2>conftest.er1
27088 ac_status=$?
27089 grep -v '^ *+' conftest.er1 >conftest.err
27090 rm -f conftest.er1
27091 cat conftest.err >&5
27092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27093 (exit $ac_status); } && {
27094 test -z "$ac_c_werror_flag" ||
27095 test ! -s conftest.err
27096 } && test -s conftest.$ac_objext; then
27097 ac_lo=0 ac_mid=0
27098 while :; do
27099 cat >conftest.$ac_ext <<_ACEOF
27100/* confdefs.h. */
27101_ACEOF
27102cat confdefs.h >>conftest.$ac_ext
27103cat >>conftest.$ac_ext <<_ACEOF
27104/* end confdefs.h. */
27105$ac_includes_default
27106int
27107main ()
27108{
27109static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
27110test_array [0] = 0
27111
27112 ;
27113 return 0;
27114}
27115_ACEOF
27116rm -f conftest.$ac_objext
27117if { (ac_try="$ac_compile"
27118case "(($ac_try" in
27119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27120 *) ac_try_echo=$ac_try;;
27121esac
27122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27123$as_echo "$ac_try_echo") >&5
27124 (eval "$ac_compile") 2>conftest.er1
27125 ac_status=$?
27126 grep -v '^ *+' conftest.er1 >conftest.err
27127 rm -f conftest.er1
27128 cat conftest.err >&5
27129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27130 (exit $ac_status); } && {
27131 test -z "$ac_c_werror_flag" ||
27132 test ! -s conftest.err
27133 } && test -s conftest.$ac_objext; then
27134 ac_hi=$ac_mid; break
27135else
27136 $as_echo "$as_me: failed program was:" >&5
27137sed 's/^/| /' conftest.$ac_ext >&5
27138
27139 ac_lo=`expr $ac_mid + 1`
27140 if test $ac_lo -le $ac_mid; then
27141 ac_lo= ac_hi=
27142 break
27143 fi
27144 ac_mid=`expr 2 '*' $ac_mid + 1`
27145fi
27146
27147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27148 done
27149else
27150 $as_echo "$as_me: failed program was:" >&5
27151sed 's/^/| /' conftest.$ac_ext >&5
27152
27153 cat >conftest.$ac_ext <<_ACEOF
27154/* confdefs.h. */
27155_ACEOF
27156cat confdefs.h >>conftest.$ac_ext
27157cat >>conftest.$ac_ext <<_ACEOF
27158/* end confdefs.h. */
27159$ac_includes_default
27160int
27161main ()
27162{
27163static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
27164test_array [0] = 0
27165
27166 ;
27167 return 0;
27168}
27169_ACEOF
27170rm -f conftest.$ac_objext
27171if { (ac_try="$ac_compile"
27172case "(($ac_try" in
27173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27174 *) ac_try_echo=$ac_try;;
27175esac
27176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27177$as_echo "$ac_try_echo") >&5
27178 (eval "$ac_compile") 2>conftest.er1
27179 ac_status=$?
27180 grep -v '^ *+' conftest.er1 >conftest.err
27181 rm -f conftest.er1
27182 cat conftest.err >&5
27183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); } && {
27185 test -z "$ac_c_werror_flag" ||
27186 test ! -s conftest.err
27187 } && test -s conftest.$ac_objext; then
27188 ac_hi=-1 ac_mid=-1
27189 while :; do
27190 cat >conftest.$ac_ext <<_ACEOF
27191/* confdefs.h. */
27192_ACEOF
27193cat confdefs.h >>conftest.$ac_ext
27194cat >>conftest.$ac_ext <<_ACEOF
27195/* end confdefs.h. */
27196$ac_includes_default
27197int
27198main ()
27199{
27200static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
27201test_array [0] = 0
27202
27203 ;
27204 return 0;
27205}
27206_ACEOF
27207rm -f conftest.$ac_objext
27208if { (ac_try="$ac_compile"
27209case "(($ac_try" in
27210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27211 *) ac_try_echo=$ac_try;;
27212esac
27213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27214$as_echo "$ac_try_echo") >&5
27215 (eval "$ac_compile") 2>conftest.er1
27216 ac_status=$?
27217 grep -v '^ *+' conftest.er1 >conftest.err
27218 rm -f conftest.er1
27219 cat conftest.err >&5
27220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); } && {
27222 test -z "$ac_c_werror_flag" ||
27223 test ! -s conftest.err
27224 } && test -s conftest.$ac_objext; then
27225 ac_lo=$ac_mid; break
27226else
27227 $as_echo "$as_me: failed program was:" >&5
27228sed 's/^/| /' conftest.$ac_ext >&5
27229
27230 ac_hi=`expr '(' $ac_mid ')' - 1`
27231 if test $ac_mid -le $ac_hi; then
27232 ac_lo= ac_hi=
27233 break
27234 fi
27235 ac_mid=`expr 2 '*' $ac_mid`
27236fi
27237
27238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27239 done
27240else
27241 $as_echo "$as_me: failed program was:" >&5
27242sed 's/^/| /' conftest.$ac_ext >&5
27243
27244 ac_lo= ac_hi=
27245fi
27246
27247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27248fi
27249
27250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27251# Binary search between lo and hi bounds.
27252while test "x$ac_lo" != "x$ac_hi"; do
27253 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27254 cat >conftest.$ac_ext <<_ACEOF
27255/* confdefs.h. */
27256_ACEOF
27257cat confdefs.h >>conftest.$ac_ext
27258cat >>conftest.$ac_ext <<_ACEOF
27259/* end confdefs.h. */
27260$ac_includes_default
27261int
27262main ()
27263{
27264static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
27265test_array [0] = 0
27266
27267 ;
27268 return 0;
27269}
27270_ACEOF
27271rm -f conftest.$ac_objext
27272if { (ac_try="$ac_compile"
27273case "(($ac_try" in
27274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27275 *) ac_try_echo=$ac_try;;
27276esac
27277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27278$as_echo "$ac_try_echo") >&5
27279 (eval "$ac_compile") 2>conftest.er1
27280 ac_status=$?
27281 grep -v '^ *+' conftest.er1 >conftest.err
27282 rm -f conftest.er1
27283 cat conftest.err >&5
27284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27285 (exit $ac_status); } && {
27286 test -z "$ac_c_werror_flag" ||
27287 test ! -s conftest.err
27288 } && test -s conftest.$ac_objext; then
27289 ac_hi=$ac_mid
27290else
27291 $as_echo "$as_me: failed program was:" >&5
27292sed 's/^/| /' conftest.$ac_ext >&5
27293
27294 ac_lo=`expr '(' $ac_mid ')' + 1`
27295fi
27296
27297rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27298done
27299case $ac_lo in
27300?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
27301'') if test "$ac_cv_type_unsigned_long_long" = yes; then
27302 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27304{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27305See \`config.log' for more details." >&5
27306$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
27307See \`config.log' for more details." >&2;}
27308 { (exit 77); exit 77; }; }; }
27309 else
27310 ac_cv_sizeof_unsigned_long_long=0
27311 fi ;;
27312esac
27313else
27314 cat >conftest.$ac_ext <<_ACEOF
27315/* confdefs.h. */
27316_ACEOF
27317cat confdefs.h >>conftest.$ac_ext
27318cat >>conftest.$ac_ext <<_ACEOF
27319/* end confdefs.h. */
27320$ac_includes_default
27321static long int longval () { return (long int) (sizeof (unsigned long long)); }
27322static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
27323#include <stdio.h>
27324#include <stdlib.h>
27325int
27326main ()
27327{
27328
27329 FILE *f = fopen ("conftest.val", "w");
27330 if (! f)
27331 return 1;
27332 if (((long int) (sizeof (unsigned long long))) < 0)
27333 {
27334 long int i = longval ();
27335 if (i != ((long int) (sizeof (unsigned long long))))
27336 return 1;
27337 fprintf (f, "%ld", i);
27338 }
27339 else
27340 {
27341 unsigned long int i = ulongval ();
27342 if (i != ((long int) (sizeof (unsigned long long))))
27343 return 1;
27344 fprintf (f, "%lu", i);
27345 }
27346 /* Do not output a trailing newline, as this causes \r\n confusion
27347 on some platforms. */
27348 return ferror (f) || fclose (f) != 0;
27349
27350 ;
27351 return 0;
27352}
27353_ACEOF
27354rm -f conftest$ac_exeext
27355if { (ac_try="$ac_link"
27356case "(($ac_try" in
27357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27358 *) ac_try_echo=$ac_try;;
27359esac
27360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27361$as_echo "$ac_try_echo") >&5
27362 (eval "$ac_link") 2>&5
27363 ac_status=$?
27364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27366 { (case "(($ac_try" in
27367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27368 *) ac_try_echo=$ac_try;;
27369esac
27370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27371$as_echo "$ac_try_echo") >&5
27372 (eval "$ac_try") 2>&5
27373 ac_status=$?
27374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375 (exit $ac_status); }; }; then
27376 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
27377else
27378 $as_echo "$as_me: program exited with status $ac_status" >&5
27379$as_echo "$as_me: failed program was:" >&5
27380sed 's/^/| /' conftest.$ac_ext >&5
27381
27382( exit $ac_status )
27383if test "$ac_cv_type_unsigned_long_long" = yes; then
27384 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27385$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27386{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
27387See \`config.log' for more details." >&5
27388$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
27389See \`config.log' for more details." >&2;}
27390 { (exit 77); exit 77; }; }; }
27391 else
27392 ac_cv_sizeof_unsigned_long_long=0
27393 fi
27394fi
27395rm -rf conftest.dSYM
27396rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27397fi
27398rm -f conftest.val
27399fi
27400{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
27401$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
27402
27403
27404
27405cat >>confdefs.h <<_ACEOF
27406#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
27407_ACEOF
27408
27409
27410
27411# Obtain size of off_t and define as SIZEOF_OFF_T
27412# The cast to long int works around a bug in the HP C Compiler
27413# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27414# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27415# This bug is HP SR number 8606223364.
27416{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
27417$as_echo_n "checking size of off_t... " >&6; }
27418if test "${ac_cv_sizeof_off_t+set}" = set; then
27419 $as_echo_n "(cached) " >&6
27420else
27421 if test "$cross_compiling" = yes; then
27422 # Depending upon the size, compute the lo and hi bounds.
27423cat >conftest.$ac_ext <<_ACEOF
27424/* confdefs.h. */
27425_ACEOF
27426cat confdefs.h >>conftest.$ac_ext
27427cat >>conftest.$ac_ext <<_ACEOF
27428/* end confdefs.h. */
27429$ac_includes_default
27430int
27431main ()
27432{
27433static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
27434test_array [0] = 0
27435
27436 ;
27437 return 0;
27438}
27439_ACEOF
27440rm -f conftest.$ac_objext
27441if { (ac_try="$ac_compile"
27442case "(($ac_try" in
27443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27444 *) ac_try_echo=$ac_try;;
27445esac
27446eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27447$as_echo "$ac_try_echo") >&5
27448 (eval "$ac_compile") 2>conftest.er1
27449 ac_status=$?
27450 grep -v '^ *+' conftest.er1 >conftest.err
27451 rm -f conftest.er1
27452 cat conftest.err >&5
27453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27454 (exit $ac_status); } && {
27455 test -z "$ac_c_werror_flag" ||
27456 test ! -s conftest.err
27457 } && test -s conftest.$ac_objext; then
27458 ac_lo=0 ac_mid=0
27459 while :; do
27460 cat >conftest.$ac_ext <<_ACEOF
27461/* confdefs.h. */
27462_ACEOF
27463cat confdefs.h >>conftest.$ac_ext
27464cat >>conftest.$ac_ext <<_ACEOF
27465/* end confdefs.h. */
27466$ac_includes_default
27467int
27468main ()
27469{
27470static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27471test_array [0] = 0
27472
27473 ;
27474 return 0;
27475}
27476_ACEOF
27477rm -f conftest.$ac_objext
27478if { (ac_try="$ac_compile"
27479case "(($ac_try" in
27480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27481 *) ac_try_echo=$ac_try;;
27482esac
27483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27484$as_echo "$ac_try_echo") >&5
27485 (eval "$ac_compile") 2>conftest.er1
27486 ac_status=$?
27487 grep -v '^ *+' conftest.er1 >conftest.err
27488 rm -f conftest.er1
27489 cat conftest.err >&5
27490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27491 (exit $ac_status); } && {
27492 test -z "$ac_c_werror_flag" ||
27493 test ! -s conftest.err
27494 } && test -s conftest.$ac_objext; then
27495 ac_hi=$ac_mid; break
27496else
27497 $as_echo "$as_me: failed program was:" >&5
27498sed 's/^/| /' conftest.$ac_ext >&5
27499
27500 ac_lo=`expr $ac_mid + 1`
27501 if test $ac_lo -le $ac_mid; then
27502 ac_lo= ac_hi=
27503 break
27504 fi
27505 ac_mid=`expr 2 '*' $ac_mid + 1`
27506fi
27507
27508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27509 done
27510else
27511 $as_echo "$as_me: failed program was:" >&5
27512sed 's/^/| /' conftest.$ac_ext >&5
27513
27514 cat >conftest.$ac_ext <<_ACEOF
27515/* confdefs.h. */
27516_ACEOF
27517cat confdefs.h >>conftest.$ac_ext
27518cat >>conftest.$ac_ext <<_ACEOF
27519/* end confdefs.h. */
27520$ac_includes_default
27521int
27522main ()
27523{
27524static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
27525test_array [0] = 0
27526
27527 ;
27528 return 0;
27529}
27530_ACEOF
27531rm -f conftest.$ac_objext
27532if { (ac_try="$ac_compile"
27533case "(($ac_try" in
27534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27535 *) ac_try_echo=$ac_try;;
27536esac
27537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27538$as_echo "$ac_try_echo") >&5
27539 (eval "$ac_compile") 2>conftest.er1
27540 ac_status=$?
27541 grep -v '^ *+' conftest.er1 >conftest.err
27542 rm -f conftest.er1
27543 cat conftest.err >&5
27544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); } && {
27546 test -z "$ac_c_werror_flag" ||
27547 test ! -s conftest.err
27548 } && test -s conftest.$ac_objext; then
27549 ac_hi=-1 ac_mid=-1
27550 while :; do
27551 cat >conftest.$ac_ext <<_ACEOF
27552/* confdefs.h. */
27553_ACEOF
27554cat confdefs.h >>conftest.$ac_ext
27555cat >>conftest.$ac_ext <<_ACEOF
27556/* end confdefs.h. */
27557$ac_includes_default
27558int
27559main ()
27560{
27561static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
27562test_array [0] = 0
27563
27564 ;
27565 return 0;
27566}
27567_ACEOF
27568rm -f conftest.$ac_objext
27569if { (ac_try="$ac_compile"
27570case "(($ac_try" in
27571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27572 *) ac_try_echo=$ac_try;;
27573esac
27574eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27575$as_echo "$ac_try_echo") >&5
27576 (eval "$ac_compile") 2>conftest.er1
27577 ac_status=$?
27578 grep -v '^ *+' conftest.er1 >conftest.err
27579 rm -f conftest.er1
27580 cat conftest.err >&5
27581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27582 (exit $ac_status); } && {
27583 test -z "$ac_c_werror_flag" ||
27584 test ! -s conftest.err
27585 } && test -s conftest.$ac_objext; then
27586 ac_lo=$ac_mid; break
27587else
27588 $as_echo "$as_me: failed program was:" >&5
27589sed 's/^/| /' conftest.$ac_ext >&5
27590
27591 ac_hi=`expr '(' $ac_mid ')' - 1`
27592 if test $ac_mid -le $ac_hi; then
27593 ac_lo= ac_hi=
27594 break
27595 fi
27596 ac_mid=`expr 2 '*' $ac_mid`
27597fi
27598
27599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27600 done
27601else
27602 $as_echo "$as_me: failed program was:" >&5
27603sed 's/^/| /' conftest.$ac_ext >&5
27604
27605 ac_lo= ac_hi=
27606fi
27607
27608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27609fi
27610
27611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27612# Binary search between lo and hi bounds.
27613while test "x$ac_lo" != "x$ac_hi"; do
27614 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27615 cat >conftest.$ac_ext <<_ACEOF
27616/* confdefs.h. */
27617_ACEOF
27618cat confdefs.h >>conftest.$ac_ext
27619cat >>conftest.$ac_ext <<_ACEOF
27620/* end confdefs.h. */
27621$ac_includes_default
27622int
27623main ()
27624{
27625static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27626test_array [0] = 0
27627
27628 ;
27629 return 0;
27630}
27631_ACEOF
27632rm -f conftest.$ac_objext
27633if { (ac_try="$ac_compile"
27634case "(($ac_try" in
27635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27636 *) ac_try_echo=$ac_try;;
27637esac
27638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27639$as_echo "$ac_try_echo") >&5
27640 (eval "$ac_compile") 2>conftest.er1
27641 ac_status=$?
27642 grep -v '^ *+' conftest.er1 >conftest.err
27643 rm -f conftest.er1
27644 cat conftest.err >&5
27645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27646 (exit $ac_status); } && {
27647 test -z "$ac_c_werror_flag" ||
27648 test ! -s conftest.err
27649 } && test -s conftest.$ac_objext; then
27650 ac_hi=$ac_mid
27651else
27652 $as_echo "$as_me: failed program was:" >&5
27653sed 's/^/| /' conftest.$ac_ext >&5
27654
27655 ac_lo=`expr '(' $ac_mid ')' + 1`
27656fi
27657
27658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27659done
27660case $ac_lo in
27661?*) ac_cv_sizeof_off_t=$ac_lo;;
27662'') if test "$ac_cv_type_off_t" = yes; then
27663 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27665{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27666See \`config.log' for more details." >&5
27667$as_echo "$as_me: error: cannot compute sizeof (off_t)
27668See \`config.log' for more details." >&2;}
27669 { (exit 77); exit 77; }; }; }
27670 else
27671 ac_cv_sizeof_off_t=0
27672 fi ;;
27673esac
27674else
27675 cat >conftest.$ac_ext <<_ACEOF
27676/* confdefs.h. */
27677_ACEOF
27678cat confdefs.h >>conftest.$ac_ext
27679cat >>conftest.$ac_ext <<_ACEOF
27680/* end confdefs.h. */
27681$ac_includes_default
27682static long int longval () { return (long int) (sizeof (off_t)); }
27683static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
27684#include <stdio.h>
27685#include <stdlib.h>
27686int
27687main ()
27688{
27689
27690 FILE *f = fopen ("conftest.val", "w");
27691 if (! f)
27692 return 1;
27693 if (((long int) (sizeof (off_t))) < 0)
27694 {
27695 long int i = longval ();
27696 if (i != ((long int) (sizeof (off_t))))
27697 return 1;
27698 fprintf (f, "%ld", i);
27699 }
27700 else
27701 {
27702 unsigned long int i = ulongval ();
27703 if (i != ((long int) (sizeof (off_t))))
27704 return 1;
27705 fprintf (f, "%lu", i);
27706 }
27707 /* Do not output a trailing newline, as this causes \r\n confusion
27708 on some platforms. */
27709 return ferror (f) || fclose (f) != 0;
27710
27711 ;
27712 return 0;
27713}
27714_ACEOF
27715rm -f conftest$ac_exeext
27716if { (ac_try="$ac_link"
27717case "(($ac_try" in
27718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27719 *) ac_try_echo=$ac_try;;
27720esac
27721eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27722$as_echo "$ac_try_echo") >&5
27723 (eval "$ac_link") 2>&5
27724 ac_status=$?
27725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27727 { (case "(($ac_try" in
27728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27729 *) ac_try_echo=$ac_try;;
27730esac
27731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27732$as_echo "$ac_try_echo") >&5
27733 (eval "$ac_try") 2>&5
27734 ac_status=$?
27735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27736 (exit $ac_status); }; }; then
27737 ac_cv_sizeof_off_t=`cat conftest.val`
27738else
27739 $as_echo "$as_me: program exited with status $ac_status" >&5
27740$as_echo "$as_me: failed program was:" >&5
27741sed 's/^/| /' conftest.$ac_ext >&5
27742
27743( exit $ac_status )
27744if test "$ac_cv_type_off_t" = yes; then
27745 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27746$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27747{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27748See \`config.log' for more details." >&5
27749$as_echo "$as_me: error: cannot compute sizeof (off_t)
27750See \`config.log' for more details." >&2;}
27751 { (exit 77); exit 77; }; }; }
27752 else
27753 ac_cv_sizeof_off_t=0
27754 fi
27755fi
27756rm -rf conftest.dSYM
27757rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27758fi
27759rm -f conftest.val
27760fi
27761{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
27762$as_echo "$ac_cv_sizeof_off_t" >&6; }
27763
27764
27765
27766cat >>confdefs.h <<_ACEOF
27767#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27768_ACEOF
27769
27770
27771
27772# Obtain size of size_t and define as SIZEOF_SIZE_T
27773# The cast to long int works around a bug in the HP C Compiler
27774# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27775# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27776# This bug is HP SR number 8606223364.
27777{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
27778$as_echo_n "checking size of size_t... " >&6; }
27779if test "${ac_cv_sizeof_size_t+set}" = set; then
27780 $as_echo_n "(cached) " >&6
27781else
27782 if test "$cross_compiling" = yes; then
27783 # Depending upon the size, compute the lo and hi bounds.
27784cat >conftest.$ac_ext <<_ACEOF
27785/* confdefs.h. */
27786_ACEOF
27787cat confdefs.h >>conftest.$ac_ext
27788cat >>conftest.$ac_ext <<_ACEOF
27789/* end confdefs.h. */
27790$ac_includes_default
27791int
27792main ()
27793{
27794static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
27795test_array [0] = 0
27796
27797 ;
27798 return 0;
27799}
27800_ACEOF
27801rm -f conftest.$ac_objext
27802if { (ac_try="$ac_compile"
27803case "(($ac_try" in
27804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27805 *) ac_try_echo=$ac_try;;
27806esac
27807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27808$as_echo "$ac_try_echo") >&5
27809 (eval "$ac_compile") 2>conftest.er1
27810 ac_status=$?
27811 grep -v '^ *+' conftest.er1 >conftest.err
27812 rm -f conftest.er1
27813 cat conftest.err >&5
27814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27815 (exit $ac_status); } && {
27816 test -z "$ac_c_werror_flag" ||
27817 test ! -s conftest.err
27818 } && test -s conftest.$ac_objext; then
27819 ac_lo=0 ac_mid=0
27820 while :; do
27821 cat >conftest.$ac_ext <<_ACEOF
27822/* confdefs.h. */
27823_ACEOF
27824cat confdefs.h >>conftest.$ac_ext
27825cat >>conftest.$ac_ext <<_ACEOF
27826/* end confdefs.h. */
27827$ac_includes_default
27828int
27829main ()
27830{
27831static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27832test_array [0] = 0
27833
27834 ;
27835 return 0;
27836}
27837_ACEOF
27838rm -f conftest.$ac_objext
27839if { (ac_try="$ac_compile"
27840case "(($ac_try" in
27841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27842 *) ac_try_echo=$ac_try;;
27843esac
27844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27845$as_echo "$ac_try_echo") >&5
27846 (eval "$ac_compile") 2>conftest.er1
27847 ac_status=$?
27848 grep -v '^ *+' conftest.er1 >conftest.err
27849 rm -f conftest.er1
27850 cat conftest.err >&5
27851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27852 (exit $ac_status); } && {
27853 test -z "$ac_c_werror_flag" ||
27854 test ! -s conftest.err
27855 } && test -s conftest.$ac_objext; then
27856 ac_hi=$ac_mid; break
27857else
27858 $as_echo "$as_me: failed program was:" >&5
27859sed 's/^/| /' conftest.$ac_ext >&5
27860
27861 ac_lo=`expr $ac_mid + 1`
27862 if test $ac_lo -le $ac_mid; then
27863 ac_lo= ac_hi=
27864 break
27865 fi
27866 ac_mid=`expr 2 '*' $ac_mid + 1`
27867fi
27868
27869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27870 done
27871else
27872 $as_echo "$as_me: failed program was:" >&5
27873sed 's/^/| /' conftest.$ac_ext >&5
27874
27875 cat >conftest.$ac_ext <<_ACEOF
27876/* confdefs.h. */
27877_ACEOF
27878cat confdefs.h >>conftest.$ac_ext
27879cat >>conftest.$ac_ext <<_ACEOF
27880/* end confdefs.h. */
27881$ac_includes_default
27882int
27883main ()
27884{
27885static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
27886test_array [0] = 0
27887
27888 ;
27889 return 0;
27890}
27891_ACEOF
27892rm -f conftest.$ac_objext
27893if { (ac_try="$ac_compile"
27894case "(($ac_try" in
27895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27896 *) ac_try_echo=$ac_try;;
27897esac
27898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27899$as_echo "$ac_try_echo") >&5
27900 (eval "$ac_compile") 2>conftest.er1
27901 ac_status=$?
27902 grep -v '^ *+' conftest.er1 >conftest.err
27903 rm -f conftest.er1
27904 cat conftest.err >&5
27905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); } && {
27907 test -z "$ac_c_werror_flag" ||
27908 test ! -s conftest.err
27909 } && test -s conftest.$ac_objext; then
27910 ac_hi=-1 ac_mid=-1
27911 while :; do
27912 cat >conftest.$ac_ext <<_ACEOF
27913/* confdefs.h. */
27914_ACEOF
27915cat confdefs.h >>conftest.$ac_ext
27916cat >>conftest.$ac_ext <<_ACEOF
27917/* end confdefs.h. */
27918$ac_includes_default
27919int
27920main ()
27921{
27922static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
27923test_array [0] = 0
27924
27925 ;
27926 return 0;
27927}
27928_ACEOF
27929rm -f conftest.$ac_objext
27930if { (ac_try="$ac_compile"
27931case "(($ac_try" in
27932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27933 *) ac_try_echo=$ac_try;;
27934esac
27935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27936$as_echo "$ac_try_echo") >&5
27937 (eval "$ac_compile") 2>conftest.er1
27938 ac_status=$?
27939 grep -v '^ *+' conftest.er1 >conftest.err
27940 rm -f conftest.er1
27941 cat conftest.err >&5
27942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943 (exit $ac_status); } && {
27944 test -z "$ac_c_werror_flag" ||
27945 test ! -s conftest.err
27946 } && test -s conftest.$ac_objext; then
27947 ac_lo=$ac_mid; break
27948else
27949 $as_echo "$as_me: failed program was:" >&5
27950sed 's/^/| /' conftest.$ac_ext >&5
27951
27952 ac_hi=`expr '(' $ac_mid ')' - 1`
27953 if test $ac_mid -le $ac_hi; then
27954 ac_lo= ac_hi=
27955 break
27956 fi
27957 ac_mid=`expr 2 '*' $ac_mid`
27958fi
27959
27960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27961 done
27962else
27963 $as_echo "$as_me: failed program was:" >&5
27964sed 's/^/| /' conftest.$ac_ext >&5
27965
27966 ac_lo= ac_hi=
27967fi
27968
27969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27970fi
27971
27972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27973# Binary search between lo and hi bounds.
27974while test "x$ac_lo" != "x$ac_hi"; do
27975 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27976 cat >conftest.$ac_ext <<_ACEOF
27977/* confdefs.h. */
27978_ACEOF
27979cat confdefs.h >>conftest.$ac_ext
27980cat >>conftest.$ac_ext <<_ACEOF
27981/* end confdefs.h. */
27982$ac_includes_default
27983int
27984main ()
27985{
27986static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27987test_array [0] = 0
27988
27989 ;
27990 return 0;
27991}
27992_ACEOF
27993rm -f conftest.$ac_objext
27994if { (ac_try="$ac_compile"
27995case "(($ac_try" in
27996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27997 *) ac_try_echo=$ac_try;;
27998esac
27999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28000$as_echo "$ac_try_echo") >&5
28001 (eval "$ac_compile") 2>conftest.er1
28002 ac_status=$?
28003 grep -v '^ *+' conftest.er1 >conftest.err
28004 rm -f conftest.er1
28005 cat conftest.err >&5
28006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28007 (exit $ac_status); } && {
28008 test -z "$ac_c_werror_flag" ||
28009 test ! -s conftest.err
28010 } && test -s conftest.$ac_objext; then
28011 ac_hi=$ac_mid
28012else
28013 $as_echo "$as_me: failed program was:" >&5
28014sed 's/^/| /' conftest.$ac_ext >&5
28015
28016 ac_lo=`expr '(' $ac_mid ')' + 1`
28017fi
28018
28019rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28020done
28021case $ac_lo in
28022?*) ac_cv_sizeof_size_t=$ac_lo;;
28023'') if test "$ac_cv_type_size_t" = yes; then
28024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28026{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28027See \`config.log' for more details." >&5
28028$as_echo "$as_me: error: cannot compute sizeof (size_t)
28029See \`config.log' for more details." >&2;}
28030 { (exit 77); exit 77; }; }; }
28031 else
28032 ac_cv_sizeof_size_t=0
28033 fi ;;
28034esac
28035else
28036 cat >conftest.$ac_ext <<_ACEOF
28037/* confdefs.h. */
28038_ACEOF
28039cat confdefs.h >>conftest.$ac_ext
28040cat >>conftest.$ac_ext <<_ACEOF
28041/* end confdefs.h. */
28042$ac_includes_default
28043static long int longval () { return (long int) (sizeof (size_t)); }
28044static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
28045#include <stdio.h>
28046#include <stdlib.h>
28047int
28048main ()
28049{
28050
28051 FILE *f = fopen ("conftest.val", "w");
28052 if (! f)
28053 return 1;
28054 if (((long int) (sizeof (size_t))) < 0)
28055 {
28056 long int i = longval ();
28057 if (i != ((long int) (sizeof (size_t))))
28058 return 1;
28059 fprintf (f, "%ld", i);
28060 }
28061 else
28062 {
28063 unsigned long int i = ulongval ();
28064 if (i != ((long int) (sizeof (size_t))))
28065 return 1;
28066 fprintf (f, "%lu", i);
28067 }
28068 /* Do not output a trailing newline, as this causes \r\n confusion
28069 on some platforms. */
28070 return ferror (f) || fclose (f) != 0;
28071
28072 ;
28073 return 0;
28074}
28075_ACEOF
28076rm -f conftest$ac_exeext
28077if { (ac_try="$ac_link"
28078case "(($ac_try" in
28079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28080 *) ac_try_echo=$ac_try;;
28081esac
28082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28083$as_echo "$ac_try_echo") >&5
28084 (eval "$ac_link") 2>&5
28085 ac_status=$?
28086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28088 { (case "(($ac_try" in
28089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28090 *) ac_try_echo=$ac_try;;
28091esac
28092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28093$as_echo "$ac_try_echo") >&5
28094 (eval "$ac_try") 2>&5
28095 ac_status=$?
28096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28097 (exit $ac_status); }; }; then
28098 ac_cv_sizeof_size_t=`cat conftest.val`
28099else
28100 $as_echo "$as_me: program exited with status $ac_status" >&5
28101$as_echo "$as_me: failed program was:" >&5
28102sed 's/^/| /' conftest.$ac_ext >&5
28103
28104( exit $ac_status )
28105if test "$ac_cv_type_size_t" = yes; then
28106 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28108{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
28109See \`config.log' for more details." >&5
28110$as_echo "$as_me: error: cannot compute sizeof (size_t)
28111See \`config.log' for more details." >&2;}
28112 { (exit 77); exit 77; }; }; }
28113 else
28114 ac_cv_sizeof_size_t=0
28115 fi
28116fi
28117rm -rf conftest.dSYM
28118rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28119fi
28120rm -f conftest.val
28121fi
28122{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
28123$as_echo "$ac_cv_sizeof_size_t" >&6; }
28124
28125
28126
28127cat >>confdefs.h <<_ACEOF
28128#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28129_ACEOF
28130
28131
28132
28133# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
28134# The cast to long int works around a bug in the HP C Compiler
28135# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28136# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28137# This bug is HP SR number 8606223364.
28138{ $as_echo "$as_me:$LINENO: checking size of unsigned int*" >&5
28139$as_echo_n "checking size of unsigned int*... " >&6; }
28140if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then
28141 $as_echo_n "(cached) " >&6
28142else
28143 if test "$cross_compiling" = yes; then
28144 # Depending upon the size, compute the lo and hi bounds.
28145cat >conftest.$ac_ext <<_ACEOF
28146/* confdefs.h. */
28147_ACEOF
28148cat confdefs.h >>conftest.$ac_ext
28149cat >>conftest.$ac_ext <<_ACEOF
28150/* end confdefs.h. */
28151$ac_includes_default
28152int
28153main ()
28154{
28155static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= 0)];
28156test_array [0] = 0
28157
28158 ;
28159 return 0;
28160}
28161_ACEOF
28162rm -f conftest.$ac_objext
28163if { (ac_try="$ac_compile"
28164case "(($ac_try" in
28165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28166 *) ac_try_echo=$ac_try;;
28167esac
28168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28169$as_echo "$ac_try_echo") >&5
28170 (eval "$ac_compile") 2>conftest.er1
28171 ac_status=$?
28172 grep -v '^ *+' conftest.er1 >conftest.err
28173 rm -f conftest.er1
28174 cat conftest.err >&5
28175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28176 (exit $ac_status); } && {
28177 test -z "$ac_c_werror_flag" ||
28178 test ! -s conftest.err
28179 } && test -s conftest.$ac_objext; then
28180 ac_lo=0 ac_mid=0
28181 while :; do
28182 cat >conftest.$ac_ext <<_ACEOF
28183/* confdefs.h. */
28184_ACEOF
28185cat confdefs.h >>conftest.$ac_ext
28186cat >>conftest.$ac_ext <<_ACEOF
28187/* end confdefs.h. */
28188$ac_includes_default
28189int
28190main ()
28191{
28192static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
28193test_array [0] = 0
28194
28195 ;
28196 return 0;
28197}
28198_ACEOF
28199rm -f conftest.$ac_objext
28200if { (ac_try="$ac_compile"
28201case "(($ac_try" in
28202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28203 *) ac_try_echo=$ac_try;;
28204esac
28205eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28206$as_echo "$ac_try_echo") >&5
28207 (eval "$ac_compile") 2>conftest.er1
28208 ac_status=$?
28209 grep -v '^ *+' conftest.er1 >conftest.err
28210 rm -f conftest.er1
28211 cat conftest.err >&5
28212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28213 (exit $ac_status); } && {
28214 test -z "$ac_c_werror_flag" ||
28215 test ! -s conftest.err
28216 } && test -s conftest.$ac_objext; then
28217 ac_hi=$ac_mid; break
28218else
28219 $as_echo "$as_me: failed program was:" >&5
28220sed 's/^/| /' conftest.$ac_ext >&5
28221
28222 ac_lo=`expr $ac_mid + 1`
28223 if test $ac_lo -le $ac_mid; then
28224 ac_lo= ac_hi=
28225 break
28226 fi
28227 ac_mid=`expr 2 '*' $ac_mid + 1`
28228fi
28229
28230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28231 done
28232else
28233 $as_echo "$as_me: failed program was:" >&5
28234sed 's/^/| /' conftest.$ac_ext >&5
28235
28236 cat >conftest.$ac_ext <<_ACEOF
28237/* confdefs.h. */
28238_ACEOF
28239cat confdefs.h >>conftest.$ac_ext
28240cat >>conftest.$ac_ext <<_ACEOF
28241/* end confdefs.h. */
28242$ac_includes_default
28243int
28244main ()
28245{
28246static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) < 0)];
28247test_array [0] = 0
28248
28249 ;
28250 return 0;
28251}
28252_ACEOF
28253rm -f conftest.$ac_objext
28254if { (ac_try="$ac_compile"
28255case "(($ac_try" in
28256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28257 *) ac_try_echo=$ac_try;;
28258esac
28259eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28260$as_echo "$ac_try_echo") >&5
28261 (eval "$ac_compile") 2>conftest.er1
28262 ac_status=$?
28263 grep -v '^ *+' conftest.er1 >conftest.err
28264 rm -f conftest.er1
28265 cat conftest.err >&5
28266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28267 (exit $ac_status); } && {
28268 test -z "$ac_c_werror_flag" ||
28269 test ! -s conftest.err
28270 } && test -s conftest.$ac_objext; then
28271 ac_hi=-1 ac_mid=-1
28272 while :; do
28273 cat >conftest.$ac_ext <<_ACEOF
28274/* confdefs.h. */
28275_ACEOF
28276cat confdefs.h >>conftest.$ac_ext
28277cat >>conftest.$ac_ext <<_ACEOF
28278/* end confdefs.h. */
28279$ac_includes_default
28280int
28281main ()
28282{
28283static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= $ac_mid)];
28284test_array [0] = 0
28285
28286 ;
28287 return 0;
28288}
28289_ACEOF
28290rm -f conftest.$ac_objext
28291if { (ac_try="$ac_compile"
28292case "(($ac_try" in
28293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28294 *) ac_try_echo=$ac_try;;
28295esac
28296eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28297$as_echo "$ac_try_echo") >&5
28298 (eval "$ac_compile") 2>conftest.er1
28299 ac_status=$?
28300 grep -v '^ *+' conftest.er1 >conftest.err
28301 rm -f conftest.er1
28302 cat conftest.err >&5
28303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28304 (exit $ac_status); } && {
28305 test -z "$ac_c_werror_flag" ||
28306 test ! -s conftest.err
28307 } && test -s conftest.$ac_objext; then
28308 ac_lo=$ac_mid; break
28309else
28310 $as_echo "$as_me: failed program was:" >&5
28311sed 's/^/| /' conftest.$ac_ext >&5
28312
28313 ac_hi=`expr '(' $ac_mid ')' - 1`
28314 if test $ac_mid -le $ac_hi; then
28315 ac_lo= ac_hi=
28316 break
28317 fi
28318 ac_mid=`expr 2 '*' $ac_mid`
28319fi
28320
28321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28322 done
28323else
28324 $as_echo "$as_me: failed program was:" >&5
28325sed 's/^/| /' conftest.$ac_ext >&5
28326
28327 ac_lo= ac_hi=
28328fi
28329
28330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28331fi
28332
28333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28334# Binary search between lo and hi bounds.
28335while test "x$ac_lo" != "x$ac_hi"; do
28336 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28337 cat >conftest.$ac_ext <<_ACEOF
28338/* confdefs.h. */
28339_ACEOF
28340cat confdefs.h >>conftest.$ac_ext
28341cat >>conftest.$ac_ext <<_ACEOF
28342/* end confdefs.h. */
28343$ac_includes_default
28344int
28345main ()
28346{
28347static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
28348test_array [0] = 0
28349
28350 ;
28351 return 0;
28352}
28353_ACEOF
28354rm -f conftest.$ac_objext
28355if { (ac_try="$ac_compile"
28356case "(($ac_try" in
28357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28358 *) ac_try_echo=$ac_try;;
28359esac
28360eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28361$as_echo "$ac_try_echo") >&5
28362 (eval "$ac_compile") 2>conftest.er1
28363 ac_status=$?
28364 grep -v '^ *+' conftest.er1 >conftest.err
28365 rm -f conftest.er1
28366 cat conftest.err >&5
28367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28368 (exit $ac_status); } && {
28369 test -z "$ac_c_werror_flag" ||
28370 test ! -s conftest.err
28371 } && test -s conftest.$ac_objext; then
28372 ac_hi=$ac_mid
28373else
28374 $as_echo "$as_me: failed program was:" >&5
28375sed 's/^/| /' conftest.$ac_ext >&5
28376
28377 ac_lo=`expr '(' $ac_mid ')' + 1`
28378fi
28379
28380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28381done
28382case $ac_lo in
28383?*) ac_cv_sizeof_unsigned_intp=$ac_lo;;
28384'') if test "$ac_cv_type_unsigned_intp" = yes; then
28385 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28387{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
28388See \`config.log' for more details." >&5
28389$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
28390See \`config.log' for more details." >&2;}
28391 { (exit 77); exit 77; }; }; }
28392 else
28393 ac_cv_sizeof_unsigned_intp=0
28394 fi ;;
28395esac
28396else
28397 cat >conftest.$ac_ext <<_ACEOF
28398/* confdefs.h. */
28399_ACEOF
28400cat confdefs.h >>conftest.$ac_ext
28401cat >>conftest.$ac_ext <<_ACEOF
28402/* end confdefs.h. */
28403$ac_includes_default
28404static long int longval () { return (long int) (sizeof (unsigned int*)); }
28405static unsigned long int ulongval () { return (long int) (sizeof (unsigned int*)); }
28406#include <stdio.h>
28407#include <stdlib.h>
28408int
28409main ()
28410{
28411
28412 FILE *f = fopen ("conftest.val", "w");
28413 if (! f)
28414 return 1;
28415 if (((long int) (sizeof (unsigned int*))) < 0)
28416 {
28417 long int i = longval ();
28418 if (i != ((long int) (sizeof (unsigned int*))))
28419 return 1;
28420 fprintf (f, "%ld", i);
28421 }
28422 else
28423 {
28424 unsigned long int i = ulongval ();
28425 if (i != ((long int) (sizeof (unsigned int*))))
28426 return 1;
28427 fprintf (f, "%lu", i);
28428 }
28429 /* Do not output a trailing newline, as this causes \r\n confusion
28430 on some platforms. */
28431 return ferror (f) || fclose (f) != 0;
28432
28433 ;
28434 return 0;
28435}
28436_ACEOF
28437rm -f conftest$ac_exeext
28438if { (ac_try="$ac_link"
28439case "(($ac_try" in
28440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28441 *) ac_try_echo=$ac_try;;
28442esac
28443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28444$as_echo "$ac_try_echo") >&5
28445 (eval "$ac_link") 2>&5
28446 ac_status=$?
28447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28449 { (case "(($ac_try" in
28450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28451 *) ac_try_echo=$ac_try;;
28452esac
28453eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28454$as_echo "$ac_try_echo") >&5
28455 (eval "$ac_try") 2>&5
28456 ac_status=$?
28457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28458 (exit $ac_status); }; }; then
28459 ac_cv_sizeof_unsigned_intp=`cat conftest.val`
28460else
28461 $as_echo "$as_me: program exited with status $ac_status" >&5
28462$as_echo "$as_me: failed program was:" >&5
28463sed 's/^/| /' conftest.$ac_ext >&5
28464
28465( exit $ac_status )
28466if test "$ac_cv_type_unsigned_intp" = yes; then
28467 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
28468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28469{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
28470See \`config.log' for more details." >&5
28471$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
28472See \`config.log' for more details." >&2;}
28473 { (exit 77); exit 77; }; }; }
28474 else
28475 ac_cv_sizeof_unsigned_intp=0
28476 fi
28477fi
28478rm -rf conftest.dSYM
28479rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28480fi
28481rm -f conftest.val
28482fi
28483{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_intp" >&5
28484$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
28485
28486
28487
28488cat >>confdefs.h <<_ACEOF
28489#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
28490_ACEOF
28491
28492
28493
28494#
28495# Compute sized types for current CPU and compiler options.
28496#
28497
28498{ $as_echo "$as_me:$LINENO: checking for signed 8-bit type" >&5
28499$as_echo_n "checking for signed 8-bit type... " >&6; }
28500INT8_T='signed char'
28501{ $as_echo "$as_me:$LINENO: result: $INT8_T" >&5
28502$as_echo "$INT8_T" >&6; }
28503
28504
28505{ $as_echo "$as_me:$LINENO: checking for unsigned 8-bit type" >&5
28506$as_echo_n "checking for unsigned 8-bit type... " >&6; }
28507UINT8_T='unsigned char'
28508{ $as_echo "$as_me:$LINENO: result: $UINT8_T" >&5
28509$as_echo "$UINT8_T" >&6; }
28510
28511
28512{ $as_echo "$as_me:$LINENO: checking for signed 16-bit type" >&5
28513$as_echo_n "checking for signed 16-bit type... " >&6; }
28514INT16_T='signed short'
28515{ $as_echo "$as_me:$LINENO: result: $INT16_T" >&5
28516$as_echo "$INT16_T" >&6; }
28517
28518
28519{ $as_echo "$as_me:$LINENO: checking for unsigned 16-bit type" >&5
28520$as_echo_n "checking for unsigned 16-bit type... " >&6; }
28521UINT16_T='unsigned short'
28522{ $as_echo "$as_me:$LINENO: result: $UINT16_T" >&5
28523$as_echo "$UINT16_T" >&6; }
28524
28525
28526{ $as_echo "$as_me:$LINENO: checking for signed 32-bit type" >&5
28527$as_echo_n "checking for signed 32-bit type... " >&6; }
28528INT32_T='none'
28529if test $ac_cv_sizeof_signed_int -eq 4; then
28530 INT32_T='signed int'
28531elif test $ac_cv_sizeof_signed_long -eq 4; then
28532 INT32_T='signed long'
28533fi
28534{ $as_echo "$as_me:$LINENO: result: $INT32_T" >&5
28535$as_echo "$INT32_T" >&6; }
28536
28537
28538{ $as_echo "$as_me:$LINENO: checking for unsigned 32-bit type" >&5
28539$as_echo_n "checking for unsigned 32-bit type... " >&6; }
28540UINT32_T='none'
28541if test $ac_cv_sizeof_unsigned_int -eq 4; then
28542 UINT32_T='unsigned int'
28543elif test $ac_cv_sizeof_unsigned_long -eq 4; then
28544 UINT32_T='unsigned long'
28545fi
28546{ $as_echo "$as_me:$LINENO: result: $UINT32_T" >&5
28547$as_echo "$UINT32_T" >&6; }
28548
28549
28550{ $as_echo "$as_me:$LINENO: checking for signed 64-bit type" >&5
28551$as_echo_n "checking for signed 64-bit type... " >&6; }
28552INT64_T='none'
28553if test $ac_cv_sizeof_signed_long -eq 8; then
28554 INT64_T='signed long'
28555elif test $ac_cv_sizeof_signed_long_long -eq 8; then
28556 INT64_T='signed long long'
28557fi
28558{ $as_echo "$as_me:$LINENO: result: $INT64_T" >&5
28559$as_echo "$INT64_T" >&6; }
28560
28561
28562{ $as_echo "$as_me:$LINENO: checking for unsigned 64-bit type" >&5
28563$as_echo_n "checking for unsigned 64-bit type... " >&6; }
28564UINT64_T='none'
28565if test $ac_cv_sizeof_unsigned_long -eq 8; then
28566 UINT64_T='unsigned long'
28567elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
28568 UINT64_T='unsigned long long'
28569fi
28570{ $as_echo "$as_me:$LINENO: result: $UINT64_T" >&5
28571$as_echo "$UINT64_T" >&6; }
28572
28573
28574{ $as_echo "$as_me:$LINENO: checking for unsigned maximum type" >&5
28575$as_echo_n "checking for unsigned maximum type... " >&6; }
28576UINTMAX_T='none'
28577if test "$UINT64_T" != 'none'; then
28578 UINTMAX_T=$UINT64_T
28579elif test "$UINT32_T" != 'none'; then
28580 UINTMAX_T=$UINT32_T
28581fi
28582{ $as_echo "$as_me:$LINENO: result: $UINTMAX_T" >&5
28583$as_echo "$UINTMAX_T" >&6; }
28584
28585
28586{ $as_echo "$as_me:$LINENO: checking for pointer difference type" >&5
28587$as_echo_n "checking for pointer difference type... " >&6; }
28588UINTPTR_T='none'
28589if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
28590 UINTPTR_T='unsigned long'
28591elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
28592 UINTPTR_T='unsigned long long'
28593fi
28594{ $as_echo "$as_me:$LINENO: result: $UINTPTR_T" >&5
28595$as_echo "$UINTPTR_T" >&6; }
28596
28597
28598{ $as_echo "$as_me:$LINENO: checking whether our compiler supports __func__" >&5
28599$as_echo_n "checking whether our compiler supports __func__... " >&6; }
28600cat >conftest.$ac_ext <<_ACEOF
28601/* confdefs.h. */
28602_ACEOF
28603cat confdefs.h >>conftest.$ac_ext
28604cat >>conftest.$ac_ext <<_ACEOF
28605/* end confdefs.h. */
28606
28607int
28608main ()
28609{
28610{ const char *func = __func__; return(func != 0 ? 0 : 1); }
28611 ;
28612 return 0;
28613}
28614_ACEOF
28615rm -f conftest.$ac_objext
28616if { (ac_try="$ac_compile"
28617case "(($ac_try" in
28618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28619 *) ac_try_echo=$ac_try;;
28620esac
28621eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28622$as_echo "$ac_try_echo") >&5
28623 (eval "$ac_compile") 2>conftest.er1
28624 ac_status=$?
28625 grep -v '^ *+' conftest.er1 >conftest.err
28626 rm -f conftest.er1
28627 cat conftest.err >&5
28628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28629 (exit $ac_status); } && {
28630 test -z "$ac_c_werror_flag" ||
28631 test ! -s conftest.err
28632 } && test -s conftest.$ac_objext; then
28633 { $as_echo "$as_me:$LINENO: result: yes" >&5
28634$as_echo "yes" >&6; }
28635else
28636 $as_echo "$as_me: failed program was:" >&5
28637sed 's/^/| /' conftest.$ac_ext >&5
28638
28639 { $as_echo "$as_me:$LINENO: result: no" >&5
28640$as_echo "no" >&6; }
28641 { $as_echo "$as_me:$LINENO: checking whether our compiler supports __FUNCTION__" >&5
28642$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
28643 cat >conftest.$ac_ext <<_ACEOF
28644/* confdefs.h. */
28645_ACEOF
28646cat confdefs.h >>conftest.$ac_ext
28647cat >>conftest.$ac_ext <<_ACEOF
28648/* end confdefs.h. */
28649
28650int
28651main ()
28652{
28653{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
28654 ;
28655 return 0;
28656}
28657_ACEOF
28658rm -f conftest.$ac_objext
28659if { (ac_try="$ac_compile"
28660case "(($ac_try" in
28661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28662 *) ac_try_echo=$ac_try;;
28663esac
28664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28665$as_echo "$ac_try_echo") >&5
28666 (eval "$ac_compile") 2>conftest.er1
28667 ac_status=$?
28668 grep -v '^ *+' conftest.er1 >conftest.err
28669 rm -f conftest.er1
28670 cat conftest.err >&5
28671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28672 (exit $ac_status); } && {
28673 test -z "$ac_c_werror_flag" ||
28674 test ! -s conftest.err
28675 } && test -s conftest.$ac_objext; then
28676 { $as_echo "$as_me:$LINENO: result: yes" >&5
28677$as_echo "yes" >&6; }
28678
28679cat >>confdefs.h <<\_ACEOF
28680#define __func__ __FUNCTION__
28681_ACEOF
28682
28683else
28684 $as_echo "$as_me: failed program was:" >&5
28685sed 's/^/| /' conftest.$ac_ext >&5
28686
28687 { $as_echo "$as_me:$LINENO: result: no" >&5
28688$as_echo "no" >&6; }
28689
28690cat >>confdefs.h <<\_ACEOF
28691#define __func__ __FILE__
28692_ACEOF
28693
28694fi
28695
28696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28697fi
28698
28699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28700
28701########
28702#
28703# Check for functions
28704#
28705########
28706
28707
28708for ac_header in stdlib.h unistd.h
28709do
28710as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28711if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28712 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28713$as_echo_n "checking for $ac_header... " >&6; }
28714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28715 $as_echo_n "(cached) " >&6
28716fi
28717ac_res=`eval 'as_val=${'$as_ac_Header'}
28718 $as_echo "$as_val"'`
28719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28720$as_echo "$ac_res" >&6; }
28721else
28722 # Is the header compilable?
28723{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28724$as_echo_n "checking $ac_header usability... " >&6; }
28725cat >conftest.$ac_ext <<_ACEOF
28726/* confdefs.h. */
28727_ACEOF
28728cat confdefs.h >>conftest.$ac_ext
28729cat >>conftest.$ac_ext <<_ACEOF
28730/* end confdefs.h. */
28731$ac_includes_default
28732#include <$ac_header>
28733_ACEOF
28734rm -f conftest.$ac_objext
28735if { (ac_try="$ac_compile"
28736case "(($ac_try" in
28737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28738 *) ac_try_echo=$ac_try;;
28739esac
28740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28741$as_echo "$ac_try_echo") >&5
28742 (eval "$ac_compile") 2>conftest.er1
28743 ac_status=$?
28744 grep -v '^ *+' conftest.er1 >conftest.err
28745 rm -f conftest.er1
28746 cat conftest.err >&5
28747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28748 (exit $ac_status); } && {
28749 test -z "$ac_c_werror_flag" ||
28750 test ! -s conftest.err
28751 } && test -s conftest.$ac_objext; then
28752 ac_header_compiler=yes
28753else
28754 $as_echo "$as_me: failed program was:" >&5
28755sed 's/^/| /' conftest.$ac_ext >&5
28756
28757 ac_header_compiler=no
28758fi
28759
28760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28761{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28762$as_echo "$ac_header_compiler" >&6; }
28763
28764# Is the header present?
28765{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28766$as_echo_n "checking $ac_header presence... " >&6; }
28767cat >conftest.$ac_ext <<_ACEOF
28768/* confdefs.h. */
28769_ACEOF
28770cat confdefs.h >>conftest.$ac_ext
28771cat >>conftest.$ac_ext <<_ACEOF
28772/* end confdefs.h. */
28773#include <$ac_header>
28774_ACEOF
28775if { (ac_try="$ac_cpp conftest.$ac_ext"
28776case "(($ac_try" in
28777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28778 *) ac_try_echo=$ac_try;;
28779esac
28780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28781$as_echo "$ac_try_echo") >&5
28782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28783 ac_status=$?
28784 grep -v '^ *+' conftest.er1 >conftest.err
28785 rm -f conftest.er1
28786 cat conftest.err >&5
28787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28788 (exit $ac_status); } >/dev/null && {
28789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28790 test ! -s conftest.err
28791 }; then
28792 ac_header_preproc=yes
28793else
28794 $as_echo "$as_me: failed program was:" >&5
28795sed 's/^/| /' conftest.$ac_ext >&5
28796
28797 ac_header_preproc=no
28798fi
28799
28800rm -f conftest.err conftest.$ac_ext
28801{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28802$as_echo "$ac_header_preproc" >&6; }
28803
28804# So? What about this header?
28805case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28806 yes:no: )
28807 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28808$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28809 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28810$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28811 ac_header_preproc=yes
28812 ;;
28813 no:yes:* )
28814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28815$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28817$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28819$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28821$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28823$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28825$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28826 ( cat <<\_ASBOX
28827## ----------------------------------------- ##
28828## Report this to http://www.imagemagick.org ##
28829## ----------------------------------------- ##
28830_ASBOX
28831 ) | sed "s/^/$as_me: WARNING: /" >&2
28832 ;;
28833esac
28834{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28835$as_echo_n "checking for $ac_header... " >&6; }
28836if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28837 $as_echo_n "(cached) " >&6
28838else
28839 eval "$as_ac_Header=\$ac_header_preproc"
28840fi
28841ac_res=`eval 'as_val=${'$as_ac_Header'}
28842 $as_echo "$as_val"'`
28843 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28844$as_echo "$ac_res" >&6; }
28845
28846fi
28847as_val=`eval 'as_val=${'$as_ac_Header'}
28848 $as_echo "$as_val"'`
28849 if test "x$as_val" = x""yes; then
28850 cat >>confdefs.h <<_ACEOF
28851#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28852_ACEOF
28853
28854fi
28855
28856done
28857
28858
28859for ac_func in getpagesize
28860do
28861as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28862{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28863$as_echo_n "checking for $ac_func... " >&6; }
28864if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28865 $as_echo_n "(cached) " >&6
28866else
28867 cat >conftest.$ac_ext <<_ACEOF
28868/* confdefs.h. */
28869_ACEOF
28870cat confdefs.h >>conftest.$ac_ext
28871cat >>conftest.$ac_ext <<_ACEOF
28872/* end confdefs.h. */
28873/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28875#define $ac_func innocuous_$ac_func
28876
28877/* System header to define __stub macros and hopefully few prototypes,
28878 which can conflict with char $ac_func (); below.
28879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28880 <limits.h> exists even on freestanding compilers. */
28881
28882#ifdef __STDC__
28883# include <limits.h>
28884#else
28885# include <assert.h>
28886#endif
28887
28888#undef $ac_func
28889
28890/* Override any GCC internal prototype to avoid an error.
28891 Use char because int might match the return type of a GCC
28892 builtin and then its argument prototype would still apply. */
28893#ifdef __cplusplus
28894extern "C"
28895#endif
28896char $ac_func ();
28897/* The GNU C library defines this for functions which it implements
28898 to always fail with ENOSYS. Some functions are actually named
28899 something starting with __ and the normal name is an alias. */
28900#if defined __stub_$ac_func || defined __stub___$ac_func
28901choke me
28902#endif
28903
28904int
28905main ()
28906{
28907return $ac_func ();
28908 ;
28909 return 0;
28910}
28911_ACEOF
28912rm -f conftest.$ac_objext conftest$ac_exeext
28913if { (ac_try="$ac_link"
28914case "(($ac_try" in
28915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28916 *) ac_try_echo=$ac_try;;
28917esac
28918eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28919$as_echo "$ac_try_echo") >&5
28920 (eval "$ac_link") 2>conftest.er1
28921 ac_status=$?
28922 grep -v '^ *+' conftest.er1 >conftest.err
28923 rm -f conftest.er1
28924 cat conftest.err >&5
28925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 (exit $ac_status); } && {
28927 test -z "$ac_c_werror_flag" ||
28928 test ! -s conftest.err
28929 } && test -s conftest$ac_exeext && {
28930 test "$cross_compiling" = yes ||
28931 $as_test_x conftest$ac_exeext
28932 }; then
28933 eval "$as_ac_var=yes"
28934else
28935 $as_echo "$as_me: failed program was:" >&5
28936sed 's/^/| /' conftest.$ac_ext >&5
28937
28938 eval "$as_ac_var=no"
28939fi
28940
28941rm -rf conftest.dSYM
28942rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28943 conftest$ac_exeext conftest.$ac_ext
28944fi
28945ac_res=`eval 'as_val=${'$as_ac_var'}
28946 $as_echo "$as_val"'`
28947 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28948$as_echo "$ac_res" >&6; }
28949as_val=`eval 'as_val=${'$as_ac_var'}
28950 $as_echo "$as_val"'`
28951 if test "x$as_val" = x""yes; then
28952 cat >>confdefs.h <<_ACEOF
28953#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28954_ACEOF
28955
28956fi
28957done
28958
28959{ $as_echo "$as_me:$LINENO: checking for working mmap file i/o" >&5
28960$as_echo_n "checking for working mmap file i/o... " >&6; }
28961if test "${magick_cv_func_mmap_fileio+set}" = set; then
28962 $as_echo_n "(cached) " >&6
28963else
28964 if test "$cross_compiling" = yes; then
28965 magick_cv_func_mmap_fileio=no
28966else
28967 cat >conftest.$ac_ext <<_ACEOF
28968/* confdefs.h. */
28969_ACEOF
28970cat confdefs.h >>conftest.$ac_ext
28971cat >>conftest.$ac_ext <<_ACEOF
28972/* end confdefs.h. */
28973$ac_includes_default
28974/* malloc might have been renamed as rpl_malloc. */
28975#undef malloc
28976
28977/*
28978 This test is derived from GNU Autoconf's similar macro.
28979 The purpose of this test is to verify that files may be memory
28980 mapped, and that memory mapping and file I/O are coherent.
28981
28982 The test creates a test file, memory maps the file, updates
28983 the file using the memory map, and then reads the file using
28984 file I/O to verify that the file contains the updates.
28985*/
28986
28987#include <fcntl.h>
28988#include <sys/mman.h>
28989
28990#if !STDC_HEADERS && !HAVE_STDLIB_H
28991char *malloc ();
28992#endif
28993
28994/* This mess was copied from the GNU getpagesize.h. */
28995#if !HAVE_GETPAGESIZE
28996/* Assume that all systems that can run configure have sys/param.h. */
28997# if !HAVE_SYS_PARAM_H
28998# define HAVE_SYS_PARAM_H 1
28999# endif
29000
29001# ifdef _SC_PAGESIZE
29002# define getpagesize() sysconf(_SC_PAGESIZE)
29003# else /* no _SC_PAGESIZE */
29004# if HAVE_SYS_PARAM_H
29005# include <sys/param.h>
29006# ifdef EXEC_PAGESIZE
29007# define getpagesize() EXEC_PAGESIZE
29008# else /* no EXEC_PAGESIZE */
29009# ifdef NBPG
29010# define getpagesize() NBPG * CLSIZE
29011# ifndef CLSIZE
29012# define CLSIZE 1
29013# endif /* no CLSIZE */
29014# else /* no NBPG */
29015# ifdef NBPC
29016# define getpagesize() NBPC
29017# else /* no NBPC */
29018# ifdef PAGESIZE
29019# define getpagesize() PAGESIZE
29020# endif /* PAGESIZE */
29021# endif /* no NBPC */
29022# endif /* no NBPG */
29023# endif /* no EXEC_PAGESIZE */
29024# else /* no HAVE_SYS_PARAM_H */
29025# define getpagesize() 8192 /* punt totally */
29026# endif /* no HAVE_SYS_PARAM_H */
29027# endif /* no _SC_PAGESIZE */
29028
29029#endif /* no HAVE_GETPAGESIZE */
29030
29031int
29032main ()
29033{
29034 char *data, *data2, *data3;
29035 int i, pagesize;
29036 int fd;
29037
29038 pagesize = getpagesize ();
29039
29040 /* First, make a file with some known garbage in it. */
29041 data = (char *) malloc (pagesize);
29042 if (!data)
29043 exit (1);
29044 for (i = 0; i < pagesize; ++i)
29045 *(data + i) = rand ();
29046 umask (0);
29047 fd = creat ("conftest.mmap", 0600);
29048 if (fd < 0)
29049 exit (1);
29050 if (write (fd, data, pagesize) != pagesize)
29051 exit (1);
29052 close (fd);
29053
29054 /* Mmap the file as read/write/shared and verify that we see the
29055 same garbage. */
29056 fd = open ("conftest.mmap", O_RDWR);
29057 if (fd < 0)
29058 exit (1);
29059 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
29060 if (data2 == 0)
29061 exit (1);
29062 for (i = 0; i < pagesize; ++i)
29063 if (*(data + i) != *(data2 + i))
29064 exit (1);
29065
29066 /* Finally, make sure that changes to the mapped area
29067 percolate back to the file as seen by read(). */
29068 for (i = 0; i < pagesize; ++i)
29069 *(data2 + i) = *(data2 + i) + 1;
29070 data3 = (char *) malloc (pagesize);
29071 if (!data3)
29072 exit (1);
29073 if (read (fd, data3, pagesize) != pagesize)
29074 exit (1);
29075 for (i = 0; i < pagesize; ++i)
29076 if (*(data2 + i) != *(data3 + i))
29077 exit (1);
29078 close (fd);
29079 exit (0);
29080}
29081_ACEOF
29082rm -f conftest$ac_exeext
29083if { (ac_try="$ac_link"
29084case "(($ac_try" in
29085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29086 *) ac_try_echo=$ac_try;;
29087esac
29088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29089$as_echo "$ac_try_echo") >&5
29090 (eval "$ac_link") 2>&5
29091 ac_status=$?
29092 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29094 { (case "(($ac_try" in
29095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29096 *) ac_try_echo=$ac_try;;
29097esac
29098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29099$as_echo "$ac_try_echo") >&5
29100 (eval "$ac_try") 2>&5
29101 ac_status=$?
29102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103 (exit $ac_status); }; }; then
29104 magick_cv_func_mmap_fileio=yes
29105else
29106 $as_echo "$as_me: program exited with status $ac_status" >&5
29107$as_echo "$as_me: failed program was:" >&5
29108sed 's/^/| /' conftest.$ac_ext >&5
29109
29110( exit $ac_status )
29111magick_cv_func_mmap_fileio=no
29112fi
29113rm -rf conftest.dSYM
29114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29115fi
29116
29117
29118fi
29119{ $as_echo "$as_me:$LINENO: result: $magick_cv_func_mmap_fileio" >&5
29120$as_echo "$magick_cv_func_mmap_fileio" >&6; }
29121if test $magick_cv_func_mmap_fileio = yes; then
29122
29123cat >>confdefs.h <<\_ACEOF
29124#define HAVE_MMAP_FILEIO 1
29125_ACEOF
29126
29127fi
29128rm -f conftest.mmap
29129
29130{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
29131$as_echo_n "checking whether closedir returns void... " >&6; }
29132if test "${ac_cv_func_closedir_void+set}" = set; then
29133 $as_echo_n "(cached) " >&6
29134else
29135 if test "$cross_compiling" = yes; then
29136 ac_cv_func_closedir_void=yes
29137else
29138 cat >conftest.$ac_ext <<_ACEOF
29139/* confdefs.h. */
29140_ACEOF
29141cat confdefs.h >>conftest.$ac_ext
29142cat >>conftest.$ac_ext <<_ACEOF
29143/* end confdefs.h. */
29144$ac_includes_default
29145#include <$ac_header_dirent>
29146#ifndef __cplusplus
29147int closedir ();
29148#endif
29149
29150int
29151main ()
29152{
29153return closedir (opendir (".")) != 0;
29154 ;
29155 return 0;
29156}
29157_ACEOF
29158rm -f conftest$ac_exeext
29159if { (ac_try="$ac_link"
29160case "(($ac_try" in
29161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29162 *) ac_try_echo=$ac_try;;
29163esac
29164eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29165$as_echo "$ac_try_echo") >&5
29166 (eval "$ac_link") 2>&5
29167 ac_status=$?
29168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29170 { (case "(($ac_try" in
29171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29172 *) ac_try_echo=$ac_try;;
29173esac
29174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29175$as_echo "$ac_try_echo") >&5
29176 (eval "$ac_try") 2>&5
29177 ac_status=$?
29178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; }; then
29180 ac_cv_func_closedir_void=no
29181else
29182 $as_echo "$as_me: program exited with status $ac_status" >&5
29183$as_echo "$as_me: failed program was:" >&5
29184sed 's/^/| /' conftest.$ac_ext >&5
29185
29186( exit $ac_status )
29187ac_cv_func_closedir_void=yes
29188fi
29189rm -rf conftest.dSYM
29190rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29191fi
29192
29193
29194fi
29195{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
29196$as_echo "$ac_cv_func_closedir_void" >&6; }
29197if test $ac_cv_func_closedir_void = yes; then
29198
29199cat >>confdefs.h <<\_ACEOF
29200#define CLOSEDIR_VOID 1
29201_ACEOF
29202
29203fi
29204
29205
29206
29207for ac_header in stdlib.h unistd.h
29208do
29209as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29211 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29212$as_echo_n "checking for $ac_header... " >&6; }
29213if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29214 $as_echo_n "(cached) " >&6
29215fi
29216ac_res=`eval 'as_val=${'$as_ac_Header'}
29217 $as_echo "$as_val"'`
29218 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29219$as_echo "$ac_res" >&6; }
29220else
29221 # Is the header compilable?
29222{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29223$as_echo_n "checking $ac_header usability... " >&6; }
29224cat >conftest.$ac_ext <<_ACEOF
29225/* confdefs.h. */
29226_ACEOF
29227cat confdefs.h >>conftest.$ac_ext
29228cat >>conftest.$ac_ext <<_ACEOF
29229/* end confdefs.h. */
29230$ac_includes_default
29231#include <$ac_header>
29232_ACEOF
29233rm -f conftest.$ac_objext
29234if { (ac_try="$ac_compile"
29235case "(($ac_try" in
29236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29237 *) ac_try_echo=$ac_try;;
29238esac
29239eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29240$as_echo "$ac_try_echo") >&5
29241 (eval "$ac_compile") 2>conftest.er1
29242 ac_status=$?
29243 grep -v '^ *+' conftest.er1 >conftest.err
29244 rm -f conftest.er1
29245 cat conftest.err >&5
29246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29247 (exit $ac_status); } && {
29248 test -z "$ac_c_werror_flag" ||
29249 test ! -s conftest.err
29250 } && test -s conftest.$ac_objext; then
29251 ac_header_compiler=yes
29252else
29253 $as_echo "$as_me: failed program was:" >&5
29254sed 's/^/| /' conftest.$ac_ext >&5
29255
29256 ac_header_compiler=no
29257fi
29258
29259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29260{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29261$as_echo "$ac_header_compiler" >&6; }
29262
29263# Is the header present?
29264{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29265$as_echo_n "checking $ac_header presence... " >&6; }
29266cat >conftest.$ac_ext <<_ACEOF
29267/* confdefs.h. */
29268_ACEOF
29269cat confdefs.h >>conftest.$ac_ext
29270cat >>conftest.$ac_ext <<_ACEOF
29271/* end confdefs.h. */
29272#include <$ac_header>
29273_ACEOF
29274if { (ac_try="$ac_cpp conftest.$ac_ext"
29275case "(($ac_try" in
29276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29277 *) ac_try_echo=$ac_try;;
29278esac
29279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29280$as_echo "$ac_try_echo") >&5
29281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29282 ac_status=$?
29283 grep -v '^ *+' conftest.er1 >conftest.err
29284 rm -f conftest.er1
29285 cat conftest.err >&5
29286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287 (exit $ac_status); } >/dev/null && {
29288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29289 test ! -s conftest.err
29290 }; then
29291 ac_header_preproc=yes
29292else
29293 $as_echo "$as_me: failed program was:" >&5
29294sed 's/^/| /' conftest.$ac_ext >&5
29295
29296 ac_header_preproc=no
29297fi
29298
29299rm -f conftest.err conftest.$ac_ext
29300{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29301$as_echo "$ac_header_preproc" >&6; }
29302
29303# So? What about this header?
29304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29305 yes:no: )
29306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29307$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29309$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29310 ac_header_preproc=yes
29311 ;;
29312 no:yes:* )
29313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29314$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29316$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29318$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29320$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29322$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29324$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29325 ( cat <<\_ASBOX
29326## ----------------------------------------- ##
29327## Report this to http://www.imagemagick.org ##
29328## ----------------------------------------- ##
29329_ASBOX
29330 ) | sed "s/^/$as_me: WARNING: /" >&2
29331 ;;
29332esac
29333{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29334$as_echo_n "checking for $ac_header... " >&6; }
29335if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29336 $as_echo_n "(cached) " >&6
29337else
29338 eval "$as_ac_Header=\$ac_header_preproc"
29339fi
29340ac_res=`eval 'as_val=${'$as_ac_Header'}
29341 $as_echo "$as_val"'`
29342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29343$as_echo "$ac_res" >&6; }
29344
29345fi
29346as_val=`eval 'as_val=${'$as_ac_Header'}
29347 $as_echo "$as_val"'`
29348 if test "x$as_val" = x""yes; then
29349 cat >>confdefs.h <<_ACEOF
29350#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29351_ACEOF
29352
29353fi
29354
29355done
29356
29357
29358for ac_func in getpagesize
29359do
29360as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29361{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29362$as_echo_n "checking for $ac_func... " >&6; }
29363if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29364 $as_echo_n "(cached) " >&6
29365else
29366 cat >conftest.$ac_ext <<_ACEOF
29367/* confdefs.h. */
29368_ACEOF
29369cat confdefs.h >>conftest.$ac_ext
29370cat >>conftest.$ac_ext <<_ACEOF
29371/* end confdefs.h. */
29372/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29374#define $ac_func innocuous_$ac_func
29375
29376/* System header to define __stub macros and hopefully few prototypes,
29377 which can conflict with char $ac_func (); below.
29378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29379 <limits.h> exists even on freestanding compilers. */
29380
29381#ifdef __STDC__
29382# include <limits.h>
29383#else
29384# include <assert.h>
29385#endif
29386
29387#undef $ac_func
29388
29389/* Override any GCC internal prototype to avoid an error.
29390 Use char because int might match the return type of a GCC
29391 builtin and then its argument prototype would still apply. */
29392#ifdef __cplusplus
29393extern "C"
29394#endif
29395char $ac_func ();
29396/* The GNU C library defines this for functions which it implements
29397 to always fail with ENOSYS. Some functions are actually named
29398 something starting with __ and the normal name is an alias. */
29399#if defined __stub_$ac_func || defined __stub___$ac_func
29400choke me
29401#endif
29402
29403int
29404main ()
29405{
29406return $ac_func ();
29407 ;
29408 return 0;
29409}
29410_ACEOF
29411rm -f conftest.$ac_objext conftest$ac_exeext
29412if { (ac_try="$ac_link"
29413case "(($ac_try" in
29414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29415 *) ac_try_echo=$ac_try;;
29416esac
29417eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29418$as_echo "$ac_try_echo") >&5
29419 (eval "$ac_link") 2>conftest.er1
29420 ac_status=$?
29421 grep -v '^ *+' conftest.er1 >conftest.err
29422 rm -f conftest.er1
29423 cat conftest.err >&5
29424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); } && {
29426 test -z "$ac_c_werror_flag" ||
29427 test ! -s conftest.err
29428 } && test -s conftest$ac_exeext && {
29429 test "$cross_compiling" = yes ||
29430 $as_test_x conftest$ac_exeext
29431 }; then
29432 eval "$as_ac_var=yes"
29433else
29434 $as_echo "$as_me: failed program was:" >&5
29435sed 's/^/| /' conftest.$ac_ext >&5
29436
29437 eval "$as_ac_var=no"
29438fi
29439
29440rm -rf conftest.dSYM
29441rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29442 conftest$ac_exeext conftest.$ac_ext
29443fi
29444ac_res=`eval 'as_val=${'$as_ac_var'}
29445 $as_echo "$as_val"'`
29446 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29447$as_echo "$ac_res" >&6; }
29448as_val=`eval 'as_val=${'$as_ac_var'}
29449 $as_echo "$as_val"'`
29450 if test "x$as_val" = x""yes; then
29451 cat >>confdefs.h <<_ACEOF
29452#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29453_ACEOF
29454
29455fi
29456done
29457
29458{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
29459$as_echo_n "checking for working mmap... " >&6; }
29460if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
29461 $as_echo_n "(cached) " >&6
29462else
29463 if test "$cross_compiling" = yes; then
29464 ac_cv_func_mmap_fixed_mapped=no
29465else
29466 cat >conftest.$ac_ext <<_ACEOF
29467/* confdefs.h. */
29468_ACEOF
29469cat confdefs.h >>conftest.$ac_ext
29470cat >>conftest.$ac_ext <<_ACEOF
29471/* end confdefs.h. */
29472$ac_includes_default
29473/* malloc might have been renamed as rpl_malloc. */
29474#undef malloc
29475
29476/* Thanks to Mike Haertel and Jim Avera for this test.
29477 Here is a matrix of mmap possibilities:
29478 mmap private not fixed
29479 mmap private fixed at somewhere currently unmapped
29480 mmap private fixed at somewhere already mapped
29481 mmap shared not fixed
29482 mmap shared fixed at somewhere currently unmapped
29483 mmap shared fixed at somewhere already mapped
29484 For private mappings, we should verify that changes cannot be read()
29485 back from the file, nor mmap's back from the file at a different
29486 address. (There have been systems where private was not correctly
29487 implemented like the infamous i386 svr4.0, and systems where the
29488 VM page cache was not coherent with the file system buffer cache
29489 like early versions of FreeBSD and possibly contemporary NetBSD.)
29490 For shared mappings, we should conversely verify that changes get
29491 propagated back to all the places they're supposed to be.
29492
29493 Grep wants private fixed already mapped.
29494 The main things grep needs to know about mmap are:
29495 * does it exist and is it safe to write into the mmap'd area
29496 * how to use it (BSD variants) */
29497
29498#include <fcntl.h>
29499#include <sys/mman.h>
29500
29501#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
29502char *malloc ();
29503#endif
29504
29505/* This mess was copied from the GNU getpagesize.h. */
29506#ifndef HAVE_GETPAGESIZE
29507/* Assume that all systems that can run configure have sys/param.h. */
29508# ifndef HAVE_SYS_PARAM_H
29509# define HAVE_SYS_PARAM_H 1
29510# endif
29511
29512# ifdef _SC_PAGESIZE
29513# define getpagesize() sysconf(_SC_PAGESIZE)
29514# else /* no _SC_PAGESIZE */
29515# ifdef HAVE_SYS_PARAM_H
29516# include <sys/param.h>
29517# ifdef EXEC_PAGESIZE
29518# define getpagesize() EXEC_PAGESIZE
29519# else /* no EXEC_PAGESIZE */
29520# ifdef NBPG
29521# define getpagesize() NBPG * CLSIZE
29522# ifndef CLSIZE
29523# define CLSIZE 1
29524# endif /* no CLSIZE */
29525# else /* no NBPG */
29526# ifdef NBPC
29527# define getpagesize() NBPC
29528# else /* no NBPC */
29529# ifdef PAGESIZE
29530# define getpagesize() PAGESIZE
29531# endif /* PAGESIZE */
29532# endif /* no NBPC */
29533# endif /* no NBPG */
29534# endif /* no EXEC_PAGESIZE */
29535# else /* no HAVE_SYS_PARAM_H */
29536# define getpagesize() 8192 /* punt totally */
29537# endif /* no HAVE_SYS_PARAM_H */
29538# endif /* no _SC_PAGESIZE */
29539
29540#endif /* no HAVE_GETPAGESIZE */
29541
29542int
29543main ()
29544{
29545 char *data, *data2, *data3;
29546 int i, pagesize;
29547 int fd;
29548
29549 pagesize = getpagesize ();
29550
29551 /* First, make a file with some known garbage in it. */
29552 data = (char *) malloc (pagesize);
29553 if (!data)
29554 return 1;
29555 for (i = 0; i < pagesize; ++i)
29556 *(data + i) = rand ();
29557 umask (0);
29558 fd = creat ("conftest.mmap", 0600);
29559 if (fd < 0)
29560 return 1;
29561 if (write (fd, data, pagesize) != pagesize)
29562 return 1;
29563 close (fd);
29564
29565 /* Next, try to mmap the file at a fixed address which already has
29566 something else allocated at it. If we can, also make sure that
29567 we see the same garbage. */
29568 fd = open ("conftest.mmap", O_RDWR);
29569 if (fd < 0)
29570 return 1;
29571 data2 = (char *) malloc (2 * pagesize);
29572 if (!data2)
29573 return 1;
29574 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
29575 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29576 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29577 return 1;
29578 for (i = 0; i < pagesize; ++i)
29579 if (*(data + i) != *(data2 + i))
29580 return 1;
29581
29582 /* Finally, make sure that changes to the mapped area do not
29583 percolate back to the file as seen by read(). (This is a bug on
29584 some variants of i386 svr4.0.) */
29585 for (i = 0; i < pagesize; ++i)
29586 *(data2 + i) = *(data2 + i) + 1;
29587 data3 = (char *) malloc (pagesize);
29588 if (!data3)
29589 return 1;
29590 if (read (fd, data3, pagesize) != pagesize)
29591 return 1;
29592 for (i = 0; i < pagesize; ++i)
29593 if (*(data + i) != *(data3 + i))
29594 return 1;
29595 close (fd);
29596 return 0;
29597}
29598_ACEOF
29599rm -f conftest$ac_exeext
29600if { (ac_try="$ac_link"
29601case "(($ac_try" in
29602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29603 *) ac_try_echo=$ac_try;;
29604esac
29605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29606$as_echo "$ac_try_echo") >&5
29607 (eval "$ac_link") 2>&5
29608 ac_status=$?
29609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29611 { (case "(($ac_try" in
29612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29613 *) ac_try_echo=$ac_try;;
29614esac
29615eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29616$as_echo "$ac_try_echo") >&5
29617 (eval "$ac_try") 2>&5
29618 ac_status=$?
29619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29620 (exit $ac_status); }; }; then
29621 ac_cv_func_mmap_fixed_mapped=yes
29622else
29623 $as_echo "$as_me: program exited with status $ac_status" >&5
29624$as_echo "$as_me: failed program was:" >&5
29625sed 's/^/| /' conftest.$ac_ext >&5
29626
29627( exit $ac_status )
29628ac_cv_func_mmap_fixed_mapped=no
29629fi
29630rm -rf conftest.dSYM
29631rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29632fi
29633
29634
29635fi
29636{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29637$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
29638if test $ac_cv_func_mmap_fixed_mapped = yes; then
29639
29640cat >>confdefs.h <<\_ACEOF
29641#define HAVE_MMAP 1
29642_ACEOF
29643
29644fi
29645rm -f conftest.mmap
29646
29647
29648for ac_header in vfork.h
29649do
29650as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29651if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29652 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29653$as_echo_n "checking for $ac_header... " >&6; }
29654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29655 $as_echo_n "(cached) " >&6
29656fi
29657ac_res=`eval 'as_val=${'$as_ac_Header'}
29658 $as_echo "$as_val"'`
29659 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29660$as_echo "$ac_res" >&6; }
29661else
29662 # Is the header compilable?
29663{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29664$as_echo_n "checking $ac_header usability... " >&6; }
29665cat >conftest.$ac_ext <<_ACEOF
29666/* confdefs.h. */
29667_ACEOF
29668cat confdefs.h >>conftest.$ac_ext
29669cat >>conftest.$ac_ext <<_ACEOF
29670/* end confdefs.h. */
29671$ac_includes_default
29672#include <$ac_header>
29673_ACEOF
29674rm -f conftest.$ac_objext
29675if { (ac_try="$ac_compile"
29676case "(($ac_try" in
29677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29678 *) ac_try_echo=$ac_try;;
29679esac
29680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29681$as_echo "$ac_try_echo") >&5
29682 (eval "$ac_compile") 2>conftest.er1
29683 ac_status=$?
29684 grep -v '^ *+' conftest.er1 >conftest.err
29685 rm -f conftest.er1
29686 cat conftest.err >&5
29687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29688 (exit $ac_status); } && {
29689 test -z "$ac_c_werror_flag" ||
29690 test ! -s conftest.err
29691 } && test -s conftest.$ac_objext; then
29692 ac_header_compiler=yes
29693else
29694 $as_echo "$as_me: failed program was:" >&5
29695sed 's/^/| /' conftest.$ac_ext >&5
29696
29697 ac_header_compiler=no
29698fi
29699
29700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29701{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29702$as_echo "$ac_header_compiler" >&6; }
29703
29704# Is the header present?
29705{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29706$as_echo_n "checking $ac_header presence... " >&6; }
29707cat >conftest.$ac_ext <<_ACEOF
29708/* confdefs.h. */
29709_ACEOF
29710cat confdefs.h >>conftest.$ac_ext
29711cat >>conftest.$ac_ext <<_ACEOF
29712/* end confdefs.h. */
29713#include <$ac_header>
29714_ACEOF
29715if { (ac_try="$ac_cpp conftest.$ac_ext"
29716case "(($ac_try" in
29717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29718 *) ac_try_echo=$ac_try;;
29719esac
29720eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29721$as_echo "$ac_try_echo") >&5
29722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29723 ac_status=$?
29724 grep -v '^ *+' conftest.er1 >conftest.err
29725 rm -f conftest.er1
29726 cat conftest.err >&5
29727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29728 (exit $ac_status); } >/dev/null && {
29729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29730 test ! -s conftest.err
29731 }; then
29732 ac_header_preproc=yes
29733else
29734 $as_echo "$as_me: failed program was:" >&5
29735sed 's/^/| /' conftest.$ac_ext >&5
29736
29737 ac_header_preproc=no
29738fi
29739
29740rm -f conftest.err conftest.$ac_ext
29741{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29742$as_echo "$ac_header_preproc" >&6; }
29743
29744# So? What about this header?
29745case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29746 yes:no: )
29747 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29748$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29750$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29751 ac_header_preproc=yes
29752 ;;
29753 no:yes:* )
29754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29755$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29757$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29759$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29761$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29762 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29763$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29764 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29765$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29766 ( cat <<\_ASBOX
29767## ----------------------------------------- ##
29768## Report this to http://www.imagemagick.org ##
29769## ----------------------------------------- ##
29770_ASBOX
29771 ) | sed "s/^/$as_me: WARNING: /" >&2
29772 ;;
29773esac
29774{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29775$as_echo_n "checking for $ac_header... " >&6; }
29776if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29777 $as_echo_n "(cached) " >&6
29778else
29779 eval "$as_ac_Header=\$ac_header_preproc"
29780fi
29781ac_res=`eval 'as_val=${'$as_ac_Header'}
29782 $as_echo "$as_val"'`
29783 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29784$as_echo "$ac_res" >&6; }
29785
29786fi
29787as_val=`eval 'as_val=${'$as_ac_Header'}
29788 $as_echo "$as_val"'`
29789 if test "x$as_val" = x""yes; then
29790 cat >>confdefs.h <<_ACEOF
29791#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29792_ACEOF
29793
29794fi
29795
29796done
29797
29798
29799
29800for ac_func in fork vfork
29801do
29802as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29803{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29804$as_echo_n "checking for $ac_func... " >&6; }
29805if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29806 $as_echo_n "(cached) " >&6
29807else
29808 cat >conftest.$ac_ext <<_ACEOF
29809/* confdefs.h. */
29810_ACEOF
29811cat confdefs.h >>conftest.$ac_ext
29812cat >>conftest.$ac_ext <<_ACEOF
29813/* end confdefs.h. */
29814/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29815 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29816#define $ac_func innocuous_$ac_func
29817
29818/* System header to define __stub macros and hopefully few prototypes,
29819 which can conflict with char $ac_func (); below.
29820 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29821 <limits.h> exists even on freestanding compilers. */
29822
29823#ifdef __STDC__
29824# include <limits.h>
29825#else
29826# include <assert.h>
29827#endif
29828
29829#undef $ac_func
29830
29831/* Override any GCC internal prototype to avoid an error.
29832 Use char because int might match the return type of a GCC
29833 builtin and then its argument prototype would still apply. */
29834#ifdef __cplusplus
29835extern "C"
29836#endif
29837char $ac_func ();
29838/* The GNU C library defines this for functions which it implements
29839 to always fail with ENOSYS. Some functions are actually named
29840 something starting with __ and the normal name is an alias. */
29841#if defined __stub_$ac_func || defined __stub___$ac_func
29842choke me
29843#endif
29844
29845int
29846main ()
29847{
29848return $ac_func ();
29849 ;
29850 return 0;
29851}
29852_ACEOF
29853rm -f conftest.$ac_objext conftest$ac_exeext
29854if { (ac_try="$ac_link"
29855case "(($ac_try" in
29856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29857 *) ac_try_echo=$ac_try;;
29858esac
29859eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29860$as_echo "$ac_try_echo") >&5
29861 (eval "$ac_link") 2>conftest.er1
29862 ac_status=$?
29863 grep -v '^ *+' conftest.er1 >conftest.err
29864 rm -f conftest.er1
29865 cat conftest.err >&5
29866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29867 (exit $ac_status); } && {
29868 test -z "$ac_c_werror_flag" ||
29869 test ! -s conftest.err
29870 } && test -s conftest$ac_exeext && {
29871 test "$cross_compiling" = yes ||
29872 $as_test_x conftest$ac_exeext
29873 }; then
29874 eval "$as_ac_var=yes"
29875else
29876 $as_echo "$as_me: failed program was:" >&5
29877sed 's/^/| /' conftest.$ac_ext >&5
29878
29879 eval "$as_ac_var=no"
29880fi
29881
29882rm -rf conftest.dSYM
29883rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29884 conftest$ac_exeext conftest.$ac_ext
29885fi
29886ac_res=`eval 'as_val=${'$as_ac_var'}
29887 $as_echo "$as_val"'`
29888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29889$as_echo "$ac_res" >&6; }
29890as_val=`eval 'as_val=${'$as_ac_var'}
29891 $as_echo "$as_val"'`
29892 if test "x$as_val" = x""yes; then
29893 cat >>confdefs.h <<_ACEOF
29894#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29895_ACEOF
29896
29897fi
29898done
29899
29900if test "x$ac_cv_func_fork" = xyes; then
29901 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
29902$as_echo_n "checking for working fork... " >&6; }
29903if test "${ac_cv_func_fork_works+set}" = set; then
29904 $as_echo_n "(cached) " >&6
29905else
29906 if test "$cross_compiling" = yes; then
29907 ac_cv_func_fork_works=cross
29908else
29909 cat >conftest.$ac_ext <<_ACEOF
29910/* confdefs.h. */
29911_ACEOF
29912cat confdefs.h >>conftest.$ac_ext
29913cat >>conftest.$ac_ext <<_ACEOF
29914/* end confdefs.h. */
29915$ac_includes_default
29916int
29917main ()
29918{
29919
29920 /* By Ruediger Kuhlmann. */
29921 return fork () < 0;
29922
29923 ;
29924 return 0;
29925}
29926_ACEOF
29927rm -f conftest$ac_exeext
29928if { (ac_try="$ac_link"
29929case "(($ac_try" in
29930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29931 *) ac_try_echo=$ac_try;;
29932esac
29933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29934$as_echo "$ac_try_echo") >&5
29935 (eval "$ac_link") 2>&5
29936 ac_status=$?
29937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29938 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29939 { (case "(($ac_try" in
29940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29941 *) ac_try_echo=$ac_try;;
29942esac
29943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29944$as_echo "$ac_try_echo") >&5
29945 (eval "$ac_try") 2>&5
29946 ac_status=$?
29947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29948 (exit $ac_status); }; }; then
29949 ac_cv_func_fork_works=yes
29950else
29951 $as_echo "$as_me: program exited with status $ac_status" >&5
29952$as_echo "$as_me: failed program was:" >&5
29953sed 's/^/| /' conftest.$ac_ext >&5
29954
29955( exit $ac_status )
29956ac_cv_func_fork_works=no
29957fi
29958rm -rf conftest.dSYM
29959rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29960fi
29961
29962
29963fi
29964{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
29965$as_echo "$ac_cv_func_fork_works" >&6; }
29966
29967else
29968 ac_cv_func_fork_works=$ac_cv_func_fork
29969fi
29970if test "x$ac_cv_func_fork_works" = xcross; then
29971 case $host in
29972 *-*-amigaos* | *-*-msdosdjgpp*)
29973 # Override, as these systems have only a dummy fork() stub
29974 ac_cv_func_fork_works=no
29975 ;;
29976 *)
29977 ac_cv_func_fork_works=yes
29978 ;;
29979 esac
29980 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
29981$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
29982fi
29983ac_cv_func_vfork_works=$ac_cv_func_vfork
29984if test "x$ac_cv_func_vfork" = xyes; then
29985 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
29986$as_echo_n "checking for working vfork... " >&6; }
29987if test "${ac_cv_func_vfork_works+set}" = set; then
29988 $as_echo_n "(cached) " >&6
29989else
29990 if test "$cross_compiling" = yes; then
29991 ac_cv_func_vfork_works=cross
29992else
29993 cat >conftest.$ac_ext <<_ACEOF
29994/* confdefs.h. */
29995_ACEOF
29996cat confdefs.h >>conftest.$ac_ext
29997cat >>conftest.$ac_ext <<_ACEOF
29998/* end confdefs.h. */
29999/* Thanks to Paul Eggert for this test. */
30000$ac_includes_default
30001#include <sys/wait.h>
30002#ifdef HAVE_VFORK_H
30003# include <vfork.h>
30004#endif
30005/* On some sparc systems, changes by the child to local and incoming
30006 argument registers are propagated back to the parent. The compiler
30007 is told about this with #include <vfork.h>, but some compilers
30008 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
30009 static variable whose address is put into a register that is
30010 clobbered by the vfork. */
30011static void
30012#ifdef __cplusplus
30013sparc_address_test (int arg)
30014# else
30015sparc_address_test (arg) int arg;
30016#endif
30017{
30018 static pid_t child;
30019 if (!child) {
30020 child = vfork ();
30021 if (child < 0) {
30022 perror ("vfork");
30023 _exit(2);
30024 }
30025 if (!child) {
30026 arg = getpid();
30027 write(-1, "", 0);
30028 _exit (arg);
30029 }
30030 }
30031}
30032
30033int
30034main ()
30035{
30036 pid_t parent = getpid ();
30037 pid_t child;
30038
30039 sparc_address_test (0);
30040
30041 child = vfork ();
30042
30043 if (child == 0) {
30044 /* Here is another test for sparc vfork register problems. This
30045 test uses lots of local variables, at least as many local
30046 variables as main has allocated so far including compiler
30047 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
30048 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
30049 reuse the register of parent for one of the local variables,
30050 since it will think that parent can't possibly be used any more
30051 in this routine. Assigning to the local variable will thus
30052 munge parent in the parent process. */
30053 pid_t
30054 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
30055 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
30056 /* Convince the compiler that p..p7 are live; otherwise, it might
30057 use the same hardware register for all 8 local variables. */
30058 if (p != p1 || p != p2 || p != p3 || p != p4
30059 || p != p5 || p != p6 || p != p7)
30060 _exit(1);
30061
30062 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
30063 from child file descriptors. If the child closes a descriptor
30064 before it execs or exits, this munges the parent's descriptor
30065 as well. Test for this by closing stdout in the child. */
30066 _exit(close(fileno(stdout)) != 0);
30067 } else {
30068 int status;
30069 struct stat st;
30070
30071 while (wait(&status) != child)
30072 ;
30073 return (
30074 /* Was there some problem with vforking? */
30075 child < 0
30076
30077 /* Did the child fail? (This shouldn't happen.) */
30078 || status
30079
30080 /* Did the vfork/compiler bug occur? */
30081 || parent != getpid()
30082
30083 /* Did the file descriptor bug occur? */
30084 || fstat(fileno(stdout), &st) != 0
30085 );
30086 }
30087}
30088_ACEOF
30089rm -f conftest$ac_exeext
30090if { (ac_try="$ac_link"
30091case "(($ac_try" in
30092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30093 *) ac_try_echo=$ac_try;;
30094esac
30095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30096$as_echo "$ac_try_echo") >&5
30097 (eval "$ac_link") 2>&5
30098 ac_status=$?
30099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30101 { (case "(($ac_try" in
30102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30103 *) ac_try_echo=$ac_try;;
30104esac
30105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30106$as_echo "$ac_try_echo") >&5
30107 (eval "$ac_try") 2>&5
30108 ac_status=$?
30109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110 (exit $ac_status); }; }; then
30111 ac_cv_func_vfork_works=yes
30112else
30113 $as_echo "$as_me: program exited with status $ac_status" >&5
30114$as_echo "$as_me: failed program was:" >&5
30115sed 's/^/| /' conftest.$ac_ext >&5
30116
30117( exit $ac_status )
30118ac_cv_func_vfork_works=no
30119fi
30120rm -rf conftest.dSYM
30121rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30122fi
30123
30124
30125fi
30126{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
30127$as_echo "$ac_cv_func_vfork_works" >&6; }
30128
30129fi;
30130if test "x$ac_cv_func_fork_works" = xcross; then
30131 ac_cv_func_vfork_works=$ac_cv_func_vfork
30132 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
30133$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
30134fi
30135
30136if test "x$ac_cv_func_vfork_works" = xyes; then
30137
30138cat >>confdefs.h <<\_ACEOF
30139#define HAVE_WORKING_VFORK 1
30140_ACEOF
30141
30142else
30143
30144cat >>confdefs.h <<\_ACEOF
30145#define vfork fork
30146_ACEOF
30147
30148fi
30149if test "x$ac_cv_func_fork_works" = xyes; then
30150
30151cat >>confdefs.h <<\_ACEOF
30152#define HAVE_WORKING_FORK 1
30153_ACEOF
30154
30155fi
30156
30157{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
30158$as_echo_n "checking for working memcmp... " >&6; }
30159if test "${ac_cv_func_memcmp_working+set}" = set; then
30160 $as_echo_n "(cached) " >&6
30161else
30162 if test "$cross_compiling" = yes; then
30163 ac_cv_func_memcmp_working=no
30164else
30165 cat >conftest.$ac_ext <<_ACEOF
30166/* confdefs.h. */
30167_ACEOF
30168cat confdefs.h >>conftest.$ac_ext
30169cat >>conftest.$ac_ext <<_ACEOF
30170/* end confdefs.h. */
30171$ac_includes_default
30172int
30173main ()
30174{
30175
30176 /* Some versions of memcmp are not 8-bit clean. */
30177 char c0 = '\100', c1 = '\200', c2 = '\201';
30178 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
30179 return 1;
30180
30181 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
30182 or more and with at least one buffer not starting on a 4-byte boundary.
30183 William Lewis provided this test program. */
30184 {
30185 char foo[21];
30186 char bar[21];
30187 int i;
30188 for (i = 0; i < 4; i++)
30189 {
30190 char *a = foo + i;
30191 char *b = bar + i;
30192 strcpy (a, "--------01111111");
30193 strcpy (b, "--------10000000");
30194 if (memcmp (a, b, 16) >= 0)
30195 return 1;
30196 }
30197 return 0;
30198 }
30199
30200 ;
30201 return 0;
30202}
30203_ACEOF
30204rm -f conftest$ac_exeext
30205if { (ac_try="$ac_link"
30206case "(($ac_try" in
30207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30208 *) ac_try_echo=$ac_try;;
30209esac
30210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30211$as_echo "$ac_try_echo") >&5
30212 (eval "$ac_link") 2>&5
30213 ac_status=$?
30214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30216 { (case "(($ac_try" in
30217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30218 *) ac_try_echo=$ac_try;;
30219esac
30220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30221$as_echo "$ac_try_echo") >&5
30222 (eval "$ac_try") 2>&5
30223 ac_status=$?
30224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); }; }; then
30226 ac_cv_func_memcmp_working=yes
30227else
30228 $as_echo "$as_me: program exited with status $ac_status" >&5
30229$as_echo "$as_me: failed program was:" >&5
30230sed 's/^/| /' conftest.$ac_ext >&5
30231
30232( exit $ac_status )
30233ac_cv_func_memcmp_working=no
30234fi
30235rm -rf conftest.dSYM
30236rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30237fi
30238
30239
30240fi
30241{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
30242$as_echo "$ac_cv_func_memcmp_working" >&6; }
30243test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
30244 *" memcmp.$ac_objext "* ) ;;
30245 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
30246 ;;
30247esac
30248
30249
30250
30251
30252for ac_header in sys/select.h sys/socket.h
30253do
30254as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30255if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30256 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30257$as_echo_n "checking for $ac_header... " >&6; }
30258if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30259 $as_echo_n "(cached) " >&6
30260fi
30261ac_res=`eval 'as_val=${'$as_ac_Header'}
30262 $as_echo "$as_val"'`
30263 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30264$as_echo "$ac_res" >&6; }
30265else
30266 # Is the header compilable?
30267{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30268$as_echo_n "checking $ac_header usability... " >&6; }
30269cat >conftest.$ac_ext <<_ACEOF
30270/* confdefs.h. */
30271_ACEOF
30272cat confdefs.h >>conftest.$ac_ext
30273cat >>conftest.$ac_ext <<_ACEOF
30274/* end confdefs.h. */
30275$ac_includes_default
30276#include <$ac_header>
30277_ACEOF
30278rm -f conftest.$ac_objext
30279if { (ac_try="$ac_compile"
30280case "(($ac_try" in
30281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30282 *) ac_try_echo=$ac_try;;
30283esac
30284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30285$as_echo "$ac_try_echo") >&5
30286 (eval "$ac_compile") 2>conftest.er1
30287 ac_status=$?
30288 grep -v '^ *+' conftest.er1 >conftest.err
30289 rm -f conftest.er1
30290 cat conftest.err >&5
30291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30292 (exit $ac_status); } && {
30293 test -z "$ac_c_werror_flag" ||
30294 test ! -s conftest.err
30295 } && test -s conftest.$ac_objext; then
30296 ac_header_compiler=yes
30297else
30298 $as_echo "$as_me: failed program was:" >&5
30299sed 's/^/| /' conftest.$ac_ext >&5
30300
30301 ac_header_compiler=no
30302fi
30303
30304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30305{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30306$as_echo "$ac_header_compiler" >&6; }
30307
30308# Is the header present?
30309{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30310$as_echo_n "checking $ac_header presence... " >&6; }
30311cat >conftest.$ac_ext <<_ACEOF
30312/* confdefs.h. */
30313_ACEOF
30314cat confdefs.h >>conftest.$ac_ext
30315cat >>conftest.$ac_ext <<_ACEOF
30316/* end confdefs.h. */
30317#include <$ac_header>
30318_ACEOF
30319if { (ac_try="$ac_cpp conftest.$ac_ext"
30320case "(($ac_try" in
30321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30322 *) ac_try_echo=$ac_try;;
30323esac
30324eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30325$as_echo "$ac_try_echo") >&5
30326 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30327 ac_status=$?
30328 grep -v '^ *+' conftest.er1 >conftest.err
30329 rm -f conftest.er1
30330 cat conftest.err >&5
30331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); } >/dev/null && {
30333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30334 test ! -s conftest.err
30335 }; then
30336 ac_header_preproc=yes
30337else
30338 $as_echo "$as_me: failed program was:" >&5
30339sed 's/^/| /' conftest.$ac_ext >&5
30340
30341 ac_header_preproc=no
30342fi
30343
30344rm -f conftest.err conftest.$ac_ext
30345{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30346$as_echo "$ac_header_preproc" >&6; }
30347
30348# So? What about this header?
30349case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30350 yes:no: )
30351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30352$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30353 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30354$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30355 ac_header_preproc=yes
30356 ;;
30357 no:yes:* )
30358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30359$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
30361$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
30362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30363$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
30365$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
30366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30367$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30368 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30369$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30370 ( cat <<\_ASBOX
30371## ----------------------------------------- ##
30372## Report this to http://www.imagemagick.org ##
30373## ----------------------------------------- ##
30374_ASBOX
30375 ) | sed "s/^/$as_me: WARNING: /" >&2
30376 ;;
30377esac
30378{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30379$as_echo_n "checking for $ac_header... " >&6; }
30380if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30381 $as_echo_n "(cached) " >&6
30382else
30383 eval "$as_ac_Header=\$ac_header_preproc"
30384fi
30385ac_res=`eval 'as_val=${'$as_ac_Header'}
30386 $as_echo "$as_val"'`
30387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30388$as_echo "$ac_res" >&6; }
30389
30390fi
30391as_val=`eval 'as_val=${'$as_ac_Header'}
30392 $as_echo "$as_val"'`
30393 if test "x$as_val" = x""yes; then
30394 cat >>confdefs.h <<_ACEOF
30395#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30396_ACEOF
30397
30398fi
30399
30400done
30401
30402{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
30403$as_echo_n "checking types of arguments for select... " >&6; }
30404if test "${ac_cv_func_select_args+set}" = set; then
30405 $as_echo_n "(cached) " >&6
30406else
30407 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
30408 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
30409 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
30410 cat >conftest.$ac_ext <<_ACEOF
30411/* confdefs.h. */
30412_ACEOF
30413cat confdefs.h >>conftest.$ac_ext
30414cat >>conftest.$ac_ext <<_ACEOF
30415/* end confdefs.h. */
30416$ac_includes_default
30417#ifdef HAVE_SYS_SELECT_H
30418# include <sys/select.h>
30419#endif
30420#ifdef HAVE_SYS_SOCKET_H
30421# include <sys/socket.h>
30422#endif
30423
30424int
30425main ()
30426{
30427extern int select ($ac_arg1,
30428 $ac_arg234, $ac_arg234, $ac_arg234,
30429 $ac_arg5);
30430 ;
30431 return 0;
30432}
30433_ACEOF
30434rm -f conftest.$ac_objext
30435if { (ac_try="$ac_compile"
30436case "(($ac_try" in
30437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30438 *) ac_try_echo=$ac_try;;
30439esac
30440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30441$as_echo "$ac_try_echo") >&5
30442 (eval "$ac_compile") 2>conftest.er1
30443 ac_status=$?
30444 grep -v '^ *+' conftest.er1 >conftest.err
30445 rm -f conftest.er1
30446 cat conftest.err >&5
30447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30448 (exit $ac_status); } && {
30449 test -z "$ac_c_werror_flag" ||
30450 test ! -s conftest.err
30451 } && test -s conftest.$ac_objext; then
30452 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
30453else
30454 $as_echo "$as_me: failed program was:" >&5
30455sed 's/^/| /' conftest.$ac_ext >&5
30456
30457
30458fi
30459
30460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30461 done
30462 done
30463done
30464# Provide a safe default value.
30465: ${ac_cv_func_select_args='int,int *,struct timeval *'}
30466
30467fi
30468{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
30469$as_echo "$ac_cv_func_select_args" >&6; }
30470ac_save_IFS=$IFS; IFS=','
30471set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
30472IFS=$ac_save_IFS
30473shift
30474
30475cat >>confdefs.h <<_ACEOF
30476#define SELECT_TYPE_ARG1 $1
30477_ACEOF
30478
30479
30480cat >>confdefs.h <<_ACEOF
30481#define SELECT_TYPE_ARG234 ($2)
30482_ACEOF
30483
30484
30485cat >>confdefs.h <<_ACEOF
30486#define SELECT_TYPE_ARG5 ($3)
30487_ACEOF
30488
30489rm -f conftest*
30490
30491if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
30492 $as_echo_n "(cached) " >&6
30493else
30494 ac_cv_func_setvbuf_reversed=no
30495fi
30496
30497
30498{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
30499$as_echo_n "checking return type of signal handlers... " >&6; }
30500if test "${ac_cv_type_signal+set}" = set; then
30501 $as_echo_n "(cached) " >&6
30502else
30503 cat >conftest.$ac_ext <<_ACEOF
30504/* confdefs.h. */
30505_ACEOF
30506cat confdefs.h >>conftest.$ac_ext
30507cat >>conftest.$ac_ext <<_ACEOF
30508/* end confdefs.h. */
30509#include <sys/types.h>
30510#include <signal.h>
30511
30512int
30513main ()
30514{
30515return *(signal (0, 0)) (0) == 1;
30516 ;
30517 return 0;
30518}
30519_ACEOF
30520rm -f conftest.$ac_objext
30521if { (ac_try="$ac_compile"
30522case "(($ac_try" in
30523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30524 *) ac_try_echo=$ac_try;;
30525esac
30526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30527$as_echo "$ac_try_echo") >&5
30528 (eval "$ac_compile") 2>conftest.er1
30529 ac_status=$?
30530 grep -v '^ *+' conftest.er1 >conftest.err
30531 rm -f conftest.er1
30532 cat conftest.err >&5
30533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30534 (exit $ac_status); } && {
30535 test -z "$ac_c_werror_flag" ||
30536 test ! -s conftest.err
30537 } && test -s conftest.$ac_objext; then
30538 ac_cv_type_signal=int
30539else
30540 $as_echo "$as_me: failed program was:" >&5
30541sed 's/^/| /' conftest.$ac_ext >&5
30542
30543 ac_cv_type_signal=void
30544fi
30545
30546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30547fi
30548{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
30549$as_echo "$ac_cv_type_signal" >&6; }
30550
30551cat >>confdefs.h <<_ACEOF
30552#define RETSIGTYPE $ac_cv_type_signal
30553_ACEOF
30554
30555
30556{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
30557$as_echo_n "checking for working strtod... " >&6; }
30558if test "${ac_cv_func_strtod+set}" = set; then
30559 $as_echo_n "(cached) " >&6
30560else
30561 if test "$cross_compiling" = yes; then
30562 ac_cv_func_strtod=no
30563else
30564 cat >conftest.$ac_ext <<_ACEOF
30565/* confdefs.h. */
30566_ACEOF
30567cat confdefs.h >>conftest.$ac_ext
30568cat >>conftest.$ac_ext <<_ACEOF
30569/* end confdefs.h. */
30570
30571$ac_includes_default
30572#ifndef strtod
30573double strtod ();
30574#endif
30575int
30576main()
30577{
30578 {
30579 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
30580 char *string = " +69";
30581 char *term;
30582 double value;
30583 value = strtod (string, &term);
30584 if (value != 69 || term != (string + 4))
30585 return 1;
30586 }
30587
30588 {
30589 /* Under Solaris 2.4, strtod returns the wrong value for the
30590 terminating character under some conditions. */
30591 char *string = "NaN";
30592 char *term;
30593 strtod (string, &term);
30594 if (term != string && *(term - 1) == 0)
30595 return 1;
30596 }
30597 return 0;
30598}
30599
30600_ACEOF
30601rm -f conftest$ac_exeext
30602if { (ac_try="$ac_link"
30603case "(($ac_try" in
30604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30605 *) ac_try_echo=$ac_try;;
30606esac
30607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30608$as_echo "$ac_try_echo") >&5
30609 (eval "$ac_link") 2>&5
30610 ac_status=$?
30611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30613 { (case "(($ac_try" in
30614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30615 *) ac_try_echo=$ac_try;;
30616esac
30617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30618$as_echo "$ac_try_echo") >&5
30619 (eval "$ac_try") 2>&5
30620 ac_status=$?
30621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30622 (exit $ac_status); }; }; then
30623 ac_cv_func_strtod=yes
30624else
30625 $as_echo "$as_me: program exited with status $ac_status" >&5
30626$as_echo "$as_me: failed program was:" >&5
30627sed 's/^/| /' conftest.$ac_ext >&5
30628
30629( exit $ac_status )
30630ac_cv_func_strtod=no
30631fi
30632rm -rf conftest.dSYM
30633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30634fi
30635
30636
30637fi
30638{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
30639$as_echo "$ac_cv_func_strtod" >&6; }
30640if test $ac_cv_func_strtod = no; then
30641 case " $LIBOBJS " in
30642 *" strtod.$ac_objext "* ) ;;
30643 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
30644 ;;
30645esac
30646
30647{ $as_echo "$as_me:$LINENO: checking for pow" >&5
30648$as_echo_n "checking for pow... " >&6; }
30649if test "${ac_cv_func_pow+set}" = set; then
30650 $as_echo_n "(cached) " >&6
30651else
30652 cat >conftest.$ac_ext <<_ACEOF
30653/* confdefs.h. */
30654_ACEOF
30655cat confdefs.h >>conftest.$ac_ext
30656cat >>conftest.$ac_ext <<_ACEOF
30657/* end confdefs.h. */
30658/* Define pow to an innocuous variant, in case <limits.h> declares pow.
30659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30660#define pow innocuous_pow
30661
30662/* System header to define __stub macros and hopefully few prototypes,
30663 which can conflict with char pow (); below.
30664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30665 <limits.h> exists even on freestanding compilers. */
30666
30667#ifdef __STDC__
30668# include <limits.h>
30669#else
30670# include <assert.h>
30671#endif
30672
30673#undef pow
30674
30675/* Override any GCC internal prototype to avoid an error.
30676 Use char because int might match the return type of a GCC
30677 builtin and then its argument prototype would still apply. */
30678#ifdef __cplusplus
30679extern "C"
30680#endif
30681char pow ();
30682/* The GNU C library defines this for functions which it implements
30683 to always fail with ENOSYS. Some functions are actually named
30684 something starting with __ and the normal name is an alias. */
30685#if defined __stub_pow || defined __stub___pow
30686choke me
30687#endif
30688
30689int
30690main ()
30691{
30692return pow ();
30693 ;
30694 return 0;
30695}
30696_ACEOF
30697rm -f conftest.$ac_objext conftest$ac_exeext
30698if { (ac_try="$ac_link"
30699case "(($ac_try" in
30700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30701 *) ac_try_echo=$ac_try;;
30702esac
30703eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30704$as_echo "$ac_try_echo") >&5
30705 (eval "$ac_link") 2>conftest.er1
30706 ac_status=$?
30707 grep -v '^ *+' conftest.er1 >conftest.err
30708 rm -f conftest.er1
30709 cat conftest.err >&5
30710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); } && {
30712 test -z "$ac_c_werror_flag" ||
30713 test ! -s conftest.err
30714 } && test -s conftest$ac_exeext && {
30715 test "$cross_compiling" = yes ||
30716 $as_test_x conftest$ac_exeext
30717 }; then
30718 ac_cv_func_pow=yes
30719else
30720 $as_echo "$as_me: failed program was:" >&5
30721sed 's/^/| /' conftest.$ac_ext >&5
30722
30723 ac_cv_func_pow=no
30724fi
30725
30726rm -rf conftest.dSYM
30727rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30728 conftest$ac_exeext conftest.$ac_ext
30729fi
30730{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
30731$as_echo "$ac_cv_func_pow" >&6; }
30732
30733if test $ac_cv_func_pow = no; then
30734 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
30735$as_echo_n "checking for pow in -lm... " >&6; }
30736if test "${ac_cv_lib_m_pow+set}" = set; then
30737 $as_echo_n "(cached) " >&6
30738else
30739 ac_check_lib_save_LIBS=$LIBS
30740LIBS="-lm $LIBS"
30741cat >conftest.$ac_ext <<_ACEOF
30742/* confdefs.h. */
30743_ACEOF
30744cat confdefs.h >>conftest.$ac_ext
30745cat >>conftest.$ac_ext <<_ACEOF
30746/* end confdefs.h. */
30747
30748/* Override any GCC internal prototype to avoid an error.
30749 Use char because int might match the return type of a GCC
30750 builtin and then its argument prototype would still apply. */
30751#ifdef __cplusplus
30752extern "C"
30753#endif
30754char pow ();
30755int
30756main ()
30757{
30758return pow ();
30759 ;
30760 return 0;
30761}
30762_ACEOF
30763rm -f conftest.$ac_objext conftest$ac_exeext
30764if { (ac_try="$ac_link"
30765case "(($ac_try" in
30766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30767 *) ac_try_echo=$ac_try;;
30768esac
30769eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30770$as_echo "$ac_try_echo") >&5
30771 (eval "$ac_link") 2>conftest.er1
30772 ac_status=$?
30773 grep -v '^ *+' conftest.er1 >conftest.err
30774 rm -f conftest.er1
30775 cat conftest.err >&5
30776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777 (exit $ac_status); } && {
30778 test -z "$ac_c_werror_flag" ||
30779 test ! -s conftest.err
30780 } && test -s conftest$ac_exeext && {
30781 test "$cross_compiling" = yes ||
30782 $as_test_x conftest$ac_exeext
30783 }; then
30784 ac_cv_lib_m_pow=yes
30785else
30786 $as_echo "$as_me: failed program was:" >&5
30787sed 's/^/| /' conftest.$ac_ext >&5
30788
30789 ac_cv_lib_m_pow=no
30790fi
30791
30792rm -rf conftest.dSYM
30793rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30794 conftest$ac_exeext conftest.$ac_ext
30795LIBS=$ac_check_lib_save_LIBS
30796fi
30797{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
30798$as_echo "$ac_cv_lib_m_pow" >&6; }
30799if test "x$ac_cv_lib_m_pow" = x""yes; then
30800 POW_LIB=-lm
30801else
30802 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
30803$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
30804fi
30805
30806fi
30807
30808fi
30809
30810
30811for ac_func in vprintf
30812do
30813as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30814{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30815$as_echo_n "checking for $ac_func... " >&6; }
30816if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30817 $as_echo_n "(cached) " >&6
30818else
30819 cat >conftest.$ac_ext <<_ACEOF
30820/* confdefs.h. */
30821_ACEOF
30822cat confdefs.h >>conftest.$ac_ext
30823cat >>conftest.$ac_ext <<_ACEOF
30824/* end confdefs.h. */
30825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30827#define $ac_func innocuous_$ac_func
30828
30829/* System header to define __stub macros and hopefully few prototypes,
30830 which can conflict with char $ac_func (); below.
30831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30832 <limits.h> exists even on freestanding compilers. */
30833
30834#ifdef __STDC__
30835# include <limits.h>
30836#else
30837# include <assert.h>
30838#endif
30839
30840#undef $ac_func
30841
30842/* Override any GCC internal prototype to avoid an error.
30843 Use char because int might match the return type of a GCC
30844 builtin and then its argument prototype would still apply. */
30845#ifdef __cplusplus
30846extern "C"
30847#endif
30848char $ac_func ();
30849/* The GNU C library defines this for functions which it implements
30850 to always fail with ENOSYS. Some functions are actually named
30851 something starting with __ and the normal name is an alias. */
30852#if defined __stub_$ac_func || defined __stub___$ac_func
30853choke me
30854#endif
30855
30856int
30857main ()
30858{
30859return $ac_func ();
30860 ;
30861 return 0;
30862}
30863_ACEOF
30864rm -f conftest.$ac_objext conftest$ac_exeext
30865if { (ac_try="$ac_link"
30866case "(($ac_try" in
30867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30868 *) ac_try_echo=$ac_try;;
30869esac
30870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30871$as_echo "$ac_try_echo") >&5
30872 (eval "$ac_link") 2>conftest.er1
30873 ac_status=$?
30874 grep -v '^ *+' conftest.er1 >conftest.err
30875 rm -f conftest.er1
30876 cat conftest.err >&5
30877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30878 (exit $ac_status); } && {
30879 test -z "$ac_c_werror_flag" ||
30880 test ! -s conftest.err
30881 } && test -s conftest$ac_exeext && {
30882 test "$cross_compiling" = yes ||
30883 $as_test_x conftest$ac_exeext
30884 }; then
30885 eval "$as_ac_var=yes"
30886else
30887 $as_echo "$as_me: failed program was:" >&5
30888sed 's/^/| /' conftest.$ac_ext >&5
30889
30890 eval "$as_ac_var=no"
30891fi
30892
30893rm -rf conftest.dSYM
30894rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30895 conftest$ac_exeext conftest.$ac_ext
30896fi
30897ac_res=`eval 'as_val=${'$as_ac_var'}
30898 $as_echo "$as_val"'`
30899 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30900$as_echo "$ac_res" >&6; }
30901as_val=`eval 'as_val=${'$as_ac_var'}
30902 $as_echo "$as_val"'`
30903 if test "x$as_val" = x""yes; then
30904 cat >>confdefs.h <<_ACEOF
30905#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30906_ACEOF
30907
30908{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
30909$as_echo_n "checking for _doprnt... " >&6; }
30910if test "${ac_cv_func__doprnt+set}" = set; then
30911 $as_echo_n "(cached) " >&6
30912else
30913 cat >conftest.$ac_ext <<_ACEOF
30914/* confdefs.h. */
30915_ACEOF
30916cat confdefs.h >>conftest.$ac_ext
30917cat >>conftest.$ac_ext <<_ACEOF
30918/* end confdefs.h. */
30919/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
30920 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30921#define _doprnt innocuous__doprnt
30922
30923/* System header to define __stub macros and hopefully few prototypes,
30924 which can conflict with char _doprnt (); below.
30925 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30926 <limits.h> exists even on freestanding compilers. */
30927
30928#ifdef __STDC__
30929# include <limits.h>
30930#else
30931# include <assert.h>
30932#endif
30933
30934#undef _doprnt
30935
30936/* Override any GCC internal prototype to avoid an error.
30937 Use char because int might match the return type of a GCC
30938 builtin and then its argument prototype would still apply. */
30939#ifdef __cplusplus
30940extern "C"
30941#endif
30942char _doprnt ();
30943/* The GNU C library defines this for functions which it implements
30944 to always fail with ENOSYS. Some functions are actually named
30945 something starting with __ and the normal name is an alias. */
30946#if defined __stub__doprnt || defined __stub____doprnt
30947choke me
30948#endif
30949
30950int
30951main ()
30952{
30953return _doprnt ();
30954 ;
30955 return 0;
30956}
30957_ACEOF
30958rm -f conftest.$ac_objext conftest$ac_exeext
30959if { (ac_try="$ac_link"
30960case "(($ac_try" in
30961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30962 *) ac_try_echo=$ac_try;;
30963esac
30964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30965$as_echo "$ac_try_echo") >&5
30966 (eval "$ac_link") 2>conftest.er1
30967 ac_status=$?
30968 grep -v '^ *+' conftest.er1 >conftest.err
30969 rm -f conftest.er1
30970 cat conftest.err >&5
30971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30972 (exit $ac_status); } && {
30973 test -z "$ac_c_werror_flag" ||
30974 test ! -s conftest.err
30975 } && test -s conftest$ac_exeext && {
30976 test "$cross_compiling" = yes ||
30977 $as_test_x conftest$ac_exeext
30978 }; then
30979 ac_cv_func__doprnt=yes
30980else
30981 $as_echo "$as_me: failed program was:" >&5
30982sed 's/^/| /' conftest.$ac_ext >&5
30983
30984 ac_cv_func__doprnt=no
30985fi
30986
30987rm -rf conftest.dSYM
30988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30989 conftest$ac_exeext conftest.$ac_ext
30990fi
30991{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
30992$as_echo "$ac_cv_func__doprnt" >&6; }
30993if test "x$ac_cv_func__doprnt" = x""yes; then
30994
30995cat >>confdefs.h <<\_ACEOF
30996#define HAVE_DOPRNT 1
30997_ACEOF
30998
30999fi
31000
31001fi
31002done
31003
31004
31005
31006
31007
31008
31009
31010
31011
31012
31013
31014
31015
31016
31017
31018
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
cristye43a45e2009-09-28 14:49:00 +000031081for 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 +000031082do
31083as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31084{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31085$as_echo_n "checking for $ac_func... " >&6; }
31086if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31087 $as_echo_n "(cached) " >&6
31088else
31089 cat >conftest.$ac_ext <<_ACEOF
31090/* confdefs.h. */
31091_ACEOF
31092cat confdefs.h >>conftest.$ac_ext
31093cat >>conftest.$ac_ext <<_ACEOF
31094/* end confdefs.h. */
31095/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31097#define $ac_func innocuous_$ac_func
31098
31099/* System header to define __stub macros and hopefully few prototypes,
31100 which can conflict with char $ac_func (); below.
31101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31102 <limits.h> exists even on freestanding compilers. */
31103
31104#ifdef __STDC__
31105# include <limits.h>
31106#else
31107# include <assert.h>
31108#endif
31109
31110#undef $ac_func
31111
31112/* Override any GCC internal prototype to avoid an error.
31113 Use char because int might match the return type of a GCC
31114 builtin and then its argument prototype would still apply. */
31115#ifdef __cplusplus
31116extern "C"
31117#endif
31118char $ac_func ();
31119/* The GNU C library defines this for functions which it implements
31120 to always fail with ENOSYS. Some functions are actually named
31121 something starting with __ and the normal name is an alias. */
31122#if defined __stub_$ac_func || defined __stub___$ac_func
31123choke me
31124#endif
31125
31126int
31127main ()
31128{
31129return $ac_func ();
31130 ;
31131 return 0;
31132}
31133_ACEOF
31134rm -f conftest.$ac_objext conftest$ac_exeext
31135if { (ac_try="$ac_link"
31136case "(($ac_try" in
31137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31138 *) ac_try_echo=$ac_try;;
31139esac
31140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31141$as_echo "$ac_try_echo") >&5
31142 (eval "$ac_link") 2>conftest.er1
31143 ac_status=$?
31144 grep -v '^ *+' conftest.er1 >conftest.err
31145 rm -f conftest.er1
31146 cat conftest.err >&5
31147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); } && {
31149 test -z "$ac_c_werror_flag" ||
31150 test ! -s conftest.err
31151 } && test -s conftest$ac_exeext && {
31152 test "$cross_compiling" = yes ||
31153 $as_test_x conftest$ac_exeext
31154 }; then
31155 eval "$as_ac_var=yes"
31156else
31157 $as_echo "$as_me: failed program was:" >&5
31158sed 's/^/| /' conftest.$ac_ext >&5
31159
31160 eval "$as_ac_var=no"
31161fi
31162
31163rm -rf conftest.dSYM
31164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31165 conftest$ac_exeext conftest.$ac_ext
31166fi
31167ac_res=`eval 'as_val=${'$as_ac_var'}
31168 $as_echo "$as_val"'`
31169 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31170$as_echo "$ac_res" >&6; }
31171as_val=`eval 'as_val=${'$as_ac_var'}
31172 $as_echo "$as_val"'`
31173 if test "x$as_val" = x""yes; then
31174 cat >>confdefs.h <<_ACEOF
31175#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31176_ACEOF
31177
31178fi
31179done
31180
31181
cristye43a45e2009-09-28 14:49:00 +000031182#
31183# Check for clock_gettime().
31184#
31185{ $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
31186$as_echo_n "checking for library containing clock_gettime... " >&6; }
31187if test "${ac_cv_search_clock_gettime+set}" = set; then
31188 $as_echo_n "(cached) " >&6
31189else
31190 ac_func_search_save_LIBS=$LIBS
31191cat >conftest.$ac_ext <<_ACEOF
31192/* confdefs.h. */
31193_ACEOF
31194cat confdefs.h >>conftest.$ac_ext
31195cat >>conftest.$ac_ext <<_ACEOF
31196/* end confdefs.h. */
31197
31198/* Override any GCC internal prototype to avoid an error.
31199 Use char because int might match the return type of a GCC
31200 builtin and then its argument prototype would still apply. */
31201#ifdef __cplusplus
31202extern "C"
31203#endif
31204char clock_gettime ();
31205int
31206main ()
31207{
31208return clock_gettime ();
31209 ;
31210 return 0;
31211}
31212_ACEOF
31213for ac_lib in '' rt; do
31214 if test -z "$ac_lib"; then
31215 ac_res="none required"
31216 else
31217 ac_res=-l$ac_lib
31218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
31219 fi
31220 rm -f conftest.$ac_objext conftest$ac_exeext
31221if { (ac_try="$ac_link"
31222case "(($ac_try" in
31223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31224 *) ac_try_echo=$ac_try;;
31225esac
31226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31227$as_echo "$ac_try_echo") >&5
31228 (eval "$ac_link") 2>conftest.er1
31229 ac_status=$?
31230 grep -v '^ *+' conftest.er1 >conftest.err
31231 rm -f conftest.er1
31232 cat conftest.err >&5
31233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31234 (exit $ac_status); } && {
31235 test -z "$ac_c_werror_flag" ||
31236 test ! -s conftest.err
31237 } && test -s conftest$ac_exeext && {
31238 test "$cross_compiling" = yes ||
31239 $as_test_x conftest$ac_exeext
31240 }; then
31241 ac_cv_search_clock_gettime=$ac_res
31242else
31243 $as_echo "$as_me: failed program was:" >&5
31244sed 's/^/| /' conftest.$ac_ext >&5
31245
31246
31247fi
31248
31249rm -rf conftest.dSYM
31250rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31251 conftest$ac_exeext
31252 if test "${ac_cv_search_clock_gettime+set}" = set; then
31253 break
31254fi
31255done
31256if test "${ac_cv_search_clock_gettime+set}" = set; then
31257 :
31258else
31259 ac_cv_search_clock_gettime=no
31260fi
31261rm conftest.$ac_ext
31262LIBS=$ac_func_search_save_LIBS
31263fi
31264{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
31265$as_echo "$ac_cv_search_clock_gettime" >&6; }
31266ac_res=$ac_cv_search_clock_gettime
31267if test "$ac_res" != no; then
31268 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
31269
31270
31271cat >>confdefs.h <<\_ACEOF
31272#define HAVE_CLOCK_GETTIME 1
31273_ACEOF
31274
cristyc1c61662009-09-30 14:04:37 +000031275 { $as_echo "$as_me:$LINENO: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000031276$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristyc1c61662009-09-30 14:04:37 +000031277 cat >conftest.$ac_ext <<_ACEOF
cristye43a45e2009-09-28 14:49:00 +000031278/* confdefs.h. */
31279_ACEOF
31280cat confdefs.h >>conftest.$ac_ext
31281cat >>conftest.$ac_ext <<_ACEOF
31282/* end confdefs.h. */
31283#include <time.h>
31284int
31285main ()
31286{
31287clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000031288 ;
31289 return 0;
31290}
31291_ACEOF
31292rm -f conftest.$ac_objext
31293if { (ac_try="$ac_compile"
31294case "(($ac_try" in
31295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31296 *) ac_try_echo=$ac_try;;
31297esac
31298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31299$as_echo "$ac_try_echo") >&5
31300 (eval "$ac_compile") 2>conftest.er1
31301 ac_status=$?
31302 grep -v '^ *+' conftest.er1 >conftest.err
31303 rm -f conftest.er1
31304 cat conftest.err >&5
31305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31306 (exit $ac_status); } && {
31307 test -z "$ac_c_werror_flag" ||
31308 test ! -s conftest.err
31309 } && test -s conftest.$ac_objext; then
31310
31311 { $as_echo "$as_me:$LINENO: result: yes" >&5
31312$as_echo "yes" >&6; }
31313
31314cat >>confdefs.h <<\_ACEOF
31315#define HAVE_CLOCK_REALTIME 1
31316_ACEOF
31317
31318
31319else
31320 $as_echo "$as_me: failed program was:" >&5
31321sed 's/^/| /' conftest.$ac_ext >&5
31322
31323 { $as_echo "$as_me:$LINENO: result: no" >&5
31324$as_echo "no" >&6; }
31325
31326fi
31327
31328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31329
31330else
31331
31332
31333
31334for ac_func in gettimeofday ftime
31335do
31336as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31337{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31338$as_echo_n "checking for $ac_func... " >&6; }
31339if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31340 $as_echo_n "(cached) " >&6
31341else
31342 cat >conftest.$ac_ext <<_ACEOF
31343/* confdefs.h. */
31344_ACEOF
31345cat confdefs.h >>conftest.$ac_ext
31346cat >>conftest.$ac_ext <<_ACEOF
31347/* end confdefs.h. */
31348/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
31350#define $ac_func innocuous_$ac_func
31351
31352/* System header to define __stub macros and hopefully few prototypes,
31353 which can conflict with char $ac_func (); below.
31354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31355 <limits.h> exists even on freestanding compilers. */
31356
31357#ifdef __STDC__
31358# include <limits.h>
31359#else
31360# include <assert.h>
31361#endif
31362
31363#undef $ac_func
31364
31365/* Override any GCC internal prototype to avoid an error.
31366 Use char because int might match the return type of a GCC
31367 builtin and then its argument prototype would still apply. */
31368#ifdef __cplusplus
31369extern "C"
31370#endif
31371char $ac_func ();
31372/* The GNU C library defines this for functions which it implements
31373 to always fail with ENOSYS. Some functions are actually named
31374 something starting with __ and the normal name is an alias. */
31375#if defined __stub_$ac_func || defined __stub___$ac_func
31376choke me
31377#endif
31378
31379int
31380main ()
31381{
31382return $ac_func ();
31383 ;
31384 return 0;
31385}
31386_ACEOF
31387rm -f conftest.$ac_objext conftest$ac_exeext
31388if { (ac_try="$ac_link"
31389case "(($ac_try" in
31390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31391 *) ac_try_echo=$ac_try;;
31392esac
31393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31394$as_echo "$ac_try_echo") >&5
31395 (eval "$ac_link") 2>conftest.er1
31396 ac_status=$?
31397 grep -v '^ *+' conftest.er1 >conftest.err
31398 rm -f conftest.er1
31399 cat conftest.err >&5
31400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31401 (exit $ac_status); } && {
31402 test -z "$ac_c_werror_flag" ||
31403 test ! -s conftest.err
31404 } && test -s conftest$ac_exeext && {
31405 test "$cross_compiling" = yes ||
31406 $as_test_x conftest$ac_exeext
31407 }; then
31408 eval "$as_ac_var=yes"
31409else
31410 $as_echo "$as_me: failed program was:" >&5
31411sed 's/^/| /' conftest.$ac_ext >&5
31412
31413 eval "$as_ac_var=no"
31414fi
31415
31416rm -rf conftest.dSYM
31417rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31418 conftest$ac_exeext conftest.$ac_ext
31419fi
31420ac_res=`eval 'as_val=${'$as_ac_var'}
31421 $as_echo "$as_val"'`
31422 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31423$as_echo "$ac_res" >&6; }
31424as_val=`eval 'as_val=${'$as_ac_var'}
31425 $as_echo "$as_val"'`
31426 if test "x$as_val" = x""yes; then
31427 cat >>confdefs.h <<_ACEOF
31428#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31429_ACEOF
31430 break
31431fi
31432done
31433
31434
31435
31436fi
31437
31438
cristy3ed852e2009-09-05 21:47:34 +000031439########
31440#
31441# Check for function prototypes
31442#
31443########
31444
31445{ $as_echo "$as_me:$LINENO: checking whether pread is declared" >&5
31446$as_echo_n "checking whether pread is declared... " >&6; }
31447if test "${ac_cv_have_decl_pread+set}" = set; then
31448 $as_echo_n "(cached) " >&6
31449else
31450 cat >conftest.$ac_ext <<_ACEOF
31451/* confdefs.h. */
31452_ACEOF
31453cat confdefs.h >>conftest.$ac_ext
31454cat >>conftest.$ac_ext <<_ACEOF
31455/* end confdefs.h. */
31456
31457#include <unistd.h>
31458
31459int
31460main ()
31461{
31462#ifndef pread
31463 (void) pread;
31464#endif
31465
31466 ;
31467 return 0;
31468}
31469_ACEOF
31470rm -f conftest.$ac_objext
31471if { (ac_try="$ac_compile"
31472case "(($ac_try" in
31473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31474 *) ac_try_echo=$ac_try;;
31475esac
31476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31477$as_echo "$ac_try_echo") >&5
31478 (eval "$ac_compile") 2>conftest.er1
31479 ac_status=$?
31480 grep -v '^ *+' conftest.er1 >conftest.err
31481 rm -f conftest.er1
31482 cat conftest.err >&5
31483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31484 (exit $ac_status); } && {
31485 test -z "$ac_c_werror_flag" ||
31486 test ! -s conftest.err
31487 } && test -s conftest.$ac_objext; then
31488 ac_cv_have_decl_pread=yes
31489else
31490 $as_echo "$as_me: failed program was:" >&5
31491sed 's/^/| /' conftest.$ac_ext >&5
31492
31493 ac_cv_have_decl_pread=no
31494fi
31495
31496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31497fi
31498{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pread" >&5
31499$as_echo "$ac_cv_have_decl_pread" >&6; }
31500if test "x$ac_cv_have_decl_pread" = x""yes; then
31501
31502cat >>confdefs.h <<_ACEOF
31503#define HAVE_DECL_PREAD 1
31504_ACEOF
31505
31506
31507else
31508 cat >>confdefs.h <<_ACEOF
31509#define HAVE_DECL_PREAD 0
31510_ACEOF
31511
31512
31513fi
31514{ $as_echo "$as_me:$LINENO: checking whether pwrite is declared" >&5
31515$as_echo_n "checking whether pwrite is declared... " >&6; }
31516if test "${ac_cv_have_decl_pwrite+set}" = set; then
31517 $as_echo_n "(cached) " >&6
31518else
31519 cat >conftest.$ac_ext <<_ACEOF
31520/* confdefs.h. */
31521_ACEOF
31522cat confdefs.h >>conftest.$ac_ext
31523cat >>conftest.$ac_ext <<_ACEOF
31524/* end confdefs.h. */
31525
31526#include <unistd.h>
31527
31528int
31529main ()
31530{
31531#ifndef pwrite
31532 (void) pwrite;
31533#endif
31534
31535 ;
31536 return 0;
31537}
31538_ACEOF
31539rm -f conftest.$ac_objext
31540if { (ac_try="$ac_compile"
31541case "(($ac_try" in
31542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31543 *) ac_try_echo=$ac_try;;
31544esac
31545eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31546$as_echo "$ac_try_echo") >&5
31547 (eval "$ac_compile") 2>conftest.er1
31548 ac_status=$?
31549 grep -v '^ *+' conftest.er1 >conftest.err
31550 rm -f conftest.er1
31551 cat conftest.err >&5
31552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31553 (exit $ac_status); } && {
31554 test -z "$ac_c_werror_flag" ||
31555 test ! -s conftest.err
31556 } && test -s conftest.$ac_objext; then
31557 ac_cv_have_decl_pwrite=yes
31558else
31559 $as_echo "$as_me: failed program was:" >&5
31560sed 's/^/| /' conftest.$ac_ext >&5
31561
31562 ac_cv_have_decl_pwrite=no
31563fi
31564
31565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31566fi
31567{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwrite" >&5
31568$as_echo "$ac_cv_have_decl_pwrite" >&6; }
31569if test "x$ac_cv_have_decl_pwrite" = x""yes; then
31570
31571cat >>confdefs.h <<_ACEOF
31572#define HAVE_DECL_PWRITE 1
31573_ACEOF
31574
31575
31576else
31577 cat >>confdefs.h <<_ACEOF
31578#define HAVE_DECL_PWRITE 0
31579_ACEOF
31580
31581
31582fi
31583
31584
31585
31586{ $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
31587$as_echo_n "checking whether strlcpy is declared... " >&6; }
31588if test "${ac_cv_have_decl_strlcpy+set}" = set; then
31589 $as_echo_n "(cached) " >&6
31590else
31591 cat >conftest.$ac_ext <<_ACEOF
31592/* confdefs.h. */
31593_ACEOF
31594cat confdefs.h >>conftest.$ac_ext
31595cat >>conftest.$ac_ext <<_ACEOF
31596/* end confdefs.h. */
31597
31598#include <strings.h>
31599
31600int
31601main ()
31602{
31603#ifndef strlcpy
31604 (void) strlcpy;
31605#endif
31606
31607 ;
31608 return 0;
31609}
31610_ACEOF
31611rm -f conftest.$ac_objext
31612if { (ac_try="$ac_compile"
31613case "(($ac_try" in
31614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31615 *) ac_try_echo=$ac_try;;
31616esac
31617eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31618$as_echo "$ac_try_echo") >&5
31619 (eval "$ac_compile") 2>conftest.er1
31620 ac_status=$?
31621 grep -v '^ *+' conftest.er1 >conftest.err
31622 rm -f conftest.er1
31623 cat conftest.err >&5
31624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); } && {
31626 test -z "$ac_c_werror_flag" ||
31627 test ! -s conftest.err
31628 } && test -s conftest.$ac_objext; then
31629 ac_cv_have_decl_strlcpy=yes
31630else
31631 $as_echo "$as_me: failed program was:" >&5
31632sed 's/^/| /' conftest.$ac_ext >&5
31633
31634 ac_cv_have_decl_strlcpy=no
31635fi
31636
31637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31638fi
31639{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
31640$as_echo "$ac_cv_have_decl_strlcpy" >&6; }
31641if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
31642
31643cat >>confdefs.h <<_ACEOF
31644#define HAVE_DECL_STRLCPY 1
31645_ACEOF
31646
31647
31648else
31649 cat >>confdefs.h <<_ACEOF
31650#define HAVE_DECL_STRLCPY 0
31651_ACEOF
31652
31653
31654fi
31655
31656
31657
31658{ $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
31659$as_echo_n "checking whether vsnprintf is declared... " >&6; }
31660if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
31661 $as_echo_n "(cached) " >&6
31662else
31663 cat >conftest.$ac_ext <<_ACEOF
31664/* confdefs.h. */
31665_ACEOF
31666cat confdefs.h >>conftest.$ac_ext
31667cat >>conftest.$ac_ext <<_ACEOF
31668/* end confdefs.h. */
31669
31670#include <stdio.h>
31671#include <stdarg.h>
31672
31673int
31674main ()
31675{
31676#ifndef vsnprintf
31677 (void) vsnprintf;
31678#endif
31679
31680 ;
31681 return 0;
31682}
31683_ACEOF
31684rm -f conftest.$ac_objext
31685if { (ac_try="$ac_compile"
31686case "(($ac_try" in
31687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31688 *) ac_try_echo=$ac_try;;
31689esac
31690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31691$as_echo "$ac_try_echo") >&5
31692 (eval "$ac_compile") 2>conftest.er1
31693 ac_status=$?
31694 grep -v '^ *+' conftest.er1 >conftest.err
31695 rm -f conftest.er1
31696 cat conftest.err >&5
31697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31698 (exit $ac_status); } && {
31699 test -z "$ac_c_werror_flag" ||
31700 test ! -s conftest.err
31701 } && test -s conftest.$ac_objext; then
31702 ac_cv_have_decl_vsnprintf=yes
31703else
31704 $as_echo "$as_me: failed program was:" >&5
31705sed 's/^/| /' conftest.$ac_ext >&5
31706
31707 ac_cv_have_decl_vsnprintf=no
31708fi
31709
31710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31711fi
31712{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
31713$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
31714if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
31715
31716cat >>confdefs.h <<_ACEOF
31717#define HAVE_DECL_VSNPRINTF 1
31718_ACEOF
31719
31720
31721else
31722 cat >>confdefs.h <<_ACEOF
31723#define HAVE_DECL_VSNPRINTF 0
31724_ACEOF
31725
31726
31727fi
31728
31729
31730
31731########
31732#
31733# C++ Support Tests (For Magick++)
31734#
31735########
31736have_magick_plus_plus='no'
31737if test "$with_magick_plus_plus" = 'yes'; then
31738 OLIBS="$LIBS"
31739 LIBS=''
31740 ac_ext=cpp
31741ac_cpp='$CXXCPP $CPPFLAGS'
31742ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31743ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31744ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31745
31746
31747 # Full set of headers used...
31748 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
31749 # functional iomanip iosfwd iostream iterator list string strstream utility
31750 ac_ext=cpp
31751ac_cpp='$CXXCPP $CPPFLAGS'
31752ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31753ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31754ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31755
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
31761if test -z "$CXX"; then
31762 if test -n "$CCC"; then
31763 CXX=$CCC
31764 else
31765 if test -n "$ac_tool_prefix"; then
31766 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
31767 do
31768 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
31769set dummy $ac_tool_prefix$ac_prog; ac_word=$2
31770{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31771$as_echo_n "checking for $ac_word... " >&6; }
31772if test "${ac_cv_prog_CXX+set}" = set; then
31773 $as_echo_n "(cached) " >&6
31774else
31775 if test -n "$CXX"; then
31776 ac_cv_prog_CXX="$CXX" # Let the user override the test.
31777else
31778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31779for as_dir in $PATH
31780do
31781 IFS=$as_save_IFS
31782 test -z "$as_dir" && as_dir=.
31783 for ac_exec_ext in '' $ac_executable_extensions; do
31784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31785 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
31786 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31787 break 2
31788 fi
31789done
31790done
31791IFS=$as_save_IFS
31792
31793fi
31794fi
31795CXX=$ac_cv_prog_CXX
31796if test -n "$CXX"; then
31797 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
31798$as_echo "$CXX" >&6; }
31799else
31800 { $as_echo "$as_me:$LINENO: result: no" >&5
31801$as_echo "no" >&6; }
31802fi
31803
31804
31805 test -n "$CXX" && break
31806 done
31807fi
31808if test -z "$CXX"; then
31809 ac_ct_CXX=$CXX
31810 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
31811do
31812 # Extract the first word of "$ac_prog", so it can be a program name with args.
31813set dummy $ac_prog; ac_word=$2
31814{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31815$as_echo_n "checking for $ac_word... " >&6; }
31816if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
31817 $as_echo_n "(cached) " >&6
31818else
31819 if test -n "$ac_ct_CXX"; then
31820 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
31821else
31822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31823for as_dir in $PATH
31824do
31825 IFS=$as_save_IFS
31826 test -z "$as_dir" && as_dir=.
31827 for ac_exec_ext in '' $ac_executable_extensions; do
31828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31829 ac_cv_prog_ac_ct_CXX="$ac_prog"
31830 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31831 break 2
31832 fi
31833done
31834done
31835IFS=$as_save_IFS
31836
31837fi
31838fi
31839ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
31840if test -n "$ac_ct_CXX"; then
31841 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
31842$as_echo "$ac_ct_CXX" >&6; }
31843else
31844 { $as_echo "$as_me:$LINENO: result: no" >&5
31845$as_echo "no" >&6; }
31846fi
31847
31848
31849 test -n "$ac_ct_CXX" && break
31850done
31851
31852 if test "x$ac_ct_CXX" = x; then
31853 CXX="g++"
31854 else
31855 case $cross_compiling:$ac_tool_warned in
31856yes:)
31857{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
31858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31859ac_tool_warned=yes ;;
31860esac
31861 CXX=$ac_ct_CXX
31862 fi
31863fi
31864
31865 fi
31866fi
31867# Provide some information about the compiler.
31868$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
31869set X $ac_compile
31870ac_compiler=$2
31871{ (ac_try="$ac_compiler --version >&5"
31872case "(($ac_try" in
31873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31874 *) ac_try_echo=$ac_try;;
31875esac
31876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31877$as_echo "$ac_try_echo") >&5
31878 (eval "$ac_compiler --version >&5") 2>&5
31879 ac_status=$?
31880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31881 (exit $ac_status); }
31882{ (ac_try="$ac_compiler -v >&5"
31883case "(($ac_try" in
31884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31885 *) ac_try_echo=$ac_try;;
31886esac
31887eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31888$as_echo "$ac_try_echo") >&5
31889 (eval "$ac_compiler -v >&5") 2>&5
31890 ac_status=$?
31891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31892 (exit $ac_status); }
31893{ (ac_try="$ac_compiler -V >&5"
31894case "(($ac_try" in
31895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31896 *) ac_try_echo=$ac_try;;
31897esac
31898eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31899$as_echo "$ac_try_echo") >&5
31900 (eval "$ac_compiler -V >&5") 2>&5
31901 ac_status=$?
31902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31903 (exit $ac_status); }
31904
31905{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
31906$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
31907if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
31908 $as_echo_n "(cached) " >&6
31909else
31910 cat >conftest.$ac_ext <<_ACEOF
31911/* confdefs.h. */
31912_ACEOF
31913cat confdefs.h >>conftest.$ac_ext
31914cat >>conftest.$ac_ext <<_ACEOF
31915/* end confdefs.h. */
31916
31917int
31918main ()
31919{
31920#ifndef __GNUC__
31921 choke me
31922#endif
31923
31924 ;
31925 return 0;
31926}
31927_ACEOF
31928rm -f conftest.$ac_objext
31929if { (ac_try="$ac_compile"
31930case "(($ac_try" in
31931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31932 *) ac_try_echo=$ac_try;;
31933esac
31934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31935$as_echo "$ac_try_echo") >&5
31936 (eval "$ac_compile") 2>conftest.er1
31937 ac_status=$?
31938 grep -v '^ *+' conftest.er1 >conftest.err
31939 rm -f conftest.er1
31940 cat conftest.err >&5
31941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31942 (exit $ac_status); } && {
31943 test -z "$ac_cxx_werror_flag" ||
31944 test ! -s conftest.err
31945 } && test -s conftest.$ac_objext; then
31946 ac_compiler_gnu=yes
31947else
31948 $as_echo "$as_me: failed program was:" >&5
31949sed 's/^/| /' conftest.$ac_ext >&5
31950
31951 ac_compiler_gnu=no
31952fi
31953
31954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31955ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
31956
31957fi
31958{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
31959$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
31960if test $ac_compiler_gnu = yes; then
31961 GXX=yes
31962else
31963 GXX=
31964fi
31965ac_test_CXXFLAGS=${CXXFLAGS+set}
31966ac_save_CXXFLAGS=$CXXFLAGS
31967{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
31968$as_echo_n "checking whether $CXX accepts -g... " >&6; }
31969if test "${ac_cv_prog_cxx_g+set}" = set; then
31970 $as_echo_n "(cached) " >&6
31971else
31972 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
31973 ac_cxx_werror_flag=yes
31974 ac_cv_prog_cxx_g=no
31975 CXXFLAGS="-g"
31976 cat >conftest.$ac_ext <<_ACEOF
31977/* confdefs.h. */
31978_ACEOF
31979cat confdefs.h >>conftest.$ac_ext
31980cat >>conftest.$ac_ext <<_ACEOF
31981/* end confdefs.h. */
31982
31983int
31984main ()
31985{
31986
31987 ;
31988 return 0;
31989}
31990_ACEOF
31991rm -f conftest.$ac_objext
31992if { (ac_try="$ac_compile"
31993case "(($ac_try" in
31994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31995 *) ac_try_echo=$ac_try;;
31996esac
31997eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31998$as_echo "$ac_try_echo") >&5
31999 (eval "$ac_compile") 2>conftest.er1
32000 ac_status=$?
32001 grep -v '^ *+' conftest.er1 >conftest.err
32002 rm -f conftest.er1
32003 cat conftest.err >&5
32004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32005 (exit $ac_status); } && {
32006 test -z "$ac_cxx_werror_flag" ||
32007 test ! -s conftest.err
32008 } && test -s conftest.$ac_objext; then
32009 ac_cv_prog_cxx_g=yes
32010else
32011 $as_echo "$as_me: failed program was:" >&5
32012sed 's/^/| /' conftest.$ac_ext >&5
32013
32014 CXXFLAGS=""
32015 cat >conftest.$ac_ext <<_ACEOF
32016/* confdefs.h. */
32017_ACEOF
32018cat confdefs.h >>conftest.$ac_ext
32019cat >>conftest.$ac_ext <<_ACEOF
32020/* end confdefs.h. */
32021
32022int
32023main ()
32024{
32025
32026 ;
32027 return 0;
32028}
32029_ACEOF
32030rm -f conftest.$ac_objext
32031if { (ac_try="$ac_compile"
32032case "(($ac_try" in
32033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32034 *) ac_try_echo=$ac_try;;
32035esac
32036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32037$as_echo "$ac_try_echo") >&5
32038 (eval "$ac_compile") 2>conftest.er1
32039 ac_status=$?
32040 grep -v '^ *+' conftest.er1 >conftest.err
32041 rm -f conftest.er1
32042 cat conftest.err >&5
32043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32044 (exit $ac_status); } && {
32045 test -z "$ac_cxx_werror_flag" ||
32046 test ! -s conftest.err
32047 } && test -s conftest.$ac_objext; then
32048 :
32049else
32050 $as_echo "$as_me: failed program was:" >&5
32051sed 's/^/| /' conftest.$ac_ext >&5
32052
32053 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32054 CXXFLAGS="-g"
32055 cat >conftest.$ac_ext <<_ACEOF
32056/* confdefs.h. */
32057_ACEOF
32058cat confdefs.h >>conftest.$ac_ext
32059cat >>conftest.$ac_ext <<_ACEOF
32060/* end confdefs.h. */
32061
32062int
32063main ()
32064{
32065
32066 ;
32067 return 0;
32068}
32069_ACEOF
32070rm -f conftest.$ac_objext
32071if { (ac_try="$ac_compile"
32072case "(($ac_try" in
32073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32074 *) ac_try_echo=$ac_try;;
32075esac
32076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32077$as_echo "$ac_try_echo") >&5
32078 (eval "$ac_compile") 2>conftest.er1
32079 ac_status=$?
32080 grep -v '^ *+' conftest.er1 >conftest.err
32081 rm -f conftest.er1
32082 cat conftest.err >&5
32083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32084 (exit $ac_status); } && {
32085 test -z "$ac_cxx_werror_flag" ||
32086 test ! -s conftest.err
32087 } && test -s conftest.$ac_objext; then
32088 ac_cv_prog_cxx_g=yes
32089else
32090 $as_echo "$as_me: failed program was:" >&5
32091sed 's/^/| /' conftest.$ac_ext >&5
32092
32093
32094fi
32095
32096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32097fi
32098
32099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32100fi
32101
32102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32103 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
32104fi
32105{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
32106$as_echo "$ac_cv_prog_cxx_g" >&6; }
32107if test "$ac_test_CXXFLAGS" = set; then
32108 CXXFLAGS=$ac_save_CXXFLAGS
32109elif test $ac_cv_prog_cxx_g = yes; then
32110 if test "$GXX" = yes; then
32111 CXXFLAGS="-g -O2"
32112 else
32113 CXXFLAGS="-g"
32114 fi
32115else
32116 if test "$GXX" = yes; then
32117 CXXFLAGS="-O2"
32118 else
32119 CXXFLAGS=
32120 fi
32121fi
32122ac_ext=cpp
32123ac_cpp='$CXXCPP $CPPFLAGS'
32124ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32125ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32126ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32127
32128depcc="$CXX" am_compiler_list=
32129
32130{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
32131$as_echo_n "checking dependency style of $depcc... " >&6; }
32132if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
32133 $as_echo_n "(cached) " >&6
32134else
32135 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
32136 # We make a subdir and do the tests there. Otherwise we can end up
32137 # making bogus files that we don't know about and never remove. For
32138 # instance it was reported that on HP-UX the gcc test will end up
32139 # making a dummy file named `D' -- because `-MD' means `put the output
32140 # in D'.
32141 mkdir conftest.dir
32142 # Copy depcomp to subdir because otherwise we won't find it if we're
32143 # using a relative directory.
32144 cp "$am_depcomp" conftest.dir
32145 cd conftest.dir
32146 # We will build objects and dependencies in a subdirectory because
32147 # it helps to detect inapplicable dependency modes. For instance
32148 # both Tru64's cc and ICC support -MD to output dependencies as a
32149 # side effect of compilation, but ICC will put the dependencies in
32150 # the current directory while Tru64 will put them in the object
32151 # directory.
32152 mkdir sub
32153
32154 am_cv_CXX_dependencies_compiler_type=none
32155 if test "$am_compiler_list" = ""; then
32156 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
32157 fi
32158 am__universal=false
32159 case " $depcc " in #(
32160 *\ -arch\ *\ -arch\ *) am__universal=true ;;
32161 esac
32162
32163 for depmode in $am_compiler_list; do
32164 # Setup a source with many dependencies, because some compilers
32165 # like to wrap large dependency lists on column 80 (with \), and
32166 # we should not choose a depcomp mode which is confused by this.
32167 #
32168 # We need to recreate these files for each test, as the compiler may
32169 # overwrite some of them when testing with obscure command lines.
32170 # This happens at least with the AIX C compiler.
32171 : > sub/conftest.c
32172 for i in 1 2 3 4 5 6; do
32173 echo '#include "conftst'$i'.h"' >> sub/conftest.c
32174 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
32175 # Solaris 8's {/usr,}/bin/sh.
32176 touch sub/conftst$i.h
32177 done
32178 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
32179
32180 # We check with `-c' and `-o' for the sake of the "dashmstdout"
32181 # mode. It turns out that the SunPro C++ compiler does not properly
32182 # handle `-M -o', and we need to detect this. Also, some Intel
32183 # versions had trouble with output in subdirs
32184 am__obj=sub/conftest.${OBJEXT-o}
32185 am__minus_obj="-o $am__obj"
32186 case $depmode in
32187 gcc)
32188 # This depmode causes a compiler race in universal mode.
32189 test "$am__universal" = false || continue
32190 ;;
32191 nosideeffect)
32192 # after this tag, mechanisms are not by side-effect, so they'll
32193 # only be used when explicitly requested
32194 if test "x$enable_dependency_tracking" = xyes; then
32195 continue
32196 else
32197 break
32198 fi
32199 ;;
32200 msvisualcpp | msvcmsys)
32201 # This compiler won't grok `-c -o', but also, the minuso test has
32202 # not run yet. These depmodes are late enough in the game, and
32203 # so weak that their functioning should not be impacted.
32204 am__obj=conftest.${OBJEXT-o}
32205 am__minus_obj=
32206 ;;
32207 none) break ;;
32208 esac
32209 if depmode=$depmode \
32210 source=sub/conftest.c object=$am__obj \
32211 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
32212 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
32213 >/dev/null 2>conftest.err &&
32214 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
32215 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
32216 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
32217 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
32218 # icc doesn't choke on unknown options, it will just issue warnings
32219 # or remarks (even with -Werror). So we grep stderr for any message
32220 # that says an option was ignored or not supported.
32221 # When given -MP, icc 7.0 and 7.1 complain thusly:
32222 # icc: Command line warning: ignoring option '-M'; no argument required
32223 # The diagnosis changed in icc 8.0:
32224 # icc: Command line remark: option '-MP' not supported
32225 if (grep 'ignoring option' conftest.err ||
32226 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
32227 am_cv_CXX_dependencies_compiler_type=$depmode
32228 break
32229 fi
32230 fi
32231 done
32232
32233 cd ..
32234 rm -rf conftest.dir
32235else
32236 am_cv_CXX_dependencies_compiler_type=none
32237fi
32238
32239fi
32240{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
32241$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
32242CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
32243
32244 if
32245 test "x$enable_dependency_tracking" != xno \
32246 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
32247 am__fastdepCXX_TRUE=
32248 am__fastdepCXX_FALSE='#'
32249else
32250 am__fastdepCXX_TRUE='#'
32251 am__fastdepCXX_FALSE=
32252fi
32253
32254
32255 { $as_echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5
32256$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
32257if test "${ac_cv_cxx_have_bool+set}" = set; then
32258 $as_echo_n "(cached) " >&6
32259else
32260
32261 ac_ext=cpp
32262ac_cpp='$CXXCPP $CPPFLAGS'
32263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32266
32267 cat >conftest.$ac_ext <<_ACEOF
32268/* confdefs.h. */
32269_ACEOF
32270cat confdefs.h >>conftest.$ac_ext
32271cat >>conftest.$ac_ext <<_ACEOF
32272/* end confdefs.h. */
32273
32274int f(int x){return 1;}
32275int f(char x){return 1;}
32276int f(bool x){return 1;}
32277
32278int
32279main ()
32280{
32281bool b = true; return f(b);
32282 ;
32283 return 0;
32284}
32285_ACEOF
32286rm -f conftest.$ac_objext
32287if { (ac_try="$ac_compile"
32288case "(($ac_try" in
32289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32290 *) ac_try_echo=$ac_try;;
32291esac
32292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32293$as_echo "$ac_try_echo") >&5
32294 (eval "$ac_compile") 2>conftest.er1
32295 ac_status=$?
32296 grep -v '^ *+' conftest.er1 >conftest.err
32297 rm -f conftest.er1
32298 cat conftest.err >&5
32299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32300 (exit $ac_status); } && {
32301 test -z "$ac_cxx_werror_flag" ||
32302 test ! -s conftest.err
32303 } && test -s conftest.$ac_objext; then
32304 ac_cv_cxx_have_bool=yes
32305else
32306 $as_echo "$as_me: failed program was:" >&5
32307sed 's/^/| /' conftest.$ac_ext >&5
32308
32309 ac_cv_cxx_have_bool=no
32310fi
32311
32312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32313 ac_ext=cpp
32314ac_cpp='$CXXCPP $CPPFLAGS'
32315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32318
32319
32320fi
32321{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bool" >&5
32322$as_echo "$ac_cv_cxx_have_bool" >&6; }
32323if test "$ac_cv_cxx_have_bool" = yes; then
32324
32325cat >>confdefs.h <<\_ACEOF
32326#define HAVE_BOOL /**/
32327_ACEOF
32328
32329fi
32330
32331 { $as_echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
32332$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
32333if test "${ac_cv_cxx_have_namespaces+set}" = set; then
32334 $as_echo_n "(cached) " >&6
32335else
32336
32337 ac_ext=cpp
32338ac_cpp='$CXXCPP $CPPFLAGS'
32339ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32340ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32341ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32342
32343 cat >conftest.$ac_ext <<_ACEOF
32344/* confdefs.h. */
32345_ACEOF
32346cat confdefs.h >>conftest.$ac_ext
32347cat >>conftest.$ac_ext <<_ACEOF
32348/* end confdefs.h. */
32349namespace Outer { namespace Inner { int i = 0; }}
32350int
32351main ()
32352{
32353using namespace Outer::Inner; return i;
32354 ;
32355 return 0;
32356}
32357_ACEOF
32358rm -f conftest.$ac_objext
32359if { (ac_try="$ac_compile"
32360case "(($ac_try" in
32361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32362 *) ac_try_echo=$ac_try;;
32363esac
32364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32365$as_echo "$ac_try_echo") >&5
32366 (eval "$ac_compile") 2>conftest.er1
32367 ac_status=$?
32368 grep -v '^ *+' conftest.er1 >conftest.err
32369 rm -f conftest.er1
32370 cat conftest.err >&5
32371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32372 (exit $ac_status); } && {
32373 test -z "$ac_cxx_werror_flag" ||
32374 test ! -s conftest.err
32375 } && test -s conftest.$ac_objext; then
32376 ac_cv_cxx_have_namespaces=yes
32377else
32378 $as_echo "$as_me: failed program was:" >&5
32379sed 's/^/| /' conftest.$ac_ext >&5
32380
32381 ac_cv_cxx_have_namespaces=no
32382fi
32383
32384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32385 ac_ext=cpp
32386ac_cpp='$CXXCPP $CPPFLAGS'
32387ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32388ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32389ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32390
32391
32392fi
32393{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_namespaces" >&5
32394$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
32395if test "$ac_cv_cxx_have_namespaces" = yes; then
32396
32397cat >>confdefs.h <<\_ACEOF
32398#define HAVE_NAMESPACES /**/
32399_ACEOF
32400
32401fi
32402
32403 { $as_echo "$as_me:$LINENO: checking whether the compiler supports the std namespace" >&5
32404$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
32405if test "${ac_cv_cxx_have_std_namespace+set}" = set; then
32406 $as_echo_n "(cached) " >&6
32407else
32408
32409 ac_ext=cpp
32410ac_cpp='$CXXCPP $CPPFLAGS'
32411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32414
32415 cat >conftest.$ac_ext <<_ACEOF
32416/* confdefs.h. */
32417_ACEOF
32418cat confdefs.h >>conftest.$ac_ext
32419cat >>conftest.$ac_ext <<_ACEOF
32420/* end confdefs.h. */
32421#include <iostream>
32422 std::istream& is = std::cin;
32423
32424int
32425main ()
32426{
32427return 0;
32428 ;
32429 return 0;
32430}
32431_ACEOF
32432rm -f conftest.$ac_objext
32433if { (ac_try="$ac_compile"
32434case "(($ac_try" in
32435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32436 *) ac_try_echo=$ac_try;;
32437esac
32438eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32439$as_echo "$ac_try_echo") >&5
32440 (eval "$ac_compile") 2>conftest.er1
32441 ac_status=$?
32442 grep -v '^ *+' conftest.er1 >conftest.err
32443 rm -f conftest.er1
32444 cat conftest.err >&5
32445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446 (exit $ac_status); } && {
32447 test -z "$ac_cxx_werror_flag" ||
32448 test ! -s conftest.err
32449 } && test -s conftest.$ac_objext; then
32450 ac_cv_cxx_have_std_namespace=yes
32451else
32452 $as_echo "$as_me: failed program was:" >&5
32453sed 's/^/| /' conftest.$ac_ext >&5
32454
32455 ac_cv_cxx_have_std_namespace=no
32456fi
32457
32458rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32459 ac_ext=cpp
32460ac_cpp='$CXXCPP $CPPFLAGS'
32461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32464
32465
32466fi
32467{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_namespace" >&5
32468$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
32469if test "$ac_cv_cxx_have_std_namespace" = yes; then
32470
32471cat >>confdefs.h <<\_ACEOF
32472#define HAVE_STD_NAMESPACE /**/
32473_ACEOF
32474
32475fi
32476
32477 { $as_echo "$as_me:$LINENO: checking whether the compiler supports ISO C++ standard library" >&5
32478$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
32479if test "${ac_cv_cxx_have_std_libs+set}" = set; then
32480 $as_echo_n "(cached) " >&6
32481else
32482
32483
32484 ac_ext=cpp
32485ac_cpp='$CXXCPP $CPPFLAGS'
32486ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32487ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32488ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32489
32490 cat >conftest.$ac_ext <<_ACEOF
32491/* confdefs.h. */
32492_ACEOF
32493cat confdefs.h >>conftest.$ac_ext
32494cat >>conftest.$ac_ext <<_ACEOF
32495/* end confdefs.h. */
32496#include <iostream>
32497#include <map>
32498#include <iomanip>
32499#include <cmath>
32500#ifdef HAVE_NAMESPACES
32501using namespace std;
32502#endif
32503int
32504main ()
32505{
32506return 0;
32507 ;
32508 return 0;
32509}
32510_ACEOF
32511rm -f conftest.$ac_objext
32512if { (ac_try="$ac_compile"
32513case "(($ac_try" in
32514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32515 *) ac_try_echo=$ac_try;;
32516esac
32517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32518$as_echo "$ac_try_echo") >&5
32519 (eval "$ac_compile") 2>conftest.er1
32520 ac_status=$?
32521 grep -v '^ *+' conftest.er1 >conftest.err
32522 rm -f conftest.er1
32523 cat conftest.err >&5
32524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525 (exit $ac_status); } && {
32526 test -z "$ac_cxx_werror_flag" ||
32527 test ! -s conftest.err
32528 } && test -s conftest.$ac_objext; then
32529 ac_cv_cxx_have_std_libs=yes
32530else
32531 $as_echo "$as_me: failed program was:" >&5
32532sed 's/^/| /' conftest.$ac_ext >&5
32533
32534 ac_cv_cxx_have_std_libs=no
32535fi
32536
32537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32538 ac_ext=cpp
32539ac_cpp='$CXXCPP $CPPFLAGS'
32540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32543
32544
32545fi
32546{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_libs" >&5
32547$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
32548if test "$ac_cv_cxx_have_std_libs" = yes; then
32549
32550cat >>confdefs.h <<\_ACEOF
32551#define HAVE_STD_LIBS /**/
32552_ACEOF
32553
32554fi
32555
32556 { $as_echo "$as_me:$LINENO: checking whether the compiler implements L\"widestring\"" >&5
32557$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
32558if test "${ac_cv_cxx_have_lstring+set}" = set; then
32559 $as_echo_n "(cached) " >&6
32560else
32561
32562 ac_ext=cpp
32563ac_cpp='$CXXCPP $CPPFLAGS'
32564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32567
32568 cat >conftest.$ac_ext <<_ACEOF
32569/* confdefs.h. */
32570_ACEOF
32571cat confdefs.h >>conftest.$ac_ext
32572cat >>conftest.$ac_ext <<_ACEOF
32573/* end confdefs.h. */
32574const wchar_t* s=L"wide string";
32575_ACEOF
32576rm -f conftest.$ac_objext
32577if { (ac_try="$ac_compile"
32578case "(($ac_try" in
32579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32580 *) ac_try_echo=$ac_try;;
32581esac
32582eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32583$as_echo "$ac_try_echo") >&5
32584 (eval "$ac_compile") 2>conftest.er1
32585 ac_status=$?
32586 grep -v '^ *+' conftest.er1 >conftest.err
32587 rm -f conftest.er1
32588 cat conftest.err >&5
32589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32590 (exit $ac_status); } && {
32591 test -z "$ac_cxx_werror_flag" ||
32592 test ! -s conftest.err
32593 } && test -s conftest.$ac_objext; then
32594 ac_cv_cxx_have_lstring=yes
32595else
32596 $as_echo "$as_me: failed program was:" >&5
32597sed 's/^/| /' conftest.$ac_ext >&5
32598
32599 ac_cv_cxx_have_lstring=no
32600fi
32601
32602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32603 ac_ext=cpp
32604ac_cpp='$CXXCPP $CPPFLAGS'
32605ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32606ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32607ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32608
32609
32610fi
32611{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_lstring" >&5
32612$as_echo "$ac_cv_cxx_have_lstring" >&6; }
32613if test "$ac_cv_cxx_have_lstring" = yes; then
32614
32615cat >>confdefs.h <<\_ACEOF
32616#define HAVE_LSTRING /**/
32617_ACEOF
32618
32619fi
32620
32621
32622 OPENMP_CXXFLAGS=
32623 # Check whether --enable-openmp was given.
32624if test "${enable_openmp+set}" = set; then
32625 enableval=$enable_openmp;
32626fi
32627
32628 if test "$enable_openmp" != no; then
32629 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
32630$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
32631if test "${ac_cv_prog_cxx_openmp+set}" = set; then
32632 $as_echo_n "(cached) " >&6
32633else
32634 cat >conftest.$ac_ext <<_ACEOF
32635
32636#ifndef _OPENMP
32637 choke me
32638#endif
32639#include <omp.h>
32640int main () { return omp_get_num_threads (); }
32641
32642_ACEOF
32643rm -f conftest.$ac_objext conftest$ac_exeext
32644if { (ac_try="$ac_link"
32645case "(($ac_try" in
32646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32647 *) ac_try_echo=$ac_try;;
32648esac
32649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32650$as_echo "$ac_try_echo") >&5
32651 (eval "$ac_link") 2>conftest.er1
32652 ac_status=$?
32653 grep -v '^ *+' conftest.er1 >conftest.err
32654 rm -f conftest.er1
32655 cat conftest.err >&5
32656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657 (exit $ac_status); } && {
32658 test -z "$ac_cxx_werror_flag" ||
32659 test ! -s conftest.err
32660 } && test -s conftest$ac_exeext && {
32661 test "$cross_compiling" = yes ||
32662 $as_test_x conftest$ac_exeext
32663 }; then
32664 ac_cv_prog_cxx_openmp='none needed'
32665else
32666 $as_echo "$as_me: failed program was:" >&5
32667sed 's/^/| /' conftest.$ac_ext >&5
32668
32669 ac_cv_prog_cxx_openmp='unsupported'
32670 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
32671 ac_save_CXXFLAGS=$CXXFLAGS
32672 CXXFLAGS="$CXXFLAGS $ac_option"
32673 cat >conftest.$ac_ext <<_ACEOF
32674
32675#ifndef _OPENMP
32676 choke me
32677#endif
32678#include <omp.h>
32679int main () { return omp_get_num_threads (); }
32680
32681_ACEOF
32682rm -f conftest.$ac_objext conftest$ac_exeext
32683if { (ac_try="$ac_link"
32684case "(($ac_try" in
32685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32686 *) ac_try_echo=$ac_try;;
32687esac
32688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32689$as_echo "$ac_try_echo") >&5
32690 (eval "$ac_link") 2>conftest.er1
32691 ac_status=$?
32692 grep -v '^ *+' conftest.er1 >conftest.err
32693 rm -f conftest.er1
32694 cat conftest.err >&5
32695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32696 (exit $ac_status); } && {
32697 test -z "$ac_cxx_werror_flag" ||
32698 test ! -s conftest.err
32699 } && test -s conftest$ac_exeext && {
32700 test "$cross_compiling" = yes ||
32701 $as_test_x conftest$ac_exeext
32702 }; then
32703 ac_cv_prog_cxx_openmp=$ac_option
32704else
32705 $as_echo "$as_me: failed program was:" >&5
32706sed 's/^/| /' conftest.$ac_ext >&5
32707
32708
32709fi
32710
32711rm -rf conftest.dSYM
32712rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32713 conftest$ac_exeext conftest.$ac_ext
32714 CXXFLAGS=$ac_save_CXXFLAGS
32715 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
32716 break
32717 fi
32718 done
32719fi
32720
32721rm -rf conftest.dSYM
32722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32723 conftest$ac_exeext conftest.$ac_ext
32724fi
32725{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_openmp" >&5
32726$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
32727 case $ac_cv_prog_cxx_openmp in #(
32728 "none needed" | unsupported)
32729 ;; #(
32730 *)
32731 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
32732 esac
32733 fi
32734
32735
32736 ac_ext=c
32737ac_cpp='$CPP $CPPFLAGS'
32738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32740ac_compiler_gnu=$ac_cv_c_compiler_gnu
32741
32742
32743 { $as_echo "$as_me:$LINENO: checking whether C++ compiler is sufficient for Magick++" >&5
32744$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
32745 if \
32746 test $ac_cv_cxx_have_bool = 'yes' && \
32747 test $ac_cv_cxx_have_lstring = 'yes' && \
32748 test $ac_cv_cxx_have_namespaces = 'yes' && \
32749 test $ac_cv_cxx_have_std_libs = 'yes' && \
32750 test $ac_cv_cxx_have_std_namespace = 'yes'; then
32751 have_magick_plus_plus='yes'
32752 else
32753 have_magick_plus_plus='no (failed tests)'
32754 fi
32755 { $as_echo "$as_me:$LINENO: result: $have_magick_plus_plus" >&5
32756$as_echo "$have_magick_plus_plus" >&6; }
32757 LIBS="$OLIBS"
32758fi
32759 if test "$have_magick_plus_plus" = 'yes'; then
32760 WITH_MAGICK_PLUS_PLUS_TRUE=
32761 WITH_MAGICK_PLUS_PLUS_FALSE='#'
32762else
32763 WITH_MAGICK_PLUS_PLUS_TRUE='#'
32764 WITH_MAGICK_PLUS_PLUS_FALSE=
32765fi
32766
32767
32768# Only check for delegate libraries in subdirectories if requested.
32769if test "$enable_delegate_build" != 'no'; then
32770 # Check for delegate sub-directories and add -I & -L options as required.
32771 # This presumes that delegates are installed as detailed in the ImageMagick
32772 # README. If delegates are installed in a standard location where the
32773 # compiler will automatically find them then these options should not be
32774 # required.
32775
32776 #
32777 # Most delegates have includes in the same directory as the library, but not all...
32778 #
32779 # Includes
32780 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
32781 if test -d "$builddir/$dir"; then
32782 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
32783 else
32784 if test -d "$srcdirfull/$dir"; then
32785 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
32786 fi
32787 fi
32788 done
32789
32790 # Libraries
32791 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
32792 if test -d "$builddir/$dir/.libs"; then
32793 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
32794 else
32795 if test -d "$srcdirfull/$dir/.libs"; then
32796 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
32797 fi
32798 fi
32799 if test -d "$builddir/$dir"; then
32800 LDFLAGS="$LDFLAGS -L$builddir/$dir"
32801 else
32802 if test -d "$srcdirfull/$dir"; then
32803 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
32804 fi
32805 fi
32806 done
32807fi
32808
32809# Assume that delegate headers reside under same directory as ImageMagick
32810# installation prefix.
32811MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
32812
32813#
32814# Find the X11 RGB database
32815#
32816{ $as_echo "$as_me:$LINENO: checking for X11 configure files" >&5
32817$as_echo_n "checking for X11 configure files... " >&6; }
32818if test "${im_cv_x_configure+set}" = set; then
32819 $as_echo_n "(cached) " >&6
32820else
32821 # Look for the header file in a standard set of common directories.
32822# Check X11 before X11Rn because it is often a symlink to the current release.
32823 for ac_dir in \
32824 /lib/usr/lib/X11 \
32825 /usr/X11/lib \
32826 /usr/X11R4/lib \
32827 /usr/X11R5/lib \
32828 /usr/X11R6/lib \
32829 /usr/X11R7/lib \
32830 /usr/X386/lib \
32831 /usr/XFree86/lib/X11 \
32832 /usr/athena/lib \
32833 /usr/lib \
32834 /usr/lib/X11 \
32835 /usr/lib/X11R4 \
32836 /usr/lib/X11R5 \
32837 /usr/lib/X11R6 \
32838 /usr/lib/X11R7 \
32839 /usr/local/X11/lib \
32840 /usr/local/X11R4/lib \
32841 /usr/local/X11R5/lib \
32842 /usr/local/X11R6/lib \
32843 /usr/local/lib \
32844 /usr/local/lib/X11 \
32845 /usr/local/lib/X11R4 \
32846 /usr/local/lib/X11R5 \
32847 /usr/local/lib/X11R6 \
32848 /usr/local/lib/X11R7 \
32849 /usr/local/x11r5/lib \
32850 /usr/lpp/Xamples/lib \
32851 /usr/openwin/lib \
32852 /usr/openwin/share/lib \
32853 /usr/unsupported/lib \
32854 /usr/x386/lib \
32855 ; do
32856 if test -f "$ac_dir/X11/rgb.txt"; then
32857 im_cv_x_configure="$ac_dir/X11/"
32858 break
32859 elif test -f "$ac_dir/rgb.txt"; then
32860 im_cv_x_configure="$ac_dir/"
32861 break
32862 fi
32863
32864 done
32865fi
32866{ $as_echo "$as_me:$LINENO: result: $im_cv_x_configure" >&5
32867$as_echo "$im_cv_x_configure" >&6; }
32868X11_CONFIGURE_PATH="$im_cv_x_configure"
32869case "${build_os}" in
32870 mingw* )
32871 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
32872 ;;
32873esac
32874
32875cat >>confdefs.h <<_ACEOF
32876#define X11_CONFIGURE_PATH "$X11ConfigurePath"
32877_ACEOF
32878
32879
32880#
32881# Find OpenMP library
32882#
32883GOMP_LIBS=''
32884if test "$enable_openmp" != 'no'; then
32885 if test "${GCC}" = "yes"; then
32886 { $as_echo "$as_me:$LINENO: checking for GOMP_parallel_start in -lgomp" >&5
32887$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
32888if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then
32889 $as_echo_n "(cached) " >&6
32890else
32891 ac_check_lib_save_LIBS=$LIBS
32892LIBS="-lgomp $LIBS"
32893cat >conftest.$ac_ext <<_ACEOF
32894/* confdefs.h. */
32895_ACEOF
32896cat confdefs.h >>conftest.$ac_ext
32897cat >>conftest.$ac_ext <<_ACEOF
32898/* end confdefs.h. */
32899
32900/* Override any GCC internal prototype to avoid an error.
32901 Use char because int might match the return type of a GCC
32902 builtin and then its argument prototype would still apply. */
32903#ifdef __cplusplus
32904extern "C"
32905#endif
32906char GOMP_parallel_start ();
32907int
32908main ()
32909{
32910return GOMP_parallel_start ();
32911 ;
32912 return 0;
32913}
32914_ACEOF
32915rm -f conftest.$ac_objext conftest$ac_exeext
32916if { (ac_try="$ac_link"
32917case "(($ac_try" in
32918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32919 *) ac_try_echo=$ac_try;;
32920esac
32921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32922$as_echo "$ac_try_echo") >&5
32923 (eval "$ac_link") 2>conftest.er1
32924 ac_status=$?
32925 grep -v '^ *+' conftest.er1 >conftest.err
32926 rm -f conftest.er1
32927 cat conftest.err >&5
32928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32929 (exit $ac_status); } && {
32930 test -z "$ac_c_werror_flag" ||
32931 test ! -s conftest.err
32932 } && test -s conftest$ac_exeext && {
32933 test "$cross_compiling" = yes ||
32934 $as_test_x conftest$ac_exeext
32935 }; then
32936 ac_cv_lib_gomp_GOMP_parallel_start=yes
32937else
32938 $as_echo "$as_me: failed program was:" >&5
32939sed 's/^/| /' conftest.$ac_ext >&5
32940
32941 ac_cv_lib_gomp_GOMP_parallel_start=no
32942fi
32943
32944rm -rf conftest.dSYM
32945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32946 conftest$ac_exeext conftest.$ac_ext
32947LIBS=$ac_check_lib_save_LIBS
32948fi
32949{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
32950$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
32951if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then
32952 GOMP_LIBS="-lgomp"
32953fi
32954 # gcc
32955 else
32956 { $as_echo "$as_me:$LINENO: checking for sunw_mp_register_warn in -lmtsk" >&5
32957$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
32958if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then
32959 $as_echo_n "(cached) " >&6
32960else
32961 ac_check_lib_save_LIBS=$LIBS
32962LIBS="-lmtsk $LIBS"
32963cat >conftest.$ac_ext <<_ACEOF
32964/* confdefs.h. */
32965_ACEOF
32966cat confdefs.h >>conftest.$ac_ext
32967cat >>conftest.$ac_ext <<_ACEOF
32968/* end confdefs.h. */
32969
32970/* Override any GCC internal prototype to avoid an error.
32971 Use char because int might match the return type of a GCC
32972 builtin and then its argument prototype would still apply. */
32973#ifdef __cplusplus
32974extern "C"
32975#endif
32976char sunw_mp_register_warn ();
32977int
32978main ()
32979{
32980return sunw_mp_register_warn ();
32981 ;
32982 return 0;
32983}
32984_ACEOF
32985rm -f conftest.$ac_objext conftest$ac_exeext
32986if { (ac_try="$ac_link"
32987case "(($ac_try" in
32988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32989 *) ac_try_echo=$ac_try;;
32990esac
32991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32992$as_echo "$ac_try_echo") >&5
32993 (eval "$ac_link") 2>conftest.er1
32994 ac_status=$?
32995 grep -v '^ *+' conftest.er1 >conftest.err
32996 rm -f conftest.er1
32997 cat conftest.err >&5
32998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32999 (exit $ac_status); } && {
33000 test -z "$ac_c_werror_flag" ||
33001 test ! -s conftest.err
33002 } && test -s conftest$ac_exeext && {
33003 test "$cross_compiling" = yes ||
33004 $as_test_x conftest$ac_exeext
33005 }; then
33006 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
33007else
33008 $as_echo "$as_me: failed program was:" >&5
33009sed 's/^/| /' conftest.$ac_ext >&5
33010
33011 ac_cv_lib_mtsk_sunw_mp_register_warn=no
33012fi
33013
33014rm -rf conftest.dSYM
33015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33016 conftest$ac_exeext conftest.$ac_ext
33017LIBS=$ac_check_lib_save_LIBS
33018fi
33019{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
33020$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
33021if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then
33022 GOMP_LIBS="-lmtsk"
33023fi
33024 # solaris cc
33025 { $as_echo "$as_me:$LINENO: checking for _xlsmpFlush in -lxlsmp" >&5
33026$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
33027if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then
33028 $as_echo_n "(cached) " >&6
33029else
33030 ac_check_lib_save_LIBS=$LIBS
33031LIBS="-lxlsmp $LIBS"
33032cat >conftest.$ac_ext <<_ACEOF
33033/* confdefs.h. */
33034_ACEOF
33035cat confdefs.h >>conftest.$ac_ext
33036cat >>conftest.$ac_ext <<_ACEOF
33037/* end confdefs.h. */
33038
33039/* Override any GCC internal prototype to avoid an error.
33040 Use char because int might match the return type of a GCC
33041 builtin and then its argument prototype would still apply. */
33042#ifdef __cplusplus
33043extern "C"
33044#endif
33045char _xlsmpFlush ();
33046int
33047main ()
33048{
33049return _xlsmpFlush ();
33050 ;
33051 return 0;
33052}
33053_ACEOF
33054rm -f conftest.$ac_objext conftest$ac_exeext
33055if { (ac_try="$ac_link"
33056case "(($ac_try" in
33057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33058 *) ac_try_echo=$ac_try;;
33059esac
33060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33061$as_echo "$ac_try_echo") >&5
33062 (eval "$ac_link") 2>conftest.er1
33063 ac_status=$?
33064 grep -v '^ *+' conftest.er1 >conftest.err
33065 rm -f conftest.er1
33066 cat conftest.err >&5
33067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33068 (exit $ac_status); } && {
33069 test -z "$ac_c_werror_flag" ||
33070 test ! -s conftest.err
33071 } && test -s conftest$ac_exeext && {
33072 test "$cross_compiling" = yes ||
33073 $as_test_x conftest$ac_exeext
33074 }; then
33075 ac_cv_lib_xlsmp__xlsmpFlush=yes
33076else
33077 $as_echo "$as_me: failed program was:" >&5
33078sed 's/^/| /' conftest.$ac_ext >&5
33079
33080 ac_cv_lib_xlsmp__xlsmpFlush=no
33081fi
33082
33083rm -rf conftest.dSYM
33084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33085 conftest$ac_exeext conftest.$ac_ext
33086LIBS=$ac_check_lib_save_LIBS
33087fi
33088{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
33089$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
33090if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then
33091 GOMP_LIBS="-lxlsmp"
33092fi
33093 # AIX xlc
33094 { $as_echo "$as_me:$LINENO: checking for mp_destroy in -lmp" >&5
33095$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
33096if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then
33097 $as_echo_n "(cached) " >&6
33098else
33099 ac_check_lib_save_LIBS=$LIBS
33100LIBS="-lmp $LIBS"
33101cat >conftest.$ac_ext <<_ACEOF
33102/* confdefs.h. */
33103_ACEOF
33104cat confdefs.h >>conftest.$ac_ext
33105cat >>conftest.$ac_ext <<_ACEOF
33106/* end confdefs.h. */
33107
33108/* Override any GCC internal prototype to avoid an error.
33109 Use char because int might match the return type of a GCC
33110 builtin and then its argument prototype would still apply. */
33111#ifdef __cplusplus
33112extern "C"
33113#endif
33114char mp_destroy ();
33115int
33116main ()
33117{
33118return mp_destroy ();
33119 ;
33120 return 0;
33121}
33122_ACEOF
33123rm -f conftest.$ac_objext conftest$ac_exeext
33124if { (ac_try="$ac_link"
33125case "(($ac_try" in
33126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33127 *) ac_try_echo=$ac_try;;
33128esac
33129eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33130$as_echo "$ac_try_echo") >&5
33131 (eval "$ac_link") 2>conftest.er1
33132 ac_status=$?
33133 grep -v '^ *+' conftest.er1 >conftest.err
33134 rm -f conftest.er1
33135 cat conftest.err >&5
33136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33137 (exit $ac_status); } && {
33138 test -z "$ac_c_werror_flag" ||
33139 test ! -s conftest.err
33140 } && test -s conftest$ac_exeext && {
33141 test "$cross_compiling" = yes ||
33142 $as_test_x conftest$ac_exeext
33143 }; then
33144 ac_cv_lib_mp_mp_destroy=yes
33145else
33146 $as_echo "$as_me: failed program was:" >&5
33147sed 's/^/| /' conftest.$ac_ext >&5
33148
33149 ac_cv_lib_mp_mp_destroy=no
33150fi
33151
33152rm -rf conftest.dSYM
33153rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33154 conftest$ac_exeext conftest.$ac_ext
33155LIBS=$ac_check_lib_save_LIBS
33156fi
33157{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp_mp_destroy" >&5
33158$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
33159if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then
33160 GOMP_LIBS="-lmp"
33161fi
33162 # SGI IRIX 6.5 MIPSpro C/C++
33163 fi
33164 LIBS="$GOMP_LIBS $LIBS"
33165fi
33166
33167
33168#
33169# Find Posix threads library
33170#
33171THREAD_LIBS=''
33172if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
33173
33174 if test "x$PTHREAD_LIBS" = "x"; then
33175 case "${host_cpu}-${host_os}" in
33176 *-freebsd*)
33177
33178
33179
33180ac_ext=c
33181ac_cpp='$CPP $CPPFLAGS'
33182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33184ac_compiler_gnu=$ac_cv_c_compiler_gnu
33185
33186magick_pthread_lib_ok=no
33187
33188LIB=-lc_r
33189save_LIBS="$LIBS"
33190LIBS="$LIBS $LIB"
33191
33192{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
33193$as_echo_n "checking for the pthreads library $LIB... " >&6; }
33194cat >conftest.$ac_ext <<_ACEOF
33195/* confdefs.h. */
33196_ACEOF
33197cat confdefs.h >>conftest.$ac_ext
33198cat >>conftest.$ac_ext <<_ACEOF
33199/* end confdefs.h. */
33200#include <pthread.h>
33201int
33202main ()
33203{
33204 pthread_t th;
33205 pthread_join(th, 0);
33206 pthread_attr_init(0);
33207 pthread_cleanup_push(0, 0);
33208 pthread_create(0,0,0,0);
33209 pthread_cleanup_pop(0);
33210 ;
33211 return 0;
33212}
33213_ACEOF
33214rm -f conftest.$ac_objext conftest$ac_exeext
33215if { (ac_try="$ac_link"
33216case "(($ac_try" in
33217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33218 *) ac_try_echo=$ac_try;;
33219esac
33220eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33221$as_echo "$ac_try_echo") >&5
33222 (eval "$ac_link") 2>conftest.er1
33223 ac_status=$?
33224 grep -v '^ *+' conftest.er1 >conftest.err
33225 rm -f conftest.er1
33226 cat conftest.err >&5
33227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33228 (exit $ac_status); } && {
33229 test -z "$ac_c_werror_flag" ||
33230 test ! -s conftest.err
33231 } && test -s conftest$ac_exeext && {
33232 test "$cross_compiling" = yes ||
33233 $as_test_x conftest$ac_exeext
33234 }; then
33235 magick_pthread_lib_ok=yes
33236else
33237 $as_echo "$as_me: failed program was:" >&5
33238sed 's/^/| /' conftest.$ac_ext >&5
33239
33240
33241fi
33242
33243rm -rf conftest.dSYM
33244rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33245 conftest$ac_exeext conftest.$ac_ext
33246
33247{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
33248$as_echo "${magick_pthread_lib_ok}" >&6; }
33249if test "$magick_pthread_lib_ok" = yes
33250then
33251 PTHREAD_LIBS=-lc_r
33252 :
33253else
33254
33255 :
33256fi
33257
33258LIBS="$save_LIBS"
33259
33260ac_ext=c
33261ac_cpp='$CPP $CPPFLAGS'
33262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33264ac_compiler_gnu=$ac_cv_c_compiler_gnu
33265
33266 ;;
33267 esac
33268 fi
33269
33270 for lib in pthread pthreads; do
33271 if test "x$PTHREAD_LIBS" = "x"; then
33272
33273
33274
33275ac_ext=c
33276ac_cpp='$CPP $CPPFLAGS'
33277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33279ac_compiler_gnu=$ac_cv_c_compiler_gnu
33280
33281magick_pthread_lib_ok=no
33282
33283LIB=-l$lib
33284save_LIBS="$LIBS"
33285LIBS="$LIBS $LIB"
33286
33287{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
33288$as_echo_n "checking for the pthreads library $LIB... " >&6; }
33289cat >conftest.$ac_ext <<_ACEOF
33290/* confdefs.h. */
33291_ACEOF
33292cat confdefs.h >>conftest.$ac_ext
33293cat >>conftest.$ac_ext <<_ACEOF
33294/* end confdefs.h. */
33295#include <pthread.h>
33296int
33297main ()
33298{
33299 pthread_t th;
33300 pthread_join(th, 0);
33301 pthread_attr_init(0);
33302 pthread_cleanup_push(0, 0);
33303 pthread_create(0,0,0,0);
33304 pthread_cleanup_pop(0);
33305 ;
33306 return 0;
33307}
33308_ACEOF
33309rm -f conftest.$ac_objext conftest$ac_exeext
33310if { (ac_try="$ac_link"
33311case "(($ac_try" in
33312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33313 *) ac_try_echo=$ac_try;;
33314esac
33315eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33316$as_echo "$ac_try_echo") >&5
33317 (eval "$ac_link") 2>conftest.er1
33318 ac_status=$?
33319 grep -v '^ *+' conftest.er1 >conftest.err
33320 rm -f conftest.er1
33321 cat conftest.err >&5
33322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33323 (exit $ac_status); } && {
33324 test -z "$ac_c_werror_flag" ||
33325 test ! -s conftest.err
33326 } && test -s conftest$ac_exeext && {
33327 test "$cross_compiling" = yes ||
33328 $as_test_x conftest$ac_exeext
33329 }; then
33330 magick_pthread_lib_ok=yes
33331else
33332 $as_echo "$as_me: failed program was:" >&5
33333sed 's/^/| /' conftest.$ac_ext >&5
33334
33335
33336fi
33337
33338rm -rf conftest.dSYM
33339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33340 conftest$ac_exeext conftest.$ac_ext
33341
33342{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
33343$as_echo "${magick_pthread_lib_ok}" >&6; }
33344if test "$magick_pthread_lib_ok" = yes
33345then
33346 PTHREAD_LIBS=-l$lib
33347 :
33348else
33349
33350 :
33351fi
33352
33353LIBS="$save_LIBS"
33354
33355ac_ext=c
33356ac_cpp='$CPP $CPPFLAGS'
33357ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
33358ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
33359ac_compiler_gnu=$ac_cv_c_compiler_gnu
33360
33361
33362 fi
33363 done
33364
33365 THREAD_LIBS="$PTHREAD_LIBS"
33366 LIBS="$LIBS $THREAD_LIBS"
33367fi
33368
33369
33370#
33371# Check for umem.
33372#
33373have_umem='no'
33374UMEM_LIBS=''
33375if test "$with_umem" != 'no'; then
33376 { $as_echo "$as_me:$LINENO: checking for UMEM support " >&5
33377$as_echo_n "checking for UMEM support ... " >&6; }
33378 { $as_echo "$as_me:$LINENO: result: " >&5
33379$as_echo "" >&6; }
33380 failed=0
33381 passed=0
33382 if test "${ac_cv_header_umem_h+set}" = set; then
33383 { $as_echo "$as_me:$LINENO: checking for umem.h" >&5
33384$as_echo_n "checking for umem.h... " >&6; }
33385if test "${ac_cv_header_umem_h+set}" = set; then
33386 $as_echo_n "(cached) " >&6
33387fi
33388{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
33389$as_echo "$ac_cv_header_umem_h" >&6; }
33390else
33391 # Is the header compilable?
33392{ $as_echo "$as_me:$LINENO: checking umem.h usability" >&5
33393$as_echo_n "checking umem.h usability... " >&6; }
33394cat >conftest.$ac_ext <<_ACEOF
33395/* confdefs.h. */
33396_ACEOF
33397cat confdefs.h >>conftest.$ac_ext
33398cat >>conftest.$ac_ext <<_ACEOF
33399/* end confdefs.h. */
33400$ac_includes_default
33401#include <umem.h>
33402_ACEOF
33403rm -f conftest.$ac_objext
33404if { (ac_try="$ac_compile"
33405case "(($ac_try" in
33406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33407 *) ac_try_echo=$ac_try;;
33408esac
33409eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33410$as_echo "$ac_try_echo") >&5
33411 (eval "$ac_compile") 2>conftest.er1
33412 ac_status=$?
33413 grep -v '^ *+' conftest.er1 >conftest.err
33414 rm -f conftest.er1
33415 cat conftest.err >&5
33416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33417 (exit $ac_status); } && {
33418 test -z "$ac_c_werror_flag" ||
33419 test ! -s conftest.err
33420 } && test -s conftest.$ac_objext; then
33421 ac_header_compiler=yes
33422else
33423 $as_echo "$as_me: failed program was:" >&5
33424sed 's/^/| /' conftest.$ac_ext >&5
33425
33426 ac_header_compiler=no
33427fi
33428
33429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33430{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33431$as_echo "$ac_header_compiler" >&6; }
33432
33433# Is the header present?
33434{ $as_echo "$as_me:$LINENO: checking umem.h presence" >&5
33435$as_echo_n "checking umem.h presence... " >&6; }
33436cat >conftest.$ac_ext <<_ACEOF
33437/* confdefs.h. */
33438_ACEOF
33439cat confdefs.h >>conftest.$ac_ext
33440cat >>conftest.$ac_ext <<_ACEOF
33441/* end confdefs.h. */
33442#include <umem.h>
33443_ACEOF
33444if { (ac_try="$ac_cpp conftest.$ac_ext"
33445case "(($ac_try" in
33446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33447 *) ac_try_echo=$ac_try;;
33448esac
33449eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33450$as_echo "$ac_try_echo") >&5
33451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33452 ac_status=$?
33453 grep -v '^ *+' conftest.er1 >conftest.err
33454 rm -f conftest.er1
33455 cat conftest.err >&5
33456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457 (exit $ac_status); } >/dev/null && {
33458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33459 test ! -s conftest.err
33460 }; then
33461 ac_header_preproc=yes
33462else
33463 $as_echo "$as_me: failed program was:" >&5
33464sed 's/^/| /' conftest.$ac_ext >&5
33465
33466 ac_header_preproc=no
33467fi
33468
33469rm -f conftest.err conftest.$ac_ext
33470{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33471$as_echo "$ac_header_preproc" >&6; }
33472
33473# So? What about this header?
33474case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33475 yes:no: )
33476 { $as_echo "$as_me:$LINENO: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&5
33477$as_echo "$as_me: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33478 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the compiler's result" >&5
33479$as_echo "$as_me: WARNING: umem.h: proceeding with the compiler's result" >&2;}
33480 ac_header_preproc=yes
33481 ;;
33482 no:yes:* )
33483 { $as_echo "$as_me:$LINENO: WARNING: umem.h: present but cannot be compiled" >&5
33484$as_echo "$as_me: WARNING: umem.h: present but cannot be compiled" >&2;}
33485 { $as_echo "$as_me:$LINENO: WARNING: umem.h: check for missing prerequisite headers?" >&5
33486$as_echo "$as_me: WARNING: umem.h: check for missing prerequisite headers?" >&2;}
33487 { $as_echo "$as_me:$LINENO: WARNING: umem.h: see the Autoconf documentation" >&5
33488$as_echo "$as_me: WARNING: umem.h: see the Autoconf documentation" >&2;}
33489 { $as_echo "$as_me:$LINENO: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&5
33490$as_echo "$as_me: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&2;}
33491 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the preprocessor's result" >&5
33492$as_echo "$as_me: WARNING: umem.h: proceeding with the preprocessor's result" >&2;}
33493 { $as_echo "$as_me:$LINENO: WARNING: umem.h: in the future, the compiler will take precedence" >&5
33494$as_echo "$as_me: WARNING: umem.h: in the future, the compiler will take precedence" >&2;}
33495 ( cat <<\_ASBOX
33496## ----------------------------------------- ##
33497## Report this to http://www.imagemagick.org ##
33498## ----------------------------------------- ##
33499_ASBOX
33500 ) | sed "s/^/$as_me: WARNING: /" >&2
33501 ;;
33502esac
33503{ $as_echo "$as_me:$LINENO: checking for umem.h" >&5
33504$as_echo_n "checking for umem.h... " >&6; }
33505if test "${ac_cv_header_umem_h+set}" = set; then
33506 $as_echo_n "(cached) " >&6
33507else
33508 ac_cv_header_umem_h=$ac_header_preproc
33509fi
33510{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
33511$as_echo "$ac_cv_header_umem_h" >&6; }
33512
33513fi
33514if test "x$ac_cv_header_umem_h" = x""yes; then
33515 passed=`expr $passed + 1`
33516else
33517 failed=`expr $failed + 1`
33518fi
33519
33520
33521 { $as_echo "$as_me:$LINENO: checking for umem_alloc in -lumem" >&5
33522$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
33523if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then
33524 $as_echo_n "(cached) " >&6
33525else
33526 ac_check_lib_save_LIBS=$LIBS
33527LIBS="-lumem $LIBS"
33528cat >conftest.$ac_ext <<_ACEOF
33529/* confdefs.h. */
33530_ACEOF
33531cat confdefs.h >>conftest.$ac_ext
33532cat >>conftest.$ac_ext <<_ACEOF
33533/* end confdefs.h. */
33534
33535/* Override any GCC internal prototype to avoid an error.
33536 Use char because int might match the return type of a GCC
33537 builtin and then its argument prototype would still apply. */
33538#ifdef __cplusplus
33539extern "C"
33540#endif
33541char umem_alloc ();
33542int
33543main ()
33544{
33545return umem_alloc ();
33546 ;
33547 return 0;
33548}
33549_ACEOF
33550rm -f conftest.$ac_objext conftest$ac_exeext
33551if { (ac_try="$ac_link"
33552case "(($ac_try" in
33553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33554 *) ac_try_echo=$ac_try;;
33555esac
33556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33557$as_echo "$ac_try_echo") >&5
33558 (eval "$ac_link") 2>conftest.er1
33559 ac_status=$?
33560 grep -v '^ *+' conftest.er1 >conftest.err
33561 rm -f conftest.er1
33562 cat conftest.err >&5
33563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33564 (exit $ac_status); } && {
33565 test -z "$ac_c_werror_flag" ||
33566 test ! -s conftest.err
33567 } && test -s conftest$ac_exeext && {
33568 test "$cross_compiling" = yes ||
33569 $as_test_x conftest$ac_exeext
33570 }; then
33571 ac_cv_lib_umem_umem_alloc=yes
33572else
33573 $as_echo "$as_me: failed program was:" >&5
33574sed 's/^/| /' conftest.$ac_ext >&5
33575
33576 ac_cv_lib_umem_umem_alloc=no
33577fi
33578
33579rm -rf conftest.dSYM
33580rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33581 conftest$ac_exeext conftest.$ac_ext
33582LIBS=$ac_check_lib_save_LIBS
33583fi
33584{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_alloc" >&5
33585$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
33586if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then
33587 passed=`expr $passed + 1`
33588else
33589 failed=`expr $failed + 1`
33590fi
33591
33592 { $as_echo "$as_me:$LINENO: checking for umem_free in -lumem" >&5
33593$as_echo_n "checking for umem_free in -lumem... " >&6; }
33594if test "${ac_cv_lib_umem_umem_free+set}" = set; then
33595 $as_echo_n "(cached) " >&6
33596else
33597 ac_check_lib_save_LIBS=$LIBS
33598LIBS="-lumem $LIBS"
33599cat >conftest.$ac_ext <<_ACEOF
33600/* confdefs.h. */
33601_ACEOF
33602cat confdefs.h >>conftest.$ac_ext
33603cat >>conftest.$ac_ext <<_ACEOF
33604/* end confdefs.h. */
33605
33606/* Override any GCC internal prototype to avoid an error.
33607 Use char because int might match the return type of a GCC
33608 builtin and then its argument prototype would still apply. */
33609#ifdef __cplusplus
33610extern "C"
33611#endif
33612char umem_free ();
33613int
33614main ()
33615{
33616return umem_free ();
33617 ;
33618 return 0;
33619}
33620_ACEOF
33621rm -f conftest.$ac_objext conftest$ac_exeext
33622if { (ac_try="$ac_link"
33623case "(($ac_try" in
33624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33625 *) ac_try_echo=$ac_try;;
33626esac
33627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33628$as_echo "$ac_try_echo") >&5
33629 (eval "$ac_link") 2>conftest.er1
33630 ac_status=$?
33631 grep -v '^ *+' conftest.er1 >conftest.err
33632 rm -f conftest.er1
33633 cat conftest.err >&5
33634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33635 (exit $ac_status); } && {
33636 test -z "$ac_c_werror_flag" ||
33637 test ! -s conftest.err
33638 } && test -s conftest$ac_exeext && {
33639 test "$cross_compiling" = yes ||
33640 $as_test_x conftest$ac_exeext
33641 }; then
33642 ac_cv_lib_umem_umem_free=yes
33643else
33644 $as_echo "$as_me: failed program was:" >&5
33645sed 's/^/| /' conftest.$ac_ext >&5
33646
33647 ac_cv_lib_umem_umem_free=no
33648fi
33649
33650rm -rf conftest.dSYM
33651rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33652 conftest$ac_exeext conftest.$ac_ext
33653LIBS=$ac_check_lib_save_LIBS
33654fi
33655{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_free" >&5
33656$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
33657if test "x$ac_cv_lib_umem_umem_free" = x""yes; then
33658 passed=`expr $passed + 1`
33659else
33660 failed=`expr $failed + 1`
33661fi
33662
33663 { $as_echo "$as_me:$LINENO: checking if umem memory allocation library is complete" >&5
33664$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
33665 if test $passed -gt 0; then
33666 if test $failed -gt 0; then
33667 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
33668$as_echo "no -- some components failed test" >&6; }
33669 have_umem='no (failed tests)'
33670 else
33671 UMEM_LIBS='-lumem'
33672 LIBS="$UMEM_LIBS $LIBS"
33673
33674cat >>confdefs.h <<\_ACEOF
33675#define HasUMEM 1
33676_ACEOF
33677
33678 { $as_echo "$as_me:$LINENO: result: yes" >&5
33679$as_echo "yes" >&6; }
33680 have_umem='yes'
33681 fi
33682 else
33683 { $as_echo "$as_me:$LINENO: result: no" >&5
33684$as_echo "no" >&6; }
33685 fi
33686fi
33687 if test "$have_umem" = 'yes'; then
33688 HasUMEM_TRUE=
33689 HasUMEM_FALSE='#'
33690else
33691 HasUMEM_TRUE='#'
33692 HasUMEM_FALSE=
33693fi
33694
33695
33696
33697#
33698# Add support for ccmalloc memory debugging library if requested
33699#
33700have_ccmalloc='no'
33701CCMALLOC_LIBS=''
33702if test "$enable_ccmalloc" = 'yes'; then
33703 # Extract the first word of "ccmalloc", so it can be a program name with args.
33704set dummy ccmalloc; ac_word=$2
33705{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
33706$as_echo_n "checking for $ac_word... " >&6; }
33707if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then
33708 $as_echo_n "(cached) " >&6
33709else
33710 case $CCMALLOCDelegate in
33711 [\\/]* | ?:[\\/]*)
33712 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
33713 ;;
33714 *)
33715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33716for as_dir in $PATH
33717do
33718 IFS=$as_save_IFS
33719 test -z "$as_dir" && as_dir=.
33720 for ac_exec_ext in '' $ac_executable_extensions; do
33721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33722 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
33723 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33724 break 2
33725 fi
33726done
33727done
33728IFS=$as_save_IFS
33729
33730 ;;
33731esac
33732fi
33733CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
33734if test -n "$CCMALLOCDelegate"; then
33735 { $as_echo "$as_me:$LINENO: result: $CCMALLOCDelegate" >&5
33736$as_echo "$CCMALLOCDelegate" >&6; }
33737else
33738 { $as_echo "$as_me:$LINENO: result: no" >&5
33739$as_echo "no" >&6; }
33740fi
33741
33742
33743 if test -n "$CCMALLOCDelegate"; then
33744 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
33745 OLIBS="$LIBS"
33746 # Assume that gcc is used with ccmalloc.
33747 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
33748 { $as_echo "$as_me:$LINENO: checking for ccmalloc_malloc in -lccmalloc" >&5
33749$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
33750if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then
33751 $as_echo_n "(cached) " >&6
33752else
33753 ac_check_lib_save_LIBS=$LIBS
33754LIBS="-lccmalloc -ldl $LIBS"
33755cat >conftest.$ac_ext <<_ACEOF
33756/* confdefs.h. */
33757_ACEOF
33758cat confdefs.h >>conftest.$ac_ext
33759cat >>conftest.$ac_ext <<_ACEOF
33760/* end confdefs.h. */
33761
33762/* Override any GCC internal prototype to avoid an error.
33763 Use char because int might match the return type of a GCC
33764 builtin and then its argument prototype would still apply. */
33765#ifdef __cplusplus
33766extern "C"
33767#endif
33768char ccmalloc_malloc ();
33769int
33770main ()
33771{
33772return ccmalloc_malloc ();
33773 ;
33774 return 0;
33775}
33776_ACEOF
33777rm -f conftest.$ac_objext conftest$ac_exeext
33778if { (ac_try="$ac_link"
33779case "(($ac_try" in
33780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33781 *) ac_try_echo=$ac_try;;
33782esac
33783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33784$as_echo "$ac_try_echo") >&5
33785 (eval "$ac_link") 2>conftest.er1
33786 ac_status=$?
33787 grep -v '^ *+' conftest.er1 >conftest.err
33788 rm -f conftest.er1
33789 cat conftest.err >&5
33790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33791 (exit $ac_status); } && {
33792 test -z "$ac_c_werror_flag" ||
33793 test ! -s conftest.err
33794 } && test -s conftest$ac_exeext && {
33795 test "$cross_compiling" = yes ||
33796 $as_test_x conftest$ac_exeext
33797 }; then
33798 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
33799else
33800 $as_echo "$as_me: failed program was:" >&5
33801sed 's/^/| /' conftest.$ac_ext >&5
33802
33803 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
33804fi
33805
33806rm -rf conftest.dSYM
33807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33808 conftest$ac_exeext conftest.$ac_ext
33809LIBS=$ac_check_lib_save_LIBS
33810fi
33811{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
33812$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
33813if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then
33814 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
33815fi
33816
33817 if test -n "$CCMALLOC_LIBS"; then
33818 LIBS="$OLIBS"
33819 LIBS="$LIBS $CCMALLOC_LIBS"
33820 have_ccmalloc='yes'
33821 else
33822 LIBS="$OLIBS"
33823 fi
33824 fi
33825fi
33826
33827#
33828# Add support for efence memory debugging library if requested
33829#
33830if test "$enable_efence" = 'yes'; then
33831 EFENCE_LIBS='-lefence'
33832 LIBS="$EFENCE_LIBS $LIBS"
33833fi
33834
33835#
33836# Find math library
33837#
33838MATH_LIBS=''
33839{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
33840$as_echo_n "checking for sqrt in -lm... " >&6; }
33841if test "${ac_cv_lib_m_sqrt+set}" = set; then
33842 $as_echo_n "(cached) " >&6
33843else
33844 ac_check_lib_save_LIBS=$LIBS
33845LIBS="-lm $LIBS"
33846cat >conftest.$ac_ext <<_ACEOF
33847/* confdefs.h. */
33848_ACEOF
33849cat confdefs.h >>conftest.$ac_ext
33850cat >>conftest.$ac_ext <<_ACEOF
33851/* end confdefs.h. */
33852
33853/* Override any GCC internal prototype to avoid an error.
33854 Use char because int might match the return type of a GCC
33855 builtin and then its argument prototype would still apply. */
33856#ifdef __cplusplus
33857extern "C"
33858#endif
33859char sqrt ();
33860int
33861main ()
33862{
33863return sqrt ();
33864 ;
33865 return 0;
33866}
33867_ACEOF
33868rm -f conftest.$ac_objext conftest$ac_exeext
33869if { (ac_try="$ac_link"
33870case "(($ac_try" in
33871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33872 *) ac_try_echo=$ac_try;;
33873esac
33874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33875$as_echo "$ac_try_echo") >&5
33876 (eval "$ac_link") 2>conftest.er1
33877 ac_status=$?
33878 grep -v '^ *+' conftest.er1 >conftest.err
33879 rm -f conftest.er1
33880 cat conftest.err >&5
33881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33882 (exit $ac_status); } && {
33883 test -z "$ac_c_werror_flag" ||
33884 test ! -s conftest.err
33885 } && test -s conftest$ac_exeext && {
33886 test "$cross_compiling" = yes ||
33887 $as_test_x conftest$ac_exeext
33888 }; then
33889 ac_cv_lib_m_sqrt=yes
33890else
33891 $as_echo "$as_me: failed program was:" >&5
33892sed 's/^/| /' conftest.$ac_ext >&5
33893
33894 ac_cv_lib_m_sqrt=no
33895fi
33896
33897rm -rf conftest.dSYM
33898rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33899 conftest$ac_exeext conftest.$ac_ext
33900LIBS=$ac_check_lib_save_LIBS
33901fi
33902{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
33903$as_echo "$ac_cv_lib_m_sqrt" >&6; }
33904if test "x$ac_cv_lib_m_sqrt" = x""yes; then
33905 MATH_LIBS="-lm"
33906fi
33907
33908LIBS="$MATH_LIBS $LIBS"
33909
33910
33911
33912#
33913# Check for BZLIB
33914#
33915
33916
33917# Check whether --with-bzlib was given.
33918if test "${with_bzlib+set}" = set; then
33919 withval=$with_bzlib; with_bzlib=$withval
33920else
33921 with_bzlib='yes'
33922fi
33923
33924
33925if test "$with_bzlib" != 'yes'; then
33926 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
33927fi
33928
33929have_bzlib='no'
33930if test "$with_bzlib" != 'no'; then
33931 BZLIB_LIBS=''
33932 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
33933$as_echo "-------------------------------------------------------------" >&6; }
33934 { $as_echo "$as_me:$LINENO: checking for BZLIB" >&5
33935$as_echo_n "checking for BZLIB... " >&6; }
33936 { $as_echo "$as_me:$LINENO: result: " >&5
33937$as_echo "" >&6; }
33938 failed=0
33939 passed=0
33940 found_libbz=0
33941 if test "${ac_cv_header_bzlib_h+set}" = set; then
33942 { $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
33943$as_echo_n "checking for bzlib.h... " >&6; }
33944if test "${ac_cv_header_bzlib_h+set}" = set; then
33945 $as_echo_n "(cached) " >&6
33946fi
33947{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
33948$as_echo "$ac_cv_header_bzlib_h" >&6; }
33949else
33950 # Is the header compilable?
33951{ $as_echo "$as_me:$LINENO: checking bzlib.h usability" >&5
33952$as_echo_n "checking bzlib.h usability... " >&6; }
33953cat >conftest.$ac_ext <<_ACEOF
33954/* confdefs.h. */
33955_ACEOF
33956cat confdefs.h >>conftest.$ac_ext
33957cat >>conftest.$ac_ext <<_ACEOF
33958/* end confdefs.h. */
33959$ac_includes_default
33960#include <bzlib.h>
33961_ACEOF
33962rm -f conftest.$ac_objext
33963if { (ac_try="$ac_compile"
33964case "(($ac_try" in
33965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33966 *) ac_try_echo=$ac_try;;
33967esac
33968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33969$as_echo "$ac_try_echo") >&5
33970 (eval "$ac_compile") 2>conftest.er1
33971 ac_status=$?
33972 grep -v '^ *+' conftest.er1 >conftest.err
33973 rm -f conftest.er1
33974 cat conftest.err >&5
33975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976 (exit $ac_status); } && {
33977 test -z "$ac_c_werror_flag" ||
33978 test ! -s conftest.err
33979 } && test -s conftest.$ac_objext; then
33980 ac_header_compiler=yes
33981else
33982 $as_echo "$as_me: failed program was:" >&5
33983sed 's/^/| /' conftest.$ac_ext >&5
33984
33985 ac_header_compiler=no
33986fi
33987
33988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33989{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33990$as_echo "$ac_header_compiler" >&6; }
33991
33992# Is the header present?
33993{ $as_echo "$as_me:$LINENO: checking bzlib.h presence" >&5
33994$as_echo_n "checking bzlib.h presence... " >&6; }
33995cat >conftest.$ac_ext <<_ACEOF
33996/* confdefs.h. */
33997_ACEOF
33998cat confdefs.h >>conftest.$ac_ext
33999cat >>conftest.$ac_ext <<_ACEOF
34000/* end confdefs.h. */
34001#include <bzlib.h>
34002_ACEOF
34003if { (ac_try="$ac_cpp conftest.$ac_ext"
34004case "(($ac_try" in
34005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34006 *) ac_try_echo=$ac_try;;
34007esac
34008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34009$as_echo "$ac_try_echo") >&5
34010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34011 ac_status=$?
34012 grep -v '^ *+' conftest.er1 >conftest.err
34013 rm -f conftest.er1
34014 cat conftest.err >&5
34015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34016 (exit $ac_status); } >/dev/null && {
34017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34018 test ! -s conftest.err
34019 }; then
34020 ac_header_preproc=yes
34021else
34022 $as_echo "$as_me: failed program was:" >&5
34023sed 's/^/| /' conftest.$ac_ext >&5
34024
34025 ac_header_preproc=no
34026fi
34027
34028rm -f conftest.err conftest.$ac_ext
34029{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34030$as_echo "$ac_header_preproc" >&6; }
34031
34032# So? What about this header?
34033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34034 yes:no: )
34035 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
34036$as_echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
34037 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5
34038$as_echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;}
34039 ac_header_preproc=yes
34040 ;;
34041 no:yes:* )
34042 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5
34043$as_echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;}
34044 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5
34045$as_echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;}
34046 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5
34047$as_echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;}
34048 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5
34049$as_echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
34050 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
34051$as_echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;}
34052 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5
34053$as_echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;}
34054 ( cat <<\_ASBOX
34055## ----------------------------------------- ##
34056## Report this to http://www.imagemagick.org ##
34057## ----------------------------------------- ##
34058_ASBOX
34059 ) | sed "s/^/$as_me: WARNING: /" >&2
34060 ;;
34061esac
34062{ $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
34063$as_echo_n "checking for bzlib.h... " >&6; }
34064if test "${ac_cv_header_bzlib_h+set}" = set; then
34065 $as_echo_n "(cached) " >&6
34066else
34067 ac_cv_header_bzlib_h=$ac_header_preproc
34068fi
34069{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
34070$as_echo "$ac_cv_header_bzlib_h" >&6; }
34071
34072fi
34073if test "x$ac_cv_header_bzlib_h" = x""yes; then
34074 passed=`expr $passed + 1`
34075else
34076 failed=`expr $failed + 1`
34077fi
34078
34079
34080 { $as_echo "$as_me:$LINENO: checking for BZ2_bzDecompress in -lbz2" >&5
34081$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
34082if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then
34083 $as_echo_n "(cached) " >&6
34084else
34085 ac_check_lib_save_LIBS=$LIBS
34086LIBS="-lbz2 $LIBS"
34087cat >conftest.$ac_ext <<_ACEOF
34088/* confdefs.h. */
34089_ACEOF
34090cat confdefs.h >>conftest.$ac_ext
34091cat >>conftest.$ac_ext <<_ACEOF
34092/* end confdefs.h. */
34093
34094/* Override any GCC internal prototype to avoid an error.
34095 Use char because int might match the return type of a GCC
34096 builtin and then its argument prototype would still apply. */
34097#ifdef __cplusplus
34098extern "C"
34099#endif
34100char BZ2_bzDecompress ();
34101int
34102main ()
34103{
34104return BZ2_bzDecompress ();
34105 ;
34106 return 0;
34107}
34108_ACEOF
34109rm -f conftest.$ac_objext conftest$ac_exeext
34110if { (ac_try="$ac_link"
34111case "(($ac_try" in
34112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34113 *) ac_try_echo=$ac_try;;
34114esac
34115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34116$as_echo "$ac_try_echo") >&5
34117 (eval "$ac_link") 2>conftest.er1
34118 ac_status=$?
34119 grep -v '^ *+' conftest.er1 >conftest.err
34120 rm -f conftest.er1
34121 cat conftest.err >&5
34122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34123 (exit $ac_status); } && {
34124 test -z "$ac_c_werror_flag" ||
34125 test ! -s conftest.err
34126 } && test -s conftest$ac_exeext && {
34127 test "$cross_compiling" = yes ||
34128 $as_test_x conftest$ac_exeext
34129 }; then
34130 ac_cv_lib_bz2_BZ2_bzDecompress=yes
34131else
34132 $as_echo "$as_me: failed program was:" >&5
34133sed 's/^/| /' conftest.$ac_ext >&5
34134
34135 ac_cv_lib_bz2_BZ2_bzDecompress=no
34136fi
34137
34138rm -rf conftest.dSYM
34139rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34140 conftest$ac_exeext conftest.$ac_ext
34141LIBS=$ac_check_lib_save_LIBS
34142fi
34143{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
34144$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
34145if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then
34146 found_libbz=`expr $found_libbz + 1`
34147fi
34148
34149 if test "$native_win32_build" = 'yes'; then
34150 { $as_echo "$as_me:$LINENO: checking for _imp__BZ2_decompress in -lbz2" >&5
34151$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
34152if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then
34153 $as_echo_n "(cached) " >&6
34154else
34155 ac_check_lib_save_LIBS=$LIBS
34156LIBS="-lbz2 $LIBS"
34157cat >conftest.$ac_ext <<_ACEOF
34158/* confdefs.h. */
34159_ACEOF
34160cat confdefs.h >>conftest.$ac_ext
34161cat >>conftest.$ac_ext <<_ACEOF
34162/* end confdefs.h. */
34163
34164/* Override any GCC internal prototype to avoid an error.
34165 Use char because int might match the return type of a GCC
34166 builtin and then its argument prototype would still apply. */
34167#ifdef __cplusplus
34168extern "C"
34169#endif
34170char _imp__BZ2_decompress ();
34171int
34172main ()
34173{
34174return _imp__BZ2_decompress ();
34175 ;
34176 return 0;
34177}
34178_ACEOF
34179rm -f conftest.$ac_objext conftest$ac_exeext
34180if { (ac_try="$ac_link"
34181case "(($ac_try" in
34182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34183 *) ac_try_echo=$ac_try;;
34184esac
34185eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34186$as_echo "$ac_try_echo") >&5
34187 (eval "$ac_link") 2>conftest.er1
34188 ac_status=$?
34189 grep -v '^ *+' conftest.er1 >conftest.err
34190 rm -f conftest.er1
34191 cat conftest.err >&5
34192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34193 (exit $ac_status); } && {
34194 test -z "$ac_c_werror_flag" ||
34195 test ! -s conftest.err
34196 } && test -s conftest$ac_exeext && {
34197 test "$cross_compiling" = yes ||
34198 $as_test_x conftest$ac_exeext
34199 }; then
34200 ac_cv_lib_bz2__imp__BZ2_decompress=yes
34201else
34202 $as_echo "$as_me: failed program was:" >&5
34203sed 's/^/| /' conftest.$ac_ext >&5
34204
34205 ac_cv_lib_bz2__imp__BZ2_decompress=no
34206fi
34207
34208rm -rf conftest.dSYM
34209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34210 conftest$ac_exeext conftest.$ac_ext
34211LIBS=$ac_check_lib_save_LIBS
34212fi
34213{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
34214$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
34215if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then
34216 found_libbz=`expr $found_libbz + 1`
34217fi
34218
34219 fi
34220 if test $found_libbz -gt 0; then
34221 passed=`expr $passed + 1`
34222 else
34223 failed=`expr $failed + 1`
34224 fi
34225 { $as_echo "$as_me:$LINENO: checking if BZLIB package is complete" >&5
34226$as_echo_n "checking if BZLIB package is complete... " >&6; }
34227 if test $passed -gt 0; then
34228 if test $failed -gt 0; then
34229 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
34230$as_echo "no -- some components failed test" >&6; }
34231 have_bzlib='no (failed tests)'
34232 else
34233 BZLIB_LIBS='-lbz2'
34234 LIBS="$BZLIB_LIBS $LIBS"
34235
34236cat >>confdefs.h <<\_ACEOF
34237#define BZLIB_DELEGATE 1
34238_ACEOF
34239
34240 { $as_echo "$as_me:$LINENO: result: yes" >&5
34241$as_echo "yes" >&6; }
34242 have_bzlib='yes'
34243 fi
34244 else
34245 { $as_echo "$as_me:$LINENO: result: no" >&5
34246$as_echo "no" >&6; }
34247 fi
34248fi
34249 if test "$have_bzlib" = 'yes'; then
34250 BZLIB_DELEGATE_TRUE=
34251 BZLIB_DELEGATE_FALSE='#'
34252else
34253 BZLIB_DELEGATE_TRUE='#'
34254 BZLIB_DELEGATE_FALSE=
34255fi
34256
34257
34258
34259#
34260# Find the X11 include and library directories.
34261#
34262IPC_LIBS=''
34263X11_LIBS=''
34264XEXT_LIBS=''
34265XT_LIBS=''
cristyc7083c12009-10-14 03:16:55 +000034266{ $as_echo "$as_me:$LINENO: checking for X" >&5
34267$as_echo_n "checking for X... " >&6; }
34268
34269
34270# Check whether --with-x was given.
34271if test "${with_x+set}" = set; then
34272 withval=$with_x;
34273fi
34274
34275# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
34276if test "x$with_x" = xno; then
34277 # The user explicitly disabled X.
34278 have_x=disabled
34279else
34280 case $x_includes,$x_libraries in #(
34281 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
34282$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
34283 { (exit 1); exit 1; }; };; #(
34284 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
34285 $as_echo_n "(cached) " >&6
34286else
34287 # One or both of the vars are not set, and there is no cached value.
34288ac_x_includes=no ac_x_libraries=no
34289rm -f -r conftest.dir
34290if mkdir conftest.dir; then
34291 cd conftest.dir
34292 cat >Imakefile <<'_ACEOF'
34293incroot:
34294 @echo incroot='${INCROOT}'
34295usrlibdir:
34296 @echo usrlibdir='${USRLIBDIR}'
34297libdir:
34298 @echo libdir='${LIBDIR}'
34299_ACEOF
34300 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
34301 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
34302 for ac_var in incroot usrlibdir libdir; do
34303 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
34304 done
34305 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
34306 for ac_extension in a so sl dylib la dll; do
34307 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
34308 test -f "$ac_im_libdir/libX11.$ac_extension"; then
34309 ac_im_usrlibdir=$ac_im_libdir; break
34310 fi
34311 done
34312 # Screen out bogus values from the imake configuration. They are
34313 # bogus both because they are the default anyway, and because
34314 # using them would break gcc on systems where it needs fixed includes.
34315 case $ac_im_incroot in
34316 /usr/include) ac_x_includes= ;;
34317 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
34318 esac
34319 case $ac_im_usrlibdir in
34320 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
34321 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
34322 esac
34323 fi
34324 cd ..
34325 rm -f -r conftest.dir
34326fi
34327
34328# Standard set of common directories for X headers.
34329# Check X11 before X11Rn because it is often a symlink to the current release.
34330ac_x_header_dirs='
34331/usr/X11/include
34332/usr/X11R6/include
34333/usr/X11R5/include
34334/usr/X11R4/include
34335
34336/usr/include/X11
34337/usr/include/X11R6
34338/usr/include/X11R5
34339/usr/include/X11R4
34340
34341/usr/local/X11/include
34342/usr/local/X11R6/include
34343/usr/local/X11R5/include
34344/usr/local/X11R4/include
34345
34346/usr/local/include/X11
34347/usr/local/include/X11R6
34348/usr/local/include/X11R5
34349/usr/local/include/X11R4
34350
34351/usr/X386/include
34352/usr/x386/include
34353/usr/XFree86/include/X11
34354
34355/usr/include
34356/usr/local/include
34357/usr/unsupported/include
34358/usr/athena/include
34359/usr/local/x11r5/include
34360/usr/lpp/Xamples/include
34361
34362/usr/openwin/include
34363/usr/openwin/share/include'
34364
34365if test "$ac_x_includes" = no; then
34366 # Guess where to find include files, by looking for Xlib.h.
34367 # First, try using that file with no special directory specified.
34368 cat >conftest.$ac_ext <<_ACEOF
34369/* confdefs.h. */
34370_ACEOF
34371cat confdefs.h >>conftest.$ac_ext
34372cat >>conftest.$ac_ext <<_ACEOF
34373/* end confdefs.h. */
34374#include <X11/Xlib.h>
34375_ACEOF
34376if { (ac_try="$ac_cpp conftest.$ac_ext"
34377case "(($ac_try" in
34378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34379 *) ac_try_echo=$ac_try;;
34380esac
34381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34382$as_echo "$ac_try_echo") >&5
34383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34384 ac_status=$?
34385 grep -v '^ *+' conftest.er1 >conftest.err
34386 rm -f conftest.er1
34387 cat conftest.err >&5
34388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34389 (exit $ac_status); } >/dev/null && {
34390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34391 test ! -s conftest.err
34392 }; then
34393 # We can compile using X headers with no special include directory.
34394ac_x_includes=
34395else
34396 $as_echo "$as_me: failed program was:" >&5
34397sed 's/^/| /' conftest.$ac_ext >&5
34398
34399 for ac_dir in $ac_x_header_dirs; do
34400 if test -r "$ac_dir/X11/Xlib.h"; then
34401 ac_x_includes=$ac_dir
34402 break
34403 fi
34404done
34405fi
34406
34407rm -f conftest.err conftest.$ac_ext
34408fi # $ac_x_includes = no
34409
34410if test "$ac_x_libraries" = no; then
34411 # Check for the libraries.
34412 # See if we find them without any special options.
34413 # Don't add to $LIBS permanently.
34414 ac_save_LIBS=$LIBS
34415 LIBS="-lX11 $LIBS"
34416 cat >conftest.$ac_ext <<_ACEOF
34417/* confdefs.h. */
34418_ACEOF
34419cat confdefs.h >>conftest.$ac_ext
34420cat >>conftest.$ac_ext <<_ACEOF
34421/* end confdefs.h. */
34422#include <X11/Xlib.h>
34423int
34424main ()
34425{
34426XrmInitialize ()
34427 ;
34428 return 0;
34429}
34430_ACEOF
34431rm -f conftest.$ac_objext conftest$ac_exeext
34432if { (ac_try="$ac_link"
34433case "(($ac_try" in
34434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34435 *) ac_try_echo=$ac_try;;
34436esac
34437eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34438$as_echo "$ac_try_echo") >&5
34439 (eval "$ac_link") 2>conftest.er1
34440 ac_status=$?
34441 grep -v '^ *+' conftest.er1 >conftest.err
34442 rm -f conftest.er1
34443 cat conftest.err >&5
34444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34445 (exit $ac_status); } && {
34446 test -z "$ac_c_werror_flag" ||
34447 test ! -s conftest.err
34448 } && test -s conftest$ac_exeext && {
34449 test "$cross_compiling" = yes ||
34450 $as_test_x conftest$ac_exeext
34451 }; then
34452 LIBS=$ac_save_LIBS
34453# We can link X programs with no special library path.
34454ac_x_libraries=
34455else
34456 $as_echo "$as_me: failed program was:" >&5
34457sed 's/^/| /' conftest.$ac_ext >&5
34458
34459 LIBS=$ac_save_LIBS
34460for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
34461do
34462 # Don't even attempt the hair of trying to link an X program!
34463 for ac_extension in a so sl dylib la dll; do
34464 if test -r "$ac_dir/libX11.$ac_extension"; then
34465 ac_x_libraries=$ac_dir
34466 break 2
34467 fi
34468 done
34469done
34470fi
34471
34472rm -rf conftest.dSYM
34473rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34474 conftest$ac_exeext conftest.$ac_ext
34475fi # $ac_x_libraries = no
34476
34477case $ac_x_includes,$ac_x_libraries in #(
34478 no,* | *,no | *\'*)
34479 # Didn't find X, or a directory has "'" in its name.
34480 ac_cv_have_x="have_x=no";; #(
34481 *)
34482 # Record where we found X for the cache.
34483 ac_cv_have_x="have_x=yes\
34484 ac_x_includes='$ac_x_includes'\
34485 ac_x_libraries='$ac_x_libraries'"
34486esac
34487fi
34488;; #(
34489 *) have_x=yes;;
34490 esac
34491 eval "$ac_cv_have_x"
34492fi # $with_x != no
34493
34494if test "$have_x" != yes; then
34495 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
34496$as_echo "$have_x" >&6; }
34497 no_x=yes
34498else
34499 # If each of the values was on the command line, it overrides each guess.
34500 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
34501 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
34502 # Update the cache value to reflect the command line values.
34503 ac_cv_have_x="have_x=yes\
34504 ac_x_includes='$x_includes'\
34505 ac_x_libraries='$x_libraries'"
34506 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
34507$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
34508fi
34509
cristy3ed852e2009-09-05 21:47:34 +000034510if test "$no_x" = yes; then
34511 # Not all programs may use this symbol, but it does not hurt to define it.
34512
34513cat >>confdefs.h <<\_ACEOF
34514#define X_DISPLAY_MISSING 1
34515_ACEOF
34516
34517 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
34518else
34519 if test -n "$x_includes"; then
34520 X_CFLAGS="$X_CFLAGS -I$x_includes"
34521 fi
34522
34523 # It would also be nice to do this for all -L options, not just this one.
34524 if test -n "$x_libraries"; then
34525 X_LIBS="$X_LIBS -L$x_libraries"
34526 # For Solaris; some versions of Sun CC require a space after -R and
34527 # others require no space. Words are not sufficient . . . .
34528 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
34529$as_echo_n "checking whether -R must be followed by a space... " >&6; }
34530 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
34531 ac_xsave_c_werror_flag=$ac_c_werror_flag
34532 ac_c_werror_flag=yes
34533 cat >conftest.$ac_ext <<_ACEOF
34534/* confdefs.h. */
34535_ACEOF
34536cat confdefs.h >>conftest.$ac_ext
34537cat >>conftest.$ac_ext <<_ACEOF
34538/* end confdefs.h. */
34539
34540int
34541main ()
34542{
34543
34544 ;
34545 return 0;
34546}
34547_ACEOF
34548rm -f conftest.$ac_objext conftest$ac_exeext
34549if { (ac_try="$ac_link"
34550case "(($ac_try" in
34551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34552 *) ac_try_echo=$ac_try;;
34553esac
34554eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34555$as_echo "$ac_try_echo") >&5
34556 (eval "$ac_link") 2>conftest.er1
34557 ac_status=$?
34558 grep -v '^ *+' conftest.er1 >conftest.err
34559 rm -f conftest.er1
34560 cat conftest.err >&5
34561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34562 (exit $ac_status); } && {
34563 test -z "$ac_c_werror_flag" ||
34564 test ! -s conftest.err
34565 } && test -s conftest$ac_exeext && {
34566 test "$cross_compiling" = yes ||
34567 $as_test_x conftest$ac_exeext
34568 }; then
34569 { $as_echo "$as_me:$LINENO: result: no" >&5
34570$as_echo "no" >&6; }
34571 X_LIBS="$X_LIBS -R$x_libraries"
34572else
34573 $as_echo "$as_me: failed program was:" >&5
34574sed 's/^/| /' conftest.$ac_ext >&5
34575
34576 LIBS="$ac_xsave_LIBS -R $x_libraries"
34577 cat >conftest.$ac_ext <<_ACEOF
34578/* confdefs.h. */
34579_ACEOF
34580cat confdefs.h >>conftest.$ac_ext
34581cat >>conftest.$ac_ext <<_ACEOF
34582/* end confdefs.h. */
34583
34584int
34585main ()
34586{
34587
34588 ;
34589 return 0;
34590}
34591_ACEOF
34592rm -f conftest.$ac_objext conftest$ac_exeext
34593if { (ac_try="$ac_link"
34594case "(($ac_try" in
34595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34596 *) ac_try_echo=$ac_try;;
34597esac
34598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34599$as_echo "$ac_try_echo") >&5
34600 (eval "$ac_link") 2>conftest.er1
34601 ac_status=$?
34602 grep -v '^ *+' conftest.er1 >conftest.err
34603 rm -f conftest.er1
34604 cat conftest.err >&5
34605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34606 (exit $ac_status); } && {
34607 test -z "$ac_c_werror_flag" ||
34608 test ! -s conftest.err
34609 } && test -s conftest$ac_exeext && {
34610 test "$cross_compiling" = yes ||
34611 $as_test_x conftest$ac_exeext
34612 }; then
34613 { $as_echo "$as_me:$LINENO: result: yes" >&5
34614$as_echo "yes" >&6; }
34615 X_LIBS="$X_LIBS -R $x_libraries"
34616else
34617 $as_echo "$as_me: failed program was:" >&5
34618sed 's/^/| /' conftest.$ac_ext >&5
34619
34620 { $as_echo "$as_me:$LINENO: result: neither works" >&5
34621$as_echo "neither works" >&6; }
34622fi
34623
34624rm -rf conftest.dSYM
34625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34626 conftest$ac_exeext conftest.$ac_ext
34627fi
34628
34629rm -rf conftest.dSYM
34630rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34631 conftest$ac_exeext conftest.$ac_ext
34632 ac_c_werror_flag=$ac_xsave_c_werror_flag
34633 LIBS=$ac_xsave_LIBS
34634 fi
34635
34636 # Check for system-dependent libraries X programs must link with.
34637 # Do this before checking for the system-independent R6 libraries
34638 # (-lICE), since we may need -lsocket or whatever for X linking.
34639
34640 if test "$ISC" = yes; then
34641 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
34642 else
34643 # Martyn Johnson says this is needed for Ultrix, if the X
34644 # libraries were built with DECnet support. And Karl Berry says
34645 # the Alpha needs dnet_stub (dnet does not exist).
34646 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
34647 cat >conftest.$ac_ext <<_ACEOF
34648/* confdefs.h. */
34649_ACEOF
34650cat confdefs.h >>conftest.$ac_ext
34651cat >>conftest.$ac_ext <<_ACEOF
34652/* end confdefs.h. */
34653
34654/* Override any GCC internal prototype to avoid an error.
34655 Use char because int might match the return type of a GCC
34656 builtin and then its argument prototype would still apply. */
34657#ifdef __cplusplus
34658extern "C"
34659#endif
34660char XOpenDisplay ();
34661int
34662main ()
34663{
34664return XOpenDisplay ();
34665 ;
34666 return 0;
34667}
34668_ACEOF
34669rm -f conftest.$ac_objext conftest$ac_exeext
34670if { (ac_try="$ac_link"
34671case "(($ac_try" in
34672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34673 *) ac_try_echo=$ac_try;;
34674esac
34675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34676$as_echo "$ac_try_echo") >&5
34677 (eval "$ac_link") 2>conftest.er1
34678 ac_status=$?
34679 grep -v '^ *+' conftest.er1 >conftest.err
34680 rm -f conftest.er1
34681 cat conftest.err >&5
34682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683 (exit $ac_status); } && {
34684 test -z "$ac_c_werror_flag" ||
34685 test ! -s conftest.err
34686 } && test -s conftest$ac_exeext && {
34687 test "$cross_compiling" = yes ||
34688 $as_test_x conftest$ac_exeext
34689 }; then
34690 :
34691else
34692 $as_echo "$as_me: failed program was:" >&5
34693sed 's/^/| /' conftest.$ac_ext >&5
34694
34695 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
34696$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
34697if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
34698 $as_echo_n "(cached) " >&6
34699else
34700 ac_check_lib_save_LIBS=$LIBS
34701LIBS="-ldnet $LIBS"
34702cat >conftest.$ac_ext <<_ACEOF
34703/* confdefs.h. */
34704_ACEOF
34705cat confdefs.h >>conftest.$ac_ext
34706cat >>conftest.$ac_ext <<_ACEOF
34707/* end confdefs.h. */
34708
34709/* Override any GCC internal prototype to avoid an error.
34710 Use char because int might match the return type of a GCC
34711 builtin and then its argument prototype would still apply. */
34712#ifdef __cplusplus
34713extern "C"
34714#endif
34715char dnet_ntoa ();
34716int
34717main ()
34718{
34719return dnet_ntoa ();
34720 ;
34721 return 0;
34722}
34723_ACEOF
34724rm -f conftest.$ac_objext conftest$ac_exeext
34725if { (ac_try="$ac_link"
34726case "(($ac_try" in
34727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34728 *) ac_try_echo=$ac_try;;
34729esac
34730eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34731$as_echo "$ac_try_echo") >&5
34732 (eval "$ac_link") 2>conftest.er1
34733 ac_status=$?
34734 grep -v '^ *+' conftest.er1 >conftest.err
34735 rm -f conftest.er1
34736 cat conftest.err >&5
34737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34738 (exit $ac_status); } && {
34739 test -z "$ac_c_werror_flag" ||
34740 test ! -s conftest.err
34741 } && test -s conftest$ac_exeext && {
34742 test "$cross_compiling" = yes ||
34743 $as_test_x conftest$ac_exeext
34744 }; then
34745 ac_cv_lib_dnet_dnet_ntoa=yes
34746else
34747 $as_echo "$as_me: failed program was:" >&5
34748sed 's/^/| /' conftest.$ac_ext >&5
34749
34750 ac_cv_lib_dnet_dnet_ntoa=no
34751fi
34752
34753rm -rf conftest.dSYM
34754rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34755 conftest$ac_exeext conftest.$ac_ext
34756LIBS=$ac_check_lib_save_LIBS
34757fi
34758{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
34759$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
34760if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
34761 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
34762fi
34763
34764 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
34765 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
34766$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
34767if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
34768 $as_echo_n "(cached) " >&6
34769else
34770 ac_check_lib_save_LIBS=$LIBS
34771LIBS="-ldnet_stub $LIBS"
34772cat >conftest.$ac_ext <<_ACEOF
34773/* confdefs.h. */
34774_ACEOF
34775cat confdefs.h >>conftest.$ac_ext
34776cat >>conftest.$ac_ext <<_ACEOF
34777/* end confdefs.h. */
34778
34779/* Override any GCC internal prototype to avoid an error.
34780 Use char because int might match the return type of a GCC
34781 builtin and then its argument prototype would still apply. */
34782#ifdef __cplusplus
34783extern "C"
34784#endif
34785char dnet_ntoa ();
34786int
34787main ()
34788{
34789return dnet_ntoa ();
34790 ;
34791 return 0;
34792}
34793_ACEOF
34794rm -f conftest.$ac_objext conftest$ac_exeext
34795if { (ac_try="$ac_link"
34796case "(($ac_try" in
34797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34798 *) ac_try_echo=$ac_try;;
34799esac
34800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34801$as_echo "$ac_try_echo") >&5
34802 (eval "$ac_link") 2>conftest.er1
34803 ac_status=$?
34804 grep -v '^ *+' conftest.er1 >conftest.err
34805 rm -f conftest.er1
34806 cat conftest.err >&5
34807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34808 (exit $ac_status); } && {
34809 test -z "$ac_c_werror_flag" ||
34810 test ! -s conftest.err
34811 } && test -s conftest$ac_exeext && {
34812 test "$cross_compiling" = yes ||
34813 $as_test_x conftest$ac_exeext
34814 }; then
34815 ac_cv_lib_dnet_stub_dnet_ntoa=yes
34816else
34817 $as_echo "$as_me: failed program was:" >&5
34818sed 's/^/| /' conftest.$ac_ext >&5
34819
34820 ac_cv_lib_dnet_stub_dnet_ntoa=no
34821fi
34822
34823rm -rf conftest.dSYM
34824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34825 conftest$ac_exeext conftest.$ac_ext
34826LIBS=$ac_check_lib_save_LIBS
34827fi
34828{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
34829$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
34830if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
34831 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
34832fi
34833
34834 fi
34835fi
34836
34837rm -rf conftest.dSYM
34838rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34839 conftest$ac_exeext conftest.$ac_ext
34840 LIBS="$ac_xsave_LIBS"
34841
34842 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
34843 # to get the SysV transport functions.
34844 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
34845 # needs -lnsl.
34846 # The nsl library prevents programs from opening the X display
34847 # on Irix 5.2, according to T.E. Dickey.
34848 # The functions gethostbyname, getservbyname, and inet_addr are
34849 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
34850 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
34851$as_echo_n "checking for gethostbyname... " >&6; }
34852if test "${ac_cv_func_gethostbyname+set}" = set; then
34853 $as_echo_n "(cached) " >&6
34854else
34855 cat >conftest.$ac_ext <<_ACEOF
34856/* confdefs.h. */
34857_ACEOF
34858cat confdefs.h >>conftest.$ac_ext
34859cat >>conftest.$ac_ext <<_ACEOF
34860/* end confdefs.h. */
34861/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
34862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34863#define gethostbyname innocuous_gethostbyname
34864
34865/* System header to define __stub macros and hopefully few prototypes,
34866 which can conflict with char gethostbyname (); below.
34867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34868 <limits.h> exists even on freestanding compilers. */
34869
34870#ifdef __STDC__
34871# include <limits.h>
34872#else
34873# include <assert.h>
34874#endif
34875
34876#undef gethostbyname
34877
34878/* Override any GCC internal prototype to avoid an error.
34879 Use char because int might match the return type of a GCC
34880 builtin and then its argument prototype would still apply. */
34881#ifdef __cplusplus
34882extern "C"
34883#endif
34884char gethostbyname ();
34885/* The GNU C library defines this for functions which it implements
34886 to always fail with ENOSYS. Some functions are actually named
34887 something starting with __ and the normal name is an alias. */
34888#if defined __stub_gethostbyname || defined __stub___gethostbyname
34889choke me
34890#endif
34891
34892int
34893main ()
34894{
34895return gethostbyname ();
34896 ;
34897 return 0;
34898}
34899_ACEOF
34900rm -f conftest.$ac_objext conftest$ac_exeext
34901if { (ac_try="$ac_link"
34902case "(($ac_try" in
34903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34904 *) ac_try_echo=$ac_try;;
34905esac
34906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34907$as_echo "$ac_try_echo") >&5
34908 (eval "$ac_link") 2>conftest.er1
34909 ac_status=$?
34910 grep -v '^ *+' conftest.er1 >conftest.err
34911 rm -f conftest.er1
34912 cat conftest.err >&5
34913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34914 (exit $ac_status); } && {
34915 test -z "$ac_c_werror_flag" ||
34916 test ! -s conftest.err
34917 } && test -s conftest$ac_exeext && {
34918 test "$cross_compiling" = yes ||
34919 $as_test_x conftest$ac_exeext
34920 }; then
34921 ac_cv_func_gethostbyname=yes
34922else
34923 $as_echo "$as_me: failed program was:" >&5
34924sed 's/^/| /' conftest.$ac_ext >&5
34925
34926 ac_cv_func_gethostbyname=no
34927fi
34928
34929rm -rf conftest.dSYM
34930rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34931 conftest$ac_exeext conftest.$ac_ext
34932fi
34933{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
34934$as_echo "$ac_cv_func_gethostbyname" >&6; }
34935
34936 if test $ac_cv_func_gethostbyname = no; then
34937 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
34938$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
34939if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
34940 $as_echo_n "(cached) " >&6
34941else
34942 ac_check_lib_save_LIBS=$LIBS
34943LIBS="-lnsl $LIBS"
34944cat >conftest.$ac_ext <<_ACEOF
34945/* confdefs.h. */
34946_ACEOF
34947cat confdefs.h >>conftest.$ac_ext
34948cat >>conftest.$ac_ext <<_ACEOF
34949/* end confdefs.h. */
34950
34951/* Override any GCC internal prototype to avoid an error.
34952 Use char because int might match the return type of a GCC
34953 builtin and then its argument prototype would still apply. */
34954#ifdef __cplusplus
34955extern "C"
34956#endif
34957char gethostbyname ();
34958int
34959main ()
34960{
34961return gethostbyname ();
34962 ;
34963 return 0;
34964}
34965_ACEOF
34966rm -f conftest.$ac_objext conftest$ac_exeext
34967if { (ac_try="$ac_link"
34968case "(($ac_try" in
34969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34970 *) ac_try_echo=$ac_try;;
34971esac
34972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34973$as_echo "$ac_try_echo") >&5
34974 (eval "$ac_link") 2>conftest.er1
34975 ac_status=$?
34976 grep -v '^ *+' conftest.er1 >conftest.err
34977 rm -f conftest.er1
34978 cat conftest.err >&5
34979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34980 (exit $ac_status); } && {
34981 test -z "$ac_c_werror_flag" ||
34982 test ! -s conftest.err
34983 } && test -s conftest$ac_exeext && {
34984 test "$cross_compiling" = yes ||
34985 $as_test_x conftest$ac_exeext
34986 }; then
34987 ac_cv_lib_nsl_gethostbyname=yes
34988else
34989 $as_echo "$as_me: failed program was:" >&5
34990sed 's/^/| /' conftest.$ac_ext >&5
34991
34992 ac_cv_lib_nsl_gethostbyname=no
34993fi
34994
34995rm -rf conftest.dSYM
34996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34997 conftest$ac_exeext conftest.$ac_ext
34998LIBS=$ac_check_lib_save_LIBS
34999fi
35000{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
35001$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
35002if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
35003 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
35004fi
35005
35006 if test $ac_cv_lib_nsl_gethostbyname = no; then
35007 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
35008$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
35009if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
35010 $as_echo_n "(cached) " >&6
35011else
35012 ac_check_lib_save_LIBS=$LIBS
35013LIBS="-lbsd $LIBS"
35014cat >conftest.$ac_ext <<_ACEOF
35015/* confdefs.h. */
35016_ACEOF
35017cat confdefs.h >>conftest.$ac_ext
35018cat >>conftest.$ac_ext <<_ACEOF
35019/* end confdefs.h. */
35020
35021/* Override any GCC internal prototype to avoid an error.
35022 Use char because int might match the return type of a GCC
35023 builtin and then its argument prototype would still apply. */
35024#ifdef __cplusplus
35025extern "C"
35026#endif
35027char gethostbyname ();
35028int
35029main ()
35030{
35031return gethostbyname ();
35032 ;
35033 return 0;
35034}
35035_ACEOF
35036rm -f conftest.$ac_objext conftest$ac_exeext
35037if { (ac_try="$ac_link"
35038case "(($ac_try" in
35039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35040 *) ac_try_echo=$ac_try;;
35041esac
35042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35043$as_echo "$ac_try_echo") >&5
35044 (eval "$ac_link") 2>conftest.er1
35045 ac_status=$?
35046 grep -v '^ *+' conftest.er1 >conftest.err
35047 rm -f conftest.er1
35048 cat conftest.err >&5
35049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050 (exit $ac_status); } && {
35051 test -z "$ac_c_werror_flag" ||
35052 test ! -s conftest.err
35053 } && test -s conftest$ac_exeext && {
35054 test "$cross_compiling" = yes ||
35055 $as_test_x conftest$ac_exeext
35056 }; then
35057 ac_cv_lib_bsd_gethostbyname=yes
35058else
35059 $as_echo "$as_me: failed program was:" >&5
35060sed 's/^/| /' conftest.$ac_ext >&5
35061
35062 ac_cv_lib_bsd_gethostbyname=no
35063fi
35064
35065rm -rf conftest.dSYM
35066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35067 conftest$ac_exeext conftest.$ac_ext
35068LIBS=$ac_check_lib_save_LIBS
35069fi
35070{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
35071$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
35072if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
35073 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
35074fi
35075
35076 fi
35077 fi
35078
35079 # lieder@skyler.mavd.honeywell.com says without -lsocket,
35080 # socket/setsockopt and other routines are undefined under SCO ODT
35081 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
35082 # on later versions), says Simon Leinen: it contains gethostby*
35083 # variants that don't use the name server (or something). -lsocket
35084 # must be given before -lnsl if both are needed. We assume that
35085 # if connect needs -lnsl, so does gethostbyname.
35086 { $as_echo "$as_me:$LINENO: checking for connect" >&5
35087$as_echo_n "checking for connect... " >&6; }
35088if test "${ac_cv_func_connect+set}" = set; then
35089 $as_echo_n "(cached) " >&6
35090else
35091 cat >conftest.$ac_ext <<_ACEOF
35092/* confdefs.h. */
35093_ACEOF
35094cat confdefs.h >>conftest.$ac_ext
35095cat >>conftest.$ac_ext <<_ACEOF
35096/* end confdefs.h. */
35097/* Define connect to an innocuous variant, in case <limits.h> declares connect.
35098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35099#define connect innocuous_connect
35100
35101/* System header to define __stub macros and hopefully few prototypes,
35102 which can conflict with char connect (); below.
35103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35104 <limits.h> exists even on freestanding compilers. */
35105
35106#ifdef __STDC__
35107# include <limits.h>
35108#else
35109# include <assert.h>
35110#endif
35111
35112#undef connect
35113
35114/* Override any GCC internal prototype to avoid an error.
35115 Use char because int might match the return type of a GCC
35116 builtin and then its argument prototype would still apply. */
35117#ifdef __cplusplus
35118extern "C"
35119#endif
35120char connect ();
35121/* The GNU C library defines this for functions which it implements
35122 to always fail with ENOSYS. Some functions are actually named
35123 something starting with __ and the normal name is an alias. */
35124#if defined __stub_connect || defined __stub___connect
35125choke me
35126#endif
35127
35128int
35129main ()
35130{
35131return connect ();
35132 ;
35133 return 0;
35134}
35135_ACEOF
35136rm -f conftest.$ac_objext conftest$ac_exeext
35137if { (ac_try="$ac_link"
35138case "(($ac_try" in
35139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35140 *) ac_try_echo=$ac_try;;
35141esac
35142eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35143$as_echo "$ac_try_echo") >&5
35144 (eval "$ac_link") 2>conftest.er1
35145 ac_status=$?
35146 grep -v '^ *+' conftest.er1 >conftest.err
35147 rm -f conftest.er1
35148 cat conftest.err >&5
35149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35150 (exit $ac_status); } && {
35151 test -z "$ac_c_werror_flag" ||
35152 test ! -s conftest.err
35153 } && test -s conftest$ac_exeext && {
35154 test "$cross_compiling" = yes ||
35155 $as_test_x conftest$ac_exeext
35156 }; then
35157 ac_cv_func_connect=yes
35158else
35159 $as_echo "$as_me: failed program was:" >&5
35160sed 's/^/| /' conftest.$ac_ext >&5
35161
35162 ac_cv_func_connect=no
35163fi
35164
35165rm -rf conftest.dSYM
35166rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35167 conftest$ac_exeext conftest.$ac_ext
35168fi
35169{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
35170$as_echo "$ac_cv_func_connect" >&6; }
35171
35172 if test $ac_cv_func_connect = no; then
35173 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
35174$as_echo_n "checking for connect in -lsocket... " >&6; }
35175if test "${ac_cv_lib_socket_connect+set}" = set; then
35176 $as_echo_n "(cached) " >&6
35177else
35178 ac_check_lib_save_LIBS=$LIBS
35179LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
35180cat >conftest.$ac_ext <<_ACEOF
35181/* confdefs.h. */
35182_ACEOF
35183cat confdefs.h >>conftest.$ac_ext
35184cat >>conftest.$ac_ext <<_ACEOF
35185/* end confdefs.h. */
35186
35187/* Override any GCC internal prototype to avoid an error.
35188 Use char because int might match the return type of a GCC
35189 builtin and then its argument prototype would still apply. */
35190#ifdef __cplusplus
35191extern "C"
35192#endif
35193char connect ();
35194int
35195main ()
35196{
35197return connect ();
35198 ;
35199 return 0;
35200}
35201_ACEOF
35202rm -f conftest.$ac_objext conftest$ac_exeext
35203if { (ac_try="$ac_link"
35204case "(($ac_try" in
35205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35206 *) ac_try_echo=$ac_try;;
35207esac
35208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35209$as_echo "$ac_try_echo") >&5
35210 (eval "$ac_link") 2>conftest.er1
35211 ac_status=$?
35212 grep -v '^ *+' conftest.er1 >conftest.err
35213 rm -f conftest.er1
35214 cat conftest.err >&5
35215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35216 (exit $ac_status); } && {
35217 test -z "$ac_c_werror_flag" ||
35218 test ! -s conftest.err
35219 } && test -s conftest$ac_exeext && {
35220 test "$cross_compiling" = yes ||
35221 $as_test_x conftest$ac_exeext
35222 }; then
35223 ac_cv_lib_socket_connect=yes
35224else
35225 $as_echo "$as_me: failed program was:" >&5
35226sed 's/^/| /' conftest.$ac_ext >&5
35227
35228 ac_cv_lib_socket_connect=no
35229fi
35230
35231rm -rf conftest.dSYM
35232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35233 conftest$ac_exeext conftest.$ac_ext
35234LIBS=$ac_check_lib_save_LIBS
35235fi
35236{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
35237$as_echo "$ac_cv_lib_socket_connect" >&6; }
35238if test "x$ac_cv_lib_socket_connect" = x""yes; then
35239 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
35240fi
35241
35242 fi
35243
35244 # Guillermo Gomez says -lposix is necessary on A/UX.
35245 { $as_echo "$as_me:$LINENO: checking for remove" >&5
35246$as_echo_n "checking for remove... " >&6; }
35247if test "${ac_cv_func_remove+set}" = set; then
35248 $as_echo_n "(cached) " >&6
35249else
35250 cat >conftest.$ac_ext <<_ACEOF
35251/* confdefs.h. */
35252_ACEOF
35253cat confdefs.h >>conftest.$ac_ext
35254cat >>conftest.$ac_ext <<_ACEOF
35255/* end confdefs.h. */
35256/* Define remove to an innocuous variant, in case <limits.h> declares remove.
35257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35258#define remove innocuous_remove
35259
35260/* System header to define __stub macros and hopefully few prototypes,
35261 which can conflict with char remove (); below.
35262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35263 <limits.h> exists even on freestanding compilers. */
35264
35265#ifdef __STDC__
35266# include <limits.h>
35267#else
35268# include <assert.h>
35269#endif
35270
35271#undef remove
35272
35273/* Override any GCC internal prototype to avoid an error.
35274 Use char because int might match the return type of a GCC
35275 builtin and then its argument prototype would still apply. */
35276#ifdef __cplusplus
35277extern "C"
35278#endif
35279char remove ();
35280/* The GNU C library defines this for functions which it implements
35281 to always fail with ENOSYS. Some functions are actually named
35282 something starting with __ and the normal name is an alias. */
35283#if defined __stub_remove || defined __stub___remove
35284choke me
35285#endif
35286
35287int
35288main ()
35289{
35290return remove ();
35291 ;
35292 return 0;
35293}
35294_ACEOF
35295rm -f conftest.$ac_objext conftest$ac_exeext
35296if { (ac_try="$ac_link"
35297case "(($ac_try" in
35298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35299 *) ac_try_echo=$ac_try;;
35300esac
35301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35302$as_echo "$ac_try_echo") >&5
35303 (eval "$ac_link") 2>conftest.er1
35304 ac_status=$?
35305 grep -v '^ *+' conftest.er1 >conftest.err
35306 rm -f conftest.er1
35307 cat conftest.err >&5
35308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309 (exit $ac_status); } && {
35310 test -z "$ac_c_werror_flag" ||
35311 test ! -s conftest.err
35312 } && test -s conftest$ac_exeext && {
35313 test "$cross_compiling" = yes ||
35314 $as_test_x conftest$ac_exeext
35315 }; then
35316 ac_cv_func_remove=yes
35317else
35318 $as_echo "$as_me: failed program was:" >&5
35319sed 's/^/| /' conftest.$ac_ext >&5
35320
35321 ac_cv_func_remove=no
35322fi
35323
35324rm -rf conftest.dSYM
35325rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35326 conftest$ac_exeext conftest.$ac_ext
35327fi
35328{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
35329$as_echo "$ac_cv_func_remove" >&6; }
35330
35331 if test $ac_cv_func_remove = no; then
35332 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
35333$as_echo_n "checking for remove in -lposix... " >&6; }
35334if test "${ac_cv_lib_posix_remove+set}" = set; then
35335 $as_echo_n "(cached) " >&6
35336else
35337 ac_check_lib_save_LIBS=$LIBS
35338LIBS="-lposix $LIBS"
35339cat >conftest.$ac_ext <<_ACEOF
35340/* confdefs.h. */
35341_ACEOF
35342cat confdefs.h >>conftest.$ac_ext
35343cat >>conftest.$ac_ext <<_ACEOF
35344/* end confdefs.h. */
35345
35346/* Override any GCC internal prototype to avoid an error.
35347 Use char because int might match the return type of a GCC
35348 builtin and then its argument prototype would still apply. */
35349#ifdef __cplusplus
35350extern "C"
35351#endif
35352char remove ();
35353int
35354main ()
35355{
35356return remove ();
35357 ;
35358 return 0;
35359}
35360_ACEOF
35361rm -f conftest.$ac_objext conftest$ac_exeext
35362if { (ac_try="$ac_link"
35363case "(($ac_try" in
35364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35365 *) ac_try_echo=$ac_try;;
35366esac
35367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35368$as_echo "$ac_try_echo") >&5
35369 (eval "$ac_link") 2>conftest.er1
35370 ac_status=$?
35371 grep -v '^ *+' conftest.er1 >conftest.err
35372 rm -f conftest.er1
35373 cat conftest.err >&5
35374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35375 (exit $ac_status); } && {
35376 test -z "$ac_c_werror_flag" ||
35377 test ! -s conftest.err
35378 } && test -s conftest$ac_exeext && {
35379 test "$cross_compiling" = yes ||
35380 $as_test_x conftest$ac_exeext
35381 }; then
35382 ac_cv_lib_posix_remove=yes
35383else
35384 $as_echo "$as_me: failed program was:" >&5
35385sed 's/^/| /' conftest.$ac_ext >&5
35386
35387 ac_cv_lib_posix_remove=no
35388fi
35389
35390rm -rf conftest.dSYM
35391rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35392 conftest$ac_exeext conftest.$ac_ext
35393LIBS=$ac_check_lib_save_LIBS
35394fi
35395{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
35396$as_echo "$ac_cv_lib_posix_remove" >&6; }
35397if test "x$ac_cv_lib_posix_remove" = x""yes; then
35398 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
35399fi
35400
35401 fi
35402
35403 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
35404 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
35405$as_echo_n "checking for shmat... " >&6; }
35406if test "${ac_cv_func_shmat+set}" = set; then
35407 $as_echo_n "(cached) " >&6
35408else
35409 cat >conftest.$ac_ext <<_ACEOF
35410/* confdefs.h. */
35411_ACEOF
35412cat confdefs.h >>conftest.$ac_ext
35413cat >>conftest.$ac_ext <<_ACEOF
35414/* end confdefs.h. */
35415/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
35416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35417#define shmat innocuous_shmat
35418
35419/* System header to define __stub macros and hopefully few prototypes,
35420 which can conflict with char shmat (); below.
35421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35422 <limits.h> exists even on freestanding compilers. */
35423
35424#ifdef __STDC__
35425# include <limits.h>
35426#else
35427# include <assert.h>
35428#endif
35429
35430#undef shmat
35431
35432/* Override any GCC internal prototype to avoid an error.
35433 Use char because int might match the return type of a GCC
35434 builtin and then its argument prototype would still apply. */
35435#ifdef __cplusplus
35436extern "C"
35437#endif
35438char shmat ();
35439/* The GNU C library defines this for functions which it implements
35440 to always fail with ENOSYS. Some functions are actually named
35441 something starting with __ and the normal name is an alias. */
35442#if defined __stub_shmat || defined __stub___shmat
35443choke me
35444#endif
35445
35446int
35447main ()
35448{
35449return shmat ();
35450 ;
35451 return 0;
35452}
35453_ACEOF
35454rm -f conftest.$ac_objext conftest$ac_exeext
35455if { (ac_try="$ac_link"
35456case "(($ac_try" in
35457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35458 *) ac_try_echo=$ac_try;;
35459esac
35460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35461$as_echo "$ac_try_echo") >&5
35462 (eval "$ac_link") 2>conftest.er1
35463 ac_status=$?
35464 grep -v '^ *+' conftest.er1 >conftest.err
35465 rm -f conftest.er1
35466 cat conftest.err >&5
35467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35468 (exit $ac_status); } && {
35469 test -z "$ac_c_werror_flag" ||
35470 test ! -s conftest.err
35471 } && test -s conftest$ac_exeext && {
35472 test "$cross_compiling" = yes ||
35473 $as_test_x conftest$ac_exeext
35474 }; then
35475 ac_cv_func_shmat=yes
35476else
35477 $as_echo "$as_me: failed program was:" >&5
35478sed 's/^/| /' conftest.$ac_ext >&5
35479
35480 ac_cv_func_shmat=no
35481fi
35482
35483rm -rf conftest.dSYM
35484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35485 conftest$ac_exeext conftest.$ac_ext
35486fi
35487{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
35488$as_echo "$ac_cv_func_shmat" >&6; }
35489
35490 if test $ac_cv_func_shmat = no; then
35491 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
35492$as_echo_n "checking for shmat in -lipc... " >&6; }
35493if test "${ac_cv_lib_ipc_shmat+set}" = set; then
35494 $as_echo_n "(cached) " >&6
35495else
35496 ac_check_lib_save_LIBS=$LIBS
35497LIBS="-lipc $LIBS"
35498cat >conftest.$ac_ext <<_ACEOF
35499/* confdefs.h. */
35500_ACEOF
35501cat confdefs.h >>conftest.$ac_ext
35502cat >>conftest.$ac_ext <<_ACEOF
35503/* end confdefs.h. */
35504
35505/* Override any GCC internal prototype to avoid an error.
35506 Use char because int might match the return type of a GCC
35507 builtin and then its argument prototype would still apply. */
35508#ifdef __cplusplus
35509extern "C"
35510#endif
35511char shmat ();
35512int
35513main ()
35514{
35515return shmat ();
35516 ;
35517 return 0;
35518}
35519_ACEOF
35520rm -f conftest.$ac_objext conftest$ac_exeext
35521if { (ac_try="$ac_link"
35522case "(($ac_try" in
35523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35524 *) ac_try_echo=$ac_try;;
35525esac
35526eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35527$as_echo "$ac_try_echo") >&5
35528 (eval "$ac_link") 2>conftest.er1
35529 ac_status=$?
35530 grep -v '^ *+' conftest.er1 >conftest.err
35531 rm -f conftest.er1
35532 cat conftest.err >&5
35533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35534 (exit $ac_status); } && {
35535 test -z "$ac_c_werror_flag" ||
35536 test ! -s conftest.err
35537 } && test -s conftest$ac_exeext && {
35538 test "$cross_compiling" = yes ||
35539 $as_test_x conftest$ac_exeext
35540 }; then
35541 ac_cv_lib_ipc_shmat=yes
35542else
35543 $as_echo "$as_me: failed program was:" >&5
35544sed 's/^/| /' conftest.$ac_ext >&5
35545
35546 ac_cv_lib_ipc_shmat=no
35547fi
35548
35549rm -rf conftest.dSYM
35550rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35551 conftest$ac_exeext conftest.$ac_ext
35552LIBS=$ac_check_lib_save_LIBS
35553fi
35554{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
35555$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
35556if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
35557 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
35558fi
35559
35560 fi
35561 fi
35562
35563 # Check for libraries that X11R6 Xt/Xaw programs need.
35564 ac_save_LDFLAGS=$LDFLAGS
35565 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
35566 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
35567 # check for ICE first), but we must link in the order -lSM -lICE or
35568 # we get undefined symbols. So assume we have SM if we have ICE.
35569 # These have to be linked with before -lX11, unlike the other
35570 # libraries we check for below, so use a different variable.
35571 # John Interrante, Karl Berry
35572 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
35573$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
35574if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
35575 $as_echo_n "(cached) " >&6
35576else
35577 ac_check_lib_save_LIBS=$LIBS
35578LIBS="-lICE $X_EXTRA_LIBS $LIBS"
35579cat >conftest.$ac_ext <<_ACEOF
35580/* confdefs.h. */
35581_ACEOF
35582cat confdefs.h >>conftest.$ac_ext
35583cat >>conftest.$ac_ext <<_ACEOF
35584/* end confdefs.h. */
35585
35586/* Override any GCC internal prototype to avoid an error.
35587 Use char because int might match the return type of a GCC
35588 builtin and then its argument prototype would still apply. */
35589#ifdef __cplusplus
35590extern "C"
35591#endif
35592char IceConnectionNumber ();
35593int
35594main ()
35595{
35596return IceConnectionNumber ();
35597 ;
35598 return 0;
35599}
35600_ACEOF
35601rm -f conftest.$ac_objext conftest$ac_exeext
35602if { (ac_try="$ac_link"
35603case "(($ac_try" in
35604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35605 *) ac_try_echo=$ac_try;;
35606esac
35607eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35608$as_echo "$ac_try_echo") >&5
35609 (eval "$ac_link") 2>conftest.er1
35610 ac_status=$?
35611 grep -v '^ *+' conftest.er1 >conftest.err
35612 rm -f conftest.er1
35613 cat conftest.err >&5
35614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35615 (exit $ac_status); } && {
35616 test -z "$ac_c_werror_flag" ||
35617 test ! -s conftest.err
35618 } && test -s conftest$ac_exeext && {
35619 test "$cross_compiling" = yes ||
35620 $as_test_x conftest$ac_exeext
35621 }; then
35622 ac_cv_lib_ICE_IceConnectionNumber=yes
35623else
35624 $as_echo "$as_me: failed program was:" >&5
35625sed 's/^/| /' conftest.$ac_ext >&5
35626
35627 ac_cv_lib_ICE_IceConnectionNumber=no
35628fi
35629
35630rm -rf conftest.dSYM
35631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35632 conftest$ac_exeext conftest.$ac_ext
35633LIBS=$ac_check_lib_save_LIBS
35634fi
35635{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
35636$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
35637if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
35638 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
35639fi
35640
35641 LDFLAGS=$ac_save_LDFLAGS
35642
35643fi
35644
35645if test "$no_x" != 'yes'; then
35646 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
35647$as_echo "-------------------------------------------------------------" >&6; }
35648 { $as_echo "$as_me:$LINENO: checking for X11" >&5
35649$as_echo_n "checking for X11... " >&6; }
35650 { $as_echo "$as_me:$LINENO: result: " >&5
35651$as_echo "" >&6; }
35652 LDFLAGS="$LDFLAGS $X_LIBS"
35653 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
35654 LIBS="$X11_LIBS $LIBS"
35655 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
35656
35657
35658cat >>confdefs.h <<\_ACEOF
35659#define X11_DELEGATE 1
35660_ACEOF
35661
35662 #
35663 # Check for X11 shared memory extension
35664 #
35665 # shmctl is required to support the shared memory extension
35666 { $as_echo "$as_me:$LINENO: checking for shmctl" >&5
35667$as_echo_n "checking for shmctl... " >&6; }
35668if test "${ac_cv_func_shmctl+set}" = set; then
35669 $as_echo_n "(cached) " >&6
35670else
35671 cat >conftest.$ac_ext <<_ACEOF
35672/* confdefs.h. */
35673_ACEOF
35674cat confdefs.h >>conftest.$ac_ext
35675cat >>conftest.$ac_ext <<_ACEOF
35676/* end confdefs.h. */
35677/* Define shmctl to an innocuous variant, in case <limits.h> declares shmctl.
35678 For example, HP-UX 11i <limits.h> declares gettimeofday. */
35679#define shmctl innocuous_shmctl
35680
35681/* System header to define __stub macros and hopefully few prototypes,
35682 which can conflict with char shmctl (); below.
35683 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35684 <limits.h> exists even on freestanding compilers. */
35685
35686#ifdef __STDC__
35687# include <limits.h>
35688#else
35689# include <assert.h>
35690#endif
35691
35692#undef shmctl
35693
35694/* Override any GCC internal prototype to avoid an error.
35695 Use char because int might match the return type of a GCC
35696 builtin and then its argument prototype would still apply. */
35697#ifdef __cplusplus
35698extern "C"
35699#endif
35700char shmctl ();
35701/* The GNU C library defines this for functions which it implements
35702 to always fail with ENOSYS. Some functions are actually named
35703 something starting with __ and the normal name is an alias. */
35704#if defined __stub_shmctl || defined __stub___shmctl
35705choke me
35706#endif
35707
35708int
35709main ()
35710{
35711return shmctl ();
35712 ;
35713 return 0;
35714}
35715_ACEOF
35716rm -f conftest.$ac_objext conftest$ac_exeext
35717if { (ac_try="$ac_link"
35718case "(($ac_try" in
35719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35720 *) ac_try_echo=$ac_try;;
35721esac
35722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35723$as_echo "$ac_try_echo") >&5
35724 (eval "$ac_link") 2>conftest.er1
35725 ac_status=$?
35726 grep -v '^ *+' conftest.er1 >conftest.err
35727 rm -f conftest.er1
35728 cat conftest.err >&5
35729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35730 (exit $ac_status); } && {
35731 test -z "$ac_c_werror_flag" ||
35732 test ! -s conftest.err
35733 } && test -s conftest$ac_exeext && {
35734 test "$cross_compiling" = yes ||
35735 $as_test_x conftest$ac_exeext
35736 }; then
35737 ac_cv_func_shmctl=yes
35738else
35739 $as_echo "$as_me: failed program was:" >&5
35740sed 's/^/| /' conftest.$ac_ext >&5
35741
35742 ac_cv_func_shmctl=no
35743fi
35744
35745rm -rf conftest.dSYM
35746rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35747 conftest$ac_exeext conftest.$ac_ext
35748fi
35749{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmctl" >&5
35750$as_echo "$ac_cv_func_shmctl" >&6; }
35751if test "x$ac_cv_func_shmctl" = x""yes; then
35752 have_shmctl='yes'
35753fi
35754
35755 if test "$have_shmctl" != 'yes'; then
35756 PERSIST_LIBS=$LIBS
35757 LIBS="$LIBS -lcygipc"
35758 cat >conftest.$ac_ext <<_ACEOF
35759/* confdefs.h. */
35760_ACEOF
35761cat confdefs.h >>conftest.$ac_ext
35762cat >>conftest.$ac_ext <<_ACEOF
35763/* end confdefs.h. */
35764
35765/* Override any GCC internal prototype to avoid an error.
35766 Use char because int might match the return type of a GCC
35767 builtin and then its argument prototype would still apply. */
35768#ifdef __cplusplus
35769extern "C"
35770#endif
35771char shmctl ();
35772int
35773main ()
35774{
35775return shmctl ();
35776 ;
35777 return 0;
35778}
35779_ACEOF
35780rm -f conftest.$ac_objext conftest$ac_exeext
35781if { (ac_try="$ac_link"
35782case "(($ac_try" in
35783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35784 *) ac_try_echo=$ac_try;;
35785esac
35786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35787$as_echo "$ac_try_echo") >&5
35788 (eval "$ac_link") 2>conftest.er1
35789 ac_status=$?
35790 grep -v '^ *+' conftest.er1 >conftest.err
35791 rm -f conftest.er1
35792 cat conftest.err >&5
35793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35794 (exit $ac_status); } && {
35795 test -z "$ac_c_werror_flag" ||
35796 test ! -s conftest.err
35797 } && test -s conftest$ac_exeext && {
35798 test "$cross_compiling" = yes ||
35799 $as_test_x conftest$ac_exeext
35800 }; then
35801 have_shmctl='yes'; IPC_LIBS='-lcygipc'
35802else
35803 $as_echo "$as_me: failed program was:" >&5
35804sed 's/^/| /' conftest.$ac_ext >&5
35805
35806
35807fi
35808
35809rm -rf conftest.dSYM
35810rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35811 conftest$ac_exeext conftest.$ac_ext
35812 LIBS=$PERSIST_LIBS
35813 fi
35814
35815 if test "$have_shmctl" = 'yes'; then
35816 { $as_echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
35817$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
35818if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
35819 $as_echo_n "(cached) " >&6
35820else
35821 ac_check_lib_save_LIBS=$LIBS
35822LIBS="-lXext $LIBS"
35823cat >conftest.$ac_ext <<_ACEOF
35824/* confdefs.h. */
35825_ACEOF
35826cat confdefs.h >>conftest.$ac_ext
35827cat >>conftest.$ac_ext <<_ACEOF
35828/* end confdefs.h. */
35829
35830/* Override any GCC internal prototype to avoid an error.
35831 Use char because int might match the return type of a GCC
35832 builtin and then its argument prototype would still apply. */
35833#ifdef __cplusplus
35834extern "C"
35835#endif
35836char XShmAttach ();
35837int
35838main ()
35839{
35840return XShmAttach ();
35841 ;
35842 return 0;
35843}
35844_ACEOF
35845rm -f conftest.$ac_objext conftest$ac_exeext
35846if { (ac_try="$ac_link"
35847case "(($ac_try" in
35848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35849 *) ac_try_echo=$ac_try;;
35850esac
35851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35852$as_echo "$ac_try_echo") >&5
35853 (eval "$ac_link") 2>conftest.er1
35854 ac_status=$?
35855 grep -v '^ *+' conftest.er1 >conftest.err
35856 rm -f conftest.er1
35857 cat conftest.err >&5
35858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859 (exit $ac_status); } && {
35860 test -z "$ac_c_werror_flag" ||
35861 test ! -s conftest.err
35862 } && test -s conftest$ac_exeext && {
35863 test "$cross_compiling" = yes ||
35864 $as_test_x conftest$ac_exeext
35865 }; then
35866 ac_cv_lib_Xext_XShmAttach=yes
35867else
35868 $as_echo "$as_me: failed program was:" >&5
35869sed 's/^/| /' conftest.$ac_ext >&5
35870
35871 ac_cv_lib_Xext_XShmAttach=no
35872fi
35873
35874rm -rf conftest.dSYM
35875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35876 conftest$ac_exeext conftest.$ac_ext
35877LIBS=$ac_check_lib_save_LIBS
35878fi
35879{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
35880$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
35881if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then
35882 XEXT_LIBS='-lXext' ;
35883cat >>confdefs.h <<\_ACEOF
35884#define HAVE_SHARED_MEMORY 1
35885_ACEOF
35886
35887fi
35888
35889 fi
35890
35891 #
35892 # Check for X11 shape extension
35893 #
35894 { $as_echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
35895$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
35896if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
35897 $as_echo_n "(cached) " >&6
35898else
35899 ac_check_lib_save_LIBS=$LIBS
35900LIBS="-lXext $LIBS"
35901cat >conftest.$ac_ext <<_ACEOF
35902/* confdefs.h. */
35903_ACEOF
35904cat confdefs.h >>conftest.$ac_ext
35905cat >>conftest.$ac_ext <<_ACEOF
35906/* end confdefs.h. */
35907
35908/* Override any GCC internal prototype to avoid an error.
35909 Use char because int might match the return type of a GCC
35910 builtin and then its argument prototype would still apply. */
35911#ifdef __cplusplus
35912extern "C"
35913#endif
35914char XShapeCombineMask ();
35915int
35916main ()
35917{
35918return XShapeCombineMask ();
35919 ;
35920 return 0;
35921}
35922_ACEOF
35923rm -f conftest.$ac_objext conftest$ac_exeext
35924if { (ac_try="$ac_link"
35925case "(($ac_try" in
35926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35927 *) ac_try_echo=$ac_try;;
35928esac
35929eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35930$as_echo "$ac_try_echo") >&5
35931 (eval "$ac_link") 2>conftest.er1
35932 ac_status=$?
35933 grep -v '^ *+' conftest.er1 >conftest.err
35934 rm -f conftest.er1
35935 cat conftest.err >&5
35936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35937 (exit $ac_status); } && {
35938 test -z "$ac_c_werror_flag" ||
35939 test ! -s conftest.err
35940 } && test -s conftest$ac_exeext && {
35941 test "$cross_compiling" = yes ||
35942 $as_test_x conftest$ac_exeext
35943 }; then
35944 ac_cv_lib_Xext_XShapeCombineMask=yes
35945else
35946 $as_echo "$as_me: failed program was:" >&5
35947sed 's/^/| /' conftest.$ac_ext >&5
35948
35949 ac_cv_lib_Xext_XShapeCombineMask=no
35950fi
35951
35952rm -rf conftest.dSYM
35953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35954 conftest$ac_exeext conftest.$ac_ext
35955LIBS=$ac_check_lib_save_LIBS
35956fi
35957{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
35958$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
35959if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then
35960 XEXT_LIBS='-lXext' ;
35961cat >>confdefs.h <<\_ACEOF
35962#define HAVE_SHAPE 1
35963_ACEOF
35964
35965fi
35966
35967 { $as_echo "$as_me:$LINENO: checking for XtSetEventDispatcher in -lXt" >&5
35968$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
35969if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then
35970 $as_echo_n "(cached) " >&6
35971else
35972 ac_check_lib_save_LIBS=$LIBS
35973LIBS="-lXt $LIBS"
35974cat >conftest.$ac_ext <<_ACEOF
35975/* confdefs.h. */
35976_ACEOF
35977cat confdefs.h >>conftest.$ac_ext
35978cat >>conftest.$ac_ext <<_ACEOF
35979/* end confdefs.h. */
35980
35981/* Override any GCC internal prototype to avoid an error.
35982 Use char because int might match the return type of a GCC
35983 builtin and then its argument prototype would still apply. */
35984#ifdef __cplusplus
35985extern "C"
35986#endif
35987char XtSetEventDispatcher ();
35988int
35989main ()
35990{
35991return XtSetEventDispatcher ();
35992 ;
35993 return 0;
35994}
35995_ACEOF
35996rm -f conftest.$ac_objext conftest$ac_exeext
35997if { (ac_try="$ac_link"
35998case "(($ac_try" in
35999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36000 *) ac_try_echo=$ac_try;;
36001esac
36002eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36003$as_echo "$ac_try_echo") >&5
36004 (eval "$ac_link") 2>conftest.er1
36005 ac_status=$?
36006 grep -v '^ *+' conftest.er1 >conftest.err
36007 rm -f conftest.er1
36008 cat conftest.err >&5
36009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36010 (exit $ac_status); } && {
36011 test -z "$ac_c_werror_flag" ||
36012 test ! -s conftest.err
36013 } && test -s conftest$ac_exeext && {
36014 test "$cross_compiling" = yes ||
36015 $as_test_x conftest$ac_exeext
36016 }; then
36017 ac_cv_lib_Xt_XtSetEventDispatcher=yes
36018else
36019 $as_echo "$as_me: failed program was:" >&5
36020sed 's/^/| /' conftest.$ac_ext >&5
36021
36022 ac_cv_lib_Xt_XtSetEventDispatcher=no
36023fi
36024
36025rm -rf conftest.dSYM
36026rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36027 conftest$ac_exeext conftest.$ac_ext
36028LIBS=$ac_check_lib_save_LIBS
36029fi
36030{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
36031$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
36032if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then
36033 XT_LIBS='-lXt'
36034fi
36035
36036 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
36037fi
36038if test "$no_x" != 'yes'; then
36039 have_x='yes'
36040else
36041 have_x='no'
36042fi
36043 if test "$have_x" = 'yes'; then
36044 X11_DELEGATE_TRUE=
36045 X11_DELEGATE_FALSE='#'
36046else
36047 X11_DELEGATE_TRUE='#'
36048 X11_DELEGATE_FALSE=
36049fi
36050
36051
36052
36053
36054
36055#
36056# Check for ZLIB
36057#
36058
36059# Check whether --with-zlib was given.
36060if test "${with_zlib+set}" = set; then
36061 withval=$with_zlib; with_zlib=$withval
36062else
36063 with_zlib='yes'
36064fi
36065
36066
36067if test "$with_zlib" != 'yes'; then
36068 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
36069fi
36070
36071have_zlib='no'
36072ZLIB_LIBS=''
36073if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
36074 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36075$as_echo "-------------------------------------------------------------" >&6; }
36076 { $as_echo "$as_me:$LINENO: checking for ZLIB" >&5
36077$as_echo_n "checking for ZLIB... " >&6; }
36078 { $as_echo "$as_me:$LINENO: result: " >&5
36079$as_echo "" >&6; }
36080 ZLIB_LIBS=''
36081 failed=0
36082 passed=0
36083 if test "${ac_cv_header_zconf_h+set}" = set; then
36084 { $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
36085$as_echo_n "checking for zconf.h... " >&6; }
36086if test "${ac_cv_header_zconf_h+set}" = set; then
36087 $as_echo_n "(cached) " >&6
36088fi
36089{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
36090$as_echo "$ac_cv_header_zconf_h" >&6; }
36091else
36092 # Is the header compilable?
36093{ $as_echo "$as_me:$LINENO: checking zconf.h usability" >&5
36094$as_echo_n "checking zconf.h usability... " >&6; }
36095cat >conftest.$ac_ext <<_ACEOF
36096/* confdefs.h. */
36097_ACEOF
36098cat confdefs.h >>conftest.$ac_ext
36099cat >>conftest.$ac_ext <<_ACEOF
36100/* end confdefs.h. */
36101$ac_includes_default
36102#include <zconf.h>
36103_ACEOF
36104rm -f conftest.$ac_objext
36105if { (ac_try="$ac_compile"
36106case "(($ac_try" in
36107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36108 *) ac_try_echo=$ac_try;;
36109esac
36110eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36111$as_echo "$ac_try_echo") >&5
36112 (eval "$ac_compile") 2>conftest.er1
36113 ac_status=$?
36114 grep -v '^ *+' conftest.er1 >conftest.err
36115 rm -f conftest.er1
36116 cat conftest.err >&5
36117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36118 (exit $ac_status); } && {
36119 test -z "$ac_c_werror_flag" ||
36120 test ! -s conftest.err
36121 } && test -s conftest.$ac_objext; then
36122 ac_header_compiler=yes
36123else
36124 $as_echo "$as_me: failed program was:" >&5
36125sed 's/^/| /' conftest.$ac_ext >&5
36126
36127 ac_header_compiler=no
36128fi
36129
36130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36131{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36132$as_echo "$ac_header_compiler" >&6; }
36133
36134# Is the header present?
36135{ $as_echo "$as_me:$LINENO: checking zconf.h presence" >&5
36136$as_echo_n "checking zconf.h presence... " >&6; }
36137cat >conftest.$ac_ext <<_ACEOF
36138/* confdefs.h. */
36139_ACEOF
36140cat confdefs.h >>conftest.$ac_ext
36141cat >>conftest.$ac_ext <<_ACEOF
36142/* end confdefs.h. */
36143#include <zconf.h>
36144_ACEOF
36145if { (ac_try="$ac_cpp conftest.$ac_ext"
36146case "(($ac_try" in
36147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36148 *) ac_try_echo=$ac_try;;
36149esac
36150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36151$as_echo "$ac_try_echo") >&5
36152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36153 ac_status=$?
36154 grep -v '^ *+' conftest.er1 >conftest.err
36155 rm -f conftest.er1
36156 cat conftest.err >&5
36157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36158 (exit $ac_status); } >/dev/null && {
36159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36160 test ! -s conftest.err
36161 }; then
36162 ac_header_preproc=yes
36163else
36164 $as_echo "$as_me: failed program was:" >&5
36165sed 's/^/| /' conftest.$ac_ext >&5
36166
36167 ac_header_preproc=no
36168fi
36169
36170rm -f conftest.err conftest.$ac_ext
36171{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36172$as_echo "$ac_header_preproc" >&6; }
36173
36174# So? What about this header?
36175case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36176 yes:no: )
36177 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&5
36178$as_echo "$as_me: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36179 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the compiler's result" >&5
36180$as_echo "$as_me: WARNING: zconf.h: proceeding with the compiler's result" >&2;}
36181 ac_header_preproc=yes
36182 ;;
36183 no:yes:* )
36184 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: present but cannot be compiled" >&5
36185$as_echo "$as_me: WARNING: zconf.h: present but cannot be compiled" >&2;}
36186 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: check for missing prerequisite headers?" >&5
36187$as_echo "$as_me: WARNING: zconf.h: check for missing prerequisite headers?" >&2;}
36188 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: see the Autoconf documentation" >&5
36189$as_echo "$as_me: WARNING: zconf.h: see the Autoconf documentation" >&2;}
36190 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&5
36191$as_echo "$as_me: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&2;}
36192 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the preprocessor's result" >&5
36193$as_echo "$as_me: WARNING: zconf.h: proceeding with the preprocessor's result" >&2;}
36194 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: in the future, the compiler will take precedence" >&5
36195$as_echo "$as_me: WARNING: zconf.h: in the future, the compiler will take precedence" >&2;}
36196 ( cat <<\_ASBOX
36197## ----------------------------------------- ##
36198## Report this to http://www.imagemagick.org ##
36199## ----------------------------------------- ##
36200_ASBOX
36201 ) | sed "s/^/$as_me: WARNING: /" >&2
36202 ;;
36203esac
36204{ $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
36205$as_echo_n "checking for zconf.h... " >&6; }
36206if test "${ac_cv_header_zconf_h+set}" = set; then
36207 $as_echo_n "(cached) " >&6
36208else
36209 ac_cv_header_zconf_h=$ac_header_preproc
36210fi
36211{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
36212$as_echo "$ac_cv_header_zconf_h" >&6; }
36213
36214fi
36215if test "x$ac_cv_header_zconf_h" = x""yes; then
36216 passed=`expr $passed + 1`
36217else
36218 failed=`expr $failed + 1`
36219fi
36220
36221
36222 if test "${ac_cv_header_zlib_h+set}" = set; then
36223 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
36224$as_echo_n "checking for zlib.h... " >&6; }
36225if test "${ac_cv_header_zlib_h+set}" = set; then
36226 $as_echo_n "(cached) " >&6
36227fi
36228{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36229$as_echo "$ac_cv_header_zlib_h" >&6; }
36230else
36231 # Is the header compilable?
36232{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
36233$as_echo_n "checking zlib.h usability... " >&6; }
36234cat >conftest.$ac_ext <<_ACEOF
36235/* confdefs.h. */
36236_ACEOF
36237cat confdefs.h >>conftest.$ac_ext
36238cat >>conftest.$ac_ext <<_ACEOF
36239/* end confdefs.h. */
36240$ac_includes_default
36241#include <zlib.h>
36242_ACEOF
36243rm -f conftest.$ac_objext
36244if { (ac_try="$ac_compile"
36245case "(($ac_try" in
36246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36247 *) ac_try_echo=$ac_try;;
36248esac
36249eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36250$as_echo "$ac_try_echo") >&5
36251 (eval "$ac_compile") 2>conftest.er1
36252 ac_status=$?
36253 grep -v '^ *+' conftest.er1 >conftest.err
36254 rm -f conftest.er1
36255 cat conftest.err >&5
36256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36257 (exit $ac_status); } && {
36258 test -z "$ac_c_werror_flag" ||
36259 test ! -s conftest.err
36260 } && test -s conftest.$ac_objext; then
36261 ac_header_compiler=yes
36262else
36263 $as_echo "$as_me: failed program was:" >&5
36264sed 's/^/| /' conftest.$ac_ext >&5
36265
36266 ac_header_compiler=no
36267fi
36268
36269rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36270{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36271$as_echo "$ac_header_compiler" >&6; }
36272
36273# Is the header present?
36274{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
36275$as_echo_n "checking zlib.h presence... " >&6; }
36276cat >conftest.$ac_ext <<_ACEOF
36277/* confdefs.h. */
36278_ACEOF
36279cat confdefs.h >>conftest.$ac_ext
36280cat >>conftest.$ac_ext <<_ACEOF
36281/* end confdefs.h. */
36282#include <zlib.h>
36283_ACEOF
36284if { (ac_try="$ac_cpp conftest.$ac_ext"
36285case "(($ac_try" in
36286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36287 *) ac_try_echo=$ac_try;;
36288esac
36289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36290$as_echo "$ac_try_echo") >&5
36291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36292 ac_status=$?
36293 grep -v '^ *+' conftest.er1 >conftest.err
36294 rm -f conftest.er1
36295 cat conftest.err >&5
36296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36297 (exit $ac_status); } >/dev/null && {
36298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36299 test ! -s conftest.err
36300 }; then
36301 ac_header_preproc=yes
36302else
36303 $as_echo "$as_me: failed program was:" >&5
36304sed 's/^/| /' conftest.$ac_ext >&5
36305
36306 ac_header_preproc=no
36307fi
36308
36309rm -f conftest.err conftest.$ac_ext
36310{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36311$as_echo "$ac_header_preproc" >&6; }
36312
36313# So? What about this header?
36314case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36315 yes:no: )
36316 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
36317$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36318 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
36319$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
36320 ac_header_preproc=yes
36321 ;;
36322 no:yes:* )
36323 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
36324$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
36325 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
36326$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
36327 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
36328$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
36329 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
36330$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
36331 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
36332$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
36333 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
36334$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
36335 ( cat <<\_ASBOX
36336## ----------------------------------------- ##
36337## Report this to http://www.imagemagick.org ##
36338## ----------------------------------------- ##
36339_ASBOX
36340 ) | sed "s/^/$as_me: WARNING: /" >&2
36341 ;;
36342esac
36343{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
36344$as_echo_n "checking for zlib.h... " >&6; }
36345if test "${ac_cv_header_zlib_h+set}" = set; then
36346 $as_echo_n "(cached) " >&6
36347else
36348 ac_cv_header_zlib_h=$ac_header_preproc
36349fi
36350{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
36351$as_echo "$ac_cv_header_zlib_h" >&6; }
36352
36353fi
36354if test "x$ac_cv_header_zlib_h" = x""yes; then
36355 passed=`expr $passed + 1`
36356else
36357 failed=`expr $failed + 1`
36358fi
36359
36360
36361 { $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5
36362$as_echo_n "checking for compress in -lz... " >&6; }
36363if test "${ac_cv_lib_z_compress+set}" = set; then
36364 $as_echo_n "(cached) " >&6
36365else
36366 ac_check_lib_save_LIBS=$LIBS
36367LIBS="-lz $LIBS"
36368cat >conftest.$ac_ext <<_ACEOF
36369/* confdefs.h. */
36370_ACEOF
36371cat confdefs.h >>conftest.$ac_ext
36372cat >>conftest.$ac_ext <<_ACEOF
36373/* end confdefs.h. */
36374
36375/* Override any GCC internal prototype to avoid an error.
36376 Use char because int might match the return type of a GCC
36377 builtin and then its argument prototype would still apply. */
36378#ifdef __cplusplus
36379extern "C"
36380#endif
36381char compress ();
36382int
36383main ()
36384{
36385return compress ();
36386 ;
36387 return 0;
36388}
36389_ACEOF
36390rm -f conftest.$ac_objext conftest$ac_exeext
36391if { (ac_try="$ac_link"
36392case "(($ac_try" in
36393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36394 *) ac_try_echo=$ac_try;;
36395esac
36396eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36397$as_echo "$ac_try_echo") >&5
36398 (eval "$ac_link") 2>conftest.er1
36399 ac_status=$?
36400 grep -v '^ *+' conftest.er1 >conftest.err
36401 rm -f conftest.er1
36402 cat conftest.err >&5
36403 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36404 (exit $ac_status); } && {
36405 test -z "$ac_c_werror_flag" ||
36406 test ! -s conftest.err
36407 } && test -s conftest$ac_exeext && {
36408 test "$cross_compiling" = yes ||
36409 $as_test_x conftest$ac_exeext
36410 }; then
36411 ac_cv_lib_z_compress=yes
36412else
36413 $as_echo "$as_me: failed program was:" >&5
36414sed 's/^/| /' conftest.$ac_ext >&5
36415
36416 ac_cv_lib_z_compress=no
36417fi
36418
36419rm -rf conftest.dSYM
36420rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36421 conftest$ac_exeext conftest.$ac_ext
36422LIBS=$ac_check_lib_save_LIBS
36423fi
36424{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
36425$as_echo "$ac_cv_lib_z_compress" >&6; }
36426if test "x$ac_cv_lib_z_compress" = x""yes; then
36427 passed=`expr $passed + 1`
36428else
36429 failed=`expr $failed + 1`
36430fi
36431
36432 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
36433$as_echo_n "checking for uncompress in -lz... " >&6; }
36434if test "${ac_cv_lib_z_uncompress+set}" = set; then
36435 $as_echo_n "(cached) " >&6
36436else
36437 ac_check_lib_save_LIBS=$LIBS
36438LIBS="-lz $LIBS"
36439cat >conftest.$ac_ext <<_ACEOF
36440/* confdefs.h. */
36441_ACEOF
36442cat confdefs.h >>conftest.$ac_ext
36443cat >>conftest.$ac_ext <<_ACEOF
36444/* end confdefs.h. */
36445
36446/* Override any GCC internal prototype to avoid an error.
36447 Use char because int might match the return type of a GCC
36448 builtin and then its argument prototype would still apply. */
36449#ifdef __cplusplus
36450extern "C"
36451#endif
36452char uncompress ();
36453int
36454main ()
36455{
36456return uncompress ();
36457 ;
36458 return 0;
36459}
36460_ACEOF
36461rm -f conftest.$ac_objext conftest$ac_exeext
36462if { (ac_try="$ac_link"
36463case "(($ac_try" in
36464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36465 *) ac_try_echo=$ac_try;;
36466esac
36467eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36468$as_echo "$ac_try_echo") >&5
36469 (eval "$ac_link") 2>conftest.er1
36470 ac_status=$?
36471 grep -v '^ *+' conftest.er1 >conftest.err
36472 rm -f conftest.er1
36473 cat conftest.err >&5
36474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36475 (exit $ac_status); } && {
36476 test -z "$ac_c_werror_flag" ||
36477 test ! -s conftest.err
36478 } && test -s conftest$ac_exeext && {
36479 test "$cross_compiling" = yes ||
36480 $as_test_x conftest$ac_exeext
36481 }; then
36482 ac_cv_lib_z_uncompress=yes
36483else
36484 $as_echo "$as_me: failed program was:" >&5
36485sed 's/^/| /' conftest.$ac_ext >&5
36486
36487 ac_cv_lib_z_uncompress=no
36488fi
36489
36490rm -rf conftest.dSYM
36491rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36492 conftest$ac_exeext conftest.$ac_ext
36493LIBS=$ac_check_lib_save_LIBS
36494fi
36495{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
36496$as_echo "$ac_cv_lib_z_uncompress" >&6; }
36497if test "x$ac_cv_lib_z_uncompress" = x""yes; then
36498 passed=`expr $passed + 1`
36499else
36500 failed=`expr $failed + 1`
36501fi
36502
36503 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
36504$as_echo_n "checking for deflate in -lz... " >&6; }
36505if test "${ac_cv_lib_z_deflate+set}" = set; then
36506 $as_echo_n "(cached) " >&6
36507else
36508 ac_check_lib_save_LIBS=$LIBS
36509LIBS="-lz $LIBS"
36510cat >conftest.$ac_ext <<_ACEOF
36511/* confdefs.h. */
36512_ACEOF
36513cat confdefs.h >>conftest.$ac_ext
36514cat >>conftest.$ac_ext <<_ACEOF
36515/* end confdefs.h. */
36516
36517/* Override any GCC internal prototype to avoid an error.
36518 Use char because int might match the return type of a GCC
36519 builtin and then its argument prototype would still apply. */
36520#ifdef __cplusplus
36521extern "C"
36522#endif
36523char deflate ();
36524int
36525main ()
36526{
36527return deflate ();
36528 ;
36529 return 0;
36530}
36531_ACEOF
36532rm -f conftest.$ac_objext conftest$ac_exeext
36533if { (ac_try="$ac_link"
36534case "(($ac_try" in
36535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36536 *) ac_try_echo=$ac_try;;
36537esac
36538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36539$as_echo "$ac_try_echo") >&5
36540 (eval "$ac_link") 2>conftest.er1
36541 ac_status=$?
36542 grep -v '^ *+' conftest.er1 >conftest.err
36543 rm -f conftest.er1
36544 cat conftest.err >&5
36545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546 (exit $ac_status); } && {
36547 test -z "$ac_c_werror_flag" ||
36548 test ! -s conftest.err
36549 } && test -s conftest$ac_exeext && {
36550 test "$cross_compiling" = yes ||
36551 $as_test_x conftest$ac_exeext
36552 }; then
36553 ac_cv_lib_z_deflate=yes
36554else
36555 $as_echo "$as_me: failed program was:" >&5
36556sed 's/^/| /' conftest.$ac_ext >&5
36557
36558 ac_cv_lib_z_deflate=no
36559fi
36560
36561rm -rf conftest.dSYM
36562rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36563 conftest$ac_exeext conftest.$ac_ext
36564LIBS=$ac_check_lib_save_LIBS
36565fi
36566{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
36567$as_echo "$ac_cv_lib_z_deflate" >&6; }
36568if test "x$ac_cv_lib_z_deflate" = x""yes; then
36569 passed=`expr $passed + 1`
36570else
36571 failed=`expr $failed + 1`
36572fi
36573
36574 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
36575$as_echo_n "checking for inflate in -lz... " >&6; }
36576if test "${ac_cv_lib_z_inflate+set}" = set; then
36577 $as_echo_n "(cached) " >&6
36578else
36579 ac_check_lib_save_LIBS=$LIBS
36580LIBS="-lz $LIBS"
36581cat >conftest.$ac_ext <<_ACEOF
36582/* confdefs.h. */
36583_ACEOF
36584cat confdefs.h >>conftest.$ac_ext
36585cat >>conftest.$ac_ext <<_ACEOF
36586/* end confdefs.h. */
36587
36588/* Override any GCC internal prototype to avoid an error.
36589 Use char because int might match the return type of a GCC
36590 builtin and then its argument prototype would still apply. */
36591#ifdef __cplusplus
36592extern "C"
36593#endif
36594char inflate ();
36595int
36596main ()
36597{
36598return inflate ();
36599 ;
36600 return 0;
36601}
36602_ACEOF
36603rm -f conftest.$ac_objext conftest$ac_exeext
36604if { (ac_try="$ac_link"
36605case "(($ac_try" in
36606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36607 *) ac_try_echo=$ac_try;;
36608esac
36609eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36610$as_echo "$ac_try_echo") >&5
36611 (eval "$ac_link") 2>conftest.er1
36612 ac_status=$?
36613 grep -v '^ *+' conftest.er1 >conftest.err
36614 rm -f conftest.er1
36615 cat conftest.err >&5
36616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36617 (exit $ac_status); } && {
36618 test -z "$ac_c_werror_flag" ||
36619 test ! -s conftest.err
36620 } && test -s conftest$ac_exeext && {
36621 test "$cross_compiling" = yes ||
36622 $as_test_x conftest$ac_exeext
36623 }; then
36624 ac_cv_lib_z_inflate=yes
36625else
36626 $as_echo "$as_me: failed program was:" >&5
36627sed 's/^/| /' conftest.$ac_ext >&5
36628
36629 ac_cv_lib_z_inflate=no
36630fi
36631
36632rm -rf conftest.dSYM
36633rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36634 conftest$ac_exeext conftest.$ac_ext
36635LIBS=$ac_check_lib_save_LIBS
36636fi
36637{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
36638$as_echo "$ac_cv_lib_z_inflate" >&6; }
36639if test "x$ac_cv_lib_z_inflate" = x""yes; then
36640 passed=`expr $passed + 1`
36641else
36642 failed=`expr $failed + 1`
36643fi
36644
36645 { $as_echo "$as_me:$LINENO: checking for gzseek in -lz" >&5
36646$as_echo_n "checking for gzseek in -lz... " >&6; }
36647if test "${ac_cv_lib_z_gzseek+set}" = set; then
36648 $as_echo_n "(cached) " >&6
36649else
36650 ac_check_lib_save_LIBS=$LIBS
36651LIBS="-lz $LIBS"
36652cat >conftest.$ac_ext <<_ACEOF
36653/* confdefs.h. */
36654_ACEOF
36655cat confdefs.h >>conftest.$ac_ext
36656cat >>conftest.$ac_ext <<_ACEOF
36657/* end confdefs.h. */
36658
36659/* Override any GCC internal prototype to avoid an error.
36660 Use char because int might match the return type of a GCC
36661 builtin and then its argument prototype would still apply. */
36662#ifdef __cplusplus
36663extern "C"
36664#endif
36665char gzseek ();
36666int
36667main ()
36668{
36669return gzseek ();
36670 ;
36671 return 0;
36672}
36673_ACEOF
36674rm -f conftest.$ac_objext conftest$ac_exeext
36675if { (ac_try="$ac_link"
36676case "(($ac_try" in
36677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36678 *) ac_try_echo=$ac_try;;
36679esac
36680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36681$as_echo "$ac_try_echo") >&5
36682 (eval "$ac_link") 2>conftest.er1
36683 ac_status=$?
36684 grep -v '^ *+' conftest.er1 >conftest.err
36685 rm -f conftest.er1
36686 cat conftest.err >&5
36687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688 (exit $ac_status); } && {
36689 test -z "$ac_c_werror_flag" ||
36690 test ! -s conftest.err
36691 } && test -s conftest$ac_exeext && {
36692 test "$cross_compiling" = yes ||
36693 $as_test_x conftest$ac_exeext
36694 }; then
36695 ac_cv_lib_z_gzseek=yes
36696else
36697 $as_echo "$as_me: failed program was:" >&5
36698sed 's/^/| /' conftest.$ac_ext >&5
36699
36700 ac_cv_lib_z_gzseek=no
36701fi
36702
36703rm -rf conftest.dSYM
36704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36705 conftest$ac_exeext conftest.$ac_ext
36706LIBS=$ac_check_lib_save_LIBS
36707fi
36708{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzseek" >&5
36709$as_echo "$ac_cv_lib_z_gzseek" >&6; }
36710if test "x$ac_cv_lib_z_gzseek" = x""yes; then
36711 passed=`expr $passed + 1`
36712else
36713 failed=`expr $failed + 1`
36714fi
36715
36716 { $as_echo "$as_me:$LINENO: checking for gztell in -lz" >&5
36717$as_echo_n "checking for gztell in -lz... " >&6; }
36718if test "${ac_cv_lib_z_gztell+set}" = set; then
36719 $as_echo_n "(cached) " >&6
36720else
36721 ac_check_lib_save_LIBS=$LIBS
36722LIBS="-lz $LIBS"
36723cat >conftest.$ac_ext <<_ACEOF
36724/* confdefs.h. */
36725_ACEOF
36726cat confdefs.h >>conftest.$ac_ext
36727cat >>conftest.$ac_ext <<_ACEOF
36728/* end confdefs.h. */
36729
36730/* Override any GCC internal prototype to avoid an error.
36731 Use char because int might match the return type of a GCC
36732 builtin and then its argument prototype would still apply. */
36733#ifdef __cplusplus
36734extern "C"
36735#endif
36736char gztell ();
36737int
36738main ()
36739{
36740return gztell ();
36741 ;
36742 return 0;
36743}
36744_ACEOF
36745rm -f conftest.$ac_objext conftest$ac_exeext
36746if { (ac_try="$ac_link"
36747case "(($ac_try" in
36748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36749 *) ac_try_echo=$ac_try;;
36750esac
36751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36752$as_echo "$ac_try_echo") >&5
36753 (eval "$ac_link") 2>conftest.er1
36754 ac_status=$?
36755 grep -v '^ *+' conftest.er1 >conftest.err
36756 rm -f conftest.er1
36757 cat conftest.err >&5
36758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36759 (exit $ac_status); } && {
36760 test -z "$ac_c_werror_flag" ||
36761 test ! -s conftest.err
36762 } && test -s conftest$ac_exeext && {
36763 test "$cross_compiling" = yes ||
36764 $as_test_x conftest$ac_exeext
36765 }; then
36766 ac_cv_lib_z_gztell=yes
36767else
36768 $as_echo "$as_me: failed program was:" >&5
36769sed 's/^/| /' conftest.$ac_ext >&5
36770
36771 ac_cv_lib_z_gztell=no
36772fi
36773
36774rm -rf conftest.dSYM
36775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36776 conftest$ac_exeext conftest.$ac_ext
36777LIBS=$ac_check_lib_save_LIBS
36778fi
36779{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gztell" >&5
36780$as_echo "$ac_cv_lib_z_gztell" >&6; }
36781if test "x$ac_cv_lib_z_gztell" = x""yes; then
36782 passed=`expr $passed + 1`
36783else
36784 failed=`expr $failed + 1`
36785fi
36786
36787 { $as_echo "$as_me:$LINENO: checking if ZLIB package is complete" >&5
36788$as_echo_n "checking if ZLIB package is complete... " >&6; }
36789 if test $passed -gt 0; then
36790 if test $failed -gt 0; then
36791 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
36792$as_echo "no -- some components failed test" >&6; }
36793 have_zlib='no (failed tests)'
36794 else
36795 ZLIB_LIBS='-lz'
36796 LIBS="$ZLIB_LIBS $LIBS"
36797
36798cat >>confdefs.h <<\_ACEOF
36799#define ZLIB_DELEGATE 1
36800_ACEOF
36801
36802 { $as_echo "$as_me:$LINENO: result: yes" >&5
36803$as_echo "yes" >&6; }
36804 have_zlib='yes'
36805 fi
36806 else
36807 { $as_echo "$as_me:$LINENO: result: no" >&5
36808$as_echo "no" >&6; }
36809 fi
36810fi
36811 if test "$have_zlib" = 'yes'; then
36812 ZLIB_DELEGATE_TRUE=
36813 ZLIB_DELEGATE_FALSE='#'
36814else
36815 ZLIB_DELEGATE_TRUE='#'
36816 ZLIB_DELEGATE_FALSE=
36817fi
36818
36819
36820
36821#
36822# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
36823#
36824LIB_DL=''
36825if test "$enable_profiling" = 'yes'; then
36826 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36827$as_echo_n "checking for dlopen in -ldl... " >&6; }
36828if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36829 $as_echo_n "(cached) " >&6
36830else
36831 ac_check_lib_save_LIBS=$LIBS
36832LIBS="-ldl $LIBS"
36833cat >conftest.$ac_ext <<_ACEOF
36834/* confdefs.h. */
36835_ACEOF
36836cat confdefs.h >>conftest.$ac_ext
36837cat >>conftest.$ac_ext <<_ACEOF
36838/* end confdefs.h. */
36839
36840/* Override any GCC internal prototype to avoid an error.
36841 Use char because int might match the return type of a GCC
36842 builtin and then its argument prototype would still apply. */
36843#ifdef __cplusplus
36844extern "C"
36845#endif
36846char dlopen ();
36847int
36848main ()
36849{
36850return dlopen ();
36851 ;
36852 return 0;
36853}
36854_ACEOF
36855rm -f conftest.$ac_objext conftest$ac_exeext
36856if { (ac_try="$ac_link"
36857case "(($ac_try" in
36858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36859 *) ac_try_echo=$ac_try;;
36860esac
36861eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36862$as_echo "$ac_try_echo") >&5
36863 (eval "$ac_link") 2>conftest.er1
36864 ac_status=$?
36865 grep -v '^ *+' conftest.er1 >conftest.err
36866 rm -f conftest.er1
36867 cat conftest.err >&5
36868 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36869 (exit $ac_status); } && {
36870 test -z "$ac_c_werror_flag" ||
36871 test ! -s conftest.err
36872 } && test -s conftest$ac_exeext && {
36873 test "$cross_compiling" = yes ||
36874 $as_test_x conftest$ac_exeext
36875 }; then
36876 ac_cv_lib_dl_dlopen=yes
36877else
36878 $as_echo "$as_me: failed program was:" >&5
36879sed 's/^/| /' conftest.$ac_ext >&5
36880
36881 ac_cv_lib_dl_dlopen=no
36882fi
36883
36884rm -rf conftest.dSYM
36885rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36886 conftest$ac_exeext conftest.$ac_ext
36887LIBS=$ac_check_lib_save_LIBS
36888fi
36889{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36890$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36891if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
36892 LIB_DL='-ldl'
36893fi
36894
36895 LIBS="$LIB_DL $LIBS"
36896fi
36897
36898
36899
36900#
36901# Check for Autotrace delegate library.
36902#
36903
36904# Check whether --with-autotrace was given.
36905if test "${with_autotrace+set}" = set; then
36906 withval=$with_autotrace; with_autotrace=$withval
36907else
36908 with_autotrace='no'
36909fi
36910
36911
36912if test "$with_autotrace" != 'yes'; then
36913 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
36914fi
36915
36916have_autotrace='no'
36917AUTOTRACE_CFLAGS=""
36918AUTOTRACE_LIBS=""
36919AUTOTRACE_PKG=""
36920if test "x$with_autotrace" = "xyes"; then
36921 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36922$as_echo "-------------------------------------------------------------" >&6; }
36923
36924pkg_failed=no
36925{ $as_echo "$as_me:$LINENO: checking for AUTOTRACE" >&5
36926$as_echo_n "checking for AUTOTRACE... " >&6; }
36927
36928if test -n "$AUTOTRACE_CFLAGS"; then
36929 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
36930 elif test -n "$PKG_CONFIG"; then
36931 if test -n "$PKG_CONFIG" && \
36932 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36933 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36934 ac_status=$?
36935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36936 (exit $ac_status); }; then
36937 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
36938else
36939 pkg_failed=yes
36940fi
36941 else
36942 pkg_failed=untried
36943fi
36944if test -n "$AUTOTRACE_LIBS"; then
36945 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
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_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
36954else
36955 pkg_failed=yes
36956fi
36957 else
36958 pkg_failed=untried
36959fi
36960
36961
36962
36963if test $pkg_failed = yes; then
36964
36965if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36966 _pkg_short_errors_supported=yes
36967else
36968 _pkg_short_errors_supported=no
36969fi
36970 if test $_pkg_short_errors_supported = yes; then
36971 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
36972 else
36973 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
36974 fi
36975 # Put the nasty error message in config.log where it belongs
36976 echo "$AUTOTRACE_PKG_ERRORS" >&5
36977
36978 { $as_echo "$as_me:$LINENO: result: no" >&5
36979$as_echo "no" >&6; }
36980 have_autotrace=no
36981elif test $pkg_failed = untried; then
36982 have_autotrace=no
36983else
36984 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
36985 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
36986 { $as_echo "$as_me:$LINENO: result: yes" >&5
36987$as_echo "yes" >&6; }
36988 have_autotrace=yes
36989fi
36990 { $as_echo "$as_me:$LINENO: result: " >&5
36991$as_echo "" >&6; }
36992fi
36993
36994if test "$have_autotrace" = 'yes'; then
36995 failed=0
36996
36997cat >>confdefs.h <<\_ACEOF
36998#define AUTOTRACE_DELEGATE 1
36999_ACEOF
37000
37001 if test "$with_modules" = 'no'; then
37002 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
37003 fi
37004fi
37005
37006 if test "$have_autotrace" = 'yes'; then
37007 AUTOTRACE_DELEGATE_TRUE=
37008 AUTOTRACE_DELEGATE_FALSE='#'
37009else
37010 AUTOTRACE_DELEGATE_TRUE='#'
37011 AUTOTRACE_DELEGATE_FALSE=
37012fi
37013
37014
37015
37016
37017
37018#
37019# Check for Display Postscript delegate library.
37020#
37021
37022# Check whether --with-dps was given.
37023if test "${with_dps+set}" = set; then
37024 withval=$with_dps; with_dps=$withval
37025else
37026 with_dps='yes'
37027fi
37028
37029
37030if test "$with_dps" != 'yes'; then
37031 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
37032fi
37033
37034have_dps='no'
37035DPS_LIBS=''
37036if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
37037 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37038$as_echo "-------------------------------------------------------------" >&6; }
37039 { $as_echo "$as_me:$LINENO: checking for DPS" >&5
37040$as_echo_n "checking for DPS... " >&6; }
37041 { $as_echo "$as_me:$LINENO: result: " >&5
37042$as_echo "" >&6; }
37043 failed=0
37044 passed=0
37045 PERSIST_CPPFLAGS="$CPPFLAGS"
37046 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
37047 if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37048 { $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
37049$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
37050if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37051 $as_echo_n "(cached) " >&6
37052fi
37053{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
37054$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
37055else
37056 # Is the header compilable?
37057{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h usability" >&5
37058$as_echo_n "checking DPS/dpsXclient.h usability... " >&6; }
37059cat >conftest.$ac_ext <<_ACEOF
37060/* confdefs.h. */
37061_ACEOF
37062cat confdefs.h >>conftest.$ac_ext
37063cat >>conftest.$ac_ext <<_ACEOF
37064/* end confdefs.h. */
37065$ac_includes_default
37066#include <DPS/dpsXclient.h>
37067_ACEOF
37068rm -f conftest.$ac_objext
37069if { (ac_try="$ac_compile"
37070case "(($ac_try" in
37071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37072 *) ac_try_echo=$ac_try;;
37073esac
37074eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37075$as_echo "$ac_try_echo") >&5
37076 (eval "$ac_compile") 2>conftest.er1
37077 ac_status=$?
37078 grep -v '^ *+' conftest.er1 >conftest.err
37079 rm -f conftest.er1
37080 cat conftest.err >&5
37081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37082 (exit $ac_status); } && {
37083 test -z "$ac_c_werror_flag" ||
37084 test ! -s conftest.err
37085 } && test -s conftest.$ac_objext; then
37086 ac_header_compiler=yes
37087else
37088 $as_echo "$as_me: failed program was:" >&5
37089sed 's/^/| /' conftest.$ac_ext >&5
37090
37091 ac_header_compiler=no
37092fi
37093
37094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37095{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37096$as_echo "$ac_header_compiler" >&6; }
37097
37098# Is the header present?
37099{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h presence" >&5
37100$as_echo_n "checking DPS/dpsXclient.h presence... " >&6; }
37101cat >conftest.$ac_ext <<_ACEOF
37102/* confdefs.h. */
37103_ACEOF
37104cat confdefs.h >>conftest.$ac_ext
37105cat >>conftest.$ac_ext <<_ACEOF
37106/* end confdefs.h. */
37107#include <DPS/dpsXclient.h>
37108_ACEOF
37109if { (ac_try="$ac_cpp conftest.$ac_ext"
37110case "(($ac_try" in
37111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37112 *) ac_try_echo=$ac_try;;
37113esac
37114eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37115$as_echo "$ac_try_echo") >&5
37116 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37117 ac_status=$?
37118 grep -v '^ *+' conftest.er1 >conftest.err
37119 rm -f conftest.er1
37120 cat conftest.err >&5
37121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37122 (exit $ac_status); } >/dev/null && {
37123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37124 test ! -s conftest.err
37125 }; then
37126 ac_header_preproc=yes
37127else
37128 $as_echo "$as_me: failed program was:" >&5
37129sed 's/^/| /' conftest.$ac_ext >&5
37130
37131 ac_header_preproc=no
37132fi
37133
37134rm -f conftest.err conftest.$ac_ext
37135{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37136$as_echo "$ac_header_preproc" >&6; }
37137
37138# So? What about this header?
37139case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37140 yes:no: )
37141 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&5
37142$as_echo "$as_me: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37143 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&5
37144$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&2;}
37145 ac_header_preproc=yes
37146 ;;
37147 no:yes:* )
37148 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&5
37149$as_echo "$as_me: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&2;}
37150 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&5
37151$as_echo "$as_me: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&2;}
37152 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&5
37153$as_echo "$as_me: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&2;}
37154 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&5
37155$as_echo "$as_me: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&2;}
37156 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&5
37157$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&2;}
37158 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&5
37159$as_echo "$as_me: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&2;}
37160 ( cat <<\_ASBOX
37161## ----------------------------------------- ##
37162## Report this to http://www.imagemagick.org ##
37163## ----------------------------------------- ##
37164_ASBOX
37165 ) | sed "s/^/$as_me: WARNING: /" >&2
37166 ;;
37167esac
37168{ $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
37169$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
37170if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
37171 $as_echo_n "(cached) " >&6
37172else
37173 ac_cv_header_DPS_dpsXclient_h=$ac_header_preproc
37174fi
37175{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
37176$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
37177
37178fi
37179if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then
37180 passed=`expr $passed + 1`
37181else
37182 failed=`expr $failed + 1`
37183fi
37184
37185
37186 # DPS issues:
37187 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
37188 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
37189 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
37190 # ImageMagick itself doesn't use -lXt.
37191 have_libdps='no'
37192 LIBDPS_XT=''
37193 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
37194$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
37195if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
37196 $as_echo_n "(cached) " >&6
37197else
37198 ac_check_lib_save_LIBS=$LIBS
37199LIBS="-ldps $LIBS"
37200cat >conftest.$ac_ext <<_ACEOF
37201/* confdefs.h. */
37202_ACEOF
37203cat confdefs.h >>conftest.$ac_ext
37204cat >>conftest.$ac_ext <<_ACEOF
37205/* end confdefs.h. */
37206
37207/* Override any GCC internal prototype to avoid an error.
37208 Use char because int might match the return type of a GCC
37209 builtin and then its argument prototype would still apply. */
37210#ifdef __cplusplus
37211extern "C"
37212#endif
37213char DPSInitialize ();
37214int
37215main ()
37216{
37217return DPSInitialize ();
37218 ;
37219 return 0;
37220}
37221_ACEOF
37222rm -f conftest.$ac_objext conftest$ac_exeext
37223if { (ac_try="$ac_link"
37224case "(($ac_try" in
37225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37226 *) ac_try_echo=$ac_try;;
37227esac
37228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37229$as_echo "$ac_try_echo") >&5
37230 (eval "$ac_link") 2>conftest.er1
37231 ac_status=$?
37232 grep -v '^ *+' conftest.er1 >conftest.err
37233 rm -f conftest.er1
37234 cat conftest.err >&5
37235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37236 (exit $ac_status); } && {
37237 test -z "$ac_c_werror_flag" ||
37238 test ! -s conftest.err
37239 } && test -s conftest$ac_exeext && {
37240 test "$cross_compiling" = yes ||
37241 $as_test_x conftest$ac_exeext
37242 }; then
37243 ac_cv_lib_dps_DPSInitialize=yes
37244else
37245 $as_echo "$as_me: failed program was:" >&5
37246sed 's/^/| /' conftest.$ac_ext >&5
37247
37248 ac_cv_lib_dps_DPSInitialize=no
37249fi
37250
37251rm -rf conftest.dSYM
37252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37253 conftest$ac_exeext conftest.$ac_ext
37254LIBS=$ac_check_lib_save_LIBS
37255fi
37256{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
37257$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
37258if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
37259 have_libdps='yes'
37260else
37261 have_libdps='no'
37262fi
37263
37264 if test "$have_libdps" != 'yes'; then
37265 # Unset cache variable so we can try again.
37266 unset ac_cv_lib_dps_DPSInitialize
37267 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
37268$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
37269if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
37270 $as_echo_n "(cached) " >&6
37271else
37272 ac_check_lib_save_LIBS=$LIBS
37273LIBS="-ldps -lXt $LIBS"
37274cat >conftest.$ac_ext <<_ACEOF
37275/* confdefs.h. */
37276_ACEOF
37277cat confdefs.h >>conftest.$ac_ext
37278cat >>conftest.$ac_ext <<_ACEOF
37279/* end confdefs.h. */
37280
37281/* Override any GCC internal prototype to avoid an error.
37282 Use char because int might match the return type of a GCC
37283 builtin and then its argument prototype would still apply. */
37284#ifdef __cplusplus
37285extern "C"
37286#endif
37287char DPSInitialize ();
37288int
37289main ()
37290{
37291return DPSInitialize ();
37292 ;
37293 return 0;
37294}
37295_ACEOF
37296rm -f conftest.$ac_objext conftest$ac_exeext
37297if { (ac_try="$ac_link"
37298case "(($ac_try" in
37299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37300 *) ac_try_echo=$ac_try;;
37301esac
37302eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37303$as_echo "$ac_try_echo") >&5
37304 (eval "$ac_link") 2>conftest.er1
37305 ac_status=$?
37306 grep -v '^ *+' conftest.er1 >conftest.err
37307 rm -f conftest.er1
37308 cat conftest.err >&5
37309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37310 (exit $ac_status); } && {
37311 test -z "$ac_c_werror_flag" ||
37312 test ! -s conftest.err
37313 } && test -s conftest$ac_exeext && {
37314 test "$cross_compiling" = yes ||
37315 $as_test_x conftest$ac_exeext
37316 }; then
37317 ac_cv_lib_dps_DPSInitialize=yes
37318else
37319 $as_echo "$as_me: failed program was:" >&5
37320sed 's/^/| /' conftest.$ac_ext >&5
37321
37322 ac_cv_lib_dps_DPSInitialize=no
37323fi
37324
37325rm -rf conftest.dSYM
37326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37327 conftest$ac_exeext conftest.$ac_ext
37328LIBS=$ac_check_lib_save_LIBS
37329fi
37330{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
37331$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
37332if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
37333 have_libdps='yes'
37334else
37335 have_libdps='no'
37336fi
37337
37338 if test "$have_libdps" = 'yes'; then
37339 LIBDPS_XT='-lXt'
37340 fi
37341 fi
37342 if test "$have_libdps" = 'yes'; then
37343 passed=`expr $passed + 1`
37344 else
37345 failed=`expr $failed + 1`
37346 fi
37347 { $as_echo "$as_me:$LINENO: checking for XDPSPixelsPerPoint in -ldpstk" >&5
37348$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
37349if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then
37350 $as_echo_n "(cached) " >&6
37351else
37352 ac_check_lib_save_LIBS=$LIBS
37353LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
37354cat >conftest.$ac_ext <<_ACEOF
37355/* confdefs.h. */
37356_ACEOF
37357cat confdefs.h >>conftest.$ac_ext
37358cat >>conftest.$ac_ext <<_ACEOF
37359/* end confdefs.h. */
37360
37361/* Override any GCC internal prototype to avoid an error.
37362 Use char because int might match the return type of a GCC
37363 builtin and then its argument prototype would still apply. */
37364#ifdef __cplusplus
37365extern "C"
37366#endif
37367char XDPSPixelsPerPoint ();
37368int
37369main ()
37370{
37371return XDPSPixelsPerPoint ();
37372 ;
37373 return 0;
37374}
37375_ACEOF
37376rm -f conftest.$ac_objext conftest$ac_exeext
37377if { (ac_try="$ac_link"
37378case "(($ac_try" in
37379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37380 *) ac_try_echo=$ac_try;;
37381esac
37382eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37383$as_echo "$ac_try_echo") >&5
37384 (eval "$ac_link") 2>conftest.er1
37385 ac_status=$?
37386 grep -v '^ *+' conftest.er1 >conftest.err
37387 rm -f conftest.er1
37388 cat conftest.err >&5
37389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37390 (exit $ac_status); } && {
37391 test -z "$ac_c_werror_flag" ||
37392 test ! -s conftest.err
37393 } && test -s conftest$ac_exeext && {
37394 test "$cross_compiling" = yes ||
37395 $as_test_x conftest$ac_exeext
37396 }; then
37397 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
37398else
37399 $as_echo "$as_me: failed program was:" >&5
37400sed 's/^/| /' conftest.$ac_ext >&5
37401
37402 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
37403fi
37404
37405rm -rf conftest.dSYM
37406rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37407 conftest$ac_exeext conftest.$ac_ext
37408LIBS=$ac_check_lib_save_LIBS
37409fi
37410{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
37411$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
37412if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then
37413 passed=`expr $passed + 1`
37414else
37415 failed=`expr $failed + 1`
37416fi
37417
37418 { $as_echo "$as_me:$LINENO: checking if DPS package is complete" >&5
37419$as_echo_n "checking if DPS package is complete... " >&6; }
37420 if test $passed -gt 0; then
37421 if test $failed -gt 0; then
37422 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37423$as_echo "no -- some components failed test" >&6; }
37424 have_dps='no (failed tests)'
37425 CPPFLAGS="$PERSIST_CPPFLAGS"
37426 else
37427 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
37428 LIBS="$DPS_LIBS $LIBS"
37429
37430cat >>confdefs.h <<\_ACEOF
37431#define DPS_DELEGATE 1
37432_ACEOF
37433
37434 { $as_echo "$as_me:$LINENO: result: yes" >&5
37435$as_echo "yes" >&6; }
37436 have_dps='yes'
37437 fi
37438 else
37439 { $as_echo "$as_me:$LINENO: result: no" >&5
37440$as_echo "no" >&6; }
37441 CPPFLAGS=$PERSIST_CPPFLAGS
37442 fi
37443fi
37444 if test "$have_dps" = 'yes'; then
37445 DPS_DELEGATE_TRUE=
37446 DPS_DELEGATE_FALSE='#'
37447else
37448 DPS_DELEGATE_TRUE='#'
37449 DPS_DELEGATE_FALSE=
37450fi
37451
37452
37453
37454
37455#
37456# Check for DJVU delegate library.
37457#
37458
37459# Check whether --with-djvu was given.
37460if test "${with_djvu+set}" = set; then
37461 withval=$with_djvu; with_djvu=$withval
37462else
37463 with_djvu='yes'
37464fi
37465
37466
37467if test "$with_djvu" != 'yes'; then
37468 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
37469fi
37470
37471have_djvu='no'
37472DJVU_LIBS=''
37473if test "$with_djvu" != 'no'; then
37474 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37475$as_echo "-------------------------------------------------------------" >&6; }
37476 { $as_echo "$as_me:$LINENO: checking for DJVU" >&5
37477$as_echo_n "checking for DJVU... " >&6; }
37478 { $as_echo "$as_me:$LINENO: result: " >&5
37479$as_echo "" >&6; }
37480 failed=0
37481 passed=0
37482 if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37483 { $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
37484$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
37485if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37486 $as_echo_n "(cached) " >&6
37487fi
37488{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
37489$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
37490else
37491 # Is the header compilable?
37492{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h usability" >&5
37493$as_echo_n "checking libdjvu/ddjvuapi.h usability... " >&6; }
37494cat >conftest.$ac_ext <<_ACEOF
37495/* confdefs.h. */
37496_ACEOF
37497cat confdefs.h >>conftest.$ac_ext
37498cat >>conftest.$ac_ext <<_ACEOF
37499/* end confdefs.h. */
37500$ac_includes_default
37501#include <libdjvu/ddjvuapi.h>
37502_ACEOF
37503rm -f conftest.$ac_objext
37504if { (ac_try="$ac_compile"
37505case "(($ac_try" in
37506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37507 *) ac_try_echo=$ac_try;;
37508esac
37509eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37510$as_echo "$ac_try_echo") >&5
37511 (eval "$ac_compile") 2>conftest.er1
37512 ac_status=$?
37513 grep -v '^ *+' conftest.er1 >conftest.err
37514 rm -f conftest.er1
37515 cat conftest.err >&5
37516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37517 (exit $ac_status); } && {
37518 test -z "$ac_c_werror_flag" ||
37519 test ! -s conftest.err
37520 } && test -s conftest.$ac_objext; then
37521 ac_header_compiler=yes
37522else
37523 $as_echo "$as_me: failed program was:" >&5
37524sed 's/^/| /' conftest.$ac_ext >&5
37525
37526 ac_header_compiler=no
37527fi
37528
37529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37530{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37531$as_echo "$ac_header_compiler" >&6; }
37532
37533# Is the header present?
37534{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h presence" >&5
37535$as_echo_n "checking libdjvu/ddjvuapi.h presence... " >&6; }
37536cat >conftest.$ac_ext <<_ACEOF
37537/* confdefs.h. */
37538_ACEOF
37539cat confdefs.h >>conftest.$ac_ext
37540cat >>conftest.$ac_ext <<_ACEOF
37541/* end confdefs.h. */
37542#include <libdjvu/ddjvuapi.h>
37543_ACEOF
37544if { (ac_try="$ac_cpp conftest.$ac_ext"
37545case "(($ac_try" in
37546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37547 *) ac_try_echo=$ac_try;;
37548esac
37549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37550$as_echo "$ac_try_echo") >&5
37551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37552 ac_status=$?
37553 grep -v '^ *+' conftest.er1 >conftest.err
37554 rm -f conftest.er1
37555 cat conftest.err >&5
37556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37557 (exit $ac_status); } >/dev/null && {
37558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37559 test ! -s conftest.err
37560 }; then
37561 ac_header_preproc=yes
37562else
37563 $as_echo "$as_me: failed program was:" >&5
37564sed 's/^/| /' conftest.$ac_ext >&5
37565
37566 ac_header_preproc=no
37567fi
37568
37569rm -f conftest.err conftest.$ac_ext
37570{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37571$as_echo "$ac_header_preproc" >&6; }
37572
37573# So? What about this header?
37574case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37575 yes:no: )
37576 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
37577$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37578 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&5
37579$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&2;}
37580 ac_header_preproc=yes
37581 ;;
37582 no:yes:* )
37583 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&5
37584$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&2;}
37585 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&5
37586$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&2;}
37587 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&5
37588$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&2;}
37589 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&5
37590$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
37591 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&5
37592$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&2;}
37593 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&5
37594$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&2;}
37595 ( cat <<\_ASBOX
37596## ----------------------------------------- ##
37597## Report this to http://www.imagemagick.org ##
37598## ----------------------------------------- ##
37599_ASBOX
37600 ) | sed "s/^/$as_me: WARNING: /" >&2
37601 ;;
37602esac
37603{ $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
37604$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
37605if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
37606 $as_echo_n "(cached) " >&6
37607else
37608 ac_cv_header_libdjvu_ddjvuapi_h=$ac_header_preproc
37609fi
37610{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
37611$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
37612
37613fi
37614if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then
37615 passed=`expr $passed + 1`
37616else
37617 failed=`expr $failed + 1`
37618fi
37619
37620
37621 { $as_echo "$as_me:$LINENO: checking for ddjvu_context_create in -ldjvulibre" >&5
37622$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
37623if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then
37624 $as_echo_n "(cached) " >&6
37625else
37626 ac_check_lib_save_LIBS=$LIBS
37627LIBS="-ldjvulibre $LIBS"
37628cat >conftest.$ac_ext <<_ACEOF
37629/* confdefs.h. */
37630_ACEOF
37631cat confdefs.h >>conftest.$ac_ext
37632cat >>conftest.$ac_ext <<_ACEOF
37633/* end confdefs.h. */
37634
37635/* Override any GCC internal prototype to avoid an error.
37636 Use char because int might match the return type of a GCC
37637 builtin and then its argument prototype would still apply. */
37638#ifdef __cplusplus
37639extern "C"
37640#endif
37641char ddjvu_context_create ();
37642int
37643main ()
37644{
37645return ddjvu_context_create ();
37646 ;
37647 return 0;
37648}
37649_ACEOF
37650rm -f conftest.$ac_objext conftest$ac_exeext
37651if { (ac_try="$ac_link"
37652case "(($ac_try" in
37653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37654 *) ac_try_echo=$ac_try;;
37655esac
37656eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37657$as_echo "$ac_try_echo") >&5
37658 (eval "$ac_link") 2>conftest.er1
37659 ac_status=$?
37660 grep -v '^ *+' conftest.er1 >conftest.err
37661 rm -f conftest.er1
37662 cat conftest.err >&5
37663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37664 (exit $ac_status); } && {
37665 test -z "$ac_c_werror_flag" ||
37666 test ! -s conftest.err
37667 } && test -s conftest$ac_exeext && {
37668 test "$cross_compiling" = yes ||
37669 $as_test_x conftest$ac_exeext
37670 }; then
37671 ac_cv_lib_djvulibre_ddjvu_context_create=yes
37672else
37673 $as_echo "$as_me: failed program was:" >&5
37674sed 's/^/| /' conftest.$ac_ext >&5
37675
37676 ac_cv_lib_djvulibre_ddjvu_context_create=no
37677fi
37678
37679rm -rf conftest.dSYM
37680rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37681 conftest$ac_exeext conftest.$ac_ext
37682LIBS=$ac_check_lib_save_LIBS
37683fi
37684{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
37685$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
37686if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then
37687 passed=`expr $passed + 1`
37688else
37689 failed=`expr $failed + 1`
37690fi
37691
37692 { $as_echo "$as_me:$LINENO: checking if DJVU package is complete" >&5
37693$as_echo_n "checking if DJVU package is complete... " >&6; }
37694 if test $passed -gt 0; then
37695 if test $failed -gt 0; then
37696 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37697$as_echo "no -- some components failed test" >&6; }
37698 have_djvu='no (failed tests)'
37699 else
37700 DJVU_LIBS='-ldjvulibre'
37701 LIBS="$DJVU_LIBS $LIBS"
37702
37703cat >>confdefs.h <<\_ACEOF
37704#define DJVU_DELEGATE 1
37705_ACEOF
37706
37707 { $as_echo "$as_me:$LINENO: result: yes" >&5
37708$as_echo "yes" >&6; }
37709 have_djvu='yes'
37710 fi
37711 else
37712 { $as_echo "$as_me:$LINENO: result: no" >&5
37713$as_echo "no" >&6; }
37714 fi
37715fi
37716 if test "$have_djvu" = 'yes'; then
37717 DJVU_DELEGATE_TRUE=
37718 DJVU_DELEGATE_FALSE='#'
37719else
37720 DJVU_DELEGATE_TRUE='#'
37721 DJVU_DELEGATE_FALSE=
37722fi
37723
37724
37725
37726
37727#
37728# Check for FFTW delegate library.
37729#
37730
37731# Check whether --with-fftw was given.
37732if test "${with_fftw+set}" = set; then
37733 withval=$with_fftw; with_fftw=$withval
37734else
37735 with_fftw='yes'
37736fi
37737
37738
37739if test "$with_fftw" != 'yes'; then
37740 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
37741fi
37742
37743have_fftw='no'
37744FFTW_LIBS=''
37745if test "$with_fftw" != 'no'; then
37746 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37747$as_echo "-------------------------------------------------------------" >&6; }
37748 { $as_echo "$as_me:$LINENO: checking for FFTW" >&5
37749$as_echo_n "checking for FFTW... " >&6; }
37750 { $as_echo "$as_me:$LINENO: result: " >&5
37751$as_echo "" >&6; }
37752 failed=0
37753 passed=0
37754 if test "${ac_cv_header_fftw3_h+set}" = set; then
37755 { $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37756$as_echo_n "checking for fftw3.h... " >&6; }
37757if test "${ac_cv_header_fftw3_h+set}" = set; then
37758 $as_echo_n "(cached) " >&6
37759fi
37760{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37761$as_echo "$ac_cv_header_fftw3_h" >&6; }
37762else
37763 # Is the header compilable?
37764{ $as_echo "$as_me:$LINENO: checking fftw3.h usability" >&5
37765$as_echo_n "checking fftw3.h usability... " >&6; }
37766cat >conftest.$ac_ext <<_ACEOF
37767/* confdefs.h. */
37768_ACEOF
37769cat confdefs.h >>conftest.$ac_ext
37770cat >>conftest.$ac_ext <<_ACEOF
37771/* end confdefs.h. */
37772$ac_includes_default
37773#include <fftw3.h>
37774_ACEOF
37775rm -f conftest.$ac_objext
37776if { (ac_try="$ac_compile"
37777case "(($ac_try" in
37778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37779 *) ac_try_echo=$ac_try;;
37780esac
37781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37782$as_echo "$ac_try_echo") >&5
37783 (eval "$ac_compile") 2>conftest.er1
37784 ac_status=$?
37785 grep -v '^ *+' conftest.er1 >conftest.err
37786 rm -f conftest.er1
37787 cat conftest.err >&5
37788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37789 (exit $ac_status); } && {
37790 test -z "$ac_c_werror_flag" ||
37791 test ! -s conftest.err
37792 } && test -s conftest.$ac_objext; then
37793 ac_header_compiler=yes
37794else
37795 $as_echo "$as_me: failed program was:" >&5
37796sed 's/^/| /' conftest.$ac_ext >&5
37797
37798 ac_header_compiler=no
37799fi
37800
37801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37802{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37803$as_echo "$ac_header_compiler" >&6; }
37804
37805# Is the header present?
37806{ $as_echo "$as_me:$LINENO: checking fftw3.h presence" >&5
37807$as_echo_n "checking fftw3.h presence... " >&6; }
37808cat >conftest.$ac_ext <<_ACEOF
37809/* confdefs.h. */
37810_ACEOF
37811cat confdefs.h >>conftest.$ac_ext
37812cat >>conftest.$ac_ext <<_ACEOF
37813/* end confdefs.h. */
37814#include <fftw3.h>
37815_ACEOF
37816if { (ac_try="$ac_cpp conftest.$ac_ext"
37817case "(($ac_try" in
37818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37819 *) ac_try_echo=$ac_try;;
37820esac
37821eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37822$as_echo "$ac_try_echo") >&5
37823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37824 ac_status=$?
37825 grep -v '^ *+' conftest.er1 >conftest.err
37826 rm -f conftest.er1
37827 cat conftest.err >&5
37828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37829 (exit $ac_status); } >/dev/null && {
37830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37831 test ! -s conftest.err
37832 }; then
37833 ac_header_preproc=yes
37834else
37835 $as_echo "$as_me: failed program was:" >&5
37836sed 's/^/| /' conftest.$ac_ext >&5
37837
37838 ac_header_preproc=no
37839fi
37840
37841rm -f conftest.err conftest.$ac_ext
37842{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37843$as_echo "$ac_header_preproc" >&6; }
37844
37845# So? What about this header?
37846case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37847 yes:no: )
37848 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
37849$as_echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37850 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
37851$as_echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
37852 ac_header_preproc=yes
37853 ;;
37854 no:yes:* )
37855 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
37856$as_echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
37857 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5
37858$as_echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;}
37859 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
37860$as_echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
37861 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5
37862$as_echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;}
37863 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
37864$as_echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
37865 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
37866$as_echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
37867 ( cat <<\_ASBOX
37868## ----------------------------------------- ##
37869## Report this to http://www.imagemagick.org ##
37870## ----------------------------------------- ##
37871_ASBOX
37872 ) | sed "s/^/$as_me: WARNING: /" >&2
37873 ;;
37874esac
37875{ $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37876$as_echo_n "checking for fftw3.h... " >&6; }
37877if test "${ac_cv_header_fftw3_h+set}" = set; then
37878 $as_echo_n "(cached) " >&6
37879else
37880 ac_cv_header_fftw3_h=$ac_header_preproc
37881fi
37882{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37883$as_echo "$ac_cv_header_fftw3_h" >&6; }
37884
37885fi
37886if test "x$ac_cv_header_fftw3_h" = x""yes; then
37887 passed=`expr $passed + 1`
37888else
37889 failed=`expr $failed + 1`
37890fi
37891
37892
37893 { $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
37894$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
37895if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
37896 $as_echo_n "(cached) " >&6
37897else
37898 ac_check_lib_save_LIBS=$LIBS
37899LIBS="-lfftw3 $LIBS"
37900cat >conftest.$ac_ext <<_ACEOF
37901/* confdefs.h. */
37902_ACEOF
37903cat confdefs.h >>conftest.$ac_ext
37904cat >>conftest.$ac_ext <<_ACEOF
37905/* end confdefs.h. */
37906
37907/* Override any GCC internal prototype to avoid an error.
37908 Use char because int might match the return type of a GCC
37909 builtin and then its argument prototype would still apply. */
37910#ifdef __cplusplus
37911extern "C"
37912#endif
37913char fftw_execute ();
37914int
37915main ()
37916{
37917return fftw_execute ();
37918 ;
37919 return 0;
37920}
37921_ACEOF
37922rm -f conftest.$ac_objext conftest$ac_exeext
37923if { (ac_try="$ac_link"
37924case "(($ac_try" in
37925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37926 *) ac_try_echo=$ac_try;;
37927esac
37928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37929$as_echo "$ac_try_echo") >&5
37930 (eval "$ac_link") 2>conftest.er1
37931 ac_status=$?
37932 grep -v '^ *+' conftest.er1 >conftest.err
37933 rm -f conftest.er1
37934 cat conftest.err >&5
37935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37936 (exit $ac_status); } && {
37937 test -z "$ac_c_werror_flag" ||
37938 test ! -s conftest.err
37939 } && test -s conftest$ac_exeext && {
37940 test "$cross_compiling" = yes ||
37941 $as_test_x conftest$ac_exeext
37942 }; then
37943 ac_cv_lib_fftw3_fftw_execute=yes
37944else
37945 $as_echo "$as_me: failed program was:" >&5
37946sed 's/^/| /' conftest.$ac_ext >&5
37947
37948 ac_cv_lib_fftw3_fftw_execute=no
37949fi
37950
37951rm -rf conftest.dSYM
37952rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37953 conftest$ac_exeext conftest.$ac_ext
37954LIBS=$ac_check_lib_save_LIBS
37955fi
37956{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
37957$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
37958if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then
37959 passed=`expr $passed + 1`
37960else
37961 failed=`expr $failed + 1`
37962fi
37963
37964 { $as_echo "$as_me:$LINENO: checking if FFTW package is complete" >&5
37965$as_echo_n "checking if FFTW package is complete... " >&6; }
37966 if test $passed -gt 0; then
37967 if test $failed -gt 0; then
37968 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37969$as_echo "no -- some components failed test" >&6; }
37970 have_fftw='no (failed tests)'
37971 else
37972 FFTW_LIBS='-lfftw3'
37973 LIBS="$FFTW_LIBS $LIBS"
37974
37975cat >>confdefs.h <<\_ACEOF
37976#define FFTW_DELEGATE 1
37977_ACEOF
37978
37979 { $as_echo "$as_me:$LINENO: result: yes" >&5
37980$as_echo "yes" >&6; }
37981 have_fftw='yes'
37982 fi
37983 else
37984 { $as_echo "$as_me:$LINENO: result: no" >&5
37985$as_echo "no" >&6; }
37986 fi
37987fi
37988 if test "$have_fftw" = 'yes'; then
37989 FFTW_DELEGATE_TRUE=
37990 FFTW_DELEGATE_FALSE='#'
37991else
37992 FFTW_DELEGATE_TRUE='#'
37993 FFTW_DELEGATE_FALSE=
37994fi
37995
37996
37997
37998
37999#
38000# Check for FlashPIX delegate library.
38001#
38002
38003# Check whether --with-fpx was given.
38004if test "${with_fpx+set}" = set; then
38005 withval=$with_fpx; with_fpx=$withval
38006else
38007 with_fpx='yes'
38008fi
38009
38010
38011if test "$with_fpx" != 'yes'; then
38012 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
38013fi
38014
38015have_fpx='no'
38016FPX_LIBS=''
38017if test "$with_fpx" != 'no'; then
38018 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38019$as_echo "-------------------------------------------------------------" >&6; }
38020 { $as_echo "$as_me:$LINENO: checking for FlashPIX" >&5
38021$as_echo_n "checking for FlashPIX... " >&6; }
38022 { $as_echo "$as_me:$LINENO: result: " >&5
38023$as_echo "" >&6; }
38024 failed=0
38025 passed=0
38026 ac_ext=cpp
38027ac_cpp='$CXXCPP $CPPFLAGS'
38028ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38029ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38030ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38031
38032
38033if test "${ac_cv_header_fpxlib_h+set}" = set; then
38034 { $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
38035$as_echo_n "checking for fpxlib.h... " >&6; }
38036if test "${ac_cv_header_fpxlib_h+set}" = set; then
38037 $as_echo_n "(cached) " >&6
38038fi
38039{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
38040$as_echo "$ac_cv_header_fpxlib_h" >&6; }
38041else
38042 # Is the header compilable?
38043{ $as_echo "$as_me:$LINENO: checking fpxlib.h usability" >&5
38044$as_echo_n "checking fpxlib.h usability... " >&6; }
38045cat >conftest.$ac_ext <<_ACEOF
38046/* confdefs.h. */
38047_ACEOF
38048cat confdefs.h >>conftest.$ac_ext
38049cat >>conftest.$ac_ext <<_ACEOF
38050/* end confdefs.h. */
38051$ac_includes_default
38052#include <fpxlib.h>
38053_ACEOF
38054rm -f conftest.$ac_objext
38055if { (ac_try="$ac_compile"
38056case "(($ac_try" in
38057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38058 *) ac_try_echo=$ac_try;;
38059esac
38060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38061$as_echo "$ac_try_echo") >&5
38062 (eval "$ac_compile") 2>conftest.er1
38063 ac_status=$?
38064 grep -v '^ *+' conftest.er1 >conftest.err
38065 rm -f conftest.er1
38066 cat conftest.err >&5
38067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38068 (exit $ac_status); } && {
38069 test -z "$ac_cxx_werror_flag" ||
38070 test ! -s conftest.err
38071 } && test -s conftest.$ac_objext; then
38072 ac_header_compiler=yes
38073else
38074 $as_echo "$as_me: failed program was:" >&5
38075sed 's/^/| /' conftest.$ac_ext >&5
38076
38077 ac_header_compiler=no
38078fi
38079
38080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38081{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38082$as_echo "$ac_header_compiler" >&6; }
38083
38084# Is the header present?
38085{ $as_echo "$as_me:$LINENO: checking fpxlib.h presence" >&5
38086$as_echo_n "checking fpxlib.h presence... " >&6; }
38087cat >conftest.$ac_ext <<_ACEOF
38088/* confdefs.h. */
38089_ACEOF
38090cat confdefs.h >>conftest.$ac_ext
38091cat >>conftest.$ac_ext <<_ACEOF
38092/* end confdefs.h. */
38093#include <fpxlib.h>
38094_ACEOF
38095if { (ac_try="$ac_cpp conftest.$ac_ext"
38096case "(($ac_try" in
38097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38098 *) ac_try_echo=$ac_try;;
38099esac
38100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38101$as_echo "$ac_try_echo") >&5
38102 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38103 ac_status=$?
38104 grep -v '^ *+' conftest.er1 >conftest.err
38105 rm -f conftest.er1
38106 cat conftest.err >&5
38107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108 (exit $ac_status); } >/dev/null && {
38109 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
38110 test ! -s conftest.err
38111 }; then
38112 ac_header_preproc=yes
38113else
38114 $as_echo "$as_me: failed program was:" >&5
38115sed 's/^/| /' conftest.$ac_ext >&5
38116
38117 ac_header_preproc=no
38118fi
38119
38120rm -f conftest.err conftest.$ac_ext
38121{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38122$as_echo "$ac_header_preproc" >&6; }
38123
38124# So? What about this header?
38125case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
38126 yes:no: )
38127 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
38128$as_echo "$as_me: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38129 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the compiler's result" >&5
38130$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the compiler's result" >&2;}
38131 ac_header_preproc=yes
38132 ;;
38133 no:yes:* )
38134 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: present but cannot be compiled" >&5
38135$as_echo "$as_me: WARNING: fpxlib.h: present but cannot be compiled" >&2;}
38136 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: check for missing prerequisite headers?" >&5
38137$as_echo "$as_me: WARNING: fpxlib.h: check for missing prerequisite headers?" >&2;}
38138 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: see the Autoconf documentation" >&5
38139$as_echo "$as_me: WARNING: fpxlib.h: see the Autoconf documentation" >&2;}
38140 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&5
38141$as_echo "$as_me: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
38142 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&5
38143$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&2;}
38144 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&5
38145$as_echo "$as_me: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&2;}
38146 ( cat <<\_ASBOX
38147## ----------------------------------------- ##
38148## Report this to http://www.imagemagick.org ##
38149## ----------------------------------------- ##
38150_ASBOX
38151 ) | sed "s/^/$as_me: WARNING: /" >&2
38152 ;;
38153esac
38154{ $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
38155$as_echo_n "checking for fpxlib.h... " >&6; }
38156if test "${ac_cv_header_fpxlib_h+set}" = set; then
38157 $as_echo_n "(cached) " >&6
38158else
38159 ac_cv_header_fpxlib_h=$ac_header_preproc
38160fi
38161{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
38162$as_echo "$ac_cv_header_fpxlib_h" >&6; }
38163
38164fi
38165if test "x$ac_cv_header_fpxlib_h" = x""yes; then
38166 passed=`expr $passed + 1`
38167else
38168 failed=`expr $failed + 1`
38169fi
38170
38171
38172 { $as_echo "$as_me:$LINENO: checking for FPX_OpenImageByFilename in -lfpx" >&5
38173$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
38174if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then
38175 $as_echo_n "(cached) " >&6
38176else
38177 ac_check_lib_save_LIBS=$LIBS
38178LIBS="-lfpx $LIBS"
38179cat >conftest.$ac_ext <<_ACEOF
38180/* confdefs.h. */
38181_ACEOF
38182cat confdefs.h >>conftest.$ac_ext
38183cat >>conftest.$ac_ext <<_ACEOF
38184/* end confdefs.h. */
38185
38186/* Override any GCC internal prototype to avoid an error.
38187 Use char because int might match the return type of a GCC
38188 builtin and then its argument prototype would still apply. */
38189#ifdef __cplusplus
38190extern "C"
38191#endif
38192char FPX_OpenImageByFilename ();
38193int
38194main ()
38195{
38196return FPX_OpenImageByFilename ();
38197 ;
38198 return 0;
38199}
38200_ACEOF
38201rm -f conftest.$ac_objext conftest$ac_exeext
38202if { (ac_try="$ac_link"
38203case "(($ac_try" in
38204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38205 *) ac_try_echo=$ac_try;;
38206esac
38207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38208$as_echo "$ac_try_echo") >&5
38209 (eval "$ac_link") 2>conftest.er1
38210 ac_status=$?
38211 grep -v '^ *+' conftest.er1 >conftest.err
38212 rm -f conftest.er1
38213 cat conftest.err >&5
38214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38215 (exit $ac_status); } && {
38216 test -z "$ac_cxx_werror_flag" ||
38217 test ! -s conftest.err
38218 } && test -s conftest$ac_exeext && {
38219 test "$cross_compiling" = yes ||
38220 $as_test_x conftest$ac_exeext
38221 }; then
38222 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
38223else
38224 $as_echo "$as_me: failed program was:" >&5
38225sed 's/^/| /' conftest.$ac_ext >&5
38226
38227 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
38228fi
38229
38230rm -rf conftest.dSYM
38231rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38232 conftest$ac_exeext conftest.$ac_ext
38233LIBS=$ac_check_lib_save_LIBS
38234fi
38235{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
38236$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
38237if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then
38238 passed=`expr $passed + 1`
38239else
38240 failed=`expr $failed + 1`
38241fi
38242
38243 ac_ext=c
38244ac_cpp='$CPP $CPPFLAGS'
38245ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38246ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38247ac_compiler_gnu=$ac_cv_c_compiler_gnu
38248
38249 { $as_echo "$as_me:$LINENO: checking if FlashPIX package is complete" >&5
38250$as_echo_n "checking if FlashPIX package is complete... " >&6; }
38251 if test $passed -gt 0; then
38252 if test $failed -gt 0; then
38253 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38254$as_echo "no -- some components failed test" >&6; }
38255 have_fpx='no (failed tests)'
38256 else
38257 FPX_LIBS='-lfpx'
38258
38259cat >>confdefs.h <<\_ACEOF
38260#define FPX_DELEGATE 1
38261_ACEOF
38262
38263 { $as_echo "$as_me:$LINENO: result: yes" >&5
38264$as_echo "yes" >&6; }
38265 have_fpx='yes'
38266 PERLMAINCC="$CXX"
38267 fi
38268 else
38269 { $as_echo "$as_me:$LINENO: result: no" >&5
38270$as_echo "no" >&6; }
38271 fi
38272fi
38273 if test "$have_fpx" = 'yes'; then
38274 FPX_DELEGATE_TRUE=
38275 FPX_DELEGATE_FALSE='#'
38276else
38277 FPX_DELEGATE_TRUE='#'
38278 FPX_DELEGATE_FALSE=
38279fi
38280
38281
38282
38283
38284#
38285# Check for fontconfig delegate library.
38286#
38287
38288# Check whether --with-fontconfig was given.
38289if test "${with_fontconfig+set}" = set; then
38290 withval=$with_fontconfig; with_fontconfig=$withval
38291else
38292 with_fontconfig=$have_x
38293fi
38294
38295
38296if test "$with_fontconfig" != 'yes'; then
38297 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
38298fi
38299
38300have_fontconfig='no'
38301FONTCONFIG_CFLAGS=""
38302FONTCONFIG_LIBS=""
38303FONTCONFIG_PKG=""
38304if test "x$with_fontconfig" = "xyes"; then
38305 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38306$as_echo "-------------------------------------------------------------" >&6; }
38307
38308pkg_failed=no
38309{ $as_echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
38310$as_echo_n "checking for FONTCONFIG... " >&6; }
38311
38312if test -n "$FONTCONFIG_CFLAGS"; then
38313 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
38314 elif test -n "$PKG_CONFIG"; then
38315 if test -n "$PKG_CONFIG" && \
38316 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
38317 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
38318 ac_status=$?
38319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38320 (exit $ac_status); }; then
38321 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
38322else
38323 pkg_failed=yes
38324fi
38325 else
38326 pkg_failed=untried
38327fi
38328if test -n "$FONTCONFIG_LIBS"; then
38329 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
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_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
38338else
38339 pkg_failed=yes
38340fi
38341 else
38342 pkg_failed=untried
38343fi
38344
38345
38346
38347if test $pkg_failed = yes; then
38348
38349if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38350 _pkg_short_errors_supported=yes
38351else
38352 _pkg_short_errors_supported=no
38353fi
38354 if test $_pkg_short_errors_supported = yes; then
38355 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
38356 else
38357 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
38358 fi
38359 # Put the nasty error message in config.log where it belongs
38360 echo "$FONTCONFIG_PKG_ERRORS" >&5
38361
38362 { $as_echo "$as_me:$LINENO: result: no" >&5
38363$as_echo "no" >&6; }
38364 have_fontconfig=no
38365elif test $pkg_failed = untried; then
38366 have_fontconfig=no
38367else
38368 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
38369 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
38370 { $as_echo "$as_me:$LINENO: result: yes" >&5
38371$as_echo "yes" >&6; }
38372 have_fontconfig=yes
38373fi
38374 { $as_echo "$as_me:$LINENO: result: " >&5
38375$as_echo "" >&6; }
38376fi
38377
38378if test "$have_fontconfig" = 'yes'; then
38379
38380cat >>confdefs.h <<\_ACEOF
38381#define FONTCONFIG_DELEGATE 1
38382_ACEOF
38383
38384 if test "$with_modules" = 'no'; then
38385 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
38386 fi
38387fi
38388
38389 if test "$have_fontconfig" = 'yes'; then
38390 FONTCONFIG_DELEGATE_TRUE=
38391 FONTCONFIG_DELEGATE_FALSE='#'
38392else
38393 FONTCONFIG_DELEGATE_TRUE='#'
38394 FONTCONFIG_DELEGATE_FALSE=
38395fi
38396
38397
38398
38399
38400
38401#
38402# Check for freetype delegate library.
38403#
38404
38405# Check whether --with-freetype was given.
38406if test "${with_freetype+set}" = set; then
38407 withval=$with_freetype; with_freetype=$withval
38408else
38409 with_freetype='yes'
38410fi
38411
38412
38413
38414if test "$with_freetype" != 'yes'; then
38415 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
38416fi
38417
38418have_freetype='no'
38419FREETYPE_LIBS=''
38420if test "$with_freetype" != 'no'; then
38421 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38422$as_echo "-------------------------------------------------------------" >&6; }
38423 { $as_echo "$as_me:$LINENO: checking for FreeType 2.0" >&5
38424$as_echo_n "checking for FreeType 2.0... " >&6; }
38425 { $as_echo "$as_me:$LINENO: result: " >&5
38426$as_echo "" >&6; }
38427 failed=0
38428 passed=0
cristy66291112009-10-03 22:44:36 +000038429 PERSIST_LIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000038430 PERSIST_CPPFLAGS="$CPPFLAGS"
38431 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
38432 :
38433 else
38434 freetype_config=''
38435 for ac_prog in freetype-config
38436do
38437 # Extract the first word of "$ac_prog", so it can be a program name with args.
38438set dummy $ac_prog; ac_word=$2
38439{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
38440$as_echo_n "checking for $ac_word... " >&6; }
38441if test "${ac_cv_prog_freetype_config+set}" = set; then
38442 $as_echo_n "(cached) " >&6
38443else
38444 if test -n "$freetype_config"; then
38445 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
38446else
38447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38448for as_dir in $PATH
38449do
38450 IFS=$as_save_IFS
38451 test -z "$as_dir" && as_dir=.
38452 for ac_exec_ext in '' $ac_executable_extensions; do
38453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
38454 ac_cv_prog_freetype_config="$ac_prog"
38455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
38456 break 2
38457 fi
38458done
38459done
38460IFS=$as_save_IFS
38461
38462fi
38463fi
38464freetype_config=$ac_cv_prog_freetype_config
38465if test -n "$freetype_config"; then
38466 { $as_echo "$as_me:$LINENO: result: $freetype_config" >&5
38467$as_echo "$freetype_config" >&6; }
38468else
38469 { $as_echo "$as_me:$LINENO: result: no" >&5
38470$as_echo "no" >&6; }
38471fi
38472
38473
38474 test -n "$freetype_config" && break
38475done
38476 if test -n "$freetype_config"; then
38477 freetype_cflags=`$freetype_config --cflags`
38478 freetype_libs=`$freetype_config --libs`
cristy66291112009-10-03 22:44:36 +000038479 LIBS="$LIBS $freetype_libs"
cristy3ed852e2009-09-05 21:47:34 +000038480 CPPFLAGS="$freetype_cflags $CPPFLAGS"
38481 fi
38482 fi
38483
38484 if test "$FREETYPE_LIBS" = ''; then
38485 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
38486$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
38487if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
38488 $as_echo_n "(cached) " >&6
38489else
38490 ac_check_lib_save_LIBS=$LIBS
38491LIBS="-lfreetype $LIBS"
38492cat >conftest.$ac_ext <<_ACEOF
38493/* confdefs.h. */
38494_ACEOF
38495cat confdefs.h >>conftest.$ac_ext
38496cat >>conftest.$ac_ext <<_ACEOF
38497/* end confdefs.h. */
38498
38499/* Override any GCC internal prototype to avoid an error.
38500 Use char because int might match the return type of a GCC
38501 builtin and then its argument prototype would still apply. */
38502#ifdef __cplusplus
38503extern "C"
38504#endif
38505char FT_Init_FreeType ();
38506int
38507main ()
38508{
38509return FT_Init_FreeType ();
38510 ;
38511 return 0;
38512}
38513_ACEOF
38514rm -f conftest.$ac_objext conftest$ac_exeext
38515if { (ac_try="$ac_link"
38516case "(($ac_try" in
38517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38518 *) ac_try_echo=$ac_try;;
38519esac
38520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38521$as_echo "$ac_try_echo") >&5
38522 (eval "$ac_link") 2>conftest.er1
38523 ac_status=$?
38524 grep -v '^ *+' conftest.er1 >conftest.err
38525 rm -f conftest.er1
38526 cat conftest.err >&5
38527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38528 (exit $ac_status); } && {
38529 test -z "$ac_c_werror_flag" ||
38530 test ! -s conftest.err
38531 } && test -s conftest$ac_exeext && {
38532 test "$cross_compiling" = yes ||
38533 $as_test_x conftest$ac_exeext
38534 }; then
38535 ac_cv_lib_freetype_FT_Init_FreeType=yes
38536else
38537 $as_echo "$as_me: failed program was:" >&5
38538sed 's/^/| /' conftest.$ac_ext >&5
38539
38540 ac_cv_lib_freetype_FT_Init_FreeType=no
38541fi
38542
38543rm -rf conftest.dSYM
38544rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38545 conftest$ac_exeext conftest.$ac_ext
38546LIBS=$ac_check_lib_save_LIBS
38547fi
38548{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
38549$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
38550if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
38551 FREETYPE_LIBS='-lfreetype'
38552fi
38553
38554 if test "$FREETYPE_LIBS" != ''; then
38555 passed=`expr $passed + 1`
38556 else
38557 failed=`expr $failed + 1`
cristy66291112009-10-03 22:44:36 +000038558 LIBS="$PERSIST_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000038559 fi
38560 fi
38561
38562 if test "${ac_cv_header_ft2build_h+set}" = set; then
38563 { $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
38564$as_echo_n "checking for ft2build.h... " >&6; }
38565if test "${ac_cv_header_ft2build_h+set}" = set; then
38566 $as_echo_n "(cached) " >&6
38567fi
38568{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
38569$as_echo "$ac_cv_header_ft2build_h" >&6; }
38570else
38571 # Is the header compilable?
38572{ $as_echo "$as_me:$LINENO: checking ft2build.h usability" >&5
38573$as_echo_n "checking ft2build.h usability... " >&6; }
38574cat >conftest.$ac_ext <<_ACEOF
38575/* confdefs.h. */
38576_ACEOF
38577cat confdefs.h >>conftest.$ac_ext
38578cat >>conftest.$ac_ext <<_ACEOF
38579/* end confdefs.h. */
38580$ac_includes_default
38581#include <ft2build.h>
38582_ACEOF
38583rm -f conftest.$ac_objext
38584if { (ac_try="$ac_compile"
38585case "(($ac_try" in
38586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38587 *) ac_try_echo=$ac_try;;
38588esac
38589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38590$as_echo "$ac_try_echo") >&5
38591 (eval "$ac_compile") 2>conftest.er1
38592 ac_status=$?
38593 grep -v '^ *+' conftest.er1 >conftest.err
38594 rm -f conftest.er1
38595 cat conftest.err >&5
38596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597 (exit $ac_status); } && {
38598 test -z "$ac_c_werror_flag" ||
38599 test ! -s conftest.err
38600 } && test -s conftest.$ac_objext; then
38601 ac_header_compiler=yes
38602else
38603 $as_echo "$as_me: failed program was:" >&5
38604sed 's/^/| /' conftest.$ac_ext >&5
38605
38606 ac_header_compiler=no
38607fi
38608
38609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38610{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38611$as_echo "$ac_header_compiler" >&6; }
38612
38613# Is the header present?
38614{ $as_echo "$as_me:$LINENO: checking ft2build.h presence" >&5
38615$as_echo_n "checking ft2build.h presence... " >&6; }
38616cat >conftest.$ac_ext <<_ACEOF
38617/* confdefs.h. */
38618_ACEOF
38619cat confdefs.h >>conftest.$ac_ext
38620cat >>conftest.$ac_ext <<_ACEOF
38621/* end confdefs.h. */
38622#include <ft2build.h>
38623_ACEOF
38624if { (ac_try="$ac_cpp conftest.$ac_ext"
38625case "(($ac_try" in
38626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38627 *) ac_try_echo=$ac_try;;
38628esac
38629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38630$as_echo "$ac_try_echo") >&5
38631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38632 ac_status=$?
38633 grep -v '^ *+' conftest.er1 >conftest.err
38634 rm -f conftest.er1
38635 cat conftest.err >&5
38636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38637 (exit $ac_status); } >/dev/null && {
38638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38639 test ! -s conftest.err
38640 }; then
38641 ac_header_preproc=yes
38642else
38643 $as_echo "$as_me: failed program was:" >&5
38644sed 's/^/| /' conftest.$ac_ext >&5
38645
38646 ac_header_preproc=no
38647fi
38648
38649rm -f conftest.err conftest.$ac_ext
38650{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38651$as_echo "$ac_header_preproc" >&6; }
38652
38653# So? What about this header?
38654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38655 yes:no: )
38656 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
38657$as_echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38658 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
38659$as_echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
38660 ac_header_preproc=yes
38661 ;;
38662 no:yes:* )
38663 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
38664$as_echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
38665 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
38666$as_echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
38667 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
38668$as_echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
38669 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
38670$as_echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
38671 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
38672$as_echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
38673 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
38674$as_echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
38675 ( cat <<\_ASBOX
38676## ----------------------------------------- ##
38677## Report this to http://www.imagemagick.org ##
38678## ----------------------------------------- ##
38679_ASBOX
38680 ) | sed "s/^/$as_me: WARNING: /" >&2
38681 ;;
38682esac
38683{ $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
38684$as_echo_n "checking for ft2build.h... " >&6; }
38685if test "${ac_cv_header_ft2build_h+set}" = set; then
38686 $as_echo_n "(cached) " >&6
38687else
38688 ac_cv_header_ft2build_h=$ac_header_preproc
38689fi
38690{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
38691$as_echo "$ac_cv_header_ft2build_h" >&6; }
38692
38693fi
38694if test "x$ac_cv_header_ft2build_h" = x""yes; then
38695 FT2BUILD_H='#include <ft2build.h>'
38696else
38697 ft2build=''
38698fi
38699
38700
38701 { $as_echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
38702$as_echo_n "checking for freetype/freetype.h... " >&6; }
38703if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
38704 $as_echo_n "(cached) " >&6
38705else
38706 cat >conftest.$ac_ext <<_ACEOF
38707/* confdefs.h. */
38708_ACEOF
38709cat confdefs.h >>conftest.$ac_ext
38710cat >>conftest.$ac_ext <<_ACEOF
38711/* end confdefs.h. */
38712$FT2BUILD_H
38713
38714#include <freetype/freetype.h>
38715_ACEOF
38716rm -f conftest.$ac_objext
38717if { (ac_try="$ac_compile"
38718case "(($ac_try" in
38719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38720 *) ac_try_echo=$ac_try;;
38721esac
38722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38723$as_echo "$ac_try_echo") >&5
38724 (eval "$ac_compile") 2>conftest.er1
38725 ac_status=$?
38726 grep -v '^ *+' conftest.er1 >conftest.err
38727 rm -f conftest.er1
38728 cat conftest.err >&5
38729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38730 (exit $ac_status); } && {
38731 test -z "$ac_c_werror_flag" ||
38732 test ! -s conftest.err
38733 } && test -s conftest.$ac_objext; then
38734 ac_cv_header_freetype_freetype_h=yes
38735else
38736 $as_echo "$as_me: failed program was:" >&5
38737sed 's/^/| /' conftest.$ac_ext >&5
38738
38739 ac_cv_header_freetype_freetype_h=no
38740fi
38741
38742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38743fi
38744{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
38745$as_echo "$ac_cv_header_freetype_freetype_h" >&6; }
38746if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then
38747 have_freetype_h='yes'
38748else
38749 have_freetype_h='no'
38750fi
38751
38752
38753 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
38754 passed=`expr $passed + 1`
38755 else
38756 failed=`expr $failed + 1`
38757 CPPFLAGS="$PERSIST_CPPFLAGS"
38758 fi
38759
38760 { $as_echo "$as_me:$LINENO: checking if FreeType package is complete" >&5
38761$as_echo_n "checking if FreeType package is complete... " >&6; }
38762 if test $passed -gt 0; then
38763 if test $failed -gt 0; then
38764 FREETYPE_LIBS=''
38765 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38766$as_echo "no -- some components failed test" >&6; }
38767 have_freetype='no (failed tests)'
38768 else
38769 LIBS="$FREETYPE_LIBS $LIBS"
38770
38771cat >>confdefs.h <<\_ACEOF
38772#define FREETYPE_DELEGATE 1
38773_ACEOF
38774
38775 if test "$ac_cv_header_ft2build_h" = 'yes'; then
38776
38777cat >>confdefs.h <<\_ACEOF
38778#define HAVE_FT2BUILD_H 1
38779_ACEOF
38780
38781 fi
38782 { $as_echo "$as_me:$LINENO: result: yes" >&5
38783$as_echo "yes" >&6; }
38784 have_freetype='yes'
38785 fi
38786 else
38787 { $as_echo "$as_me:$LINENO: result: no" >&5
38788$as_echo "no" >&6; }
38789 fi
38790fi
38791 if test "$have_freetype" = 'yes'; then
38792 FREETYPE_DELEGATE_TRUE=
38793 FREETYPE_DELEGATE_FALSE='#'
38794else
38795 FREETYPE_DELEGATE_TRUE='#'
38796 FREETYPE_DELEGATE_FALSE=
38797fi
38798
38799
38800
38801
38802
38803#
38804# Check for Ghostscript library or framework.
38805#
38806# Test for iapi.h & test for gsapi_new_instance in -lgs
38807# or -framework Ghostscript
38808
38809
38810# Check whether --with-gslib was given.
38811if test "${with_gslib+set}" = set; then
38812 withval=$with_gslib; with_gslib=$withval
38813else
38814 with_gslib='no'
38815fi
38816
38817
cristyb7931f12009-09-25 10:22:21 +000038818gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000038819if test "$with_gslib" != 'yes'; then
38820 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
38821fi
38822
38823have_gslib='no'
38824GS_LIBS=''
38825if test "$with_gslib" != 'no'; then
38826 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38827$as_echo "-------------------------------------------------------------" >&6; }
38828 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
38829$as_echo_n "checking for Ghostscript... " >&6; }
38830 { $as_echo "$as_me:$LINENO: result: " >&5
38831$as_echo "" >&6; }
cristyb7931f12009-09-25 10:22:21 +000038832 framework=0
cristy3ed852e2009-09-05 21:47:34 +000038833 failed=0
38834 passed=0
38835 if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38836 { $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38837$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38838if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38839 $as_echo_n "(cached) " >&6
38840fi
38841{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38842$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38843else
38844 # Is the header compilable?
38845{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h usability" >&5
38846$as_echo_n "checking ghostscript/iapi.h usability... " >&6; }
38847cat >conftest.$ac_ext <<_ACEOF
38848/* confdefs.h. */
38849_ACEOF
38850cat confdefs.h >>conftest.$ac_ext
38851cat >>conftest.$ac_ext <<_ACEOF
38852/* end confdefs.h. */
38853$ac_includes_default
38854#include <ghostscript/iapi.h>
38855_ACEOF
38856rm -f conftest.$ac_objext
38857if { (ac_try="$ac_compile"
38858case "(($ac_try" in
38859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38860 *) ac_try_echo=$ac_try;;
38861esac
38862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38863$as_echo "$ac_try_echo") >&5
38864 (eval "$ac_compile") 2>conftest.er1
38865 ac_status=$?
38866 grep -v '^ *+' conftest.er1 >conftest.err
38867 rm -f conftest.er1
38868 cat conftest.err >&5
38869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38870 (exit $ac_status); } && {
38871 test -z "$ac_c_werror_flag" ||
38872 test ! -s conftest.err
38873 } && test -s conftest.$ac_objext; then
38874 ac_header_compiler=yes
38875else
38876 $as_echo "$as_me: failed program was:" >&5
38877sed 's/^/| /' conftest.$ac_ext >&5
38878
38879 ac_header_compiler=no
38880fi
38881
38882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38883{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38884$as_echo "$ac_header_compiler" >&6; }
38885
38886# Is the header present?
38887{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h presence" >&5
38888$as_echo_n "checking ghostscript/iapi.h presence... " >&6; }
38889cat >conftest.$ac_ext <<_ACEOF
38890/* confdefs.h. */
38891_ACEOF
38892cat confdefs.h >>conftest.$ac_ext
38893cat >>conftest.$ac_ext <<_ACEOF
38894/* end confdefs.h. */
38895#include <ghostscript/iapi.h>
38896_ACEOF
38897if { (ac_try="$ac_cpp conftest.$ac_ext"
38898case "(($ac_try" in
38899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38900 *) ac_try_echo=$ac_try;;
38901esac
38902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38903$as_echo "$ac_try_echo") >&5
38904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38905 ac_status=$?
38906 grep -v '^ *+' conftest.er1 >conftest.err
38907 rm -f conftest.er1
38908 cat conftest.err >&5
38909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38910 (exit $ac_status); } >/dev/null && {
38911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38912 test ! -s conftest.err
38913 }; then
38914 ac_header_preproc=yes
38915else
38916 $as_echo "$as_me: failed program was:" >&5
38917sed 's/^/| /' conftest.$ac_ext >&5
38918
38919 ac_header_preproc=no
38920fi
38921
38922rm -f conftest.err conftest.$ac_ext
38923{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38924$as_echo "$ac_header_preproc" >&6; }
38925
38926# So? What about this header?
38927case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38928 yes:no: )
38929 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
38930$as_echo "$as_me: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38931 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&5
38932$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&2;}
38933 ac_header_preproc=yes
38934 ;;
38935 no:yes:* )
38936 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&5
38937$as_echo "$as_me: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&2;}
38938 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&5
38939$as_echo "$as_me: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&2;}
38940 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&5
38941$as_echo "$as_me: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&2;}
38942 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&5
38943$as_echo "$as_me: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
38944 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&5
38945$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&2;}
38946 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&5
38947$as_echo "$as_me: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&2;}
38948 ( cat <<\_ASBOX
38949## ----------------------------------------- ##
38950## Report this to http://www.imagemagick.org ##
38951## ----------------------------------------- ##
38952_ASBOX
38953 ) | sed "s/^/$as_me: WARNING: /" >&2
38954 ;;
38955esac
38956{ $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38957$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38958if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38959 $as_echo_n "(cached) " >&6
38960else
38961 ac_cv_header_ghostscript_iapi_h=$ac_header_preproc
38962fi
38963{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38964$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38965
38966fi
38967if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then
38968 passed=`expr $passed + 1`
38969else
38970 failed=`expr $failed + 1`
38971fi
38972
38973
38974 if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38975 { $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
38976$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
38977if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38978 $as_echo_n "(cached) " >&6
38979fi
38980{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
38981$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
38982else
38983 # Is the header compilable?
38984{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h usability" >&5
38985$as_echo_n "checking ghostscript/ierrors.h usability... " >&6; }
38986cat >conftest.$ac_ext <<_ACEOF
38987/* confdefs.h. */
38988_ACEOF
38989cat confdefs.h >>conftest.$ac_ext
38990cat >>conftest.$ac_ext <<_ACEOF
38991/* end confdefs.h. */
38992$ac_includes_default
38993#include <ghostscript/ierrors.h>
38994_ACEOF
38995rm -f conftest.$ac_objext
38996if { (ac_try="$ac_compile"
38997case "(($ac_try" in
38998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38999 *) ac_try_echo=$ac_try;;
39000esac
39001eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39002$as_echo "$ac_try_echo") >&5
39003 (eval "$ac_compile") 2>conftest.er1
39004 ac_status=$?
39005 grep -v '^ *+' conftest.er1 >conftest.err
39006 rm -f conftest.er1
39007 cat conftest.err >&5
39008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39009 (exit $ac_status); } && {
39010 test -z "$ac_c_werror_flag" ||
39011 test ! -s conftest.err
39012 } && test -s conftest.$ac_objext; then
39013 ac_header_compiler=yes
39014else
39015 $as_echo "$as_me: failed program was:" >&5
39016sed 's/^/| /' conftest.$ac_ext >&5
39017
39018 ac_header_compiler=no
39019fi
39020
39021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39022{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39023$as_echo "$ac_header_compiler" >&6; }
39024
39025# Is the header present?
39026{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h presence" >&5
39027$as_echo_n "checking ghostscript/ierrors.h presence... " >&6; }
39028cat >conftest.$ac_ext <<_ACEOF
39029/* confdefs.h. */
39030_ACEOF
39031cat confdefs.h >>conftest.$ac_ext
39032cat >>conftest.$ac_ext <<_ACEOF
39033/* end confdefs.h. */
39034#include <ghostscript/ierrors.h>
39035_ACEOF
39036if { (ac_try="$ac_cpp conftest.$ac_ext"
39037case "(($ac_try" in
39038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39039 *) ac_try_echo=$ac_try;;
39040esac
39041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39042$as_echo "$ac_try_echo") >&5
39043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39044 ac_status=$?
39045 grep -v '^ *+' conftest.er1 >conftest.err
39046 rm -f conftest.er1
39047 cat conftest.err >&5
39048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39049 (exit $ac_status); } >/dev/null && {
39050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39051 test ! -s conftest.err
39052 }; then
39053 ac_header_preproc=yes
39054else
39055 $as_echo "$as_me: failed program was:" >&5
39056sed 's/^/| /' conftest.$ac_ext >&5
39057
39058 ac_header_preproc=no
39059fi
39060
39061rm -f conftest.err conftest.$ac_ext
39062{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39063$as_echo "$ac_header_preproc" >&6; }
39064
39065# So? What about this header?
39066case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39067 yes:no: )
39068 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&5
39069$as_echo "$as_me: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39070 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&5
39071$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&2;}
39072 ac_header_preproc=yes
39073 ;;
39074 no:yes:* )
39075 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&5
39076$as_echo "$as_me: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&2;}
39077 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&5
39078$as_echo "$as_me: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&2;}
39079 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&5
39080$as_echo "$as_me: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&2;}
39081 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&5
39082$as_echo "$as_me: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&2;}
39083 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&5
39084$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&2;}
39085 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&5
39086$as_echo "$as_me: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&2;}
39087 ( cat <<\_ASBOX
39088## ----------------------------------------- ##
39089## Report this to http://www.imagemagick.org ##
39090## ----------------------------------------- ##
39091_ASBOX
39092 ) | sed "s/^/$as_me: WARNING: /" >&2
39093 ;;
39094esac
39095{ $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
39096$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
39097if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
39098 $as_echo_n "(cached) " >&6
39099else
39100 ac_cv_header_ghostscript_ierrors_h=$ac_header_preproc
39101fi
39102{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
39103$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
39104
39105fi
39106if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then
39107 passed=`expr $passed + 1`
39108else
39109 failed=`expr $failed + 1`
39110fi
39111
39112
39113 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in Ghostscript framework" >&5
39114$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
39115if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then
39116 $as_echo_n "(cached) " >&6
39117else
39118 ac_check_framework_save_LIBS=$LIBS
39119LIBS="-framework Ghostscript $LIBS"
39120cat >conftest.$ac_ext <<_ACEOF
39121/* confdefs.h. */
39122_ACEOF
39123cat confdefs.h >>conftest.$ac_ext
39124cat >>conftest.$ac_ext <<_ACEOF
39125/* end confdefs.h. */
39126
39127/* Override any GCC internal prototype to avoid an error.
39128 Use char because int might match the return type of a GCC
39129 builtin and then its argument prototype would still apply. */
39130#ifdef __cplusplus
39131extern "C"
39132#endif
39133char gsapi_new_instance ();
39134int
39135main ()
39136{
39137return gsapi_new_instance ();
39138 ;
39139 return 0;
39140}
39141_ACEOF
39142rm -f conftest.$ac_objext conftest$ac_exeext
39143if { (ac_try="$ac_link"
39144case "(($ac_try" in
39145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39146 *) ac_try_echo=$ac_try;;
39147esac
39148eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39149$as_echo "$ac_try_echo") >&5
39150 (eval "$ac_link") 2>conftest.er1
39151 ac_status=$?
39152 grep -v '^ *+' conftest.er1 >conftest.err
39153 rm -f conftest.er1
39154 cat conftest.err >&5
39155 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39156 (exit $ac_status); } && {
39157 test -z "$ac_c_werror_flag" ||
39158 test ! -s conftest.err
39159 } && test -s conftest$ac_exeext && {
39160 test "$cross_compiling" = yes ||
39161 $as_test_x conftest$ac_exeext
39162 }; then
39163 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
39164else
39165 $as_echo "$as_me: failed program was:" >&5
39166sed 's/^/| /' conftest.$ac_ext >&5
39167
39168 ac_cv_framework_Ghostscript_gsapi_new_instance=no
39169fi
39170
39171rm -rf conftest.dSYM
39172rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39173 conftest$ac_exeext conftest.$ac_ext
39174LIBS=$ac_check_framework_save_LIBS
39175fi
39176{ $as_echo "$as_me:$LINENO: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
39177$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
39178if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then
39179 framework=`expr $framework + 1`
39180else
39181 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in -lgs" >&5
39182$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
39183if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then
39184 $as_echo_n "(cached) " >&6
39185else
39186 ac_check_lib_save_LIBS=$LIBS
39187LIBS="-lgs $LIBS"
39188cat >conftest.$ac_ext <<_ACEOF
39189/* confdefs.h. */
39190_ACEOF
39191cat confdefs.h >>conftest.$ac_ext
39192cat >>conftest.$ac_ext <<_ACEOF
39193/* end confdefs.h. */
39194
39195/* Override any GCC internal prototype to avoid an error.
39196 Use char because int might match the return type of a GCC
39197 builtin and then its argument prototype would still apply. */
39198#ifdef __cplusplus
39199extern "C"
39200#endif
39201char gsapi_new_instance ();
39202int
39203main ()
39204{
39205return gsapi_new_instance ();
39206 ;
39207 return 0;
39208}
39209_ACEOF
39210rm -f conftest.$ac_objext conftest$ac_exeext
39211if { (ac_try="$ac_link"
39212case "(($ac_try" in
39213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39214 *) ac_try_echo=$ac_try;;
39215esac
39216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39217$as_echo "$ac_try_echo") >&5
39218 (eval "$ac_link") 2>conftest.er1
39219 ac_status=$?
39220 grep -v '^ *+' conftest.er1 >conftest.err
39221 rm -f conftest.er1
39222 cat conftest.err >&5
39223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39224 (exit $ac_status); } && {
39225 test -z "$ac_c_werror_flag" ||
39226 test ! -s conftest.err
39227 } && test -s conftest$ac_exeext && {
39228 test "$cross_compiling" = yes ||
39229 $as_test_x conftest$ac_exeext
39230 }; then
39231 ac_cv_lib_gs_gsapi_new_instance=yes
39232else
39233 $as_echo "$as_me: failed program was:" >&5
39234sed 's/^/| /' conftest.$ac_ext >&5
39235
39236 ac_cv_lib_gs_gsapi_new_instance=no
39237fi
39238
39239rm -rf conftest.dSYM
39240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39241 conftest$ac_exeext conftest.$ac_ext
39242LIBS=$ac_check_lib_save_LIBS
39243fi
39244{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
39245$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
39246if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then
39247 passed=`expr $passed + 1`
39248else
39249 failed=`expr $failed + 1`
39250fi
39251
39252fi
39253
39254 { $as_echo "$as_me:$LINENO: checking if Ghostscript package is complete" >&5
39255$as_echo_n "checking if Ghostscript package is complete... " >&6; }
39256 if test $passed -gt 0; then
39257 if test $failed -gt 0; then
39258 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39259$as_echo "no -- some components failed test" >&6; }
39260 have_gslib='no (failed tests)'
39261 else
39262 if test $framework -gt 0; then
39263 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000039264 gslib_framework='yes'
cristy3ed852e2009-09-05 21:47:34 +000039265 { $as_echo "$as_me:$LINENO: result: yes, using framework." >&5
39266$as_echo "yes, using framework." >&6; }
39267 else
39268 { $as_echo "$as_me:$LINENO: result: yes, using library." >&5
39269$as_echo "yes, using library." >&6; }
39270 GS_LIBS='-lgs'
39271 fi
39272 LIBS="$GS_LIBS $LIBS"
39273
39274cat >>confdefs.h <<\_ACEOF
39275#define GS_DELEGATE 1
39276_ACEOF
39277
39278 have_gslib='yes'
39279 fi
39280 else
39281 { $as_echo "$as_me:$LINENO: result: no" >&5
39282$as_echo "no" >&6; }
39283 fi
39284fi
39285 if test "$have_gslib" = 'yes'; then
39286 GS_DELEGATE_TRUE=
39287 GS_DELEGATE_FALSE='#'
39288else
39289 GS_DELEGATE_TRUE='#'
39290 GS_DELEGATE_FALSE=
39291fi
39292
39293
39294
39295# Set default font search path
39296
39297# Check whether --with-fontpath was given.
39298if test "${with_fontpath+set}" = set; then
39299 withval=$with_fontpath; with_fontpath=$withval
39300else
39301 with_fontpath=''
39302fi
39303
39304
39305if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
39306 with_fontpath=''
39307else
39308
39309cat >>confdefs.h <<_ACEOF
39310#define MAGICK_FONT_PATH "$with_fontpath"
39311_ACEOF
39312
39313fi
39314if test "$with_fontpath=" != ''; then
39315 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
39316fi
39317
39318# Set Ghostscript font directory
39319
39320# Check whether --with-gs-font-dir was given.
39321if test "${with_gs_font_dir+set}" = set; then
39322 withval=$with_gs_font_dir; with_gs_font_dir=$withval
39323else
39324 with_gs_font_dir='default'
39325fi
39326
39327
39328if test "$with_gs_font_dir" != 'default'; then
39329 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
39330fi
39331
39332
39333#
39334# Check for GVC delegate library.
39335#
39336
39337# Check whether --with-gvc was given.
39338if test "${with_gvc+set}" = set; then
39339 withval=$with_gvc; with_gvc=$withval
39340else
39341 with_gvc='yes'
39342fi
39343
39344
39345if test "$with_gvc" != 'yes'; then
39346 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
39347fi
39348
39349GVC_PKG=""
39350if test "x$with_gvc" = "xyes"; then
39351 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39352$as_echo "-------------------------------------------------------------" >&6; }
39353
39354pkg_failed=no
39355{ $as_echo "$as_me:$LINENO: checking for GVC" >&5
39356$as_echo_n "checking for GVC... " >&6; }
39357
39358if test -n "$GVC_CFLAGS"; then
39359 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
39360 elif test -n "$PKG_CONFIG"; then
39361 if test -n "$PKG_CONFIG" && \
39362 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
39363 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
39364 ac_status=$?
39365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39366 (exit $ac_status); }; then
39367 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
39368else
39369 pkg_failed=yes
39370fi
39371 else
39372 pkg_failed=untried
39373fi
39374if test -n "$GVC_LIBS"; then
39375 pkg_cv_GVC_LIBS="$GVC_LIBS"
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_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
39384else
39385 pkg_failed=yes
39386fi
39387 else
39388 pkg_failed=untried
39389fi
39390
39391
39392
39393if test $pkg_failed = yes; then
39394
39395if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
39396 _pkg_short_errors_supported=yes
39397else
39398 _pkg_short_errors_supported=no
39399fi
39400 if test $_pkg_short_errors_supported = yes; then
39401 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
39402 else
39403 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
39404 fi
39405 # Put the nasty error message in config.log where it belongs
39406 echo "$GVC_PKG_ERRORS" >&5
39407
39408 { $as_echo "$as_me:$LINENO: result: no" >&5
39409$as_echo "no" >&6; }
39410 have_gvc=no
39411elif test $pkg_failed = untried; then
39412 have_gvc=no
39413else
39414 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
39415 GVC_LIBS=$pkg_cv_GVC_LIBS
39416 { $as_echo "$as_me:$LINENO: result: yes" >&5
39417$as_echo "yes" >&6; }
39418 have_gvc=yes
39419fi
39420 { $as_echo "$as_me:$LINENO: result: " >&5
39421$as_echo "" >&6; }
39422fi
39423
39424if test "$have_gvc" = 'yes'; then
39425
39426cat >>confdefs.h <<\_ACEOF
39427#define GVC_DELEGATE 1
39428_ACEOF
39429
39430 if test "$with_modules" = 'no'; then
39431 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
39432 fi
39433fi
39434
39435 if test "$have_gvc" = 'yes'; then
39436 GVC_DELEGATE_TRUE=
39437 GVC_DELEGATE_FALSE='#'
39438else
39439 GVC_DELEGATE_TRUE='#'
39440 GVC_DELEGATE_FALSE=
39441fi
39442
39443
39444
39445
39446
39447#
39448# Check for JBIG delegate library.
39449#
39450
39451
39452# Check whether --with-jbig was given.
39453if test "${with_jbig+set}" = set; then
39454 withval=$with_jbig; with_jbig=$withval
39455else
39456 with_jbig='yes'
39457fi
39458
39459
39460have_jbig='no'
39461JBIG_LIBS=''
39462if test "$with_jbig" != 'no'; then
39463 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39464$as_echo "-------------------------------------------------------------" >&6; }
39465 { $as_echo "$as_me:$LINENO: checking for JBIG" >&5
39466$as_echo_n "checking for JBIG... " >&6; }
39467 { $as_echo "$as_me:$LINENO: result: " >&5
39468$as_echo "" >&6; }
39469 failed=0
39470 passed=0
39471 if test "${ac_cv_header_jbig_h+set}" = set; then
39472 { $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
39473$as_echo_n "checking for jbig.h... " >&6; }
39474if test "${ac_cv_header_jbig_h+set}" = set; then
39475 $as_echo_n "(cached) " >&6
39476fi
39477{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
39478$as_echo "$ac_cv_header_jbig_h" >&6; }
39479else
39480 # Is the header compilable?
39481{ $as_echo "$as_me:$LINENO: checking jbig.h usability" >&5
39482$as_echo_n "checking jbig.h usability... " >&6; }
39483cat >conftest.$ac_ext <<_ACEOF
39484/* confdefs.h. */
39485_ACEOF
39486cat confdefs.h >>conftest.$ac_ext
39487cat >>conftest.$ac_ext <<_ACEOF
39488/* end confdefs.h. */
39489$ac_includes_default
39490#include <jbig.h>
39491_ACEOF
39492rm -f conftest.$ac_objext
39493if { (ac_try="$ac_compile"
39494case "(($ac_try" in
39495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39496 *) ac_try_echo=$ac_try;;
39497esac
39498eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39499$as_echo "$ac_try_echo") >&5
39500 (eval "$ac_compile") 2>conftest.er1
39501 ac_status=$?
39502 grep -v '^ *+' conftest.er1 >conftest.err
39503 rm -f conftest.er1
39504 cat conftest.err >&5
39505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39506 (exit $ac_status); } && {
39507 test -z "$ac_c_werror_flag" ||
39508 test ! -s conftest.err
39509 } && test -s conftest.$ac_objext; then
39510 ac_header_compiler=yes
39511else
39512 $as_echo "$as_me: failed program was:" >&5
39513sed 's/^/| /' conftest.$ac_ext >&5
39514
39515 ac_header_compiler=no
39516fi
39517
39518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39519{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39520$as_echo "$ac_header_compiler" >&6; }
39521
39522# Is the header present?
39523{ $as_echo "$as_me:$LINENO: checking jbig.h presence" >&5
39524$as_echo_n "checking jbig.h presence... " >&6; }
39525cat >conftest.$ac_ext <<_ACEOF
39526/* confdefs.h. */
39527_ACEOF
39528cat confdefs.h >>conftest.$ac_ext
39529cat >>conftest.$ac_ext <<_ACEOF
39530/* end confdefs.h. */
39531#include <jbig.h>
39532_ACEOF
39533if { (ac_try="$ac_cpp conftest.$ac_ext"
39534case "(($ac_try" in
39535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39536 *) ac_try_echo=$ac_try;;
39537esac
39538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39539$as_echo "$ac_try_echo") >&5
39540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39541 ac_status=$?
39542 grep -v '^ *+' conftest.er1 >conftest.err
39543 rm -f conftest.er1
39544 cat conftest.err >&5
39545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39546 (exit $ac_status); } >/dev/null && {
39547 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39548 test ! -s conftest.err
39549 }; then
39550 ac_header_preproc=yes
39551else
39552 $as_echo "$as_me: failed program was:" >&5
39553sed 's/^/| /' conftest.$ac_ext >&5
39554
39555 ac_header_preproc=no
39556fi
39557
39558rm -f conftest.err conftest.$ac_ext
39559{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39560$as_echo "$ac_header_preproc" >&6; }
39561
39562# So? What about this header?
39563case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39564 yes:no: )
39565 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39566$as_echo "$as_me: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39567 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the compiler's result" >&5
39568$as_echo "$as_me: WARNING: jbig.h: proceeding with the compiler's result" >&2;}
39569 ac_header_preproc=yes
39570 ;;
39571 no:yes:* )
39572 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: present but cannot be compiled" >&5
39573$as_echo "$as_me: WARNING: jbig.h: present but cannot be compiled" >&2;}
39574 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: check for missing prerequisite headers?" >&5
39575$as_echo "$as_me: WARNING: jbig.h: check for missing prerequisite headers?" >&2;}
39576 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: see the Autoconf documentation" >&5
39577$as_echo "$as_me: WARNING: jbig.h: see the Autoconf documentation" >&2;}
39578 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&5
39579$as_echo "$as_me: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39580 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the preprocessor's result" >&5
39581$as_echo "$as_me: WARNING: jbig.h: proceeding with the preprocessor's result" >&2;}
39582 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: in the future, the compiler will take precedence" >&5
39583$as_echo "$as_me: WARNING: jbig.h: in the future, the compiler will take precedence" >&2;}
39584 ( cat <<\_ASBOX
39585## ----------------------------------------- ##
39586## Report this to http://www.imagemagick.org ##
39587## ----------------------------------------- ##
39588_ASBOX
39589 ) | sed "s/^/$as_me: WARNING: /" >&2
39590 ;;
39591esac
39592{ $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
39593$as_echo_n "checking for jbig.h... " >&6; }
39594if test "${ac_cv_header_jbig_h+set}" = set; then
39595 $as_echo_n "(cached) " >&6
39596else
39597 ac_cv_header_jbig_h=$ac_header_preproc
39598fi
39599{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
39600$as_echo "$ac_cv_header_jbig_h" >&6; }
39601
39602fi
39603if test "x$ac_cv_header_jbig_h" = x""yes; then
39604 passed=`expr $passed + 1`
39605else
39606 failed=`expr $failed + 1`
39607fi
39608
39609
39610 { $as_echo "$as_me:$LINENO: checking for jbg_dec_init in -ljbig" >&5
39611$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
39612if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then
39613 $as_echo_n "(cached) " >&6
39614else
39615 ac_check_lib_save_LIBS=$LIBS
39616LIBS="-ljbig $LIBS"
39617cat >conftest.$ac_ext <<_ACEOF
39618/* confdefs.h. */
39619_ACEOF
39620cat confdefs.h >>conftest.$ac_ext
39621cat >>conftest.$ac_ext <<_ACEOF
39622/* end confdefs.h. */
39623
39624/* Override any GCC internal prototype to avoid an error.
39625 Use char because int might match the return type of a GCC
39626 builtin and then its argument prototype would still apply. */
39627#ifdef __cplusplus
39628extern "C"
39629#endif
39630char jbg_dec_init ();
39631int
39632main ()
39633{
39634return jbg_dec_init ();
39635 ;
39636 return 0;
39637}
39638_ACEOF
39639rm -f conftest.$ac_objext conftest$ac_exeext
39640if { (ac_try="$ac_link"
39641case "(($ac_try" in
39642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39643 *) ac_try_echo=$ac_try;;
39644esac
39645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39646$as_echo "$ac_try_echo") >&5
39647 (eval "$ac_link") 2>conftest.er1
39648 ac_status=$?
39649 grep -v '^ *+' conftest.er1 >conftest.err
39650 rm -f conftest.er1
39651 cat conftest.err >&5
39652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39653 (exit $ac_status); } && {
39654 test -z "$ac_c_werror_flag" ||
39655 test ! -s conftest.err
39656 } && test -s conftest$ac_exeext && {
39657 test "$cross_compiling" = yes ||
39658 $as_test_x conftest$ac_exeext
39659 }; then
39660 ac_cv_lib_jbig_jbg_dec_init=yes
39661else
39662 $as_echo "$as_me: failed program was:" >&5
39663sed 's/^/| /' conftest.$ac_ext >&5
39664
39665 ac_cv_lib_jbig_jbg_dec_init=no
39666fi
39667
39668rm -rf conftest.dSYM
39669rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39670 conftest$ac_exeext conftest.$ac_ext
39671LIBS=$ac_check_lib_save_LIBS
39672fi
39673{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
39674$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
39675if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then
39676 passed=`expr $passed + 1`
39677else
39678 failed=`expr $failed + 1`
39679fi
39680
39681 { $as_echo "$as_me:$LINENO: checking if JBIG package is complete" >&5
39682$as_echo_n "checking if JBIG package is complete... " >&6; }
39683 if test $passed -gt 0; then
39684 if test $failed -gt 0; then
39685 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39686$as_echo "no -- some components failed test" >&6; }
39687 have_jbig='no (failed tests)'
39688 else
39689 JBIG_LIBS='-ljbig'
39690 LIBS="$JBIG_LIBS $LIBS"
39691
39692cat >>confdefs.h <<\_ACEOF
39693#define JBIG_DELEGATE 1
39694_ACEOF
39695
39696 { $as_echo "$as_me:$LINENO: result: yes" >&5
39697$as_echo "yes" >&6; }
39698 have_jbig='yes'
39699 fi
39700 else
39701 { $as_echo "$as_me:$LINENO: result: no" >&5
39702$as_echo "no" >&6; }
39703 fi
39704fi
39705 if test "$have_jbig" = 'yes'; then
39706 JBIG_DELEGATE_TRUE=
39707 JBIG_DELEGATE_FALSE='#'
39708else
39709 JBIG_DELEGATE_TRUE='#'
39710 JBIG_DELEGATE_FALSE=
39711fi
39712
39713
39714
39715
39716#
39717# Check for JPEG delegate library.
39718#
39719
39720# Check whether --with-jpeg was given.
39721if test "${with_jpeg+set}" = set; then
39722 withval=$with_jpeg; with_jpeg=$withval
39723else
39724 with_jpeg='yes'
39725fi
39726
39727
39728if test "$with_jpeg" != 'yes'; then
39729 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
39730fi
39731
39732have_jpeg='no'
39733JPEG_LIBS=''
39734if test "$with_jpeg" != 'no'; then
39735 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39736$as_echo "-------------------------------------------------------------" >&6; }
39737 { $as_echo "$as_me:$LINENO: checking for JPEG" >&5
39738$as_echo_n "checking for JPEG... " >&6; }
39739 { $as_echo "$as_me:$LINENO: result: " >&5
39740$as_echo "" >&6; }
39741 failed=0
39742 passed=0
39743 if test "${ac_cv_header_jconfig_h+set}" = set; then
39744 { $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39745$as_echo_n "checking for jconfig.h... " >&6; }
39746if test "${ac_cv_header_jconfig_h+set}" = set; then
39747 $as_echo_n "(cached) " >&6
39748fi
39749{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39750$as_echo "$ac_cv_header_jconfig_h" >&6; }
39751else
39752 # Is the header compilable?
39753{ $as_echo "$as_me:$LINENO: checking jconfig.h usability" >&5
39754$as_echo_n "checking jconfig.h usability... " >&6; }
39755cat >conftest.$ac_ext <<_ACEOF
39756/* confdefs.h. */
39757_ACEOF
39758cat confdefs.h >>conftest.$ac_ext
39759cat >>conftest.$ac_ext <<_ACEOF
39760/* end confdefs.h. */
39761$ac_includes_default
39762#include <jconfig.h>
39763_ACEOF
39764rm -f conftest.$ac_objext
39765if { (ac_try="$ac_compile"
39766case "(($ac_try" in
39767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39768 *) ac_try_echo=$ac_try;;
39769esac
39770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39771$as_echo "$ac_try_echo") >&5
39772 (eval "$ac_compile") 2>conftest.er1
39773 ac_status=$?
39774 grep -v '^ *+' conftest.er1 >conftest.err
39775 rm -f conftest.er1
39776 cat conftest.err >&5
39777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39778 (exit $ac_status); } && {
39779 test -z "$ac_c_werror_flag" ||
39780 test ! -s conftest.err
39781 } && test -s conftest.$ac_objext; then
39782 ac_header_compiler=yes
39783else
39784 $as_echo "$as_me: failed program was:" >&5
39785sed 's/^/| /' conftest.$ac_ext >&5
39786
39787 ac_header_compiler=no
39788fi
39789
39790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39791{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39792$as_echo "$ac_header_compiler" >&6; }
39793
39794# Is the header present?
39795{ $as_echo "$as_me:$LINENO: checking jconfig.h presence" >&5
39796$as_echo_n "checking jconfig.h presence... " >&6; }
39797cat >conftest.$ac_ext <<_ACEOF
39798/* confdefs.h. */
39799_ACEOF
39800cat confdefs.h >>conftest.$ac_ext
39801cat >>conftest.$ac_ext <<_ACEOF
39802/* end confdefs.h. */
39803#include <jconfig.h>
39804_ACEOF
39805if { (ac_try="$ac_cpp conftest.$ac_ext"
39806case "(($ac_try" in
39807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39808 *) ac_try_echo=$ac_try;;
39809esac
39810eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39811$as_echo "$ac_try_echo") >&5
39812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39813 ac_status=$?
39814 grep -v '^ *+' conftest.er1 >conftest.err
39815 rm -f conftest.er1
39816 cat conftest.err >&5
39817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39818 (exit $ac_status); } >/dev/null && {
39819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39820 test ! -s conftest.err
39821 }; then
39822 ac_header_preproc=yes
39823else
39824 $as_echo "$as_me: failed program was:" >&5
39825sed 's/^/| /' conftest.$ac_ext >&5
39826
39827 ac_header_preproc=no
39828fi
39829
39830rm -f conftest.err conftest.$ac_ext
39831{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39832$as_echo "$ac_header_preproc" >&6; }
39833
39834# So? What about this header?
39835case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39836 yes:no: )
39837 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39838$as_echo "$as_me: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39839 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the compiler's result" >&5
39840$as_echo "$as_me: WARNING: jconfig.h: proceeding with the compiler's result" >&2;}
39841 ac_header_preproc=yes
39842 ;;
39843 no:yes:* )
39844 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: present but cannot be compiled" >&5
39845$as_echo "$as_me: WARNING: jconfig.h: present but cannot be compiled" >&2;}
39846 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: check for missing prerequisite headers?" >&5
39847$as_echo "$as_me: WARNING: jconfig.h: check for missing prerequisite headers?" >&2;}
39848 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: see the Autoconf documentation" >&5
39849$as_echo "$as_me: WARNING: jconfig.h: see the Autoconf documentation" >&2;}
39850 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&5
39851$as_echo "$as_me: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39852 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the preprocessor's result" >&5
39853$as_echo "$as_me: WARNING: jconfig.h: proceeding with the preprocessor's result" >&2;}
39854 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: in the future, the compiler will take precedence" >&5
39855$as_echo "$as_me: WARNING: jconfig.h: in the future, the compiler will take precedence" >&2;}
39856 ( cat <<\_ASBOX
39857## ----------------------------------------- ##
39858## Report this to http://www.imagemagick.org ##
39859## ----------------------------------------- ##
39860_ASBOX
39861 ) | sed "s/^/$as_me: WARNING: /" >&2
39862 ;;
39863esac
39864{ $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39865$as_echo_n "checking for jconfig.h... " >&6; }
39866if test "${ac_cv_header_jconfig_h+set}" = set; then
39867 $as_echo_n "(cached) " >&6
39868else
39869 ac_cv_header_jconfig_h=$ac_header_preproc
39870fi
39871{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39872$as_echo "$ac_cv_header_jconfig_h" >&6; }
39873
39874fi
39875if test "x$ac_cv_header_jconfig_h" = x""yes; then
39876 passed=`expr $passed + 1`
39877else
39878 failed=`expr $failed + 1`
39879fi
39880
39881
39882 if test "${ac_cv_header_jerror_h+set}" = set; then
39883 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
39884$as_echo_n "checking for jerror.h... " >&6; }
39885if test "${ac_cv_header_jerror_h+set}" = set; then
39886 $as_echo_n "(cached) " >&6
39887fi
39888{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
39889$as_echo "$ac_cv_header_jerror_h" >&6; }
39890else
39891 # Is the header compilable?
39892{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
39893$as_echo_n "checking jerror.h usability... " >&6; }
39894cat >conftest.$ac_ext <<_ACEOF
39895/* confdefs.h. */
39896_ACEOF
39897cat confdefs.h >>conftest.$ac_ext
39898cat >>conftest.$ac_ext <<_ACEOF
39899/* end confdefs.h. */
39900$ac_includes_default
39901#include <jerror.h>
39902_ACEOF
39903rm -f conftest.$ac_objext
39904if { (ac_try="$ac_compile"
39905case "(($ac_try" in
39906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39907 *) ac_try_echo=$ac_try;;
39908esac
39909eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39910$as_echo "$ac_try_echo") >&5
39911 (eval "$ac_compile") 2>conftest.er1
39912 ac_status=$?
39913 grep -v '^ *+' conftest.er1 >conftest.err
39914 rm -f conftest.er1
39915 cat conftest.err >&5
39916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39917 (exit $ac_status); } && {
39918 test -z "$ac_c_werror_flag" ||
39919 test ! -s conftest.err
39920 } && test -s conftest.$ac_objext; then
39921 ac_header_compiler=yes
39922else
39923 $as_echo "$as_me: failed program was:" >&5
39924sed 's/^/| /' conftest.$ac_ext >&5
39925
39926 ac_header_compiler=no
39927fi
39928
39929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39930{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39931$as_echo "$ac_header_compiler" >&6; }
39932
39933# Is the header present?
39934{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
39935$as_echo_n "checking jerror.h presence... " >&6; }
39936cat >conftest.$ac_ext <<_ACEOF
39937/* confdefs.h. */
39938_ACEOF
39939cat confdefs.h >>conftest.$ac_ext
39940cat >>conftest.$ac_ext <<_ACEOF
39941/* end confdefs.h. */
39942#include <jerror.h>
39943_ACEOF
39944if { (ac_try="$ac_cpp conftest.$ac_ext"
39945case "(($ac_try" in
39946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39947 *) ac_try_echo=$ac_try;;
39948esac
39949eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39950$as_echo "$ac_try_echo") >&5
39951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39952 ac_status=$?
39953 grep -v '^ *+' conftest.er1 >conftest.err
39954 rm -f conftest.er1
39955 cat conftest.err >&5
39956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39957 (exit $ac_status); } >/dev/null && {
39958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39959 test ! -s conftest.err
39960 }; then
39961 ac_header_preproc=yes
39962else
39963 $as_echo "$as_me: failed program was:" >&5
39964sed 's/^/| /' conftest.$ac_ext >&5
39965
39966 ac_header_preproc=no
39967fi
39968
39969rm -f conftest.err conftest.$ac_ext
39970{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39971$as_echo "$ac_header_preproc" >&6; }
39972
39973# So? What about this header?
39974case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39975 yes:no: )
39976 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
39977$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39978 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
39979$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
39980 ac_header_preproc=yes
39981 ;;
39982 no:yes:* )
39983 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
39984$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
39985 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
39986$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
39987 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
39988$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
39989 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
39990$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
39991 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
39992$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
39993 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
39994$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
39995 ( cat <<\_ASBOX
39996## ----------------------------------------- ##
39997## Report this to http://www.imagemagick.org ##
39998## ----------------------------------------- ##
39999_ASBOX
40000 ) | sed "s/^/$as_me: WARNING: /" >&2
40001 ;;
40002esac
40003{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
40004$as_echo_n "checking for jerror.h... " >&6; }
40005if test "${ac_cv_header_jerror_h+set}" = set; then
40006 $as_echo_n "(cached) " >&6
40007else
40008 ac_cv_header_jerror_h=$ac_header_preproc
40009fi
40010{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
40011$as_echo "$ac_cv_header_jerror_h" >&6; }
40012
40013fi
40014if test "x$ac_cv_header_jerror_h" = x""yes; then
40015 passed=`expr $passed + 1`
40016else
40017 failed=`expr $failed + 1`
40018fi
40019
40020
40021 if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40022 { $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
40023$as_echo_n "checking for jmorecfg.h... " >&6; }
40024if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40025 $as_echo_n "(cached) " >&6
40026fi
40027{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
40028$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
40029else
40030 # Is the header compilable?
40031{ $as_echo "$as_me:$LINENO: checking jmorecfg.h usability" >&5
40032$as_echo_n "checking jmorecfg.h usability... " >&6; }
40033cat >conftest.$ac_ext <<_ACEOF
40034/* confdefs.h. */
40035_ACEOF
40036cat confdefs.h >>conftest.$ac_ext
40037cat >>conftest.$ac_ext <<_ACEOF
40038/* end confdefs.h. */
40039$ac_includes_default
40040#include <jmorecfg.h>
40041_ACEOF
40042rm -f conftest.$ac_objext
40043if { (ac_try="$ac_compile"
40044case "(($ac_try" in
40045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40046 *) ac_try_echo=$ac_try;;
40047esac
40048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40049$as_echo "$ac_try_echo") >&5
40050 (eval "$ac_compile") 2>conftest.er1
40051 ac_status=$?
40052 grep -v '^ *+' conftest.er1 >conftest.err
40053 rm -f conftest.er1
40054 cat conftest.err >&5
40055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40056 (exit $ac_status); } && {
40057 test -z "$ac_c_werror_flag" ||
40058 test ! -s conftest.err
40059 } && test -s conftest.$ac_objext; then
40060 ac_header_compiler=yes
40061else
40062 $as_echo "$as_me: failed program was:" >&5
40063sed 's/^/| /' conftest.$ac_ext >&5
40064
40065 ac_header_compiler=no
40066fi
40067
40068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40069{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40070$as_echo "$ac_header_compiler" >&6; }
40071
40072# Is the header present?
40073{ $as_echo "$as_me:$LINENO: checking jmorecfg.h presence" >&5
40074$as_echo_n "checking jmorecfg.h presence... " >&6; }
40075cat >conftest.$ac_ext <<_ACEOF
40076/* confdefs.h. */
40077_ACEOF
40078cat confdefs.h >>conftest.$ac_ext
40079cat >>conftest.$ac_ext <<_ACEOF
40080/* end confdefs.h. */
40081#include <jmorecfg.h>
40082_ACEOF
40083if { (ac_try="$ac_cpp conftest.$ac_ext"
40084case "(($ac_try" in
40085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40086 *) ac_try_echo=$ac_try;;
40087esac
40088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40089$as_echo "$ac_try_echo") >&5
40090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40091 ac_status=$?
40092 grep -v '^ *+' conftest.er1 >conftest.err
40093 rm -f conftest.er1
40094 cat conftest.err >&5
40095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40096 (exit $ac_status); } >/dev/null && {
40097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40098 test ! -s conftest.err
40099 }; then
40100 ac_header_preproc=yes
40101else
40102 $as_echo "$as_me: failed program was:" >&5
40103sed 's/^/| /' conftest.$ac_ext >&5
40104
40105 ac_header_preproc=no
40106fi
40107
40108rm -f conftest.err conftest.$ac_ext
40109{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40110$as_echo "$ac_header_preproc" >&6; }
40111
40112# So? What about this header?
40113case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40114 yes:no: )
40115 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&5
40116$as_echo "$as_me: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40117 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the compiler's result" >&5
40118$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the compiler's result" >&2;}
40119 ac_header_preproc=yes
40120 ;;
40121 no:yes:* )
40122 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: present but cannot be compiled" >&5
40123$as_echo "$as_me: WARNING: jmorecfg.h: present but cannot be compiled" >&2;}
40124 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&5
40125$as_echo "$as_me: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&2;}
40126 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: see the Autoconf documentation" >&5
40127$as_echo "$as_me: WARNING: jmorecfg.h: see the Autoconf documentation" >&2;}
40128 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&5
40129$as_echo "$as_me: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&2;}
40130 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&5
40131$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&2;}
40132 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&5
40133$as_echo "$as_me: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&2;}
40134 ( cat <<\_ASBOX
40135## ----------------------------------------- ##
40136## Report this to http://www.imagemagick.org ##
40137## ----------------------------------------- ##
40138_ASBOX
40139 ) | sed "s/^/$as_me: WARNING: /" >&2
40140 ;;
40141esac
40142{ $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
40143$as_echo_n "checking for jmorecfg.h... " >&6; }
40144if test "${ac_cv_header_jmorecfg_h+set}" = set; then
40145 $as_echo_n "(cached) " >&6
40146else
40147 ac_cv_header_jmorecfg_h=$ac_header_preproc
40148fi
40149{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
40150$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
40151
40152fi
40153if test "x$ac_cv_header_jmorecfg_h" = x""yes; then
40154 passed=`expr $passed + 1`
40155else
40156 failed=`expr $failed + 1`
40157fi
40158
40159
40160 if test "${ac_cv_header_jpeglib_h+set}" = set; then
40161 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
40162$as_echo_n "checking for jpeglib.h... " >&6; }
40163if test "${ac_cv_header_jpeglib_h+set}" = set; then
40164 $as_echo_n "(cached) " >&6
40165fi
40166{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
40167$as_echo "$ac_cv_header_jpeglib_h" >&6; }
40168else
40169 # Is the header compilable?
40170{ $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
40171$as_echo_n "checking jpeglib.h usability... " >&6; }
40172cat >conftest.$ac_ext <<_ACEOF
40173/* confdefs.h. */
40174_ACEOF
40175cat confdefs.h >>conftest.$ac_ext
40176cat >>conftest.$ac_ext <<_ACEOF
40177/* end confdefs.h. */
40178$ac_includes_default
40179#include <jpeglib.h>
40180_ACEOF
40181rm -f conftest.$ac_objext
40182if { (ac_try="$ac_compile"
40183case "(($ac_try" in
40184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40185 *) ac_try_echo=$ac_try;;
40186esac
40187eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40188$as_echo "$ac_try_echo") >&5
40189 (eval "$ac_compile") 2>conftest.er1
40190 ac_status=$?
40191 grep -v '^ *+' conftest.er1 >conftest.err
40192 rm -f conftest.er1
40193 cat conftest.err >&5
40194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40195 (exit $ac_status); } && {
40196 test -z "$ac_c_werror_flag" ||
40197 test ! -s conftest.err
40198 } && test -s conftest.$ac_objext; then
40199 ac_header_compiler=yes
40200else
40201 $as_echo "$as_me: failed program was:" >&5
40202sed 's/^/| /' conftest.$ac_ext >&5
40203
40204 ac_header_compiler=no
40205fi
40206
40207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40208{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40209$as_echo "$ac_header_compiler" >&6; }
40210
40211# Is the header present?
40212{ $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
40213$as_echo_n "checking jpeglib.h presence... " >&6; }
40214cat >conftest.$ac_ext <<_ACEOF
40215/* confdefs.h. */
40216_ACEOF
40217cat confdefs.h >>conftest.$ac_ext
40218cat >>conftest.$ac_ext <<_ACEOF
40219/* end confdefs.h. */
40220#include <jpeglib.h>
40221_ACEOF
40222if { (ac_try="$ac_cpp conftest.$ac_ext"
40223case "(($ac_try" in
40224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40225 *) ac_try_echo=$ac_try;;
40226esac
40227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40228$as_echo "$ac_try_echo") >&5
40229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40230 ac_status=$?
40231 grep -v '^ *+' conftest.er1 >conftest.err
40232 rm -f conftest.er1
40233 cat conftest.err >&5
40234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40235 (exit $ac_status); } >/dev/null && {
40236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40237 test ! -s conftest.err
40238 }; then
40239 ac_header_preproc=yes
40240else
40241 $as_echo "$as_me: failed program was:" >&5
40242sed 's/^/| /' conftest.$ac_ext >&5
40243
40244 ac_header_preproc=no
40245fi
40246
40247rm -f conftest.err conftest.$ac_ext
40248{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40249$as_echo "$ac_header_preproc" >&6; }
40250
40251# So? What about this header?
40252case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40253 yes:no: )
40254 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
40255$as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40256 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
40257$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
40258 ac_header_preproc=yes
40259 ;;
40260 no:yes:* )
40261 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
40262$as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
40263 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
40264$as_echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
40265 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
40266$as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
40267 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
40268$as_echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
40269 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
40270$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
40271 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
40272$as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
40273 ( cat <<\_ASBOX
40274## ----------------------------------------- ##
40275## Report this to http://www.imagemagick.org ##
40276## ----------------------------------------- ##
40277_ASBOX
40278 ) | sed "s/^/$as_me: WARNING: /" >&2
40279 ;;
40280esac
40281{ $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
40282$as_echo_n "checking for jpeglib.h... " >&6; }
40283if test "${ac_cv_header_jpeglib_h+set}" = set; then
40284 $as_echo_n "(cached) " >&6
40285else
40286 ac_cv_header_jpeglib_h=$ac_header_preproc
40287fi
40288{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
40289$as_echo "$ac_cv_header_jpeglib_h" >&6; }
40290
40291fi
40292if test "x$ac_cv_header_jpeglib_h" = x""yes; then
40293 passed=`expr $passed + 1`
40294else
40295 failed=`expr $failed + 1`
40296fi
40297
40298
40299 { $as_echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
40300$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
40301if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
40302 $as_echo_n "(cached) " >&6
40303else
40304 ac_check_lib_save_LIBS=$LIBS
40305LIBS="-ljpeg $LIBS"
40306cat >conftest.$ac_ext <<_ACEOF
40307/* confdefs.h. */
40308_ACEOF
40309cat confdefs.h >>conftest.$ac_ext
40310cat >>conftest.$ac_ext <<_ACEOF
40311/* end confdefs.h. */
40312
40313/* Override any GCC internal prototype to avoid an error.
40314 Use char because int might match the return type of a GCC
40315 builtin and then its argument prototype would still apply. */
40316#ifdef __cplusplus
40317extern "C"
40318#endif
40319char jpeg_read_header ();
40320int
40321main ()
40322{
40323return jpeg_read_header ();
40324 ;
40325 return 0;
40326}
40327_ACEOF
40328rm -f conftest.$ac_objext conftest$ac_exeext
40329if { (ac_try="$ac_link"
40330case "(($ac_try" in
40331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40332 *) ac_try_echo=$ac_try;;
40333esac
40334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40335$as_echo "$ac_try_echo") >&5
40336 (eval "$ac_link") 2>conftest.er1
40337 ac_status=$?
40338 grep -v '^ *+' conftest.er1 >conftest.err
40339 rm -f conftest.er1
40340 cat conftest.err >&5
40341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40342 (exit $ac_status); } && {
40343 test -z "$ac_c_werror_flag" ||
40344 test ! -s conftest.err
40345 } && test -s conftest$ac_exeext && {
40346 test "$cross_compiling" = yes ||
40347 $as_test_x conftest$ac_exeext
40348 }; then
40349 ac_cv_lib_jpeg_jpeg_read_header=yes
40350else
40351 $as_echo "$as_me: failed program was:" >&5
40352sed 's/^/| /' conftest.$ac_ext >&5
40353
40354 ac_cv_lib_jpeg_jpeg_read_header=no
40355fi
40356
40357rm -rf conftest.dSYM
40358rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40359 conftest$ac_exeext conftest.$ac_ext
40360LIBS=$ac_check_lib_save_LIBS
40361fi
40362{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
40363$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
40364if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then
40365 passed=`expr $passed + 1`
40366else
40367 failed=`expr $failed + 1`
40368fi
40369
40370
40371# Test for compatible JPEG library
40372if test "$ac_cv_jpeg_version_ok" != 'yes'; then
40373{ $as_echo "$as_me:$LINENO: checking for JPEG library is version 6b or later" >&5
40374$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
40375if test "${ac_cv_jpeg_version_ok+set}" = set; then
40376 $as_echo_n "(cached) " >&6
40377else
40378 cat >conftest.$ac_ext <<_ACEOF
40379/* confdefs.h. */
40380_ACEOF
40381cat confdefs.h >>conftest.$ac_ext
40382cat >>conftest.$ac_ext <<_ACEOF
40383/* end confdefs.h. */
40384#include <stdio.h>
40385#include <stdlib.h>
40386#include <jpeglib.h>
40387
40388int
40389main ()
40390{
40391
40392#if JPEG_LIB_VERSION < 62
40393#error IJG JPEG library must be version 6b or newer!
40394#endif
40395return 0;
40396
40397 ;
40398 return 0;
40399}
40400_ACEOF
40401rm -f conftest.$ac_objext
40402if { (ac_try="$ac_compile"
40403case "(($ac_try" in
40404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40405 *) ac_try_echo=$ac_try;;
40406esac
40407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40408$as_echo "$ac_try_echo") >&5
40409 (eval "$ac_compile") 2>conftest.er1
40410 ac_status=$?
40411 grep -v '^ *+' conftest.er1 >conftest.err
40412 rm -f conftest.er1
40413 cat conftest.err >&5
40414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40415 (exit $ac_status); } && {
40416 test -z "$ac_c_werror_flag" ||
40417 test ! -s conftest.err
40418 } && test -s conftest.$ac_objext; then
40419 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
40420else
40421 $as_echo "$as_me: failed program was:" >&5
40422sed 's/^/| /' conftest.$ac_ext >&5
40423
40424 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
40425fi
40426
40427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40428fi
40429{ $as_echo "$as_me:$LINENO: result: $ac_cv_jpeg_version_ok" >&5
40430$as_echo "$ac_cv_jpeg_version_ok" >&6; }
40431fi
40432 { $as_echo "$as_me:$LINENO: checking if JPEG package is complete" >&5
40433$as_echo_n "checking if JPEG package is complete... " >&6; }
40434 if test $passed -gt 0; then
40435 if test $failed -gt 0; then
40436 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40437$as_echo "no -- some components failed test" >&6; }
40438 have_jpeg='no (failed tests)'
40439 else
40440 JPEG_LIBS='-ljpeg'
40441 LIBS="$JPEG_LIBS $LIBS"
40442
40443cat >>confdefs.h <<\_ACEOF
40444#define JPEG_DELEGATE 1
40445_ACEOF
40446
40447 { $as_echo "$as_me:$LINENO: result: yes" >&5
40448$as_echo "yes" >&6; }
40449 have_jpeg='yes'
40450 fi
40451 else
40452 { $as_echo "$as_me:$LINENO: result: no" >&5
40453$as_echo "no" >&6; }
40454 fi
40455fi
40456 if test "$have_jpeg" = 'yes'; then
40457 JPEG_DELEGATE_TRUE=
40458 JPEG_DELEGATE_FALSE='#'
40459else
40460 JPEG_DELEGATE_TRUE='#'
40461 JPEG_DELEGATE_FALSE=
40462fi
40463
40464
40465
40466
40467#
40468# Check for JPEG Version 2 delegate library.
40469#
40470
40471# Check whether --with-jp2 was given.
40472if test "${with_jp2+set}" = set; then
40473 withval=$with_jp2; with_jp2=$withval
40474else
40475 with_jp2='yes'
40476fi
40477
40478
40479if test "$with_jp2" != 'yes'; then
40480 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
40481fi
40482
40483have_jp2='no'
40484JP2_LIBS=''
40485if test "$with_jp2" != 'no'; then
40486 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40487$as_echo "-------------------------------------------------------------" >&6; }
40488 { $as_echo "$as_me:$LINENO: checking for JPEG Version 2" >&5
40489$as_echo_n "checking for JPEG Version 2... " >&6; }
40490 { $as_echo "$as_me:$LINENO: result: " >&5
40491$as_echo "" >&6; }
40492 failed=0
40493 passed=0
40494 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40495 { $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
40496$as_echo_n "checking for jasper/jasper.h... " >&6; }
40497if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40498 $as_echo_n "(cached) " >&6
40499fi
40500{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
40501$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
40502else
40503 # Is the header compilable?
40504{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
40505$as_echo_n "checking jasper/jasper.h usability... " >&6; }
40506cat >conftest.$ac_ext <<_ACEOF
40507/* confdefs.h. */
40508_ACEOF
40509cat confdefs.h >>conftest.$ac_ext
40510cat >>conftest.$ac_ext <<_ACEOF
40511/* end confdefs.h. */
40512$ac_includes_default
40513#include <jasper/jasper.h>
40514_ACEOF
40515rm -f conftest.$ac_objext
40516if { (ac_try="$ac_compile"
40517case "(($ac_try" in
40518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40519 *) ac_try_echo=$ac_try;;
40520esac
40521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40522$as_echo "$ac_try_echo") >&5
40523 (eval "$ac_compile") 2>conftest.er1
40524 ac_status=$?
40525 grep -v '^ *+' conftest.er1 >conftest.err
40526 rm -f conftest.er1
40527 cat conftest.err >&5
40528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40529 (exit $ac_status); } && {
40530 test -z "$ac_c_werror_flag" ||
40531 test ! -s conftest.err
40532 } && test -s conftest.$ac_objext; then
40533 ac_header_compiler=yes
40534else
40535 $as_echo "$as_me: failed program was:" >&5
40536sed 's/^/| /' conftest.$ac_ext >&5
40537
40538 ac_header_compiler=no
40539fi
40540
40541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40542{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40543$as_echo "$ac_header_compiler" >&6; }
40544
40545# Is the header present?
40546{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
40547$as_echo_n "checking jasper/jasper.h presence... " >&6; }
40548cat >conftest.$ac_ext <<_ACEOF
40549/* confdefs.h. */
40550_ACEOF
40551cat confdefs.h >>conftest.$ac_ext
40552cat >>conftest.$ac_ext <<_ACEOF
40553/* end confdefs.h. */
40554#include <jasper/jasper.h>
40555_ACEOF
40556if { (ac_try="$ac_cpp conftest.$ac_ext"
40557case "(($ac_try" in
40558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40559 *) ac_try_echo=$ac_try;;
40560esac
40561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40562$as_echo "$ac_try_echo") >&5
40563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40564 ac_status=$?
40565 grep -v '^ *+' conftest.er1 >conftest.err
40566 rm -f conftest.er1
40567 cat conftest.err >&5
40568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40569 (exit $ac_status); } >/dev/null && {
40570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40571 test ! -s conftest.err
40572 }; then
40573 ac_header_preproc=yes
40574else
40575 $as_echo "$as_me: failed program was:" >&5
40576sed 's/^/| /' conftest.$ac_ext >&5
40577
40578 ac_header_preproc=no
40579fi
40580
40581rm -f conftest.err conftest.$ac_ext
40582{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40583$as_echo "$ac_header_preproc" >&6; }
40584
40585# So? What about this header?
40586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40587 yes:no: )
40588 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
40589$as_echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40590 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
40591$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
40592 ac_header_preproc=yes
40593 ;;
40594 no:yes:* )
40595 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
40596$as_echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
40597 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&5
40598$as_echo "$as_me: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&2;}
40599 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
40600$as_echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
40601 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&5
40602$as_echo "$as_me: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&2;}
40603 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
40604$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
40605 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
40606$as_echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
40607 ( cat <<\_ASBOX
40608## ----------------------------------------- ##
40609## Report this to http://www.imagemagick.org ##
40610## ----------------------------------------- ##
40611_ASBOX
40612 ) | sed "s/^/$as_me: WARNING: /" >&2
40613 ;;
40614esac
40615{ $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
40616$as_echo_n "checking for jasper/jasper.h... " >&6; }
40617if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
40618 $as_echo_n "(cached) " >&6
40619else
40620 ac_cv_header_jasper_jasper_h=$ac_header_preproc
40621fi
40622{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
40623$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
40624
40625fi
40626if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then
40627 passed=`expr $passed + 1`
40628else
40629 failed=`expr $failed + 1`
40630fi
40631
40632
40633 { $as_echo "$as_me:$LINENO: checking for jas_stream_fopen in -ljasper" >&5
40634$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
40635if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then
40636 $as_echo_n "(cached) " >&6
40637else
40638 ac_check_lib_save_LIBS=$LIBS
40639LIBS="-ljasper $LIBS"
40640cat >conftest.$ac_ext <<_ACEOF
40641/* confdefs.h. */
40642_ACEOF
40643cat confdefs.h >>conftest.$ac_ext
40644cat >>conftest.$ac_ext <<_ACEOF
40645/* end confdefs.h. */
40646
40647/* Override any GCC internal prototype to avoid an error.
40648 Use char because int might match the return type of a GCC
40649 builtin and then its argument prototype would still apply. */
40650#ifdef __cplusplus
40651extern "C"
40652#endif
40653char jas_stream_fopen ();
40654int
40655main ()
40656{
40657return jas_stream_fopen ();
40658 ;
40659 return 0;
40660}
40661_ACEOF
40662rm -f conftest.$ac_objext conftest$ac_exeext
40663if { (ac_try="$ac_link"
40664case "(($ac_try" in
40665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40666 *) ac_try_echo=$ac_try;;
40667esac
40668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40669$as_echo "$ac_try_echo") >&5
40670 (eval "$ac_link") 2>conftest.er1
40671 ac_status=$?
40672 grep -v '^ *+' conftest.er1 >conftest.err
40673 rm -f conftest.er1
40674 cat conftest.err >&5
40675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40676 (exit $ac_status); } && {
40677 test -z "$ac_c_werror_flag" ||
40678 test ! -s conftest.err
40679 } && test -s conftest$ac_exeext && {
40680 test "$cross_compiling" = yes ||
40681 $as_test_x conftest$ac_exeext
40682 }; then
40683 ac_cv_lib_jasper_jas_stream_fopen=yes
40684else
40685 $as_echo "$as_me: failed program was:" >&5
40686sed 's/^/| /' conftest.$ac_ext >&5
40687
40688 ac_cv_lib_jasper_jas_stream_fopen=no
40689fi
40690
40691rm -rf conftest.dSYM
40692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40693 conftest$ac_exeext conftest.$ac_ext
40694LIBS=$ac_check_lib_save_LIBS
40695fi
40696{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
40697$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
40698if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then
40699 passed=`expr $passed + 1`
40700else
40701 failed=`expr $failed + 1`
40702fi
40703
40704 { $as_echo "$as_me:$LINENO: checking if JPEG version 2 support package is complete" >&5
40705$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
40706 if test $passed -gt 0; then
40707 if test $failed -gt 0; then
40708 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40709$as_echo "no -- some components failed test" >&6; }
40710 have_jp2='no (failed tests)'
40711 else
40712 JP2_LIBS='-ljasper'
40713 LIBS="$JP2_LIBS $LIBS"
40714
40715cat >>confdefs.h <<\_ACEOF
40716#define JP2_DELEGATE 1
40717_ACEOF
40718
40719 { $as_echo "$as_me:$LINENO: result: yes" >&5
40720$as_echo "yes" >&6; }
40721 have_jp2='yes'
40722 fi
40723 else
40724 { $as_echo "$as_me:$LINENO: result: no" >&5
40725$as_echo "no" >&6; }
40726 fi
40727fi
40728 if test "$have_jp2" = 'yes'; then
40729 JP2_DELEGATE_TRUE=
40730 JP2_DELEGATE_FALSE='#'
40731else
40732 JP2_DELEGATE_TRUE='#'
40733 JP2_DELEGATE_FALSE=
40734fi
40735
40736
40737
40738
40739#
40740# Check for LCMS delegate library.
40741#
40742
40743# Check whether --with-lcms was given.
40744if test "${with_lcms+set}" = set; then
40745 withval=$with_lcms; with_lcms=$withval
40746else
40747 with_lcms='yes'
40748fi
40749
40750
40751if test "$with_lcms" != 'yes'; then
40752 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
40753fi
40754
40755have_lcms='no'
40756LCMS_LIBS=''
40757if test "$with_lcms" != 'no'; then
40758 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40759$as_echo "-------------------------------------------------------------" >&6; }
40760 { $as_echo "$as_me:$LINENO: checking for LCMS" >&5
40761$as_echo_n "checking for LCMS... " >&6; }
40762 { $as_echo "$as_me:$LINENO: result: " >&5
40763$as_echo "" >&6; }
40764 failed=0
40765 passed=0
40766 have_lcms_header='no'
40767 if test "${ac_cv_header_lcms_h+set}" = set; then
40768 { $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40769$as_echo_n "checking for lcms.h... " >&6; }
40770if test "${ac_cv_header_lcms_h+set}" = set; then
40771 $as_echo_n "(cached) " >&6
40772fi
40773{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40774$as_echo "$ac_cv_header_lcms_h" >&6; }
40775else
40776 # Is the header compilable?
40777{ $as_echo "$as_me:$LINENO: checking lcms.h usability" >&5
40778$as_echo_n "checking lcms.h usability... " >&6; }
40779cat >conftest.$ac_ext <<_ACEOF
40780/* confdefs.h. */
40781_ACEOF
40782cat confdefs.h >>conftest.$ac_ext
40783cat >>conftest.$ac_ext <<_ACEOF
40784/* end confdefs.h. */
40785$ac_includes_default
40786#include <lcms.h>
40787_ACEOF
40788rm -f conftest.$ac_objext
40789if { (ac_try="$ac_compile"
40790case "(($ac_try" in
40791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40792 *) ac_try_echo=$ac_try;;
40793esac
40794eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40795$as_echo "$ac_try_echo") >&5
40796 (eval "$ac_compile") 2>conftest.er1
40797 ac_status=$?
40798 grep -v '^ *+' conftest.er1 >conftest.err
40799 rm -f conftest.er1
40800 cat conftest.err >&5
40801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802 (exit $ac_status); } && {
40803 test -z "$ac_c_werror_flag" ||
40804 test ! -s conftest.err
40805 } && test -s conftest.$ac_objext; then
40806 ac_header_compiler=yes
40807else
40808 $as_echo "$as_me: failed program was:" >&5
40809sed 's/^/| /' conftest.$ac_ext >&5
40810
40811 ac_header_compiler=no
40812fi
40813
40814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40815{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40816$as_echo "$ac_header_compiler" >&6; }
40817
40818# Is the header present?
40819{ $as_echo "$as_me:$LINENO: checking lcms.h presence" >&5
40820$as_echo_n "checking lcms.h presence... " >&6; }
40821cat >conftest.$ac_ext <<_ACEOF
40822/* confdefs.h. */
40823_ACEOF
40824cat confdefs.h >>conftest.$ac_ext
40825cat >>conftest.$ac_ext <<_ACEOF
40826/* end confdefs.h. */
40827#include <lcms.h>
40828_ACEOF
40829if { (ac_try="$ac_cpp conftest.$ac_ext"
40830case "(($ac_try" in
40831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40832 *) ac_try_echo=$ac_try;;
40833esac
40834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40835$as_echo "$ac_try_echo") >&5
40836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40837 ac_status=$?
40838 grep -v '^ *+' conftest.er1 >conftest.err
40839 rm -f conftest.er1
40840 cat conftest.err >&5
40841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40842 (exit $ac_status); } >/dev/null && {
40843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40844 test ! -s conftest.err
40845 }; then
40846 ac_header_preproc=yes
40847else
40848 $as_echo "$as_me: failed program was:" >&5
40849sed 's/^/| /' conftest.$ac_ext >&5
40850
40851 ac_header_preproc=no
40852fi
40853
40854rm -f conftest.err conftest.$ac_ext
40855{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40856$as_echo "$ac_header_preproc" >&6; }
40857
40858# So? What about this header?
40859case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40860 yes:no: )
40861 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
40862$as_echo "$as_me: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40863 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the compiler's result" >&5
40864$as_echo "$as_me: WARNING: lcms.h: proceeding with the compiler's result" >&2;}
40865 ac_header_preproc=yes
40866 ;;
40867 no:yes:* )
40868 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: present but cannot be compiled" >&5
40869$as_echo "$as_me: WARNING: lcms.h: present but cannot be compiled" >&2;}
40870 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: check for missing prerequisite headers?" >&5
40871$as_echo "$as_me: WARNING: lcms.h: check for missing prerequisite headers?" >&2;}
40872 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: see the Autoconf documentation" >&5
40873$as_echo "$as_me: WARNING: lcms.h: see the Autoconf documentation" >&2;}
40874 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&5
40875$as_echo "$as_me: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
40876 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the preprocessor's result" >&5
40877$as_echo "$as_me: WARNING: lcms.h: proceeding with the preprocessor's result" >&2;}
40878 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: in the future, the compiler will take precedence" >&5
40879$as_echo "$as_me: WARNING: lcms.h: in the future, the compiler will take precedence" >&2;}
40880 ( cat <<\_ASBOX
40881## ----------------------------------------- ##
40882## Report this to http://www.imagemagick.org ##
40883## ----------------------------------------- ##
40884_ASBOX
40885 ) | sed "s/^/$as_me: WARNING: /" >&2
40886 ;;
40887esac
40888{ $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40889$as_echo_n "checking for lcms.h... " >&6; }
40890if test "${ac_cv_header_lcms_h+set}" = set; then
40891 $as_echo_n "(cached) " >&6
40892else
40893 ac_cv_header_lcms_h=$ac_header_preproc
40894fi
40895{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40896$as_echo "$ac_cv_header_lcms_h" >&6; }
40897
40898fi
40899if test "x$ac_cv_header_lcms_h" = x""yes; then
40900 have_lcms_header='yes'
40901fi
40902
40903
40904 if test "$have_lcms_header" = 'yes'; then
40905 passed=`expr $passed + 1`
40906
40907cat >>confdefs.h <<\_ACEOF
40908#define HAVE_LCMS_H 1
40909_ACEOF
40910
40911 else
40912 if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40913 { $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
40914$as_echo_n "checking for lcms/lcms.h... " >&6; }
40915if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40916 $as_echo_n "(cached) " >&6
40917fi
40918{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
40919$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
40920else
40921 # Is the header compilable?
40922{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h usability" >&5
40923$as_echo_n "checking lcms/lcms.h usability... " >&6; }
40924cat >conftest.$ac_ext <<_ACEOF
40925/* confdefs.h. */
40926_ACEOF
40927cat confdefs.h >>conftest.$ac_ext
40928cat >>conftest.$ac_ext <<_ACEOF
40929/* end confdefs.h. */
40930$ac_includes_default
40931#include <lcms/lcms.h>
40932_ACEOF
40933rm -f conftest.$ac_objext
40934if { (ac_try="$ac_compile"
40935case "(($ac_try" in
40936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40937 *) ac_try_echo=$ac_try;;
40938esac
40939eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40940$as_echo "$ac_try_echo") >&5
40941 (eval "$ac_compile") 2>conftest.er1
40942 ac_status=$?
40943 grep -v '^ *+' conftest.er1 >conftest.err
40944 rm -f conftest.er1
40945 cat conftest.err >&5
40946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40947 (exit $ac_status); } && {
40948 test -z "$ac_c_werror_flag" ||
40949 test ! -s conftest.err
40950 } && test -s conftest.$ac_objext; then
40951 ac_header_compiler=yes
40952else
40953 $as_echo "$as_me: failed program was:" >&5
40954sed 's/^/| /' conftest.$ac_ext >&5
40955
40956 ac_header_compiler=no
40957fi
40958
40959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40960{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40961$as_echo "$ac_header_compiler" >&6; }
40962
40963# Is the header present?
40964{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h presence" >&5
40965$as_echo_n "checking lcms/lcms.h presence... " >&6; }
40966cat >conftest.$ac_ext <<_ACEOF
40967/* confdefs.h. */
40968_ACEOF
40969cat confdefs.h >>conftest.$ac_ext
40970cat >>conftest.$ac_ext <<_ACEOF
40971/* end confdefs.h. */
40972#include <lcms/lcms.h>
40973_ACEOF
40974if { (ac_try="$ac_cpp conftest.$ac_ext"
40975case "(($ac_try" in
40976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40977 *) ac_try_echo=$ac_try;;
40978esac
40979eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40980$as_echo "$ac_try_echo") >&5
40981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40982 ac_status=$?
40983 grep -v '^ *+' conftest.er1 >conftest.err
40984 rm -f conftest.er1
40985 cat conftest.err >&5
40986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40987 (exit $ac_status); } >/dev/null && {
40988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40989 test ! -s conftest.err
40990 }; then
40991 ac_header_preproc=yes
40992else
40993 $as_echo "$as_me: failed program was:" >&5
40994sed 's/^/| /' conftest.$ac_ext >&5
40995
40996 ac_header_preproc=no
40997fi
40998
40999rm -f conftest.err conftest.$ac_ext
41000{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41001$as_echo "$ac_header_preproc" >&6; }
41002
41003# So? What about this header?
41004case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41005 yes:no: )
41006 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
41007$as_echo "$as_me: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41008 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&5
41009$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&2;}
41010 ac_header_preproc=yes
41011 ;;
41012 no:yes:* )
41013 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: present but cannot be compiled" >&5
41014$as_echo "$as_me: WARNING: lcms/lcms.h: present but cannot be compiled" >&2;}
41015 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&5
41016$as_echo "$as_me: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&2;}
41017 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: see the Autoconf documentation" >&5
41018$as_echo "$as_me: WARNING: lcms/lcms.h: see the Autoconf documentation" >&2;}
41019 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&5
41020$as_echo "$as_me: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
41021 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&5
41022$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&2;}
41023 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&5
41024$as_echo "$as_me: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&2;}
41025 ( cat <<\_ASBOX
41026## ----------------------------------------- ##
41027## Report this to http://www.imagemagick.org ##
41028## ----------------------------------------- ##
41029_ASBOX
41030 ) | sed "s/^/$as_me: WARNING: /" >&2
41031 ;;
41032esac
41033{ $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
41034$as_echo_n "checking for lcms/lcms.h... " >&6; }
41035if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
41036 $as_echo_n "(cached) " >&6
41037else
41038 ac_cv_header_lcms_lcms_h=$ac_header_preproc
41039fi
41040{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
41041$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
41042
41043fi
41044if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then
41045 have_lcms_header='yes'
41046fi
41047
41048
41049 if test "$have_lcms_header" = 'yes'; then
41050 passed=`expr $passed + 1`
41051
41052cat >>confdefs.h <<\_ACEOF
41053#define HAVE_LCMS_LCMS_H 1
41054_ACEOF
41055
41056 else
41057 failed=`expr $failed + 1`
41058 fi
41059 fi
41060 { $as_echo "$as_me:$LINENO: checking for cmsOpenProfileFromMem in -llcms" >&5
41061$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
41062if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then
41063 $as_echo_n "(cached) " >&6
41064else
41065 ac_check_lib_save_LIBS=$LIBS
41066LIBS="-llcms $LIBS"
41067cat >conftest.$ac_ext <<_ACEOF
41068/* confdefs.h. */
41069_ACEOF
41070cat confdefs.h >>conftest.$ac_ext
41071cat >>conftest.$ac_ext <<_ACEOF
41072/* end confdefs.h. */
41073
41074/* Override any GCC internal prototype to avoid an error.
41075 Use char because int might match the return type of a GCC
41076 builtin and then its argument prototype would still apply. */
41077#ifdef __cplusplus
41078extern "C"
41079#endif
41080char cmsOpenProfileFromMem ();
41081int
41082main ()
41083{
41084return cmsOpenProfileFromMem ();
41085 ;
41086 return 0;
41087}
41088_ACEOF
41089rm -f conftest.$ac_objext conftest$ac_exeext
41090if { (ac_try="$ac_link"
41091case "(($ac_try" in
41092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41093 *) ac_try_echo=$ac_try;;
41094esac
41095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41096$as_echo "$ac_try_echo") >&5
41097 (eval "$ac_link") 2>conftest.er1
41098 ac_status=$?
41099 grep -v '^ *+' conftest.er1 >conftest.err
41100 rm -f conftest.er1
41101 cat conftest.err >&5
41102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41103 (exit $ac_status); } && {
41104 test -z "$ac_c_werror_flag" ||
41105 test ! -s conftest.err
41106 } && test -s conftest$ac_exeext && {
41107 test "$cross_compiling" = yes ||
41108 $as_test_x conftest$ac_exeext
41109 }; then
41110 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
41111else
41112 $as_echo "$as_me: failed program was:" >&5
41113sed 's/^/| /' conftest.$ac_ext >&5
41114
41115 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
41116fi
41117
41118rm -rf conftest.dSYM
41119rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41120 conftest$ac_exeext conftest.$ac_ext
41121LIBS=$ac_check_lib_save_LIBS
41122fi
41123{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
41124$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
41125if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then
41126 passed=`expr $passed + 1`
41127else
41128 failed=`expr $failed + 1`
41129fi
41130
41131 { $as_echo "$as_me:$LINENO: checking if LCMS package is complete" >&5
41132$as_echo_n "checking if LCMS package is complete... " >&6; }
41133 if test $passed -gt 0; then
41134 if test $failed -gt 0; then
41135 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
41136$as_echo "no -- some components failed test" >&6; }
41137 have_lcms='no (failed tests)'
41138 else
41139 LCMS_LIBS='-llcms'
41140 LIBS="$LCMS_LIBS $LIBS"
41141
41142cat >>confdefs.h <<\_ACEOF
41143#define LCMS_DELEGATE 1
41144_ACEOF
41145
41146 { $as_echo "$as_me:$LINENO: result: yes" >&5
41147$as_echo "yes" >&6; }
41148 have_lcms='yes'
41149 fi
41150 else
41151 { $as_echo "$as_me:$LINENO: result: no" >&5
41152$as_echo "no" >&6; }
41153 fi
41154fi
41155 if test "$have_lcms" = 'yes'; then
41156 LCMS_DELEGATE_TRUE=
41157 LCMS_DELEGATE_FALSE='#'
41158else
41159 LCMS_DELEGATE_TRUE='#'
41160 LCMS_DELEGATE_FALSE=
41161fi
41162
41163
41164
41165
41166#
41167# Check for the LQR (Liquid Rescale) delegate library.
41168#
41169
41170# Check whether --with-lqr was given.
41171if test "${with_lqr+set}" = set; then
41172 withval=$with_lqr; with_lqr=$withval
41173else
41174 with_lqr='yes'
41175fi
41176
41177
41178if test "$with_lqr" != 'yes'; then
41179 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
41180fi
41181
41182have_lqr='no'
41183LQR_CFLAGS=""
41184LQR_LIBS=""
41185LQR_PKG=""
41186if test "x$with_lqr" = "xyes"; then
41187 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41188$as_echo "-------------------------------------------------------------" >&6; }
41189
41190pkg_failed=no
41191{ $as_echo "$as_me:$LINENO: checking for LQR" >&5
41192$as_echo_n "checking for LQR... " >&6; }
41193
41194if test -n "$LQR_CFLAGS"; then
41195 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
41196 elif test -n "$PKG_CONFIG"; then
41197 if test -n "$PKG_CONFIG" && \
41198 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
41199 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
41200 ac_status=$?
41201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41202 (exit $ac_status); }; then
41203 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
41204else
41205 pkg_failed=yes
41206fi
41207 else
41208 pkg_failed=untried
41209fi
41210if test -n "$LQR_LIBS"; then
41211 pkg_cv_LQR_LIBS="$LQR_LIBS"
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_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
41220else
41221 pkg_failed=yes
41222fi
41223 else
41224 pkg_failed=untried
41225fi
41226
41227
41228
41229if test $pkg_failed = yes; then
41230
41231if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41232 _pkg_short_errors_supported=yes
41233else
41234 _pkg_short_errors_supported=no
41235fi
41236 if test $_pkg_short_errors_supported = yes; then
41237 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
41238 else
41239 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
41240 fi
41241 # Put the nasty error message in config.log where it belongs
41242 echo "$LQR_PKG_ERRORS" >&5
41243
41244 { $as_echo "$as_me:$LINENO: result: no" >&5
41245$as_echo "no" >&6; }
41246 have_lqr=no
41247elif test $pkg_failed = untried; then
41248 have_lqr=no
41249else
41250 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
41251 LQR_LIBS=$pkg_cv_LQR_LIBS
41252 { $as_echo "$as_me:$LINENO: result: yes" >&5
41253$as_echo "yes" >&6; }
41254 have_lqr=yes
41255fi
41256 { $as_echo "$as_me:$LINENO: result: " >&5
41257$as_echo "" >&6; }
41258fi
41259
41260if test "$have_lqr" = 'yes'; then
41261
41262cat >>confdefs.h <<\_ACEOF
41263#define LQR_DELEGATE 1
41264_ACEOF
41265
41266 CFLAGS="$LQR_CFLAGS $CFLAGS"
41267fi
41268
41269 if test "$have_lqr" = 'yes'; then
41270 LQR_DELEGATE_TRUE=
41271 LQR_DELEGATE_FALSE='#'
41272else
41273 LQR_DELEGATE_TRUE='#'
41274 LQR_DELEGATE_FALSE=
41275fi
41276
41277
41278
41279
41280
41281#
41282# Check for the OpenEXR delegate library.
41283#
41284
41285# Check whether --with-openexr was given.
41286if test "${with_openexr+set}" = set; then
41287 withval=$with_openexr; with_openexr=$withval
41288else
41289 with_openexr='yes'
41290fi
41291
41292
41293if test "$with_openexr" != 'yes'; then
41294 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
41295fi
41296
41297have_openexr='no'
41298OPENEXR_CFLAGS=""
41299OPENEXR_LIBS=""
41300OPENEXR_PKG=""
41301if test "x$with_openexr" = "xyes"; then
41302 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41303$as_echo "-------------------------------------------------------------" >&6; }
41304
41305pkg_failed=no
41306{ $as_echo "$as_me:$LINENO: checking for OPENEXR" >&5
41307$as_echo_n "checking for OPENEXR... " >&6; }
41308
41309if test -n "$OPENEXR_CFLAGS"; then
41310 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
41311 elif test -n "$PKG_CONFIG"; then
41312 if test -n "$PKG_CONFIG" && \
41313 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
41314 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
41315 ac_status=$?
41316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41317 (exit $ac_status); }; then
41318 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
41319else
41320 pkg_failed=yes
41321fi
41322 else
41323 pkg_failed=untried
41324fi
41325if test -n "$OPENEXR_LIBS"; then
41326 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
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_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
41335else
41336 pkg_failed=yes
41337fi
41338 else
41339 pkg_failed=untried
41340fi
41341
41342
41343
41344if test $pkg_failed = yes; then
41345
41346if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41347 _pkg_short_errors_supported=yes
41348else
41349 _pkg_short_errors_supported=no
41350fi
41351 if test $_pkg_short_errors_supported = yes; then
41352 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
41353 else
41354 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
41355 fi
41356 # Put the nasty error message in config.log where it belongs
41357 echo "$OPENEXR_PKG_ERRORS" >&5
41358
41359 { $as_echo "$as_me:$LINENO: result: no" >&5
41360$as_echo "no" >&6; }
41361 have_openexr=no
41362elif test $pkg_failed = untried; then
41363 have_openexr=no
41364else
41365 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
41366 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
41367 { $as_echo "$as_me:$LINENO: result: yes" >&5
41368$as_echo "yes" >&6; }
41369 have_openexr=yes
41370fi
41371 { $as_echo "$as_me:$LINENO: result: " >&5
41372$as_echo "" >&6; }
41373fi
41374
41375if test "$have_openexr" = 'yes'; then
41376
41377cat >>confdefs.h <<\_ACEOF
41378#define OPENEXR_DELEGATE 1
41379_ACEOF
41380
41381 if test "$with_modules" = 'no'; then
41382 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
41383 fi
41384fi
41385
41386 if test "$have_openexr" = 'yes'; then
41387 OPENEXR_DELEGATE_TRUE=
41388 OPENEXR_DELEGATE_FALSE='#'
41389else
41390 OPENEXR_DELEGATE_TRUE='#'
41391 OPENEXR_DELEGATE_FALSE=
41392fi
41393
41394
41395
41396
41397
41398#
41399# Check for PNG delegate library.
41400#
41401
41402# Check whether --with-png was given.
41403if test "${with_png+set}" = set; then
41404 withval=$with_png; with_png=$withval
41405else
41406 with_png='yes'
41407fi
41408
41409
41410if test "$with_png" != 'yes'; then
41411 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
41412fi
41413
41414have_png='no'
41415PNG_LIBS=''
41416if test "$with_png" != 'no'; then
41417 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41418$as_echo "-------------------------------------------------------------" >&6; }
41419 { $as_echo "$as_me:$LINENO: checking for PNG" >&5
41420$as_echo_n "checking for PNG... " >&6; }
41421 { $as_echo "$as_me:$LINENO: result: " >&5
41422$as_echo "" >&6; }
41423 failed=0
41424 passed=0
41425 if test "${ac_cv_header_png_h+set}" = set; then
41426 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
41427$as_echo_n "checking for png.h... " >&6; }
41428if test "${ac_cv_header_png_h+set}" = set; then
41429 $as_echo_n "(cached) " >&6
41430fi
41431{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
41432$as_echo "$ac_cv_header_png_h" >&6; }
41433else
41434 # Is the header compilable?
41435{ $as_echo "$as_me:$LINENO: checking png.h usability" >&5
41436$as_echo_n "checking png.h usability... " >&6; }
41437cat >conftest.$ac_ext <<_ACEOF
41438/* confdefs.h. */
41439_ACEOF
41440cat confdefs.h >>conftest.$ac_ext
41441cat >>conftest.$ac_ext <<_ACEOF
41442/* end confdefs.h. */
41443$ac_includes_default
41444#include <png.h>
41445_ACEOF
41446rm -f conftest.$ac_objext
41447if { (ac_try="$ac_compile"
41448case "(($ac_try" in
41449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41450 *) ac_try_echo=$ac_try;;
41451esac
41452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41453$as_echo "$ac_try_echo") >&5
41454 (eval "$ac_compile") 2>conftest.er1
41455 ac_status=$?
41456 grep -v '^ *+' conftest.er1 >conftest.err
41457 rm -f conftest.er1
41458 cat conftest.err >&5
41459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41460 (exit $ac_status); } && {
41461 test -z "$ac_c_werror_flag" ||
41462 test ! -s conftest.err
41463 } && test -s conftest.$ac_objext; then
41464 ac_header_compiler=yes
41465else
41466 $as_echo "$as_me: failed program was:" >&5
41467sed 's/^/| /' conftest.$ac_ext >&5
41468
41469 ac_header_compiler=no
41470fi
41471
41472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41473{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41474$as_echo "$ac_header_compiler" >&6; }
41475
41476# Is the header present?
41477{ $as_echo "$as_me:$LINENO: checking png.h presence" >&5
41478$as_echo_n "checking png.h presence... " >&6; }
41479cat >conftest.$ac_ext <<_ACEOF
41480/* confdefs.h. */
41481_ACEOF
41482cat confdefs.h >>conftest.$ac_ext
41483cat >>conftest.$ac_ext <<_ACEOF
41484/* end confdefs.h. */
41485#include <png.h>
41486_ACEOF
41487if { (ac_try="$ac_cpp conftest.$ac_ext"
41488case "(($ac_try" in
41489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41490 *) ac_try_echo=$ac_try;;
41491esac
41492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41493$as_echo "$ac_try_echo") >&5
41494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41495 ac_status=$?
41496 grep -v '^ *+' conftest.er1 >conftest.err
41497 rm -f conftest.er1
41498 cat conftest.err >&5
41499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41500 (exit $ac_status); } >/dev/null && {
41501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41502 test ! -s conftest.err
41503 }; then
41504 ac_header_preproc=yes
41505else
41506 $as_echo "$as_me: failed program was:" >&5
41507sed 's/^/| /' conftest.$ac_ext >&5
41508
41509 ac_header_preproc=no
41510fi
41511
41512rm -f conftest.err conftest.$ac_ext
41513{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41514$as_echo "$ac_header_preproc" >&6; }
41515
41516# So? What about this header?
41517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41518 yes:no: )
41519 { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
41520$as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41521 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
41522$as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
41523 ac_header_preproc=yes
41524 ;;
41525 no:yes:* )
41526 { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
41527$as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
41528 { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
41529$as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
41530 { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
41531$as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
41532 { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
41533$as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
41534 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
41535$as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
41536 { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
41537$as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
41538 ( cat <<\_ASBOX
41539## ----------------------------------------- ##
41540## Report this to http://www.imagemagick.org ##
41541## ----------------------------------------- ##
41542_ASBOX
41543 ) | sed "s/^/$as_me: WARNING: /" >&2
41544 ;;
41545esac
41546{ $as_echo "$as_me:$LINENO: checking for png.h" >&5
41547$as_echo_n "checking for png.h... " >&6; }
41548if test "${ac_cv_header_png_h+set}" = set; then
41549 $as_echo_n "(cached) " >&6
41550else
41551 ac_cv_header_png_h=$ac_header_preproc
41552fi
41553{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
41554$as_echo "$ac_cv_header_png_h" >&6; }
41555
41556fi
41557if test "x$ac_cv_header_png_h" = x""yes; then
41558 passed=`expr $passed + 1`
41559else
41560 failed=`expr $failed + 1`
41561fi
41562
41563
41564 { $as_echo "$as_me:$LINENO: checking for png_get_io_ptr in -lpng" >&5
41565$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
41566if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then
41567 $as_echo_n "(cached) " >&6
41568else
41569 ac_check_lib_save_LIBS=$LIBS
41570LIBS="-lpng $LIBS"
41571cat >conftest.$ac_ext <<_ACEOF
41572/* confdefs.h. */
41573_ACEOF
41574cat confdefs.h >>conftest.$ac_ext
41575cat >>conftest.$ac_ext <<_ACEOF
41576/* end confdefs.h. */
41577
41578/* Override any GCC internal prototype to avoid an error.
41579 Use char because int might match the return type of a GCC
41580 builtin and then its argument prototype would still apply. */
41581#ifdef __cplusplus
41582extern "C"
41583#endif
41584char png_get_io_ptr ();
41585int
41586main ()
41587{
41588return png_get_io_ptr ();
41589 ;
41590 return 0;
41591}
41592_ACEOF
41593rm -f conftest.$ac_objext conftest$ac_exeext
41594if { (ac_try="$ac_link"
41595case "(($ac_try" in
41596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41597 *) ac_try_echo=$ac_try;;
41598esac
41599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41600$as_echo "$ac_try_echo") >&5
41601 (eval "$ac_link") 2>conftest.er1
41602 ac_status=$?
41603 grep -v '^ *+' conftest.er1 >conftest.err
41604 rm -f conftest.er1
41605 cat conftest.err >&5
41606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41607 (exit $ac_status); } && {
41608 test -z "$ac_c_werror_flag" ||
41609 test ! -s conftest.err
41610 } && test -s conftest$ac_exeext && {
41611 test "$cross_compiling" = yes ||
41612 $as_test_x conftest$ac_exeext
41613 }; then
41614 ac_cv_lib_png_png_get_io_ptr=yes
41615else
41616 $as_echo "$as_me: failed program was:" >&5
41617sed 's/^/| /' conftest.$ac_ext >&5
41618
41619 ac_cv_lib_png_png_get_io_ptr=no
41620fi
41621
41622rm -rf conftest.dSYM
41623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41624 conftest$ac_exeext conftest.$ac_ext
41625LIBS=$ac_check_lib_save_LIBS
41626fi
41627{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_io_ptr" >&5
41628$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
41629if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then
41630 passed=`expr $passed + 1`
41631else
41632 failed=`expr $failed + 1`
41633fi
41634
41635 { $as_echo "$as_me:$LINENO: checking if PNG package is complete" >&5
41636$as_echo_n "checking if PNG package is complete... " >&6; }
41637 if test $passed -gt 0; then
41638 if test $failed -gt 0; then
41639 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
41640$as_echo "no -- some components failed test" >&6; }
41641 have_png='no (failed tests)'
41642 else
41643 PNG_LIBS='-lpng'
41644 LIBS="$PNG_LIBS $LIBS"
41645
41646cat >>confdefs.h <<\_ACEOF
41647#define PNG_DELEGATE 1
41648_ACEOF
41649
41650 { $as_echo "$as_me:$LINENO: result: yes" >&5
41651$as_echo "yes" >&6; }
41652 have_png='yes'
41653 fi
41654 else
41655 { $as_echo "$as_me:$LINENO: result: no" >&5
41656$as_echo "no" >&6; }
41657 fi
41658fi
41659 if test "$have_png" = 'yes'; then
41660 PNG_DELEGATE_TRUE=
41661 PNG_DELEGATE_FALSE='#'
41662else
41663 PNG_DELEGATE_TRUE='#'
41664 PNG_DELEGATE_FALSE=
41665fi
41666
41667
41668
41669
41670#
41671# Check for RSVG delegate library.
41672#
41673
41674# Check whether --with-rsvg was given.
41675if test "${with_rsvg+set}" = set; then
41676 withval=$with_rsvg; with_rsvg=$withval
41677else
41678 with_rsvg=$have_x
41679fi
41680
41681
41682if test "$with_rsvg" != 'yes'; then
41683 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
41684fi
41685
41686have_rsvg='no'
41687have_cairo='no'
41688RSVG_CFLAGS=""
41689RSVG_LIBS=""
41690RSVG_PKG=""
41691if test "x$with_rsvg" = "xyes"; then
41692 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41693$as_echo "-------------------------------------------------------------" >&6; }
41694
41695pkg_failed=no
41696{ $as_echo "$as_me:$LINENO: checking for RSVG" >&5
41697$as_echo_n "checking for RSVG... " >&6; }
41698
41699if test -n "$RSVG_CFLAGS"; then
41700 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
41701 elif test -n "$PKG_CONFIG"; then
41702 if test -n "$PKG_CONFIG" && \
41703 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
41704 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
41705 ac_status=$?
41706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41707 (exit $ac_status); }; then
41708 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
41709else
41710 pkg_failed=yes
41711fi
41712 else
41713 pkg_failed=untried
41714fi
41715if test -n "$RSVG_LIBS"; then
41716 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
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_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
41725else
41726 pkg_failed=yes
41727fi
41728 else
41729 pkg_failed=untried
41730fi
41731
41732
41733
41734if test $pkg_failed = yes; then
41735
41736if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41737 _pkg_short_errors_supported=yes
41738else
41739 _pkg_short_errors_supported=no
41740fi
41741 if test $_pkg_short_errors_supported = yes; then
41742 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
41743 else
41744 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
41745 fi
41746 # Put the nasty error message in config.log where it belongs
41747 echo "$RSVG_PKG_ERRORS" >&5
41748
41749 { $as_echo "$as_me:$LINENO: result: no" >&5
41750$as_echo "no" >&6; }
41751 have_rsvg=no
41752elif test $pkg_failed = untried; then
41753 have_rsvg=no
41754else
41755 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
41756 RSVG_LIBS=$pkg_cv_RSVG_LIBS
41757 { $as_echo "$as_me:$LINENO: result: yes" >&5
41758$as_echo "yes" >&6; }
41759 have_rsvg=yes
41760fi
41761 { $as_echo "$as_me:$LINENO: result: " >&5
41762$as_echo "" >&6; }
41763
41764pkg_failed=no
41765{ $as_echo "$as_me:$LINENO: checking for CAIRO_SVG" >&5
41766$as_echo_n "checking for CAIRO_SVG... " >&6; }
41767
41768if test -n "$CAIRO_SVG_CFLAGS"; then
41769 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
41770 elif test -n "$PKG_CONFIG"; then
41771 if test -n "$PKG_CONFIG" && \
41772 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
41773 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
41774 ac_status=$?
41775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41776 (exit $ac_status); }; then
41777 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
41778else
41779 pkg_failed=yes
41780fi
41781 else
41782 pkg_failed=untried
41783fi
41784if test -n "$CAIRO_SVG_LIBS"; then
41785 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
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_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
41794else
41795 pkg_failed=yes
41796fi
41797 else
41798 pkg_failed=untried
41799fi
41800
41801
41802
41803if test $pkg_failed = yes; then
41804
41805if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
41806 _pkg_short_errors_supported=yes
41807else
41808 _pkg_short_errors_supported=no
41809fi
41810 if test $_pkg_short_errors_supported = yes; then
41811 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
41812 else
41813 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
41814 fi
41815 # Put the nasty error message in config.log where it belongs
41816 echo "$CAIRO_SVG_PKG_ERRORS" >&5
41817
41818 { $as_echo "$as_me:$LINENO: result: no" >&5
41819$as_echo "no" >&6; }
41820 have_cairo=no
41821elif test $pkg_failed = untried; then
41822 have_cairo=no
41823else
41824 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
41825 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
41826 { $as_echo "$as_me:$LINENO: result: yes" >&5
41827$as_echo "yes" >&6; }
41828 have_cairo=yes
41829fi
41830 { $as_echo "$as_me:$LINENO: result: " >&5
41831$as_echo "" >&6; }
41832fi
41833
41834if test "$have_rsvg" = 'yes'; then
41835
41836cat >>confdefs.h <<\_ACEOF
41837#define RSVG_DELEGATE 1
41838_ACEOF
41839
41840 if test "$with_modules" = 'no'; then
41841 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
41842 fi
41843fi
41844
41845if test "$have_cairo" = 'yes'; then
41846
41847cat >>confdefs.h <<\_ACEOF
41848#define CAIRO_DELEGATE 1
41849_ACEOF
41850
41851 if test "$with_modules" = 'no'; then
41852 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
41853 fi
41854fi
41855
41856 if test "$have_rsvg" = 'yes'; then
41857 RSVG_DELEGATE_TRUE=
41858 RSVG_DELEGATE_FALSE='#'
41859else
41860 RSVG_DELEGATE_TRUE='#'
41861 RSVG_DELEGATE_FALSE=
41862fi
41863
41864 if test "$have_cairo" = 'yes'; then
41865 CAIRO_DELEGATE_TRUE=
41866 CAIRO_DELEGATE_FALSE='#'
41867else
41868 CAIRO_DELEGATE_TRUE='#'
41869 CAIRO_DELEGATE_FALSE=
41870fi
41871
41872
41873
41874
41875
41876#
41877# Check for TIFF delegate library.
41878#
41879
41880# Check whether --with-tiff was given.
41881if test "${with_tiff+set}" = set; then
41882 withval=$with_tiff; with_tiff=$withval
41883else
41884 with_tiff='yes'
41885fi
41886
41887
41888if test "$with_tiff" != 'yes'; then
41889 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
41890fi
41891
41892have_tiff='no'
41893TIFF_LIBS=''
41894if test "$with_tiff" != 'no'; then
41895 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41896$as_echo "-------------------------------------------------------------" >&6; }
41897 { $as_echo "$as_me:$LINENO: checking for TIFF" >&5
41898$as_echo_n "checking for TIFF... " >&6; }
41899 { $as_echo "$as_me:$LINENO: result: " >&5
41900$as_echo "" >&6; }
41901 failed=0
41902 passed=0
41903 if test "${ac_cv_header_tiff_h+set}" = set; then
41904 { $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
41905$as_echo_n "checking for tiff.h... " >&6; }
41906if test "${ac_cv_header_tiff_h+set}" = set; then
41907 $as_echo_n "(cached) " >&6
41908fi
41909{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
41910$as_echo "$ac_cv_header_tiff_h" >&6; }
41911else
41912 # Is the header compilable?
41913{ $as_echo "$as_me:$LINENO: checking tiff.h usability" >&5
41914$as_echo_n "checking tiff.h usability... " >&6; }
41915cat >conftest.$ac_ext <<_ACEOF
41916/* confdefs.h. */
41917_ACEOF
41918cat confdefs.h >>conftest.$ac_ext
41919cat >>conftest.$ac_ext <<_ACEOF
41920/* end confdefs.h. */
41921$ac_includes_default
41922#include <tiff.h>
41923_ACEOF
41924rm -f conftest.$ac_objext
41925if { (ac_try="$ac_compile"
41926case "(($ac_try" in
41927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41928 *) ac_try_echo=$ac_try;;
41929esac
41930eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41931$as_echo "$ac_try_echo") >&5
41932 (eval "$ac_compile") 2>conftest.er1
41933 ac_status=$?
41934 grep -v '^ *+' conftest.er1 >conftest.err
41935 rm -f conftest.er1
41936 cat conftest.err >&5
41937 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41938 (exit $ac_status); } && {
41939 test -z "$ac_c_werror_flag" ||
41940 test ! -s conftest.err
41941 } && test -s conftest.$ac_objext; then
41942 ac_header_compiler=yes
41943else
41944 $as_echo "$as_me: failed program was:" >&5
41945sed 's/^/| /' conftest.$ac_ext >&5
41946
41947 ac_header_compiler=no
41948fi
41949
41950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41951{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41952$as_echo "$ac_header_compiler" >&6; }
41953
41954# Is the header present?
41955{ $as_echo "$as_me:$LINENO: checking tiff.h presence" >&5
41956$as_echo_n "checking tiff.h presence... " >&6; }
41957cat >conftest.$ac_ext <<_ACEOF
41958/* confdefs.h. */
41959_ACEOF
41960cat confdefs.h >>conftest.$ac_ext
41961cat >>conftest.$ac_ext <<_ACEOF
41962/* end confdefs.h. */
41963#include <tiff.h>
41964_ACEOF
41965if { (ac_try="$ac_cpp conftest.$ac_ext"
41966case "(($ac_try" in
41967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41968 *) ac_try_echo=$ac_try;;
41969esac
41970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41971$as_echo "$ac_try_echo") >&5
41972 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41973 ac_status=$?
41974 grep -v '^ *+' conftest.er1 >conftest.err
41975 rm -f conftest.er1
41976 cat conftest.err >&5
41977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41978 (exit $ac_status); } >/dev/null && {
41979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41980 test ! -s conftest.err
41981 }; then
41982 ac_header_preproc=yes
41983else
41984 $as_echo "$as_me: failed program was:" >&5
41985sed 's/^/| /' conftest.$ac_ext >&5
41986
41987 ac_header_preproc=no
41988fi
41989
41990rm -f conftest.err conftest.$ac_ext
41991{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41992$as_echo "$ac_header_preproc" >&6; }
41993
41994# So? What about this header?
41995case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41996 yes:no: )
41997 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5
41998$as_echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41999 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5
42000$as_echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;}
42001 ac_header_preproc=yes
42002 ;;
42003 no:yes:* )
42004 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5
42005$as_echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;}
42006 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: check for missing prerequisite headers?" >&5
42007$as_echo "$as_me: WARNING: tiff.h: check for missing prerequisite headers?" >&2;}
42008 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5
42009$as_echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;}
42010 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&5
42011$as_echo "$as_me: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&2;}
42012 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5
42013$as_echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;}
42014 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5
42015$as_echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;}
42016 ( cat <<\_ASBOX
42017## ----------------------------------------- ##
42018## Report this to http://www.imagemagick.org ##
42019## ----------------------------------------- ##
42020_ASBOX
42021 ) | sed "s/^/$as_me: WARNING: /" >&2
42022 ;;
42023esac
42024{ $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
42025$as_echo_n "checking for tiff.h... " >&6; }
42026if test "${ac_cv_header_tiff_h+set}" = set; then
42027 $as_echo_n "(cached) " >&6
42028else
42029 ac_cv_header_tiff_h=$ac_header_preproc
42030fi
42031{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
42032$as_echo "$ac_cv_header_tiff_h" >&6; }
42033
42034fi
42035if test "x$ac_cv_header_tiff_h" = x""yes; then
42036 passed=`expr $passed + 1`
42037else
42038 failed=`expr $failed + 1`
42039fi
42040
42041
42042 if test "${ac_cv_header_tiffio_h+set}" = set; then
42043 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
42044$as_echo_n "checking for tiffio.h... " >&6; }
42045if test "${ac_cv_header_tiffio_h+set}" = set; then
42046 $as_echo_n "(cached) " >&6
42047fi
42048{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
42049$as_echo "$ac_cv_header_tiffio_h" >&6; }
42050else
42051 # Is the header compilable?
42052{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
42053$as_echo_n "checking tiffio.h usability... " >&6; }
42054cat >conftest.$ac_ext <<_ACEOF
42055/* confdefs.h. */
42056_ACEOF
42057cat confdefs.h >>conftest.$ac_ext
42058cat >>conftest.$ac_ext <<_ACEOF
42059/* end confdefs.h. */
42060$ac_includes_default
42061#include <tiffio.h>
42062_ACEOF
42063rm -f conftest.$ac_objext
42064if { (ac_try="$ac_compile"
42065case "(($ac_try" in
42066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42067 *) ac_try_echo=$ac_try;;
42068esac
42069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42070$as_echo "$ac_try_echo") >&5
42071 (eval "$ac_compile") 2>conftest.er1
42072 ac_status=$?
42073 grep -v '^ *+' conftest.er1 >conftest.err
42074 rm -f conftest.er1
42075 cat conftest.err >&5
42076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42077 (exit $ac_status); } && {
42078 test -z "$ac_c_werror_flag" ||
42079 test ! -s conftest.err
42080 } && test -s conftest.$ac_objext; then
42081 ac_header_compiler=yes
42082else
42083 $as_echo "$as_me: failed program was:" >&5
42084sed 's/^/| /' conftest.$ac_ext >&5
42085
42086 ac_header_compiler=no
42087fi
42088
42089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42090{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42091$as_echo "$ac_header_compiler" >&6; }
42092
42093# Is the header present?
42094{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
42095$as_echo_n "checking tiffio.h presence... " >&6; }
42096cat >conftest.$ac_ext <<_ACEOF
42097/* confdefs.h. */
42098_ACEOF
42099cat confdefs.h >>conftest.$ac_ext
42100cat >>conftest.$ac_ext <<_ACEOF
42101/* end confdefs.h. */
42102#include <tiffio.h>
42103_ACEOF
42104if { (ac_try="$ac_cpp conftest.$ac_ext"
42105case "(($ac_try" in
42106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42107 *) ac_try_echo=$ac_try;;
42108esac
42109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42110$as_echo "$ac_try_echo") >&5
42111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42112 ac_status=$?
42113 grep -v '^ *+' conftest.er1 >conftest.err
42114 rm -f conftest.er1
42115 cat conftest.err >&5
42116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42117 (exit $ac_status); } >/dev/null && {
42118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42119 test ! -s conftest.err
42120 }; then
42121 ac_header_preproc=yes
42122else
42123 $as_echo "$as_me: failed program was:" >&5
42124sed 's/^/| /' conftest.$ac_ext >&5
42125
42126 ac_header_preproc=no
42127fi
42128
42129rm -f conftest.err conftest.$ac_ext
42130{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42131$as_echo "$ac_header_preproc" >&6; }
42132
42133# So? What about this header?
42134case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42135 yes:no: )
42136 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
42137$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42138 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
42139$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
42140 ac_header_preproc=yes
42141 ;;
42142 no:yes:* )
42143 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
42144$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
42145 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
42146$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
42147 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
42148$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
42149 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
42150$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
42151 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
42152$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
42153 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
42154$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
42155 ( cat <<\_ASBOX
42156## ----------------------------------------- ##
42157## Report this to http://www.imagemagick.org ##
42158## ----------------------------------------- ##
42159_ASBOX
42160 ) | sed "s/^/$as_me: WARNING: /" >&2
42161 ;;
42162esac
42163{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
42164$as_echo_n "checking for tiffio.h... " >&6; }
42165if test "${ac_cv_header_tiffio_h+set}" = set; then
42166 $as_echo_n "(cached) " >&6
42167else
42168 ac_cv_header_tiffio_h=$ac_header_preproc
42169fi
42170{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
42171$as_echo "$ac_cv_header_tiffio_h" >&6; }
42172
42173fi
42174if test "x$ac_cv_header_tiffio_h" = x""yes; then
42175 passed=`expr $passed + 1`
42176else
42177 failed=`expr $failed + 1`
42178fi
42179
42180
42181 { $as_echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
42182$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
42183if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
42184 $as_echo_n "(cached) " >&6
42185else
42186 ac_check_lib_save_LIBS=$LIBS
42187LIBS="-ltiff $LIBS"
42188cat >conftest.$ac_ext <<_ACEOF
42189/* confdefs.h. */
42190_ACEOF
42191cat confdefs.h >>conftest.$ac_ext
42192cat >>conftest.$ac_ext <<_ACEOF
42193/* end confdefs.h. */
42194
42195/* Override any GCC internal prototype to avoid an error.
42196 Use char because int might match the return type of a GCC
42197 builtin and then its argument prototype would still apply. */
42198#ifdef __cplusplus
42199extern "C"
42200#endif
42201char TIFFOpen ();
42202int
42203main ()
42204{
42205return TIFFOpen ();
42206 ;
42207 return 0;
42208}
42209_ACEOF
42210rm -f conftest.$ac_objext conftest$ac_exeext
42211if { (ac_try="$ac_link"
42212case "(($ac_try" in
42213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42214 *) ac_try_echo=$ac_try;;
42215esac
42216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42217$as_echo "$ac_try_echo") >&5
42218 (eval "$ac_link") 2>conftest.er1
42219 ac_status=$?
42220 grep -v '^ *+' conftest.er1 >conftest.err
42221 rm -f conftest.er1
42222 cat conftest.err >&5
42223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42224 (exit $ac_status); } && {
42225 test -z "$ac_c_werror_flag" ||
42226 test ! -s conftest.err
42227 } && test -s conftest$ac_exeext && {
42228 test "$cross_compiling" = yes ||
42229 $as_test_x conftest$ac_exeext
42230 }; then
42231 ac_cv_lib_tiff_TIFFOpen=yes
42232else
42233 $as_echo "$as_me: failed program was:" >&5
42234sed 's/^/| /' conftest.$ac_ext >&5
42235
42236 ac_cv_lib_tiff_TIFFOpen=no
42237fi
42238
42239rm -rf conftest.dSYM
42240rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42241 conftest$ac_exeext conftest.$ac_ext
42242LIBS=$ac_check_lib_save_LIBS
42243fi
42244{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
42245$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
42246if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then
42247 passed=`expr $passed + 1`
42248else
42249 failed=`expr $failed + 1`
42250fi
42251
42252 { $as_echo "$as_me:$LINENO: checking for TIFFClientOpen in -ltiff" >&5
42253$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
42254if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then
42255 $as_echo_n "(cached) " >&6
42256else
42257 ac_check_lib_save_LIBS=$LIBS
42258LIBS="-ltiff $LIBS"
42259cat >conftest.$ac_ext <<_ACEOF
42260/* confdefs.h. */
42261_ACEOF
42262cat confdefs.h >>conftest.$ac_ext
42263cat >>conftest.$ac_ext <<_ACEOF
42264/* end confdefs.h. */
42265
42266/* Override any GCC internal prototype to avoid an error.
42267 Use char because int might match the return type of a GCC
42268 builtin and then its argument prototype would still apply. */
42269#ifdef __cplusplus
42270extern "C"
42271#endif
42272char TIFFClientOpen ();
42273int
42274main ()
42275{
42276return TIFFClientOpen ();
42277 ;
42278 return 0;
42279}
42280_ACEOF
42281rm -f conftest.$ac_objext conftest$ac_exeext
42282if { (ac_try="$ac_link"
42283case "(($ac_try" in
42284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42285 *) ac_try_echo=$ac_try;;
42286esac
42287eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42288$as_echo "$ac_try_echo") >&5
42289 (eval "$ac_link") 2>conftest.er1
42290 ac_status=$?
42291 grep -v '^ *+' conftest.er1 >conftest.err
42292 rm -f conftest.er1
42293 cat conftest.err >&5
42294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42295 (exit $ac_status); } && {
42296 test -z "$ac_c_werror_flag" ||
42297 test ! -s conftest.err
42298 } && test -s conftest$ac_exeext && {
42299 test "$cross_compiling" = yes ||
42300 $as_test_x conftest$ac_exeext
42301 }; then
42302 ac_cv_lib_tiff_TIFFClientOpen=yes
42303else
42304 $as_echo "$as_me: failed program was:" >&5
42305sed 's/^/| /' conftest.$ac_ext >&5
42306
42307 ac_cv_lib_tiff_TIFFClientOpen=no
42308fi
42309
42310rm -rf conftest.dSYM
42311rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42312 conftest$ac_exeext conftest.$ac_ext
42313LIBS=$ac_check_lib_save_LIBS
42314fi
42315{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
42316$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
42317if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then
42318 passed=`expr $passed + 1`
42319else
42320 failed=`expr $failed + 1`
42321fi
42322
42323 { $as_echo "$as_me:$LINENO: checking for TIFFIsByteSwapped in -ltiff" >&5
42324$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
42325if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then
42326 $as_echo_n "(cached) " >&6
42327else
42328 ac_check_lib_save_LIBS=$LIBS
42329LIBS="-ltiff $LIBS"
42330cat >conftest.$ac_ext <<_ACEOF
42331/* confdefs.h. */
42332_ACEOF
42333cat confdefs.h >>conftest.$ac_ext
42334cat >>conftest.$ac_ext <<_ACEOF
42335/* end confdefs.h. */
42336
42337/* Override any GCC internal prototype to avoid an error.
42338 Use char because int might match the return type of a GCC
42339 builtin and then its argument prototype would still apply. */
42340#ifdef __cplusplus
42341extern "C"
42342#endif
42343char TIFFIsByteSwapped ();
42344int
42345main ()
42346{
42347return TIFFIsByteSwapped ();
42348 ;
42349 return 0;
42350}
42351_ACEOF
42352rm -f conftest.$ac_objext conftest$ac_exeext
42353if { (ac_try="$ac_link"
42354case "(($ac_try" in
42355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42356 *) ac_try_echo=$ac_try;;
42357esac
42358eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42359$as_echo "$ac_try_echo") >&5
42360 (eval "$ac_link") 2>conftest.er1
42361 ac_status=$?
42362 grep -v '^ *+' conftest.er1 >conftest.err
42363 rm -f conftest.er1
42364 cat conftest.err >&5
42365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42366 (exit $ac_status); } && {
42367 test -z "$ac_c_werror_flag" ||
42368 test ! -s conftest.err
42369 } && test -s conftest$ac_exeext && {
42370 test "$cross_compiling" = yes ||
42371 $as_test_x conftest$ac_exeext
42372 }; then
42373 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
42374else
42375 $as_echo "$as_me: failed program was:" >&5
42376sed 's/^/| /' conftest.$ac_ext >&5
42377
42378 ac_cv_lib_tiff_TIFFIsByteSwapped=no
42379fi
42380
42381rm -rf conftest.dSYM
42382rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42383 conftest$ac_exeext conftest.$ac_ext
42384LIBS=$ac_check_lib_save_LIBS
42385fi
42386{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
42387$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
42388if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then
42389 passed=`expr $passed + 1`
42390else
42391 failed=`expr $failed + 1`
42392fi
42393
42394 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBATile in -ltiff" >&5
42395$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
42396if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then
42397 $as_echo_n "(cached) " >&6
42398else
42399 ac_check_lib_save_LIBS=$LIBS
42400LIBS="-ltiff $LIBS"
42401cat >conftest.$ac_ext <<_ACEOF
42402/* confdefs.h. */
42403_ACEOF
42404cat confdefs.h >>conftest.$ac_ext
42405cat >>conftest.$ac_ext <<_ACEOF
42406/* end confdefs.h. */
42407
42408/* Override any GCC internal prototype to avoid an error.
42409 Use char because int might match the return type of a GCC
42410 builtin and then its argument prototype would still apply. */
42411#ifdef __cplusplus
42412extern "C"
42413#endif
42414char TIFFReadRGBATile ();
42415int
42416main ()
42417{
42418return TIFFReadRGBATile ();
42419 ;
42420 return 0;
42421}
42422_ACEOF
42423rm -f conftest.$ac_objext conftest$ac_exeext
42424if { (ac_try="$ac_link"
42425case "(($ac_try" in
42426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42427 *) ac_try_echo=$ac_try;;
42428esac
42429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42430$as_echo "$ac_try_echo") >&5
42431 (eval "$ac_link") 2>conftest.er1
42432 ac_status=$?
42433 grep -v '^ *+' conftest.er1 >conftest.err
42434 rm -f conftest.er1
42435 cat conftest.err >&5
42436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42437 (exit $ac_status); } && {
42438 test -z "$ac_c_werror_flag" ||
42439 test ! -s conftest.err
42440 } && test -s conftest$ac_exeext && {
42441 test "$cross_compiling" = yes ||
42442 $as_test_x conftest$ac_exeext
42443 }; then
42444 ac_cv_lib_tiff_TIFFReadRGBATile=yes
42445else
42446 $as_echo "$as_me: failed program was:" >&5
42447sed 's/^/| /' conftest.$ac_ext >&5
42448
42449 ac_cv_lib_tiff_TIFFReadRGBATile=no
42450fi
42451
42452rm -rf conftest.dSYM
42453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42454 conftest$ac_exeext conftest.$ac_ext
42455LIBS=$ac_check_lib_save_LIBS
42456fi
42457{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
42458$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
42459if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then
42460 passed=`expr $passed + 1`
42461else
42462 failed=`expr $failed + 1`
42463fi
42464
42465 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBAStrip in -ltiff" >&5
42466$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
42467if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then
42468 $as_echo_n "(cached) " >&6
42469else
42470 ac_check_lib_save_LIBS=$LIBS
42471LIBS="-ltiff $LIBS"
42472cat >conftest.$ac_ext <<_ACEOF
42473/* confdefs.h. */
42474_ACEOF
42475cat confdefs.h >>conftest.$ac_ext
42476cat >>conftest.$ac_ext <<_ACEOF
42477/* end confdefs.h. */
42478
42479/* Override any GCC internal prototype to avoid an error.
42480 Use char because int might match the return type of a GCC
42481 builtin and then its argument prototype would still apply. */
42482#ifdef __cplusplus
42483extern "C"
42484#endif
42485char TIFFReadRGBAStrip ();
42486int
42487main ()
42488{
42489return TIFFReadRGBAStrip ();
42490 ;
42491 return 0;
42492}
42493_ACEOF
42494rm -f conftest.$ac_objext conftest$ac_exeext
42495if { (ac_try="$ac_link"
42496case "(($ac_try" in
42497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42498 *) ac_try_echo=$ac_try;;
42499esac
42500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42501$as_echo "$ac_try_echo") >&5
42502 (eval "$ac_link") 2>conftest.er1
42503 ac_status=$?
42504 grep -v '^ *+' conftest.er1 >conftest.err
42505 rm -f conftest.er1
42506 cat conftest.err >&5
42507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42508 (exit $ac_status); } && {
42509 test -z "$ac_c_werror_flag" ||
42510 test ! -s conftest.err
42511 } && test -s conftest$ac_exeext && {
42512 test "$cross_compiling" = yes ||
42513 $as_test_x conftest$ac_exeext
42514 }; then
42515 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
42516else
42517 $as_echo "$as_me: failed program was:" >&5
42518sed 's/^/| /' conftest.$ac_ext >&5
42519
42520 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
42521fi
42522
42523rm -rf conftest.dSYM
42524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42525 conftest$ac_exeext conftest.$ac_ext
42526LIBS=$ac_check_lib_save_LIBS
42527fi
42528{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
42529$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
42530if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then
42531 passed=`expr $passed + 1`
42532else
42533 failed=`expr $failed + 1`
42534fi
42535
42536 { $as_echo "$as_me:$LINENO: checking if TIFF package is complete" >&5
42537$as_echo_n "checking if TIFF package is complete... " >&6; }
42538 if test $passed -gt 0; then
42539 if test $failed -gt 0; then
42540 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
42541$as_echo "no -- some components failed test" >&6; }
42542 have_tiff='no (failed tests)'
42543 else
42544 TIFF_LIBS='-ltiff'
42545 LIBS="$TIFF_LIBS $LIBS"
42546
42547cat >>confdefs.h <<\_ACEOF
42548#define TIFF_DELEGATE 1
42549_ACEOF
42550
42551 { $as_echo "$as_me:$LINENO: result: yes" >&5
42552$as_echo "yes" >&6; }
42553 have_tiff='yes'
42554
42555for ac_header in tiffconf.h
42556do
42557as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
42558if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42559 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42560$as_echo_n "checking for $ac_header... " >&6; }
42561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42562 $as_echo_n "(cached) " >&6
42563fi
42564ac_res=`eval 'as_val=${'$as_ac_Header'}
42565 $as_echo "$as_val"'`
42566 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42567$as_echo "$ac_res" >&6; }
42568else
42569 # Is the header compilable?
42570{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
42571$as_echo_n "checking $ac_header usability... " >&6; }
42572cat >conftest.$ac_ext <<_ACEOF
42573/* confdefs.h. */
42574_ACEOF
42575cat confdefs.h >>conftest.$ac_ext
42576cat >>conftest.$ac_ext <<_ACEOF
42577/* end confdefs.h. */
42578$ac_includes_default
42579#include <$ac_header>
42580_ACEOF
42581rm -f conftest.$ac_objext
42582if { (ac_try="$ac_compile"
42583case "(($ac_try" in
42584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42585 *) ac_try_echo=$ac_try;;
42586esac
42587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42588$as_echo "$ac_try_echo") >&5
42589 (eval "$ac_compile") 2>conftest.er1
42590 ac_status=$?
42591 grep -v '^ *+' conftest.er1 >conftest.err
42592 rm -f conftest.er1
42593 cat conftest.err >&5
42594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42595 (exit $ac_status); } && {
42596 test -z "$ac_c_werror_flag" ||
42597 test ! -s conftest.err
42598 } && test -s conftest.$ac_objext; then
42599 ac_header_compiler=yes
42600else
42601 $as_echo "$as_me: failed program was:" >&5
42602sed 's/^/| /' conftest.$ac_ext >&5
42603
42604 ac_header_compiler=no
42605fi
42606
42607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42608{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42609$as_echo "$ac_header_compiler" >&6; }
42610
42611# Is the header present?
42612{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
42613$as_echo_n "checking $ac_header presence... " >&6; }
42614cat >conftest.$ac_ext <<_ACEOF
42615/* confdefs.h. */
42616_ACEOF
42617cat confdefs.h >>conftest.$ac_ext
42618cat >>conftest.$ac_ext <<_ACEOF
42619/* end confdefs.h. */
42620#include <$ac_header>
42621_ACEOF
42622if { (ac_try="$ac_cpp conftest.$ac_ext"
42623case "(($ac_try" in
42624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42625 *) ac_try_echo=$ac_try;;
42626esac
42627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42628$as_echo "$ac_try_echo") >&5
42629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42630 ac_status=$?
42631 grep -v '^ *+' conftest.er1 >conftest.err
42632 rm -f conftest.er1
42633 cat conftest.err >&5
42634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42635 (exit $ac_status); } >/dev/null && {
42636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42637 test ! -s conftest.err
42638 }; then
42639 ac_header_preproc=yes
42640else
42641 $as_echo "$as_me: failed program was:" >&5
42642sed 's/^/| /' conftest.$ac_ext >&5
42643
42644 ac_header_preproc=no
42645fi
42646
42647rm -f conftest.err conftest.$ac_ext
42648{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42649$as_echo "$ac_header_preproc" >&6; }
42650
42651# So? What about this header?
42652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42653 yes:no: )
42654 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
42655$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
42656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
42657$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
42658 ac_header_preproc=yes
42659 ;;
42660 no:yes:* )
42661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
42662$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
42663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
42664$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
42665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
42666$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
42667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
42668$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
42669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
42670$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
42671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
42672$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
42673 ( cat <<\_ASBOX
42674## ----------------------------------------- ##
42675## Report this to http://www.imagemagick.org ##
42676## ----------------------------------------- ##
42677_ASBOX
42678 ) | sed "s/^/$as_me: WARNING: /" >&2
42679 ;;
42680esac
42681{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
42682$as_echo_n "checking for $ac_header... " >&6; }
42683if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42684 $as_echo_n "(cached) " >&6
42685else
42686 eval "$as_ac_Header=\$ac_header_preproc"
42687fi
42688ac_res=`eval 'as_val=${'$as_ac_Header'}
42689 $as_echo "$as_val"'`
42690 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42691$as_echo "$ac_res" >&6; }
42692
42693fi
42694as_val=`eval 'as_val=${'$as_ac_Header'}
42695 $as_echo "$as_val"'`
42696 if test "x$as_val" = x""yes; then
42697 cat >>confdefs.h <<_ACEOF
42698#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
42699_ACEOF
42700
42701fi
42702
42703done
42704
42705
42706
42707
42708
42709
42710
42711
42712for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
42713 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
42714 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
42715do
42716as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42717{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42718$as_echo_n "checking for $ac_func... " >&6; }
42719if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42720 $as_echo_n "(cached) " >&6
42721else
42722 cat >conftest.$ac_ext <<_ACEOF
42723/* confdefs.h. */
42724_ACEOF
42725cat confdefs.h >>conftest.$ac_ext
42726cat >>conftest.$ac_ext <<_ACEOF
42727/* end confdefs.h. */
42728/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42729 For example, HP-UX 11i <limits.h> declares gettimeofday. */
42730#define $ac_func innocuous_$ac_func
42731
42732/* System header to define __stub macros and hopefully few prototypes,
42733 which can conflict with char $ac_func (); below.
42734 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42735 <limits.h> exists even on freestanding compilers. */
42736
42737#ifdef __STDC__
42738# include <limits.h>
42739#else
42740# include <assert.h>
42741#endif
42742
42743#undef $ac_func
42744
42745/* Override any GCC internal prototype to avoid an error.
42746 Use char because int might match the return type of a GCC
42747 builtin and then its argument prototype would still apply. */
42748#ifdef __cplusplus
42749extern "C"
42750#endif
42751char $ac_func ();
42752/* The GNU C library defines this for functions which it implements
42753 to always fail with ENOSYS. Some functions are actually named
42754 something starting with __ and the normal name is an alias. */
42755#if defined __stub_$ac_func || defined __stub___$ac_func
42756choke me
42757#endif
42758
42759int
42760main ()
42761{
42762return $ac_func ();
42763 ;
42764 return 0;
42765}
42766_ACEOF
42767rm -f conftest.$ac_objext conftest$ac_exeext
42768if { (ac_try="$ac_link"
42769case "(($ac_try" in
42770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42771 *) ac_try_echo=$ac_try;;
42772esac
42773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42774$as_echo "$ac_try_echo") >&5
42775 (eval "$ac_link") 2>conftest.er1
42776 ac_status=$?
42777 grep -v '^ *+' conftest.er1 >conftest.err
42778 rm -f conftest.er1
42779 cat conftest.err >&5
42780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42781 (exit $ac_status); } && {
42782 test -z "$ac_c_werror_flag" ||
42783 test ! -s conftest.err
42784 } && test -s conftest$ac_exeext && {
42785 test "$cross_compiling" = yes ||
42786 $as_test_x conftest$ac_exeext
42787 }; then
42788 eval "$as_ac_var=yes"
42789else
42790 $as_echo "$as_me: failed program was:" >&5
42791sed 's/^/| /' conftest.$ac_ext >&5
42792
42793 eval "$as_ac_var=no"
42794fi
42795
42796rm -rf conftest.dSYM
42797rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42798 conftest$ac_exeext conftest.$ac_ext
42799fi
42800ac_res=`eval 'as_val=${'$as_ac_var'}
42801 $as_echo "$as_val"'`
42802 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42803$as_echo "$ac_res" >&6; }
42804as_val=`eval 'as_val=${'$as_ac_var'}
42805 $as_echo "$as_val"'`
42806 if test "x$as_val" = x""yes; then
42807 cat >>confdefs.h <<_ACEOF
42808#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42809_ACEOF
42810
42811fi
42812done
42813
42814 fi
42815 else
42816 { $as_echo "$as_me:$LINENO: result: no" >&5
42817$as_echo "no" >&6; }
42818 fi
42819fi
42820 if test "$have_tiff" = 'yes'; then
42821 TIFF_DELEGATE_TRUE=
42822 TIFF_DELEGATE_FALSE='#'
42823else
42824 TIFF_DELEGATE_TRUE='#'
42825 TIFF_DELEGATE_FALSE=
42826fi
42827
42828
42829
42830
42831#
42832# Set Windows font directory.
42833#
42834
42835# Check whether --with-windows-font-dir was given.
42836if test "${with_windows_font_dir+set}" = set; then
42837 withval=$with_windows_font_dir; with_windows_font_dir=$withval
42838else
42839 with_windows_font_dir=''
42840fi
42841
42842if test "$with_windows_font_dir" != '' ; then
42843 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
42844fi
42845
42846
42847#
42848# Check for WMF delegate library.
42849#
42850
42851# Check whether --with-wmf was given.
42852if test "${with_wmf+set}" = set; then
42853 withval=$with_wmf; with_wmf=$withval
42854else
42855 with_wmf=$with_modules
42856fi
42857
42858
42859if test "$with_wmf" != 'yes'; then
42860 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
42861fi
42862
42863have_wmf='no'
42864WMF_LIBS=''
42865WMF_LIBS_DEPS=''
42866OLIBS="$LIBS"
42867if test "$with_wmf" != 'no'; then
42868 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
42869$as_echo "-------------------------------------------------------------" >&6; }
42870 { $as_echo "$as_me:$LINENO: checking for WMF" >&5
42871$as_echo_n "checking for WMF... " >&6; }
42872 { $as_echo "$as_me:$LINENO: result: " >&5
42873$as_echo "" >&6; }
42874 have_libwmf='no'
42875 have_libwmflite='no'
42876 have_libwmf_ipa_h='no'
42877
42878 { $as_echo "$as_me:$LINENO: checking for libwmf/ipa.h" >&5
42879$as_echo_n "checking for libwmf/ipa.h... " >&6; }
42880if test "${ac_cv_header_libwmf_ipa_h+set}" = set; then
42881 $as_echo_n "(cached) " >&6
42882else
42883 cat >conftest.$ac_ext <<_ACEOF
42884/* confdefs.h. */
42885_ACEOF
42886cat confdefs.h >>conftest.$ac_ext
42887cat >>conftest.$ac_ext <<_ACEOF
42888/* end confdefs.h. */
42889$FT2BUILD_H
42890
42891#include <libwmf/ipa.h>
42892_ACEOF
42893rm -f conftest.$ac_objext
42894if { (ac_try="$ac_compile"
42895case "(($ac_try" in
42896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42897 *) ac_try_echo=$ac_try;;
42898esac
42899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42900$as_echo "$ac_try_echo") >&5
42901 (eval "$ac_compile") 2>conftest.er1
42902 ac_status=$?
42903 grep -v '^ *+' conftest.er1 >conftest.err
42904 rm -f conftest.er1
42905 cat conftest.err >&5
42906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42907 (exit $ac_status); } && {
42908 test -z "$ac_c_werror_flag" ||
42909 test ! -s conftest.err
42910 } && test -s conftest.$ac_objext; then
42911 ac_cv_header_libwmf_ipa_h=yes
42912else
42913 $as_echo "$as_me: failed program was:" >&5
42914sed 's/^/| /' conftest.$ac_ext >&5
42915
42916 ac_cv_header_libwmf_ipa_h=no
42917fi
42918
42919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42920fi
42921{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libwmf_ipa_h" >&5
42922$as_echo "$ac_cv_header_libwmf_ipa_h" >&6; }
42923if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then
42924 have_libwmf_ipa_h='yes'
42925fi
42926
42927
42928 if test "$have_libwmf_ipa_h" = 'yes'; then
42929 { $as_echo "$as_me:$LINENO: checking for wmf_lite_create in -lwmflite" >&5
42930$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
42931if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then
42932 $as_echo_n "(cached) " >&6
42933else
42934 ac_check_lib_save_LIBS=$LIBS
42935LIBS="-lwmflite $LIBS"
42936cat >conftest.$ac_ext <<_ACEOF
42937/* confdefs.h. */
42938_ACEOF
42939cat confdefs.h >>conftest.$ac_ext
42940cat >>conftest.$ac_ext <<_ACEOF
42941/* end confdefs.h. */
42942
42943/* Override any GCC internal prototype to avoid an error.
42944 Use char because int might match the return type of a GCC
42945 builtin and then its argument prototype would still apply. */
42946#ifdef __cplusplus
42947extern "C"
42948#endif
42949char wmf_lite_create ();
42950int
42951main ()
42952{
42953return wmf_lite_create ();
42954 ;
42955 return 0;
42956}
42957_ACEOF
42958rm -f conftest.$ac_objext conftest$ac_exeext
42959if { (ac_try="$ac_link"
42960case "(($ac_try" in
42961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42962 *) ac_try_echo=$ac_try;;
42963esac
42964eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42965$as_echo "$ac_try_echo") >&5
42966 (eval "$ac_link") 2>conftest.er1
42967 ac_status=$?
42968 grep -v '^ *+' conftest.er1 >conftest.err
42969 rm -f conftest.er1
42970 cat conftest.err >&5
42971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42972 (exit $ac_status); } && {
42973 test -z "$ac_c_werror_flag" ||
42974 test ! -s conftest.err
42975 } && test -s conftest$ac_exeext && {
42976 test "$cross_compiling" = yes ||
42977 $as_test_x conftest$ac_exeext
42978 }; then
42979 ac_cv_lib_wmflite_wmf_lite_create=yes
42980else
42981 $as_echo "$as_me: failed program was:" >&5
42982sed 's/^/| /' conftest.$ac_ext >&5
42983
42984 ac_cv_lib_wmflite_wmf_lite_create=no
42985fi
42986
42987rm -rf conftest.dSYM
42988rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42989 conftest$ac_exeext conftest.$ac_ext
42990LIBS=$ac_check_lib_save_LIBS
42991fi
42992{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
42993$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
42994if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then
42995 have_libwmflite='yes'
42996fi
42997
42998 if test "$have_libwmflite" = 'yes'; then
42999
43000cat >>confdefs.h <<\_ACEOF
43001#define WMFLITE_DELEGATE 1
43002_ACEOF
43003
43004 WMF_LIBS='-lwmflite'
43005 LIBS="$WMF_LIBS $LIBS"
43006 have_wmf='yes'
43007 else
43008 WMF_LIBS_DEPS=''
43009 WMF_CONFIG_LIBS=`libwmf-config --libs`
43010 for lib in xml2 expat freetype jpeg png z; do
43011 testlib="-l${lib}"
43012 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
43013 done
43014 { $as_echo "$as_me:$LINENO: checking for wmf_api_create in -lwmf" >&5
43015$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
43016if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then
43017 $as_echo_n "(cached) " >&6
43018else
43019 ac_check_lib_save_LIBS=$LIBS
43020LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
43021cat >conftest.$ac_ext <<_ACEOF
43022/* confdefs.h. */
43023_ACEOF
43024cat confdefs.h >>conftest.$ac_ext
43025cat >>conftest.$ac_ext <<_ACEOF
43026/* end confdefs.h. */
43027
43028/* Override any GCC internal prototype to avoid an error.
43029 Use char because int might match the return type of a GCC
43030 builtin and then its argument prototype would still apply. */
43031#ifdef __cplusplus
43032extern "C"
43033#endif
43034char wmf_api_create ();
43035int
43036main ()
43037{
43038return wmf_api_create ();
43039 ;
43040 return 0;
43041}
43042_ACEOF
43043rm -f conftest.$ac_objext conftest$ac_exeext
43044if { (ac_try="$ac_link"
43045case "(($ac_try" in
43046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43047 *) ac_try_echo=$ac_try;;
43048esac
43049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43050$as_echo "$ac_try_echo") >&5
43051 (eval "$ac_link") 2>conftest.er1
43052 ac_status=$?
43053 grep -v '^ *+' conftest.er1 >conftest.err
43054 rm -f conftest.er1
43055 cat conftest.err >&5
43056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43057 (exit $ac_status); } && {
43058 test -z "$ac_c_werror_flag" ||
43059 test ! -s conftest.err
43060 } && test -s conftest$ac_exeext && {
43061 test "$cross_compiling" = yes ||
43062 $as_test_x conftest$ac_exeext
43063 }; then
43064 ac_cv_lib_wmf_wmf_api_create=yes
43065else
43066 $as_echo "$as_me: failed program was:" >&5
43067sed 's/^/| /' conftest.$ac_ext >&5
43068
43069 ac_cv_lib_wmf_wmf_api_create=no
43070fi
43071
43072rm -rf conftest.dSYM
43073rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43074 conftest$ac_exeext conftest.$ac_ext
43075LIBS=$ac_check_lib_save_LIBS
43076fi
43077{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmf_wmf_api_create" >&5
43078$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
43079if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then
43080 have_libwmf='yes'
43081fi
43082
43083 if test "$have_libwmf" = 'yes'; then
43084
43085cat >>confdefs.h <<\_ACEOF
43086#define WMF_DELEGATE 1
43087_ACEOF
43088
43089 WMF_LIBS='-lwmf'
43090 LIBS="$WMF_LIBS $LIBS"
43091 have_wmf='yes'
43092 else
43093 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
43094$as_echo "no -- some components failed test" >&6; }
43095 have_wmf='no (failed tests)'
43096 have_wmflite='no (failed tests)'
43097 LIBS="$OLIBS"
43098 WMF_LIBS=''
43099 fi
43100 fi
43101 fi
43102 { $as_echo "$as_me:$LINENO: checking if WMF package is complete" >&5
43103$as_echo_n "checking if WMF package is complete... " >&6; }
43104 if test "$have_wmf" = 'yes'; then
43105 { $as_echo "$as_me:$LINENO: result: yes" >&5
43106$as_echo "yes" >&6; }
43107 else
43108 { $as_echo "$as_me:$LINENO: result: no" >&5
43109$as_echo "no" >&6; }
43110 fi
43111fi
43112 if test "$have_wmf" = 'yes'; then
43113 WMF_DELEGATE_TRUE=
43114 WMF_DELEGATE_FALSE='#'
43115else
43116 WMF_DELEGATE_TRUE='#'
43117 WMF_DELEGATE_FALSE=
43118fi
43119
43120
43121
43122
43123
43124#
43125# Check for XML delegate library.
43126#
43127
43128# Check whether --with-xml was given.
43129if test "${with_xml+set}" = set; then
43130 withval=$with_xml; with_xml=$withval
43131else
43132 with_xml=$have_x
43133fi
43134
43135
43136if test "$with_xml" != 'yes' ; then
43137 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
43138fi
43139
43140have_xml='no'
43141XML_LIBS=''
43142if test "$with_xml" != 'no'; then
43143 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
43144$as_echo "-------------------------------------------------------------" >&6; }
43145 { $as_echo "$as_me:$LINENO: checking for XML" >&5
43146$as_echo_n "checking for XML... " >&6; }
43147 { $as_echo "$as_me:$LINENO: result: " >&5
43148$as_echo "" >&6; }
43149 PERSIST_LDFLAGS=$LDFLAGS
43150 PERSIST_CPPFLAGS=$CPPFLAGS
43151 xml2_config=''
43152 for ac_prog in xml2-config
43153do
43154 # Extract the first word of "$ac_prog", so it can be a program name with args.
43155set dummy $ac_prog; ac_word=$2
43156{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43157$as_echo_n "checking for $ac_word... " >&6; }
43158if test "${ac_cv_prog_xml2_config+set}" = set; then
43159 $as_echo_n "(cached) " >&6
43160else
43161 if test -n "$xml2_config"; then
43162 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
43163else
43164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43165for as_dir in $PATH
43166do
43167 IFS=$as_save_IFS
43168 test -z "$as_dir" && as_dir=.
43169 for ac_exec_ext in '' $ac_executable_extensions; do
43170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43171 ac_cv_prog_xml2_config="$ac_prog"
43172 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43173 break 2
43174 fi
43175done
43176done
43177IFS=$as_save_IFS
43178
43179fi
43180fi
43181xml2_config=$ac_cv_prog_xml2_config
43182if test -n "$xml2_config"; then
43183 { $as_echo "$as_me:$LINENO: result: $xml2_config" >&5
43184$as_echo "$xml2_config" >&6; }
43185else
43186 { $as_echo "$as_me:$LINENO: result: no" >&5
43187$as_echo "no" >&6; }
43188fi
43189
43190
43191 test -n "$xml2_config" && break
43192done
43193 if test -n "$xml2_config"; then
43194 # Debian installs libxml headers under /usr/include/libxml2/libxml with
43195 # the shared library installed under /usr/lib, whereas the package
43196 # installs itself under $prefix/libxml and $prefix/lib.
43197 xml2_prefix=`xml2-config --prefix`
43198 if test -d "${xml2_prefix}/include/libxml2"; then
43199 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
43200 fi
43201 if test "${xml2_prefix}" != '/usr'; then
43202 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
43203 fi
43204 fi
43205 failed=0
43206 passed=0
43207 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43208 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
43209$as_echo_n "checking for libxml/parser.h... " >&6; }
43210if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43211 $as_echo_n "(cached) " >&6
43212fi
43213{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
43214$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
43215else
43216 # Is the header compilable?
43217{ $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
43218$as_echo_n "checking libxml/parser.h usability... " >&6; }
43219cat >conftest.$ac_ext <<_ACEOF
43220/* confdefs.h. */
43221_ACEOF
43222cat confdefs.h >>conftest.$ac_ext
43223cat >>conftest.$ac_ext <<_ACEOF
43224/* end confdefs.h. */
43225$ac_includes_default
43226#include <libxml/parser.h>
43227_ACEOF
43228rm -f conftest.$ac_objext
43229if { (ac_try="$ac_compile"
43230case "(($ac_try" in
43231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43232 *) ac_try_echo=$ac_try;;
43233esac
43234eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43235$as_echo "$ac_try_echo") >&5
43236 (eval "$ac_compile") 2>conftest.er1
43237 ac_status=$?
43238 grep -v '^ *+' conftest.er1 >conftest.err
43239 rm -f conftest.er1
43240 cat conftest.err >&5
43241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43242 (exit $ac_status); } && {
43243 test -z "$ac_c_werror_flag" ||
43244 test ! -s conftest.err
43245 } && test -s conftest.$ac_objext; then
43246 ac_header_compiler=yes
43247else
43248 $as_echo "$as_me: failed program was:" >&5
43249sed 's/^/| /' conftest.$ac_ext >&5
43250
43251 ac_header_compiler=no
43252fi
43253
43254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43255{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43256$as_echo "$ac_header_compiler" >&6; }
43257
43258# Is the header present?
43259{ $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
43260$as_echo_n "checking libxml/parser.h presence... " >&6; }
43261cat >conftest.$ac_ext <<_ACEOF
43262/* confdefs.h. */
43263_ACEOF
43264cat confdefs.h >>conftest.$ac_ext
43265cat >>conftest.$ac_ext <<_ACEOF
43266/* end confdefs.h. */
43267#include <libxml/parser.h>
43268_ACEOF
43269if { (ac_try="$ac_cpp conftest.$ac_ext"
43270case "(($ac_try" in
43271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43272 *) ac_try_echo=$ac_try;;
43273esac
43274eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43275$as_echo "$ac_try_echo") >&5
43276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43277 ac_status=$?
43278 grep -v '^ *+' conftest.er1 >conftest.err
43279 rm -f conftest.er1
43280 cat conftest.err >&5
43281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43282 (exit $ac_status); } >/dev/null && {
43283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43284 test ! -s conftest.err
43285 }; then
43286 ac_header_preproc=yes
43287else
43288 $as_echo "$as_me: failed program was:" >&5
43289sed 's/^/| /' conftest.$ac_ext >&5
43290
43291 ac_header_preproc=no
43292fi
43293
43294rm -f conftest.err conftest.$ac_ext
43295{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43296$as_echo "$ac_header_preproc" >&6; }
43297
43298# So? What about this header?
43299case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43300 yes:no: )
43301 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
43302$as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43303 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
43304$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
43305 ac_header_preproc=yes
43306 ;;
43307 no:yes:* )
43308 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
43309$as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
43310 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
43311$as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
43312 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
43313$as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
43314 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
43315$as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
43316 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
43317$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
43318 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
43319$as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
43320 ( cat <<\_ASBOX
43321## ----------------------------------------- ##
43322## Report this to http://www.imagemagick.org ##
43323## ----------------------------------------- ##
43324_ASBOX
43325 ) | sed "s/^/$as_me: WARNING: /" >&2
43326 ;;
43327esac
43328{ $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
43329$as_echo_n "checking for libxml/parser.h... " >&6; }
43330if test "${ac_cv_header_libxml_parser_h+set}" = set; then
43331 $as_echo_n "(cached) " >&6
43332else
43333 ac_cv_header_libxml_parser_h=$ac_header_preproc
43334fi
43335{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
43336$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
43337
43338fi
43339if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
43340 passed=`expr $passed + 1`
43341else
43342 failed=`expr $failed + 1`
43343fi
43344
43345
43346 { $as_echo "$as_me:$LINENO: checking for xmlParseExternalEntity in -lxml2" >&5
43347$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
43348if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then
43349 $as_echo_n "(cached) " >&6
43350else
43351 ac_check_lib_save_LIBS=$LIBS
43352LIBS="-lxml2 $LIBS"
43353cat >conftest.$ac_ext <<_ACEOF
43354/* confdefs.h. */
43355_ACEOF
43356cat confdefs.h >>conftest.$ac_ext
43357cat >>conftest.$ac_ext <<_ACEOF
43358/* end confdefs.h. */
43359
43360/* Override any GCC internal prototype to avoid an error.
43361 Use char because int might match the return type of a GCC
43362 builtin and then its argument prototype would still apply. */
43363#ifdef __cplusplus
43364extern "C"
43365#endif
43366char xmlParseExternalEntity ();
43367int
43368main ()
43369{
43370return xmlParseExternalEntity ();
43371 ;
43372 return 0;
43373}
43374_ACEOF
43375rm -f conftest.$ac_objext conftest$ac_exeext
43376if { (ac_try="$ac_link"
43377case "(($ac_try" in
43378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43379 *) ac_try_echo=$ac_try;;
43380esac
43381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43382$as_echo "$ac_try_echo") >&5
43383 (eval "$ac_link") 2>conftest.er1
43384 ac_status=$?
43385 grep -v '^ *+' conftest.er1 >conftest.err
43386 rm -f conftest.er1
43387 cat conftest.err >&5
43388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43389 (exit $ac_status); } && {
43390 test -z "$ac_c_werror_flag" ||
43391 test ! -s conftest.err
43392 } && test -s conftest$ac_exeext && {
43393 test "$cross_compiling" = yes ||
43394 $as_test_x conftest$ac_exeext
43395 }; then
43396 ac_cv_lib_xml2_xmlParseExternalEntity=yes
43397else
43398 $as_echo "$as_me: failed program was:" >&5
43399sed 's/^/| /' conftest.$ac_ext >&5
43400
43401 ac_cv_lib_xml2_xmlParseExternalEntity=no
43402fi
43403
43404rm -rf conftest.dSYM
43405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43406 conftest$ac_exeext conftest.$ac_ext
43407LIBS=$ac_check_lib_save_LIBS
43408fi
43409{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
43410$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
43411if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then
43412 passed=`expr $passed + 1`
43413else
43414 failed=`expr $failed + 1`
43415fi
43416
43417 { $as_echo "$as_me:$LINENO: checking if XML package is complete" >&5
43418$as_echo_n "checking if XML package is complete... " >&6; }
43419 if test $passed -gt 0; then
43420 if test $failed -gt 0; then
43421 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
43422$as_echo "no -- some components failed test" >&6; }
43423 have_xml='no (failed tests)'
43424 LDFLAGS="$PERSIST_LDFLAGS"
43425 CPPFLAGS="$PERSIST_CPPFLAGS"
43426 else
43427 XML_LIBS='-lxml2'
43428 LIBS="$XML_LIBS $LIBS"
43429
43430cat >>confdefs.h <<\_ACEOF
43431#define XML_DELEGATE 1
43432_ACEOF
43433
43434 { $as_echo "$as_me:$LINENO: result: yes" >&5
43435$as_echo "yes" >&6; }
43436 have_xml='yes'
43437 fi
43438 else
43439 { $as_echo "$as_me:$LINENO: result: no" >&5
43440$as_echo "no" >&6; }
43441 fi
43442fi
43443 if test "$have_xml" = 'yes'; then
43444 XML_DELEGATE_TRUE=
43445 XML_DELEGATE_FALSE='#'
43446else
43447 XML_DELEGATE_TRUE='#'
43448 XML_DELEGATE_FALSE=
43449fi
43450
43451
43452
43453
43454# Substitute compiler name to build/link PerlMagick
43455#
43456
43457
43458#
43459# Configure install Paths
43460#
43461
43462# Subdirectory under lib to place ImageMagick lib files
43463LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43464
43465cat >>confdefs.h <<_ACEOF
43466#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
43467_ACEOF
43468
43469
43470# Path to ImageMagick bin directory
43471EXECUTABLE_PATH="${BIN_DIR}"
43472DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
43473case "${build_os}" in
43474 mingw* )
43475 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
43476 ;;
43477esac
43478
43479cat >>confdefs.h <<_ACEOF
43480#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
43481_ACEOF
43482
43483
43484
43485# Path to ImageMagick lib
43486LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
43487DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
43488case "${build_os}" in
43489 mingw* )
43490 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
43491 ;;
43492esac
43493
43494cat >>confdefs.h <<_ACEOF
43495#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
43496_ACEOF
43497
43498
43499
43500# Subdirectory under lib to place ImageMagick configuration files
43501CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
43502
43503cat >>confdefs.h <<_ACEOF
43504#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
43505_ACEOF
43506
43507CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
43508DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
43509case "${build_os}" in
43510 mingw* )
43511 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
43512 ;;
43513esac
43514
43515cat >>confdefs.h <<_ACEOF
43516#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
43517_ACEOF
43518
43519
43520
43521#
43522# Subdirectory under lib to place ImageMagick coder module files
43523CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
43524
43525cat >>confdefs.h <<_ACEOF
43526#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
43527_ACEOF
43528
43529CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
43530DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
43531case "${build_os}" in
43532 mingw* )
43533 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
43534 ;;
43535esac
43536
43537cat >>confdefs.h <<_ACEOF
43538#define CODER_PATH "$DEFINE_CODER_PATH"
43539_ACEOF
43540
43541
43542
43543#
43544# Subdirectory under lib to place ImageMagick filter module files
43545FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
43546
43547cat >>confdefs.h <<_ACEOF
43548#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
43549_ACEOF
43550
43551FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
43552DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
43553case "${build_os}" in
43554 mingw* )
43555 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
43556 ;;
43557esac
43558
43559cat >>confdefs.h <<_ACEOF
43560#define FILTER_PATH "$DEFINE_FILTER_PATH"
43561_ACEOF
43562
43563
43564
43565#
43566# Path to ImageMagick documentation files
43567DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43568DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
43569DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
43570case "${build_os}" in
43571 mingw* )
43572 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
43573 ;;
43574esac
43575
43576cat >>confdefs.h <<_ACEOF
43577#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
43578_ACEOF
43579
43580
43581
43582#
43583# Path to ImageMagick share files
43584SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
43585SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
43586DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
43587case "${build_os}" in
43588 mingw* )
43589 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
43590 ;;
43591esac
43592
43593cat >>confdefs.h <<_ACEOF
43594#define SHARE_PATH "$DEFINE_SHARE_PATH"
43595_ACEOF
43596
43597
43598
43599# Subdirectory under share to place ImageMagick configuration files
43600SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
43601
43602cat >>confdefs.h <<_ACEOF
43603#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
43604_ACEOF
43605
43606SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
43607DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
43608case "${build_os}" in
43609 mingw* )
43610 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
43611 ;;
43612esac
43613
43614cat >>confdefs.h <<_ACEOF
43615#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
43616_ACEOF
43617
43618
43619
43620#
43621# program_transform_name is formed for use in a Makefile, so create a
43622# modified version for use in a shell script.
43623configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
43624
43625# Default delegate definitions
43626{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
43627$as_echo "-------------------------------------------------------------" >&6; }
43628{ $as_echo "$as_me:$LINENO: checking for ImageMagick delegate programs" >&5
43629$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
43630{ $as_echo "$as_me:$LINENO: result: " >&5
43631$as_echo "" >&6; }
43632AutotraceDecodeDelegateDefault='autotrace'
43633AVIDecodeDelegateDefault='mplayer'
cristy3d7f8062009-09-24 20:45:35 +000043634BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000043635BZIPDelegateDefault='bzip2'
43636BrowseDelegateDefault='xdg-open'
43637CGMDecodeDelegateDefault='ralcgm'
43638CatDelegateDefault='cat'
43639DNGDecodeDelegateDefault='ufraw-batch'
43640GVCDecodeDelegateDefault='dot'
43641DVIDecodeDelegateDefault='dvips'
43642EchoDelegateDefault='echo'
43643EditorDelegateDefault='xterm'
43644FIGDecodeDelegateDefault='fig2dev'
43645ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
43646DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
43647MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
43648GnuplotDecodeDelegateDefault='gnuplot'
43649HDRDecodeDelegateDefault='ra_pfm'
43650HPGLDecodeDelegateDefault='hp2xx'
43651HTMLDecodeDelegateDefault='html2ps'
43652ILBMDecodeDelegateDefault='ilbmtoppm'
43653ILBMEncodeDelegateDefault='ppmtoilbm'
43654LPDelegateDefault='lp'
43655LPRDelegateDefault='lpr'
43656LZWDecodeDelegateDefault='uncompress'
43657LZWEncodeDelegateDefault='compress'
43658LaunchDelegateDefault='gimp'
43659MANDelegateDefault='groff'
43660MPEGDecodeDelegateDefault='ffmpeg'
43661MPEGEncodeDelegateDefault='ffmpeg'
43662MVDelegateDefault='mv'
43663PCLDelegateDefault='pcl6'
43664PGPDecodeDelegateDefault='pgpv'
43665POVDelegateDefault='povray'
43666if test "$native_win32_build" = 'yes'; then
43667 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000043668elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000043669 PSDelegateDefault='gsc'
43670else
43671 PSDelegateDefault='gs'
43672fi
43673RLEEncodeDelegateDefault='rawtorle'
43674RMDelegateDefault='rm'
43675SCANDecodeDelegateDefault='scanimage'
43676TXTDelegateDefault='enscript'
43677WMFDecodeDelegateDefault='wmf2eps'
43678WWWDecodeDelegateDefault='curl'
43679XPSDelegateDefault='gxps'
43680ZipDelegateDefault='gzip'
43681
43682# Search for delegates
43683# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
43684set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
43685{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43686$as_echo_n "checking for $ac_word... " >&6; }
43687if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then
43688 $as_echo_n "(cached) " >&6
43689else
43690 case $AutotraceDecodeDelegate in
43691 [\\/]* | ?:[\\/]*)
43692 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
43693 ;;
43694 *)
43695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43696for as_dir in $PATH
43697do
43698 IFS=$as_save_IFS
43699 test -z "$as_dir" && as_dir=.
43700 for ac_exec_ext in '' $ac_executable_extensions; do
43701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43702 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43704 break 2
43705 fi
43706done
43707done
43708IFS=$as_save_IFS
43709
43710 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
43711 ;;
43712esac
43713fi
43714AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
43715if test -n "$AutotraceDecodeDelegate"; then
43716 { $as_echo "$as_me:$LINENO: result: $AutotraceDecodeDelegate" >&5
43717$as_echo "$AutotraceDecodeDelegate" >&6; }
43718else
43719 { $as_echo "$as_me:$LINENO: result: no" >&5
43720$as_echo "no" >&6; }
43721fi
43722
43723
43724# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
43725set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
43726{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43727$as_echo_n "checking for $ac_word... " >&6; }
43728if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then
43729 $as_echo_n "(cached) " >&6
43730else
43731 case $AVIDecodeDelegate in
43732 [\\/]* | ?:[\\/]*)
43733 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
43734 ;;
43735 *)
43736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43737for as_dir in $PATH
43738do
43739 IFS=$as_save_IFS
43740 test -z "$as_dir" && as_dir=.
43741 for ac_exec_ext in '' $ac_executable_extensions; do
43742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43743 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43744 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43745 break 2
43746 fi
43747done
43748done
43749IFS=$as_save_IFS
43750
43751 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
43752 ;;
43753esac
43754fi
43755AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
43756if test -n "$AVIDecodeDelegate"; then
43757 { $as_echo "$as_me:$LINENO: result: $AVIDecodeDelegate" >&5
43758$as_echo "$AVIDecodeDelegate" >&6; }
43759else
43760 { $as_echo "$as_me:$LINENO: result: no" >&5
43761$as_echo "no" >&6; }
43762fi
43763
43764
43765# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
43766set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
43767{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43768$as_echo_n "checking for $ac_word... " >&6; }
43769if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then
43770 $as_echo_n "(cached) " >&6
43771else
43772 case $BlenderDecodeDelegate in
43773 [\\/]* | ?:[\\/]*)
43774 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
43775 ;;
43776 *)
43777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43778for as_dir in $PATH
43779do
43780 IFS=$as_save_IFS
43781 test -z "$as_dir" && as_dir=.
43782 for ac_exec_ext in '' $ac_executable_extensions; do
43783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43784 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43785 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43786 break 2
43787 fi
43788done
43789done
43790IFS=$as_save_IFS
43791
43792 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
43793 ;;
43794esac
43795fi
43796BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
43797if test -n "$BlenderDecodeDelegate"; then
43798 { $as_echo "$as_me:$LINENO: result: $BlenderDecodeDelegate" >&5
43799$as_echo "$BlenderDecodeDelegate" >&6; }
43800else
43801 { $as_echo "$as_me:$LINENO: result: no" >&5
43802$as_echo "no" >&6; }
43803fi
43804
43805
43806# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
43807set dummy "$BZIPDelegateDefault"; ac_word=$2
43808{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43809$as_echo_n "checking for $ac_word... " >&6; }
43810if test "${ac_cv_path_BZIPDelegate+set}" = set; then
43811 $as_echo_n "(cached) " >&6
43812else
43813 case $BZIPDelegate in
43814 [\\/]* | ?:[\\/]*)
43815 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
43816 ;;
43817 *)
43818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43819for as_dir in $PATH
43820do
43821 IFS=$as_save_IFS
43822 test -z "$as_dir" && as_dir=.
43823 for ac_exec_ext in '' $ac_executable_extensions; do
43824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43825 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
43826 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43827 break 2
43828 fi
43829done
43830done
43831IFS=$as_save_IFS
43832
43833 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
43834 ;;
43835esac
43836fi
43837BZIPDelegate=$ac_cv_path_BZIPDelegate
43838if test -n "$BZIPDelegate"; then
43839 { $as_echo "$as_me:$LINENO: result: $BZIPDelegate" >&5
43840$as_echo "$BZIPDelegate" >&6; }
43841else
43842 { $as_echo "$as_me:$LINENO: result: no" >&5
43843$as_echo "no" >&6; }
43844fi
43845
43846
43847# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
43848set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
43849{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43850$as_echo_n "checking for $ac_word... " >&6; }
43851if test "${ac_cv_path_BrowseDelegate+set}" = set; then
43852 $as_echo_n "(cached) " >&6
43853else
43854 case $BrowseDelegate in
43855 [\\/]* | ?:[\\/]*)
43856 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
43857 ;;
43858 *)
43859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43860for as_dir in $PATH
43861do
43862 IFS=$as_save_IFS
43863 test -z "$as_dir" && as_dir=.
43864 for ac_exec_ext in '' $ac_executable_extensions; do
43865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43866 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
43867 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43868 break 2
43869 fi
43870done
43871done
43872IFS=$as_save_IFS
43873
43874 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
43875 ;;
43876esac
43877fi
43878BrowseDelegate=$ac_cv_path_BrowseDelegate
43879if test -n "$BrowseDelegate"; then
43880 { $as_echo "$as_me:$LINENO: result: $BrowseDelegate" >&5
43881$as_echo "$BrowseDelegate" >&6; }
43882else
43883 { $as_echo "$as_me:$LINENO: result: no" >&5
43884$as_echo "no" >&6; }
43885fi
43886
43887
43888# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
43889set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
43890{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43891$as_echo_n "checking for $ac_word... " >&6; }
43892if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then
43893 $as_echo_n "(cached) " >&6
43894else
43895 case $CGMDecodeDelegate in
43896 [\\/]* | ?:[\\/]*)
43897 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
43898 ;;
43899 *)
43900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43901for as_dir in $PATH
43902do
43903 IFS=$as_save_IFS
43904 test -z "$as_dir" && as_dir=.
43905 for ac_exec_ext in '' $ac_executable_extensions; do
43906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43907 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43908 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43909 break 2
43910 fi
43911done
43912done
43913IFS=$as_save_IFS
43914
43915 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
43916 ;;
43917esac
43918fi
43919CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
43920if test -n "$CGMDecodeDelegate"; then
43921 { $as_echo "$as_me:$LINENO: result: $CGMDecodeDelegate" >&5
43922$as_echo "$CGMDecodeDelegate" >&6; }
43923else
43924 { $as_echo "$as_me:$LINENO: result: no" >&5
43925$as_echo "no" >&6; }
43926fi
43927
43928
43929# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
43930set dummy "$CatDelegateDefault"; ac_word=$2
43931{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43932$as_echo_n "checking for $ac_word... " >&6; }
43933if test "${ac_cv_path_CatDelegate+set}" = set; then
43934 $as_echo_n "(cached) " >&6
43935else
43936 case $CatDelegate in
43937 [\\/]* | ?:[\\/]*)
43938 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
43939 ;;
43940 *)
43941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43942for as_dir in $PATH
43943do
43944 IFS=$as_save_IFS
43945 test -z "$as_dir" && as_dir=.
43946 for ac_exec_ext in '' $ac_executable_extensions; do
43947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43948 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
43949 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43950 break 2
43951 fi
43952done
43953done
43954IFS=$as_save_IFS
43955
43956 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
43957 ;;
43958esac
43959fi
43960CatDelegate=$ac_cv_path_CatDelegate
43961if test -n "$CatDelegate"; then
43962 { $as_echo "$as_me:$LINENO: result: $CatDelegate" >&5
43963$as_echo "$CatDelegate" >&6; }
43964else
43965 { $as_echo "$as_me:$LINENO: result: no" >&5
43966$as_echo "no" >&6; }
43967fi
43968
43969
43970# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
43971set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
43972{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43973$as_echo_n "checking for $ac_word... " >&6; }
43974if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then
43975 $as_echo_n "(cached) " >&6
43976else
43977 case $DNGDecodeDelegate in
43978 [\\/]* | ?:[\\/]*)
43979 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
43980 ;;
43981 *)
43982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43983for as_dir in $PATH
43984do
43985 IFS=$as_save_IFS
43986 test -z "$as_dir" && as_dir=.
43987 for ac_exec_ext in '' $ac_executable_extensions; do
43988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43989 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43990 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43991 break 2
43992 fi
43993done
43994done
43995IFS=$as_save_IFS
43996
43997 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
43998 ;;
43999esac
44000fi
44001DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
44002if test -n "$DNGDecodeDelegate"; then
44003 { $as_echo "$as_me:$LINENO: result: $DNGDecodeDelegate" >&5
44004$as_echo "$DNGDecodeDelegate" >&6; }
44005else
44006 { $as_echo "$as_me:$LINENO: result: no" >&5
44007$as_echo "no" >&6; }
44008fi
44009
44010
44011# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
44012set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
44013{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44014$as_echo_n "checking for $ac_word... " >&6; }
44015if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then
44016 $as_echo_n "(cached) " >&6
44017else
44018 case $GVCDecodeDelegate in
44019 [\\/]* | ?:[\\/]*)
44020 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
44021 ;;
44022 *)
44023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44024for as_dir in $PATH
44025do
44026 IFS=$as_save_IFS
44027 test -z "$as_dir" && as_dir=.
44028 for ac_exec_ext in '' $ac_executable_extensions; do
44029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44030 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44031 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44032 break 2
44033 fi
44034done
44035done
44036IFS=$as_save_IFS
44037
44038 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
44039 ;;
44040esac
44041fi
44042GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
44043if test -n "$GVCDecodeDelegate"; then
44044 { $as_echo "$as_me:$LINENO: result: $GVCDecodeDelegate" >&5
44045$as_echo "$GVCDecodeDelegate" >&6; }
44046else
44047 { $as_echo "$as_me:$LINENO: result: no" >&5
44048$as_echo "no" >&6; }
44049fi
44050
44051
44052# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
44053set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
44054{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44055$as_echo_n "checking for $ac_word... " >&6; }
44056if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then
44057 $as_echo_n "(cached) " >&6
44058else
44059 case $DVIDecodeDelegate in
44060 [\\/]* | ?:[\\/]*)
44061 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
44062 ;;
44063 *)
44064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44065for as_dir in $PATH
44066do
44067 IFS=$as_save_IFS
44068 test -z "$as_dir" && as_dir=.
44069 for ac_exec_ext in '' $ac_executable_extensions; do
44070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44071 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44073 break 2
44074 fi
44075done
44076done
44077IFS=$as_save_IFS
44078
44079 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
44080 ;;
44081esac
44082fi
44083DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
44084if test -n "$DVIDecodeDelegate"; then
44085 { $as_echo "$as_me:$LINENO: result: $DVIDecodeDelegate" >&5
44086$as_echo "$DVIDecodeDelegate" >&6; }
44087else
44088 { $as_echo "$as_me:$LINENO: result: no" >&5
44089$as_echo "no" >&6; }
44090fi
44091
44092
44093# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
44094set dummy "$EchoDelegateDefault"; ac_word=$2
44095{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44096$as_echo_n "checking for $ac_word... " >&6; }
44097if test "${ac_cv_path_EchoDelegate+set}" = set; then
44098 $as_echo_n "(cached) " >&6
44099else
44100 case $EchoDelegate in
44101 [\\/]* | ?:[\\/]*)
44102 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
44103 ;;
44104 *)
44105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44106for as_dir in $PATH
44107do
44108 IFS=$as_save_IFS
44109 test -z "$as_dir" && as_dir=.
44110 for ac_exec_ext in '' $ac_executable_extensions; do
44111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44112 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
44113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44114 break 2
44115 fi
44116done
44117done
44118IFS=$as_save_IFS
44119
44120 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
44121 ;;
44122esac
44123fi
44124EchoDelegate=$ac_cv_path_EchoDelegate
44125if test -n "$EchoDelegate"; then
44126 { $as_echo "$as_me:$LINENO: result: $EchoDelegate" >&5
44127$as_echo "$EchoDelegate" >&6; }
44128else
44129 { $as_echo "$as_me:$LINENO: result: no" >&5
44130$as_echo "no" >&6; }
44131fi
44132
44133
44134# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
44135set dummy "$EditorDelegateDefault"; ac_word=$2
44136{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44137$as_echo_n "checking for $ac_word... " >&6; }
44138if test "${ac_cv_path_EditorDelegate+set}" = set; then
44139 $as_echo_n "(cached) " >&6
44140else
44141 case $EditorDelegate in
44142 [\\/]* | ?:[\\/]*)
44143 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
44144 ;;
44145 *)
44146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44147for as_dir in $PATH
44148do
44149 IFS=$as_save_IFS
44150 test -z "$as_dir" && as_dir=.
44151 for ac_exec_ext in '' $ac_executable_extensions; do
44152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44153 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
44154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44155 break 2
44156 fi
44157done
44158done
44159IFS=$as_save_IFS
44160
44161 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
44162 ;;
44163esac
44164fi
44165EditorDelegate=$ac_cv_path_EditorDelegate
44166if test -n "$EditorDelegate"; then
44167 { $as_echo "$as_me:$LINENO: result: $EditorDelegate" >&5
44168$as_echo "$EditorDelegate" >&6; }
44169else
44170 { $as_echo "$as_me:$LINENO: result: no" >&5
44171$as_echo "no" >&6; }
44172fi
44173
44174
44175# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
44176set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
44177{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44178$as_echo_n "checking for $ac_word... " >&6; }
44179if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then
44180 $as_echo_n "(cached) " >&6
44181else
44182 case $FIGDecodeDelegate in
44183 [\\/]* | ?:[\\/]*)
44184 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
44185 ;;
44186 *)
44187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44188for as_dir in $PATH
44189do
44190 IFS=$as_save_IFS
44191 test -z "$as_dir" && as_dir=.
44192 for ac_exec_ext in '' $ac_executable_extensions; do
44193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44194 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44196 break 2
44197 fi
44198done
44199done
44200IFS=$as_save_IFS
44201
44202 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
44203 ;;
44204esac
44205fi
44206FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
44207if test -n "$FIGDecodeDelegate"; then
44208 { $as_echo "$as_me:$LINENO: result: $FIGDecodeDelegate" >&5
44209$as_echo "$FIGDecodeDelegate" >&6; }
44210else
44211 { $as_echo "$as_me:$LINENO: result: no" >&5
44212$as_echo "no" >&6; }
44213fi
44214
44215
44216# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
44217set dummy "$ConvertDelegateDefault"; ac_word=$2
44218{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44219$as_echo_n "checking for $ac_word... " >&6; }
44220if test "${ac_cv_path_ConvertDelegate+set}" = set; then
44221 $as_echo_n "(cached) " >&6
44222else
44223 case $ConvertDelegate in
44224 [\\/]* | ?:[\\/]*)
44225 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
44226 ;;
44227 *)
44228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44229for as_dir in $PATH
44230do
44231 IFS=$as_save_IFS
44232 test -z "$as_dir" && as_dir=.
44233 for ac_exec_ext in '' $ac_executable_extensions; do
44234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44235 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
44236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44237 break 2
44238 fi
44239done
44240done
44241IFS=$as_save_IFS
44242
44243 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
44244 ;;
44245esac
44246fi
44247ConvertDelegate=$ac_cv_path_ConvertDelegate
44248if test -n "$ConvertDelegate"; then
44249 { $as_echo "$as_me:$LINENO: result: $ConvertDelegate" >&5
44250$as_echo "$ConvertDelegate" >&6; }
44251else
44252 { $as_echo "$as_me:$LINENO: result: no" >&5
44253$as_echo "no" >&6; }
44254fi
44255
44256
44257# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
44258set dummy "$DisplayDelegateDefault"; ac_word=$2
44259{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44260$as_echo_n "checking for $ac_word... " >&6; }
44261if test "${ac_cv_path_DisplayDelegate+set}" = set; then
44262 $as_echo_n "(cached) " >&6
44263else
44264 case $DisplayDelegate in
44265 [\\/]* | ?:[\\/]*)
44266 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
44267 ;;
44268 *)
44269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44270for as_dir in $PATH
44271do
44272 IFS=$as_save_IFS
44273 test -z "$as_dir" && as_dir=.
44274 for ac_exec_ext in '' $ac_executable_extensions; do
44275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44276 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
44277 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44278 break 2
44279 fi
44280done
44281done
44282IFS=$as_save_IFS
44283
44284 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
44285 ;;
44286esac
44287fi
44288DisplayDelegate=$ac_cv_path_DisplayDelegate
44289if test -n "$DisplayDelegate"; then
44290 { $as_echo "$as_me:$LINENO: result: $DisplayDelegate" >&5
44291$as_echo "$DisplayDelegate" >&6; }
44292else
44293 { $as_echo "$as_me:$LINENO: result: no" >&5
44294$as_echo "no" >&6; }
44295fi
44296
44297
44298# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
44299set dummy "$MogrifyDelegateDefault"; ac_word=$2
44300{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44301$as_echo_n "checking for $ac_word... " >&6; }
44302if test "${ac_cv_path_MogrifyDelegate+set}" = set; then
44303 $as_echo_n "(cached) " >&6
44304else
44305 case $MogrifyDelegate in
44306 [\\/]* | ?:[\\/]*)
44307 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
44308 ;;
44309 *)
44310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44311for as_dir in $PATH
44312do
44313 IFS=$as_save_IFS
44314 test -z "$as_dir" && as_dir=.
44315 for ac_exec_ext in '' $ac_executable_extensions; do
44316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44317 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
44318 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44319 break 2
44320 fi
44321done
44322done
44323IFS=$as_save_IFS
44324
44325 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
44326 ;;
44327esac
44328fi
44329MogrifyDelegate=$ac_cv_path_MogrifyDelegate
44330if test -n "$MogrifyDelegate"; then
44331 { $as_echo "$as_me:$LINENO: result: $MogrifyDelegate" >&5
44332$as_echo "$MogrifyDelegate" >&6; }
44333else
44334 { $as_echo "$as_me:$LINENO: result: no" >&5
44335$as_echo "no" >&6; }
44336fi
44337
44338
44339# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
44340set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
44341{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44342$as_echo_n "checking for $ac_word... " >&6; }
44343if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then
44344 $as_echo_n "(cached) " >&6
44345else
44346 case $GnuplotDecodeDelegate in
44347 [\\/]* | ?:[\\/]*)
44348 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
44349 ;;
44350 *)
44351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44352for as_dir in $PATH
44353do
44354 IFS=$as_save_IFS
44355 test -z "$as_dir" && as_dir=.
44356 for ac_exec_ext in '' $ac_executable_extensions; do
44357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44358 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44360 break 2
44361 fi
44362done
44363done
44364IFS=$as_save_IFS
44365
44366 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
44367 ;;
44368esac
44369fi
44370GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
44371if test -n "$GnuplotDecodeDelegate"; then
44372 { $as_echo "$as_me:$LINENO: result: $GnuplotDecodeDelegate" >&5
44373$as_echo "$GnuplotDecodeDelegate" >&6; }
44374else
44375 { $as_echo "$as_me:$LINENO: result: no" >&5
44376$as_echo "no" >&6; }
44377fi
44378
44379
44380# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
44381set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
44382{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44383$as_echo_n "checking for $ac_word... " >&6; }
44384if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then
44385 $as_echo_n "(cached) " >&6
44386else
44387 case $HDRDecodeDelegate in
44388 [\\/]* | ?:[\\/]*)
44389 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
44390 ;;
44391 *)
44392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44393for as_dir in $PATH
44394do
44395 IFS=$as_save_IFS
44396 test -z "$as_dir" && as_dir=.
44397 for ac_exec_ext in '' $ac_executable_extensions; do
44398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44399 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44400 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44401 break 2
44402 fi
44403done
44404done
44405IFS=$as_save_IFS
44406
44407 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
44408 ;;
44409esac
44410fi
44411HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
44412if test -n "$HDRDecodeDelegate"; then
44413 { $as_echo "$as_me:$LINENO: result: $HDRDecodeDelegate" >&5
44414$as_echo "$HDRDecodeDelegate" >&6; }
44415else
44416 { $as_echo "$as_me:$LINENO: result: no" >&5
44417$as_echo "no" >&6; }
44418fi
44419
44420
44421# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
44422set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
44423{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44424$as_echo_n "checking for $ac_word... " >&6; }
44425if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then
44426 $as_echo_n "(cached) " >&6
44427else
44428 case $HPGLDecodeDelegate in
44429 [\\/]* | ?:[\\/]*)
44430 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
44431 ;;
44432 *)
44433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44434for as_dir in $PATH
44435do
44436 IFS=$as_save_IFS
44437 test -z "$as_dir" && as_dir=.
44438 for ac_exec_ext in '' $ac_executable_extensions; do
44439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44440 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44441 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44442 break 2
44443 fi
44444done
44445done
44446IFS=$as_save_IFS
44447
44448 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
44449 ;;
44450esac
44451fi
44452HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
44453if test -n "$HPGLDecodeDelegate"; then
44454 { $as_echo "$as_me:$LINENO: result: $HPGLDecodeDelegate" >&5
44455$as_echo "$HPGLDecodeDelegate" >&6; }
44456else
44457 { $as_echo "$as_me:$LINENO: result: no" >&5
44458$as_echo "no" >&6; }
44459fi
44460
44461
44462# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
44463set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
44464{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44465$as_echo_n "checking for $ac_word... " >&6; }
44466if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then
44467 $as_echo_n "(cached) " >&6
44468else
44469 case $HTMLDecodeDelegate in
44470 [\\/]* | ?:[\\/]*)
44471 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
44472 ;;
44473 *)
44474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44475for as_dir in $PATH
44476do
44477 IFS=$as_save_IFS
44478 test -z "$as_dir" && as_dir=.
44479 for ac_exec_ext in '' $ac_executable_extensions; do
44480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44481 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44482 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44483 break 2
44484 fi
44485done
44486done
44487IFS=$as_save_IFS
44488
44489 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
44490 ;;
44491esac
44492fi
44493HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
44494if test -n "$HTMLDecodeDelegate"; then
44495 { $as_echo "$as_me:$LINENO: result: $HTMLDecodeDelegate" >&5
44496$as_echo "$HTMLDecodeDelegate" >&6; }
44497else
44498 { $as_echo "$as_me:$LINENO: result: no" >&5
44499$as_echo "no" >&6; }
44500fi
44501
44502
44503# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
44504set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
44505{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44506$as_echo_n "checking for $ac_word... " >&6; }
44507if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then
44508 $as_echo_n "(cached) " >&6
44509else
44510 case $ILBMDecodeDelegate in
44511 [\\/]* | ?:[\\/]*)
44512 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
44513 ;;
44514 *)
44515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44516for as_dir in $PATH
44517do
44518 IFS=$as_save_IFS
44519 test -z "$as_dir" && as_dir=.
44520 for ac_exec_ext in '' $ac_executable_extensions; do
44521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44522 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44523 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44524 break 2
44525 fi
44526done
44527done
44528IFS=$as_save_IFS
44529
44530 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
44531 ;;
44532esac
44533fi
44534ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
44535if test -n "$ILBMDecodeDelegate"; then
44536 { $as_echo "$as_me:$LINENO: result: $ILBMDecodeDelegate" >&5
44537$as_echo "$ILBMDecodeDelegate" >&6; }
44538else
44539 { $as_echo "$as_me:$LINENO: result: no" >&5
44540$as_echo "no" >&6; }
44541fi
44542
44543
44544# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
44545set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
44546{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44547$as_echo_n "checking for $ac_word... " >&6; }
44548if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then
44549 $as_echo_n "(cached) " >&6
44550else
44551 case $ILBMEncodeDelegate in
44552 [\\/]* | ?:[\\/]*)
44553 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
44554 ;;
44555 *)
44556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44557for as_dir in $PATH
44558do
44559 IFS=$as_save_IFS
44560 test -z "$as_dir" && as_dir=.
44561 for ac_exec_ext in '' $ac_executable_extensions; do
44562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44563 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44564 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44565 break 2
44566 fi
44567done
44568done
44569IFS=$as_save_IFS
44570
44571 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
44572 ;;
44573esac
44574fi
44575ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
44576if test -n "$ILBMEncodeDelegate"; then
44577 { $as_echo "$as_me:$LINENO: result: $ILBMEncodeDelegate" >&5
44578$as_echo "$ILBMEncodeDelegate" >&6; }
44579else
44580 { $as_echo "$as_me:$LINENO: result: no" >&5
44581$as_echo "no" >&6; }
44582fi
44583
44584
44585# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
44586set dummy "$LPDelegateDefault"; ac_word=$2
44587{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44588$as_echo_n "checking for $ac_word... " >&6; }
44589if test "${ac_cv_path_LPDelegate+set}" = set; then
44590 $as_echo_n "(cached) " >&6
44591else
44592 case $LPDelegate in
44593 [\\/]* | ?:[\\/]*)
44594 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
44595 ;;
44596 *)
44597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44598for as_dir in $PATH
44599do
44600 IFS=$as_save_IFS
44601 test -z "$as_dir" && as_dir=.
44602 for ac_exec_ext in '' $ac_executable_extensions; do
44603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44604 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
44605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44606 break 2
44607 fi
44608done
44609done
44610IFS=$as_save_IFS
44611
44612 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
44613 ;;
44614esac
44615fi
44616LPDelegate=$ac_cv_path_LPDelegate
44617if test -n "$LPDelegate"; then
44618 { $as_echo "$as_me:$LINENO: result: $LPDelegate" >&5
44619$as_echo "$LPDelegate" >&6; }
44620else
44621 { $as_echo "$as_me:$LINENO: result: no" >&5
44622$as_echo "no" >&6; }
44623fi
44624
44625
44626# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
44627set dummy "$LPRDelegateDefault"; ac_word=$2
44628{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44629$as_echo_n "checking for $ac_word... " >&6; }
44630if test "${ac_cv_path_LPRDelegate+set}" = set; then
44631 $as_echo_n "(cached) " >&6
44632else
44633 case $LPRDelegate in
44634 [\\/]* | ?:[\\/]*)
44635 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
44636 ;;
44637 *)
44638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44639for as_dir in $PATH
44640do
44641 IFS=$as_save_IFS
44642 test -z "$as_dir" && as_dir=.
44643 for ac_exec_ext in '' $ac_executable_extensions; do
44644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44645 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
44646 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44647 break 2
44648 fi
44649done
44650done
44651IFS=$as_save_IFS
44652
44653 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
44654 ;;
44655esac
44656fi
44657LPRDelegate=$ac_cv_path_LPRDelegate
44658if test -n "$LPRDelegate"; then
44659 { $as_echo "$as_me:$LINENO: result: $LPRDelegate" >&5
44660$as_echo "$LPRDelegate" >&6; }
44661else
44662 { $as_echo "$as_me:$LINENO: result: no" >&5
44663$as_echo "no" >&6; }
44664fi
44665
44666
44667# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
44668set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
44669{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44670$as_echo_n "checking for $ac_word... " >&6; }
44671if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then
44672 $as_echo_n "(cached) " >&6
44673else
44674 case $LZWDecodeDelegate in
44675 [\\/]* | ?:[\\/]*)
44676 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
44677 ;;
44678 *)
44679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44680for as_dir in $PATH
44681do
44682 IFS=$as_save_IFS
44683 test -z "$as_dir" && as_dir=.
44684 for ac_exec_ext in '' $ac_executable_extensions; do
44685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44686 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44687 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44688 break 2
44689 fi
44690done
44691done
44692IFS=$as_save_IFS
44693
44694 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
44695 ;;
44696esac
44697fi
44698LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
44699if test -n "$LZWDecodeDelegate"; then
44700 { $as_echo "$as_me:$LINENO: result: $LZWDecodeDelegate" >&5
44701$as_echo "$LZWDecodeDelegate" >&6; }
44702else
44703 { $as_echo "$as_me:$LINENO: result: no" >&5
44704$as_echo "no" >&6; }
44705fi
44706
44707
44708# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
44709set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
44710{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44711$as_echo_n "checking for $ac_word... " >&6; }
44712if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then
44713 $as_echo_n "(cached) " >&6
44714else
44715 case $LZWEncodeDelegate in
44716 [\\/]* | ?:[\\/]*)
44717 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
44718 ;;
44719 *)
44720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44721for as_dir in $PATH
44722do
44723 IFS=$as_save_IFS
44724 test -z "$as_dir" && as_dir=.
44725 for ac_exec_ext in '' $ac_executable_extensions; do
44726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44727 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44728 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44729 break 2
44730 fi
44731done
44732done
44733IFS=$as_save_IFS
44734
44735 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
44736 ;;
44737esac
44738fi
44739LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
44740if test -n "$LZWEncodeDelegate"; then
44741 { $as_echo "$as_me:$LINENO: result: $LZWEncodeDelegate" >&5
44742$as_echo "$LZWEncodeDelegate" >&6; }
44743else
44744 { $as_echo "$as_me:$LINENO: result: no" >&5
44745$as_echo "no" >&6; }
44746fi
44747
44748
44749# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
44750set dummy "$LaunchDelegateDefault"; ac_word=$2
44751{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44752$as_echo_n "checking for $ac_word... " >&6; }
44753if test "${ac_cv_path_LaunchDelegate+set}" = set; then
44754 $as_echo_n "(cached) " >&6
44755else
44756 case $LaunchDelegate in
44757 [\\/]* | ?:[\\/]*)
44758 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
44759 ;;
44760 *)
44761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44762for as_dir in $PATH
44763do
44764 IFS=$as_save_IFS
44765 test -z "$as_dir" && as_dir=.
44766 for ac_exec_ext in '' $ac_executable_extensions; do
44767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44768 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
44769 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44770 break 2
44771 fi
44772done
44773done
44774IFS=$as_save_IFS
44775
44776 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
44777 ;;
44778esac
44779fi
44780LaunchDelegate=$ac_cv_path_LaunchDelegate
44781if test -n "$LaunchDelegate"; then
44782 { $as_echo "$as_me:$LINENO: result: $LaunchDelegate" >&5
44783$as_echo "$LaunchDelegate" >&6; }
44784else
44785 { $as_echo "$as_me:$LINENO: result: no" >&5
44786$as_echo "no" >&6; }
44787fi
44788
44789
44790# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
44791set dummy "$MANDelegateDefault"; ac_word=$2
44792{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44793$as_echo_n "checking for $ac_word... " >&6; }
44794if test "${ac_cv_path_MANDelegate+set}" = set; then
44795 $as_echo_n "(cached) " >&6
44796else
44797 case $MANDelegate in
44798 [\\/]* | ?:[\\/]*)
44799 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
44800 ;;
44801 *)
44802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44803for as_dir in $PATH
44804do
44805 IFS=$as_save_IFS
44806 test -z "$as_dir" && as_dir=.
44807 for ac_exec_ext in '' $ac_executable_extensions; do
44808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44809 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
44810 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44811 break 2
44812 fi
44813done
44814done
44815IFS=$as_save_IFS
44816
44817 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
44818 ;;
44819esac
44820fi
44821MANDelegate=$ac_cv_path_MANDelegate
44822if test -n "$MANDelegate"; then
44823 { $as_echo "$as_me:$LINENO: result: $MANDelegate" >&5
44824$as_echo "$MANDelegate" >&6; }
44825else
44826 { $as_echo "$as_me:$LINENO: result: no" >&5
44827$as_echo "no" >&6; }
44828fi
44829
44830
44831# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
44832set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
44833{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44834$as_echo_n "checking for $ac_word... " >&6; }
44835if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then
44836 $as_echo_n "(cached) " >&6
44837else
44838 case $MPEGDecodeDelegate in
44839 [\\/]* | ?:[\\/]*)
44840 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
44841 ;;
44842 *)
44843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44844for as_dir in $PATH
44845do
44846 IFS=$as_save_IFS
44847 test -z "$as_dir" && as_dir=.
44848 for ac_exec_ext in '' $ac_executable_extensions; do
44849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44850 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44852 break 2
44853 fi
44854done
44855done
44856IFS=$as_save_IFS
44857
44858 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
44859 ;;
44860esac
44861fi
44862MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
44863if test -n "$MPEGDecodeDelegate"; then
44864 { $as_echo "$as_me:$LINENO: result: $MPEGDecodeDelegate" >&5
44865$as_echo "$MPEGDecodeDelegate" >&6; }
44866else
44867 { $as_echo "$as_me:$LINENO: result: no" >&5
44868$as_echo "no" >&6; }
44869fi
44870
44871
44872# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
44873set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
44874{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44875$as_echo_n "checking for $ac_word... " >&6; }
44876if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then
44877 $as_echo_n "(cached) " >&6
44878else
44879 case $MPEGEncodeDelegate in
44880 [\\/]* | ?:[\\/]*)
44881 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
44882 ;;
44883 *)
44884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44885for as_dir in $PATH
44886do
44887 IFS=$as_save_IFS
44888 test -z "$as_dir" && as_dir=.
44889 for ac_exec_ext in '' $ac_executable_extensions; do
44890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44891 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44892 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44893 break 2
44894 fi
44895done
44896done
44897IFS=$as_save_IFS
44898
44899 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
44900 ;;
44901esac
44902fi
44903MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
44904if test -n "$MPEGEncodeDelegate"; then
44905 { $as_echo "$as_me:$LINENO: result: $MPEGEncodeDelegate" >&5
44906$as_echo "$MPEGEncodeDelegate" >&6; }
44907else
44908 { $as_echo "$as_me:$LINENO: result: no" >&5
44909$as_echo "no" >&6; }
44910fi
44911
44912
44913# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
44914set dummy "$MVDelegateDefault"; ac_word=$2
44915{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44916$as_echo_n "checking for $ac_word... " >&6; }
44917if test "${ac_cv_path_MVDelegate+set}" = set; then
44918 $as_echo_n "(cached) " >&6
44919else
44920 case $MVDelegate in
44921 [\\/]* | ?:[\\/]*)
44922 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
44923 ;;
44924 *)
44925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44926for as_dir in $PATH
44927do
44928 IFS=$as_save_IFS
44929 test -z "$as_dir" && as_dir=.
44930 for ac_exec_ext in '' $ac_executable_extensions; do
44931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44932 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
44933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44934 break 2
44935 fi
44936done
44937done
44938IFS=$as_save_IFS
44939
44940 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
44941 ;;
44942esac
44943fi
44944MVDelegate=$ac_cv_path_MVDelegate
44945if test -n "$MVDelegate"; then
44946 { $as_echo "$as_me:$LINENO: result: $MVDelegate" >&5
44947$as_echo "$MVDelegate" >&6; }
44948else
44949 { $as_echo "$as_me:$LINENO: result: no" >&5
44950$as_echo "no" >&6; }
44951fi
44952
44953
44954# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
44955set dummy "$PCLDelegateDefault"; ac_word=$2
44956{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44957$as_echo_n "checking for $ac_word... " >&6; }
44958if test "${ac_cv_path_PCLDelegate+set}" = set; then
44959 $as_echo_n "(cached) " >&6
44960else
44961 case $PCLDelegate in
44962 [\\/]* | ?:[\\/]*)
44963 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
44964 ;;
44965 *)
44966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44967for as_dir in $PATH
44968do
44969 IFS=$as_save_IFS
44970 test -z "$as_dir" && as_dir=.
44971 for ac_exec_ext in '' $ac_executable_extensions; do
44972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44973 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
44974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44975 break 2
44976 fi
44977done
44978done
44979IFS=$as_save_IFS
44980
44981 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
44982 ;;
44983esac
44984fi
44985PCLDelegate=$ac_cv_path_PCLDelegate
44986if test -n "$PCLDelegate"; then
44987 { $as_echo "$as_me:$LINENO: result: $PCLDelegate" >&5
44988$as_echo "$PCLDelegate" >&6; }
44989else
44990 { $as_echo "$as_me:$LINENO: result: no" >&5
44991$as_echo "no" >&6; }
44992fi
44993
44994
44995# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
44996set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
44997{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44998$as_echo_n "checking for $ac_word... " >&6; }
44999if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then
45000 $as_echo_n "(cached) " >&6
45001else
45002 case $PGPDecodeDelegate in
45003 [\\/]* | ?:[\\/]*)
45004 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
45005 ;;
45006 *)
45007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45008for as_dir in $PATH
45009do
45010 IFS=$as_save_IFS
45011 test -z "$as_dir" && as_dir=.
45012 for ac_exec_ext in '' $ac_executable_extensions; do
45013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45014 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45016 break 2
45017 fi
45018done
45019done
45020IFS=$as_save_IFS
45021
45022 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
45023 ;;
45024esac
45025fi
45026PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
45027if test -n "$PGPDecodeDelegate"; then
45028 { $as_echo "$as_me:$LINENO: result: $PGPDecodeDelegate" >&5
45029$as_echo "$PGPDecodeDelegate" >&6; }
45030else
45031 { $as_echo "$as_me:$LINENO: result: no" >&5
45032$as_echo "no" >&6; }
45033fi
45034
45035
45036# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
45037set dummy "$POVDelegateDefault"; ac_word=$2
45038{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45039$as_echo_n "checking for $ac_word... " >&6; }
45040if test "${ac_cv_path_POVDelegate+set}" = set; then
45041 $as_echo_n "(cached) " >&6
45042else
45043 case $POVDelegate in
45044 [\\/]* | ?:[\\/]*)
45045 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
45046 ;;
45047 *)
45048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45049for as_dir in $PATH
45050do
45051 IFS=$as_save_IFS
45052 test -z "$as_dir" && as_dir=.
45053 for ac_exec_ext in '' $ac_executable_extensions; do
45054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45055 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
45056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45057 break 2
45058 fi
45059done
45060done
45061IFS=$as_save_IFS
45062
45063 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
45064 ;;
45065esac
45066fi
45067POVDelegate=$ac_cv_path_POVDelegate
45068if test -n "$POVDelegate"; then
45069 { $as_echo "$as_me:$LINENO: result: $POVDelegate" >&5
45070$as_echo "$POVDelegate" >&6; }
45071else
45072 { $as_echo "$as_me:$LINENO: result: no" >&5
45073$as_echo "no" >&6; }
45074fi
45075
45076
45077for ac_prog in gsx gsc "$PSDelegateDefault"
45078do
45079 # Extract the first word of "$ac_prog", so it can be a program name with args.
45080set dummy $ac_prog; ac_word=$2
45081{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45082$as_echo_n "checking for $ac_word... " >&6; }
45083if test "${ac_cv_path_PSDelegate+set}" = set; then
45084 $as_echo_n "(cached) " >&6
45085else
45086 case $PSDelegate in
45087 [\\/]* | ?:[\\/]*)
45088 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
45089 ;;
45090 *)
45091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45092for as_dir in $PATH
45093do
45094 IFS=$as_save_IFS
45095 test -z "$as_dir" && as_dir=.
45096 for ac_exec_ext in '' $ac_executable_extensions; do
45097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45098 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
45099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45100 break 2
45101 fi
45102done
45103done
45104IFS=$as_save_IFS
45105
45106 ;;
45107esac
45108fi
45109PSDelegate=$ac_cv_path_PSDelegate
45110if test -n "$PSDelegate"; then
45111 { $as_echo "$as_me:$LINENO: result: $PSDelegate" >&5
45112$as_echo "$PSDelegate" >&6; }
45113else
45114 { $as_echo "$as_me:$LINENO: result: no" >&5
45115$as_echo "no" >&6; }
45116fi
45117
45118
45119 test -n "$PSDelegate" && break
45120done
45121test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
45122
45123# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
45124set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
45125{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45126$as_echo_n "checking for $ac_word... " >&6; }
45127if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then
45128 $as_echo_n "(cached) " >&6
45129else
45130 case $RLEEncodeDelegate in
45131 [\\/]* | ?:[\\/]*)
45132 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
45133 ;;
45134 *)
45135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45136for as_dir in $PATH
45137do
45138 IFS=$as_save_IFS
45139 test -z "$as_dir" && as_dir=.
45140 for ac_exec_ext in '' $ac_executable_extensions; do
45141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45142 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45143 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45144 break 2
45145 fi
45146done
45147done
45148IFS=$as_save_IFS
45149
45150 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
45151 ;;
45152esac
45153fi
45154RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
45155if test -n "$RLEEncodeDelegate"; then
45156 { $as_echo "$as_me:$LINENO: result: $RLEEncodeDelegate" >&5
45157$as_echo "$RLEEncodeDelegate" >&6; }
45158else
45159 { $as_echo "$as_me:$LINENO: result: no" >&5
45160$as_echo "no" >&6; }
45161fi
45162
45163
45164# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
45165set dummy "$RMDelegateDefault"; ac_word=$2
45166{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45167$as_echo_n "checking for $ac_word... " >&6; }
45168if test "${ac_cv_path_RMDelegate+set}" = set; then
45169 $as_echo_n "(cached) " >&6
45170else
45171 case $RMDelegate in
45172 [\\/]* | ?:[\\/]*)
45173 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
45174 ;;
45175 *)
45176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45177for as_dir in $PATH
45178do
45179 IFS=$as_save_IFS
45180 test -z "$as_dir" && as_dir=.
45181 for ac_exec_ext in '' $ac_executable_extensions; do
45182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45183 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
45184 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45185 break 2
45186 fi
45187done
45188done
45189IFS=$as_save_IFS
45190
45191 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
45192 ;;
45193esac
45194fi
45195RMDelegate=$ac_cv_path_RMDelegate
45196if test -n "$RMDelegate"; then
45197 { $as_echo "$as_me:$LINENO: result: $RMDelegate" >&5
45198$as_echo "$RMDelegate" >&6; }
45199else
45200 { $as_echo "$as_me:$LINENO: result: no" >&5
45201$as_echo "no" >&6; }
45202fi
45203
45204
45205# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
45206set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
45207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45208$as_echo_n "checking for $ac_word... " >&6; }
45209if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then
45210 $as_echo_n "(cached) " >&6
45211else
45212 case $SCANDecodeDelegate in
45213 [\\/]* | ?:[\\/]*)
45214 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
45215 ;;
45216 *)
45217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45218for as_dir in $PATH
45219do
45220 IFS=$as_save_IFS
45221 test -z "$as_dir" && as_dir=.
45222 for ac_exec_ext in '' $ac_executable_extensions; do
45223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45224 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45225 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45226 break 2
45227 fi
45228done
45229done
45230IFS=$as_save_IFS
45231
45232 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
45233 ;;
45234esac
45235fi
45236SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
45237if test -n "$SCANDecodeDelegate"; then
45238 { $as_echo "$as_me:$LINENO: result: $SCANDecodeDelegate" >&5
45239$as_echo "$SCANDecodeDelegate" >&6; }
45240else
45241 { $as_echo "$as_me:$LINENO: result: no" >&5
45242$as_echo "no" >&6; }
45243fi
45244
45245
45246# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
45247set dummy "$TXTDelegateDefault"; ac_word=$2
45248{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45249$as_echo_n "checking for $ac_word... " >&6; }
45250if test "${ac_cv_path_TXTDelegate+set}" = set; then
45251 $as_echo_n "(cached) " >&6
45252else
45253 case $TXTDelegate in
45254 [\\/]* | ?:[\\/]*)
45255 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
45256 ;;
45257 *)
45258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45259for as_dir in $PATH
45260do
45261 IFS=$as_save_IFS
45262 test -z "$as_dir" && as_dir=.
45263 for ac_exec_ext in '' $ac_executable_extensions; do
45264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45265 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
45266 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45267 break 2
45268 fi
45269done
45270done
45271IFS=$as_save_IFS
45272
45273 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
45274 ;;
45275esac
45276fi
45277TXTDelegate=$ac_cv_path_TXTDelegate
45278if test -n "$TXTDelegate"; then
45279 { $as_echo "$as_me:$LINENO: result: $TXTDelegate" >&5
45280$as_echo "$TXTDelegate" >&6; }
45281else
45282 { $as_echo "$as_me:$LINENO: result: no" >&5
45283$as_echo "no" >&6; }
45284fi
45285
45286
45287# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
45288set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
45289{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45290$as_echo_n "checking for $ac_word... " >&6; }
45291if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then
45292 $as_echo_n "(cached) " >&6
45293else
45294 case $WMFDecodeDelegate in
45295 [\\/]* | ?:[\\/]*)
45296 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
45297 ;;
45298 *)
45299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45300for as_dir in $PATH
45301do
45302 IFS=$as_save_IFS
45303 test -z "$as_dir" && as_dir=.
45304 for ac_exec_ext in '' $ac_executable_extensions; do
45305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45306 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45307 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45308 break 2
45309 fi
45310done
45311done
45312IFS=$as_save_IFS
45313
45314 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
45315 ;;
45316esac
45317fi
45318WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
45319if test -n "$WMFDecodeDelegate"; then
45320 { $as_echo "$as_me:$LINENO: result: $WMFDecodeDelegate" >&5
45321$as_echo "$WMFDecodeDelegate" >&6; }
45322else
45323 { $as_echo "$as_me:$LINENO: result: no" >&5
45324$as_echo "no" >&6; }
45325fi
45326
45327
45328# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
45329set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
45330{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45331$as_echo_n "checking for $ac_word... " >&6; }
45332if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then
45333 $as_echo_n "(cached) " >&6
45334else
45335 case $WWWDecodeDelegate in
45336 [\\/]* | ?:[\\/]*)
45337 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
45338 ;;
45339 *)
45340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45341for as_dir in $PATH
45342do
45343 IFS=$as_save_IFS
45344 test -z "$as_dir" && as_dir=.
45345 for ac_exec_ext in '' $ac_executable_extensions; do
45346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45347 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
45348 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45349 break 2
45350 fi
45351done
45352done
45353IFS=$as_save_IFS
45354
45355 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
45356 ;;
45357esac
45358fi
45359WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
45360if test -n "$WWWDecodeDelegate"; then
45361 { $as_echo "$as_me:$LINENO: result: $WWWDecodeDelegate" >&5
45362$as_echo "$WWWDecodeDelegate" >&6; }
45363else
45364 { $as_echo "$as_me:$LINENO: result: no" >&5
45365$as_echo "no" >&6; }
45366fi
45367
45368
45369# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
45370set dummy "$XPSDelegateDefault"; ac_word=$2
45371{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45372$as_echo_n "checking for $ac_word... " >&6; }
45373if test "${ac_cv_path_XPSDelegate+set}" = set; then
45374 $as_echo_n "(cached) " >&6
45375else
45376 case $XPSDelegate in
45377 [\\/]* | ?:[\\/]*)
45378 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
45379 ;;
45380 *)
45381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45382for as_dir in $PATH
45383do
45384 IFS=$as_save_IFS
45385 test -z "$as_dir" && as_dir=.
45386 for ac_exec_ext in '' $ac_executable_extensions; do
45387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45388 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
45389 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45390 break 2
45391 fi
45392done
45393done
45394IFS=$as_save_IFS
45395
45396 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
45397 ;;
45398esac
45399fi
45400XPSDelegate=$ac_cv_path_XPSDelegate
45401if test -n "$XPSDelegate"; then
45402 { $as_echo "$as_me:$LINENO: result: $XPSDelegate" >&5
45403$as_echo "$XPSDelegate" >&6; }
45404else
45405 { $as_echo "$as_me:$LINENO: result: no" >&5
45406$as_echo "no" >&6; }
45407fi
45408
45409
45410# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
45411set dummy "$ZipDelegateDefault"; ac_word=$2
45412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45413$as_echo_n "checking for $ac_word... " >&6; }
45414if test "${ac_cv_path_ZipDelegate+set}" = set; then
45415 $as_echo_n "(cached) " >&6
45416else
45417 case $ZipDelegate in
45418 [\\/]* | ?:[\\/]*)
45419 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
45420 ;;
45421 *)
45422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45423for as_dir in $PATH
45424do
45425 IFS=$as_save_IFS
45426 test -z "$as_dir" && as_dir=.
45427 for ac_exec_ext in '' $ac_executable_extensions; do
45428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45429 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
45430 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45431 break 2
45432 fi
45433done
45434done
45435IFS=$as_save_IFS
45436
45437 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
45438 ;;
45439esac
45440fi
45441ZipDelegate=$ac_cv_path_ZipDelegate
45442if test -n "$ZipDelegate"; then
45443 { $as_echo "$as_me:$LINENO: result: $ZipDelegate" >&5
45444$as_echo "$ZipDelegate" >&6; }
45445else
45446 { $as_echo "$as_me:$LINENO: result: no" >&5
45447$as_echo "no" >&6; }
45448fi
45449
45450
45451
45452# Prefer lpr to lp; lp needs options tacked on.
45453if test "$LPRDelegate" != no; then
45454 PrintDelegate="$LPRDelegate"
45455else
45456 PrintDelegate="$LPDelegate -c -s"
45457fi
45458
45459
45460# Installed ImageMagick utiltity paths
45461ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
45462DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
45463MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
45464
45465# Set delegate booleans
45466have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
45467have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
45468have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
45469have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
45470have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
45471have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
45472have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
45473have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
45474have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
45475have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
45476have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
45477
45478#
45479# Test for font directories
45480#
45481type_include_files=''
45482
45483# Windows
45484windows_font_dir=''
45485if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
45486 windows_font_dir="${with_windows_font_dir}/"
45487fi
45488if test -n "$windows_font_dir"; then
45489 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
45490 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
45491 fi
45492 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
45493 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
45494 fi
45495 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
45496 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
45497 fi
45498fi
45499if test -n "$windows_font_dir"; then
45500 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
45501fi
45502
45503
45504# Ghostscript
45505{ $as_echo "$as_me:$LINENO: checking for Ghostscript fonts directory" >&5
45506$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
45507ghostscript_font_dir=''
45508if test "${with_gs_font_dir}" != 'default'; then
45509 ghostscript_font_dir="${with_gs_font_dir}/"
45510else
45511 if test "${native_win32_build}" = 'yes'; then
45512 # Native Windows Build
45513 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
45514 if test -f "${font_dir}a010013l.pfb"; then
45515 ghostscript_font_dir="$font_dir"
45516 break 1
45517 fi
45518 done
45519 if test "${PSDelegate}" != 'gswin32c'; then
45520 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
45521 fi
45522 else
45523 # Linux / Mac OS X / Unix Build
45524 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
45525 if test -f "${font_dir}a010013l.pfb"; then
45526 ghostscript_font_dir="${font_dir}"
45527 break 1
45528 fi
45529 done
45530 if test "${ghostscript_font_dir}x" = 'x'; then
45531 if test "$PSDelegate" != 'gs'; then
45532 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
45533 fi
45534 fi
45535 fi
45536fi
45537if test "${ghostscript_font_dir}x" != 'x'; then
45538 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
45539 { $as_echo "$as_me:$LINENO: result: $ghostscript_font_dir" >&5
45540$as_echo "$ghostscript_font_dir" >&6; }
45541else
45542 { $as_echo "$as_me:$LINENO: result: not found!" >&5
45543$as_echo "not found!" >&6; };
45544fi
45545
45546case "${build_os}" in
45547 mingw* )
45548 PSDelegate=`$WinPathScript "$PSDelegate" 1`
45549 ;;
45550esac
45551
45552
45553
45554#
45555# Handle case where user doesn't want frozen paths
45556#
45557if test "$with_frozenpaths" != 'yes'; then
45558 # Re-set delegate definitions to default (no paths)
45559 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
45560 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
45561 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
45562 BZIPDelegate="$BZIPDelegateDefault"
45563 BrowseDelegate="$BrowseDelegateDefault"
45564 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
45565 CatDelegate="$CatDelegateDefault"
45566 ConvertDelegate="$ConvertDelegateDefault"
45567 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
45568 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
45569 EchoDelegate="$EchoDelegateDefault"
45570 EditorDelegate="$EditorDelegateDefault"
45571 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
45572 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
45573 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
45574 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
45575 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
45576 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
45577 LPDelegate="$LPDelegateDefault"
45578 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
45579 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
45580 LaunchDelegate="$LaunchDelegateDefault"
45581 MANDelegate="$MANDelegateDefault"
45582 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
45583 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
45584 MVDelegate="$MVDelegateDefault"
45585 MogrifyDelegate="$MogrifyDelegateDefault"
45586 PCLDelegate="$PCLDelegateDefault"
45587 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
45588 POVDelegate="$POVDelegateDefault"
45589 PSDelegate="$PSDelegateDefault"
45590 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
45591 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
45592 RMDelegate="$RMDelegateDefault"
45593 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
45594 ShowImageDelegate="$ShowImageDelegateDefault"
45595 TXTDelegate="$TXTDelegateDefault"
45596 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
45597 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
45598 XPSDelegate="$XPSDelegateDefault"
45599 ZipDelegate="$ZipDelegateDefault"
45600fi
45601
45602# Delegate substitutions
45603
45604
45605
45606
45607
45608
45609
45610
45611
45612
45613
45614
45615
45616
45617
45618
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# RPM support.
45647#
45648RPM=''
45649for ac_prog in gnutar gtar tar
45650do
45651 # Extract the first word of "$ac_prog", so it can be a program name with args.
45652set dummy $ac_prog; ac_word=$2
45653{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45654$as_echo_n "checking for $ac_word... " >&6; }
45655if test "${ac_cv_prog_TAR+set}" = set; then
45656 $as_echo_n "(cached) " >&6
45657else
45658 if test -n "$TAR"; then
45659 ac_cv_prog_TAR="$TAR" # Let the user override the test.
45660else
45661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45662for as_dir in $PATH
45663do
45664 IFS=$as_save_IFS
45665 test -z "$as_dir" && as_dir=.
45666 for ac_exec_ext in '' $ac_executable_extensions; do
45667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45668 ac_cv_prog_TAR="$ac_prog"
45669 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45670 break 2
45671 fi
45672done
45673done
45674IFS=$as_save_IFS
45675
45676fi
45677fi
45678TAR=$ac_cv_prog_TAR
45679if test -n "$TAR"; then
45680 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
45681$as_echo "$TAR" >&6; }
45682else
45683 { $as_echo "$as_me:$LINENO: result: no" >&5
45684$as_echo "no" >&6; }
45685fi
45686
45687
45688 test -n "$TAR" && break
45689done
45690
45691for ac_prog in perl
45692do
45693 # Extract the first word of "$ac_prog", so it can be a program name with args.
45694set dummy $ac_prog; ac_word=$2
45695{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45696$as_echo_n "checking for $ac_word... " >&6; }
45697if test "${ac_cv_prog_PERL+set}" = set; then
45698 $as_echo_n "(cached) " >&6
45699else
45700 if test -n "$PERL"; then
45701 ac_cv_prog_PERL="$PERL" # Let the user override the test.
45702else
45703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45704for as_dir in $PATH
45705do
45706 IFS=$as_save_IFS
45707 test -z "$as_dir" && as_dir=.
45708 for ac_exec_ext in '' $ac_executable_extensions; do
45709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45710 ac_cv_prog_PERL="$ac_prog"
45711 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45712 break 2
45713 fi
45714done
45715done
45716IFS=$as_save_IFS
45717
45718fi
45719fi
45720PERL=$ac_cv_prog_PERL
45721if test -n "$PERL"; then
45722 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
45723$as_echo "$PERL" >&6; }
45724else
45725 { $as_echo "$as_me:$LINENO: result: no" >&5
45726$as_echo "no" >&6; }
45727fi
45728
45729
45730 test -n "$PERL" && break
45731done
45732
45733for ac_prog in rpmbuild rpm
45734do
45735 # Extract the first word of "$ac_prog", so it can be a program name with args.
45736set dummy $ac_prog; ac_word=$2
45737{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45738$as_echo_n "checking for $ac_word... " >&6; }
45739if test "${ac_cv_prog_RPM+set}" = set; then
45740 $as_echo_n "(cached) " >&6
45741else
45742 if test -n "$RPM"; then
45743 ac_cv_prog_RPM="$RPM" # Let the user override the test.
45744else
45745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45746for as_dir in $PATH
45747do
45748 IFS=$as_save_IFS
45749 test -z "$as_dir" && as_dir=.
45750 for ac_exec_ext in '' $ac_executable_extensions; do
45751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45752 ac_cv_prog_RPM="$ac_prog"
45753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45754 break 2
45755 fi
45756done
45757done
45758IFS=$as_save_IFS
45759
45760fi
45761fi
45762RPM=$ac_cv_prog_RPM
45763if test -n "$RPM"; then
45764 { $as_echo "$as_me:$LINENO: result: $RPM" >&5
45765$as_echo "$RPM" >&6; }
45766else
45767 { $as_echo "$as_me:$LINENO: result: no" >&5
45768$as_echo "no" >&6; }
45769fi
45770
45771
45772 test -n "$RPM" && break
45773done
45774
45775
45776ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
45777
45778
45779AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
45780
45781
45782AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
45783
45784
45785AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
45786
45787
45788 if test "x$RPM" != "x" ; then
45789 RPM_DELEGATE_TRUE=
45790 RPM_DELEGATE_FALSE='#'
45791else
45792 RPM_DELEGATE_TRUE='#'
45793 RPM_DELEGATE_FALSE=
45794fi
45795
45796
45797#
45798# 7ZIP support (http://p7zip.sourceforge.net/)
45799#
45800P7ZIP=''
45801for ac_prog in 7za
45802do
45803 # Extract the first word of "$ac_prog", so it can be a program name with args.
45804set dummy $ac_prog; ac_word=$2
45805{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45806$as_echo_n "checking for $ac_word... " >&6; }
45807if test "${ac_cv_prog_P7ZIP+set}" = set; then
45808 $as_echo_n "(cached) " >&6
45809else
45810 if test -n "$P7ZIP"; then
45811 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
45812else
45813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45814for as_dir in $PATH
45815do
45816 IFS=$as_save_IFS
45817 test -z "$as_dir" && as_dir=.
45818 for ac_exec_ext in '' $ac_executable_extensions; do
45819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45820 ac_cv_prog_P7ZIP="$ac_prog"
45821 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45822 break 2
45823 fi
45824done
45825done
45826IFS=$as_save_IFS
45827
45828fi
45829fi
45830P7ZIP=$ac_cv_prog_P7ZIP
45831if test -n "$P7ZIP"; then
45832 { $as_echo "$as_me:$LINENO: result: $P7ZIP" >&5
45833$as_echo "$P7ZIP" >&6; }
45834else
45835 { $as_echo "$as_me:$LINENO: result: no" >&5
45836$as_echo "no" >&6; }
45837fi
45838
45839
45840 test -n "$P7ZIP" && break
45841done
45842
45843
45844 if test "x$P7ZIP" != "x" ; then
45845 P7ZIP_DELEGATE_TRUE=
45846 P7ZIP_DELEGATE_FALSE='#'
45847else
45848 P7ZIP_DELEGATE_TRUE='#'
45849 P7ZIP_DELEGATE_FALSE=
45850fi
45851
45852
45853#
45854# ZIP support (http://www.info-zip.org/Zip.html)
45855#
45856ZIP=''
45857for ac_prog in zip
45858do
45859 # Extract the first word of "$ac_prog", so it can be a program name with args.
45860set dummy $ac_prog; ac_word=$2
45861{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45862$as_echo_n "checking for $ac_word... " >&6; }
45863if test "${ac_cv_prog_ZIP+set}" = set; then
45864 $as_echo_n "(cached) " >&6
45865else
45866 if test -n "$ZIP"; then
45867 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
45868else
45869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45870for as_dir in $PATH
45871do
45872 IFS=$as_save_IFS
45873 test -z "$as_dir" && as_dir=.
45874 for ac_exec_ext in '' $ac_executable_extensions; do
45875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45876 ac_cv_prog_ZIP="$ac_prog"
45877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45878 break 2
45879 fi
45880done
45881done
45882IFS=$as_save_IFS
45883
45884fi
45885fi
45886ZIP=$ac_cv_prog_ZIP
45887if test -n "$ZIP"; then
45888 { $as_echo "$as_me:$LINENO: result: $ZIP" >&5
45889$as_echo "$ZIP" >&6; }
45890else
45891 { $as_echo "$as_me:$LINENO: result: no" >&5
45892$as_echo "no" >&6; }
45893fi
45894
45895
45896 test -n "$ZIP" && break
45897done
45898
45899
45900 if test "x$ZIP" != "x" ; then
45901 ZIP_DELEGATE_TRUE=
45902 ZIP_DELEGATE_FALSE='#'
45903else
45904 ZIP_DELEGATE_TRUE='#'
45905 ZIP_DELEGATE_FALSE=
45906fi
45907
45908
45909#
45910# GhostPCL related configuration.
45911#
45912PCLColorDevice=ppmraw
45913PCLCMYKDevice=bmpsep8
45914PCLMonoDevice=pbmraw
45915if test -z "$PCLVersion"; then
45916 PCLVersion='unknown'
45917fi
45918if test $have_pcl = 'yes'; then
45919 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45920$as_echo "-------------------------------------------------------------" >&6; }
45921 { $as_echo "$as_me:$LINENO: checking for PCL" >&5
45922$as_echo_n "checking for PCL... " >&6; }
45923 { $as_echo "$as_me:$LINENO: result: " >&5
45924$as_echo "" >&6; }
45925 # PCLColorDevice
45926 { $as_echo "$as_me:$LINENO: checking for pcl color device" >&5
45927$as_echo_n "checking for pcl color device... " >&6; }
45928 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45929 :
45930 else
45931 PCLColorDevice=ppmraw
45932 fi
45933 { $as_echo "$as_me:$LINENO: result: $PCLColorDevice" >&5
45934$as_echo "$PCLColorDevice" >&6; }
45935
45936 # PCLCMYKDevice
45937 { $as_echo "$as_me:$LINENO: checking for pcl CMYK device" >&5
45938$as_echo_n "checking for pcl CMYK device... " >&6; }
45939 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45940 :
45941 else
45942 PCLCMYKDevice=$PCLColorDevice
45943 fi
45944 { $as_echo "$as_me:$LINENO: result: $PCLCMYKDevice" >&5
45945$as_echo "$PCLCMYKDevice" >&6; }
45946
45947 # PCLMonoDevice
45948 { $as_echo "$as_me:$LINENO: checking for pcl mono device" >&5
45949$as_echo_n "checking for pcl mono device... " >&6; }
45950 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45951 :
45952 else
45953 PCLMonoDevice=$PCLColorDevice
45954 fi
45955 { $as_echo "$as_me:$LINENO: result: $PCLMonoDevice" >&5
45956$as_echo "$PCLMonoDevice" >&6; }
45957fi
45958
45959
45960
45961
45962
45963
45964#
45965# GhostXPS related configuration.
45966#
45967XPSColorDevice=ppmraw
45968XPSCMYKDevice=bmpsep8
45969XPSMonoDevice=pbmraw
45970if test -z "$XPSVersion"; then
45971 XPSVersion='unknown'
45972fi
45973if test $have_xps = 'yes'; then
45974 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45975$as_echo "-------------------------------------------------------------" >&6; }
45976 { $as_echo "$as_me:$LINENO: checking for XPS" >&5
45977$as_echo_n "checking for XPS... " >&6; }
45978 { $as_echo "$as_me:$LINENO: result: " >&5
45979$as_echo "" >&6; }
45980 # XPSColorDevice
45981 { $as_echo "$as_me:$LINENO: checking for xps color device" >&5
45982$as_echo_n "checking for xps color device... " >&6; }
45983 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45984 :
45985 else
45986 XPSColorDevice=ppmraw
45987 fi
45988 { $as_echo "$as_me:$LINENO: result: $XPSColorDevice" >&5
45989$as_echo "$XPSColorDevice" >&6; }
45990
45991 # XPSCMYKDevice
45992 { $as_echo "$as_me:$LINENO: checking for xps CMYK device" >&5
45993$as_echo_n "checking for xps CMYK device... " >&6; }
45994 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45995 :
45996 else
45997 XPSCMYKDevice=$XPSColorDevice
45998 fi
45999 { $as_echo "$as_me:$LINENO: result: $XPSCMYKDevice" >&5
46000$as_echo "$XPSCMYKDevice" >&6; }
46001
46002 # XPSMonoDevice
46003 { $as_echo "$as_me:$LINENO: checking for xps mono device" >&5
46004$as_echo_n "checking for xps mono device... " >&6; }
46005 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46006 :
46007 else
46008 XPSMonoDevice=$XPSColorDevice
46009 fi
46010 { $as_echo "$as_me:$LINENO: result: $XPSMonoDevice" >&5
46011$as_echo "$XPSMonoDevice" >&6; }
46012fi
46013
46014
46015
46016
46017
46018
46019#
46020# Ghostscript related configuration.
46021#
46022if test "$have_png" = 'yes'; then
46023 GSAlphaDevice=pngalpha
46024else
46025 GSAlphaDevice=pnmraw
46026fi
46027GSColorDevice=pnmraw
46028GSCMYKDevice=pam
46029GSMonoDevice=pbmraw
46030GSPDFDevice=pdfwrite
46031GSPSDevice=pswrite
46032GSEPSDevice=epswrite
46033GSVersion='unknown'
46034if test $have_gs = 'yes'; then
46035 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46036$as_echo "-------------------------------------------------------------" >&6; }
46037 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
46038$as_echo_n "checking for Ghostscript... " >&6; }
46039 { $as_echo "$as_me:$LINENO: result: " >&5
46040$as_echo "" >&6; }
46041 { $as_echo "$as_me:$LINENO: checking for Ghostscript version" >&5
46042$as_echo_n "checking for Ghostscript version... " >&6; }
46043 if GSVersion=`$PSDelegate --version`; then
46044 :
46045 else
46046 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
46047 fi
46048 { $as_echo "$as_me:$LINENO: result: $GSVersion" >&5
46049$as_echo "$GSVersion" >&6; }
46050
46051 # GSAlphaDevice
46052 { $as_echo "$as_me:$LINENO: checking for gs alpha device" >&5
46053$as_echo_n "checking for gs alpha device... " >&6; }
46054 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46055 :
46056 else
46057 GSAlphaDevice=pnmraw
46058 fi
46059 { $as_echo "$as_me:$LINENO: result: $GSAlphaDevice" >&5
46060$as_echo "$GSAlphaDevice" >&6; }
46061
46062 # GSColorDevice
46063 { $as_echo "$as_me:$LINENO: checking for gs color device" >&5
46064$as_echo_n "checking for gs color device... " >&6; }
46065 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46066 :
46067 else
46068 GSColorDevice=pnmraw
46069 fi
46070 { $as_echo "$as_me:$LINENO: result: $GSColorDevice" >&5
46071$as_echo "$GSColorDevice" >&6; }
46072
46073 # GSCMYKDevice
46074 { $as_echo "$as_me:$LINENO: checking for gs CMYK device" >&5
46075$as_echo_n "checking for gs CMYK device... " >&6; }
46076 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46077 :
46078 else
46079 GSCMYKDevice=bmpsep8
46080 fi
46081 { $as_echo "$as_me:$LINENO: result: $GSCMYKDevice" >&5
46082$as_echo "$GSCMYKDevice" >&6; }
46083
46084 # GSMonoDevice
46085 { $as_echo "$as_me:$LINENO: checking for gs mono device" >&5
46086$as_echo_n "checking for gs mono device... " >&6; }
46087 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46088 :
46089 else
46090 GSMonoDevice=$GSColorDevice
46091 fi
46092 { $as_echo "$as_me:$LINENO: result: $GSMonoDevice" >&5
46093$as_echo "$GSMonoDevice" >&6; }
46094
46095 # GSPDFDevice
46096 { $as_echo "$as_me:$LINENO: checking for gs PDF writing device" >&5
46097$as_echo_n "checking for gs PDF writing device... " >&6; }
46098 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46099 :
46100 else
46101 GSPDFDevice=nodevice
46102 fi
46103 { $as_echo "$as_me:$LINENO: result: $GSPDFDevice" >&5
46104$as_echo "$GSPDFDevice" >&6; }
46105
46106 # GSPSDevice
46107 { $as_echo "$as_me:$LINENO: checking for gs PS writing device" >&5
46108$as_echo_n "checking for gs PS writing device... " >&6; }
46109 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46110 :
46111 else
46112 GSPSDevice=nodevice
46113 fi
46114 { $as_echo "$as_me:$LINENO: result: $GSPSDevice" >&5
46115$as_echo "$GSPSDevice" >&6; }
46116
46117 # GSEPSDevice
46118 { $as_echo "$as_me:$LINENO: checking for gs EPS writing device" >&5
46119$as_echo_n "checking for gs EPS writing device... " >&6; }
46120 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
46121 :
46122 else
46123 GSEPSDevice=nodevice
46124 fi
46125 { $as_echo "$as_me:$LINENO: result: $GSEPSDevice" >&5
46126$as_echo "$GSEPSDevice" >&6; }
46127fi
46128
46129
46130
46131
46132
46133
46134
46135
46136
46137
46138#
46139# PerlMagick-related configuration
46140#
46141
46142# Look for PERL if PerlMagick requested
46143# If name/path of desired PERL interpreter is specified, look for that one first
46144have_perl='no'
46145if test "$with_perl" != 'no'; then
46146 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46147$as_echo "-------------------------------------------------------------" >&6; }
46148 { $as_echo "$as_me:$LINENO: checking for Perl" >&5
46149$as_echo_n "checking for Perl... " >&6; }
46150 { $as_echo "$as_me:$LINENO: result: " >&5
46151$as_echo "" >&6; }
46152 if test "$with_perl" != 'yes'; then
46153 { $as_echo "$as_me:$LINENO: checking for perl" >&5
46154$as_echo_n "checking for perl... " >&6; }
46155if test "${ac_cv_path_PERL+set}" = set; then
46156 $as_echo_n "(cached) " >&6
46157else
46158 ac_cv_path_PERL="$with_perl"
46159fi
46160{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_PERL" >&5
46161$as_echo "$ac_cv_path_PERL" >&6; };
46162 PERL=$ac_cv_path_PERL
46163 have_perl="$ac_cv_path_PERL"
46164 else
46165 for ac_prog in perl perl5
46166do
46167 # Extract the first word of "$ac_prog", so it can be a program name with args.
46168set dummy $ac_prog; ac_word=$2
46169{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46170$as_echo_n "checking for $ac_word... " >&6; }
46171if test "${ac_cv_path_PERL+set}" = set; then
46172 $as_echo_n "(cached) " >&6
46173else
46174 case $PERL in
46175 [\\/]* | ?:[\\/]*)
46176 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
46177 ;;
46178 *)
46179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46180for as_dir in $PATH
46181do
46182 IFS=$as_save_IFS
46183 test -z "$as_dir" && as_dir=.
46184 for ac_exec_ext in '' $ac_executable_extensions; do
46185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46186 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
46187 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46188 break 2
46189 fi
46190done
46191done
46192IFS=$as_save_IFS
46193
46194 ;;
46195esac
46196fi
46197PERL=$ac_cv_path_PERL
46198if test -n "$PERL"; then
46199 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
46200$as_echo "$PERL" >&6; }
46201else
46202 { $as_echo "$as_me:$LINENO: result: no" >&5
46203$as_echo "no" >&6; }
46204fi
46205
46206
46207 test -n "$PERL" && break
46208done
46209 if test "$ac_cv_path_PERL"; then
46210 have_perl="$ac_cv_path_PERL"
46211 fi
46212 fi
46213fi
46214
46215with_perl_static='no'
46216with_perl_dynamic='no'
46217if test "$have_perl" != 'no'; then
46218 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
46219 with_perl_static='yes'
46220 fi
46221 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
46222 with_perl_dynamic='yes'
46223 fi
46224 # Is PERL's MakeMaker new enough to support DESTDIR?
46225 # Make sure we have perl
46226if test -z "$PERL"; then
46227# Extract the first word of "perl", so it can be a program name with args.
46228set dummy perl; ac_word=$2
46229{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
46230$as_echo_n "checking for $ac_word... " >&6; }
46231if test "${ac_cv_prog_PERL+set}" = set; then
46232 $as_echo_n "(cached) " >&6
46233else
46234 if test -n "$PERL"; then
46235 ac_cv_prog_PERL="$PERL" # Let the user override the test.
46236else
46237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46238for as_dir in $PATH
46239do
46240 IFS=$as_save_IFS
46241 test -z "$as_dir" && as_dir=.
46242 for ac_exec_ext in '' $ac_executable_extensions; do
46243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
46244 ac_cv_prog_PERL="perl"
46245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
46246 break 2
46247 fi
46248done
46249done
46250IFS=$as_save_IFS
46251
46252fi
46253fi
46254PERL=$ac_cv_prog_PERL
46255if test -n "$PERL"; then
46256 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
46257$as_echo "$PERL" >&6; }
46258else
46259 { $as_echo "$as_me:$LINENO: result: no" >&5
46260$as_echo "no" >&6; }
46261fi
46262
46263
46264fi
46265
46266# Check if version of Perl is sufficient
46267ac_perl_version="5.8.1"
46268
46269if test "x$PERL" != "x"; then
46270 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
46271$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
46272 # NB: It would be nice to log the error if there is one, but we cannot rely
46273 # on autoconf internals
46274 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
46275 if test $? -ne 0; then
46276 { $as_echo "$as_me:$LINENO: result: no" >&5
46277$as_echo "no" >&6; };
46278 PERL_SUPPORTS_DESTDIR='no'
46279 else
46280 { $as_echo "$as_me:$LINENO: result: ok" >&5
46281$as_echo "ok" >&6; };
46282 PERL_SUPPORTS_DESTDIR='yes'
46283 fi
46284else
46285 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
46286$as_echo "$as_me: WARNING: could not find perl" >&2;}
46287fi
46288
46289fi
46290 if test "$have_perl" != 'no'; then
46291 WITH_PERL_TRUE=
46292 WITH_PERL_FALSE='#'
46293else
46294 WITH_PERL_TRUE='#'
46295 WITH_PERL_FALSE=
46296fi
46297
46298 if test $with_perl_static = 'yes'; then
46299 WITH_PERL_STATIC_TRUE=
46300 WITH_PERL_STATIC_FALSE='#'
46301else
46302 WITH_PERL_STATIC_TRUE='#'
46303 WITH_PERL_STATIC_FALSE=
46304fi
46305
46306 if test $with_perl_dynamic = 'yes'; then
46307 WITH_PERL_DYNAMIC_TRUE=
46308 WITH_PERL_DYNAMIC_FALSE='#'
46309else
46310 WITH_PERL_DYNAMIC_TRUE='#'
46311 WITH_PERL_DYNAMIC_FALSE=
46312fi
46313
46314
46315
46316# Determine path to pick up MagickCore library from for use with building PerlMagick
46317MAGICKCORE_PATH="${LIB_DIR}"
46318if test $with_perl_static = 'yes'; then
46319 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
46320 libtool_objdir=$objdir
46321
46322 # Linker search path to library, followed by -lMagickCore
46323 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
46324fi
46325
46326
46327# Create a simple string containing format names for all delegate libraries
46328DELEGATES=''
46329if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
46330if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
46331if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
46332if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
46333if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
46334if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
46335if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
46336if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
46337if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
46338if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
46339if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
46340if test "$have_jpeg" = 'yes'; then
46341 DELEGATES="$DELEGATES jpeg";
46342 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
46343fi
46344if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
46345if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
46346if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
46347if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
46348if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
46349if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
46350if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
46351if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
46352if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
46353if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
46354if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
46355if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
46356
46357
46358
46359#
46360# Handle special compiler flags
46361#
46362
46363# Add '-p' if prof source profiling support enabled
46364if test "$enable_prof" = 'yes'; then
46365 CFLAGS="-p $CFLAGS"
46366 CXXFLAGS="-p $CXXFLAGS"
46367 LDFLAGS="-p $LDFLAGS"
46368fi
46369
46370# Add '-pg' if gprof source profiling support enabled
46371if test "$enable_gprof" = 'yes'; then
46372 CFLAGS="-pg $CFLAGS"
46373 CXXFLAGS="-pg $CXXFLAGS"
46374 LDFLAGS="-pg $LDFLAGS"
46375fi
46376
46377# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
46378# This is a gcc-specific feature
46379if test "$enable_gcov" = 'yes'; then
46380
46381{ $as_echo "$as_me:$LINENO: checking for _gcov_init in -lgcov" >&5
46382$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
46383if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then
46384 $as_echo_n "(cached) " >&6
46385else
46386 ac_check_lib_save_LIBS=$LIBS
46387LIBS="-lgcov $LIBS"
46388cat >conftest.$ac_ext <<_ACEOF
46389/* confdefs.h. */
46390_ACEOF
46391cat confdefs.h >>conftest.$ac_ext
46392cat >>conftest.$ac_ext <<_ACEOF
46393/* end confdefs.h. */
46394
46395/* Override any GCC internal prototype to avoid an error.
46396 Use char because int might match the return type of a GCC
46397 builtin and then its argument prototype would still apply. */
46398#ifdef __cplusplus
46399extern "C"
46400#endif
46401char _gcov_init ();
46402int
46403main ()
46404{
46405return _gcov_init ();
46406 ;
46407 return 0;
46408}
46409_ACEOF
46410rm -f conftest.$ac_objext conftest$ac_exeext
46411if { (ac_try="$ac_link"
46412case "(($ac_try" in
46413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46414 *) ac_try_echo=$ac_try;;
46415esac
46416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46417$as_echo "$ac_try_echo") >&5
46418 (eval "$ac_link") 2>conftest.er1
46419 ac_status=$?
46420 grep -v '^ *+' conftest.er1 >conftest.err
46421 rm -f conftest.er1
46422 cat conftest.err >&5
46423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46424 (exit $ac_status); } && {
46425 test -z "$ac_c_werror_flag" ||
46426 test ! -s conftest.err
46427 } && test -s conftest$ac_exeext && {
46428 test "$cross_compiling" = yes ||
46429 $as_test_x conftest$ac_exeext
46430 }; then
46431 ac_cv_lib_gcov__gcov_init=yes
46432else
46433 $as_echo "$as_me: failed program was:" >&5
46434sed 's/^/| /' conftest.$ac_ext >&5
46435
46436 ac_cv_lib_gcov__gcov_init=no
46437fi
46438
46439rm -rf conftest.dSYM
46440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46441 conftest$ac_exeext conftest.$ac_ext
46442LIBS=$ac_check_lib_save_LIBS
46443fi
46444{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov__gcov_init" >&5
46445$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
46446if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then
46447 cat >>confdefs.h <<_ACEOF
46448#define HAVE_LIBGCOV 1
46449_ACEOF
46450
46451 LIBS="-lgcov $LIBS"
46452
46453fi
46454
46455
46456{ $as_echo "$as_me:$LINENO: checking for __gcov_init in -lgcov" >&5
46457$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
46458if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then
46459 $as_echo_n "(cached) " >&6
46460else
46461 ac_check_lib_save_LIBS=$LIBS
46462LIBS="-lgcov $LIBS"
46463cat >conftest.$ac_ext <<_ACEOF
46464/* confdefs.h. */
46465_ACEOF
46466cat confdefs.h >>conftest.$ac_ext
46467cat >>conftest.$ac_ext <<_ACEOF
46468/* end confdefs.h. */
46469
46470/* Override any GCC internal prototype to avoid an error.
46471 Use char because int might match the return type of a GCC
46472 builtin and then its argument prototype would still apply. */
46473#ifdef __cplusplus
46474extern "C"
46475#endif
46476char __gcov_init ();
46477int
46478main ()
46479{
46480return __gcov_init ();
46481 ;
46482 return 0;
46483}
46484_ACEOF
46485rm -f conftest.$ac_objext conftest$ac_exeext
46486if { (ac_try="$ac_link"
46487case "(($ac_try" in
46488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46489 *) ac_try_echo=$ac_try;;
46490esac
46491eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46492$as_echo "$ac_try_echo") >&5
46493 (eval "$ac_link") 2>conftest.er1
46494 ac_status=$?
46495 grep -v '^ *+' conftest.er1 >conftest.err
46496 rm -f conftest.er1
46497 cat conftest.err >&5
46498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46499 (exit $ac_status); } && {
46500 test -z "$ac_c_werror_flag" ||
46501 test ! -s conftest.err
46502 } && test -s conftest$ac_exeext && {
46503 test "$cross_compiling" = yes ||
46504 $as_test_x conftest$ac_exeext
46505 }; then
46506 ac_cv_lib_gcov___gcov_init=yes
46507else
46508 $as_echo "$as_me: failed program was:" >&5
46509sed 's/^/| /' conftest.$ac_ext >&5
46510
46511 ac_cv_lib_gcov___gcov_init=no
46512fi
46513
46514rm -rf conftest.dSYM
46515rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46516 conftest$ac_exeext conftest.$ac_ext
46517LIBS=$ac_check_lib_save_LIBS
46518fi
46519{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov___gcov_init" >&5
46520$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
46521if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then
46522 cat >>confdefs.h <<_ACEOF
46523#define HAVE_LIBGCOV 1
46524_ACEOF
46525
46526 LIBS="-lgcov $LIBS"
46527
46528fi
46529
46530 case "$target_os" in
46531 darwin*)
46532 OSX_GCOV_LDFLAG="-Wl,-single_module"
46533 ;;
46534 *)
46535 OSX_GCOV_LDFLAG=""
46536 ;;
46537 esac
46538
46539 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
46540 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
46541 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
46542fi
46543
46544#
46545# Build library dependency list for libMagickCore
46546#
46547
46548MAGICK_LIBLTDL='' # Libltdl for build
46549MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
46550MAGICK_LTDLDEPS='' # extra libltdl dependencies
46551if test "$with_ltdl" != 'no'
46552then
46553 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
46554 MAGICK_API_LIBLTDL='-lltdl'
46555 fi
46556 MAGICK_LIBLTDL=${LIBLTDL}
46557 MAGICK_LTDLDEPS=${LTDLDEPS}
46558fi
46559
46560
46561
46562if test "$with_modules" != 'no'; then
46563 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"
46564else
46565 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"
46566fi
46567
46568
46569#
46570# Remove extraneous spaces from output variables (asthetic)
46571#
46572X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
46573X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
46574X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
46575X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
46576
46577CC=`echo $CC | sed -e 's/ */ /g'`
46578CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
46579CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
46580CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
46581DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
46582DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
46583LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
46584TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
46585MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
46586#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
46587
46588# Pass only user-provided LIBS as "global" libraries
46589LIBS=$USER_LIBS
46590
46591#AC_SUBST(CPPFLAGS)
46592
46593#AC_SUBST(LDFLAGS)
46594#AC_SUBST(X_PRE_LIBS)
46595#AC_SUBST(X_LIBS)
46596#AC_SUBST(X_EXTRA_LIBS)
46597
46598MAGICK_CFLAGS=$CFLAGS
46599MAGICK_CXXFLAGS="$CXXFLAGS"
46600MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
46601MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
46602MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
46603MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
46604
46605
46606
46607
46608
46609
46610
46611
46612# Set configured scripts to executable.
46613ac_config_commands="$ac_config_commands default"
46614
46615ac_config_commands="$ac_config_commands MagickCore-config.in"
46616
46617ac_config_commands="$ac_config_commands Magick-config.in"
46618
46619ac_config_commands="$ac_config_commands MagickWand-config.in"
46620
46621ac_config_commands="$ac_config_commands Wand-config.in"
46622
46623ac_config_commands="$ac_config_commands Magick++-config.in"
46624
46625ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
46626
46627
46628{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
46629$as_echo "-------------------------------------------------------------" >&6; }
46630{ $as_echo "$as_me:$LINENO: result: Update ImageMagick configuration" >&5
46631$as_echo "Update ImageMagick configuration" >&6; }
46632cat >confcache <<\_ACEOF
46633# This file is a shell script that caches the results of configure
46634# tests run on this system so they can be shared between configure
46635# scripts and configure runs, see configure's option --config-cache.
46636# It is not useful on other systems. If it contains results you don't
46637# want to keep, you may remove or edit it.
46638#
46639# config.status only pays attention to the cache file if you give it
46640# the --recheck option to rerun configure.
46641#
46642# `ac_cv_env_foo' variables (set or unset) will be overridden when
46643# loading this file, other *unset* `ac_cv_foo' will be assigned the
46644# following values.
46645
46646_ACEOF
46647
46648# The following way of writing the cache mishandles newlines in values,
46649# but we know of no workaround that is simple, portable, and efficient.
46650# So, we kill variables containing newlines.
46651# Ultrix sh set writes to stderr and can't be redirected directly,
46652# and sets the high bit in the cache file unless we assign to the vars.
46653(
46654 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46655 eval ac_val=\$$ac_var
46656 case $ac_val in #(
46657 *${as_nl}*)
46658 case $ac_var in #(
46659 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
46660$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
46661 esac
46662 case $ac_var in #(
46663 _ | IFS | as_nl) ;; #(
46664 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
46665 *) $as_unset $ac_var ;;
46666 esac ;;
46667 esac
46668 done
46669
46670 (set) 2>&1 |
46671 case $as_nl`(ac_space=' '; set) 2>&1` in #(
46672 *${as_nl}ac_space=\ *)
46673 # `set' does not quote correctly, so add quotes (double-quote
46674 # substitution turns \\\\ into \\, and sed turns \\ into \).
46675 sed -n \
46676 "s/'/'\\\\''/g;
46677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46678 ;; #(
46679 *)
46680 # `set' quotes correctly as required by POSIX, so do not add quotes.
46681 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
46682 ;;
46683 esac |
46684 sort
46685) |
46686 sed '
46687 /^ac_cv_env_/b end
46688 t clear
46689 :clear
46690 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
46691 t end
46692 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46693 :end' >>confcache
46694if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
46695 if test -w "$cache_file"; then
46696 test "x$cache_file" != "x/dev/null" &&
46697 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
46698$as_echo "$as_me: updating cache $cache_file" >&6;}
46699 cat confcache >$cache_file
46700 else
46701 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
46702$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
46703 fi
46704fi
46705rm -f confcache
46706
46707test "x$prefix" = xNONE && prefix=$ac_default_prefix
46708# Let make expand exec_prefix.
46709test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46710
46711DEFS=-DHAVE_CONFIG_H
46712
46713ac_libobjs=
46714ac_ltlibobjs=
46715for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46716 # 1. Remove the extension, and $U if already installed.
46717 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
46718 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
46719 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
46720 # will be set to the directory where LIBOBJS objects are built.
46721 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
46722 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
46723done
46724LIBOBJS=$ac_libobjs
46725
46726LTLIBOBJS=$ac_ltlibobjs
46727
46728
46729 if test -n "$EXEEXT"; then
46730 am__EXEEXT_TRUE=
46731 am__EXEEXT_FALSE='#'
46732else
46733 am__EXEEXT_TRUE='#'
46734 am__EXEEXT_FALSE=
46735fi
46736
46737if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
46738 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
46739Usually this means the macro was only invoked conditionally." >&5
46740$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
46741Usually this means the macro was only invoked conditionally." >&2;}
46742 { (exit 1); exit 1; }; }
46743fi
46744if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46745 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
46746Usually this means the macro was only invoked conditionally." >&5
46747$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
46748Usually this means the macro was only invoked conditionally." >&2;}
46749 { (exit 1); exit 1; }; }
46750fi
46751if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46752 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46753Usually this means the macro was only invoked conditionally." >&5
46754$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46755Usually this means the macro was only invoked conditionally." >&2;}
46756 { (exit 1); exit 1; }; }
46757fi
46758if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
46759 { { $as_echo "$as_me:$LINENO: error: conditional \"WINGDI32_DELEGATE\" was never defined.
46760Usually this means the macro was only invoked conditionally." >&5
46761$as_echo "$as_me: error: conditional \"WINGDI32_DELEGATE\" was never defined.
46762Usually this means the macro was only invoked conditionally." >&2;}
46763 { (exit 1); exit 1; }; }
46764fi
46765if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
46766 { { $as_echo "$as_me:$LINENO: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
46767Usually this means the macro was only invoked conditionally." >&5
46768$as_echo "$as_me: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
46769Usually this means the macro was only invoked conditionally." >&2;}
46770 { (exit 1); exit 1; }; }
46771fi
46772if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
46773 { { $as_echo "$as_me:$LINENO: error: conditional \"CYGWIN_BUILD\" was never defined.
46774Usually this means the macro was only invoked conditionally." >&5
46775$as_echo "$as_me: error: conditional \"CYGWIN_BUILD\" was never defined.
46776Usually this means the macro was only invoked conditionally." >&2;}
46777 { (exit 1); exit 1; }; }
46778fi
46779if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
46780 { { $as_echo "$as_me:$LINENO: error: conditional \"USING_CL\" was never defined.
46781Usually this means the macro was only invoked conditionally." >&5
46782$as_echo "$as_me: error: conditional \"USING_CL\" was never defined.
46783Usually this means the macro was only invoked conditionally." >&2;}
46784 { (exit 1); exit 1; }; }
46785fi
46786if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46787 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46788Usually this means the macro was only invoked conditionally." >&5
46789$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46790Usually this means the macro was only invoked conditionally." >&2;}
46791 { (exit 1); exit 1; }; }
46792fi
46793if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
46794 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
46795Usually this means the macro was only invoked conditionally." >&5
46796$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
46797Usually this means the macro was only invoked conditionally." >&2;}
46798 { (exit 1); exit 1; }; }
46799fi
46800if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
46801 { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
46802Usually this means the macro was only invoked conditionally." >&5
46803$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
46804Usually this means the macro was only invoked conditionally." >&2;}
46805 { (exit 1); exit 1; }; }
46806fi
46807LT_CONFIG_H=config/config.h
46808
46809 _ltdl_libobjs=
46810 _ltdl_ltlibobjs=
46811 if test -n "$_LT_LIBOBJS"; then
46812 # Remove the extension.
46813 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
46814 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
46815 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
46816 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
46817 done
46818 fi
46819 ltdl_LIBOBJS=$_ltdl_libobjs
46820
46821 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
46822
46823
46824if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
46825 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MODULES\" was never defined.
46826Usually this means the macro was only invoked conditionally." >&5
46827$as_echo "$as_me: error: conditional \"WITH_MODULES\" was never defined.
46828Usually this means the macro was only invoked conditionally." >&2;}
46829 { (exit 1); exit 1; }; }
46830fi
46831if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
46832 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LTDL\" was never defined.
46833Usually this means the macro was only invoked conditionally." >&5
46834$as_echo "$as_me: error: conditional \"WITH_LTDL\" was never defined.
46835Usually this means the macro was only invoked conditionally." >&2;}
46836 { (exit 1); exit 1; }; }
46837fi
46838if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46839 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
46840Usually this means the macro was only invoked conditionally." >&5
46841$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
46842Usually this means the macro was only invoked conditionally." >&2;}
46843 { (exit 1); exit 1; }; }
46844fi
46845
46846if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46847 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46848Usually this means the macro was only invoked conditionally." >&5
46849$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46850Usually this means the macro was only invoked conditionally." >&2;}
46851 { (exit 1); exit 1; }; }
46852fi
46853if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
46854 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46855Usually this means the macro was only invoked conditionally." >&5
46856$as_echo "$as_me: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46857Usually this means the macro was only invoked conditionally." >&2;}
46858 { (exit 1); exit 1; }; }
46859fi
46860if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
46861 { { $as_echo "$as_me:$LINENO: error: conditional \"HasUMEM\" was never defined.
46862Usually this means the macro was only invoked conditionally." >&5
46863$as_echo "$as_me: error: conditional \"HasUMEM\" was never defined.
46864Usually this means the macro was only invoked conditionally." >&2;}
46865 { (exit 1); exit 1; }; }
46866fi
46867if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
46868 { { $as_echo "$as_me:$LINENO: error: conditional \"BZLIB_DELEGATE\" was never defined.
46869Usually this means the macro was only invoked conditionally." >&5
46870$as_echo "$as_me: error: conditional \"BZLIB_DELEGATE\" was never defined.
46871Usually this means the macro was only invoked conditionally." >&2;}
46872 { (exit 1); exit 1; }; }
46873fi
46874if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
46875 { { $as_echo "$as_me:$LINENO: error: conditional \"X11_DELEGATE\" was never defined.
46876Usually this means the macro was only invoked conditionally." >&5
46877$as_echo "$as_me: error: conditional \"X11_DELEGATE\" was never defined.
46878Usually this means the macro was only invoked conditionally." >&2;}
46879 { (exit 1); exit 1; }; }
46880fi
46881if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
46882 { { $as_echo "$as_me:$LINENO: error: conditional \"ZLIB_DELEGATE\" was never defined.
46883Usually this means the macro was only invoked conditionally." >&5
46884$as_echo "$as_me: error: conditional \"ZLIB_DELEGATE\" was never defined.
46885Usually this means the macro was only invoked conditionally." >&2;}
46886 { (exit 1); exit 1; }; }
46887fi
46888if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
46889 { { $as_echo "$as_me:$LINENO: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46890Usually this means the macro was only invoked conditionally." >&5
46891$as_echo "$as_me: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46892Usually this means the macro was only invoked conditionally." >&2;}
46893 { (exit 1); exit 1; }; }
46894fi
46895if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
46896 { { $as_echo "$as_me:$LINENO: error: conditional \"DPS_DELEGATE\" was never defined.
46897Usually this means the macro was only invoked conditionally." >&5
46898$as_echo "$as_me: error: conditional \"DPS_DELEGATE\" was never defined.
46899Usually this means the macro was only invoked conditionally." >&2;}
46900 { (exit 1); exit 1; }; }
46901fi
46902if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
46903 { { $as_echo "$as_me:$LINENO: error: conditional \"DJVU_DELEGATE\" was never defined.
46904Usually this means the macro was only invoked conditionally." >&5
46905$as_echo "$as_me: error: conditional \"DJVU_DELEGATE\" was never defined.
46906Usually this means the macro was only invoked conditionally." >&2;}
46907 { (exit 1); exit 1; }; }
46908fi
46909if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
46910 { { $as_echo "$as_me:$LINENO: error: conditional \"FFTW_DELEGATE\" was never defined.
46911Usually this means the macro was only invoked conditionally." >&5
46912$as_echo "$as_me: error: conditional \"FFTW_DELEGATE\" was never defined.
46913Usually this means the macro was only invoked conditionally." >&2;}
46914 { (exit 1); exit 1; }; }
46915fi
46916if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
46917 { { $as_echo "$as_me:$LINENO: error: conditional \"FPX_DELEGATE\" was never defined.
46918Usually this means the macro was only invoked conditionally." >&5
46919$as_echo "$as_me: error: conditional \"FPX_DELEGATE\" was never defined.
46920Usually this means the macro was only invoked conditionally." >&2;}
46921 { (exit 1); exit 1; }; }
46922fi
46923if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
46924 { { $as_echo "$as_me:$LINENO: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46925Usually this means the macro was only invoked conditionally." >&5
46926$as_echo "$as_me: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46927Usually this means the macro was only invoked conditionally." >&2;}
46928 { (exit 1); exit 1; }; }
46929fi
46930if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
46931 { { $as_echo "$as_me:$LINENO: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46932Usually this means the macro was only invoked conditionally." >&5
46933$as_echo "$as_me: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46934Usually this means the macro was only invoked conditionally." >&2;}
46935 { (exit 1); exit 1; }; }
46936fi
46937if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
46938 { { $as_echo "$as_me:$LINENO: error: conditional \"GS_DELEGATE\" was never defined.
46939Usually this means the macro was only invoked conditionally." >&5
46940$as_echo "$as_me: error: conditional \"GS_DELEGATE\" was never defined.
46941Usually this means the macro was only invoked conditionally." >&2;}
46942 { (exit 1); exit 1; }; }
46943fi
46944if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
46945 { { $as_echo "$as_me:$LINENO: error: conditional \"GVC_DELEGATE\" was never defined.
46946Usually this means the macro was only invoked conditionally." >&5
46947$as_echo "$as_me: error: conditional \"GVC_DELEGATE\" was never defined.
46948Usually this means the macro was only invoked conditionally." >&2;}
46949 { (exit 1); exit 1; }; }
46950fi
46951if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
46952 { { $as_echo "$as_me:$LINENO: error: conditional \"JBIG_DELEGATE\" was never defined.
46953Usually this means the macro was only invoked conditionally." >&5
46954$as_echo "$as_me: error: conditional \"JBIG_DELEGATE\" was never defined.
46955Usually this means the macro was only invoked conditionally." >&2;}
46956 { (exit 1); exit 1; }; }
46957fi
46958if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
46959 { { $as_echo "$as_me:$LINENO: error: conditional \"JPEG_DELEGATE\" was never defined.
46960Usually this means the macro was only invoked conditionally." >&5
46961$as_echo "$as_me: error: conditional \"JPEG_DELEGATE\" was never defined.
46962Usually this means the macro was only invoked conditionally." >&2;}
46963 { (exit 1); exit 1; }; }
46964fi
46965if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
46966 { { $as_echo "$as_me:$LINENO: error: conditional \"JP2_DELEGATE\" was never defined.
46967Usually this means the macro was only invoked conditionally." >&5
46968$as_echo "$as_me: error: conditional \"JP2_DELEGATE\" was never defined.
46969Usually this means the macro was only invoked conditionally." >&2;}
46970 { (exit 1); exit 1; }; }
46971fi
46972if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
46973 { { $as_echo "$as_me:$LINENO: error: conditional \"LCMS_DELEGATE\" was never defined.
46974Usually this means the macro was only invoked conditionally." >&5
46975$as_echo "$as_me: error: conditional \"LCMS_DELEGATE\" was never defined.
46976Usually this means the macro was only invoked conditionally." >&2;}
46977 { (exit 1); exit 1; }; }
46978fi
46979if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
46980 { { $as_echo "$as_me:$LINENO: error: conditional \"LQR_DELEGATE\" was never defined.
46981Usually this means the macro was only invoked conditionally." >&5
46982$as_echo "$as_me: error: conditional \"LQR_DELEGATE\" was never defined.
46983Usually this means the macro was only invoked conditionally." >&2;}
46984 { (exit 1); exit 1; }; }
46985fi
46986if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
46987 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENEXR_DELEGATE\" was never defined.
46988Usually this means the macro was only invoked conditionally." >&5
46989$as_echo "$as_me: error: conditional \"OPENEXR_DELEGATE\" was never defined.
46990Usually this means the macro was only invoked conditionally." >&2;}
46991 { (exit 1); exit 1; }; }
46992fi
46993if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
46994 { { $as_echo "$as_me:$LINENO: error: conditional \"PNG_DELEGATE\" was never defined.
46995Usually this means the macro was only invoked conditionally." >&5
46996$as_echo "$as_me: error: conditional \"PNG_DELEGATE\" was never defined.
46997Usually this means the macro was only invoked conditionally." >&2;}
46998 { (exit 1); exit 1; }; }
46999fi
47000if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
47001 { { $as_echo "$as_me:$LINENO: error: conditional \"RSVG_DELEGATE\" was never defined.
47002Usually this means the macro was only invoked conditionally." >&5
47003$as_echo "$as_me: error: conditional \"RSVG_DELEGATE\" was never defined.
47004Usually this means the macro was only invoked conditionally." >&2;}
47005 { (exit 1); exit 1; }; }
47006fi
47007if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
47008 { { $as_echo "$as_me:$LINENO: error: conditional \"CAIRO_DELEGATE\" was never defined.
47009Usually this means the macro was only invoked conditionally." >&5
47010$as_echo "$as_me: error: conditional \"CAIRO_DELEGATE\" was never defined.
47011Usually this means the macro was only invoked conditionally." >&2;}
47012 { (exit 1); exit 1; }; }
47013fi
47014if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
47015 { { $as_echo "$as_me:$LINENO: error: conditional \"TIFF_DELEGATE\" was never defined.
47016Usually this means the macro was only invoked conditionally." >&5
47017$as_echo "$as_me: error: conditional \"TIFF_DELEGATE\" was never defined.
47018Usually this means the macro was only invoked conditionally." >&2;}
47019 { (exit 1); exit 1; }; }
47020fi
47021if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
47022 { { $as_echo "$as_me:$LINENO: error: conditional \"WMF_DELEGATE\" was never defined.
47023Usually this means the macro was only invoked conditionally." >&5
47024$as_echo "$as_me: error: conditional \"WMF_DELEGATE\" was never defined.
47025Usually this means the macro was only invoked conditionally." >&2;}
47026 { (exit 1); exit 1; }; }
47027fi
47028if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
47029 { { $as_echo "$as_me:$LINENO: error: conditional \"XML_DELEGATE\" was never defined.
47030Usually this means the macro was only invoked conditionally." >&5
47031$as_echo "$as_me: error: conditional \"XML_DELEGATE\" was never defined.
47032Usually this means the macro was only invoked conditionally." >&2;}
47033 { (exit 1); exit 1; }; }
47034fi
47035if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
47036 { { $as_echo "$as_me:$LINENO: error: conditional \"RPM_DELEGATE\" was never defined.
47037Usually this means the macro was only invoked conditionally." >&5
47038$as_echo "$as_me: error: conditional \"RPM_DELEGATE\" was never defined.
47039Usually this means the macro was only invoked conditionally." >&2;}
47040 { (exit 1); exit 1; }; }
47041fi
47042if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
47043 { { $as_echo "$as_me:$LINENO: error: conditional \"P7ZIP_DELEGATE\" was never defined.
47044Usually this means the macro was only invoked conditionally." >&5
47045$as_echo "$as_me: error: conditional \"P7ZIP_DELEGATE\" was never defined.
47046Usually this means the macro was only invoked conditionally." >&2;}
47047 { (exit 1); exit 1; }; }
47048fi
47049if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
47050 { { $as_echo "$as_me:$LINENO: error: conditional \"ZIP_DELEGATE\" was never defined.
47051Usually this means the macro was only invoked conditionally." >&5
47052$as_echo "$as_me: error: conditional \"ZIP_DELEGATE\" was never defined.
47053Usually this means the macro was only invoked conditionally." >&2;}
47054 { (exit 1); exit 1; }; }
47055fi
47056if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
47057 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
47058Usually this means the macro was only invoked conditionally." >&5
47059$as_echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
47060Usually this means the macro was only invoked conditionally." >&2;}
47061 { (exit 1); exit 1; }; }
47062fi
47063if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
47064 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_STATIC\" was never defined.
47065Usually this means the macro was only invoked conditionally." >&5
47066$as_echo "$as_me: error: conditional \"WITH_PERL_STATIC\" was never defined.
47067Usually this means the macro was only invoked conditionally." >&2;}
47068 { (exit 1); exit 1; }; }
47069fi
47070if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
47071 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
47072Usually this means the macro was only invoked conditionally." >&5
47073$as_echo "$as_me: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
47074Usually this means the macro was only invoked conditionally." >&2;}
47075 { (exit 1); exit 1; }; }
47076fi
47077
47078: ${CONFIG_STATUS=./config.status}
47079ac_write_fail=0
47080ac_clean_files_save=$ac_clean_files
47081ac_clean_files="$ac_clean_files $CONFIG_STATUS"
47082{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
47083$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
47084cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47085#! $SHELL
47086# Generated by $as_me.
47087# Run this file to recreate the current configuration.
47088# Compiler output produced by configure, useful for debugging
47089# configure, is in config.log if it exists.
47090
47091debug=false
47092ac_cs_recheck=false
47093ac_cs_silent=false
47094SHELL=\${CONFIG_SHELL-$SHELL}
47095_ACEOF
47096
47097cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47098## --------------------- ##
47099## M4sh Initialization. ##
47100## --------------------- ##
47101
47102# Be more Bourne compatible
47103DUALCASE=1; export DUALCASE # for MKS sh
47104if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
47105 emulate sh
47106 NULLCMD=:
47107 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47108 # is contrary to our usage. Disable this feature.
47109 alias -g '${1+"$@"}'='"$@"'
47110 setopt NO_GLOB_SUBST
47111else
47112 case `(set -o) 2>/dev/null` in
47113 *posix*) set -o posix ;;
47114esac
47115
47116fi
47117
47118
47119
47120
47121# PATH needs CR
47122# Avoid depending upon Character Ranges.
47123as_cr_letters='abcdefghijklmnopqrstuvwxyz'
47124as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
47125as_cr_Letters=$as_cr_letters$as_cr_LETTERS
47126as_cr_digits='0123456789'
47127as_cr_alnum=$as_cr_Letters$as_cr_digits
47128
47129as_nl='
47130'
47131export as_nl
47132# Printing a long string crashes Solaris 7 /usr/bin/printf.
47133as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47134as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
47135as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47136if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
47137 as_echo='printf %s\n'
47138 as_echo_n='printf %s'
47139else
47140 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
47141 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
47142 as_echo_n='/usr/ucb/echo -n'
47143 else
47144 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
47145 as_echo_n_body='eval
47146 arg=$1;
47147 case $arg in
47148 *"$as_nl"*)
47149 expr "X$arg" : "X\\(.*\\)$as_nl";
47150 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
47151 esac;
47152 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
47153 '
47154 export as_echo_n_body
47155 as_echo_n='sh -c $as_echo_n_body as_echo'
47156 fi
47157 export as_echo_body
47158 as_echo='sh -c $as_echo_body as_echo'
47159fi
47160
47161# The user is always right.
47162if test "${PATH_SEPARATOR+set}" != set; then
47163 PATH_SEPARATOR=:
47164 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
47165 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
47166 PATH_SEPARATOR=';'
47167 }
47168fi
47169
47170# Support unset when possible.
47171if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
47172 as_unset=unset
47173else
47174 as_unset=false
47175fi
47176
47177
47178# IFS
47179# We need space, tab and new line, in precisely that order. Quoting is
47180# there to prevent editors from complaining about space-tab.
47181# (If _AS_PATH_WALK were called with IFS unset, it would disable word
47182# splitting by setting IFS to empty value.)
47183IFS=" "" $as_nl"
47184
47185# Find who we are. Look in the path if we contain no directory separator.
47186case $0 in
47187 *[\\/]* ) as_myself=$0 ;;
47188 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47189for as_dir in $PATH
47190do
47191 IFS=$as_save_IFS
47192 test -z "$as_dir" && as_dir=.
47193 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
47194done
47195IFS=$as_save_IFS
47196
47197 ;;
47198esac
47199# We did not find ourselves, most probably we were run as `sh COMMAND'
47200# in which case we are not to be found in the path.
47201if test "x$as_myself" = x; then
47202 as_myself=$0
47203fi
47204if test ! -f "$as_myself"; then
47205 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
47206 { (exit 1); exit 1; }
47207fi
47208
47209# Work around bugs in pre-3.0 UWIN ksh.
47210for as_var in ENV MAIL MAILPATH
47211do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
47212done
47213PS1='$ '
47214PS2='> '
47215PS4='+ '
47216
47217# NLS nuisances.
47218LC_ALL=C
47219export LC_ALL
47220LANGUAGE=C
47221export LANGUAGE
47222
47223# Required to use basename.
47224if expr a : '\(a\)' >/dev/null 2>&1 &&
47225 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47226 as_expr=expr
47227else
47228 as_expr=false
47229fi
47230
47231if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
47232 as_basename=basename
47233else
47234 as_basename=false
47235fi
47236
47237
47238# Name of the executable.
47239as_me=`$as_basename -- "$0" ||
47240$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
47241 X"$0" : 'X\(//\)$' \| \
47242 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
47243$as_echo X/"$0" |
47244 sed '/^.*\/\([^/][^/]*\)\/*$/{
47245 s//\1/
47246 q
47247 }
47248 /^X\/\(\/\/\)$/{
47249 s//\1/
47250 q
47251 }
47252 /^X\/\(\/\).*/{
47253 s//\1/
47254 q
47255 }
47256 s/.*/./; q'`
47257
47258# CDPATH.
47259$as_unset CDPATH
47260
47261
47262
47263 as_lineno_1=$LINENO
47264 as_lineno_2=$LINENO
47265 test "x$as_lineno_1" != "x$as_lineno_2" &&
47266 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
47267
47268 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
47269 # uniformly replaced by the line number. The first 'sed' inserts a
47270 # line-number line after each line using $LINENO; the second 'sed'
47271 # does the real work. The second script uses 'N' to pair each
47272 # line-number line with the line containing $LINENO, and appends
47273 # trailing '-' during substitution so that $LINENO is not a special
47274 # case at line end.
47275 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
47276 # scripts with optimization help from Paolo Bonzini. Blame Lee
47277 # E. McMahon (1931-1989) for sed's syntax. :-)
47278 sed -n '
47279 p
47280 /[$]LINENO/=
47281 ' <$as_myself |
47282 sed '
47283 s/[$]LINENO.*/&-/
47284 t lineno
47285 b
47286 :lineno
47287 N
47288 :loop
47289 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
47290 t loop
47291 s/-\n.*//
47292 ' >$as_me.lineno &&
47293 chmod +x "$as_me.lineno" ||
47294 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
47295 { (exit 1); exit 1; }; }
47296
47297 # Don't try to exec as it changes $[0], causing all sort of problems
47298 # (the dirname of $[0] is not the place where we might find the
47299 # original and so on. Autoconf is especially sensitive to this).
47300 . "./$as_me.lineno"
47301 # Exit status is that of the last command.
47302 exit
47303}
47304
47305
47306if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
47307 as_dirname=dirname
47308else
47309 as_dirname=false
47310fi
47311
47312ECHO_C= ECHO_N= ECHO_T=
47313case `echo -n x` in
47314-n*)
47315 case `echo 'x\c'` in
47316 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
47317 *) ECHO_C='\c';;
47318 esac;;
47319*)
47320 ECHO_N='-n';;
47321esac
47322if expr a : '\(a\)' >/dev/null 2>&1 &&
47323 test "X`expr 00001 : '.*\(...\)'`" = X001; then
47324 as_expr=expr
47325else
47326 as_expr=false
47327fi
47328
47329rm -f conf$$ conf$$.exe conf$$.file
47330if test -d conf$$.dir; then
47331 rm -f conf$$.dir/conf$$.file
47332else
47333 rm -f conf$$.dir
47334 mkdir conf$$.dir 2>/dev/null
47335fi
47336if (echo >conf$$.file) 2>/dev/null; then
47337 if ln -s conf$$.file conf$$ 2>/dev/null; then
47338 as_ln_s='ln -s'
47339 # ... but there are two gotchas:
47340 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
47341 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
47342 # In both cases, we have to default to `cp -p'.
47343 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
47344 as_ln_s='cp -p'
47345 elif ln conf$$.file conf$$ 2>/dev/null; then
47346 as_ln_s=ln
47347 else
47348 as_ln_s='cp -p'
47349 fi
47350else
47351 as_ln_s='cp -p'
47352fi
47353rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
47354rmdir conf$$.dir 2>/dev/null
47355
47356if mkdir -p . 2>/dev/null; then
47357 as_mkdir_p=:
47358else
47359 test -d ./-p && rmdir ./-p
47360 as_mkdir_p=false
47361fi
47362
47363if test -x / >/dev/null 2>&1; then
47364 as_test_x='test -x'
47365else
47366 if ls -dL / >/dev/null 2>&1; then
47367 as_ls_L_option=L
47368 else
47369 as_ls_L_option=
47370 fi
47371 as_test_x='
47372 eval sh -c '\''
47373 if test -d "$1"; then
47374 test -d "$1/.";
47375 else
47376 case $1 in
47377 -*)set "./$1";;
47378 esac;
47379 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
47380 ???[sx]*):;;*)false;;esac;fi
47381 '\'' sh
47382 '
47383fi
47384as_executable_p=$as_test_x
47385
47386# Sed expression to map a string onto a valid CPP name.
47387as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47388
47389# Sed expression to map a string onto a valid variable name.
47390as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47391
47392
47393exec 6>&1
47394
47395# Save the log message, to keep $[0] and so on meaningful, and to
47396# report actual input values of CONFIG_FILES etc. instead of their
47397# values after options handling.
47398ac_log="
cristyd934d102009-10-10 12:55:13 +000047399This file was extended by ImageMagick $as_me 6.5.7, which was
cristy3ed852e2009-09-05 21:47:34 +000047400generated by GNU Autoconf 2.63. Invocation command line was
47401
47402 CONFIG_FILES = $CONFIG_FILES
47403 CONFIG_HEADERS = $CONFIG_HEADERS
47404 CONFIG_LINKS = $CONFIG_LINKS
47405 CONFIG_COMMANDS = $CONFIG_COMMANDS
47406 $ $0 $@
47407
47408on `(hostname || uname -n) 2>/dev/null | sed 1q`
47409"
47410
47411_ACEOF
47412
47413case $ac_config_files in *"
47414"*) set x $ac_config_files; shift; ac_config_files=$*;;
47415esac
47416
47417case $ac_config_headers in *"
47418"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
47419esac
47420
47421
47422cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47423# Files that config.status was made for.
47424config_files="$ac_config_files"
47425config_headers="$ac_config_headers"
47426config_commands="$ac_config_commands"
47427
47428_ACEOF
47429
47430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47431ac_cs_usage="\
47432\`$as_me' instantiates files from templates according to the
47433current configuration.
47434
47435Usage: $0 [OPTION]... [FILE]...
47436
47437 -h, --help print this help, then exit
47438 -V, --version print version number and configuration settings, then exit
47439 -q, --quiet, --silent
47440 do not print progress messages
47441 -d, --debug don't remove temporary files
47442 --recheck update $as_me by reconfiguring in the same conditions
47443 --file=FILE[:TEMPLATE]
47444 instantiate the configuration file FILE
47445 --header=FILE[:TEMPLATE]
47446 instantiate the configuration header FILE
47447
47448Configuration files:
47449$config_files
47450
47451Configuration headers:
47452$config_headers
47453
47454Configuration commands:
47455$config_commands
47456
47457Report bugs to <bug-autoconf@gnu.org>."
47458
47459_ACEOF
47460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47461ac_cs_version="\\
cristyd934d102009-10-10 12:55:13 +000047462ImageMagick config.status 6.5.7
cristy3ed852e2009-09-05 21:47:34 +000047463configured by $0, generated by GNU Autoconf 2.63,
47464 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
47465
47466Copyright (C) 2008 Free Software Foundation, Inc.
47467This config.status script is free software; the Free Software Foundation
47468gives unlimited permission to copy, distribute and modify it."
47469
47470ac_pwd='$ac_pwd'
47471srcdir='$srcdir'
47472INSTALL='$INSTALL'
47473MKDIR_P='$MKDIR_P'
47474AWK='$AWK'
47475test -n "\$AWK" || AWK=awk
47476_ACEOF
47477
47478cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47479# The default lists apply if the user does not specify any file.
47480ac_need_defaults=:
47481while test $# != 0
47482do
47483 case $1 in
47484 --*=*)
47485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
47486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
47487 ac_shift=:
47488 ;;
47489 *)
47490 ac_option=$1
47491 ac_optarg=$2
47492 ac_shift=shift
47493 ;;
47494 esac
47495
47496 case $ac_option in
47497 # Handling of the options.
47498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47499 ac_cs_recheck=: ;;
47500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
47501 $as_echo "$ac_cs_version"; exit ;;
47502 --debug | --debu | --deb | --de | --d | -d )
47503 debug=: ;;
47504 --file | --fil | --fi | --f )
47505 $ac_shift
47506 case $ac_optarg in
47507 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47508 esac
47509 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
47510 ac_need_defaults=false;;
47511 --header | --heade | --head | --hea )
47512 $ac_shift
47513 case $ac_optarg in
47514 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47515 esac
47516 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
47517 ac_need_defaults=false;;
47518 --he | --h)
47519 # Conflict between --help and --header
47520 { $as_echo "$as_me: error: ambiguous option: $1
47521Try \`$0 --help' for more information." >&2
47522 { (exit 1); exit 1; }; };;
47523 --help | --hel | -h )
47524 $as_echo "$ac_cs_usage"; exit ;;
47525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47526 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47527 ac_cs_silent=: ;;
47528
47529 # This is an error.
47530 -*) { $as_echo "$as_me: error: unrecognized option: $1
47531Try \`$0 --help' for more information." >&2
47532 { (exit 1); exit 1; }; } ;;
47533
47534 *) ac_config_targets="$ac_config_targets $1"
47535 ac_need_defaults=false ;;
47536
47537 esac
47538 shift
47539done
47540
47541ac_configure_extra_args=
47542
47543if $ac_cs_silent; then
47544 exec 6>/dev/null
47545 ac_configure_extra_args="$ac_configure_extra_args --silent"
47546fi
47547
47548_ACEOF
47549cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47550if \$ac_cs_recheck; then
47551 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47552 shift
47553 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
47554 CONFIG_SHELL='$SHELL'
47555 export CONFIG_SHELL
47556 exec "\$@"
47557fi
47558
47559_ACEOF
47560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47561exec 5>>config.log
47562{
47563 echo
47564 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47565## Running $as_me. ##
47566_ASBOX
47567 $as_echo "$ac_log"
47568} >&5
47569
47570_ACEOF
47571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47572#
47573# INIT-COMMANDS
47574#
47575PACKAGE="$PACKAGE"
47576AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
47577
47578
47579# The HP-UX ksh and POSIX shell print the target directory to stdout
47580# if CDPATH is set.
47581(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
47582
47583sed_quote_subst='$sed_quote_subst'
47584double_quote_subst='$double_quote_subst'
47585delay_variable_subst='$delay_variable_subst'
47586SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
47587Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
47588GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
47589EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
47590FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
47591LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
47592macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
47593macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
47594AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
47595DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
47596OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
47597enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
47598enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
47599pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
47600enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
47601host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
47602host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
47603host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
47604build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
47605build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
47606build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
47607NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
47608LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
47609max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
47610ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
47611exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
47612lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
47613lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
47614lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
47615reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
47616reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47617deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
47618file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
47619AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
47620AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
47621STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
47622RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
47623old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47624old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47625old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47626CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
47627CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
47628compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
47629GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
47630lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
47631lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
47632lt_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"`'
47633lt_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"`'
47634objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
47635SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
47636ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
47637MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
47638lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
47639lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
47640lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
47641lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
47642lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
47643need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
47644DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
47645NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
47646LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
47647OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
47648OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
47649libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
47650shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47651extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47652archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
47653enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
47654export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47655whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47656compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
47657old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47658old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47659archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47660archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47661module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47662module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47663with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
47664allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
47665no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
47666hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
47667hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
47668hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
47669hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
47670hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
47671hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
47672hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47673hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
47674inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
47675link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
47676fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
47677always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
47678export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47679exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
47680include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
47681prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47682file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
47683variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
47684need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
47685need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
47686version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
47687runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47688shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
47689shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
47690libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
47691library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
47692soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
47693postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47694postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47695finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
47696finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
47697hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
47698sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
47699sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
47700hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
47701enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
47702enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
47703enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
47704old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
47705striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
47706compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
47707predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
47708postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
47709predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
47710postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
47711compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
47712LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47713old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47714compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47715GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47716lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47717lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47718lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47719lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47720lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47721archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47722enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47723export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47724whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47725compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47726old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47727old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47728archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47729archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47730module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47731module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47732with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47733allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47734no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47735hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47736hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47737hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47738hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47739hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47740hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47741hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47742hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47743inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47744link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47745fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47746always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47747export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47748exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47749include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47750prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47751file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47752hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47753compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47754predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47755postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47756predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47757postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47758compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
47759
47760LTCC='$LTCC'
47761LTCFLAGS='$LTCFLAGS'
47762compiler='$compiler_DEFAULT'
47763
47764# Quote evaled strings.
47765for var in SED \
47766GREP \
47767EGREP \
47768FGREP \
47769LD \
47770NM \
47771LN_S \
47772lt_SP2NL \
47773lt_NL2SP \
47774reload_flag \
47775deplibs_check_method \
47776file_magic_cmd \
47777AR \
47778AR_FLAGS \
47779STRIP \
47780RANLIB \
47781CC \
47782CFLAGS \
47783compiler \
47784lt_cv_sys_global_symbol_pipe \
47785lt_cv_sys_global_symbol_to_cdecl \
47786lt_cv_sys_global_symbol_to_c_name_address \
47787lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
47788SHELL \
47789ECHO \
47790lt_prog_compiler_no_builtin_flag \
47791lt_prog_compiler_wl \
47792lt_prog_compiler_pic \
47793lt_prog_compiler_static \
47794lt_cv_prog_compiler_c_o \
47795need_locks \
47796DSYMUTIL \
47797NMEDIT \
47798LIPO \
47799OTOOL \
47800OTOOL64 \
47801shrext_cmds \
47802export_dynamic_flag_spec \
47803whole_archive_flag_spec \
47804compiler_needs_object \
47805with_gnu_ld \
47806allow_undefined_flag \
47807no_undefined_flag \
47808hardcode_libdir_flag_spec \
47809hardcode_libdir_flag_spec_ld \
47810hardcode_libdir_separator \
47811fix_srcfile_path \
47812exclude_expsyms \
47813include_expsyms \
47814file_list_spec \
47815variables_saved_for_relink \
47816libname_spec \
47817library_names_spec \
47818soname_spec \
47819finish_eval \
47820old_striplib \
47821striplib \
47822compiler_lib_search_dirs \
47823predep_objects \
47824postdep_objects \
47825predeps \
47826postdeps \
47827compiler_lib_search_path \
47828LD_CXX \
47829compiler_CXX \
47830lt_prog_compiler_no_builtin_flag_CXX \
47831lt_prog_compiler_wl_CXX \
47832lt_prog_compiler_pic_CXX \
47833lt_prog_compiler_static_CXX \
47834lt_cv_prog_compiler_c_o_CXX \
47835export_dynamic_flag_spec_CXX \
47836whole_archive_flag_spec_CXX \
47837compiler_needs_object_CXX \
47838with_gnu_ld_CXX \
47839allow_undefined_flag_CXX \
47840no_undefined_flag_CXX \
47841hardcode_libdir_flag_spec_CXX \
47842hardcode_libdir_flag_spec_ld_CXX \
47843hardcode_libdir_separator_CXX \
47844fix_srcfile_path_CXX \
47845exclude_expsyms_CXX \
47846include_expsyms_CXX \
47847file_list_spec_CXX \
47848compiler_lib_search_dirs_CXX \
47849predep_objects_CXX \
47850postdep_objects_CXX \
47851predeps_CXX \
47852postdeps_CXX \
47853compiler_lib_search_path_CXX; do
47854 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47855 *[\\\\\\\`\\"\\\$]*)
47856 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
47857 ;;
47858 *)
47859 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47860 ;;
47861 esac
47862done
47863
47864# Double-quote double-evaled strings.
47865for var in reload_cmds \
47866old_postinstall_cmds \
47867old_postuninstall_cmds \
47868old_archive_cmds \
47869extract_expsyms_cmds \
47870old_archive_from_new_cmds \
47871old_archive_from_expsyms_cmds \
47872archive_cmds \
47873archive_expsym_cmds \
47874module_cmds \
47875module_expsym_cmds \
47876export_symbols_cmds \
47877prelink_cmds \
47878postinstall_cmds \
47879postuninstall_cmds \
47880finish_cmds \
47881sys_lib_search_path_spec \
47882sys_lib_dlsearch_path_spec \
47883old_archive_cmds_CXX \
47884old_archive_from_new_cmds_CXX \
47885old_archive_from_expsyms_cmds_CXX \
47886archive_cmds_CXX \
47887archive_expsym_cmds_CXX \
47888module_cmds_CXX \
47889module_expsym_cmds_CXX \
47890export_symbols_cmds_CXX \
47891prelink_cmds_CXX; do
47892 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47893 *[\\\\\\\`\\"\\\$]*)
47894 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
47895 ;;
47896 *)
47897 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47898 ;;
47899 esac
47900done
47901
47902# Fix-up fallback echo if it was mangled by the above quoting rules.
47903case \$lt_ECHO in
47904*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
47905 ;;
47906esac
47907
47908ac_aux_dir='$ac_aux_dir'
47909xsi_shell='$xsi_shell'
47910lt_shell_append='$lt_shell_append'
47911
47912# See if we are running on zsh, and set the options which allow our
47913# commands through without removal of \ escapes INIT.
47914if test -n "\${ZSH_VERSION+set}" ; then
47915 setopt NO_GLOB_SUBST
47916fi
47917
47918
47919 PACKAGE='$PACKAGE'
47920 VERSION='$VERSION'
47921 TIMESTAMP='$TIMESTAMP'
47922 RM='$RM'
47923 ofile='$ofile'
47924
47925
47926
47927
47928
47929
47930_ACEOF
47931
47932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47933
47934# Handling of arguments.
47935for ac_config_target in $ac_config_targets
47936do
47937 case $ac_config_target in
47938 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
47939 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
47940 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
47941 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
47942 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
47943 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
47944 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
47945 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
47946 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
47947 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
47948 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
47949 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
47950 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
47951 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
47952 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
47953 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
47954 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
47955 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
47956 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
47957 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47958 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
47959 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
47960 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
47961 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
47962 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
47963 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
47964 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
47965 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
47966 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
47967 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
47968 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
47969 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
47970 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
47971 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
47972 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
47973 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
47974 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
47975 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
47976 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
47977 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
47978 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
47979 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
47980 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
47981 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
47982 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
47983 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
47984 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
47985 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
47986 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
47987
47988 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47989$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47990 { (exit 1); exit 1; }; };;
47991 esac
47992done
47993
47994
47995# If the user did not use the arguments to specify the items to instantiate,
47996# then the envvar interface is used. Set only those that are not.
47997# We use the long form for the default assignment because of an extremely
47998# bizarre bug on SunOS 4.1.3.
47999if $ac_need_defaults; then
48000 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
48001 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
48002 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
48003fi
48004
48005# Have a temporary directory for convenience. Make it in the build tree
48006# simply because there is no reason against having it here, and in addition,
48007# creating and moving files from /tmp can sometimes cause problems.
48008# Hook for its removal unless debugging.
48009# Note that there is a small window in which the directory will not be cleaned:
48010# after its creation but before its name has been assigned to `$tmp'.
48011$debug ||
48012{
48013 tmp=
48014 trap 'exit_status=$?
48015 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
48016' 0
48017 trap '{ (exit 1); exit 1; }' 1 2 13 15
48018}
48019# Create a (secure) tmp directory for tmp files.
48020
48021{
48022 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
48023 test -n "$tmp" && test -d "$tmp"
48024} ||
48025{
48026 tmp=./conf$$-$RANDOM
48027 (umask 077 && mkdir "$tmp")
48028} ||
48029{
48030 $as_echo "$as_me: cannot create a temporary directory in ." >&2
48031 { (exit 1); exit 1; }
48032}
48033
48034# Set up the scripts for CONFIG_FILES section.
48035# No need to generate them if there are no CONFIG_FILES.
48036# This happens for instance with `./config.status config.h'.
48037if test -n "$CONFIG_FILES"; then
48038
48039
48040ac_cr=' '
48041ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
48042if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
48043 ac_cs_awk_cr='\\r'
48044else
48045 ac_cs_awk_cr=$ac_cr
48046fi
48047
48048echo 'BEGIN {' >"$tmp/subs1.awk" &&
48049_ACEOF
48050
48051
48052{
48053 echo "cat >conf$$subs.awk <<_ACEOF" &&
48054 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
48055 echo "_ACEOF"
48056} >conf$$subs.sh ||
48057 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48058$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48059 { (exit 1); exit 1; }; }
48060ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
48061ac_delim='%!_!# '
48062for ac_last_try in false false false false false :; do
48063 . ./conf$$subs.sh ||
48064 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48065$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48066 { (exit 1); exit 1; }; }
48067
48068 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
48069 if test $ac_delim_n = $ac_delim_num; then
48070 break
48071 elif $ac_last_try; then
48072 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
48073$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
48074 { (exit 1); exit 1; }; }
48075 else
48076 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48077 fi
48078done
48079rm -f conf$$subs.sh
48080
48081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48082cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
48083_ACEOF
48084sed -n '
48085h
48086s/^/S["/; s/!.*/"]=/
48087p
48088g
48089s/^[^!]*!//
48090:repl
48091t repl
48092s/'"$ac_delim"'$//
48093t delim
48094:nl
48095h
48096s/\(.\{148\}\).*/\1/
48097t more1
48098s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
48099p
48100n
48101b repl
48102:more1
48103s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48104p
48105g
48106s/.\{148\}//
48107t nl
48108:delim
48109h
48110s/\(.\{148\}\).*/\1/
48111t more2
48112s/["\\]/\\&/g; s/^/"/; s/$/"/
48113p
48114b
48115:more2
48116s/["\\]/\\&/g; s/^/"/; s/$/"\\/
48117p
48118g
48119s/.\{148\}//
48120t delim
48121' <conf$$subs.awk | sed '
48122/^[^""]/{
48123 N
48124 s/\n//
48125}
48126' >>$CONFIG_STATUS || ac_write_fail=1
48127rm -f conf$$subs.awk
48128cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48129_ACAWK
48130cat >>"\$tmp/subs1.awk" <<_ACAWK &&
48131 for (key in S) S_is_set[key] = 1
48132 FS = ""
48133
48134}
48135{
48136 line = $ 0
48137 nfields = split(line, field, "@")
48138 substed = 0
48139 len = length(field[1])
48140 for (i = 2; i < nfields; i++) {
48141 key = field[i]
48142 keylen = length(key)
48143 if (S_is_set[key]) {
48144 value = S[key]
48145 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
48146 len += length(value) + length(field[++i])
48147 substed = 1
48148 } else
48149 len += 1 + keylen
48150 }
48151
48152 print line
48153}
48154
48155_ACAWK
48156_ACEOF
48157cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48158if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
48159 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
48160else
48161 cat
48162fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
48163 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
48164$as_echo "$as_me: error: could not setup config files machinery" >&2;}
48165 { (exit 1); exit 1; }; }
48166_ACEOF
48167
48168# VPATH may cause trouble with some makes, so we remove $(srcdir),
48169# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
48170# trailing colons and then remove the whole line if VPATH becomes empty
48171# (actually we leave an empty line to preserve line numbers).
48172if test "x$srcdir" = x.; then
48173 ac_vpsub='/^[ ]*VPATH[ ]*=/{
48174s/:*\$(srcdir):*/:/
48175s/:*\${srcdir}:*/:/
48176s/:*@srcdir@:*/:/
48177s/^\([^=]*=[ ]*\):*/\1/
48178s/:*$//
48179s/^[^=]*=[ ]*$//
48180}'
48181fi
48182
48183cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48184fi # test -n "$CONFIG_FILES"
48185
48186# Set up the scripts for CONFIG_HEADERS section.
48187# No need to generate them if there are no CONFIG_HEADERS.
48188# This happens for instance with `./config.status Makefile'.
48189if test -n "$CONFIG_HEADERS"; then
48190cat >"$tmp/defines.awk" <<\_ACAWK ||
48191BEGIN {
48192_ACEOF
48193
48194# Transform confdefs.h into an awk script `defines.awk', embedded as
48195# here-document in config.status, that substitutes the proper values into
48196# config.h.in to produce config.h.
48197
48198# Create a delimiter string that does not exist in confdefs.h, to ease
48199# handling of long lines.
48200ac_delim='%!_!# '
48201for ac_last_try in false false :; do
48202 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
48203 if test -z "$ac_t"; then
48204 break
48205 elif $ac_last_try; then
48206 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
48207$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
48208 { (exit 1); exit 1; }; }
48209 else
48210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
48211 fi
48212done
48213
48214# For the awk script, D is an array of macro values keyed by name,
48215# likewise P contains macro parameters if any. Preserve backslash
48216# newline sequences.
48217
48218ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
48219sed -n '
48220s/.\{148\}/&'"$ac_delim"'/g
48221t rset
48222:rset
48223s/^[ ]*#[ ]*define[ ][ ]*/ /
48224t def
48225d
48226:def
48227s/\\$//
48228t bsnl
48229s/["\\]/\\&/g
48230s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48231D["\1"]=" \3"/p
48232s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
48233d
48234:bsnl
48235s/["\\]/\\&/g
48236s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
48237D["\1"]=" \3\\\\\\n"\\/p
48238t cont
48239s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
48240t cont
48241d
48242:cont
48243n
48244s/.\{148\}/&'"$ac_delim"'/g
48245t clear
48246:clear
48247s/\\$//
48248t bsnlc
48249s/["\\]/\\&/g; s/^/"/; s/$/"/p
48250d
48251:bsnlc
48252s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
48253b cont
48254' <confdefs.h | sed '
48255s/'"$ac_delim"'/"\\\
48256"/g' >>$CONFIG_STATUS || ac_write_fail=1
48257
48258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48259 for (key in D) D_is_set[key] = 1
48260 FS = ""
48261}
48262/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
48263 line = \$ 0
48264 split(line, arg, " ")
48265 if (arg[1] == "#") {
48266 defundef = arg[2]
48267 mac1 = arg[3]
48268 } else {
48269 defundef = substr(arg[1], 2)
48270 mac1 = arg[2]
48271 }
48272 split(mac1, mac2, "(") #)
48273 macro = mac2[1]
48274 prefix = substr(line, 1, index(line, defundef) - 1)
48275 if (D_is_set[macro]) {
48276 # Preserve the white space surrounding the "#".
48277 print prefix "define", macro P[macro] D[macro]
48278 next
48279 } else {
48280 # Replace #undef with comments. This is necessary, for example,
48281 # in the case of _POSIX_SOURCE, which is predefined and required
48282 # on some systems where configure will not decide to define it.
48283 if (defundef == "undef") {
48284 print "/*", prefix defundef, macro, "*/"
48285 next
48286 }
48287 }
48288}
48289{ print }
48290_ACAWK
48291_ACEOF
48292cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48293 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
48294$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
48295 { (exit 1); exit 1; }; }
48296fi # test -n "$CONFIG_HEADERS"
48297
48298
48299eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
48300shift
48301for ac_tag
48302do
48303 case $ac_tag in
48304 :[FHLC]) ac_mode=$ac_tag; continue;;
48305 esac
48306 case $ac_mode$ac_tag in
48307 :[FHL]*:*);;
48308 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
48309$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
48310 { (exit 1); exit 1; }; };;
48311 :[FH]-) ac_tag=-:-;;
48312 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
48313 esac
48314 ac_save_IFS=$IFS
48315 IFS=:
48316 set x $ac_tag
48317 IFS=$ac_save_IFS
48318 shift
48319 ac_file=$1
48320 shift
48321
48322 case $ac_mode in
48323 :L) ac_source=$1;;
48324 :[FH])
48325 ac_file_inputs=
48326 for ac_f
48327 do
48328 case $ac_f in
48329 -) ac_f="$tmp/stdin";;
48330 *) # Look for the file first in the build tree, then in the source tree
48331 # (if the path is not absolute). The absolute path cannot be DOS-style,
48332 # because $ac_f cannot contain `:'.
48333 test -f "$ac_f" ||
48334 case $ac_f in
48335 [\\/$]*) false;;
48336 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
48337 esac ||
48338 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
48339$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
48340 { (exit 1); exit 1; }; };;
48341 esac
48342 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
48343 ac_file_inputs="$ac_file_inputs '$ac_f'"
48344 done
48345
48346 # Let's still pretend it is `configure' which instantiates (i.e., don't
48347 # use $as_me), people would be surprised to read:
48348 # /* config.h. Generated by config.status. */
48349 configure_input='Generated from '`
48350 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
48351 `' by configure.'
48352 if test x"$ac_file" != x-; then
48353 configure_input="$ac_file. $configure_input"
48354 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
48355$as_echo "$as_me: creating $ac_file" >&6;}
48356 fi
48357 # Neutralize special characters interpreted by sed in replacement strings.
48358 case $configure_input in #(
48359 *\&* | *\|* | *\\* )
48360 ac_sed_conf_input=`$as_echo "$configure_input" |
48361 sed 's/[\\\\&|]/\\\\&/g'`;; #(
48362 *) ac_sed_conf_input=$configure_input;;
48363 esac
48364
48365 case $ac_tag in
48366 *:-:* | *:-) cat >"$tmp/stdin" \
48367 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48368$as_echo "$as_me: error: could not create $ac_file" >&2;}
48369 { (exit 1); exit 1; }; } ;;
48370 esac
48371 ;;
48372 esac
48373
48374 ac_dir=`$as_dirname -- "$ac_file" ||
48375$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48376 X"$ac_file" : 'X\(//\)[^/]' \| \
48377 X"$ac_file" : 'X\(//\)$' \| \
48378 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
48379$as_echo X"$ac_file" |
48380 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48381 s//\1/
48382 q
48383 }
48384 /^X\(\/\/\)[^/].*/{
48385 s//\1/
48386 q
48387 }
48388 /^X\(\/\/\)$/{
48389 s//\1/
48390 q
48391 }
48392 /^X\(\/\).*/{
48393 s//\1/
48394 q
48395 }
48396 s/.*/./; q'`
48397 { as_dir="$ac_dir"
48398 case $as_dir in #(
48399 -*) as_dir=./$as_dir;;
48400 esac
48401 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48402 as_dirs=
48403 while :; do
48404 case $as_dir in #(
48405 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48406 *) as_qdir=$as_dir;;
48407 esac
48408 as_dirs="'$as_qdir' $as_dirs"
48409 as_dir=`$as_dirname -- "$as_dir" ||
48410$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48411 X"$as_dir" : 'X\(//\)[^/]' \| \
48412 X"$as_dir" : 'X\(//\)$' \| \
48413 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48414$as_echo X"$as_dir" |
48415 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48416 s//\1/
48417 q
48418 }
48419 /^X\(\/\/\)[^/].*/{
48420 s//\1/
48421 q
48422 }
48423 /^X\(\/\/\)$/{
48424 s//\1/
48425 q
48426 }
48427 /^X\(\/\).*/{
48428 s//\1/
48429 q
48430 }
48431 s/.*/./; q'`
48432 test -d "$as_dir" && break
48433 done
48434 test -z "$as_dirs" || eval "mkdir $as_dirs"
48435 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48436$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48437 { (exit 1); exit 1; }; }; }
48438 ac_builddir=.
48439
48440case "$ac_dir" in
48441.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
48442*)
48443 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
48444 # A ".." for each directory in $ac_dir_suffix.
48445 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
48446 case $ac_top_builddir_sub in
48447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
48448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
48449 esac ;;
48450esac
48451ac_abs_top_builddir=$ac_pwd
48452ac_abs_builddir=$ac_pwd$ac_dir_suffix
48453# for backward compatibility:
48454ac_top_builddir=$ac_top_build_prefix
48455
48456case $srcdir in
48457 .) # We are building in place.
48458 ac_srcdir=.
48459 ac_top_srcdir=$ac_top_builddir_sub
48460 ac_abs_top_srcdir=$ac_pwd ;;
48461 [\\/]* | ?:[\\/]* ) # Absolute name.
48462 ac_srcdir=$srcdir$ac_dir_suffix;
48463 ac_top_srcdir=$srcdir
48464 ac_abs_top_srcdir=$srcdir ;;
48465 *) # Relative name.
48466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
48467 ac_top_srcdir=$ac_top_build_prefix$srcdir
48468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
48469esac
48470ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
48471
48472
48473 case $ac_mode in
48474 :F)
48475 #
48476 # CONFIG_FILE
48477 #
48478
48479 case $INSTALL in
48480 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
48481 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
48482 esac
48483 ac_MKDIR_P=$MKDIR_P
48484 case $MKDIR_P in
48485 [\\/$]* | ?:[\\/]* ) ;;
48486 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
48487 esac
48488_ACEOF
48489
48490cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48491# If the template does not know about datarootdir, expand it.
48492# FIXME: This hack should be removed a few years after 2.60.
48493ac_datarootdir_hack=; ac_datarootdir_seen=
48494
48495ac_sed_dataroot='
48496/datarootdir/ {
48497 p
48498 q
48499}
48500/@datadir@/p
48501/@docdir@/p
48502/@infodir@/p
48503/@localedir@/p
48504/@mandir@/p
48505'
48506case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
48507*datarootdir*) ac_datarootdir_seen=yes;;
48508*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
48509 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
48510$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
48511_ACEOF
48512cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48513 ac_datarootdir_hack='
48514 s&@datadir@&$datadir&g
48515 s&@docdir@&$docdir&g
48516 s&@infodir@&$infodir&g
48517 s&@localedir@&$localedir&g
48518 s&@mandir@&$mandir&g
48519 s&\\\${datarootdir}&$datarootdir&g' ;;
48520esac
48521_ACEOF
48522
48523# Neutralize VPATH when `$srcdir' = `.'.
48524# Shell code in configure.ac might set extrasub.
48525# FIXME: do we really want to maintain this feature?
48526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48527ac_sed_extra="$ac_vpsub
48528$extrasub
48529_ACEOF
48530cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48531:t
48532/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
48533s|@configure_input@|$ac_sed_conf_input|;t t
48534s&@top_builddir@&$ac_top_builddir_sub&;t t
48535s&@top_build_prefix@&$ac_top_build_prefix&;t t
48536s&@srcdir@&$ac_srcdir&;t t
48537s&@abs_srcdir@&$ac_abs_srcdir&;t t
48538s&@top_srcdir@&$ac_top_srcdir&;t t
48539s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
48540s&@builddir@&$ac_builddir&;t t
48541s&@abs_builddir@&$ac_abs_builddir&;t t
48542s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
48543s&@INSTALL@&$ac_INSTALL&;t t
48544s&@MKDIR_P@&$ac_MKDIR_P&;t t
48545$ac_datarootdir_hack
48546"
48547eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
48548 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48549$as_echo "$as_me: error: could not create $ac_file" >&2;}
48550 { (exit 1); exit 1; }; }
48551
48552test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
48553 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
48554 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
48555 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48556which seems to be undefined. Please make sure it is defined." >&5
48557$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48558which seems to be undefined. Please make sure it is defined." >&2;}
48559
48560 rm -f "$tmp/stdin"
48561 case $ac_file in
48562 -) cat "$tmp/out" && rm -f "$tmp/out";;
48563 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
48564 esac \
48565 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48566$as_echo "$as_me: error: could not create $ac_file" >&2;}
48567 { (exit 1); exit 1; }; }
48568 ;;
48569 :H)
48570 #
48571 # CONFIG_HEADER
48572 #
48573 if test x"$ac_file" != x-; then
48574 {
48575 $as_echo "/* $configure_input */" \
48576 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
48577 } >"$tmp/config.h" \
48578 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48579$as_echo "$as_me: error: could not create $ac_file" >&2;}
48580 { (exit 1); exit 1; }; }
48581 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
48582 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
48583$as_echo "$as_me: $ac_file is unchanged" >&6;}
48584 else
48585 rm -f "$ac_file"
48586 mv "$tmp/config.h" "$ac_file" \
48587 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
48588$as_echo "$as_me: error: could not create $ac_file" >&2;}
48589 { (exit 1); exit 1; }; }
48590 fi
48591 else
48592 $as_echo "/* $configure_input */" \
48593 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
48594 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
48595$as_echo "$as_me: error: could not create -" >&2;}
48596 { (exit 1); exit 1; }; }
48597 fi
48598# Compute "$ac_file"'s index in $config_headers.
48599_am_arg="$ac_file"
48600_am_stamp_count=1
48601for _am_header in $config_headers :; do
48602 case $_am_header in
48603 $_am_arg | $_am_arg:* )
48604 break ;;
48605 * )
48606 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
48607 esac
48608done
48609echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
48610$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48611 X"$_am_arg" : 'X\(//\)[^/]' \| \
48612 X"$_am_arg" : 'X\(//\)$' \| \
48613 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
48614$as_echo X"$_am_arg" |
48615 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48616 s//\1/
48617 q
48618 }
48619 /^X\(\/\/\)[^/].*/{
48620 s//\1/
48621 q
48622 }
48623 /^X\(\/\/\)$/{
48624 s//\1/
48625 q
48626 }
48627 /^X\(\/\).*/{
48628 s//\1/
48629 q
48630 }
48631 s/.*/./; q'`/stamp-h$_am_stamp_count
48632 ;;
48633
48634 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
48635$as_echo "$as_me: executing $ac_file commands" >&6;}
48636 ;;
48637 esac
48638
48639
48640 case $ac_file$ac_mode in
48641 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
48642ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
48643ac_prefix_conf_PKG=`echo MagickCore`
48644ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
48645ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
48646ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
48647if test ".$ac_prefix_conf_INP" = "."; then
48648 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
48649 case "$ac_file" in
48650 *.h) ac_prefix_conf_INP=$ac_file ;;
48651 *)
48652 esac
48653 test ".$ac_prefix_conf_INP" != "." && break
48654 done
48655fi
48656if test ".$ac_prefix_conf_INP" = "."; then
48657 case "$ac_prefix_conf_OUT" in
48658 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
48659 ;;
48660 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
48661 ;;
48662 *) ac_prefix_conf_INP=config.h
48663 ;;
48664 esac
48665fi
48666if test -z "$ac_prefix_conf_PKG" ; then
48667 { { $as_echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
48668$as_echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
48669 { (exit 1); exit 1; }; }
48670else
48671 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
48672 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
48673 fi fi
48674 { $as_echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
48675$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
48676 if test -f $ac_prefix_conf_INP ; then
48677 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
48678 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
48679 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
48680 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
48681 echo "#endif/" >>conftest.prefix
48682 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
48683 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
48684 echo "#endif/" >> conftest.prefix
48685 # now executing _script on _DEF input to create _OUT output file
48686 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
48687 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
48688 echo ' ' >>$tmp/pconfig.h
48689 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
48690
48691 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
48692 echo ' ' >>$tmp/pconfig.h
48693 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
48694 echo "#endif" >>$tmp/pconfig.h
48695 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
48696 { $as_echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
48697$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
48698 else
48699 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
48700$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48701 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
48702 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
48703 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
48704$as_echo X"$ac_prefix_conf_OUT" |
48705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48706 s//\1/
48707 q
48708 }
48709 /^X\(\/\/\)[^/].*/{
48710 s//\1/
48711 q
48712 }
48713 /^X\(\/\/\)$/{
48714 s//\1/
48715 q
48716 }
48717 /^X\(\/\).*/{
48718 s//\1/
48719 q
48720 }
48721 s/.*/./; q'`
48722 { as_dir="$ac_dir"
48723 case $as_dir in #(
48724 -*) as_dir=./$as_dir;;
48725 esac
48726 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48727 as_dirs=
48728 while :; do
48729 case $as_dir in #(
48730 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48731 *) as_qdir=$as_dir;;
48732 esac
48733 as_dirs="'$as_qdir' $as_dirs"
48734 as_dir=`$as_dirname -- "$as_dir" ||
48735$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48736 X"$as_dir" : 'X\(//\)[^/]' \| \
48737 X"$as_dir" : 'X\(//\)$' \| \
48738 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48739$as_echo X"$as_dir" |
48740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48741 s//\1/
48742 q
48743 }
48744 /^X\(\/\/\)[^/].*/{
48745 s//\1/
48746 q
48747 }
48748 /^X\(\/\/\)$/{
48749 s//\1/
48750 q
48751 }
48752 /^X\(\/\).*/{
48753 s//\1/
48754 q
48755 }
48756 s/.*/./; q'`
48757 test -d "$as_dir" && break
48758 done
48759 test -z "$as_dirs" || eval "mkdir $as_dirs"
48760 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48761$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48762 { (exit 1); exit 1; }; }; }
48763 rm -f "$ac_prefix_conf_OUT"
48764 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
48765 fi
48766 cp conftest.prefix _configs.sed
48767 else
48768 { { $as_echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
48769$as_echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
48770 { (exit 1); exit 1; }; }
48771 fi
48772 rm -f conftest.*
48773fi
48774 ;;
48775 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
48776 # Autoconf 2.62 quotes --file arguments for eval, but not when files
48777 # are listed without --file. Let's play safe and only enable the eval
48778 # if we detect the quoting.
48779 case $CONFIG_FILES in
48780 *\'*) eval set x "$CONFIG_FILES" ;;
48781 *) set x $CONFIG_FILES ;;
48782 esac
48783 shift
48784 for mf
48785 do
48786 # Strip MF so we end up with the name of the file.
48787 mf=`echo "$mf" | sed -e 's/:.*$//'`
48788 # Check whether this is an Automake generated Makefile or not.
48789 # We used to match only the files named `Makefile.in', but
48790 # some people rename them; so instead we look at the file content.
48791 # Grep'ing the first line is not enough: some people post-process
48792 # each Makefile.in and add a new line on top of each file to say so.
48793 # Grep'ing the whole file is not good either: AIX grep has a line
48794 # limit of 2048, but all sed's we know have understand at least 4000.
48795 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
48796 dirpart=`$as_dirname -- "$mf" ||
48797$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48798 X"$mf" : 'X\(//\)[^/]' \| \
48799 X"$mf" : 'X\(//\)$' \| \
48800 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
48801$as_echo X"$mf" |
48802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48803 s//\1/
48804 q
48805 }
48806 /^X\(\/\/\)[^/].*/{
48807 s//\1/
48808 q
48809 }
48810 /^X\(\/\/\)$/{
48811 s//\1/
48812 q
48813 }
48814 /^X\(\/\).*/{
48815 s//\1/
48816 q
48817 }
48818 s/.*/./; q'`
48819 else
48820 continue
48821 fi
48822 # Extract the definition of DEPDIR, am__include, and am__quote
48823 # from the Makefile without running `make'.
48824 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
48825 test -z "$DEPDIR" && continue
48826 am__include=`sed -n 's/^am__include = //p' < "$mf"`
48827 test -z "am__include" && continue
48828 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
48829 # When using ansi2knr, U may be empty or an underscore; expand it
48830 U=`sed -n 's/^U = //p' < "$mf"`
48831 # Find all dependency output files, they are included files with
48832 # $(DEPDIR) in their names. We invoke sed twice because it is the
48833 # simplest approach to changing $(DEPDIR) to its actual value in the
48834 # expansion.
48835 for file in `sed -n "
48836 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
48837 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
48838 # Make sure the directory exists.
48839 test -f "$dirpart/$file" && continue
48840 fdir=`$as_dirname -- "$file" ||
48841$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48842 X"$file" : 'X\(//\)[^/]' \| \
48843 X"$file" : 'X\(//\)$' \| \
48844 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
48845$as_echo X"$file" |
48846 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48847 s//\1/
48848 q
48849 }
48850 /^X\(\/\/\)[^/].*/{
48851 s//\1/
48852 q
48853 }
48854 /^X\(\/\/\)$/{
48855 s//\1/
48856 q
48857 }
48858 /^X\(\/\).*/{
48859 s//\1/
48860 q
48861 }
48862 s/.*/./; q'`
48863 { as_dir=$dirpart/$fdir
48864 case $as_dir in #(
48865 -*) as_dir=./$as_dir;;
48866 esac
48867 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48868 as_dirs=
48869 while :; do
48870 case $as_dir in #(
48871 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48872 *) as_qdir=$as_dir;;
48873 esac
48874 as_dirs="'$as_qdir' $as_dirs"
48875 as_dir=`$as_dirname -- "$as_dir" ||
48876$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48877 X"$as_dir" : 'X\(//\)[^/]' \| \
48878 X"$as_dir" : 'X\(//\)$' \| \
48879 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48880$as_echo X"$as_dir" |
48881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48882 s//\1/
48883 q
48884 }
48885 /^X\(\/\/\)[^/].*/{
48886 s//\1/
48887 q
48888 }
48889 /^X\(\/\/\)$/{
48890 s//\1/
48891 q
48892 }
48893 /^X\(\/\).*/{
48894 s//\1/
48895 q
48896 }
48897 s/.*/./; q'`
48898 test -d "$as_dir" && break
48899 done
48900 test -z "$as_dirs" || eval "mkdir $as_dirs"
48901 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48902$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48903 { (exit 1); exit 1; }; }; }
48904 # echo "creating $dirpart/$file"
48905 echo '# dummy' > "$dirpart/$file"
48906 done
48907 done
48908}
48909 ;;
48910 "libtool":C)
48911
48912 # See if we are running on zsh, and set the options which allow our
48913 # commands through without removal of \ escapes.
48914 if test -n "${ZSH_VERSION+set}" ; then
48915 setopt NO_GLOB_SUBST
48916 fi
48917
48918 cfgfile="${ofile}T"
48919 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
48920 $RM "$cfgfile"
48921
48922 cat <<_LT_EOF >> "$cfgfile"
48923#! $SHELL
48924
48925# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
48926# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
48927# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
48928# NOTE: Changes made to this file will be lost: look at ltmain.sh.
48929#
48930# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
48931# 2006, 2007, 2008 Free Software Foundation, Inc.
48932# Written by Gordon Matzigkeit, 1996
48933#
48934# This file is part of GNU Libtool.
48935#
48936# GNU Libtool is free software; you can redistribute it and/or
48937# modify it under the terms of the GNU General Public License as
48938# published by the Free Software Foundation; either version 2 of
48939# the License, or (at your option) any later version.
48940#
48941# As a special exception to the GNU General Public License,
48942# if you distribute this file as part of a program or library that
48943# is built using GNU Libtool, you may include this file under the
48944# same distribution terms that you use for the rest of that program.
48945#
48946# GNU Libtool is distributed in the hope that it will be useful,
48947# but WITHOUT ANY WARRANTY; without even the implied warranty of
48948# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48949# GNU General Public License for more details.
48950#
48951# You should have received a copy of the GNU General Public License
48952# along with GNU Libtool; see the file COPYING. If not, a copy
48953# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
48954# obtained by writing to the Free Software Foundation, Inc.,
48955# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
48956
48957
48958# The names of the tagged configurations supported by this script.
48959available_tags="CXX "
48960
48961# ### BEGIN LIBTOOL CONFIG
48962
48963# A sed program that does not truncate output.
48964SED=$lt_SED
48965
48966# Sed that helps us avoid accidentally triggering echo(1) options like -n.
48967Xsed="\$SED -e 1s/^X//"
48968
48969# A grep program that handles long lines.
48970GREP=$lt_GREP
48971
48972# An ERE matcher.
48973EGREP=$lt_EGREP
48974
48975# A literal string matcher.
48976FGREP=$lt_FGREP
48977
48978# Which release of libtool.m4 was used?
48979macro_version=$macro_version
48980macro_revision=$macro_revision
48981
48982# Assembler program.
48983AS=$AS
48984
48985# DLL creation program.
48986DLLTOOL=$DLLTOOL
48987
48988# Object dumper program.
48989OBJDUMP=$OBJDUMP
48990
48991# Whether or not to build shared libraries.
48992build_libtool_libs=$enable_shared
48993
48994# Whether or not to build static libraries.
48995build_old_libs=$enable_static
48996
48997# What type of objects to build.
48998pic_mode=$pic_mode
48999
49000# Whether or not to optimize for fast installation.
49001fast_install=$enable_fast_install
49002
49003# The host system.
49004host_alias=$host_alias
49005host=$host
49006host_os=$host_os
49007
49008# The build system.
49009build_alias=$build_alias
49010build=$build
49011build_os=$build_os
49012
49013# A BSD- or MS-compatible name lister.
49014NM=$lt_NM
49015
49016# Whether we need soft or hard links.
49017LN_S=$lt_LN_S
49018
49019# What is the maximum length of a command?
49020max_cmd_len=$max_cmd_len
49021
49022# Object file suffix (normally "o").
49023objext=$ac_objext
49024
49025# Executable file suffix (normally "").
49026exeext=$exeext
49027
49028# whether the shell understands "unset".
49029lt_unset=$lt_unset
49030
49031# turn spaces into newlines.
49032SP2NL=$lt_lt_SP2NL
49033
49034# turn newlines into spaces.
49035NL2SP=$lt_lt_NL2SP
49036
49037# How to create reloadable object files.
49038reload_flag=$lt_reload_flag
49039reload_cmds=$lt_reload_cmds
49040
49041# Method to check whether dependent libraries are shared objects.
49042deplibs_check_method=$lt_deplibs_check_method
49043
49044# Command to use when deplibs_check_method == "file_magic".
49045file_magic_cmd=$lt_file_magic_cmd
49046
49047# The archiver.
49048AR=$lt_AR
49049AR_FLAGS=$lt_AR_FLAGS
49050
49051# A symbol stripping program.
49052STRIP=$lt_STRIP
49053
49054# Commands used to install an old-style archive.
49055RANLIB=$lt_RANLIB
49056old_postinstall_cmds=$lt_old_postinstall_cmds
49057old_postuninstall_cmds=$lt_old_postuninstall_cmds
49058
49059# A C compiler.
49060LTCC=$lt_CC
49061
49062# LTCC compiler flags.
49063LTCFLAGS=$lt_CFLAGS
49064
49065# Take the output of nm and produce a listing of raw symbols and C names.
49066global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
49067
49068# Transform the output of nm in a proper C declaration.
49069global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
49070
49071# Transform the output of nm in a C name address pair.
49072global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
49073
49074# Transform the output of nm in a C name address pair when lib prefix is needed.
49075global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
49076
49077# The name of the directory that contains temporary libtool files.
49078objdir=$objdir
49079
49080# Shell to use when invoking shell scripts.
49081SHELL=$lt_SHELL
49082
49083# An echo program that does not interpret backslashes.
49084ECHO=$lt_ECHO
49085
49086# Used to examine libraries when file_magic_cmd begins with "file".
49087MAGIC_CMD=$MAGIC_CMD
49088
49089# Must we lock files when doing compilation?
49090need_locks=$lt_need_locks
49091
49092# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
49093DSYMUTIL=$lt_DSYMUTIL
49094
49095# Tool to change global to local symbols on Mac OS X.
49096NMEDIT=$lt_NMEDIT
49097
49098# Tool to manipulate fat objects and archives on Mac OS X.
49099LIPO=$lt_LIPO
49100
49101# ldd/readelf like tool for Mach-O binaries on Mac OS X.
49102OTOOL=$lt_OTOOL
49103
49104# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
49105OTOOL64=$lt_OTOOL64
49106
49107# Old archive suffix (normally "a").
49108libext=$libext
49109
49110# Shared library suffix (normally ".so").
49111shrext_cmds=$lt_shrext_cmds
49112
49113# The commands to extract the exported symbol list from a shared archive.
49114extract_expsyms_cmds=$lt_extract_expsyms_cmds
49115
49116# Variables whose values should be saved in libtool wrapper scripts and
49117# restored at link time.
49118variables_saved_for_relink=$lt_variables_saved_for_relink
49119
49120# Do we need the "lib" prefix for modules?
49121need_lib_prefix=$need_lib_prefix
49122
49123# Do we need a version for libraries?
49124need_version=$need_version
49125
49126# Library versioning type.
49127version_type=$version_type
49128
49129# Shared library runtime path variable.
49130runpath_var=$runpath_var
49131
49132# Shared library path variable.
49133shlibpath_var=$shlibpath_var
49134
49135# Is shlibpath searched before the hard-coded library search path?
49136shlibpath_overrides_runpath=$shlibpath_overrides_runpath
49137
49138# Format of library name prefix.
49139libname_spec=$lt_libname_spec
49140
49141# List of archive names. First name is the real one, the rest are links.
49142# The last name is the one that the linker finds with -lNAME
49143library_names_spec=$lt_library_names_spec
49144
49145# The coded name of the library, if different from the real name.
49146soname_spec=$lt_soname_spec
49147
49148# Command to use after installation of a shared archive.
49149postinstall_cmds=$lt_postinstall_cmds
49150
49151# Command to use after uninstallation of a shared archive.
49152postuninstall_cmds=$lt_postuninstall_cmds
49153
49154# Commands used to finish a libtool library installation in a directory.
49155finish_cmds=$lt_finish_cmds
49156
49157# As "finish_cmds", except a single script fragment to be evaled but
49158# not shown.
49159finish_eval=$lt_finish_eval
49160
49161# Whether we should hardcode library paths into libraries.
49162hardcode_into_libs=$hardcode_into_libs
49163
49164# Compile-time system search path for libraries.
49165sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
49166
49167# Run-time system search path for libraries.
49168sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
49169
49170# Whether dlopen is supported.
49171dlopen_support=$enable_dlopen
49172
49173# Whether dlopen of programs is supported.
49174dlopen_self=$enable_dlopen_self
49175
49176# Whether dlopen of statically linked programs is supported.
49177dlopen_self_static=$enable_dlopen_self_static
49178
49179# Commands to strip libraries.
49180old_striplib=$lt_old_striplib
49181striplib=$lt_striplib
49182
49183
49184# The linker used to build libraries.
49185LD=$lt_LD
49186
49187# Commands used to build an old-style archive.
49188old_archive_cmds=$lt_old_archive_cmds
49189
49190# A language specific compiler.
49191CC=$lt_compiler
49192
49193# Is the compiler the GNU compiler?
49194with_gcc=$GCC
49195
49196# Compiler flag to turn off builtin functions.
49197no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
49198
49199# How to pass a linker flag through the compiler.
49200wl=$lt_lt_prog_compiler_wl
49201
49202# Additional compiler flags for building library objects.
49203pic_flag=$lt_lt_prog_compiler_pic
49204
49205# Compiler flag to prevent dynamic linking.
49206link_static_flag=$lt_lt_prog_compiler_static
49207
49208# Does compiler simultaneously support -c and -o options?
49209compiler_c_o=$lt_lt_cv_prog_compiler_c_o
49210
49211# Whether or not to add -lc for building shared libraries.
49212build_libtool_need_lc=$archive_cmds_need_lc
49213
49214# Whether or not to disallow shared libs when runtime libs are static.
49215allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
49216
49217# Compiler flag to allow reflexive dlopens.
49218export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
49219
49220# Compiler flag to generate shared objects directly from archives.
49221whole_archive_flag_spec=$lt_whole_archive_flag_spec
49222
49223# Whether the compiler copes with passing no objects directly.
49224compiler_needs_object=$lt_compiler_needs_object
49225
49226# Create an old-style archive from a shared archive.
49227old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
49228
49229# Create a temporary old-style archive to link instead of a shared archive.
49230old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
49231
49232# Commands used to build a shared archive.
49233archive_cmds=$lt_archive_cmds
49234archive_expsym_cmds=$lt_archive_expsym_cmds
49235
49236# Commands used to build a loadable module if different from building
49237# a shared archive.
49238module_cmds=$lt_module_cmds
49239module_expsym_cmds=$lt_module_expsym_cmds
49240
49241# Whether we are building with GNU ld or not.
49242with_gnu_ld=$lt_with_gnu_ld
49243
49244# Flag that allows shared libraries with undefined symbols to be built.
49245allow_undefined_flag=$lt_allow_undefined_flag
49246
49247# Flag that enforces no undefined symbols.
49248no_undefined_flag=$lt_no_undefined_flag
49249
49250# Flag to hardcode \$libdir into a binary during linking.
49251# This must work even if \$libdir does not exist
49252hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
49253
49254# If ld is used when linking, flag to hardcode \$libdir into a binary
49255# during linking. This must work even if \$libdir does not exist.
49256hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
49257
49258# Whether we need a single "-rpath" flag with a separated argument.
49259hardcode_libdir_separator=$lt_hardcode_libdir_separator
49260
49261# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49262# DIR into the resulting binary.
49263hardcode_direct=$hardcode_direct
49264
49265# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49266# DIR into the resulting binary and the resulting library dependency is
49267# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49268# library is relocated.
49269hardcode_direct_absolute=$hardcode_direct_absolute
49270
49271# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49272# into the resulting binary.
49273hardcode_minus_L=$hardcode_minus_L
49274
49275# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49276# into the resulting binary.
49277hardcode_shlibpath_var=$hardcode_shlibpath_var
49278
49279# Set to "yes" if building a shared library automatically hardcodes DIR
49280# into the library and all subsequent libraries and executables linked
49281# against it.
49282hardcode_automatic=$hardcode_automatic
49283
49284# Set to yes if linker adds runtime paths of dependent libraries
49285# to runtime path list.
49286inherit_rpath=$inherit_rpath
49287
49288# Whether libtool must link a program against all its dependency libraries.
49289link_all_deplibs=$link_all_deplibs
49290
49291# Fix the shell variable \$srcfile for the compiler.
49292fix_srcfile_path=$lt_fix_srcfile_path
49293
49294# Set to "yes" if exported symbols are required.
49295always_export_symbols=$always_export_symbols
49296
49297# The commands to list exported symbols.
49298export_symbols_cmds=$lt_export_symbols_cmds
49299
49300# Symbols that should not be listed in the preloaded symbols.
49301exclude_expsyms=$lt_exclude_expsyms
49302
49303# Symbols that must always be exported.
49304include_expsyms=$lt_include_expsyms
49305
49306# Commands necessary for linking programs (against libraries) with templates.
49307prelink_cmds=$lt_prelink_cmds
49308
49309# Specify filename containing input files.
49310file_list_spec=$lt_file_list_spec
49311
49312# How to hardcode a shared library path into an executable.
49313hardcode_action=$hardcode_action
49314
49315# The directories searched by this compiler when creating a shared library.
49316compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
49317
49318# Dependencies to place before and after the objects being linked to
49319# create a shared library.
49320predep_objects=$lt_predep_objects
49321postdep_objects=$lt_postdep_objects
49322predeps=$lt_predeps
49323postdeps=$lt_postdeps
49324
49325# The library search path used internally by the compiler when linking
49326# a shared library.
49327compiler_lib_search_path=$lt_compiler_lib_search_path
49328
49329# ### END LIBTOOL CONFIG
49330
49331_LT_EOF
49332
49333 case $host_os in
49334 aix3*)
49335 cat <<\_LT_EOF >> "$cfgfile"
49336# AIX sometimes has problems with the GCC collect2 program. For some
49337# reason, if we set the COLLECT_NAMES environment variable, the problems
49338# vanish in a puff of smoke.
49339if test "X${COLLECT_NAMES+set}" != Xset; then
49340 COLLECT_NAMES=
49341 export COLLECT_NAMES
49342fi
49343_LT_EOF
49344 ;;
49345 esac
49346
49347
49348ltmain="$ac_aux_dir/ltmain.sh"
49349
49350
49351 # We use sed instead of cat because bash on DJGPP gets confused if
49352 # if finds mixed CR/LF and LF-only lines. Since sed operates in
49353 # text mode, it properly converts lines to CR/LF. This bash problem
49354 # is reportedly fixed, but why not run on old versions too?
49355 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
49356 || (rm -f "$cfgfile"; exit 1)
49357
49358 case $xsi_shell in
49359 yes)
49360 cat << \_LT_EOF >> "$cfgfile"
49361
49362# func_dirname file append nondir_replacement
49363# Compute the dirname of FILE. If nonempty, add APPEND to the result,
49364# otherwise set result to NONDIR_REPLACEMENT.
49365func_dirname ()
49366{
49367 case ${1} in
49368 */*) func_dirname_result="${1%/*}${2}" ;;
49369 * ) func_dirname_result="${3}" ;;
49370 esac
49371}
49372
49373# func_basename file
49374func_basename ()
49375{
49376 func_basename_result="${1##*/}"
49377}
49378
49379# func_dirname_and_basename file append nondir_replacement
49380# perform func_basename and func_dirname in a single function
49381# call:
49382# dirname: Compute the dirname of FILE. If nonempty,
49383# add APPEND to the result, otherwise set result
49384# to NONDIR_REPLACEMENT.
49385# value returned in "$func_dirname_result"
49386# basename: Compute filename of FILE.
49387# value retuned in "$func_basename_result"
49388# Implementation must be kept synchronized with func_dirname
49389# and func_basename. For efficiency, we do not delegate to
49390# those functions but instead duplicate the functionality here.
49391func_dirname_and_basename ()
49392{
49393 case ${1} in
49394 */*) func_dirname_result="${1%/*}${2}" ;;
49395 * ) func_dirname_result="${3}" ;;
49396 esac
49397 func_basename_result="${1##*/}"
49398}
49399
49400# func_stripname prefix suffix name
49401# strip PREFIX and SUFFIX off of NAME.
49402# PREFIX and SUFFIX must not contain globbing or regex special
49403# characters, hashes, percent signs, but SUFFIX may contain a leading
49404# dot (in which case that matches only a dot).
49405func_stripname ()
49406{
49407 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
49408 # positional parameters, so assign one to ordinary parameter first.
49409 func_stripname_result=${3}
49410 func_stripname_result=${func_stripname_result#"${1}"}
49411 func_stripname_result=${func_stripname_result%"${2}"}
49412}
49413
49414# func_opt_split
49415func_opt_split ()
49416{
49417 func_opt_split_opt=${1%%=*}
49418 func_opt_split_arg=${1#*=}
49419}
49420
49421# func_lo2o object
49422func_lo2o ()
49423{
49424 case ${1} in
49425 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
49426 *) func_lo2o_result=${1} ;;
49427 esac
49428}
49429
49430# func_xform libobj-or-source
49431func_xform ()
49432{
49433 func_xform_result=${1%.*}.lo
49434}
49435
49436# func_arith arithmetic-term...
49437func_arith ()
49438{
49439 func_arith_result=$(( $* ))
49440}
49441
49442# func_len string
49443# STRING may not start with a hyphen.
49444func_len ()
49445{
49446 func_len_result=${#1}
49447}
49448
49449_LT_EOF
49450 ;;
49451 *) # Bourne compatible functions.
49452 cat << \_LT_EOF >> "$cfgfile"
49453
49454# func_dirname file append nondir_replacement
49455# Compute the dirname of FILE. If nonempty, add APPEND to the result,
49456# otherwise set result to NONDIR_REPLACEMENT.
49457func_dirname ()
49458{
49459 # Extract subdirectory from the argument.
49460 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
49461 if test "X$func_dirname_result" = "X${1}"; then
49462 func_dirname_result="${3}"
49463 else
49464 func_dirname_result="$func_dirname_result${2}"
49465 fi
49466}
49467
49468# func_basename file
49469func_basename ()
49470{
49471 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
49472}
49473
49474
49475# func_stripname prefix suffix name
49476# strip PREFIX and SUFFIX off of NAME.
49477# PREFIX and SUFFIX must not contain globbing or regex special
49478# characters, hashes, percent signs, but SUFFIX may contain a leading
49479# dot (in which case that matches only a dot).
49480# func_strip_suffix prefix name
49481func_stripname ()
49482{
49483 case ${2} in
49484 .*) func_stripname_result=`$ECHO "X${3}" \
49485 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
49486 *) func_stripname_result=`$ECHO "X${3}" \
49487 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
49488 esac
49489}
49490
49491# sed scripts:
49492my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
49493my_sed_long_arg='1s/^-[^=]*=//'
49494
49495# func_opt_split
49496func_opt_split ()
49497{
49498 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
49499 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
49500}
49501
49502# func_lo2o object
49503func_lo2o ()
49504{
49505 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
49506}
49507
49508# func_xform libobj-or-source
49509func_xform ()
49510{
49511 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
49512}
49513
49514# func_arith arithmetic-term...
49515func_arith ()
49516{
49517 func_arith_result=`expr "$@"`
49518}
49519
49520# func_len string
49521# STRING may not start with a hyphen.
49522func_len ()
49523{
49524 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
49525}
49526
49527_LT_EOF
49528esac
49529
49530case $lt_shell_append in
49531 yes)
49532 cat << \_LT_EOF >> "$cfgfile"
49533
49534# func_append var value
49535# Append VALUE to the end of shell variable VAR.
49536func_append ()
49537{
49538 eval "$1+=\$2"
49539}
49540_LT_EOF
49541 ;;
49542 *)
49543 cat << \_LT_EOF >> "$cfgfile"
49544
49545# func_append var value
49546# Append VALUE to the end of shell variable VAR.
49547func_append ()
49548{
49549 eval "$1=\$$1\$2"
49550}
49551
49552_LT_EOF
49553 ;;
49554 esac
49555
49556
49557 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
49558 || (rm -f "$cfgfile"; exit 1)
49559
49560 mv -f "$cfgfile" "$ofile" ||
49561 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
49562 chmod +x "$ofile"
49563
49564
49565 cat <<_LT_EOF >> "$ofile"
49566
49567# ### BEGIN LIBTOOL TAG CONFIG: CXX
49568
49569# The linker used to build libraries.
49570LD=$lt_LD_CXX
49571
49572# Commands used to build an old-style archive.
49573old_archive_cmds=$lt_old_archive_cmds_CXX
49574
49575# A language specific compiler.
49576CC=$lt_compiler_CXX
49577
49578# Is the compiler the GNU compiler?
49579with_gcc=$GCC_CXX
49580
49581# Compiler flag to turn off builtin functions.
49582no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
49583
49584# How to pass a linker flag through the compiler.
49585wl=$lt_lt_prog_compiler_wl_CXX
49586
49587# Additional compiler flags for building library objects.
49588pic_flag=$lt_lt_prog_compiler_pic_CXX
49589
49590# Compiler flag to prevent dynamic linking.
49591link_static_flag=$lt_lt_prog_compiler_static_CXX
49592
49593# Does compiler simultaneously support -c and -o options?
49594compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
49595
49596# Whether or not to add -lc for building shared libraries.
49597build_libtool_need_lc=$archive_cmds_need_lc_CXX
49598
49599# Whether or not to disallow shared libs when runtime libs are static.
49600allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
49601
49602# Compiler flag to allow reflexive dlopens.
49603export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
49604
49605# Compiler flag to generate shared objects directly from archives.
49606whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
49607
49608# Whether the compiler copes with passing no objects directly.
49609compiler_needs_object=$lt_compiler_needs_object_CXX
49610
49611# Create an old-style archive from a shared archive.
49612old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
49613
49614# Create a temporary old-style archive to link instead of a shared archive.
49615old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
49616
49617# Commands used to build a shared archive.
49618archive_cmds=$lt_archive_cmds_CXX
49619archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
49620
49621# Commands used to build a loadable module if different from building
49622# a shared archive.
49623module_cmds=$lt_module_cmds_CXX
49624module_expsym_cmds=$lt_module_expsym_cmds_CXX
49625
49626# Whether we are building with GNU ld or not.
49627with_gnu_ld=$lt_with_gnu_ld_CXX
49628
49629# Flag that allows shared libraries with undefined symbols to be built.
49630allow_undefined_flag=$lt_allow_undefined_flag_CXX
49631
49632# Flag that enforces no undefined symbols.
49633no_undefined_flag=$lt_no_undefined_flag_CXX
49634
49635# Flag to hardcode \$libdir into a binary during linking.
49636# This must work even if \$libdir does not exist
49637hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
49638
49639# If ld is used when linking, flag to hardcode \$libdir into a binary
49640# during linking. This must work even if \$libdir does not exist.
49641hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
49642
49643# Whether we need a single "-rpath" flag with a separated argument.
49644hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
49645
49646# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49647# DIR into the resulting binary.
49648hardcode_direct=$hardcode_direct_CXX
49649
49650# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
49651# DIR into the resulting binary and the resulting library dependency is
49652# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
49653# library is relocated.
49654hardcode_direct_absolute=$hardcode_direct_absolute_CXX
49655
49656# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
49657# into the resulting binary.
49658hardcode_minus_L=$hardcode_minus_L_CXX
49659
49660# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
49661# into the resulting binary.
49662hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
49663
49664# Set to "yes" if building a shared library automatically hardcodes DIR
49665# into the library and all subsequent libraries and executables linked
49666# against it.
49667hardcode_automatic=$hardcode_automatic_CXX
49668
49669# Set to yes if linker adds runtime paths of dependent libraries
49670# to runtime path list.
49671inherit_rpath=$inherit_rpath_CXX
49672
49673# Whether libtool must link a program against all its dependency libraries.
49674link_all_deplibs=$link_all_deplibs_CXX
49675
49676# Fix the shell variable \$srcfile for the compiler.
49677fix_srcfile_path=$lt_fix_srcfile_path_CXX
49678
49679# Set to "yes" if exported symbols are required.
49680always_export_symbols=$always_export_symbols_CXX
49681
49682# The commands to list exported symbols.
49683export_symbols_cmds=$lt_export_symbols_cmds_CXX
49684
49685# Symbols that should not be listed in the preloaded symbols.
49686exclude_expsyms=$lt_exclude_expsyms_CXX
49687
49688# Symbols that must always be exported.
49689include_expsyms=$lt_include_expsyms_CXX
49690
49691# Commands necessary for linking programs (against libraries) with templates.
49692prelink_cmds=$lt_prelink_cmds_CXX
49693
49694# Specify filename containing input files.
49695file_list_spec=$lt_file_list_spec_CXX
49696
49697# How to hardcode a shared library path into an executable.
49698hardcode_action=$hardcode_action_CXX
49699
49700# The directories searched by this compiler when creating a shared library.
49701compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
49702
49703# Dependencies to place before and after the objects being linked to
49704# create a shared library.
49705predep_objects=$lt_predep_objects_CXX
49706postdep_objects=$lt_postdep_objects_CXX
49707predeps=$lt_predeps_CXX
49708postdeps=$lt_postdeps_CXX
49709
49710# The library search path used internally by the compiler when linking
49711# a shared library.
49712compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
49713
49714# ### END LIBTOOL TAG CONFIG: CXX
49715_LT_EOF
49716
49717 ;;
49718 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
49719 "Magick-config.in":C) chmod +x magick/Magick-config ;;
49720 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
49721 "Wand-config.in":C) chmod +x wand/Wand-config ;;
49722 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
49723 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
49724
49725 esac
49726done # for ac_tag
49727
49728
49729{ (exit 0); exit 0; }
49730_ACEOF
49731chmod +x $CONFIG_STATUS
49732ac_clean_files=$ac_clean_files_save
49733
49734test $ac_write_fail = 0 ||
49735 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
49736$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
49737 { (exit 1); exit 1; }; }
49738
49739
49740# configure is writing to config.log, and then calls config.status.
49741# config.status does its own redirection, appending to config.log.
49742# Unfortunately, on DOS this fails, as config.log is still kept open
49743# by configure, so config.status won't be able to write to it; its
49744# output is simply discarded. So we exec the FD to /dev/null,
49745# effectively closing config.log, so it can be properly (re)opened and
49746# appended to by config.status. When coming back to configure, we
49747# need to make the FD available again.
49748if test "$no_create" != yes; then
49749 ac_cs_success=:
49750 ac_config_status_args=
49751 test "$silent" = yes &&
49752 ac_config_status_args="$ac_config_status_args --quiet"
49753 exec 5>/dev/null
49754 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
49755 exec 5>>config.log
49756 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
49757 # would make configure fail if this is the last instruction.
49758 $ac_cs_success || { (exit 1); exit 1; }
49759fi
49760if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
49761 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
49762$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
49763fi
49764
49765
49766rm -f magick-version
49767
49768result_ghostscript_font_dir='none'
49769if test "${ghostscript_font_dir}x" != 'x'; then
49770 result_ghostscript_font_dir=$ghostscript_font_dir
49771fi
49772
49773result_windows_font_dir='none'
49774if test "${windows_font_dir}x" != 'x'; then
49775 result_windows_font_dir=${windows_font_dir}
49776fi
49777
49778{ $as_echo "$as_me:$LINENO: result:
49779ImageMagick is configured as follows. Please verify that this configuration
49780matches your expectations.
49781
49782Host system type: $host
49783Build system type: $build
49784
49785 Option Value
49786-------------------------------------------------------------------------------
49787Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49788Static libraries --enable-static=$enable_static $libtool_build_static_libs
49789Module support --with-modules=$with_modules $with_modules
49790GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49791Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49792High Dynamic Range Imagery
49793 --enable-hdri=$enable_hdri $enable_hdri
49794
49795Delegate Configuration:
49796BZLIB --with-bzlib=$with_bzlib $have_bzlib
49797Autotrace --with-autotrace=$with_autotrace $have_autotrace
49798DJVU --with-djvu=$with_djvu $have_djvu
49799DPS --with-dps=$with_dps $have_dps
49800FFTW --with-fftw=$with_fftw $have_fftw
49801FlashPIX --with-fpx=$with_fpx $have_fpx
49802FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49803FreeType --with-freetype=$with_freetype $have_freetype
49804GhostPCL None $PCLDelegate ($PCLVersion)
49805GhostXPS None $XPSDelegate ($XPSVersion)
49806Ghostscript None $PSDelegate ($GSVersion)
49807Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49808Ghostscript lib --with-gslib=$with_gslib $have_gslib
49809Graphviz --with-gvc=$with_gvc $have_gvc
49810JBIG --with-jbig=$with_jbig $have_jbig
49811JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49812JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49813LCMS --with-lcms=$with_lcms $have_lcms
49814LQR --with-lqr=$with_lqr $have_lqr
49815Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49816OpenEXR --with-openexr=$with_openexr $have_openexr
49817PERL --with-perl=$with_perl $have_perl
49818PNG --with-png=$with_png $have_png
49819RSVG --with-rsvg=$with_rsvg $have_rsvg
49820TIFF --with-tiff=$with_tiff $have_tiff
49821Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49822WMF --with-wmf=$with_wmf $have_wmf
49823X11 --with-x=$with_x $have_x
49824XML --with-xml=$with_xml $have_xml
49825ZLIB --with-zlib=$with_zlib $have_zlib
49826
49827X11 Configuration:
49828 X_CFLAGS = $X_CFLAGS
49829 X_PRE_LIBS = $X_PRE_LIBS
49830 X_LIBS = $X_LIBS
49831 X_EXTRA_LIBS = $X_EXTRA_LIBS
49832
49833Options used to compile and link:
49834 PREFIX = $PREFIX_DIR
49835 EXEC-PREFIX = $EXEC_PREFIX_DIR
49836 VERSION = $PACKAGE_VERSION
49837 CC = $CC
49838 CFLAGS = $CFLAGS
49839 MAGICK_CFLAGS = $MAGICK_CFLAGS
49840 CPPFLAGS = $MAGICK_CPPFLAGS
49841 PCFLAGS = $MAGICK_PCFLAGS
49842 DEFS = $DEFS
49843 LDFLAGS = $LDFLAGS
49844 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49845 LIBS = $MAGICK_LIBS
49846 CXX = $CXX
49847 CXXFLAGS = $CXXFLAGS
49848" >&5
49849$as_echo "
49850ImageMagick is configured as follows. Please verify that this configuration
49851matches your expectations.
49852
49853Host system type: $host
49854Build system type: $build
49855
49856 Option Value
49857-------------------------------------------------------------------------------
49858Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49859Static libraries --enable-static=$enable_static $libtool_build_static_libs
49860Module support --with-modules=$with_modules $with_modules
49861GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49862Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49863High Dynamic Range Imagery
49864 --enable-hdri=$enable_hdri $enable_hdri
49865
49866Delegate Configuration:
49867BZLIB --with-bzlib=$with_bzlib $have_bzlib
49868Autotrace --with-autotrace=$with_autotrace $have_autotrace
49869DJVU --with-djvu=$with_djvu $have_djvu
49870DPS --with-dps=$with_dps $have_dps
49871FFTW --with-fftw=$with_fftw $have_fftw
49872FlashPIX --with-fpx=$with_fpx $have_fpx
49873FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49874FreeType --with-freetype=$with_freetype $have_freetype
49875GhostPCL None $PCLDelegate ($PCLVersion)
49876GhostXPS None $XPSDelegate ($XPSVersion)
49877Ghostscript None $PSDelegate ($GSVersion)
49878Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49879Ghostscript lib --with-gslib=$with_gslib $have_gslib
49880Graphviz --with-gvc=$with_gvc $have_gvc
49881JBIG --with-jbig=$with_jbig $have_jbig
49882JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49883JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49884LCMS --with-lcms=$with_lcms $have_lcms
49885LQR --with-lqr=$with_lqr $have_lqr
49886Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49887OpenEXR --with-openexr=$with_openexr $have_openexr
49888PERL --with-perl=$with_perl $have_perl
49889PNG --with-png=$with_png $have_png
49890RSVG --with-rsvg=$with_rsvg $have_rsvg
49891TIFF --with-tiff=$with_tiff $have_tiff
49892Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49893WMF --with-wmf=$with_wmf $have_wmf
49894X11 --with-x=$with_x $have_x
49895XML --with-xml=$with_xml $have_xml
49896ZLIB --with-zlib=$with_zlib $have_zlib
49897
49898X11 Configuration:
49899 X_CFLAGS = $X_CFLAGS
49900 X_PRE_LIBS = $X_PRE_LIBS
49901 X_LIBS = $X_LIBS
49902 X_EXTRA_LIBS = $X_EXTRA_LIBS
49903
49904Options used to compile and link:
49905 PREFIX = $PREFIX_DIR
49906 EXEC-PREFIX = $EXEC_PREFIX_DIR
49907 VERSION = $PACKAGE_VERSION
49908 CC = $CC
49909 CFLAGS = $CFLAGS
49910 MAGICK_CFLAGS = $MAGICK_CFLAGS
49911 CPPFLAGS = $MAGICK_CPPFLAGS
49912 PCFLAGS = $MAGICK_PCFLAGS
49913 DEFS = $DEFS
49914 LDFLAGS = $LDFLAGS
49915 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49916 LIBS = $MAGICK_LIBS
49917 CXX = $CXX
49918 CXXFLAGS = $CXXFLAGS
49919" >&6; }