rebuilt from configure.in
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 SHARED
662 CC
663 CFLAGS
664 LDFLAGS
665 CPPFLAGS
666 ac_ct_CC
667 EXEEXT
668 OBJEXT
669 CXX
670 CXXFLAGS
671 ac_ct_CXX
672 CPP
673 RANLIB
674 SET_MAKE
675 INSTALL_PROGRAM
676 INSTALL_SCRIPT
677 INSTALL_DATA
678 LN_S
679 UNCOMPRESS
680 PKG_CONFIG
681 AREXT
682 AR
683 SLEXT
684 CXXLIBS
685 STRIP
686 target
687 target_cpu
688 target_vendor
689 target_os
690 WORDS_BIGENDIAN
691 SYSTEM_BACKTICKS
692 GREP
693 EGREP
694 PACKAGE
695 VERSION
696 HAVE_UNISTD_H
697 FREETYPE_CONFIG
698 DEVICE_OPENGL
699 lame_in_source
700 LIBART_CFLAGS
701 LIBART_LIBS
702 art_in_source
703 POPPLER_CFLAGS
704 POPPLER_LIBS
705 CXXCPP
706 xpdf_in_source
707 splash_in_source
708 AVIFILE_CONFIG
709 VIDEO_LIBS
710 VIDEO_CFLAGS
711 USE_GZIP
712 PYTHON_LIB
713 PYTHON_INCLUDES
714 HAVE_PYTHON_IMAGING
715 PDF2SWF
716 LIBPDF
717 JPEG2SWF
718 GIF2SWF
719 PNG2SWF
720 LIBOBJS
721 LTLIBOBJS'
722 ac_subst_files=''
723       ac_precious_vars='build_alias
724 host_alias
725 target_alias
726 CC
727 CFLAGS
728 LDFLAGS
729 LIBS
730 CPPFLAGS
731 CXX
732 CXXFLAGS
733 CCC
734 CPP
735 PKG_CONFIG
736 LIBART_CFLAGS
737 LIBART_LIBS
738 POPPLER_CFLAGS
739 POPPLER_LIBS
740 CXXCPP'
741
742
743 # Initialize some variables set by options.
744 ac_init_help=
745 ac_init_version=false
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
748 cache_file=/dev/null
749 exec_prefix=NONE
750 no_create=
751 no_recursion=
752 prefix=NONE
753 program_prefix=NONE
754 program_suffix=NONE
755 program_transform_name=s,x,x,
756 silent=
757 site=
758 srcdir=
759 verbose=
760 x_includes=NONE
761 x_libraries=NONE
762
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir='${exec_prefix}/bin'
770 sbindir='${exec_prefix}/sbin'
771 libexecdir='${exec_prefix}/libexec'
772 datarootdir='${prefix}/share'
773 datadir='${datarootdir}'
774 sysconfdir='${prefix}/etc'
775 sharedstatedir='${prefix}/com'
776 localstatedir='${prefix}/var'
777 includedir='${prefix}/include'
778 oldincludedir='/usr/include'
779 docdir='${datarootdir}/doc/${PACKAGE}'
780 infodir='${datarootdir}/info'
781 htmldir='${docdir}'
782 dvidir='${docdir}'
783 pdfdir='${docdir}'
784 psdir='${docdir}'
785 libdir='${exec_prefix}/lib'
786 localedir='${datarootdir}/locale'
787 mandir='${datarootdir}/man'
788
789 ac_prev=
790 ac_dashdash=
791 for ac_option
792 do
793   # If the previous option needs an argument, assign it.
794   if test -n "$ac_prev"; then
795     eval $ac_prev=\$ac_option
796     ac_prev=
797     continue
798   fi
799
800   case $ac_option in
801   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802   *)    ac_optarg=yes ;;
803   esac
804
805   # Accept the important Cygnus configure options, so we can diagnose typos.
806
807   case $ac_dashdash$ac_option in
808   --)
809     ac_dashdash=yes ;;
810
811   -bindir | --bindir | --bindi | --bind | --bin | --bi)
812     ac_prev=bindir ;;
813   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814     bindir=$ac_optarg ;;
815
816   -build | --build | --buil | --bui | --bu)
817     ac_prev=build_alias ;;
818   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819     build_alias=$ac_optarg ;;
820
821   -cache-file | --cache-file | --cache-fil | --cache-fi \
822   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823     ac_prev=cache_file ;;
824   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826     cache_file=$ac_optarg ;;
827
828   --config-cache | -C)
829     cache_file=config.cache ;;
830
831   -datadir | --datadir | --datadi | --datad)
832     ac_prev=datadir ;;
833   -datadir=* | --datadir=* | --datadi=* | --datad=*)
834     datadir=$ac_optarg ;;
835
836   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837   | --dataroo | --dataro | --datar)
838     ac_prev=datarootdir ;;
839   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841     datarootdir=$ac_optarg ;;
842
843   -disable-* | --disable-*)
844     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845     # Reject names that are not valid shell variable names.
846     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848    { (exit 1); exit 1; }; }
849     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850     eval enable_$ac_feature=no ;;
851
852   -docdir | --docdir | --docdi | --doc | --do)
853     ac_prev=docdir ;;
854   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855     docdir=$ac_optarg ;;
856
857   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858     ac_prev=dvidir ;;
859   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860     dvidir=$ac_optarg ;;
861
862   -enable-* | --enable-*)
863     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864     # Reject names that are not valid shell variable names.
865     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
866       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
867    { (exit 1); exit 1; }; }
868     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
869     eval enable_$ac_feature=\$ac_optarg ;;
870
871   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873   | --exec | --exe | --ex)
874     ac_prev=exec_prefix ;;
875   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877   | --exec=* | --exe=* | --ex=*)
878     exec_prefix=$ac_optarg ;;
879
880   -gas | --gas | --ga | --g)
881     # Obsolete; use --with-gas.
882     with_gas=yes ;;
883
884   -help | --help | --hel | --he | -h)
885     ac_init_help=long ;;
886   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887     ac_init_help=recursive ;;
888   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889     ac_init_help=short ;;
890
891   -host | --host | --hos | --ho)
892     ac_prev=host_alias ;;
893   -host=* | --host=* | --hos=* | --ho=*)
894     host_alias=$ac_optarg ;;
895
896   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897     ac_prev=htmldir ;;
898   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899   | --ht=*)
900     htmldir=$ac_optarg ;;
901
902   -includedir | --includedir | --includedi | --included | --include \
903   | --includ | --inclu | --incl | --inc)
904     ac_prev=includedir ;;
905   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906   | --includ=* | --inclu=* | --incl=* | --inc=*)
907     includedir=$ac_optarg ;;
908
909   -infodir | --infodir | --infodi | --infod | --info | --inf)
910     ac_prev=infodir ;;
911   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912     infodir=$ac_optarg ;;
913
914   -libdir | --libdir | --libdi | --libd)
915     ac_prev=libdir ;;
916   -libdir=* | --libdir=* | --libdi=* | --libd=*)
917     libdir=$ac_optarg ;;
918
919   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920   | --libexe | --libex | --libe)
921     ac_prev=libexecdir ;;
922   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923   | --libexe=* | --libex=* | --libe=*)
924     libexecdir=$ac_optarg ;;
925
926   -localedir | --localedir | --localedi | --localed | --locale)
927     ac_prev=localedir ;;
928   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929     localedir=$ac_optarg ;;
930
931   -localstatedir | --localstatedir | --localstatedi | --localstated \
932   | --localstate | --localstat | --localsta | --localst | --locals)
933     ac_prev=localstatedir ;;
934   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
935   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
936     localstatedir=$ac_optarg ;;
937
938   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939     ac_prev=mandir ;;
940   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941     mandir=$ac_optarg ;;
942
943   -nfp | --nfp | --nf)
944     # Obsolete; use --without-fp.
945     with_fp=no ;;
946
947   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948   | --no-cr | --no-c | -n)
949     no_create=yes ;;
950
951   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953     no_recursion=yes ;;
954
955   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957   | --oldin | --oldi | --old | --ol | --o)
958     ac_prev=oldincludedir ;;
959   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962     oldincludedir=$ac_optarg ;;
963
964   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965     ac_prev=prefix ;;
966   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967     prefix=$ac_optarg ;;
968
969   -program-prefix | --program-prefix | --program-prefi | --program-pref \
970   | --program-pre | --program-pr | --program-p)
971     ac_prev=program_prefix ;;
972   -program-prefix=* | --program-prefix=* | --program-prefi=* \
973   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974     program_prefix=$ac_optarg ;;
975
976   -program-suffix | --program-suffix | --program-suffi | --program-suff \
977   | --program-suf | --program-su | --program-s)
978     ac_prev=program_suffix ;;
979   -program-suffix=* | --program-suffix=* | --program-suffi=* \
980   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981     program_suffix=$ac_optarg ;;
982
983   -program-transform-name | --program-transform-name \
984   | --program-transform-nam | --program-transform-na \
985   | --program-transform-n | --program-transform- \
986   | --program-transform | --program-transfor \
987   | --program-transfo | --program-transf \
988   | --program-trans | --program-tran \
989   | --progr-tra | --program-tr | --program-t)
990     ac_prev=program_transform_name ;;
991   -program-transform-name=* | --program-transform-name=* \
992   | --program-transform-nam=* | --program-transform-na=* \
993   | --program-transform-n=* | --program-transform-=* \
994   | --program-transform=* | --program-transfor=* \
995   | --program-transfo=* | --program-transf=* \
996   | --program-trans=* | --program-tran=* \
997   | --progr-tra=* | --program-tr=* | --program-t=*)
998     program_transform_name=$ac_optarg ;;
999
1000   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001     ac_prev=pdfdir ;;
1002   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003     pdfdir=$ac_optarg ;;
1004
1005   -psdir | --psdir | --psdi | --psd | --ps)
1006     ac_prev=psdir ;;
1007   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008     psdir=$ac_optarg ;;
1009
1010   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011   | -silent | --silent | --silen | --sile | --sil)
1012     silent=yes ;;
1013
1014   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015     ac_prev=sbindir ;;
1016   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017   | --sbi=* | --sb=*)
1018     sbindir=$ac_optarg ;;
1019
1020   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022   | --sharedst | --shareds | --shared | --share | --shar \
1023   | --sha | --sh)
1024     ac_prev=sharedstatedir ;;
1025   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028   | --sha=* | --sh=*)
1029     sharedstatedir=$ac_optarg ;;
1030
1031   -site | --site | --sit)
1032     ac_prev=site ;;
1033   -site=* | --site=* | --sit=*)
1034     site=$ac_optarg ;;
1035
1036   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037     ac_prev=srcdir ;;
1038   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039     srcdir=$ac_optarg ;;
1040
1041   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042   | --syscon | --sysco | --sysc | --sys | --sy)
1043     ac_prev=sysconfdir ;;
1044   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046     sysconfdir=$ac_optarg ;;
1047
1048   -target | --target | --targe | --targ | --tar | --ta | --t)
1049     ac_prev=target_alias ;;
1050   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051     target_alias=$ac_optarg ;;
1052
1053   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054     verbose=yes ;;
1055
1056   -version | --version | --versio | --versi | --vers | -V)
1057     ac_init_version=: ;;
1058
1059   -with-* | --with-*)
1060     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061     # Reject names that are not valid shell variable names.
1062     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063       { echo "$as_me: error: invalid package name: $ac_package" >&2
1064    { (exit 1); exit 1; }; }
1065     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1066     eval with_$ac_package=\$ac_optarg ;;
1067
1068   -without-* | --without-*)
1069     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070     # Reject names that are not valid shell variable names.
1071     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072       { echo "$as_me: error: invalid package name: $ac_package" >&2
1073    { (exit 1); exit 1; }; }
1074     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075     eval with_$ac_package=no ;;
1076
1077   --x)
1078     # Obsolete; use --with-x.
1079     with_x=yes ;;
1080
1081   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082   | --x-incl | --x-inc | --x-in | --x-i)
1083     ac_prev=x_includes ;;
1084   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1086     x_includes=$ac_optarg ;;
1087
1088   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090     ac_prev=x_libraries ;;
1091   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093     x_libraries=$ac_optarg ;;
1094
1095   -*) { echo "$as_me: error: unrecognized option: $ac_option
1096 Try \`$0 --help' for more information." >&2
1097    { (exit 1); exit 1; }; }
1098     ;;
1099
1100   *=*)
1101     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102     # Reject names that are not valid shell variable names.
1103     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1104       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105    { (exit 1); exit 1; }; }
1106     eval $ac_envvar=\$ac_optarg
1107     export $ac_envvar ;;
1108
1109   *)
1110     # FIXME: should be removed in autoconf 3.0.
1111     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115     ;;
1116
1117   esac
1118 done
1119
1120 if test -n "$ac_prev"; then
1121   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122   { echo "$as_me: error: missing argument to $ac_option" >&2
1123    { (exit 1); exit 1; }; }
1124 fi
1125
1126 # Be sure to have absolute directory names.
1127 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128                 datadir sysconfdir sharedstatedir localstatedir includedir \
1129                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130                 libdir localedir mandir
1131 do
1132   eval ac_val=\$$ac_var
1133   case $ac_val in
1134     [\\/$]* | ?:[\\/]* )  continue;;
1135     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136   esac
1137   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138    { (exit 1); exit 1; }; }
1139 done
1140
1141 # There might be people who depend on the old broken behavior: `$host'
1142 # used to hold the argument of --host etc.
1143 # FIXME: To remove some day.
1144 build=$build_alias
1145 host=$host_alias
1146 target=$target_alias
1147
1148 # FIXME: To remove some day.
1149 if test "x$host_alias" != x; then
1150   if test "x$build_alias" = x; then
1151     cross_compiling=maybe
1152     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153     If a cross compiler is detected then cross compile mode will be used." >&2
1154   elif test "x$build_alias" != "x$host_alias"; then
1155     cross_compiling=yes
1156   fi
1157 fi
1158
1159 ac_tool_prefix=
1160 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1161
1162 test "$silent" = yes && exec 6>/dev/null
1163
1164
1165 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166 ac_ls_di=`ls -di .` &&
1167 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168   { echo "$as_me: error: Working directory cannot be determined" >&2
1169    { (exit 1); exit 1; }; }
1170 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171   { echo "$as_me: error: pwd does not report name of working directory" >&2
1172    { (exit 1); exit 1; }; }
1173
1174
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177   ac_srcdir_defaulted=yes
1178   # Try the directory containing this script, then the parent directory.
1179   ac_confdir=`$as_dirname -- "$0" ||
1180 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181          X"$0" : 'X\(//\)[^/]' \| \
1182          X"$0" : 'X\(//\)$' \| \
1183          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1184 echo X"$0" |
1185     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186             s//\1/
1187             q
1188           }
1189           /^X\(\/\/\)[^/].*/{
1190             s//\1/
1191             q
1192           }
1193           /^X\(\/\/\)$/{
1194             s//\1/
1195             q
1196           }
1197           /^X\(\/\).*/{
1198             s//\1/
1199             q
1200           }
1201           s/.*/./; q'`
1202   srcdir=$ac_confdir
1203   if test ! -r "$srcdir/$ac_unique_file"; then
1204     srcdir=..
1205   fi
1206 else
1207   ac_srcdir_defaulted=no
1208 fi
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212    { (exit 1); exit 1; }; }
1213 fi
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 ac_abs_confdir=`(
1216         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217    { (exit 1); exit 1; }; }
1218         pwd)`
1219 # When building in place, set srcdir=.
1220 if test "$ac_abs_confdir" = "$ac_pwd"; then
1221   srcdir=.
1222 fi
1223 # Remove unnecessary trailing slashes from srcdir.
1224 # Double slashes in file names in object file debugging info
1225 # mess up M-x gdb in Emacs.
1226 case $srcdir in
1227 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1228 esac
1229 for ac_var in $ac_precious_vars; do
1230   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1231   eval ac_env_${ac_var}_value=\$${ac_var}
1232   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1233   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1234 done
1235
1236 #
1237 # Report the --help message.
1238 #
1239 if test "$ac_init_help" = "long"; then
1240   # Omit some internal or obsolete options to make the list less imposing.
1241   # This message is too long to be a string in the A/UX 3.1 sh.
1242   cat <<_ACEOF
1243 \`configure' configures this package to adapt to many kinds of systems.
1244
1245 Usage: $0 [OPTION]... [VAR=VALUE]...
1246
1247 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248 VAR=VALUE.  See below for descriptions of some of the useful variables.
1249
1250 Defaults for the options are specified in brackets.
1251
1252 Configuration:
1253   -h, --help              display this help and exit
1254       --help=short        display options specific to this package
1255       --help=recursive    display the short help of all the included packages
1256   -V, --version           display version information and exit
1257   -q, --quiet, --silent   do not print \`checking...' messages
1258       --cache-file=FILE   cache test results in FILE [disabled]
1259   -C, --config-cache      alias for \`--cache-file=config.cache'
1260   -n, --no-create         do not create output files
1261       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1262
1263 Installation directories:
1264   --prefix=PREFIX         install architecture-independent files in PREFIX
1265                           [$ac_default_prefix]
1266   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1267                           [PREFIX]
1268
1269 By default, \`make install' will install all the files in
1270 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1271 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272 for instance \`--prefix=\$HOME'.
1273
1274 For better control, use the options below.
1275
1276 Fine tuning of the installation directories:
1277   --bindir=DIR           user executables [EPREFIX/bin]
1278   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1279   --libexecdir=DIR       program executables [EPREFIX/libexec]
1280   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1281   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1282   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1283   --libdir=DIR           object code libraries [EPREFIX/lib]
1284   --includedir=DIR       C header files [PREFIX/include]
1285   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1286   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1287   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1288   --infodir=DIR          info documentation [DATAROOTDIR/info]
1289   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1290   --mandir=DIR           man documentation [DATAROOTDIR/man]
1291   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1292   --htmldir=DIR          html documentation [DOCDIR]
1293   --dvidir=DIR           dvi documentation [DOCDIR]
1294   --pdfdir=DIR           pdf documentation [DOCDIR]
1295   --psdir=DIR            ps documentation [DOCDIR]
1296 _ACEOF
1297
1298   cat <<\_ACEOF
1299
1300 Program names:
1301   --program-prefix=PREFIX            prepend PREFIX to installed program names
1302   --program-suffix=SUFFIX            append SUFFIX to installed program names
1303   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1304
1305 System types:
1306   --build=BUILD     configure for building on BUILD [guessed]
1307   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1308   --target=TARGET   configure for building compilers for TARGET [HOST]
1309 _ACEOF
1310 fi
1311
1312 if test -n "$ac_init_help"; then
1313
1314   cat <<\_ACEOF
1315
1316 Optional Features:
1317   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1318   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1319   --enable-checkmem       turn on ccmalloc debugging
1320   --enable-debug          turn on debugging
1321   --enable-profiling      turn on profiling
1322   --enable-warnings        turn on compiler warnings
1323   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1324   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1325
1326 Optional Packages:
1327   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1328   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1329   --with-external-libart  use external libart library (currently broken)
1330   --with-poppler          use poppler instead of internal xpdf (currently broken)
1331
1332 Some influential environment variables:
1333   CC          C compiler command
1334   CFLAGS      C compiler flags
1335   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1336               nonstandard directory <lib dir>
1337   LIBS        libraries to pass to the linker, e.g. -l<library>
1338   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1339               you have headers in a nonstandard directory <include dir>
1340   CXX         C++ compiler command
1341   CXXFLAGS    C++ compiler flags
1342   CPP         C preprocessor
1343   PKG_CONFIG  path to pkg-config utility
1344   LIBART_CFLAGS
1345               C compiler flags for LIBART, overriding pkg-config
1346   LIBART_LIBS linker flags for LIBART, overriding pkg-config
1347   POPPLER_CFLAGS
1348               C compiler flags for POPPLER, overriding pkg-config
1349   POPPLER_LIBS
1350               linker flags for POPPLER, overriding pkg-config
1351   CXXCPP      C++ preprocessor
1352
1353 Use these variables to override the choices made by `configure' or to help
1354 it to find libraries and programs with nonstandard names/locations.
1355
1356 _ACEOF
1357 ac_status=$?
1358 fi
1359
1360 if test "$ac_init_help" = "recursive"; then
1361   # If there are subdirs, report their specific --help.
1362   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1363     test -d "$ac_dir" || continue
1364     ac_builddir=.
1365
1366 case "$ac_dir" in
1367 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1368 *)
1369   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1370   # A ".." for each directory in $ac_dir_suffix.
1371   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1372   case $ac_top_builddir_sub in
1373   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1375   esac ;;
1376 esac
1377 ac_abs_top_builddir=$ac_pwd
1378 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1379 # for backward compatibility:
1380 ac_top_builddir=$ac_top_build_prefix
1381
1382 case $srcdir in
1383   .)  # We are building in place.
1384     ac_srcdir=.
1385     ac_top_srcdir=$ac_top_builddir_sub
1386     ac_abs_top_srcdir=$ac_pwd ;;
1387   [\\/]* | ?:[\\/]* )  # Absolute name.
1388     ac_srcdir=$srcdir$ac_dir_suffix;
1389     ac_top_srcdir=$srcdir
1390     ac_abs_top_srcdir=$srcdir ;;
1391   *) # Relative name.
1392     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1393     ac_top_srcdir=$ac_top_build_prefix$srcdir
1394     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1395 esac
1396 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1397
1398     cd "$ac_dir" || { ac_status=$?; continue; }
1399     # Check for guested configure.
1400     if test -f "$ac_srcdir/configure.gnu"; then
1401       echo &&
1402       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1403     elif test -f "$ac_srcdir/configure"; then
1404       echo &&
1405       $SHELL "$ac_srcdir/configure" --help=recursive
1406     else
1407       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1408     fi || ac_status=$?
1409     cd "$ac_pwd" || { ac_status=$?; break; }
1410   done
1411 fi
1412
1413 test -n "$ac_init_help" && exit $ac_status
1414 if $ac_init_version; then
1415   cat <<\_ACEOF
1416 configure
1417 generated by GNU Autoconf 2.61
1418
1419 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1420 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1421 This configure script is free software; the Free Software Foundation
1422 gives unlimited permission to copy, distribute and modify it.
1423 _ACEOF
1424   exit
1425 fi
1426 cat >config.log <<_ACEOF
1427 This file contains any messages produced by compilers while
1428 running configure, to aid debugging if configure makes a mistake.
1429
1430 It was created by $as_me, which was
1431 generated by GNU Autoconf 2.61.  Invocation command line was
1432
1433   $ $0 $@
1434
1435 _ACEOF
1436 exec 5>>config.log
1437 {
1438 cat <<_ASUNAME
1439 ## --------- ##
1440 ## Platform. ##
1441 ## --------- ##
1442
1443 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1444 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1445 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1446 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1447 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1448
1449 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1450 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1451
1452 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1453 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1454 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1455 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1456 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1457 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1458 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1459
1460 _ASUNAME
1461
1462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1463 for as_dir in $PATH
1464 do
1465   IFS=$as_save_IFS
1466   test -z "$as_dir" && as_dir=.
1467   echo "PATH: $as_dir"
1468 done
1469 IFS=$as_save_IFS
1470
1471 } >&5
1472
1473 cat >&5 <<_ACEOF
1474
1475
1476 ## ----------- ##
1477 ## Core tests. ##
1478 ## ----------- ##
1479
1480 _ACEOF
1481
1482
1483 # Keep a trace of the command line.
1484 # Strip out --no-create and --no-recursion so they do not pile up.
1485 # Strip out --silent because we don't want to record it for future runs.
1486 # Also quote any args containing shell meta-characters.
1487 # Make two passes to allow for proper duplicate-argument suppression.
1488 ac_configure_args=
1489 ac_configure_args0=
1490 ac_configure_args1=
1491 ac_must_keep_next=false
1492 for ac_pass in 1 2
1493 do
1494   for ac_arg
1495   do
1496     case $ac_arg in
1497     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1498     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1499     | -silent | --silent | --silen | --sile | --sil)
1500       continue ;;
1501     *\'*)
1502       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1503     esac
1504     case $ac_pass in
1505     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1506     2)
1507       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1508       if test $ac_must_keep_next = true; then
1509         ac_must_keep_next=false # Got value, back to normal.
1510       else
1511         case $ac_arg in
1512           *=* | --config-cache | -C | -disable-* | --disable-* \
1513           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1514           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1515           | -with-* | --with-* | -without-* | --without-* | --x)
1516             case "$ac_configure_args0 " in
1517               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1518             esac
1519             ;;
1520           -* ) ac_must_keep_next=true ;;
1521         esac
1522       fi
1523       ac_configure_args="$ac_configure_args '$ac_arg'"
1524       ;;
1525     esac
1526   done
1527 done
1528 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1529 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1530
1531 # When interrupted or exit'd, cleanup temporary files, and complete
1532 # config.log.  We remove comments because anyway the quotes in there
1533 # would cause problems or look ugly.
1534 # WARNING: Use '\'' to represent an apostrophe within the trap.
1535 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1536 trap 'exit_status=$?
1537   # Save into config.log some information that might help in debugging.
1538   {
1539     echo
1540
1541     cat <<\_ASBOX
1542 ## ---------------- ##
1543 ## Cache variables. ##
1544 ## ---------------- ##
1545 _ASBOX
1546     echo
1547     # The following way of writing the cache mishandles newlines in values,
1548 (
1549   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1550     eval ac_val=\$$ac_var
1551     case $ac_val in #(
1552     *${as_nl}*)
1553       case $ac_var in #(
1554       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1555 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1556       esac
1557       case $ac_var in #(
1558       _ | IFS | as_nl) ;; #(
1559       *) $as_unset $ac_var ;;
1560       esac ;;
1561     esac
1562   done
1563   (set) 2>&1 |
1564     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1565     *${as_nl}ac_space=\ *)
1566       sed -n \
1567         "s/'\''/'\''\\\\'\'''\''/g;
1568           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1569       ;; #(
1570     *)
1571       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1572       ;;
1573     esac |
1574     sort
1575 )
1576     echo
1577
1578     cat <<\_ASBOX
1579 ## ----------------- ##
1580 ## Output variables. ##
1581 ## ----------------- ##
1582 _ASBOX
1583     echo
1584     for ac_var in $ac_subst_vars
1585     do
1586       eval ac_val=\$$ac_var
1587       case $ac_val in
1588       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1589       esac
1590       echo "$ac_var='\''$ac_val'\''"
1591     done | sort
1592     echo
1593
1594     if test -n "$ac_subst_files"; then
1595       cat <<\_ASBOX
1596 ## ------------------- ##
1597 ## File substitutions. ##
1598 ## ------------------- ##
1599 _ASBOX
1600       echo
1601       for ac_var in $ac_subst_files
1602       do
1603         eval ac_val=\$$ac_var
1604         case $ac_val in
1605         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1606         esac
1607         echo "$ac_var='\''$ac_val'\''"
1608       done | sort
1609       echo
1610     fi
1611
1612     if test -s confdefs.h; then
1613       cat <<\_ASBOX
1614 ## ----------- ##
1615 ## confdefs.h. ##
1616 ## ----------- ##
1617 _ASBOX
1618       echo
1619       cat confdefs.h
1620       echo
1621     fi
1622     test "$ac_signal" != 0 &&
1623       echo "$as_me: caught signal $ac_signal"
1624     echo "$as_me: exit $exit_status"
1625   } >&5
1626   rm -f core *.core core.conftest.* &&
1627     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1628     exit $exit_status
1629 ' 0
1630 for ac_signal in 1 2 13 15; do
1631   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1632 done
1633 ac_signal=0
1634
1635 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1636 rm -f -r conftest* confdefs.h
1637
1638 # Predefined preprocessor variables.
1639
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_NAME "$PACKAGE_NAME"
1642 _ACEOF
1643
1644
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1647 _ACEOF
1648
1649
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1652 _ACEOF
1653
1654
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_STRING "$PACKAGE_STRING"
1657 _ACEOF
1658
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1662 _ACEOF
1663
1664
1665 # Let the site file select an alternate cache file if it wants to.
1666 # Prefer explicitly selected file to automatically selected ones.
1667 if test -n "$CONFIG_SITE"; then
1668   set x "$CONFIG_SITE"
1669 elif test "x$prefix" != xNONE; then
1670   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1671 else
1672   set x "$ac_default_prefix/share/config.site" \
1673         "$ac_default_prefix/etc/config.site"
1674 fi
1675 shift
1676 for ac_site_file
1677 do
1678   if test -r "$ac_site_file"; then
1679     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1680 echo "$as_me: loading site script $ac_site_file" >&6;}
1681     sed 's/^/| /' "$ac_site_file" >&5
1682     . "$ac_site_file"
1683   fi
1684 done
1685
1686 if test -r "$cache_file"; then
1687   # Some versions of bash will fail to source /dev/null (special
1688   # files actually), so we avoid doing that.
1689   if test -f "$cache_file"; then
1690     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1691 echo "$as_me: loading cache $cache_file" >&6;}
1692     case $cache_file in
1693       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1694       *)                      . "./$cache_file";;
1695     esac
1696   fi
1697 else
1698   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1699 echo "$as_me: creating cache $cache_file" >&6;}
1700   >$cache_file
1701 fi
1702
1703 # Check that the precious variables saved in the cache have kept the same
1704 # value.
1705 ac_cache_corrupted=false
1706 for ac_var in $ac_precious_vars; do
1707   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1708   eval ac_new_set=\$ac_env_${ac_var}_set
1709   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1710   eval ac_new_val=\$ac_env_${ac_var}_value
1711   case $ac_old_set,$ac_new_set in
1712     set,)
1713       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1714 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1715       ac_cache_corrupted=: ;;
1716     ,set)
1717       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1718 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1719       ac_cache_corrupted=: ;;
1720     ,);;
1721     *)
1722       if test "x$ac_old_val" != "x$ac_new_val"; then
1723         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1724 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1725         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1726 echo "$as_me:   former value:  $ac_old_val" >&2;}
1727         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1728 echo "$as_me:   current value: $ac_new_val" >&2;}
1729         ac_cache_corrupted=:
1730       fi;;
1731   esac
1732   # Pass precious variables to config.status.
1733   if test "$ac_new_set" = set; then
1734     case $ac_new_val in
1735     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1736     *) ac_arg=$ac_var=$ac_new_val ;;
1737     esac
1738     case " $ac_configure_args " in
1739       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1740       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1741     esac
1742   fi
1743 done
1744 if $ac_cache_corrupted; then
1745   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1746 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1747   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1748 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1749    { (exit 1); exit 1; }; }
1750 fi
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768 ac_ext=c
1769 ac_cpp='$CPP $CPPFLAGS'
1770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1773
1774
1775
1776
1777 # Check whether --enable-checkmem was given.
1778 if test "${enable_checkmem+set}" = set; then
1779   enableval=$enable_checkmem; CHECKMEM=true
1780 fi
1781
1782 # Check whether --enable-debug was given.
1783 if test "${enable_debug+set}" = set; then
1784   enableval=$enable_debug; DEBUG=true
1785 fi
1786
1787 # Check whether --enable-profiling was given.
1788 if test "${enable_profiling+set}" = set; then
1789   enableval=$enable_profiling; PROFILING=true
1790 fi
1791
1792 # Check whether --enable-warnings was given.
1793 if test "${enable_warnings+set}" = set; then
1794   enableval=$enable_warnings; ENABLE_WARNINGS=true
1795 fi
1796
1797 # Check whether --enable-optimizations was given.
1798 if test "${enable_optimizations+set}" = set; then
1799   enableval=$enable_optimizations; OPTIMIZE=true
1800 fi
1801
1802 # Check whether --enable-lame was given.
1803 if test "${enable_lame+set}" = set; then
1804   enableval=$enable_lame; DISABLE_LAME=true
1805 fi
1806
1807
1808 # Check whether --with-external-libart was given.
1809 if test "${with_external_libart+set}" = set; then
1810   withval=$with_external_libart; EXTERNAL_LIBART=true
1811 fi
1812
1813
1814 # Check whether --with-poppler was given.
1815 if test "${with_poppler+set}" = set; then
1816   withval=$with_poppler; USE_POPPLER=true
1817 fi
1818
1819
1820 PACKAGE=swftools
1821 VERSION=2008-07-11-0020
1822
1823
1824 # ------------------------------------------------------------------
1825
1826 if test "x${srcdir}" != "x."; then
1827     echo "--srcdir is not supported"
1828     exit 1
1829 fi
1830
1831 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1832 if test "x$ENABLE_WARNINGS" '!=' "x";then
1833     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1834 fi
1835
1836 if test "x$CHECKMEM" '!=' "x";then
1837     DEBUG=yes
1838 fi
1839 if test "x$PROFILING" '!=' "x";then
1840     DEBUG=yes
1841 fi
1842 if test "x$DEBUG" '!=' "x";then
1843     if test "x$PROFILING" = "x";then
1844         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1845         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1846         LDFLAGS="-g $LIBS"
1847     else
1848         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1849         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1850         LDFLAGS="-g -pg $LIBS"
1851     fi
1852 else if test "x$OPTIMIZE" '!=' "x"; then
1853     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1854     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1855 else
1856     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1857     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1858 fi
1859 fi
1860
1861 CFLAGS="-fPIC $CFLAGS"
1862 CXXFLAGS="-fPIC $CFLAGS"
1863
1864 #OLDGCC=1
1865 #if test "x$OLDGCC" '!=' "x";then
1866 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1867 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1868 #     CFLAGS="$CFLAGS -ansi -pendantic"
1869 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1870 #fi
1871
1872 export PACKAGE VERSION CFLAGS CXXFLAGS
1873
1874
1875 ac_aux_dir=
1876 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1877   if test -f "$ac_dir/install-sh"; then
1878     ac_aux_dir=$ac_dir
1879     ac_install_sh="$ac_aux_dir/install-sh -c"
1880     break
1881   elif test -f "$ac_dir/install.sh"; then
1882     ac_aux_dir=$ac_dir
1883     ac_install_sh="$ac_aux_dir/install.sh -c"
1884     break
1885   elif test -f "$ac_dir/shtool"; then
1886     ac_aux_dir=$ac_dir
1887     ac_install_sh="$ac_aux_dir/shtool install -c"
1888     break
1889   fi
1890 done
1891 if test -z "$ac_aux_dir"; then
1892   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1894    { (exit 1); exit 1; }; }
1895 fi
1896
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1904
1905
1906 # Make sure we can run config.sub.
1907 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1908   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1909 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1910    { (exit 1); exit 1; }; }
1911
1912 { echo "$as_me:$LINENO: checking build system type" >&5
1913 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1914 if test "${ac_cv_build+set}" = set; then
1915   echo $ECHO_N "(cached) $ECHO_C" >&6
1916 else
1917   ac_build_alias=$build_alias
1918 test "x$ac_build_alias" = x &&
1919   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1920 test "x$ac_build_alias" = x &&
1921   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1922 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1923    { (exit 1); exit 1; }; }
1924 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1925   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1926 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1927    { (exit 1); exit 1; }; }
1928
1929 fi
1930 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1931 echo "${ECHO_T}$ac_cv_build" >&6; }
1932 case $ac_cv_build in
1933 *-*-*) ;;
1934 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1935 echo "$as_me: error: invalid value of canonical build" >&2;}
1936    { (exit 1); exit 1; }; };;
1937 esac
1938 build=$ac_cv_build
1939 ac_save_IFS=$IFS; IFS='-'
1940 set x $ac_cv_build
1941 shift
1942 build_cpu=$1
1943 build_vendor=$2
1944 shift; shift
1945 # Remember, the first character of IFS is used to create $*,
1946 # except with old shells:
1947 build_os=$*
1948 IFS=$ac_save_IFS
1949 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1950
1951
1952 { echo "$as_me:$LINENO: checking host system type" >&5
1953 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1954 if test "${ac_cv_host+set}" = set; then
1955   echo $ECHO_N "(cached) $ECHO_C" >&6
1956 else
1957   if test "x$host_alias" = x; then
1958   ac_cv_host=$ac_cv_build
1959 else
1960   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1961     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1962 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1963    { (exit 1); exit 1; }; }
1964 fi
1965
1966 fi
1967 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1968 echo "${ECHO_T}$ac_cv_host" >&6; }
1969 case $ac_cv_host in
1970 *-*-*) ;;
1971 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1972 echo "$as_me: error: invalid value of canonical host" >&2;}
1973    { (exit 1); exit 1; }; };;
1974 esac
1975 host=$ac_cv_host
1976 ac_save_IFS=$IFS; IFS='-'
1977 set x $ac_cv_host
1978 shift
1979 host_cpu=$1
1980 host_vendor=$2
1981 shift; shift
1982 # Remember, the first character of IFS is used to create $*,
1983 # except with old shells:
1984 host_os=$*
1985 IFS=$ac_save_IFS
1986 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1987
1988
1989
1990 SHARED="-shared"
1991 MACOSX=
1992 case $host_os in
1993     *darwin* )
1994         MACOSX=yes
1995         CFLAGS="$CFLAGS"
1996         CXXFLAGS="$CXXFLAGS -fno-rtti"
1997         SHARED="-bundle"
1998         # Use fink packages if available.
1999         #if test -d /sw/include && test -d /sw/lib; then
2000         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
2001         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
2002         #fi
2003         ;;
2004 esac
2005
2006
2007
2008  ac_ext=c
2009 ac_cpp='$CPP $CPPFLAGS'
2010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013 if test -n "$ac_tool_prefix"; then
2014   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2015 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018 if test "${ac_cv_prog_CC+set}" = set; then
2019   echo $ECHO_N "(cached) $ECHO_C" >&6
2020 else
2021   if test -n "$CC"; then
2022   ac_cv_prog_CC="$CC" # Let the user override the test.
2023 else
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 for as_dir in $PATH
2026 do
2027   IFS=$as_save_IFS
2028   test -z "$as_dir" && as_dir=.
2029   for ac_exec_ext in '' $ac_executable_extensions; do
2030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2031     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2033     break 2
2034   fi
2035 done
2036 done
2037 IFS=$as_save_IFS
2038
2039 fi
2040 fi
2041 CC=$ac_cv_prog_CC
2042 if test -n "$CC"; then
2043   { echo "$as_me:$LINENO: result: $CC" >&5
2044 echo "${ECHO_T}$CC" >&6; }
2045 else
2046   { echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6; }
2048 fi
2049
2050
2051 fi
2052 if test -z "$ac_cv_prog_CC"; then
2053   ac_ct_CC=$CC
2054   # Extract the first word of "gcc", so it can be a program name with args.
2055 set dummy gcc; ac_word=$2
2056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059   echo $ECHO_N "(cached) $ECHO_C" >&6
2060 else
2061   if test -n "$ac_ct_CC"; then
2062   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2063 else
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2065 for as_dir in $PATH
2066 do
2067   IFS=$as_save_IFS
2068   test -z "$as_dir" && as_dir=.
2069   for ac_exec_ext in '' $ac_executable_extensions; do
2070   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2071     ac_cv_prog_ac_ct_CC="gcc"
2072     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2073     break 2
2074   fi
2075 done
2076 done
2077 IFS=$as_save_IFS
2078
2079 fi
2080 fi
2081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082 if test -n "$ac_ct_CC"; then
2083   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084 echo "${ECHO_T}$ac_ct_CC" >&6; }
2085 else
2086   { echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6; }
2088 fi
2089
2090   if test "x$ac_ct_CC" = x; then
2091     CC=""
2092   else
2093     case $cross_compiling:$ac_tool_warned in
2094 yes:)
2095 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet.  If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&5
2098 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2099 whose name does not start with the host triplet.  If you think this
2100 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2101 ac_tool_warned=yes ;;
2102 esac
2103     CC=$ac_ct_CC
2104   fi
2105 else
2106   CC="$ac_cv_prog_CC"
2107 fi
2108
2109 if test -z "$CC"; then
2110           if test -n "$ac_tool_prefix"; then
2111     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2112 set dummy ${ac_tool_prefix}cc; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_CC+set}" = set; then
2116   echo $ECHO_N "(cached) $ECHO_C" >&6
2117 else
2118   if test -n "$CC"; then
2119   ac_cv_prog_CC="$CC" # Let the user override the test.
2120 else
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2122 for as_dir in $PATH
2123 do
2124   IFS=$as_save_IFS
2125   test -z "$as_dir" && as_dir=.
2126   for ac_exec_ext in '' $ac_executable_extensions; do
2127   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128     ac_cv_prog_CC="${ac_tool_prefix}cc"
2129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2130     break 2
2131   fi
2132 done
2133 done
2134 IFS=$as_save_IFS
2135
2136 fi
2137 fi
2138 CC=$ac_cv_prog_CC
2139 if test -n "$CC"; then
2140   { echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6; }
2142 else
2143   { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2145 fi
2146
2147
2148   fi
2149 fi
2150 if test -z "$CC"; then
2151   # Extract the first word of "cc", so it can be a program name with args.
2152 set dummy cc; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156   echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158   if test -n "$CC"; then
2159   ac_cv_prog_CC="$CC" # Let the user override the test.
2160 else
2161   ac_prog_rejected=no
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2163 for as_dir in $PATH
2164 do
2165   IFS=$as_save_IFS
2166   test -z "$as_dir" && as_dir=.
2167   for ac_exec_ext in '' $ac_executable_extensions; do
2168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2169     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2170        ac_prog_rejected=yes
2171        continue
2172      fi
2173     ac_cv_prog_CC="cc"
2174     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2175     break 2
2176   fi
2177 done
2178 done
2179 IFS=$as_save_IFS
2180
2181 if test $ac_prog_rejected = yes; then
2182   # We found a bogon in the path, so make sure we never use it.
2183   set dummy $ac_cv_prog_CC
2184   shift
2185   if test $# != 0; then
2186     # We chose a different compiler from the bogus one.
2187     # However, it has the same basename, so the bogon will be chosen
2188     # first if we set CC to just the basename; use the full file name.
2189     shift
2190     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2191   fi
2192 fi
2193 fi
2194 fi
2195 CC=$ac_cv_prog_CC
2196 if test -n "$CC"; then
2197   { echo "$as_me:$LINENO: result: $CC" >&5
2198 echo "${ECHO_T}$CC" >&6; }
2199 else
2200   { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2202 fi
2203
2204
2205 fi
2206 if test -z "$CC"; then
2207   if test -n "$ac_tool_prefix"; then
2208   for ac_prog in cl.exe
2209   do
2210     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2214 if test "${ac_cv_prog_CC+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   if test -n "$CC"; then
2218   ac_cv_prog_CC="$CC" # Let the user override the test.
2219 else
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH
2222 do
2223   IFS=$as_save_IFS
2224   test -z "$as_dir" && as_dir=.
2225   for ac_exec_ext in '' $ac_executable_extensions; do
2226   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2227     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2228     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2229     break 2
2230   fi
2231 done
2232 done
2233 IFS=$as_save_IFS
2234
2235 fi
2236 fi
2237 CC=$ac_cv_prog_CC
2238 if test -n "$CC"; then
2239   { echo "$as_me:$LINENO: result: $CC" >&5
2240 echo "${ECHO_T}$CC" >&6; }
2241 else
2242   { echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6; }
2244 fi
2245
2246
2247     test -n "$CC" && break
2248   done
2249 fi
2250 if test -z "$CC"; then
2251   ac_ct_CC=$CC
2252   for ac_prog in cl.exe
2253 do
2254   # Extract the first word of "$ac_prog", so it can be a program name with args.
2255 set dummy $ac_prog; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2259   echo $ECHO_N "(cached) $ECHO_C" >&6
2260 else
2261   if test -n "$ac_ct_CC"; then
2262   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2263 else
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 for as_dir in $PATH
2266 do
2267   IFS=$as_save_IFS
2268   test -z "$as_dir" && as_dir=.
2269   for ac_exec_ext in '' $ac_executable_extensions; do
2270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271     ac_cv_prog_ac_ct_CC="$ac_prog"
2272     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2273     break 2
2274   fi
2275 done
2276 done
2277 IFS=$as_save_IFS
2278
2279 fi
2280 fi
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284 echo "${ECHO_T}$ac_ct_CC" >&6; }
2285 else
2286   { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2288 fi
2289
2290
2291   test -n "$ac_ct_CC" && break
2292 done
2293
2294   if test "x$ac_ct_CC" = x; then
2295     CC=""
2296   else
2297     case $cross_compiling:$ac_tool_warned in
2298 yes:)
2299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2300 whose name does not start with the host triplet.  If you think this
2301 configuration is useful to you, please write to autoconf@gnu.org." >&5
2302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2303 whose name does not start with the host triplet.  If you think this
2304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2305 ac_tool_warned=yes ;;
2306 esac
2307     CC=$ac_ct_CC
2308   fi
2309 fi
2310
2311 fi
2312
2313
2314 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: no acceptable C compiler found in \$PATH
2317 See \`config.log' for more details." >&2;}
2318    { (exit 1); exit 1; }; }
2319
2320 # Provide some information about the compiler.
2321 echo "$as_me:$LINENO: checking for C compiler version" >&5
2322 ac_compiler=`set X $ac_compile; echo $2`
2323 { (ac_try="$ac_compiler --version >&5"
2324 case "(($ac_try" in
2325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326   *) ac_try_echo=$ac_try;;
2327 esac
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329   (eval "$ac_compiler --version >&5") 2>&5
2330   ac_status=$?
2331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332   (exit $ac_status); }
2333 { (ac_try="$ac_compiler -v >&5"
2334 case "(($ac_try" in
2335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336   *) ac_try_echo=$ac_try;;
2337 esac
2338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2339   (eval "$ac_compiler -v >&5") 2>&5
2340   ac_status=$?
2341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342   (exit $ac_status); }
2343 { (ac_try="$ac_compiler -V >&5"
2344 case "(($ac_try" in
2345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346   *) ac_try_echo=$ac_try;;
2347 esac
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349   (eval "$ac_compiler -V >&5") 2>&5
2350   ac_status=$?
2351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352   (exit $ac_status); }
2353
2354 cat >conftest.$ac_ext <<_ACEOF
2355 /* confdefs.h.  */
2356 _ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h.  */
2360
2361 int
2362 main ()
2363 {
2364
2365   ;
2366   return 0;
2367 }
2368 _ACEOF
2369 ac_clean_files_save=$ac_clean_files
2370 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2371 # Try to create an executable without -o first, disregard a.out.
2372 # It will help us diagnose broken compilers, and finding out an intuition
2373 # of exeext.
2374 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2375 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2376 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2377 #
2378 # List of possible output files, starting from the most likely.
2379 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2380 # only as a last resort.  b.out is created by i960 compilers.
2381 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2382 #
2383 # The IRIX 6 linker writes into existing files which may not be
2384 # executable, retaining their permissions.  Remove them first so a
2385 # subsequent execution test works.
2386 ac_rmfiles=
2387 for ac_file in $ac_files
2388 do
2389   case $ac_file in
2390     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2391     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2392   esac
2393 done
2394 rm -f $ac_rmfiles
2395
2396 if { (ac_try="$ac_link_default"
2397 case "(($ac_try" in
2398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399   *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402   (eval "$ac_link_default") 2>&5
2403   ac_status=$?
2404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405   (exit $ac_status); }; then
2406   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2407 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2408 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2409 # so that the user can short-circuit this test for compilers unknown to
2410 # Autoconf.
2411 for ac_file in $ac_files ''
2412 do
2413   test -f "$ac_file" || continue
2414   case $ac_file in
2415     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2416         ;;
2417     [ab].out )
2418         # We found the default executable, but exeext='' is most
2419         # certainly right.
2420         break;;
2421     *.* )
2422         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2423         then :; else
2424            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2425         fi
2426         # We set ac_cv_exeext here because the later test for it is not
2427         # safe: cross compilers may not add the suffix if given an `-o'
2428         # argument, so we may need to know it at that point already.
2429         # Even if this section looks crufty: it has the advantage of
2430         # actually working.
2431         break;;
2432     * )
2433         break;;
2434   esac
2435 done
2436 test "$ac_cv_exeext" = no && ac_cv_exeext=
2437
2438 else
2439   ac_file=''
2440 fi
2441
2442 { echo "$as_me:$LINENO: result: $ac_file" >&5
2443 echo "${ECHO_T}$ac_file" >&6; }
2444 if test -z "$ac_file"; then
2445   echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2449 See \`config.log' for more details." >&5
2450 echo "$as_me: error: C compiler cannot create executables
2451 See \`config.log' for more details." >&2;}
2452    { (exit 77); exit 77; }; }
2453 fi
2454
2455 ac_exeext=$ac_cv_exeext
2456
2457 # Check that the compiler produces executables we can run.  If not, either
2458 # the compiler is broken, or we cross compile.
2459 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2460 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2461 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2462 # If not cross compiling, check that we can run a simple program.
2463 if test "$cross_compiling" != yes; then
2464   if { ac_try='./$ac_file'
2465   { (case "(($ac_try" in
2466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467   *) ac_try_echo=$ac_try;;
2468 esac
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470   (eval "$ac_try") 2>&5
2471   ac_status=$?
2472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473   (exit $ac_status); }; }; then
2474     cross_compiling=no
2475   else
2476     if test "$cross_compiling" = maybe; then
2477         cross_compiling=yes
2478     else
2479         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \`config.log' for more details." >&5
2482 echo "$as_me: error: cannot run C compiled programs.
2483 If you meant to cross compile, use \`--host'.
2484 See \`config.log' for more details." >&2;}
2485    { (exit 1); exit 1; }; }
2486     fi
2487   fi
2488 fi
2489 { echo "$as_me:$LINENO: result: yes" >&5
2490 echo "${ECHO_T}yes" >&6; }
2491
2492 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2493 ac_clean_files=$ac_clean_files_save
2494 # Check that the compiler produces executables we can run.  If not, either
2495 # the compiler is broken, or we cross compile.
2496 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2497 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2498 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2499 echo "${ECHO_T}$cross_compiling" >&6; }
2500
2501 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2502 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2503 if { (ac_try="$ac_link"
2504 case "(($ac_try" in
2505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506   *) ac_try_echo=$ac_try;;
2507 esac
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509   (eval "$ac_link") 2>&5
2510   ac_status=$?
2511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512   (exit $ac_status); }; then
2513   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2514 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2515 # work properly (i.e., refer to `conftest.exe'), while it won't with
2516 # `rm'.
2517 for ac_file in conftest.exe conftest conftest.*; do
2518   test -f "$ac_file" || continue
2519   case $ac_file in
2520     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2521     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2522           break;;
2523     * ) break;;
2524   esac
2525 done
2526 else
2527   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2530 See \`config.log' for more details." >&2;}
2531    { (exit 1); exit 1; }; }
2532 fi
2533
2534 rm -f conftest$ac_cv_exeext
2535 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2536 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2537
2538 rm -f conftest.$ac_ext
2539 EXEEXT=$ac_cv_exeext
2540 ac_exeext=$EXEEXT
2541 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2542 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2543 if test "${ac_cv_objext+set}" = set; then
2544   echo $ECHO_N "(cached) $ECHO_C" >&6
2545 else
2546   cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h.  */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h.  */
2552
2553 int
2554 main ()
2555 {
2556
2557   ;
2558   return 0;
2559 }
2560 _ACEOF
2561 rm -f conftest.o conftest.obj
2562 if { (ac_try="$ac_compile"
2563 case "(($ac_try" in
2564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565   *) ac_try_echo=$ac_try;;
2566 esac
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568   (eval "$ac_compile") 2>&5
2569   ac_status=$?
2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571   (exit $ac_status); }; then
2572   for ac_file in conftest.o conftest.obj conftest.*; do
2573   test -f "$ac_file" || continue;
2574   case $ac_file in
2575     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2576     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2577        break;;
2578   esac
2579 done
2580 else
2581   echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2587 See \`config.log' for more details." >&2;}
2588    { (exit 1); exit 1; }; }
2589 fi
2590
2591 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2592 fi
2593 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2594 echo "${ECHO_T}$ac_cv_objext" >&6; }
2595 OBJEXT=$ac_cv_objext
2596 ac_objext=$OBJEXT
2597 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2598 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2599 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2600   echo $ECHO_N "(cached) $ECHO_C" >&6
2601 else
2602   cat >conftest.$ac_ext <<_ACEOF
2603 /* confdefs.h.  */
2604 _ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h.  */
2608
2609 int
2610 main ()
2611 {
2612 #ifndef __GNUC__
2613        choke me
2614 #endif
2615
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 rm -f conftest.$ac_objext
2621 if { (ac_try="$ac_compile"
2622 case "(($ac_try" in
2623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624   *) ac_try_echo=$ac_try;;
2625 esac
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627   (eval "$ac_compile") 2>conftest.er1
2628   ac_status=$?
2629   grep -v '^ *+' conftest.er1 >conftest.err
2630   rm -f conftest.er1
2631   cat conftest.err >&5
2632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633   (exit $ac_status); } && {
2634          test -z "$ac_c_werror_flag" ||
2635          test ! -s conftest.err
2636        } && test -s conftest.$ac_objext; then
2637   ac_compiler_gnu=yes
2638 else
2639   echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2641
2642         ac_compiler_gnu=no
2643 fi
2644
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2647
2648 fi
2649 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2650 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2651 GCC=`test $ac_compiler_gnu = yes && echo yes`
2652 ac_test_CFLAGS=${CFLAGS+set}
2653 ac_save_CFLAGS=$CFLAGS
2654 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2655 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2656 if test "${ac_cv_prog_cc_g+set}" = set; then
2657   echo $ECHO_N "(cached) $ECHO_C" >&6
2658 else
2659   ac_save_c_werror_flag=$ac_c_werror_flag
2660    ac_c_werror_flag=yes
2661    ac_cv_prog_cc_g=no
2662    CFLAGS="-g"
2663    cat >conftest.$ac_ext <<_ACEOF
2664 /* confdefs.h.  */
2665 _ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h.  */
2669
2670 int
2671 main ()
2672 {
2673
2674   ;
2675   return 0;
2676 }
2677 _ACEOF
2678 rm -f conftest.$ac_objext
2679 if { (ac_try="$ac_compile"
2680 case "(($ac_try" in
2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682   *) ac_try_echo=$ac_try;;
2683 esac
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685   (eval "$ac_compile") 2>conftest.er1
2686   ac_status=$?
2687   grep -v '^ *+' conftest.er1 >conftest.err
2688   rm -f conftest.er1
2689   cat conftest.err >&5
2690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691   (exit $ac_status); } && {
2692          test -z "$ac_c_werror_flag" ||
2693          test ! -s conftest.err
2694        } && test -s conftest.$ac_objext; then
2695   ac_cv_prog_cc_g=yes
2696 else
2697   echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2699
2700         CFLAGS=""
2701       cat >conftest.$ac_ext <<_ACEOF
2702 /* confdefs.h.  */
2703 _ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h.  */
2707
2708 int
2709 main ()
2710 {
2711
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 rm -f conftest.$ac_objext
2717 if { (ac_try="$ac_compile"
2718 case "(($ac_try" in
2719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720   *) ac_try_echo=$ac_try;;
2721 esac
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723   (eval "$ac_compile") 2>conftest.er1
2724   ac_status=$?
2725   grep -v '^ *+' conftest.er1 >conftest.err
2726   rm -f conftest.er1
2727   cat conftest.err >&5
2728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729   (exit $ac_status); } && {
2730          test -z "$ac_c_werror_flag" ||
2731          test ! -s conftest.err
2732        } && test -s conftest.$ac_objext; then
2733   :
2734 else
2735   echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2737
2738         ac_c_werror_flag=$ac_save_c_werror_flag
2739          CFLAGS="-g"
2740          cat >conftest.$ac_ext <<_ACEOF
2741 /* confdefs.h.  */
2742 _ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h.  */
2746
2747 int
2748 main ()
2749 {
2750
2751   ;
2752   return 0;
2753 }
2754 _ACEOF
2755 rm -f conftest.$ac_objext
2756 if { (ac_try="$ac_compile"
2757 case "(($ac_try" in
2758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759   *) ac_try_echo=$ac_try;;
2760 esac
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762   (eval "$ac_compile") 2>conftest.er1
2763   ac_status=$?
2764   grep -v '^ *+' conftest.er1 >conftest.err
2765   rm -f conftest.er1
2766   cat conftest.err >&5
2767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768   (exit $ac_status); } && {
2769          test -z "$ac_c_werror_flag" ||
2770          test ! -s conftest.err
2771        } && test -s conftest.$ac_objext; then
2772   ac_cv_prog_cc_g=yes
2773 else
2774   echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2776
2777
2778 fi
2779
2780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2781 fi
2782
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 fi
2785
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787    ac_c_werror_flag=$ac_save_c_werror_flag
2788 fi
2789 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2790 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2791 if test "$ac_test_CFLAGS" = set; then
2792   CFLAGS=$ac_save_CFLAGS
2793 elif test $ac_cv_prog_cc_g = yes; then
2794   if test "$GCC" = yes; then
2795     CFLAGS="-g -O2"
2796   else
2797     CFLAGS="-g"
2798   fi
2799 else
2800   if test "$GCC" = yes; then
2801     CFLAGS="-O2"
2802   else
2803     CFLAGS=
2804   fi
2805 fi
2806 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2807 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_cc_c89+set}" = set; then
2809   echo $ECHO_N "(cached) $ECHO_C" >&6
2810 else
2811   ac_cv_prog_cc_c89=no
2812 ac_save_CC=$CC
2813 cat >conftest.$ac_ext <<_ACEOF
2814 /* confdefs.h.  */
2815 _ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h.  */
2819 #include <stdarg.h>
2820 #include <stdio.h>
2821 #include <sys/types.h>
2822 #include <sys/stat.h>
2823 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2824 struct buf { int x; };
2825 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2826 static char *e (p, i)
2827      char **p;
2828      int i;
2829 {
2830   return p[i];
2831 }
2832 static char *f (char * (*g) (char **, int), char **p, ...)
2833 {
2834   char *s;
2835   va_list v;
2836   va_start (v,p);
2837   s = g (p, va_arg (v,int));
2838   va_end (v);
2839   return s;
2840 }
2841
2842 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2843    function prototypes and stuff, but not '\xHH' hex character constants.
2844    These don't provoke an error unfortunately, instead are silently treated
2845    as 'x'.  The following induces an error, until -std is added to get
2846    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2847    array size at least.  It's necessary to write '\x00'==0 to get something
2848    that's true only with -std.  */
2849 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2850
2851 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2852    inside strings and character constants.  */
2853 #define FOO(x) 'x'
2854 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2855
2856 int test (int i, double x);
2857 struct s1 {int (*f) (int a);};
2858 struct s2 {int (*f) (double a);};
2859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2860 int argc;
2861 char **argv;
2862 int
2863 main ()
2864 {
2865 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2866   ;
2867   return 0;
2868 }
2869 _ACEOF
2870 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2871         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2872 do
2873   CC="$ac_save_CC $ac_arg"
2874   rm -f conftest.$ac_objext
2875 if { (ac_try="$ac_compile"
2876 case "(($ac_try" in
2877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878   *) ac_try_echo=$ac_try;;
2879 esac
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881   (eval "$ac_compile") 2>conftest.er1
2882   ac_status=$?
2883   grep -v '^ *+' conftest.er1 >conftest.err
2884   rm -f conftest.er1
2885   cat conftest.err >&5
2886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887   (exit $ac_status); } && {
2888          test -z "$ac_c_werror_flag" ||
2889          test ! -s conftest.err
2890        } && test -s conftest.$ac_objext; then
2891   ac_cv_prog_cc_c89=$ac_arg
2892 else
2893   echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2895
2896
2897 fi
2898
2899 rm -f core conftest.err conftest.$ac_objext
2900   test "x$ac_cv_prog_cc_c89" != "xno" && break
2901 done
2902 rm -f conftest.$ac_ext
2903 CC=$ac_save_CC
2904
2905 fi
2906 # AC_CACHE_VAL
2907 case "x$ac_cv_prog_cc_c89" in
2908   x)
2909     { echo "$as_me:$LINENO: result: none needed" >&5
2910 echo "${ECHO_T}none needed" >&6; } ;;
2911   xno)
2912     { echo "$as_me:$LINENO: result: unsupported" >&5
2913 echo "${ECHO_T}unsupported" >&6; } ;;
2914   *)
2915     CC="$CC $ac_cv_prog_cc_c89"
2916     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2917 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2918 esac
2919
2920
2921 ac_ext=c
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2926
2927  ac_ext=cpp
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 if test -z "$CXX"; then
2933   if test -n "$CCC"; then
2934     CXX=$CCC
2935   else
2936     if test -n "$ac_tool_prefix"; then
2937   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2938   do
2939     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_CXX+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   if test -n "$CXX"; then
2947   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2948 else
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 for as_dir in $PATH
2951 do
2952   IFS=$as_save_IFS
2953   test -z "$as_dir" && as_dir=.
2954   for ac_exec_ext in '' $ac_executable_extensions; do
2955   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2957     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2958     break 2
2959   fi
2960 done
2961 done
2962 IFS=$as_save_IFS
2963
2964 fi
2965 fi
2966 CXX=$ac_cv_prog_CXX
2967 if test -n "$CXX"; then
2968   { echo "$as_me:$LINENO: result: $CXX" >&5
2969 echo "${ECHO_T}$CXX" >&6; }
2970 else
2971   { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2973 fi
2974
2975
2976     test -n "$CXX" && break
2977   done
2978 fi
2979 if test -z "$CXX"; then
2980   ac_ct_CXX=$CXX
2981   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2982 do
2983   # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2988   echo $ECHO_N "(cached) $ECHO_C" >&6
2989 else
2990   if test -n "$ac_ct_CXX"; then
2991   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2992 else
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994 for as_dir in $PATH
2995 do
2996   IFS=$as_save_IFS
2997   test -z "$as_dir" && as_dir=.
2998   for ac_exec_ext in '' $ac_executable_extensions; do
2999   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000     ac_cv_prog_ac_ct_CXX="$ac_prog"
3001     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3002     break 2
3003   fi
3004 done
3005 done
3006 IFS=$as_save_IFS
3007
3008 fi
3009 fi
3010 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3011 if test -n "$ac_ct_CXX"; then
3012   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3013 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3014 else
3015   { echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6; }
3017 fi
3018
3019
3020   test -n "$ac_ct_CXX" && break
3021 done
3022
3023   if test "x$ac_ct_CXX" = x; then
3024     CXX="g++"
3025   else
3026     case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet.  If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&5
3031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet.  If you think this
3033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3034 ac_tool_warned=yes ;;
3035 esac
3036     CXX=$ac_ct_CXX
3037   fi
3038 fi
3039
3040   fi
3041 fi
3042 # Provide some information about the compiler.
3043 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3044 ac_compiler=`set X $ac_compile; echo $2`
3045 { (ac_try="$ac_compiler --version >&5"
3046 case "(($ac_try" in
3047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048   *) ac_try_echo=$ac_try;;
3049 esac
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051   (eval "$ac_compiler --version >&5") 2>&5
3052   ac_status=$?
3053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054   (exit $ac_status); }
3055 { (ac_try="$ac_compiler -v >&5"
3056 case "(($ac_try" in
3057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058   *) ac_try_echo=$ac_try;;
3059 esac
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061   (eval "$ac_compiler -v >&5") 2>&5
3062   ac_status=$?
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); }
3065 { (ac_try="$ac_compiler -V >&5"
3066 case "(($ac_try" in
3067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068   *) ac_try_echo=$ac_try;;
3069 esac
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071   (eval "$ac_compiler -V >&5") 2>&5
3072   ac_status=$?
3073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074   (exit $ac_status); }
3075
3076 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3077 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3078 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3079   echo $ECHO_N "(cached) $ECHO_C" >&6
3080 else
3081   cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h.  */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h.  */
3087
3088 int
3089 main ()
3090 {
3091 #ifndef __GNUC__
3092        choke me
3093 #endif
3094
3095   ;
3096   return 0;
3097 }
3098 _ACEOF
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3101 case "(($ac_try" in
3102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103   *) ac_try_echo=$ac_try;;
3104 esac
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106   (eval "$ac_compile") 2>conftest.er1
3107   ac_status=$?
3108   grep -v '^ *+' conftest.er1 >conftest.err
3109   rm -f conftest.er1
3110   cat conftest.err >&5
3111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112   (exit $ac_status); } && {
3113          test -z "$ac_cxx_werror_flag" ||
3114          test ! -s conftest.err
3115        } && test -s conftest.$ac_objext; then
3116   ac_compiler_gnu=yes
3117 else
3118   echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3120
3121         ac_compiler_gnu=no
3122 fi
3123
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3126
3127 fi
3128 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3129 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3130 GXX=`test $ac_compiler_gnu = yes && echo yes`
3131 ac_test_CXXFLAGS=${CXXFLAGS+set}
3132 ac_save_CXXFLAGS=$CXXFLAGS
3133 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3134 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3135 if test "${ac_cv_prog_cxx_g+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3139    ac_cxx_werror_flag=yes
3140    ac_cv_prog_cxx_g=no
3141    CXXFLAGS="-g"
3142    cat >conftest.$ac_ext <<_ACEOF
3143 /* confdefs.h.  */
3144 _ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h.  */
3148
3149 int
3150 main ()
3151 {
3152
3153   ;
3154   return 0;
3155 }
3156 _ACEOF
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3159 case "(($ac_try" in
3160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161   *) ac_try_echo=$ac_try;;
3162 esac
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164   (eval "$ac_compile") 2>conftest.er1
3165   ac_status=$?
3166   grep -v '^ *+' conftest.er1 >conftest.err
3167   rm -f conftest.er1
3168   cat conftest.err >&5
3169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); } && {
3171          test -z "$ac_cxx_werror_flag" ||
3172          test ! -s conftest.err
3173        } && test -s conftest.$ac_objext; then
3174   ac_cv_prog_cxx_g=yes
3175 else
3176   echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3178
3179         CXXFLAGS=""
3180       cat >conftest.$ac_ext <<_ACEOF
3181 /* confdefs.h.  */
3182 _ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h.  */
3186
3187 int
3188 main ()
3189 {
3190
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202   (eval "$ac_compile") 2>conftest.er1
3203   ac_status=$?
3204   grep -v '^ *+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } && {
3209          test -z "$ac_cxx_werror_flag" ||
3210          test ! -s conftest.err
3211        } && test -s conftest.$ac_objext; then
3212   :
3213 else
3214   echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3218          CXXFLAGS="-g"
3219          cat >conftest.$ac_ext <<_ACEOF
3220 /* confdefs.h.  */
3221 _ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h.  */
3225
3226 int
3227 main ()
3228 {
3229
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3236 case "(($ac_try" in
3237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238   *) ac_try_echo=$ac_try;;
3239 esac
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241   (eval "$ac_compile") 2>conftest.er1
3242   ac_status=$?
3243   grep -v '^ *+' conftest.er1 >conftest.err
3244   rm -f conftest.er1
3245   cat conftest.err >&5
3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247   (exit $ac_status); } && {
3248          test -z "$ac_cxx_werror_flag" ||
3249          test ! -s conftest.err
3250        } && test -s conftest.$ac_objext; then
3251   ac_cv_prog_cxx_g=yes
3252 else
3253   echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3255
3256
3257 fi
3258
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 fi
3261
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3263 fi
3264
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3267 fi
3268 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3269 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3270 if test "$ac_test_CXXFLAGS" = set; then
3271   CXXFLAGS=$ac_save_CXXFLAGS
3272 elif test $ac_cv_prog_cxx_g = yes; then
3273   if test "$GXX" = yes; then
3274     CXXFLAGS="-g -O2"
3275   else
3276     CXXFLAGS="-g"
3277   fi
3278 else
3279   if test "$GXX" = yes; then
3280     CXXFLAGS="-O2"
3281   else
3282     CXXFLAGS=
3283   fi
3284 fi
3285 ac_ext=c
3286 ac_cpp='$CPP $CPPFLAGS'
3287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290
3291
3292
3293
3294 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3295 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3296
3297 cat > conftest.c << EOF
3298 #include <stdlib.h>
3299 #include <stdio.h>
3300
3301 int main (int argc, char*argv)
3302 {
3303     int a,b;
3304     b=3;
3305     int c;
3306     c=4;
3307     return 0;
3308 }
3309 EOF
3310
3311 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3312 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3313   { echo "$as_me:$LINENO: result: yes" >&5
3314 echo "${ECHO_T}yes" >&6; }
3315   GCC_IS_OK=true
3316   export GCC_IS_OK
3317 else
3318   echo "configure: failed program was:" >&5
3319   cat conftest.c >&5
3320   { echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6; }
3322 fi
3323 rm -f conftest*
3324
3325
3326 if test "x$GCC_IS_OK" '=' "x";then
3327     echo "***************************************************"
3328     echo "* Your gcc is too old to compile this!"
3329     echo "* "
3330     echo "* The last version compilable by this compiler is "
3331     echo "* swftools 0.7.0, which you can download from "
3332     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3333     echo "* ."
3334     echo "* Newer versions require at least gcc 3.0.0 "
3335     echo "***************************************************"
3336     exit 1
3337 fi
3338
3339 if test "x$CHECKMEM" '!=' "x";then
3340     CC="ccmalloc $CC"
3341     CXX="ccmalloc $CXX"
3342     #echo running again
3343     #unset ac_cv_prog_CC
3344     #unset ac_cv_prog_CXX
3345     #AC_PROG_CC
3346     #AC_PROG_CXX
3347 fi
3348  ac_ext=c
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3355 # On Suns, sometimes $CPP names a directory.
3356 if test -n "$CPP" && test -d "$CPP"; then
3357   CPP=
3358 fi
3359 if test -z "$CPP"; then
3360   if test "${ac_cv_prog_CPP+set}" = set; then
3361   echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363       # Double quotes because CPP needs to be expanded
3364     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3365     do
3366       ac_preproc_ok=false
3367 for ac_c_preproc_warn_flag in '' yes
3368 do
3369   # Use a header file that comes with gcc, so configuring glibc
3370   # with a fresh cross-compiler works.
3371   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372   # <limits.h> exists even on freestanding compilers.
3373   # On the NeXT, cc -E runs the code through the compiler's parser,
3374   # not just through cpp. "Syntax error" is here to catch this case.
3375   cat >conftest.$ac_ext <<_ACEOF
3376 /* confdefs.h.  */
3377 _ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h.  */
3381 #ifdef __STDC__
3382 # include <limits.h>
3383 #else
3384 # include <assert.h>
3385 #endif
3386                      Syntax error
3387 _ACEOF
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3395   ac_status=$?
3396   grep -v '^ *+' conftest.er1 >conftest.err
3397   rm -f conftest.er1
3398   cat conftest.err >&5
3399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400   (exit $ac_status); } >/dev/null && {
3401          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3402          test ! -s conftest.err
3403        }; then
3404   :
3405 else
3406   echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3408
3409   # Broken: fails on valid input.
3410 continue
3411 fi
3412
3413 rm -f conftest.err conftest.$ac_ext
3414
3415   # OK, works on sane cases.  Now check whether nonexistent headers
3416   # can be detected and how.
3417   cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #include <ac_nonexistent.h>
3424 _ACEOF
3425 if { (ac_try="$ac_cpp conftest.$ac_ext"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3432   ac_status=$?
3433   grep -v '^ *+' conftest.er1 >conftest.err
3434   rm -f conftest.er1
3435   cat conftest.err >&5
3436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437   (exit $ac_status); } >/dev/null && {
3438          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3439          test ! -s conftest.err
3440        }; then
3441   # Broken: success on invalid input.
3442 continue
3443 else
3444   echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447   # Passes both tests.
3448 ac_preproc_ok=:
3449 break
3450 fi
3451
3452 rm -f conftest.err conftest.$ac_ext
3453
3454 done
3455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3456 rm -f conftest.err conftest.$ac_ext
3457 if $ac_preproc_ok; then
3458   break
3459 fi
3460
3461     done
3462     ac_cv_prog_CPP=$CPP
3463
3464 fi
3465   CPP=$ac_cv_prog_CPP
3466 else
3467   ac_cv_prog_CPP=$CPP
3468 fi
3469 { echo "$as_me:$LINENO: result: $CPP" >&5
3470 echo "${ECHO_T}$CPP" >&6; }
3471 ac_preproc_ok=false
3472 for ac_c_preproc_warn_flag in '' yes
3473 do
3474   # Use a header file that comes with gcc, so configuring glibc
3475   # with a fresh cross-compiler works.
3476   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3477   # <limits.h> exists even on freestanding compilers.
3478   # On the NeXT, cc -E runs the code through the compiler's parser,
3479   # not just through cpp. "Syntax error" is here to catch this case.
3480   cat >conftest.$ac_ext <<_ACEOF
3481 /* confdefs.h.  */
3482 _ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h.  */
3486 #ifdef __STDC__
3487 # include <limits.h>
3488 #else
3489 # include <assert.h>
3490 #endif
3491                      Syntax error
3492 _ACEOF
3493 if { (ac_try="$ac_cpp conftest.$ac_ext"
3494 case "(($ac_try" in
3495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496   *) ac_try_echo=$ac_try;;
3497 esac
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3500   ac_status=$?
3501   grep -v '^ *+' conftest.er1 >conftest.err
3502   rm -f conftest.er1
3503   cat conftest.err >&5
3504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); } >/dev/null && {
3506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3507          test ! -s conftest.err
3508        }; then
3509   :
3510 else
3511   echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514   # Broken: fails on valid input.
3515 continue
3516 fi
3517
3518 rm -f conftest.err conftest.$ac_ext
3519
3520   # OK, works on sane cases.  Now check whether nonexistent headers
3521   # can be detected and how.
3522   cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528 #include <ac_nonexistent.h>
3529 _ACEOF
3530 if { (ac_try="$ac_cpp conftest.$ac_ext"
3531 case "(($ac_try" in
3532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533   *) ac_try_echo=$ac_try;;
3534 esac
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537   ac_status=$?
3538   grep -v '^ *+' conftest.er1 >conftest.err
3539   rm -f conftest.er1
3540   cat conftest.err >&5
3541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542   (exit $ac_status); } >/dev/null && {
3543          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3544          test ! -s conftest.err
3545        }; then
3546   # Broken: success on invalid input.
3547 continue
3548 else
3549   echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552   # Passes both tests.
3553 ac_preproc_ok=:
3554 break
3555 fi
3556
3557 rm -f conftest.err conftest.$ac_ext
3558
3559 done
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then
3563   :
3564 else
3565   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3566 See \`config.log' for more details." >&5
3567 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3568 See \`config.log' for more details." >&2;}
3569    { (exit 1); exit 1; }; }
3570 fi
3571
3572 ac_ext=c
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3577
3578
3579  if test -n "$ac_tool_prefix"; then
3580   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3584 if test "${ac_cv_prog_RANLIB+set}" = set; then
3585   echo $ECHO_N "(cached) $ECHO_C" >&6
3586 else
3587   if test -n "$RANLIB"; then
3588   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593   IFS=$as_save_IFS
3594   test -z "$as_dir" && as_dir=.
3595   for ac_exec_ext in '' $ac_executable_extensions; do
3596   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3598     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3599     break 2
3600   fi
3601 done
3602 done
3603 IFS=$as_save_IFS
3604
3605 fi
3606 fi
3607 RANLIB=$ac_cv_prog_RANLIB
3608 if test -n "$RANLIB"; then
3609   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3610 echo "${ECHO_T}$RANLIB" >&6; }
3611 else
3612   { echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6; }
3614 fi
3615
3616
3617 fi
3618 if test -z "$ac_cv_prog_RANLIB"; then
3619   ac_ct_RANLIB=$RANLIB
3620   # Extract the first word of "ranlib", so it can be a program name with args.
3621 set dummy ranlib; ac_word=$2
3622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3625   echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627   if test -n "$ac_ct_RANLIB"; then
3628   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3629 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH
3632 do
3633   IFS=$as_save_IFS
3634   test -z "$as_dir" && as_dir=.
3635   for ac_exec_ext in '' $ac_executable_extensions; do
3636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637     ac_cv_prog_ac_ct_RANLIB="ranlib"
3638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639     break 2
3640   fi
3641 done
3642 done
3643 IFS=$as_save_IFS
3644
3645 fi
3646 fi
3647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3648 if test -n "$ac_ct_RANLIB"; then
3649   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3650 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3651 else
3652   { echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6; }
3654 fi
3655
3656   if test "x$ac_ct_RANLIB" = x; then
3657     RANLIB=":"
3658   else
3659     case $cross_compiling:$ac_tool_warned in
3660 yes:)
3661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3662 whose name does not start with the host triplet.  If you think this
3663 configuration is useful to you, please write to autoconf@gnu.org." >&5
3664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3665 whose name does not start with the host triplet.  If you think this
3666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3667 ac_tool_warned=yes ;;
3668 esac
3669     RANLIB=$ac_ct_RANLIB
3670   fi
3671 else
3672   RANLIB="$ac_cv_prog_RANLIB"
3673 fi
3674
3675  { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3676 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3677 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3678 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   cat >conftest.make <<\_ACEOF
3682 SHELL = /bin/sh
3683 all:
3684         @echo '@@@%%%=$(MAKE)=@@@%%%'
3685 _ACEOF
3686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3687 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3688   *@@@%%%=?*=@@@%%%*)
3689     eval ac_cv_prog_make_${ac_make}_set=yes;;
3690   *)
3691     eval ac_cv_prog_make_${ac_make}_set=no;;
3692 esac
3693 rm -f conftest.make
3694 fi
3695 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3696   { echo "$as_me:$LINENO: result: yes" >&5
3697 echo "${ECHO_T}yes" >&6; }
3698   SET_MAKE=
3699 else
3700   { echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6; }
3702   SET_MAKE="MAKE=${MAKE-make}"
3703 fi
3704
3705  # Find a good install program.  We prefer a C program (faster),
3706 # so one script is as good as another.  But avoid the broken or
3707 # incompatible versions:
3708 # SysV /etc/install, /usr/sbin/install
3709 # SunOS /usr/etc/install
3710 # IRIX /sbin/install
3711 # AIX /bin/install
3712 # AmigaOS /C/install, which installs bootblocks on floppy discs
3713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3716 # OS/2's system install, which has a completely different semantic
3717 # ./install, which can be erroneously created by make from ./install.sh.
3718 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3719 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3720 if test -z "$INSTALL"; then
3721 if test "${ac_cv_path_install+set}" = set; then
3722   echo $ECHO_N "(cached) $ECHO_C" >&6
3723 else
3724   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH
3726 do
3727   IFS=$as_save_IFS
3728   test -z "$as_dir" && as_dir=.
3729   # Account for people who put trailing slashes in PATH elements.
3730 case $as_dir/ in
3731   ./ | .// | /cC/* | \
3732   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3733   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3734   /usr/ucb/* ) ;;
3735   *)
3736     # OSF1 and SCO ODT 3.0 have their own names for install.
3737     # Don't use installbsd from OSF since it installs stuff as root
3738     # by default.
3739     for ac_prog in ginstall scoinst install; do
3740       for ac_exec_ext in '' $ac_executable_extensions; do
3741         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3742           if test $ac_prog = install &&
3743             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3744             # AIX install.  It has an incompatible calling convention.
3745             :
3746           elif test $ac_prog = install &&
3747             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3748             # program-specific install script used by HP pwplus--don't use.
3749             :
3750           else
3751             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3752             break 3
3753           fi
3754         fi
3755       done
3756     done
3757     ;;
3758 esac
3759 done
3760 IFS=$as_save_IFS
3761
3762
3763 fi
3764   if test "${ac_cv_path_install+set}" = set; then
3765     INSTALL=$ac_cv_path_install
3766   else
3767     # As a last resort, use the slow shell script.  Don't cache a
3768     # value for INSTALL within a source directory, because that will
3769     # break other packages using the cache if that directory is
3770     # removed, or if the value is a relative name.
3771     INSTALL=$ac_install_sh
3772   fi
3773 fi
3774 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3775 echo "${ECHO_T}$INSTALL" >&6; }
3776
3777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3778 # It thinks the first close brace ends the variable substitution.
3779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3780
3781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3782
3783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3784
3785  { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3786 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3787 LN_S=$as_ln_s
3788 if test "$LN_S" = "ln -s"; then
3789   { echo "$as_me:$LINENO: result: yes" >&5
3790 echo "${ECHO_T}yes" >&6; }
3791 else
3792   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3793 echo "${ECHO_T}no, using $LN_S" >&6; }
3794 fi
3795
3796  for ac_prog in gzip uncompress compress
3797 do
3798   # Extract the first word of "$ac_prog", so it can be a program name with args.
3799 set dummy $ac_prog; ac_word=$2
3800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3802 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3803   echo $ECHO_N "(cached) $ECHO_C" >&6
3804 else
3805   if test -n "$UNCOMPRESS"; then
3806   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3807 else
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 for as_dir in $PATH
3810 do
3811   IFS=$as_save_IFS
3812   test -z "$as_dir" && as_dir=.
3813   for ac_exec_ext in '' $ac_executable_extensions; do
3814   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815     ac_cv_prog_UNCOMPRESS="$ac_prog"
3816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3817     break 2
3818   fi
3819 done
3820 done
3821 IFS=$as_save_IFS
3822
3823 fi
3824 fi
3825 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3826 if test -n "$UNCOMPRESS"; then
3827   { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3828 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3829 else
3830   { echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6; }
3832 fi
3833
3834
3835   test -n "$UNCOMPRESS" && break
3836 done
3837
3838
3839
3840
3841 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3842         if test -n "$ac_tool_prefix"; then
3843   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3847 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3848   echo $ECHO_N "(cached) $ECHO_C" >&6
3849 else
3850   case $PKG_CONFIG in
3851   [\\/]* | ?:[\\/]*)
3852   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3853   ;;
3854   *)
3855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858   IFS=$as_save_IFS
3859   test -z "$as_dir" && as_dir=.
3860   for ac_exec_ext in '' $ac_executable_extensions; do
3861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3862     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3864     break 2
3865   fi
3866 done
3867 done
3868 IFS=$as_save_IFS
3869
3870   ;;
3871 esac
3872 fi
3873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3874 if test -n "$PKG_CONFIG"; then
3875   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3876 echo "${ECHO_T}$PKG_CONFIG" >&6; }
3877 else
3878   { echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6; }
3880 fi
3881
3882
3883 fi
3884 if test -z "$ac_cv_path_PKG_CONFIG"; then
3885   ac_pt_PKG_CONFIG=$PKG_CONFIG
3886   # Extract the first word of "pkg-config", so it can be a program name with args.
3887 set dummy pkg-config; ac_word=$2
3888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3890 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3891   echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893   case $ac_pt_PKG_CONFIG in
3894   [\\/]* | ?:[\\/]*)
3895   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3896   ;;
3897   *)
3898   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901   IFS=$as_save_IFS
3902   test -z "$as_dir" && as_dir=.
3903   for ac_exec_ext in '' $ac_executable_extensions; do
3904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3906     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907     break 2
3908   fi
3909 done
3910 done
3911 IFS=$as_save_IFS
3912
3913   ;;
3914 esac
3915 fi
3916 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3917 if test -n "$ac_pt_PKG_CONFIG"; then
3918   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3919 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
3920 else
3921   { echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6; }
3923 fi
3924
3925   if test "x$ac_pt_PKG_CONFIG" = x; then
3926     PKG_CONFIG=""
3927   else
3928     case $cross_compiling:$ac_tool_warned in
3929 yes:)
3930 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3931 whose name does not start with the host triplet.  If you think this
3932 configuration is useful to you, please write to autoconf@gnu.org." >&5
3933 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3934 whose name does not start with the host triplet.  If you think this
3935 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3936 ac_tool_warned=yes ;;
3937 esac
3938     PKG_CONFIG=$ac_pt_PKG_CONFIG
3939   fi
3940 else
3941   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3942 fi
3943
3944 fi
3945 if test -n "$PKG_CONFIG"; then
3946         _pkg_min_version=0.9.0
3947         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3948 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
3949         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3950                 { echo "$as_me:$LINENO: result: yes" >&5
3951 echo "${ECHO_T}yes" >&6; }
3952         else
3953                 { echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6; }
3955                 PKG_CONFIG=""
3956         fi
3957
3958 fi
3959
3960 OBJEXT="o"
3961 AREXT=".a"
3962 CXXLIBS="-lstdc++"
3963
3964
3965
3966 if test "x$EXEEXT" = "x.exe";then
3967     OBJEXT="obj"
3968     AREXT=".lib"
3969     CXXLIBS=""
3970 fi
3971
3972
3973
3974
3975 { echo "$as_me:$LINENO: checking host system type" >&5
3976 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3977 if test "${ac_cv_host+set}" = set; then
3978   echo $ECHO_N "(cached) $ECHO_C" >&6
3979 else
3980   if test "x$host_alias" = x; then
3981   ac_cv_host=$ac_cv_build
3982 else
3983   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3984     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3985 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3986    { (exit 1); exit 1; }; }
3987 fi
3988
3989 fi
3990 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3991 echo "${ECHO_T}$ac_cv_host" >&6; }
3992 case $ac_cv_host in
3993 *-*-*) ;;
3994 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3995 echo "$as_me: error: invalid value of canonical host" >&2;}
3996    { (exit 1); exit 1; }; };;
3997 esac
3998 host=$ac_cv_host
3999 ac_save_IFS=$IFS; IFS='-'
4000 set x $ac_cv_host
4001 shift
4002 host_cpu=$1
4003 host_vendor=$2
4004 shift; shift
4005 # Remember, the first character of IFS is used to create $*,
4006 # except with old shells:
4007 host_os=$*
4008 IFS=$ac_save_IFS
4009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4010
4011
4012
4013
4014 { echo "$as_me:$LINENO: checking for target system" >&5
4015 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
4016 CYGWIN=
4017 MINGW=
4018 case $host_os in
4019     *cygwin* ) CYGWIN=yes;;
4020     *mingw* ) MINGW=yes;;
4021 esac
4022
4023 AR=ar
4024 if test "x$MINGW" = "xyes"; then
4025     #fix for the debian distribution of mingw
4026     if test -x "/usr/i586-mingw32msvc/bin/ar";then
4027         AR="/usr/i586-mingw32msvc/bin/ar"
4028     fi
4029     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4030         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4031     fi
4032     #fix for the gentoo distribution of mingw
4033     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4034         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4035     fi
4036     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4037         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4038     fi
4039     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4040         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4041     fi
4042 fi
4043
4044
4045
4046 if test "x${CYGWIN}" = "xyes"; then
4047
4048 cat >>confdefs.h <<\_ACEOF
4049 #define CYGWIN 1
4050 _ACEOF
4051
4052     { echo "$as_me:$LINENO: result: cygwin" >&5
4053 echo "${ECHO_T}cygwin" >&6; }
4054 else
4055     if test "x${MINGW}" = "xyes"; then
4056
4057 cat >>confdefs.h <<\_ACEOF
4058 #define MINGW 1
4059 _ACEOF
4060
4061         WIN32=1
4062
4063 cat >>confdefs.h <<\_ACEOF
4064 #define WIN32 1
4065 _ACEOF
4066
4067         LIBS="$LIBS -lws2_32 -lgdi32"
4068         { echo "$as_me:$LINENO: result: mingw" >&5
4069 echo "${ECHO_T}mingw" >&6; }
4070     else
4071         LINUX=1
4072         export LINUX
4073
4074 cat >>confdefs.h <<\_ACEOF
4075 #define LINUX 1
4076 _ACEOF
4077
4078         { echo "$as_me:$LINENO: result: " >&5
4079 echo "${ECHO_T}" >&6; }
4080     fi
4081 fi
4082
4083
4084 SLEXT="so"
4085 if test "x${MINGW}" != "xyes"; then
4086     # no mingW
4087
4088 cat >>confdefs.h <<\_ACEOF
4089 #define O_BINARY 0
4090 _ACEOF
4091
4092 else
4093     # mingW
4094     SLEXT="dll"
4095     CXXLIBS=""
4096 fi
4097 export SLEXT
4098
4099
4100
4101 # The following tries to make use of includes and libraries in
4102 # /usr/local, too. Notice: A -I/usr/local/include might break
4103 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4104 # especially on systems which link /usr/local to /usr, so it has yet
4105 # to be seen how useful this is.
4106 if test -d /usr/local/lib; then
4107     LDFLAGS="$LDFLAGS -L/usr/local/lib"
4108 fi
4109 if test -d /usr/local/include; then
4110 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4111 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4112     echo > /dev/null
4113 fi
4114 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4115     # if the user has a special prefix (like /opt), there might also be $prefix/lib
4116     # and $prefix/include, which should be included in our search paths for libraries
4117     # and includes.
4118     LDFLAGS="$LDFLAGS -L${libdir}"
4119     CPPFLAGS="$CPPFLAGS -I${includedir}"
4120     # TODO- test whether gcc still works after this
4121 fi
4122
4123 #Mac OS:
4124 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4125
4126
4127 # this must be done after (I believe) AC_PROG_MAKE_SET
4128 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4129     STRIP="@echo debug enabled, not stripping "
4130     export STRIP
4131
4132 fi
4133
4134
4135
4136 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
4137 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
4138 if test "${ac_cv_lib_m_sin+set}" = set; then
4139   echo $ECHO_N "(cached) $ECHO_C" >&6
4140 else
4141   ac_check_lib_save_LIBS=$LIBS
4142 LIBS="-lm  $LIBS"
4143 cat >conftest.$ac_ext <<_ACEOF
4144 /* confdefs.h.  */
4145 _ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h.  */
4149
4150 /* Override any GCC internal prototype to avoid an error.
4151    Use char because int might match the return type of a GCC
4152    builtin and then its argument prototype would still apply.  */
4153 #ifdef __cplusplus
4154 extern "C"
4155 #endif
4156 char sin ();
4157 int
4158 main ()
4159 {
4160 return sin ();
4161   ;
4162   return 0;
4163 }
4164 _ACEOF
4165 rm -f conftest.$ac_objext conftest$ac_exeext
4166 if { (ac_try="$ac_link"
4167 case "(($ac_try" in
4168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169   *) ac_try_echo=$ac_try;;
4170 esac
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172   (eval "$ac_link") 2>conftest.er1
4173   ac_status=$?
4174   grep -v '^ *+' conftest.er1 >conftest.err
4175   rm -f conftest.er1
4176   cat conftest.err >&5
4177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178   (exit $ac_status); } && {
4179          test -z "$ac_c_werror_flag" ||
4180          test ! -s conftest.err
4181        } && test -s conftest$ac_exeext &&
4182        $as_test_x conftest$ac_exeext; then
4183   ac_cv_lib_m_sin=yes
4184 else
4185   echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4187
4188         ac_cv_lib_m_sin=no
4189 fi
4190
4191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4192       conftest$ac_exeext conftest.$ac_ext
4193 LIBS=$ac_check_lib_save_LIBS
4194 fi
4195 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4196 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4197 if test $ac_cv_lib_m_sin = yes; then
4198   cat >>confdefs.h <<_ACEOF
4199 #define HAVE_LIBM 1
4200 _ACEOF
4201
4202   LIBS="-lm $LIBS"
4203
4204 else
4205   echo "Error: Math library not found.";
4206  exit;
4207
4208 fi
4209
4210
4211 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4212 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4213 if test "${ac_cv_lib_z_deflate+set}" = set; then
4214   echo $ECHO_N "(cached) $ECHO_C" >&6
4215 else
4216   ac_check_lib_save_LIBS=$LIBS
4217 LIBS="-lz  $LIBS"
4218 cat >conftest.$ac_ext <<_ACEOF
4219 /* confdefs.h.  */
4220 _ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h.  */
4224
4225 /* Override any GCC internal prototype to avoid an error.
4226    Use char because int might match the return type of a GCC
4227    builtin and then its argument prototype would still apply.  */
4228 #ifdef __cplusplus
4229 extern "C"
4230 #endif
4231 char deflate ();
4232 int
4233 main ()
4234 {
4235 return deflate ();
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext conftest$ac_exeext
4241 if { (ac_try="$ac_link"
4242 case "(($ac_try" in
4243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244   *) ac_try_echo=$ac_try;;
4245 esac
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247   (eval "$ac_link") 2>conftest.er1
4248   ac_status=$?
4249   grep -v '^ *+' conftest.er1 >conftest.err
4250   rm -f conftest.er1
4251   cat conftest.err >&5
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } && {
4254          test -z "$ac_c_werror_flag" ||
4255          test ! -s conftest.err
4256        } && test -s conftest$ac_exeext &&
4257        $as_test_x conftest$ac_exeext; then
4258   ac_cv_lib_z_deflate=yes
4259 else
4260   echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4262
4263         ac_cv_lib_z_deflate=no
4264 fi
4265
4266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4267       conftest$ac_exeext conftest.$ac_ext
4268 LIBS=$ac_check_lib_save_LIBS
4269 fi
4270 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4271 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4272 if test $ac_cv_lib_z_deflate = yes; then
4273   cat >>confdefs.h <<_ACEOF
4274 #define HAVE_LIBZ 1
4275 _ACEOF
4276
4277   LIBS="-lz $LIBS"
4278
4279 else
4280   ZLIBMISSING=true
4281 fi
4282
4283
4284 if test "x$ZLIBMISSING" = "xtrue";then
4285     echo
4286     echo "ERROR:"
4287     echo "You need zlib to compile swftools"
4288     echo
4289     exit
4290 fi
4291
4292
4293 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4294 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4295 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   ac_check_lib_save_LIBS=$LIBS
4299 LIBS="-ljpeg  $LIBS"
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306
4307 /* Override any GCC internal prototype to avoid an error.
4308    Use char because int might match the return type of a GCC
4309    builtin and then its argument prototype would still apply.  */
4310 #ifdef __cplusplus
4311 extern "C"
4312 #endif
4313 char jpeg_write_raw_data ();
4314 int
4315 main ()
4316 {
4317 return jpeg_write_raw_data ();
4318   ;
4319   return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest.$ac_objext conftest$ac_exeext
4323 if { (ac_try="$ac_link"
4324 case "(($ac_try" in
4325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326   *) ac_try_echo=$ac_try;;
4327 esac
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329   (eval "$ac_link") 2>conftest.er1
4330   ac_status=$?
4331   grep -v '^ *+' conftest.er1 >conftest.err
4332   rm -f conftest.er1
4333   cat conftest.err >&5
4334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335   (exit $ac_status); } && {
4336          test -z "$ac_c_werror_flag" ||
4337          test ! -s conftest.err
4338        } && test -s conftest$ac_exeext &&
4339        $as_test_x conftest$ac_exeext; then
4340   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4341 else
4342   echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4344
4345         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4346 fi
4347
4348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4349       conftest$ac_exeext conftest.$ac_ext
4350 LIBS=$ac_check_lib_save_LIBS
4351 fi
4352 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4353 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4354 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4355   cat >>confdefs.h <<_ACEOF
4356 #define HAVE_LIBJPEG 1
4357 _ACEOF
4358
4359   LIBS="-ljpeg $LIBS"
4360
4361 else
4362   JPEGLIBMISSING=true
4363 fi
4364
4365
4366 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4367 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4368 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4369   echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371   ac_check_lib_save_LIBS=$LIBS
4372 LIBS="-lungif  $LIBS"
4373 cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h.  */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h.  */
4379
4380 /* Override any GCC internal prototype to avoid an error.
4381    Use char because int might match the return type of a GCC
4382    builtin and then its argument prototype would still apply.  */
4383 #ifdef __cplusplus
4384 extern "C"
4385 #endif
4386 char DGifOpen ();
4387 int
4388 main ()
4389 {
4390 return DGifOpen ();
4391   ;
4392   return 0;
4393 }
4394 _ACEOF
4395 rm -f conftest.$ac_objext conftest$ac_exeext
4396 if { (ac_try="$ac_link"
4397 case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402   (eval "$ac_link") 2>conftest.er1
4403   ac_status=$?
4404   grep -v '^ *+' conftest.er1 >conftest.err
4405   rm -f conftest.er1
4406   cat conftest.err >&5
4407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408   (exit $ac_status); } && {
4409          test -z "$ac_c_werror_flag" ||
4410          test ! -s conftest.err
4411        } && test -s conftest$ac_exeext &&
4412        $as_test_x conftest$ac_exeext; then
4413   ac_cv_lib_ungif_DGifOpen=yes
4414 else
4415   echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4417
4418         ac_cv_lib_ungif_DGifOpen=no
4419 fi
4420
4421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4422       conftest$ac_exeext conftest.$ac_ext
4423 LIBS=$ac_check_lib_save_LIBS
4424 fi
4425 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4426 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4427 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4428   cat >>confdefs.h <<_ACEOF
4429 #define HAVE_LIBUNGIF 1
4430 _ACEOF
4431
4432   LIBS="-lungif $LIBS"
4433
4434 else
4435   UNGIFMISSING=true
4436 fi
4437
4438 if test "$UNGIFMISSING";then
4439     UNGIFMISSING=
4440
4441 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4442 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4443 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4444   echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446   ac_check_lib_save_LIBS=$LIBS
4447 LIBS="-lgif  $LIBS"
4448 cat >conftest.$ac_ext <<_ACEOF
4449 /* confdefs.h.  */
4450 _ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h.  */
4454
4455 /* Override any GCC internal prototype to avoid an error.
4456    Use char because int might match the return type of a GCC
4457    builtin and then its argument prototype would still apply.  */
4458 #ifdef __cplusplus
4459 extern "C"
4460 #endif
4461 char DGifOpen ();
4462 int
4463 main ()
4464 {
4465 return DGifOpen ();
4466   ;
4467   return 0;
4468 }
4469 _ACEOF
4470 rm -f conftest.$ac_objext conftest$ac_exeext
4471 if { (ac_try="$ac_link"
4472 case "(($ac_try" in
4473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474   *) ac_try_echo=$ac_try;;
4475 esac
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477   (eval "$ac_link") 2>conftest.er1
4478   ac_status=$?
4479   grep -v '^ *+' conftest.er1 >conftest.err
4480   rm -f conftest.er1
4481   cat conftest.err >&5
4482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483   (exit $ac_status); } && {
4484          test -z "$ac_c_werror_flag" ||
4485          test ! -s conftest.err
4486        } && test -s conftest$ac_exeext &&
4487        $as_test_x conftest$ac_exeext; then
4488   ac_cv_lib_gif_DGifOpen=yes
4489 else
4490   echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4492
4493         ac_cv_lib_gif_DGifOpen=no
4494 fi
4495
4496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4497       conftest$ac_exeext conftest.$ac_ext
4498 LIBS=$ac_check_lib_save_LIBS
4499 fi
4500 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4501 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4502 if test $ac_cv_lib_gif_DGifOpen = yes; then
4503   cat >>confdefs.h <<_ACEOF
4504 #define HAVE_LIBGIF 1
4505 _ACEOF
4506
4507   LIBS="-lgif $LIBS"
4508
4509 else
4510   UNGIFMISSING=true
4511 fi
4512
4513 fi
4514
4515
4516 { echo "$as_me:$LINENO: checking for byte order" >&5
4517 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4518 if test "$cross_compiling" = yes; then
4519   CROSSCOMPILE=1
4520 else
4521   cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h.  */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h.  */
4527
4528 int main (int argc, char *argv[])
4529 {
4530     int i = 1;
4531     return *(char*)&i;
4532 }
4533
4534 _ACEOF
4535 rm -f conftest$ac_exeext
4536 if { (ac_try="$ac_link"
4537 case "(($ac_try" in
4538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539   *) ac_try_echo=$ac_try;;
4540 esac
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542   (eval "$ac_link") 2>&5
4543   ac_status=$?
4544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546   { (case "(($ac_try" in
4547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548   *) ac_try_echo=$ac_try;;
4549 esac
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551   (eval "$ac_try") 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; }; then
4555   BIGENDIAN=1
4556 else
4557   echo "$as_me: program exited with status $ac_status" >&5
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4560
4561 ( exit $ac_status )
4562 LITTLEENDIAN=1
4563 fi
4564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4565 fi
4566
4567
4568 export CROSSCOMPILE
4569
4570 if test "x${CROSSCOMPILE}" = "x1"; then
4571  { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4572 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4573  { echo "$as_me:$LINENO: checking target system type" >&5
4574 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4575 if test "${ac_cv_target+set}" = set; then
4576   echo $ECHO_N "(cached) $ECHO_C" >&6
4577 else
4578   if test "x$target_alias" = x; then
4579   ac_cv_target=$ac_cv_host
4580 else
4581   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4582     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4583 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4584    { (exit 1); exit 1; }; }
4585 fi
4586
4587 fi
4588 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4589 echo "${ECHO_T}$ac_cv_target" >&6; }
4590 case $ac_cv_target in
4591 *-*-*) ;;
4592 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4593 echo "$as_me: error: invalid value of canonical target" >&2;}
4594    { (exit 1); exit 1; }; };;
4595 esac
4596 target=$ac_cv_target
4597 ac_save_IFS=$IFS; IFS='-'
4598 set x $ac_cv_target
4599 shift
4600 target_cpu=$1
4601 target_vendor=$2
4602 shift; shift
4603 # Remember, the first character of IFS is used to create $*,
4604 # except with old shells:
4605 target_os=$*
4606 IFS=$ac_save_IFS
4607 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4608
4609
4610 # The aliases save the names the user supplied, while $host etc.
4611 # will get canonicalized.
4612 test -n "$target_alias" &&
4613   test "$program_prefix$program_suffix$program_transform_name" = \
4614     NONENONEs,x,x, &&
4615   program_prefix=${target_alias}-
4616  { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4617 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4618  case "${target}" in
4619   *86* | *-pc-* )
4620      LITTLEENDIAN=1
4621      ;;
4622   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4623      BIGENDIAN=1
4624      ;;
4625  esac
4626 fi
4627
4628 export LITTLEENDIAN
4629 if test "x${LITTLEENDIAN}" = "x1"; then
4630 { echo "$as_me:$LINENO: result: little endian" >&5
4631 echo "${ECHO_T}little endian" >&6; }
4632 BYTEORDERCHECKOK=1
4633 fi
4634 export BIGENDIAN
4635 if test "x${BIGENDIAN}" = "x1"; then
4636 { echo "$as_me:$LINENO: result: big endian" >&5
4637 echo "${ECHO_T}big endian" >&6; }
4638 BYTEORDERCHECKOK=1
4639 WORDS_BIGENDIAN=1
4640 export WORDS_BIGENDIAN
4641
4642 cat >>confdefs.h <<\_ACEOF
4643 #define WORDS_BIGENDIAN 1
4644 _ACEOF
4645
4646 fi
4647 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4648 { echo "$as_me:$LINENO: result: unknown" >&5
4649 echo "${ECHO_T}unknown" >&6; }
4650 echo Byte order could not determined.
4651 exit 1
4652 fi
4653
4654
4655
4656 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4657 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4658 if test "$cross_compiling" = yes; then
4659   CROSSCOMPILE=1
4660 else
4661   cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h.  */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h.  */
4667
4668 #include "stdlib.h"
4669 int main (int argc, char*argv[])
4670 {
4671     return system("test `touch config.tmp2`");
4672 }
4673
4674 _ACEOF
4675 rm -f conftest$ac_exeext
4676 if { (ac_try="$ac_link"
4677 case "(($ac_try" in
4678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679   *) ac_try_echo=$ac_try;;
4680 esac
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682   (eval "$ac_link") 2>&5
4683   ac_status=$?
4684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4686   { (case "(($ac_try" in
4687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688   *) ac_try_echo=$ac_try;;
4689 esac
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691   (eval "$ac_try") 2>&5
4692   ac_status=$?
4693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694   (exit $ac_status); }; }; then
4695   OK=OK
4696 else
4697   echo "$as_me: program exited with status $ac_status" >&5
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 fi
4702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4703 fi
4704
4705
4706
4707 if test "x${OK}" = "xOK";then
4708     test -f config.tmp2 || OK=
4709 fi
4710
4711 if test "x${CROSSCOMPILE}" = "x1";then
4712     OK=no;
4713 fi
4714 if test "x${OK}" = "xOK";then
4715 rm -f config.tmp2
4716 { echo "$as_me:$LINENO: result: yes" >&5
4717 echo "${ECHO_T}yes" >&6; }
4718 SYSTEM_BACKTICKS=1
4719 export SYSTEM_BACKTICKS
4720
4721 cat >>confdefs.h <<\_ACEOF
4722 #define SYSTEM_BACKTICKS 1
4723 _ACEOF
4724
4725 else
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4728 fi
4729
4730
4731
4732 test "$program_prefix" != NONE &&
4733   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4734 # Use a double $ so make ignores it.
4735 test "$program_suffix" != NONE &&
4736   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4737 # Double any \ or $.  echo might interpret backslashes.
4738 # By default was `s,x,x', remove it if useless.
4739 cat <<\_ACEOF >conftest.sed
4740 s/[\\$]/&&/g;s/;s,x,x,$//
4741 _ACEOF
4742 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4743 rm -f conftest.sed
4744
4745
4746  ac_config_headers="$ac_config_headers config.h"
4747
4748
4749
4750
4751
4752
4753 ac_header_dirent=no
4754 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4755   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4756 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4757 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4759   echo $ECHO_N "(cached) $ECHO_C" >&6
4760 else
4761   cat >conftest.$ac_ext <<_ACEOF
4762 /* confdefs.h.  */
4763 _ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h.  */
4767 #include <sys/types.h>
4768 #include <$ac_hdr>
4769
4770 int
4771 main ()
4772 {
4773 if ((DIR *) 0)
4774 return 0;
4775   ;
4776   return 0;
4777 }
4778 _ACEOF
4779 rm -f conftest.$ac_objext
4780 if { (ac_try="$ac_compile"
4781 case "(($ac_try" in
4782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783   *) ac_try_echo=$ac_try;;
4784 esac
4785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786   (eval "$ac_compile") 2>conftest.er1
4787   ac_status=$?
4788   grep -v '^ *+' conftest.er1 >conftest.err
4789   rm -f conftest.er1
4790   cat conftest.err >&5
4791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792   (exit $ac_status); } && {
4793          test -z "$ac_c_werror_flag" ||
4794          test ! -s conftest.err
4795        } && test -s conftest.$ac_objext; then
4796   eval "$as_ac_Header=yes"
4797 else
4798   echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4800
4801         eval "$as_ac_Header=no"
4802 fi
4803
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4805 fi
4806 ac_res=`eval echo '${'$as_ac_Header'}'`
4807                { echo "$as_me:$LINENO: result: $ac_res" >&5
4808 echo "${ECHO_T}$ac_res" >&6; }
4809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4810   cat >>confdefs.h <<_ACEOF
4811 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4812 _ACEOF
4813
4814 ac_header_dirent=$ac_hdr; break
4815 fi
4816
4817 done
4818 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4819 if test $ac_header_dirent = dirent.h; then
4820   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4821 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4822 if test "${ac_cv_search_opendir+set}" = set; then
4823   echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825   ac_func_search_save_LIBS=$LIBS
4826 cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h.  */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h.  */
4832
4833 /* Override any GCC internal prototype to avoid an error.
4834    Use char because int might match the return type of a GCC
4835    builtin and then its argument prototype would still apply.  */
4836 #ifdef __cplusplus
4837 extern "C"
4838 #endif
4839 char opendir ();
4840 int
4841 main ()
4842 {
4843 return opendir ();
4844   ;
4845   return 0;
4846 }
4847 _ACEOF
4848 for ac_lib in '' dir; do
4849   if test -z "$ac_lib"; then
4850     ac_res="none required"
4851   else
4852     ac_res=-l$ac_lib
4853     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4854   fi
4855   rm -f conftest.$ac_objext conftest$ac_exeext
4856 if { (ac_try="$ac_link"
4857 case "(($ac_try" in
4858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859   *) ac_try_echo=$ac_try;;
4860 esac
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862   (eval "$ac_link") 2>conftest.er1
4863   ac_status=$?
4864   grep -v '^ *+' conftest.er1 >conftest.err
4865   rm -f conftest.er1
4866   cat conftest.err >&5
4867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868   (exit $ac_status); } && {
4869          test -z "$ac_c_werror_flag" ||
4870          test ! -s conftest.err
4871        } && test -s conftest$ac_exeext &&
4872        $as_test_x conftest$ac_exeext; then
4873   ac_cv_search_opendir=$ac_res
4874 else
4875   echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4877
4878
4879 fi
4880
4881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4882       conftest$ac_exeext
4883   if test "${ac_cv_search_opendir+set}" = set; then
4884   break
4885 fi
4886 done
4887 if test "${ac_cv_search_opendir+set}" = set; then
4888   :
4889 else
4890   ac_cv_search_opendir=no
4891 fi
4892 rm conftest.$ac_ext
4893 LIBS=$ac_func_search_save_LIBS
4894 fi
4895 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4896 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4897 ac_res=$ac_cv_search_opendir
4898 if test "$ac_res" != no; then
4899   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4900
4901 fi
4902
4903 else
4904   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4905 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4906 if test "${ac_cv_search_opendir+set}" = set; then
4907   echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909   ac_func_search_save_LIBS=$LIBS
4910 cat >conftest.$ac_ext <<_ACEOF
4911 /* confdefs.h.  */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h.  */
4916
4917 /* Override any GCC internal prototype to avoid an error.
4918    Use char because int might match the return type of a GCC
4919    builtin and then its argument prototype would still apply.  */
4920 #ifdef __cplusplus
4921 extern "C"
4922 #endif
4923 char opendir ();
4924 int
4925 main ()
4926 {
4927 return opendir ();
4928   ;
4929   return 0;
4930 }
4931 _ACEOF
4932 for ac_lib in '' x; do
4933   if test -z "$ac_lib"; then
4934     ac_res="none required"
4935   else
4936     ac_res=-l$ac_lib
4937     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4938   fi
4939   rm -f conftest.$ac_objext conftest$ac_exeext
4940 if { (ac_try="$ac_link"
4941 case "(($ac_try" in
4942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943   *) ac_try_echo=$ac_try;;
4944 esac
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946   (eval "$ac_link") 2>conftest.er1
4947   ac_status=$?
4948   grep -v '^ *+' conftest.er1 >conftest.err
4949   rm -f conftest.er1
4950   cat conftest.err >&5
4951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952   (exit $ac_status); } && {
4953          test -z "$ac_c_werror_flag" ||
4954          test ! -s conftest.err
4955        } && test -s conftest$ac_exeext &&
4956        $as_test_x conftest$ac_exeext; then
4957   ac_cv_search_opendir=$ac_res
4958 else
4959   echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4961
4962
4963 fi
4964
4965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4966       conftest$ac_exeext
4967   if test "${ac_cv_search_opendir+set}" = set; then
4968   break
4969 fi
4970 done
4971 if test "${ac_cv_search_opendir+set}" = set; then
4972   :
4973 else
4974   ac_cv_search_opendir=no
4975 fi
4976 rm conftest.$ac_ext
4977 LIBS=$ac_func_search_save_LIBS
4978 fi
4979 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4980 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4981 ac_res=$ac_cv_search_opendir
4982 if test "$ac_res" != no; then
4983   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4984
4985 fi
4986
4987 fi
4988
4989
4990 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4991 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4992 if test "${ac_cv_path_GREP+set}" = set; then
4993   echo $ECHO_N "(cached) $ECHO_C" >&6
4994 else
4995   # Extract the first word of "grep ggrep" to use in msg output
4996 if test -z "$GREP"; then
4997 set dummy grep ggrep; ac_prog_name=$2
4998 if test "${ac_cv_path_GREP+set}" = set; then
4999   echo $ECHO_N "(cached) $ECHO_C" >&6
5000 else
5001   ac_path_GREP_found=false
5002 # Loop through the user's path and test for each of PROGNAME-LIST
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5005 do
5006   IFS=$as_save_IFS
5007   test -z "$as_dir" && as_dir=.
5008   for ac_prog in grep ggrep; do
5009   for ac_exec_ext in '' $ac_executable_extensions; do
5010     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5011     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5012     # Check for GNU ac_path_GREP and select it if it is found.
5013   # Check for GNU $ac_path_GREP
5014 case `"$ac_path_GREP" --version 2>&1` in
5015 *GNU*)
5016   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5017 *)
5018   ac_count=0
5019   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5020   while :
5021   do
5022     cat "conftest.in" "conftest.in" >"conftest.tmp"
5023     mv "conftest.tmp" "conftest.in"
5024     cp "conftest.in" "conftest.nl"
5025     echo 'GREP' >> "conftest.nl"
5026     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5027     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5028     ac_count=`expr $ac_count + 1`
5029     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5030       # Best one so far, save it but keep looking for a better one
5031       ac_cv_path_GREP="$ac_path_GREP"
5032       ac_path_GREP_max=$ac_count
5033     fi
5034     # 10*(2^10) chars as input seems more than enough
5035     test $ac_count -gt 10 && break
5036   done
5037   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5038 esac
5039
5040
5041     $ac_path_GREP_found && break 3
5042   done
5043 done
5044
5045 done
5046 IFS=$as_save_IFS
5047
5048
5049 fi
5050
5051 GREP="$ac_cv_path_GREP"
5052 if test -z "$GREP"; then
5053   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5055    { (exit 1); exit 1; }; }
5056 fi
5057
5058 else
5059   ac_cv_path_GREP=$GREP
5060 fi
5061
5062
5063 fi
5064 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5065 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5066  GREP="$ac_cv_path_GREP"
5067
5068
5069 { echo "$as_me:$LINENO: checking for egrep" >&5
5070 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5071 if test "${ac_cv_path_EGREP+set}" = set; then
5072   echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5075    then ac_cv_path_EGREP="$GREP -E"
5076    else
5077      # Extract the first word of "egrep" to use in msg output
5078 if test -z "$EGREP"; then
5079 set dummy egrep; ac_prog_name=$2
5080 if test "${ac_cv_path_EGREP+set}" = set; then
5081   echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083   ac_path_EGREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5087 do
5088   IFS=$as_save_IFS
5089   test -z "$as_dir" && as_dir=.
5090   for ac_prog in egrep; do
5091   for ac_exec_ext in '' $ac_executable_extensions; do
5092     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5093     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5094     # Check for GNU ac_path_EGREP and select it if it is found.
5095   # Check for GNU $ac_path_EGREP
5096 case `"$ac_path_EGREP" --version 2>&1` in
5097 *GNU*)
5098   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5099 *)
5100   ac_count=0
5101   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5102   while :
5103   do
5104     cat "conftest.in" "conftest.in" >"conftest.tmp"
5105     mv "conftest.tmp" "conftest.in"
5106     cp "conftest.in" "conftest.nl"
5107     echo 'EGREP' >> "conftest.nl"
5108     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110     ac_count=`expr $ac_count + 1`
5111     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5112       # Best one so far, save it but keep looking for a better one
5113       ac_cv_path_EGREP="$ac_path_EGREP"
5114       ac_path_EGREP_max=$ac_count
5115     fi
5116     # 10*(2^10) chars as input seems more than enough
5117     test $ac_count -gt 10 && break
5118   done
5119   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120 esac
5121
5122
5123     $ac_path_EGREP_found && break 3
5124   done
5125 done
5126
5127 done
5128 IFS=$as_save_IFS
5129
5130
5131 fi
5132
5133 EGREP="$ac_cv_path_EGREP"
5134 if test -z "$EGREP"; then
5135   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5137    { (exit 1); exit 1; }; }
5138 fi
5139
5140 else
5141   ac_cv_path_EGREP=$EGREP
5142 fi
5143
5144
5145    fi
5146 fi
5147 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5148 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5149  EGREP="$ac_cv_path_EGREP"
5150
5151
5152 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5153 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5154 if test "${ac_cv_header_stdc+set}" = set; then
5155   echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157   cat >conftest.$ac_ext <<_ACEOF
5158 /* confdefs.h.  */
5159 _ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h.  */
5163 #include <stdlib.h>
5164 #include <stdarg.h>
5165 #include <string.h>
5166 #include <float.h>
5167
5168 int
5169 main ()
5170 {
5171
5172   ;
5173   return 0;
5174 }
5175 _ACEOF
5176 rm -f conftest.$ac_objext
5177 if { (ac_try="$ac_compile"
5178 case "(($ac_try" in
5179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180   *) ac_try_echo=$ac_try;;
5181 esac
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183   (eval "$ac_compile") 2>conftest.er1
5184   ac_status=$?
5185   grep -v '^ *+' conftest.er1 >conftest.err
5186   rm -f conftest.er1
5187   cat conftest.err >&5
5188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189   (exit $ac_status); } && {
5190          test -z "$ac_c_werror_flag" ||
5191          test ! -s conftest.err
5192        } && test -s conftest.$ac_objext; then
5193   ac_cv_header_stdc=yes
5194 else
5195   echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5197
5198         ac_cv_header_stdc=no
5199 fi
5200
5201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5202
5203 if test $ac_cv_header_stdc = yes; then
5204   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5205   cat >conftest.$ac_ext <<_ACEOF
5206 /* confdefs.h.  */
5207 _ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h.  */
5211 #include <string.h>
5212
5213 _ACEOF
5214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5215   $EGREP "memchr" >/dev/null 2>&1; then
5216   :
5217 else
5218   ac_cv_header_stdc=no
5219 fi
5220 rm -f conftest*
5221
5222 fi
5223
5224 if test $ac_cv_header_stdc = yes; then
5225   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5226   cat >conftest.$ac_ext <<_ACEOF
5227 /* confdefs.h.  */
5228 _ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h.  */
5232 #include <stdlib.h>
5233
5234 _ACEOF
5235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5236   $EGREP "free" >/dev/null 2>&1; then
5237   :
5238 else
5239   ac_cv_header_stdc=no
5240 fi
5241 rm -f conftest*
5242
5243 fi
5244
5245 if test $ac_cv_header_stdc = yes; then
5246   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5247   if test "$cross_compiling" = yes; then
5248   :
5249 else
5250   cat >conftest.$ac_ext <<_ACEOF
5251 /* confdefs.h.  */
5252 _ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h.  */
5256 #include <ctype.h>
5257 #include <stdlib.h>
5258 #if ((' ' & 0x0FF) == 0x020)
5259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5261 #else
5262 # define ISLOWER(c) \
5263                    (('a' <= (c) && (c) <= 'i') \
5264                      || ('j' <= (c) && (c) <= 'r') \
5265                      || ('s' <= (c) && (c) <= 'z'))
5266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5267 #endif
5268
5269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5270 int
5271 main ()
5272 {
5273   int i;
5274   for (i = 0; i < 256; i++)
5275     if (XOR (islower (i), ISLOWER (i))
5276         || toupper (i) != TOUPPER (i))
5277       return 2;
5278   return 0;
5279 }
5280 _ACEOF
5281 rm -f conftest$ac_exeext
5282 if { (ac_try="$ac_link"
5283 case "(($ac_try" in
5284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285   *) ac_try_echo=$ac_try;;
5286 esac
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288   (eval "$ac_link") 2>&5
5289   ac_status=$?
5290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5292   { (case "(($ac_try" in
5293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294   *) ac_try_echo=$ac_try;;
5295 esac
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297   (eval "$ac_try") 2>&5
5298   ac_status=$?
5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300   (exit $ac_status); }; }; then
5301   :
5302 else
5303   echo "$as_me: program exited with status $ac_status" >&5
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5306
5307 ( exit $ac_status )
5308 ac_cv_header_stdc=no
5309 fi
5310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5311 fi
5312
5313
5314 fi
5315 fi
5316 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5317 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5318 if test $ac_cv_header_stdc = yes; then
5319
5320 cat >>confdefs.h <<\_ACEOF
5321 #define STDC_HEADERS 1
5322 _ACEOF
5323
5324 fi
5325
5326
5327  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5338                   inttypes.h stdint.h unistd.h
5339 do
5340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5344   echo $ECHO_N "(cached) $ECHO_C" >&6
5345 else
5346   cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h.  */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h.  */
5352 $ac_includes_default
5353
5354 #include <$ac_header>
5355 _ACEOF
5356 rm -f conftest.$ac_objext
5357 if { (ac_try="$ac_compile"
5358 case "(($ac_try" in
5359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360   *) ac_try_echo=$ac_try;;
5361 esac
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363   (eval "$ac_compile") 2>conftest.er1
5364   ac_status=$?
5365   grep -v '^ *+' conftest.er1 >conftest.err
5366   rm -f conftest.er1
5367   cat conftest.err >&5
5368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); } && {
5370          test -z "$ac_c_werror_flag" ||
5371          test ! -s conftest.err
5372        } && test -s conftest.$ac_objext; then
5373   eval "$as_ac_Header=yes"
5374 else
5375   echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5377
5378         eval "$as_ac_Header=no"
5379 fi
5380
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5382 fi
5383 ac_res=`eval echo '${'$as_ac_Header'}'`
5384                { echo "$as_me:$LINENO: result: $ac_res" >&5
5385 echo "${ECHO_T}$ac_res" >&6; }
5386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5387   cat >>confdefs.h <<_ACEOF
5388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5389 _ACEOF
5390
5391 fi
5392
5393 done
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414 for ac_header in zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h
5415 do
5416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5418   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5421   echo $ECHO_N "(cached) $ECHO_C" >&6
5422 fi
5423 ac_res=`eval echo '${'$as_ac_Header'}'`
5424                { echo "$as_me:$LINENO: result: $ac_res" >&5
5425 echo "${ECHO_T}$ac_res" >&6; }
5426 else
5427   # Is the header compilable?
5428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5430 cat >conftest.$ac_ext <<_ACEOF
5431 /* confdefs.h.  */
5432 _ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h.  */
5436 $ac_includes_default
5437 #include <$ac_header>
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (ac_try="$ac_compile"
5441 case "(($ac_try" in
5442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443   *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446   (eval "$ac_compile") 2>conftest.er1
5447   ac_status=$?
5448   grep -v '^ *+' conftest.er1 >conftest.err
5449   rm -f conftest.er1
5450   cat conftest.err >&5
5451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452   (exit $ac_status); } && {
5453          test -z "$ac_c_werror_flag" ||
5454          test ! -s conftest.err
5455        } && test -s conftest.$ac_objext; then
5456   ac_header_compiler=yes
5457 else
5458   echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461         ac_header_compiler=no
5462 fi
5463
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5466 echo "${ECHO_T}$ac_header_compiler" >&6; }
5467
5468 # Is the header present?
5469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5471 cat >conftest.$ac_ext <<_ACEOF
5472 /* confdefs.h.  */
5473 _ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h.  */
5477 #include <$ac_header>
5478 _ACEOF
5479 if { (ac_try="$ac_cpp conftest.$ac_ext"
5480 case "(($ac_try" in
5481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482   *) ac_try_echo=$ac_try;;
5483 esac
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5486   ac_status=$?
5487   grep -v '^ *+' conftest.er1 >conftest.err
5488   rm -f conftest.er1
5489   cat conftest.err >&5
5490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491   (exit $ac_status); } >/dev/null && {
5492          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5493          test ! -s conftest.err
5494        }; then
5495   ac_header_preproc=yes
5496 else
5497   echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5499
5500   ac_header_preproc=no
5501 fi
5502
5503 rm -f conftest.err conftest.$ac_ext
5504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5505 echo "${ECHO_T}$ac_header_preproc" >&6; }
5506
5507 # So?  What about this header?
5508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5509   yes:no: )
5510     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5512     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5514     ac_header_preproc=yes
5515     ;;
5516   no:yes:* )
5517     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5519     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5520 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5521     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5523     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5524 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5527     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5529
5530     ;;
5531 esac
5532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5535   echo $ECHO_N "(cached) $ECHO_C" >&6
5536 else
5537   eval "$as_ac_Header=\$ac_header_preproc"
5538 fi
5539 ac_res=`eval echo '${'$as_ac_Header'}'`
5540                { echo "$as_me:$LINENO: result: $ac_res" >&5
5541 echo "${ECHO_T}$ac_res" >&6; }
5542
5543 fi
5544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5545   cat >>confdefs.h <<_ACEOF
5546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5547 _ACEOF
5548
5549 fi
5550
5551 done
5552
5553
5554
5555 cat >>confdefs.h <<_ACEOF
5556 #define PACKAGE "$PACKAGE"
5557 _ACEOF
5558
5559
5560 cat >>confdefs.h <<_ACEOF
5561 #define VERSION "$VERSION"
5562 _ACEOF
5563
5564
5565
5566
5567
5568
5569
5570  { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5571 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5572 if test "${ac_cv_c_const+set}" = set; then
5573   echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575   cat >conftest.$ac_ext <<_ACEOF
5576 /* confdefs.h.  */
5577 _ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h.  */
5581
5582 int
5583 main ()
5584 {
5585 /* FIXME: Include the comments suggested by Paul. */
5586 #ifndef __cplusplus
5587   /* Ultrix mips cc rejects this.  */
5588   typedef int charset[2];
5589   const charset cs;
5590   /* SunOS 4.1.1 cc rejects this.  */
5591   char const *const *pcpcc;
5592   char **ppc;
5593   /* NEC SVR4.0.2 mips cc rejects this.  */
5594   struct point {int x, y;};
5595   static struct point const zero = {0,0};
5596   /* AIX XL C 1.02.0.0 rejects this.
5597      It does not let you subtract one const X* pointer from another in
5598      an arm of an if-expression whose if-part is not a constant
5599      expression */
5600   const char *g = "string";
5601   pcpcc = &g + (g ? g-g : 0);
5602   /* HPUX 7.0 cc rejects these. */
5603   ++pcpcc;
5604   ppc = (char**) pcpcc;
5605   pcpcc = (char const *const *) ppc;
5606   { /* SCO 3.2v4 cc rejects this.  */
5607     char *t;
5608     char const *s = 0 ? (char *) 0 : (char const *) 0;
5609
5610     *t++ = 0;
5611     if (s) return 0;
5612   }
5613   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5614     int x[] = {25, 17};
5615     const int *foo = &x[0];
5616     ++foo;
5617   }
5618   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5619     typedef const int *iptr;
5620     iptr p = 0;
5621     ++p;
5622   }
5623   { /* AIX XL C 1.02.0.0 rejects this saying
5624        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5625     struct s { int j; const int *ap[3]; };
5626     struct s *b; b->j = 5;
5627   }
5628   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5629     const int foo = 10;
5630     if (!foo) return 0;
5631   }
5632   return !cs[0] && !zero.x;
5633 #endif
5634
5635   ;
5636   return 0;
5637 }
5638 _ACEOF
5639 rm -f conftest.$ac_objext
5640 if { (ac_try="$ac_compile"
5641 case "(($ac_try" in
5642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643   *) ac_try_echo=$ac_try;;
5644 esac
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646   (eval "$ac_compile") 2>conftest.er1
5647   ac_status=$?
5648   grep -v '^ *+' conftest.er1 >conftest.err
5649   rm -f conftest.er1
5650   cat conftest.err >&5
5651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652   (exit $ac_status); } && {
5653          test -z "$ac_c_werror_flag" ||
5654          test ! -s conftest.err
5655        } && test -s conftest.$ac_objext; then
5656   ac_cv_c_const=yes
5657 else
5658   echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5660
5661         ac_cv_c_const=no
5662 fi
5663
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5665 fi
5666 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5667 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5668 if test $ac_cv_c_const = no; then
5669
5670 cat >>confdefs.h <<\_ACEOF
5671 #define const
5672 _ACEOF
5673
5674 fi
5675
5676  { echo "$as_me:$LINENO: checking for inline" >&5
5677 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5678 if test "${ac_cv_c_inline+set}" = set; then
5679   echo $ECHO_N "(cached) $ECHO_C" >&6
5680 else
5681   ac_cv_c_inline=no
5682 for ac_kw in inline __inline__ __inline; do
5683   cat >conftest.$ac_ext <<_ACEOF
5684 /* confdefs.h.  */
5685 _ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h.  */
5689 #ifndef __cplusplus
5690 typedef int foo_t;
5691 static $ac_kw foo_t static_foo () {return 0; }
5692 $ac_kw foo_t foo () {return 0; }
5693 #endif
5694
5695 _ACEOF
5696 rm -f conftest.$ac_objext
5697 if { (ac_try="$ac_compile"
5698 case "(($ac_try" in
5699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700   *) ac_try_echo=$ac_try;;
5701 esac
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703   (eval "$ac_compile") 2>conftest.er1
5704   ac_status=$?
5705   grep -v '^ *+' conftest.er1 >conftest.err
5706   rm -f conftest.er1
5707   cat conftest.err >&5
5708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709   (exit $ac_status); } && {
5710          test -z "$ac_c_werror_flag" ||
5711          test ! -s conftest.err
5712        } && test -s conftest.$ac_objext; then
5713   ac_cv_c_inline=$ac_kw
5714 else
5715   echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5717
5718
5719 fi
5720
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722   test "$ac_cv_c_inline" != no && break
5723 done
5724
5725 fi
5726 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5727 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5728
5729
5730 case $ac_cv_c_inline in
5731   inline | yes) ;;
5732   *)
5733     case $ac_cv_c_inline in
5734       no) ac_val=;;
5735       *) ac_val=$ac_cv_c_inline;;
5736     esac
5737     cat >>confdefs.h <<_ACEOF
5738 #ifndef __cplusplus
5739 #define inline $ac_val
5740 #endif
5741 _ACEOF
5742     ;;
5743 esac
5744
5745  { echo "$as_me:$LINENO: checking for off_t" >&5
5746 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5747 if test "${ac_cv_type_off_t+set}" = set; then
5748   echo $ECHO_N "(cached) $ECHO_C" >&6
5749 else
5750   cat >conftest.$ac_ext <<_ACEOF
5751 /* confdefs.h.  */
5752 _ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h.  */
5756 $ac_includes_default
5757 typedef off_t ac__type_new_;
5758 int
5759 main ()
5760 {
5761 if ((ac__type_new_ *) 0)
5762   return 0;
5763 if (sizeof (ac__type_new_))
5764   return 0;
5765   ;
5766   return 0;
5767 }
5768 _ACEOF
5769 rm -f conftest.$ac_objext
5770 if { (ac_try="$ac_compile"
5771 case "(($ac_try" in
5772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773   *) ac_try_echo=$ac_try;;
5774 esac
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776   (eval "$ac_compile") 2>conftest.er1
5777   ac_status=$?
5778   grep -v '^ *+' conftest.er1 >conftest.err
5779   rm -f conftest.er1
5780   cat conftest.err >&5
5781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782   (exit $ac_status); } && {
5783          test -z "$ac_c_werror_flag" ||
5784          test ! -s conftest.err
5785        } && test -s conftest.$ac_objext; then
5786   ac_cv_type_off_t=yes
5787 else
5788   echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5790
5791         ac_cv_type_off_t=no
5792 fi
5793
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 fi
5796 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5797 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5798 if test $ac_cv_type_off_t = yes; then
5799   :
5800 else
5801
5802 cat >>confdefs.h <<_ACEOF
5803 #define off_t long int
5804 _ACEOF
5805
5806 fi
5807
5808  { echo "$as_me:$LINENO: checking for size_t" >&5
5809 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5810 if test "${ac_cv_type_size_t+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   cat >conftest.$ac_ext <<_ACEOF
5814 /* confdefs.h.  */
5815 _ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h.  */
5819 $ac_includes_default
5820 typedef size_t ac__type_new_;
5821 int
5822 main ()
5823 {
5824 if ((ac__type_new_ *) 0)
5825   return 0;
5826 if (sizeof (ac__type_new_))
5827   return 0;
5828   ;
5829   return 0;
5830 }
5831 _ACEOF
5832 rm -f conftest.$ac_objext
5833 if { (ac_try="$ac_compile"
5834 case "(($ac_try" in
5835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836   *) ac_try_echo=$ac_try;;
5837 esac
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839   (eval "$ac_compile") 2>conftest.er1
5840   ac_status=$?
5841   grep -v '^ *+' conftest.er1 >conftest.err
5842   rm -f conftest.er1
5843   cat conftest.err >&5
5844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845   (exit $ac_status); } && {
5846          test -z "$ac_c_werror_flag" ||
5847          test ! -s conftest.err
5848        } && test -s conftest.$ac_objext; then
5849   ac_cv_type_size_t=yes
5850 else
5851   echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5853
5854         ac_cv_type_size_t=no
5855 fi
5856
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5858 fi
5859 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5860 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5861 if test $ac_cv_type_size_t = yes; then
5862   :
5863 else
5864
5865 cat >>confdefs.h <<_ACEOF
5866 #define size_t unsigned int
5867 _ACEOF
5868
5869 fi
5870
5871  { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5872 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5873 if test "${ac_cv_struct_tm+set}" = set; then
5874   echo $ECHO_N "(cached) $ECHO_C" >&6
5875 else
5876   cat >conftest.$ac_ext <<_ACEOF
5877 /* confdefs.h.  */
5878 _ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h.  */
5882 #include <sys/types.h>
5883 #include <time.h>
5884
5885 int
5886 main ()
5887 {
5888 struct tm tm;
5889                                      int *p = &tm.tm_sec;
5890                                      return !p;
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext
5896 if { (ac_try="$ac_compile"
5897 case "(($ac_try" in
5898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899   *) ac_try_echo=$ac_try;;
5900 esac
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902   (eval "$ac_compile") 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } && {
5909          test -z "$ac_c_werror_flag" ||
5910          test ! -s conftest.err
5911        } && test -s conftest.$ac_objext; then
5912   ac_cv_struct_tm=time.h
5913 else
5914   echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5916
5917         ac_cv_struct_tm=sys/time.h
5918 fi
5919
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921 fi
5922 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5923 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5924 if test $ac_cv_struct_tm = sys/time.h; then
5925
5926 cat >>confdefs.h <<\_ACEOF
5927 #define TM_IN_SYS_TIME 1
5928 _ACEOF
5929
5930 fi
5931
5932  { echo "$as_me:$LINENO: checking for boolean" >&5
5933 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5934 if test "${ac_cv_type_boolean+set}" = set; then
5935   echo $ECHO_N "(cached) $ECHO_C" >&6
5936 else
5937   cat >conftest.$ac_ext <<_ACEOF
5938 /* confdefs.h.  */
5939 _ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h.  */
5943 $ac_includes_default
5944 typedef boolean ac__type_new_;
5945 int
5946 main ()
5947 {
5948 if ((ac__type_new_ *) 0)
5949   return 0;
5950 if (sizeof (ac__type_new_))
5951   return 0;
5952   ;
5953   return 0;
5954 }
5955 _ACEOF
5956 rm -f conftest.$ac_objext
5957 if { (ac_try="$ac_compile"
5958 case "(($ac_try" in
5959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960   *) ac_try_echo=$ac_try;;
5961 esac
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963   (eval "$ac_compile") 2>conftest.er1
5964   ac_status=$?
5965   grep -v '^ *+' conftest.er1 >conftest.err
5966   rm -f conftest.er1
5967   cat conftest.err >&5
5968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); } && {
5970          test -z "$ac_c_werror_flag" ||
5971          test ! -s conftest.err
5972        } && test -s conftest.$ac_objext; then
5973   ac_cv_type_boolean=yes
5974 else
5975   echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5977
5978         ac_cv_type_boolean=no
5979 fi
5980
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 fi
5983 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5984 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5985 if test $ac_cv_type_boolean = yes; then
5986   :
5987 else
5988
5989 cat >>confdefs.h <<_ACEOF
5990 #define boolean int
5991 _ACEOF
5992
5993 fi
5994  #needed for jpeglib
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009 for ac_func in popen wcschr wcsdup mkstemp stat lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6010 do
6011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6015   echo $ECHO_N "(cached) $ECHO_C" >&6
6016 else
6017   cat >conftest.$ac_ext <<_ACEOF
6018 /* confdefs.h.  */
6019 _ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h.  */
6023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6024    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6025 #define $ac_func innocuous_$ac_func
6026
6027 /* System header to define __stub macros and hopefully few prototypes,
6028     which can conflict with char $ac_func (); below.
6029     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030     <limits.h> exists even on freestanding compilers.  */
6031
6032 #ifdef __STDC__
6033 # include <limits.h>
6034 #else
6035 # include <assert.h>
6036 #endif
6037
6038 #undef $ac_func
6039
6040 /* Override any GCC internal prototype to avoid an error.
6041    Use char because int might match the return type of a GCC
6042    builtin and then its argument prototype would still apply.  */
6043 #ifdef __cplusplus
6044 extern "C"
6045 #endif
6046 char $ac_func ();
6047 /* The GNU C library defines this for functions which it implements
6048     to always fail with ENOSYS.  Some functions are actually named
6049     something starting with __ and the normal name is an alias.  */
6050 #if defined __stub_$ac_func || defined __stub___$ac_func
6051 choke me
6052 #endif
6053
6054 int
6055 main ()
6056 {
6057 return $ac_func ();
6058   ;
6059   return 0;
6060 }
6061 _ACEOF
6062 rm -f conftest.$ac_objext conftest$ac_exeext
6063 if { (ac_try="$ac_link"
6064 case "(($ac_try" in
6065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066   *) ac_try_echo=$ac_try;;
6067 esac
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069   (eval "$ac_link") 2>conftest.er1
6070   ac_status=$?
6071   grep -v '^ *+' conftest.er1 >conftest.err
6072   rm -f conftest.er1
6073   cat conftest.err >&5
6074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075   (exit $ac_status); } && {
6076          test -z "$ac_c_werror_flag" ||
6077          test ! -s conftest.err
6078        } && test -s conftest$ac_exeext &&
6079        $as_test_x conftest$ac_exeext; then
6080   eval "$as_ac_var=yes"
6081 else
6082   echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6084
6085         eval "$as_ac_var=no"
6086 fi
6087
6088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6089       conftest$ac_exeext conftest.$ac_ext
6090 fi
6091 ac_res=`eval echo '${'$as_ac_var'}'`
6092                { echo "$as_me:$LINENO: result: $ac_res" >&5
6093 echo "${ECHO_T}$ac_res" >&6; }
6094 if test `eval echo '${'$as_ac_var'}'` = yes; then
6095   cat >>confdefs.h <<_ACEOF
6096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6097 _ACEOF
6098
6099 fi
6100 done
6101
6102
6103 { echo "$as_me:$LINENO: checking for signed" >&5
6104 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
6105 if test "${ac_cv_type_signed+set}" = set; then
6106   echo $ECHO_N "(cached) $ECHO_C" >&6
6107 else
6108   cat >conftest.$ac_ext <<_ACEOF
6109 /* confdefs.h.  */
6110 _ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h.  */
6114 $ac_includes_default
6115 typedef signed ac__type_new_;
6116 int
6117 main ()
6118 {
6119 if ((ac__type_new_ *) 0)
6120   return 0;
6121 if (sizeof (ac__type_new_))
6122   return 0;
6123   ;
6124   return 0;
6125 }
6126 _ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (ac_try="$ac_compile"
6129 case "(($ac_try" in
6130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131   *) ac_try_echo=$ac_try;;
6132 esac
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134   (eval "$ac_compile") 2>conftest.er1
6135   ac_status=$?
6136   grep -v '^ *+' conftest.er1 >conftest.err
6137   rm -f conftest.er1
6138   cat conftest.err >&5
6139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140   (exit $ac_status); } && {
6141          test -z "$ac_c_werror_flag" ||
6142          test ! -s conftest.err
6143        } && test -s conftest.$ac_objext; then
6144   ac_cv_type_signed=yes
6145 else
6146   echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6148
6149         ac_cv_type_signed=no
6150 fi
6151
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 fi
6154 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
6155 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
6156
6157 # The cast to long int works around a bug in the HP C Compiler
6158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6160 # This bug is HP SR number 8606223364.
6161 { echo "$as_me:$LINENO: checking size of signed" >&5
6162 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
6163 if test "${ac_cv_sizeof_signed+set}" = set; then
6164   echo $ECHO_N "(cached) $ECHO_C" >&6
6165 else
6166   if test "$cross_compiling" = yes; then
6167   # Depending upon the size, compute the lo and hi bounds.
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h.  */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h.  */
6174 $ac_includes_default
6175    typedef signed ac__type_sizeof_;
6176 int
6177 main ()
6178 {
6179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6180 test_array [0] = 0
6181
6182   ;
6183   return 0;
6184 }
6185 _ACEOF
6186 rm -f conftest.$ac_objext
6187 if { (ac_try="$ac_compile"
6188 case "(($ac_try" in
6189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190   *) ac_try_echo=$ac_try;;
6191 esac
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193   (eval "$ac_compile") 2>conftest.er1
6194   ac_status=$?
6195   grep -v '^ *+' conftest.er1 >conftest.err
6196   rm -f conftest.er1
6197   cat conftest.err >&5
6198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199   (exit $ac_status); } && {
6200          test -z "$ac_c_werror_flag" ||
6201          test ! -s conftest.err
6202        } && test -s conftest.$ac_objext; then
6203   ac_lo=0 ac_mid=0
6204   while :; do
6205     cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h.  */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h.  */
6211 $ac_includes_default
6212    typedef signed ac__type_sizeof_;
6213 int
6214 main ()
6215 {
6216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6217 test_array [0] = 0
6218
6219   ;
6220   return 0;
6221 }
6222 _ACEOF
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6225 case "(($ac_try" in
6226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227   *) ac_try_echo=$ac_try;;
6228 esac
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230   (eval "$ac_compile") 2>conftest.er1
6231   ac_status=$?
6232   grep -v '^ *+' conftest.er1 >conftest.err
6233   rm -f conftest.er1
6234   cat conftest.err >&5
6235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236   (exit $ac_status); } && {
6237          test -z "$ac_c_werror_flag" ||
6238          test ! -s conftest.err
6239        } && test -s conftest.$ac_objext; then
6240   ac_hi=$ac_mid; break
6241 else
6242   echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6244
6245         ac_lo=`expr $ac_mid + 1`
6246                         if test $ac_lo -le $ac_mid; then
6247                           ac_lo= ac_hi=
6248                           break
6249                         fi
6250                         ac_mid=`expr 2 '*' $ac_mid + 1`
6251 fi
6252
6253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6254   done
6255 else
6256   echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6258
6259         cat >conftest.$ac_ext <<_ACEOF
6260 /* confdefs.h.  */
6261 _ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h.  */
6265 $ac_includes_default
6266    typedef signed ac__type_sizeof_;
6267 int
6268 main ()
6269 {
6270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6271 test_array [0] = 0
6272
6273   ;
6274   return 0;
6275 }
6276 _ACEOF
6277 rm -f conftest.$ac_objext
6278 if { (ac_try="$ac_compile"
6279 case "(($ac_try" in
6280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281   *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284   (eval "$ac_compile") 2>conftest.er1
6285   ac_status=$?
6286   grep -v '^ *+' conftest.er1 >conftest.err
6287   rm -f conftest.er1
6288   cat conftest.err >&5
6289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290   (exit $ac_status); } && {
6291          test -z "$ac_c_werror_flag" ||
6292          test ! -s conftest.err
6293        } && test -s conftest.$ac_objext; then
6294   ac_hi=-1 ac_mid=-1
6295   while :; do
6296     cat >conftest.$ac_ext <<_ACEOF
6297 /* confdefs.h.  */
6298 _ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h.  */
6302 $ac_includes_default
6303    typedef signed ac__type_sizeof_;
6304 int
6305 main ()
6306 {
6307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6308 test_array [0] = 0
6309
6310   ;
6311   return 0;
6312 }
6313 _ACEOF
6314 rm -f conftest.$ac_objext
6315 if { (ac_try="$ac_compile"
6316 case "(($ac_try" in
6317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318   *) ac_try_echo=$ac_try;;
6319 esac
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321   (eval "$ac_compile") 2>conftest.er1
6322   ac_status=$?
6323   grep -v '^ *+' conftest.er1 >conftest.err
6324   rm -f conftest.er1
6325   cat conftest.err >&5
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); } && {
6328          test -z "$ac_c_werror_flag" ||
6329          test ! -s conftest.err
6330        } && test -s conftest.$ac_objext; then
6331   ac_lo=$ac_mid; break
6332 else
6333   echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6335
6336         ac_hi=`expr '(' $ac_mid ')' - 1`
6337                         if test $ac_mid -le $ac_hi; then
6338                           ac_lo= ac_hi=
6339                           break
6340                         fi
6341                         ac_mid=`expr 2 '*' $ac_mid`
6342 fi
6343
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6345   done
6346 else
6347   echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350         ac_lo= ac_hi=
6351 fi
6352
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6354 fi
6355
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 # Binary search between lo and hi bounds.
6358 while test "x$ac_lo" != "x$ac_hi"; do
6359   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6360   cat >conftest.$ac_ext <<_ACEOF
6361 /* confdefs.h.  */
6362 _ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h.  */
6366 $ac_includes_default
6367    typedef signed ac__type_sizeof_;
6368 int
6369 main ()
6370 {
6371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6372 test_array [0] = 0
6373
6374   ;
6375   return 0;
6376 }
6377 _ACEOF
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6380 case "(($ac_try" in
6381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382   *) ac_try_echo=$ac_try;;
6383 esac
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385   (eval "$ac_compile") 2>conftest.er1
6386   ac_status=$?
6387   grep -v '^ *+' conftest.er1 >conftest.err
6388   rm -f conftest.er1
6389   cat conftest.err >&5
6390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391   (exit $ac_status); } && {
6392          test -z "$ac_c_werror_flag" ||
6393          test ! -s conftest.err
6394        } && test -s conftest.$ac_objext; then
6395   ac_hi=$ac_mid
6396 else
6397   echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6399
6400         ac_lo=`expr '(' $ac_mid ')' + 1`
6401 fi
6402
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404 done
6405 case $ac_lo in
6406 ?*) ac_cv_sizeof_signed=$ac_lo;;
6407 '') if test "$ac_cv_type_signed" = yes; then
6408      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6409 See \`config.log' for more details." >&5
6410 echo "$as_me: error: cannot compute sizeof (signed)
6411 See \`config.log' for more details." >&2;}
6412    { (exit 77); exit 77; }; }
6413    else
6414      ac_cv_sizeof_signed=0
6415    fi ;;
6416 esac
6417 else
6418   cat >conftest.$ac_ext <<_ACEOF
6419 /* confdefs.h.  */
6420 _ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h.  */
6424 $ac_includes_default
6425    typedef signed ac__type_sizeof_;
6426 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6427 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6428 #include <stdio.h>
6429 #include <stdlib.h>
6430 int
6431 main ()
6432 {
6433
6434   FILE *f = fopen ("conftest.val", "w");
6435   if (! f)
6436     return 1;
6437   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6438     {
6439       long int i = longval ();
6440       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6441         return 1;
6442       fprintf (f, "%ld\n", i);
6443     }
6444   else
6445     {
6446       unsigned long int i = ulongval ();
6447       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6448         return 1;
6449       fprintf (f, "%lu\n", i);
6450     }
6451   return ferror (f) || fclose (f) != 0;
6452
6453   ;
6454   return 0;
6455 }
6456 _ACEOF
6457 rm -f conftest$ac_exeext
6458 if { (ac_try="$ac_link"
6459 case "(($ac_try" in
6460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461   *) ac_try_echo=$ac_try;;
6462 esac
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464   (eval "$ac_link") 2>&5
6465   ac_status=$?
6466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6468   { (case "(($ac_try" in
6469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470   *) ac_try_echo=$ac_try;;
6471 esac
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473   (eval "$ac_try") 2>&5
6474   ac_status=$?
6475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476   (exit $ac_status); }; }; then
6477   ac_cv_sizeof_signed=`cat conftest.val`
6478 else
6479   echo "$as_me: program exited with status $ac_status" >&5
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483 ( exit $ac_status )
6484 if test "$ac_cv_type_signed" = yes; then
6485      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6486 See \`config.log' for more details." >&5
6487 echo "$as_me: error: cannot compute sizeof (signed)
6488 See \`config.log' for more details." >&2;}
6489    { (exit 77); exit 77; }; }
6490    else
6491      ac_cv_sizeof_signed=0
6492    fi
6493 fi
6494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6495 fi
6496 rm -f conftest.val
6497 fi
6498 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
6499 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
6500
6501
6502
6503 cat >>confdefs.h <<_ACEOF
6504 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
6505 _ACEOF
6506
6507
6508 { echo "$as_me:$LINENO: checking for unsigned" >&5
6509 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
6510 if test "${ac_cv_type_unsigned+set}" = set; then
6511   echo $ECHO_N "(cached) $ECHO_C" >&6
6512 else
6513   cat >conftest.$ac_ext <<_ACEOF
6514 /* confdefs.h.  */
6515 _ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h.  */
6519 $ac_includes_default
6520 typedef unsigned ac__type_new_;
6521 int
6522 main ()
6523 {
6524 if ((ac__type_new_ *) 0)
6525   return 0;
6526 if (sizeof (ac__type_new_))
6527   return 0;
6528   ;
6529   return 0;
6530 }
6531 _ACEOF
6532 rm -f conftest.$ac_objext
6533 if { (ac_try="$ac_compile"
6534 case "(($ac_try" in
6535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536   *) ac_try_echo=$ac_try;;
6537 esac
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539   (eval "$ac_compile") 2>conftest.er1
6540   ac_status=$?
6541   grep -v '^ *+' conftest.er1 >conftest.err
6542   rm -f conftest.er1
6543   cat conftest.err >&5
6544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545   (exit $ac_status); } && {
6546          test -z "$ac_c_werror_flag" ||
6547          test ! -s conftest.err
6548        } && test -s conftest.$ac_objext; then
6549   ac_cv_type_unsigned=yes
6550 else
6551   echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6553
6554         ac_cv_type_unsigned=no
6555 fi
6556
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6558 fi
6559 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
6560 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
6561
6562 # The cast to long int works around a bug in the HP C Compiler
6563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6565 # This bug is HP SR number 8606223364.
6566 { echo "$as_me:$LINENO: checking size of unsigned" >&5
6567 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
6568 if test "${ac_cv_sizeof_unsigned+set}" = set; then
6569   echo $ECHO_N "(cached) $ECHO_C" >&6
6570 else
6571   if test "$cross_compiling" = yes; then
6572   # Depending upon the size, compute the lo and hi bounds.
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h.  */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h.  */
6579 $ac_includes_default
6580    typedef unsigned ac__type_sizeof_;
6581 int
6582 main ()
6583 {
6584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6585 test_array [0] = 0
6586
6587   ;
6588   return 0;
6589 }
6590 _ACEOF
6591 rm -f conftest.$ac_objext
6592 if { (ac_try="$ac_compile"
6593 case "(($ac_try" in
6594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595   *) ac_try_echo=$ac_try;;
6596 esac
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598   (eval "$ac_compile") 2>conftest.er1
6599   ac_status=$?
6600   grep -v '^ *+' conftest.er1 >conftest.err
6601   rm -f conftest.er1
6602   cat conftest.err >&5
6603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604   (exit $ac_status); } && {
6605          test -z "$ac_c_werror_flag" ||
6606          test ! -s conftest.err
6607        } && test -s conftest.$ac_objext; then
6608   ac_lo=0 ac_mid=0
6609   while :; do
6610     cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h.  */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h.  */
6616 $ac_includes_default
6617    typedef unsigned ac__type_sizeof_;
6618 int
6619 main ()
6620 {
6621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6622 test_array [0] = 0
6623
6624   ;
6625   return 0;
6626 }
6627 _ACEOF
6628 rm -f conftest.$ac_objext
6629 if { (ac_try="$ac_compile"
6630 case "(($ac_try" in
6631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632   *) ac_try_echo=$ac_try;;
6633 esac
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635   (eval "$ac_compile") 2>conftest.er1
6636   ac_status=$?
6637   grep -v '^ *+' conftest.er1 >conftest.err
6638   rm -f conftest.er1
6639   cat conftest.err >&5
6640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641   (exit $ac_status); } && {
6642          test -z "$ac_c_werror_flag" ||
6643          test ! -s conftest.err
6644        } && test -s conftest.$ac_objext; then
6645   ac_hi=$ac_mid; break
6646 else
6647   echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6649
6650         ac_lo=`expr $ac_mid + 1`
6651                         if test $ac_lo -le $ac_mid; then
6652                           ac_lo= ac_hi=
6653                           break
6654                         fi
6655                         ac_mid=`expr 2 '*' $ac_mid + 1`
6656 fi
6657
6658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659   done
6660 else
6661   echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6663
6664         cat >conftest.$ac_ext <<_ACEOF
6665 /* confdefs.h.  */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h.  */
6670 $ac_includes_default
6671    typedef unsigned ac__type_sizeof_;
6672 int
6673 main ()
6674 {
6675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6676 test_array [0] = 0
6677
6678   ;
6679   return 0;
6680 }
6681 _ACEOF
6682 rm -f conftest.$ac_objext
6683 if { (ac_try="$ac_compile"
6684 case "(($ac_try" in
6685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686   *) ac_try_echo=$ac_try;;
6687 esac
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689   (eval "$ac_compile") 2>conftest.er1
6690   ac_status=$?
6691   grep -v '^ *+' conftest.er1 >conftest.err
6692   rm -f conftest.er1
6693   cat conftest.err >&5
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); } && {
6696          test -z "$ac_c_werror_flag" ||
6697          test ! -s conftest.err
6698        } && test -s conftest.$ac_objext; then
6699   ac_hi=-1 ac_mid=-1
6700   while :; do
6701     cat >conftest.$ac_ext <<_ACEOF
6702 /* confdefs.h.  */
6703 _ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h.  */
6707 $ac_includes_default
6708    typedef unsigned ac__type_sizeof_;
6709 int
6710 main ()
6711 {
6712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6713 test_array [0] = 0
6714
6715   ;
6716   return 0;
6717 }
6718 _ACEOF
6719 rm -f conftest.$ac_objext
6720 if { (ac_try="$ac_compile"
6721 case "(($ac_try" in
6722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723   *) ac_try_echo=$ac_try;;
6724 esac
6725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6726   (eval "$ac_compile") 2>conftest.er1
6727   ac_status=$?
6728   grep -v '^ *+' conftest.er1 >conftest.err
6729   rm -f conftest.er1
6730   cat conftest.err >&5
6731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } && {
6733          test -z "$ac_c_werror_flag" ||
6734          test ! -s conftest.err
6735        } && test -s conftest.$ac_objext; then
6736   ac_lo=$ac_mid; break
6737 else
6738   echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6740
6741         ac_hi=`expr '(' $ac_mid ')' - 1`
6742                         if test $ac_mid -le $ac_hi; then
6743                           ac_lo= ac_hi=
6744                           break
6745                         fi
6746                         ac_mid=`expr 2 '*' $ac_mid`
6747 fi
6748
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750   done
6751 else
6752   echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6754
6755         ac_lo= ac_hi=
6756 fi
6757
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6759 fi
6760
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 # Binary search between lo and hi bounds.
6763 while test "x$ac_lo" != "x$ac_hi"; do
6764   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6765   cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h.  */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h.  */
6771 $ac_includes_default
6772    typedef unsigned ac__type_sizeof_;
6773 int
6774 main ()
6775 {
6776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6777 test_array [0] = 0
6778
6779   ;
6780   return 0;
6781 }
6782 _ACEOF
6783 rm -f conftest.$ac_objext
6784 if { (ac_try="$ac_compile"
6785 case "(($ac_try" in
6786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787   *) ac_try_echo=$ac_try;;
6788 esac
6789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6790   (eval "$ac_compile") 2>conftest.er1
6791   ac_status=$?
6792   grep -v '^ *+' conftest.er1 >conftest.err
6793   rm -f conftest.er1
6794   cat conftest.err >&5
6795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796   (exit $ac_status); } && {
6797          test -z "$ac_c_werror_flag" ||
6798          test ! -s conftest.err
6799        } && test -s conftest.$ac_objext; then
6800   ac_hi=$ac_mid
6801 else
6802   echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6804
6805         ac_lo=`expr '(' $ac_mid ')' + 1`
6806 fi
6807
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 done
6810 case $ac_lo in
6811 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
6812 '') if test "$ac_cv_type_unsigned" = yes; then
6813      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6814 See \`config.log' for more details." >&5
6815 echo "$as_me: error: cannot compute sizeof (unsigned)
6816 See \`config.log' for more details." >&2;}
6817    { (exit 77); exit 77; }; }
6818    else
6819      ac_cv_sizeof_unsigned=0
6820    fi ;;
6821 esac
6822 else
6823   cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h.  */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h.  */
6829 $ac_includes_default
6830    typedef unsigned ac__type_sizeof_;
6831 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6832 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6833 #include <stdio.h>
6834 #include <stdlib.h>
6835 int
6836 main ()
6837 {
6838
6839   FILE *f = fopen ("conftest.val", "w");
6840   if (! f)
6841     return 1;
6842   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6843     {
6844       long int i = longval ();
6845       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6846         return 1;
6847       fprintf (f, "%ld\n", i);
6848     }
6849   else
6850     {
6851       unsigned long int i = ulongval ();
6852       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6853         return 1;
6854       fprintf (f, "%lu\n", i);
6855     }
6856   return ferror (f) || fclose (f) != 0;
6857
6858   ;
6859   return 0;
6860 }
6861 _ACEOF
6862 rm -f conftest$ac_exeext
6863 if { (ac_try="$ac_link"
6864 case "(($ac_try" in
6865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6866   *) ac_try_echo=$ac_try;;
6867 esac
6868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6869   (eval "$ac_link") 2>&5
6870   ac_status=$?
6871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6873   { (case "(($ac_try" in
6874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875   *) ac_try_echo=$ac_try;;
6876 esac
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878   (eval "$ac_try") 2>&5
6879   ac_status=$?
6880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881   (exit $ac_status); }; }; then
6882   ac_cv_sizeof_unsigned=`cat conftest.val`
6883 else
6884   echo "$as_me: program exited with status $ac_status" >&5
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6887
6888 ( exit $ac_status )
6889 if test "$ac_cv_type_unsigned" = yes; then
6890      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6891 See \`config.log' for more details." >&5
6892 echo "$as_me: error: cannot compute sizeof (unsigned)
6893 See \`config.log' for more details." >&2;}
6894    { (exit 77); exit 77; }; }
6895    else
6896      ac_cv_sizeof_unsigned=0
6897    fi
6898 fi
6899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6900 fi
6901 rm -f conftest.val
6902 fi
6903 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
6904 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
6905
6906
6907
6908 cat >>confdefs.h <<_ACEOF
6909 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
6910 _ACEOF
6911
6912
6913 { echo "$as_me:$LINENO: checking for signed long" >&5
6914 echo $ECHO_N "checking for signed long... $ECHO_C" >&6; }
6915 if test "${ac_cv_type_signed_long+set}" = set; then
6916   echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918   cat >conftest.$ac_ext <<_ACEOF
6919 /* confdefs.h.  */
6920 _ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h.  */
6924 $ac_includes_default
6925 typedef signed long ac__type_new_;
6926 int
6927 main ()
6928 {
6929 if ((ac__type_new_ *) 0)
6930   return 0;
6931 if (sizeof (ac__type_new_))
6932   return 0;
6933   ;
6934   return 0;
6935 }
6936 _ACEOF
6937 rm -f conftest.$ac_objext
6938 if { (ac_try="$ac_compile"
6939 case "(($ac_try" in
6940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941   *) ac_try_echo=$ac_try;;
6942 esac
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944   (eval "$ac_compile") 2>conftest.er1
6945   ac_status=$?
6946   grep -v '^ *+' conftest.er1 >conftest.err
6947   rm -f conftest.er1
6948   cat conftest.err >&5
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); } && {
6951          test -z "$ac_c_werror_flag" ||
6952          test ! -s conftest.err
6953        } && test -s conftest.$ac_objext; then
6954   ac_cv_type_signed_long=yes
6955 else
6956   echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6958
6959         ac_cv_type_signed_long=no
6960 fi
6961
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6963 fi
6964 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
6965 echo "${ECHO_T}$ac_cv_type_signed_long" >&6; }
6966
6967 # The cast to long int works around a bug in the HP C Compiler
6968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6970 # This bug is HP SR number 8606223364.
6971 { echo "$as_me:$LINENO: checking size of signed long" >&5
6972 echo $ECHO_N "checking size of signed long... $ECHO_C" >&6; }
6973 if test "${ac_cv_sizeof_signed_long+set}" = set; then
6974   echo $ECHO_N "(cached) $ECHO_C" >&6
6975 else
6976   if test "$cross_compiling" = yes; then
6977   # Depending upon the size, compute the lo and hi bounds.
6978 cat >conftest.$ac_ext <<_ACEOF
6979 /* confdefs.h.  */
6980 _ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h.  */
6984 $ac_includes_default
6985    typedef signed long ac__type_sizeof_;
6986 int
6987 main ()
6988 {
6989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6990 test_array [0] = 0
6991
6992   ;
6993   return 0;
6994 }
6995 _ACEOF
6996 rm -f conftest.$ac_objext
6997 if { (ac_try="$ac_compile"
6998 case "(($ac_try" in
6999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000   *) ac_try_echo=$ac_try;;
7001 esac
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003   (eval "$ac_compile") 2>conftest.er1
7004   ac_status=$?
7005   grep -v '^ *+' conftest.er1 >conftest.err
7006   rm -f conftest.er1
7007   cat conftest.err >&5
7008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009   (exit $ac_status); } && {
7010          test -z "$ac_c_werror_flag" ||
7011          test ! -s conftest.err
7012        } && test -s conftest.$ac_objext; then
7013   ac_lo=0 ac_mid=0
7014   while :; do
7015     cat >conftest.$ac_ext <<_ACEOF
7016 /* confdefs.h.  */
7017 _ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h.  */
7021 $ac_includes_default
7022    typedef signed long ac__type_sizeof_;
7023 int
7024 main ()
7025 {
7026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7027 test_array [0] = 0
7028
7029   ;
7030   return 0;
7031 }
7032 _ACEOF
7033 rm -f conftest.$ac_objext
7034 if { (ac_try="$ac_compile"
7035 case "(($ac_try" in
7036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037   *) ac_try_echo=$ac_try;;
7038 esac
7039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040   (eval "$ac_compile") 2>conftest.er1
7041   ac_status=$?
7042   grep -v '^ *+' conftest.er1 >conftest.err
7043   rm -f conftest.er1
7044   cat conftest.err >&5
7045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046   (exit $ac_status); } && {
7047          test -z "$ac_c_werror_flag" ||
7048          test ! -s conftest.err
7049        } && test -s conftest.$ac_objext; then
7050   ac_hi=$ac_mid; break
7051 else
7052   echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7054
7055         ac_lo=`expr $ac_mid + 1`
7056                         if test $ac_lo -le $ac_mid; then
7057                           ac_lo= ac_hi=
7058                           break
7059                         fi
7060                         ac_mid=`expr 2 '*' $ac_mid + 1`
7061 fi
7062
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7064   done
7065 else
7066   echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7068
7069         cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h.  */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h.  */
7075 $ac_includes_default
7076    typedef signed long ac__type_sizeof_;
7077 int
7078 main ()
7079 {
7080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7081 test_array [0] = 0
7082
7083   ;
7084   return 0;
7085 }
7086 _ACEOF
7087 rm -f conftest.$ac_objext
7088 if { (ac_try="$ac_compile"
7089 case "(($ac_try" in
7090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091   *) ac_try_echo=$ac_try;;
7092 esac
7093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094   (eval "$ac_compile") 2>conftest.er1
7095   ac_status=$?
7096   grep -v '^ *+' conftest.er1 >conftest.err
7097   rm -f conftest.er1
7098   cat conftest.err >&5
7099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100   (exit $ac_status); } && {
7101          test -z "$ac_c_werror_flag" ||
7102          test ! -s conftest.err
7103        } && test -s conftest.$ac_objext; then
7104   ac_hi=-1 ac_mid=-1
7105   while :; do
7106     cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h.  */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h.  */
7112 $ac_includes_default
7113    typedef signed long ac__type_sizeof_;
7114 int
7115 main ()
7116 {
7117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7118 test_array [0] = 0
7119
7120   ;
7121   return 0;
7122 }
7123 _ACEOF
7124 rm -f conftest.$ac_objext
7125 if { (ac_try="$ac_compile"
7126 case "(($ac_try" in
7127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128   *) ac_try_echo=$ac_try;;
7129 esac
7130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131   (eval "$ac_compile") 2>conftest.er1
7132   ac_status=$?
7133   grep -v '^ *+' conftest.er1 >conftest.err
7134   rm -f conftest.er1
7135   cat conftest.err >&5
7136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137   (exit $ac_status); } && {
7138          test -z "$ac_c_werror_flag" ||
7139          test ! -s conftest.err
7140        } && test -s conftest.$ac_objext; then
7141   ac_lo=$ac_mid; break
7142 else
7143   echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7145
7146         ac_hi=`expr '(' $ac_mid ')' - 1`
7147                         if test $ac_mid -le $ac_hi; then
7148                           ac_lo= ac_hi=
7149                           break
7150                         fi
7151                         ac_mid=`expr 2 '*' $ac_mid`
7152 fi
7153
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155   done
7156 else
7157   echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7159
7160         ac_lo= ac_hi=
7161 fi
7162
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 fi
7165
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 # Binary search between lo and hi bounds.
7168 while test "x$ac_lo" != "x$ac_hi"; do
7169   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7170   cat >conftest.$ac_ext <<_ACEOF
7171 /* confdefs.h.  */
7172 _ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h.  */
7176 $ac_includes_default
7177    typedef signed long ac__type_sizeof_;
7178 int
7179 main ()
7180 {
7181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7182 test_array [0] = 0
7183
7184   ;
7185   return 0;
7186 }
7187 _ACEOF
7188 rm -f conftest.$ac_objext
7189 if { (ac_try="$ac_compile"
7190 case "(($ac_try" in
7191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192   *) ac_try_echo=$ac_try;;
7193 esac
7194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195   (eval "$ac_compile") 2>conftest.er1
7196   ac_status=$?
7197   grep -v '^ *+' conftest.er1 >conftest.err
7198   rm -f conftest.er1
7199   cat conftest.err >&5
7200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201   (exit $ac_status); } && {
7202          test -z "$ac_c_werror_flag" ||
7203          test ! -s conftest.err
7204        } && test -s conftest.$ac_objext; then
7205   ac_hi=$ac_mid
7206 else
7207   echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7209
7210         ac_lo=`expr '(' $ac_mid ')' + 1`
7211 fi
7212
7213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214 done
7215 case $ac_lo in
7216 ?*) ac_cv_sizeof_signed_long=$ac_lo;;
7217 '') if test "$ac_cv_type_signed_long" = yes; then
7218      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7219 See \`config.log' for more details." >&5
7220 echo "$as_me: error: cannot compute sizeof (signed long)
7221 See \`config.log' for more details." >&2;}
7222    { (exit 77); exit 77; }; }
7223    else
7224      ac_cv_sizeof_signed_long=0
7225    fi ;;
7226 esac
7227 else
7228   cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h.  */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h.  */
7234 $ac_includes_default
7235    typedef signed long ac__type_sizeof_;
7236 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7237 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7238 #include <stdio.h>
7239 #include <stdlib.h>
7240 int
7241 main ()
7242 {
7243
7244   FILE *f = fopen ("conftest.val", "w");
7245   if (! f)
7246     return 1;
7247   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7248     {
7249       long int i = longval ();
7250       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7251         return 1;
7252       fprintf (f, "%ld\n", i);
7253     }
7254   else
7255     {
7256       unsigned long int i = ulongval ();
7257       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7258         return 1;
7259       fprintf (f, "%lu\n", i);
7260     }
7261   return ferror (f) || fclose (f) != 0;
7262
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 rm -f conftest$ac_exeext
7268 if { (ac_try="$ac_link"
7269 case "(($ac_try" in
7270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271   *) ac_try_echo=$ac_try;;
7272 esac
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274   (eval "$ac_link") 2>&5
7275   ac_status=$?
7276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7278   { (case "(($ac_try" in
7279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280   *) ac_try_echo=$ac_try;;
7281 esac
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283   (eval "$ac_try") 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); }; }; then
7287   ac_cv_sizeof_signed_long=`cat conftest.val`
7288 else
7289   echo "$as_me: program exited with status $ac_status" >&5
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7292
7293 ( exit $ac_status )
7294 if test "$ac_cv_type_signed_long" = yes; then
7295      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7296 See \`config.log' for more details." >&5
7297 echo "$as_me: error: cannot compute sizeof (signed long)
7298 See \`config.log' for more details." >&2;}
7299    { (exit 77); exit 77; }; }
7300    else
7301      ac_cv_sizeof_signed_long=0
7302    fi
7303 fi
7304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7305 fi
7306 rm -f conftest.val
7307 fi
7308 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
7309 echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6; }
7310
7311
7312
7313 cat >>confdefs.h <<_ACEOF
7314 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
7315 _ACEOF
7316
7317
7318 { echo "$as_me:$LINENO: checking for unsigned long" >&5
7319 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7320 if test "${ac_cv_type_unsigned_long+set}" = set; then
7321   echo $ECHO_N "(cached) $ECHO_C" >&6
7322 else
7323   cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h.  */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h.  */
7329 $ac_includes_default
7330 typedef unsigned long ac__type_new_;
7331 int
7332 main ()
7333 {
7334 if ((ac__type_new_ *) 0)
7335   return 0;
7336 if (sizeof (ac__type_new_))
7337   return 0;
7338   ;
7339   return 0;
7340 }
7341 _ACEOF
7342 rm -f conftest.$ac_objext
7343 if { (ac_try="$ac_compile"
7344 case "(($ac_try" in
7345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346   *) ac_try_echo=$ac_try;;
7347 esac
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349   (eval "$ac_compile") 2>conftest.er1
7350   ac_status=$?
7351   grep -v '^ *+' conftest.er1 >conftest.err
7352   rm -f conftest.er1
7353   cat conftest.err >&5
7354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355   (exit $ac_status); } && {
7356          test -z "$ac_c_werror_flag" ||
7357          test ! -s conftest.err
7358        } && test -s conftest.$ac_objext; then
7359   ac_cv_type_unsigned_long=yes
7360 else
7361   echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7363
7364         ac_cv_type_unsigned_long=no
7365 fi
7366
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7368 fi
7369 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7370 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7371
7372 # The cast to long int works around a bug in the HP C Compiler
7373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7375 # This bug is HP SR number 8606223364.
7376 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
7377 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7378 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7379   echo $ECHO_N "(cached) $ECHO_C" >&6
7380 else
7381   if test "$cross_compiling" = yes; then
7382   # Depending upon the size, compute the lo and hi bounds.
7383 cat >conftest.$ac_ext <<_ACEOF
7384 /* confdefs.h.  */
7385 _ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h.  */
7389 $ac_includes_default
7390    typedef unsigned long ac__type_sizeof_;
7391 int
7392 main ()
7393 {
7394 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7395 test_array [0] = 0
7396
7397   ;
7398   return 0;
7399 }
7400 _ACEOF
7401 rm -f conftest.$ac_objext
7402 if { (ac_try="$ac_compile"
7403 case "(($ac_try" in
7404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405   *) ac_try_echo=$ac_try;;
7406 esac
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408   (eval "$ac_compile") 2>conftest.er1
7409   ac_status=$?
7410   grep -v '^ *+' conftest.er1 >conftest.err
7411   rm -f conftest.er1
7412   cat conftest.err >&5
7413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414   (exit $ac_status); } && {
7415          test -z "$ac_c_werror_flag" ||
7416          test ! -s conftest.err
7417        } && test -s conftest.$ac_objext; then
7418   ac_lo=0 ac_mid=0
7419   while :; do
7420     cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h.  */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h.  */
7426 $ac_includes_default
7427    typedef unsigned long ac__type_sizeof_;
7428 int
7429 main ()
7430 {
7431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7432 test_array [0] = 0
7433
7434   ;
7435   return 0;
7436 }
7437 _ACEOF
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7440 case "(($ac_try" in
7441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442   *) ac_try_echo=$ac_try;;
7443 esac
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445   (eval "$ac_compile") 2>conftest.er1
7446   ac_status=$?
7447   grep -v '^ *+' conftest.er1 >conftest.err
7448   rm -f conftest.er1
7449   cat conftest.err >&5
7450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451   (exit $ac_status); } && {
7452          test -z "$ac_c_werror_flag" ||
7453          test ! -s conftest.err
7454        } && test -s conftest.$ac_objext; then
7455   ac_hi=$ac_mid; break
7456 else
7457   echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7459
7460         ac_lo=`expr $ac_mid + 1`
7461                         if test $ac_lo -le $ac_mid; then
7462                           ac_lo= ac_hi=
7463                           break
7464                         fi
7465                         ac_mid=`expr 2 '*' $ac_mid + 1`
7466 fi
7467
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469   done
7470 else
7471   echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7473
7474         cat >conftest.$ac_ext <<_ACEOF
7475 /* confdefs.h.  */
7476 _ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h.  */
7480 $ac_includes_default
7481    typedef unsigned long ac__type_sizeof_;
7482 int
7483 main ()
7484 {
7485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7486 test_array [0] = 0
7487
7488   ;
7489   return 0;
7490 }
7491 _ACEOF
7492 rm -f conftest.$ac_objext
7493 if { (ac_try="$ac_compile"
7494 case "(($ac_try" in
7495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496   *) ac_try_echo=$ac_try;;
7497 esac
7498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7499   (eval "$ac_compile") 2>conftest.er1
7500   ac_status=$?
7501   grep -v '^ *+' conftest.er1 >conftest.err
7502   rm -f conftest.er1
7503   cat conftest.err >&5
7504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505   (exit $ac_status); } && {
7506          test -z "$ac_c_werror_flag" ||
7507          test ! -s conftest.err
7508        } && test -s conftest.$ac_objext; then
7509   ac_hi=-1 ac_mid=-1
7510   while :; do
7511     cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h.  */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h.  */
7517 $ac_includes_default
7518    typedef unsigned long ac__type_sizeof_;
7519 int
7520 main ()
7521 {
7522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7523 test_array [0] = 0
7524
7525   ;
7526   return 0;
7527 }
7528 _ACEOF
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7531 case "(($ac_try" in
7532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533   *) ac_try_echo=$ac_try;;
7534 esac
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536   (eval "$ac_compile") 2>conftest.er1
7537   ac_status=$?
7538   grep -v '^ *+' conftest.er1 >conftest.err
7539   rm -f conftest.er1
7540   cat conftest.err >&5
7541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542   (exit $ac_status); } && {
7543          test -z "$ac_c_werror_flag" ||
7544          test ! -s conftest.err
7545        } && test -s conftest.$ac_objext; then
7546   ac_lo=$ac_mid; break
7547 else
7548   echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7550
7551         ac_hi=`expr '(' $ac_mid ')' - 1`
7552                         if test $ac_mid -le $ac_hi; then
7553                           ac_lo= ac_hi=
7554                           break
7555                         fi
7556                         ac_mid=`expr 2 '*' $ac_mid`
7557 fi
7558
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560   done
7561 else
7562   echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7564
7565         ac_lo= ac_hi=
7566 fi
7567
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7569 fi
7570
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 # Binary search between lo and hi bounds.
7573 while test "x$ac_lo" != "x$ac_hi"; do
7574   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7575   cat >conftest.$ac_ext <<_ACEOF
7576 /* confdefs.h.  */
7577 _ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h.  */
7581 $ac_includes_default
7582    typedef unsigned long ac__type_sizeof_;
7583 int
7584 main ()
7585 {
7586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7587 test_array [0] = 0
7588
7589   ;
7590   return 0;
7591 }
7592 _ACEOF
7593 rm -f conftest.$ac_objext
7594 if { (ac_try="$ac_compile"
7595 case "(($ac_try" in
7596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597   *) ac_try_echo=$ac_try;;
7598 esac
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600   (eval "$ac_compile") 2>conftest.er1
7601   ac_status=$?
7602   grep -v '^ *+' conftest.er1 >conftest.err
7603   rm -f conftest.er1
7604   cat conftest.err >&5
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); } && {
7607          test -z "$ac_c_werror_flag" ||
7608          test ! -s conftest.err
7609        } && test -s conftest.$ac_objext; then
7610   ac_hi=$ac_mid
7611 else
7612   echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7614
7615         ac_lo=`expr '(' $ac_mid ')' + 1`
7616 fi
7617
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 done
7620 case $ac_lo in
7621 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7622 '') if test "$ac_cv_type_unsigned_long" = yes; then
7623      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7624 See \`config.log' for more details." >&5
7625 echo "$as_me: error: cannot compute sizeof (unsigned long)
7626 See \`config.log' for more details." >&2;}
7627    { (exit 77); exit 77; }; }
7628    else
7629      ac_cv_sizeof_unsigned_long=0
7630    fi ;;
7631 esac
7632 else
7633   cat >conftest.$ac_ext <<_ACEOF
7634 /* confdefs.h.  */
7635 _ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h.  */
7639 $ac_includes_default
7640    typedef unsigned long ac__type_sizeof_;
7641 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7642 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7643 #include <stdio.h>
7644 #include <stdlib.h>
7645 int
7646 main ()
7647 {
7648
7649   FILE *f = fopen ("conftest.val", "w");
7650   if (! f)
7651     return 1;
7652   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7653     {
7654       long int i = longval ();
7655       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7656         return 1;
7657       fprintf (f, "%ld\n", i);
7658     }
7659   else
7660     {
7661       unsigned long int i = ulongval ();
7662       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7663         return 1;
7664       fprintf (f, "%lu\n", i);
7665     }
7666   return ferror (f) || fclose (f) != 0;
7667
7668   ;
7669   return 0;
7670 }
7671 _ACEOF
7672 rm -f conftest$ac_exeext
7673 if { (ac_try="$ac_link"
7674 case "(($ac_try" in
7675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676   *) ac_try_echo=$ac_try;;
7677 esac
7678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679   (eval "$ac_link") 2>&5
7680   ac_status=$?
7681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7683   { (case "(($ac_try" in
7684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685   *) ac_try_echo=$ac_try;;
7686 esac
7687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688   (eval "$ac_try") 2>&5
7689   ac_status=$?
7690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691   (exit $ac_status); }; }; then
7692   ac_cv_sizeof_unsigned_long=`cat conftest.val`
7693 else
7694   echo "$as_me: program exited with status $ac_status" >&5
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7697
7698 ( exit $ac_status )
7699 if test "$ac_cv_type_unsigned_long" = yes; then
7700      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7701 See \`config.log' for more details." >&5
7702 echo "$as_me: error: cannot compute sizeof (unsigned long)
7703 See \`config.log' for more details." >&2;}
7704    { (exit 77); exit 77; }; }
7705    else
7706      ac_cv_sizeof_unsigned_long=0
7707    fi
7708 fi
7709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7710 fi
7711 rm -f conftest.val
7712 fi
7713 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7714 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
7715
7716
7717
7718 cat >>confdefs.h <<_ACEOF
7719 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7720 _ACEOF
7721
7722
7723 { echo "$as_me:$LINENO: checking for signed long long" >&5
7724 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7725 if test "${ac_cv_type_signed_long_long+set}" = set; then
7726   echo $ECHO_N "(cached) $ECHO_C" >&6
7727 else
7728   cat >conftest.$ac_ext <<_ACEOF
7729 /* confdefs.h.  */
7730 _ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h.  */
7734 $ac_includes_default
7735 typedef signed long long ac__type_new_;
7736 int
7737 main ()
7738 {
7739 if ((ac__type_new_ *) 0)
7740   return 0;
7741 if (sizeof (ac__type_new_))
7742   return 0;
7743   ;
7744   return 0;
7745 }
7746 _ACEOF
7747 rm -f conftest.$ac_objext
7748 if { (ac_try="$ac_compile"
7749 case "(($ac_try" in
7750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751   *) ac_try_echo=$ac_try;;
7752 esac
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754   (eval "$ac_compile") 2>conftest.er1
7755   ac_status=$?
7756   grep -v '^ *+' conftest.er1 >conftest.err
7757   rm -f conftest.er1
7758   cat conftest.err >&5
7759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760   (exit $ac_status); } && {
7761          test -z "$ac_c_werror_flag" ||
7762          test ! -s conftest.err
7763        } && test -s conftest.$ac_objext; then
7764   ac_cv_type_signed_long_long=yes
7765 else
7766   echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7768
7769         ac_cv_type_signed_long_long=no
7770 fi
7771
7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773 fi
7774 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7775 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7776
7777 # The cast to long int works around a bug in the HP C Compiler
7778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7780 # This bug is HP SR number 8606223364.
7781 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7782 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7783 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7784   echo $ECHO_N "(cached) $ECHO_C" >&6
7785 else
7786   if test "$cross_compiling" = yes; then
7787   # Depending upon the size, compute the lo and hi bounds.
7788 cat >conftest.$ac_ext <<_ACEOF
7789 /* confdefs.h.  */
7790 _ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h.  */
7794 $ac_includes_default
7795    typedef signed long long ac__type_sizeof_;
7796 int
7797 main ()
7798 {
7799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7800 test_array [0] = 0
7801
7802   ;
7803   return 0;
7804 }
7805 _ACEOF
7806 rm -f conftest.$ac_objext
7807 if { (ac_try="$ac_compile"
7808 case "(($ac_try" in
7809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810   *) ac_try_echo=$ac_try;;
7811 esac
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813   (eval "$ac_compile") 2>conftest.er1
7814   ac_status=$?
7815   grep -v '^ *+' conftest.er1 >conftest.err
7816   rm -f conftest.er1
7817   cat conftest.err >&5
7818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); } && {
7820          test -z "$ac_c_werror_flag" ||
7821          test ! -s conftest.err
7822        } && test -s conftest.$ac_objext; then
7823   ac_lo=0 ac_mid=0
7824   while :; do
7825     cat >conftest.$ac_ext <<_ACEOF
7826 /* confdefs.h.  */
7827 _ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h.  */
7831 $ac_includes_default
7832    typedef signed long long ac__type_sizeof_;
7833 int
7834 main ()
7835 {
7836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7837 test_array [0] = 0
7838
7839   ;
7840   return 0;
7841 }
7842 _ACEOF
7843 rm -f conftest.$ac_objext
7844 if { (ac_try="$ac_compile"
7845 case "(($ac_try" in
7846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847   *) ac_try_echo=$ac_try;;
7848 esac
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850   (eval "$ac_compile") 2>conftest.er1
7851   ac_status=$?
7852   grep -v '^ *+' conftest.er1 >conftest.err
7853   rm -f conftest.er1
7854   cat conftest.err >&5
7855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856   (exit $ac_status); } && {
7857          test -z "$ac_c_werror_flag" ||
7858          test ! -s conftest.err
7859        } && test -s conftest.$ac_objext; then
7860   ac_hi=$ac_mid; break
7861 else
7862   echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7864
7865         ac_lo=`expr $ac_mid + 1`
7866                         if test $ac_lo -le $ac_mid; then
7867                           ac_lo= ac_hi=
7868                           break
7869                         fi
7870                         ac_mid=`expr 2 '*' $ac_mid + 1`
7871 fi
7872
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874   done
7875 else
7876   echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7878
7879         cat >conftest.$ac_ext <<_ACEOF
7880 /* confdefs.h.  */
7881 _ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h.  */
7885 $ac_includes_default
7886    typedef signed long long ac__type_sizeof_;
7887 int
7888 main ()
7889 {
7890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7891 test_array [0] = 0
7892
7893   ;
7894   return 0;
7895 }
7896 _ACEOF
7897 rm -f conftest.$ac_objext
7898 if { (ac_try="$ac_compile"
7899 case "(($ac_try" in
7900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901   *) ac_try_echo=$ac_try;;
7902 esac
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904   (eval "$ac_compile") 2>conftest.er1
7905   ac_status=$?
7906   grep -v '^ *+' conftest.er1 >conftest.err
7907   rm -f conftest.er1
7908   cat conftest.err >&5
7909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910   (exit $ac_status); } && {
7911          test -z "$ac_c_werror_flag" ||
7912          test ! -s conftest.err
7913        } && test -s conftest.$ac_objext; then
7914   ac_hi=-1 ac_mid=-1
7915   while :; do
7916     cat >conftest.$ac_ext <<_ACEOF
7917 /* confdefs.h.  */
7918 _ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h.  */
7922 $ac_includes_default
7923    typedef signed long long ac__type_sizeof_;
7924 int
7925 main ()
7926 {
7927 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7928 test_array [0] = 0
7929
7930   ;
7931   return 0;
7932 }
7933 _ACEOF
7934 rm -f conftest.$ac_objext
7935 if { (ac_try="$ac_compile"
7936 case "(($ac_try" in
7937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938   *) ac_try_echo=$ac_try;;
7939 esac
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941   (eval "$ac_compile") 2>conftest.er1
7942   ac_status=$?
7943   grep -v '^ *+' conftest.er1 >conftest.err
7944   rm -f conftest.er1
7945   cat conftest.err >&5
7946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947   (exit $ac_status); } && {
7948          test -z "$ac_c_werror_flag" ||
7949          test ! -s conftest.err
7950        } && test -s conftest.$ac_objext; then
7951   ac_lo=$ac_mid; break
7952 else
7953   echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956         ac_hi=`expr '(' $ac_mid ')' - 1`
7957                         if test $ac_mid -le $ac_hi; then
7958                           ac_lo= ac_hi=
7959                           break
7960                         fi
7961                         ac_mid=`expr 2 '*' $ac_mid`
7962 fi
7963
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965   done
7966 else
7967   echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7969
7970         ac_lo= ac_hi=
7971 fi
7972
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 fi
7975
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 # Binary search between lo and hi bounds.
7978 while test "x$ac_lo" != "x$ac_hi"; do
7979   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7980   cat >conftest.$ac_ext <<_ACEOF
7981 /* confdefs.h.  */
7982 _ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h.  */
7986 $ac_includes_default
7987    typedef signed long long ac__type_sizeof_;
7988 int
7989 main ()
7990 {
7991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7992 test_array [0] = 0
7993
7994   ;
7995   return 0;
7996 }
7997 _ACEOF
7998 rm -f conftest.$ac_objext
7999 if { (ac_try="$ac_compile"
8000 case "(($ac_try" in
8001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002   *) ac_try_echo=$ac_try;;
8003 esac
8004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005   (eval "$ac_compile") 2>conftest.er1
8006   ac_status=$?
8007   grep -v '^ *+' conftest.er1 >conftest.err
8008   rm -f conftest.er1
8009   cat conftest.err >&5
8010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011   (exit $ac_status); } && {
8012          test -z "$ac_c_werror_flag" ||
8013          test ! -s conftest.err
8014        } && test -s conftest.$ac_objext; then
8015   ac_hi=$ac_mid
8016 else
8017   echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020         ac_lo=`expr '(' $ac_mid ')' + 1`
8021 fi
8022
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8024 done
8025 case $ac_lo in
8026 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
8027 '') if test "$ac_cv_type_signed_long_long" = yes; then
8028      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
8029 See \`config.log' for more details." >&5
8030 echo "$as_me: error: cannot compute sizeof (signed long long)
8031 See \`config.log' for more details." >&2;}
8032    { (exit 77); exit 77; }; }
8033    else
8034      ac_cv_sizeof_signed_long_long=0
8035    fi ;;
8036 esac
8037 else
8038   cat >conftest.$ac_ext <<_ACEOF
8039 /* confdefs.h.  */
8040 _ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h.  */
8044 $ac_includes_default
8045    typedef signed long long ac__type_sizeof_;
8046 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8047 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8048 #include <stdio.h>
8049 #include <stdlib.h>
8050 int
8051 main ()
8052 {
8053
8054   FILE *f = fopen ("conftest.val", "w");
8055   if (! f)
8056     return 1;
8057   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8058     {
8059       long int i = longval ();
8060       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8061         return 1;
8062       fprintf (f, "%ld\n", i);
8063     }
8064   else
8065     {
8066       unsigned long int i = ulongval ();
8067       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8068         return 1;
8069       fprintf (f, "%lu\n", i);
8070     }
8071   return ferror (f) || fclose (f) != 0;
8072
8073   ;
8074   return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest$ac_exeext
8078 if { (ac_try="$ac_link"
8079 case "(($ac_try" in
8080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081   *) ac_try_echo=$ac_try;;
8082 esac
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084   (eval "$ac_link") 2>&5
8085   ac_status=$?
8086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8088   { (case "(($ac_try" in
8089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090   *) ac_try_echo=$ac_try;;
8091 esac
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093   (eval "$ac_try") 2>&5
8094   ac_status=$?
8095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096   (exit $ac_status); }; }; then
8097   ac_cv_sizeof_signed_long_long=`cat conftest.val`
8098 else
8099   echo "$as_me: program exited with status $ac_status" >&5
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8102
8103 ( exit $ac_status )
8104 if test "$ac_cv_type_signed_long_long" = yes; then
8105      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
8106 See \`config.log' for more details." >&5
8107 echo "$as_me: error: cannot compute sizeof (signed long long)
8108 See \`config.log' for more details." >&2;}
8109    { (exit 77); exit 77; }; }
8110    else
8111      ac_cv_sizeof_signed_long_long=0
8112    fi
8113 fi
8114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8115 fi
8116 rm -f conftest.val
8117 fi
8118 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
8119 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
8120
8121
8122
8123 cat >>confdefs.h <<_ACEOF
8124 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
8125 _ACEOF
8126
8127
8128 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
8129 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
8130 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8131   echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133   cat >conftest.$ac_ext <<_ACEOF
8134 /* confdefs.h.  */
8135 _ACEOF
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h.  */
8139 $ac_includes_default
8140 typedef unsigned long long ac__type_new_;
8141 int
8142 main ()
8143 {
8144 if ((ac__type_new_ *) 0)
8145   return 0;
8146 if (sizeof (ac__type_new_))
8147   return 0;
8148   ;
8149   return 0;
8150 }
8151 _ACEOF
8152 rm -f conftest.$ac_objext
8153 if { (ac_try="$ac_compile"
8154 case "(($ac_try" in
8155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8156   *) ac_try_echo=$ac_try;;
8157 esac
8158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8159   (eval "$ac_compile") 2>conftest.er1
8160   ac_status=$?
8161   grep -v '^ *+' conftest.er1 >conftest.err
8162   rm -f conftest.er1
8163   cat conftest.err >&5
8164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165   (exit $ac_status); } && {
8166          test -z "$ac_c_werror_flag" ||
8167          test ! -s conftest.err
8168        } && test -s conftest.$ac_objext; then
8169   ac_cv_type_unsigned_long_long=yes
8170 else
8171   echo "$as_me: failed program was:" >&5
8172 sed 's/^/| /' conftest.$ac_ext >&5
8173
8174         ac_cv_type_unsigned_long_long=no
8175 fi
8176
8177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8178 fi
8179 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8180 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8181
8182 # The cast to long int works around a bug in the HP C Compiler
8183 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8184 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8185 # This bug is HP SR number 8606223364.
8186 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
8187 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
8188 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
8189   echo $ECHO_N "(cached) $ECHO_C" >&6
8190 else
8191   if test "$cross_compiling" = yes; then
8192   # Depending upon the size, compute the lo and hi bounds.
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h.  */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h.  */
8199 $ac_includes_default
8200    typedef unsigned long long ac__type_sizeof_;
8201 int
8202 main ()
8203 {
8204 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8205 test_array [0] = 0
8206
8207   ;
8208   return 0;
8209 }
8210 _ACEOF
8211 rm -f conftest.$ac_objext
8212 if { (ac_try="$ac_compile"
8213 case "(($ac_try" in
8214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8215   *) ac_try_echo=$ac_try;;
8216 esac
8217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8218   (eval "$ac_compile") 2>conftest.er1
8219   ac_status=$?
8220   grep -v '^ *+' conftest.er1 >conftest.err
8221   rm -f conftest.er1
8222   cat conftest.err >&5
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); } && {
8225          test -z "$ac_c_werror_flag" ||
8226          test ! -s conftest.err
8227        } && test -s conftest.$ac_objext; then
8228   ac_lo=0 ac_mid=0
8229   while :; do
8230     cat >conftest.$ac_ext <<_ACEOF
8231 /* confdefs.h.  */
8232 _ACEOF
8233 cat confdefs.h >>conftest.$ac_ext
8234 cat >>conftest.$ac_ext <<_ACEOF
8235 /* end confdefs.h.  */
8236 $ac_includes_default
8237    typedef unsigned long long ac__type_sizeof_;
8238 int
8239 main ()
8240 {
8241 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8242 test_array [0] = 0
8243
8244   ;
8245   return 0;
8246 }
8247 _ACEOF
8248 rm -f conftest.$ac_objext
8249 if { (ac_try="$ac_compile"
8250 case "(($ac_try" in
8251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252   *) ac_try_echo=$ac_try;;
8253 esac
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255   (eval "$ac_compile") 2>conftest.er1
8256   ac_status=$?
8257   grep -v '^ *+' conftest.er1 >conftest.err
8258   rm -f conftest.er1
8259   cat conftest.err >&5
8260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261   (exit $ac_status); } && {
8262          test -z "$ac_c_werror_flag" ||
8263          test ! -s conftest.err
8264        } && test -s conftest.$ac_objext; then
8265   ac_hi=$ac_mid; break
8266 else
8267   echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8269
8270         ac_lo=`expr $ac_mid + 1`
8271                         if test $ac_lo -le $ac_mid; then
8272                           ac_lo= ac_hi=
8273                           break
8274                         fi
8275                         ac_mid=`expr 2 '*' $ac_mid + 1`
8276 fi
8277
8278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279   done
8280 else
8281   echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284         cat >conftest.$ac_ext <<_ACEOF
8285 /* confdefs.h.  */
8286 _ACEOF
8287 cat confdefs.h >>conftest.$ac_ext
8288 cat >>conftest.$ac_ext <<_ACEOF
8289 /* end confdefs.h.  */
8290 $ac_includes_default
8291    typedef unsigned long long ac__type_sizeof_;
8292 int
8293 main ()
8294 {
8295 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8296 test_array [0] = 0
8297
8298   ;
8299   return 0;
8300 }
8301 _ACEOF
8302 rm -f conftest.$ac_objext
8303 if { (ac_try="$ac_compile"
8304 case "(($ac_try" in
8305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306   *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309   (eval "$ac_compile") 2>conftest.er1
8310   ac_status=$?
8311   grep -v '^ *+' conftest.er1 >conftest.err
8312   rm -f conftest.er1
8313   cat conftest.err >&5
8314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315   (exit $ac_status); } && {
8316          test -z "$ac_c_werror_flag" ||
8317          test ! -s conftest.err
8318        } && test -s conftest.$ac_objext; then
8319   ac_hi=-1 ac_mid=-1
8320   while :; do
8321     cat >conftest.$ac_ext <<_ACEOF
8322 /* confdefs.h.  */
8323 _ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h.  */
8327 $ac_includes_default
8328    typedef unsigned long long ac__type_sizeof_;
8329 int
8330 main ()
8331 {
8332 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8333 test_array [0] = 0
8334
8335   ;
8336   return 0;
8337 }
8338 _ACEOF
8339 rm -f conftest.$ac_objext
8340 if { (ac_try="$ac_compile"
8341 case "(($ac_try" in
8342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8343   *) ac_try_echo=$ac_try;;
8344 esac
8345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8346   (eval "$ac_compile") 2>conftest.er1
8347   ac_status=$?
8348   grep -v '^ *+' conftest.er1 >conftest.err
8349   rm -f conftest.er1
8350   cat conftest.err >&5
8351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8352   (exit $ac_status); } && {
8353          test -z "$ac_c_werror_flag" ||
8354          test ! -s conftest.err
8355        } && test -s conftest.$ac_objext; then
8356   ac_lo=$ac_mid; break
8357 else
8358   echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8360
8361         ac_hi=`expr '(' $ac_mid ')' - 1`
8362                         if test $ac_mid -le $ac_hi; then
8363                           ac_lo= ac_hi=
8364                           break
8365                         fi
8366                         ac_mid=`expr 2 '*' $ac_mid`
8367 fi
8368
8369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8370   done
8371 else
8372   echo "$as_me: failed program was:" >&5
8373 sed 's/^/| /' conftest.$ac_ext >&5
8374
8375         ac_lo= ac_hi=
8376 fi
8377
8378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8379 fi
8380
8381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8382 # Binary search between lo and hi bounds.
8383 while test "x$ac_lo" != "x$ac_hi"; do
8384   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8385   cat >conftest.$ac_ext <<_ACEOF
8386 /* confdefs.h.  */
8387 _ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h.  */
8391 $ac_includes_default
8392    typedef unsigned long long ac__type_sizeof_;
8393 int
8394 main ()
8395 {
8396 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8397 test_array [0] = 0
8398
8399   ;
8400   return 0;
8401 }
8402 _ACEOF
8403 rm -f conftest.$ac_objext
8404 if { (ac_try="$ac_compile"
8405 case "(($ac_try" in
8406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8407   *) ac_try_echo=$ac_try;;
8408 esac
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410   (eval "$ac_compile") 2>conftest.er1
8411   ac_status=$?
8412   grep -v '^ *+' conftest.er1 >conftest.err
8413   rm -f conftest.er1
8414   cat conftest.err >&5
8415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416   (exit $ac_status); } && {
8417          test -z "$ac_c_werror_flag" ||
8418          test ! -s conftest.err
8419        } && test -s conftest.$ac_objext; then
8420   ac_hi=$ac_mid
8421 else
8422   echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.$ac_ext >&5
8424
8425         ac_lo=`expr '(' $ac_mid ')' + 1`
8426 fi
8427
8428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8429 done
8430 case $ac_lo in
8431 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
8432 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
8433      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8434 See \`config.log' for more details." >&5
8435 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8436 See \`config.log' for more details." >&2;}
8437    { (exit 77); exit 77; }; }
8438    else
8439      ac_cv_sizeof_unsigned_long_long=0
8440    fi ;;
8441 esac
8442 else
8443   cat >conftest.$ac_ext <<_ACEOF
8444 /* confdefs.h.  */
8445 _ACEOF
8446 cat confdefs.h >>conftest.$ac_ext
8447 cat >>conftest.$ac_ext <<_ACEOF
8448 /* end confdefs.h.  */
8449 $ac_includes_default
8450    typedef unsigned long long ac__type_sizeof_;
8451 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8452 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8453 #include <stdio.h>
8454 #include <stdlib.h>
8455 int
8456 main ()
8457 {
8458
8459   FILE *f = fopen ("conftest.val", "w");
8460   if (! f)
8461     return 1;
8462   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8463     {
8464       long int i = longval ();
8465       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8466         return 1;
8467       fprintf (f, "%ld\n", i);
8468     }
8469   else
8470     {
8471       unsigned long int i = ulongval ();
8472       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8473         return 1;
8474       fprintf (f, "%lu\n", i);
8475     }
8476   return ferror (f) || fclose (f) != 0;
8477
8478   ;
8479   return 0;
8480 }
8481 _ACEOF
8482 rm -f conftest$ac_exeext
8483 if { (ac_try="$ac_link"
8484 case "(($ac_try" in
8485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8486   *) ac_try_echo=$ac_try;;
8487 esac
8488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8489   (eval "$ac_link") 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8493   { (case "(($ac_try" in
8494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8495   *) ac_try_echo=$ac_try;;
8496 esac
8497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8498   (eval "$ac_try") 2>&5
8499   ac_status=$?
8500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501   (exit $ac_status); }; }; then
8502   ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
8503 else
8504   echo "$as_me: program exited with status $ac_status" >&5
8505 echo "$as_me: failed program was:" >&5
8506 sed 's/^/| /' conftest.$ac_ext >&5
8507
8508 ( exit $ac_status )
8509 if test "$ac_cv_type_unsigned_long_long" = yes; then
8510      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8511 See \`config.log' for more details." >&5
8512 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8513 See \`config.log' for more details." >&2;}
8514    { (exit 77); exit 77; }; }
8515    else
8516      ac_cv_sizeof_unsigned_long_long=0
8517    fi
8518 fi
8519 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8520 fi
8521 rm -f conftest.val
8522 fi
8523 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
8524 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
8525
8526
8527
8528 cat >>confdefs.h <<_ACEOF
8529 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8530 _ACEOF
8531
8532
8533
8534
8535
8536 # Extract the first word of "freetype-config", so it can be a program name with args.
8537 set dummy freetype-config; ac_word=$2
8538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8540 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8541   echo $ECHO_N "(cached) $ECHO_C" >&6
8542 else
8543   case $FREETYPE_CONFIG in
8544   [\\/]* | ?:[\\/]*)
8545   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8546   ;;
8547   *)
8548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8550 for as_dir in $as_dummy
8551 do
8552   IFS=$as_save_IFS
8553   test -z "$as_dir" && as_dir=.
8554   for ac_exec_ext in '' $ac_executable_extensions; do
8555   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8557     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8558     break 2
8559   fi
8560 done
8561 done
8562 IFS=$as_save_IFS
8563
8564   ;;
8565 esac
8566 fi
8567 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8568 if test -n "$FREETYPE_CONFIG"; then
8569   { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8570 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8571 else
8572   { echo "$as_me:$LINENO: result: no" >&5
8573 echo "${ECHO_T}no" >&6; }
8574 fi
8575
8576
8577
8578 OLDCPPFLAGS="${CPPFLAGS}"
8579 OLDLIBS="${LIBS}"
8580 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8581     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8582 else if test -d /usr/include/freetype2; then
8583     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8584 else if test -d /usr/local/include/freetype2; then
8585     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8586 fi
8587 fi
8588 fi
8589
8590 if test "x${FREETYPE_CONFIG}" '=' "x";then
8591     # if we didn't find the freetype-config program, we won't
8592     # know where the libs are expected to be. So just blindly
8593     # try to link against them.
8594     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8595 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8596 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8597   echo $ECHO_N "(cached) $ECHO_C" >&6
8598 else
8599   ac_check_lib_save_LIBS=$LIBS
8600 LIBS="-lfreetype  $LIBS"
8601 cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607
8608 /* Override any GCC internal prototype to avoid an error.
8609    Use char because int might match the return type of a GCC
8610    builtin and then its argument prototype would still apply.  */
8611 #ifdef __cplusplus
8612 extern "C"
8613 #endif
8614 char FT_Init_FreeType ();
8615 int
8616 main ()
8617 {
8618 return FT_Init_FreeType ();
8619   ;
8620   return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (ac_try="$ac_link"
8625 case "(($ac_try" in
8626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627   *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630   (eval "$ac_link") 2>conftest.er1
8631   ac_status=$?
8632   grep -v '^ *+' conftest.er1 >conftest.err
8633   rm -f conftest.er1
8634   cat conftest.err >&5
8635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636   (exit $ac_status); } && {
8637          test -z "$ac_c_werror_flag" ||
8638          test ! -s conftest.err
8639        } && test -s conftest$ac_exeext &&
8640        $as_test_x conftest$ac_exeext; then
8641   ac_cv_lib_freetype_FT_Init_FreeType=yes
8642 else
8643   echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8645
8646         ac_cv_lib_freetype_FT_Init_FreeType=no
8647 fi
8648
8649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8650       conftest$ac_exeext conftest.$ac_ext
8651 LIBS=$ac_check_lib_save_LIBS
8652 fi
8653 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8654 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8655 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8656   HAVE_LIB_FREETYPE=1
8657 fi
8658
8659 fi
8660
8661
8662 for ac_header in ft2build.h
8663 do
8664 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8665 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8666   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8669   echo $ECHO_N "(cached) $ECHO_C" >&6
8670 fi
8671 ac_res=`eval echo '${'$as_ac_Header'}'`
8672                { echo "$as_me:$LINENO: result: $ac_res" >&5
8673 echo "${ECHO_T}$ac_res" >&6; }
8674 else
8675   # Is the header compilable?
8676 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8677 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8678 cat >conftest.$ac_ext <<_ACEOF
8679 /* confdefs.h.  */
8680 _ACEOF
8681 cat confdefs.h >>conftest.$ac_ext
8682 cat >>conftest.$ac_ext <<_ACEOF
8683 /* end confdefs.h.  */
8684 $ac_includes_default
8685 #include <$ac_header>
8686 _ACEOF
8687 rm -f conftest.$ac_objext
8688 if { (ac_try="$ac_compile"
8689 case "(($ac_try" in
8690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691   *) ac_try_echo=$ac_try;;
8692 esac
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694   (eval "$ac_compile") 2>conftest.er1
8695   ac_status=$?
8696   grep -v '^ *+' conftest.er1 >conftest.err
8697   rm -f conftest.er1
8698   cat conftest.err >&5
8699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700   (exit $ac_status); } && {
8701          test -z "$ac_c_werror_flag" ||
8702          test ! -s conftest.err
8703        } && test -s conftest.$ac_objext; then
8704   ac_header_compiler=yes
8705 else
8706   echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.$ac_ext >&5
8708
8709         ac_header_compiler=no
8710 fi
8711
8712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8714 echo "${ECHO_T}$ac_header_compiler" >&6; }
8715
8716 # Is the header present?
8717 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8718 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8719 cat >conftest.$ac_ext <<_ACEOF
8720 /* confdefs.h.  */
8721 _ACEOF
8722 cat confdefs.h >>conftest.$ac_ext
8723 cat >>conftest.$ac_ext <<_ACEOF
8724 /* end confdefs.h.  */
8725 #include <$ac_header>
8726 _ACEOF
8727 if { (ac_try="$ac_cpp conftest.$ac_ext"
8728 case "(($ac_try" in
8729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730   *) ac_try_echo=$ac_try;;
8731 esac
8732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8734   ac_status=$?
8735   grep -v '^ *+' conftest.er1 >conftest.err
8736   rm -f conftest.er1
8737   cat conftest.err >&5
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); } >/dev/null && {
8740          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8741          test ! -s conftest.err
8742        }; then
8743   ac_header_preproc=yes
8744 else
8745   echo "$as_me: failed program was:" >&5
8746 sed 's/^/| /' conftest.$ac_ext >&5
8747
8748   ac_header_preproc=no
8749 fi
8750
8751 rm -f conftest.err conftest.$ac_ext
8752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8753 echo "${ECHO_T}$ac_header_preproc" >&6; }
8754
8755 # So?  What about this header?
8756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8757   yes:no: )
8758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8762     ac_header_preproc=yes
8763     ;;
8764   no:yes:* )
8765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8777
8778     ;;
8779 esac
8780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8783   echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785   eval "$as_ac_Header=\$ac_header_preproc"
8786 fi
8787 ac_res=`eval echo '${'$as_ac_Header'}'`
8788                { echo "$as_me:$LINENO: result: $ac_res" >&5
8789 echo "${ECHO_T}$ac_res" >&6; }
8790
8791 fi
8792 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8793   cat >>confdefs.h <<_ACEOF
8794 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8795 _ACEOF
8796  HAVE_FT2BUILD_H=1
8797 fi
8798
8799 done
8800
8801 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8802
8803 for ac_header in freetype/freetype.h
8804 do
8805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8807   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8810   echo $ECHO_N "(cached) $ECHO_C" >&6
8811 fi
8812 ac_res=`eval echo '${'$as_ac_Header'}'`
8813                { echo "$as_me:$LINENO: result: $ac_res" >&5
8814 echo "${ECHO_T}$ac_res" >&6; }
8815 else
8816   # Is the header compilable?
8817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8819 cat >conftest.$ac_ext <<_ACEOF
8820 /* confdefs.h.  */
8821 _ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h.  */
8825 $ac_includes_default
8826 #include <$ac_header>
8827 _ACEOF
8828 rm -f conftest.$ac_objext
8829 if { (ac_try="$ac_compile"
8830 case "(($ac_try" in
8831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832   *) ac_try_echo=$ac_try;;
8833 esac
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835   (eval "$ac_compile") 2>conftest.er1
8836   ac_status=$?
8837   grep -v '^ *+' conftest.er1 >conftest.err
8838   rm -f conftest.er1
8839   cat conftest.err >&5
8840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8841   (exit $ac_status); } && {
8842          test -z "$ac_c_werror_flag" ||
8843          test ! -s conftest.err
8844        } && test -s conftest.$ac_objext; then
8845   ac_header_compiler=yes
8846 else
8847   echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850         ac_header_compiler=no
8851 fi
8852
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8855 echo "${ECHO_T}$ac_header_compiler" >&6; }
8856
8857 # Is the header present?
8858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8860 cat >conftest.$ac_ext <<_ACEOF
8861 /* confdefs.h.  */
8862 _ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h.  */
8866 #include <$ac_header>
8867 _ACEOF
8868 if { (ac_try="$ac_cpp conftest.$ac_ext"
8869 case "(($ac_try" in
8870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8871   *) ac_try_echo=$ac_try;;
8872 esac
8873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8874   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8875   ac_status=$?
8876   grep -v '^ *+' conftest.er1 >conftest.err
8877   rm -f conftest.er1
8878   cat conftest.err >&5
8879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880   (exit $ac_status); } >/dev/null && {
8881          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8882          test ! -s conftest.err
8883        }; then
8884   ac_header_preproc=yes
8885 else
8886   echo "$as_me: failed program was:" >&5
8887 sed 's/^/| /' conftest.$ac_ext >&5
8888
8889   ac_header_preproc=no
8890 fi
8891
8892 rm -f conftest.err conftest.$ac_ext
8893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8894 echo "${ECHO_T}$ac_header_preproc" >&6; }
8895
8896 # So?  What about this header?
8897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8898   yes:no: )
8899     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8901     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8903     ac_header_preproc=yes
8904     ;;
8905   no:yes:* )
8906     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8908     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8909 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8910     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8912     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8913 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8914     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8916     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8918
8919     ;;
8920 esac
8921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8924   echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926   eval "$as_ac_Header=\$ac_header_preproc"
8927 fi
8928 ac_res=`eval echo '${'$as_ac_Header'}'`
8929                { echo "$as_me:$LINENO: result: $ac_res" >&5
8930 echo "${ECHO_T}$ac_res" >&6; }
8931
8932 fi
8933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8934   cat >>confdefs.h <<_ACEOF
8935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8936 _ACEOF
8937  HAVE_FREETYPE_FREETYPE_H=1
8938 fi
8939
8940 done
8941
8942 fi
8943
8944 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8945         "x${FREETYPE_CONFIG}" '!=' "x";then
8946     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8947         HAVE_FREETYPE=1
8948     fi
8949     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8950         HAVE_FREETYPE=1
8951     fi
8952 fi
8953
8954 if test "x${HAVE_FREETYPE}" = "x1"; then
8955     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8956         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8957     else
8958         LIBS="$LIBS -lfreetype"
8959     fi
8960
8961     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8962         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8963     fi
8964
8965     { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8966 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8967
8968     cat > conftest.c << EOF
8969 $HAVE_FT2BUILD_H_DEFINE
8970
8971 #ifdef HAVE_FT2BUILD_H
8972 #include <ft2build.h>
8973 #include FT_FREETYPE_H
8974 #include FT_GLYPH_H
8975 #include FT_SIZES_H
8976 #include FT_SFNT_NAMES_H
8977 #include FT_TRUETYPE_IDS_H
8978 #include FT_OUTLINE_H
8979 #else
8980 #include <freetype/freetype.h>
8981 #include <freetype/ftglyph.h>
8982 #include <freetype/ftsizes.h>
8983 #include <freetype/ftsnames.h>
8984 #include <freetype/ttnameid.h>
8985 #include <freetype/ftoutln.h>
8986 #endif
8987
8988 int main()
8989 {
8990     FT_Library ftlibrary;
8991     FT_Face face;
8992     FT_Error error;
8993     FT_ULong charcode;
8994     FT_UInt gindex;
8995     FT_Glyph glyph;
8996     FT_BBox bbox;
8997     FT_Matrix matrix;
8998     FT_UInt i;
8999     char* name = 0;
9000     char italic, bold;
9001
9002     FT_Init_FreeType(&ftlibrary);
9003     FT_New_Face(ftlibrary, "filename", 0, &face);
9004     i = face->num_glyphs - 1;
9005     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
9006     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
9007     FT_Get_Postscript_Name(face);
9008     FT_Get_Char_Index(face, 33);
9009     FT_Get_First_Char(face, &i);
9010     FT_Get_Next_Char(face, 33, &i);
9011     if(FT_HAS_GLYPH_NAMES(face)) {
9012         FT_Get_Glyph_Name(face, 33, name, 127);
9013     }
9014     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
9015     FT_Get_Glyph(face->glyph, &glyph);
9016     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
9017     FT_Done_Glyph(glyph);
9018     FT_Done_Face(face);
9019     FT_Done_FreeType(ftlibrary);
9020     return 0;
9021 }
9022 EOF
9023
9024     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9025     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9026         { echo "$as_me:$LINENO: result: yes" >&5
9027 echo "${ECHO_T}yes" >&6; }
9028
9029 cat >>confdefs.h <<\_ACEOF
9030 #define HAVE_FREETYPE 1
9031 _ACEOF
9032
9033
9034 cat >>confdefs.h <<\_ACEOF
9035 #define HAVE_FREETYPE_FREETYPE_H 1
9036 _ACEOF
9037
9038
9039 cat >>confdefs.h <<\_ACEOF
9040 #define USE_FREETYPE 1
9041 _ACEOF
9042   # for ttf2tp1
9043     else
9044         echo "configure: failed program was:" >&5
9045         cat conftest.c >&5
9046         HAVE_FREETYPE=0
9047         { echo "$as_me:$LINENO: result: no" >&5
9048 echo "${ECHO_T}no" >&6; }
9049     fi
9050     rm -f conftest*
9051 fi
9052
9053 # if the above didn't work out, reset all changes to the compiler variables.
9054 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
9055     CPPFLAGS=$OLDCPPFLAGS
9056     LIBS=$OLDLIBS
9057 fi
9058
9059
9060
9061 OLDCPPFLAGS="${CPPFLAGS}"
9062 OLDLIBS="${LIBS}"
9063
9064 if test -d /usr/include/fontconfig; then
9065     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
9066 fi
9067
9068 { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
9069 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; }
9070 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
9071   echo $ECHO_N "(cached) $ECHO_C" >&6
9072 else
9073   ac_check_lib_save_LIBS=$LIBS
9074 LIBS="-lfontconfig  $LIBS"
9075 cat >conftest.$ac_ext <<_ACEOF
9076 /* confdefs.h.  */
9077 _ACEOF
9078 cat confdefs.h >>conftest.$ac_ext
9079 cat >>conftest.$ac_ext <<_ACEOF
9080 /* end confdefs.h.  */
9081
9082 /* Override any GCC internal prototype to avoid an error.
9083    Use char because int might match the return type of a GCC
9084    builtin and then its argument prototype would still apply.  */
9085 #ifdef __cplusplus
9086 extern "C"
9087 #endif
9088 char FcInit ();
9089 int
9090 main ()
9091 {
9092 return FcInit ();
9093   ;
9094   return 0;
9095 }
9096 _ACEOF
9097 rm -f conftest.$ac_objext conftest$ac_exeext
9098 if { (ac_try="$ac_link"
9099 case "(($ac_try" in
9100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9101   *) ac_try_echo=$ac_try;;
9102 esac
9103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9104   (eval "$ac_link") 2>conftest.er1
9105   ac_status=$?
9106   grep -v '^ *+' conftest.er1 >conftest.err
9107   rm -f conftest.er1
9108   cat conftest.err >&5
9109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110   (exit $ac_status); } && {
9111          test -z "$ac_c_werror_flag" ||
9112          test ! -s conftest.err
9113        } && test -s conftest$ac_exeext &&
9114        $as_test_x conftest$ac_exeext; then
9115   ac_cv_lib_fontconfig_FcInit=yes
9116 else
9117   echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9119
9120         ac_cv_lib_fontconfig_FcInit=no
9121 fi
9122
9123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9124       conftest$ac_exeext conftest.$ac_ext
9125 LIBS=$ac_check_lib_save_LIBS
9126 fi
9127 { echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
9128 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; }
9129 if test $ac_cv_lib_fontconfig_FcInit = yes; then
9130   HAVE_LIB_FONTCONFIG=1
9131 fi
9132
9133
9134 for ac_header in fontconfig.h
9135 do
9136 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9138   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9139 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9141   echo $ECHO_N "(cached) $ECHO_C" >&6
9142 fi
9143 ac_res=`eval echo '${'$as_ac_Header'}'`
9144                { echo "$as_me:$LINENO: result: $ac_res" >&5
9145 echo "${ECHO_T}$ac_res" >&6; }
9146 else
9147   # Is the header compilable?
9148 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9149 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9150 cat >conftest.$ac_ext <<_ACEOF
9151 /* confdefs.h.  */
9152 _ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h.  */
9156 $ac_includes_default
9157 #include <$ac_header>
9158 _ACEOF
9159 rm -f conftest.$ac_objext
9160 if { (ac_try="$ac_compile"
9161 case "(($ac_try" in
9162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163   *) ac_try_echo=$ac_try;;
9164 esac
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166   (eval "$ac_compile") 2>conftest.er1
9167   ac_status=$?
9168   grep -v '^ *+' conftest.er1 >conftest.err
9169   rm -f conftest.er1
9170   cat conftest.err >&5
9171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172   (exit $ac_status); } && {
9173          test -z "$ac_c_werror_flag" ||
9174          test ! -s conftest.err
9175        } && test -s conftest.$ac_objext; then
9176   ac_header_compiler=yes
9177 else
9178   echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181         ac_header_compiler=no
9182 fi
9183
9184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9185 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9186 echo "${ECHO_T}$ac_header_compiler" >&6; }
9187
9188 # Is the header present?
9189 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9190 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h.  */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h.  */
9197 #include <$ac_header>
9198 _ACEOF
9199 if { (ac_try="$ac_cpp conftest.$ac_ext"
9200 case "(($ac_try" in
9201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9202   *) ac_try_echo=$ac_try;;
9203 esac
9204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9205   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9206   ac_status=$?
9207   grep -v '^ *+' conftest.er1 >conftest.err
9208   rm -f conftest.er1
9209   cat conftest.err >&5
9210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211   (exit $ac_status); } >/dev/null && {
9212          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9213          test ! -s conftest.err
9214        }; then
9215   ac_header_preproc=yes
9216 else
9217   echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9219
9220   ac_header_preproc=no
9221 fi
9222
9223 rm -f conftest.err conftest.$ac_ext
9224 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9225 echo "${ECHO_T}$ac_header_preproc" >&6; }
9226
9227 # So?  What about this header?
9228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9229   yes:no: )
9230     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9231 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9234     ac_header_preproc=yes
9235     ;;
9236   no:yes:* )
9237     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9238 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9239     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9240 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9241     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9242 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9243     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9244 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9247     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9248 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9249
9250     ;;
9251 esac
9252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9255   echo $ECHO_N "(cached) $ECHO_C" >&6
9256 else
9257   eval "$as_ac_Header=\$ac_header_preproc"
9258 fi
9259 ac_res=`eval echo '${'$as_ac_Header'}'`
9260                { echo "$as_me:$LINENO: result: $ac_res" >&5
9261 echo "${ECHO_T}$ac_res" >&6; }
9262
9263 fi
9264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9265   cat >>confdefs.h <<_ACEOF
9266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9267 _ACEOF
9268  HAVE_FONTCONFIG_H=1
9269 fi
9270
9271 done
9272
9273
9274 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
9275 if test "x${HAVE_FONTCONFIG_H}" != "x";then
9276     HAVE_FONTCONFIG=1
9277 fi
9278 fi
9279
9280 if test "x${HAVE_FONTCONFIG}" = "x1"; then
9281     LIBS="$LIBS -lfontconfig"
9282 { echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
9283 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6; }
9284
9285 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
9286     #move freetype library to the end of libraries, otherwise fontconfig
9287     #won't compile.
9288     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
9289 fi
9290
9291 cat > conftest.c << EOF
9292 #include <string.h>
9293 #include <fontconfig.h>
9294
9295 int main()
9296 {
9297     FcPattern *pattern, *match;
9298     FcResult result;
9299     FcChar8 *v;
9300     char*s1="abc",*s2="ABC";
9301     strcasecmp(s1,s2);
9302     FcInit();
9303     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
9304     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
9305     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
9306
9307     FcConfig*c = FcConfigCreate();
9308     FcConfigParseAndLoad(c, (FcChar8*)"", 1);
9309     FcConfigBuildFonts(c);
9310     FcConfigSetCurrent(c);
9311
9312     FcFontSet * set =  FcConfigGetFonts(c, FcSetSystem);
9313     FcFontSetDestroy(set);
9314
9315     FcConfigSubstitute(0, pattern, FcMatchPattern);
9316     FcDefaultSubstitute(pattern);
9317     match = FcFontMatch(0, pattern, &result);
9318     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
9319     FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
9320     FcPatternPrint(pattern);
9321     FcPatternDestroy(pattern);
9322     FcPatternDestroy(match);
9323     FcFini();
9324     return 0;
9325 }
9326 EOF
9327
9328     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9329     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9330         { echo "$as_me:$LINENO: result: yes" >&5
9331 echo "${ECHO_T}yes" >&6; }
9332
9333 cat >>confdefs.h <<\_ACEOF
9334 #define HAVE_FONTCONFIG 1
9335 _ACEOF
9336
9337     else
9338         echo "configure: failed program was:" >&5
9339         cat conftest.c >&5
9340         HAVE_FONTCONFIG=0
9341         { echo "$as_me:$LINENO: result: no" >&5
9342 echo "${ECHO_T}no" >&6; }
9343     fi
9344     rm -f conftest*
9345 fi
9346
9347 # if the above didn't work out, reset all changes to the compiler variables.
9348 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
9349     CPPFLAGS=$OLDCPPFLAGS
9350     LIBS=$OLDLIBS
9351 fi
9352
9353
9354
9355 OLDCPPFLAGS="${CPPFLAGS}"
9356 OLDLIBS="${LIBS}"
9357
9358
9359 { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
9360 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
9361 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
9362   echo $ECHO_N "(cached) $ECHO_C" >&6
9363 else
9364   ac_check_lib_save_LIBS=$LIBS
9365 LIBS="-lGL  $LIBS"
9366 cat >conftest.$ac_ext <<_ACEOF
9367 /* confdefs.h.  */
9368 _ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h.  */
9372
9373 /* Override any GCC internal prototype to avoid an error.
9374    Use char because int might match the return type of a GCC
9375    builtin and then its argument prototype would still apply.  */
9376 #ifdef __cplusplus
9377 extern "C"
9378 #endif
9379 char glBegin ();
9380 int
9381 main ()
9382 {
9383 return glBegin ();
9384   ;
9385   return 0;
9386 }
9387 _ACEOF
9388 rm -f conftest.$ac_objext conftest$ac_exeext
9389 if { (ac_try="$ac_link"
9390 case "(($ac_try" in
9391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9392   *) ac_try_echo=$ac_try;;
9393 esac
9394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9395   (eval "$ac_link") 2>conftest.er1
9396   ac_status=$?
9397   grep -v '^ *+' conftest.er1 >conftest.err
9398   rm -f conftest.er1
9399   cat conftest.err >&5
9400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401   (exit $ac_status); } && {
9402          test -z "$ac_c_werror_flag" ||
9403          test ! -s conftest.err
9404        } && test -s conftest$ac_exeext &&
9405        $as_test_x conftest$ac_exeext; then
9406   ac_cv_lib_GL_glBegin=yes
9407 else
9408   echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9410
9411         ac_cv_lib_GL_glBegin=no
9412 fi
9413
9414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9415       conftest$ac_exeext conftest.$ac_ext
9416 LIBS=$ac_check_lib_save_LIBS
9417 fi
9418 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
9419 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
9420 if test $ac_cv_lib_GL_glBegin = yes; then
9421   cat >>confdefs.h <<_ACEOF
9422 #define HAVE_LIBGL 1
9423 _ACEOF
9424
9425   LIBS="-lGL $LIBS"
9426
9427 fi
9428
9429
9430 { echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
9431 echo $ECHO_N "checking for gluBeginSurface in -lGLU... $ECHO_C" >&6; }
9432 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
9433   echo $ECHO_N "(cached) $ECHO_C" >&6
9434 else
9435   ac_check_lib_save_LIBS=$LIBS
9436 LIBS="-lGLU  $LIBS"
9437 cat >conftest.$ac_ext <<_ACEOF
9438 /* confdefs.h.  */
9439 _ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h.  */
9443
9444 /* Override any GCC internal prototype to avoid an error.
9445    Use char because int might match the return type of a GCC
9446    builtin and then its argument prototype would still apply.  */
9447 #ifdef __cplusplus
9448 extern "C"
9449 #endif
9450 char gluBeginSurface ();
9451 int
9452 main ()
9453 {
9454 return gluBeginSurface ();
9455   ;
9456   return 0;
9457 }
9458 _ACEOF
9459 rm -f conftest.$ac_objext conftest$ac_exeext
9460 if { (ac_try="$ac_link"
9461 case "(($ac_try" in
9462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9463   *) ac_try_echo=$ac_try;;
9464 esac
9465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9466   (eval "$ac_link") 2>conftest.er1
9467   ac_status=$?
9468   grep -v '^ *+' conftest.er1 >conftest.err
9469   rm -f conftest.er1
9470   cat conftest.err >&5
9471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472   (exit $ac_status); } && {
9473          test -z "$ac_c_werror_flag" ||
9474          test ! -s conftest.err
9475        } && test -s conftest$ac_exeext &&
9476        $as_test_x conftest$ac_exeext; then
9477   ac_cv_lib_GLU_gluBeginSurface=yes
9478 else
9479   echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9481
9482         ac_cv_lib_GLU_gluBeginSurface=no
9483 fi
9484
9485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9486       conftest$ac_exeext conftest.$ac_ext
9487 LIBS=$ac_check_lib_save_LIBS
9488 fi
9489 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
9490 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginSurface" >&6; }
9491 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
9492   cat >>confdefs.h <<_ACEOF
9493 #define HAVE_LIBGLU 1
9494 _ACEOF
9495
9496   LIBS="-lGLU $LIBS"
9497
9498 fi
9499
9500
9501 { echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
9502 echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6; }
9503 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
9504   echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506   ac_check_lib_save_LIBS=$LIBS
9507 LIBS="-lglut  $LIBS"
9508 cat >conftest.$ac_ext <<_ACEOF
9509 /* confdefs.h.  */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h.  */
9514
9515 /* Override any GCC internal prototype to avoid an error.
9516    Use char because int might match the return type of a GCC
9517    builtin and then its argument prototype would still apply.  */
9518 #ifdef __cplusplus
9519 extern "C"
9520 #endif
9521 char glutInit ();
9522 int
9523 main ()
9524 {
9525 return glutInit ();
9526   ;
9527   return 0;
9528 }
9529 _ACEOF
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9532 case "(($ac_try" in
9533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534   *) ac_try_echo=$ac_try;;
9535 esac
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537   (eval "$ac_link") 2>conftest.er1
9538   ac_status=$?
9539   grep -v '^ *+' conftest.er1 >conftest.err
9540   rm -f conftest.er1
9541   cat conftest.err >&5
9542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543   (exit $ac_status); } && {
9544          test -z "$ac_c_werror_flag" ||
9545          test ! -s conftest.err
9546        } && test -s conftest$ac_exeext &&
9547        $as_test_x conftest$ac_exeext; then
9548   ac_cv_lib_glut_glutInit=yes
9549 else
9550   echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9552
9553         ac_cv_lib_glut_glutInit=no
9554 fi
9555
9556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9557       conftest$ac_exeext conftest.$ac_ext
9558 LIBS=$ac_check_lib_save_LIBS
9559 fi
9560 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
9561 echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6; }
9562 if test $ac_cv_lib_glut_glutInit = yes; then
9563   cat >>confdefs.h <<_ACEOF
9564 #define HAVE_LIBGLUT 1
9565 _ACEOF
9566
9567   LIBS="-lglut $LIBS"
9568
9569 fi
9570
9571
9572
9573 for ac_header in GL/gl.h GL/glut.h
9574 do
9575 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9577   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9580   echo $ECHO_N "(cached) $ECHO_C" >&6
9581 fi
9582 ac_res=`eval echo '${'$as_ac_Header'}'`
9583                { echo "$as_me:$LINENO: result: $ac_res" >&5
9584 echo "${ECHO_T}$ac_res" >&6; }
9585 else
9586   # Is the header compilable?
9587 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9588 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9589 cat >conftest.$ac_ext <<_ACEOF
9590 /* confdefs.h.  */
9591 _ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h.  */
9595 $ac_includes_default
9596 #include <$ac_header>
9597 _ACEOF
9598 rm -f conftest.$ac_objext
9599 if { (ac_try="$ac_compile"
9600 case "(($ac_try" in
9601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602   *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605   (eval "$ac_compile") 2>conftest.er1
9606   ac_status=$?
9607   grep -v '^ *+' conftest.er1 >conftest.err
9608   rm -f conftest.er1
9609   cat conftest.err >&5
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); } && {
9612          test -z "$ac_c_werror_flag" ||
9613          test ! -s conftest.err
9614        } && test -s conftest.$ac_objext; then
9615   ac_header_compiler=yes
9616 else
9617   echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9619
9620         ac_header_compiler=no
9621 fi
9622
9623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9624 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9625 echo "${ECHO_T}$ac_header_compiler" >&6; }
9626
9627 # Is the header present?
9628 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9629 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9630 cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h.  */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h.  */
9636 #include <$ac_header>
9637 _ACEOF
9638 if { (ac_try="$ac_cpp conftest.$ac_ext"
9639 case "(($ac_try" in
9640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641   *) ac_try_echo=$ac_try;;
9642 esac
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9645   ac_status=$?
9646   grep -v '^ *+' conftest.er1 >conftest.err
9647   rm -f conftest.er1
9648   cat conftest.err >&5
9649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650   (exit $ac_status); } >/dev/null && {
9651          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9652          test ! -s conftest.err
9653        }; then
9654   ac_header_preproc=yes
9655 else
9656   echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.$ac_ext >&5
9658
9659   ac_header_preproc=no
9660 fi
9661
9662 rm -f conftest.err conftest.$ac_ext
9663 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9664 echo "${ECHO_T}$ac_header_preproc" >&6; }
9665
9666 # So?  What about this header?
9667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9668   yes:no: )
9669     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9670 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9671     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9672 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9673     ac_header_preproc=yes
9674     ;;
9675   no:yes:* )
9676     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9677 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9678     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9679 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9680     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9681 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9682     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9683 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9684     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9685 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9686     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9687 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9688
9689     ;;
9690 esac
9691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9694   echo $ECHO_N "(cached) $ECHO_C" >&6
9695 else
9696   eval "$as_ac_Header=\$ac_header_preproc"
9697 fi
9698 ac_res=`eval echo '${'$as_ac_Header'}'`
9699                { echo "$as_me:$LINENO: result: $ac_res" >&5
9700 echo "${ECHO_T}$ac_res" >&6; }
9701
9702 fi
9703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9704   cat >>confdefs.h <<_ACEOF
9705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9706 _ACEOF
9707
9708 fi
9709
9710 done
9711
9712
9713 cat > conftest.c << EOF
9714 #include <GL/gl.h>
9715 #include <GL/glu.h>
9716 #include <GL/glut.h>
9717
9718 int main(int argc, char*argv)
9719 {
9720     glutInit(&argc, argv);
9721     glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
9722     glutInitWindowSize(320,200);
9723     glutInitWindowPosition(0,0);
9724     glutCreateWindow("main");
9725     glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
9726     glShadeModel(GL_SMOOTH);
9727     glEnable (GL_LINE_SMOOTH);
9728     glEnable (GL_POLYGON_SMOOTH);
9729     glEnable (GL_BLEND);
9730     glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9731     glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
9732     glHint (GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
9733 }
9734 EOF
9735
9736 { echo "$as_me:$LINENO: checking whether we can compile the opengl test program" >&5
9737 echo $ECHO_N "checking whether we can compile the opengl test program... $ECHO_C" >&6; }
9738
9739 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9740 if { (eval echo opengl.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9741     { echo "$as_me:$LINENO: result: yes" >&5
9742 echo "${ECHO_T}yes" >&6; }
9743     HAVE_OPENGL=1
9744
9745 cat >>confdefs.h <<\_ACEOF
9746 #define HAVE_OPENGL 1
9747 _ACEOF
9748
9749 else
9750     echo "configure: failed program was:" >&5
9751     cat conftest.c >&5
9752     HAVE_OPENGL=
9753     { echo "$as_me:$LINENO: result: no" >&5
9754 echo "${ECHO_T}no" >&6; }
9755 fi
9756 rm -f conftest*
9757
9758 # if the above didn't work out, reset all changes to the compiler variables.
9759 if test "x${HAVE_OPENGL}" "!=" "x1"; then
9760     CPPFLAGS=$OLDCPPFLAGS
9761     LIBS=$OLDLIBS
9762 fi
9763
9764 if test "$HAVE_OPENGL";then
9765     DEVICE_OPENGL='devices/opengl.$(O)'
9766
9767 fi
9768
9769 lame_in_source=
9770 lame_makefile=
9771 if test "x${DISABLE_LAME}" = "xtrue"; then
9772     echo "*" Disabling lame support...
9773 else
9774     # old lame code at lib/lame
9775     if test -f lib/lame/Makefile.in; then
9776         lame_in_source='$(lame_objects)'
9777         lame_makefile="lib/lame/Makefile"
9778         CPPFLAGS="$CPPFLAGS -Ilame"
9779
9780 cat >>confdefs.h <<\_ACEOF
9781 #define HAVE_LAME 1
9782 _ACEOF
9783
9784     else
9785         if test -d /usr/include/lame; then
9786             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9787         else
9788             if test -d /usr/local/include/lame; then
9789                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9790             fi
9791         fi
9792
9793 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9794 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
9795 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9796   echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798   ac_check_lib_save_LIBS=$LIBS
9799 LIBS="-lmp3lame  $LIBS"
9800 cat >conftest.$ac_ext <<_ACEOF
9801 /* confdefs.h.  */
9802 _ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h.  */
9806
9807 /* Override any GCC internal prototype to avoid an error.
9808    Use char because int might match the return type of a GCC
9809    builtin and then its argument prototype would still apply.  */
9810 #ifdef __cplusplus
9811 extern "C"
9812 #endif
9813 char lame_init ();
9814 int
9815 main ()
9816 {
9817 return lame_init ();
9818   ;
9819   return 0;
9820 }
9821 _ACEOF
9822 rm -f conftest.$ac_objext conftest$ac_exeext
9823 if { (ac_try="$ac_link"
9824 case "(($ac_try" in
9825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9826   *) ac_try_echo=$ac_try;;
9827 esac
9828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9829   (eval "$ac_link") 2>conftest.er1
9830   ac_status=$?
9831   grep -v '^ *+' conftest.er1 >conftest.err
9832   rm -f conftest.er1
9833   cat conftest.err >&5
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); } && {
9836          test -z "$ac_c_werror_flag" ||
9837          test ! -s conftest.err
9838        } && test -s conftest$ac_exeext &&
9839        $as_test_x conftest$ac_exeext; then
9840   ac_cv_lib_mp3lame_lame_init=yes
9841 else
9842   echo "$as_me: failed program was:" >&5
9843 sed 's/^/| /' conftest.$ac_ext >&5
9844
9845         ac_cv_lib_mp3lame_lame_init=no
9846 fi
9847
9848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9849       conftest$ac_exeext conftest.$ac_ext
9850 LIBS=$ac_check_lib_save_LIBS
9851 fi
9852 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9853 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
9854 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9855   cat >>confdefs.h <<_ACEOF
9856 #define HAVE_LIBMP3LAME 1
9857 _ACEOF
9858
9859   LIBS="-lmp3lame $LIBS"
9860
9861 else
9862   NO_LIBMP3LAME=1
9863 fi
9864
9865
9866 for ac_header in lame.h
9867 do
9868 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9870   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9872 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9873   echo $ECHO_N "(cached) $ECHO_C" >&6
9874 fi
9875 ac_res=`eval echo '${'$as_ac_Header'}'`
9876                { echo "$as_me:$LINENO: result: $ac_res" >&5
9877 echo "${ECHO_T}$ac_res" >&6; }
9878 else
9879   # Is the header compilable?
9880 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9882 cat >conftest.$ac_ext <<_ACEOF
9883 /* confdefs.h.  */
9884 _ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h.  */
9888 $ac_includes_default
9889 #include <$ac_header>
9890 _ACEOF
9891 rm -f conftest.$ac_objext
9892 if { (ac_try="$ac_compile"
9893 case "(($ac_try" in
9894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895   *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898   (eval "$ac_compile") 2>conftest.er1
9899   ac_status=$?
9900   grep -v '^ *+' conftest.er1 >conftest.err
9901   rm -f conftest.er1
9902   cat conftest.err >&5
9903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904   (exit $ac_status); } && {
9905          test -z "$ac_c_werror_flag" ||
9906          test ! -s conftest.err
9907        } && test -s conftest.$ac_objext; then
9908   ac_header_compiler=yes
9909 else
9910   echo "$as_me: failed program was:" >&5
9911 sed 's/^/| /' conftest.$ac_ext >&5
9912
9913         ac_header_compiler=no
9914 fi
9915
9916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9918 echo "${ECHO_T}$ac_header_compiler" >&6; }
9919
9920 # Is the header present?
9921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9923 cat >conftest.$ac_ext <<_ACEOF
9924 /* confdefs.h.  */
9925 _ACEOF
9926 cat confdefs.h >>conftest.$ac_ext
9927 cat >>conftest.$ac_ext <<_ACEOF
9928 /* end confdefs.h.  */
9929 #include <$ac_header>
9930 _ACEOF
9931 if { (ac_try="$ac_cpp conftest.$ac_ext"
9932 case "(($ac_try" in
9933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934   *) ac_try_echo=$ac_try;;
9935 esac
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9938   ac_status=$?
9939   grep -v '^ *+' conftest.er1 >conftest.err
9940   rm -f conftest.er1
9941   cat conftest.err >&5
9942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943   (exit $ac_status); } >/dev/null && {
9944          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9945          test ! -s conftest.err
9946        }; then
9947   ac_header_preproc=yes
9948 else
9949   echo "$as_me: failed program was:" >&5
9950 sed 's/^/| /' conftest.$ac_ext >&5
9951
9952   ac_header_preproc=no
9953 fi
9954
9955 rm -f conftest.err conftest.$ac_ext
9956 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9957 echo "${ECHO_T}$ac_header_preproc" >&6; }
9958
9959 # So?  What about this header?
9960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9961   yes:no: )
9962     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9963 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9965 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9966     ac_header_preproc=yes
9967     ;;
9968   no:yes:* )
9969     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9970 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9971     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9972 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9973     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9974 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9975     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9976 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9978 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9979     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9980 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9981
9982     ;;
9983 esac
9984 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9987   echo $ECHO_N "(cached) $ECHO_C" >&6
9988 else
9989   eval "$as_ac_Header=\$ac_header_preproc"
9990 fi
9991 ac_res=`eval echo '${'$as_ac_Header'}'`
9992                { echo "$as_me:$LINENO: result: $ac_res" >&5
9993 echo "${ECHO_T}$ac_res" >&6; }
9994
9995 fi
9996 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9997   cat >>confdefs.h <<_ACEOF
9998 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9999 _ACEOF
10000
10001 fi
10002
10003 done
10004
10005         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
10006             cat >>confdefs.h <<\_ACEOF
10007 #define HAVE_LAME 1
10008 _ACEOF
10009
10010         fi
10011     fi
10012 fi
10013
10014
10015 art_in_source='$(art_objects)'
10016
10017 cat >>confdefs.h <<\_ACEOF
10018 #define INTERNAL_LIBART 1
10019 _ACEOF
10020
10021
10022 if test "x$EXTERNAL_LIBART" = "xtrue"; then
10023     art_in_source=
10024
10025 pkg_failed=no
10026 { echo "$as_me:$LINENO: checking for LIBART" >&5
10027 echo $ECHO_N "checking for LIBART... $ECHO_C" >&6; }
10028
10029 if test -n "$PKG_CONFIG"; then
10030     if test -n "$LIBART_CFLAGS"; then
10031         pkg_cv_LIBART_CFLAGS="$LIBART_CFLAGS"
10032     else
10033         if test -n "$PKG_CONFIG" && \
10034     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libart-2.0\"") >&5
10035   ($PKG_CONFIG --exists --print-errors "libart-2.0") 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); }; then
10039   pkg_cv_LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0" 2>/dev/null`
10040 else
10041   pkg_failed=yes
10042 fi
10043     fi
10044 else
10045         pkg_failed=untried
10046 fi
10047 if test -n "$PKG_CONFIG"; then
10048     if test -n "$LIBART_LIBS"; then
10049         pkg_cv_LIBART_LIBS="$LIBART_LIBS"
10050     else
10051         if test -n "$PKG_CONFIG" && \
10052     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libart-2.0\"") >&5
10053   ($PKG_CONFIG --exists --print-errors "libart-2.0") 2>&5
10054   ac_status=$?
10055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056   (exit $ac_status); }; then
10057   pkg_cv_LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0" 2>/dev/null`
10058 else
10059   pkg_failed=yes
10060 fi
10061     fi
10062 else
10063         pkg_failed=untried
10064 fi
10065
10066
10067
10068 if test $pkg_failed = yes; then
10069
10070 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10071         _pkg_short_errors_supported=yes
10072 else
10073         _pkg_short_errors_supported=no
10074 fi
10075         if test $_pkg_short_errors_supported = yes; then
10076                 LIBART_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libart-2.0"`
10077         else
10078                 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0"`
10079         fi
10080         # Put the nasty error message in config.log where it belongs
10081         echo "$LIBART_PKG_ERRORS" >&5
10082
10083         { echo "$as_me:$LINENO: result: no" >&5
10084 echo "${ECHO_T}no" >&6; }
10085                 libart_pkgconfig_libart=no
10086 elif test $pkg_failed = untried; then
10087         libart_pkgconfig_libart=no
10088 else
10089         LIBART_CFLAGS=$pkg_cv_LIBART_CFLAGS
10090         LIBART_LIBS=$pkg_cv_LIBART_LIBS
10091         { echo "$as_me:$LINENO: result: yes" >&5
10092 echo "${ECHO_T}yes" >&6; }
10093         :
10094 fi
10095     if test "x$libart_pkgconfig_libart" = "xno"; then
10096
10097 for ac_header in libart_lgpl/libart.h
10098 do
10099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10101   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10104   echo $ECHO_N "(cached) $ECHO_C" >&6
10105 fi
10106 ac_res=`eval echo '${'$as_ac_Header'}'`
10107                { echo "$as_me:$LINENO: result: $ac_res" >&5
10108 echo "${ECHO_T}$ac_res" >&6; }
10109 else
10110   # Is the header compilable?
10111 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10113 cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h.  */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h.  */
10119 $ac_includes_default
10120 #include <$ac_header>
10121 _ACEOF
10122 rm -f conftest.$ac_objext
10123 if { (ac_try="$ac_compile"
10124 case "(($ac_try" in
10125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126   *) ac_try_echo=$ac_try;;
10127 esac
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129   (eval "$ac_compile") 2>conftest.er1
10130   ac_status=$?
10131   grep -v '^ *+' conftest.er1 >conftest.err
10132   rm -f conftest.er1
10133   cat conftest.err >&5
10134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135   (exit $ac_status); } && {
10136          test -z "$ac_c_werror_flag" ||
10137          test ! -s conftest.err
10138        } && test -s conftest.$ac_objext; then
10139   ac_header_compiler=yes
10140 else
10141   echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10143
10144         ac_header_compiler=no
10145 fi
10146
10147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10149 echo "${ECHO_T}$ac_header_compiler" >&6; }
10150
10151 # Is the header present?
10152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10154 cat >conftest.$ac_ext <<_ACEOF
10155 /* confdefs.h.  */
10156 _ACEOF
10157 cat confdefs.h >>conftest.$ac_ext
10158 cat >>conftest.$ac_ext <<_ACEOF
10159 /* end confdefs.h.  */
10160 #include <$ac_header>
10161 _ACEOF
10162 if { (ac_try="$ac_cpp conftest.$ac_ext"
10163 case "(($ac_try" in
10164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10165   *) ac_try_echo=$ac_try;;
10166 esac
10167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10168   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10169   ac_status=$?
10170   grep -v '^ *+' conftest.er1 >conftest.err
10171   rm -f conftest.er1
10172   cat conftest.err >&5
10173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10174   (exit $ac_status); } >/dev/null && {
10175          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10176          test ! -s conftest.err
10177        }; then
10178   ac_header_preproc=yes
10179 else
10180   echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10182
10183   ac_header_preproc=no
10184 fi
10185
10186 rm -f conftest.err conftest.$ac_ext
10187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10188 echo "${ECHO_T}$ac_header_preproc" >&6; }
10189
10190 # So?  What about this header?
10191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10192   yes:no: )
10193     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10197     ac_header_preproc=yes
10198     ;;
10199   no:yes:* )
10200     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10202     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10203 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10204     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10206     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10207 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10210     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10212
10213     ;;
10214 esac
10215 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10216 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10217 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10218   echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220   eval "$as_ac_Header=\$ac_header_preproc"
10221 fi
10222 ac_res=`eval echo '${'$as_ac_Header'}'`
10223                { echo "$as_me:$LINENO: result: $ac_res" >&5
10224 echo "${ECHO_T}$ac_res" >&6; }
10225
10226 fi
10227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10228   cat >>confdefs.h <<_ACEOF
10229 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10230 _ACEOF
10231
10232
10233 { echo "$as_me:$LINENO: checking for art_new in -lart_lgpl_2" >&5
10234 echo $ECHO_N "checking for art_new in -lart_lgpl_2... $ECHO_C" >&6; }
10235 if test "${ac_cv_lib_art_lgpl_2_art_new+set}" = set; then
10236   echo $ECHO_N "(cached) $ECHO_C" >&6
10237 else
10238   ac_check_lib_save_LIBS=$LIBS
10239 LIBS="-lart_lgpl_2  $LIBS"
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h.  */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h.  */
10246
10247 /* Override any GCC internal prototype to avoid an error.
10248    Use char because int might match the return type of a GCC
10249    builtin and then its argument prototype would still apply.  */
10250 #ifdef __cplusplus
10251 extern "C"
10252 #endif
10253 char art_new ();
10254 int
10255 main ()
10256 {
10257 return art_new ();
10258   ;
10259   return 0;
10260 }
10261 _ACEOF
10262 rm -f conftest.$ac_objext conftest$ac_exeext
10263 if { (ac_try="$ac_link"
10264 case "(($ac_try" in
10265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10266   *) ac_try_echo=$ac_try;;
10267 esac
10268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10269   (eval "$ac_link") 2>conftest.er1
10270   ac_status=$?
10271   grep -v '^ *+' conftest.er1 >conftest.err
10272   rm -f conftest.er1
10273   cat conftest.err >&5
10274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275   (exit $ac_status); } && {
10276          test -z "$ac_c_werror_flag" ||
10277          test ! -s conftest.err
10278        } && test -s conftest$ac_exeext &&
10279        $as_test_x conftest$ac_exeext; then
10280   ac_cv_lib_art_lgpl_2_art_new=yes
10281 else
10282   echo "$as_me: failed program was:" >&5
10283 sed 's/^/| /' conftest.$ac_ext >&5
10284
10285         ac_cv_lib_art_lgpl_2_art_new=no
10286 fi
10287
10288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10289       conftest$ac_exeext conftest.$ac_ext
10290 LIBS=$ac_check_lib_save_LIBS
10291 fi
10292 { echo "$as_me:$LINENO: result: $ac_cv_lib_art_lgpl_2_art_new" >&5
10293 echo "${ECHO_T}$ac_cv_lib_art_lgpl_2_art_new" >&6; }
10294 if test $ac_cv_lib_art_lgpl_2_art_new = yes; then
10295   cat >>confdefs.h <<_ACEOF
10296 #define HAVE_LIBART_LGPL_2 1
10297 _ACEOF
10298
10299   LIBS="-lart_lgpl_2 $LIBS"
10300
10301 fi
10302
10303
10304 else
10305   { { echo "$as_me:$LINENO: error: No libart library found. This library is required." >&5
10306 echo "$as_me: error: No libart library found. This library is required." >&2;}
10307    { (exit 1); exit 1; }; }
10308 fi
10309
10310 done
10311
10312     else
10313         CPPFLAGS="$CPPFLAGS $LIBART_CFLAGS"
10314         cat >>confdefs.h <<\_ACEOF
10315 #define INTERNAL_LIBART 0
10316 _ACEOF
10317
10318         LIBS="$LIBS $LIBART_LIBS"
10319     fi
10320 fi
10321
10322
10323 xpdf_in_source='$(xpdf_objects)'
10324 splash_in_source='$(splash_objects)'
10325
10326 if test "x$USE_POPPLER" = "xtrue"; then
10327     xpdf_in_source=
10328     splash_in_source=
10329
10330 cat >>confdefs.h <<\_ACEOF
10331 #define HAVE_POPPLER 1
10332 _ACEOF
10333
10334
10335 pkg_failed=no
10336 { echo "$as_me:$LINENO: checking for POPPLER" >&5
10337 echo $ECHO_N "checking for POPPLER... $ECHO_C" >&6; }
10338
10339 if test -n "$PKG_CONFIG"; then
10340     if test -n "$POPPLER_CFLAGS"; then
10341         pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
10342     else
10343         if test -n "$PKG_CONFIG" && \
10344     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\"") >&5
10345   ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
10346   ac_status=$?
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); }; then
10349   pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler poppler-splash" 2>/dev/null`
10350 else
10351   pkg_failed=yes
10352 fi
10353     fi
10354 else
10355         pkg_failed=untried
10356 fi
10357 if test -n "$PKG_CONFIG"; then
10358     if test -n "$POPPLER_LIBS"; then
10359         pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
10360     else
10361         if test -n "$PKG_CONFIG" && \
10362     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\"") >&5
10363   ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; then
10367   pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler poppler-splash" 2>/dev/null`
10368 else
10369   pkg_failed=yes
10370 fi
10371     fi
10372 else
10373         pkg_failed=untried
10374 fi
10375
10376
10377
10378 if test $pkg_failed = yes; then
10379
10380 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10381         _pkg_short_errors_supported=yes
10382 else
10383         _pkg_short_errors_supported=no
10384 fi
10385         if test $_pkg_short_errors_supported = yes; then
10386                 POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "poppler poppler-splash"`
10387         else
10388                 POPPLER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "poppler poppler-splash"`
10389         fi
10390         # Put the nasty error message in config.log where it belongs
10391         echo "$POPPLER_PKG_ERRORS" >&5
10392
10393         { echo "$as_me:$LINENO: result: no" >&5
10394 echo "${ECHO_T}no" >&6; }
10395                 poppler_pkgconfig=no
10396 elif test $pkg_failed = untried; then
10397         poppler_pkgconfig=no
10398 else
10399         POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
10400         POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
10401         { echo "$as_me:$LINENO: result: yes" >&5
10402 echo "${ECHO_T}yes" >&6; }
10403         :
10404 fi
10405     if test "x$poppler_pkgconfig" = "xno"; then
10406         ac_ext=cpp
10407 ac_cpp='$CXXCPP $CPPFLAGS'
10408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10411
10412
10413 ac_ext=cpp
10414 ac_cpp='$CXXCPP $CPPFLAGS'
10415 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10416 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10417 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10418 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10419 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10420 if test -z "$CXXCPP"; then
10421   if test "${ac_cv_prog_CXXCPP+set}" = set; then
10422   echo $ECHO_N "(cached) $ECHO_C" >&6
10423 else
10424       # Double quotes because CXXCPP needs to be expanded
10425     for CXXCPP in "$CXX -E" "/lib/cpp"
10426     do
10427       ac_preproc_ok=false
10428 for ac_cxx_preproc_warn_flag in '' yes
10429 do
10430   # Use a header file that comes with gcc, so configuring glibc
10431   # with a fresh cross-compiler works.
10432   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10433   # <limits.h> exists even on freestanding compilers.
10434   # On the NeXT, cc -E runs the code through the compiler's parser,
10435   # not just through cpp. "Syntax error" is here to catch this case.
10436   cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h.  */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h.  */
10442 #ifdef __STDC__
10443 # include <limits.h>
10444 #else
10445 # include <assert.h>
10446 #endif
10447                      Syntax error
10448 _ACEOF
10449 if { (ac_try="$ac_cpp conftest.$ac_ext"
10450 case "(($ac_try" in
10451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10452   *) ac_try_echo=$ac_try;;
10453 esac
10454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10456   ac_status=$?
10457   grep -v '^ *+' conftest.er1 >conftest.err
10458   rm -f conftest.er1
10459   cat conftest.err >&5
10460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10461   (exit $ac_status); } >/dev/null && {
10462          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10463          test ! -s conftest.err
10464        }; then
10465   :
10466 else
10467   echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10469
10470   # Broken: fails on valid input.
10471 continue
10472 fi
10473
10474 rm -f conftest.err conftest.$ac_ext
10475
10476   # OK, works on sane cases.  Now check whether nonexistent headers
10477   # can be detected and how.
10478   cat >conftest.$ac_ext <<_ACEOF
10479 /* confdefs.h.  */
10480 _ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h.  */
10484 #include <ac_nonexistent.h>
10485 _ACEOF
10486 if { (ac_try="$ac_cpp conftest.$ac_ext"
10487 case "(($ac_try" in
10488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10489   *) ac_try_echo=$ac_try;;
10490 esac
10491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10493   ac_status=$?
10494   grep -v '^ *+' conftest.er1 >conftest.err
10495   rm -f conftest.er1
10496   cat conftest.err >&5
10497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498   (exit $ac_status); } >/dev/null && {
10499          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10500          test ! -s conftest.err
10501        }; then
10502   # Broken: success on invalid input.
10503 continue
10504 else
10505   echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10507
10508   # Passes both tests.
10509 ac_preproc_ok=:
10510 break
10511 fi
10512
10513 rm -f conftest.err conftest.$ac_ext
10514
10515 done
10516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10517 rm -f conftest.err conftest.$ac_ext
10518 if $ac_preproc_ok; then
10519   break
10520 fi
10521
10522     done
10523     ac_cv_prog_CXXCPP=$CXXCPP
10524
10525 fi
10526   CXXCPP=$ac_cv_prog_CXXCPP
10527 else
10528   ac_cv_prog_CXXCPP=$CXXCPP
10529 fi
10530 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
10531 echo "${ECHO_T}$CXXCPP" >&6; }
10532 ac_preproc_ok=false
10533 for ac_cxx_preproc_warn_flag in '' yes
10534 do
10535   # Use a header file that comes with gcc, so configuring glibc
10536   # with a fresh cross-compiler works.
10537   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10538   # <limits.h> exists even on freestanding compilers.
10539   # On the NeXT, cc -E runs the code through the compiler's parser,
10540   # not just through cpp. "Syntax error" is here to catch this case.
10541   cat >conftest.$ac_ext <<_ACEOF
10542 /* confdefs.h.  */
10543 _ACEOF
10544 cat confdefs.h >>conftest.$ac_ext
10545 cat >>conftest.$ac_ext <<_ACEOF
10546 /* end confdefs.h.  */
10547 #ifdef __STDC__
10548 # include <limits.h>
10549 #else
10550 # include <assert.h>
10551 #endif
10552                      Syntax error
10553 _ACEOF
10554 if { (ac_try="$ac_cpp conftest.$ac_ext"
10555 case "(($ac_try" in
10556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557   *) ac_try_echo=$ac_try;;
10558 esac
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10561   ac_status=$?
10562   grep -v '^ *+' conftest.er1 >conftest.err
10563   rm -f conftest.er1
10564   cat conftest.err >&5
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); } >/dev/null && {
10567          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10568          test ! -s conftest.err
10569        }; then
10570   :
10571 else
10572   echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575   # Broken: fails on valid input.
10576 continue
10577 fi
10578
10579 rm -f conftest.err conftest.$ac_ext
10580
10581   # OK, works on sane cases.  Now check whether nonexistent headers
10582   # can be detected and how.
10583   cat >conftest.$ac_ext <<_ACEOF
10584 /* confdefs.h.  */
10585 _ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h.  */
10589 #include <ac_nonexistent.h>
10590 _ACEOF
10591 if { (ac_try="$ac_cpp conftest.$ac_ext"
10592 case "(($ac_try" in
10593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10594   *) ac_try_echo=$ac_try;;
10595 esac
10596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10597   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10598   ac_status=$?
10599   grep -v '^ *+' conftest.er1 >conftest.err
10600   rm -f conftest.er1
10601   cat conftest.err >&5
10602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603   (exit $ac_status); } >/dev/null && {
10604          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10605          test ! -s conftest.err
10606        }; then
10607   # Broken: success on invalid input.
10608 continue
10609 else
10610   echo "$as_me: failed program was:" >&5
10611 sed 's/^/| /' conftest.$ac_ext >&5
10612
10613   # Passes both tests.
10614 ac_preproc_ok=:
10615 break
10616 fi
10617
10618 rm -f conftest.err conftest.$ac_ext
10619
10620 done
10621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10622 rm -f conftest.err conftest.$ac_ext
10623 if $ac_preproc_ok; then
10624   :
10625 else
10626   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10627 See \`config.log' for more details." >&5
10628 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10629 See \`config.log' for more details." >&2;}
10630    { (exit 1); exit 1; }; }
10631 fi
10632
10633 ac_ext=cpp
10634 ac_cpp='$CXXCPP $CPPFLAGS'
10635 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10636 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10637 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10638
10639
10640
10641 for ac_header in OutputDev.h
10642 do
10643 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10645   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10648   echo $ECHO_N "(cached) $ECHO_C" >&6
10649 fi
10650 ac_res=`eval echo '${'$as_ac_Header'}'`
10651                { echo "$as_me:$LINENO: result: $ac_res" >&5
10652 echo "${ECHO_T}$ac_res" >&6; }
10653 else
10654   # Is the header compilable?
10655 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10656 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10657 cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h.  */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h.  */
10663 $ac_includes_default
10664 #include <$ac_header>
10665 _ACEOF
10666 rm -f conftest.$ac_objext
10667 if { (ac_try="$ac_compile"
10668 case "(($ac_try" in
10669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10670   *) ac_try_echo=$ac_try;;
10671 esac
10672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673   (eval "$ac_compile") 2>conftest.er1
10674   ac_status=$?
10675   grep -v '^ *+' conftest.er1 >conftest.err
10676   rm -f conftest.er1
10677   cat conftest.err >&5
10678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679   (exit $ac_status); } && {
10680          test -z "$ac_cxx_werror_flag" ||
10681          test ! -s conftest.err
10682        } && test -s conftest.$ac_objext; then
10683   ac_header_compiler=yes
10684 else
10685   echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10687
10688         ac_header_compiler=no
10689 fi
10690
10691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10692 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10693 echo "${ECHO_T}$ac_header_compiler" >&6; }
10694
10695 # Is the header present?
10696 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10697 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10698 cat >conftest.$ac_ext <<_ACEOF
10699 /* confdefs.h.  */
10700 _ACEOF
10701 cat confdefs.h >>conftest.$ac_ext
10702 cat >>conftest.$ac_ext <<_ACEOF
10703 /* end confdefs.h.  */
10704 #include <$ac_header>
10705 _ACEOF
10706 if { (ac_try="$ac_cpp conftest.$ac_ext"
10707 case "(($ac_try" in
10708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10709   *) ac_try_echo=$ac_try;;
10710 esac
10711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10712   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10713   ac_status=$?
10714   grep -v '^ *+' conftest.er1 >conftest.err
10715   rm -f conftest.er1
10716   cat conftest.err >&5
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); } >/dev/null && {
10719          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10720          test ! -s conftest.err
10721        }; then
10722   ac_header_preproc=yes
10723 else
10724   echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727   ac_header_preproc=no
10728 fi
10729
10730 rm -f conftest.err conftest.$ac_ext
10731 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10732 echo "${ECHO_T}$ac_header_preproc" >&6; }
10733
10734 # So?  What about this header?
10735 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10736   yes:no: )
10737     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10738 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10739     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10740 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10741     ac_header_preproc=yes
10742     ;;
10743   no:yes:* )
10744     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10745 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10746     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10747 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10748     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10749 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10750     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10751 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10752     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10753 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10754     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10755 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10756
10757     ;;
10758 esac
10759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10762   echo $ECHO_N "(cached) $ECHO_C" >&6
10763 else
10764   eval "$as_ac_Header=\$ac_header_preproc"
10765 fi
10766 ac_res=`eval echo '${'$as_ac_Header'}'`
10767                { echo "$as_me:$LINENO: result: $ac_res" >&5
10768 echo "${ECHO_T}$ac_res" >&6; }
10769
10770 fi
10771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10772   cat >>confdefs.h <<_ACEOF
10773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10774 _ACEOF
10775
10776
10777 { echo "$as_me:$LINENO: checking for main in -lpoppler" >&5
10778 echo $ECHO_N "checking for main in -lpoppler... $ECHO_C" >&6; }
10779 if test "${ac_cv_lib_poppler_main+set}" = set; then
10780   echo $ECHO_N "(cached) $ECHO_C" >&6
10781 else
10782   ac_check_lib_save_LIBS=$LIBS
10783 LIBS="-lpoppler  $LIBS"
10784 cat >conftest.$ac_ext <<_ACEOF
10785 /* confdefs.h.  */
10786 _ACEOF
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h.  */
10790
10791
10792 int
10793 main ()
10794 {
10795 return main ();
10796   ;
10797   return 0;
10798 }
10799 _ACEOF
10800 rm -f conftest.$ac_objext conftest$ac_exeext
10801 if { (ac_try="$ac_link"
10802 case "(($ac_try" in
10803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10804   *) ac_try_echo=$ac_try;;
10805 esac
10806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10807   (eval "$ac_link") 2>conftest.er1
10808   ac_status=$?
10809   grep -v '^ *+' conftest.er1 >conftest.err
10810   rm -f conftest.er1
10811   cat conftest.err >&5
10812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813   (exit $ac_status); } && {
10814          test -z "$ac_cxx_werror_flag" ||
10815          test ! -s conftest.err
10816        } && test -s conftest$ac_exeext &&
10817        $as_test_x conftest$ac_exeext; then
10818   ac_cv_lib_poppler_main=yes
10819 else
10820   echo "$as_me: failed program was:" >&5
10821 sed 's/^/| /' conftest.$ac_ext >&5
10822
10823         ac_cv_lib_poppler_main=no
10824 fi
10825
10826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10827       conftest$ac_exeext conftest.$ac_ext
10828 LIBS=$ac_check_lib_save_LIBS
10829 fi
10830 { echo "$as_me:$LINENO: result: $ac_cv_lib_poppler_main" >&5
10831 echo "${ECHO_T}$ac_cv_lib_poppler_main" >&6; }
10832 if test $ac_cv_lib_poppler_main = yes; then
10833   cat >>confdefs.h <<_ACEOF
10834 #define HAVE_LIBPOPPLER 1
10835 _ACEOF
10836
10837   LIBS="-lpoppler $LIBS"
10838
10839 fi
10840
10841
10842 else
10843   { { echo "$as_me:$LINENO: error: No poppler library found. This library is required." >&5
10844 echo "$as_me: error: No poppler library found. This library is required." >&2;}
10845    { (exit 1); exit 1; }; }
10846 fi
10847
10848 done
10849
10850         ac_ext=c
10851 ac_cpp='$CPP $CPPFLAGS'
10852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10855
10856     else
10857         CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
10858         cat >>confdefs.h <<\_ACEOF
10859 #define HAVE_POPPLER 1
10860 _ACEOF
10861
10862         LIBS="$LIBS $POPPLER_LIBS"
10863     fi
10864 fi
10865
10866
10867
10868 # ------------------------------------------------------------------
10869
10870
10871
10872 for ac_prog in avifile-config
10873 do
10874   # Extract the first word of "$ac_prog", so it can be a program name with args.
10875 set dummy $ac_prog; ac_word=$2
10876 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10878 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10879   echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881   if test -n "$AVIFILE_CONFIG"; then
10882   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10883 else
10884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10885 for as_dir in $PATH
10886 do
10887   IFS=$as_save_IFS
10888   test -z "$as_dir" && as_dir=.
10889   for ac_exec_ext in '' $ac_executable_extensions; do
10890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10891     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10893     break 2
10894   fi
10895 done
10896 done
10897 IFS=$as_save_IFS
10898
10899 fi
10900 fi
10901 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10902 if test -n "$AVIFILE_CONFIG"; then
10903   { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10904 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
10905 else
10906   { echo "$as_me:$LINENO: result: no" >&5
10907 echo "${ECHO_T}no" >&6; }
10908 fi
10909
10910
10911   test -n "$AVIFILE_CONFIG" && break
10912 done
10913
10914
10915 if test "x$AVIFILE_CONFIG" '!=' "x";then
10916     OLDCPPFLAGS="$CPPFLAGS"
10917     # temporarily add avifile paths to CPPFLAGS...
10918     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10919
10920
10921 for ac_header in avifile/version.h version.h
10922 do
10923 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925   { echo "$as_me:$LINENO: checking for $ac_header" >&5
10926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10928   echo $ECHO_N "(cached) $ECHO_C" >&6
10929 fi
10930 ac_res=`eval echo '${'$as_ac_Header'}'`
10931                { echo "$as_me:$LINENO: result: $ac_res" >&5
10932 echo "${ECHO_T}$ac_res" >&6; }
10933 else
10934   # Is the header compilable?
10935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10937 cat >conftest.$ac_ext <<_ACEOF
10938 /* confdefs.h.  */
10939 _ACEOF
10940 cat confdefs.h >>conftest.$ac_ext
10941 cat >>conftest.$ac_ext <<_ACEOF
10942 /* end confdefs.h.  */
10943 $ac_includes_default
10944 #include <$ac_header>
10945 _ACEOF
10946 rm -f conftest.$ac_objext
10947 if { (ac_try="$ac_compile"
10948 case "(($ac_try" in
10949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10950   *) ac_try_echo=$ac_try;;
10951 esac
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953   (eval "$ac_compile") 2>conftest.er1
10954   ac_status=$?
10955   grep -v '^ *+' conftest.er1 >conftest.err
10956   rm -f conftest.er1
10957   cat conftest.err >&5
10958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959   (exit $ac_status); } && {
10960          test -z "$ac_c_werror_flag" ||
10961          test ! -s conftest.err
10962        } && test -s conftest.$ac_objext; then
10963   ac_header_compiler=yes
10964 else
10965   echo "$as_me: failed program was:" >&5
10966 sed 's/^/| /' conftest.$ac_ext >&5
10967
10968         ac_header_compiler=no
10969 fi
10970
10971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10973 echo "${ECHO_T}$ac_header_compiler" >&6; }
10974
10975 # Is the header present?
10976 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10977 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10978 cat >conftest.$ac_ext <<_ACEOF
10979 /* confdefs.h.  */
10980 _ACEOF
10981 cat confdefs.h >>conftest.$ac_ext
10982 cat >>conftest.$ac_ext <<_ACEOF
10983 /* end confdefs.h.  */
10984 #include <$ac_header>
10985 _ACEOF
10986 if { (ac_try="$ac_cpp conftest.$ac_ext"
10987 case "(($ac_try" in
10988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10989   *) ac_try_echo=$ac_try;;
10990 esac
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10993   ac_status=$?
10994   grep -v '^ *+' conftest.er1 >conftest.err
10995   rm -f conftest.er1
10996   cat conftest.err >&5
10997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998   (exit $ac_status); } >/dev/null && {
10999          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11000          test ! -s conftest.err
11001        }; then
11002   ac_header_preproc=yes
11003 else
11004   echo "$as_me: failed program was:" >&5
11005 sed 's/^/| /' conftest.$ac_ext >&5
11006
11007   ac_header_preproc=no
11008 fi
11009
11010 rm -f conftest.err conftest.$ac_ext
11011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11012 echo "${ECHO_T}$ac_header_preproc" >&6; }
11013
11014 # So?  What about this header?
11015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11016   yes:no: )
11017     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11019     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11021     ac_header_preproc=yes
11022     ;;
11023   no:yes:* )
11024     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11026     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11027 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11028     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11030     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11031 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11032     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11034     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11036
11037     ;;
11038 esac
11039 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11040 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11042   echo $ECHO_N "(cached) $ECHO_C" >&6
11043 else
11044   eval "$as_ac_Header=\$ac_header_preproc"
11045 fi
11046 ac_res=`eval echo '${'$as_ac_Header'}'`
11047                { echo "$as_me:$LINENO: result: $ac_res" >&5
11048 echo "${ECHO_T}$ac_res" >&6; }
11049
11050 fi
11051 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11052   cat >>confdefs.h <<_ACEOF
11053 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11054 _ACEOF
11055
11056 fi
11057
11058 done
11059
11060     # ... and reset
11061     CPPFLAGS="$OLDCPPFLAGS"
11062 fi
11063
11064 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
11065 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
11066
11067 if test "x${ac_cv_header_version_h}" '=' "xyes";then
11068     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
11069 fi
11070 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
11071     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
11072 fi
11073
11074 cat > conftest.cpp << EOF
11075
11076 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
11077 // so we have to introduce them this way
11078 $HAVE_VERSION_H_DEFINE
11079 $HAVE_AVIFILE_VERSION_H_DEFINE
11080
11081 #ifdef HAVE_VERSION_H
11082   #include <version.h>
11083 #endif
11084 #ifdef HAVE_AVIFILE_VERSION_H
11085   #include <avifile/version.h>
11086 #endif
11087
11088 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
11089    #include <avifile.h>
11090    #include <aviplay.h>
11091    #include <avm_fourcc.h>
11092    #include <avm_creators.h>
11093    #include <StreamInfo.h>
11094    #define VERSION6
11095 #else
11096    #include <avifile.h>
11097    #include <aviplay.h>
11098    #include <aviutil.h>
11099    #define Width width
11100    #define Height height
11101    #define Data data
11102    #define Bpp bpp
11103 #endif
11104
11105 void test()
11106 {
11107   IAviReadFile* player;
11108   IAviReadStream* astream;
11109   IAviReadStream* vstream;
11110   player = CreateIAviReadFile(0);
11111   astream = player->GetStream(0, AviStream::Audio);
11112   vstream = player->GetStream(0, AviStream::Video);
11113   vstream -> StartStreaming();
11114   astream -> StartStreaming();
11115 #ifndef VERSION6
11116   MainAVIHeader head;
11117   player->GetFileHeader(&head);
11118   head.dwMicroSecPerFrame;
11119   head.dwTotalFrames;
11120   head.dwStreams;
11121   head.dwWidth;
11122   head.dwHeight;
11123   head.dwMicroSecPerFrame;
11124   astream->GetEndPos(),
11125   astream->GetEndTime());
11126   player->StreamCount();
11127 #else
11128   StreamInfo*audioinfo;
11129   StreamInfo*videoinfo;
11130   audioinfo = astream->GetStreamInfo();
11131   videoinfo = vstream->GetStreamInfo();
11132   videoinfo->GetVideoWidth();
11133   videoinfo->GetVideoHeight();
11134   audioinfo->GetAudioSamplesPerSec();
11135   videoinfo->GetFps();
11136 #endif
11137   CImage*img = vstream->GetFrame();
11138   img->ToRGB();
11139   img->Data();
11140   img->Bpp();
11141   img->Width();
11142   img->Height();
11143   WAVEFORMATEX wave;
11144   astream->GetAudioFormatInfo(&wave,0);
11145   uint_t a,b;
11146   astream->ReadFrames(0,0,0,a,b);
11147 }
11148 int main (int argc, char*argv)
11149 {
11150     return 0;
11151 }
11152 EOF
11153
11154 if test "x$AVIFILE_CONFIG" '!=' "x";then
11155     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
11156     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
11157     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
11158     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
11159       { echo "$as_me:$LINENO: result: yes" >&5
11160 echo "${ECHO_T}yes" >&6; }
11161       AVIFILE=true
11162       export AVIFILE
11163
11164 cat >>confdefs.h <<\_ACEOF
11165 #define AVIFILE true
11166 _ACEOF
11167
11168     else
11169       echo "configure: failed program was:" >&5
11170       cat conftest.cpp >&5
11171       { echo "$as_me:$LINENO: result: no" >&5
11172 echo "${ECHO_T}no" >&6; }
11173     fi
11174 else
11175     { echo "$as_me:$LINENO: result: no" >&5
11176 echo "${ECHO_T}no" >&6; }
11177 fi
11178 rm -f conftest*
11179
11180 if test "x${AVIFILE}" = "xtrue"; then
11181     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
11182     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
11183
11184 cat >>confdefs.h <<\_ACEOF
11185 #define HAVE_AVIFILE 1
11186 _ACEOF
11187
11188 fi
11189
11190 if test "x${WIN32}" != "x"; then
11191     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
11192     #if test "x${AVIFIL32}" != "x"; then
11193     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11194     #fi
11195     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
11196     AVIFIL32=true
11197 fi
11198
11199
11200
11201 # ------------------------------------------------------------------
11202
11203 if test "x${UNCOMPRESS}" = "xgzip"; then
11204
11205 cat >>confdefs.h <<\_ACEOF
11206 #define USE_GZIP 1
11207 _ACEOF
11208
11209 fi
11210
11211
11212 # ------------------------------------------------------------------
11213
11214
11215 { echo "$as_me:$LINENO: checking for Python.h" >&5
11216 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
11217
11218 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
11219     PY_VERSION=unknown
11220 else
11221     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
11222         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
11223     fi
11224     # iterate through version 2.2 to 2.5
11225     for v in 2 3 4 5; do
11226         # Linux
11227         if test -f "/usr/include/python2.$v/Python.h";then
11228             PY_VERSION=2.$v
11229             PYTHON_LIB="-lpython$PY_VERSION"
11230             if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
11231                 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
11232                 HAVE_PYTHON_IMAGING_LIB=1
11233             else
11234                 PYTHON_LIB2="$PYTHON_LIB"
11235             fi
11236             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
11237         # Mac OS X
11238         elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
11239             #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
11240             PY_VERSION=2.$v
11241             PYTHON_LIB="-framework Python"
11242             if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
11243                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
11244                 HAVE_PYTHON_IMAGING_LIB=1
11245             else
11246                 PYTHON_LIB2="$PYTHON_LIB"
11247             fi
11248             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
11249         # Mac OS X [Fink]:
11250         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
11251                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
11252                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
11253                   ")" \
11254                -a -f "/sw/include/python2.$v/Python.h"; then
11255             PY_VERSION=2.$v
11256             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
11257             if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
11258                 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
11259                 HAVE_PYTHON_IMAGING_LIB=1
11260             else
11261                 PYTHON_LIB2="$PYTHON_LIB"
11262             fi
11263             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
11264         fi
11265     done
11266 fi
11267
11268 if test "x$PY_VERSION" "!=" "x"; then
11269     { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
11270 echo "${ECHO_T}$PY_VERSION" >&6; }
11271     export PYTHON_INCLUDES PYTHON_LIB
11272
11273
11274     { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
11275 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
11276
11277     cat > conftest.c << EOF
11278 #include <Python.h>
11279
11280 int main()
11281 {
11282     int ret;
11283     ret = Py_Main(0, 0);
11284     int x; // check also for gcc 2.95.x incompatibilities
11285     return ret;
11286 }
11287 EOF
11288
11289     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
11290     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11291         { echo "$as_me:$LINENO: result: yes" >&5
11292 echo "${ECHO_T}yes" >&6; }
11293         PYTHON_OK=yes
11294     else
11295         echo "configure: failed program was:" >&5
11296         cat conftest.c >&5
11297         { echo "$as_me:$LINENO: result: no" >&5
11298 echo "${ECHO_T}no" >&6; }
11299     fi
11300     rm -f conftest*
11301     if test "x$PYTHON_OK" = "xyes";then
11302         { echo "$as_me:$LINENO: checking for Python-Imaging" >&5
11303 echo $ECHO_N "checking for Python-Imaging... $ECHO_C" >&6; }
11304     cat > conftest.c << EOF
11305 #include <Python.h>
11306 #include <Imaging.h>
11307
11308 int main()
11309 {
11310     Py_Main(0, 0);
11311     return 0;
11312 }
11313 EOF
11314         if test "$HAVE_PYTHON_IMAGING_LIB"; then
11315             ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
11316             if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11317                 PYTHON_LIB="${PYTHON_LIB2}"
11318
11319 cat >>confdefs.h <<\_ACEOF
11320 #define HAVE_PYTHON_IMAGING 1
11321 _ACEOF
11322
11323                 HAVE_PYTHON_IMAGING=yes
11324                 export HAVE_PYTHON_IMAGING
11325
11326                 { echo "$as_me:$LINENO: result: yes" >&5
11327 echo "${ECHO_T}yes" >&6; }
11328             else
11329                 echo "configure: failed program was:" >&5
11330                 cat conftest.c >&5
11331                 { echo "$as_me:$LINENO: result: no" >&5
11332 echo "${ECHO_T}no" >&6; }
11333             fi
11334         else
11335             echo "(didn't find the Python-Imaging libraries)" >&5
11336             { echo "$as_me:$LINENO: result: no" >&5
11337 echo "${ECHO_T}no" >&6; }
11338         fi
11339     fi
11340     rm -f conftest*
11341 else
11342     { echo "$as_me:$LINENO: result: nope" >&5
11343 echo "${ECHO_T}nope" >&6; }
11344 fi
11345
11346
11347 if test "x$PYTHON_OK" '!=' "xyes";then
11348     echo all install uninstall clean: > lib/python/Makefile
11349     # fail silently- the most users won't have any need for the
11350     # python interface anyway
11351 else
11352     pythonrfxswf="lib/python/Makefile"
11353 fi
11354
11355 # ------------------------------------------------------------------
11356
11357 { echo "$as_me:$LINENO: checking for missing libraries" >&5
11358 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
11359
11360 if test "x$ZLIBMISSING" = "xtrue";then
11361     MISSINGLIBS="${MISSINGLIBS} zlib"
11362     DISABLEPNG2SWF=true
11363     PARTIAL=true
11364 fi
11365 if test "x$JPEGLIBMISSING" = "xtrue";then
11366     MISSINGLIBS="${MISSINGLIBS} jpeglib"
11367     DISABLEPDF2SWF=true
11368     DISABLEJPEG2SWF=true
11369     PARTIAL=true
11370 fi
11371 #if test "x$T1LIBMISSING" = "xtrue";then
11372 #    MISSINGLIBS="${MISSINGLIBS} t1lib"
11373 #fi
11374 if test "x$UNGIFMISSING" = "xtrue";then
11375     DISABLEGIF2SWF=true
11376     MISSINGLIBS="${MISSINGLIBS} ungif"
11377     PARTIAL=true
11378 fi
11379
11380 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11381     DISABLEPDF2SWF=true;
11382     DISABLEJPEG2SWF=true;
11383     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11384     PARTIAL=true
11385 fi
11386 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11387     DISABLEPDF2SWF=true;
11388     MISSINGLIBS="${MISSINGLIBS} freetype"
11389     PARTIAL=true
11390 fi
11391 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11392 #    MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11393 #fi
11394 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
11395     DISABLEGIF2SWF=true
11396     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
11397     PARTIAL=true
11398 fi
11399 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11400     DISABLEPNG2SWF=true;
11401     MISSINGLIBS="${MISSINGLIBS} zlib.h"
11402     PARTIAL=true
11403 fi
11404 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11405 #    MISSINGLIBS="${MISSINGLIBS} avifile"
11406 #fi
11407
11408 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11409 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
11410
11411 # ------------------------------------------------------------------
11412
11413 if test "x${MISSINGLIBS}" '!=' "x"; then
11414   echo "***************************************************"
11415   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11416 fi
11417
11418 avi2swf="avi2swf/Makefile"
11419 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11420  #don't whine, avi2swf is outdated anyway
11421  #echo "* Disabling avi2swf tool..."
11422  echo all install uninstall clean: > avi2swf/Makefile
11423  avi2swf=
11424 fi
11425
11426 pdf2swf_makefile="lib/pdf/Makefile"
11427 PDF2SWF='pdf2swf$(E)'
11428 LIBPDF='libpdf$(A)'
11429
11430 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11431   echo "* Disabling pdf2swf tool..."
11432   rm -f lib/pdf/Makefile
11433   echo all install uninstall clean: > lib/pdf/Makefile
11434   pdf2swf_makefile=""
11435   PDF2SWF=
11436   LIBPDF=
11437 fi
11438
11439
11440
11441 if test "x${ZLIBMISSING}" = "xtrue"; then
11442   echo
11443   echo "* Warning! Without zlib, you will not be able to read"
11444   echo "* or write compressed Flash MX files!"
11445 fi
11446
11447 JPEG2SWF='jpeg2swf$(E)'
11448 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11449   echo "* Disabling jpeg2swf tool..."
11450   JPEG2SWF=
11451 fi
11452 export JPEG2SWF
11453
11454
11455 GIF2SWF='gif2swf$(E)'
11456 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
11457   echo "* Disabling gif2swf tool..."
11458   GIF2SWF=
11459 fi
11460 export GIF2SWF
11461
11462
11463 PNG2SWF='png2swf$(E)'
11464 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11465   echo "* Disabling png2swf tool..."
11466   PNG2SWF=
11467 fi
11468 export PNG2SWF
11469
11470
11471 if test "x${MISSINGLIBS}" '!=' "x"; then
11472   if test "x${PARTIAL}" '=' "x"; then
11473     echo "* (never mind)"
11474   fi
11475   echo "***************************************************"
11476 fi
11477
11478 # ------------------------------------------------------------------
11479
11480
11481
11482
11483
11484
11485
11486 #ifdef HAVE_POPPLER
11487 #define GString GooString
11488 #define GHash GooHash
11489 #endif
11490
11491
11492 if test -f "release.in"; then release_in="./release"; fi
11493 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
11494 ac_config_files="$ac_config_files ${FILES}"
11495
11496 cat >confcache <<\_ACEOF
11497 # This file is a shell script that caches the results of configure
11498 # tests run on this system so they can be shared between configure
11499 # scripts and configure runs, see configure's option --config-cache.
11500 # It is not useful on other systems.  If it contains results you don't
11501 # want to keep, you may remove or edit it.
11502 #
11503 # config.status only pays attention to the cache file if you give it
11504 # the --recheck option to rerun configure.
11505 #
11506 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11507 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11508 # following values.
11509
11510 _ACEOF
11511
11512 # The following way of writing the cache mishandles newlines in values,
11513 # but we know of no workaround that is simple, portable, and efficient.
11514 # So, we kill variables containing newlines.
11515 # Ultrix sh set writes to stderr and can't be redirected directly,
11516 # and sets the high bit in the cache file unless we assign to the vars.
11517 (
11518   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11519     eval ac_val=\$$ac_var
11520     case $ac_val in #(
11521     *${as_nl}*)
11522       case $ac_var in #(
11523       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11524 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11525       esac
11526       case $ac_var in #(
11527       _ | IFS | as_nl) ;; #(
11528       *) $as_unset $ac_var ;;
11529       esac ;;
11530     esac
11531   done
11532
11533   (set) 2>&1 |
11534     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11535     *${as_nl}ac_space=\ *)
11536       # `set' does not quote correctly, so add quotes (double-quote
11537       # substitution turns \\\\ into \\, and sed turns \\ into \).
11538       sed -n \
11539         "s/'/'\\\\''/g;
11540           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11541       ;; #(
11542     *)
11543       # `set' quotes correctly as required by POSIX, so do not add quotes.
11544       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11545       ;;
11546     esac |
11547     sort
11548 ) |
11549   sed '
11550      /^ac_cv_env_/b end
11551      t clear
11552      :clear
11553      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11554      t end
11555      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11556      :end' >>confcache
11557 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11558   if test -w "$cache_file"; then
11559     test "x$cache_file" != "x/dev/null" &&
11560       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11561 echo "$as_me: updating cache $cache_file" >&6;}
11562     cat confcache >$cache_file
11563   else
11564     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11565 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11566   fi
11567 fi
11568 rm -f confcache
11569
11570 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11571 # Let make expand exec_prefix.
11572 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11573
11574 DEFS=-DHAVE_CONFIG_H
11575
11576 ac_libobjs=
11577 ac_ltlibobjs=
11578 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11579   # 1. Remove the extension, and $U if already installed.
11580   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11581   ac_i=`echo "$ac_i" | sed "$ac_script"`
11582   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11583   #    will be set to the directory where LIBOBJS objects are built.
11584   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11585   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11586 done
11587 LIBOBJS=$ac_libobjs
11588
11589 LTLIBOBJS=$ac_ltlibobjs
11590
11591
11592
11593 : ${CONFIG_STATUS=./config.status}
11594 ac_clean_files_save=$ac_clean_files
11595 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11596 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11597 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11598 cat >$CONFIG_STATUS <<_ACEOF
11599 #! $SHELL
11600 # Generated by $as_me.
11601 # Run this file to recreate the current configuration.
11602 # Compiler output produced by configure, useful for debugging
11603 # configure, is in config.log if it exists.
11604
11605 debug=false
11606 ac_cs_recheck=false
11607 ac_cs_silent=false
11608 SHELL=\${CONFIG_SHELL-$SHELL}
11609 _ACEOF
11610
11611 cat >>$CONFIG_STATUS <<\_ACEOF
11612 ## --------------------- ##
11613 ## M4sh Initialization.  ##
11614 ## --------------------- ##
11615
11616 # Be more Bourne compatible
11617 DUALCASE=1; export DUALCASE # for MKS sh
11618 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11619   emulate sh
11620   NULLCMD=:
11621   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11622   # is contrary to our usage.  Disable this feature.
11623   alias -g '${1+"$@"}'='"$@"'
11624   setopt NO_GLOB_SUBST
11625 else
11626   case `(set -o) 2>/dev/null` in
11627   *posix*) set -o posix ;;
11628 esac
11629
11630 fi
11631
11632
11633
11634
11635 # PATH needs CR
11636 # Avoid depending upon Character Ranges.
11637 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11638 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11639 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11640 as_cr_digits='0123456789'
11641 as_cr_alnum=$as_cr_Letters$as_cr_digits
11642
11643 # The user is always right.
11644 if test "${PATH_SEPARATOR+set}" != set; then
11645   echo "#! /bin/sh" >conf$$.sh
11646   echo  "exit 0"   >>conf$$.sh
11647   chmod +x conf$$.sh
11648   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11649     PATH_SEPARATOR=';'
11650   else
11651     PATH_SEPARATOR=:
11652   fi
11653   rm -f conf$$.sh
11654 fi
11655
11656 # Support unset when possible.
11657 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11658   as_unset=unset
11659 else
11660   as_unset=false
11661 fi
11662
11663
11664 # IFS
11665 # We need space, tab and new line, in precisely that order.  Quoting is
11666 # there to prevent editors from complaining about space-tab.
11667 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11668 # splitting by setting IFS to empty value.)
11669 as_nl='
11670 '
11671 IFS=" ""        $as_nl"
11672
11673 # Find who we are.  Look in the path if we contain no directory separator.
11674 case $0 in
11675   *[\\/]* ) as_myself=$0 ;;
11676   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11677 for as_dir in $PATH
11678 do
11679   IFS=$as_save_IFS
11680   test -z "$as_dir" && as_dir=.
11681   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11682 done
11683 IFS=$as_save_IFS
11684
11685      ;;
11686 esac
11687 # We did not find ourselves, most probably we were run as `sh COMMAND'
11688 # in which case we are not to be found in the path.
11689 if test "x$as_myself" = x; then
11690   as_myself=$0
11691 fi
11692 if test ! -f "$as_myself"; then
11693   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11694   { (exit 1); exit 1; }
11695 fi
11696
11697 # Work around bugs in pre-3.0 UWIN ksh.
11698 for as_var in ENV MAIL MAILPATH
11699 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11700 done
11701 PS1='$ '
11702 PS2='> '
11703 PS4='+ '
11704
11705 # NLS nuisances.
11706 for as_var in \
11707   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11708   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11709   LC_TELEPHONE LC_TIME
11710 do
11711   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11712     eval $as_var=C; export $as_var
11713   else
11714     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11715   fi
11716 done
11717
11718 # Required to use basename.
11719 if expr a : '\(a\)' >/dev/null 2>&1 &&
11720    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11721   as_expr=expr
11722 else
11723   as_expr=false
11724 fi
11725
11726 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11727   as_basename=basename
11728 else
11729   as_basename=false
11730 fi
11731
11732
11733 # Name of the executable.
11734 as_me=`$as_basename -- "$0" ||
11735 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11736          X"$0" : 'X\(//\)$' \| \
11737          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11738 echo X/"$0" |
11739     sed '/^.*\/\([^/][^/]*\)\/*$/{
11740             s//\1/
11741             q
11742           }
11743           /^X\/\(\/\/\)$/{
11744             s//\1/
11745             q
11746           }
11747           /^X\/\(\/\).*/{
11748             s//\1/
11749             q
11750           }
11751           s/.*/./; q'`
11752
11753 # CDPATH.
11754 $as_unset CDPATH
11755
11756
11757
11758   as_lineno_1=$LINENO
11759   as_lineno_2=$LINENO
11760   test "x$as_lineno_1" != "x$as_lineno_2" &&
11761   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11762
11763   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11764   # uniformly replaced by the line number.  The first 'sed' inserts a
11765   # line-number line after each line using $LINENO; the second 'sed'
11766   # does the real work.  The second script uses 'N' to pair each
11767   # line-number line with the line containing $LINENO, and appends
11768   # trailing '-' during substitution so that $LINENO is not a special
11769   # case at line end.
11770   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11771   # scripts with optimization help from Paolo Bonzini.  Blame Lee
11772   # E. McMahon (1931-1989) for sed's syntax.  :-)
11773   sed -n '
11774     p
11775     /[$]LINENO/=
11776   ' <$as_myself |
11777     sed '
11778       s/[$]LINENO.*/&-/
11779       t lineno
11780       b
11781       :lineno
11782       N
11783       :loop
11784       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11785       t loop
11786       s/-\n.*//
11787     ' >$as_me.lineno &&
11788   chmod +x "$as_me.lineno" ||
11789     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11790    { (exit 1); exit 1; }; }
11791
11792   # Don't try to exec as it changes $[0], causing all sort of problems
11793   # (the dirname of $[0] is not the place where we might find the
11794   # original and so on.  Autoconf is especially sensitive to this).
11795   . "./$as_me.lineno"
11796   # Exit status is that of the last command.
11797   exit
11798 }
11799
11800
11801 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11802   as_dirname=dirname
11803 else
11804   as_dirname=false
11805 fi
11806
11807 ECHO_C= ECHO_N= ECHO_T=
11808 case `echo -n x` in
11809 -n*)
11810   case `echo 'x\c'` in
11811   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11812   *)   ECHO_C='\c';;
11813   esac;;
11814 *)
11815   ECHO_N='-n';;
11816 esac
11817
11818 if expr a : '\(a\)' >/dev/null 2>&1 &&
11819    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11820   as_expr=expr
11821 else
11822   as_expr=false
11823 fi
11824
11825 rm -f conf$$ conf$$.exe conf$$.file
11826 if test -d conf$$.dir; then
11827   rm -f conf$$.dir/conf$$.file
11828 else
11829   rm -f conf$$.dir
11830   mkdir conf$$.dir
11831 fi
11832 echo >conf$$.file
11833 if ln -s conf$$.file conf$$ 2>/dev/null; then
11834   as_ln_s='ln -s'
11835   # ... but there are two gotchas:
11836   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11837   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11838   # In both cases, we have to default to `cp -p'.
11839   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11840     as_ln_s='cp -p'
11841 elif ln conf$$.file conf$$ 2>/dev/null; then
11842   as_ln_s=ln
11843 else
11844   as_ln_s='cp -p'
11845 fi
11846 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11847 rmdir conf$$.dir 2>/dev/null
11848
11849 if mkdir -p . 2>/dev/null; then
11850   as_mkdir_p=:
11851 else
11852   test -d ./-p && rmdir ./-p
11853   as_mkdir_p=false
11854 fi
11855
11856 if test -x / >/dev/null 2>&1; then
11857   as_test_x='test -x'
11858 else
11859   if ls -dL / >/dev/null 2>&1; then
11860     as_ls_L_option=L
11861   else
11862     as_ls_L_option=
11863   fi
11864   as_test_x='
11865     eval sh -c '\''
11866       if test -d "$1"; then
11867         test -d "$1/.";
11868       else
11869         case $1 in
11870         -*)set "./$1";;
11871         esac;
11872         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11873         ???[sx]*):;;*)false;;esac;fi
11874     '\'' sh
11875   '
11876 fi
11877 as_executable_p=$as_test_x
11878
11879 # Sed expression to map a string onto a valid CPP name.
11880 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11881
11882 # Sed expression to map a string onto a valid variable name.
11883 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11884
11885
11886 exec 6>&1
11887
11888 # Save the log message, to keep $[0] and so on meaningful, and to
11889 # report actual input values of CONFIG_FILES etc. instead of their
11890 # values after options handling.
11891 ac_log="
11892 This file was extended by $as_me, which was
11893 generated by GNU Autoconf 2.61.  Invocation command line was
11894
11895   CONFIG_FILES    = $CONFIG_FILES
11896   CONFIG_HEADERS  = $CONFIG_HEADERS
11897   CONFIG_LINKS    = $CONFIG_LINKS
11898   CONFIG_COMMANDS = $CONFIG_COMMANDS
11899   $ $0 $@
11900
11901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11902 "
11903
11904 _ACEOF
11905
11906 cat >>$CONFIG_STATUS <<_ACEOF
11907 # Files that config.status was made for.
11908 config_files="$ac_config_files"
11909 config_headers="$ac_config_headers"
11910
11911 _ACEOF
11912
11913 cat >>$CONFIG_STATUS <<\_ACEOF
11914 ac_cs_usage="\
11915 \`$as_me' instantiates files from templates according to the
11916 current configuration.
11917
11918 Usage: $0 [OPTIONS] [FILE]...
11919
11920   -h, --help       print this help, then exit
11921   -V, --version    print version number and configuration settings, then exit
11922   -q, --quiet      do not print progress messages
11923   -d, --debug      don't remove temporary files
11924       --recheck    update $as_me by reconfiguring in the same conditions
11925   --file=FILE[:TEMPLATE]
11926                    instantiate the configuration file FILE
11927   --header=FILE[:TEMPLATE]
11928                    instantiate the configuration header FILE
11929
11930 Configuration files:
11931 $config_files
11932
11933 Configuration headers:
11934 $config_headers
11935
11936 Report bugs to <bug-autoconf@gnu.org>."
11937
11938 _ACEOF
11939 cat >>$CONFIG_STATUS <<_ACEOF
11940 ac_cs_version="\\
11941 config.status
11942 configured by $0, generated by GNU Autoconf 2.61,
11943   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11944
11945 Copyright (C) 2006 Free Software Foundation, Inc.
11946 This config.status script is free software; the Free Software Foundation
11947 gives unlimited permission to copy, distribute and modify it."
11948
11949 ac_pwd='$ac_pwd'
11950 srcdir='$srcdir'
11951 INSTALL='$INSTALL'
11952 _ACEOF
11953
11954 cat >>$CONFIG_STATUS <<\_ACEOF
11955 # If no file are specified by the user, then we need to provide default
11956 # value.  By we need to know if files were specified by the user.
11957 ac_need_defaults=:
11958 while test $# != 0
11959 do
11960   case $1 in
11961   --*=*)
11962     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11963     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11964     ac_shift=:
11965     ;;
11966   *)
11967     ac_option=$1
11968     ac_optarg=$2
11969     ac_shift=shift
11970     ;;
11971   esac
11972
11973   case $ac_option in
11974   # Handling of the options.
11975   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11976     ac_cs_recheck=: ;;
11977   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11978     echo "$ac_cs_version"; exit ;;
11979   --debug | --debu | --deb | --de | --d | -d )
11980     debug=: ;;
11981   --file | --fil | --fi | --f )
11982     $ac_shift
11983     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11984     ac_need_defaults=false;;
11985   --header | --heade | --head | --hea )
11986     $ac_shift
11987     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11988     ac_need_defaults=false;;
11989   --he | --h)
11990     # Conflict between --help and --header
11991     { echo "$as_me: error: ambiguous option: $1
11992 Try \`$0 --help' for more information." >&2
11993    { (exit 1); exit 1; }; };;
11994   --help | --hel | -h )
11995     echo "$ac_cs_usage"; exit ;;
11996   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11997   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11998     ac_cs_silent=: ;;
11999
12000   # This is an error.
12001   -*) { echo "$as_me: error: unrecognized option: $1
12002 Try \`$0 --help' for more information." >&2
12003    { (exit 1); exit 1; }; } ;;
12004
12005   *) ac_config_targets="$ac_config_targets $1"
12006      ac_need_defaults=false ;;
12007
12008   esac
12009   shift
12010 done
12011
12012 ac_configure_extra_args=
12013
12014 if $ac_cs_silent; then
12015   exec 6>/dev/null
12016   ac_configure_extra_args="$ac_configure_extra_args --silent"
12017 fi
12018
12019 _ACEOF
12020 cat >>$CONFIG_STATUS <<_ACEOF
12021 if \$ac_cs_recheck; then
12022   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12023   CONFIG_SHELL=$SHELL
12024   export CONFIG_SHELL
12025   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12026 fi
12027
12028 _ACEOF
12029 cat >>$CONFIG_STATUS <<\_ACEOF
12030 exec 5>>config.log
12031 {
12032   echo
12033   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12034 ## Running $as_me. ##
12035 _ASBOX
12036   echo "$ac_log"
12037 } >&5
12038
12039 _ACEOF
12040 cat >>$CONFIG_STATUS <<_ACEOF
12041 _ACEOF
12042
12043 cat >>$CONFIG_STATUS <<\_ACEOF
12044
12045 # Handling of arguments.
12046 for ac_config_target in $ac_config_targets
12047 do
12048   case $ac_config_target in
12049     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12050     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
12051
12052   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12053 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12054    { (exit 1); exit 1; }; };;
12055   esac
12056 done
12057
12058
12059 # If the user did not use the arguments to specify the items to instantiate,
12060 # then the envvar interface is used.  Set only those that are not.
12061 # We use the long form for the default assignment because of an extremely
12062 # bizarre bug on SunOS 4.1.3.
12063 if $ac_need_defaults; then
12064   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12065   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12066 fi
12067
12068 # Have a temporary directory for convenience.  Make it in the build tree
12069 # simply because there is no reason against having it here, and in addition,
12070 # creating and moving files from /tmp can sometimes cause problems.
12071 # Hook for its removal unless debugging.
12072 # Note that there is a small window in which the directory will not be cleaned:
12073 # after its creation but before its name has been assigned to `$tmp'.
12074 $debug ||
12075 {
12076   tmp=
12077   trap 'exit_status=$?
12078   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12079 ' 0
12080   trap '{ (exit 1); exit 1; }' 1 2 13 15
12081 }
12082 # Create a (secure) tmp directory for tmp files.
12083
12084 {
12085   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12086   test -n "$tmp" && test -d "$tmp"
12087 }  ||
12088 {
12089   tmp=./conf$$-$RANDOM
12090   (umask 077 && mkdir "$tmp")
12091 } ||
12092 {
12093    echo "$me: cannot create a temporary directory in ." >&2
12094    { (exit 1); exit 1; }
12095 }
12096
12097 #
12098 # Set up the sed scripts for CONFIG_FILES section.
12099 #
12100
12101 # No need to generate the scripts if there are no CONFIG_FILES.
12102 # This happens for instance when ./config.status config.h
12103 if test -n "$CONFIG_FILES"; then
12104
12105 _ACEOF
12106
12107
12108
12109 ac_delim='%!_!# '
12110 for ac_last_try in false false false false false :; do
12111   cat >conf$$subs.sed <<_ACEOF
12112 SHELL!$SHELL$ac_delim
12113 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12114 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12115 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12116 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12117 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12118 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12119 exec_prefix!$exec_prefix$ac_delim
12120 prefix!$prefix$ac_delim
12121 program_transform_name!$program_transform_name$ac_delim
12122 bindir!$bindir$ac_delim
12123 sbindir!$sbindir$ac_delim
12124 libexecdir!$libexecdir$ac_delim
12125 datarootdir!$datarootdir$ac_delim
12126 datadir!$datadir$ac_delim
12127 sysconfdir!$sysconfdir$ac_delim
12128 sharedstatedir!$sharedstatedir$ac_delim
12129 localstatedir!$localstatedir$ac_delim
12130 includedir!$includedir$ac_delim
12131 oldincludedir!$oldincludedir$ac_delim
12132 docdir!$docdir$ac_delim
12133 infodir!$infodir$ac_delim
12134 htmldir!$htmldir$ac_delim
12135 dvidir!$dvidir$ac_delim
12136 pdfdir!$pdfdir$ac_delim
12137 psdir!$psdir$ac_delim
12138 libdir!$libdir$ac_delim
12139 localedir!$localedir$ac_delim
12140 mandir!$mandir$ac_delim
12141 DEFS!$DEFS$ac_delim
12142 ECHO_C!$ECHO_C$ac_delim
12143 ECHO_N!$ECHO_N$ac_delim
12144 ECHO_T!$ECHO_T$ac_delim
12145 LIBS!$LIBS$ac_delim
12146 build_alias!$build_alias$ac_delim
12147 host_alias!$host_alias$ac_delim
12148 target_alias!$target_alias$ac_delim
12149 build!$build$ac_delim
12150 build_cpu!$build_cpu$ac_delim
12151 build_vendor!$build_vendor$ac_delim
12152 build_os!$build_os$ac_delim
12153 host!$host$ac_delim
12154 host_cpu!$host_cpu$ac_delim
12155 host_vendor!$host_vendor$ac_delim
12156 host_os!$host_os$ac_delim
12157 SHARED!$SHARED$ac_delim
12158 CC!$CC$ac_delim
12159 CFLAGS!$CFLAGS$ac_delim
12160 LDFLAGS!$LDFLAGS$ac_delim
12161 CPPFLAGS!$CPPFLAGS$ac_delim
12162 ac_ct_CC!$ac_ct_CC$ac_delim
12163 EXEEXT!$EXEEXT$ac_delim
12164 OBJEXT!$OBJEXT$ac_delim
12165 CXX!$CXX$ac_delim
12166 CXXFLAGS!$CXXFLAGS$ac_delim
12167 ac_ct_CXX!$ac_ct_CXX$ac_delim
12168 CPP!$CPP$ac_delim
12169 RANLIB!$RANLIB$ac_delim
12170 SET_MAKE!$SET_MAKE$ac_delim
12171 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12172 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12173 INSTALL_DATA!$INSTALL_DATA$ac_delim
12174 LN_S!$LN_S$ac_delim
12175 UNCOMPRESS!$UNCOMPRESS$ac_delim
12176 PKG_CONFIG!$PKG_CONFIG$ac_delim
12177 AREXT!$AREXT$ac_delim
12178 AR!$AR$ac_delim
12179 SLEXT!$SLEXT$ac_delim
12180 CXXLIBS!$CXXLIBS$ac_delim
12181 STRIP!$STRIP$ac_delim
12182 target!$target$ac_delim
12183 target_cpu!$target_cpu$ac_delim
12184 target_vendor!$target_vendor$ac_delim
12185 target_os!$target_os$ac_delim
12186 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
12187 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
12188 GREP!$GREP$ac_delim
12189 EGREP!$EGREP$ac_delim
12190 PACKAGE!$PACKAGE$ac_delim
12191 VERSION!$VERSION$ac_delim
12192 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
12193 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
12194 DEVICE_OPENGL!$DEVICE_OPENGL$ac_delim
12195 lame_in_source!$lame_in_source$ac_delim
12196 LIBART_CFLAGS!$LIBART_CFLAGS$ac_delim
12197 LIBART_LIBS!$LIBART_LIBS$ac_delim
12198 art_in_source!$art_in_source$ac_delim
12199 POPPLER_CFLAGS!$POPPLER_CFLAGS$ac_delim
12200 POPPLER_LIBS!$POPPLER_LIBS$ac_delim
12201 CXXCPP!$CXXCPP$ac_delim
12202 xpdf_in_source!$xpdf_in_source$ac_delim
12203 splash_in_source!$splash_in_source$ac_delim
12204 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
12205 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
12206 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
12207 USE_GZIP!$USE_GZIP$ac_delim
12208 PYTHON_LIB!$PYTHON_LIB$ac_delim
12209 _ACEOF
12210
12211   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12212     break
12213   elif $ac_last_try; then
12214     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12215 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12216    { (exit 1); exit 1; }; }
12217   else
12218     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12219   fi
12220 done
12221
12222 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12223 if test -n "$ac_eof"; then
12224   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12225   ac_eof=`expr $ac_eof + 1`
12226 fi
12227
12228 cat >>$CONFIG_STATUS <<_ACEOF
12229 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12230 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12231 _ACEOF
12232 sed '
12233 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12234 s/^/s,@/; s/!/@,|#_!!_#|/
12235 :n
12236 t n
12237 s/'"$ac_delim"'$/,g/; t
12238 s/$/\\/; p
12239 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12240 ' >>$CONFIG_STATUS <conf$$subs.sed
12241 rm -f conf$$subs.sed
12242 cat >>$CONFIG_STATUS <<_ACEOF
12243 CEOF$ac_eof
12244 _ACEOF
12245
12246
12247 ac_delim='%!_!# '
12248 for ac_last_try in false false false false false :; do
12249   cat >conf$$subs.sed <<_ACEOF
12250 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
12251 HAVE_PYTHON_IMAGING!$HAVE_PYTHON_IMAGING$ac_delim
12252 PDF2SWF!$PDF2SWF$ac_delim
12253 LIBPDF!$LIBPDF$ac_delim
12254 JPEG2SWF!$JPEG2SWF$ac_delim
12255 GIF2SWF!$GIF2SWF$ac_delim
12256 PNG2SWF!$PNG2SWF$ac_delim
12257 LIBOBJS!$LIBOBJS$ac_delim
12258 LTLIBOBJS!$LTLIBOBJS$ac_delim
12259 _ACEOF
12260
12261   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
12262     break
12263   elif $ac_last_try; then
12264     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12265 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12266    { (exit 1); exit 1; }; }
12267   else
12268     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12269   fi
12270 done
12271
12272 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12273 if test -n "$ac_eof"; then
12274   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12275   ac_eof=`expr $ac_eof + 1`
12276 fi
12277
12278 cat >>$CONFIG_STATUS <<_ACEOF
12279 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12281 _ACEOF
12282 sed '
12283 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12284 s/^/s,@/; s/!/@,|#_!!_#|/
12285 :n
12286 t n
12287 s/'"$ac_delim"'$/,g/; t
12288 s/$/\\/; p
12289 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12290 ' >>$CONFIG_STATUS <conf$$subs.sed
12291 rm -f conf$$subs.sed
12292 cat >>$CONFIG_STATUS <<_ACEOF
12293 :end
12294 s/|#_!!_#|//g
12295 CEOF$ac_eof
12296 _ACEOF
12297
12298
12299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12301 # trailing colons and then remove the whole line if VPATH becomes empty
12302 # (actually we leave an empty line to preserve line numbers).
12303 if test "x$srcdir" = x.; then
12304   ac_vpsub='/^[  ]*VPATH[        ]*=/{
12305 s/:*\$(srcdir):*/:/
12306 s/:*\${srcdir}:*/:/
12307 s/:*@srcdir@:*/:/
12308 s/^\([^=]*=[     ]*\):*/\1/
12309 s/:*$//
12310 s/^[^=]*=[       ]*$//
12311 }'
12312 fi
12313
12314 cat >>$CONFIG_STATUS <<\_ACEOF
12315 fi # test -n "$CONFIG_FILES"
12316
12317
12318 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
12319 do
12320   case $ac_tag in
12321   :[FHLC]) ac_mode=$ac_tag; continue;;
12322   esac
12323   case $ac_mode$ac_tag in
12324   :[FHL]*:*);;
12325   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12326 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12327    { (exit 1); exit 1; }; };;
12328   :[FH]-) ac_tag=-:-;;
12329   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12330   esac
12331   ac_save_IFS=$IFS
12332   IFS=:
12333   set x $ac_tag
12334   IFS=$ac_save_IFS
12335   shift
12336   ac_file=$1
12337   shift
12338
12339   case $ac_mode in
12340   :L) ac_source=$1;;
12341   :[FH])
12342     ac_file_inputs=
12343     for ac_f
12344     do
12345       case $ac_f in
12346       -) ac_f="$tmp/stdin";;
12347       *) # Look for the file first in the build tree, then in the source tree
12348          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12349          # because $ac_f cannot contain `:'.
12350          test -f "$ac_f" ||
12351            case $ac_f in
12352            [\\/$]*) false;;
12353            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12354            esac ||
12355            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12356 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12357    { (exit 1); exit 1; }; };;
12358       esac
12359       ac_file_inputs="$ac_file_inputs $ac_f"
12360     done
12361
12362     # Let's still pretend it is `configure' which instantiates (i.e., don't
12363     # use $as_me), people would be surprised to read:
12364     #    /* config.h.  Generated by config.status.  */
12365     configure_input="Generated from "`IFS=:
12366           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12367     if test x"$ac_file" != x-; then
12368       configure_input="$ac_file.  $configure_input"
12369       { echo "$as_me:$LINENO: creating $ac_file" >&5
12370 echo "$as_me: creating $ac_file" >&6;}
12371     fi
12372
12373     case $ac_tag in
12374     *:-:* | *:-) cat >"$tmp/stdin";;
12375     esac
12376     ;;
12377   esac
12378
12379   ac_dir=`$as_dirname -- "$ac_file" ||
12380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12381          X"$ac_file" : 'X\(//\)[^/]' \| \
12382          X"$ac_file" : 'X\(//\)$' \| \
12383          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12384 echo X"$ac_file" |
12385     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12386             s//\1/
12387             q
12388           }
12389           /^X\(\/\/\)[^/].*/{
12390             s//\1/
12391             q
12392           }
12393           /^X\(\/\/\)$/{
12394             s//\1/
12395             q
12396           }
12397           /^X\(\/\).*/{
12398             s//\1/
12399             q
12400           }
12401           s/.*/./; q'`
12402   { as_dir="$ac_dir"
12403   case $as_dir in #(
12404   -*) as_dir=./$as_dir;;
12405   esac
12406   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12407     as_dirs=
12408     while :; do
12409       case $as_dir in #(
12410       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12411       *) as_qdir=$as_dir;;
12412       esac
12413       as_dirs="'$as_qdir' $as_dirs"
12414       as_dir=`$as_dirname -- "$as_dir" ||
12415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12416          X"$as_dir" : 'X\(//\)[^/]' \| \
12417          X"$as_dir" : 'X\(//\)$' \| \
12418          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12419 echo X"$as_dir" |
12420     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12421             s//\1/
12422             q
12423           }
12424           /^X\(\/\/\)[^/].*/{
12425             s//\1/
12426             q
12427           }
12428           /^X\(\/\/\)$/{
12429             s//\1/
12430             q
12431           }
12432           /^X\(\/\).*/{
12433             s//\1/
12434             q
12435           }
12436           s/.*/./; q'`
12437       test -d "$as_dir" && break
12438     done
12439     test -z "$as_dirs" || eval "mkdir $as_dirs"
12440   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12441 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12442    { (exit 1); exit 1; }; }; }
12443   ac_builddir=.
12444
12445 case "$ac_dir" in
12446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12447 *)
12448   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12449   # A ".." for each directory in $ac_dir_suffix.
12450   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12451   case $ac_top_builddir_sub in
12452   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12453   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12454   esac ;;
12455 esac
12456 ac_abs_top_builddir=$ac_pwd
12457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12458 # for backward compatibility:
12459 ac_top_builddir=$ac_top_build_prefix
12460
12461 case $srcdir in
12462   .)  # We are building in place.
12463     ac_srcdir=.
12464     ac_top_srcdir=$ac_top_builddir_sub
12465     ac_abs_top_srcdir=$ac_pwd ;;
12466   [\\/]* | ?:[\\/]* )  # Absolute name.
12467     ac_srcdir=$srcdir$ac_dir_suffix;
12468     ac_top_srcdir=$srcdir
12469     ac_abs_top_srcdir=$srcdir ;;
12470   *) # Relative name.
12471     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12472     ac_top_srcdir=$ac_top_build_prefix$srcdir
12473     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12474 esac
12475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12476
12477
12478   case $ac_mode in
12479   :F)
12480   #
12481   # CONFIG_FILE
12482   #
12483
12484   case $INSTALL in
12485   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12486   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12487   esac
12488 _ACEOF
12489
12490 cat >>$CONFIG_STATUS <<\_ACEOF
12491 # If the template does not know about datarootdir, expand it.
12492 # FIXME: This hack should be removed a few years after 2.60.
12493 ac_datarootdir_hack=; ac_datarootdir_seen=
12494
12495 case `sed -n '/datarootdir/ {
12496   p
12497   q
12498 }
12499 /@datadir@/p
12500 /@docdir@/p
12501 /@infodir@/p
12502 /@localedir@/p
12503 /@mandir@/p
12504 ' $ac_file_inputs` in
12505 *datarootdir*) ac_datarootdir_seen=yes;;
12506 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12507   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12508 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12509 _ACEOF
12510 cat >>$CONFIG_STATUS <<_ACEOF
12511   ac_datarootdir_hack='
12512   s&@datadir@&$datadir&g
12513   s&@docdir@&$docdir&g
12514   s&@infodir@&$infodir&g
12515   s&@localedir@&$localedir&g
12516   s&@mandir@&$mandir&g
12517     s&\\\${datarootdir}&$datarootdir&g' ;;
12518 esac
12519 _ACEOF
12520
12521 # Neutralize VPATH when `$srcdir' = `.'.
12522 # Shell code in configure.ac might set extrasub.
12523 # FIXME: do we really want to maintain this feature?
12524 cat >>$CONFIG_STATUS <<_ACEOF
12525   sed "$ac_vpsub
12526 $extrasub
12527 _ACEOF
12528 cat >>$CONFIG_STATUS <<\_ACEOF
12529 :t
12530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12531 s&@configure_input@&$configure_input&;t t
12532 s&@top_builddir@&$ac_top_builddir_sub&;t t
12533 s&@srcdir@&$ac_srcdir&;t t
12534 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12535 s&@top_srcdir@&$ac_top_srcdir&;t t
12536 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12537 s&@builddir@&$ac_builddir&;t t
12538 s&@abs_builddir@&$ac_abs_builddir&;t t
12539 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12540 s&@INSTALL@&$ac_INSTALL&;t t
12541 $ac_datarootdir_hack
12542 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12543
12544 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12545   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12546   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12547   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12548 which seems to be undefined.  Please make sure it is defined." >&5
12549 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12550 which seems to be undefined.  Please make sure it is defined." >&2;}
12551
12552   rm -f "$tmp/stdin"
12553   case $ac_file in
12554   -) cat "$tmp/out"; rm -f "$tmp/out";;
12555   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12556   esac
12557  ;;
12558   :H)
12559   #
12560   # CONFIG_HEADER
12561   #
12562 _ACEOF
12563
12564 # Transform confdefs.h into a sed script `conftest.defines', that
12565 # substitutes the proper values into config.h.in to produce config.h.
12566 rm -f conftest.defines conftest.tail
12567 # First, append a space to every undef/define line, to ease matching.
12568 echo 's/$/ /' >conftest.defines
12569 # Then, protect against being on the right side of a sed subst, or in
12570 # an unquoted here document, in config.status.  If some macros were
12571 # called several times there might be several #defines for the same
12572 # symbol, which is useless.  But do not sort them, since the last
12573 # AC_DEFINE must be honored.
12574 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12575 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12576 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12577 # PARAMS is the parameter list in the macro definition--in most cases, it's
12578 # just an empty string.
12579 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
12580 ac_dB='\\)[      (].*,\\1define\\2'
12581 ac_dC=' '
12582 ac_dD=' ,'
12583
12584 uniq confdefs.h |
12585   sed -n '
12586         t rset
12587         :rset
12588         s/^[     ]*#[    ]*define[       ][      ]*//
12589         t ok
12590         d
12591         :ok
12592         s/[\\&,]/\\&/g
12593         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12594         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12595   ' >>conftest.defines
12596
12597 # Remove the space that was appended to ease matching.
12598 # Then replace #undef with comments.  This is necessary, for
12599 # example, in the case of _POSIX_SOURCE, which is predefined and required
12600 # on some systems where configure will not decide to define it.
12601 # (The regexp can be short, since the line contains either #define or #undef.)
12602 echo 's/ $//
12603 s,^[     #]*u.*,/* & */,' >>conftest.defines
12604
12605 # Break up conftest.defines:
12606 ac_max_sed_lines=50
12607
12608 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12609 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12610 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12611 # et cetera.
12612 ac_in='$ac_file_inputs'
12613 ac_out='"$tmp/out1"'
12614 ac_nxt='"$tmp/out2"'
12615
12616 while :
12617 do
12618   # Write a here document:
12619     cat >>$CONFIG_STATUS <<_ACEOF
12620     # First, check the format of the line:
12621     cat >"\$tmp/defines.sed" <<\\CEOF
12622 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
12623 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
12624 b
12625 :def
12626 _ACEOF
12627   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12628   echo 'CEOF
12629     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12630   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12631   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12632   grep . conftest.tail >/dev/null || break
12633   rm -f conftest.defines
12634   mv conftest.tail conftest.defines
12635 done
12636 rm -f conftest.defines conftest.tail
12637
12638 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12639 cat >>$CONFIG_STATUS <<\_ACEOF
12640   if test x"$ac_file" != x-; then
12641     echo "/* $configure_input  */" >"$tmp/config.h"
12642     cat "$ac_result" >>"$tmp/config.h"
12643     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12644       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12645 echo "$as_me: $ac_file is unchanged" >&6;}
12646     else
12647       rm -f $ac_file
12648       mv "$tmp/config.h" $ac_file
12649     fi
12650   else
12651     echo "/* $configure_input  */"
12652     cat "$ac_result"
12653   fi
12654   rm -f "$tmp/out12"
12655  ;;
12656
12657
12658   esac
12659
12660 done # for ac_tag
12661
12662
12663 { (exit 0); exit 0; }
12664 _ACEOF
12665 chmod +x $CONFIG_STATUS
12666 ac_clean_files=$ac_clean_files_save
12667
12668
12669 # configure is writing to config.log, and then calls config.status.
12670 # config.status does its own redirection, appending to config.log.
12671 # Unfortunately, on DOS this fails, as config.log is still kept open
12672 # by configure, so config.status won't be able to write to it; its
12673 # output is simply discarded.  So we exec the FD to /dev/null,
12674 # effectively closing config.log, so it can be properly (re)opened and
12675 # appended to by config.status.  When coming back to configure, we
12676 # need to make the FD available again.
12677 if test "$no_create" != yes; then
12678   ac_cs_success=:
12679   ac_config_status_args=
12680   test "$silent" = yes &&
12681     ac_config_status_args="$ac_config_status_args --quiet"
12682   exec 5>/dev/null
12683   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12684   exec 5>>config.log
12685   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12686   # would make configure fail if this is the last instruction.
12687   $ac_cs_success || { (exit 1); exit 1; }
12688 fi
12689
12690
12691
12692 #
12693 # On development trees, create snapshots of config.status
12694 #
12695 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
12696     if test "x${MINGW}" = "xyes"; then
12697         echo cp config.status config.status.win32
12698         cp config.status config.status.win32
12699     else
12700         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
12701             echo cp config.status config.status.linux
12702             cp config.status config.status.linux
12703         fi
12704         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
12705             echo cp config.status config.status.debug
12706             cp config.status config.status.debug
12707         fi
12708         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
12709             echo cp config.status config.status.optimize
12710             cp config.status config.status.optimize
12711         fi
12712     fi
12713 fi