Generated 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 AREXT
681 AR
682 SLEXT
683 CXXLIBS
684 STRIP
685 target
686 target_cpu
687 target_vendor
688 target_os
689 WORDS_BIGENDIAN
690 SYSTEM_BACKTICKS
691 GREP
692 EGREP
693 PACKAGE
694 VERSION
695 HAVE_UNISTD_H
696 FREETYPE_CONFIG
697 lame_objects
698 AVIFILE_CONFIG
699 VIDEO_LIBS
700 VIDEO_CFLAGS
701 USE_GZIP
702 PYTHON_LIB
703 PYTHON_INCLUDES
704 PDF2SWF
705 LIBPDF
706 JPEG2SWF
707 GIF2SWF
708 PNG2SWF
709 LIBOBJS
710 LTLIBOBJS'
711 ac_subst_files=''
712       ac_precious_vars='build_alias
713 host_alias
714 target_alias
715 CC
716 CFLAGS
717 LDFLAGS
718 LIBS
719 CPPFLAGS
720 CXX
721 CXXFLAGS
722 CCC
723 CPP'
724
725
726 # Initialize some variables set by options.
727 ac_init_help=
728 ac_init_version=false
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
731 cache_file=/dev/null
732 exec_prefix=NONE
733 no_create=
734 no_recursion=
735 prefix=NONE
736 program_prefix=NONE
737 program_suffix=NONE
738 program_transform_name=s,x,x,
739 silent=
740 site=
741 srcdir=
742 verbose=
743 x_includes=NONE
744 x_libraries=NONE
745
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir='${exec_prefix}/bin'
753 sbindir='${exec_prefix}/sbin'
754 libexecdir='${exec_prefix}/libexec'
755 datarootdir='${prefix}/share'
756 datadir='${datarootdir}'
757 sysconfdir='${prefix}/etc'
758 sharedstatedir='${prefix}/com'
759 localstatedir='${prefix}/var'
760 includedir='${prefix}/include'
761 oldincludedir='/usr/include'
762 docdir='${datarootdir}/doc/${PACKAGE}'
763 infodir='${datarootdir}/info'
764 htmldir='${docdir}'
765 dvidir='${docdir}'
766 pdfdir='${docdir}'
767 psdir='${docdir}'
768 libdir='${exec_prefix}/lib'
769 localedir='${datarootdir}/locale'
770 mandir='${datarootdir}/man'
771
772 ac_prev=
773 ac_dashdash=
774 for ac_option
775 do
776   # If the previous option needs an argument, assign it.
777   if test -n "$ac_prev"; then
778     eval $ac_prev=\$ac_option
779     ac_prev=
780     continue
781   fi
782
783   case $ac_option in
784   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785   *)    ac_optarg=yes ;;
786   esac
787
788   # Accept the important Cygnus configure options, so we can diagnose typos.
789
790   case $ac_dashdash$ac_option in
791   --)
792     ac_dashdash=yes ;;
793
794   -bindir | --bindir | --bindi | --bind | --bin | --bi)
795     ac_prev=bindir ;;
796   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797     bindir=$ac_optarg ;;
798
799   -build | --build | --buil | --bui | --bu)
800     ac_prev=build_alias ;;
801   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802     build_alias=$ac_optarg ;;
803
804   -cache-file | --cache-file | --cache-fil | --cache-fi \
805   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806     ac_prev=cache_file ;;
807   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809     cache_file=$ac_optarg ;;
810
811   --config-cache | -C)
812     cache_file=config.cache ;;
813
814   -datadir | --datadir | --datadi | --datad)
815     ac_prev=datadir ;;
816   -datadir=* | --datadir=* | --datadi=* | --datad=*)
817     datadir=$ac_optarg ;;
818
819   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820   | --dataroo | --dataro | --datar)
821     ac_prev=datarootdir ;;
822   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824     datarootdir=$ac_optarg ;;
825
826   -disable-* | --disable-*)
827     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828     # Reject names that are not valid shell variable names.
829     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
830       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831    { (exit 1); exit 1; }; }
832     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
833     eval enable_$ac_feature=no ;;
834
835   -docdir | --docdir | --docdi | --doc | --do)
836     ac_prev=docdir ;;
837   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838     docdir=$ac_optarg ;;
839
840   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
841     ac_prev=dvidir ;;
842   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843     dvidir=$ac_optarg ;;
844
845   -enable-* | --enable-*)
846     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847     # Reject names that are not valid shell variable names.
848     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850    { (exit 1); exit 1; }; }
851     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852     eval enable_$ac_feature=\$ac_optarg ;;
853
854   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
855   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
856   | --exec | --exe | --ex)
857     ac_prev=exec_prefix ;;
858   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
859   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
860   | --exec=* | --exe=* | --ex=*)
861     exec_prefix=$ac_optarg ;;
862
863   -gas | --gas | --ga | --g)
864     # Obsolete; use --with-gas.
865     with_gas=yes ;;
866
867   -help | --help | --hel | --he | -h)
868     ac_init_help=long ;;
869   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
870     ac_init_help=recursive ;;
871   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
872     ac_init_help=short ;;
873
874   -host | --host | --hos | --ho)
875     ac_prev=host_alias ;;
876   -host=* | --host=* | --hos=* | --ho=*)
877     host_alias=$ac_optarg ;;
878
879   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
880     ac_prev=htmldir ;;
881   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
882   | --ht=*)
883     htmldir=$ac_optarg ;;
884
885   -includedir | --includedir | --includedi | --included | --include \
886   | --includ | --inclu | --incl | --inc)
887     ac_prev=includedir ;;
888   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
889   | --includ=* | --inclu=* | --incl=* | --inc=*)
890     includedir=$ac_optarg ;;
891
892   -infodir | --infodir | --infodi | --infod | --info | --inf)
893     ac_prev=infodir ;;
894   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
895     infodir=$ac_optarg ;;
896
897   -libdir | --libdir | --libdi | --libd)
898     ac_prev=libdir ;;
899   -libdir=* | --libdir=* | --libdi=* | --libd=*)
900     libdir=$ac_optarg ;;
901
902   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
903   | --libexe | --libex | --libe)
904     ac_prev=libexecdir ;;
905   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
906   | --libexe=* | --libex=* | --libe=*)
907     libexecdir=$ac_optarg ;;
908
909   -localedir | --localedir | --localedi | --localed | --locale)
910     ac_prev=localedir ;;
911   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
912     localedir=$ac_optarg ;;
913
914   -localstatedir | --localstatedir | --localstatedi | --localstated \
915   | --localstate | --localstat | --localsta | --localst | --locals)
916     ac_prev=localstatedir ;;
917   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
918   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
919     localstatedir=$ac_optarg ;;
920
921   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
922     ac_prev=mandir ;;
923   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
924     mandir=$ac_optarg ;;
925
926   -nfp | --nfp | --nf)
927     # Obsolete; use --without-fp.
928     with_fp=no ;;
929
930   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931   | --no-cr | --no-c | -n)
932     no_create=yes ;;
933
934   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936     no_recursion=yes ;;
937
938   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
939   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
940   | --oldin | --oldi | --old | --ol | --o)
941     ac_prev=oldincludedir ;;
942   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
943   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
944   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
945     oldincludedir=$ac_optarg ;;
946
947   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
948     ac_prev=prefix ;;
949   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950     prefix=$ac_optarg ;;
951
952   -program-prefix | --program-prefix | --program-prefi | --program-pref \
953   | --program-pre | --program-pr | --program-p)
954     ac_prev=program_prefix ;;
955   -program-prefix=* | --program-prefix=* | --program-prefi=* \
956   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
957     program_prefix=$ac_optarg ;;
958
959   -program-suffix | --program-suffix | --program-suffi | --program-suff \
960   | --program-suf | --program-su | --program-s)
961     ac_prev=program_suffix ;;
962   -program-suffix=* | --program-suffix=* | --program-suffi=* \
963   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
964     program_suffix=$ac_optarg ;;
965
966   -program-transform-name | --program-transform-name \
967   | --program-transform-nam | --program-transform-na \
968   | --program-transform-n | --program-transform- \
969   | --program-transform | --program-transfor \
970   | --program-transfo | --program-transf \
971   | --program-trans | --program-tran \
972   | --progr-tra | --program-tr | --program-t)
973     ac_prev=program_transform_name ;;
974   -program-transform-name=* | --program-transform-name=* \
975   | --program-transform-nam=* | --program-transform-na=* \
976   | --program-transform-n=* | --program-transform-=* \
977   | --program-transform=* | --program-transfor=* \
978   | --program-transfo=* | --program-transf=* \
979   | --program-trans=* | --program-tran=* \
980   | --progr-tra=* | --program-tr=* | --program-t=*)
981     program_transform_name=$ac_optarg ;;
982
983   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
984     ac_prev=pdfdir ;;
985   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986     pdfdir=$ac_optarg ;;
987
988   -psdir | --psdir | --psdi | --psd | --ps)
989     ac_prev=psdir ;;
990   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991     psdir=$ac_optarg ;;
992
993   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994   | -silent | --silent | --silen | --sile | --sil)
995     silent=yes ;;
996
997   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
998     ac_prev=sbindir ;;
999   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1000   | --sbi=* | --sb=*)
1001     sbindir=$ac_optarg ;;
1002
1003   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1004   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1005   | --sharedst | --shareds | --shared | --share | --shar \
1006   | --sha | --sh)
1007     ac_prev=sharedstatedir ;;
1008   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1009   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1010   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1011   | --sha=* | --sh=*)
1012     sharedstatedir=$ac_optarg ;;
1013
1014   -site | --site | --sit)
1015     ac_prev=site ;;
1016   -site=* | --site=* | --sit=*)
1017     site=$ac_optarg ;;
1018
1019   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1020     ac_prev=srcdir ;;
1021   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1022     srcdir=$ac_optarg ;;
1023
1024   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1025   | --syscon | --sysco | --sysc | --sys | --sy)
1026     ac_prev=sysconfdir ;;
1027   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1028   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1029     sysconfdir=$ac_optarg ;;
1030
1031   -target | --target | --targe | --targ | --tar | --ta | --t)
1032     ac_prev=target_alias ;;
1033   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1034     target_alias=$ac_optarg ;;
1035
1036   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037     verbose=yes ;;
1038
1039   -version | --version | --versio | --versi | --vers | -V)
1040     ac_init_version=: ;;
1041
1042   -with-* | --with-*)
1043     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044     # Reject names that are not valid shell variable names.
1045     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046       { echo "$as_me: error: invalid package name: $ac_package" >&2
1047    { (exit 1); exit 1; }; }
1048     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1049     eval with_$ac_package=\$ac_optarg ;;
1050
1051   -without-* | --without-*)
1052     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055       { echo "$as_me: error: invalid package name: $ac_package" >&2
1056    { (exit 1); exit 1; }; }
1057     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058     eval with_$ac_package=no ;;
1059
1060   --x)
1061     # Obsolete; use --with-x.
1062     with_x=yes ;;
1063
1064   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065   | --x-incl | --x-inc | --x-in | --x-i)
1066     ac_prev=x_includes ;;
1067   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069     x_includes=$ac_optarg ;;
1070
1071   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073     ac_prev=x_libraries ;;
1074   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076     x_libraries=$ac_optarg ;;
1077
1078   -*) { echo "$as_me: error: unrecognized option: $ac_option
1079 Try \`$0 --help' for more information." >&2
1080    { (exit 1); exit 1; }; }
1081     ;;
1082
1083   *=*)
1084     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1085     # Reject names that are not valid shell variable names.
1086     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1087       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1088    { (exit 1); exit 1; }; }
1089     eval $ac_envvar=\$ac_optarg
1090     export $ac_envvar ;;
1091
1092   *)
1093     # FIXME: should be removed in autoconf 3.0.
1094     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1098     ;;
1099
1100   esac
1101 done
1102
1103 if test -n "$ac_prev"; then
1104   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105   { echo "$as_me: error: missing argument to $ac_option" >&2
1106    { (exit 1); exit 1; }; }
1107 fi
1108
1109 # Be sure to have absolute directory names.
1110 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111                 datadir sysconfdir sharedstatedir localstatedir includedir \
1112                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113                 libdir localedir mandir
1114 do
1115   eval ac_val=\$$ac_var
1116   case $ac_val in
1117     [\\/$]* | ?:[\\/]* )  continue;;
1118     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1119   esac
1120   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1121    { (exit 1); exit 1; }; }
1122 done
1123
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1127 build=$build_alias
1128 host=$host_alias
1129 target=$target_alias
1130
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x; then
1133   if test "x$build_alias" = x; then
1134     cross_compiling=maybe
1135     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1136     If a cross compiler is detected then cross compile mode will be used." >&2
1137   elif test "x$build_alias" != "x$host_alias"; then
1138     cross_compiling=yes
1139   fi
1140 fi
1141
1142 ac_tool_prefix=
1143 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1144
1145 test "$silent" = yes && exec 6>/dev/null
1146
1147
1148 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1149 ac_ls_di=`ls -di .` &&
1150 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1151   { echo "$as_me: error: Working directory cannot be determined" >&2
1152    { (exit 1); exit 1; }; }
1153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154   { echo "$as_me: error: pwd does not report name of working directory" >&2
1155    { (exit 1); exit 1; }; }
1156
1157
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160   ac_srcdir_defaulted=yes
1161   # Try the directory containing this script, then the parent directory.
1162   ac_confdir=`$as_dirname -- "$0" ||
1163 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164          X"$0" : 'X\(//\)[^/]' \| \
1165          X"$0" : 'X\(//\)$' \| \
1166          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1167 echo X"$0" |
1168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1169             s//\1/
1170             q
1171           }
1172           /^X\(\/\/\)[^/].*/{
1173             s//\1/
1174             q
1175           }
1176           /^X\(\/\/\)$/{
1177             s//\1/
1178             q
1179           }
1180           /^X\(\/\).*/{
1181             s//\1/
1182             q
1183           }
1184           s/.*/./; q'`
1185   srcdir=$ac_confdir
1186   if test ! -r "$srcdir/$ac_unique_file"; then
1187     srcdir=..
1188   fi
1189 else
1190   ac_srcdir_defaulted=no
1191 fi
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1195    { (exit 1); exit 1; }; }
1196 fi
1197 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1198 ac_abs_confdir=`(
1199         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1200    { (exit 1); exit 1; }; }
1201         pwd)`
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204   srcdir=.
1205 fi
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1209 case $srcdir in
1210 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1211 esac
1212 for ac_var in $ac_precious_vars; do
1213   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1214   eval ac_env_${ac_var}_value=\$${ac_var}
1215   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1216   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1217 done
1218
1219 #
1220 # Report the --help message.
1221 #
1222 if test "$ac_init_help" = "long"; then
1223   # Omit some internal or obsolete options to make the list less imposing.
1224   # This message is too long to be a string in the A/UX 3.1 sh.
1225   cat <<_ACEOF
1226 \`configure' configures this package to adapt to many kinds of systems.
1227
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1229
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE.  See below for descriptions of some of the useful variables.
1232
1233 Defaults for the options are specified in brackets.
1234
1235 Configuration:
1236   -h, --help              display this help and exit
1237       --help=short        display options specific to this package
1238       --help=recursive    display the short help of all the included packages
1239   -V, --version           display version information and exit
1240   -q, --quiet, --silent   do not print \`checking...' messages
1241       --cache-file=FILE   cache test results in FILE [disabled]
1242   -C, --config-cache      alias for \`--cache-file=config.cache'
1243   -n, --no-create         do not create output files
1244       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1245
1246 Installation directories:
1247   --prefix=PREFIX         install architecture-independent files in PREFIX
1248                           [$ac_default_prefix]
1249   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1250                           [PREFIX]
1251
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1256
1257 For better control, use the options below.
1258
1259 Fine tuning of the installation directories:
1260   --bindir=DIR           user executables [EPREFIX/bin]
1261   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1262   --libexecdir=DIR       program executables [EPREFIX/libexec]
1263   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1264   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1265   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1266   --libdir=DIR           object code libraries [EPREFIX/lib]
1267   --includedir=DIR       C header files [PREFIX/include]
1268   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1269   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1270   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1271   --infodir=DIR          info documentation [DATAROOTDIR/info]
1272   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1273   --mandir=DIR           man documentation [DATAROOTDIR/man]
1274   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1275   --htmldir=DIR          html documentation [DOCDIR]
1276   --dvidir=DIR           dvi documentation [DOCDIR]
1277   --pdfdir=DIR           pdf documentation [DOCDIR]
1278   --psdir=DIR            ps documentation [DOCDIR]
1279 _ACEOF
1280
1281   cat <<\_ACEOF
1282
1283 Program names:
1284   --program-prefix=PREFIX            prepend PREFIX to installed program names
1285   --program-suffix=SUFFIX            append SUFFIX to installed program names
1286   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1287
1288 System types:
1289   --build=BUILD     configure for building on BUILD [guessed]
1290   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1291   --target=TARGET   configure for building compilers for TARGET [HOST]
1292 _ACEOF
1293 fi
1294
1295 if test -n "$ac_init_help"; then
1296
1297   cat <<\_ACEOF
1298
1299 Optional Features:
1300   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1301   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1302   --enable-checkmem       turn on ccmalloc debugging
1303   --enable-debug          turn on debugging
1304   --enable-profiling      turn on profiling
1305   --enable-warnings        turn on compiler warnings
1306   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1307   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1308
1309 Some influential environment variables:
1310   CC          C compiler command
1311   CFLAGS      C compiler flags
1312   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1313               nonstandard directory <lib dir>
1314   LIBS        libraries to pass to the linker, e.g. -l<library>
1315   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1316               you have headers in a nonstandard directory <include dir>
1317   CXX         C++ compiler command
1318   CXXFLAGS    C++ compiler flags
1319   CPP         C preprocessor
1320
1321 Use these variables to override the choices made by `configure' or to help
1322 it to find libraries and programs with nonstandard names/locations.
1323
1324 _ACEOF
1325 ac_status=$?
1326 fi
1327
1328 if test "$ac_init_help" = "recursive"; then
1329   # If there are subdirs, report their specific --help.
1330   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1331     test -d "$ac_dir" || continue
1332     ac_builddir=.
1333
1334 case "$ac_dir" in
1335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1336 *)
1337   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1338   # A ".." for each directory in $ac_dir_suffix.
1339   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1340   case $ac_top_builddir_sub in
1341   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1342   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1343   esac ;;
1344 esac
1345 ac_abs_top_builddir=$ac_pwd
1346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1347 # for backward compatibility:
1348 ac_top_builddir=$ac_top_build_prefix
1349
1350 case $srcdir in
1351   .)  # We are building in place.
1352     ac_srcdir=.
1353     ac_top_srcdir=$ac_top_builddir_sub
1354     ac_abs_top_srcdir=$ac_pwd ;;
1355   [\\/]* | ?:[\\/]* )  # Absolute name.
1356     ac_srcdir=$srcdir$ac_dir_suffix;
1357     ac_top_srcdir=$srcdir
1358     ac_abs_top_srcdir=$srcdir ;;
1359   *) # Relative name.
1360     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1361     ac_top_srcdir=$ac_top_build_prefix$srcdir
1362     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1363 esac
1364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1365
1366     cd "$ac_dir" || { ac_status=$?; continue; }
1367     # Check for guested configure.
1368     if test -f "$ac_srcdir/configure.gnu"; then
1369       echo &&
1370       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1371     elif test -f "$ac_srcdir/configure"; then
1372       echo &&
1373       $SHELL "$ac_srcdir/configure" --help=recursive
1374     else
1375       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1376     fi || ac_status=$?
1377     cd "$ac_pwd" || { ac_status=$?; break; }
1378   done
1379 fi
1380
1381 test -n "$ac_init_help" && exit $ac_status
1382 if $ac_init_version; then
1383   cat <<\_ACEOF
1384 configure
1385 generated by GNU Autoconf 2.61
1386
1387 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1388 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1389 This configure script is free software; the Free Software Foundation
1390 gives unlimited permission to copy, distribute and modify it.
1391 _ACEOF
1392   exit
1393 fi
1394 cat >config.log <<_ACEOF
1395 This file contains any messages produced by compilers while
1396 running configure, to aid debugging if configure makes a mistake.
1397
1398 It was created by $as_me, which was
1399 generated by GNU Autoconf 2.61.  Invocation command line was
1400
1401   $ $0 $@
1402
1403 _ACEOF
1404 exec 5>>config.log
1405 {
1406 cat <<_ASUNAME
1407 ## --------- ##
1408 ## Platform. ##
1409 ## --------- ##
1410
1411 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1412 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1413 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1414 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1415 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1416
1417 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1418 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1419
1420 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1421 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1422 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1423 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1424 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1425 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1426 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1427
1428 _ASUNAME
1429
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1432 do
1433   IFS=$as_save_IFS
1434   test -z "$as_dir" && as_dir=.
1435   echo "PATH: $as_dir"
1436 done
1437 IFS=$as_save_IFS
1438
1439 } >&5
1440
1441 cat >&5 <<_ACEOF
1442
1443
1444 ## ----------- ##
1445 ## Core tests. ##
1446 ## ----------- ##
1447
1448 _ACEOF
1449
1450
1451 # Keep a trace of the command line.
1452 # Strip out --no-create and --no-recursion so they do not pile up.
1453 # Strip out --silent because we don't want to record it for future runs.
1454 # Also quote any args containing shell meta-characters.
1455 # Make two passes to allow for proper duplicate-argument suppression.
1456 ac_configure_args=
1457 ac_configure_args0=
1458 ac_configure_args1=
1459 ac_must_keep_next=false
1460 for ac_pass in 1 2
1461 do
1462   for ac_arg
1463   do
1464     case $ac_arg in
1465     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1466     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1467     | -silent | --silent | --silen | --sile | --sil)
1468       continue ;;
1469     *\'*)
1470       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1471     esac
1472     case $ac_pass in
1473     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1474     2)
1475       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1476       if test $ac_must_keep_next = true; then
1477         ac_must_keep_next=false # Got value, back to normal.
1478       else
1479         case $ac_arg in
1480           *=* | --config-cache | -C | -disable-* | --disable-* \
1481           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1482           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1483           | -with-* | --with-* | -without-* | --without-* | --x)
1484             case "$ac_configure_args0 " in
1485               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1486             esac
1487             ;;
1488           -* ) ac_must_keep_next=true ;;
1489         esac
1490       fi
1491       ac_configure_args="$ac_configure_args '$ac_arg'"
1492       ;;
1493     esac
1494   done
1495 done
1496 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1497 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1498
1499 # When interrupted or exit'd, cleanup temporary files, and complete
1500 # config.log.  We remove comments because anyway the quotes in there
1501 # would cause problems or look ugly.
1502 # WARNING: Use '\'' to represent an apostrophe within the trap.
1503 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1504 trap 'exit_status=$?
1505   # Save into config.log some information that might help in debugging.
1506   {
1507     echo
1508
1509     cat <<\_ASBOX
1510 ## ---------------- ##
1511 ## Cache variables. ##
1512 ## ---------------- ##
1513 _ASBOX
1514     echo
1515     # The following way of writing the cache mishandles newlines in values,
1516 (
1517   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1518     eval ac_val=\$$ac_var
1519     case $ac_val in #(
1520     *${as_nl}*)
1521       case $ac_var in #(
1522       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1523 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1524       esac
1525       case $ac_var in #(
1526       _ | IFS | as_nl) ;; #(
1527       *) $as_unset $ac_var ;;
1528       esac ;;
1529     esac
1530   done
1531   (set) 2>&1 |
1532     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1533     *${as_nl}ac_space=\ *)
1534       sed -n \
1535         "s/'\''/'\''\\\\'\'''\''/g;
1536           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1537       ;; #(
1538     *)
1539       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1540       ;;
1541     esac |
1542     sort
1543 )
1544     echo
1545
1546     cat <<\_ASBOX
1547 ## ----------------- ##
1548 ## Output variables. ##
1549 ## ----------------- ##
1550 _ASBOX
1551     echo
1552     for ac_var in $ac_subst_vars
1553     do
1554       eval ac_val=\$$ac_var
1555       case $ac_val in
1556       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1557       esac
1558       echo "$ac_var='\''$ac_val'\''"
1559     done | sort
1560     echo
1561
1562     if test -n "$ac_subst_files"; then
1563       cat <<\_ASBOX
1564 ## ------------------- ##
1565 ## File substitutions. ##
1566 ## ------------------- ##
1567 _ASBOX
1568       echo
1569       for ac_var in $ac_subst_files
1570       do
1571         eval ac_val=\$$ac_var
1572         case $ac_val in
1573         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1574         esac
1575         echo "$ac_var='\''$ac_val'\''"
1576       done | sort
1577       echo
1578     fi
1579
1580     if test -s confdefs.h; then
1581       cat <<\_ASBOX
1582 ## ----------- ##
1583 ## confdefs.h. ##
1584 ## ----------- ##
1585 _ASBOX
1586       echo
1587       cat confdefs.h
1588       echo
1589     fi
1590     test "$ac_signal" != 0 &&
1591       echo "$as_me: caught signal $ac_signal"
1592     echo "$as_me: exit $exit_status"
1593   } >&5
1594   rm -f core *.core core.conftest.* &&
1595     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1596     exit $exit_status
1597 ' 0
1598 for ac_signal in 1 2 13 15; do
1599   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1600 done
1601 ac_signal=0
1602
1603 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1604 rm -f -r conftest* confdefs.h
1605
1606 # Predefined preprocessor variables.
1607
1608 cat >>confdefs.h <<_ACEOF
1609 #define PACKAGE_NAME "$PACKAGE_NAME"
1610 _ACEOF
1611
1612
1613 cat >>confdefs.h <<_ACEOF
1614 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1615 _ACEOF
1616
1617
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1620 _ACEOF
1621
1622
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_STRING "$PACKAGE_STRING"
1625 _ACEOF
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1630 _ACEOF
1631
1632
1633 # Let the site file select an alternate cache file if it wants to.
1634 # Prefer explicitly selected file to automatically selected ones.
1635 if test -n "$CONFIG_SITE"; then
1636   set x "$CONFIG_SITE"
1637 elif test "x$prefix" != xNONE; then
1638   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1639 else
1640   set x "$ac_default_prefix/share/config.site" \
1641         "$ac_default_prefix/etc/config.site"
1642 fi
1643 shift
1644 for ac_site_file
1645 do
1646   if test -r "$ac_site_file"; then
1647     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1648 echo "$as_me: loading site script $ac_site_file" >&6;}
1649     sed 's/^/| /' "$ac_site_file" >&5
1650     . "$ac_site_file"
1651   fi
1652 done
1653
1654 if test -r "$cache_file"; then
1655   # Some versions of bash will fail to source /dev/null (special
1656   # files actually), so we avoid doing that.
1657   if test -f "$cache_file"; then
1658     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1659 echo "$as_me: loading cache $cache_file" >&6;}
1660     case $cache_file in
1661       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1662       *)                      . "./$cache_file";;
1663     esac
1664   fi
1665 else
1666   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1667 echo "$as_me: creating cache $cache_file" >&6;}
1668   >$cache_file
1669 fi
1670
1671 # Check that the precious variables saved in the cache have kept the same
1672 # value.
1673 ac_cache_corrupted=false
1674 for ac_var in $ac_precious_vars; do
1675   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1676   eval ac_new_set=\$ac_env_${ac_var}_set
1677   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1678   eval ac_new_val=\$ac_env_${ac_var}_value
1679   case $ac_old_set,$ac_new_set in
1680     set,)
1681       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1682 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1683       ac_cache_corrupted=: ;;
1684     ,set)
1685       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1686 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1687       ac_cache_corrupted=: ;;
1688     ,);;
1689     *)
1690       if test "x$ac_old_val" != "x$ac_new_val"; then
1691         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1692 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1693         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1694 echo "$as_me:   former value:  $ac_old_val" >&2;}
1695         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1696 echo "$as_me:   current value: $ac_new_val" >&2;}
1697         ac_cache_corrupted=:
1698       fi;;
1699   esac
1700   # Pass precious variables to config.status.
1701   if test "$ac_new_set" = set; then
1702     case $ac_new_val in
1703     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1704     *) ac_arg=$ac_var=$ac_new_val ;;
1705     esac
1706     case " $ac_configure_args " in
1707       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1708       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1709     esac
1710   fi
1711 done
1712 if $ac_cache_corrupted; then
1713   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1714 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1715   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1716 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1717    { (exit 1); exit 1; }; }
1718 fi
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736 ac_ext=c
1737 ac_cpp='$CPP $CPPFLAGS'
1738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1741
1742
1743
1744
1745 # Check whether --enable-checkmem was given.
1746 if test "${enable_checkmem+set}" = set; then
1747   enableval=$enable_checkmem; CHECKMEM=true
1748 fi
1749
1750 # Check whether --enable-debug was given.
1751 if test "${enable_debug+set}" = set; then
1752   enableval=$enable_debug; DEBUG=true
1753 fi
1754
1755 # Check whether --enable-profiling was given.
1756 if test "${enable_profiling+set}" = set; then
1757   enableval=$enable_profiling; PROFILING=true
1758 fi
1759
1760 # Check whether --enable-warnings was given.
1761 if test "${enable_warnings+set}" = set; then
1762   enableval=$enable_warnings; ENABLE_WARNINGS=true
1763 fi
1764
1765 # Check whether --enable-optimizations was given.
1766 if test "${enable_optimizations+set}" = set; then
1767   enableval=$enable_optimizations; OPTIMIZE=true
1768 fi
1769
1770 # Check whether --enable-lame was given.
1771 if test "${enable_lame+set}" = set; then
1772   enableval=$enable_lame; DISABLE_LAME=true
1773 fi
1774
1775
1776 PACKAGE=swftools
1777 VERSION=0.8.1
1778
1779
1780 # ------------------------------------------------------------------
1781
1782 if test "x${srcdir}" != "x."; then
1783     echo "--srcdir is not supported"
1784     exit 1
1785 fi
1786
1787 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1788 if test "x$ENABLE_WARNINGS" '!=' "x";then
1789     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1790 fi
1791
1792 if test "x$CHECKMEM" '!=' "x";then
1793     DEBUG=yes
1794 fi
1795 if test "x$PROFILING" '!=' "x";then
1796     DEBUG=yes
1797 fi
1798 if test "x$DEBUG" '!=' "x";then
1799     if test "x$PROFILING" = "x";then
1800         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1801         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1802         LDFLAGS="-g $LIBS"
1803     else
1804         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1805         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1806         LDFLAGS="-g -pg $LIBS"
1807     fi
1808 else if test "x$OPTIMIZE" '!=' "x"; then
1809     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1810     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1811 else
1812     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1813     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1814 fi
1815 fi
1816
1817 CFLAGS="-fPIC $CFLAGS"
1818 CXXFLAGS="-fPIC $CFLAGS"
1819
1820 #OLDGCC=1
1821 #if test "x$OLDGCC" '!=' "x";then
1822 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1823 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1824 #     CFLAGS="$CFLAGS -ansi -pendantic"
1825 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1826 #fi
1827
1828 export PACKAGE VERSION CFLAGS CXXFLAGS
1829
1830
1831 ac_aux_dir=
1832 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1833   if test -f "$ac_dir/install-sh"; then
1834     ac_aux_dir=$ac_dir
1835     ac_install_sh="$ac_aux_dir/install-sh -c"
1836     break
1837   elif test -f "$ac_dir/install.sh"; then
1838     ac_aux_dir=$ac_dir
1839     ac_install_sh="$ac_aux_dir/install.sh -c"
1840     break
1841   elif test -f "$ac_dir/shtool"; then
1842     ac_aux_dir=$ac_dir
1843     ac_install_sh="$ac_aux_dir/shtool install -c"
1844     break
1845   fi
1846 done
1847 if test -z "$ac_aux_dir"; then
1848   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1849 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1850    { (exit 1); exit 1; }; }
1851 fi
1852
1853 # These three variables are undocumented and unsupported,
1854 # and are intended to be withdrawn in a future Autoconf release.
1855 # They can cause serious problems if a builder's source tree is in a directory
1856 # whose full name contains unusual characters.
1857 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1858 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1859 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1860
1861
1862 # Make sure we can run config.sub.
1863 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1864   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1865 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1866    { (exit 1); exit 1; }; }
1867
1868 { echo "$as_me:$LINENO: checking build system type" >&5
1869 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1870 if test "${ac_cv_build+set}" = set; then
1871   echo $ECHO_N "(cached) $ECHO_C" >&6
1872 else
1873   ac_build_alias=$build_alias
1874 test "x$ac_build_alias" = x &&
1875   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1876 test "x$ac_build_alias" = x &&
1877   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1878 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1879    { (exit 1); exit 1; }; }
1880 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1881   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1882 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1883    { (exit 1); exit 1; }; }
1884
1885 fi
1886 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1887 echo "${ECHO_T}$ac_cv_build" >&6; }
1888 case $ac_cv_build in
1889 *-*-*) ;;
1890 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1891 echo "$as_me: error: invalid value of canonical build" >&2;}
1892    { (exit 1); exit 1; }; };;
1893 esac
1894 build=$ac_cv_build
1895 ac_save_IFS=$IFS; IFS='-'
1896 set x $ac_cv_build
1897 shift
1898 build_cpu=$1
1899 build_vendor=$2
1900 shift; shift
1901 # Remember, the first character of IFS is used to create $*,
1902 # except with old shells:
1903 build_os=$*
1904 IFS=$ac_save_IFS
1905 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1906
1907
1908 { echo "$as_me:$LINENO: checking host system type" >&5
1909 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1910 if test "${ac_cv_host+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test "x$host_alias" = x; then
1914   ac_cv_host=$ac_cv_build
1915 else
1916   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1917     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1918 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1919    { (exit 1); exit 1; }; }
1920 fi
1921
1922 fi
1923 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1924 echo "${ECHO_T}$ac_cv_host" >&6; }
1925 case $ac_cv_host in
1926 *-*-*) ;;
1927 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1928 echo "$as_me: error: invalid value of canonical host" >&2;}
1929    { (exit 1); exit 1; }; };;
1930 esac
1931 host=$ac_cv_host
1932 ac_save_IFS=$IFS; IFS='-'
1933 set x $ac_cv_host
1934 shift
1935 host_cpu=$1
1936 host_vendor=$2
1937 shift; shift
1938 # Remember, the first character of IFS is used to create $*,
1939 # except with old shells:
1940 host_os=$*
1941 IFS=$ac_save_IFS
1942 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1943
1944
1945
1946 SHARED="-shared"
1947 MACOSX=
1948 case $host_os in
1949     *darwin* )
1950         MACOSX=yes
1951         CFLAGS="$CFLAGS"
1952         CXXFLAGS="$CXXFLAGS -fno-rtti"
1953         SHARED="-bundle"
1954         # Use fink packages if available.
1955         #if test -d /sw/include && test -d /sw/lib; then
1956         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
1957         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
1958         #fi
1959         ;;
1960 esac
1961
1962
1963
1964  ac_ext=c
1965 ac_cpp='$CPP $CPPFLAGS'
1966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1969 if test -n "$ac_tool_prefix"; then
1970   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1971 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975   echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977   if test -n "$CC"; then
1978   ac_cv_prog_CC="$CC" # Let the user override the test.
1979 else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983   IFS=$as_save_IFS
1984   test -z "$as_dir" && as_dir=.
1985   for ac_exec_ext in '' $ac_executable_extensions; do
1986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1987     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1988     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989     break 2
1990   fi
1991 done
1992 done
1993 IFS=$as_save_IFS
1994
1995 fi
1996 fi
1997 CC=$ac_cv_prog_CC
1998 if test -n "$CC"; then
1999   { echo "$as_me:$LINENO: result: $CC" >&5
2000 echo "${ECHO_T}$CC" >&6; }
2001 else
2002   { echo "$as_me:$LINENO: result: no" >&5
2003 echo "${ECHO_T}no" >&6; }
2004 fi
2005
2006
2007 fi
2008 if test -z "$ac_cv_prog_CC"; then
2009   ac_ct_CC=$CC
2010   # Extract the first word of "gcc", so it can be a program name with args.
2011 set dummy gcc; ac_word=$2
2012 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2014 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2015   echo $ECHO_N "(cached) $ECHO_C" >&6
2016 else
2017   if test -n "$ac_ct_CC"; then
2018   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2019 else
2020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 for as_dir in $PATH
2022 do
2023   IFS=$as_save_IFS
2024   test -z "$as_dir" && as_dir=.
2025   for ac_exec_ext in '' $ac_executable_extensions; do
2026   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2027     ac_cv_prog_ac_ct_CC="gcc"
2028     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2029     break 2
2030   fi
2031 done
2032 done
2033 IFS=$as_save_IFS
2034
2035 fi
2036 fi
2037 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2038 if test -n "$ac_ct_CC"; then
2039   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2040 echo "${ECHO_T}$ac_ct_CC" >&6; }
2041 else
2042   { echo "$as_me:$LINENO: result: no" >&5
2043 echo "${ECHO_T}no" >&6; }
2044 fi
2045
2046   if test "x$ac_ct_CC" = x; then
2047     CC=""
2048   else
2049     case $cross_compiling:$ac_tool_warned in
2050 yes:)
2051 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2052 whose name does not start with the host triplet.  If you think this
2053 configuration is useful to you, please write to autoconf@gnu.org." >&5
2054 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2055 whose name does not start with the host triplet.  If you think this
2056 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2057 ac_tool_warned=yes ;;
2058 esac
2059     CC=$ac_ct_CC
2060   fi
2061 else
2062   CC="$ac_cv_prog_CC"
2063 fi
2064
2065 if test -z "$CC"; then
2066           if test -n "$ac_tool_prefix"; then
2067     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2068 set dummy ${ac_tool_prefix}cc; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072   echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074   if test -n "$CC"; then
2075   ac_cv_prog_CC="$CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   for ac_exec_ext in '' $ac_executable_extensions; do
2083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2084     ac_cv_prog_CC="${ac_tool_prefix}cc"
2085     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086     break 2
2087   fi
2088 done
2089 done
2090 IFS=$as_save_IFS
2091
2092 fi
2093 fi
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096   { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2098 else
2099   { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2101 fi
2102
2103
2104   fi
2105 fi
2106 if test -z "$CC"; then
2107   # Extract the first word of "cc", so it can be a program name with args.
2108 set dummy cc; ac_word=$2
2109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112   echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114   if test -n "$CC"; then
2115   ac_cv_prog_CC="$CC" # Let the user override the test.
2116 else
2117   ac_prog_rejected=no
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2120 do
2121   IFS=$as_save_IFS
2122   test -z "$as_dir" && as_dir=.
2123   for ac_exec_ext in '' $ac_executable_extensions; do
2124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2125     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2126        ac_prog_rejected=yes
2127        continue
2128      fi
2129     ac_cv_prog_CC="cc"
2130     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2131     break 2
2132   fi
2133 done
2134 done
2135 IFS=$as_save_IFS
2136
2137 if test $ac_prog_rejected = yes; then
2138   # We found a bogon in the path, so make sure we never use it.
2139   set dummy $ac_cv_prog_CC
2140   shift
2141   if test $# != 0; then
2142     # We chose a different compiler from the bogus one.
2143     # However, it has the same basename, so the bogon will be chosen
2144     # first if we set CC to just the basename; use the full file name.
2145     shift
2146     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2147   fi
2148 fi
2149 fi
2150 fi
2151 CC=$ac_cv_prog_CC
2152 if test -n "$CC"; then
2153   { echo "$as_me:$LINENO: result: $CC" >&5
2154 echo "${ECHO_T}$CC" >&6; }
2155 else
2156   { echo "$as_me:$LINENO: result: no" >&5
2157 echo "${ECHO_T}no" >&6; }
2158 fi
2159
2160
2161 fi
2162 if test -z "$CC"; then
2163   if test -n "$ac_tool_prefix"; then
2164   for ac_prog in cl.exe
2165   do
2166     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2167 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2170 if test "${ac_cv_prog_CC+set}" = set; then
2171   echo $ECHO_N "(cached) $ECHO_C" >&6
2172 else
2173   if test -n "$CC"; then
2174   ac_cv_prog_CC="$CC" # Let the user override the test.
2175 else
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179   IFS=$as_save_IFS
2180   test -z "$as_dir" && as_dir=.
2181   for ac_exec_ext in '' $ac_executable_extensions; do
2182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2183     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2184     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2185     break 2
2186   fi
2187 done
2188 done
2189 IFS=$as_save_IFS
2190
2191 fi
2192 fi
2193 CC=$ac_cv_prog_CC
2194 if test -n "$CC"; then
2195   { echo "$as_me:$LINENO: result: $CC" >&5
2196 echo "${ECHO_T}$CC" >&6; }
2197 else
2198   { echo "$as_me:$LINENO: result: no" >&5
2199 echo "${ECHO_T}no" >&6; }
2200 fi
2201
2202
2203     test -n "$CC" && break
2204   done
2205 fi
2206 if test -z "$CC"; then
2207   ac_ct_CC=$CC
2208   for ac_prog in cl.exe
2209 do
2210   # Extract the first word of "$ac_prog", so it can be a program name with args.
2211 set dummy $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_ac_ct_CC+set}" = set; then
2215   echo $ECHO_N "(cached) $ECHO_C" >&6
2216 else
2217   if test -n "$ac_ct_CC"; then
2218   ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="$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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2238 if test -n "$ac_ct_CC"; then
2239   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2240 echo "${ECHO_T}$ac_ct_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 "$ac_ct_CC" && break
2248 done
2249
2250   if test "x$ac_ct_CC" = x; then
2251     CC=""
2252   else
2253     case $cross_compiling:$ac_tool_warned in
2254 yes:)
2255 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2256 whose name does not start with the host triplet.  If you think this
2257 configuration is useful to you, please write to autoconf@gnu.org." >&5
2258 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2259 whose name does not start with the host triplet.  If you think this
2260 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2261 ac_tool_warned=yes ;;
2262 esac
2263     CC=$ac_ct_CC
2264   fi
2265 fi
2266
2267 fi
2268
2269
2270 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: no acceptable C compiler found in \$PATH
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275
2276 # Provide some information about the compiler.
2277 echo "$as_me:$LINENO: checking for C compiler version" >&5
2278 ac_compiler=`set X $ac_compile; echo $2`
2279 { (ac_try="$ac_compiler --version >&5"
2280 case "(($ac_try" in
2281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2282   *) ac_try_echo=$ac_try;;
2283 esac
2284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2285   (eval "$ac_compiler --version >&5") 2>&5
2286   ac_status=$?
2287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288   (exit $ac_status); }
2289 { (ac_try="$ac_compiler -v >&5"
2290 case "(($ac_try" in
2291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2292   *) ac_try_echo=$ac_try;;
2293 esac
2294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2295   (eval "$ac_compiler -v >&5") 2>&5
2296   ac_status=$?
2297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298   (exit $ac_status); }
2299 { (ac_try="$ac_compiler -V >&5"
2300 case "(($ac_try" in
2301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302   *) ac_try_echo=$ac_try;;
2303 esac
2304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2305   (eval "$ac_compiler -V >&5") 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }
2309
2310 cat >conftest.$ac_ext <<_ACEOF
2311 /* confdefs.h.  */
2312 _ACEOF
2313 cat confdefs.h >>conftest.$ac_ext
2314 cat >>conftest.$ac_ext <<_ACEOF
2315 /* end confdefs.h.  */
2316
2317 int
2318 main ()
2319 {
2320
2321   ;
2322   return 0;
2323 }
2324 _ACEOF
2325 ac_clean_files_save=$ac_clean_files
2326 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2327 # Try to create an executable without -o first, disregard a.out.
2328 # It will help us diagnose broken compilers, and finding out an intuition
2329 # of exeext.
2330 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2331 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2332 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2333 #
2334 # List of possible output files, starting from the most likely.
2335 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2336 # only as a last resort.  b.out is created by i960 compilers.
2337 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2338 #
2339 # The IRIX 6 linker writes into existing files which may not be
2340 # executable, retaining their permissions.  Remove them first so a
2341 # subsequent execution test works.
2342 ac_rmfiles=
2343 for ac_file in $ac_files
2344 do
2345   case $ac_file in
2346     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2347     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2348   esac
2349 done
2350 rm -f $ac_rmfiles
2351
2352 if { (ac_try="$ac_link_default"
2353 case "(($ac_try" in
2354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355   *) ac_try_echo=$ac_try;;
2356 esac
2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2358   (eval "$ac_link_default") 2>&5
2359   ac_status=$?
2360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361   (exit $ac_status); }; then
2362   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2363 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2364 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2365 # so that the user can short-circuit this test for compilers unknown to
2366 # Autoconf.
2367 for ac_file in $ac_files ''
2368 do
2369   test -f "$ac_file" || continue
2370   case $ac_file in
2371     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2372         ;;
2373     [ab].out )
2374         # We found the default executable, but exeext='' is most
2375         # certainly right.
2376         break;;
2377     *.* )
2378         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2379         then :; else
2380            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2381         fi
2382         # We set ac_cv_exeext here because the later test for it is not
2383         # safe: cross compilers may not add the suffix if given an `-o'
2384         # argument, so we may need to know it at that point already.
2385         # Even if this section looks crufty: it has the advantage of
2386         # actually working.
2387         break;;
2388     * )
2389         break;;
2390   esac
2391 done
2392 test "$ac_cv_exeext" = no && ac_cv_exeext=
2393
2394 else
2395   ac_file=''
2396 fi
2397
2398 { echo "$as_me:$LINENO: result: $ac_file" >&5
2399 echo "${ECHO_T}$ac_file" >&6; }
2400 if test -z "$ac_file"; then
2401   echo "$as_me: failed program was:" >&5
2402 sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2405 See \`config.log' for more details." >&5
2406 echo "$as_me: error: C compiler cannot create executables
2407 See \`config.log' for more details." >&2;}
2408    { (exit 77); exit 77; }; }
2409 fi
2410
2411 ac_exeext=$ac_cv_exeext
2412
2413 # Check that the compiler produces executables we can run.  If not, either
2414 # the compiler is broken, or we cross compile.
2415 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2416 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2417 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2418 # If not cross compiling, check that we can run a simple program.
2419 if test "$cross_compiling" != yes; then
2420   if { ac_try='./$ac_file'
2421   { (case "(($ac_try" in
2422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2423   *) ac_try_echo=$ac_try;;
2424 esac
2425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2426   (eval "$ac_try") 2>&5
2427   ac_status=$?
2428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429   (exit $ac_status); }; }; then
2430     cross_compiling=no
2431   else
2432     if test "$cross_compiling" = maybe; then
2433         cross_compiling=yes
2434     else
2435         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2436 If you meant to cross compile, use \`--host'.
2437 See \`config.log' for more details." >&5
2438 echo "$as_me: error: cannot run C compiled programs.
2439 If you meant to cross compile, use \`--host'.
2440 See \`config.log' for more details." >&2;}
2441    { (exit 1); exit 1; }; }
2442     fi
2443   fi
2444 fi
2445 { echo "$as_me:$LINENO: result: yes" >&5
2446 echo "${ECHO_T}yes" >&6; }
2447
2448 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2449 ac_clean_files=$ac_clean_files_save
2450 # Check that the compiler produces executables we can run.  If not, either
2451 # the compiler is broken, or we cross compile.
2452 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2453 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2454 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2455 echo "${ECHO_T}$cross_compiling" >&6; }
2456
2457 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2458 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2459 if { (ac_try="$ac_link"
2460 case "(($ac_try" in
2461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462   *) ac_try_echo=$ac_try;;
2463 esac
2464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2465   (eval "$ac_link") 2>&5
2466   ac_status=$?
2467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; then
2469   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2470 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2471 # work properly (i.e., refer to `conftest.exe'), while it won't with
2472 # `rm'.
2473 for ac_file in conftest.exe conftest conftest.*; do
2474   test -f "$ac_file" || continue
2475   case $ac_file in
2476     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2477     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2478           break;;
2479     * ) break;;
2480   esac
2481 done
2482 else
2483   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2484 See \`config.log' for more details." >&5
2485 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2486 See \`config.log' for more details." >&2;}
2487    { (exit 1); exit 1; }; }
2488 fi
2489
2490 rm -f conftest$ac_cv_exeext
2491 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2492 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2493
2494 rm -f conftest.$ac_ext
2495 EXEEXT=$ac_cv_exeext
2496 ac_exeext=$EXEEXT
2497 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2498 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2499 if test "${ac_cv_objext+set}" = set; then
2500   echo $ECHO_N "(cached) $ECHO_C" >&6
2501 else
2502   cat >conftest.$ac_ext <<_ACEOF
2503 /* confdefs.h.  */
2504 _ACEOF
2505 cat confdefs.h >>conftest.$ac_ext
2506 cat >>conftest.$ac_ext <<_ACEOF
2507 /* end confdefs.h.  */
2508
2509 int
2510 main ()
2511 {
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 rm -f conftest.o conftest.obj
2518 if { (ac_try="$ac_compile"
2519 case "(($ac_try" in
2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521   *) ac_try_echo=$ac_try;;
2522 esac
2523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524   (eval "$ac_compile") 2>&5
2525   ac_status=$?
2526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527   (exit $ac_status); }; then
2528   for ac_file in conftest.o conftest.obj conftest.*; do
2529   test -f "$ac_file" || continue;
2530   case $ac_file in
2531     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2532     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2533        break;;
2534   esac
2535 done
2536 else
2537   echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2541 See \`config.log' for more details." >&5
2542 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2543 See \`config.log' for more details." >&2;}
2544    { (exit 1); exit 1; }; }
2545 fi
2546
2547 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2548 fi
2549 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2550 echo "${ECHO_T}$ac_cv_objext" >&6; }
2551 OBJEXT=$ac_cv_objext
2552 ac_objext=$OBJEXT
2553 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2554 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2555 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2556   echo $ECHO_N "(cached) $ECHO_C" >&6
2557 else
2558   cat >conftest.$ac_ext <<_ACEOF
2559 /* confdefs.h.  */
2560 _ACEOF
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h.  */
2564
2565 int
2566 main ()
2567 {
2568 #ifndef __GNUC__
2569        choke me
2570 #endif
2571
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 rm -f conftest.$ac_objext
2577 if { (ac_try="$ac_compile"
2578 case "(($ac_try" in
2579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580   *) ac_try_echo=$ac_try;;
2581 esac
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583   (eval "$ac_compile") 2>conftest.er1
2584   ac_status=$?
2585   grep -v '^ *+' conftest.er1 >conftest.err
2586   rm -f conftest.er1
2587   cat conftest.err >&5
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); } && {
2590          test -z "$ac_c_werror_flag" ||
2591          test ! -s conftest.err
2592        } && test -s conftest.$ac_objext; then
2593   ac_compiler_gnu=yes
2594 else
2595   echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2597
2598         ac_compiler_gnu=no
2599 fi
2600
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2603
2604 fi
2605 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2606 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2607 GCC=`test $ac_compiler_gnu = yes && echo yes`
2608 ac_test_CFLAGS=${CFLAGS+set}
2609 ac_save_CFLAGS=$CFLAGS
2610 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2611 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2612 if test "${ac_cv_prog_cc_g+set}" = set; then
2613   echo $ECHO_N "(cached) $ECHO_C" >&6
2614 else
2615   ac_save_c_werror_flag=$ac_c_werror_flag
2616    ac_c_werror_flag=yes
2617    ac_cv_prog_cc_g=no
2618    CFLAGS="-g"
2619    cat >conftest.$ac_ext <<_ACEOF
2620 /* confdefs.h.  */
2621 _ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h.  */
2625
2626 int
2627 main ()
2628 {
2629
2630   ;
2631   return 0;
2632 }
2633 _ACEOF
2634 rm -f conftest.$ac_objext
2635 if { (ac_try="$ac_compile"
2636 case "(($ac_try" in
2637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638   *) ac_try_echo=$ac_try;;
2639 esac
2640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2641   (eval "$ac_compile") 2>conftest.er1
2642   ac_status=$?
2643   grep -v '^ *+' conftest.er1 >conftest.err
2644   rm -f conftest.er1
2645   cat conftest.err >&5
2646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647   (exit $ac_status); } && {
2648          test -z "$ac_c_werror_flag" ||
2649          test ! -s conftest.err
2650        } && test -s conftest.$ac_objext; then
2651   ac_cv_prog_cc_g=yes
2652 else
2653   echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656         CFLAGS=""
2657       cat >conftest.$ac_ext <<_ACEOF
2658 /* confdefs.h.  */
2659 _ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h.  */
2663
2664 int
2665 main ()
2666 {
2667
2668   ;
2669   return 0;
2670 }
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (ac_try="$ac_compile"
2674 case "(($ac_try" in
2675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676   *) ac_try_echo=$ac_try;;
2677 esac
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679   (eval "$ac_compile") 2>conftest.er1
2680   ac_status=$?
2681   grep -v '^ *+' conftest.er1 >conftest.err
2682   rm -f conftest.er1
2683   cat conftest.err >&5
2684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685   (exit $ac_status); } && {
2686          test -z "$ac_c_werror_flag" ||
2687          test ! -s conftest.err
2688        } && test -s conftest.$ac_objext; then
2689   :
2690 else
2691   echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2693
2694         ac_c_werror_flag=$ac_save_c_werror_flag
2695          CFLAGS="-g"
2696          cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702
2703 int
2704 main ()
2705 {
2706
2707   ;
2708   return 0;
2709 }
2710 _ACEOF
2711 rm -f conftest.$ac_objext
2712 if { (ac_try="$ac_compile"
2713 case "(($ac_try" in
2714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715   *) ac_try_echo=$ac_try;;
2716 esac
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718   (eval "$ac_compile") 2>conftest.er1
2719   ac_status=$?
2720   grep -v '^ *+' conftest.er1 >conftest.err
2721   rm -f conftest.er1
2722   cat conftest.err >&5
2723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724   (exit $ac_status); } && {
2725          test -z "$ac_c_werror_flag" ||
2726          test ! -s conftest.err
2727        } && test -s conftest.$ac_objext; then
2728   ac_cv_prog_cc_g=yes
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733
2734 fi
2735
2736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2737 fi
2738
2739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 fi
2741
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2743    ac_c_werror_flag=$ac_save_c_werror_flag
2744 fi
2745 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2746 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2747 if test "$ac_test_CFLAGS" = set; then
2748   CFLAGS=$ac_save_CFLAGS
2749 elif test $ac_cv_prog_cc_g = yes; then
2750   if test "$GCC" = yes; then
2751     CFLAGS="-g -O2"
2752   else
2753     CFLAGS="-g"
2754   fi
2755 else
2756   if test "$GCC" = yes; then
2757     CFLAGS="-O2"
2758   else
2759     CFLAGS=
2760   fi
2761 fi
2762 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2763 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2764 if test "${ac_cv_prog_cc_c89+set}" = set; then
2765   echo $ECHO_N "(cached) $ECHO_C" >&6
2766 else
2767   ac_cv_prog_cc_c89=no
2768 ac_save_CC=$CC
2769 cat >conftest.$ac_ext <<_ACEOF
2770 /* confdefs.h.  */
2771 _ACEOF
2772 cat confdefs.h >>conftest.$ac_ext
2773 cat >>conftest.$ac_ext <<_ACEOF
2774 /* end confdefs.h.  */
2775 #include <stdarg.h>
2776 #include <stdio.h>
2777 #include <sys/types.h>
2778 #include <sys/stat.h>
2779 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2780 struct buf { int x; };
2781 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2782 static char *e (p, i)
2783      char **p;
2784      int i;
2785 {
2786   return p[i];
2787 }
2788 static char *f (char * (*g) (char **, int), char **p, ...)
2789 {
2790   char *s;
2791   va_list v;
2792   va_start (v,p);
2793   s = g (p, va_arg (v,int));
2794   va_end (v);
2795   return s;
2796 }
2797
2798 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2799    function prototypes and stuff, but not '\xHH' hex character constants.
2800    These don't provoke an error unfortunately, instead are silently treated
2801    as 'x'.  The following induces an error, until -std is added to get
2802    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2803    array size at least.  It's necessary to write '\x00'==0 to get something
2804    that's true only with -std.  */
2805 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2806
2807 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2808    inside strings and character constants.  */
2809 #define FOO(x) 'x'
2810 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2811
2812 int test (int i, double x);
2813 struct s1 {int (*f) (int a);};
2814 struct s2 {int (*f) (double a);};
2815 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2816 int argc;
2817 char **argv;
2818 int
2819 main ()
2820 {
2821 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2822   ;
2823   return 0;
2824 }
2825 _ACEOF
2826 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2827         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2828 do
2829   CC="$ac_save_CC $ac_arg"
2830   rm -f conftest.$ac_objext
2831 if { (ac_try="$ac_compile"
2832 case "(($ac_try" in
2833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2834   *) ac_try_echo=$ac_try;;
2835 esac
2836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2837   (eval "$ac_compile") 2>conftest.er1
2838   ac_status=$?
2839   grep -v '^ *+' conftest.er1 >conftest.err
2840   rm -f conftest.er1
2841   cat conftest.err >&5
2842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843   (exit $ac_status); } && {
2844          test -z "$ac_c_werror_flag" ||
2845          test ! -s conftest.err
2846        } && test -s conftest.$ac_objext; then
2847   ac_cv_prog_cc_c89=$ac_arg
2848 else
2849   echo "$as_me: failed program was:" >&5
2850 sed 's/^/| /' conftest.$ac_ext >&5
2851
2852
2853 fi
2854
2855 rm -f core conftest.err conftest.$ac_objext
2856   test "x$ac_cv_prog_cc_c89" != "xno" && break
2857 done
2858 rm -f conftest.$ac_ext
2859 CC=$ac_save_CC
2860
2861 fi
2862 # AC_CACHE_VAL
2863 case "x$ac_cv_prog_cc_c89" in
2864   x)
2865     { echo "$as_me:$LINENO: result: none needed" >&5
2866 echo "${ECHO_T}none needed" >&6; } ;;
2867   xno)
2868     { echo "$as_me:$LINENO: result: unsupported" >&5
2869 echo "${ECHO_T}unsupported" >&6; } ;;
2870   *)
2871     CC="$CC $ac_cv_prog_cc_c89"
2872     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2873 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2874 esac
2875
2876
2877 ac_ext=c
2878 ac_cpp='$CPP $CPPFLAGS'
2879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2882
2883  ac_ext=cpp
2884 ac_cpp='$CXXCPP $CPPFLAGS'
2885 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2886 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2887 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2888 if test -z "$CXX"; then
2889   if test -n "$CCC"; then
2890     CXX=$CCC
2891   else
2892     if test -n "$ac_tool_prefix"; then
2893   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2894   do
2895     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2899 if test "${ac_cv_prog_CXX+set}" = set; then
2900   echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902   if test -n "$CXX"; then
2903   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908   IFS=$as_save_IFS
2909   test -z "$as_dir" && as_dir=.
2910   for ac_exec_ext in '' $ac_executable_extensions; do
2911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914     break 2
2915   fi
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 CXX=$ac_cv_prog_CXX
2923 if test -n "$CXX"; then
2924   { echo "$as_me:$LINENO: result: $CXX" >&5
2925 echo "${ECHO_T}$CXX" >&6; }
2926 else
2927   { echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6; }
2929 fi
2930
2931
2932     test -n "$CXX" && break
2933   done
2934 fi
2935 if test -z "$CXX"; then
2936   ac_ct_CXX=$CXX
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_prog", so it can be a program name with args.
2940 set dummy $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_ac_ct_CXX+set}" = set; then
2944   echo $ECHO_N "(cached) $ECHO_C" >&6
2945 else
2946   if test -n "$ac_ct_CXX"; then
2947   ac_cv_prog_ac_ct_CXX="$ac_ct_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_ac_ct_CXX="$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 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2967 if test -n "$ac_ct_CXX"; then
2968   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2969 echo "${ECHO_T}$ac_ct_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 "$ac_ct_CXX" && break
2977 done
2978
2979   if test "x$ac_ct_CXX" = x; then
2980     CXX="g++"
2981   else
2982     case $cross_compiling:$ac_tool_warned in
2983 yes:)
2984 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2985 whose name does not start with the host triplet.  If you think this
2986 configuration is useful to you, please write to autoconf@gnu.org." >&5
2987 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2988 whose name does not start with the host triplet.  If you think this
2989 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2990 ac_tool_warned=yes ;;
2991 esac
2992     CXX=$ac_ct_CXX
2993   fi
2994 fi
2995
2996   fi
2997 fi
2998 # Provide some information about the compiler.
2999 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3000 ac_compiler=`set X $ac_compile; echo $2`
3001 { (ac_try="$ac_compiler --version >&5"
3002 case "(($ac_try" in
3003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004   *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007   (eval "$ac_compiler --version >&5") 2>&5
3008   ac_status=$?
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); }
3011 { (ac_try="$ac_compiler -v >&5"
3012 case "(($ac_try" in
3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014   *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017   (eval "$ac_compiler -v >&5") 2>&5
3018   ac_status=$?
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); }
3021 { (ac_try="$ac_compiler -V >&5"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compiler -V >&5") 2>&5
3028   ac_status=$?
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); }
3031
3032 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3033 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3034 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3035   echo $ECHO_N "(cached) $ECHO_C" >&6
3036 else
3037   cat >conftest.$ac_ext <<_ACEOF
3038 /* confdefs.h.  */
3039 _ACEOF
3040 cat confdefs.h >>conftest.$ac_ext
3041 cat >>conftest.$ac_ext <<_ACEOF
3042 /* end confdefs.h.  */
3043
3044 int
3045 main ()
3046 {
3047 #ifndef __GNUC__
3048        choke me
3049 #endif
3050
3051   ;
3052   return 0;
3053 }
3054 _ACEOF
3055 rm -f conftest.$ac_objext
3056 if { (ac_try="$ac_compile"
3057 case "(($ac_try" in
3058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059   *) ac_try_echo=$ac_try;;
3060 esac
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062   (eval "$ac_compile") 2>conftest.er1
3063   ac_status=$?
3064   grep -v '^ *+' conftest.er1 >conftest.err
3065   rm -f conftest.er1
3066   cat conftest.err >&5
3067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068   (exit $ac_status); } && {
3069          test -z "$ac_cxx_werror_flag" ||
3070          test ! -s conftest.err
3071        } && test -s conftest.$ac_objext; then
3072   ac_compiler_gnu=yes
3073 else
3074   echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077         ac_compiler_gnu=no
3078 fi
3079
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3082
3083 fi
3084 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3086 GXX=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CXXFLAGS=${CXXFLAGS+set}
3088 ac_save_CXXFLAGS=$CXXFLAGS
3089 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3090 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3091 if test "${ac_cv_prog_cxx_g+set}" = set; then
3092   echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3095    ac_cxx_werror_flag=yes
3096    ac_cv_prog_cxx_g=no
3097    CXXFLAGS="-g"
3098    cat >conftest.$ac_ext <<_ACEOF
3099 /* confdefs.h.  */
3100 _ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h.  */
3104
3105 int
3106 main ()
3107 {
3108
3109   ;
3110   return 0;
3111 }
3112 _ACEOF
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3115 case "(($ac_try" in
3116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117   *) ac_try_echo=$ac_try;;
3118 esac
3119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3120   (eval "$ac_compile") 2>conftest.er1
3121   ac_status=$?
3122   grep -v '^ *+' conftest.er1 >conftest.err
3123   rm -f conftest.er1
3124   cat conftest.err >&5
3125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126   (exit $ac_status); } && {
3127          test -z "$ac_cxx_werror_flag" ||
3128          test ! -s conftest.err
3129        } && test -s conftest.$ac_objext; then
3130   ac_cv_prog_cxx_g=yes
3131 else
3132   echo "$as_me: failed program was:" >&5
3133 sed 's/^/| /' conftest.$ac_ext >&5
3134
3135         CXXFLAGS=""
3136       cat >conftest.$ac_ext <<_ACEOF
3137 /* confdefs.h.  */
3138 _ACEOF
3139 cat confdefs.h >>conftest.$ac_ext
3140 cat >>conftest.$ac_ext <<_ACEOF
3141 /* end confdefs.h.  */
3142
3143 int
3144 main ()
3145 {
3146
3147   ;
3148   return 0;
3149 }
3150 _ACEOF
3151 rm -f conftest.$ac_objext
3152 if { (ac_try="$ac_compile"
3153 case "(($ac_try" in
3154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155   *) ac_try_echo=$ac_try;;
3156 esac
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158   (eval "$ac_compile") 2>conftest.er1
3159   ac_status=$?
3160   grep -v '^ *+' conftest.er1 >conftest.err
3161   rm -f conftest.er1
3162   cat conftest.err >&5
3163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164   (exit $ac_status); } && {
3165          test -z "$ac_cxx_werror_flag" ||
3166          test ! -s conftest.err
3167        } && test -s conftest.$ac_objext; then
3168   :
3169 else
3170   echo "$as_me: failed program was:" >&5
3171 sed 's/^/| /' conftest.$ac_ext >&5
3172
3173         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3174          CXXFLAGS="-g"
3175          cat >conftest.$ac_ext <<_ACEOF
3176 /* confdefs.h.  */
3177 _ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h.  */
3181
3182 int
3183 main ()
3184 {
3185
3186   ;
3187   return 0;
3188 }
3189 _ACEOF
3190 rm -f conftest.$ac_objext
3191 if { (ac_try="$ac_compile"
3192 case "(($ac_try" in
3193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194   *) ac_try_echo=$ac_try;;
3195 esac
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197   (eval "$ac_compile") 2>conftest.er1
3198   ac_status=$?
3199   grep -v '^ *+' conftest.er1 >conftest.err
3200   rm -f conftest.er1
3201   cat conftest.err >&5
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); } && {
3204          test -z "$ac_cxx_werror_flag" ||
3205          test ! -s conftest.err
3206        } && test -s conftest.$ac_objext; then
3207   ac_cv_prog_cxx_g=yes
3208 else
3209   echo "$as_me: failed program was:" >&5
3210 sed 's/^/| /' conftest.$ac_ext >&5
3211
3212
3213 fi
3214
3215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 fi
3217
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 fi
3220
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3223 fi
3224 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3225 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3226 if test "$ac_test_CXXFLAGS" = set; then
3227   CXXFLAGS=$ac_save_CXXFLAGS
3228 elif test $ac_cv_prog_cxx_g = yes; then
3229   if test "$GXX" = yes; then
3230     CXXFLAGS="-g -O2"
3231   else
3232     CXXFLAGS="-g"
3233   fi
3234 else
3235   if test "$GXX" = yes; then
3236     CXXFLAGS="-O2"
3237   else
3238     CXXFLAGS=
3239   fi
3240 fi
3241 ac_ext=c
3242 ac_cpp='$CPP $CPPFLAGS'
3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246
3247
3248
3249
3250 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3251 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3252
3253 cat > conftest.c << EOF
3254 #include <stdlib.h>
3255 #include <stdio.h>
3256
3257 int main (int argc, char*argv)
3258 {
3259     int a,b;
3260     b=3;
3261     int c;
3262     c=4;
3263     return 0;
3264 }
3265 EOF
3266
3267 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3268 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3269   { echo "$as_me:$LINENO: result: yes" >&5
3270 echo "${ECHO_T}yes" >&6; }
3271   GCC_IS_OK=true
3272   export GCC_IS_OK
3273 else
3274   echo "configure: failed program was:" >&5
3275   cat conftest.c >&5
3276   { echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6; }
3278 fi
3279 rm -f conftest*
3280
3281
3282 if test "x$GCC_IS_OK" '=' "x";then
3283     echo "***************************************************"
3284     echo "* Your gcc is too old to compile this!"
3285     echo "* "
3286     echo "* The last version compilable by this compiler is "
3287     echo "* swftools 0.7.0, which you can download from "
3288     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3289     echo "* ."
3290     echo "* Newer versions require at least gcc 3.0.0 "
3291     echo "***************************************************"
3292     exit 1
3293 fi
3294
3295 if test "x$CHECKMEM" '!=' "x";then
3296     CC="ccmalloc $CC"
3297     CXX="ccmalloc $CXX"
3298     #echo running again
3299     #unset ac_cv_prog_CC
3300     #unset ac_cv_prog_CXX
3301     #AC_PROG_CC
3302     #AC_PROG_CXX
3303 fi
3304  ac_ext=c
3305 ac_cpp='$CPP $CPPFLAGS'
3306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3309 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3311 # On Suns, sometimes $CPP names a directory.
3312 if test -n "$CPP" && test -d "$CPP"; then
3313   CPP=
3314 fi
3315 if test -z "$CPP"; then
3316   if test "${ac_cv_prog_CPP+set}" = set; then
3317   echo $ECHO_N "(cached) $ECHO_C" >&6
3318 else
3319       # Double quotes because CPP needs to be expanded
3320     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3321     do
3322       ac_preproc_ok=false
3323 for ac_c_preproc_warn_flag in '' yes
3324 do
3325   # Use a header file that comes with gcc, so configuring glibc
3326   # with a fresh cross-compiler works.
3327   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3328   # <limits.h> exists even on freestanding compilers.
3329   # On the NeXT, cc -E runs the code through the compiler's parser,
3330   # not just through cpp. "Syntax error" is here to catch this case.
3331   cat >conftest.$ac_ext <<_ACEOF
3332 /* confdefs.h.  */
3333 _ACEOF
3334 cat confdefs.h >>conftest.$ac_ext
3335 cat >>conftest.$ac_ext <<_ACEOF
3336 /* end confdefs.h.  */
3337 #ifdef __STDC__
3338 # include <limits.h>
3339 #else
3340 # include <assert.h>
3341 #endif
3342                      Syntax error
3343 _ACEOF
3344 if { (ac_try="$ac_cpp conftest.$ac_ext"
3345 case "(($ac_try" in
3346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347   *) ac_try_echo=$ac_try;;
3348 esac
3349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3350   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3351   ac_status=$?
3352   grep -v '^ *+' conftest.er1 >conftest.err
3353   rm -f conftest.er1
3354   cat conftest.err >&5
3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356   (exit $ac_status); } >/dev/null && {
3357          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3358          test ! -s conftest.err
3359        }; then
3360   :
3361 else
3362   echo "$as_me: failed program was:" >&5
3363 sed 's/^/| /' conftest.$ac_ext >&5
3364
3365   # Broken: fails on valid input.
3366 continue
3367 fi
3368
3369 rm -f conftest.err conftest.$ac_ext
3370
3371   # OK, works on sane cases.  Now check whether nonexistent headers
3372   # can be detected and how.
3373   cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h.  */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h.  */
3379 #include <ac_nonexistent.h>
3380 _ACEOF
3381 if { (ac_try="$ac_cpp conftest.$ac_ext"
3382 case "(($ac_try" in
3383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384   *) ac_try_echo=$ac_try;;
3385 esac
3386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3388   ac_status=$?
3389   grep -v '^ *+' conftest.er1 >conftest.err
3390   rm -f conftest.er1
3391   cat conftest.err >&5
3392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393   (exit $ac_status); } >/dev/null && {
3394          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3395          test ! -s conftest.err
3396        }; then
3397   # Broken: success on invalid input.
3398 continue
3399 else
3400   echo "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403   # Passes both tests.
3404 ac_preproc_ok=:
3405 break
3406 fi
3407
3408 rm -f conftest.err conftest.$ac_ext
3409
3410 done
3411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3412 rm -f conftest.err conftest.$ac_ext
3413 if $ac_preproc_ok; then
3414   break
3415 fi
3416
3417     done
3418     ac_cv_prog_CPP=$CPP
3419
3420 fi
3421   CPP=$ac_cv_prog_CPP
3422 else
3423   ac_cv_prog_CPP=$CPP
3424 fi
3425 { echo "$as_me:$LINENO: result: $CPP" >&5
3426 echo "${ECHO_T}$CPP" >&6; }
3427 ac_preproc_ok=false
3428 for ac_c_preproc_warn_flag in '' yes
3429 do
3430   # Use a header file that comes with gcc, so configuring glibc
3431   # with a fresh cross-compiler works.
3432   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3433   # <limits.h> exists even on freestanding compilers.
3434   # On the NeXT, cc -E runs the code through the compiler's parser,
3435   # not just through cpp. "Syntax error" is here to catch this case.
3436   cat >conftest.$ac_ext <<_ACEOF
3437 /* confdefs.h.  */
3438 _ACEOF
3439 cat confdefs.h >>conftest.$ac_ext
3440 cat >>conftest.$ac_ext <<_ACEOF
3441 /* end confdefs.h.  */
3442 #ifdef __STDC__
3443 # include <limits.h>
3444 #else
3445 # include <assert.h>
3446 #endif
3447                      Syntax error
3448 _ACEOF
3449 if { (ac_try="$ac_cpp conftest.$ac_ext"
3450 case "(($ac_try" in
3451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452   *) ac_try_echo=$ac_try;;
3453 esac
3454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3456   ac_status=$?
3457   grep -v '^ *+' conftest.er1 >conftest.err
3458   rm -f conftest.er1
3459   cat conftest.err >&5
3460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461   (exit $ac_status); } >/dev/null && {
3462          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3463          test ! -s conftest.err
3464        }; then
3465   :
3466 else
3467   echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3469
3470   # Broken: fails on valid input.
3471 continue
3472 fi
3473
3474 rm -f conftest.err conftest.$ac_ext
3475
3476   # OK, works on sane cases.  Now check whether nonexistent headers
3477   # can be detected and how.
3478   cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h.  */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h.  */
3484 #include <ac_nonexistent.h>
3485 _ACEOF
3486 if { (ac_try="$ac_cpp conftest.$ac_ext"
3487 case "(($ac_try" in
3488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489   *) ac_try_echo=$ac_try;;
3490 esac
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3493   ac_status=$?
3494   grep -v '^ *+' conftest.er1 >conftest.err
3495   rm -f conftest.er1
3496   cat conftest.err >&5
3497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498   (exit $ac_status); } >/dev/null && {
3499          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3500          test ! -s conftest.err
3501        }; then
3502   # Broken: success on invalid input.
3503 continue
3504 else
3505   echo "$as_me: failed program was:" >&5
3506 sed 's/^/| /' conftest.$ac_ext >&5
3507
3508   # Passes both tests.
3509 ac_preproc_ok=:
3510 break
3511 fi
3512
3513 rm -f conftest.err conftest.$ac_ext
3514
3515 done
3516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3517 rm -f conftest.err conftest.$ac_ext
3518 if $ac_preproc_ok; then
3519   :
3520 else
3521   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3522 See \`config.log' for more details." >&5
3523 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3524 See \`config.log' for more details." >&2;}
3525    { (exit 1); exit 1; }; }
3526 fi
3527
3528 ac_ext=c
3529 ac_cpp='$CPP $CPPFLAGS'
3530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3533
3534
3535  if test -n "$ac_tool_prefix"; then
3536   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3537 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3540 if test "${ac_cv_prog_RANLIB+set}" = set; then
3541   echo $ECHO_N "(cached) $ECHO_C" >&6
3542 else
3543   if test -n "$RANLIB"; then
3544   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549   IFS=$as_save_IFS
3550   test -z "$as_dir" && as_dir=.
3551   for ac_exec_ext in '' $ac_executable_extensions; do
3552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3553     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3554     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555     break 2
3556   fi
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 fi
3562 fi
3563 RANLIB=$ac_cv_prog_RANLIB
3564 if test -n "$RANLIB"; then
3565   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3566 echo "${ECHO_T}$RANLIB" >&6; }
3567 else
3568   { echo "$as_me:$LINENO: result: no" >&5
3569 echo "${ECHO_T}no" >&6; }
3570 fi
3571
3572
3573 fi
3574 if test -z "$ac_cv_prog_RANLIB"; then
3575   ac_ct_RANLIB=$RANLIB
3576   # Extract the first word of "ranlib", so it can be a program name with args.
3577 set dummy ranlib; ac_word=$2
3578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3580 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3581   echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583   if test -n "$ac_ct_RANLIB"; then
3584   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3588 do
3589   IFS=$as_save_IFS
3590   test -z "$as_dir" && as_dir=.
3591   for ac_exec_ext in '' $ac_executable_extensions; do
3592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593     ac_cv_prog_ac_ct_RANLIB="ranlib"
3594     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595     break 2
3596   fi
3597 done
3598 done
3599 IFS=$as_save_IFS
3600
3601 fi
3602 fi
3603 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3604 if test -n "$ac_ct_RANLIB"; then
3605   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3606 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3607 else
3608   { echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6; }
3610 fi
3611
3612   if test "x$ac_ct_RANLIB" = x; then
3613     RANLIB=":"
3614   else
3615     case $cross_compiling:$ac_tool_warned in
3616 yes:)
3617 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3618 whose name does not start with the host triplet.  If you think this
3619 configuration is useful to you, please write to autoconf@gnu.org." >&5
3620 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3621 whose name does not start with the host triplet.  If you think this
3622 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3623 ac_tool_warned=yes ;;
3624 esac
3625     RANLIB=$ac_ct_RANLIB
3626   fi
3627 else
3628   RANLIB="$ac_cv_prog_RANLIB"
3629 fi
3630
3631  { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3632 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3633 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3634 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3635   echo $ECHO_N "(cached) $ECHO_C" >&6
3636 else
3637   cat >conftest.make <<\_ACEOF
3638 SHELL = /bin/sh
3639 all:
3640         @echo '@@@%%%=$(MAKE)=@@@%%%'
3641 _ACEOF
3642 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3643 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3644   *@@@%%%=?*=@@@%%%*)
3645     eval ac_cv_prog_make_${ac_make}_set=yes;;
3646   *)
3647     eval ac_cv_prog_make_${ac_make}_set=no;;
3648 esac
3649 rm -f conftest.make
3650 fi
3651 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3652   { echo "$as_me:$LINENO: result: yes" >&5
3653 echo "${ECHO_T}yes" >&6; }
3654   SET_MAKE=
3655 else
3656   { echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6; }
3658   SET_MAKE="MAKE=${MAKE-make}"
3659 fi
3660
3661  # Find a good install program.  We prefer a C program (faster),
3662 # so one script is as good as another.  But avoid the broken or
3663 # incompatible versions:
3664 # SysV /etc/install, /usr/sbin/install
3665 # SunOS /usr/etc/install
3666 # IRIX /sbin/install
3667 # AIX /bin/install
3668 # AmigaOS /C/install, which installs bootblocks on floppy discs
3669 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3670 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3671 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3672 # OS/2's system install, which has a completely different semantic
3673 # ./install, which can be erroneously created by make from ./install.sh.
3674 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3675 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3676 if test -z "$INSTALL"; then
3677 if test "${ac_cv_path_install+set}" = set; then
3678   echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 for as_dir in $PATH
3682 do
3683   IFS=$as_save_IFS
3684   test -z "$as_dir" && as_dir=.
3685   # Account for people who put trailing slashes in PATH elements.
3686 case $as_dir/ in
3687   ./ | .// | /cC/* | \
3688   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3689   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3690   /usr/ucb/* ) ;;
3691   *)
3692     # OSF1 and SCO ODT 3.0 have their own names for install.
3693     # Don't use installbsd from OSF since it installs stuff as root
3694     # by default.
3695     for ac_prog in ginstall scoinst install; do
3696       for ac_exec_ext in '' $ac_executable_extensions; do
3697         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3698           if test $ac_prog = install &&
3699             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700             # AIX install.  It has an incompatible calling convention.
3701             :
3702           elif test $ac_prog = install &&
3703             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3704             # program-specific install script used by HP pwplus--don't use.
3705             :
3706           else
3707             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3708             break 3
3709           fi
3710         fi
3711       done
3712     done
3713     ;;
3714 esac
3715 done
3716 IFS=$as_save_IFS
3717
3718
3719 fi
3720   if test "${ac_cv_path_install+set}" = set; then
3721     INSTALL=$ac_cv_path_install
3722   else
3723     # As a last resort, use the slow shell script.  Don't cache a
3724     # value for INSTALL within a source directory, because that will
3725     # break other packages using the cache if that directory is
3726     # removed, or if the value is a relative name.
3727     INSTALL=$ac_install_sh
3728   fi
3729 fi
3730 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3731 echo "${ECHO_T}$INSTALL" >&6; }
3732
3733 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3734 # It thinks the first close brace ends the variable substitution.
3735 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3736
3737 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3738
3739 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3740
3741  { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3742 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3743 LN_S=$as_ln_s
3744 if test "$LN_S" = "ln -s"; then
3745   { echo "$as_me:$LINENO: result: yes" >&5
3746 echo "${ECHO_T}yes" >&6; }
3747 else
3748   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3749 echo "${ECHO_T}no, using $LN_S" >&6; }
3750 fi
3751
3752  for ac_prog in gzip uncompress compress
3753 do
3754   # Extract the first word of "$ac_prog", so it can be a program name with args.
3755 set dummy $ac_prog; ac_word=$2
3756 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3758 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3759   echo $ECHO_N "(cached) $ECHO_C" >&6
3760 else
3761   if test -n "$UNCOMPRESS"; then
3762   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3763 else
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH
3766 do
3767   IFS=$as_save_IFS
3768   test -z "$as_dir" && as_dir=.
3769   for ac_exec_ext in '' $ac_executable_extensions; do
3770   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771     ac_cv_prog_UNCOMPRESS="$ac_prog"
3772     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3773     break 2
3774   fi
3775 done
3776 done
3777 IFS=$as_save_IFS
3778
3779 fi
3780 fi
3781 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3782 if test -n "$UNCOMPRESS"; then
3783   { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3784 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3785 else
3786   { echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6; }
3788 fi
3789
3790
3791   test -n "$UNCOMPRESS" && break
3792 done
3793
3794
3795 OBJEXT="o"
3796 AREXT=".a"
3797 CXXLIBS="-lstdc++"
3798
3799
3800
3801 if test "x$EXEEXT" = "x.exe";then
3802     OBJEXT="obj"
3803     AREXT=".lib"
3804     CXXLIBS=""
3805 fi
3806
3807
3808
3809
3810 { echo "$as_me:$LINENO: checking host system type" >&5
3811 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3812 if test "${ac_cv_host+set}" = set; then
3813   echo $ECHO_N "(cached) $ECHO_C" >&6
3814 else
3815   if test "x$host_alias" = x; then
3816   ac_cv_host=$ac_cv_build
3817 else
3818   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3819     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3820 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3821    { (exit 1); exit 1; }; }
3822 fi
3823
3824 fi
3825 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3826 echo "${ECHO_T}$ac_cv_host" >&6; }
3827 case $ac_cv_host in
3828 *-*-*) ;;
3829 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3830 echo "$as_me: error: invalid value of canonical host" >&2;}
3831    { (exit 1); exit 1; }; };;
3832 esac
3833 host=$ac_cv_host
3834 ac_save_IFS=$IFS; IFS='-'
3835 set x $ac_cv_host
3836 shift
3837 host_cpu=$1
3838 host_vendor=$2
3839 shift; shift
3840 # Remember, the first character of IFS is used to create $*,
3841 # except with old shells:
3842 host_os=$*
3843 IFS=$ac_save_IFS
3844 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3845
3846
3847
3848
3849 { echo "$as_me:$LINENO: checking for target system" >&5
3850 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
3851 CYGWIN=
3852 MINGW=
3853 case $host_os in
3854     *cygwin* ) CYGWIN=yes;;
3855     *mingw* ) MINGW=yes;;
3856 esac
3857
3858 AR=ar
3859 if test "x$MINGW" = "xyes"; then
3860     #fix for the debian distribution of mingw
3861     if test -x "/usr/i586-mingw32msvc/bin/ar";then
3862         AR="/usr/i586-mingw32msvc/bin/ar"
3863     fi
3864     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
3865         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
3866     fi
3867     #fix for the gentoo distribution of mingw
3868     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
3869         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
3870     fi
3871     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
3872         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
3873     fi
3874     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
3875         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
3876     fi
3877 fi
3878
3879
3880
3881 if test "x${CYGWIN}" = "xyes"; then
3882     cat >>confdefs.h <<_ACEOF
3883 #define CYGWIN 1
3884 _ACEOF
3885
3886     { echo "$as_me:$LINENO: result: cygwin" >&5
3887 echo "${ECHO_T}cygwin" >&6; }
3888 else
3889     if test "x${MINGW}" = "xyes"; then
3890         cat >>confdefs.h <<_ACEOF
3891 #define MINGW 1
3892 _ACEOF
3893
3894         WIN32=1
3895         cat >>confdefs.h <<_ACEOF
3896 #define WIN32 1
3897 _ACEOF
3898
3899         LIBS="$LIBS -lws2_32 -lgdi32"
3900         { echo "$as_me:$LINENO: result: mingw" >&5
3901 echo "${ECHO_T}mingw" >&6; }
3902     else
3903         LINUX=1
3904         export LINUX
3905         cat >>confdefs.h <<_ACEOF
3906 #define LINUX 1
3907 _ACEOF
3908
3909         { echo "$as_me:$LINENO: result: " >&5
3910 echo "${ECHO_T}" >&6; }
3911     fi
3912 fi
3913
3914
3915 SLEXT="so"
3916 if test "x${MINGW}" != "xyes"; then
3917     # no mingW
3918     cat >>confdefs.h <<_ACEOF
3919 #define O_BINARY 0
3920 _ACEOF
3921
3922 else
3923     # mingW
3924     SLEXT="dll"
3925     CXXLIBS=""
3926 fi
3927 export SLEXT
3928
3929
3930
3931 # The following tries to make use of includes and libraries in
3932 # /usr/local, too. Notice: A -I/usr/local/include might break
3933 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
3934 # especially on systems which link /usr/local to /usr, so it has yet
3935 # to be seen how useful this is.
3936 if test -d /usr/local/lib; then
3937     LDFLAGS="$LDFLAGS -L/usr/local/lib"
3938 fi
3939 if test -d /usr/local/include; then
3940 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
3941 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3942     echo > /dev/null
3943 fi
3944 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
3945     # if the user has a special prefix (like /opt), there might also be $prefix/lib
3946     # and $prefix/include, which should be included in our search paths for libraries
3947     # and includes.
3948     LDFLAGS="$LDFLAGS -L${libdir}"
3949     CPPFLAGS="$CPPFLAGS -I${includedir}"
3950     # TODO- test whether gcc still works after this
3951 fi
3952
3953 #Mac OS:
3954 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
3955
3956
3957 # this must be done after (I believe) AC_PROG_MAKE_SET
3958 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
3959     STRIP="@echo debug enabled, not stripping "
3960     export STRIP
3961
3962 fi
3963
3964
3965
3966 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
3967 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
3968 if test "${ac_cv_lib_m_sin+set}" = set; then
3969   echo $ECHO_N "(cached) $ECHO_C" >&6
3970 else
3971   ac_check_lib_save_LIBS=$LIBS
3972 LIBS="-lm  $LIBS"
3973 cat >conftest.$ac_ext <<_ACEOF
3974 /* confdefs.h.  */
3975 _ACEOF
3976 cat confdefs.h >>conftest.$ac_ext
3977 cat >>conftest.$ac_ext <<_ACEOF
3978 /* end confdefs.h.  */
3979
3980 /* Override any GCC internal prototype to avoid an error.
3981    Use char because int might match the return type of a GCC
3982    builtin and then its argument prototype would still apply.  */
3983 #ifdef __cplusplus
3984 extern "C"
3985 #endif
3986 char sin ();
3987 int
3988 main ()
3989 {
3990 return sin ();
3991   ;
3992   return 0;
3993 }
3994 _ACEOF
3995 rm -f conftest.$ac_objext conftest$ac_exeext
3996 if { (ac_try="$ac_link"
3997 case "(($ac_try" in
3998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3999   *) ac_try_echo=$ac_try;;
4000 esac
4001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4002   (eval "$ac_link") 2>conftest.er1
4003   ac_status=$?
4004   grep -v '^ *+' conftest.er1 >conftest.err
4005   rm -f conftest.er1
4006   cat conftest.err >&5
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); } && {
4009          test -z "$ac_c_werror_flag" ||
4010          test ! -s conftest.err
4011        } && test -s conftest$ac_exeext &&
4012        $as_test_x conftest$ac_exeext; then
4013   ac_cv_lib_m_sin=yes
4014 else
4015   echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4017
4018         ac_cv_lib_m_sin=no
4019 fi
4020
4021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4022       conftest$ac_exeext conftest.$ac_ext
4023 LIBS=$ac_check_lib_save_LIBS
4024 fi
4025 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4026 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4027 if test $ac_cv_lib_m_sin = yes; then
4028   cat >>confdefs.h <<_ACEOF
4029 #define HAVE_LIBM 1
4030 _ACEOF
4031
4032   LIBS="-lm $LIBS"
4033
4034 else
4035   echo "Error: Math library not found.";
4036  exit;
4037
4038 fi
4039
4040
4041 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4042 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4043 if test "${ac_cv_lib_z_deflate+set}" = set; then
4044   echo $ECHO_N "(cached) $ECHO_C" >&6
4045 else
4046   ac_check_lib_save_LIBS=$LIBS
4047 LIBS="-lz  $LIBS"
4048 cat >conftest.$ac_ext <<_ACEOF
4049 /* confdefs.h.  */
4050 _ACEOF
4051 cat confdefs.h >>conftest.$ac_ext
4052 cat >>conftest.$ac_ext <<_ACEOF
4053 /* end confdefs.h.  */
4054
4055 /* Override any GCC internal prototype to avoid an error.
4056    Use char because int might match the return type of a GCC
4057    builtin and then its argument prototype would still apply.  */
4058 #ifdef __cplusplus
4059 extern "C"
4060 #endif
4061 char deflate ();
4062 int
4063 main ()
4064 {
4065 return deflate ();
4066   ;
4067   return 0;
4068 }
4069 _ACEOF
4070 rm -f conftest.$ac_objext conftest$ac_exeext
4071 if { (ac_try="$ac_link"
4072 case "(($ac_try" in
4073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074   *) ac_try_echo=$ac_try;;
4075 esac
4076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4077   (eval "$ac_link") 2>conftest.er1
4078   ac_status=$?
4079   grep -v '^ *+' conftest.er1 >conftest.err
4080   rm -f conftest.er1
4081   cat conftest.err >&5
4082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4083   (exit $ac_status); } && {
4084          test -z "$ac_c_werror_flag" ||
4085          test ! -s conftest.err
4086        } && test -s conftest$ac_exeext &&
4087        $as_test_x conftest$ac_exeext; then
4088   ac_cv_lib_z_deflate=yes
4089 else
4090   echo "$as_me: failed program was:" >&5
4091 sed 's/^/| /' conftest.$ac_ext >&5
4092
4093         ac_cv_lib_z_deflate=no
4094 fi
4095
4096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4097       conftest$ac_exeext conftest.$ac_ext
4098 LIBS=$ac_check_lib_save_LIBS
4099 fi
4100 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4101 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4102 if test $ac_cv_lib_z_deflate = yes; then
4103   cat >>confdefs.h <<_ACEOF
4104 #define HAVE_LIBZ 1
4105 _ACEOF
4106
4107   LIBS="-lz $LIBS"
4108
4109 else
4110   ZLIBMISSING=true
4111 fi
4112
4113
4114 if test "x$ZLIBMISSING" = "xtrue";then
4115     echo
4116     echo "ERROR:"
4117     echo "You need zlib to compile swftools"
4118     echo
4119     exit
4120 fi
4121
4122
4123 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4124 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4125 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4126   echo $ECHO_N "(cached) $ECHO_C" >&6
4127 else
4128   ac_check_lib_save_LIBS=$LIBS
4129 LIBS="-ljpeg  $LIBS"
4130 cat >conftest.$ac_ext <<_ACEOF
4131 /* confdefs.h.  */
4132 _ACEOF
4133 cat confdefs.h >>conftest.$ac_ext
4134 cat >>conftest.$ac_ext <<_ACEOF
4135 /* end confdefs.h.  */
4136
4137 /* Override any GCC internal prototype to avoid an error.
4138    Use char because int might match the return type of a GCC
4139    builtin and then its argument prototype would still apply.  */
4140 #ifdef __cplusplus
4141 extern "C"
4142 #endif
4143 char jpeg_write_raw_data ();
4144 int
4145 main ()
4146 {
4147 return jpeg_write_raw_data ();
4148   ;
4149   return 0;
4150 }
4151 _ACEOF
4152 rm -f conftest.$ac_objext conftest$ac_exeext
4153 if { (ac_try="$ac_link"
4154 case "(($ac_try" in
4155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156   *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159   (eval "$ac_link") 2>conftest.er1
4160   ac_status=$?
4161   grep -v '^ *+' conftest.er1 >conftest.err
4162   rm -f conftest.er1
4163   cat conftest.err >&5
4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165   (exit $ac_status); } && {
4166          test -z "$ac_c_werror_flag" ||
4167          test ! -s conftest.err
4168        } && test -s conftest$ac_exeext &&
4169        $as_test_x conftest$ac_exeext; then
4170   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4171 else
4172   echo "$as_me: failed program was:" >&5
4173 sed 's/^/| /' conftest.$ac_ext >&5
4174
4175         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4176 fi
4177
4178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4179       conftest$ac_exeext conftest.$ac_ext
4180 LIBS=$ac_check_lib_save_LIBS
4181 fi
4182 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4183 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4184 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4185   cat >>confdefs.h <<_ACEOF
4186 #define HAVE_LIBJPEG 1
4187 _ACEOF
4188
4189   LIBS="-ljpeg $LIBS"
4190
4191 else
4192   JPEGLIBMISSING=true
4193 fi
4194
4195
4196 { echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
4197 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6; }
4198 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   ac_check_lib_save_LIBS=$LIBS
4202 LIBS="-lt1  $LIBS"
4203 cat >conftest.$ac_ext <<_ACEOF
4204 /* confdefs.h.  */
4205 _ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h.  */
4209
4210 /* Override any GCC internal prototype to avoid an error.
4211    Use char because int might match the return type of a GCC
4212    builtin and then its argument prototype would still apply.  */
4213 #ifdef __cplusplus
4214 extern "C"
4215 #endif
4216 char T1_LoadFont ();
4217 int
4218 main ()
4219 {
4220 return T1_LoadFont ();
4221   ;
4222   return 0;
4223 }
4224 _ACEOF
4225 rm -f conftest.$ac_objext conftest$ac_exeext
4226 if { (ac_try="$ac_link"
4227 case "(($ac_try" in
4228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229   *) ac_try_echo=$ac_try;;
4230 esac
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232   (eval "$ac_link") 2>conftest.er1
4233   ac_status=$?
4234   grep -v '^ *+' conftest.er1 >conftest.err
4235   rm -f conftest.er1
4236   cat conftest.err >&5
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); } && {
4239          test -z "$ac_c_werror_flag" ||
4240          test ! -s conftest.err
4241        } && test -s conftest$ac_exeext &&
4242        $as_test_x conftest$ac_exeext; then
4243   ac_cv_lib_t1_T1_LoadFont=yes
4244 else
4245   echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248         ac_cv_lib_t1_T1_LoadFont=no
4249 fi
4250
4251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4252       conftest$ac_exeext conftest.$ac_ext
4253 LIBS=$ac_check_lib_save_LIBS
4254 fi
4255 { echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
4256 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6; }
4257 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
4258   cat >>confdefs.h <<_ACEOF
4259 #define HAVE_LIBT1 1
4260 _ACEOF
4261
4262   LIBS="-lt1 $LIBS"
4263
4264 else
4265   T1LIBMISSING=true
4266 fi
4267
4268
4269 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4270 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4271 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4272   echo $ECHO_N "(cached) $ECHO_C" >&6
4273 else
4274   ac_check_lib_save_LIBS=$LIBS
4275 LIBS="-lungif  $LIBS"
4276 cat >conftest.$ac_ext <<_ACEOF
4277 /* confdefs.h.  */
4278 _ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h.  */
4282
4283 /* Override any GCC internal prototype to avoid an error.
4284    Use char because int might match the return type of a GCC
4285    builtin and then its argument prototype would still apply.  */
4286 #ifdef __cplusplus
4287 extern "C"
4288 #endif
4289 char DGifOpen ();
4290 int
4291 main ()
4292 {
4293 return DGifOpen ();
4294   ;
4295   return 0;
4296 }
4297 _ACEOF
4298 rm -f conftest.$ac_objext conftest$ac_exeext
4299 if { (ac_try="$ac_link"
4300 case "(($ac_try" in
4301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302   *) ac_try_echo=$ac_try;;
4303 esac
4304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4305   (eval "$ac_link") 2>conftest.er1
4306   ac_status=$?
4307   grep -v '^ *+' conftest.er1 >conftest.err
4308   rm -f conftest.er1
4309   cat conftest.err >&5
4310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311   (exit $ac_status); } && {
4312          test -z "$ac_c_werror_flag" ||
4313          test ! -s conftest.err
4314        } && test -s conftest$ac_exeext &&
4315        $as_test_x conftest$ac_exeext; then
4316   ac_cv_lib_ungif_DGifOpen=yes
4317 else
4318   echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4320
4321         ac_cv_lib_ungif_DGifOpen=no
4322 fi
4323
4324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4325       conftest$ac_exeext conftest.$ac_ext
4326 LIBS=$ac_check_lib_save_LIBS
4327 fi
4328 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4329 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4330 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4331   cat >>confdefs.h <<_ACEOF
4332 #define HAVE_LIBUNGIF 1
4333 _ACEOF
4334
4335   LIBS="-lungif $LIBS"
4336
4337 else
4338   UNGIFMISSING=true
4339 fi
4340
4341 if test "$UNGIFMISSING";then
4342     UNGIFMISSING=
4343
4344 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4345 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4346 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4347   echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349   ac_check_lib_save_LIBS=$LIBS
4350 LIBS="-lgif  $LIBS"
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h.  */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h.  */
4357
4358 /* Override any GCC internal prototype to avoid an error.
4359    Use char because int might match the return type of a GCC
4360    builtin and then its argument prototype would still apply.  */
4361 #ifdef __cplusplus
4362 extern "C"
4363 #endif
4364 char DGifOpen ();
4365 int
4366 main ()
4367 {
4368 return DGifOpen ();
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 rm -f conftest.$ac_objext conftest$ac_exeext
4374 if { (ac_try="$ac_link"
4375 case "(($ac_try" in
4376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4377   *) ac_try_echo=$ac_try;;
4378 esac
4379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4380   (eval "$ac_link") 2>conftest.er1
4381   ac_status=$?
4382   grep -v '^ *+' conftest.er1 >conftest.err
4383   rm -f conftest.er1
4384   cat conftest.err >&5
4385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386   (exit $ac_status); } && {
4387          test -z "$ac_c_werror_flag" ||
4388          test ! -s conftest.err
4389        } && test -s conftest$ac_exeext &&
4390        $as_test_x conftest$ac_exeext; then
4391   ac_cv_lib_gif_DGifOpen=yes
4392 else
4393   echo "$as_me: failed program was:" >&5
4394 sed 's/^/| /' conftest.$ac_ext >&5
4395
4396         ac_cv_lib_gif_DGifOpen=no
4397 fi
4398
4399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4400       conftest$ac_exeext conftest.$ac_ext
4401 LIBS=$ac_check_lib_save_LIBS
4402 fi
4403 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4404 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4405 if test $ac_cv_lib_gif_DGifOpen = yes; then
4406   cat >>confdefs.h <<_ACEOF
4407 #define HAVE_LIBGIF 1
4408 _ACEOF
4409
4410   LIBS="-lgif $LIBS"
4411
4412 else
4413   UNGIFMISSING=true
4414 fi
4415
4416 fi
4417
4418
4419 { echo "$as_me:$LINENO: checking for byte order" >&5
4420 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4421 if test "$cross_compiling" = yes; then
4422   CROSSCOMPILE=1
4423 else
4424   cat >conftest.$ac_ext <<_ACEOF
4425 /* confdefs.h.  */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h.  */
4430
4431 int main (int argc, char *argv[])
4432 {
4433     int i = 1;
4434     return *(char*)&i;
4435 }
4436
4437 _ACEOF
4438 rm -f conftest$ac_exeext
4439 if { (ac_try="$ac_link"
4440 case "(($ac_try" in
4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442   *) ac_try_echo=$ac_try;;
4443 esac
4444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4445   (eval "$ac_link") 2>&5
4446   ac_status=$?
4447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4449   { (case "(($ac_try" in
4450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451   *) ac_try_echo=$ac_try;;
4452 esac
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454   (eval "$ac_try") 2>&5
4455   ac_status=$?
4456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457   (exit $ac_status); }; }; then
4458   BIGENDIAN=1
4459 else
4460   echo "$as_me: program exited with status $ac_status" >&5
4461 echo "$as_me: failed program was:" >&5
4462 sed 's/^/| /' conftest.$ac_ext >&5
4463
4464 ( exit $ac_status )
4465 LITTLEENDIAN=1
4466 fi
4467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4468 fi
4469
4470
4471 export CROSSCOMPILE
4472
4473 if test "x${CROSSCOMPILE}" = "x1"; then
4474  { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4475 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4476  { echo "$as_me:$LINENO: checking target system type" >&5
4477 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4478 if test "${ac_cv_target+set}" = set; then
4479   echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481   if test "x$target_alias" = x; then
4482   ac_cv_target=$ac_cv_host
4483 else
4484   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4485     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4486 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4487    { (exit 1); exit 1; }; }
4488 fi
4489
4490 fi
4491 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4492 echo "${ECHO_T}$ac_cv_target" >&6; }
4493 case $ac_cv_target in
4494 *-*-*) ;;
4495 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4496 echo "$as_me: error: invalid value of canonical target" >&2;}
4497    { (exit 1); exit 1; }; };;
4498 esac
4499 target=$ac_cv_target
4500 ac_save_IFS=$IFS; IFS='-'
4501 set x $ac_cv_target
4502 shift
4503 target_cpu=$1
4504 target_vendor=$2
4505 shift; shift
4506 # Remember, the first character of IFS is used to create $*,
4507 # except with old shells:
4508 target_os=$*
4509 IFS=$ac_save_IFS
4510 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4511
4512
4513 # The aliases save the names the user supplied, while $host etc.
4514 # will get canonicalized.
4515 test -n "$target_alias" &&
4516   test "$program_prefix$program_suffix$program_transform_name" = \
4517     NONENONEs,x,x, &&
4518   program_prefix=${target_alias}-
4519  { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4520 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4521  case "${target}" in
4522   *86* | *-pc-* )
4523      LITTLEENDIAN=1
4524      ;;
4525   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4526      BIGENDIAN=1
4527      ;;
4528  esac
4529 fi
4530
4531 export LITTLEENDIAN
4532 if test "x${LITTLEENDIAN}" = "x1"; then
4533 { echo "$as_me:$LINENO: result: little endian" >&5
4534 echo "${ECHO_T}little endian" >&6; }
4535 BYTEORDERCHECKOK=1
4536 fi
4537 export BIGENDIAN
4538 if test "x${BIGENDIAN}" = "x1"; then
4539 { echo "$as_me:$LINENO: result: big endian" >&5
4540 echo "${ECHO_T}big endian" >&6; }
4541 BYTEORDERCHECKOK=1
4542 WORDS_BIGENDIAN=1
4543 export WORDS_BIGENDIAN
4544 cat >>confdefs.h <<_ACEOF
4545 #define WORDS_BIGENDIAN 1
4546 _ACEOF
4547
4548 fi
4549 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4550 { echo "$as_me:$LINENO: result: unknown" >&5
4551 echo "${ECHO_T}unknown" >&6; }
4552 echo Byte order could not determined.
4553 exit 1
4554 fi
4555
4556
4557
4558 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4559 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4560 if test "$cross_compiling" = yes; then
4561   CROSSCOMPILE=1
4562 else
4563   cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h.  */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h.  */
4569
4570 #include "stdlib.h"
4571 int main (int argc, char*argv[])
4572 {
4573     return system("test `touch config.tmp2`");
4574 }
4575
4576 _ACEOF
4577 rm -f conftest$ac_exeext
4578 if { (ac_try="$ac_link"
4579 case "(($ac_try" in
4580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581   *) ac_try_echo=$ac_try;;
4582 esac
4583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4584   (eval "$ac_link") 2>&5
4585   ac_status=$?
4586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4588   { (case "(($ac_try" in
4589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4590   *) ac_try_echo=$ac_try;;
4591 esac
4592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4593   (eval "$ac_try") 2>&5
4594   ac_status=$?
4595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596   (exit $ac_status); }; }; then
4597   OK=OK
4598 else
4599   echo "$as_me: program exited with status $ac_status" >&5
4600 echo "$as_me: failed program was:" >&5
4601 sed 's/^/| /' conftest.$ac_ext >&5
4602
4603 fi
4604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4605 fi
4606
4607
4608
4609 if test "x${OK}" = "xOK";then
4610     test -f config.tmp2 || OK=
4611 fi
4612
4613 if test "x${CROSSCOMPILE}" = "x1";then
4614     OK=no;
4615 fi
4616 if test "x${OK}" = "xOK";then
4617 rm -f config.tmp2
4618 { echo "$as_me:$LINENO: result: yes" >&5
4619 echo "${ECHO_T}yes" >&6; }
4620 SYSTEM_BACKTICKS=1
4621 export SYSTEM_BACKTICKS
4622 cat >>confdefs.h <<_ACEOF
4623 #define SYSTEM_BACKTICKS 1
4624 _ACEOF
4625
4626 else
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4629 fi
4630
4631
4632
4633 test "$program_prefix" != NONE &&
4634   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4635 # Use a double $ so make ignores it.
4636 test "$program_suffix" != NONE &&
4637   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4638 # Double any \ or $.  echo might interpret backslashes.
4639 # By default was `s,x,x', remove it if useless.
4640 cat <<\_ACEOF >conftest.sed
4641 s/[\\$]/&&/g;s/;s,x,x,$//
4642 _ACEOF
4643 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4644 rm -f conftest.sed
4645
4646
4647  ac_config_headers="$ac_config_headers config.h"
4648
4649
4650
4651
4652
4653
4654 ac_header_dirent=no
4655 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4656   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4657 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4658 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4660   echo $ECHO_N "(cached) $ECHO_C" >&6
4661 else
4662   cat >conftest.$ac_ext <<_ACEOF
4663 /* confdefs.h.  */
4664 _ACEOF
4665 cat confdefs.h >>conftest.$ac_ext
4666 cat >>conftest.$ac_ext <<_ACEOF
4667 /* end confdefs.h.  */
4668 #include <sys/types.h>
4669 #include <$ac_hdr>
4670
4671 int
4672 main ()
4673 {
4674 if ((DIR *) 0)
4675 return 0;
4676   ;
4677   return 0;
4678 }
4679 _ACEOF
4680 rm -f conftest.$ac_objext
4681 if { (ac_try="$ac_compile"
4682 case "(($ac_try" in
4683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4684   *) ac_try_echo=$ac_try;;
4685 esac
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687   (eval "$ac_compile") 2>conftest.er1
4688   ac_status=$?
4689   grep -v '^ *+' conftest.er1 >conftest.err
4690   rm -f conftest.er1
4691   cat conftest.err >&5
4692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693   (exit $ac_status); } && {
4694          test -z "$ac_c_werror_flag" ||
4695          test ! -s conftest.err
4696        } && test -s conftest.$ac_objext; then
4697   eval "$as_ac_Header=yes"
4698 else
4699   echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4701
4702         eval "$as_ac_Header=no"
4703 fi
4704
4705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706 fi
4707 ac_res=`eval echo '${'$as_ac_Header'}'`
4708                { echo "$as_me:$LINENO: result: $ac_res" >&5
4709 echo "${ECHO_T}$ac_res" >&6; }
4710 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4711   cat >>confdefs.h <<_ACEOF
4712 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4713 _ACEOF
4714
4715 ac_header_dirent=$ac_hdr; break
4716 fi
4717
4718 done
4719 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4720 if test $ac_header_dirent = dirent.h; then
4721   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4722 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4723 if test "${ac_cv_search_opendir+set}" = set; then
4724   echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726   ac_func_search_save_LIBS=$LIBS
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h.  */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h.  */
4733
4734 /* Override any GCC internal prototype to avoid an error.
4735    Use char because int might match the return type of a GCC
4736    builtin and then its argument prototype would still apply.  */
4737 #ifdef __cplusplus
4738 extern "C"
4739 #endif
4740 char opendir ();
4741 int
4742 main ()
4743 {
4744 return opendir ();
4745   ;
4746   return 0;
4747 }
4748 _ACEOF
4749 for ac_lib in '' dir; do
4750   if test -z "$ac_lib"; then
4751     ac_res="none required"
4752   else
4753     ac_res=-l$ac_lib
4754     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4755   fi
4756   rm -f conftest.$ac_objext conftest$ac_exeext
4757 if { (ac_try="$ac_link"
4758 case "(($ac_try" in
4759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760   *) ac_try_echo=$ac_try;;
4761 esac
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763   (eval "$ac_link") 2>conftest.er1
4764   ac_status=$?
4765   grep -v '^ *+' conftest.er1 >conftest.err
4766   rm -f conftest.er1
4767   cat conftest.err >&5
4768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769   (exit $ac_status); } && {
4770          test -z "$ac_c_werror_flag" ||
4771          test ! -s conftest.err
4772        } && test -s conftest$ac_exeext &&
4773        $as_test_x conftest$ac_exeext; then
4774   ac_cv_search_opendir=$ac_res
4775 else
4776   echo "$as_me: failed program was:" >&5
4777 sed 's/^/| /' conftest.$ac_ext >&5
4778
4779
4780 fi
4781
4782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4783       conftest$ac_exeext
4784   if test "${ac_cv_search_opendir+set}" = set; then
4785   break
4786 fi
4787 done
4788 if test "${ac_cv_search_opendir+set}" = set; then
4789   :
4790 else
4791   ac_cv_search_opendir=no
4792 fi
4793 rm conftest.$ac_ext
4794 LIBS=$ac_func_search_save_LIBS
4795 fi
4796 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4797 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4798 ac_res=$ac_cv_search_opendir
4799 if test "$ac_res" != no; then
4800   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4801
4802 fi
4803
4804 else
4805   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4806 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4807 if test "${ac_cv_search_opendir+set}" = set; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   ac_func_search_save_LIBS=$LIBS
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h.  */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h.  */
4817
4818 /* Override any GCC internal prototype to avoid an error.
4819    Use char because int might match the return type of a GCC
4820    builtin and then its argument prototype would still apply.  */
4821 #ifdef __cplusplus
4822 extern "C"
4823 #endif
4824 char opendir ();
4825 int
4826 main ()
4827 {
4828 return opendir ();
4829   ;
4830   return 0;
4831 }
4832 _ACEOF
4833 for ac_lib in '' x; do
4834   if test -z "$ac_lib"; then
4835     ac_res="none required"
4836   else
4837     ac_res=-l$ac_lib
4838     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4839   fi
4840   rm -f conftest.$ac_objext conftest$ac_exeext
4841 if { (ac_try="$ac_link"
4842 case "(($ac_try" in
4843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844   *) ac_try_echo=$ac_try;;
4845 esac
4846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4847   (eval "$ac_link") 2>conftest.er1
4848   ac_status=$?
4849   grep -v '^ *+' conftest.er1 >conftest.err
4850   rm -f conftest.er1
4851   cat conftest.err >&5
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); } && {
4854          test -z "$ac_c_werror_flag" ||
4855          test ! -s conftest.err
4856        } && test -s conftest$ac_exeext &&
4857        $as_test_x conftest$ac_exeext; then
4858   ac_cv_search_opendir=$ac_res
4859 else
4860   echo "$as_me: failed program was:" >&5
4861 sed 's/^/| /' conftest.$ac_ext >&5
4862
4863
4864 fi
4865
4866 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4867       conftest$ac_exeext
4868   if test "${ac_cv_search_opendir+set}" = set; then
4869   break
4870 fi
4871 done
4872 if test "${ac_cv_search_opendir+set}" = set; then
4873   :
4874 else
4875   ac_cv_search_opendir=no
4876 fi
4877 rm conftest.$ac_ext
4878 LIBS=$ac_func_search_save_LIBS
4879 fi
4880 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4881 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4882 ac_res=$ac_cv_search_opendir
4883 if test "$ac_res" != no; then
4884   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4885
4886 fi
4887
4888 fi
4889
4890
4891 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4892 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4893 if test "${ac_cv_path_GREP+set}" = set; then
4894   echo $ECHO_N "(cached) $ECHO_C" >&6
4895 else
4896   # Extract the first word of "grep ggrep" to use in msg output
4897 if test -z "$GREP"; then
4898 set dummy grep ggrep; ac_prog_name=$2
4899 if test "${ac_cv_path_GREP+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   ac_path_GREP_found=false
4903 # Loop through the user's path and test for each of PROGNAME-LIST
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4906 do
4907   IFS=$as_save_IFS
4908   test -z "$as_dir" && as_dir=.
4909   for ac_prog in grep ggrep; do
4910   for ac_exec_ext in '' $ac_executable_extensions; do
4911     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4912     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4913     # Check for GNU ac_path_GREP and select it if it is found.
4914   # Check for GNU $ac_path_GREP
4915 case `"$ac_path_GREP" --version 2>&1` in
4916 *GNU*)
4917   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4918 *)
4919   ac_count=0
4920   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4921   while :
4922   do
4923     cat "conftest.in" "conftest.in" >"conftest.tmp"
4924     mv "conftest.tmp" "conftest.in"
4925     cp "conftest.in" "conftest.nl"
4926     echo 'GREP' >> "conftest.nl"
4927     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4928     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4929     ac_count=`expr $ac_count + 1`
4930     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4931       # Best one so far, save it but keep looking for a better one
4932       ac_cv_path_GREP="$ac_path_GREP"
4933       ac_path_GREP_max=$ac_count
4934     fi
4935     # 10*(2^10) chars as input seems more than enough
4936     test $ac_count -gt 10 && break
4937   done
4938   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4939 esac
4940
4941
4942     $ac_path_GREP_found && break 3
4943   done
4944 done
4945
4946 done
4947 IFS=$as_save_IFS
4948
4949
4950 fi
4951
4952 GREP="$ac_cv_path_GREP"
4953 if test -z "$GREP"; then
4954   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4955 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4956    { (exit 1); exit 1; }; }
4957 fi
4958
4959 else
4960   ac_cv_path_GREP=$GREP
4961 fi
4962
4963
4964 fi
4965 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4966 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4967  GREP="$ac_cv_path_GREP"
4968
4969
4970 { echo "$as_me:$LINENO: checking for egrep" >&5
4971 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4972 if test "${ac_cv_path_EGREP+set}" = set; then
4973   echo $ECHO_N "(cached) $ECHO_C" >&6
4974 else
4975   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4976    then ac_cv_path_EGREP="$GREP -E"
4977    else
4978      # Extract the first word of "egrep" to use in msg output
4979 if test -z "$EGREP"; then
4980 set dummy egrep; ac_prog_name=$2
4981 if test "${ac_cv_path_EGREP+set}" = set; then
4982   echo $ECHO_N "(cached) $ECHO_C" >&6
4983 else
4984   ac_path_EGREP_found=false
4985 # Loop through the user's path and test for each of PROGNAME-LIST
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991   for ac_prog in egrep; do
4992   for ac_exec_ext in '' $ac_executable_extensions; do
4993     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4994     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4995     # Check for GNU ac_path_EGREP and select it if it is found.
4996   # Check for GNU $ac_path_EGREP
4997 case `"$ac_path_EGREP" --version 2>&1` in
4998 *GNU*)
4999   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5000 *)
5001   ac_count=0
5002   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5003   while :
5004   do
5005     cat "conftest.in" "conftest.in" >"conftest.tmp"
5006     mv "conftest.tmp" "conftest.in"
5007     cp "conftest.in" "conftest.nl"
5008     echo 'EGREP' >> "conftest.nl"
5009     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5010     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5011     ac_count=`expr $ac_count + 1`
5012     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5013       # Best one so far, save it but keep looking for a better one
5014       ac_cv_path_EGREP="$ac_path_EGREP"
5015       ac_path_EGREP_max=$ac_count
5016     fi
5017     # 10*(2^10) chars as input seems more than enough
5018     test $ac_count -gt 10 && break
5019   done
5020   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5021 esac
5022
5023
5024     $ac_path_EGREP_found && break 3
5025   done
5026 done
5027
5028 done
5029 IFS=$as_save_IFS
5030
5031
5032 fi
5033
5034 EGREP="$ac_cv_path_EGREP"
5035 if test -z "$EGREP"; then
5036   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5037 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5038    { (exit 1); exit 1; }; }
5039 fi
5040
5041 else
5042   ac_cv_path_EGREP=$EGREP
5043 fi
5044
5045
5046    fi
5047 fi
5048 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5049 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5050  EGREP="$ac_cv_path_EGREP"
5051
5052
5053 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5054 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5055 if test "${ac_cv_header_stdc+set}" = set; then
5056   echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5058   cat >conftest.$ac_ext <<_ACEOF
5059 /* confdefs.h.  */
5060 _ACEOF
5061 cat confdefs.h >>conftest.$ac_ext
5062 cat >>conftest.$ac_ext <<_ACEOF
5063 /* end confdefs.h.  */
5064 #include <stdlib.h>
5065 #include <stdarg.h>
5066 #include <string.h>
5067 #include <float.h>
5068
5069 int
5070 main ()
5071 {
5072
5073   ;
5074   return 0;
5075 }
5076 _ACEOF
5077 rm -f conftest.$ac_objext
5078 if { (ac_try="$ac_compile"
5079 case "(($ac_try" in
5080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5081   *) ac_try_echo=$ac_try;;
5082 esac
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084   (eval "$ac_compile") 2>conftest.er1
5085   ac_status=$?
5086   grep -v '^ *+' conftest.er1 >conftest.err
5087   rm -f conftest.er1
5088   cat conftest.err >&5
5089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090   (exit $ac_status); } && {
5091          test -z "$ac_c_werror_flag" ||
5092          test ! -s conftest.err
5093        } && test -s conftest.$ac_objext; then
5094   ac_cv_header_stdc=yes
5095 else
5096   echo "$as_me: failed program was:" >&5
5097 sed 's/^/| /' conftest.$ac_ext >&5
5098
5099         ac_cv_header_stdc=no
5100 fi
5101
5102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103
5104 if test $ac_cv_header_stdc = yes; then
5105   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5106   cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h.  */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h.  */
5112 #include <string.h>
5113
5114 _ACEOF
5115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5116   $EGREP "memchr" >/dev/null 2>&1; then
5117   :
5118 else
5119   ac_cv_header_stdc=no
5120 fi
5121 rm -f conftest*
5122
5123 fi
5124
5125 if test $ac_cv_header_stdc = yes; then
5126   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5127   cat >conftest.$ac_ext <<_ACEOF
5128 /* confdefs.h.  */
5129 _ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h.  */
5133 #include <stdlib.h>
5134
5135 _ACEOF
5136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5137   $EGREP "free" >/dev/null 2>&1; then
5138   :
5139 else
5140   ac_cv_header_stdc=no
5141 fi
5142 rm -f conftest*
5143
5144 fi
5145
5146 if test $ac_cv_header_stdc = yes; then
5147   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5148   if test "$cross_compiling" = yes; then
5149   :
5150 else
5151   cat >conftest.$ac_ext <<_ACEOF
5152 /* confdefs.h.  */
5153 _ACEOF
5154 cat confdefs.h >>conftest.$ac_ext
5155 cat >>conftest.$ac_ext <<_ACEOF
5156 /* end confdefs.h.  */
5157 #include <ctype.h>
5158 #include <stdlib.h>
5159 #if ((' ' & 0x0FF) == 0x020)
5160 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5161 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5162 #else
5163 # define ISLOWER(c) \
5164                    (('a' <= (c) && (c) <= 'i') \
5165                      || ('j' <= (c) && (c) <= 'r') \
5166                      || ('s' <= (c) && (c) <= 'z'))
5167 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5168 #endif
5169
5170 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5171 int
5172 main ()
5173 {
5174   int i;
5175   for (i = 0; i < 256; i++)
5176     if (XOR (islower (i), ISLOWER (i))
5177         || toupper (i) != TOUPPER (i))
5178       return 2;
5179   return 0;
5180 }
5181 _ACEOF
5182 rm -f conftest$ac_exeext
5183 if { (ac_try="$ac_link"
5184 case "(($ac_try" in
5185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5186   *) ac_try_echo=$ac_try;;
5187 esac
5188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5189   (eval "$ac_link") 2>&5
5190   ac_status=$?
5191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5193   { (case "(($ac_try" in
5194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195   *) ac_try_echo=$ac_try;;
5196 esac
5197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5198   (eval "$ac_try") 2>&5
5199   ac_status=$?
5200   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201   (exit $ac_status); }; }; then
5202   :
5203 else
5204   echo "$as_me: program exited with status $ac_status" >&5
5205 echo "$as_me: failed program was:" >&5
5206 sed 's/^/| /' conftest.$ac_ext >&5
5207
5208 ( exit $ac_status )
5209 ac_cv_header_stdc=no
5210 fi
5211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5212 fi
5213
5214
5215 fi
5216 fi
5217 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5218 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5219 if test $ac_cv_header_stdc = yes; then
5220
5221 cat >>confdefs.h <<\_ACEOF
5222 #define STDC_HEADERS 1
5223 _ACEOF
5224
5225 fi
5226
5227  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5238                   inttypes.h stdint.h unistd.h
5239 do
5240 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5241 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5242 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5244   echo $ECHO_N "(cached) $ECHO_C" >&6
5245 else
5246   cat >conftest.$ac_ext <<_ACEOF
5247 /* confdefs.h.  */
5248 _ACEOF
5249 cat confdefs.h >>conftest.$ac_ext
5250 cat >>conftest.$ac_ext <<_ACEOF
5251 /* end confdefs.h.  */
5252 $ac_includes_default
5253
5254 #include <$ac_header>
5255 _ACEOF
5256 rm -f conftest.$ac_objext
5257 if { (ac_try="$ac_compile"
5258 case "(($ac_try" in
5259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5260   *) ac_try_echo=$ac_try;;
5261 esac
5262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5263   (eval "$ac_compile") 2>conftest.er1
5264   ac_status=$?
5265   grep -v '^ *+' conftest.er1 >conftest.err
5266   rm -f conftest.er1
5267   cat conftest.err >&5
5268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269   (exit $ac_status); } && {
5270          test -z "$ac_c_werror_flag" ||
5271          test ! -s conftest.err
5272        } && test -s conftest.$ac_objext; then
5273   eval "$as_ac_Header=yes"
5274 else
5275   echo "$as_me: failed program was:" >&5
5276 sed 's/^/| /' conftest.$ac_ext >&5
5277
5278         eval "$as_ac_Header=no"
5279 fi
5280
5281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5282 fi
5283 ac_res=`eval echo '${'$as_ac_Header'}'`
5284                { echo "$as_me:$LINENO: result: $ac_res" >&5
5285 echo "${ECHO_T}$ac_res" >&6; }
5286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5287   cat >>confdefs.h <<_ACEOF
5288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5289 _ACEOF
5290
5291 fi
5292
5293 done
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311 for ac_header in zlib.h gif_lib.h jpeglib.h t1lib.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
5312 do
5313 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5315   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5318   echo $ECHO_N "(cached) $ECHO_C" >&6
5319 fi
5320 ac_res=`eval echo '${'$as_ac_Header'}'`
5321                { echo "$as_me:$LINENO: result: $ac_res" >&5
5322 echo "${ECHO_T}$ac_res" >&6; }
5323 else
5324   # Is the header compilable?
5325 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5326 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5327 cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h.  */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h.  */
5333 $ac_includes_default
5334 #include <$ac_header>
5335 _ACEOF
5336 rm -f conftest.$ac_objext
5337 if { (ac_try="$ac_compile"
5338 case "(($ac_try" in
5339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340   *) ac_try_echo=$ac_try;;
5341 esac
5342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5343   (eval "$ac_compile") 2>conftest.er1
5344   ac_status=$?
5345   grep -v '^ *+' conftest.er1 >conftest.err
5346   rm -f conftest.er1
5347   cat conftest.err >&5
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); } && {
5350          test -z "$ac_c_werror_flag" ||
5351          test ! -s conftest.err
5352        } && test -s conftest.$ac_objext; then
5353   ac_header_compiler=yes
5354 else
5355   echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5357
5358         ac_header_compiler=no
5359 fi
5360
5361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5362 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5363 echo "${ECHO_T}$ac_header_compiler" >&6; }
5364
5365 # Is the header present?
5366 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5367 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5368 cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h.  */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h.  */
5374 #include <$ac_header>
5375 _ACEOF
5376 if { (ac_try="$ac_cpp conftest.$ac_ext"
5377 case "(($ac_try" in
5378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5379   *) ac_try_echo=$ac_try;;
5380 esac
5381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5382   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5383   ac_status=$?
5384   grep -v '^ *+' conftest.er1 >conftest.err
5385   rm -f conftest.er1
5386   cat conftest.err >&5
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); } >/dev/null && {
5389          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5390          test ! -s conftest.err
5391        }; then
5392   ac_header_preproc=yes
5393 else
5394   echo "$as_me: failed program was:" >&5
5395 sed 's/^/| /' conftest.$ac_ext >&5
5396
5397   ac_header_preproc=no
5398 fi
5399
5400 rm -f conftest.err conftest.$ac_ext
5401 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5402 echo "${ECHO_T}$ac_header_preproc" >&6; }
5403
5404 # So?  What about this header?
5405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5406   yes:no: )
5407     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5408 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5409     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5411     ac_header_preproc=yes
5412     ;;
5413   no:yes:* )
5414     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5415 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5416     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5417 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5418     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5419 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5420     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5421 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5422     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5424     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5425 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5426
5427     ;;
5428 esac
5429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5432   echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434   eval "$as_ac_Header=\$ac_header_preproc"
5435 fi
5436 ac_res=`eval echo '${'$as_ac_Header'}'`
5437                { echo "$as_me:$LINENO: result: $ac_res" >&5
5438 echo "${ECHO_T}$ac_res" >&6; }
5439
5440 fi
5441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5442   cat >>confdefs.h <<_ACEOF
5443 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5444 _ACEOF
5445
5446 fi
5447
5448 done
5449
5450
5451 cat >>confdefs.h <<_ACEOF
5452 #define PACKAGE "$PACKAGE"
5453 _ACEOF
5454
5455 cat >>confdefs.h <<_ACEOF
5456 #define VERSION "$VERSION"
5457 _ACEOF
5458
5459
5460
5461
5462
5463
5464
5465  { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5466 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5467 if test "${ac_cv_c_const+set}" = set; then
5468   echo $ECHO_N "(cached) $ECHO_C" >&6
5469 else
5470   cat >conftest.$ac_ext <<_ACEOF
5471 /* confdefs.h.  */
5472 _ACEOF
5473 cat confdefs.h >>conftest.$ac_ext
5474 cat >>conftest.$ac_ext <<_ACEOF
5475 /* end confdefs.h.  */
5476
5477 int
5478 main ()
5479 {
5480 /* FIXME: Include the comments suggested by Paul. */
5481 #ifndef __cplusplus
5482   /* Ultrix mips cc rejects this.  */
5483   typedef int charset[2];
5484   const charset cs;
5485   /* SunOS 4.1.1 cc rejects this.  */
5486   char const *const *pcpcc;
5487   char **ppc;
5488   /* NEC SVR4.0.2 mips cc rejects this.  */
5489   struct point {int x, y;};
5490   static struct point const zero = {0,0};
5491   /* AIX XL C 1.02.0.0 rejects this.
5492      It does not let you subtract one const X* pointer from another in
5493      an arm of an if-expression whose if-part is not a constant
5494      expression */
5495   const char *g = "string";
5496   pcpcc = &g + (g ? g-g : 0);
5497   /* HPUX 7.0 cc rejects these. */
5498   ++pcpcc;
5499   ppc = (char**) pcpcc;
5500   pcpcc = (char const *const *) ppc;
5501   { /* SCO 3.2v4 cc rejects this.  */
5502     char *t;
5503     char const *s = 0 ? (char *) 0 : (char const *) 0;
5504
5505     *t++ = 0;
5506     if (s) return 0;
5507   }
5508   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5509     int x[] = {25, 17};
5510     const int *foo = &x[0];
5511     ++foo;
5512   }
5513   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5514     typedef const int *iptr;
5515     iptr p = 0;
5516     ++p;
5517   }
5518   { /* AIX XL C 1.02.0.0 rejects this saying
5519        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5520     struct s { int j; const int *ap[3]; };
5521     struct s *b; b->j = 5;
5522   }
5523   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5524     const int foo = 10;
5525     if (!foo) return 0;
5526   }
5527   return !cs[0] && !zero.x;
5528 #endif
5529
5530   ;
5531   return 0;
5532 }
5533 _ACEOF
5534 rm -f conftest.$ac_objext
5535 if { (ac_try="$ac_compile"
5536 case "(($ac_try" in
5537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538   *) ac_try_echo=$ac_try;;
5539 esac
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541   (eval "$ac_compile") 2>conftest.er1
5542   ac_status=$?
5543   grep -v '^ *+' conftest.er1 >conftest.err
5544   rm -f conftest.er1
5545   cat conftest.err >&5
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); } && {
5548          test -z "$ac_c_werror_flag" ||
5549          test ! -s conftest.err
5550        } && test -s conftest.$ac_objext; then
5551   ac_cv_c_const=yes
5552 else
5553   echo "$as_me: failed program was:" >&5
5554 sed 's/^/| /' conftest.$ac_ext >&5
5555
5556         ac_cv_c_const=no
5557 fi
5558
5559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 fi
5561 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5562 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5563 if test $ac_cv_c_const = no; then
5564
5565 cat >>confdefs.h <<\_ACEOF
5566 #define const
5567 _ACEOF
5568
5569 fi
5570
5571  { echo "$as_me:$LINENO: checking for inline" >&5
5572 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5573 if test "${ac_cv_c_inline+set}" = set; then
5574   echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576   ac_cv_c_inline=no
5577 for ac_kw in inline __inline__ __inline; do
5578   cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h.  */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h.  */
5584 #ifndef __cplusplus
5585 typedef int foo_t;
5586 static $ac_kw foo_t static_foo () {return 0; }
5587 $ac_kw foo_t foo () {return 0; }
5588 #endif
5589
5590 _ACEOF
5591 rm -f conftest.$ac_objext
5592 if { (ac_try="$ac_compile"
5593 case "(($ac_try" in
5594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5595   *) ac_try_echo=$ac_try;;
5596 esac
5597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5598   (eval "$ac_compile") 2>conftest.er1
5599   ac_status=$?
5600   grep -v '^ *+' conftest.er1 >conftest.err
5601   rm -f conftest.er1
5602   cat conftest.err >&5
5603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5604   (exit $ac_status); } && {
5605          test -z "$ac_c_werror_flag" ||
5606          test ! -s conftest.err
5607        } && test -s conftest.$ac_objext; then
5608   ac_cv_c_inline=$ac_kw
5609 else
5610   echo "$as_me: failed program was:" >&5
5611 sed 's/^/| /' conftest.$ac_ext >&5
5612
5613
5614 fi
5615
5616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617   test "$ac_cv_c_inline" != no && break
5618 done
5619
5620 fi
5621 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5622 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5623
5624
5625 case $ac_cv_c_inline in
5626   inline | yes) ;;
5627   *)
5628     case $ac_cv_c_inline in
5629       no) ac_val=;;
5630       *) ac_val=$ac_cv_c_inline;;
5631     esac
5632     cat >>confdefs.h <<_ACEOF
5633 #ifndef __cplusplus
5634 #define inline $ac_val
5635 #endif
5636 _ACEOF
5637     ;;
5638 esac
5639
5640  { echo "$as_me:$LINENO: checking for off_t" >&5
5641 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5642 if test "${ac_cv_type_off_t+set}" = set; then
5643   echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645   cat >conftest.$ac_ext <<_ACEOF
5646 /* confdefs.h.  */
5647 _ACEOF
5648 cat confdefs.h >>conftest.$ac_ext
5649 cat >>conftest.$ac_ext <<_ACEOF
5650 /* end confdefs.h.  */
5651 $ac_includes_default
5652 typedef off_t ac__type_new_;
5653 int
5654 main ()
5655 {
5656 if ((ac__type_new_ *) 0)
5657   return 0;
5658 if (sizeof (ac__type_new_))
5659   return 0;
5660   ;
5661   return 0;
5662 }
5663 _ACEOF
5664 rm -f conftest.$ac_objext
5665 if { (ac_try="$ac_compile"
5666 case "(($ac_try" in
5667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668   *) ac_try_echo=$ac_try;;
5669 esac
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671   (eval "$ac_compile") 2>conftest.er1
5672   ac_status=$?
5673   grep -v '^ *+' conftest.er1 >conftest.err
5674   rm -f conftest.er1
5675   cat conftest.err >&5
5676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677   (exit $ac_status); } && {
5678          test -z "$ac_c_werror_flag" ||
5679          test ! -s conftest.err
5680        } && test -s conftest.$ac_objext; then
5681   ac_cv_type_off_t=yes
5682 else
5683   echo "$as_me: failed program was:" >&5
5684 sed 's/^/| /' conftest.$ac_ext >&5
5685
5686         ac_cv_type_off_t=no
5687 fi
5688
5689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5690 fi
5691 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5692 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5693 if test $ac_cv_type_off_t = yes; then
5694   :
5695 else
5696
5697 cat >>confdefs.h <<_ACEOF
5698 #define off_t long int
5699 _ACEOF
5700
5701 fi
5702
5703  { echo "$as_me:$LINENO: checking for size_t" >&5
5704 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5705 if test "${ac_cv_type_size_t+set}" = set; then
5706   echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708   cat >conftest.$ac_ext <<_ACEOF
5709 /* confdefs.h.  */
5710 _ACEOF
5711 cat confdefs.h >>conftest.$ac_ext
5712 cat >>conftest.$ac_ext <<_ACEOF
5713 /* end confdefs.h.  */
5714 $ac_includes_default
5715 typedef size_t ac__type_new_;
5716 int
5717 main ()
5718 {
5719 if ((ac__type_new_ *) 0)
5720   return 0;
5721 if (sizeof (ac__type_new_))
5722   return 0;
5723   ;
5724   return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext
5728 if { (ac_try="$ac_compile"
5729 case "(($ac_try" in
5730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731   *) ac_try_echo=$ac_try;;
5732 esac
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734   (eval "$ac_compile") 2>conftest.er1
5735   ac_status=$?
5736   grep -v '^ *+' conftest.er1 >conftest.err
5737   rm -f conftest.er1
5738   cat conftest.err >&5
5739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740   (exit $ac_status); } && {
5741          test -z "$ac_c_werror_flag" ||
5742          test ! -s conftest.err
5743        } && test -s conftest.$ac_objext; then
5744   ac_cv_type_size_t=yes
5745 else
5746   echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749         ac_cv_type_size_t=no
5750 fi
5751
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 fi
5754 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5755 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5756 if test $ac_cv_type_size_t = yes; then
5757   :
5758 else
5759
5760 cat >>confdefs.h <<_ACEOF
5761 #define size_t unsigned int
5762 _ACEOF
5763
5764 fi
5765
5766  { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5767 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5768 if test "${ac_cv_struct_tm+set}" = set; then
5769   echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771   cat >conftest.$ac_ext <<_ACEOF
5772 /* confdefs.h.  */
5773 _ACEOF
5774 cat confdefs.h >>conftest.$ac_ext
5775 cat >>conftest.$ac_ext <<_ACEOF
5776 /* end confdefs.h.  */
5777 #include <sys/types.h>
5778 #include <time.h>
5779
5780 int
5781 main ()
5782 {
5783 struct tm tm;
5784                                      int *p = &tm.tm_sec;
5785                                      return !p;
5786   ;
5787   return 0;
5788 }
5789 _ACEOF
5790 rm -f conftest.$ac_objext
5791 if { (ac_try="$ac_compile"
5792 case "(($ac_try" in
5793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5794   *) ac_try_echo=$ac_try;;
5795 esac
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797   (eval "$ac_compile") 2>conftest.er1
5798   ac_status=$?
5799   grep -v '^ *+' conftest.er1 >conftest.err
5800   rm -f conftest.er1
5801   cat conftest.err >&5
5802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); } && {
5804          test -z "$ac_c_werror_flag" ||
5805          test ! -s conftest.err
5806        } && test -s conftest.$ac_objext; then
5807   ac_cv_struct_tm=time.h
5808 else
5809   echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5811
5812         ac_cv_struct_tm=sys/time.h
5813 fi
5814
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816 fi
5817 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5818 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5819 if test $ac_cv_struct_tm = sys/time.h; then
5820
5821 cat >>confdefs.h <<\_ACEOF
5822 #define TM_IN_SYS_TIME 1
5823 _ACEOF
5824
5825 fi
5826
5827  { echo "$as_me:$LINENO: checking for boolean" >&5
5828 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5829 if test "${ac_cv_type_boolean+set}" = set; then
5830   echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832   cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h.  */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h.  */
5838 $ac_includes_default
5839 typedef boolean ac__type_new_;
5840 int
5841 main ()
5842 {
5843 if ((ac__type_new_ *) 0)
5844   return 0;
5845 if (sizeof (ac__type_new_))
5846   return 0;
5847   ;
5848   return 0;
5849 }
5850 _ACEOF
5851 rm -f conftest.$ac_objext
5852 if { (ac_try="$ac_compile"
5853 case "(($ac_try" in
5854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5855   *) ac_try_echo=$ac_try;;
5856 esac
5857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5858   (eval "$ac_compile") 2>conftest.er1
5859   ac_status=$?
5860   grep -v '^ *+' conftest.er1 >conftest.err
5861   rm -f conftest.er1
5862   cat conftest.err >&5
5863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864   (exit $ac_status); } && {
5865          test -z "$ac_c_werror_flag" ||
5866          test ! -s conftest.err
5867        } && test -s conftest.$ac_objext; then
5868   ac_cv_type_boolean=yes
5869 else
5870   echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5872
5873         ac_cv_type_boolean=no
5874 fi
5875
5876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5877 fi
5878 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5879 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5880 if test $ac_cv_type_boolean = yes; then
5881   :
5882 else
5883
5884 cat >>confdefs.h <<_ACEOF
5885 #define boolean int
5886 _ACEOF
5887
5888 fi
5889  #needed for jpeglib
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
5901 do
5902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   cat >conftest.$ac_ext <<_ACEOF
5909 /* confdefs.h.  */
5910 _ACEOF
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h.  */
5914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5915    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5916 #define $ac_func innocuous_$ac_func
5917
5918 /* System header to define __stub macros and hopefully few prototypes,
5919     which can conflict with char $ac_func (); below.
5920     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5921     <limits.h> exists even on freestanding compilers.  */
5922
5923 #ifdef __STDC__
5924 # include <limits.h>
5925 #else
5926 # include <assert.h>
5927 #endif
5928
5929 #undef $ac_func
5930
5931 /* Override any GCC internal prototype to avoid an error.
5932    Use char because int might match the return type of a GCC
5933    builtin and then its argument prototype would still apply.  */
5934 #ifdef __cplusplus
5935 extern "C"
5936 #endif
5937 char $ac_func ();
5938 /* The GNU C library defines this for functions which it implements
5939     to always fail with ENOSYS.  Some functions are actually named
5940     something starting with __ and the normal name is an alias.  */
5941 #if defined __stub_$ac_func || defined __stub___$ac_func
5942 choke me
5943 #endif
5944
5945 int
5946 main ()
5947 {
5948 return $ac_func ();
5949   ;
5950   return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext conftest$ac_exeext
5954 if { (ac_try="$ac_link"
5955 case "(($ac_try" in
5956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957   *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960   (eval "$ac_link") 2>conftest.er1
5961   ac_status=$?
5962   grep -v '^ *+' conftest.er1 >conftest.err
5963   rm -f conftest.er1
5964   cat conftest.err >&5
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); } && {
5967          test -z "$ac_c_werror_flag" ||
5968          test ! -s conftest.err
5969        } && test -s conftest$ac_exeext &&
5970        $as_test_x conftest$ac_exeext; then
5971   eval "$as_ac_var=yes"
5972 else
5973   echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5975
5976         eval "$as_ac_var=no"
5977 fi
5978
5979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5980       conftest$ac_exeext conftest.$ac_ext
5981 fi
5982 ac_res=`eval echo '${'$as_ac_var'}'`
5983                { echo "$as_me:$LINENO: result: $ac_res" >&5
5984 echo "${ECHO_T}$ac_res" >&6; }
5985 if test `eval echo '${'$as_ac_var'}'` = yes; then
5986   cat >>confdefs.h <<_ACEOF
5987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5988 _ACEOF
5989
5990 fi
5991 done
5992
5993
5994 { echo "$as_me:$LINENO: checking for signed" >&5
5995 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5996 if test "${ac_cv_type_signed+set}" = set; then
5997   echo $ECHO_N "(cached) $ECHO_C" >&6
5998 else
5999   cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h.  */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h.  */
6005 $ac_includes_default
6006 typedef signed ac__type_new_;
6007 int
6008 main ()
6009 {
6010 if ((ac__type_new_ *) 0)
6011   return 0;
6012 if (sizeof (ac__type_new_))
6013   return 0;
6014   ;
6015   return 0;
6016 }
6017 _ACEOF
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6020 case "(($ac_try" in
6021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6022   *) ac_try_echo=$ac_try;;
6023 esac
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025   (eval "$ac_compile") 2>conftest.er1
6026   ac_status=$?
6027   grep -v '^ *+' conftest.er1 >conftest.err
6028   rm -f conftest.er1
6029   cat conftest.err >&5
6030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031   (exit $ac_status); } && {
6032          test -z "$ac_c_werror_flag" ||
6033          test ! -s conftest.err
6034        } && test -s conftest.$ac_objext; then
6035   ac_cv_type_signed=yes
6036 else
6037   echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6039
6040         ac_cv_type_signed=no
6041 fi
6042
6043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6044 fi
6045 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
6046 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
6047
6048 # The cast to long int works around a bug in the HP C Compiler
6049 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6050 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6051 # This bug is HP SR number 8606223364.
6052 { echo "$as_me:$LINENO: checking size of signed" >&5
6053 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
6054 if test "${ac_cv_sizeof_signed+set}" = set; then
6055   echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057   if test "$cross_compiling" = yes; then
6058   # Depending upon the size, compute the lo and hi bounds.
6059 cat >conftest.$ac_ext <<_ACEOF
6060 /* confdefs.h.  */
6061 _ACEOF
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h.  */
6065 $ac_includes_default
6066    typedef signed ac__type_sizeof_;
6067 int
6068 main ()
6069 {
6070 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6071 test_array [0] = 0
6072
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077 rm -f conftest.$ac_objext
6078 if { (ac_try="$ac_compile"
6079 case "(($ac_try" in
6080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081   *) ac_try_echo=$ac_try;;
6082 esac
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084   (eval "$ac_compile") 2>conftest.er1
6085   ac_status=$?
6086   grep -v '^ *+' conftest.er1 >conftest.err
6087   rm -f conftest.er1
6088   cat conftest.err >&5
6089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090   (exit $ac_status); } && {
6091          test -z "$ac_c_werror_flag" ||
6092          test ! -s conftest.err
6093        } && test -s conftest.$ac_objext; then
6094   ac_lo=0 ac_mid=0
6095   while :; do
6096     cat >conftest.$ac_ext <<_ACEOF
6097 /* confdefs.h.  */
6098 _ACEOF
6099 cat confdefs.h >>conftest.$ac_ext
6100 cat >>conftest.$ac_ext <<_ACEOF
6101 /* end confdefs.h.  */
6102 $ac_includes_default
6103    typedef signed ac__type_sizeof_;
6104 int
6105 main ()
6106 {
6107 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6108 test_array [0] = 0
6109
6110   ;
6111   return 0;
6112 }
6113 _ACEOF
6114 rm -f conftest.$ac_objext
6115 if { (ac_try="$ac_compile"
6116 case "(($ac_try" in
6117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6118   *) ac_try_echo=$ac_try;;
6119 esac
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121   (eval "$ac_compile") 2>conftest.er1
6122   ac_status=$?
6123   grep -v '^ *+' conftest.er1 >conftest.err
6124   rm -f conftest.er1
6125   cat conftest.err >&5
6126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127   (exit $ac_status); } && {
6128          test -z "$ac_c_werror_flag" ||
6129          test ! -s conftest.err
6130        } && test -s conftest.$ac_objext; then
6131   ac_hi=$ac_mid; break
6132 else
6133   echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6135
6136         ac_lo=`expr $ac_mid + 1`
6137                         if test $ac_lo -le $ac_mid; then
6138                           ac_lo= ac_hi=
6139                           break
6140                         fi
6141                         ac_mid=`expr 2 '*' $ac_mid + 1`
6142 fi
6143
6144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145   done
6146 else
6147   echo "$as_me: failed program was:" >&5
6148 sed 's/^/| /' conftest.$ac_ext >&5
6149
6150         cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h.  */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h.  */
6156 $ac_includes_default
6157    typedef signed ac__type_sizeof_;
6158 int
6159 main ()
6160 {
6161 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6162 test_array [0] = 0
6163
6164   ;
6165   return 0;
6166 }
6167 _ACEOF
6168 rm -f conftest.$ac_objext
6169 if { (ac_try="$ac_compile"
6170 case "(($ac_try" in
6171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172   *) ac_try_echo=$ac_try;;
6173 esac
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175   (eval "$ac_compile") 2>conftest.er1
6176   ac_status=$?
6177   grep -v '^ *+' conftest.er1 >conftest.err
6178   rm -f conftest.er1
6179   cat conftest.err >&5
6180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181   (exit $ac_status); } && {
6182          test -z "$ac_c_werror_flag" ||
6183          test ! -s conftest.err
6184        } && test -s conftest.$ac_objext; then
6185   ac_hi=-1 ac_mid=-1
6186   while :; do
6187     cat >conftest.$ac_ext <<_ACEOF
6188 /* confdefs.h.  */
6189 _ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h.  */
6193 $ac_includes_default
6194    typedef signed ac__type_sizeof_;
6195 int
6196 main ()
6197 {
6198 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6199 test_array [0] = 0
6200
6201   ;
6202   return 0;
6203 }
6204 _ACEOF
6205 rm -f conftest.$ac_objext
6206 if { (ac_try="$ac_compile"
6207 case "(($ac_try" in
6208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6209   *) ac_try_echo=$ac_try;;
6210 esac
6211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6212   (eval "$ac_compile") 2>conftest.er1
6213   ac_status=$?
6214   grep -v '^ *+' conftest.er1 >conftest.err
6215   rm -f conftest.er1
6216   cat conftest.err >&5
6217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218   (exit $ac_status); } && {
6219          test -z "$ac_c_werror_flag" ||
6220          test ! -s conftest.err
6221        } && test -s conftest.$ac_objext; then
6222   ac_lo=$ac_mid; break
6223 else
6224   echo "$as_me: failed program was:" >&5
6225 sed 's/^/| /' conftest.$ac_ext >&5
6226
6227         ac_hi=`expr '(' $ac_mid ')' - 1`
6228                         if test $ac_mid -le $ac_hi; then
6229                           ac_lo= ac_hi=
6230                           break
6231                         fi
6232                         ac_mid=`expr 2 '*' $ac_mid`
6233 fi
6234
6235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6236   done
6237 else
6238   echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6240
6241         ac_lo= ac_hi=
6242 fi
6243
6244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6245 fi
6246
6247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6248 # Binary search between lo and hi bounds.
6249 while test "x$ac_lo" != "x$ac_hi"; do
6250   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6251   cat >conftest.$ac_ext <<_ACEOF
6252 /* confdefs.h.  */
6253 _ACEOF
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h.  */
6257 $ac_includes_default
6258    typedef signed ac__type_sizeof_;
6259 int
6260 main ()
6261 {
6262 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6263 test_array [0] = 0
6264
6265   ;
6266   return 0;
6267 }
6268 _ACEOF
6269 rm -f conftest.$ac_objext
6270 if { (ac_try="$ac_compile"
6271 case "(($ac_try" in
6272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6273   *) ac_try_echo=$ac_try;;
6274 esac
6275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276   (eval "$ac_compile") 2>conftest.er1
6277   ac_status=$?
6278   grep -v '^ *+' conftest.er1 >conftest.err
6279   rm -f conftest.er1
6280   cat conftest.err >&5
6281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282   (exit $ac_status); } && {
6283          test -z "$ac_c_werror_flag" ||
6284          test ! -s conftest.err
6285        } && test -s conftest.$ac_objext; then
6286   ac_hi=$ac_mid
6287 else
6288   echo "$as_me: failed program was:" >&5
6289 sed 's/^/| /' conftest.$ac_ext >&5
6290
6291         ac_lo=`expr '(' $ac_mid ')' + 1`
6292 fi
6293
6294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6295 done
6296 case $ac_lo in
6297 ?*) ac_cv_sizeof_signed=$ac_lo;;
6298 '') if test "$ac_cv_type_signed" = yes; then
6299      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6300 See \`config.log' for more details." >&5
6301 echo "$as_me: error: cannot compute sizeof (signed)
6302 See \`config.log' for more details." >&2;}
6303    { (exit 77); exit 77; }; }
6304    else
6305      ac_cv_sizeof_signed=0
6306    fi ;;
6307 esac
6308 else
6309   cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h.  */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h.  */
6315 $ac_includes_default
6316    typedef signed ac__type_sizeof_;
6317 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6318 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6319 #include <stdio.h>
6320 #include <stdlib.h>
6321 int
6322 main ()
6323 {
6324
6325   FILE *f = fopen ("conftest.val", "w");
6326   if (! f)
6327     return 1;
6328   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6329     {
6330       long int i = longval ();
6331       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6332         return 1;
6333       fprintf (f, "%ld\n", i);
6334     }
6335   else
6336     {
6337       unsigned long int i = ulongval ();
6338       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6339         return 1;
6340       fprintf (f, "%lu\n", i);
6341     }
6342   return ferror (f) || fclose (f) != 0;
6343
6344   ;
6345   return 0;
6346 }
6347 _ACEOF
6348 rm -f conftest$ac_exeext
6349 if { (ac_try="$ac_link"
6350 case "(($ac_try" in
6351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352   *) ac_try_echo=$ac_try;;
6353 esac
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355   (eval "$ac_link") 2>&5
6356   ac_status=$?
6357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6359   { (case "(($ac_try" in
6360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361   *) ac_try_echo=$ac_try;;
6362 esac
6363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364   (eval "$ac_try") 2>&5
6365   ac_status=$?
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); }; }; then
6368   ac_cv_sizeof_signed=`cat conftest.val`
6369 else
6370   echo "$as_me: program exited with status $ac_status" >&5
6371 echo "$as_me: failed program was:" >&5
6372 sed 's/^/| /' conftest.$ac_ext >&5
6373
6374 ( exit $ac_status )
6375 if test "$ac_cv_type_signed" = yes; then
6376      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6377 See \`config.log' for more details." >&5
6378 echo "$as_me: error: cannot compute sizeof (signed)
6379 See \`config.log' for more details." >&2;}
6380    { (exit 77); exit 77; }; }
6381    else
6382      ac_cv_sizeof_signed=0
6383    fi
6384 fi
6385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6386 fi
6387 rm -f conftest.val
6388 fi
6389 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
6390 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
6391
6392
6393
6394 cat >>confdefs.h <<_ACEOF
6395 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
6396 _ACEOF
6397
6398
6399 { echo "$as_me:$LINENO: checking for unsigned" >&5
6400 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
6401 if test "${ac_cv_type_unsigned+set}" = set; then
6402   echo $ECHO_N "(cached) $ECHO_C" >&6
6403 else
6404   cat >conftest.$ac_ext <<_ACEOF
6405 /* confdefs.h.  */
6406 _ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h.  */
6410 $ac_includes_default
6411 typedef unsigned ac__type_new_;
6412 int
6413 main ()
6414 {
6415 if ((ac__type_new_ *) 0)
6416   return 0;
6417 if (sizeof (ac__type_new_))
6418   return 0;
6419   ;
6420   return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (ac_try="$ac_compile"
6425 case "(($ac_try" in
6426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427   *) ac_try_echo=$ac_try;;
6428 esac
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430   (eval "$ac_compile") 2>conftest.er1
6431   ac_status=$?
6432   grep -v '^ *+' conftest.er1 >conftest.err
6433   rm -f conftest.er1
6434   cat conftest.err >&5
6435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436   (exit $ac_status); } && {
6437          test -z "$ac_c_werror_flag" ||
6438          test ! -s conftest.err
6439        } && test -s conftest.$ac_objext; then
6440   ac_cv_type_unsigned=yes
6441 else
6442   echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445         ac_cv_type_unsigned=no
6446 fi
6447
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 fi
6450 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
6451 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
6452
6453 # The cast to long int works around a bug in the HP C Compiler
6454 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6455 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6456 # This bug is HP SR number 8606223364.
6457 { echo "$as_me:$LINENO: checking size of unsigned" >&5
6458 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
6459 if test "${ac_cv_sizeof_unsigned+set}" = set; then
6460   echo $ECHO_N "(cached) $ECHO_C" >&6
6461 else
6462   if test "$cross_compiling" = yes; then
6463   # Depending upon the size, compute the lo and hi bounds.
6464 cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h.  */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h.  */
6470 $ac_includes_default
6471    typedef unsigned ac__type_sizeof_;
6472 int
6473 main ()
6474 {
6475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6476 test_array [0] = 0
6477
6478   ;
6479   return 0;
6480 }
6481 _ACEOF
6482 rm -f conftest.$ac_objext
6483 if { (ac_try="$ac_compile"
6484 case "(($ac_try" in
6485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486   *) ac_try_echo=$ac_try;;
6487 esac
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489   (eval "$ac_compile") 2>conftest.er1
6490   ac_status=$?
6491   grep -v '^ *+' conftest.er1 >conftest.err
6492   rm -f conftest.er1
6493   cat conftest.err >&5
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); } && {
6496          test -z "$ac_c_werror_flag" ||
6497          test ! -s conftest.err
6498        } && test -s conftest.$ac_objext; then
6499   ac_lo=0 ac_mid=0
6500   while :; do
6501     cat >conftest.$ac_ext <<_ACEOF
6502 /* confdefs.h.  */
6503 _ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h.  */
6507 $ac_includes_default
6508    typedef unsigned ac__type_sizeof_;
6509 int
6510 main ()
6511 {
6512 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6513 test_array [0] = 0
6514
6515   ;
6516   return 0;
6517 }
6518 _ACEOF
6519 rm -f conftest.$ac_objext
6520 if { (ac_try="$ac_compile"
6521 case "(($ac_try" in
6522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523   *) ac_try_echo=$ac_try;;
6524 esac
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526   (eval "$ac_compile") 2>conftest.er1
6527   ac_status=$?
6528   grep -v '^ *+' conftest.er1 >conftest.err
6529   rm -f conftest.er1
6530   cat conftest.err >&5
6531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532   (exit $ac_status); } && {
6533          test -z "$ac_c_werror_flag" ||
6534          test ! -s conftest.err
6535        } && test -s conftest.$ac_objext; then
6536   ac_hi=$ac_mid; break
6537 else
6538   echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6540
6541         ac_lo=`expr $ac_mid + 1`
6542                         if test $ac_lo -le $ac_mid; then
6543                           ac_lo= ac_hi=
6544                           break
6545                         fi
6546                         ac_mid=`expr 2 '*' $ac_mid + 1`
6547 fi
6548
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550   done
6551 else
6552   echo "$as_me: failed program was:" >&5
6553 sed 's/^/| /' conftest.$ac_ext >&5
6554
6555         cat >conftest.$ac_ext <<_ACEOF
6556 /* confdefs.h.  */
6557 _ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h.  */
6561 $ac_includes_default
6562    typedef unsigned ac__type_sizeof_;
6563 int
6564 main ()
6565 {
6566 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6567 test_array [0] = 0
6568
6569   ;
6570   return 0;
6571 }
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (ac_try="$ac_compile"
6575 case "(($ac_try" in
6576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577   *) ac_try_echo=$ac_try;;
6578 esac
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580   (eval "$ac_compile") 2>conftest.er1
6581   ac_status=$?
6582   grep -v '^ *+' conftest.er1 >conftest.err
6583   rm -f conftest.er1
6584   cat conftest.err >&5
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } && {
6587          test -z "$ac_c_werror_flag" ||
6588          test ! -s conftest.err
6589        } && test -s conftest.$ac_objext; then
6590   ac_hi=-1 ac_mid=-1
6591   while :; do
6592     cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h.  */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h.  */
6598 $ac_includes_default
6599    typedef unsigned ac__type_sizeof_;
6600 int
6601 main ()
6602 {
6603 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6604 test_array [0] = 0
6605
6606   ;
6607   return 0;
6608 }
6609 _ACEOF
6610 rm -f conftest.$ac_objext
6611 if { (ac_try="$ac_compile"
6612 case "(($ac_try" in
6613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6614   *) ac_try_echo=$ac_try;;
6615 esac
6616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6617   (eval "$ac_compile") 2>conftest.er1
6618   ac_status=$?
6619   grep -v '^ *+' conftest.er1 >conftest.err
6620   rm -f conftest.er1
6621   cat conftest.err >&5
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); } && {
6624          test -z "$ac_c_werror_flag" ||
6625          test ! -s conftest.err
6626        } && test -s conftest.$ac_objext; then
6627   ac_lo=$ac_mid; break
6628 else
6629   echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6631
6632         ac_hi=`expr '(' $ac_mid ')' - 1`
6633                         if test $ac_mid -le $ac_hi; then
6634                           ac_lo= ac_hi=
6635                           break
6636                         fi
6637                         ac_mid=`expr 2 '*' $ac_mid`
6638 fi
6639
6640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6641   done
6642 else
6643   echo "$as_me: failed program was:" >&5
6644 sed 's/^/| /' conftest.$ac_ext >&5
6645
6646         ac_lo= ac_hi=
6647 fi
6648
6649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650 fi
6651
6652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6653 # Binary search between lo and hi bounds.
6654 while test "x$ac_lo" != "x$ac_hi"; do
6655   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6656   cat >conftest.$ac_ext <<_ACEOF
6657 /* confdefs.h.  */
6658 _ACEOF
6659 cat confdefs.h >>conftest.$ac_ext
6660 cat >>conftest.$ac_ext <<_ACEOF
6661 /* end confdefs.h.  */
6662 $ac_includes_default
6663    typedef unsigned ac__type_sizeof_;
6664 int
6665 main ()
6666 {
6667 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6668 test_array [0] = 0
6669
6670   ;
6671   return 0;
6672 }
6673 _ACEOF
6674 rm -f conftest.$ac_objext
6675 if { (ac_try="$ac_compile"
6676 case "(($ac_try" in
6677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6678   *) ac_try_echo=$ac_try;;
6679 esac
6680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6681   (eval "$ac_compile") 2>conftest.er1
6682   ac_status=$?
6683   grep -v '^ *+' conftest.er1 >conftest.err
6684   rm -f conftest.er1
6685   cat conftest.err >&5
6686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); } && {
6688          test -z "$ac_c_werror_flag" ||
6689          test ! -s conftest.err
6690        } && test -s conftest.$ac_objext; then
6691   ac_hi=$ac_mid
6692 else
6693   echo "$as_me: failed program was:" >&5
6694 sed 's/^/| /' conftest.$ac_ext >&5
6695
6696         ac_lo=`expr '(' $ac_mid ')' + 1`
6697 fi
6698
6699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6700 done
6701 case $ac_lo in
6702 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
6703 '') if test "$ac_cv_type_unsigned" = yes; then
6704      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6705 See \`config.log' for more details." >&5
6706 echo "$as_me: error: cannot compute sizeof (unsigned)
6707 See \`config.log' for more details." >&2;}
6708    { (exit 77); exit 77; }; }
6709    else
6710      ac_cv_sizeof_unsigned=0
6711    fi ;;
6712 esac
6713 else
6714   cat >conftest.$ac_ext <<_ACEOF
6715 /* confdefs.h.  */
6716 _ACEOF
6717 cat confdefs.h >>conftest.$ac_ext
6718 cat >>conftest.$ac_ext <<_ACEOF
6719 /* end confdefs.h.  */
6720 $ac_includes_default
6721    typedef unsigned ac__type_sizeof_;
6722 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6723 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6724 #include <stdio.h>
6725 #include <stdlib.h>
6726 int
6727 main ()
6728 {
6729
6730   FILE *f = fopen ("conftest.val", "w");
6731   if (! f)
6732     return 1;
6733   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6734     {
6735       long int i = longval ();
6736       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6737         return 1;
6738       fprintf (f, "%ld\n", i);
6739     }
6740   else
6741     {
6742       unsigned long int i = ulongval ();
6743       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6744         return 1;
6745       fprintf (f, "%lu\n", i);
6746     }
6747   return ferror (f) || fclose (f) != 0;
6748
6749   ;
6750   return 0;
6751 }
6752 _ACEOF
6753 rm -f conftest$ac_exeext
6754 if { (ac_try="$ac_link"
6755 case "(($ac_try" in
6756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757   *) ac_try_echo=$ac_try;;
6758 esac
6759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6760   (eval "$ac_link") 2>&5
6761   ac_status=$?
6762   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6764   { (case "(($ac_try" in
6765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766   *) ac_try_echo=$ac_try;;
6767 esac
6768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6769   (eval "$ac_try") 2>&5
6770   ac_status=$?
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); }; }; then
6773   ac_cv_sizeof_unsigned=`cat conftest.val`
6774 else
6775   echo "$as_me: program exited with status $ac_status" >&5
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6778
6779 ( exit $ac_status )
6780 if test "$ac_cv_type_unsigned" = yes; then
6781      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6782 See \`config.log' for more details." >&5
6783 echo "$as_me: error: cannot compute sizeof (unsigned)
6784 See \`config.log' for more details." >&2;}
6785    { (exit 77); exit 77; }; }
6786    else
6787      ac_cv_sizeof_unsigned=0
6788    fi
6789 fi
6790 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6791 fi
6792 rm -f conftest.val
6793 fi
6794 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
6795 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
6796
6797
6798
6799 cat >>confdefs.h <<_ACEOF
6800 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
6801 _ACEOF
6802
6803
6804 { echo "$as_me:$LINENO: checking for signed long" >&5
6805 echo $ECHO_N "checking for signed long... $ECHO_C" >&6; }
6806 if test "${ac_cv_type_signed_long+set}" = set; then
6807   echo $ECHO_N "(cached) $ECHO_C" >&6
6808 else
6809   cat >conftest.$ac_ext <<_ACEOF
6810 /* confdefs.h.  */
6811 _ACEOF
6812 cat confdefs.h >>conftest.$ac_ext
6813 cat >>conftest.$ac_ext <<_ACEOF
6814 /* end confdefs.h.  */
6815 $ac_includes_default
6816 typedef signed long ac__type_new_;
6817 int
6818 main ()
6819 {
6820 if ((ac__type_new_ *) 0)
6821   return 0;
6822 if (sizeof (ac__type_new_))
6823   return 0;
6824   ;
6825   return 0;
6826 }
6827 _ACEOF
6828 rm -f conftest.$ac_objext
6829 if { (ac_try="$ac_compile"
6830 case "(($ac_try" in
6831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832   *) ac_try_echo=$ac_try;;
6833 esac
6834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6835   (eval "$ac_compile") 2>conftest.er1
6836   ac_status=$?
6837   grep -v '^ *+' conftest.er1 >conftest.err
6838   rm -f conftest.er1
6839   cat conftest.err >&5
6840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841   (exit $ac_status); } && {
6842          test -z "$ac_c_werror_flag" ||
6843          test ! -s conftest.err
6844        } && test -s conftest.$ac_objext; then
6845   ac_cv_type_signed_long=yes
6846 else
6847   echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6849
6850         ac_cv_type_signed_long=no
6851 fi
6852
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854 fi
6855 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
6856 echo "${ECHO_T}$ac_cv_type_signed_long" >&6; }
6857
6858 # The cast to long int works around a bug in the HP C Compiler
6859 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6860 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6861 # This bug is HP SR number 8606223364.
6862 { echo "$as_me:$LINENO: checking size of signed long" >&5
6863 echo $ECHO_N "checking size of signed long... $ECHO_C" >&6; }
6864 if test "${ac_cv_sizeof_signed_long+set}" = set; then
6865   echo $ECHO_N "(cached) $ECHO_C" >&6
6866 else
6867   if test "$cross_compiling" = yes; then
6868   # Depending upon the size, compute the lo and hi bounds.
6869 cat >conftest.$ac_ext <<_ACEOF
6870 /* confdefs.h.  */
6871 _ACEOF
6872 cat confdefs.h >>conftest.$ac_ext
6873 cat >>conftest.$ac_ext <<_ACEOF
6874 /* end confdefs.h.  */
6875 $ac_includes_default
6876    typedef signed long ac__type_sizeof_;
6877 int
6878 main ()
6879 {
6880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6881 test_array [0] = 0
6882
6883   ;
6884   return 0;
6885 }
6886 _ACEOF
6887 rm -f conftest.$ac_objext
6888 if { (ac_try="$ac_compile"
6889 case "(($ac_try" in
6890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6891   *) ac_try_echo=$ac_try;;
6892 esac
6893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6894   (eval "$ac_compile") 2>conftest.er1
6895   ac_status=$?
6896   grep -v '^ *+' conftest.er1 >conftest.err
6897   rm -f conftest.er1
6898   cat conftest.err >&5
6899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900   (exit $ac_status); } && {
6901          test -z "$ac_c_werror_flag" ||
6902          test ! -s conftest.err
6903        } && test -s conftest.$ac_objext; then
6904   ac_lo=0 ac_mid=0
6905   while :; do
6906     cat >conftest.$ac_ext <<_ACEOF
6907 /* confdefs.h.  */
6908 _ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h.  */
6912 $ac_includes_default
6913    typedef signed long ac__type_sizeof_;
6914 int
6915 main ()
6916 {
6917 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6918 test_array [0] = 0
6919
6920   ;
6921   return 0;
6922 }
6923 _ACEOF
6924 rm -f conftest.$ac_objext
6925 if { (ac_try="$ac_compile"
6926 case "(($ac_try" in
6927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928   *) ac_try_echo=$ac_try;;
6929 esac
6930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931   (eval "$ac_compile") 2>conftest.er1
6932   ac_status=$?
6933   grep -v '^ *+' conftest.er1 >conftest.err
6934   rm -f conftest.er1
6935   cat conftest.err >&5
6936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937   (exit $ac_status); } && {
6938          test -z "$ac_c_werror_flag" ||
6939          test ! -s conftest.err
6940        } && test -s conftest.$ac_objext; then
6941   ac_hi=$ac_mid; break
6942 else
6943   echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946         ac_lo=`expr $ac_mid + 1`
6947                         if test $ac_lo -le $ac_mid; then
6948                           ac_lo= ac_hi=
6949                           break
6950                         fi
6951                         ac_mid=`expr 2 '*' $ac_mid + 1`
6952 fi
6953
6954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6955   done
6956 else
6957   echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6959
6960         cat >conftest.$ac_ext <<_ACEOF
6961 /* confdefs.h.  */
6962 _ACEOF
6963 cat confdefs.h >>conftest.$ac_ext
6964 cat >>conftest.$ac_ext <<_ACEOF
6965 /* end confdefs.h.  */
6966 $ac_includes_default
6967    typedef signed long ac__type_sizeof_;
6968 int
6969 main ()
6970 {
6971 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6972 test_array [0] = 0
6973
6974   ;
6975   return 0;
6976 }
6977 _ACEOF
6978 rm -f conftest.$ac_objext
6979 if { (ac_try="$ac_compile"
6980 case "(($ac_try" in
6981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6982   *) ac_try_echo=$ac_try;;
6983 esac
6984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985   (eval "$ac_compile") 2>conftest.er1
6986   ac_status=$?
6987   grep -v '^ *+' conftest.er1 >conftest.err
6988   rm -f conftest.er1
6989   cat conftest.err >&5
6990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991   (exit $ac_status); } && {
6992          test -z "$ac_c_werror_flag" ||
6993          test ! -s conftest.err
6994        } && test -s conftest.$ac_objext; then
6995   ac_hi=-1 ac_mid=-1
6996   while :; do
6997     cat >conftest.$ac_ext <<_ACEOF
6998 /* confdefs.h.  */
6999 _ACEOF
7000 cat confdefs.h >>conftest.$ac_ext
7001 cat >>conftest.$ac_ext <<_ACEOF
7002 /* end confdefs.h.  */
7003 $ac_includes_default
7004    typedef signed long ac__type_sizeof_;
7005 int
7006 main ()
7007 {
7008 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7009 test_array [0] = 0
7010
7011   ;
7012   return 0;
7013 }
7014 _ACEOF
7015 rm -f conftest.$ac_objext
7016 if { (ac_try="$ac_compile"
7017 case "(($ac_try" in
7018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7019   *) ac_try_echo=$ac_try;;
7020 esac
7021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7022   (eval "$ac_compile") 2>conftest.er1
7023   ac_status=$?
7024   grep -v '^ *+' conftest.er1 >conftest.err
7025   rm -f conftest.er1
7026   cat conftest.err >&5
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); } && {
7029          test -z "$ac_c_werror_flag" ||
7030          test ! -s conftest.err
7031        } && test -s conftest.$ac_objext; then
7032   ac_lo=$ac_mid; break
7033 else
7034   echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7036
7037         ac_hi=`expr '(' $ac_mid ')' - 1`
7038                         if test $ac_mid -le $ac_hi; then
7039                           ac_lo= ac_hi=
7040                           break
7041                         fi
7042                         ac_mid=`expr 2 '*' $ac_mid`
7043 fi
7044
7045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7046   done
7047 else
7048   echo "$as_me: failed program was:" >&5
7049 sed 's/^/| /' conftest.$ac_ext >&5
7050
7051         ac_lo= ac_hi=
7052 fi
7053
7054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055 fi
7056
7057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7058 # Binary search between lo and hi bounds.
7059 while test "x$ac_lo" != "x$ac_hi"; do
7060   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7061   cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h.  */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h.  */
7067 $ac_includes_default
7068    typedef signed long ac__type_sizeof_;
7069 int
7070 main ()
7071 {
7072 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7073 test_array [0] = 0
7074
7075   ;
7076   return 0;
7077 }
7078 _ACEOF
7079 rm -f conftest.$ac_objext
7080 if { (ac_try="$ac_compile"
7081 case "(($ac_try" in
7082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083   *) ac_try_echo=$ac_try;;
7084 esac
7085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086   (eval "$ac_compile") 2>conftest.er1
7087   ac_status=$?
7088   grep -v '^ *+' conftest.er1 >conftest.err
7089   rm -f conftest.er1
7090   cat conftest.err >&5
7091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092   (exit $ac_status); } && {
7093          test -z "$ac_c_werror_flag" ||
7094          test ! -s conftest.err
7095        } && test -s conftest.$ac_objext; then
7096   ac_hi=$ac_mid
7097 else
7098   echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7100
7101         ac_lo=`expr '(' $ac_mid ')' + 1`
7102 fi
7103
7104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7105 done
7106 case $ac_lo in
7107 ?*) ac_cv_sizeof_signed_long=$ac_lo;;
7108 '') if test "$ac_cv_type_signed_long" = yes; then
7109      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7110 See \`config.log' for more details." >&5
7111 echo "$as_me: error: cannot compute sizeof (signed long)
7112 See \`config.log' for more details." >&2;}
7113    { (exit 77); exit 77; }; }
7114    else
7115      ac_cv_sizeof_signed_long=0
7116    fi ;;
7117 esac
7118 else
7119   cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h.  */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h.  */
7125 $ac_includes_default
7126    typedef signed long ac__type_sizeof_;
7127 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7128 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7129 #include <stdio.h>
7130 #include <stdlib.h>
7131 int
7132 main ()
7133 {
7134
7135   FILE *f = fopen ("conftest.val", "w");
7136   if (! f)
7137     return 1;
7138   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7139     {
7140       long int i = longval ();
7141       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7142         return 1;
7143       fprintf (f, "%ld\n", i);
7144     }
7145   else
7146     {
7147       unsigned long int i = ulongval ();
7148       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7149         return 1;
7150       fprintf (f, "%lu\n", i);
7151     }
7152   return ferror (f) || fclose (f) != 0;
7153
7154   ;
7155   return 0;
7156 }
7157 _ACEOF
7158 rm -f conftest$ac_exeext
7159 if { (ac_try="$ac_link"
7160 case "(($ac_try" in
7161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162   *) ac_try_echo=$ac_try;;
7163 esac
7164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165   (eval "$ac_link") 2>&5
7166   ac_status=$?
7167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7169   { (case "(($ac_try" in
7170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7171   *) ac_try_echo=$ac_try;;
7172 esac
7173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7174   (eval "$ac_try") 2>&5
7175   ac_status=$?
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); }; }; then
7178   ac_cv_sizeof_signed_long=`cat conftest.val`
7179 else
7180   echo "$as_me: program exited with status $ac_status" >&5
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 ( exit $ac_status )
7185 if test "$ac_cv_type_signed_long" = yes; then
7186      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7187 See \`config.log' for more details." >&5
7188 echo "$as_me: error: cannot compute sizeof (signed long)
7189 See \`config.log' for more details." >&2;}
7190    { (exit 77); exit 77; }; }
7191    else
7192      ac_cv_sizeof_signed_long=0
7193    fi
7194 fi
7195 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7196 fi
7197 rm -f conftest.val
7198 fi
7199 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
7200 echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6; }
7201
7202
7203
7204 cat >>confdefs.h <<_ACEOF
7205 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
7206 _ACEOF
7207
7208
7209 { echo "$as_me:$LINENO: checking for unsigned long" >&5
7210 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7211 if test "${ac_cv_type_unsigned_long+set}" = set; then
7212   echo $ECHO_N "(cached) $ECHO_C" >&6
7213 else
7214   cat >conftest.$ac_ext <<_ACEOF
7215 /* confdefs.h.  */
7216 _ACEOF
7217 cat confdefs.h >>conftest.$ac_ext
7218 cat >>conftest.$ac_ext <<_ACEOF
7219 /* end confdefs.h.  */
7220 $ac_includes_default
7221 typedef unsigned long ac__type_new_;
7222 int
7223 main ()
7224 {
7225 if ((ac__type_new_ *) 0)
7226   return 0;
7227 if (sizeof (ac__type_new_))
7228   return 0;
7229   ;
7230   return 0;
7231 }
7232 _ACEOF
7233 rm -f conftest.$ac_objext
7234 if { (ac_try="$ac_compile"
7235 case "(($ac_try" in
7236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237   *) ac_try_echo=$ac_try;;
7238 esac
7239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240   (eval "$ac_compile") 2>conftest.er1
7241   ac_status=$?
7242   grep -v '^ *+' conftest.er1 >conftest.err
7243   rm -f conftest.er1
7244   cat conftest.err >&5
7245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246   (exit $ac_status); } && {
7247          test -z "$ac_c_werror_flag" ||
7248          test ! -s conftest.err
7249        } && test -s conftest.$ac_objext; then
7250   ac_cv_type_unsigned_long=yes
7251 else
7252   echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7254
7255         ac_cv_type_unsigned_long=no
7256 fi
7257
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259 fi
7260 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7261 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7262
7263 # The cast to long int works around a bug in the HP C Compiler
7264 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7265 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7266 # This bug is HP SR number 8606223364.
7267 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
7268 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7269 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7270   echo $ECHO_N "(cached) $ECHO_C" >&6
7271 else
7272   if test "$cross_compiling" = yes; then
7273   # Depending upon the size, compute the lo and hi bounds.
7274 cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h.  */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h.  */
7280 $ac_includes_default
7281    typedef unsigned long ac__type_sizeof_;
7282 int
7283 main ()
7284 {
7285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7286 test_array [0] = 0
7287
7288   ;
7289   return 0;
7290 }
7291 _ACEOF
7292 rm -f conftest.$ac_objext
7293 if { (ac_try="$ac_compile"
7294 case "(($ac_try" in
7295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296   *) ac_try_echo=$ac_try;;
7297 esac
7298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299   (eval "$ac_compile") 2>conftest.er1
7300   ac_status=$?
7301   grep -v '^ *+' conftest.er1 >conftest.err
7302   rm -f conftest.er1
7303   cat conftest.err >&5
7304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); } && {
7306          test -z "$ac_c_werror_flag" ||
7307          test ! -s conftest.err
7308        } && test -s conftest.$ac_objext; then
7309   ac_lo=0 ac_mid=0
7310   while :; do
7311     cat >conftest.$ac_ext <<_ACEOF
7312 /* confdefs.h.  */
7313 _ACEOF
7314 cat confdefs.h >>conftest.$ac_ext
7315 cat >>conftest.$ac_ext <<_ACEOF
7316 /* end confdefs.h.  */
7317 $ac_includes_default
7318    typedef unsigned long ac__type_sizeof_;
7319 int
7320 main ()
7321 {
7322 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7323 test_array [0] = 0
7324
7325   ;
7326   return 0;
7327 }
7328 _ACEOF
7329 rm -f conftest.$ac_objext
7330 if { (ac_try="$ac_compile"
7331 case "(($ac_try" in
7332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333   *) ac_try_echo=$ac_try;;
7334 esac
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336   (eval "$ac_compile") 2>conftest.er1
7337   ac_status=$?
7338   grep -v '^ *+' conftest.er1 >conftest.err
7339   rm -f conftest.er1
7340   cat conftest.err >&5
7341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342   (exit $ac_status); } && {
7343          test -z "$ac_c_werror_flag" ||
7344          test ! -s conftest.err
7345        } && test -s conftest.$ac_objext; then
7346   ac_hi=$ac_mid; break
7347 else
7348   echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7350
7351         ac_lo=`expr $ac_mid + 1`
7352                         if test $ac_lo -le $ac_mid; then
7353                           ac_lo= ac_hi=
7354                           break
7355                         fi
7356                         ac_mid=`expr 2 '*' $ac_mid + 1`
7357 fi
7358
7359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7360   done
7361 else
7362   echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7364
7365         cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h.  */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h.  */
7371 $ac_includes_default
7372    typedef unsigned long ac__type_sizeof_;
7373 int
7374 main ()
7375 {
7376 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7377 test_array [0] = 0
7378
7379   ;
7380   return 0;
7381 }
7382 _ACEOF
7383 rm -f conftest.$ac_objext
7384 if { (ac_try="$ac_compile"
7385 case "(($ac_try" in
7386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7387   *) ac_try_echo=$ac_try;;
7388 esac
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390   (eval "$ac_compile") 2>conftest.er1
7391   ac_status=$?
7392   grep -v '^ *+' conftest.er1 >conftest.err
7393   rm -f conftest.er1
7394   cat conftest.err >&5
7395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396   (exit $ac_status); } && {
7397          test -z "$ac_c_werror_flag" ||
7398          test ! -s conftest.err
7399        } && test -s conftest.$ac_objext; then
7400   ac_hi=-1 ac_mid=-1
7401   while :; do
7402     cat >conftest.$ac_ext <<_ACEOF
7403 /* confdefs.h.  */
7404 _ACEOF
7405 cat confdefs.h >>conftest.$ac_ext
7406 cat >>conftest.$ac_ext <<_ACEOF
7407 /* end confdefs.h.  */
7408 $ac_includes_default
7409    typedef unsigned long ac__type_sizeof_;
7410 int
7411 main ()
7412 {
7413 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7414 test_array [0] = 0
7415
7416   ;
7417   return 0;
7418 }
7419 _ACEOF
7420 rm -f conftest.$ac_objext
7421 if { (ac_try="$ac_compile"
7422 case "(($ac_try" in
7423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424   *) ac_try_echo=$ac_try;;
7425 esac
7426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427   (eval "$ac_compile") 2>conftest.er1
7428   ac_status=$?
7429   grep -v '^ *+' conftest.er1 >conftest.err
7430   rm -f conftest.er1
7431   cat conftest.err >&5
7432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433   (exit $ac_status); } && {
7434          test -z "$ac_c_werror_flag" ||
7435          test ! -s conftest.err
7436        } && test -s conftest.$ac_objext; then
7437   ac_lo=$ac_mid; break
7438 else
7439   echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7441
7442         ac_hi=`expr '(' $ac_mid ')' - 1`
7443                         if test $ac_mid -le $ac_hi; then
7444                           ac_lo= ac_hi=
7445                           break
7446                         fi
7447                         ac_mid=`expr 2 '*' $ac_mid`
7448 fi
7449
7450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451   done
7452 else
7453   echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.$ac_ext >&5
7455
7456         ac_lo= ac_hi=
7457 fi
7458
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7460 fi
7461
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 # Binary search between lo and hi bounds.
7464 while test "x$ac_lo" != "x$ac_hi"; do
7465   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7466   cat >conftest.$ac_ext <<_ACEOF
7467 /* confdefs.h.  */
7468 _ACEOF
7469 cat confdefs.h >>conftest.$ac_ext
7470 cat >>conftest.$ac_ext <<_ACEOF
7471 /* end confdefs.h.  */
7472 $ac_includes_default
7473    typedef unsigned long ac__type_sizeof_;
7474 int
7475 main ()
7476 {
7477 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7478 test_array [0] = 0
7479
7480   ;
7481   return 0;
7482 }
7483 _ACEOF
7484 rm -f conftest.$ac_objext
7485 if { (ac_try="$ac_compile"
7486 case "(($ac_try" in
7487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7488   *) ac_try_echo=$ac_try;;
7489 esac
7490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7491   (eval "$ac_compile") 2>conftest.er1
7492   ac_status=$?
7493   grep -v '^ *+' conftest.er1 >conftest.err
7494   rm -f conftest.er1
7495   cat conftest.err >&5
7496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497   (exit $ac_status); } && {
7498          test -z "$ac_c_werror_flag" ||
7499          test ! -s conftest.err
7500        } && test -s conftest.$ac_objext; then
7501   ac_hi=$ac_mid
7502 else
7503   echo "$as_me: failed program was:" >&5
7504 sed 's/^/| /' conftest.$ac_ext >&5
7505
7506         ac_lo=`expr '(' $ac_mid ')' + 1`
7507 fi
7508
7509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7510 done
7511 case $ac_lo in
7512 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7513 '') if test "$ac_cv_type_unsigned_long" = yes; then
7514      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7515 See \`config.log' for more details." >&5
7516 echo "$as_me: error: cannot compute sizeof (unsigned long)
7517 See \`config.log' for more details." >&2;}
7518    { (exit 77); exit 77; }; }
7519    else
7520      ac_cv_sizeof_unsigned_long=0
7521    fi ;;
7522 esac
7523 else
7524   cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h.  */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h.  */
7530 $ac_includes_default
7531    typedef unsigned long ac__type_sizeof_;
7532 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7533 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7534 #include <stdio.h>
7535 #include <stdlib.h>
7536 int
7537 main ()
7538 {
7539
7540   FILE *f = fopen ("conftest.val", "w");
7541   if (! f)
7542     return 1;
7543   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7544     {
7545       long int i = longval ();
7546       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7547         return 1;
7548       fprintf (f, "%ld\n", i);
7549     }
7550   else
7551     {
7552       unsigned long int i = ulongval ();
7553       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7554         return 1;
7555       fprintf (f, "%lu\n", i);
7556     }
7557   return ferror (f) || fclose (f) != 0;
7558
7559   ;
7560   return 0;
7561 }
7562 _ACEOF
7563 rm -f conftest$ac_exeext
7564 if { (ac_try="$ac_link"
7565 case "(($ac_try" in
7566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567   *) ac_try_echo=$ac_try;;
7568 esac
7569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7570   (eval "$ac_link") 2>&5
7571   ac_status=$?
7572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7574   { (case "(($ac_try" in
7575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576   *) ac_try_echo=$ac_try;;
7577 esac
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579   (eval "$ac_try") 2>&5
7580   ac_status=$?
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); }; }; then
7583   ac_cv_sizeof_unsigned_long=`cat conftest.val`
7584 else
7585   echo "$as_me: program exited with status $ac_status" >&5
7586 echo "$as_me: failed program was:" >&5
7587 sed 's/^/| /' conftest.$ac_ext >&5
7588
7589 ( exit $ac_status )
7590 if test "$ac_cv_type_unsigned_long" = yes; then
7591      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7592 See \`config.log' for more details." >&5
7593 echo "$as_me: error: cannot compute sizeof (unsigned long)
7594 See \`config.log' for more details." >&2;}
7595    { (exit 77); exit 77; }; }
7596    else
7597      ac_cv_sizeof_unsigned_long=0
7598    fi
7599 fi
7600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7601 fi
7602 rm -f conftest.val
7603 fi
7604 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7605 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
7606
7607
7608
7609 cat >>confdefs.h <<_ACEOF
7610 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7611 _ACEOF
7612
7613
7614 { echo "$as_me:$LINENO: checking for signed long long" >&5
7615 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7616 if test "${ac_cv_type_signed_long_long+set}" = set; then
7617   echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619   cat >conftest.$ac_ext <<_ACEOF
7620 /* confdefs.h.  */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h.  */
7625 $ac_includes_default
7626 typedef signed long long ac__type_new_;
7627 int
7628 main ()
7629 {
7630 if ((ac__type_new_ *) 0)
7631   return 0;
7632 if (sizeof (ac__type_new_))
7633   return 0;
7634   ;
7635   return 0;
7636 }
7637 _ACEOF
7638 rm -f conftest.$ac_objext
7639 if { (ac_try="$ac_compile"
7640 case "(($ac_try" in
7641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7642   *) ac_try_echo=$ac_try;;
7643 esac
7644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7645   (eval "$ac_compile") 2>conftest.er1
7646   ac_status=$?
7647   grep -v '^ *+' conftest.er1 >conftest.err
7648   rm -f conftest.er1
7649   cat conftest.err >&5
7650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7651   (exit $ac_status); } && {
7652          test -z "$ac_c_werror_flag" ||
7653          test ! -s conftest.err
7654        } && test -s conftest.$ac_objext; then
7655   ac_cv_type_signed_long_long=yes
7656 else
7657   echo "$as_me: failed program was:" >&5
7658 sed 's/^/| /' conftest.$ac_ext >&5
7659
7660         ac_cv_type_signed_long_long=no
7661 fi
7662
7663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7664 fi
7665 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7666 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7667
7668 # The cast to long int works around a bug in the HP C Compiler
7669 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7670 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7671 # This bug is HP SR number 8606223364.
7672 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7673 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7674 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7675   echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677   if test "$cross_compiling" = yes; then
7678   # Depending upon the size, compute the lo and hi bounds.
7679 cat >conftest.$ac_ext <<_ACEOF
7680 /* confdefs.h.  */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h.  */
7685 $ac_includes_default
7686    typedef signed long long ac__type_sizeof_;
7687 int
7688 main ()
7689 {
7690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7691 test_array [0] = 0
7692
7693   ;
7694   return 0;
7695 }
7696 _ACEOF
7697 rm -f conftest.$ac_objext
7698 if { (ac_try="$ac_compile"
7699 case "(($ac_try" in
7700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701   *) ac_try_echo=$ac_try;;
7702 esac
7703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704   (eval "$ac_compile") 2>conftest.er1
7705   ac_status=$?
7706   grep -v '^ *+' conftest.er1 >conftest.err
7707   rm -f conftest.er1
7708   cat conftest.err >&5
7709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710   (exit $ac_status); } && {
7711          test -z "$ac_c_werror_flag" ||
7712          test ! -s conftest.err
7713        } && test -s conftest.$ac_objext; then
7714   ac_lo=0 ac_mid=0
7715   while :; do
7716     cat >conftest.$ac_ext <<_ACEOF
7717 /* confdefs.h.  */
7718 _ACEOF
7719 cat confdefs.h >>conftest.$ac_ext
7720 cat >>conftest.$ac_ext <<_ACEOF
7721 /* end confdefs.h.  */
7722 $ac_includes_default
7723    typedef signed long long ac__type_sizeof_;
7724 int
7725 main ()
7726 {
7727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7728 test_array [0] = 0
7729
7730   ;
7731   return 0;
7732 }
7733 _ACEOF
7734 rm -f conftest.$ac_objext
7735 if { (ac_try="$ac_compile"
7736 case "(($ac_try" in
7737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738   *) ac_try_echo=$ac_try;;
7739 esac
7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741   (eval "$ac_compile") 2>conftest.er1
7742   ac_status=$?
7743   grep -v '^ *+' conftest.er1 >conftest.err
7744   rm -f conftest.er1
7745   cat conftest.err >&5
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); } && {
7748          test -z "$ac_c_werror_flag" ||
7749          test ! -s conftest.err
7750        } && test -s conftest.$ac_objext; then
7751   ac_hi=$ac_mid; break
7752 else
7753   echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7755
7756         ac_lo=`expr $ac_mid + 1`
7757                         if test $ac_lo -le $ac_mid; then
7758                           ac_lo= ac_hi=
7759                           break
7760                         fi
7761                         ac_mid=`expr 2 '*' $ac_mid + 1`
7762 fi
7763
7764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7765   done
7766 else
7767   echo "$as_me: failed program was:" >&5
7768 sed 's/^/| /' conftest.$ac_ext >&5
7769
7770         cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h.  */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h.  */
7776 $ac_includes_default
7777    typedef signed long long ac__type_sizeof_;
7778 int
7779 main ()
7780 {
7781 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7782 test_array [0] = 0
7783
7784   ;
7785   return 0;
7786 }
7787 _ACEOF
7788 rm -f conftest.$ac_objext
7789 if { (ac_try="$ac_compile"
7790 case "(($ac_try" in
7791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7792   *) ac_try_echo=$ac_try;;
7793 esac
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795   (eval "$ac_compile") 2>conftest.er1
7796   ac_status=$?
7797   grep -v '^ *+' conftest.er1 >conftest.err
7798   rm -f conftest.er1
7799   cat conftest.err >&5
7800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801   (exit $ac_status); } && {
7802          test -z "$ac_c_werror_flag" ||
7803          test ! -s conftest.err
7804        } && test -s conftest.$ac_objext; then
7805   ac_hi=-1 ac_mid=-1
7806   while :; do
7807     cat >conftest.$ac_ext <<_ACEOF
7808 /* confdefs.h.  */
7809 _ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h.  */
7813 $ac_includes_default
7814    typedef signed long long ac__type_sizeof_;
7815 int
7816 main ()
7817 {
7818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7819 test_array [0] = 0
7820
7821   ;
7822   return 0;
7823 }
7824 _ACEOF
7825 rm -f conftest.$ac_objext
7826 if { (ac_try="$ac_compile"
7827 case "(($ac_try" in
7828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829   *) ac_try_echo=$ac_try;;
7830 esac
7831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7832   (eval "$ac_compile") 2>conftest.er1
7833   ac_status=$?
7834   grep -v '^ *+' conftest.er1 >conftest.err
7835   rm -f conftest.er1
7836   cat conftest.err >&5
7837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838   (exit $ac_status); } && {
7839          test -z "$ac_c_werror_flag" ||
7840          test ! -s conftest.err
7841        } && test -s conftest.$ac_objext; then
7842   ac_lo=$ac_mid; break
7843 else
7844   echo "$as_me: failed program was:" >&5
7845 sed 's/^/| /' conftest.$ac_ext >&5
7846
7847         ac_hi=`expr '(' $ac_mid ')' - 1`
7848                         if test $ac_mid -le $ac_hi; then
7849                           ac_lo= ac_hi=
7850                           break
7851                         fi
7852                         ac_mid=`expr 2 '*' $ac_mid`
7853 fi
7854
7855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856   done
7857 else
7858   echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7860
7861         ac_lo= ac_hi=
7862 fi
7863
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865 fi
7866
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 # Binary search between lo and hi bounds.
7869 while test "x$ac_lo" != "x$ac_hi"; do
7870   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7871   cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h.  */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h.  */
7877 $ac_includes_default
7878    typedef signed long long ac__type_sizeof_;
7879 int
7880 main ()
7881 {
7882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7883 test_array [0] = 0
7884
7885   ;
7886   return 0;
7887 }
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (ac_try="$ac_compile"
7891 case "(($ac_try" in
7892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893   *) ac_try_echo=$ac_try;;
7894 esac
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896   (eval "$ac_compile") 2>conftest.er1
7897   ac_status=$?
7898   grep -v '^ *+' conftest.er1 >conftest.err
7899   rm -f conftest.er1
7900   cat conftest.err >&5
7901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902   (exit $ac_status); } && {
7903          test -z "$ac_c_werror_flag" ||
7904          test ! -s conftest.err
7905        } && test -s conftest.$ac_objext; then
7906   ac_hi=$ac_mid
7907 else
7908   echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911         ac_lo=`expr '(' $ac_mid ')' + 1`
7912 fi
7913
7914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915 done
7916 case $ac_lo in
7917 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7918 '') if test "$ac_cv_type_signed_long_long" = yes; then
7919      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7920 See \`config.log' for more details." >&5
7921 echo "$as_me: error: cannot compute sizeof (signed long long)
7922 See \`config.log' for more details." >&2;}
7923    { (exit 77); exit 77; }; }
7924    else
7925      ac_cv_sizeof_signed_long_long=0
7926    fi ;;
7927 esac
7928 else
7929   cat >conftest.$ac_ext <<_ACEOF
7930 /* confdefs.h.  */
7931 _ACEOF
7932 cat confdefs.h >>conftest.$ac_ext
7933 cat >>conftest.$ac_ext <<_ACEOF
7934 /* end confdefs.h.  */
7935 $ac_includes_default
7936    typedef signed long long ac__type_sizeof_;
7937 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7938 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7939 #include <stdio.h>
7940 #include <stdlib.h>
7941 int
7942 main ()
7943 {
7944
7945   FILE *f = fopen ("conftest.val", "w");
7946   if (! f)
7947     return 1;
7948   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7949     {
7950       long int i = longval ();
7951       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7952         return 1;
7953       fprintf (f, "%ld\n", i);
7954     }
7955   else
7956     {
7957       unsigned long int i = ulongval ();
7958       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7959         return 1;
7960       fprintf (f, "%lu\n", i);
7961     }
7962   return ferror (f) || fclose (f) != 0;
7963
7964   ;
7965   return 0;
7966 }
7967 _ACEOF
7968 rm -f conftest$ac_exeext
7969 if { (ac_try="$ac_link"
7970 case "(($ac_try" in
7971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972   *) ac_try_echo=$ac_try;;
7973 esac
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975   (eval "$ac_link") 2>&5
7976   ac_status=$?
7977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7979   { (case "(($ac_try" in
7980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981   *) ac_try_echo=$ac_try;;
7982 esac
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984   (eval "$ac_try") 2>&5
7985   ac_status=$?
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); }; }; then
7988   ac_cv_sizeof_signed_long_long=`cat conftest.val`
7989 else
7990   echo "$as_me: program exited with status $ac_status" >&5
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.$ac_ext >&5
7993
7994 ( exit $ac_status )
7995 if test "$ac_cv_type_signed_long_long" = yes; then
7996      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7997 See \`config.log' for more details." >&5
7998 echo "$as_me: error: cannot compute sizeof (signed long long)
7999 See \`config.log' for more details." >&2;}
8000    { (exit 77); exit 77; }; }
8001    else
8002      ac_cv_sizeof_signed_long_long=0
8003    fi
8004 fi
8005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8006 fi
8007 rm -f conftest.val
8008 fi
8009 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
8010 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
8011
8012
8013
8014 cat >>confdefs.h <<_ACEOF
8015 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
8016 _ACEOF
8017
8018
8019 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
8020 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
8021 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8022   echo $ECHO_N "(cached) $ECHO_C" >&6
8023 else
8024   cat >conftest.$ac_ext <<_ACEOF
8025 /* confdefs.h.  */
8026 _ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h.  */
8030 $ac_includes_default
8031 typedef unsigned long long ac__type_new_;
8032 int
8033 main ()
8034 {
8035 if ((ac__type_new_ *) 0)
8036   return 0;
8037 if (sizeof (ac__type_new_))
8038   return 0;
8039   ;
8040   return 0;
8041 }
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (ac_try="$ac_compile"
8045 case "(($ac_try" in
8046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047   *) ac_try_echo=$ac_try;;
8048 esac
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050   (eval "$ac_compile") 2>conftest.er1
8051   ac_status=$?
8052   grep -v '^ *+' conftest.er1 >conftest.err
8053   rm -f conftest.er1
8054   cat conftest.err >&5
8055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056   (exit $ac_status); } && {
8057          test -z "$ac_c_werror_flag" ||
8058          test ! -s conftest.err
8059        } && test -s conftest.$ac_objext; then
8060   ac_cv_type_unsigned_long_long=yes
8061 else
8062   echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8064
8065         ac_cv_type_unsigned_long_long=no
8066 fi
8067
8068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8069 fi
8070 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8071 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8072
8073 # The cast to long int works around a bug in the HP C Compiler
8074 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8075 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8076 # This bug is HP SR number 8606223364.
8077 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
8078 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
8079 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
8080   echo $ECHO_N "(cached) $ECHO_C" >&6
8081 else
8082   if test "$cross_compiling" = yes; then
8083   # Depending upon the size, compute the lo and hi bounds.
8084 cat >conftest.$ac_ext <<_ACEOF
8085 /* confdefs.h.  */
8086 _ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h.  */
8090 $ac_includes_default
8091    typedef unsigned long long ac__type_sizeof_;
8092 int
8093 main ()
8094 {
8095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8096 test_array [0] = 0
8097
8098   ;
8099   return 0;
8100 }
8101 _ACEOF
8102 rm -f conftest.$ac_objext
8103 if { (ac_try="$ac_compile"
8104 case "(($ac_try" in
8105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106   *) ac_try_echo=$ac_try;;
8107 esac
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109   (eval "$ac_compile") 2>conftest.er1
8110   ac_status=$?
8111   grep -v '^ *+' conftest.er1 >conftest.err
8112   rm -f conftest.er1
8113   cat conftest.err >&5
8114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115   (exit $ac_status); } && {
8116          test -z "$ac_c_werror_flag" ||
8117          test ! -s conftest.err
8118        } && test -s conftest.$ac_objext; then
8119   ac_lo=0 ac_mid=0
8120   while :; do
8121     cat >conftest.$ac_ext <<_ACEOF
8122 /* confdefs.h.  */
8123 _ACEOF
8124 cat confdefs.h >>conftest.$ac_ext
8125 cat >>conftest.$ac_ext <<_ACEOF
8126 /* end confdefs.h.  */
8127 $ac_includes_default
8128    typedef unsigned long long ac__type_sizeof_;
8129 int
8130 main ()
8131 {
8132 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8133 test_array [0] = 0
8134
8135   ;
8136   return 0;
8137 }
8138 _ACEOF
8139 rm -f conftest.$ac_objext
8140 if { (ac_try="$ac_compile"
8141 case "(($ac_try" in
8142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8143   *) ac_try_echo=$ac_try;;
8144 esac
8145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8146   (eval "$ac_compile") 2>conftest.er1
8147   ac_status=$?
8148   grep -v '^ *+' conftest.er1 >conftest.err
8149   rm -f conftest.er1
8150   cat conftest.err >&5
8151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8152   (exit $ac_status); } && {
8153          test -z "$ac_c_werror_flag" ||
8154          test ! -s conftest.err
8155        } && test -s conftest.$ac_objext; then
8156   ac_hi=$ac_mid; break
8157 else
8158   echo "$as_me: failed program was:" >&5
8159 sed 's/^/| /' conftest.$ac_ext >&5
8160
8161         ac_lo=`expr $ac_mid + 1`
8162                         if test $ac_lo -le $ac_mid; then
8163                           ac_lo= ac_hi=
8164                           break
8165                         fi
8166                         ac_mid=`expr 2 '*' $ac_mid + 1`
8167 fi
8168
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170   done
8171 else
8172   echo "$as_me: failed program was:" >&5
8173 sed 's/^/| /' conftest.$ac_ext >&5
8174
8175         cat >conftest.$ac_ext <<_ACEOF
8176 /* confdefs.h.  */
8177 _ACEOF
8178 cat confdefs.h >>conftest.$ac_ext
8179 cat >>conftest.$ac_ext <<_ACEOF
8180 /* end confdefs.h.  */
8181 $ac_includes_default
8182    typedef unsigned long long ac__type_sizeof_;
8183 int
8184 main ()
8185 {
8186 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8187 test_array [0] = 0
8188
8189   ;
8190   return 0;
8191 }
8192 _ACEOF
8193 rm -f conftest.$ac_objext
8194 if { (ac_try="$ac_compile"
8195 case "(($ac_try" in
8196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8197   *) ac_try_echo=$ac_try;;
8198 esac
8199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8200   (eval "$ac_compile") 2>conftest.er1
8201   ac_status=$?
8202   grep -v '^ *+' conftest.er1 >conftest.err
8203   rm -f conftest.er1
8204   cat conftest.err >&5
8205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8206   (exit $ac_status); } && {
8207          test -z "$ac_c_werror_flag" ||
8208          test ! -s conftest.err
8209        } && test -s conftest.$ac_objext; then
8210   ac_hi=-1 ac_mid=-1
8211   while :; do
8212     cat >conftest.$ac_ext <<_ACEOF
8213 /* confdefs.h.  */
8214 _ACEOF
8215 cat confdefs.h >>conftest.$ac_ext
8216 cat >>conftest.$ac_ext <<_ACEOF
8217 /* end confdefs.h.  */
8218 $ac_includes_default
8219    typedef unsigned long long ac__type_sizeof_;
8220 int
8221 main ()
8222 {
8223 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8224 test_array [0] = 0
8225
8226   ;
8227   return 0;
8228 }
8229 _ACEOF
8230 rm -f conftest.$ac_objext
8231 if { (ac_try="$ac_compile"
8232 case "(($ac_try" in
8233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234   *) ac_try_echo=$ac_try;;
8235 esac
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237   (eval "$ac_compile") 2>conftest.er1
8238   ac_status=$?
8239   grep -v '^ *+' conftest.er1 >conftest.err
8240   rm -f conftest.er1
8241   cat conftest.err >&5
8242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243   (exit $ac_status); } && {
8244          test -z "$ac_c_werror_flag" ||
8245          test ! -s conftest.err
8246        } && test -s conftest.$ac_objext; then
8247   ac_lo=$ac_mid; break
8248 else
8249   echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8251
8252         ac_hi=`expr '(' $ac_mid ')' - 1`
8253                         if test $ac_mid -le $ac_hi; then
8254                           ac_lo= ac_hi=
8255                           break
8256                         fi
8257                         ac_mid=`expr 2 '*' $ac_mid`
8258 fi
8259
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261   done
8262 else
8263   echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8265
8266         ac_lo= ac_hi=
8267 fi
8268
8269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8270 fi
8271
8272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8273 # Binary search between lo and hi bounds.
8274 while test "x$ac_lo" != "x$ac_hi"; do
8275   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8276   cat >conftest.$ac_ext <<_ACEOF
8277 /* confdefs.h.  */
8278 _ACEOF
8279 cat confdefs.h >>conftest.$ac_ext
8280 cat >>conftest.$ac_ext <<_ACEOF
8281 /* end confdefs.h.  */
8282 $ac_includes_default
8283    typedef unsigned long long ac__type_sizeof_;
8284 int
8285 main ()
8286 {
8287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8288 test_array [0] = 0
8289
8290   ;
8291   return 0;
8292 }
8293 _ACEOF
8294 rm -f conftest.$ac_objext
8295 if { (ac_try="$ac_compile"
8296 case "(($ac_try" in
8297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8298   *) ac_try_echo=$ac_try;;
8299 esac
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301   (eval "$ac_compile") 2>conftest.er1
8302   ac_status=$?
8303   grep -v '^ *+' conftest.er1 >conftest.err
8304   rm -f conftest.er1
8305   cat conftest.err >&5
8306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307   (exit $ac_status); } && {
8308          test -z "$ac_c_werror_flag" ||
8309          test ! -s conftest.err
8310        } && test -s conftest.$ac_objext; then
8311   ac_hi=$ac_mid
8312 else
8313   echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8315
8316         ac_lo=`expr '(' $ac_mid ')' + 1`
8317 fi
8318
8319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8320 done
8321 case $ac_lo in
8322 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
8323 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
8324      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8325 See \`config.log' for more details." >&5
8326 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8327 See \`config.log' for more details." >&2;}
8328    { (exit 77); exit 77; }; }
8329    else
8330      ac_cv_sizeof_unsigned_long_long=0
8331    fi ;;
8332 esac
8333 else
8334   cat >conftest.$ac_ext <<_ACEOF
8335 /* confdefs.h.  */
8336 _ACEOF
8337 cat confdefs.h >>conftest.$ac_ext
8338 cat >>conftest.$ac_ext <<_ACEOF
8339 /* end confdefs.h.  */
8340 $ac_includes_default
8341    typedef unsigned long long ac__type_sizeof_;
8342 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8343 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8344 #include <stdio.h>
8345 #include <stdlib.h>
8346 int
8347 main ()
8348 {
8349
8350   FILE *f = fopen ("conftest.val", "w");
8351   if (! f)
8352     return 1;
8353   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8354     {
8355       long int i = longval ();
8356       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8357         return 1;
8358       fprintf (f, "%ld\n", i);
8359     }
8360   else
8361     {
8362       unsigned long int i = ulongval ();
8363       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8364         return 1;
8365       fprintf (f, "%lu\n", i);
8366     }
8367   return ferror (f) || fclose (f) != 0;
8368
8369   ;
8370   return 0;
8371 }
8372 _ACEOF
8373 rm -f conftest$ac_exeext
8374 if { (ac_try="$ac_link"
8375 case "(($ac_try" in
8376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377   *) ac_try_echo=$ac_try;;
8378 esac
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380   (eval "$ac_link") 2>&5
8381   ac_status=$?
8382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8384   { (case "(($ac_try" in
8385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8386   *) ac_try_echo=$ac_try;;
8387 esac
8388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8389   (eval "$ac_try") 2>&5
8390   ac_status=$?
8391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392   (exit $ac_status); }; }; then
8393   ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
8394 else
8395   echo "$as_me: program exited with status $ac_status" >&5
8396 echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399 ( exit $ac_status )
8400 if test "$ac_cv_type_unsigned_long_long" = yes; then
8401      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8402 See \`config.log' for more details." >&5
8403 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8404 See \`config.log' for more details." >&2;}
8405    { (exit 77); exit 77; }; }
8406    else
8407      ac_cv_sizeof_unsigned_long_long=0
8408    fi
8409 fi
8410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8411 fi
8412 rm -f conftest.val
8413 fi
8414 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
8415 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
8416
8417
8418
8419 cat >>confdefs.h <<_ACEOF
8420 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8421 _ACEOF
8422
8423
8424
8425
8426
8427 # Extract the first word of "freetype-config", so it can be a program name with args.
8428 set dummy freetype-config; ac_word=$2
8429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8431 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8432   echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434   case $FREETYPE_CONFIG in
8435   [\\/]* | ?:[\\/]*)
8436   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8437   ;;
8438   *)
8439   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8441 for as_dir in $as_dummy
8442 do
8443   IFS=$as_save_IFS
8444   test -z "$as_dir" && as_dir=.
8445   for ac_exec_ext in '' $ac_executable_extensions; do
8446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8447     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8448     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8449     break 2
8450   fi
8451 done
8452 done
8453 IFS=$as_save_IFS
8454
8455   ;;
8456 esac
8457 fi
8458 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8459 if test -n "$FREETYPE_CONFIG"; then
8460   { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8461 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8462 else
8463   { echo "$as_me:$LINENO: result: no" >&5
8464 echo "${ECHO_T}no" >&6; }
8465 fi
8466
8467
8468
8469 OLDCPPFLAGS="${CPPFLAGS}"
8470 OLDLIBS="${LIBS}"
8471 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8472     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8473 else if test -d /usr/include/freetype2; then
8474     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8475 else if test -d /usr/local/include/freetype2; then
8476     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8477 fi
8478 fi
8479 fi
8480
8481 if test "x${FREETYPE_CONFIG}" '=' "x";then
8482     # if we didn't find the freetype-config program, we won't
8483     # know where the libs are expected to be. So just blindly
8484     # try to link against them.
8485     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8486 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8487 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8488   echo $ECHO_N "(cached) $ECHO_C" >&6
8489 else
8490   ac_check_lib_save_LIBS=$LIBS
8491 LIBS="-lfreetype  $LIBS"
8492 cat >conftest.$ac_ext <<_ACEOF
8493 /* confdefs.h.  */
8494 _ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h.  */
8498
8499 /* Override any GCC internal prototype to avoid an error.
8500    Use char because int might match the return type of a GCC
8501    builtin and then its argument prototype would still apply.  */
8502 #ifdef __cplusplus
8503 extern "C"
8504 #endif
8505 char FT_Init_FreeType ();
8506 int
8507 main ()
8508 {
8509 return FT_Init_FreeType ();
8510   ;
8511   return 0;
8512 }
8513 _ACEOF
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (ac_try="$ac_link"
8516 case "(($ac_try" in
8517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518   *) ac_try_echo=$ac_try;;
8519 esac
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521   (eval "$ac_link") 2>conftest.er1
8522   ac_status=$?
8523   grep -v '^ *+' conftest.er1 >conftest.err
8524   rm -f conftest.er1
8525   cat conftest.err >&5
8526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527   (exit $ac_status); } && {
8528          test -z "$ac_c_werror_flag" ||
8529          test ! -s conftest.err
8530        } && test -s conftest$ac_exeext &&
8531        $as_test_x conftest$ac_exeext; then
8532   ac_cv_lib_freetype_FT_Init_FreeType=yes
8533 else
8534   echo "$as_me: failed program was:" >&5
8535 sed 's/^/| /' conftest.$ac_ext >&5
8536
8537         ac_cv_lib_freetype_FT_Init_FreeType=no
8538 fi
8539
8540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8541       conftest$ac_exeext conftest.$ac_ext
8542 LIBS=$ac_check_lib_save_LIBS
8543 fi
8544 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8545 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8546 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8547   HAVE_LIB_FREETYPE=1
8548 fi
8549
8550 fi
8551
8552
8553 for ac_header in ft2build.h
8554 do
8555 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8557   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8560   echo $ECHO_N "(cached) $ECHO_C" >&6
8561 fi
8562 ac_res=`eval echo '${'$as_ac_Header'}'`
8563                { echo "$as_me:$LINENO: result: $ac_res" >&5
8564 echo "${ECHO_T}$ac_res" >&6; }
8565 else
8566   # Is the header compilable?
8567 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8568 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8569 cat >conftest.$ac_ext <<_ACEOF
8570 /* confdefs.h.  */
8571 _ACEOF
8572 cat confdefs.h >>conftest.$ac_ext
8573 cat >>conftest.$ac_ext <<_ACEOF
8574 /* end confdefs.h.  */
8575 $ac_includes_default
8576 #include <$ac_header>
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (ac_try="$ac_compile"
8580 case "(($ac_try" in
8581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582   *) ac_try_echo=$ac_try;;
8583 esac
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585   (eval "$ac_compile") 2>conftest.er1
8586   ac_status=$?
8587   grep -v '^ *+' conftest.er1 >conftest.err
8588   rm -f conftest.er1
8589   cat conftest.err >&5
8590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591   (exit $ac_status); } && {
8592          test -z "$ac_c_werror_flag" ||
8593          test ! -s conftest.err
8594        } && test -s conftest.$ac_objext; then
8595   ac_header_compiler=yes
8596 else
8597   echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8599
8600         ac_header_compiler=no
8601 fi
8602
8603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8605 echo "${ECHO_T}$ac_header_compiler" >&6; }
8606
8607 # Is the header present?
8608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8610 cat >conftest.$ac_ext <<_ACEOF
8611 /* confdefs.h.  */
8612 _ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h.  */
8616 #include <$ac_header>
8617 _ACEOF
8618 if { (ac_try="$ac_cpp conftest.$ac_ext"
8619 case "(($ac_try" in
8620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8621   *) ac_try_echo=$ac_try;;
8622 esac
8623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8624   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8625   ac_status=$?
8626   grep -v '^ *+' conftest.er1 >conftest.err
8627   rm -f conftest.er1
8628   cat conftest.err >&5
8629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630   (exit $ac_status); } >/dev/null && {
8631          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8632          test ! -s conftest.err
8633        }; then
8634   ac_header_preproc=yes
8635 else
8636   echo "$as_me: failed program was:" >&5
8637 sed 's/^/| /' conftest.$ac_ext >&5
8638
8639   ac_header_preproc=no
8640 fi
8641
8642 rm -f conftest.err conftest.$ac_ext
8643 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8644 echo "${ECHO_T}$ac_header_preproc" >&6; }
8645
8646 # So?  What about this header?
8647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8648   yes:no: )
8649     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8650 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8651     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8652 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8653     ac_header_preproc=yes
8654     ;;
8655   no:yes:* )
8656     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8657 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8658     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8659 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8660     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8661 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8662     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8663 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8665 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8666     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8667 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8668
8669     ;;
8670 esac
8671 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8673 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8674   echo $ECHO_N "(cached) $ECHO_C" >&6
8675 else
8676   eval "$as_ac_Header=\$ac_header_preproc"
8677 fi
8678 ac_res=`eval echo '${'$as_ac_Header'}'`
8679                { echo "$as_me:$LINENO: result: $ac_res" >&5
8680 echo "${ECHO_T}$ac_res" >&6; }
8681
8682 fi
8683 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8684   cat >>confdefs.h <<_ACEOF
8685 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8686 _ACEOF
8687  HAVE_FT2BUILD_H=1
8688 fi
8689
8690 done
8691
8692 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8693
8694 for ac_header in freetype/freetype.h
8695 do
8696 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8698   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8701   echo $ECHO_N "(cached) $ECHO_C" >&6
8702 fi
8703 ac_res=`eval echo '${'$as_ac_Header'}'`
8704                { echo "$as_me:$LINENO: result: $ac_res" >&5
8705 echo "${ECHO_T}$ac_res" >&6; }
8706 else
8707   # Is the header compilable?
8708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8710 cat >conftest.$ac_ext <<_ACEOF
8711 /* confdefs.h.  */
8712 _ACEOF
8713 cat confdefs.h >>conftest.$ac_ext
8714 cat >>conftest.$ac_ext <<_ACEOF
8715 /* end confdefs.h.  */
8716 $ac_includes_default
8717 #include <$ac_header>
8718 _ACEOF
8719 rm -f conftest.$ac_objext
8720 if { (ac_try="$ac_compile"
8721 case "(($ac_try" in
8722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8723   *) ac_try_echo=$ac_try;;
8724 esac
8725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8726   (eval "$ac_compile") 2>conftest.er1
8727   ac_status=$?
8728   grep -v '^ *+' conftest.er1 >conftest.err
8729   rm -f conftest.er1
8730   cat conftest.err >&5
8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8732   (exit $ac_status); } && {
8733          test -z "$ac_c_werror_flag" ||
8734          test ! -s conftest.err
8735        } && test -s conftest.$ac_objext; then
8736   ac_header_compiler=yes
8737 else
8738   echo "$as_me: failed program was:" >&5
8739 sed 's/^/| /' conftest.$ac_ext >&5
8740
8741         ac_header_compiler=no
8742 fi
8743
8744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8746 echo "${ECHO_T}$ac_header_compiler" >&6; }
8747
8748 # Is the header present?
8749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8751 cat >conftest.$ac_ext <<_ACEOF
8752 /* confdefs.h.  */
8753 _ACEOF
8754 cat confdefs.h >>conftest.$ac_ext
8755 cat >>conftest.$ac_ext <<_ACEOF
8756 /* end confdefs.h.  */
8757 #include <$ac_header>
8758 _ACEOF
8759 if { (ac_try="$ac_cpp conftest.$ac_ext"
8760 case "(($ac_try" in
8761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8762   *) ac_try_echo=$ac_try;;
8763 esac
8764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8765   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8766   ac_status=$?
8767   grep -v '^ *+' conftest.er1 >conftest.err
8768   rm -f conftest.er1
8769   cat conftest.err >&5
8770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771   (exit $ac_status); } >/dev/null && {
8772          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8773          test ! -s conftest.err
8774        }; then
8775   ac_header_preproc=yes
8776 else
8777   echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8779
8780   ac_header_preproc=no
8781 fi
8782
8783 rm -f conftest.err conftest.$ac_ext
8784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8785 echo "${ECHO_T}$ac_header_preproc" >&6; }
8786
8787 # So?  What about this header?
8788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8789   yes:no: )
8790     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8792     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8794     ac_header_preproc=yes
8795     ;;
8796   no:yes:* )
8797     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8799     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8800 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8801     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8803     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8804 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8805     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8807     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8809
8810     ;;
8811 esac
8812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8814 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8815   echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817   eval "$as_ac_Header=\$ac_header_preproc"
8818 fi
8819 ac_res=`eval echo '${'$as_ac_Header'}'`
8820                { echo "$as_me:$LINENO: result: $ac_res" >&5
8821 echo "${ECHO_T}$ac_res" >&6; }
8822
8823 fi
8824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8825   cat >>confdefs.h <<_ACEOF
8826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8827 _ACEOF
8828  HAVE_FREETYPE_FREETYPE_H=1
8829 fi
8830
8831 done
8832
8833 fi
8834
8835 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8836         "x${FREETYPE_CONFIG}" '!=' "x";then
8837     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8838         HAVE_FREETYPE=1
8839     fi
8840     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8841         HAVE_FREETYPE=1
8842     fi
8843 fi
8844
8845 if test "x${HAVE_FREETYPE}" = "x1"; then
8846     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8847         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8848     else
8849         LIBS="$LIBS -lfreetype"
8850     fi
8851
8852     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8853         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8854     fi
8855
8856     { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8857 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8858
8859     cat > conftest.c << EOF
8860 $HAVE_FT2BUILD_H_DEFINE
8861
8862 #ifdef HAVE_FT2BUILD_H
8863 #include <ft2build.h>
8864 #include FT_FREETYPE_H
8865 #include FT_GLYPH_H
8866 #include FT_SIZES_H
8867 #include FT_SFNT_NAMES_H
8868 #include FT_TRUETYPE_IDS_H
8869 #include FT_OUTLINE_H
8870 #else
8871 #include <freetype/freetype.h>
8872 #include <freetype/ftglyph.h>
8873 #include <freetype/ftsizes.h>
8874 #include <freetype/ftsnames.h>
8875 #include <freetype/ttnameid.h>
8876 #include <freetype/ftoutln.h>
8877 #endif
8878
8879 int main()
8880 {
8881     FT_Library ftlibrary;
8882     FT_Face face;
8883     FT_Error error;
8884     FT_ULong charcode;
8885     FT_UInt gindex;
8886     FT_Glyph glyph;
8887     FT_BBox bbox;
8888     FT_Matrix matrix;
8889     FT_UInt i;
8890     char* name = 0;
8891     char italic, bold;
8892
8893     FT_Init_FreeType(&ftlibrary);
8894     FT_New_Face(ftlibrary, "filename", 0, &face);
8895     i = face->num_glyphs - 1;
8896     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8897     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8898     FT_Get_Postscript_Name(face);
8899     FT_Get_Char_Index(face, 33);
8900     FT_Get_First_Char(face, &i);
8901     FT_Get_Next_Char(face, 33, &i);
8902     if(FT_HAS_GLYPH_NAMES(face)) {
8903         FT_Get_Glyph_Name(face, 33, name, 127);
8904     }
8905     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8906     FT_Get_Glyph(face->glyph, &glyph);
8907     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8908     FT_Done_Glyph(glyph);
8909     FT_Done_Face(face);
8910     FT_Done_FreeType(ftlibrary);
8911     return 0;
8912 }
8913 EOF
8914
8915     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8916     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8917         { echo "$as_me:$LINENO: result: yes" >&5
8918 echo "${ECHO_T}yes" >&6; }
8919         cat >>confdefs.h <<_ACEOF
8920 #define HAVE_FREETYPE 1
8921 _ACEOF
8922
8923         cat >>confdefs.h <<_ACEOF
8924 #define HAVE_FREETYPE_FREETYPE_H 1
8925 _ACEOF
8926
8927         cat >>confdefs.h <<_ACEOF
8928 #define USE_FREETYPE 1
8929 _ACEOF
8930   # for ttf2tp1
8931     else
8932         echo "configure: failed program was:" >&5
8933         cat conftest.c >&5
8934         HAVE_FREETYPE=0
8935         { echo "$as_me:$LINENO: result: no" >&5
8936 echo "${ECHO_T}no" >&6; }
8937     fi
8938     rm -f conftest*
8939 fi
8940
8941 # if the above didn't work out, reset all changes to the compiler variables.
8942 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8943     CPPFLAGS=$OLDCPPFLAGS
8944     LIBS=$OLDLIBS
8945 fi
8946
8947
8948 #RFX_CHECK_FONTCONFIG
8949
8950 lame_objects=
8951 lame_makefile=
8952 if test "x${DISABLE_LAME}" = "xtrue"; then
8953     echo "*" Disabling lame support...
8954 else
8955     # old lame code at lib/lame
8956     if test -f lib/lame/Makefile.in; then
8957         lame_objects="lame/psymodel.\$(O) lame/fft.\$(O) lame/newmdct.\$(O) lame/quantize.\$(O) lame/takehiro.\$(O) lame/reservoir.\$(O) lame/quantize_pvt.\$(O) lame/vbrquantize.\$(O) lame/encoder.\$(O) lame/id3tag.\$(O) lame/version.\$(O) lame/tables.\$(O) lame/util.\$(O) lame/bitstream.\$(O) lame/set_get.\$(O) lame/VbrTag.\$(O) lame/lame.\$(O)"
8958         lame_makefile="lib/lame/Makefile"
8959         CPPFLAGS="$CPPFLAGS -Ilame"
8960         cat >>confdefs.h <<_ACEOF
8961 #define HAVE_LAME 1
8962 _ACEOF
8963
8964     else
8965         if test -d /usr/include/lame; then
8966             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
8967         else
8968             if test -d /usr/local/include/lame; then
8969                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
8970             fi
8971         fi
8972
8973 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
8974 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
8975 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
8976   echo $ECHO_N "(cached) $ECHO_C" >&6
8977 else
8978   ac_check_lib_save_LIBS=$LIBS
8979 LIBS="-lmp3lame  $LIBS"
8980 cat >conftest.$ac_ext <<_ACEOF
8981 /* confdefs.h.  */
8982 _ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h.  */
8986
8987 /* Override any GCC internal prototype to avoid an error.
8988    Use char because int might match the return type of a GCC
8989    builtin and then its argument prototype would still apply.  */
8990 #ifdef __cplusplus
8991 extern "C"
8992 #endif
8993 char lame_init ();
8994 int
8995 main ()
8996 {
8997 return lame_init ();
8998   ;
8999   return 0;
9000 }
9001 _ACEOF
9002 rm -f conftest.$ac_objext conftest$ac_exeext
9003 if { (ac_try="$ac_link"
9004 case "(($ac_try" in
9005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006   *) ac_try_echo=$ac_try;;
9007 esac
9008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009   (eval "$ac_link") 2>conftest.er1
9010   ac_status=$?
9011   grep -v '^ *+' conftest.er1 >conftest.err
9012   rm -f conftest.er1
9013   cat conftest.err >&5
9014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9015   (exit $ac_status); } && {
9016          test -z "$ac_c_werror_flag" ||
9017          test ! -s conftest.err
9018        } && test -s conftest$ac_exeext &&
9019        $as_test_x conftest$ac_exeext; then
9020   ac_cv_lib_mp3lame_lame_init=yes
9021 else
9022   echo "$as_me: failed program was:" >&5
9023 sed 's/^/| /' conftest.$ac_ext >&5
9024
9025         ac_cv_lib_mp3lame_lame_init=no
9026 fi
9027
9028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9029       conftest$ac_exeext conftest.$ac_ext
9030 LIBS=$ac_check_lib_save_LIBS
9031 fi
9032 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9033 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
9034 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9035   cat >>confdefs.h <<_ACEOF
9036 #define HAVE_LIBMP3LAME 1
9037 _ACEOF
9038
9039   LIBS="-lmp3lame $LIBS"
9040
9041 else
9042   NO_LIBMP3LAME=1
9043 fi
9044
9045
9046 for ac_header in lame.h
9047 do
9048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9050   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9053   echo $ECHO_N "(cached) $ECHO_C" >&6
9054 fi
9055 ac_res=`eval echo '${'$as_ac_Header'}'`
9056                { echo "$as_me:$LINENO: result: $ac_res" >&5
9057 echo "${ECHO_T}$ac_res" >&6; }
9058 else
9059   # Is the header compilable?
9060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9062 cat >conftest.$ac_ext <<_ACEOF
9063 /* confdefs.h.  */
9064 _ACEOF
9065 cat confdefs.h >>conftest.$ac_ext
9066 cat >>conftest.$ac_ext <<_ACEOF
9067 /* end confdefs.h.  */
9068 $ac_includes_default
9069 #include <$ac_header>
9070 _ACEOF
9071 rm -f conftest.$ac_objext
9072 if { (ac_try="$ac_compile"
9073 case "(($ac_try" in
9074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075   *) ac_try_echo=$ac_try;;
9076 esac
9077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9078   (eval "$ac_compile") 2>conftest.er1
9079   ac_status=$?
9080   grep -v '^ *+' conftest.er1 >conftest.err
9081   rm -f conftest.er1
9082   cat conftest.err >&5
9083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); } && {
9085          test -z "$ac_c_werror_flag" ||
9086          test ! -s conftest.err
9087        } && test -s conftest.$ac_objext; then
9088   ac_header_compiler=yes
9089 else
9090   echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9092
9093         ac_header_compiler=no
9094 fi
9095
9096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9098 echo "${ECHO_T}$ac_header_compiler" >&6; }
9099
9100 # Is the header present?
9101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9103 cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h.  */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h.  */
9109 #include <$ac_header>
9110 _ACEOF
9111 if { (ac_try="$ac_cpp conftest.$ac_ext"
9112 case "(($ac_try" in
9113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114   *) ac_try_echo=$ac_try;;
9115 esac
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9118   ac_status=$?
9119   grep -v '^ *+' conftest.er1 >conftest.err
9120   rm -f conftest.er1
9121   cat conftest.err >&5
9122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123   (exit $ac_status); } >/dev/null && {
9124          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9125          test ! -s conftest.err
9126        }; then
9127   ac_header_preproc=yes
9128 else
9129   echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9131
9132   ac_header_preproc=no
9133 fi
9134
9135 rm -f conftest.err conftest.$ac_ext
9136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9137 echo "${ECHO_T}$ac_header_preproc" >&6; }
9138
9139 # So?  What about this header?
9140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9141   yes:no: )
9142     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9144     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9146     ac_header_preproc=yes
9147     ;;
9148   no:yes:* )
9149     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9151     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9152 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9153     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9155     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9156 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9157     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9159     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9161
9162     ;;
9163 esac
9164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9167   echo $ECHO_N "(cached) $ECHO_C" >&6
9168 else
9169   eval "$as_ac_Header=\$ac_header_preproc"
9170 fi
9171 ac_res=`eval echo '${'$as_ac_Header'}'`
9172                { echo "$as_me:$LINENO: result: $ac_res" >&5
9173 echo "${ECHO_T}$ac_res" >&6; }
9174
9175 fi
9176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9177   cat >>confdefs.h <<_ACEOF
9178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9179 _ACEOF
9180
9181 fi
9182
9183 done
9184
9185         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
9186             cat >>confdefs.h <<_ACEOF
9187 #define HAVE_LAME 1
9188 _ACEOF
9189
9190         fi
9191     fi
9192 fi
9193
9194
9195 # ------------------------------------------------------------------
9196
9197
9198
9199 for ac_prog in avifile-config
9200 do
9201   # Extract the first word of "$ac_prog", so it can be a program name with args.
9202 set dummy $ac_prog; ac_word=$2
9203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9205 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9206   echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208   if test -n "$AVIFILE_CONFIG"; then
9209   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9210 else
9211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9212 for as_dir in $PATH
9213 do
9214   IFS=$as_save_IFS
9215   test -z "$as_dir" && as_dir=.
9216   for ac_exec_ext in '' $ac_executable_extensions; do
9217   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9218     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9219     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9220     break 2
9221   fi
9222 done
9223 done
9224 IFS=$as_save_IFS
9225
9226 fi
9227 fi
9228 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9229 if test -n "$AVIFILE_CONFIG"; then
9230   { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9231 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
9232 else
9233   { echo "$as_me:$LINENO: result: no" >&5
9234 echo "${ECHO_T}no" >&6; }
9235 fi
9236
9237
9238   test -n "$AVIFILE_CONFIG" && break
9239 done
9240
9241
9242 if test "x$AVIFILE_CONFIG" '!=' "x";then
9243     OLDCPPFLAGS="$CPPFLAGS"
9244     # temporarily add avifile paths to CPPFLAGS...
9245     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9246
9247
9248 for ac_header in avifile/version.h version.h
9249 do
9250 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
9257 ac_res=`eval echo '${'$as_ac_Header'}'`
9258                { echo "$as_me:$LINENO: result: $ac_res" >&5
9259 echo "${ECHO_T}$ac_res" >&6; }
9260 else
9261   # Is the header compilable?
9262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9264 cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h.  */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h.  */
9270 $ac_includes_default
9271 #include <$ac_header>
9272 _ACEOF
9273 rm -f conftest.$ac_objext
9274 if { (ac_try="$ac_compile"
9275 case "(($ac_try" in
9276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9277   *) ac_try_echo=$ac_try;;
9278 esac
9279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9280   (eval "$ac_compile") 2>conftest.er1
9281   ac_status=$?
9282   grep -v '^ *+' conftest.er1 >conftest.err
9283   rm -f conftest.er1
9284   cat conftest.err >&5
9285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286   (exit $ac_status); } && {
9287          test -z "$ac_c_werror_flag" ||
9288          test ! -s conftest.err
9289        } && test -s conftest.$ac_objext; then
9290   ac_header_compiler=yes
9291 else
9292   echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295         ac_header_compiler=no
9296 fi
9297
9298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9300 echo "${ECHO_T}$ac_header_compiler" >&6; }
9301
9302 # Is the header present?
9303 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9305 cat >conftest.$ac_ext <<_ACEOF
9306 /* confdefs.h.  */
9307 _ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h.  */
9311 #include <$ac_header>
9312 _ACEOF
9313 if { (ac_try="$ac_cpp conftest.$ac_ext"
9314 case "(($ac_try" in
9315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316   *) ac_try_echo=$ac_try;;
9317 esac
9318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9319   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9320   ac_status=$?
9321   grep -v '^ *+' conftest.er1 >conftest.err
9322   rm -f conftest.er1
9323   cat conftest.err >&5
9324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325   (exit $ac_status); } >/dev/null && {
9326          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9327          test ! -s conftest.err
9328        }; then
9329   ac_header_preproc=yes
9330 else
9331   echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9333
9334   ac_header_preproc=no
9335 fi
9336
9337 rm -f conftest.err conftest.$ac_ext
9338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9339 echo "${ECHO_T}$ac_header_preproc" >&6; }
9340
9341 # So?  What about this header?
9342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9343   yes:no: )
9344     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9346     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9348     ac_header_preproc=yes
9349     ;;
9350   no:yes:* )
9351     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9353     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9354 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9355     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9357     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9358 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9359     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9361     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9363
9364     ;;
9365 esac
9366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9369   echo $ECHO_N "(cached) $ECHO_C" >&6
9370 else
9371   eval "$as_ac_Header=\$ac_header_preproc"
9372 fi
9373 ac_res=`eval echo '${'$as_ac_Header'}'`
9374                { echo "$as_me:$LINENO: result: $ac_res" >&5
9375 echo "${ECHO_T}$ac_res" >&6; }
9376
9377 fi
9378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9379   cat >>confdefs.h <<_ACEOF
9380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9381 _ACEOF
9382
9383 fi
9384
9385 done
9386
9387     # ... and reset
9388     CPPFLAGS="$OLDCPPFLAGS"
9389 fi
9390
9391 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9392 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
9393
9394 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9395     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9396 fi
9397 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9398     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9399 fi
9400
9401 cat > conftest.cpp << EOF
9402
9403 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9404 // so we have to introduce them this way
9405 $HAVE_VERSION_H_DEFINE
9406 $HAVE_AVIFILE_VERSION_H_DEFINE
9407
9408 #ifdef HAVE_VERSION_H
9409   #include <version.h>
9410 #endif
9411 #ifdef HAVE_AVIFILE_VERSION_H
9412   #include <avifile/version.h>
9413 #endif
9414
9415 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9416    #include <avifile.h>
9417    #include <aviplay.h>
9418    #include <avm_fourcc.h>
9419    #include <avm_creators.h>
9420    #include <StreamInfo.h>
9421    #define VERSION6
9422 #else
9423    #include <avifile.h>
9424    #include <aviplay.h>
9425    #include <aviutil.h>
9426    #define Width width
9427    #define Height height
9428    #define Data data
9429    #define Bpp bpp
9430 #endif
9431
9432 void test()
9433 {
9434   IAviReadFile* player;
9435   IAviReadStream* astream;
9436   IAviReadStream* vstream;
9437   player = CreateIAviReadFile(0);
9438   astream = player->GetStream(0, AviStream::Audio);
9439   vstream = player->GetStream(0, AviStream::Video);
9440   vstream -> StartStreaming();
9441   astream -> StartStreaming();
9442 #ifndef VERSION6
9443   MainAVIHeader head;
9444   player->GetFileHeader(&head);
9445   head.dwMicroSecPerFrame;
9446   head.dwTotalFrames;
9447   head.dwStreams;
9448   head.dwWidth;
9449   head.dwHeight;
9450   head.dwMicroSecPerFrame;
9451   astream->GetEndPos(),
9452   astream->GetEndTime());
9453   player->StreamCount();
9454 #else
9455   StreamInfo*audioinfo;
9456   StreamInfo*videoinfo;
9457   audioinfo = astream->GetStreamInfo();
9458   videoinfo = vstream->GetStreamInfo();
9459   videoinfo->GetVideoWidth();
9460   videoinfo->GetVideoHeight();
9461   audioinfo->GetAudioSamplesPerSec();
9462   videoinfo->GetFps();
9463 #endif
9464   CImage*img = vstream->GetFrame();
9465   img->ToRGB();
9466   img->Data();
9467   img->Bpp();
9468   img->Width();
9469   img->Height();
9470   WAVEFORMATEX wave;
9471   astream->GetAudioFormatInfo(&wave,0);
9472   uint_t a,b;
9473   astream->ReadFrames(0,0,0,a,b);
9474 }
9475 int main (int argc, char*argv)
9476 {
9477     return 0;
9478 }
9479 EOF
9480
9481 if test "x$AVIFILE_CONFIG" '!=' "x";then
9482     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9483     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9484     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9485     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9486       { echo "$as_me:$LINENO: result: yes" >&5
9487 echo "${ECHO_T}yes" >&6; }
9488       AVIFILE=true
9489       export AVIFILE
9490       cat >>confdefs.h <<_ACEOF
9491 #define AVIFILE true
9492 _ACEOF
9493
9494     else
9495       echo "configure: failed program was:" >&5
9496       cat conftest.cpp >&5
9497       { echo "$as_me:$LINENO: result: no" >&5
9498 echo "${ECHO_T}no" >&6; }
9499     fi
9500 else
9501     { echo "$as_me:$LINENO: result: no" >&5
9502 echo "${ECHO_T}no" >&6; }
9503 fi
9504 rm -f conftest*
9505
9506 if test "x${AVIFILE}" = "xtrue"; then
9507     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9508     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9509     cat >>confdefs.h <<_ACEOF
9510 #define HAVE_AVIFILE 1
9511 _ACEOF
9512
9513 fi
9514
9515 if test "x${WIN32}" != "x"; then
9516     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9517     #if test "x${AVIFIL32}" != "x"; then
9518     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9519     #fi
9520     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9521     AVIFIL32=true
9522 fi
9523
9524
9525
9526 # ------------------------------------------------------------------
9527
9528 if test "x${UNCOMPRESS}" = "xgzip"; then
9529     cat >>confdefs.h <<_ACEOF
9530 #define USE_GZIP 1
9531 _ACEOF
9532
9533 fi
9534
9535
9536 # ------------------------------------------------------------------
9537
9538
9539 { echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
9540 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6; }
9541
9542 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9543     PY_VERSION=unknown
9544 else
9545     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9546         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9547     fi
9548     # iterate through version 2.2 to 2.4
9549     for v in 2 3 4; do
9550         # Linux
9551         if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
9552             PY_VERSION=2.$v
9553             PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
9554             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9555         # Mac OS X
9556         elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9557             #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
9558             PY_VERSION=2.$v
9559             PYTHON_LIB="-framework Python"
9560             if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
9561                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9562             else
9563                 PYTHON_LIB2="$PYTHON_LIB"
9564             fi
9565             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9566         # Mac OS X [Fink]:
9567         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9568                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9569                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9570                   ")" \
9571                -a -f "/sw/include/python2.$v/Python.h" \
9572                -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9573             PY_VERSION=2.$v
9574             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9575             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9576         fi
9577     done
9578 fi
9579
9580 if test "x$PY_VERSION" "!=" "x"; then
9581     { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9582 echo "${ECHO_T}$PY_VERSION" >&6; }
9583     export PYTHON_INCLUDES PYTHON_LIB
9584
9585
9586     { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9587 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
9588
9589     cat > conftest.c << EOF
9590 #include <Python.h>
9591 #include <Imaging.h>
9592
9593 int main()
9594 {
9595     int ret;
9596     ret = Py_Main(0, 0);
9597     int x; // check also for gcc 2.95.x incompatibilities
9598     return ret;
9599 }
9600 EOF
9601     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9602     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9603         { echo "$as_me:$LINENO: result: yes" >&5
9604 echo "${ECHO_T}yes" >&6; }
9605         PYTHON_OK=yes
9606     else
9607         ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9608         if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9609             { echo "$as_me:$LINENO: result: yes" >&5
9610 echo "${ECHO_T}yes" >&6; }
9611             PYTHON_LIB="${PYTHON_LIB2}"
9612             PYTHON_OK=yes
9613         else
9614             echo "configure: failed program was:" >&5
9615             cat conftest.c >&5
9616             { echo "$as_me:$LINENO: result: no" >&5
9617 echo "${ECHO_T}no" >&6; }
9618         fi
9619     fi
9620     rm -f conftest*
9621 else
9622     { echo "$as_me:$LINENO: result: nope" >&5
9623 echo "${ECHO_T}nope" >&6; }
9624 fi
9625
9626
9627 if test "x$PYTHON_OK" '!=' "xyes";then
9628     echo all install uninstall clean: > lib/python/Makefile
9629     # fail silently- the most users won't have any need for the
9630     # python interface anyway
9631 else
9632     pythonrfxswf="lib/python/Makefile"
9633 fi
9634
9635 # ------------------------------------------------------------------
9636
9637 { echo "$as_me:$LINENO: checking for missing libraries" >&5
9638 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
9639
9640 if test "x$ZLIBMISSING" = "xtrue";then
9641     MISSINGLIBS="${MISSINGLIBS} zlib"
9642     DISABLEPNG2SWF=true
9643     PARTIAL=true
9644 fi
9645 if test "x$JPEGLIBMISSING" = "xtrue";then
9646     MISSINGLIBS="${MISSINGLIBS} jpeglib"
9647     DISABLEPDF2SWF=true
9648     DISABLEJPEG2SWF=true
9649     PARTIAL=true
9650 fi
9651 if test "x$T1LIBMISSING" = "xtrue";then
9652     MISSINGLIBS="${MISSINGLIBS} t1lib"
9653 fi
9654 if test "x$UNGIFMISSING" = "xtrue";then
9655     DISABLEGIF2SWF=true
9656     MISSINGLIBS="${MISSINGLIBS} ungif"
9657     PARTIAL=true
9658 fi
9659
9660 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
9661     DISABLEPDF2SWF=true;
9662     DISABLEJPEG2SWF=true;
9663     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9664     PARTIAL=true
9665 fi
9666 if test "x$HAVE_FREETYPE" '!=' "x1"; then
9667     DISABLEPDF2SWF=true;
9668     MISSINGLIBS="${MISSINGLIBS} freetype"
9669     PARTIAL=true
9670 fi
9671 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
9672     MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9673 fi
9674 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
9675     DISABLEGIF2SWF=true
9676     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
9677     PARTIAL=true
9678 fi
9679 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
9680     DISABLEPNG2SWF=true;
9681     MISSINGLIBS="${MISSINGLIBS} zlib.h"
9682     PARTIAL=true
9683 fi
9684 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9685 #    MISSINGLIBS="${MISSINGLIBS} avifile"
9686 #fi
9687
9688 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
9689 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
9690
9691 # ------------------------------------------------------------------
9692
9693 if test "x${MISSINGLIBS}" '!=' "x"; then
9694   echo "***************************************************"
9695   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
9696 fi
9697
9698 avi2swf="avi2swf/Makefile"
9699 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9700  #don't whine, avi2swf is outdated anyway
9701  #echo "* Disabling avi2swf tool..."
9702  echo all install uninstall clean: > avi2swf/Makefile
9703  avi2swf=
9704 fi
9705
9706 pdf2swf_makefile="lib/pdf/Makefile"
9707 PDF2SWF='pdf2swf$(E)'
9708 LIBPDF='libpdf$(A)'
9709
9710 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
9711   echo "* Disabling pdf2swf tool..."
9712   rm -f lib/pdf/Makefile
9713   echo all install uninstall clean: > lib/pdf/Makefile
9714   pdf2swf_makefile=""
9715   PDF2SWF=
9716   LIBPDF=
9717 fi
9718
9719
9720
9721 if test "x${ZLIBMISSING}" = "xtrue"; then
9722   echo
9723   echo "* Warning! Without zlib, you will not be able to read"
9724   echo "* or write compressed Flash MX files!"
9725 fi
9726
9727 JPEG2SWF='jpeg2swf$(E)'
9728 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
9729   echo "* Disabling jpeg2swf tool..."
9730   JPEG2SWF=
9731 fi
9732 export JPEG2SWF
9733
9734
9735 GIF2SWF='gif2swf$(E)'
9736 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
9737   echo "* Disabling gif2swf tool..."
9738   GIF2SWF=
9739 fi
9740 export GIF2SWF
9741
9742
9743 PNG2SWF='png2swf$(E)'
9744 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
9745   echo "* Disabling png2swf tool..."
9746   PNG2SWF=
9747 fi
9748 export PNG2SWF
9749
9750
9751 if test "x${MISSINGLIBS}" '!=' "x"; then
9752   if test "x${PARTIAL}" '=' "x"; then
9753     echo "* (never mind)"
9754   fi
9755   echo "***************************************************"
9756 fi
9757
9758 # ------------------------------------------------------------------
9759
9760 if test -f "release.in"; then release_in="./release"; fi
9761 if test -f "wx/Makefile.in"; then wx_in="wx/Makefile"; fi
9762 FILES="$release_in $wx_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/swf/Makefile"
9763 ac_config_files="$ac_config_files ${FILES}"
9764
9765 cat >confcache <<\_ACEOF
9766 # This file is a shell script that caches the results of configure
9767 # tests run on this system so they can be shared between configure
9768 # scripts and configure runs, see configure's option --config-cache.
9769 # It is not useful on other systems.  If it contains results you don't
9770 # want to keep, you may remove or edit it.
9771 #
9772 # config.status only pays attention to the cache file if you give it
9773 # the --recheck option to rerun configure.
9774 #
9775 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9776 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9777 # following values.
9778
9779 _ACEOF
9780
9781 # The following way of writing the cache mishandles newlines in values,
9782 # but we know of no workaround that is simple, portable, and efficient.
9783 # So, we kill variables containing newlines.
9784 # Ultrix sh set writes to stderr and can't be redirected directly,
9785 # and sets the high bit in the cache file unless we assign to the vars.
9786 (
9787   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9788     eval ac_val=\$$ac_var
9789     case $ac_val in #(
9790     *${as_nl}*)
9791       case $ac_var in #(
9792       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9793 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9794       esac
9795       case $ac_var in #(
9796       _ | IFS | as_nl) ;; #(
9797       *) $as_unset $ac_var ;;
9798       esac ;;
9799     esac
9800   done
9801
9802   (set) 2>&1 |
9803     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9804     *${as_nl}ac_space=\ *)
9805       # `set' does not quote correctly, so add quotes (double-quote
9806       # substitution turns \\\\ into \\, and sed turns \\ into \).
9807       sed -n \
9808         "s/'/'\\\\''/g;
9809           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9810       ;; #(
9811     *)
9812       # `set' quotes correctly as required by POSIX, so do not add quotes.
9813       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9814       ;;
9815     esac |
9816     sort
9817 ) |
9818   sed '
9819      /^ac_cv_env_/b end
9820      t clear
9821      :clear
9822      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9823      t end
9824      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9825      :end' >>confcache
9826 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9827   if test -w "$cache_file"; then
9828     test "x$cache_file" != "x/dev/null" &&
9829       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9830 echo "$as_me: updating cache $cache_file" >&6;}
9831     cat confcache >$cache_file
9832   else
9833     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9834 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9835   fi
9836 fi
9837 rm -f confcache
9838
9839 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9840 # Let make expand exec_prefix.
9841 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9842
9843 DEFS=-DHAVE_CONFIG_H
9844
9845 ac_libobjs=
9846 ac_ltlibobjs=
9847 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9848   # 1. Remove the extension, and $U if already installed.
9849   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9850   ac_i=`echo "$ac_i" | sed "$ac_script"`
9851   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9852   #    will be set to the directory where LIBOBJS objects are built.
9853   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9854   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9855 done
9856 LIBOBJS=$ac_libobjs
9857
9858 LTLIBOBJS=$ac_ltlibobjs
9859
9860
9861
9862 : ${CONFIG_STATUS=./config.status}
9863 ac_clean_files_save=$ac_clean_files
9864 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9865 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9866 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9867 cat >$CONFIG_STATUS <<_ACEOF
9868 #! $SHELL
9869 # Generated by $as_me.
9870 # Run this file to recreate the current configuration.
9871 # Compiler output produced by configure, useful for debugging
9872 # configure, is in config.log if it exists.
9873
9874 debug=false
9875 ac_cs_recheck=false
9876 ac_cs_silent=false
9877 SHELL=\${CONFIG_SHELL-$SHELL}
9878 _ACEOF
9879
9880 cat >>$CONFIG_STATUS <<\_ACEOF
9881 ## --------------------- ##
9882 ## M4sh Initialization.  ##
9883 ## --------------------- ##
9884
9885 # Be more Bourne compatible
9886 DUALCASE=1; export DUALCASE # for MKS sh
9887 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9888   emulate sh
9889   NULLCMD=:
9890   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9891   # is contrary to our usage.  Disable this feature.
9892   alias -g '${1+"$@"}'='"$@"'
9893   setopt NO_GLOB_SUBST
9894 else
9895   case `(set -o) 2>/dev/null` in
9896   *posix*) set -o posix ;;
9897 esac
9898
9899 fi
9900
9901
9902
9903
9904 # PATH needs CR
9905 # Avoid depending upon Character Ranges.
9906 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9907 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9908 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9909 as_cr_digits='0123456789'
9910 as_cr_alnum=$as_cr_Letters$as_cr_digits
9911
9912 # The user is always right.
9913 if test "${PATH_SEPARATOR+set}" != set; then
9914   echo "#! /bin/sh" >conf$$.sh
9915   echo  "exit 0"   >>conf$$.sh
9916   chmod +x conf$$.sh
9917   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9918     PATH_SEPARATOR=';'
9919   else
9920     PATH_SEPARATOR=:
9921   fi
9922   rm -f conf$$.sh
9923 fi
9924
9925 # Support unset when possible.
9926 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9927   as_unset=unset
9928 else
9929   as_unset=false
9930 fi
9931
9932
9933 # IFS
9934 # We need space, tab and new line, in precisely that order.  Quoting is
9935 # there to prevent editors from complaining about space-tab.
9936 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9937 # splitting by setting IFS to empty value.)
9938 as_nl='
9939 '
9940 IFS=" ""        $as_nl"
9941
9942 # Find who we are.  Look in the path if we contain no directory separator.
9943 case $0 in
9944   *[\\/]* ) as_myself=$0 ;;
9945   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9946 for as_dir in $PATH
9947 do
9948   IFS=$as_save_IFS
9949   test -z "$as_dir" && as_dir=.
9950   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9951 done
9952 IFS=$as_save_IFS
9953
9954      ;;
9955 esac
9956 # We did not find ourselves, most probably we were run as `sh COMMAND'
9957 # in which case we are not to be found in the path.
9958 if test "x$as_myself" = x; then
9959   as_myself=$0
9960 fi
9961 if test ! -f "$as_myself"; then
9962   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9963   { (exit 1); exit 1; }
9964 fi
9965
9966 # Work around bugs in pre-3.0 UWIN ksh.
9967 for as_var in ENV MAIL MAILPATH
9968 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9969 done
9970 PS1='$ '
9971 PS2='> '
9972 PS4='+ '
9973
9974 # NLS nuisances.
9975 for as_var in \
9976   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9977   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9978   LC_TELEPHONE LC_TIME
9979 do
9980   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9981     eval $as_var=C; export $as_var
9982   else
9983     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9984   fi
9985 done
9986
9987 # Required to use basename.
9988 if expr a : '\(a\)' >/dev/null 2>&1 &&
9989    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9990   as_expr=expr
9991 else
9992   as_expr=false
9993 fi
9994
9995 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9996   as_basename=basename
9997 else
9998   as_basename=false
9999 fi
10000
10001
10002 # Name of the executable.
10003 as_me=`$as_basename -- "$0" ||
10004 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10005          X"$0" : 'X\(//\)$' \| \
10006          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10007 echo X/"$0" |
10008     sed '/^.*\/\([^/][^/]*\)\/*$/{
10009             s//\1/
10010             q
10011           }
10012           /^X\/\(\/\/\)$/{
10013             s//\1/
10014             q
10015           }
10016           /^X\/\(\/\).*/{
10017             s//\1/
10018             q
10019           }
10020           s/.*/./; q'`
10021
10022 # CDPATH.
10023 $as_unset CDPATH
10024
10025
10026
10027   as_lineno_1=$LINENO
10028   as_lineno_2=$LINENO
10029   test "x$as_lineno_1" != "x$as_lineno_2" &&
10030   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10031
10032   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10033   # uniformly replaced by the line number.  The first 'sed' inserts a
10034   # line-number line after each line using $LINENO; the second 'sed'
10035   # does the real work.  The second script uses 'N' to pair each
10036   # line-number line with the line containing $LINENO, and appends
10037   # trailing '-' during substitution so that $LINENO is not a special
10038   # case at line end.
10039   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10040   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10041   # E. McMahon (1931-1989) for sed's syntax.  :-)
10042   sed -n '
10043     p
10044     /[$]LINENO/=
10045   ' <$as_myself |
10046     sed '
10047       s/[$]LINENO.*/&-/
10048       t lineno
10049       b
10050       :lineno
10051       N
10052       :loop
10053       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10054       t loop
10055       s/-\n.*//
10056     ' >$as_me.lineno &&
10057   chmod +x "$as_me.lineno" ||
10058     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10059    { (exit 1); exit 1; }; }
10060
10061   # Don't try to exec as it changes $[0], causing all sort of problems
10062   # (the dirname of $[0] is not the place where we might find the
10063   # original and so on.  Autoconf is especially sensitive to this).
10064   . "./$as_me.lineno"
10065   # Exit status is that of the last command.
10066   exit
10067 }
10068
10069
10070 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10071   as_dirname=dirname
10072 else
10073   as_dirname=false
10074 fi
10075
10076 ECHO_C= ECHO_N= ECHO_T=
10077 case `echo -n x` in
10078 -n*)
10079   case `echo 'x\c'` in
10080   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10081   *)   ECHO_C='\c';;
10082   esac;;
10083 *)
10084   ECHO_N='-n';;
10085 esac
10086
10087 if expr a : '\(a\)' >/dev/null 2>&1 &&
10088    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10089   as_expr=expr
10090 else
10091   as_expr=false
10092 fi
10093
10094 rm -f conf$$ conf$$.exe conf$$.file
10095 if test -d conf$$.dir; then
10096   rm -f conf$$.dir/conf$$.file
10097 else
10098   rm -f conf$$.dir
10099   mkdir conf$$.dir
10100 fi
10101 echo >conf$$.file
10102 if ln -s conf$$.file conf$$ 2>/dev/null; then
10103   as_ln_s='ln -s'
10104   # ... but there are two gotchas:
10105   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10106   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10107   # In both cases, we have to default to `cp -p'.
10108   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10109     as_ln_s='cp -p'
10110 elif ln conf$$.file conf$$ 2>/dev/null; then
10111   as_ln_s=ln
10112 else
10113   as_ln_s='cp -p'
10114 fi
10115 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10116 rmdir conf$$.dir 2>/dev/null
10117
10118 if mkdir -p . 2>/dev/null; then
10119   as_mkdir_p=:
10120 else
10121   test -d ./-p && rmdir ./-p
10122   as_mkdir_p=false
10123 fi
10124
10125 if test -x / >/dev/null 2>&1; then
10126   as_test_x='test -x'
10127 else
10128   if ls -dL / >/dev/null 2>&1; then
10129     as_ls_L_option=L
10130   else
10131     as_ls_L_option=
10132   fi
10133   as_test_x='
10134     eval sh -c '\''
10135       if test -d "$1"; then
10136         test -d "$1/.";
10137       else
10138         case $1 in
10139         -*)set "./$1";;
10140         esac;
10141         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10142         ???[sx]*):;;*)false;;esac;fi
10143     '\'' sh
10144   '
10145 fi
10146 as_executable_p=$as_test_x
10147
10148 # Sed expression to map a string onto a valid CPP name.
10149 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10150
10151 # Sed expression to map a string onto a valid variable name.
10152 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10153
10154
10155 exec 6>&1
10156
10157 # Save the log message, to keep $[0] and so on meaningful, and to
10158 # report actual input values of CONFIG_FILES etc. instead of their
10159 # values after options handling.
10160 ac_log="
10161 This file was extended by $as_me, which was
10162 generated by GNU Autoconf 2.61.  Invocation command line was
10163
10164   CONFIG_FILES    = $CONFIG_FILES
10165   CONFIG_HEADERS  = $CONFIG_HEADERS
10166   CONFIG_LINKS    = $CONFIG_LINKS
10167   CONFIG_COMMANDS = $CONFIG_COMMANDS
10168   $ $0 $@
10169
10170 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10171 "
10172
10173 _ACEOF
10174
10175 cat >>$CONFIG_STATUS <<_ACEOF
10176 # Files that config.status was made for.
10177 config_files="$ac_config_files"
10178 config_headers="$ac_config_headers"
10179
10180 _ACEOF
10181
10182 cat >>$CONFIG_STATUS <<\_ACEOF
10183 ac_cs_usage="\
10184 \`$as_me' instantiates files from templates according to the
10185 current configuration.
10186
10187 Usage: $0 [OPTIONS] [FILE]...
10188
10189   -h, --help       print this help, then exit
10190   -V, --version    print version number and configuration settings, then exit
10191   -q, --quiet      do not print progress messages
10192   -d, --debug      don't remove temporary files
10193       --recheck    update $as_me by reconfiguring in the same conditions
10194   --file=FILE[:TEMPLATE]
10195                    instantiate the configuration file FILE
10196   --header=FILE[:TEMPLATE]
10197                    instantiate the configuration header FILE
10198
10199 Configuration files:
10200 $config_files
10201
10202 Configuration headers:
10203 $config_headers
10204
10205 Report bugs to <bug-autoconf@gnu.org>."
10206
10207 _ACEOF
10208 cat >>$CONFIG_STATUS <<_ACEOF
10209 ac_cs_version="\\
10210 config.status
10211 configured by $0, generated by GNU Autoconf 2.61,
10212   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10213
10214 Copyright (C) 2006 Free Software Foundation, Inc.
10215 This config.status script is free software; the Free Software Foundation
10216 gives unlimited permission to copy, distribute and modify it."
10217
10218 ac_pwd='$ac_pwd'
10219 srcdir='$srcdir'
10220 INSTALL='$INSTALL'
10221 _ACEOF
10222
10223 cat >>$CONFIG_STATUS <<\_ACEOF
10224 # If no file are specified by the user, then we need to provide default
10225 # value.  By we need to know if files were specified by the user.
10226 ac_need_defaults=:
10227 while test $# != 0
10228 do
10229   case $1 in
10230   --*=*)
10231     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10232     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10233     ac_shift=:
10234     ;;
10235   *)
10236     ac_option=$1
10237     ac_optarg=$2
10238     ac_shift=shift
10239     ;;
10240   esac
10241
10242   case $ac_option in
10243   # Handling of the options.
10244   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10245     ac_cs_recheck=: ;;
10246   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10247     echo "$ac_cs_version"; exit ;;
10248   --debug | --debu | --deb | --de | --d | -d )
10249     debug=: ;;
10250   --file | --fil | --fi | --f )
10251     $ac_shift
10252     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10253     ac_need_defaults=false;;
10254   --header | --heade | --head | --hea )
10255     $ac_shift
10256     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10257     ac_need_defaults=false;;
10258   --he | --h)
10259     # Conflict between --help and --header
10260     { echo "$as_me: error: ambiguous option: $1
10261 Try \`$0 --help' for more information." >&2
10262    { (exit 1); exit 1; }; };;
10263   --help | --hel | -h )
10264     echo "$ac_cs_usage"; exit ;;
10265   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10266   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10267     ac_cs_silent=: ;;
10268
10269   # This is an error.
10270   -*) { echo "$as_me: error: unrecognized option: $1
10271 Try \`$0 --help' for more information." >&2
10272    { (exit 1); exit 1; }; } ;;
10273
10274   *) ac_config_targets="$ac_config_targets $1"
10275      ac_need_defaults=false ;;
10276
10277   esac
10278   shift
10279 done
10280
10281 ac_configure_extra_args=
10282
10283 if $ac_cs_silent; then
10284   exec 6>/dev/null
10285   ac_configure_extra_args="$ac_configure_extra_args --silent"
10286 fi
10287
10288 _ACEOF
10289 cat >>$CONFIG_STATUS <<_ACEOF
10290 if \$ac_cs_recheck; then
10291   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10292   CONFIG_SHELL=$SHELL
10293   export CONFIG_SHELL
10294   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10295 fi
10296
10297 _ACEOF
10298 cat >>$CONFIG_STATUS <<\_ACEOF
10299 exec 5>>config.log
10300 {
10301   echo
10302   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10303 ## Running $as_me. ##
10304 _ASBOX
10305   echo "$ac_log"
10306 } >&5
10307
10308 _ACEOF
10309 cat >>$CONFIG_STATUS <<_ACEOF
10310 _ACEOF
10311
10312 cat >>$CONFIG_STATUS <<\_ACEOF
10313
10314 # Handling of arguments.
10315 for ac_config_target in $ac_config_targets
10316 do
10317   case $ac_config_target in
10318     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10319     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10320
10321   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10322 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10323    { (exit 1); exit 1; }; };;
10324   esac
10325 done
10326
10327
10328 # If the user did not use the arguments to specify the items to instantiate,
10329 # then the envvar interface is used.  Set only those that are not.
10330 # We use the long form for the default assignment because of an extremely
10331 # bizarre bug on SunOS 4.1.3.
10332 if $ac_need_defaults; then
10333   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10334   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10335 fi
10336
10337 # Have a temporary directory for convenience.  Make it in the build tree
10338 # simply because there is no reason against having it here, and in addition,
10339 # creating and moving files from /tmp can sometimes cause problems.
10340 # Hook for its removal unless debugging.
10341 # Note that there is a small window in which the directory will not be cleaned:
10342 # after its creation but before its name has been assigned to `$tmp'.
10343 $debug ||
10344 {
10345   tmp=
10346   trap 'exit_status=$?
10347   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10348 ' 0
10349   trap '{ (exit 1); exit 1; }' 1 2 13 15
10350 }
10351 # Create a (secure) tmp directory for tmp files.
10352
10353 {
10354   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10355   test -n "$tmp" && test -d "$tmp"
10356 }  ||
10357 {
10358   tmp=./conf$$-$RANDOM
10359   (umask 077 && mkdir "$tmp")
10360 } ||
10361 {
10362    echo "$me: cannot create a temporary directory in ." >&2
10363    { (exit 1); exit 1; }
10364 }
10365
10366 #
10367 # Set up the sed scripts for CONFIG_FILES section.
10368 #
10369
10370 # No need to generate the scripts if there are no CONFIG_FILES.
10371 # This happens for instance when ./config.status config.h
10372 if test -n "$CONFIG_FILES"; then
10373
10374 _ACEOF
10375
10376
10377
10378 ac_delim='%!_!# '
10379 for ac_last_try in false false false false false :; do
10380   cat >conf$$subs.sed <<_ACEOF
10381 SHELL!$SHELL$ac_delim
10382 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10383 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10384 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10385 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10386 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10387 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10388 exec_prefix!$exec_prefix$ac_delim
10389 prefix!$prefix$ac_delim
10390 program_transform_name!$program_transform_name$ac_delim
10391 bindir!$bindir$ac_delim
10392 sbindir!$sbindir$ac_delim
10393 libexecdir!$libexecdir$ac_delim
10394 datarootdir!$datarootdir$ac_delim
10395 datadir!$datadir$ac_delim
10396 sysconfdir!$sysconfdir$ac_delim
10397 sharedstatedir!$sharedstatedir$ac_delim
10398 localstatedir!$localstatedir$ac_delim
10399 includedir!$includedir$ac_delim
10400 oldincludedir!$oldincludedir$ac_delim
10401 docdir!$docdir$ac_delim
10402 infodir!$infodir$ac_delim
10403 htmldir!$htmldir$ac_delim
10404 dvidir!$dvidir$ac_delim
10405 pdfdir!$pdfdir$ac_delim
10406 psdir!$psdir$ac_delim
10407 libdir!$libdir$ac_delim
10408 localedir!$localedir$ac_delim
10409 mandir!$mandir$ac_delim
10410 DEFS!$DEFS$ac_delim
10411 ECHO_C!$ECHO_C$ac_delim
10412 ECHO_N!$ECHO_N$ac_delim
10413 ECHO_T!$ECHO_T$ac_delim
10414 LIBS!$LIBS$ac_delim
10415 build_alias!$build_alias$ac_delim
10416 host_alias!$host_alias$ac_delim
10417 target_alias!$target_alias$ac_delim
10418 build!$build$ac_delim
10419 build_cpu!$build_cpu$ac_delim
10420 build_vendor!$build_vendor$ac_delim
10421 build_os!$build_os$ac_delim
10422 host!$host$ac_delim
10423 host_cpu!$host_cpu$ac_delim
10424 host_vendor!$host_vendor$ac_delim
10425 host_os!$host_os$ac_delim
10426 SHARED!$SHARED$ac_delim
10427 CC!$CC$ac_delim
10428 CFLAGS!$CFLAGS$ac_delim
10429 LDFLAGS!$LDFLAGS$ac_delim
10430 CPPFLAGS!$CPPFLAGS$ac_delim
10431 ac_ct_CC!$ac_ct_CC$ac_delim
10432 EXEEXT!$EXEEXT$ac_delim
10433 OBJEXT!$OBJEXT$ac_delim
10434 CXX!$CXX$ac_delim
10435 CXXFLAGS!$CXXFLAGS$ac_delim
10436 ac_ct_CXX!$ac_ct_CXX$ac_delim
10437 CPP!$CPP$ac_delim
10438 RANLIB!$RANLIB$ac_delim
10439 SET_MAKE!$SET_MAKE$ac_delim
10440 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10441 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10442 INSTALL_DATA!$INSTALL_DATA$ac_delim
10443 LN_S!$LN_S$ac_delim
10444 UNCOMPRESS!$UNCOMPRESS$ac_delim
10445 AREXT!$AREXT$ac_delim
10446 AR!$AR$ac_delim
10447 SLEXT!$SLEXT$ac_delim
10448 CXXLIBS!$CXXLIBS$ac_delim
10449 STRIP!$STRIP$ac_delim
10450 target!$target$ac_delim
10451 target_cpu!$target_cpu$ac_delim
10452 target_vendor!$target_vendor$ac_delim
10453 target_os!$target_os$ac_delim
10454 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
10455 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
10456 GREP!$GREP$ac_delim
10457 EGREP!$EGREP$ac_delim
10458 PACKAGE!$PACKAGE$ac_delim
10459 VERSION!$VERSION$ac_delim
10460 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10461 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
10462 lame_objects!$lame_objects$ac_delim
10463 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
10464 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
10465 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
10466 USE_GZIP!$USE_GZIP$ac_delim
10467 PYTHON_LIB!$PYTHON_LIB$ac_delim
10468 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
10469 PDF2SWF!$PDF2SWF$ac_delim
10470 LIBPDF!$LIBPDF$ac_delim
10471 JPEG2SWF!$JPEG2SWF$ac_delim
10472 GIF2SWF!$GIF2SWF$ac_delim
10473 PNG2SWF!$PNG2SWF$ac_delim
10474 LIBOBJS!$LIBOBJS$ac_delim
10475 LTLIBOBJS!$LTLIBOBJS$ac_delim
10476 _ACEOF
10477
10478   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
10479     break
10480   elif $ac_last_try; then
10481     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10482 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10483    { (exit 1); exit 1; }; }
10484   else
10485     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10486   fi
10487 done
10488
10489 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10490 if test -n "$ac_eof"; then
10491   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10492   ac_eof=`expr $ac_eof + 1`
10493 fi
10494
10495 cat >>$CONFIG_STATUS <<_ACEOF
10496 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10498 _ACEOF
10499 sed '
10500 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10501 s/^/s,@/; s/!/@,|#_!!_#|/
10502 :n
10503 t n
10504 s/'"$ac_delim"'$/,g/; t
10505 s/$/\\/; p
10506 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10507 ' >>$CONFIG_STATUS <conf$$subs.sed
10508 rm -f conf$$subs.sed
10509 cat >>$CONFIG_STATUS <<_ACEOF
10510 :end
10511 s/|#_!!_#|//g
10512 CEOF$ac_eof
10513 _ACEOF
10514
10515
10516 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10517 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10518 # trailing colons and then remove the whole line if VPATH becomes empty
10519 # (actually we leave an empty line to preserve line numbers).
10520 if test "x$srcdir" = x.; then
10521   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10522 s/:*\$(srcdir):*/:/
10523 s/:*\${srcdir}:*/:/
10524 s/:*@srcdir@:*/:/
10525 s/^\([^=]*=[     ]*\):*/\1/
10526 s/:*$//
10527 s/^[^=]*=[       ]*$//
10528 }'
10529 fi
10530
10531 cat >>$CONFIG_STATUS <<\_ACEOF
10532 fi # test -n "$CONFIG_FILES"
10533
10534
10535 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
10536 do
10537   case $ac_tag in
10538   :[FHLC]) ac_mode=$ac_tag; continue;;
10539   esac
10540   case $ac_mode$ac_tag in
10541   :[FHL]*:*);;
10542   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10543 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10544    { (exit 1); exit 1; }; };;
10545   :[FH]-) ac_tag=-:-;;
10546   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10547   esac
10548   ac_save_IFS=$IFS
10549   IFS=:
10550   set x $ac_tag
10551   IFS=$ac_save_IFS
10552   shift
10553   ac_file=$1
10554   shift
10555
10556   case $ac_mode in
10557   :L) ac_source=$1;;
10558   :[FH])
10559     ac_file_inputs=
10560     for ac_f
10561     do
10562       case $ac_f in
10563       -) ac_f="$tmp/stdin";;
10564       *) # Look for the file first in the build tree, then in the source tree
10565          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10566          # because $ac_f cannot contain `:'.
10567          test -f "$ac_f" ||
10568            case $ac_f in
10569            [\\/$]*) false;;
10570            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10571            esac ||
10572            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10573 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10574    { (exit 1); exit 1; }; };;
10575       esac
10576       ac_file_inputs="$ac_file_inputs $ac_f"
10577     done
10578
10579     # Let's still pretend it is `configure' which instantiates (i.e., don't
10580     # use $as_me), people would be surprised to read:
10581     #    /* config.h.  Generated by config.status.  */
10582     configure_input="Generated from "`IFS=:
10583           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10584     if test x"$ac_file" != x-; then
10585       configure_input="$ac_file.  $configure_input"
10586       { echo "$as_me:$LINENO: creating $ac_file" >&5
10587 echo "$as_me: creating $ac_file" >&6;}
10588     fi
10589
10590     case $ac_tag in
10591     *:-:* | *:-) cat >"$tmp/stdin";;
10592     esac
10593     ;;
10594   esac
10595
10596   ac_dir=`$as_dirname -- "$ac_file" ||
10597 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10598          X"$ac_file" : 'X\(//\)[^/]' \| \
10599          X"$ac_file" : 'X\(//\)$' \| \
10600          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10601 echo X"$ac_file" |
10602     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10603             s//\1/
10604             q
10605           }
10606           /^X\(\/\/\)[^/].*/{
10607             s//\1/
10608             q
10609           }
10610           /^X\(\/\/\)$/{
10611             s//\1/
10612             q
10613           }
10614           /^X\(\/\).*/{
10615             s//\1/
10616             q
10617           }
10618           s/.*/./; q'`
10619   { as_dir="$ac_dir"
10620   case $as_dir in #(
10621   -*) as_dir=./$as_dir;;
10622   esac
10623   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10624     as_dirs=
10625     while :; do
10626       case $as_dir in #(
10627       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10628       *) as_qdir=$as_dir;;
10629       esac
10630       as_dirs="'$as_qdir' $as_dirs"
10631       as_dir=`$as_dirname -- "$as_dir" ||
10632 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10633          X"$as_dir" : 'X\(//\)[^/]' \| \
10634          X"$as_dir" : 'X\(//\)$' \| \
10635          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10636 echo X"$as_dir" |
10637     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10638             s//\1/
10639             q
10640           }
10641           /^X\(\/\/\)[^/].*/{
10642             s//\1/
10643             q
10644           }
10645           /^X\(\/\/\)$/{
10646             s//\1/
10647             q
10648           }
10649           /^X\(\/\).*/{
10650             s//\1/
10651             q
10652           }
10653           s/.*/./; q'`
10654       test -d "$as_dir" && break
10655     done
10656     test -z "$as_dirs" || eval "mkdir $as_dirs"
10657   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10658 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10659    { (exit 1); exit 1; }; }; }
10660   ac_builddir=.
10661
10662 case "$ac_dir" in
10663 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10664 *)
10665   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10666   # A ".." for each directory in $ac_dir_suffix.
10667   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10668   case $ac_top_builddir_sub in
10669   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10670   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10671   esac ;;
10672 esac
10673 ac_abs_top_builddir=$ac_pwd
10674 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10675 # for backward compatibility:
10676 ac_top_builddir=$ac_top_build_prefix
10677
10678 case $srcdir in
10679   .)  # We are building in place.
10680     ac_srcdir=.
10681     ac_top_srcdir=$ac_top_builddir_sub
10682     ac_abs_top_srcdir=$ac_pwd ;;
10683   [\\/]* | ?:[\\/]* )  # Absolute name.
10684     ac_srcdir=$srcdir$ac_dir_suffix;
10685     ac_top_srcdir=$srcdir
10686     ac_abs_top_srcdir=$srcdir ;;
10687   *) # Relative name.
10688     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10689     ac_top_srcdir=$ac_top_build_prefix$srcdir
10690     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10691 esac
10692 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10693
10694
10695   case $ac_mode in
10696   :F)
10697   #
10698   # CONFIG_FILE
10699   #
10700
10701   case $INSTALL in
10702   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10703   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10704   esac
10705 _ACEOF
10706
10707 cat >>$CONFIG_STATUS <<\_ACEOF
10708 # If the template does not know about datarootdir, expand it.
10709 # FIXME: This hack should be removed a few years after 2.60.
10710 ac_datarootdir_hack=; ac_datarootdir_seen=
10711
10712 case `sed -n '/datarootdir/ {
10713   p
10714   q
10715 }
10716 /@datadir@/p
10717 /@docdir@/p
10718 /@infodir@/p
10719 /@localedir@/p
10720 /@mandir@/p
10721 ' $ac_file_inputs` in
10722 *datarootdir*) ac_datarootdir_seen=yes;;
10723 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10724   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10725 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10726 _ACEOF
10727 cat >>$CONFIG_STATUS <<_ACEOF
10728   ac_datarootdir_hack='
10729   s&@datadir@&$datadir&g
10730   s&@docdir@&$docdir&g
10731   s&@infodir@&$infodir&g
10732   s&@localedir@&$localedir&g
10733   s&@mandir@&$mandir&g
10734     s&\\\${datarootdir}&$datarootdir&g' ;;
10735 esac
10736 _ACEOF
10737
10738 # Neutralize VPATH when `$srcdir' = `.'.
10739 # Shell code in configure.ac might set extrasub.
10740 # FIXME: do we really want to maintain this feature?
10741 cat >>$CONFIG_STATUS <<_ACEOF
10742   sed "$ac_vpsub
10743 $extrasub
10744 _ACEOF
10745 cat >>$CONFIG_STATUS <<\_ACEOF
10746 :t
10747 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10748 s&@configure_input@&$configure_input&;t t
10749 s&@top_builddir@&$ac_top_builddir_sub&;t t
10750 s&@srcdir@&$ac_srcdir&;t t
10751 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10752 s&@top_srcdir@&$ac_top_srcdir&;t t
10753 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10754 s&@builddir@&$ac_builddir&;t t
10755 s&@abs_builddir@&$ac_abs_builddir&;t t
10756 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10757 s&@INSTALL@&$ac_INSTALL&;t t
10758 $ac_datarootdir_hack
10759 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
10760
10761 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10762   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10763   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10764   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10765 which seems to be undefined.  Please make sure it is defined." >&5
10766 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10767 which seems to be undefined.  Please make sure it is defined." >&2;}
10768
10769   rm -f "$tmp/stdin"
10770   case $ac_file in
10771   -) cat "$tmp/out"; rm -f "$tmp/out";;
10772   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10773   esac
10774  ;;
10775   :H)
10776   #
10777   # CONFIG_HEADER
10778   #
10779 _ACEOF
10780
10781 # Transform confdefs.h into a sed script `conftest.defines', that
10782 # substitutes the proper values into config.h.in to produce config.h.
10783 rm -f conftest.defines conftest.tail
10784 # First, append a space to every undef/define line, to ease matching.
10785 echo 's/$/ /' >conftest.defines
10786 # Then, protect against being on the right side of a sed subst, or in
10787 # an unquoted here document, in config.status.  If some macros were
10788 # called several times there might be several #defines for the same
10789 # symbol, which is useless.  But do not sort them, since the last
10790 # AC_DEFINE must be honored.
10791 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10792 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10793 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10794 # PARAMS is the parameter list in the macro definition--in most cases, it's
10795 # just an empty string.
10796 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
10797 ac_dB='\\)[      (].*,\\1define\\2'
10798 ac_dC=' '
10799 ac_dD=' ,'
10800
10801 uniq confdefs.h |
10802   sed -n '
10803         t rset
10804         :rset
10805         s/^[     ]*#[    ]*define[       ][      ]*//
10806         t ok
10807         d
10808         :ok
10809         s/[\\&,]/\\&/g
10810         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10811         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10812   ' >>conftest.defines
10813
10814 # Remove the space that was appended to ease matching.
10815 # Then replace #undef with comments.  This is necessary, for
10816 # example, in the case of _POSIX_SOURCE, which is predefined and required
10817 # on some systems where configure will not decide to define it.
10818 # (The regexp can be short, since the line contains either #define or #undef.)
10819 echo 's/ $//
10820 s,^[     #]*u.*,/* & */,' >>conftest.defines
10821
10822 # Break up conftest.defines:
10823 ac_max_sed_lines=50
10824
10825 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10826 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10827 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10828 # et cetera.
10829 ac_in='$ac_file_inputs'
10830 ac_out='"$tmp/out1"'
10831 ac_nxt='"$tmp/out2"'
10832
10833 while :
10834 do
10835   # Write a here document:
10836     cat >>$CONFIG_STATUS <<_ACEOF
10837     # First, check the format of the line:
10838     cat >"\$tmp/defines.sed" <<\\CEOF
10839 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
10840 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
10841 b
10842 :def
10843 _ACEOF
10844   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10845   echo 'CEOF
10846     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10847   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10848   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10849   grep . conftest.tail >/dev/null || break
10850   rm -f conftest.defines
10851   mv conftest.tail conftest.defines
10852 done
10853 rm -f conftest.defines conftest.tail
10854
10855 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10856 cat >>$CONFIG_STATUS <<\_ACEOF
10857   if test x"$ac_file" != x-; then
10858     echo "/* $configure_input  */" >"$tmp/config.h"
10859     cat "$ac_result" >>"$tmp/config.h"
10860     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10861       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10862 echo "$as_me: $ac_file is unchanged" >&6;}
10863     else
10864       rm -f $ac_file
10865       mv "$tmp/config.h" $ac_file
10866     fi
10867   else
10868     echo "/* $configure_input  */"
10869     cat "$ac_result"
10870   fi
10871   rm -f "$tmp/out12"
10872  ;;
10873
10874
10875   esac
10876
10877 done # for ac_tag
10878
10879
10880 { (exit 0); exit 0; }
10881 _ACEOF
10882 chmod +x $CONFIG_STATUS
10883 ac_clean_files=$ac_clean_files_save
10884
10885
10886 # configure is writing to config.log, and then calls config.status.
10887 # config.status does its own redirection, appending to config.log.
10888 # Unfortunately, on DOS this fails, as config.log is still kept open
10889 # by configure, so config.status won't be able to write to it; its
10890 # output is simply discarded.  So we exec the FD to /dev/null,
10891 # effectively closing config.log, so it can be properly (re)opened and
10892 # appended to by config.status.  When coming back to configure, we
10893 # need to make the FD available again.
10894 if test "$no_create" != yes; then
10895   ac_cs_success=:
10896   ac_config_status_args=
10897   test "$silent" = yes &&
10898     ac_config_status_args="$ac_config_status_args --quiet"
10899   exec 5>/dev/null
10900   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10901   exec 5>>config.log
10902   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10903   # would make configure fail if this is the last instruction.
10904   $ac_cs_success || { (exit 1); exit 1; }
10905 fi
10906
10907
10908
10909 #
10910 # On development trees, create snapshots of config.status
10911 #
10912 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
10913     if test "x${MINGW}" = "xyes"; then
10914         echo cp config.status config.status.win32
10915         cp config.status config.status.win32
10916     else
10917         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
10918             echo cp config.status config.status.linux
10919             cp config.status config.status.linux
10920         fi
10921         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
10922             echo cp config.status config.status.debug
10923             cp config.status config.status.debug
10924         fi
10925         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
10926             echo cp config.status config.status.optimize
10927             cp config.status config.status.optimize
10928         fi
10929     fi
10930 fi