removed t1lib
[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=2007-12-09-2003
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 DGifOpen in -lungif" >&5
4197 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4198 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4199   echo $ECHO_N "(cached) $ECHO_C" >&6
4200 else
4201   ac_check_lib_save_LIBS=$LIBS
4202 LIBS="-lungif  $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 DGifOpen ();
4217 int
4218 main ()
4219 {
4220 return DGifOpen ();
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_ungif_DGifOpen=yes
4244 else
4245   echo "$as_me: failed program was:" >&5
4246 sed 's/^/| /' conftest.$ac_ext >&5
4247
4248         ac_cv_lib_ungif_DGifOpen=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_ungif_DGifOpen" >&5
4256 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4257 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4258   cat >>confdefs.h <<_ACEOF
4259 #define HAVE_LIBUNGIF 1
4260 _ACEOF
4261
4262   LIBS="-lungif $LIBS"
4263
4264 else
4265   UNGIFMISSING=true
4266 fi
4267
4268 if test "$UNGIFMISSING";then
4269     UNGIFMISSING=
4270
4271 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4272 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4273 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4274   echo $ECHO_N "(cached) $ECHO_C" >&6
4275 else
4276   ac_check_lib_save_LIBS=$LIBS
4277 LIBS="-lgif  $LIBS"
4278 cat >conftest.$ac_ext <<_ACEOF
4279 /* confdefs.h.  */
4280 _ACEOF
4281 cat confdefs.h >>conftest.$ac_ext
4282 cat >>conftest.$ac_ext <<_ACEOF
4283 /* end confdefs.h.  */
4284
4285 /* Override any GCC internal prototype to avoid an error.
4286    Use char because int might match the return type of a GCC
4287    builtin and then its argument prototype would still apply.  */
4288 #ifdef __cplusplus
4289 extern "C"
4290 #endif
4291 char DGifOpen ();
4292 int
4293 main ()
4294 {
4295 return DGifOpen ();
4296   ;
4297   return 0;
4298 }
4299 _ACEOF
4300 rm -f conftest.$ac_objext conftest$ac_exeext
4301 if { (ac_try="$ac_link"
4302 case "(($ac_try" in
4303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304   *) ac_try_echo=$ac_try;;
4305 esac
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307   (eval "$ac_link") 2>conftest.er1
4308   ac_status=$?
4309   grep -v '^ *+' conftest.er1 >conftest.err
4310   rm -f conftest.er1
4311   cat conftest.err >&5
4312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313   (exit $ac_status); } && {
4314          test -z "$ac_c_werror_flag" ||
4315          test ! -s conftest.err
4316        } && test -s conftest$ac_exeext &&
4317        $as_test_x conftest$ac_exeext; then
4318   ac_cv_lib_gif_DGifOpen=yes
4319 else
4320   echo "$as_me: failed program was:" >&5
4321 sed 's/^/| /' conftest.$ac_ext >&5
4322
4323         ac_cv_lib_gif_DGifOpen=no
4324 fi
4325
4326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4327       conftest$ac_exeext conftest.$ac_ext
4328 LIBS=$ac_check_lib_save_LIBS
4329 fi
4330 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4331 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4332 if test $ac_cv_lib_gif_DGifOpen = yes; then
4333   cat >>confdefs.h <<_ACEOF
4334 #define HAVE_LIBGIF 1
4335 _ACEOF
4336
4337   LIBS="-lgif $LIBS"
4338
4339 else
4340   UNGIFMISSING=true
4341 fi
4342
4343 fi
4344
4345
4346 { echo "$as_me:$LINENO: checking for byte order" >&5
4347 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4348 if test "$cross_compiling" = yes; then
4349   CROSSCOMPILE=1
4350 else
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 int main (int argc, char *argv[])
4359 {
4360     int i = 1;
4361     return *(char*)&i;
4362 }
4363
4364 _ACEOF
4365 rm -f conftest$ac_exeext
4366 if { (ac_try="$ac_link"
4367 case "(($ac_try" in
4368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369   *) ac_try_echo=$ac_try;;
4370 esac
4371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4372   (eval "$ac_link") 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4376   { (case "(($ac_try" in
4377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378   *) ac_try_echo=$ac_try;;
4379 esac
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381   (eval "$ac_try") 2>&5
4382   ac_status=$?
4383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4384   (exit $ac_status); }; }; then
4385   BIGENDIAN=1
4386 else
4387   echo "$as_me: program exited with status $ac_status" >&5
4388 echo "$as_me: failed program was:" >&5
4389 sed 's/^/| /' conftest.$ac_ext >&5
4390
4391 ( exit $ac_status )
4392 LITTLEENDIAN=1
4393 fi
4394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4395 fi
4396
4397
4398 export CROSSCOMPILE
4399
4400 if test "x${CROSSCOMPILE}" = "x1"; then
4401  { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4402 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4403  { echo "$as_me:$LINENO: checking target system type" >&5
4404 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4405 if test "${ac_cv_target+set}" = set; then
4406   echo $ECHO_N "(cached) $ECHO_C" >&6
4407 else
4408   if test "x$target_alias" = x; then
4409   ac_cv_target=$ac_cv_host
4410 else
4411   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4412     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4413 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4414    { (exit 1); exit 1; }; }
4415 fi
4416
4417 fi
4418 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4419 echo "${ECHO_T}$ac_cv_target" >&6; }
4420 case $ac_cv_target in
4421 *-*-*) ;;
4422 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4423 echo "$as_me: error: invalid value of canonical target" >&2;}
4424    { (exit 1); exit 1; }; };;
4425 esac
4426 target=$ac_cv_target
4427 ac_save_IFS=$IFS; IFS='-'
4428 set x $ac_cv_target
4429 shift
4430 target_cpu=$1
4431 target_vendor=$2
4432 shift; shift
4433 # Remember, the first character of IFS is used to create $*,
4434 # except with old shells:
4435 target_os=$*
4436 IFS=$ac_save_IFS
4437 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4438
4439
4440 # The aliases save the names the user supplied, while $host etc.
4441 # will get canonicalized.
4442 test -n "$target_alias" &&
4443   test "$program_prefix$program_suffix$program_transform_name" = \
4444     NONENONEs,x,x, &&
4445   program_prefix=${target_alias}-
4446  { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4447 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4448  case "${target}" in
4449   *86* | *-pc-* )
4450      LITTLEENDIAN=1
4451      ;;
4452   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4453      BIGENDIAN=1
4454      ;;
4455  esac
4456 fi
4457
4458 export LITTLEENDIAN
4459 if test "x${LITTLEENDIAN}" = "x1"; then
4460 { echo "$as_me:$LINENO: result: little endian" >&5
4461 echo "${ECHO_T}little endian" >&6; }
4462 BYTEORDERCHECKOK=1
4463 fi
4464 export BIGENDIAN
4465 if test "x${BIGENDIAN}" = "x1"; then
4466 { echo "$as_me:$LINENO: result: big endian" >&5
4467 echo "${ECHO_T}big endian" >&6; }
4468 BYTEORDERCHECKOK=1
4469 WORDS_BIGENDIAN=1
4470 export WORDS_BIGENDIAN
4471 cat >>confdefs.h <<_ACEOF
4472 #define WORDS_BIGENDIAN 1
4473 _ACEOF
4474
4475 fi
4476 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4477 { echo "$as_me:$LINENO: result: unknown" >&5
4478 echo "${ECHO_T}unknown" >&6; }
4479 echo Byte order could not determined.
4480 exit 1
4481 fi
4482
4483
4484
4485 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4486 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4487 if test "$cross_compiling" = yes; then
4488   CROSSCOMPILE=1
4489 else
4490   cat >conftest.$ac_ext <<_ACEOF
4491 /* confdefs.h.  */
4492 _ACEOF
4493 cat confdefs.h >>conftest.$ac_ext
4494 cat >>conftest.$ac_ext <<_ACEOF
4495 /* end confdefs.h.  */
4496
4497 #include "stdlib.h"
4498 int main (int argc, char*argv[])
4499 {
4500     return system("test `touch config.tmp2`");
4501 }
4502
4503 _ACEOF
4504 rm -f conftest$ac_exeext
4505 if { (ac_try="$ac_link"
4506 case "(($ac_try" in
4507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4508   *) ac_try_echo=$ac_try;;
4509 esac
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511   (eval "$ac_link") 2>&5
4512   ac_status=$?
4513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4515   { (case "(($ac_try" in
4516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4517   *) ac_try_echo=$ac_try;;
4518 esac
4519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4520   (eval "$ac_try") 2>&5
4521   ac_status=$?
4522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4523   (exit $ac_status); }; }; then
4524   OK=OK
4525 else
4526   echo "$as_me: program exited with status $ac_status" >&5
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4529
4530 fi
4531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4532 fi
4533
4534
4535
4536 if test "x${OK}" = "xOK";then
4537     test -f config.tmp2 || OK=
4538 fi
4539
4540 if test "x${CROSSCOMPILE}" = "x1";then
4541     OK=no;
4542 fi
4543 if test "x${OK}" = "xOK";then
4544 rm -f config.tmp2
4545 { echo "$as_me:$LINENO: result: yes" >&5
4546 echo "${ECHO_T}yes" >&6; }
4547 SYSTEM_BACKTICKS=1
4548 export SYSTEM_BACKTICKS
4549 cat >>confdefs.h <<_ACEOF
4550 #define SYSTEM_BACKTICKS 1
4551 _ACEOF
4552
4553 else
4554 { echo "$as_me:$LINENO: result: no" >&5
4555 echo "${ECHO_T}no" >&6; }
4556 fi
4557
4558
4559
4560 test "$program_prefix" != NONE &&
4561   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4562 # Use a double $ so make ignores it.
4563 test "$program_suffix" != NONE &&
4564   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4565 # Double any \ or $.  echo might interpret backslashes.
4566 # By default was `s,x,x', remove it if useless.
4567 cat <<\_ACEOF >conftest.sed
4568 s/[\\$]/&&/g;s/;s,x,x,$//
4569 _ACEOF
4570 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4571 rm -f conftest.sed
4572
4573
4574  ac_config_headers="$ac_config_headers config.h"
4575
4576
4577
4578
4579
4580
4581 ac_header_dirent=no
4582 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4583   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4584 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4585 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4587   echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589   cat >conftest.$ac_ext <<_ACEOF
4590 /* confdefs.h.  */
4591 _ACEOF
4592 cat confdefs.h >>conftest.$ac_ext
4593 cat >>conftest.$ac_ext <<_ACEOF
4594 /* end confdefs.h.  */
4595 #include <sys/types.h>
4596 #include <$ac_hdr>
4597
4598 int
4599 main ()
4600 {
4601 if ((DIR *) 0)
4602 return 0;
4603   ;
4604   return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.$ac_objext
4608 if { (ac_try="$ac_compile"
4609 case "(($ac_try" in
4610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611   *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614   (eval "$ac_compile") 2>conftest.er1
4615   ac_status=$?
4616   grep -v '^ *+' conftest.er1 >conftest.err
4617   rm -f conftest.er1
4618   cat conftest.err >&5
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); } && {
4621          test -z "$ac_c_werror_flag" ||
4622          test ! -s conftest.err
4623        } && test -s conftest.$ac_objext; then
4624   eval "$as_ac_Header=yes"
4625 else
4626   echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629         eval "$as_ac_Header=no"
4630 fi
4631
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 fi
4634 ac_res=`eval echo '${'$as_ac_Header'}'`
4635                { echo "$as_me:$LINENO: result: $ac_res" >&5
4636 echo "${ECHO_T}$ac_res" >&6; }
4637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4638   cat >>confdefs.h <<_ACEOF
4639 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4640 _ACEOF
4641
4642 ac_header_dirent=$ac_hdr; break
4643 fi
4644
4645 done
4646 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4647 if test $ac_header_dirent = dirent.h; then
4648   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4649 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4650 if test "${ac_cv_search_opendir+set}" = set; then
4651   echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653   ac_func_search_save_LIBS=$LIBS
4654 cat >conftest.$ac_ext <<_ACEOF
4655 /* confdefs.h.  */
4656 _ACEOF
4657 cat confdefs.h >>conftest.$ac_ext
4658 cat >>conftest.$ac_ext <<_ACEOF
4659 /* end confdefs.h.  */
4660
4661 /* Override any GCC internal prototype to avoid an error.
4662    Use char because int might match the return type of a GCC
4663    builtin and then its argument prototype would still apply.  */
4664 #ifdef __cplusplus
4665 extern "C"
4666 #endif
4667 char opendir ();
4668 int
4669 main ()
4670 {
4671 return opendir ();
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 for ac_lib in '' dir; do
4677   if test -z "$ac_lib"; then
4678     ac_res="none required"
4679   else
4680     ac_res=-l$ac_lib
4681     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4682   fi
4683   rm -f conftest.$ac_objext conftest$ac_exeext
4684 if { (ac_try="$ac_link"
4685 case "(($ac_try" in
4686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687   *) ac_try_echo=$ac_try;;
4688 esac
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690   (eval "$ac_link") 2>conftest.er1
4691   ac_status=$?
4692   grep -v '^ *+' conftest.er1 >conftest.err
4693   rm -f conftest.er1
4694   cat conftest.err >&5
4695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696   (exit $ac_status); } && {
4697          test -z "$ac_c_werror_flag" ||
4698          test ! -s conftest.err
4699        } && test -s conftest$ac_exeext &&
4700        $as_test_x conftest$ac_exeext; then
4701   ac_cv_search_opendir=$ac_res
4702 else
4703   echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4705
4706
4707 fi
4708
4709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4710       conftest$ac_exeext
4711   if test "${ac_cv_search_opendir+set}" = set; then
4712   break
4713 fi
4714 done
4715 if test "${ac_cv_search_opendir+set}" = set; then
4716   :
4717 else
4718   ac_cv_search_opendir=no
4719 fi
4720 rm conftest.$ac_ext
4721 LIBS=$ac_func_search_save_LIBS
4722 fi
4723 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4724 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4725 ac_res=$ac_cv_search_opendir
4726 if test "$ac_res" != no; then
4727   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4728
4729 fi
4730
4731 else
4732   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4733 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4734 if test "${ac_cv_search_opendir+set}" = set; then
4735   echo $ECHO_N "(cached) $ECHO_C" >&6
4736 else
4737   ac_func_search_save_LIBS=$LIBS
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h.  */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h.  */
4744
4745 /* Override any GCC internal prototype to avoid an error.
4746    Use char because int might match the return type of a GCC
4747    builtin and then its argument prototype would still apply.  */
4748 #ifdef __cplusplus
4749 extern "C"
4750 #endif
4751 char opendir ();
4752 int
4753 main ()
4754 {
4755 return opendir ();
4756   ;
4757   return 0;
4758 }
4759 _ACEOF
4760 for ac_lib in '' x; do
4761   if test -z "$ac_lib"; then
4762     ac_res="none required"
4763   else
4764     ac_res=-l$ac_lib
4765     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4766   fi
4767   rm -f conftest.$ac_objext conftest$ac_exeext
4768 if { (ac_try="$ac_link"
4769 case "(($ac_try" in
4770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771   *) ac_try_echo=$ac_try;;
4772 esac
4773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4774   (eval "$ac_link") 2>conftest.er1
4775   ac_status=$?
4776   grep -v '^ *+' conftest.er1 >conftest.err
4777   rm -f conftest.er1
4778   cat conftest.err >&5
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } && {
4781          test -z "$ac_c_werror_flag" ||
4782          test ! -s conftest.err
4783        } && test -s conftest$ac_exeext &&
4784        $as_test_x conftest$ac_exeext; then
4785   ac_cv_search_opendir=$ac_res
4786 else
4787   echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790
4791 fi
4792
4793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4794       conftest$ac_exeext
4795   if test "${ac_cv_search_opendir+set}" = set; then
4796   break
4797 fi
4798 done
4799 if test "${ac_cv_search_opendir+set}" = set; then
4800   :
4801 else
4802   ac_cv_search_opendir=no
4803 fi
4804 rm conftest.$ac_ext
4805 LIBS=$ac_func_search_save_LIBS
4806 fi
4807 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4808 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4809 ac_res=$ac_cv_search_opendir
4810 if test "$ac_res" != no; then
4811   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4812
4813 fi
4814
4815 fi
4816
4817
4818 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4819 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4820 if test "${ac_cv_path_GREP+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   # Extract the first word of "grep ggrep" to use in msg output
4824 if test -z "$GREP"; then
4825 set dummy grep ggrep; ac_prog_name=$2
4826 if test "${ac_cv_path_GREP+set}" = set; then
4827   echo $ECHO_N "(cached) $ECHO_C" >&6
4828 else
4829   ac_path_GREP_found=false
4830 # Loop through the user's path and test for each of PROGNAME-LIST
4831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4832 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4833 do
4834   IFS=$as_save_IFS
4835   test -z "$as_dir" && as_dir=.
4836   for ac_prog in grep ggrep; do
4837   for ac_exec_ext in '' $ac_executable_extensions; do
4838     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4839     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4840     # Check for GNU ac_path_GREP and select it if it is found.
4841   # Check for GNU $ac_path_GREP
4842 case `"$ac_path_GREP" --version 2>&1` in
4843 *GNU*)
4844   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4845 *)
4846   ac_count=0
4847   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4848   while :
4849   do
4850     cat "conftest.in" "conftest.in" >"conftest.tmp"
4851     mv "conftest.tmp" "conftest.in"
4852     cp "conftest.in" "conftest.nl"
4853     echo 'GREP' >> "conftest.nl"
4854     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4855     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4856     ac_count=`expr $ac_count + 1`
4857     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4858       # Best one so far, save it but keep looking for a better one
4859       ac_cv_path_GREP="$ac_path_GREP"
4860       ac_path_GREP_max=$ac_count
4861     fi
4862     # 10*(2^10) chars as input seems more than enough
4863     test $ac_count -gt 10 && break
4864   done
4865   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4866 esac
4867
4868
4869     $ac_path_GREP_found && break 3
4870   done
4871 done
4872
4873 done
4874 IFS=$as_save_IFS
4875
4876
4877 fi
4878
4879 GREP="$ac_cv_path_GREP"
4880 if test -z "$GREP"; then
4881   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4882 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4883    { (exit 1); exit 1; }; }
4884 fi
4885
4886 else
4887   ac_cv_path_GREP=$GREP
4888 fi
4889
4890
4891 fi
4892 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4893 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4894  GREP="$ac_cv_path_GREP"
4895
4896
4897 { echo "$as_me:$LINENO: checking for egrep" >&5
4898 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4899 if test "${ac_cv_path_EGREP+set}" = set; then
4900   echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4903    then ac_cv_path_EGREP="$GREP -E"
4904    else
4905      # Extract the first word of "egrep" to use in msg output
4906 if test -z "$EGREP"; then
4907 set dummy egrep; ac_prog_name=$2
4908 if test "${ac_cv_path_EGREP+set}" = set; then
4909   echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911   ac_path_EGREP_found=false
4912 # Loop through the user's path and test for each of PROGNAME-LIST
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4915 do
4916   IFS=$as_save_IFS
4917   test -z "$as_dir" && as_dir=.
4918   for ac_prog in egrep; do
4919   for ac_exec_ext in '' $ac_executable_extensions; do
4920     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4921     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4922     # Check for GNU ac_path_EGREP and select it if it is found.
4923   # Check for GNU $ac_path_EGREP
4924 case `"$ac_path_EGREP" --version 2>&1` in
4925 *GNU*)
4926   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4927 *)
4928   ac_count=0
4929   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4930   while :
4931   do
4932     cat "conftest.in" "conftest.in" >"conftest.tmp"
4933     mv "conftest.tmp" "conftest.in"
4934     cp "conftest.in" "conftest.nl"
4935     echo 'EGREP' >> "conftest.nl"
4936     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4937     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4938     ac_count=`expr $ac_count + 1`
4939     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4940       # Best one so far, save it but keep looking for a better one
4941       ac_cv_path_EGREP="$ac_path_EGREP"
4942       ac_path_EGREP_max=$ac_count
4943     fi
4944     # 10*(2^10) chars as input seems more than enough
4945     test $ac_count -gt 10 && break
4946   done
4947   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4948 esac
4949
4950
4951     $ac_path_EGREP_found && break 3
4952   done
4953 done
4954
4955 done
4956 IFS=$as_save_IFS
4957
4958
4959 fi
4960
4961 EGREP="$ac_cv_path_EGREP"
4962 if test -z "$EGREP"; then
4963   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4964 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4965    { (exit 1); exit 1; }; }
4966 fi
4967
4968 else
4969   ac_cv_path_EGREP=$EGREP
4970 fi
4971
4972
4973    fi
4974 fi
4975 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4976 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4977  EGREP="$ac_cv_path_EGREP"
4978
4979
4980 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4981 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4982 if test "${ac_cv_header_stdc+set}" = set; then
4983   echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985   cat >conftest.$ac_ext <<_ACEOF
4986 /* confdefs.h.  */
4987 _ACEOF
4988 cat confdefs.h >>conftest.$ac_ext
4989 cat >>conftest.$ac_ext <<_ACEOF
4990 /* end confdefs.h.  */
4991 #include <stdlib.h>
4992 #include <stdarg.h>
4993 #include <string.h>
4994 #include <float.h>
4995
4996 int
4997 main ()
4998 {
4999
5000   ;
5001   return 0;
5002 }
5003 _ACEOF
5004 rm -f conftest.$ac_objext
5005 if { (ac_try="$ac_compile"
5006 case "(($ac_try" in
5007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008   *) ac_try_echo=$ac_try;;
5009 esac
5010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011   (eval "$ac_compile") 2>conftest.er1
5012   ac_status=$?
5013   grep -v '^ *+' conftest.er1 >conftest.err
5014   rm -f conftest.er1
5015   cat conftest.err >&5
5016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5017   (exit $ac_status); } && {
5018          test -z "$ac_c_werror_flag" ||
5019          test ! -s conftest.err
5020        } && test -s conftest.$ac_objext; then
5021   ac_cv_header_stdc=yes
5022 else
5023   echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5025
5026         ac_cv_header_stdc=no
5027 fi
5028
5029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5030
5031 if test $ac_cv_header_stdc = yes; then
5032   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5033   cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h.  */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h.  */
5039 #include <string.h>
5040
5041 _ACEOF
5042 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5043   $EGREP "memchr" >/dev/null 2>&1; then
5044   :
5045 else
5046   ac_cv_header_stdc=no
5047 fi
5048 rm -f conftest*
5049
5050 fi
5051
5052 if test $ac_cv_header_stdc = yes; then
5053   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5054   cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 #include <stdlib.h>
5061
5062 _ACEOF
5063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5064   $EGREP "free" >/dev/null 2>&1; then
5065   :
5066 else
5067   ac_cv_header_stdc=no
5068 fi
5069 rm -f conftest*
5070
5071 fi
5072
5073 if test $ac_cv_header_stdc = yes; then
5074   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5075   if test "$cross_compiling" = yes; then
5076   :
5077 else
5078   cat >conftest.$ac_ext <<_ACEOF
5079 /* confdefs.h.  */
5080 _ACEOF
5081 cat confdefs.h >>conftest.$ac_ext
5082 cat >>conftest.$ac_ext <<_ACEOF
5083 /* end confdefs.h.  */
5084 #include <ctype.h>
5085 #include <stdlib.h>
5086 #if ((' ' & 0x0FF) == 0x020)
5087 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5088 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5089 #else
5090 # define ISLOWER(c) \
5091                    (('a' <= (c) && (c) <= 'i') \
5092                      || ('j' <= (c) && (c) <= 'r') \
5093                      || ('s' <= (c) && (c) <= 'z'))
5094 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5095 #endif
5096
5097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5098 int
5099 main ()
5100 {
5101   int i;
5102   for (i = 0; i < 256; i++)
5103     if (XOR (islower (i), ISLOWER (i))
5104         || toupper (i) != TOUPPER (i))
5105       return 2;
5106   return 0;
5107 }
5108 _ACEOF
5109 rm -f conftest$ac_exeext
5110 if { (ac_try="$ac_link"
5111 case "(($ac_try" in
5112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113   *) ac_try_echo=$ac_try;;
5114 esac
5115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5116   (eval "$ac_link") 2>&5
5117   ac_status=$?
5118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5120   { (case "(($ac_try" in
5121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5122   *) ac_try_echo=$ac_try;;
5123 esac
5124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5125   (eval "$ac_try") 2>&5
5126   ac_status=$?
5127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5128   (exit $ac_status); }; }; then
5129   :
5130 else
5131   echo "$as_me: program exited with status $ac_status" >&5
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 ( exit $ac_status )
5136 ac_cv_header_stdc=no
5137 fi
5138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5139 fi
5140
5141
5142 fi
5143 fi
5144 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5145 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5146 if test $ac_cv_header_stdc = yes; then
5147
5148 cat >>confdefs.h <<\_ACEOF
5149 #define STDC_HEADERS 1
5150 _ACEOF
5151
5152 fi
5153
5154  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5165                   inttypes.h stdint.h unistd.h
5166 do
5167 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5171   echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173   cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h.  */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h.  */
5179 $ac_includes_default
5180
5181 #include <$ac_header>
5182 _ACEOF
5183 rm -f conftest.$ac_objext
5184 if { (ac_try="$ac_compile"
5185 case "(($ac_try" in
5186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187   *) ac_try_echo=$ac_try;;
5188 esac
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190   (eval "$ac_compile") 2>conftest.er1
5191   ac_status=$?
5192   grep -v '^ *+' conftest.er1 >conftest.err
5193   rm -f conftest.er1
5194   cat conftest.err >&5
5195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196   (exit $ac_status); } && {
5197          test -z "$ac_c_werror_flag" ||
5198          test ! -s conftest.err
5199        } && test -s conftest.$ac_objext; then
5200   eval "$as_ac_Header=yes"
5201 else
5202   echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205         eval "$as_ac_Header=no"
5206 fi
5207
5208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209 fi
5210 ac_res=`eval echo '${'$as_ac_Header'}'`
5211                { echo "$as_me:$LINENO: result: $ac_res" >&5
5212 echo "${ECHO_T}$ac_res" >&6; }
5213 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5214   cat >>confdefs.h <<_ACEOF
5215 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5216 _ACEOF
5217
5218 fi
5219
5220 done
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237 for ac_header in zlib.h gif_lib.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
5238 do
5239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5240 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
5246 ac_res=`eval echo '${'$as_ac_Header'}'`
5247                { echo "$as_me:$LINENO: result: $ac_res" >&5
5248 echo "${ECHO_T}$ac_res" >&6; }
5249 else
5250   # Is the header compilable?
5251 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5252 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5253 cat >conftest.$ac_ext <<_ACEOF
5254 /* confdefs.h.  */
5255 _ACEOF
5256 cat confdefs.h >>conftest.$ac_ext
5257 cat >>conftest.$ac_ext <<_ACEOF
5258 /* end confdefs.h.  */
5259 $ac_includes_default
5260 #include <$ac_header>
5261 _ACEOF
5262 rm -f conftest.$ac_objext
5263 if { (ac_try="$ac_compile"
5264 case "(($ac_try" in
5265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5266   *) ac_try_echo=$ac_try;;
5267 esac
5268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5269   (eval "$ac_compile") 2>conftest.er1
5270   ac_status=$?
5271   grep -v '^ *+' conftest.er1 >conftest.err
5272   rm -f conftest.er1
5273   cat conftest.err >&5
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); } && {
5276          test -z "$ac_c_werror_flag" ||
5277          test ! -s conftest.err
5278        } && test -s conftest.$ac_objext; then
5279   ac_header_compiler=yes
5280 else
5281   echo "$as_me: failed program was:" >&5
5282 sed 's/^/| /' conftest.$ac_ext >&5
5283
5284         ac_header_compiler=no
5285 fi
5286
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5288 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5289 echo "${ECHO_T}$ac_header_compiler" >&6; }
5290
5291 # Is the header present?
5292 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5293 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5294 cat >conftest.$ac_ext <<_ACEOF
5295 /* confdefs.h.  */
5296 _ACEOF
5297 cat confdefs.h >>conftest.$ac_ext
5298 cat >>conftest.$ac_ext <<_ACEOF
5299 /* end confdefs.h.  */
5300 #include <$ac_header>
5301 _ACEOF
5302 if { (ac_try="$ac_cpp conftest.$ac_ext"
5303 case "(($ac_try" in
5304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305   *) ac_try_echo=$ac_try;;
5306 esac
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5309   ac_status=$?
5310   grep -v '^ *+' conftest.er1 >conftest.err
5311   rm -f conftest.er1
5312   cat conftest.err >&5
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); } >/dev/null && {
5315          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5316          test ! -s conftest.err
5317        }; then
5318   ac_header_preproc=yes
5319 else
5320   echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.$ac_ext >&5
5322
5323   ac_header_preproc=no
5324 fi
5325
5326 rm -f conftest.err conftest.$ac_ext
5327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5328 echo "${ECHO_T}$ac_header_preproc" >&6; }
5329
5330 # So?  What about this header?
5331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5332   yes:no: )
5333     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5335     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5337     ac_header_preproc=yes
5338     ;;
5339   no:yes:* )
5340     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5342     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5343 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5344     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5346     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5347 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5350     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5352
5353     ;;
5354 esac
5355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5358   echo $ECHO_N "(cached) $ECHO_C" >&6
5359 else
5360   eval "$as_ac_Header=\$ac_header_preproc"
5361 fi
5362 ac_res=`eval echo '${'$as_ac_Header'}'`
5363                { echo "$as_me:$LINENO: result: $ac_res" >&5
5364 echo "${ECHO_T}$ac_res" >&6; }
5365
5366 fi
5367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5368   cat >>confdefs.h <<_ACEOF
5369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5370 _ACEOF
5371
5372 fi
5373
5374 done
5375
5376
5377 cat >>confdefs.h <<_ACEOF
5378 #define PACKAGE "$PACKAGE"
5379 _ACEOF
5380
5381 cat >>confdefs.h <<_ACEOF
5382 #define VERSION "$VERSION"
5383 _ACEOF
5384
5385
5386
5387
5388
5389
5390
5391  { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5392 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5393 if test "${ac_cv_c_const+set}" = set; then
5394   echo $ECHO_N "(cached) $ECHO_C" >&6
5395 else
5396   cat >conftest.$ac_ext <<_ACEOF
5397 /* confdefs.h.  */
5398 _ACEOF
5399 cat confdefs.h >>conftest.$ac_ext
5400 cat >>conftest.$ac_ext <<_ACEOF
5401 /* end confdefs.h.  */
5402
5403 int
5404 main ()
5405 {
5406 /* FIXME: Include the comments suggested by Paul. */
5407 #ifndef __cplusplus
5408   /* Ultrix mips cc rejects this.  */
5409   typedef int charset[2];
5410   const charset cs;
5411   /* SunOS 4.1.1 cc rejects this.  */
5412   char const *const *pcpcc;
5413   char **ppc;
5414   /* NEC SVR4.0.2 mips cc rejects this.  */
5415   struct point {int x, y;};
5416   static struct point const zero = {0,0};
5417   /* AIX XL C 1.02.0.0 rejects this.
5418      It does not let you subtract one const X* pointer from another in
5419      an arm of an if-expression whose if-part is not a constant
5420      expression */
5421   const char *g = "string";
5422   pcpcc = &g + (g ? g-g : 0);
5423   /* HPUX 7.0 cc rejects these. */
5424   ++pcpcc;
5425   ppc = (char**) pcpcc;
5426   pcpcc = (char const *const *) ppc;
5427   { /* SCO 3.2v4 cc rejects this.  */
5428     char *t;
5429     char const *s = 0 ? (char *) 0 : (char const *) 0;
5430
5431     *t++ = 0;
5432     if (s) return 0;
5433   }
5434   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5435     int x[] = {25, 17};
5436     const int *foo = &x[0];
5437     ++foo;
5438   }
5439   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5440     typedef const int *iptr;
5441     iptr p = 0;
5442     ++p;
5443   }
5444   { /* AIX XL C 1.02.0.0 rejects this saying
5445        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5446     struct s { int j; const int *ap[3]; };
5447     struct s *b; b->j = 5;
5448   }
5449   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5450     const int foo = 10;
5451     if (!foo) return 0;
5452   }
5453   return !cs[0] && !zero.x;
5454 #endif
5455
5456   ;
5457   return 0;
5458 }
5459 _ACEOF
5460 rm -f conftest.$ac_objext
5461 if { (ac_try="$ac_compile"
5462 case "(($ac_try" in
5463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464   *) ac_try_echo=$ac_try;;
5465 esac
5466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5467   (eval "$ac_compile") 2>conftest.er1
5468   ac_status=$?
5469   grep -v '^ *+' conftest.er1 >conftest.err
5470   rm -f conftest.er1
5471   cat conftest.err >&5
5472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473   (exit $ac_status); } && {
5474          test -z "$ac_c_werror_flag" ||
5475          test ! -s conftest.err
5476        } && test -s conftest.$ac_objext; then
5477   ac_cv_c_const=yes
5478 else
5479   echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5481
5482         ac_cv_c_const=no
5483 fi
5484
5485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5486 fi
5487 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5488 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5489 if test $ac_cv_c_const = no; then
5490
5491 cat >>confdefs.h <<\_ACEOF
5492 #define const
5493 _ACEOF
5494
5495 fi
5496
5497  { echo "$as_me:$LINENO: checking for inline" >&5
5498 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5499 if test "${ac_cv_c_inline+set}" = set; then
5500   echo $ECHO_N "(cached) $ECHO_C" >&6
5501 else
5502   ac_cv_c_inline=no
5503 for ac_kw in inline __inline__ __inline; do
5504   cat >conftest.$ac_ext <<_ACEOF
5505 /* confdefs.h.  */
5506 _ACEOF
5507 cat confdefs.h >>conftest.$ac_ext
5508 cat >>conftest.$ac_ext <<_ACEOF
5509 /* end confdefs.h.  */
5510 #ifndef __cplusplus
5511 typedef int foo_t;
5512 static $ac_kw foo_t static_foo () {return 0; }
5513 $ac_kw foo_t foo () {return 0; }
5514 #endif
5515
5516 _ACEOF
5517 rm -f conftest.$ac_objext
5518 if { (ac_try="$ac_compile"
5519 case "(($ac_try" in
5520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5521   *) ac_try_echo=$ac_try;;
5522 esac
5523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5524   (eval "$ac_compile") 2>conftest.er1
5525   ac_status=$?
5526   grep -v '^ *+' conftest.er1 >conftest.err
5527   rm -f conftest.er1
5528   cat conftest.err >&5
5529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530   (exit $ac_status); } && {
5531          test -z "$ac_c_werror_flag" ||
5532          test ! -s conftest.err
5533        } && test -s conftest.$ac_objext; then
5534   ac_cv_c_inline=$ac_kw
5535 else
5536   echo "$as_me: failed program was:" >&5
5537 sed 's/^/| /' conftest.$ac_ext >&5
5538
5539
5540 fi
5541
5542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5543   test "$ac_cv_c_inline" != no && break
5544 done
5545
5546 fi
5547 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5548 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5549
5550
5551 case $ac_cv_c_inline in
5552   inline | yes) ;;
5553   *)
5554     case $ac_cv_c_inline in
5555       no) ac_val=;;
5556       *) ac_val=$ac_cv_c_inline;;
5557     esac
5558     cat >>confdefs.h <<_ACEOF
5559 #ifndef __cplusplus
5560 #define inline $ac_val
5561 #endif
5562 _ACEOF
5563     ;;
5564 esac
5565
5566  { echo "$as_me:$LINENO: checking for off_t" >&5
5567 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5568 if test "${ac_cv_type_off_t+set}" = set; then
5569   echo $ECHO_N "(cached) $ECHO_C" >&6
5570 else
5571   cat >conftest.$ac_ext <<_ACEOF
5572 /* confdefs.h.  */
5573 _ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h.  */
5577 $ac_includes_default
5578 typedef off_t ac__type_new_;
5579 int
5580 main ()
5581 {
5582 if ((ac__type_new_ *) 0)
5583   return 0;
5584 if (sizeof (ac__type_new_))
5585   return 0;
5586   ;
5587   return 0;
5588 }
5589 _ACEOF
5590 rm -f conftest.$ac_objext
5591 if { (ac_try="$ac_compile"
5592 case "(($ac_try" in
5593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5594   *) ac_try_echo=$ac_try;;
5595 esac
5596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5597   (eval "$ac_compile") 2>conftest.er1
5598   ac_status=$?
5599   grep -v '^ *+' conftest.er1 >conftest.err
5600   rm -f conftest.er1
5601   cat conftest.err >&5
5602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5603   (exit $ac_status); } && {
5604          test -z "$ac_c_werror_flag" ||
5605          test ! -s conftest.err
5606        } && test -s conftest.$ac_objext; then
5607   ac_cv_type_off_t=yes
5608 else
5609   echo "$as_me: failed program was:" >&5
5610 sed 's/^/| /' conftest.$ac_ext >&5
5611
5612         ac_cv_type_off_t=no
5613 fi
5614
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 fi
5617 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5618 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5619 if test $ac_cv_type_off_t = yes; then
5620   :
5621 else
5622
5623 cat >>confdefs.h <<_ACEOF
5624 #define off_t long int
5625 _ACEOF
5626
5627 fi
5628
5629  { echo "$as_me:$LINENO: checking for size_t" >&5
5630 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5631 if test "${ac_cv_type_size_t+set}" = set; then
5632   echo $ECHO_N "(cached) $ECHO_C" >&6
5633 else
5634   cat >conftest.$ac_ext <<_ACEOF
5635 /* confdefs.h.  */
5636 _ACEOF
5637 cat confdefs.h >>conftest.$ac_ext
5638 cat >>conftest.$ac_ext <<_ACEOF
5639 /* end confdefs.h.  */
5640 $ac_includes_default
5641 typedef size_t ac__type_new_;
5642 int
5643 main ()
5644 {
5645 if ((ac__type_new_ *) 0)
5646   return 0;
5647 if (sizeof (ac__type_new_))
5648   return 0;
5649   ;
5650   return 0;
5651 }
5652 _ACEOF
5653 rm -f conftest.$ac_objext
5654 if { (ac_try="$ac_compile"
5655 case "(($ac_try" in
5656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657   *) ac_try_echo=$ac_try;;
5658 esac
5659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5660   (eval "$ac_compile") 2>conftest.er1
5661   ac_status=$?
5662   grep -v '^ *+' conftest.er1 >conftest.err
5663   rm -f conftest.er1
5664   cat conftest.err >&5
5665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5666   (exit $ac_status); } && {
5667          test -z "$ac_c_werror_flag" ||
5668          test ! -s conftest.err
5669        } && test -s conftest.$ac_objext; then
5670   ac_cv_type_size_t=yes
5671 else
5672   echo "$as_me: failed program was:" >&5
5673 sed 's/^/| /' conftest.$ac_ext >&5
5674
5675         ac_cv_type_size_t=no
5676 fi
5677
5678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5679 fi
5680 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5681 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5682 if test $ac_cv_type_size_t = yes; then
5683   :
5684 else
5685
5686 cat >>confdefs.h <<_ACEOF
5687 #define size_t unsigned int
5688 _ACEOF
5689
5690 fi
5691
5692  { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5693 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5694 if test "${ac_cv_struct_tm+set}" = set; then
5695   echo $ECHO_N "(cached) $ECHO_C" >&6
5696 else
5697   cat >conftest.$ac_ext <<_ACEOF
5698 /* confdefs.h.  */
5699 _ACEOF
5700 cat confdefs.h >>conftest.$ac_ext
5701 cat >>conftest.$ac_ext <<_ACEOF
5702 /* end confdefs.h.  */
5703 #include <sys/types.h>
5704 #include <time.h>
5705
5706 int
5707 main ()
5708 {
5709 struct tm tm;
5710                                      int *p = &tm.tm_sec;
5711                                      return !p;
5712   ;
5713   return 0;
5714 }
5715 _ACEOF
5716 rm -f conftest.$ac_objext
5717 if { (ac_try="$ac_compile"
5718 case "(($ac_try" in
5719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720   *) ac_try_echo=$ac_try;;
5721 esac
5722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5723   (eval "$ac_compile") 2>conftest.er1
5724   ac_status=$?
5725   grep -v '^ *+' conftest.er1 >conftest.err
5726   rm -f conftest.er1
5727   cat conftest.err >&5
5728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729   (exit $ac_status); } && {
5730          test -z "$ac_c_werror_flag" ||
5731          test ! -s conftest.err
5732        } && test -s conftest.$ac_objext; then
5733   ac_cv_struct_tm=time.h
5734 else
5735   echo "$as_me: failed program was:" >&5
5736 sed 's/^/| /' conftest.$ac_ext >&5
5737
5738         ac_cv_struct_tm=sys/time.h
5739 fi
5740
5741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 fi
5743 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5744 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5745 if test $ac_cv_struct_tm = sys/time.h; then
5746
5747 cat >>confdefs.h <<\_ACEOF
5748 #define TM_IN_SYS_TIME 1
5749 _ACEOF
5750
5751 fi
5752
5753  { echo "$as_me:$LINENO: checking for boolean" >&5
5754 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5755 if test "${ac_cv_type_boolean+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   cat >conftest.$ac_ext <<_ACEOF
5759 /* confdefs.h.  */
5760 _ACEOF
5761 cat confdefs.h >>conftest.$ac_ext
5762 cat >>conftest.$ac_ext <<_ACEOF
5763 /* end confdefs.h.  */
5764 $ac_includes_default
5765 typedef boolean ac__type_new_;
5766 int
5767 main ()
5768 {
5769 if ((ac__type_new_ *) 0)
5770   return 0;
5771 if (sizeof (ac__type_new_))
5772   return 0;
5773   ;
5774   return 0;
5775 }
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (ac_try="$ac_compile"
5779 case "(($ac_try" in
5780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781   *) ac_try_echo=$ac_try;;
5782 esac
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784   (eval "$ac_compile") 2>conftest.er1
5785   ac_status=$?
5786   grep -v '^ *+' conftest.er1 >conftest.err
5787   rm -f conftest.er1
5788   cat conftest.err >&5
5789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790   (exit $ac_status); } && {
5791          test -z "$ac_c_werror_flag" ||
5792          test ! -s conftest.err
5793        } && test -s conftest.$ac_objext; then
5794   ac_cv_type_boolean=yes
5795 else
5796   echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5798
5799         ac_cv_type_boolean=no
5800 fi
5801
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 fi
5804 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5805 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5806 if test $ac_cv_type_boolean = yes; then
5807   :
5808 else
5809
5810 cat >>confdefs.h <<_ACEOF
5811 #define boolean int
5812 _ACEOF
5813
5814 fi
5815  #needed for jpeglib
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
5827 do
5828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   cat >conftest.$ac_ext <<_ACEOF
5835 /* confdefs.h.  */
5836 _ACEOF
5837 cat confdefs.h >>conftest.$ac_ext
5838 cat >>conftest.$ac_ext <<_ACEOF
5839 /* end confdefs.h.  */
5840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5841    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5842 #define $ac_func innocuous_$ac_func
5843
5844 /* System header to define __stub macros and hopefully few prototypes,
5845     which can conflict with char $ac_func (); below.
5846     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5847     <limits.h> exists even on freestanding compilers.  */
5848
5849 #ifdef __STDC__
5850 # include <limits.h>
5851 #else
5852 # include <assert.h>
5853 #endif
5854
5855 #undef $ac_func
5856
5857 /* Override any GCC internal prototype to avoid an error.
5858    Use char because int might match the return type of a GCC
5859    builtin and then its argument prototype would still apply.  */
5860 #ifdef __cplusplus
5861 extern "C"
5862 #endif
5863 char $ac_func ();
5864 /* The GNU C library defines this for functions which it implements
5865     to always fail with ENOSYS.  Some functions are actually named
5866     something starting with __ and the normal name is an alias.  */
5867 #if defined __stub_$ac_func || defined __stub___$ac_func
5868 choke me
5869 #endif
5870
5871 int
5872 main ()
5873 {
5874 return $ac_func ();
5875   ;
5876   return 0;
5877 }
5878 _ACEOF
5879 rm -f conftest.$ac_objext conftest$ac_exeext
5880 if { (ac_try="$ac_link"
5881 case "(($ac_try" in
5882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883   *) ac_try_echo=$ac_try;;
5884 esac
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886   (eval "$ac_link") 2>conftest.er1
5887   ac_status=$?
5888   grep -v '^ *+' conftest.er1 >conftest.err
5889   rm -f conftest.er1
5890   cat conftest.err >&5
5891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); } && {
5893          test -z "$ac_c_werror_flag" ||
5894          test ! -s conftest.err
5895        } && test -s conftest$ac_exeext &&
5896        $as_test_x conftest$ac_exeext; then
5897   eval "$as_ac_var=yes"
5898 else
5899   echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5901
5902         eval "$as_ac_var=no"
5903 fi
5904
5905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5906       conftest$ac_exeext conftest.$ac_ext
5907 fi
5908 ac_res=`eval echo '${'$as_ac_var'}'`
5909                { echo "$as_me:$LINENO: result: $ac_res" >&5
5910 echo "${ECHO_T}$ac_res" >&6; }
5911 if test `eval echo '${'$as_ac_var'}'` = yes; then
5912   cat >>confdefs.h <<_ACEOF
5913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5914 _ACEOF
5915
5916 fi
5917 done
5918
5919
5920 { echo "$as_me:$LINENO: checking for signed" >&5
5921 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5922 if test "${ac_cv_type_signed+set}" = set; then
5923   echo $ECHO_N "(cached) $ECHO_C" >&6
5924 else
5925   cat >conftest.$ac_ext <<_ACEOF
5926 /* confdefs.h.  */
5927 _ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h.  */
5931 $ac_includes_default
5932 typedef signed ac__type_new_;
5933 int
5934 main ()
5935 {
5936 if ((ac__type_new_ *) 0)
5937   return 0;
5938 if (sizeof (ac__type_new_))
5939   return 0;
5940   ;
5941   return 0;
5942 }
5943 _ACEOF
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5946 case "(($ac_try" in
5947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948   *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951   (eval "$ac_compile") 2>conftest.er1
5952   ac_status=$?
5953   grep -v '^ *+' conftest.er1 >conftest.err
5954   rm -f conftest.er1
5955   cat conftest.err >&5
5956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957   (exit $ac_status); } && {
5958          test -z "$ac_c_werror_flag" ||
5959          test ! -s conftest.err
5960        } && test -s conftest.$ac_objext; then
5961   ac_cv_type_signed=yes
5962 else
5963   echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.$ac_ext >&5
5965
5966         ac_cv_type_signed=no
5967 fi
5968
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5970 fi
5971 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
5972 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
5973
5974 # The cast to long int works around a bug in the HP C Compiler
5975 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5976 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5977 # This bug is HP SR number 8606223364.
5978 { echo "$as_me:$LINENO: checking size of signed" >&5
5979 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
5980 if test "${ac_cv_sizeof_signed+set}" = set; then
5981   echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983   if test "$cross_compiling" = yes; then
5984   # Depending upon the size, compute the lo and hi bounds.
5985 cat >conftest.$ac_ext <<_ACEOF
5986 /* confdefs.h.  */
5987 _ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h.  */
5991 $ac_includes_default
5992    typedef signed ac__type_sizeof_;
5993 int
5994 main ()
5995 {
5996 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
5997 test_array [0] = 0
5998
5999   ;
6000   return 0;
6001 }
6002 _ACEOF
6003 rm -f conftest.$ac_objext
6004 if { (ac_try="$ac_compile"
6005 case "(($ac_try" in
6006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007   *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010   (eval "$ac_compile") 2>conftest.er1
6011   ac_status=$?
6012   grep -v '^ *+' conftest.er1 >conftest.err
6013   rm -f conftest.er1
6014   cat conftest.err >&5
6015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016   (exit $ac_status); } && {
6017          test -z "$ac_c_werror_flag" ||
6018          test ! -s conftest.err
6019        } && test -s conftest.$ac_objext; then
6020   ac_lo=0 ac_mid=0
6021   while :; do
6022     cat >conftest.$ac_ext <<_ACEOF
6023 /* confdefs.h.  */
6024 _ACEOF
6025 cat confdefs.h >>conftest.$ac_ext
6026 cat >>conftest.$ac_ext <<_ACEOF
6027 /* end confdefs.h.  */
6028 $ac_includes_default
6029    typedef signed ac__type_sizeof_;
6030 int
6031 main ()
6032 {
6033 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6034 test_array [0] = 0
6035
6036   ;
6037   return 0;
6038 }
6039 _ACEOF
6040 rm -f conftest.$ac_objext
6041 if { (ac_try="$ac_compile"
6042 case "(($ac_try" in
6043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044   *) ac_try_echo=$ac_try;;
6045 esac
6046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6047   (eval "$ac_compile") 2>conftest.er1
6048   ac_status=$?
6049   grep -v '^ *+' conftest.er1 >conftest.err
6050   rm -f conftest.er1
6051   cat conftest.err >&5
6052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6053   (exit $ac_status); } && {
6054          test -z "$ac_c_werror_flag" ||
6055          test ! -s conftest.err
6056        } && test -s conftest.$ac_objext; then
6057   ac_hi=$ac_mid; break
6058 else
6059   echo "$as_me: failed program was:" >&5
6060 sed 's/^/| /' conftest.$ac_ext >&5
6061
6062         ac_lo=`expr $ac_mid + 1`
6063                         if test $ac_lo -le $ac_mid; then
6064                           ac_lo= ac_hi=
6065                           break
6066                         fi
6067                         ac_mid=`expr 2 '*' $ac_mid + 1`
6068 fi
6069
6070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071   done
6072 else
6073   echo "$as_me: failed program was:" >&5
6074 sed 's/^/| /' conftest.$ac_ext >&5
6075
6076         cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h.  */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h.  */
6082 $ac_includes_default
6083    typedef signed ac__type_sizeof_;
6084 int
6085 main ()
6086 {
6087 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6088 test_array [0] = 0
6089
6090   ;
6091   return 0;
6092 }
6093 _ACEOF
6094 rm -f conftest.$ac_objext
6095 if { (ac_try="$ac_compile"
6096 case "(($ac_try" in
6097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098   *) ac_try_echo=$ac_try;;
6099 esac
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101   (eval "$ac_compile") 2>conftest.er1
6102   ac_status=$?
6103   grep -v '^ *+' conftest.er1 >conftest.err
6104   rm -f conftest.er1
6105   cat conftest.err >&5
6106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107   (exit $ac_status); } && {
6108          test -z "$ac_c_werror_flag" ||
6109          test ! -s conftest.err
6110        } && test -s conftest.$ac_objext; then
6111   ac_hi=-1 ac_mid=-1
6112   while :; do
6113     cat >conftest.$ac_ext <<_ACEOF
6114 /* confdefs.h.  */
6115 _ACEOF
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h.  */
6119 $ac_includes_default
6120    typedef signed ac__type_sizeof_;
6121 int
6122 main ()
6123 {
6124 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6125 test_array [0] = 0
6126
6127   ;
6128   return 0;
6129 }
6130 _ACEOF
6131 rm -f conftest.$ac_objext
6132 if { (ac_try="$ac_compile"
6133 case "(($ac_try" in
6134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135   *) ac_try_echo=$ac_try;;
6136 esac
6137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6138   (eval "$ac_compile") 2>conftest.er1
6139   ac_status=$?
6140   grep -v '^ *+' conftest.er1 >conftest.err
6141   rm -f conftest.er1
6142   cat conftest.err >&5
6143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); } && {
6145          test -z "$ac_c_werror_flag" ||
6146          test ! -s conftest.err
6147        } && test -s conftest.$ac_objext; then
6148   ac_lo=$ac_mid; break
6149 else
6150   echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6152
6153         ac_hi=`expr '(' $ac_mid ')' - 1`
6154                         if test $ac_mid -le $ac_hi; then
6155                           ac_lo= ac_hi=
6156                           break
6157                         fi
6158                         ac_mid=`expr 2 '*' $ac_mid`
6159 fi
6160
6161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162   done
6163 else
6164   echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6166
6167         ac_lo= ac_hi=
6168 fi
6169
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171 fi
6172
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 # Binary search between lo and hi bounds.
6175 while test "x$ac_lo" != "x$ac_hi"; do
6176   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6177   cat >conftest.$ac_ext <<_ACEOF
6178 /* confdefs.h.  */
6179 _ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h.  */
6183 $ac_includes_default
6184    typedef signed ac__type_sizeof_;
6185 int
6186 main ()
6187 {
6188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6189 test_array [0] = 0
6190
6191   ;
6192   return 0;
6193 }
6194 _ACEOF
6195 rm -f conftest.$ac_objext
6196 if { (ac_try="$ac_compile"
6197 case "(($ac_try" in
6198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199   *) ac_try_echo=$ac_try;;
6200 esac
6201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6202   (eval "$ac_compile") 2>conftest.er1
6203   ac_status=$?
6204   grep -v '^ *+' conftest.er1 >conftest.err
6205   rm -f conftest.er1
6206   cat conftest.err >&5
6207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208   (exit $ac_status); } && {
6209          test -z "$ac_c_werror_flag" ||
6210          test ! -s conftest.err
6211        } && test -s conftest.$ac_objext; then
6212   ac_hi=$ac_mid
6213 else
6214   echo "$as_me: failed program was:" >&5
6215 sed 's/^/| /' conftest.$ac_ext >&5
6216
6217         ac_lo=`expr '(' $ac_mid ')' + 1`
6218 fi
6219
6220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6221 done
6222 case $ac_lo in
6223 ?*) ac_cv_sizeof_signed=$ac_lo;;
6224 '') if test "$ac_cv_type_signed" = yes; then
6225      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6226 See \`config.log' for more details." >&5
6227 echo "$as_me: error: cannot compute sizeof (signed)
6228 See \`config.log' for more details." >&2;}
6229    { (exit 77); exit 77; }; }
6230    else
6231      ac_cv_sizeof_signed=0
6232    fi ;;
6233 esac
6234 else
6235   cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h.  */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h.  */
6241 $ac_includes_default
6242    typedef signed ac__type_sizeof_;
6243 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6244 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6245 #include <stdio.h>
6246 #include <stdlib.h>
6247 int
6248 main ()
6249 {
6250
6251   FILE *f = fopen ("conftest.val", "w");
6252   if (! f)
6253     return 1;
6254   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6255     {
6256       long int i = longval ();
6257       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6258         return 1;
6259       fprintf (f, "%ld\n", i);
6260     }
6261   else
6262     {
6263       unsigned long int i = ulongval ();
6264       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6265         return 1;
6266       fprintf (f, "%lu\n", i);
6267     }
6268   return ferror (f) || fclose (f) != 0;
6269
6270   ;
6271   return 0;
6272 }
6273 _ACEOF
6274 rm -f conftest$ac_exeext
6275 if { (ac_try="$ac_link"
6276 case "(($ac_try" in
6277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278   *) ac_try_echo=$ac_try;;
6279 esac
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281   (eval "$ac_link") 2>&5
6282   ac_status=$?
6283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6285   { (case "(($ac_try" in
6286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287   *) ac_try_echo=$ac_try;;
6288 esac
6289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290   (eval "$ac_try") 2>&5
6291   ac_status=$?
6292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293   (exit $ac_status); }; }; then
6294   ac_cv_sizeof_signed=`cat conftest.val`
6295 else
6296   echo "$as_me: program exited with status $ac_status" >&5
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 ( exit $ac_status )
6301 if test "$ac_cv_type_signed" = yes; then
6302      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6303 See \`config.log' for more details." >&5
6304 echo "$as_me: error: cannot compute sizeof (signed)
6305 See \`config.log' for more details." >&2;}
6306    { (exit 77); exit 77; }; }
6307    else
6308      ac_cv_sizeof_signed=0
6309    fi
6310 fi
6311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6312 fi
6313 rm -f conftest.val
6314 fi
6315 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
6316 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
6317
6318
6319
6320 cat >>confdefs.h <<_ACEOF
6321 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
6322 _ACEOF
6323
6324
6325 { echo "$as_me:$LINENO: checking for unsigned" >&5
6326 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
6327 if test "${ac_cv_type_unsigned+set}" = set; then
6328   echo $ECHO_N "(cached) $ECHO_C" >&6
6329 else
6330   cat >conftest.$ac_ext <<_ACEOF
6331 /* confdefs.h.  */
6332 _ACEOF
6333 cat confdefs.h >>conftest.$ac_ext
6334 cat >>conftest.$ac_ext <<_ACEOF
6335 /* end confdefs.h.  */
6336 $ac_includes_default
6337 typedef unsigned ac__type_new_;
6338 int
6339 main ()
6340 {
6341 if ((ac__type_new_ *) 0)
6342   return 0;
6343 if (sizeof (ac__type_new_))
6344   return 0;
6345   ;
6346   return 0;
6347 }
6348 _ACEOF
6349 rm -f conftest.$ac_objext
6350 if { (ac_try="$ac_compile"
6351 case "(($ac_try" in
6352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353   *) ac_try_echo=$ac_try;;
6354 esac
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356   (eval "$ac_compile") 2>conftest.er1
6357   ac_status=$?
6358   grep -v '^ *+' conftest.er1 >conftest.err
6359   rm -f conftest.er1
6360   cat conftest.err >&5
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); } && {
6363          test -z "$ac_c_werror_flag" ||
6364          test ! -s conftest.err
6365        } && test -s conftest.$ac_objext; then
6366   ac_cv_type_unsigned=yes
6367 else
6368   echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371         ac_cv_type_unsigned=no
6372 fi
6373
6374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375 fi
6376 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
6377 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
6378
6379 # The cast to long int works around a bug in the HP C Compiler
6380 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6381 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6382 # This bug is HP SR number 8606223364.
6383 { echo "$as_me:$LINENO: checking size of unsigned" >&5
6384 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
6385 if test "${ac_cv_sizeof_unsigned+set}" = set; then
6386   echo $ECHO_N "(cached) $ECHO_C" >&6
6387 else
6388   if test "$cross_compiling" = yes; then
6389   # Depending upon the size, compute the lo and hi bounds.
6390 cat >conftest.$ac_ext <<_ACEOF
6391 /* confdefs.h.  */
6392 _ACEOF
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h.  */
6396 $ac_includes_default
6397    typedef unsigned ac__type_sizeof_;
6398 int
6399 main ()
6400 {
6401 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6402 test_array [0] = 0
6403
6404   ;
6405   return 0;
6406 }
6407 _ACEOF
6408 rm -f conftest.$ac_objext
6409 if { (ac_try="$ac_compile"
6410 case "(($ac_try" in
6411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412   *) ac_try_echo=$ac_try;;
6413 esac
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415   (eval "$ac_compile") 2>conftest.er1
6416   ac_status=$?
6417   grep -v '^ *+' conftest.er1 >conftest.err
6418   rm -f conftest.er1
6419   cat conftest.err >&5
6420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); } && {
6422          test -z "$ac_c_werror_flag" ||
6423          test ! -s conftest.err
6424        } && test -s conftest.$ac_objext; then
6425   ac_lo=0 ac_mid=0
6426   while :; do
6427     cat >conftest.$ac_ext <<_ACEOF
6428 /* confdefs.h.  */
6429 _ACEOF
6430 cat confdefs.h >>conftest.$ac_ext
6431 cat >>conftest.$ac_ext <<_ACEOF
6432 /* end confdefs.h.  */
6433 $ac_includes_default
6434    typedef unsigned ac__type_sizeof_;
6435 int
6436 main ()
6437 {
6438 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6439 test_array [0] = 0
6440
6441   ;
6442   return 0;
6443 }
6444 _ACEOF
6445 rm -f conftest.$ac_objext
6446 if { (ac_try="$ac_compile"
6447 case "(($ac_try" in
6448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6449   *) ac_try_echo=$ac_try;;
6450 esac
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452   (eval "$ac_compile") 2>conftest.er1
6453   ac_status=$?
6454   grep -v '^ *+' conftest.er1 >conftest.err
6455   rm -f conftest.er1
6456   cat conftest.err >&5
6457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458   (exit $ac_status); } && {
6459          test -z "$ac_c_werror_flag" ||
6460          test ! -s conftest.err
6461        } && test -s conftest.$ac_objext; then
6462   ac_hi=$ac_mid; break
6463 else
6464   echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.$ac_ext >&5
6466
6467         ac_lo=`expr $ac_mid + 1`
6468                         if test $ac_lo -le $ac_mid; then
6469                           ac_lo= ac_hi=
6470                           break
6471                         fi
6472                         ac_mid=`expr 2 '*' $ac_mid + 1`
6473 fi
6474
6475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476   done
6477 else
6478   echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6480
6481         cat >conftest.$ac_ext <<_ACEOF
6482 /* confdefs.h.  */
6483 _ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h.  */
6487 $ac_includes_default
6488    typedef unsigned ac__type_sizeof_;
6489 int
6490 main ()
6491 {
6492 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6493 test_array [0] = 0
6494
6495   ;
6496   return 0;
6497 }
6498 _ACEOF
6499 rm -f conftest.$ac_objext
6500 if { (ac_try="$ac_compile"
6501 case "(($ac_try" in
6502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503   *) ac_try_echo=$ac_try;;
6504 esac
6505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6506   (eval "$ac_compile") 2>conftest.er1
6507   ac_status=$?
6508   grep -v '^ *+' conftest.er1 >conftest.err
6509   rm -f conftest.er1
6510   cat conftest.err >&5
6511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512   (exit $ac_status); } && {
6513          test -z "$ac_c_werror_flag" ||
6514          test ! -s conftest.err
6515        } && test -s conftest.$ac_objext; then
6516   ac_hi=-1 ac_mid=-1
6517   while :; do
6518     cat >conftest.$ac_ext <<_ACEOF
6519 /* confdefs.h.  */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h.  */
6524 $ac_includes_default
6525    typedef unsigned ac__type_sizeof_;
6526 int
6527 main ()
6528 {
6529 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6530 test_array [0] = 0
6531
6532   ;
6533   return 0;
6534 }
6535 _ACEOF
6536 rm -f conftest.$ac_objext
6537 if { (ac_try="$ac_compile"
6538 case "(($ac_try" in
6539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6540   *) ac_try_echo=$ac_try;;
6541 esac
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543   (eval "$ac_compile") 2>conftest.er1
6544   ac_status=$?
6545   grep -v '^ *+' conftest.er1 >conftest.err
6546   rm -f conftest.er1
6547   cat conftest.err >&5
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); } && {
6550          test -z "$ac_c_werror_flag" ||
6551          test ! -s conftest.err
6552        } && test -s conftest.$ac_objext; then
6553   ac_lo=$ac_mid; break
6554 else
6555   echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6557
6558         ac_hi=`expr '(' $ac_mid ')' - 1`
6559                         if test $ac_mid -le $ac_hi; then
6560                           ac_lo= ac_hi=
6561                           break
6562                         fi
6563                         ac_mid=`expr 2 '*' $ac_mid`
6564 fi
6565
6566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567   done
6568 else
6569   echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6571
6572         ac_lo= ac_hi=
6573 fi
6574
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 fi
6577
6578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 # Binary search between lo and hi bounds.
6580 while test "x$ac_lo" != "x$ac_hi"; do
6581   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6582   cat >conftest.$ac_ext <<_ACEOF
6583 /* confdefs.h.  */
6584 _ACEOF
6585 cat confdefs.h >>conftest.$ac_ext
6586 cat >>conftest.$ac_ext <<_ACEOF
6587 /* end confdefs.h.  */
6588 $ac_includes_default
6589    typedef unsigned ac__type_sizeof_;
6590 int
6591 main ()
6592 {
6593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6594 test_array [0] = 0
6595
6596   ;
6597   return 0;
6598 }
6599 _ACEOF
6600 rm -f conftest.$ac_objext
6601 if { (ac_try="$ac_compile"
6602 case "(($ac_try" in
6603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604   *) ac_try_echo=$ac_try;;
6605 esac
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607   (eval "$ac_compile") 2>conftest.er1
6608   ac_status=$?
6609   grep -v '^ *+' conftest.er1 >conftest.err
6610   rm -f conftest.er1
6611   cat conftest.err >&5
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); } && {
6614          test -z "$ac_c_werror_flag" ||
6615          test ! -s conftest.err
6616        } && test -s conftest.$ac_objext; then
6617   ac_hi=$ac_mid
6618 else
6619   echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622         ac_lo=`expr '(' $ac_mid ')' + 1`
6623 fi
6624
6625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6626 done
6627 case $ac_lo in
6628 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
6629 '') if test "$ac_cv_type_unsigned" = yes; then
6630      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6631 See \`config.log' for more details." >&5
6632 echo "$as_me: error: cannot compute sizeof (unsigned)
6633 See \`config.log' for more details." >&2;}
6634    { (exit 77); exit 77; }; }
6635    else
6636      ac_cv_sizeof_unsigned=0
6637    fi ;;
6638 esac
6639 else
6640   cat >conftest.$ac_ext <<_ACEOF
6641 /* confdefs.h.  */
6642 _ACEOF
6643 cat confdefs.h >>conftest.$ac_ext
6644 cat >>conftest.$ac_ext <<_ACEOF
6645 /* end confdefs.h.  */
6646 $ac_includes_default
6647    typedef unsigned ac__type_sizeof_;
6648 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6649 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6650 #include <stdio.h>
6651 #include <stdlib.h>
6652 int
6653 main ()
6654 {
6655
6656   FILE *f = fopen ("conftest.val", "w");
6657   if (! f)
6658     return 1;
6659   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6660     {
6661       long int i = longval ();
6662       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6663         return 1;
6664       fprintf (f, "%ld\n", i);
6665     }
6666   else
6667     {
6668       unsigned long int i = ulongval ();
6669       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6670         return 1;
6671       fprintf (f, "%lu\n", i);
6672     }
6673   return ferror (f) || fclose (f) != 0;
6674
6675   ;
6676   return 0;
6677 }
6678 _ACEOF
6679 rm -f conftest$ac_exeext
6680 if { (ac_try="$ac_link"
6681 case "(($ac_try" in
6682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683   *) ac_try_echo=$ac_try;;
6684 esac
6685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6686   (eval "$ac_link") 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6690   { (case "(($ac_try" in
6691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692   *) ac_try_echo=$ac_try;;
6693 esac
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695   (eval "$ac_try") 2>&5
6696   ac_status=$?
6697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6698   (exit $ac_status); }; }; then
6699   ac_cv_sizeof_unsigned=`cat conftest.val`
6700 else
6701   echo "$as_me: program exited with status $ac_status" >&5
6702 echo "$as_me: failed program was:" >&5
6703 sed 's/^/| /' conftest.$ac_ext >&5
6704
6705 ( exit $ac_status )
6706 if test "$ac_cv_type_unsigned" = yes; then
6707      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6708 See \`config.log' for more details." >&5
6709 echo "$as_me: error: cannot compute sizeof (unsigned)
6710 See \`config.log' for more details." >&2;}
6711    { (exit 77); exit 77; }; }
6712    else
6713      ac_cv_sizeof_unsigned=0
6714    fi
6715 fi
6716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6717 fi
6718 rm -f conftest.val
6719 fi
6720 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
6721 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
6722
6723
6724
6725 cat >>confdefs.h <<_ACEOF
6726 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
6727 _ACEOF
6728
6729
6730 { echo "$as_me:$LINENO: checking for signed long" >&5
6731 echo $ECHO_N "checking for signed long... $ECHO_C" >&6; }
6732 if test "${ac_cv_type_signed_long+set}" = set; then
6733   echo $ECHO_N "(cached) $ECHO_C" >&6
6734 else
6735   cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h.  */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h.  */
6741 $ac_includes_default
6742 typedef signed long ac__type_new_;
6743 int
6744 main ()
6745 {
6746 if ((ac__type_new_ *) 0)
6747   return 0;
6748 if (sizeof (ac__type_new_))
6749   return 0;
6750   ;
6751   return 0;
6752 }
6753 _ACEOF
6754 rm -f conftest.$ac_objext
6755 if { (ac_try="$ac_compile"
6756 case "(($ac_try" in
6757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6758   *) ac_try_echo=$ac_try;;
6759 esac
6760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6761   (eval "$ac_compile") 2>conftest.er1
6762   ac_status=$?
6763   grep -v '^ *+' conftest.er1 >conftest.err
6764   rm -f conftest.er1
6765   cat conftest.err >&5
6766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); } && {
6768          test -z "$ac_c_werror_flag" ||
6769          test ! -s conftest.err
6770        } && test -s conftest.$ac_objext; then
6771   ac_cv_type_signed_long=yes
6772 else
6773   echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6775
6776         ac_cv_type_signed_long=no
6777 fi
6778
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 fi
6781 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
6782 echo "${ECHO_T}$ac_cv_type_signed_long" >&6; }
6783
6784 # The cast to long int works around a bug in the HP C Compiler
6785 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6786 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6787 # This bug is HP SR number 8606223364.
6788 { echo "$as_me:$LINENO: checking size of signed long" >&5
6789 echo $ECHO_N "checking size of signed long... $ECHO_C" >&6; }
6790 if test "${ac_cv_sizeof_signed_long+set}" = set; then
6791   echo $ECHO_N "(cached) $ECHO_C" >&6
6792 else
6793   if test "$cross_compiling" = yes; then
6794   # Depending upon the size, compute the lo and hi bounds.
6795 cat >conftest.$ac_ext <<_ACEOF
6796 /* confdefs.h.  */
6797 _ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h.  */
6801 $ac_includes_default
6802    typedef signed long ac__type_sizeof_;
6803 int
6804 main ()
6805 {
6806 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6807 test_array [0] = 0
6808
6809   ;
6810   return 0;
6811 }
6812 _ACEOF
6813 rm -f conftest.$ac_objext
6814 if { (ac_try="$ac_compile"
6815 case "(($ac_try" in
6816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817   *) ac_try_echo=$ac_try;;
6818 esac
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820   (eval "$ac_compile") 2>conftest.er1
6821   ac_status=$?
6822   grep -v '^ *+' conftest.er1 >conftest.err
6823   rm -f conftest.er1
6824   cat conftest.err >&5
6825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826   (exit $ac_status); } && {
6827          test -z "$ac_c_werror_flag" ||
6828          test ! -s conftest.err
6829        } && test -s conftest.$ac_objext; then
6830   ac_lo=0 ac_mid=0
6831   while :; do
6832     cat >conftest.$ac_ext <<_ACEOF
6833 /* confdefs.h.  */
6834 _ACEOF
6835 cat confdefs.h >>conftest.$ac_ext
6836 cat >>conftest.$ac_ext <<_ACEOF
6837 /* end confdefs.h.  */
6838 $ac_includes_default
6839    typedef signed long ac__type_sizeof_;
6840 int
6841 main ()
6842 {
6843 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6844 test_array [0] = 0
6845
6846   ;
6847   return 0;
6848 }
6849 _ACEOF
6850 rm -f conftest.$ac_objext
6851 if { (ac_try="$ac_compile"
6852 case "(($ac_try" in
6853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854   *) ac_try_echo=$ac_try;;
6855 esac
6856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857   (eval "$ac_compile") 2>conftest.er1
6858   ac_status=$?
6859   grep -v '^ *+' conftest.er1 >conftest.err
6860   rm -f conftest.er1
6861   cat conftest.err >&5
6862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6863   (exit $ac_status); } && {
6864          test -z "$ac_c_werror_flag" ||
6865          test ! -s conftest.err
6866        } && test -s conftest.$ac_objext; then
6867   ac_hi=$ac_mid; break
6868 else
6869   echo "$as_me: failed program was:" >&5
6870 sed 's/^/| /' conftest.$ac_ext >&5
6871
6872         ac_lo=`expr $ac_mid + 1`
6873                         if test $ac_lo -le $ac_mid; then
6874                           ac_lo= ac_hi=
6875                           break
6876                         fi
6877                         ac_mid=`expr 2 '*' $ac_mid + 1`
6878 fi
6879
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881   done
6882 else
6883   echo "$as_me: failed program was:" >&5
6884 sed 's/^/| /' conftest.$ac_ext >&5
6885
6886         cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h.  */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h.  */
6892 $ac_includes_default
6893    typedef signed long ac__type_sizeof_;
6894 int
6895 main ()
6896 {
6897 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6898 test_array [0] = 0
6899
6900   ;
6901   return 0;
6902 }
6903 _ACEOF
6904 rm -f conftest.$ac_objext
6905 if { (ac_try="$ac_compile"
6906 case "(($ac_try" in
6907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908   *) ac_try_echo=$ac_try;;
6909 esac
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911   (eval "$ac_compile") 2>conftest.er1
6912   ac_status=$?
6913   grep -v '^ *+' conftest.er1 >conftest.err
6914   rm -f conftest.er1
6915   cat conftest.err >&5
6916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917   (exit $ac_status); } && {
6918          test -z "$ac_c_werror_flag" ||
6919          test ! -s conftest.err
6920        } && test -s conftest.$ac_objext; then
6921   ac_hi=-1 ac_mid=-1
6922   while :; do
6923     cat >conftest.$ac_ext <<_ACEOF
6924 /* confdefs.h.  */
6925 _ACEOF
6926 cat confdefs.h >>conftest.$ac_ext
6927 cat >>conftest.$ac_ext <<_ACEOF
6928 /* end confdefs.h.  */
6929 $ac_includes_default
6930    typedef signed long ac__type_sizeof_;
6931 int
6932 main ()
6933 {
6934 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6935 test_array [0] = 0
6936
6937   ;
6938   return 0;
6939 }
6940 _ACEOF
6941 rm -f conftest.$ac_objext
6942 if { (ac_try="$ac_compile"
6943 case "(($ac_try" in
6944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6945   *) ac_try_echo=$ac_try;;
6946 esac
6947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6948   (eval "$ac_compile") 2>conftest.er1
6949   ac_status=$?
6950   grep -v '^ *+' conftest.er1 >conftest.err
6951   rm -f conftest.er1
6952   cat conftest.err >&5
6953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954   (exit $ac_status); } && {
6955          test -z "$ac_c_werror_flag" ||
6956          test ! -s conftest.err
6957        } && test -s conftest.$ac_objext; then
6958   ac_lo=$ac_mid; break
6959 else
6960   echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6962
6963         ac_hi=`expr '(' $ac_mid ')' - 1`
6964                         if test $ac_mid -le $ac_hi; then
6965                           ac_lo= ac_hi=
6966                           break
6967                         fi
6968                         ac_mid=`expr 2 '*' $ac_mid`
6969 fi
6970
6971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972   done
6973 else
6974   echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977         ac_lo= ac_hi=
6978 fi
6979
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6981 fi
6982
6983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6984 # Binary search between lo and hi bounds.
6985 while test "x$ac_lo" != "x$ac_hi"; do
6986   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6987   cat >conftest.$ac_ext <<_ACEOF
6988 /* confdefs.h.  */
6989 _ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h.  */
6993 $ac_includes_default
6994    typedef signed long ac__type_sizeof_;
6995 int
6996 main ()
6997 {
6998 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6999 test_array [0] = 0
7000
7001   ;
7002   return 0;
7003 }
7004 _ACEOF
7005 rm -f conftest.$ac_objext
7006 if { (ac_try="$ac_compile"
7007 case "(($ac_try" in
7008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7009   *) ac_try_echo=$ac_try;;
7010 esac
7011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7012   (eval "$ac_compile") 2>conftest.er1
7013   ac_status=$?
7014   grep -v '^ *+' conftest.er1 >conftest.err
7015   rm -f conftest.er1
7016   cat conftest.err >&5
7017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018   (exit $ac_status); } && {
7019          test -z "$ac_c_werror_flag" ||
7020          test ! -s conftest.err
7021        } && test -s conftest.$ac_objext; then
7022   ac_hi=$ac_mid
7023 else
7024   echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7026
7027         ac_lo=`expr '(' $ac_mid ')' + 1`
7028 fi
7029
7030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7031 done
7032 case $ac_lo in
7033 ?*) ac_cv_sizeof_signed_long=$ac_lo;;
7034 '') if test "$ac_cv_type_signed_long" = yes; then
7035      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7036 See \`config.log' for more details." >&5
7037 echo "$as_me: error: cannot compute sizeof (signed long)
7038 See \`config.log' for more details." >&2;}
7039    { (exit 77); exit 77; }; }
7040    else
7041      ac_cv_sizeof_signed_long=0
7042    fi ;;
7043 esac
7044 else
7045   cat >conftest.$ac_ext <<_ACEOF
7046 /* confdefs.h.  */
7047 _ACEOF
7048 cat confdefs.h >>conftest.$ac_ext
7049 cat >>conftest.$ac_ext <<_ACEOF
7050 /* end confdefs.h.  */
7051 $ac_includes_default
7052    typedef signed long ac__type_sizeof_;
7053 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7054 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7055 #include <stdio.h>
7056 #include <stdlib.h>
7057 int
7058 main ()
7059 {
7060
7061   FILE *f = fopen ("conftest.val", "w");
7062   if (! f)
7063     return 1;
7064   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7065     {
7066       long int i = longval ();
7067       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7068         return 1;
7069       fprintf (f, "%ld\n", i);
7070     }
7071   else
7072     {
7073       unsigned long int i = ulongval ();
7074       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7075         return 1;
7076       fprintf (f, "%lu\n", i);
7077     }
7078   return ferror (f) || fclose (f) != 0;
7079
7080   ;
7081   return 0;
7082 }
7083 _ACEOF
7084 rm -f conftest$ac_exeext
7085 if { (ac_try="$ac_link"
7086 case "(($ac_try" in
7087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088   *) ac_try_echo=$ac_try;;
7089 esac
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091   (eval "$ac_link") 2>&5
7092   ac_status=$?
7093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7095   { (case "(($ac_try" in
7096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7097   *) ac_try_echo=$ac_try;;
7098 esac
7099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7100   (eval "$ac_try") 2>&5
7101   ac_status=$?
7102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7103   (exit $ac_status); }; }; then
7104   ac_cv_sizeof_signed_long=`cat conftest.val`
7105 else
7106   echo "$as_me: program exited with status $ac_status" >&5
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7109
7110 ( exit $ac_status )
7111 if test "$ac_cv_type_signed_long" = yes; then
7112      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7113 See \`config.log' for more details." >&5
7114 echo "$as_me: error: cannot compute sizeof (signed long)
7115 See \`config.log' for more details." >&2;}
7116    { (exit 77); exit 77; }; }
7117    else
7118      ac_cv_sizeof_signed_long=0
7119    fi
7120 fi
7121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7122 fi
7123 rm -f conftest.val
7124 fi
7125 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
7126 echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6; }
7127
7128
7129
7130 cat >>confdefs.h <<_ACEOF
7131 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
7132 _ACEOF
7133
7134
7135 { echo "$as_me:$LINENO: checking for unsigned long" >&5
7136 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7137 if test "${ac_cv_type_unsigned_long+set}" = set; then
7138   echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140   cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h.  */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h.  */
7146 $ac_includes_default
7147 typedef unsigned long ac__type_new_;
7148 int
7149 main ()
7150 {
7151 if ((ac__type_new_ *) 0)
7152   return 0;
7153 if (sizeof (ac__type_new_))
7154   return 0;
7155   ;
7156   return 0;
7157 }
7158 _ACEOF
7159 rm -f conftest.$ac_objext
7160 if { (ac_try="$ac_compile"
7161 case "(($ac_try" in
7162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163   *) ac_try_echo=$ac_try;;
7164 esac
7165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166   (eval "$ac_compile") 2>conftest.er1
7167   ac_status=$?
7168   grep -v '^ *+' conftest.er1 >conftest.err
7169   rm -f conftest.er1
7170   cat conftest.err >&5
7171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172   (exit $ac_status); } && {
7173          test -z "$ac_c_werror_flag" ||
7174          test ! -s conftest.err
7175        } && test -s conftest.$ac_objext; then
7176   ac_cv_type_unsigned_long=yes
7177 else
7178   echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7180
7181         ac_cv_type_unsigned_long=no
7182 fi
7183
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 fi
7186 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7187 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7188
7189 # The cast to long int works around a bug in the HP C Compiler
7190 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7191 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7192 # This bug is HP SR number 8606223364.
7193 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
7194 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7195 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7196   echo $ECHO_N "(cached) $ECHO_C" >&6
7197 else
7198   if test "$cross_compiling" = yes; then
7199   # Depending upon the size, compute the lo and hi bounds.
7200 cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h.  */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h.  */
7206 $ac_includes_default
7207    typedef unsigned long ac__type_sizeof_;
7208 int
7209 main ()
7210 {
7211 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7212 test_array [0] = 0
7213
7214   ;
7215   return 0;
7216 }
7217 _ACEOF
7218 rm -f conftest.$ac_objext
7219 if { (ac_try="$ac_compile"
7220 case "(($ac_try" in
7221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7222   *) ac_try_echo=$ac_try;;
7223 esac
7224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7225   (eval "$ac_compile") 2>conftest.er1
7226   ac_status=$?
7227   grep -v '^ *+' conftest.er1 >conftest.err
7228   rm -f conftest.er1
7229   cat conftest.err >&5
7230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231   (exit $ac_status); } && {
7232          test -z "$ac_c_werror_flag" ||
7233          test ! -s conftest.err
7234        } && test -s conftest.$ac_objext; then
7235   ac_lo=0 ac_mid=0
7236   while :; do
7237     cat >conftest.$ac_ext <<_ACEOF
7238 /* confdefs.h.  */
7239 _ACEOF
7240 cat confdefs.h >>conftest.$ac_ext
7241 cat >>conftest.$ac_ext <<_ACEOF
7242 /* end confdefs.h.  */
7243 $ac_includes_default
7244    typedef unsigned long ac__type_sizeof_;
7245 int
7246 main ()
7247 {
7248 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7249 test_array [0] = 0
7250
7251   ;
7252   return 0;
7253 }
7254 _ACEOF
7255 rm -f conftest.$ac_objext
7256 if { (ac_try="$ac_compile"
7257 case "(($ac_try" in
7258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259   *) ac_try_echo=$ac_try;;
7260 esac
7261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7262   (eval "$ac_compile") 2>conftest.er1
7263   ac_status=$?
7264   grep -v '^ *+' conftest.er1 >conftest.err
7265   rm -f conftest.er1
7266   cat conftest.err >&5
7267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268   (exit $ac_status); } && {
7269          test -z "$ac_c_werror_flag" ||
7270          test ! -s conftest.err
7271        } && test -s conftest.$ac_objext; then
7272   ac_hi=$ac_mid; break
7273 else
7274   echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7276
7277         ac_lo=`expr $ac_mid + 1`
7278                         if test $ac_lo -le $ac_mid; then
7279                           ac_lo= ac_hi=
7280                           break
7281                         fi
7282                         ac_mid=`expr 2 '*' $ac_mid + 1`
7283 fi
7284
7285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286   done
7287 else
7288   echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7290
7291         cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h.  */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h.  */
7297 $ac_includes_default
7298    typedef unsigned long ac__type_sizeof_;
7299 int
7300 main ()
7301 {
7302 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7303 test_array [0] = 0
7304
7305   ;
7306   return 0;
7307 }
7308 _ACEOF
7309 rm -f conftest.$ac_objext
7310 if { (ac_try="$ac_compile"
7311 case "(($ac_try" in
7312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7313   *) ac_try_echo=$ac_try;;
7314 esac
7315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7316   (eval "$ac_compile") 2>conftest.er1
7317   ac_status=$?
7318   grep -v '^ *+' conftest.er1 >conftest.err
7319   rm -f conftest.er1
7320   cat conftest.err >&5
7321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7322   (exit $ac_status); } && {
7323          test -z "$ac_c_werror_flag" ||
7324          test ! -s conftest.err
7325        } && test -s conftest.$ac_objext; then
7326   ac_hi=-1 ac_mid=-1
7327   while :; do
7328     cat >conftest.$ac_ext <<_ACEOF
7329 /* confdefs.h.  */
7330 _ACEOF
7331 cat confdefs.h >>conftest.$ac_ext
7332 cat >>conftest.$ac_ext <<_ACEOF
7333 /* end confdefs.h.  */
7334 $ac_includes_default
7335    typedef unsigned long ac__type_sizeof_;
7336 int
7337 main ()
7338 {
7339 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7340 test_array [0] = 0
7341
7342   ;
7343   return 0;
7344 }
7345 _ACEOF
7346 rm -f conftest.$ac_objext
7347 if { (ac_try="$ac_compile"
7348 case "(($ac_try" in
7349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350   *) ac_try_echo=$ac_try;;
7351 esac
7352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7353   (eval "$ac_compile") 2>conftest.er1
7354   ac_status=$?
7355   grep -v '^ *+' conftest.er1 >conftest.err
7356   rm -f conftest.er1
7357   cat conftest.err >&5
7358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359   (exit $ac_status); } && {
7360          test -z "$ac_c_werror_flag" ||
7361          test ! -s conftest.err
7362        } && test -s conftest.$ac_objext; then
7363   ac_lo=$ac_mid; break
7364 else
7365   echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368         ac_hi=`expr '(' $ac_mid ')' - 1`
7369                         if test $ac_mid -le $ac_hi; then
7370                           ac_lo= ac_hi=
7371                           break
7372                         fi
7373                         ac_mid=`expr 2 '*' $ac_mid`
7374 fi
7375
7376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7377   done
7378 else
7379   echo "$as_me: failed program was:" >&5
7380 sed 's/^/| /' conftest.$ac_ext >&5
7381
7382         ac_lo= ac_hi=
7383 fi
7384
7385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7386 fi
7387
7388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7389 # Binary search between lo and hi bounds.
7390 while test "x$ac_lo" != "x$ac_hi"; do
7391   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7392   cat >conftest.$ac_ext <<_ACEOF
7393 /* confdefs.h.  */
7394 _ACEOF
7395 cat confdefs.h >>conftest.$ac_ext
7396 cat >>conftest.$ac_ext <<_ACEOF
7397 /* end confdefs.h.  */
7398 $ac_includes_default
7399    typedef unsigned long ac__type_sizeof_;
7400 int
7401 main ()
7402 {
7403 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7404 test_array [0] = 0
7405
7406   ;
7407   return 0;
7408 }
7409 _ACEOF
7410 rm -f conftest.$ac_objext
7411 if { (ac_try="$ac_compile"
7412 case "(($ac_try" in
7413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414   *) ac_try_echo=$ac_try;;
7415 esac
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417   (eval "$ac_compile") 2>conftest.er1
7418   ac_status=$?
7419   grep -v '^ *+' conftest.er1 >conftest.err
7420   rm -f conftest.er1
7421   cat conftest.err >&5
7422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423   (exit $ac_status); } && {
7424          test -z "$ac_c_werror_flag" ||
7425          test ! -s conftest.err
7426        } && test -s conftest.$ac_objext; then
7427   ac_hi=$ac_mid
7428 else
7429   echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7431
7432         ac_lo=`expr '(' $ac_mid ')' + 1`
7433 fi
7434
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7436 done
7437 case $ac_lo in
7438 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7439 '') if test "$ac_cv_type_unsigned_long" = yes; then
7440      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7441 See \`config.log' for more details." >&5
7442 echo "$as_me: error: cannot compute sizeof (unsigned long)
7443 See \`config.log' for more details." >&2;}
7444    { (exit 77); exit 77; }; }
7445    else
7446      ac_cv_sizeof_unsigned_long=0
7447    fi ;;
7448 esac
7449 else
7450   cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h.  */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h.  */
7456 $ac_includes_default
7457    typedef unsigned long ac__type_sizeof_;
7458 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7459 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7460 #include <stdio.h>
7461 #include <stdlib.h>
7462 int
7463 main ()
7464 {
7465
7466   FILE *f = fopen ("conftest.val", "w");
7467   if (! f)
7468     return 1;
7469   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7470     {
7471       long int i = longval ();
7472       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7473         return 1;
7474       fprintf (f, "%ld\n", i);
7475     }
7476   else
7477     {
7478       unsigned long int i = ulongval ();
7479       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7480         return 1;
7481       fprintf (f, "%lu\n", i);
7482     }
7483   return ferror (f) || fclose (f) != 0;
7484
7485   ;
7486   return 0;
7487 }
7488 _ACEOF
7489 rm -f conftest$ac_exeext
7490 if { (ac_try="$ac_link"
7491 case "(($ac_try" in
7492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493   *) ac_try_echo=$ac_try;;
7494 esac
7495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496   (eval "$ac_link") 2>&5
7497   ac_status=$?
7498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7500   { (case "(($ac_try" in
7501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502   *) ac_try_echo=$ac_try;;
7503 esac
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505   (eval "$ac_try") 2>&5
7506   ac_status=$?
7507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7508   (exit $ac_status); }; }; then
7509   ac_cv_sizeof_unsigned_long=`cat conftest.val`
7510 else
7511   echo "$as_me: program exited with status $ac_status" >&5
7512 echo "$as_me: failed program was:" >&5
7513 sed 's/^/| /' conftest.$ac_ext >&5
7514
7515 ( exit $ac_status )
7516 if test "$ac_cv_type_unsigned_long" = yes; then
7517      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7518 See \`config.log' for more details." >&5
7519 echo "$as_me: error: cannot compute sizeof (unsigned long)
7520 See \`config.log' for more details." >&2;}
7521    { (exit 77); exit 77; }; }
7522    else
7523      ac_cv_sizeof_unsigned_long=0
7524    fi
7525 fi
7526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7527 fi
7528 rm -f conftest.val
7529 fi
7530 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7531 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
7532
7533
7534
7535 cat >>confdefs.h <<_ACEOF
7536 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7537 _ACEOF
7538
7539
7540 { echo "$as_me:$LINENO: checking for signed long long" >&5
7541 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7542 if test "${ac_cv_type_signed_long_long+set}" = set; then
7543   echo $ECHO_N "(cached) $ECHO_C" >&6
7544 else
7545   cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h.  */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h.  */
7551 $ac_includes_default
7552 typedef signed long long ac__type_new_;
7553 int
7554 main ()
7555 {
7556 if ((ac__type_new_ *) 0)
7557   return 0;
7558 if (sizeof (ac__type_new_))
7559   return 0;
7560   ;
7561   return 0;
7562 }
7563 _ACEOF
7564 rm -f conftest.$ac_objext
7565 if { (ac_try="$ac_compile"
7566 case "(($ac_try" in
7567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568   *) ac_try_echo=$ac_try;;
7569 esac
7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571   (eval "$ac_compile") 2>conftest.er1
7572   ac_status=$?
7573   grep -v '^ *+' conftest.er1 >conftest.err
7574   rm -f conftest.er1
7575   cat conftest.err >&5
7576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577   (exit $ac_status); } && {
7578          test -z "$ac_c_werror_flag" ||
7579          test ! -s conftest.err
7580        } && test -s conftest.$ac_objext; then
7581   ac_cv_type_signed_long_long=yes
7582 else
7583   echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7585
7586         ac_cv_type_signed_long_long=no
7587 fi
7588
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 fi
7591 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7592 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7593
7594 # The cast to long int works around a bug in the HP C Compiler
7595 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7596 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7597 # This bug is HP SR number 8606223364.
7598 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7599 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7600 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7601   echo $ECHO_N "(cached) $ECHO_C" >&6
7602 else
7603   if test "$cross_compiling" = yes; then
7604   # Depending upon the size, compute the lo and hi bounds.
7605 cat >conftest.$ac_ext <<_ACEOF
7606 /* confdefs.h.  */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h.  */
7611 $ac_includes_default
7612    typedef signed long long ac__type_sizeof_;
7613 int
7614 main ()
7615 {
7616 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7617 test_array [0] = 0
7618
7619   ;
7620   return 0;
7621 }
7622 _ACEOF
7623 rm -f conftest.$ac_objext
7624 if { (ac_try="$ac_compile"
7625 case "(($ac_try" in
7626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627   *) ac_try_echo=$ac_try;;
7628 esac
7629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7630   (eval "$ac_compile") 2>conftest.er1
7631   ac_status=$?
7632   grep -v '^ *+' conftest.er1 >conftest.err
7633   rm -f conftest.er1
7634   cat conftest.err >&5
7635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636   (exit $ac_status); } && {
7637          test -z "$ac_c_werror_flag" ||
7638          test ! -s conftest.err
7639        } && test -s conftest.$ac_objext; then
7640   ac_lo=0 ac_mid=0
7641   while :; do
7642     cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h.  */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h.  */
7648 $ac_includes_default
7649    typedef signed long long ac__type_sizeof_;
7650 int
7651 main ()
7652 {
7653 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7654 test_array [0] = 0
7655
7656   ;
7657   return 0;
7658 }
7659 _ACEOF
7660 rm -f conftest.$ac_objext
7661 if { (ac_try="$ac_compile"
7662 case "(($ac_try" in
7663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664   *) ac_try_echo=$ac_try;;
7665 esac
7666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7667   (eval "$ac_compile") 2>conftest.er1
7668   ac_status=$?
7669   grep -v '^ *+' conftest.er1 >conftest.err
7670   rm -f conftest.er1
7671   cat conftest.err >&5
7672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7673   (exit $ac_status); } && {
7674          test -z "$ac_c_werror_flag" ||
7675          test ! -s conftest.err
7676        } && test -s conftest.$ac_objext; then
7677   ac_hi=$ac_mid; break
7678 else
7679   echo "$as_me: failed program was:" >&5
7680 sed 's/^/| /' conftest.$ac_ext >&5
7681
7682         ac_lo=`expr $ac_mid + 1`
7683                         if test $ac_lo -le $ac_mid; then
7684                           ac_lo= ac_hi=
7685                           break
7686                         fi
7687                         ac_mid=`expr 2 '*' $ac_mid + 1`
7688 fi
7689
7690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7691   done
7692 else
7693   echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.$ac_ext >&5
7695
7696         cat >conftest.$ac_ext <<_ACEOF
7697 /* confdefs.h.  */
7698 _ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h.  */
7702 $ac_includes_default
7703    typedef signed long long ac__type_sizeof_;
7704 int
7705 main ()
7706 {
7707 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7708 test_array [0] = 0
7709
7710   ;
7711   return 0;
7712 }
7713 _ACEOF
7714 rm -f conftest.$ac_objext
7715 if { (ac_try="$ac_compile"
7716 case "(($ac_try" in
7717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718   *) ac_try_echo=$ac_try;;
7719 esac
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721   (eval "$ac_compile") 2>conftest.er1
7722   ac_status=$?
7723   grep -v '^ *+' conftest.er1 >conftest.err
7724   rm -f conftest.er1
7725   cat conftest.err >&5
7726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); } && {
7728          test -z "$ac_c_werror_flag" ||
7729          test ! -s conftest.err
7730        } && test -s conftest.$ac_objext; then
7731   ac_hi=-1 ac_mid=-1
7732   while :; do
7733     cat >conftest.$ac_ext <<_ACEOF
7734 /* confdefs.h.  */
7735 _ACEOF
7736 cat confdefs.h >>conftest.$ac_ext
7737 cat >>conftest.$ac_ext <<_ACEOF
7738 /* end confdefs.h.  */
7739 $ac_includes_default
7740    typedef signed long long ac__type_sizeof_;
7741 int
7742 main ()
7743 {
7744 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7745 test_array [0] = 0
7746
7747   ;
7748   return 0;
7749 }
7750 _ACEOF
7751 rm -f conftest.$ac_objext
7752 if { (ac_try="$ac_compile"
7753 case "(($ac_try" in
7754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755   *) ac_try_echo=$ac_try;;
7756 esac
7757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7758   (eval "$ac_compile") 2>conftest.er1
7759   ac_status=$?
7760   grep -v '^ *+' conftest.er1 >conftest.err
7761   rm -f conftest.er1
7762   cat conftest.err >&5
7763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764   (exit $ac_status); } && {
7765          test -z "$ac_c_werror_flag" ||
7766          test ! -s conftest.err
7767        } && test -s conftest.$ac_objext; then
7768   ac_lo=$ac_mid; break
7769 else
7770   echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7772
7773         ac_hi=`expr '(' $ac_mid ')' - 1`
7774                         if test $ac_mid -le $ac_hi; then
7775                           ac_lo= ac_hi=
7776                           break
7777                         fi
7778                         ac_mid=`expr 2 '*' $ac_mid`
7779 fi
7780
7781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7782   done
7783 else
7784   echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7786
7787         ac_lo= ac_hi=
7788 fi
7789
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 fi
7792
7793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7794 # Binary search between lo and hi bounds.
7795 while test "x$ac_lo" != "x$ac_hi"; do
7796   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7797   cat >conftest.$ac_ext <<_ACEOF
7798 /* confdefs.h.  */
7799 _ACEOF
7800 cat confdefs.h >>conftest.$ac_ext
7801 cat >>conftest.$ac_ext <<_ACEOF
7802 /* end confdefs.h.  */
7803 $ac_includes_default
7804    typedef signed long long ac__type_sizeof_;
7805 int
7806 main ()
7807 {
7808 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7809 test_array [0] = 0
7810
7811   ;
7812   return 0;
7813 }
7814 _ACEOF
7815 rm -f conftest.$ac_objext
7816 if { (ac_try="$ac_compile"
7817 case "(($ac_try" in
7818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819   *) ac_try_echo=$ac_try;;
7820 esac
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822   (eval "$ac_compile") 2>conftest.er1
7823   ac_status=$?
7824   grep -v '^ *+' conftest.er1 >conftest.err
7825   rm -f conftest.er1
7826   cat conftest.err >&5
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } && {
7829          test -z "$ac_c_werror_flag" ||
7830          test ! -s conftest.err
7831        } && test -s conftest.$ac_objext; then
7832   ac_hi=$ac_mid
7833 else
7834   echo "$as_me: failed program was:" >&5
7835 sed 's/^/| /' conftest.$ac_ext >&5
7836
7837         ac_lo=`expr '(' $ac_mid ')' + 1`
7838 fi
7839
7840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7841 done
7842 case $ac_lo in
7843 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7844 '') if test "$ac_cv_type_signed_long_long" = yes; then
7845      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7846 See \`config.log' for more details." >&5
7847 echo "$as_me: error: cannot compute sizeof (signed long long)
7848 See \`config.log' for more details." >&2;}
7849    { (exit 77); exit 77; }; }
7850    else
7851      ac_cv_sizeof_signed_long_long=0
7852    fi ;;
7853 esac
7854 else
7855   cat >conftest.$ac_ext <<_ACEOF
7856 /* confdefs.h.  */
7857 _ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h.  */
7861 $ac_includes_default
7862    typedef signed long long ac__type_sizeof_;
7863 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7864 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7865 #include <stdio.h>
7866 #include <stdlib.h>
7867 int
7868 main ()
7869 {
7870
7871   FILE *f = fopen ("conftest.val", "w");
7872   if (! f)
7873     return 1;
7874   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7875     {
7876       long int i = longval ();
7877       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7878         return 1;
7879       fprintf (f, "%ld\n", i);
7880     }
7881   else
7882     {
7883       unsigned long int i = ulongval ();
7884       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7885         return 1;
7886       fprintf (f, "%lu\n", i);
7887     }
7888   return ferror (f) || fclose (f) != 0;
7889
7890   ;
7891   return 0;
7892 }
7893 _ACEOF
7894 rm -f conftest$ac_exeext
7895 if { (ac_try="$ac_link"
7896 case "(($ac_try" in
7897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898   *) ac_try_echo=$ac_try;;
7899 esac
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901   (eval "$ac_link") 2>&5
7902   ac_status=$?
7903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7905   { (case "(($ac_try" in
7906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907   *) ac_try_echo=$ac_try;;
7908 esac
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910   (eval "$ac_try") 2>&5
7911   ac_status=$?
7912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913   (exit $ac_status); }; }; then
7914   ac_cv_sizeof_signed_long_long=`cat conftest.val`
7915 else
7916   echo "$as_me: program exited with status $ac_status" >&5
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920 ( exit $ac_status )
7921 if test "$ac_cv_type_signed_long_long" = yes; then
7922      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7923 See \`config.log' for more details." >&5
7924 echo "$as_me: error: cannot compute sizeof (signed long long)
7925 See \`config.log' for more details." >&2;}
7926    { (exit 77); exit 77; }; }
7927    else
7928      ac_cv_sizeof_signed_long_long=0
7929    fi
7930 fi
7931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7932 fi
7933 rm -f conftest.val
7934 fi
7935 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7936 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
7937
7938
7939
7940 cat >>confdefs.h <<_ACEOF
7941 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7942 _ACEOF
7943
7944
7945 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
7946 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
7947 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7948   echo $ECHO_N "(cached) $ECHO_C" >&6
7949 else
7950   cat >conftest.$ac_ext <<_ACEOF
7951 /* confdefs.h.  */
7952 _ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h.  */
7956 $ac_includes_default
7957 typedef unsigned long long ac__type_new_;
7958 int
7959 main ()
7960 {
7961 if ((ac__type_new_ *) 0)
7962   return 0;
7963 if (sizeof (ac__type_new_))
7964   return 0;
7965   ;
7966   return 0;
7967 }
7968 _ACEOF
7969 rm -f conftest.$ac_objext
7970 if { (ac_try="$ac_compile"
7971 case "(($ac_try" in
7972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7973   *) ac_try_echo=$ac_try;;
7974 esac
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976   (eval "$ac_compile") 2>conftest.er1
7977   ac_status=$?
7978   grep -v '^ *+' conftest.er1 >conftest.err
7979   rm -f conftest.er1
7980   cat conftest.err >&5
7981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982   (exit $ac_status); } && {
7983          test -z "$ac_c_werror_flag" ||
7984          test ! -s conftest.err
7985        } && test -s conftest.$ac_objext; then
7986   ac_cv_type_unsigned_long_long=yes
7987 else
7988   echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7990
7991         ac_cv_type_unsigned_long_long=no
7992 fi
7993
7994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995 fi
7996 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
7997 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
7998
7999 # The cast to long int works around a bug in the HP C Compiler
8000 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8001 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8002 # This bug is HP SR number 8606223364.
8003 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
8004 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
8005 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
8006   echo $ECHO_N "(cached) $ECHO_C" >&6
8007 else
8008   if test "$cross_compiling" = yes; then
8009   # Depending upon the size, compute the lo and hi bounds.
8010 cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h.  */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h.  */
8016 $ac_includes_default
8017    typedef unsigned long long ac__type_sizeof_;
8018 int
8019 main ()
8020 {
8021 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8022 test_array [0] = 0
8023
8024   ;
8025   return 0;
8026 }
8027 _ACEOF
8028 rm -f conftest.$ac_objext
8029 if { (ac_try="$ac_compile"
8030 case "(($ac_try" in
8031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8032   *) ac_try_echo=$ac_try;;
8033 esac
8034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8035   (eval "$ac_compile") 2>conftest.er1
8036   ac_status=$?
8037   grep -v '^ *+' conftest.er1 >conftest.err
8038   rm -f conftest.er1
8039   cat conftest.err >&5
8040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041   (exit $ac_status); } && {
8042          test -z "$ac_c_werror_flag" ||
8043          test ! -s conftest.err
8044        } && test -s conftest.$ac_objext; then
8045   ac_lo=0 ac_mid=0
8046   while :; do
8047     cat >conftest.$ac_ext <<_ACEOF
8048 /* confdefs.h.  */
8049 _ACEOF
8050 cat confdefs.h >>conftest.$ac_ext
8051 cat >>conftest.$ac_ext <<_ACEOF
8052 /* end confdefs.h.  */
8053 $ac_includes_default
8054    typedef unsigned long long ac__type_sizeof_;
8055 int
8056 main ()
8057 {
8058 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8059 test_array [0] = 0
8060
8061   ;
8062   return 0;
8063 }
8064 _ACEOF
8065 rm -f conftest.$ac_objext
8066 if { (ac_try="$ac_compile"
8067 case "(($ac_try" in
8068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8069   *) ac_try_echo=$ac_try;;
8070 esac
8071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8072   (eval "$ac_compile") 2>conftest.er1
8073   ac_status=$?
8074   grep -v '^ *+' conftest.er1 >conftest.err
8075   rm -f conftest.er1
8076   cat conftest.err >&5
8077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); } && {
8079          test -z "$ac_c_werror_flag" ||
8080          test ! -s conftest.err
8081        } && test -s conftest.$ac_objext; then
8082   ac_hi=$ac_mid; break
8083 else
8084   echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8086
8087         ac_lo=`expr $ac_mid + 1`
8088                         if test $ac_lo -le $ac_mid; then
8089                           ac_lo= ac_hi=
8090                           break
8091                         fi
8092                         ac_mid=`expr 2 '*' $ac_mid + 1`
8093 fi
8094
8095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8096   done
8097 else
8098   echo "$as_me: failed program was:" >&5
8099 sed 's/^/| /' conftest.$ac_ext >&5
8100
8101         cat >conftest.$ac_ext <<_ACEOF
8102 /* confdefs.h.  */
8103 _ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h.  */
8107 $ac_includes_default
8108    typedef unsigned long long ac__type_sizeof_;
8109 int
8110 main ()
8111 {
8112 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8113 test_array [0] = 0
8114
8115   ;
8116   return 0;
8117 }
8118 _ACEOF
8119 rm -f conftest.$ac_objext
8120 if { (ac_try="$ac_compile"
8121 case "(($ac_try" in
8122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8123   *) ac_try_echo=$ac_try;;
8124 esac
8125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8126   (eval "$ac_compile") 2>conftest.er1
8127   ac_status=$?
8128   grep -v '^ *+' conftest.er1 >conftest.err
8129   rm -f conftest.er1
8130   cat conftest.err >&5
8131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132   (exit $ac_status); } && {
8133          test -z "$ac_c_werror_flag" ||
8134          test ! -s conftest.err
8135        } && test -s conftest.$ac_objext; then
8136   ac_hi=-1 ac_mid=-1
8137   while :; do
8138     cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h.  */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h.  */
8144 $ac_includes_default
8145    typedef unsigned long long ac__type_sizeof_;
8146 int
8147 main ()
8148 {
8149 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8150 test_array [0] = 0
8151
8152   ;
8153   return 0;
8154 }
8155 _ACEOF
8156 rm -f conftest.$ac_objext
8157 if { (ac_try="$ac_compile"
8158 case "(($ac_try" in
8159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8160   *) ac_try_echo=$ac_try;;
8161 esac
8162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8163   (eval "$ac_compile") 2>conftest.er1
8164   ac_status=$?
8165   grep -v '^ *+' conftest.er1 >conftest.err
8166   rm -f conftest.er1
8167   cat conftest.err >&5
8168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169   (exit $ac_status); } && {
8170          test -z "$ac_c_werror_flag" ||
8171          test ! -s conftest.err
8172        } && test -s conftest.$ac_objext; then
8173   ac_lo=$ac_mid; break
8174 else
8175   echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8177
8178         ac_hi=`expr '(' $ac_mid ')' - 1`
8179                         if test $ac_mid -le $ac_hi; then
8180                           ac_lo= ac_hi=
8181                           break
8182                         fi
8183                         ac_mid=`expr 2 '*' $ac_mid`
8184 fi
8185
8186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8187   done
8188 else
8189   echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192         ac_lo= ac_hi=
8193 fi
8194
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 fi
8197
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 # Binary search between lo and hi bounds.
8200 while test "x$ac_lo" != "x$ac_hi"; do
8201   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8202   cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h.  */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h.  */
8208 $ac_includes_default
8209    typedef unsigned long long ac__type_sizeof_;
8210 int
8211 main ()
8212 {
8213 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8214 test_array [0] = 0
8215
8216   ;
8217   return 0;
8218 }
8219 _ACEOF
8220 rm -f conftest.$ac_objext
8221 if { (ac_try="$ac_compile"
8222 case "(($ac_try" in
8223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224   *) ac_try_echo=$ac_try;;
8225 esac
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227   (eval "$ac_compile") 2>conftest.er1
8228   ac_status=$?
8229   grep -v '^ *+' conftest.er1 >conftest.err
8230   rm -f conftest.er1
8231   cat conftest.err >&5
8232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233   (exit $ac_status); } && {
8234          test -z "$ac_c_werror_flag" ||
8235          test ! -s conftest.err
8236        } && test -s conftest.$ac_objext; then
8237   ac_hi=$ac_mid
8238 else
8239   echo "$as_me: failed program was:" >&5
8240 sed 's/^/| /' conftest.$ac_ext >&5
8241
8242         ac_lo=`expr '(' $ac_mid ')' + 1`
8243 fi
8244
8245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8246 done
8247 case $ac_lo in
8248 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
8249 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
8250      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8251 See \`config.log' for more details." >&5
8252 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8253 See \`config.log' for more details." >&2;}
8254    { (exit 77); exit 77; }; }
8255    else
8256      ac_cv_sizeof_unsigned_long_long=0
8257    fi ;;
8258 esac
8259 else
8260   cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h.  */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h.  */
8266 $ac_includes_default
8267    typedef unsigned long long ac__type_sizeof_;
8268 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8269 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8270 #include <stdio.h>
8271 #include <stdlib.h>
8272 int
8273 main ()
8274 {
8275
8276   FILE *f = fopen ("conftest.val", "w");
8277   if (! f)
8278     return 1;
8279   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8280     {
8281       long int i = longval ();
8282       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8283         return 1;
8284       fprintf (f, "%ld\n", i);
8285     }
8286   else
8287     {
8288       unsigned long int i = ulongval ();
8289       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8290         return 1;
8291       fprintf (f, "%lu\n", i);
8292     }
8293   return ferror (f) || fclose (f) != 0;
8294
8295   ;
8296   return 0;
8297 }
8298 _ACEOF
8299 rm -f conftest$ac_exeext
8300 if { (ac_try="$ac_link"
8301 case "(($ac_try" in
8302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303   *) ac_try_echo=$ac_try;;
8304 esac
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306   (eval "$ac_link") 2>&5
8307   ac_status=$?
8308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8310   { (case "(($ac_try" in
8311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312   *) ac_try_echo=$ac_try;;
8313 esac
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315   (eval "$ac_try") 2>&5
8316   ac_status=$?
8317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318   (exit $ac_status); }; }; then
8319   ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
8320 else
8321   echo "$as_me: program exited with status $ac_status" >&5
8322 echo "$as_me: failed program was:" >&5
8323 sed 's/^/| /' conftest.$ac_ext >&5
8324
8325 ( exit $ac_status )
8326 if test "$ac_cv_type_unsigned_long_long" = yes; then
8327      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8328 See \`config.log' for more details." >&5
8329 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8330 See \`config.log' for more details." >&2;}
8331    { (exit 77); exit 77; }; }
8332    else
8333      ac_cv_sizeof_unsigned_long_long=0
8334    fi
8335 fi
8336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8337 fi
8338 rm -f conftest.val
8339 fi
8340 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
8341 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
8342
8343
8344
8345 cat >>confdefs.h <<_ACEOF
8346 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8347 _ACEOF
8348
8349
8350
8351
8352
8353 # Extract the first word of "freetype-config", so it can be a program name with args.
8354 set dummy freetype-config; ac_word=$2
8355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8357 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8358   echo $ECHO_N "(cached) $ECHO_C" >&6
8359 else
8360   case $FREETYPE_CONFIG in
8361   [\\/]* | ?:[\\/]*)
8362   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8363   ;;
8364   *)
8365   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8366 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8367 for as_dir in $as_dummy
8368 do
8369   IFS=$as_save_IFS
8370   test -z "$as_dir" && as_dir=.
8371   for ac_exec_ext in '' $ac_executable_extensions; do
8372   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8374     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8375     break 2
8376   fi
8377 done
8378 done
8379 IFS=$as_save_IFS
8380
8381   ;;
8382 esac
8383 fi
8384 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8385 if test -n "$FREETYPE_CONFIG"; then
8386   { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8387 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8388 else
8389   { echo "$as_me:$LINENO: result: no" >&5
8390 echo "${ECHO_T}no" >&6; }
8391 fi
8392
8393
8394
8395 OLDCPPFLAGS="${CPPFLAGS}"
8396 OLDLIBS="${LIBS}"
8397 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8398     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8399 else if test -d /usr/include/freetype2; then
8400     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8401 else if test -d /usr/local/include/freetype2; then
8402     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8403 fi
8404 fi
8405 fi
8406
8407 if test "x${FREETYPE_CONFIG}" '=' "x";then
8408     # if we didn't find the freetype-config program, we won't
8409     # know where the libs are expected to be. So just blindly
8410     # try to link against them.
8411     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8412 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8413 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8414   echo $ECHO_N "(cached) $ECHO_C" >&6
8415 else
8416   ac_check_lib_save_LIBS=$LIBS
8417 LIBS="-lfreetype  $LIBS"
8418 cat >conftest.$ac_ext <<_ACEOF
8419 /* confdefs.h.  */
8420 _ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h.  */
8424
8425 /* Override any GCC internal prototype to avoid an error.
8426    Use char because int might match the return type of a GCC
8427    builtin and then its argument prototype would still apply.  */
8428 #ifdef __cplusplus
8429 extern "C"
8430 #endif
8431 char FT_Init_FreeType ();
8432 int
8433 main ()
8434 {
8435 return FT_Init_FreeType ();
8436   ;
8437   return 0;
8438 }
8439 _ACEOF
8440 rm -f conftest.$ac_objext conftest$ac_exeext
8441 if { (ac_try="$ac_link"
8442 case "(($ac_try" in
8443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8444   *) ac_try_echo=$ac_try;;
8445 esac
8446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8447   (eval "$ac_link") 2>conftest.er1
8448   ac_status=$?
8449   grep -v '^ *+' conftest.er1 >conftest.err
8450   rm -f conftest.er1
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   (exit $ac_status); } && {
8454          test -z "$ac_c_werror_flag" ||
8455          test ! -s conftest.err
8456        } && test -s conftest$ac_exeext &&
8457        $as_test_x conftest$ac_exeext; then
8458   ac_cv_lib_freetype_FT_Init_FreeType=yes
8459 else
8460   echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8462
8463         ac_cv_lib_freetype_FT_Init_FreeType=no
8464 fi
8465
8466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8467       conftest$ac_exeext conftest.$ac_ext
8468 LIBS=$ac_check_lib_save_LIBS
8469 fi
8470 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8471 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8472 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8473   HAVE_LIB_FREETYPE=1
8474 fi
8475
8476 fi
8477
8478
8479 for ac_header in ft2build.h
8480 do
8481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8483   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8486   echo $ECHO_N "(cached) $ECHO_C" >&6
8487 fi
8488 ac_res=`eval echo '${'$as_ac_Header'}'`
8489                { echo "$as_me:$LINENO: result: $ac_res" >&5
8490 echo "${ECHO_T}$ac_res" >&6; }
8491 else
8492   # Is the header compilable?
8493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8495 cat >conftest.$ac_ext <<_ACEOF
8496 /* confdefs.h.  */
8497 _ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h.  */
8501 $ac_includes_default
8502 #include <$ac_header>
8503 _ACEOF
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8506 case "(($ac_try" in
8507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508   *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511   (eval "$ac_compile") 2>conftest.er1
8512   ac_status=$?
8513   grep -v '^ *+' conftest.er1 >conftest.err
8514   rm -f conftest.er1
8515   cat conftest.err >&5
8516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517   (exit $ac_status); } && {
8518          test -z "$ac_c_werror_flag" ||
8519          test ! -s conftest.err
8520        } && test -s conftest.$ac_objext; then
8521   ac_header_compiler=yes
8522 else
8523   echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8525
8526         ac_header_compiler=no
8527 fi
8528
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8531 echo "${ECHO_T}$ac_header_compiler" >&6; }
8532
8533 # Is the header present?
8534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8536 cat >conftest.$ac_ext <<_ACEOF
8537 /* confdefs.h.  */
8538 _ACEOF
8539 cat confdefs.h >>conftest.$ac_ext
8540 cat >>conftest.$ac_ext <<_ACEOF
8541 /* end confdefs.h.  */
8542 #include <$ac_header>
8543 _ACEOF
8544 if { (ac_try="$ac_cpp conftest.$ac_ext"
8545 case "(($ac_try" in
8546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547   *) ac_try_echo=$ac_try;;
8548 esac
8549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8550   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8551   ac_status=$?
8552   grep -v '^ *+' conftest.er1 >conftest.err
8553   rm -f conftest.er1
8554   cat conftest.err >&5
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); } >/dev/null && {
8557          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8558          test ! -s conftest.err
8559        }; then
8560   ac_header_preproc=yes
8561 else
8562   echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8564
8565   ac_header_preproc=no
8566 fi
8567
8568 rm -f conftest.err conftest.$ac_ext
8569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8570 echo "${ECHO_T}$ac_header_preproc" >&6; }
8571
8572 # So?  What about this header?
8573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8574   yes:no: )
8575     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8577     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8579     ac_header_preproc=yes
8580     ;;
8581   no:yes:* )
8582     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8584     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8585 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8586     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8588     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8589 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8590     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8592     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8594
8595     ;;
8596 esac
8597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8600   echo $ECHO_N "(cached) $ECHO_C" >&6
8601 else
8602   eval "$as_ac_Header=\$ac_header_preproc"
8603 fi
8604 ac_res=`eval echo '${'$as_ac_Header'}'`
8605                { echo "$as_me:$LINENO: result: $ac_res" >&5
8606 echo "${ECHO_T}$ac_res" >&6; }
8607
8608 fi
8609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8610   cat >>confdefs.h <<_ACEOF
8611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8612 _ACEOF
8613  HAVE_FT2BUILD_H=1
8614 fi
8615
8616 done
8617
8618 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8619
8620 for ac_header in freetype/freetype.h
8621 do
8622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8624   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8627   echo $ECHO_N "(cached) $ECHO_C" >&6
8628 fi
8629 ac_res=`eval echo '${'$as_ac_Header'}'`
8630                { echo "$as_me:$LINENO: result: $ac_res" >&5
8631 echo "${ECHO_T}$ac_res" >&6; }
8632 else
8633   # Is the header compilable?
8634 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8636 cat >conftest.$ac_ext <<_ACEOF
8637 /* confdefs.h.  */
8638 _ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h.  */
8642 $ac_includes_default
8643 #include <$ac_header>
8644 _ACEOF
8645 rm -f conftest.$ac_objext
8646 if { (ac_try="$ac_compile"
8647 case "(($ac_try" in
8648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8649   *) ac_try_echo=$ac_try;;
8650 esac
8651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8652   (eval "$ac_compile") 2>conftest.er1
8653   ac_status=$?
8654   grep -v '^ *+' conftest.er1 >conftest.err
8655   rm -f conftest.er1
8656   cat conftest.err >&5
8657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658   (exit $ac_status); } && {
8659          test -z "$ac_c_werror_flag" ||
8660          test ! -s conftest.err
8661        } && test -s conftest.$ac_objext; then
8662   ac_header_compiler=yes
8663 else
8664   echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8666
8667         ac_header_compiler=no
8668 fi
8669
8670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8671 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8672 echo "${ECHO_T}$ac_header_compiler" >&6; }
8673
8674 # Is the header present?
8675 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8677 cat >conftest.$ac_ext <<_ACEOF
8678 /* confdefs.h.  */
8679 _ACEOF
8680 cat confdefs.h >>conftest.$ac_ext
8681 cat >>conftest.$ac_ext <<_ACEOF
8682 /* end confdefs.h.  */
8683 #include <$ac_header>
8684 _ACEOF
8685 if { (ac_try="$ac_cpp conftest.$ac_ext"
8686 case "(($ac_try" in
8687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688   *) ac_try_echo=$ac_try;;
8689 esac
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8692   ac_status=$?
8693   grep -v '^ *+' conftest.er1 >conftest.err
8694   rm -f conftest.er1
8695   cat conftest.err >&5
8696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697   (exit $ac_status); } >/dev/null && {
8698          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8699          test ! -s conftest.err
8700        }; then
8701   ac_header_preproc=yes
8702 else
8703   echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8705
8706   ac_header_preproc=no
8707 fi
8708
8709 rm -f conftest.err conftest.$ac_ext
8710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8711 echo "${ECHO_T}$ac_header_preproc" >&6; }
8712
8713 # So?  What about this header?
8714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8715   yes:no: )
8716     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8718     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8719 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8720     ac_header_preproc=yes
8721     ;;
8722   no:yes:* )
8723     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8725     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8726 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8727     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8728 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8729     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8730 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8731     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8733     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8734 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8735
8736     ;;
8737 esac
8738 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8739 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8741   echo $ECHO_N "(cached) $ECHO_C" >&6
8742 else
8743   eval "$as_ac_Header=\$ac_header_preproc"
8744 fi
8745 ac_res=`eval echo '${'$as_ac_Header'}'`
8746                { echo "$as_me:$LINENO: result: $ac_res" >&5
8747 echo "${ECHO_T}$ac_res" >&6; }
8748
8749 fi
8750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8751   cat >>confdefs.h <<_ACEOF
8752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8753 _ACEOF
8754  HAVE_FREETYPE_FREETYPE_H=1
8755 fi
8756
8757 done
8758
8759 fi
8760
8761 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8762         "x${FREETYPE_CONFIG}" '!=' "x";then
8763     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8764         HAVE_FREETYPE=1
8765     fi
8766     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8767         HAVE_FREETYPE=1
8768     fi
8769 fi
8770
8771 if test "x${HAVE_FREETYPE}" = "x1"; then
8772     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8773         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8774     else
8775         LIBS="$LIBS -lfreetype"
8776     fi
8777
8778     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8779         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8780     fi
8781
8782     { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8783 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8784
8785     cat > conftest.c << EOF
8786 $HAVE_FT2BUILD_H_DEFINE
8787
8788 #ifdef HAVE_FT2BUILD_H
8789 #include <ft2build.h>
8790 #include FT_FREETYPE_H
8791 #include FT_GLYPH_H
8792 #include FT_SIZES_H
8793 #include FT_SFNT_NAMES_H
8794 #include FT_TRUETYPE_IDS_H
8795 #include FT_OUTLINE_H
8796 #else
8797 #include <freetype/freetype.h>
8798 #include <freetype/ftglyph.h>
8799 #include <freetype/ftsizes.h>
8800 #include <freetype/ftsnames.h>
8801 #include <freetype/ttnameid.h>
8802 #include <freetype/ftoutln.h>
8803 #endif
8804
8805 int main()
8806 {
8807     FT_Library ftlibrary;
8808     FT_Face face;
8809     FT_Error error;
8810     FT_ULong charcode;
8811     FT_UInt gindex;
8812     FT_Glyph glyph;
8813     FT_BBox bbox;
8814     FT_Matrix matrix;
8815     FT_UInt i;
8816     char* name = 0;
8817     char italic, bold;
8818
8819     FT_Init_FreeType(&ftlibrary);
8820     FT_New_Face(ftlibrary, "filename", 0, &face);
8821     i = face->num_glyphs - 1;
8822     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8823     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8824     FT_Get_Postscript_Name(face);
8825     FT_Get_Char_Index(face, 33);
8826     FT_Get_First_Char(face, &i);
8827     FT_Get_Next_Char(face, 33, &i);
8828     if(FT_HAS_GLYPH_NAMES(face)) {
8829         FT_Get_Glyph_Name(face, 33, name, 127);
8830     }
8831     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8832     FT_Get_Glyph(face->glyph, &glyph);
8833     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8834     FT_Done_Glyph(glyph);
8835     FT_Done_Face(face);
8836     FT_Done_FreeType(ftlibrary);
8837     return 0;
8838 }
8839 EOF
8840
8841     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8842     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8843         { echo "$as_me:$LINENO: result: yes" >&5
8844 echo "${ECHO_T}yes" >&6; }
8845         cat >>confdefs.h <<_ACEOF
8846 #define HAVE_FREETYPE 1
8847 _ACEOF
8848
8849         cat >>confdefs.h <<_ACEOF
8850 #define HAVE_FREETYPE_FREETYPE_H 1
8851 _ACEOF
8852
8853         cat >>confdefs.h <<_ACEOF
8854 #define USE_FREETYPE 1
8855 _ACEOF
8856   # for ttf2tp1
8857     else
8858         echo "configure: failed program was:" >&5
8859         cat conftest.c >&5
8860         HAVE_FREETYPE=0
8861         { echo "$as_me:$LINENO: result: no" >&5
8862 echo "${ECHO_T}no" >&6; }
8863     fi
8864     rm -f conftest*
8865 fi
8866
8867 # if the above didn't work out, reset all changes to the compiler variables.
8868 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8869     CPPFLAGS=$OLDCPPFLAGS
8870     LIBS=$OLDLIBS
8871 fi
8872
8873
8874 #RFX_CHECK_FONTCONFIG
8875
8876 lame_objects=
8877 lame_makefile=
8878 if test "x${DISABLE_LAME}" = "xtrue"; then
8879     echo "*" Disabling lame support...
8880 else
8881     # old lame code at lib/lame
8882     if test -f lib/lame/Makefile.in; then
8883         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)"
8884         lame_makefile="lib/lame/Makefile"
8885         CPPFLAGS="$CPPFLAGS -Ilame"
8886         cat >>confdefs.h <<_ACEOF
8887 #define HAVE_LAME 1
8888 _ACEOF
8889
8890     else
8891         if test -d /usr/include/lame; then
8892             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
8893         else
8894             if test -d /usr/local/include/lame; then
8895                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
8896             fi
8897         fi
8898
8899 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
8900 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
8901 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
8902   echo $ECHO_N "(cached) $ECHO_C" >&6
8903 else
8904   ac_check_lib_save_LIBS=$LIBS
8905 LIBS="-lmp3lame  $LIBS"
8906 cat >conftest.$ac_ext <<_ACEOF
8907 /* confdefs.h.  */
8908 _ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h.  */
8912
8913 /* Override any GCC internal prototype to avoid an error.
8914    Use char because int might match the return type of a GCC
8915    builtin and then its argument prototype would still apply.  */
8916 #ifdef __cplusplus
8917 extern "C"
8918 #endif
8919 char lame_init ();
8920 int
8921 main ()
8922 {
8923 return lame_init ();
8924   ;
8925   return 0;
8926 }
8927 _ACEOF
8928 rm -f conftest.$ac_objext conftest$ac_exeext
8929 if { (ac_try="$ac_link"
8930 case "(($ac_try" in
8931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8932   *) ac_try_echo=$ac_try;;
8933 esac
8934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8935   (eval "$ac_link") 2>conftest.er1
8936   ac_status=$?
8937   grep -v '^ *+' conftest.er1 >conftest.err
8938   rm -f conftest.er1
8939   cat conftest.err >&5
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } && {
8942          test -z "$ac_c_werror_flag" ||
8943          test ! -s conftest.err
8944        } && test -s conftest$ac_exeext &&
8945        $as_test_x conftest$ac_exeext; then
8946   ac_cv_lib_mp3lame_lame_init=yes
8947 else
8948   echo "$as_me: failed program was:" >&5
8949 sed 's/^/| /' conftest.$ac_ext >&5
8950
8951         ac_cv_lib_mp3lame_lame_init=no
8952 fi
8953
8954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8955       conftest$ac_exeext conftest.$ac_ext
8956 LIBS=$ac_check_lib_save_LIBS
8957 fi
8958 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
8959 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
8960 if test $ac_cv_lib_mp3lame_lame_init = yes; then
8961   cat >>confdefs.h <<_ACEOF
8962 #define HAVE_LIBMP3LAME 1
8963 _ACEOF
8964
8965   LIBS="-lmp3lame $LIBS"
8966
8967 else
8968   NO_LIBMP3LAME=1
8969 fi
8970
8971
8972 for ac_header in lame.h
8973 do
8974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8976   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8979   echo $ECHO_N "(cached) $ECHO_C" >&6
8980 fi
8981 ac_res=`eval echo '${'$as_ac_Header'}'`
8982                { echo "$as_me:$LINENO: result: $ac_res" >&5
8983 echo "${ECHO_T}$ac_res" >&6; }
8984 else
8985   # Is the header compilable?
8986 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8988 cat >conftest.$ac_ext <<_ACEOF
8989 /* confdefs.h.  */
8990 _ACEOF
8991 cat confdefs.h >>conftest.$ac_ext
8992 cat >>conftest.$ac_ext <<_ACEOF
8993 /* end confdefs.h.  */
8994 $ac_includes_default
8995 #include <$ac_header>
8996 _ACEOF
8997 rm -f conftest.$ac_objext
8998 if { (ac_try="$ac_compile"
8999 case "(($ac_try" in
9000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9001   *) ac_try_echo=$ac_try;;
9002 esac
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004   (eval "$ac_compile") 2>conftest.er1
9005   ac_status=$?
9006   grep -v '^ *+' conftest.er1 >conftest.err
9007   rm -f conftest.er1
9008   cat conftest.err >&5
9009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010   (exit $ac_status); } && {
9011          test -z "$ac_c_werror_flag" ||
9012          test ! -s conftest.err
9013        } && test -s conftest.$ac_objext; then
9014   ac_header_compiler=yes
9015 else
9016   echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9018
9019         ac_header_compiler=no
9020 fi
9021
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9024 echo "${ECHO_T}$ac_header_compiler" >&6; }
9025
9026 # Is the header present?
9027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9029 cat >conftest.$ac_ext <<_ACEOF
9030 /* confdefs.h.  */
9031 _ACEOF
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h.  */
9035 #include <$ac_header>
9036 _ACEOF
9037 if { (ac_try="$ac_cpp conftest.$ac_ext"
9038 case "(($ac_try" in
9039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9040   *) ac_try_echo=$ac_try;;
9041 esac
9042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9043   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9044   ac_status=$?
9045   grep -v '^ *+' conftest.er1 >conftest.err
9046   rm -f conftest.er1
9047   cat conftest.err >&5
9048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049   (exit $ac_status); } >/dev/null && {
9050          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9051          test ! -s conftest.err
9052        }; then
9053   ac_header_preproc=yes
9054 else
9055   echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058   ac_header_preproc=no
9059 fi
9060
9061 rm -f conftest.err conftest.$ac_ext
9062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9063 echo "${ECHO_T}$ac_header_preproc" >&6; }
9064
9065 # So?  What about this header?
9066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9067   yes:no: )
9068     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9072     ac_header_preproc=yes
9073     ;;
9074   no:yes:* )
9075     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9077     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9078 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9079     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9081     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9082 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9085     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9087
9088     ;;
9089 esac
9090 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9091 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9093   echo $ECHO_N "(cached) $ECHO_C" >&6
9094 else
9095   eval "$as_ac_Header=\$ac_header_preproc"
9096 fi
9097 ac_res=`eval echo '${'$as_ac_Header'}'`
9098                { echo "$as_me:$LINENO: result: $ac_res" >&5
9099 echo "${ECHO_T}$ac_res" >&6; }
9100
9101 fi
9102 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9103   cat >>confdefs.h <<_ACEOF
9104 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9105 _ACEOF
9106
9107 fi
9108
9109 done
9110
9111         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
9112             cat >>confdefs.h <<_ACEOF
9113 #define HAVE_LAME 1
9114 _ACEOF
9115
9116         fi
9117     fi
9118 fi
9119
9120
9121 # ------------------------------------------------------------------
9122
9123
9124
9125 for ac_prog in avifile-config
9126 do
9127   # Extract the first word of "$ac_prog", so it can be a program name with args.
9128 set dummy $ac_prog; ac_word=$2
9129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9131 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9132   echo $ECHO_N "(cached) $ECHO_C" >&6
9133 else
9134   if test -n "$AVIFILE_CONFIG"; then
9135   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9136 else
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138 for as_dir in $PATH
9139 do
9140   IFS=$as_save_IFS
9141   test -z "$as_dir" && as_dir=.
9142   for ac_exec_ext in '' $ac_executable_extensions; do
9143   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9144     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9145     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9146     break 2
9147   fi
9148 done
9149 done
9150 IFS=$as_save_IFS
9151
9152 fi
9153 fi
9154 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9155 if test -n "$AVIFILE_CONFIG"; then
9156   { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9157 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
9158 else
9159   { echo "$as_me:$LINENO: result: no" >&5
9160 echo "${ECHO_T}no" >&6; }
9161 fi
9162
9163
9164   test -n "$AVIFILE_CONFIG" && break
9165 done
9166
9167
9168 if test "x$AVIFILE_CONFIG" '!=' "x";then
9169     OLDCPPFLAGS="$CPPFLAGS"
9170     # temporarily add avifile paths to CPPFLAGS...
9171     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9172
9173
9174 for ac_header in avifile/version.h version.h
9175 do
9176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9178   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9181   echo $ECHO_N "(cached) $ECHO_C" >&6
9182 fi
9183 ac_res=`eval echo '${'$as_ac_Header'}'`
9184                { echo "$as_me:$LINENO: result: $ac_res" >&5
9185 echo "${ECHO_T}$ac_res" >&6; }
9186 else
9187   # Is the header compilable?
9188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9190 cat >conftest.$ac_ext <<_ACEOF
9191 /* confdefs.h.  */
9192 _ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h.  */
9196 $ac_includes_default
9197 #include <$ac_header>
9198 _ACEOF
9199 rm -f conftest.$ac_objext
9200 if { (ac_try="$ac_compile"
9201 case "(($ac_try" in
9202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203   *) ac_try_echo=$ac_try;;
9204 esac
9205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9206   (eval "$ac_compile") 2>conftest.er1
9207   ac_status=$?
9208   grep -v '^ *+' conftest.er1 >conftest.err
9209   rm -f conftest.er1
9210   cat conftest.err >&5
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); } && {
9213          test -z "$ac_c_werror_flag" ||
9214          test ! -s conftest.err
9215        } && test -s conftest.$ac_objext; then
9216   ac_header_compiler=yes
9217 else
9218   echo "$as_me: failed program was:" >&5
9219 sed 's/^/| /' conftest.$ac_ext >&5
9220
9221         ac_header_compiler=no
9222 fi
9223
9224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9226 echo "${ECHO_T}$ac_header_compiler" >&6; }
9227
9228 # Is the header present?
9229 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9231 cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h.  */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h.  */
9237 #include <$ac_header>
9238 _ACEOF
9239 if { (ac_try="$ac_cpp conftest.$ac_ext"
9240 case "(($ac_try" in
9241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242   *) ac_try_echo=$ac_try;;
9243 esac
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9246   ac_status=$?
9247   grep -v '^ *+' conftest.er1 >conftest.err
9248   rm -f conftest.er1
9249   cat conftest.err >&5
9250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251   (exit $ac_status); } >/dev/null && {
9252          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9253          test ! -s conftest.err
9254        }; then
9255   ac_header_preproc=yes
9256 else
9257   echo "$as_me: failed program was:" >&5
9258 sed 's/^/| /' conftest.$ac_ext >&5
9259
9260   ac_header_preproc=no
9261 fi
9262
9263 rm -f conftest.err conftest.$ac_ext
9264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9265 echo "${ECHO_T}$ac_header_preproc" >&6; }
9266
9267 # So?  What about this header?
9268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9269   yes:no: )
9270     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9272     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9274     ac_header_preproc=yes
9275     ;;
9276   no:yes:* )
9277     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9279     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9280 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9281     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9283     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9284 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9285     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9287     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9289
9290     ;;
9291 esac
9292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9295   echo $ECHO_N "(cached) $ECHO_C" >&6
9296 else
9297   eval "$as_ac_Header=\$ac_header_preproc"
9298 fi
9299 ac_res=`eval echo '${'$as_ac_Header'}'`
9300                { echo "$as_me:$LINENO: result: $ac_res" >&5
9301 echo "${ECHO_T}$ac_res" >&6; }
9302
9303 fi
9304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9305   cat >>confdefs.h <<_ACEOF
9306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9307 _ACEOF
9308
9309 fi
9310
9311 done
9312
9313     # ... and reset
9314     CPPFLAGS="$OLDCPPFLAGS"
9315 fi
9316
9317 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9318 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
9319
9320 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9321     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9322 fi
9323 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9324     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9325 fi
9326
9327 cat > conftest.cpp << EOF
9328
9329 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9330 // so we have to introduce them this way
9331 $HAVE_VERSION_H_DEFINE
9332 $HAVE_AVIFILE_VERSION_H_DEFINE
9333
9334 #ifdef HAVE_VERSION_H
9335   #include <version.h>
9336 #endif
9337 #ifdef HAVE_AVIFILE_VERSION_H
9338   #include <avifile/version.h>
9339 #endif
9340
9341 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9342    #include <avifile.h>
9343    #include <aviplay.h>
9344    #include <avm_fourcc.h>
9345    #include <avm_creators.h>
9346    #include <StreamInfo.h>
9347    #define VERSION6
9348 #else
9349    #include <avifile.h>
9350    #include <aviplay.h>
9351    #include <aviutil.h>
9352    #define Width width
9353    #define Height height
9354    #define Data data
9355    #define Bpp bpp
9356 #endif
9357
9358 void test()
9359 {
9360   IAviReadFile* player;
9361   IAviReadStream* astream;
9362   IAviReadStream* vstream;
9363   player = CreateIAviReadFile(0);
9364   astream = player->GetStream(0, AviStream::Audio);
9365   vstream = player->GetStream(0, AviStream::Video);
9366   vstream -> StartStreaming();
9367   astream -> StartStreaming();
9368 #ifndef VERSION6
9369   MainAVIHeader head;
9370   player->GetFileHeader(&head);
9371   head.dwMicroSecPerFrame;
9372   head.dwTotalFrames;
9373   head.dwStreams;
9374   head.dwWidth;
9375   head.dwHeight;
9376   head.dwMicroSecPerFrame;
9377   astream->GetEndPos(),
9378   astream->GetEndTime());
9379   player->StreamCount();
9380 #else
9381   StreamInfo*audioinfo;
9382   StreamInfo*videoinfo;
9383   audioinfo = astream->GetStreamInfo();
9384   videoinfo = vstream->GetStreamInfo();
9385   videoinfo->GetVideoWidth();
9386   videoinfo->GetVideoHeight();
9387   audioinfo->GetAudioSamplesPerSec();
9388   videoinfo->GetFps();
9389 #endif
9390   CImage*img = vstream->GetFrame();
9391   img->ToRGB();
9392   img->Data();
9393   img->Bpp();
9394   img->Width();
9395   img->Height();
9396   WAVEFORMATEX wave;
9397   astream->GetAudioFormatInfo(&wave,0);
9398   uint_t a,b;
9399   astream->ReadFrames(0,0,0,a,b);
9400 }
9401 int main (int argc, char*argv)
9402 {
9403     return 0;
9404 }
9405 EOF
9406
9407 if test "x$AVIFILE_CONFIG" '!=' "x";then
9408     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9409     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9410     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9411     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9412       { echo "$as_me:$LINENO: result: yes" >&5
9413 echo "${ECHO_T}yes" >&6; }
9414       AVIFILE=true
9415       export AVIFILE
9416       cat >>confdefs.h <<_ACEOF
9417 #define AVIFILE true
9418 _ACEOF
9419
9420     else
9421       echo "configure: failed program was:" >&5
9422       cat conftest.cpp >&5
9423       { echo "$as_me:$LINENO: result: no" >&5
9424 echo "${ECHO_T}no" >&6; }
9425     fi
9426 else
9427     { echo "$as_me:$LINENO: result: no" >&5
9428 echo "${ECHO_T}no" >&6; }
9429 fi
9430 rm -f conftest*
9431
9432 if test "x${AVIFILE}" = "xtrue"; then
9433     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9434     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9435     cat >>confdefs.h <<_ACEOF
9436 #define HAVE_AVIFILE 1
9437 _ACEOF
9438
9439 fi
9440
9441 if test "x${WIN32}" != "x"; then
9442     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9443     #if test "x${AVIFIL32}" != "x"; then
9444     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9445     #fi
9446     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9447     AVIFIL32=true
9448 fi
9449
9450
9451
9452 # ------------------------------------------------------------------
9453
9454 if test "x${UNCOMPRESS}" = "xgzip"; then
9455     cat >>confdefs.h <<_ACEOF
9456 #define USE_GZIP 1
9457 _ACEOF
9458
9459 fi
9460
9461
9462 # ------------------------------------------------------------------
9463
9464
9465 { echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
9466 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6; }
9467
9468 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9469     PY_VERSION=unknown
9470 else
9471     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9472         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9473     fi
9474     # iterate through version 2.2 to 2.5
9475     for v in 2 3 4 5; do
9476         # Linux
9477         if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
9478             PY_VERSION=2.$v
9479             PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
9480             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9481         # Mac OS X
9482         elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9483             #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
9484             PY_VERSION=2.$v
9485             PYTHON_LIB="-framework Python"
9486             if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
9487                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9488             else
9489                 PYTHON_LIB2="$PYTHON_LIB"
9490             fi
9491             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9492         # Mac OS X [Fink]:
9493         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9494                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9495                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9496                   ")" \
9497                -a -f "/sw/include/python2.$v/Python.h" \
9498                -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9499             PY_VERSION=2.$v
9500             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9501             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9502         fi
9503     done
9504 fi
9505
9506 if test "x$PY_VERSION" "!=" "x"; then
9507     { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9508 echo "${ECHO_T}$PY_VERSION" >&6; }
9509     export PYTHON_INCLUDES PYTHON_LIB
9510
9511
9512     { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9513 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
9514
9515     cat > conftest.c << EOF
9516 #include <Python.h>
9517 #include <Imaging.h>
9518
9519 int main()
9520 {
9521     int ret;
9522     ret = Py_Main(0, 0);
9523     int x; // check also for gcc 2.95.x incompatibilities
9524     return ret;
9525 }
9526 EOF
9527     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9528     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9529         { echo "$as_me:$LINENO: result: yes" >&5
9530 echo "${ECHO_T}yes" >&6; }
9531         PYTHON_OK=yes
9532     else
9533         ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9534         if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9535             { echo "$as_me:$LINENO: result: yes" >&5
9536 echo "${ECHO_T}yes" >&6; }
9537             PYTHON_LIB="${PYTHON_LIB2}"
9538             PYTHON_OK=yes
9539         else
9540             echo "configure: failed program was:" >&5
9541             cat conftest.c >&5
9542             { echo "$as_me:$LINENO: result: no" >&5
9543 echo "${ECHO_T}no" >&6; }
9544         fi
9545     fi
9546     rm -f conftest*
9547 else
9548     { echo "$as_me:$LINENO: result: nope" >&5
9549 echo "${ECHO_T}nope" >&6; }
9550 fi
9551
9552
9553 if test "x$PYTHON_OK" '!=' "xyes";then
9554     echo all install uninstall clean: > lib/python/Makefile
9555     # fail silently- the most users won't have any need for the
9556     # python interface anyway
9557 else
9558     pythonrfxswf="lib/python/Makefile"
9559 fi
9560
9561 # ------------------------------------------------------------------
9562
9563 { echo "$as_me:$LINENO: checking for missing libraries" >&5
9564 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
9565
9566 if test "x$ZLIBMISSING" = "xtrue";then
9567     MISSINGLIBS="${MISSINGLIBS} zlib"
9568     DISABLEPNG2SWF=true
9569     PARTIAL=true
9570 fi
9571 if test "x$JPEGLIBMISSING" = "xtrue";then
9572     MISSINGLIBS="${MISSINGLIBS} jpeglib"
9573     DISABLEPDF2SWF=true
9574     DISABLEJPEG2SWF=true
9575     PARTIAL=true
9576 fi
9577 #if test "x$T1LIBMISSING" = "xtrue";then
9578 #    MISSINGLIBS="${MISSINGLIBS} t1lib"
9579 #fi
9580 if test "x$UNGIFMISSING" = "xtrue";then
9581     DISABLEGIF2SWF=true
9582     MISSINGLIBS="${MISSINGLIBS} ungif"
9583     PARTIAL=true
9584 fi
9585
9586 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
9587     DISABLEPDF2SWF=true;
9588     DISABLEJPEG2SWF=true;
9589     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9590     PARTIAL=true
9591 fi
9592 if test "x$HAVE_FREETYPE" '!=' "x1"; then
9593     DISABLEPDF2SWF=true;
9594     MISSINGLIBS="${MISSINGLIBS} freetype"
9595     PARTIAL=true
9596 fi
9597 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
9598 #    MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9599 #fi
9600 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
9601     DISABLEGIF2SWF=true
9602     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
9603     PARTIAL=true
9604 fi
9605 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
9606     DISABLEPNG2SWF=true;
9607     MISSINGLIBS="${MISSINGLIBS} zlib.h"
9608     PARTIAL=true
9609 fi
9610 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9611 #    MISSINGLIBS="${MISSINGLIBS} avifile"
9612 #fi
9613
9614 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
9615 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
9616
9617 # ------------------------------------------------------------------
9618
9619 if test "x${MISSINGLIBS}" '!=' "x"; then
9620   echo "***************************************************"
9621   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
9622 fi
9623
9624 avi2swf="avi2swf/Makefile"
9625 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9626  #don't whine, avi2swf is outdated anyway
9627  #echo "* Disabling avi2swf tool..."
9628  echo all install uninstall clean: > avi2swf/Makefile
9629  avi2swf=
9630 fi
9631
9632 pdf2swf_makefile="lib/pdf/Makefile"
9633 PDF2SWF='pdf2swf$(E)'
9634 LIBPDF='libpdf$(A)'
9635
9636 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
9637   echo "* Disabling pdf2swf tool..."
9638   rm -f lib/pdf/Makefile
9639   echo all install uninstall clean: > lib/pdf/Makefile
9640   pdf2swf_makefile=""
9641   PDF2SWF=
9642   LIBPDF=
9643 fi
9644
9645
9646
9647 if test "x${ZLIBMISSING}" = "xtrue"; then
9648   echo
9649   echo "* Warning! Without zlib, you will not be able to read"
9650   echo "* or write compressed Flash MX files!"
9651 fi
9652
9653 JPEG2SWF='jpeg2swf$(E)'
9654 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
9655   echo "* Disabling jpeg2swf tool..."
9656   JPEG2SWF=
9657 fi
9658 export JPEG2SWF
9659
9660
9661 GIF2SWF='gif2swf$(E)'
9662 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
9663   echo "* Disabling gif2swf tool..."
9664   GIF2SWF=
9665 fi
9666 export GIF2SWF
9667
9668
9669 PNG2SWF='png2swf$(E)'
9670 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
9671   echo "* Disabling png2swf tool..."
9672   PNG2SWF=
9673 fi
9674 export PNG2SWF
9675
9676
9677 if test "x${MISSINGLIBS}" '!=' "x"; then
9678   if test "x${PARTIAL}" '=' "x"; then
9679     echo "* (never mind)"
9680   fi
9681   echo "***************************************************"
9682 fi
9683
9684 # ------------------------------------------------------------------
9685
9686 if test -f "release.in"; then release_in="./release"; fi
9687 if test -f "wx/Makefile.in"; then wx_in="wx/Makefile"; fi
9688 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"
9689 ac_config_files="$ac_config_files ${FILES}"
9690
9691 cat >confcache <<\_ACEOF
9692 # This file is a shell script that caches the results of configure
9693 # tests run on this system so they can be shared between configure
9694 # scripts and configure runs, see configure's option --config-cache.
9695 # It is not useful on other systems.  If it contains results you don't
9696 # want to keep, you may remove or edit it.
9697 #
9698 # config.status only pays attention to the cache file if you give it
9699 # the --recheck option to rerun configure.
9700 #
9701 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9702 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9703 # following values.
9704
9705 _ACEOF
9706
9707 # The following way of writing the cache mishandles newlines in values,
9708 # but we know of no workaround that is simple, portable, and efficient.
9709 # So, we kill variables containing newlines.
9710 # Ultrix sh set writes to stderr and can't be redirected directly,
9711 # and sets the high bit in the cache file unless we assign to the vars.
9712 (
9713   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9714     eval ac_val=\$$ac_var
9715     case $ac_val in #(
9716     *${as_nl}*)
9717       case $ac_var in #(
9718       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9719 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9720       esac
9721       case $ac_var in #(
9722       _ | IFS | as_nl) ;; #(
9723       *) $as_unset $ac_var ;;
9724       esac ;;
9725     esac
9726   done
9727
9728   (set) 2>&1 |
9729     case $as_nl`(ac_space=' '; set) 2>&1` in #(
9730     *${as_nl}ac_space=\ *)
9731       # `set' does not quote correctly, so add quotes (double-quote
9732       # substitution turns \\\\ into \\, and sed turns \\ into \).
9733       sed -n \
9734         "s/'/'\\\\''/g;
9735           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9736       ;; #(
9737     *)
9738       # `set' quotes correctly as required by POSIX, so do not add quotes.
9739       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9740       ;;
9741     esac |
9742     sort
9743 ) |
9744   sed '
9745      /^ac_cv_env_/b end
9746      t clear
9747      :clear
9748      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9749      t end
9750      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9751      :end' >>confcache
9752 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9753   if test -w "$cache_file"; then
9754     test "x$cache_file" != "x/dev/null" &&
9755       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9756 echo "$as_me: updating cache $cache_file" >&6;}
9757     cat confcache >$cache_file
9758   else
9759     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9760 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9761   fi
9762 fi
9763 rm -f confcache
9764
9765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9766 # Let make expand exec_prefix.
9767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9768
9769 DEFS=-DHAVE_CONFIG_H
9770
9771 ac_libobjs=
9772 ac_ltlibobjs=
9773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9774   # 1. Remove the extension, and $U if already installed.
9775   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9776   ac_i=`echo "$ac_i" | sed "$ac_script"`
9777   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
9778   #    will be set to the directory where LIBOBJS objects are built.
9779   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9780   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9781 done
9782 LIBOBJS=$ac_libobjs
9783
9784 LTLIBOBJS=$ac_ltlibobjs
9785
9786
9787
9788 : ${CONFIG_STATUS=./config.status}
9789 ac_clean_files_save=$ac_clean_files
9790 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9791 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9792 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9793 cat >$CONFIG_STATUS <<_ACEOF
9794 #! $SHELL
9795 # Generated by $as_me.
9796 # Run this file to recreate the current configuration.
9797 # Compiler output produced by configure, useful for debugging
9798 # configure, is in config.log if it exists.
9799
9800 debug=false
9801 ac_cs_recheck=false
9802 ac_cs_silent=false
9803 SHELL=\${CONFIG_SHELL-$SHELL}
9804 _ACEOF
9805
9806 cat >>$CONFIG_STATUS <<\_ACEOF
9807 ## --------------------- ##
9808 ## M4sh Initialization.  ##
9809 ## --------------------- ##
9810
9811 # Be more Bourne compatible
9812 DUALCASE=1; export DUALCASE # for MKS sh
9813 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9814   emulate sh
9815   NULLCMD=:
9816   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9817   # is contrary to our usage.  Disable this feature.
9818   alias -g '${1+"$@"}'='"$@"'
9819   setopt NO_GLOB_SUBST
9820 else
9821   case `(set -o) 2>/dev/null` in
9822   *posix*) set -o posix ;;
9823 esac
9824
9825 fi
9826
9827
9828
9829
9830 # PATH needs CR
9831 # Avoid depending upon Character Ranges.
9832 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9833 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9834 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9835 as_cr_digits='0123456789'
9836 as_cr_alnum=$as_cr_Letters$as_cr_digits
9837
9838 # The user is always right.
9839 if test "${PATH_SEPARATOR+set}" != set; then
9840   echo "#! /bin/sh" >conf$$.sh
9841   echo  "exit 0"   >>conf$$.sh
9842   chmod +x conf$$.sh
9843   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9844     PATH_SEPARATOR=';'
9845   else
9846     PATH_SEPARATOR=:
9847   fi
9848   rm -f conf$$.sh
9849 fi
9850
9851 # Support unset when possible.
9852 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9853   as_unset=unset
9854 else
9855   as_unset=false
9856 fi
9857
9858
9859 # IFS
9860 # We need space, tab and new line, in precisely that order.  Quoting is
9861 # there to prevent editors from complaining about space-tab.
9862 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9863 # splitting by setting IFS to empty value.)
9864 as_nl='
9865 '
9866 IFS=" ""        $as_nl"
9867
9868 # Find who we are.  Look in the path if we contain no directory separator.
9869 case $0 in
9870   *[\\/]* ) as_myself=$0 ;;
9871   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9872 for as_dir in $PATH
9873 do
9874   IFS=$as_save_IFS
9875   test -z "$as_dir" && as_dir=.
9876   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9877 done
9878 IFS=$as_save_IFS
9879
9880      ;;
9881 esac
9882 # We did not find ourselves, most probably we were run as `sh COMMAND'
9883 # in which case we are not to be found in the path.
9884 if test "x$as_myself" = x; then
9885   as_myself=$0
9886 fi
9887 if test ! -f "$as_myself"; then
9888   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9889   { (exit 1); exit 1; }
9890 fi
9891
9892 # Work around bugs in pre-3.0 UWIN ksh.
9893 for as_var in ENV MAIL MAILPATH
9894 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9895 done
9896 PS1='$ '
9897 PS2='> '
9898 PS4='+ '
9899
9900 # NLS nuisances.
9901 for as_var in \
9902   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9903   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9904   LC_TELEPHONE LC_TIME
9905 do
9906   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9907     eval $as_var=C; export $as_var
9908   else
9909     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9910   fi
9911 done
9912
9913 # Required to use basename.
9914 if expr a : '\(a\)' >/dev/null 2>&1 &&
9915    test "X`expr 00001 : '.*\(...\)'`" = X001; then
9916   as_expr=expr
9917 else
9918   as_expr=false
9919 fi
9920
9921 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9922   as_basename=basename
9923 else
9924   as_basename=false
9925 fi
9926
9927
9928 # Name of the executable.
9929 as_me=`$as_basename -- "$0" ||
9930 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9931          X"$0" : 'X\(//\)$' \| \
9932          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9933 echo X/"$0" |
9934     sed '/^.*\/\([^/][^/]*\)\/*$/{
9935             s//\1/
9936             q
9937           }
9938           /^X\/\(\/\/\)$/{
9939             s//\1/
9940             q
9941           }
9942           /^X\/\(\/\).*/{
9943             s//\1/
9944             q
9945           }
9946           s/.*/./; q'`
9947
9948 # CDPATH.
9949 $as_unset CDPATH
9950
9951
9952
9953   as_lineno_1=$LINENO
9954   as_lineno_2=$LINENO
9955   test "x$as_lineno_1" != "x$as_lineno_2" &&
9956   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9957
9958   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9959   # uniformly replaced by the line number.  The first 'sed' inserts a
9960   # line-number line after each line using $LINENO; the second 'sed'
9961   # does the real work.  The second script uses 'N' to pair each
9962   # line-number line with the line containing $LINENO, and appends
9963   # trailing '-' during substitution so that $LINENO is not a special
9964   # case at line end.
9965   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9966   # scripts with optimization help from Paolo Bonzini.  Blame Lee
9967   # E. McMahon (1931-1989) for sed's syntax.  :-)
9968   sed -n '
9969     p
9970     /[$]LINENO/=
9971   ' <$as_myself |
9972     sed '
9973       s/[$]LINENO.*/&-/
9974       t lineno
9975       b
9976       :lineno
9977       N
9978       :loop
9979       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9980       t loop
9981       s/-\n.*//
9982     ' >$as_me.lineno &&
9983   chmod +x "$as_me.lineno" ||
9984     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9985    { (exit 1); exit 1; }; }
9986
9987   # Don't try to exec as it changes $[0], causing all sort of problems
9988   # (the dirname of $[0] is not the place where we might find the
9989   # original and so on.  Autoconf is especially sensitive to this).
9990   . "./$as_me.lineno"
9991   # Exit status is that of the last command.
9992   exit
9993 }
9994
9995
9996 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9997   as_dirname=dirname
9998 else
9999   as_dirname=false
10000 fi
10001
10002 ECHO_C= ECHO_N= ECHO_T=
10003 case `echo -n x` in
10004 -n*)
10005   case `echo 'x\c'` in
10006   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10007   *)   ECHO_C='\c';;
10008   esac;;
10009 *)
10010   ECHO_N='-n';;
10011 esac
10012
10013 if expr a : '\(a\)' >/dev/null 2>&1 &&
10014    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10015   as_expr=expr
10016 else
10017   as_expr=false
10018 fi
10019
10020 rm -f conf$$ conf$$.exe conf$$.file
10021 if test -d conf$$.dir; then
10022   rm -f conf$$.dir/conf$$.file
10023 else
10024   rm -f conf$$.dir
10025   mkdir conf$$.dir
10026 fi
10027 echo >conf$$.file
10028 if ln -s conf$$.file conf$$ 2>/dev/null; then
10029   as_ln_s='ln -s'
10030   # ... but there are two gotchas:
10031   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10032   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10033   # In both cases, we have to default to `cp -p'.
10034   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10035     as_ln_s='cp -p'
10036 elif ln conf$$.file conf$$ 2>/dev/null; then
10037   as_ln_s=ln
10038 else
10039   as_ln_s='cp -p'
10040 fi
10041 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10042 rmdir conf$$.dir 2>/dev/null
10043
10044 if mkdir -p . 2>/dev/null; then
10045   as_mkdir_p=:
10046 else
10047   test -d ./-p && rmdir ./-p
10048   as_mkdir_p=false
10049 fi
10050
10051 if test -x / >/dev/null 2>&1; then
10052   as_test_x='test -x'
10053 else
10054   if ls -dL / >/dev/null 2>&1; then
10055     as_ls_L_option=L
10056   else
10057     as_ls_L_option=
10058   fi
10059   as_test_x='
10060     eval sh -c '\''
10061       if test -d "$1"; then
10062         test -d "$1/.";
10063       else
10064         case $1 in
10065         -*)set "./$1";;
10066         esac;
10067         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10068         ???[sx]*):;;*)false;;esac;fi
10069     '\'' sh
10070   '
10071 fi
10072 as_executable_p=$as_test_x
10073
10074 # Sed expression to map a string onto a valid CPP name.
10075 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10076
10077 # Sed expression to map a string onto a valid variable name.
10078 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10079
10080
10081 exec 6>&1
10082
10083 # Save the log message, to keep $[0] and so on meaningful, and to
10084 # report actual input values of CONFIG_FILES etc. instead of their
10085 # values after options handling.
10086 ac_log="
10087 This file was extended by $as_me, which was
10088 generated by GNU Autoconf 2.61.  Invocation command line was
10089
10090   CONFIG_FILES    = $CONFIG_FILES
10091   CONFIG_HEADERS  = $CONFIG_HEADERS
10092   CONFIG_LINKS    = $CONFIG_LINKS
10093   CONFIG_COMMANDS = $CONFIG_COMMANDS
10094   $ $0 $@
10095
10096 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10097 "
10098
10099 _ACEOF
10100
10101 cat >>$CONFIG_STATUS <<_ACEOF
10102 # Files that config.status was made for.
10103 config_files="$ac_config_files"
10104 config_headers="$ac_config_headers"
10105
10106 _ACEOF
10107
10108 cat >>$CONFIG_STATUS <<\_ACEOF
10109 ac_cs_usage="\
10110 \`$as_me' instantiates files from templates according to the
10111 current configuration.
10112
10113 Usage: $0 [OPTIONS] [FILE]...
10114
10115   -h, --help       print this help, then exit
10116   -V, --version    print version number and configuration settings, then exit
10117   -q, --quiet      do not print progress messages
10118   -d, --debug      don't remove temporary files
10119       --recheck    update $as_me by reconfiguring in the same conditions
10120   --file=FILE[:TEMPLATE]
10121                    instantiate the configuration file FILE
10122   --header=FILE[:TEMPLATE]
10123                    instantiate the configuration header FILE
10124
10125 Configuration files:
10126 $config_files
10127
10128 Configuration headers:
10129 $config_headers
10130
10131 Report bugs to <bug-autoconf@gnu.org>."
10132
10133 _ACEOF
10134 cat >>$CONFIG_STATUS <<_ACEOF
10135 ac_cs_version="\\
10136 config.status
10137 configured by $0, generated by GNU Autoconf 2.61,
10138   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10139
10140 Copyright (C) 2006 Free Software Foundation, Inc.
10141 This config.status script is free software; the Free Software Foundation
10142 gives unlimited permission to copy, distribute and modify it."
10143
10144 ac_pwd='$ac_pwd'
10145 srcdir='$srcdir'
10146 INSTALL='$INSTALL'
10147 _ACEOF
10148
10149 cat >>$CONFIG_STATUS <<\_ACEOF
10150 # If no file are specified by the user, then we need to provide default
10151 # value.  By we need to know if files were specified by the user.
10152 ac_need_defaults=:
10153 while test $# != 0
10154 do
10155   case $1 in
10156   --*=*)
10157     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10158     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10159     ac_shift=:
10160     ;;
10161   *)
10162     ac_option=$1
10163     ac_optarg=$2
10164     ac_shift=shift
10165     ;;
10166   esac
10167
10168   case $ac_option in
10169   # Handling of the options.
10170   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10171     ac_cs_recheck=: ;;
10172   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10173     echo "$ac_cs_version"; exit ;;
10174   --debug | --debu | --deb | --de | --d | -d )
10175     debug=: ;;
10176   --file | --fil | --fi | --f )
10177     $ac_shift
10178     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10179     ac_need_defaults=false;;
10180   --header | --heade | --head | --hea )
10181     $ac_shift
10182     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10183     ac_need_defaults=false;;
10184   --he | --h)
10185     # Conflict between --help and --header
10186     { echo "$as_me: error: ambiguous option: $1
10187 Try \`$0 --help' for more information." >&2
10188    { (exit 1); exit 1; }; };;
10189   --help | --hel | -h )
10190     echo "$ac_cs_usage"; exit ;;
10191   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10192   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10193     ac_cs_silent=: ;;
10194
10195   # This is an error.
10196   -*) { echo "$as_me: error: unrecognized option: $1
10197 Try \`$0 --help' for more information." >&2
10198    { (exit 1); exit 1; }; } ;;
10199
10200   *) ac_config_targets="$ac_config_targets $1"
10201      ac_need_defaults=false ;;
10202
10203   esac
10204   shift
10205 done
10206
10207 ac_configure_extra_args=
10208
10209 if $ac_cs_silent; then
10210   exec 6>/dev/null
10211   ac_configure_extra_args="$ac_configure_extra_args --silent"
10212 fi
10213
10214 _ACEOF
10215 cat >>$CONFIG_STATUS <<_ACEOF
10216 if \$ac_cs_recheck; then
10217   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10218   CONFIG_SHELL=$SHELL
10219   export CONFIG_SHELL
10220   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10221 fi
10222
10223 _ACEOF
10224 cat >>$CONFIG_STATUS <<\_ACEOF
10225 exec 5>>config.log
10226 {
10227   echo
10228   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10229 ## Running $as_me. ##
10230 _ASBOX
10231   echo "$ac_log"
10232 } >&5
10233
10234 _ACEOF
10235 cat >>$CONFIG_STATUS <<_ACEOF
10236 _ACEOF
10237
10238 cat >>$CONFIG_STATUS <<\_ACEOF
10239
10240 # Handling of arguments.
10241 for ac_config_target in $ac_config_targets
10242 do
10243   case $ac_config_target in
10244     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10245     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10246
10247   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10248 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10249    { (exit 1); exit 1; }; };;
10250   esac
10251 done
10252
10253
10254 # If the user did not use the arguments to specify the items to instantiate,
10255 # then the envvar interface is used.  Set only those that are not.
10256 # We use the long form for the default assignment because of an extremely
10257 # bizarre bug on SunOS 4.1.3.
10258 if $ac_need_defaults; then
10259   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10260   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10261 fi
10262
10263 # Have a temporary directory for convenience.  Make it in the build tree
10264 # simply because there is no reason against having it here, and in addition,
10265 # creating and moving files from /tmp can sometimes cause problems.
10266 # Hook for its removal unless debugging.
10267 # Note that there is a small window in which the directory will not be cleaned:
10268 # after its creation but before its name has been assigned to `$tmp'.
10269 $debug ||
10270 {
10271   tmp=
10272   trap 'exit_status=$?
10273   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10274 ' 0
10275   trap '{ (exit 1); exit 1; }' 1 2 13 15
10276 }
10277 # Create a (secure) tmp directory for tmp files.
10278
10279 {
10280   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10281   test -n "$tmp" && test -d "$tmp"
10282 }  ||
10283 {
10284   tmp=./conf$$-$RANDOM
10285   (umask 077 && mkdir "$tmp")
10286 } ||
10287 {
10288    echo "$me: cannot create a temporary directory in ." >&2
10289    { (exit 1); exit 1; }
10290 }
10291
10292 #
10293 # Set up the sed scripts for CONFIG_FILES section.
10294 #
10295
10296 # No need to generate the scripts if there are no CONFIG_FILES.
10297 # This happens for instance when ./config.status config.h
10298 if test -n "$CONFIG_FILES"; then
10299
10300 _ACEOF
10301
10302
10303
10304 ac_delim='%!_!# '
10305 for ac_last_try in false false false false false :; do
10306   cat >conf$$subs.sed <<_ACEOF
10307 SHELL!$SHELL$ac_delim
10308 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10309 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10310 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10311 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10312 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10313 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10314 exec_prefix!$exec_prefix$ac_delim
10315 prefix!$prefix$ac_delim
10316 program_transform_name!$program_transform_name$ac_delim
10317 bindir!$bindir$ac_delim
10318 sbindir!$sbindir$ac_delim
10319 libexecdir!$libexecdir$ac_delim
10320 datarootdir!$datarootdir$ac_delim
10321 datadir!$datadir$ac_delim
10322 sysconfdir!$sysconfdir$ac_delim
10323 sharedstatedir!$sharedstatedir$ac_delim
10324 localstatedir!$localstatedir$ac_delim
10325 includedir!$includedir$ac_delim
10326 oldincludedir!$oldincludedir$ac_delim
10327 docdir!$docdir$ac_delim
10328 infodir!$infodir$ac_delim
10329 htmldir!$htmldir$ac_delim
10330 dvidir!$dvidir$ac_delim
10331 pdfdir!$pdfdir$ac_delim
10332 psdir!$psdir$ac_delim
10333 libdir!$libdir$ac_delim
10334 localedir!$localedir$ac_delim
10335 mandir!$mandir$ac_delim
10336 DEFS!$DEFS$ac_delim
10337 ECHO_C!$ECHO_C$ac_delim
10338 ECHO_N!$ECHO_N$ac_delim
10339 ECHO_T!$ECHO_T$ac_delim
10340 LIBS!$LIBS$ac_delim
10341 build_alias!$build_alias$ac_delim
10342 host_alias!$host_alias$ac_delim
10343 target_alias!$target_alias$ac_delim
10344 build!$build$ac_delim
10345 build_cpu!$build_cpu$ac_delim
10346 build_vendor!$build_vendor$ac_delim
10347 build_os!$build_os$ac_delim
10348 host!$host$ac_delim
10349 host_cpu!$host_cpu$ac_delim
10350 host_vendor!$host_vendor$ac_delim
10351 host_os!$host_os$ac_delim
10352 SHARED!$SHARED$ac_delim
10353 CC!$CC$ac_delim
10354 CFLAGS!$CFLAGS$ac_delim
10355 LDFLAGS!$LDFLAGS$ac_delim
10356 CPPFLAGS!$CPPFLAGS$ac_delim
10357 ac_ct_CC!$ac_ct_CC$ac_delim
10358 EXEEXT!$EXEEXT$ac_delim
10359 OBJEXT!$OBJEXT$ac_delim
10360 CXX!$CXX$ac_delim
10361 CXXFLAGS!$CXXFLAGS$ac_delim
10362 ac_ct_CXX!$ac_ct_CXX$ac_delim
10363 CPP!$CPP$ac_delim
10364 RANLIB!$RANLIB$ac_delim
10365 SET_MAKE!$SET_MAKE$ac_delim
10366 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10367 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10368 INSTALL_DATA!$INSTALL_DATA$ac_delim
10369 LN_S!$LN_S$ac_delim
10370 UNCOMPRESS!$UNCOMPRESS$ac_delim
10371 AREXT!$AREXT$ac_delim
10372 AR!$AR$ac_delim
10373 SLEXT!$SLEXT$ac_delim
10374 CXXLIBS!$CXXLIBS$ac_delim
10375 STRIP!$STRIP$ac_delim
10376 target!$target$ac_delim
10377 target_cpu!$target_cpu$ac_delim
10378 target_vendor!$target_vendor$ac_delim
10379 target_os!$target_os$ac_delim
10380 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
10381 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
10382 GREP!$GREP$ac_delim
10383 EGREP!$EGREP$ac_delim
10384 PACKAGE!$PACKAGE$ac_delim
10385 VERSION!$VERSION$ac_delim
10386 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10387 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
10388 lame_objects!$lame_objects$ac_delim
10389 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
10390 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
10391 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
10392 USE_GZIP!$USE_GZIP$ac_delim
10393 PYTHON_LIB!$PYTHON_LIB$ac_delim
10394 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
10395 PDF2SWF!$PDF2SWF$ac_delim
10396 LIBPDF!$LIBPDF$ac_delim
10397 JPEG2SWF!$JPEG2SWF$ac_delim
10398 GIF2SWF!$GIF2SWF$ac_delim
10399 PNG2SWF!$PNG2SWF$ac_delim
10400 LIBOBJS!$LIBOBJS$ac_delim
10401 LTLIBOBJS!$LTLIBOBJS$ac_delim
10402 _ACEOF
10403
10404   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
10405     break
10406   elif $ac_last_try; then
10407     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10408 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10409    { (exit 1); exit 1; }; }
10410   else
10411     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10412   fi
10413 done
10414
10415 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10416 if test -n "$ac_eof"; then
10417   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10418   ac_eof=`expr $ac_eof + 1`
10419 fi
10420
10421 cat >>$CONFIG_STATUS <<_ACEOF
10422 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10423 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10424 _ACEOF
10425 sed '
10426 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10427 s/^/s,@/; s/!/@,|#_!!_#|/
10428 :n
10429 t n
10430 s/'"$ac_delim"'$/,g/; t
10431 s/$/\\/; p
10432 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10433 ' >>$CONFIG_STATUS <conf$$subs.sed
10434 rm -f conf$$subs.sed
10435 cat >>$CONFIG_STATUS <<_ACEOF
10436 :end
10437 s/|#_!!_#|//g
10438 CEOF$ac_eof
10439 _ACEOF
10440
10441
10442 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10443 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10444 # trailing colons and then remove the whole line if VPATH becomes empty
10445 # (actually we leave an empty line to preserve line numbers).
10446 if test "x$srcdir" = x.; then
10447   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10448 s/:*\$(srcdir):*/:/
10449 s/:*\${srcdir}:*/:/
10450 s/:*@srcdir@:*/:/
10451 s/^\([^=]*=[     ]*\):*/\1/
10452 s/:*$//
10453 s/^[^=]*=[       ]*$//
10454 }'
10455 fi
10456
10457 cat >>$CONFIG_STATUS <<\_ACEOF
10458 fi # test -n "$CONFIG_FILES"
10459
10460
10461 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
10462 do
10463   case $ac_tag in
10464   :[FHLC]) ac_mode=$ac_tag; continue;;
10465   esac
10466   case $ac_mode$ac_tag in
10467   :[FHL]*:*);;
10468   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10469 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10470    { (exit 1); exit 1; }; };;
10471   :[FH]-) ac_tag=-:-;;
10472   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10473   esac
10474   ac_save_IFS=$IFS
10475   IFS=:
10476   set x $ac_tag
10477   IFS=$ac_save_IFS
10478   shift
10479   ac_file=$1
10480   shift
10481
10482   case $ac_mode in
10483   :L) ac_source=$1;;
10484   :[FH])
10485     ac_file_inputs=
10486     for ac_f
10487     do
10488       case $ac_f in
10489       -) ac_f="$tmp/stdin";;
10490       *) # Look for the file first in the build tree, then in the source tree
10491          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10492          # because $ac_f cannot contain `:'.
10493          test -f "$ac_f" ||
10494            case $ac_f in
10495            [\\/$]*) false;;
10496            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10497            esac ||
10498            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10499 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10500    { (exit 1); exit 1; }; };;
10501       esac
10502       ac_file_inputs="$ac_file_inputs $ac_f"
10503     done
10504
10505     # Let's still pretend it is `configure' which instantiates (i.e., don't
10506     # use $as_me), people would be surprised to read:
10507     #    /* config.h.  Generated by config.status.  */
10508     configure_input="Generated from "`IFS=:
10509           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10510     if test x"$ac_file" != x-; then
10511       configure_input="$ac_file.  $configure_input"
10512       { echo "$as_me:$LINENO: creating $ac_file" >&5
10513 echo "$as_me: creating $ac_file" >&6;}
10514     fi
10515
10516     case $ac_tag in
10517     *:-:* | *:-) cat >"$tmp/stdin";;
10518     esac
10519     ;;
10520   esac
10521
10522   ac_dir=`$as_dirname -- "$ac_file" ||
10523 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10524          X"$ac_file" : 'X\(//\)[^/]' \| \
10525          X"$ac_file" : 'X\(//\)$' \| \
10526          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10527 echo X"$ac_file" |
10528     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10529             s//\1/
10530             q
10531           }
10532           /^X\(\/\/\)[^/].*/{
10533             s//\1/
10534             q
10535           }
10536           /^X\(\/\/\)$/{
10537             s//\1/
10538             q
10539           }
10540           /^X\(\/\).*/{
10541             s//\1/
10542             q
10543           }
10544           s/.*/./; q'`
10545   { as_dir="$ac_dir"
10546   case $as_dir in #(
10547   -*) as_dir=./$as_dir;;
10548   esac
10549   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10550     as_dirs=
10551     while :; do
10552       case $as_dir in #(
10553       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10554       *) as_qdir=$as_dir;;
10555       esac
10556       as_dirs="'$as_qdir' $as_dirs"
10557       as_dir=`$as_dirname -- "$as_dir" ||
10558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10559          X"$as_dir" : 'X\(//\)[^/]' \| \
10560          X"$as_dir" : 'X\(//\)$' \| \
10561          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10562 echo X"$as_dir" |
10563     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10564             s//\1/
10565             q
10566           }
10567           /^X\(\/\/\)[^/].*/{
10568             s//\1/
10569             q
10570           }
10571           /^X\(\/\/\)$/{
10572             s//\1/
10573             q
10574           }
10575           /^X\(\/\).*/{
10576             s//\1/
10577             q
10578           }
10579           s/.*/./; q'`
10580       test -d "$as_dir" && break
10581     done
10582     test -z "$as_dirs" || eval "mkdir $as_dirs"
10583   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10584 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10585    { (exit 1); exit 1; }; }; }
10586   ac_builddir=.
10587
10588 case "$ac_dir" in
10589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10590 *)
10591   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10592   # A ".." for each directory in $ac_dir_suffix.
10593   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10594   case $ac_top_builddir_sub in
10595   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10596   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10597   esac ;;
10598 esac
10599 ac_abs_top_builddir=$ac_pwd
10600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10601 # for backward compatibility:
10602 ac_top_builddir=$ac_top_build_prefix
10603
10604 case $srcdir in
10605   .)  # We are building in place.
10606     ac_srcdir=.
10607     ac_top_srcdir=$ac_top_builddir_sub
10608     ac_abs_top_srcdir=$ac_pwd ;;
10609   [\\/]* | ?:[\\/]* )  # Absolute name.
10610     ac_srcdir=$srcdir$ac_dir_suffix;
10611     ac_top_srcdir=$srcdir
10612     ac_abs_top_srcdir=$srcdir ;;
10613   *) # Relative name.
10614     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10615     ac_top_srcdir=$ac_top_build_prefix$srcdir
10616     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10617 esac
10618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10619
10620
10621   case $ac_mode in
10622   :F)
10623   #
10624   # CONFIG_FILE
10625   #
10626
10627   case $INSTALL in
10628   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10629   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10630   esac
10631 _ACEOF
10632
10633 cat >>$CONFIG_STATUS <<\_ACEOF
10634 # If the template does not know about datarootdir, expand it.
10635 # FIXME: This hack should be removed a few years after 2.60.
10636 ac_datarootdir_hack=; ac_datarootdir_seen=
10637
10638 case `sed -n '/datarootdir/ {
10639   p
10640   q
10641 }
10642 /@datadir@/p
10643 /@docdir@/p
10644 /@infodir@/p
10645 /@localedir@/p
10646 /@mandir@/p
10647 ' $ac_file_inputs` in
10648 *datarootdir*) ac_datarootdir_seen=yes;;
10649 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10650   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10651 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10652 _ACEOF
10653 cat >>$CONFIG_STATUS <<_ACEOF
10654   ac_datarootdir_hack='
10655   s&@datadir@&$datadir&g
10656   s&@docdir@&$docdir&g
10657   s&@infodir@&$infodir&g
10658   s&@localedir@&$localedir&g
10659   s&@mandir@&$mandir&g
10660     s&\\\${datarootdir}&$datarootdir&g' ;;
10661 esac
10662 _ACEOF
10663
10664 # Neutralize VPATH when `$srcdir' = `.'.
10665 # Shell code in configure.ac might set extrasub.
10666 # FIXME: do we really want to maintain this feature?
10667 cat >>$CONFIG_STATUS <<_ACEOF
10668   sed "$ac_vpsub
10669 $extrasub
10670 _ACEOF
10671 cat >>$CONFIG_STATUS <<\_ACEOF
10672 :t
10673 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10674 s&@configure_input@&$configure_input&;t t
10675 s&@top_builddir@&$ac_top_builddir_sub&;t t
10676 s&@srcdir@&$ac_srcdir&;t t
10677 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10678 s&@top_srcdir@&$ac_top_srcdir&;t t
10679 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10680 s&@builddir@&$ac_builddir&;t t
10681 s&@abs_builddir@&$ac_abs_builddir&;t t
10682 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10683 s&@INSTALL@&$ac_INSTALL&;t t
10684 $ac_datarootdir_hack
10685 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
10686
10687 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10688   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10689   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10690   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10691 which seems to be undefined.  Please make sure it is defined." >&5
10692 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10693 which seems to be undefined.  Please make sure it is defined." >&2;}
10694
10695   rm -f "$tmp/stdin"
10696   case $ac_file in
10697   -) cat "$tmp/out"; rm -f "$tmp/out";;
10698   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10699   esac
10700  ;;
10701   :H)
10702   #
10703   # CONFIG_HEADER
10704   #
10705 _ACEOF
10706
10707 # Transform confdefs.h into a sed script `conftest.defines', that
10708 # substitutes the proper values into config.h.in to produce config.h.
10709 rm -f conftest.defines conftest.tail
10710 # First, append a space to every undef/define line, to ease matching.
10711 echo 's/$/ /' >conftest.defines
10712 # Then, protect against being on the right side of a sed subst, or in
10713 # an unquoted here document, in config.status.  If some macros were
10714 # called several times there might be several #defines for the same
10715 # symbol, which is useless.  But do not sort them, since the last
10716 # AC_DEFINE must be honored.
10717 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10718 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10719 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10720 # PARAMS is the parameter list in the macro definition--in most cases, it's
10721 # just an empty string.
10722 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
10723 ac_dB='\\)[      (].*,\\1define\\2'
10724 ac_dC=' '
10725 ac_dD=' ,'
10726
10727 uniq confdefs.h |
10728   sed -n '
10729         t rset
10730         :rset
10731         s/^[     ]*#[    ]*define[       ][      ]*//
10732         t ok
10733         d
10734         :ok
10735         s/[\\&,]/\\&/g
10736         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10737         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10738   ' >>conftest.defines
10739
10740 # Remove the space that was appended to ease matching.
10741 # Then replace #undef with comments.  This is necessary, for
10742 # example, in the case of _POSIX_SOURCE, which is predefined and required
10743 # on some systems where configure will not decide to define it.
10744 # (The regexp can be short, since the line contains either #define or #undef.)
10745 echo 's/ $//
10746 s,^[     #]*u.*,/* & */,' >>conftest.defines
10747
10748 # Break up conftest.defines:
10749 ac_max_sed_lines=50
10750
10751 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10752 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10753 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10754 # et cetera.
10755 ac_in='$ac_file_inputs'
10756 ac_out='"$tmp/out1"'
10757 ac_nxt='"$tmp/out2"'
10758
10759 while :
10760 do
10761   # Write a here document:
10762     cat >>$CONFIG_STATUS <<_ACEOF
10763     # First, check the format of the line:
10764     cat >"\$tmp/defines.sed" <<\\CEOF
10765 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
10766 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
10767 b
10768 :def
10769 _ACEOF
10770   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10771   echo 'CEOF
10772     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10773   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10774   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10775   grep . conftest.tail >/dev/null || break
10776   rm -f conftest.defines
10777   mv conftest.tail conftest.defines
10778 done
10779 rm -f conftest.defines conftest.tail
10780
10781 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10782 cat >>$CONFIG_STATUS <<\_ACEOF
10783   if test x"$ac_file" != x-; then
10784     echo "/* $configure_input  */" >"$tmp/config.h"
10785     cat "$ac_result" >>"$tmp/config.h"
10786     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10787       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10788 echo "$as_me: $ac_file is unchanged" >&6;}
10789     else
10790       rm -f $ac_file
10791       mv "$tmp/config.h" $ac_file
10792     fi
10793   else
10794     echo "/* $configure_input  */"
10795     cat "$ac_result"
10796   fi
10797   rm -f "$tmp/out12"
10798  ;;
10799
10800
10801   esac
10802
10803 done # for ac_tag
10804
10805
10806 { (exit 0); exit 0; }
10807 _ACEOF
10808 chmod +x $CONFIG_STATUS
10809 ac_clean_files=$ac_clean_files_save
10810
10811
10812 # configure is writing to config.log, and then calls config.status.
10813 # config.status does its own redirection, appending to config.log.
10814 # Unfortunately, on DOS this fails, as config.log is still kept open
10815 # by configure, so config.status won't be able to write to it; its
10816 # output is simply discarded.  So we exec the FD to /dev/null,
10817 # effectively closing config.log, so it can be properly (re)opened and
10818 # appended to by config.status.  When coming back to configure, we
10819 # need to make the FD available again.
10820 if test "$no_create" != yes; then
10821   ac_cs_success=:
10822   ac_config_status_args=
10823   test "$silent" = yes &&
10824     ac_config_status_args="$ac_config_status_args --quiet"
10825   exec 5>/dev/null
10826   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10827   exec 5>>config.log
10828   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10829   # would make configure fail if this is the last instruction.
10830   $ac_cs_success || { (exit 1); exit 1; }
10831 fi
10832
10833
10834
10835 #
10836 # On development trees, create snapshots of config.status
10837 #
10838 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
10839     if test "x${MINGW}" = "xyes"; then
10840         echo cp config.status config.status.win32
10841         cp config.status config.status.win32
10842     else
10843         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
10844             echo cp config.status config.status.linux
10845             cp config.status config.status.linux
10846         fi
10847         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
10848             echo cp config.status config.status.debug
10849             cp config.status config.status.debug
10850         fi
10851         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
10852             echo cp config.status config.status.optimize
10853             cp config.status config.status.optimize
10854         fi
10855     fi
10856 fi