Generated from configure.in
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 SHARED
662 CC
663 CFLAGS
664 LDFLAGS
665 CPPFLAGS
666 ac_ct_CC
667 EXEEXT
668 OBJEXT
669 CXX
670 CXXFLAGS
671 ac_ct_CXX
672 CPP
673 RANLIB
674 SET_MAKE
675 INSTALL_PROGRAM
676 INSTALL_SCRIPT
677 INSTALL_DATA
678 LN_S
679 UNCOMPRESS
680 AREXT
681 AR
682 SLEXT
683 CXXLIBS
684 STRIP
685 target
686 target_cpu
687 target_vendor
688 target_os
689 WORDS_BIGENDIAN
690 SYSTEM_BACKTICKS
691 GREP
692 EGREP
693 PACKAGE
694 VERSION
695 HAVE_UNISTD_H
696 FREETYPE_CONFIG
697 lame_objects
698 AVIFILE_CONFIG
699 VIDEO_LIBS
700 VIDEO_CFLAGS
701 USE_GZIP
702 PYTHON_LIB
703 PYTHON_INCLUDES
704 HAVE_PYTHON_IMAGING
705 PDF2SWF
706 LIBPDF
707 JPEG2SWF
708 GIF2SWF
709 PNG2SWF
710 LIBOBJS
711 LTLIBOBJS'
712 ac_subst_files=''
713       ac_precious_vars='build_alias
714 host_alias
715 target_alias
716 CC
717 CFLAGS
718 LDFLAGS
719 LIBS
720 CPPFLAGS
721 CXX
722 CXXFLAGS
723 CCC
724 CPP'
725
726
727 # Initialize some variables set by options.
728 ac_init_help=
729 ac_init_version=false
730 # The variables have the same names as the options, with
731 # dashes changed to underlines.
732 cache_file=/dev/null
733 exec_prefix=NONE
734 no_create=
735 no_recursion=
736 prefix=NONE
737 program_prefix=NONE
738 program_suffix=NONE
739 program_transform_name=s,x,x,
740 silent=
741 site=
742 srcdir=
743 verbose=
744 x_includes=NONE
745 x_libraries=NONE
746
747 # Installation directory options.
748 # These are left unexpanded so users can "make install exec_prefix=/foo"
749 # and all the variables that are supposed to be based on exec_prefix
750 # by default will actually change.
751 # Use braces instead of parens because sh, perl, etc. also accept them.
752 # (The list follows the same order as the GNU Coding Standards.)
753 bindir='${exec_prefix}/bin'
754 sbindir='${exec_prefix}/sbin'
755 libexecdir='${exec_prefix}/libexec'
756 datarootdir='${prefix}/share'
757 datadir='${datarootdir}'
758 sysconfdir='${prefix}/etc'
759 sharedstatedir='${prefix}/com'
760 localstatedir='${prefix}/var'
761 includedir='${prefix}/include'
762 oldincludedir='/usr/include'
763 docdir='${datarootdir}/doc/${PACKAGE}'
764 infodir='${datarootdir}/info'
765 htmldir='${docdir}'
766 dvidir='${docdir}'
767 pdfdir='${docdir}'
768 psdir='${docdir}'
769 libdir='${exec_prefix}/lib'
770 localedir='${datarootdir}/locale'
771 mandir='${datarootdir}/man'
772
773 ac_prev=
774 ac_dashdash=
775 for ac_option
776 do
777   # If the previous option needs an argument, assign it.
778   if test -n "$ac_prev"; then
779     eval $ac_prev=\$ac_option
780     ac_prev=
781     continue
782   fi
783
784   case $ac_option in
785   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
786   *)    ac_optarg=yes ;;
787   esac
788
789   # Accept the important Cygnus configure options, so we can diagnose typos.
790
791   case $ac_dashdash$ac_option in
792   --)
793     ac_dashdash=yes ;;
794
795   -bindir | --bindir | --bindi | --bind | --bin | --bi)
796     ac_prev=bindir ;;
797   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
798     bindir=$ac_optarg ;;
799
800   -build | --build | --buil | --bui | --bu)
801     ac_prev=build_alias ;;
802   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
803     build_alias=$ac_optarg ;;
804
805   -cache-file | --cache-file | --cache-fil | --cache-fi \
806   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
807     ac_prev=cache_file ;;
808   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
809   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
810     cache_file=$ac_optarg ;;
811
812   --config-cache | -C)
813     cache_file=config.cache ;;
814
815   -datadir | --datadir | --datadi | --datad)
816     ac_prev=datadir ;;
817   -datadir=* | --datadir=* | --datadi=* | --datad=*)
818     datadir=$ac_optarg ;;
819
820   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
821   | --dataroo | --dataro | --datar)
822     ac_prev=datarootdir ;;
823   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
824   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
825     datarootdir=$ac_optarg ;;
826
827   -disable-* | --disable-*)
828     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
829     # Reject names that are not valid shell variable names.
830     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
831       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
832    { (exit 1); exit 1; }; }
833     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
834     eval enable_$ac_feature=no ;;
835
836   -docdir | --docdir | --docdi | --doc | --do)
837     ac_prev=docdir ;;
838   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
839     docdir=$ac_optarg ;;
840
841   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
842     ac_prev=dvidir ;;
843   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
844     dvidir=$ac_optarg ;;
845
846   -enable-* | --enable-*)
847     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
848     # Reject names that are not valid shell variable names.
849     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
850       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
851    { (exit 1); exit 1; }; }
852     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
853     eval enable_$ac_feature=\$ac_optarg ;;
854
855   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
856   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
857   | --exec | --exe | --ex)
858     ac_prev=exec_prefix ;;
859   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
860   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
861   | --exec=* | --exe=* | --ex=*)
862     exec_prefix=$ac_optarg ;;
863
864   -gas | --gas | --ga | --g)
865     # Obsolete; use --with-gas.
866     with_gas=yes ;;
867
868   -help | --help | --hel | --he | -h)
869     ac_init_help=long ;;
870   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
871     ac_init_help=recursive ;;
872   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
873     ac_init_help=short ;;
874
875   -host | --host | --hos | --ho)
876     ac_prev=host_alias ;;
877   -host=* | --host=* | --hos=* | --ho=*)
878     host_alias=$ac_optarg ;;
879
880   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
881     ac_prev=htmldir ;;
882   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
883   | --ht=*)
884     htmldir=$ac_optarg ;;
885
886   -includedir | --includedir | --includedi | --included | --include \
887   | --includ | --inclu | --incl | --inc)
888     ac_prev=includedir ;;
889   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
890   | --includ=* | --inclu=* | --incl=* | --inc=*)
891     includedir=$ac_optarg ;;
892
893   -infodir | --infodir | --infodi | --infod | --info | --inf)
894     ac_prev=infodir ;;
895   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
896     infodir=$ac_optarg ;;
897
898   -libdir | --libdir | --libdi | --libd)
899     ac_prev=libdir ;;
900   -libdir=* | --libdir=* | --libdi=* | --libd=*)
901     libdir=$ac_optarg ;;
902
903   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
904   | --libexe | --libex | --libe)
905     ac_prev=libexecdir ;;
906   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
907   | --libexe=* | --libex=* | --libe=*)
908     libexecdir=$ac_optarg ;;
909
910   -localedir | --localedir | --localedi | --localed | --locale)
911     ac_prev=localedir ;;
912   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
913     localedir=$ac_optarg ;;
914
915   -localstatedir | --localstatedir | --localstatedi | --localstated \
916   | --localstate | --localstat | --localsta | --localst | --locals)
917     ac_prev=localstatedir ;;
918   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
919   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
920     localstatedir=$ac_optarg ;;
921
922   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
923     ac_prev=mandir ;;
924   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
925     mandir=$ac_optarg ;;
926
927   -nfp | --nfp | --nf)
928     # Obsolete; use --without-fp.
929     with_fp=no ;;
930
931   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
932   | --no-cr | --no-c | -n)
933     no_create=yes ;;
934
935   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
936   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
937     no_recursion=yes ;;
938
939   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
940   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
941   | --oldin | --oldi | --old | --ol | --o)
942     ac_prev=oldincludedir ;;
943   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
944   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
945   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
946     oldincludedir=$ac_optarg ;;
947
948   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
949     ac_prev=prefix ;;
950   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
951     prefix=$ac_optarg ;;
952
953   -program-prefix | --program-prefix | --program-prefi | --program-pref \
954   | --program-pre | --program-pr | --program-p)
955     ac_prev=program_prefix ;;
956   -program-prefix=* | --program-prefix=* | --program-prefi=* \
957   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
958     program_prefix=$ac_optarg ;;
959
960   -program-suffix | --program-suffix | --program-suffi | --program-suff \
961   | --program-suf | --program-su | --program-s)
962     ac_prev=program_suffix ;;
963   -program-suffix=* | --program-suffix=* | --program-suffi=* \
964   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
965     program_suffix=$ac_optarg ;;
966
967   -program-transform-name | --program-transform-name \
968   | --program-transform-nam | --program-transform-na \
969   | --program-transform-n | --program-transform- \
970   | --program-transform | --program-transfor \
971   | --program-transfo | --program-transf \
972   | --program-trans | --program-tran \
973   | --progr-tra | --program-tr | --program-t)
974     ac_prev=program_transform_name ;;
975   -program-transform-name=* | --program-transform-name=* \
976   | --program-transform-nam=* | --program-transform-na=* \
977   | --program-transform-n=* | --program-transform-=* \
978   | --program-transform=* | --program-transfor=* \
979   | --program-transfo=* | --program-transf=* \
980   | --program-trans=* | --program-tran=* \
981   | --progr-tra=* | --program-tr=* | --program-t=*)
982     program_transform_name=$ac_optarg ;;
983
984   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
985     ac_prev=pdfdir ;;
986   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
987     pdfdir=$ac_optarg ;;
988
989   -psdir | --psdir | --psdi | --psd | --ps)
990     ac_prev=psdir ;;
991   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
992     psdir=$ac_optarg ;;
993
994   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
995   | -silent | --silent | --silen | --sile | --sil)
996     silent=yes ;;
997
998   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
999     ac_prev=sbindir ;;
1000   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1001   | --sbi=* | --sb=*)
1002     sbindir=$ac_optarg ;;
1003
1004   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1005   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1006   | --sharedst | --shareds | --shared | --share | --shar \
1007   | --sha | --sh)
1008     ac_prev=sharedstatedir ;;
1009   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1010   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1011   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1012   | --sha=* | --sh=*)
1013     sharedstatedir=$ac_optarg ;;
1014
1015   -site | --site | --sit)
1016     ac_prev=site ;;
1017   -site=* | --site=* | --sit=*)
1018     site=$ac_optarg ;;
1019
1020   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1021     ac_prev=srcdir ;;
1022   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1023     srcdir=$ac_optarg ;;
1024
1025   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1026   | --syscon | --sysco | --sysc | --sys | --sy)
1027     ac_prev=sysconfdir ;;
1028   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1029   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1030     sysconfdir=$ac_optarg ;;
1031
1032   -target | --target | --targe | --targ | --tar | --ta | --t)
1033     ac_prev=target_alias ;;
1034   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1035     target_alias=$ac_optarg ;;
1036
1037   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1038     verbose=yes ;;
1039
1040   -version | --version | --versio | --versi | --vers | -V)
1041     ac_init_version=: ;;
1042
1043   -with-* | --with-*)
1044     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1045     # Reject names that are not valid shell variable names.
1046     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047       { echo "$as_me: error: invalid package name: $ac_package" >&2
1048    { (exit 1); exit 1; }; }
1049     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1050     eval with_$ac_package=\$ac_optarg ;;
1051
1052   -without-* | --without-*)
1053     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1054     # Reject names that are not valid shell variable names.
1055     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1056       { echo "$as_me: error: invalid package name: $ac_package" >&2
1057    { (exit 1); exit 1; }; }
1058     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1059     eval with_$ac_package=no ;;
1060
1061   --x)
1062     # Obsolete; use --with-x.
1063     with_x=yes ;;
1064
1065   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1066   | --x-incl | --x-inc | --x-in | --x-i)
1067     ac_prev=x_includes ;;
1068   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1069   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1070     x_includes=$ac_optarg ;;
1071
1072   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1073   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1074     ac_prev=x_libraries ;;
1075   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1076   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1077     x_libraries=$ac_optarg ;;
1078
1079   -*) { echo "$as_me: error: unrecognized option: $ac_option
1080 Try \`$0 --help' for more information." >&2
1081    { (exit 1); exit 1; }; }
1082     ;;
1083
1084   *=*)
1085     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1086     # Reject names that are not valid shell variable names.
1087     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1088       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1089    { (exit 1); exit 1; }; }
1090     eval $ac_envvar=\$ac_optarg
1091     export $ac_envvar ;;
1092
1093   *)
1094     # FIXME: should be removed in autoconf 3.0.
1095     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1096     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1098     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1099     ;;
1100
1101   esac
1102 done
1103
1104 if test -n "$ac_prev"; then
1105   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1106   { echo "$as_me: error: missing argument to $ac_option" >&2
1107    { (exit 1); exit 1; }; }
1108 fi
1109
1110 # Be sure to have absolute directory names.
1111 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1112                 datadir sysconfdir sharedstatedir localstatedir includedir \
1113                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1114                 libdir localedir mandir
1115 do
1116   eval ac_val=\$$ac_var
1117   case $ac_val in
1118     [\\/$]* | ?:[\\/]* )  continue;;
1119     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1120   esac
1121   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1122    { (exit 1); exit 1; }; }
1123 done
1124
1125 # There might be people who depend on the old broken behavior: `$host'
1126 # used to hold the argument of --host etc.
1127 # FIXME: To remove some day.
1128 build=$build_alias
1129 host=$host_alias
1130 target=$target_alias
1131
1132 # FIXME: To remove some day.
1133 if test "x$host_alias" != x; then
1134   if test "x$build_alias" = x; then
1135     cross_compiling=maybe
1136     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1137     If a cross compiler is detected then cross compile mode will be used." >&2
1138   elif test "x$build_alias" != "x$host_alias"; then
1139     cross_compiling=yes
1140   fi
1141 fi
1142
1143 ac_tool_prefix=
1144 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145
1146 test "$silent" = yes && exec 6>/dev/null
1147
1148
1149 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1150 ac_ls_di=`ls -di .` &&
1151 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1152   { echo "$as_me: error: Working directory cannot be determined" >&2
1153    { (exit 1); exit 1; }; }
1154 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1155   { echo "$as_me: error: pwd does not report name of working directory" >&2
1156    { (exit 1); exit 1; }; }
1157
1158
1159 # Find the source files, if location was not specified.
1160 if test -z "$srcdir"; then
1161   ac_srcdir_defaulted=yes
1162   # Try the directory containing this script, then the parent directory.
1163   ac_confdir=`$as_dirname -- "$0" ||
1164 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1165          X"$0" : 'X\(//\)[^/]' \| \
1166          X"$0" : 'X\(//\)$' \| \
1167          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1168 echo X"$0" |
1169     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1170             s//\1/
1171             q
1172           }
1173           /^X\(\/\/\)[^/].*/{
1174             s//\1/
1175             q
1176           }
1177           /^X\(\/\/\)$/{
1178             s//\1/
1179             q
1180           }
1181           /^X\(\/\).*/{
1182             s//\1/
1183             q
1184           }
1185           s/.*/./; q'`
1186   srcdir=$ac_confdir
1187   if test ! -r "$srcdir/$ac_unique_file"; then
1188     srcdir=..
1189   fi
1190 else
1191   ac_srcdir_defaulted=no
1192 fi
1193 if test ! -r "$srcdir/$ac_unique_file"; then
1194   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1195   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1196    { (exit 1); exit 1; }; }
1197 fi
1198 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1199 ac_abs_confdir=`(
1200         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1201    { (exit 1); exit 1; }; }
1202         pwd)`
1203 # When building in place, set srcdir=.
1204 if test "$ac_abs_confdir" = "$ac_pwd"; then
1205   srcdir=.
1206 fi
1207 # Remove unnecessary trailing slashes from srcdir.
1208 # Double slashes in file names in object file debugging info
1209 # mess up M-x gdb in Emacs.
1210 case $srcdir in
1211 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1212 esac
1213 for ac_var in $ac_precious_vars; do
1214   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1215   eval ac_env_${ac_var}_value=\$${ac_var}
1216   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1217   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1218 done
1219
1220 #
1221 # Report the --help message.
1222 #
1223 if test "$ac_init_help" = "long"; then
1224   # Omit some internal or obsolete options to make the list less imposing.
1225   # This message is too long to be a string in the A/UX 3.1 sh.
1226   cat <<_ACEOF
1227 \`configure' configures this package to adapt to many kinds of systems.
1228
1229 Usage: $0 [OPTION]... [VAR=VALUE]...
1230
1231 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1232 VAR=VALUE.  See below for descriptions of some of the useful variables.
1233
1234 Defaults for the options are specified in brackets.
1235
1236 Configuration:
1237   -h, --help              display this help and exit
1238       --help=short        display options specific to this package
1239       --help=recursive    display the short help of all the included packages
1240   -V, --version           display version information and exit
1241   -q, --quiet, --silent   do not print \`checking...' messages
1242       --cache-file=FILE   cache test results in FILE [disabled]
1243   -C, --config-cache      alias for \`--cache-file=config.cache'
1244   -n, --no-create         do not create output files
1245       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1246
1247 Installation directories:
1248   --prefix=PREFIX         install architecture-independent files in PREFIX
1249                           [$ac_default_prefix]
1250   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1251                           [PREFIX]
1252
1253 By default, \`make install' will install all the files in
1254 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1255 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1256 for instance \`--prefix=\$HOME'.
1257
1258 For better control, use the options below.
1259
1260 Fine tuning of the installation directories:
1261   --bindir=DIR           user executables [EPREFIX/bin]
1262   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1263   --libexecdir=DIR       program executables [EPREFIX/libexec]
1264   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1265   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1266   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1267   --libdir=DIR           object code libraries [EPREFIX/lib]
1268   --includedir=DIR       C header files [PREFIX/include]
1269   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1270   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1271   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1272   --infodir=DIR          info documentation [DATAROOTDIR/info]
1273   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1274   --mandir=DIR           man documentation [DATAROOTDIR/man]
1275   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1276   --htmldir=DIR          html documentation [DOCDIR]
1277   --dvidir=DIR           dvi documentation [DOCDIR]
1278   --pdfdir=DIR           pdf documentation [DOCDIR]
1279   --psdir=DIR            ps documentation [DOCDIR]
1280 _ACEOF
1281
1282   cat <<\_ACEOF
1283
1284 Program names:
1285   --program-prefix=PREFIX            prepend PREFIX to installed program names
1286   --program-suffix=SUFFIX            append SUFFIX to installed program names
1287   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1288
1289 System types:
1290   --build=BUILD     configure for building on BUILD [guessed]
1291   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1292   --target=TARGET   configure for building compilers for TARGET [HOST]
1293 _ACEOF
1294 fi
1295
1296 if test -n "$ac_init_help"; then
1297
1298   cat <<\_ACEOF
1299
1300 Optional Features:
1301   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1302   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1303   --enable-checkmem       turn on ccmalloc debugging
1304   --enable-debug          turn on debugging
1305   --enable-profiling      turn on profiling
1306   --enable-warnings        turn on compiler warnings
1307   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1308   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1309
1310 Some influential environment variables:
1311   CC          C compiler command
1312   CFLAGS      C compiler flags
1313   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1314               nonstandard directory <lib dir>
1315   LIBS        libraries to pass to the linker, e.g. -l<library>
1316   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1317               you have headers in a nonstandard directory <include dir>
1318   CXX         C++ compiler command
1319   CXXFLAGS    C++ compiler flags
1320   CPP         C preprocessor
1321
1322 Use these variables to override the choices made by `configure' or to help
1323 it to find libraries and programs with nonstandard names/locations.
1324
1325 _ACEOF
1326 ac_status=$?
1327 fi
1328
1329 if test "$ac_init_help" = "recursive"; then
1330   # If there are subdirs, report their specific --help.
1331   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1332     test -d "$ac_dir" || continue
1333     ac_builddir=.
1334
1335 case "$ac_dir" in
1336 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1337 *)
1338   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1339   # A ".." for each directory in $ac_dir_suffix.
1340   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1341   case $ac_top_builddir_sub in
1342   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1343   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1344   esac ;;
1345 esac
1346 ac_abs_top_builddir=$ac_pwd
1347 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1348 # for backward compatibility:
1349 ac_top_builddir=$ac_top_build_prefix
1350
1351 case $srcdir in
1352   .)  # We are building in place.
1353     ac_srcdir=.
1354     ac_top_srcdir=$ac_top_builddir_sub
1355     ac_abs_top_srcdir=$ac_pwd ;;
1356   [\\/]* | ?:[\\/]* )  # Absolute name.
1357     ac_srcdir=$srcdir$ac_dir_suffix;
1358     ac_top_srcdir=$srcdir
1359     ac_abs_top_srcdir=$srcdir ;;
1360   *) # Relative name.
1361     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1362     ac_top_srcdir=$ac_top_build_prefix$srcdir
1363     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1364 esac
1365 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1366
1367     cd "$ac_dir" || { ac_status=$?; continue; }
1368     # Check for guested configure.
1369     if test -f "$ac_srcdir/configure.gnu"; then
1370       echo &&
1371       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1372     elif test -f "$ac_srcdir/configure"; then
1373       echo &&
1374       $SHELL "$ac_srcdir/configure" --help=recursive
1375     else
1376       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1377     fi || ac_status=$?
1378     cd "$ac_pwd" || { ac_status=$?; break; }
1379   done
1380 fi
1381
1382 test -n "$ac_init_help" && exit $ac_status
1383 if $ac_init_version; then
1384   cat <<\_ACEOF
1385 configure
1386 generated by GNU Autoconf 2.61
1387
1388 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1389 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1390 This configure script is free software; the Free Software Foundation
1391 gives unlimited permission to copy, distribute and modify it.
1392 _ACEOF
1393   exit
1394 fi
1395 cat >config.log <<_ACEOF
1396 This file contains any messages produced by compilers while
1397 running configure, to aid debugging if configure makes a mistake.
1398
1399 It was created by $as_me, which was
1400 generated by GNU Autoconf 2.61.  Invocation command line was
1401
1402   $ $0 $@
1403
1404 _ACEOF
1405 exec 5>>config.log
1406 {
1407 cat <<_ASUNAME
1408 ## --------- ##
1409 ## Platform. ##
1410 ## --------- ##
1411
1412 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1413 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1414 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1415 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1416 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1417
1418 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1419 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1420
1421 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1422 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1423 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1424 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1425 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1426 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1427 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1428
1429 _ASUNAME
1430
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434   IFS=$as_save_IFS
1435   test -z "$as_dir" && as_dir=.
1436   echo "PATH: $as_dir"
1437 done
1438 IFS=$as_save_IFS
1439
1440 } >&5
1441
1442 cat >&5 <<_ACEOF
1443
1444
1445 ## ----------- ##
1446 ## Core tests. ##
1447 ## ----------- ##
1448
1449 _ACEOF
1450
1451
1452 # Keep a trace of the command line.
1453 # Strip out --no-create and --no-recursion so they do not pile up.
1454 # Strip out --silent because we don't want to record it for future runs.
1455 # Also quote any args containing shell meta-characters.
1456 # Make two passes to allow for proper duplicate-argument suppression.
1457 ac_configure_args=
1458 ac_configure_args0=
1459 ac_configure_args1=
1460 ac_must_keep_next=false
1461 for ac_pass in 1 2
1462 do
1463   for ac_arg
1464   do
1465     case $ac_arg in
1466     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1467     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1468     | -silent | --silent | --silen | --sile | --sil)
1469       continue ;;
1470     *\'*)
1471       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1472     esac
1473     case $ac_pass in
1474     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1475     2)
1476       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1477       if test $ac_must_keep_next = true; then
1478         ac_must_keep_next=false # Got value, back to normal.
1479       else
1480         case $ac_arg in
1481           *=* | --config-cache | -C | -disable-* | --disable-* \
1482           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1483           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1484           | -with-* | --with-* | -without-* | --without-* | --x)
1485             case "$ac_configure_args0 " in
1486               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1487             esac
1488             ;;
1489           -* ) ac_must_keep_next=true ;;
1490         esac
1491       fi
1492       ac_configure_args="$ac_configure_args '$ac_arg'"
1493       ;;
1494     esac
1495   done
1496 done
1497 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1498 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1499
1500 # When interrupted or exit'd, cleanup temporary files, and complete
1501 # config.log.  We remove comments because anyway the quotes in there
1502 # would cause problems or look ugly.
1503 # WARNING: Use '\'' to represent an apostrophe within the trap.
1504 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1505 trap 'exit_status=$?
1506   # Save into config.log some information that might help in debugging.
1507   {
1508     echo
1509
1510     cat <<\_ASBOX
1511 ## ---------------- ##
1512 ## Cache variables. ##
1513 ## ---------------- ##
1514 _ASBOX
1515     echo
1516     # The following way of writing the cache mishandles newlines in values,
1517 (
1518   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1519     eval ac_val=\$$ac_var
1520     case $ac_val in #(
1521     *${as_nl}*)
1522       case $ac_var in #(
1523       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1524 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1525       esac
1526       case $ac_var in #(
1527       _ | IFS | as_nl) ;; #(
1528       *) $as_unset $ac_var ;;
1529       esac ;;
1530     esac
1531   done
1532   (set) 2>&1 |
1533     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1534     *${as_nl}ac_space=\ *)
1535       sed -n \
1536         "s/'\''/'\''\\\\'\'''\''/g;
1537           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1538       ;; #(
1539     *)
1540       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1541       ;;
1542     esac |
1543     sort
1544 )
1545     echo
1546
1547     cat <<\_ASBOX
1548 ## ----------------- ##
1549 ## Output variables. ##
1550 ## ----------------- ##
1551 _ASBOX
1552     echo
1553     for ac_var in $ac_subst_vars
1554     do
1555       eval ac_val=\$$ac_var
1556       case $ac_val in
1557       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1558       esac
1559       echo "$ac_var='\''$ac_val'\''"
1560     done | sort
1561     echo
1562
1563     if test -n "$ac_subst_files"; then
1564       cat <<\_ASBOX
1565 ## ------------------- ##
1566 ## File substitutions. ##
1567 ## ------------------- ##
1568 _ASBOX
1569       echo
1570       for ac_var in $ac_subst_files
1571       do
1572         eval ac_val=\$$ac_var
1573         case $ac_val in
1574         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1575         esac
1576         echo "$ac_var='\''$ac_val'\''"
1577       done | sort
1578       echo
1579     fi
1580
1581     if test -s confdefs.h; then
1582       cat <<\_ASBOX
1583 ## ----------- ##
1584 ## confdefs.h. ##
1585 ## ----------- ##
1586 _ASBOX
1587       echo
1588       cat confdefs.h
1589       echo
1590     fi
1591     test "$ac_signal" != 0 &&
1592       echo "$as_me: caught signal $ac_signal"
1593     echo "$as_me: exit $exit_status"
1594   } >&5
1595   rm -f core *.core core.conftest.* &&
1596     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1597     exit $exit_status
1598 ' 0
1599 for ac_signal in 1 2 13 15; do
1600   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1601 done
1602 ac_signal=0
1603
1604 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1605 rm -f -r conftest* confdefs.h
1606
1607 # Predefined preprocessor variables.
1608
1609 cat >>confdefs.h <<_ACEOF
1610 #define PACKAGE_NAME "$PACKAGE_NAME"
1611 _ACEOF
1612
1613
1614 cat >>confdefs.h <<_ACEOF
1615 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1616 _ACEOF
1617
1618
1619 cat >>confdefs.h <<_ACEOF
1620 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1621 _ACEOF
1622
1623
1624 cat >>confdefs.h <<_ACEOF
1625 #define PACKAGE_STRING "$PACKAGE_STRING"
1626 _ACEOF
1627
1628
1629 cat >>confdefs.h <<_ACEOF
1630 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1631 _ACEOF
1632
1633
1634 # Let the site file select an alternate cache file if it wants to.
1635 # Prefer explicitly selected file to automatically selected ones.
1636 if test -n "$CONFIG_SITE"; then
1637   set x "$CONFIG_SITE"
1638 elif test "x$prefix" != xNONE; then
1639   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1640 else
1641   set x "$ac_default_prefix/share/config.site" \
1642         "$ac_default_prefix/etc/config.site"
1643 fi
1644 shift
1645 for ac_site_file
1646 do
1647   if test -r "$ac_site_file"; then
1648     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1649 echo "$as_me: loading site script $ac_site_file" >&6;}
1650     sed 's/^/| /' "$ac_site_file" >&5
1651     . "$ac_site_file"
1652   fi
1653 done
1654
1655 if test -r "$cache_file"; then
1656   # Some versions of bash will fail to source /dev/null (special
1657   # files actually), so we avoid doing that.
1658   if test -f "$cache_file"; then
1659     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1660 echo "$as_me: loading cache $cache_file" >&6;}
1661     case $cache_file in
1662       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1663       *)                      . "./$cache_file";;
1664     esac
1665   fi
1666 else
1667   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1668 echo "$as_me: creating cache $cache_file" >&6;}
1669   >$cache_file
1670 fi
1671
1672 # Check that the precious variables saved in the cache have kept the same
1673 # value.
1674 ac_cache_corrupted=false
1675 for ac_var in $ac_precious_vars; do
1676   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1677   eval ac_new_set=\$ac_env_${ac_var}_set
1678   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1679   eval ac_new_val=\$ac_env_${ac_var}_value
1680   case $ac_old_set,$ac_new_set in
1681     set,)
1682       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1683 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1684       ac_cache_corrupted=: ;;
1685     ,set)
1686       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1687 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1688       ac_cache_corrupted=: ;;
1689     ,);;
1690     *)
1691       if test "x$ac_old_val" != "x$ac_new_val"; then
1692         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1693 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1694         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1695 echo "$as_me:   former value:  $ac_old_val" >&2;}
1696         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1697 echo "$as_me:   current value: $ac_new_val" >&2;}
1698         ac_cache_corrupted=:
1699       fi;;
1700   esac
1701   # Pass precious variables to config.status.
1702   if test "$ac_new_set" = set; then
1703     case $ac_new_val in
1704     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1705     *) ac_arg=$ac_var=$ac_new_val ;;
1706     esac
1707     case " $ac_configure_args " in
1708       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1709       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1710     esac
1711   fi
1712 done
1713 if $ac_cache_corrupted; then
1714   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1715 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1716   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1717 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1718    { (exit 1); exit 1; }; }
1719 fi
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737 ac_ext=c
1738 ac_cpp='$CPP $CPPFLAGS'
1739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1742
1743
1744
1745
1746 # Check whether --enable-checkmem was given.
1747 if test "${enable_checkmem+set}" = set; then
1748   enableval=$enable_checkmem; CHECKMEM=true
1749 fi
1750
1751 # Check whether --enable-debug was given.
1752 if test "${enable_debug+set}" = set; then
1753   enableval=$enable_debug; DEBUG=true
1754 fi
1755
1756 # Check whether --enable-profiling was given.
1757 if test "${enable_profiling+set}" = set; then
1758   enableval=$enable_profiling; PROFILING=true
1759 fi
1760
1761 # Check whether --enable-warnings was given.
1762 if test "${enable_warnings+set}" = set; then
1763   enableval=$enable_warnings; ENABLE_WARNINGS=true
1764 fi
1765
1766 # Check whether --enable-optimizations was given.
1767 if test "${enable_optimizations+set}" = set; then
1768   enableval=$enable_optimizations; OPTIMIZE=true
1769 fi
1770
1771 # Check whether --enable-lame was given.
1772 if test "${enable_lame+set}" = set; then
1773   enableval=$enable_lame; DISABLE_LAME=true
1774 fi
1775
1776
1777 PACKAGE=swftools
1778 VERSION=2008-04-02-1230
1779
1780
1781 # ------------------------------------------------------------------
1782
1783 if test "x${srcdir}" != "x."; then
1784     echo "--srcdir is not supported"
1785     exit 1
1786 fi
1787
1788 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1789 if test "x$ENABLE_WARNINGS" '!=' "x";then
1790     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1791 fi
1792
1793 if test "x$CHECKMEM" '!=' "x";then
1794     DEBUG=yes
1795 fi
1796 if test "x$PROFILING" '!=' "x";then
1797     DEBUG=yes
1798 fi
1799 if test "x$DEBUG" '!=' "x";then
1800     if test "x$PROFILING" = "x";then
1801         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1802         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1803         LDFLAGS="-g $LIBS"
1804     else
1805         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1806         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1807         LDFLAGS="-g -pg $LIBS"
1808     fi
1809 else if test "x$OPTIMIZE" '!=' "x"; then
1810     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1811     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1812 else
1813     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1814     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1815 fi
1816 fi
1817
1818 CFLAGS="-fPIC $CFLAGS"
1819 CXXFLAGS="-fPIC $CFLAGS"
1820
1821 #OLDGCC=1
1822 #if test "x$OLDGCC" '!=' "x";then
1823 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1824 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1825 #     CFLAGS="$CFLAGS -ansi -pendantic"
1826 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1827 #fi
1828
1829 export PACKAGE VERSION CFLAGS CXXFLAGS
1830
1831
1832 ac_aux_dir=
1833 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1834   if test -f "$ac_dir/install-sh"; then
1835     ac_aux_dir=$ac_dir
1836     ac_install_sh="$ac_aux_dir/install-sh -c"
1837     break
1838   elif test -f "$ac_dir/install.sh"; then
1839     ac_aux_dir=$ac_dir
1840     ac_install_sh="$ac_aux_dir/install.sh -c"
1841     break
1842   elif test -f "$ac_dir/shtool"; then
1843     ac_aux_dir=$ac_dir
1844     ac_install_sh="$ac_aux_dir/shtool install -c"
1845     break
1846   fi
1847 done
1848 if test -z "$ac_aux_dir"; then
1849   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1850 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1851    { (exit 1); exit 1; }; }
1852 fi
1853
1854 # These three variables are undocumented and unsupported,
1855 # and are intended to be withdrawn in a future Autoconf release.
1856 # They can cause serious problems if a builder's source tree is in a directory
1857 # whose full name contains unusual characters.
1858 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1859 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1860 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1861
1862
1863 # Make sure we can run config.sub.
1864 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1865   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1866 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1867    { (exit 1); exit 1; }; }
1868
1869 { echo "$as_me:$LINENO: checking build system type" >&5
1870 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1871 if test "${ac_cv_build+set}" = set; then
1872   echo $ECHO_N "(cached) $ECHO_C" >&6
1873 else
1874   ac_build_alias=$build_alias
1875 test "x$ac_build_alias" = x &&
1876   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1877 test "x$ac_build_alias" = x &&
1878   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1879 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1880    { (exit 1); exit 1; }; }
1881 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1882   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1883 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1884    { (exit 1); exit 1; }; }
1885
1886 fi
1887 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1888 echo "${ECHO_T}$ac_cv_build" >&6; }
1889 case $ac_cv_build in
1890 *-*-*) ;;
1891 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1892 echo "$as_me: error: invalid value of canonical build" >&2;}
1893    { (exit 1); exit 1; }; };;
1894 esac
1895 build=$ac_cv_build
1896 ac_save_IFS=$IFS; IFS='-'
1897 set x $ac_cv_build
1898 shift
1899 build_cpu=$1
1900 build_vendor=$2
1901 shift; shift
1902 # Remember, the first character of IFS is used to create $*,
1903 # except with old shells:
1904 build_os=$*
1905 IFS=$ac_save_IFS
1906 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1907
1908
1909 { echo "$as_me:$LINENO: checking host system type" >&5
1910 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1911 if test "${ac_cv_host+set}" = set; then
1912   echo $ECHO_N "(cached) $ECHO_C" >&6
1913 else
1914   if test "x$host_alias" = x; then
1915   ac_cv_host=$ac_cv_build
1916 else
1917   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1918     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1919 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1920    { (exit 1); exit 1; }; }
1921 fi
1922
1923 fi
1924 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1925 echo "${ECHO_T}$ac_cv_host" >&6; }
1926 case $ac_cv_host in
1927 *-*-*) ;;
1928 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1929 echo "$as_me: error: invalid value of canonical host" >&2;}
1930    { (exit 1); exit 1; }; };;
1931 esac
1932 host=$ac_cv_host
1933 ac_save_IFS=$IFS; IFS='-'
1934 set x $ac_cv_host
1935 shift
1936 host_cpu=$1
1937 host_vendor=$2
1938 shift; shift
1939 # Remember, the first character of IFS is used to create $*,
1940 # except with old shells:
1941 host_os=$*
1942 IFS=$ac_save_IFS
1943 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1944
1945
1946
1947 SHARED="-shared"
1948 MACOSX=
1949 case $host_os in
1950     *darwin* )
1951         MACOSX=yes
1952         CFLAGS="$CFLAGS"
1953         CXXFLAGS="$CXXFLAGS -fno-rtti"
1954         SHARED="-bundle"
1955         # Use fink packages if available.
1956         #if test -d /sw/include && test -d /sw/lib; then
1957         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
1958         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
1959         #fi
1960         ;;
1961 esac
1962
1963
1964
1965  ac_ext=c
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970 if test -n "$ac_tool_prefix"; then
1971   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1972 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1973 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1974 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1975 if test "${ac_cv_prog_CC+set}" = set; then
1976   echo $ECHO_N "(cached) $ECHO_C" >&6
1977 else
1978   if test -n "$CC"; then
1979   ac_cv_prog_CC="$CC" # Let the user override the test.
1980 else
1981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1982 for as_dir in $PATH
1983 do
1984   IFS=$as_save_IFS
1985   test -z "$as_dir" && as_dir=.
1986   for ac_exec_ext in '' $ac_executable_extensions; do
1987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1988     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1989     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1990     break 2
1991   fi
1992 done
1993 done
1994 IFS=$as_save_IFS
1995
1996 fi
1997 fi
1998 CC=$ac_cv_prog_CC
1999 if test -n "$CC"; then
2000   { echo "$as_me:$LINENO: result: $CC" >&5
2001 echo "${ECHO_T}$CC" >&6; }
2002 else
2003   { echo "$as_me:$LINENO: result: no" >&5
2004 echo "${ECHO_T}no" >&6; }
2005 fi
2006
2007
2008 fi
2009 if test -z "$ac_cv_prog_CC"; then
2010   ac_ct_CC=$CC
2011   # Extract the first word of "gcc", so it can be a program name with args.
2012 set dummy gcc; ac_word=$2
2013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2016   echo $ECHO_N "(cached) $ECHO_C" >&6
2017 else
2018   if test -n "$ac_ct_CC"; then
2019   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2020 else
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2023 do
2024   IFS=$as_save_IFS
2025   test -z "$as_dir" && as_dir=.
2026   for ac_exec_ext in '' $ac_executable_extensions; do
2027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028     ac_cv_prog_ac_ct_CC="gcc"
2029     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2030     break 2
2031   fi
2032 done
2033 done
2034 IFS=$as_save_IFS
2035
2036 fi
2037 fi
2038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039 if test -n "$ac_ct_CC"; then
2040   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041 echo "${ECHO_T}$ac_ct_CC" >&6; }
2042 else
2043   { echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6; }
2045 fi
2046
2047   if test "x$ac_ct_CC" = x; then
2048     CC=""
2049   else
2050     case $cross_compiling:$ac_tool_warned in
2051 yes:)
2052 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2053 whose name does not start with the host triplet.  If you think this
2054 configuration is useful to you, please write to autoconf@gnu.org." >&5
2055 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2056 whose name does not start with the host triplet.  If you think this
2057 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2058 ac_tool_warned=yes ;;
2059 esac
2060     CC=$ac_ct_CC
2061   fi
2062 else
2063   CC="$ac_cv_prog_CC"
2064 fi
2065
2066 if test -z "$CC"; then
2067           if test -n "$ac_tool_prefix"; then
2068     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}cc; ac_word=$2
2070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   if test -n "$CC"; then
2076   ac_cv_prog_CC="$CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083   for ac_exec_ext in '' $ac_executable_extensions; do
2084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085     ac_cv_prog_CC="${ac_tool_prefix}cc"
2086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087     break 2
2088   fi
2089 done
2090 done
2091 IFS=$as_save_IFS
2092
2093 fi
2094 fi
2095 CC=$ac_cv_prog_CC
2096 if test -n "$CC"; then
2097   { echo "$as_me:$LINENO: result: $CC" >&5
2098 echo "${ECHO_T}$CC" >&6; }
2099 else
2100   { echo "$as_me:$LINENO: result: no" >&5
2101 echo "${ECHO_T}no" >&6; }
2102 fi
2103
2104
2105   fi
2106 fi
2107 if test -z "$CC"; then
2108   # Extract the first word of "cc", so it can be a program name with args.
2109 set dummy cc; ac_word=$2
2110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   if test -n "$CC"; then
2116   ac_cv_prog_CC="$CC" # Let the user override the test.
2117 else
2118   ac_prog_rejected=no
2119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120 for as_dir in $PATH
2121 do
2122   IFS=$as_save_IFS
2123   test -z "$as_dir" && as_dir=.
2124   for ac_exec_ext in '' $ac_executable_extensions; do
2125   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2126     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2127        ac_prog_rejected=yes
2128        continue
2129      fi
2130     ac_cv_prog_CC="cc"
2131     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132     break 2
2133   fi
2134 done
2135 done
2136 IFS=$as_save_IFS
2137
2138 if test $ac_prog_rejected = yes; then
2139   # We found a bogon in the path, so make sure we never use it.
2140   set dummy $ac_cv_prog_CC
2141   shift
2142   if test $# != 0; then
2143     # We chose a different compiler from the bogus one.
2144     # However, it has the same basename, so the bogon will be chosen
2145     # first if we set CC to just the basename; use the full file name.
2146     shift
2147     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2148   fi
2149 fi
2150 fi
2151 fi
2152 CC=$ac_cv_prog_CC
2153 if test -n "$CC"; then
2154   { echo "$as_me:$LINENO: result: $CC" >&5
2155 echo "${ECHO_T}$CC" >&6; }
2156 else
2157   { echo "$as_me:$LINENO: result: no" >&5
2158 echo "${ECHO_T}no" >&6; }
2159 fi
2160
2161
2162 fi
2163 if test -z "$CC"; then
2164   if test -n "$ac_tool_prefix"; then
2165   for ac_prog in cl.exe
2166   do
2167     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171 if test "${ac_cv_prog_CC+set}" = set; then
2172   echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174   if test -n "$CC"; then
2175   ac_cv_prog_CC="$CC" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180   IFS=$as_save_IFS
2181   test -z "$as_dir" && as_dir=.
2182   for ac_exec_ext in '' $ac_executable_extensions; do
2183   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2184     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2185     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186     break 2
2187   fi
2188 done
2189 done
2190 IFS=$as_save_IFS
2191
2192 fi
2193 fi
2194 CC=$ac_cv_prog_CC
2195 if test -n "$CC"; then
2196   { echo "$as_me:$LINENO: result: $CC" >&5
2197 echo "${ECHO_T}$CC" >&6; }
2198 else
2199   { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2201 fi
2202
2203
2204     test -n "$CC" && break
2205   done
2206 fi
2207 if test -z "$CC"; then
2208   ac_ct_CC=$CC
2209   for ac_prog in cl.exe
2210 do
2211   # Extract the first word of "$ac_prog", so it can be a program name with args.
2212 set dummy $ac_prog; ac_word=$2
2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2216   echo $ECHO_N "(cached) $ECHO_C" >&6
2217 else
2218   if test -n "$ac_ct_CC"; then
2219   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2220 else
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2222 for as_dir in $PATH
2223 do
2224   IFS=$as_save_IFS
2225   test -z "$as_dir" && as_dir=.
2226   for ac_exec_ext in '' $ac_executable_extensions; do
2227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2228     ac_cv_prog_ac_ct_CC="$ac_prog"
2229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2230     break 2
2231   fi
2232 done
2233 done
2234 IFS=$as_save_IFS
2235
2236 fi
2237 fi
2238 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2239 if test -n "$ac_ct_CC"; then
2240   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2241 echo "${ECHO_T}$ac_ct_CC" >&6; }
2242 else
2243   { echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6; }
2245 fi
2246
2247
2248   test -n "$ac_ct_CC" && break
2249 done
2250
2251   if test "x$ac_ct_CC" = x; then
2252     CC=""
2253   else
2254     case $cross_compiling:$ac_tool_warned in
2255 yes:)
2256 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2257 whose name does not start with the host triplet.  If you think this
2258 configuration is useful to you, please write to autoconf@gnu.org." >&5
2259 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2260 whose name does not start with the host triplet.  If you think this
2261 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2262 ac_tool_warned=yes ;;
2263 esac
2264     CC=$ac_ct_CC
2265   fi
2266 fi
2267
2268 fi
2269
2270
2271 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2272 See \`config.log' for more details." >&5
2273 echo "$as_me: error: no acceptable C compiler found in \$PATH
2274 See \`config.log' for more details." >&2;}
2275    { (exit 1); exit 1; }; }
2276
2277 # Provide some information about the compiler.
2278 echo "$as_me:$LINENO: checking for C compiler version" >&5
2279 ac_compiler=`set X $ac_compile; echo $2`
2280 { (ac_try="$ac_compiler --version >&5"
2281 case "(($ac_try" in
2282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2283   *) ac_try_echo=$ac_try;;
2284 esac
2285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2286   (eval "$ac_compiler --version >&5") 2>&5
2287   ac_status=$?
2288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289   (exit $ac_status); }
2290 { (ac_try="$ac_compiler -v >&5"
2291 case "(($ac_try" in
2292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293   *) ac_try_echo=$ac_try;;
2294 esac
2295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296   (eval "$ac_compiler -v >&5") 2>&5
2297   ac_status=$?
2298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299   (exit $ac_status); }
2300 { (ac_try="$ac_compiler -V >&5"
2301 case "(($ac_try" in
2302   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303   *) ac_try_echo=$ac_try;;
2304 esac
2305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2306   (eval "$ac_compiler -V >&5") 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }
2310
2311 cat >conftest.$ac_ext <<_ACEOF
2312 /* confdefs.h.  */
2313 _ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h.  */
2317
2318 int
2319 main ()
2320 {
2321
2322   ;
2323   return 0;
2324 }
2325 _ACEOF
2326 ac_clean_files_save=$ac_clean_files
2327 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2328 # Try to create an executable without -o first, disregard a.out.
2329 # It will help us diagnose broken compilers, and finding out an intuition
2330 # of exeext.
2331 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2332 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2333 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2334 #
2335 # List of possible output files, starting from the most likely.
2336 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2337 # only as a last resort.  b.out is created by i960 compilers.
2338 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2339 #
2340 # The IRIX 6 linker writes into existing files which may not be
2341 # executable, retaining their permissions.  Remove them first so a
2342 # subsequent execution test works.
2343 ac_rmfiles=
2344 for ac_file in $ac_files
2345 do
2346   case $ac_file in
2347     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2348     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2349   esac
2350 done
2351 rm -f $ac_rmfiles
2352
2353 if { (ac_try="$ac_link_default"
2354 case "(($ac_try" in
2355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2356   *) ac_try_echo=$ac_try;;
2357 esac
2358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2359   (eval "$ac_link_default") 2>&5
2360   ac_status=$?
2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2362   (exit $ac_status); }; then
2363   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2364 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2365 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2366 # so that the user can short-circuit this test for compilers unknown to
2367 # Autoconf.
2368 for ac_file in $ac_files ''
2369 do
2370   test -f "$ac_file" || continue
2371   case $ac_file in
2372     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2373         ;;
2374     [ab].out )
2375         # We found the default executable, but exeext='' is most
2376         # certainly right.
2377         break;;
2378     *.* )
2379         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2380         then :; else
2381            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2382         fi
2383         # We set ac_cv_exeext here because the later test for it is not
2384         # safe: cross compilers may not add the suffix if given an `-o'
2385         # argument, so we may need to know it at that point already.
2386         # Even if this section looks crufty: it has the advantage of
2387         # actually working.
2388         break;;
2389     * )
2390         break;;
2391   esac
2392 done
2393 test "$ac_cv_exeext" = no && ac_cv_exeext=
2394
2395 else
2396   ac_file=''
2397 fi
2398
2399 { echo "$as_me:$LINENO: result: $ac_file" >&5
2400 echo "${ECHO_T}$ac_file" >&6; }
2401 if test -z "$ac_file"; then
2402   echo "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2404
2405 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2406 See \`config.log' for more details." >&5
2407 echo "$as_me: error: C compiler cannot create executables
2408 See \`config.log' for more details." >&2;}
2409    { (exit 77); exit 77; }; }
2410 fi
2411
2412 ac_exeext=$ac_cv_exeext
2413
2414 # Check that the compiler produces executables we can run.  If not, either
2415 # the compiler is broken, or we cross compile.
2416 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2417 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2418 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2419 # If not cross compiling, check that we can run a simple program.
2420 if test "$cross_compiling" != yes; then
2421   if { ac_try='./$ac_file'
2422   { (case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2427   (eval "$ac_try") 2>&5
2428   ac_status=$?
2429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430   (exit $ac_status); }; }; then
2431     cross_compiling=no
2432   else
2433     if test "$cross_compiling" = maybe; then
2434         cross_compiling=yes
2435     else
2436         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2437 If you meant to cross compile, use \`--host'.
2438 See \`config.log' for more details." >&5
2439 echo "$as_me: error: cannot run C compiled programs.
2440 If you meant to cross compile, use \`--host'.
2441 See \`config.log' for more details." >&2;}
2442    { (exit 1); exit 1; }; }
2443     fi
2444   fi
2445 fi
2446 { echo "$as_me:$LINENO: result: yes" >&5
2447 echo "${ECHO_T}yes" >&6; }
2448
2449 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2450 ac_clean_files=$ac_clean_files_save
2451 # Check that the compiler produces executables we can run.  If not, either
2452 # the compiler is broken, or we cross compile.
2453 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2454 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2455 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2456 echo "${ECHO_T}$cross_compiling" >&6; }
2457
2458 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2459 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2460 if { (ac_try="$ac_link"
2461 case "(($ac_try" in
2462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2463   *) ac_try_echo=$ac_try;;
2464 esac
2465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2466   (eval "$ac_link") 2>&5
2467   ac_status=$?
2468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; then
2470   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2471 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2472 # work properly (i.e., refer to `conftest.exe'), while it won't with
2473 # `rm'.
2474 for ac_file in conftest.exe conftest conftest.*; do
2475   test -f "$ac_file" || continue
2476   case $ac_file in
2477     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2478     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479           break;;
2480     * ) break;;
2481   esac
2482 done
2483 else
2484   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2485 See \`config.log' for more details." >&5
2486 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2487 See \`config.log' for more details." >&2;}
2488    { (exit 1); exit 1; }; }
2489 fi
2490
2491 rm -f conftest$ac_cv_exeext
2492 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2493 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2494
2495 rm -f conftest.$ac_ext
2496 EXEEXT=$ac_cv_exeext
2497 ac_exeext=$EXEEXT
2498 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2499 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2500 if test "${ac_cv_objext+set}" = set; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 rm -f conftest.o conftest.obj
2519 if { (ac_try="$ac_compile"
2520 case "(($ac_try" in
2521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2522   *) ac_try_echo=$ac_try;;
2523 esac
2524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2525   (eval "$ac_compile") 2>&5
2526   ac_status=$?
2527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; then
2529   for ac_file in conftest.o conftest.obj conftest.*; do
2530   test -f "$ac_file" || continue;
2531   case $ac_file in
2532     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2533     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2534        break;;
2535   esac
2536 done
2537 else
2538   echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2542 See \`config.log' for more details." >&5
2543 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2544 See \`config.log' for more details." >&2;}
2545    { (exit 1); exit 1; }; }
2546 fi
2547
2548 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2549 fi
2550 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2551 echo "${ECHO_T}$ac_cv_objext" >&6; }
2552 OBJEXT=$ac_cv_objext
2553 ac_objext=$OBJEXT
2554 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2555 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2556 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2557   echo $ECHO_N "(cached) $ECHO_C" >&6
2558 else
2559   cat >conftest.$ac_ext <<_ACEOF
2560 /* confdefs.h.  */
2561 _ACEOF
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h.  */
2565
2566 int
2567 main ()
2568 {
2569 #ifndef __GNUC__
2570        choke me
2571 #endif
2572
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.$ac_objext
2578 if { (ac_try="$ac_compile"
2579 case "(($ac_try" in
2580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581   *) ac_try_echo=$ac_try;;
2582 esac
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584   (eval "$ac_compile") 2>conftest.er1
2585   ac_status=$?
2586   grep -v '^ *+' conftest.er1 >conftest.err
2587   rm -f conftest.er1
2588   cat conftest.err >&5
2589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590   (exit $ac_status); } && {
2591          test -z "$ac_c_werror_flag" ||
2592          test ! -s conftest.err
2593        } && test -s conftest.$ac_objext; then
2594   ac_compiler_gnu=yes
2595 else
2596   echo "$as_me: failed program was:" >&5
2597 sed 's/^/| /' conftest.$ac_ext >&5
2598
2599         ac_compiler_gnu=no
2600 fi
2601
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2604
2605 fi
2606 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2607 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2608 GCC=`test $ac_compiler_gnu = yes && echo yes`
2609 ac_test_CFLAGS=${CFLAGS+set}
2610 ac_save_CFLAGS=$CFLAGS
2611 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2612 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2613 if test "${ac_cv_prog_cc_g+set}" = set; then
2614   echo $ECHO_N "(cached) $ECHO_C" >&6
2615 else
2616   ac_save_c_werror_flag=$ac_c_werror_flag
2617    ac_c_werror_flag=yes
2618    ac_cv_prog_cc_g=no
2619    CFLAGS="-g"
2620    cat >conftest.$ac_ext <<_ACEOF
2621 /* confdefs.h.  */
2622 _ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h.  */
2626
2627 int
2628 main ()
2629 {
2630
2631   ;
2632   return 0;
2633 }
2634 _ACEOF
2635 rm -f conftest.$ac_objext
2636 if { (ac_try="$ac_compile"
2637 case "(($ac_try" in
2638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639   *) ac_try_echo=$ac_try;;
2640 esac
2641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642   (eval "$ac_compile") 2>conftest.er1
2643   ac_status=$?
2644   grep -v '^ *+' conftest.er1 >conftest.err
2645   rm -f conftest.er1
2646   cat conftest.err >&5
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); } && {
2649          test -z "$ac_c_werror_flag" ||
2650          test ! -s conftest.err
2651        } && test -s conftest.$ac_objext; then
2652   ac_cv_prog_cc_g=yes
2653 else
2654   echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2656
2657         CFLAGS=""
2658       cat >conftest.$ac_ext <<_ACEOF
2659 /* confdefs.h.  */
2660 _ACEOF
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h.  */
2664
2665 int
2666 main ()
2667 {
2668
2669   ;
2670   return 0;
2671 }
2672 _ACEOF
2673 rm -f conftest.$ac_objext
2674 if { (ac_try="$ac_compile"
2675 case "(($ac_try" in
2676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677   *) ac_try_echo=$ac_try;;
2678 esac
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680   (eval "$ac_compile") 2>conftest.er1
2681   ac_status=$?
2682   grep -v '^ *+' conftest.er1 >conftest.err
2683   rm -f conftest.er1
2684   cat conftest.err >&5
2685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686   (exit $ac_status); } && {
2687          test -z "$ac_c_werror_flag" ||
2688          test ! -s conftest.err
2689        } && test -s conftest.$ac_objext; then
2690   :
2691 else
2692   echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2694
2695         ac_c_werror_flag=$ac_save_c_werror_flag
2696          CFLAGS="-g"
2697          cat >conftest.$ac_ext <<_ACEOF
2698 /* confdefs.h.  */
2699 _ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h.  */
2703
2704 int
2705 main ()
2706 {
2707
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (ac_try="$ac_compile"
2714 case "(($ac_try" in
2715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716   *) ac_try_echo=$ac_try;;
2717 esac
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719   (eval "$ac_compile") 2>conftest.er1
2720   ac_status=$?
2721   grep -v '^ *+' conftest.er1 >conftest.err
2722   rm -f conftest.er1
2723   cat conftest.err >&5
2724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2725   (exit $ac_status); } && {
2726          test -z "$ac_c_werror_flag" ||
2727          test ! -s conftest.err
2728        } && test -s conftest.$ac_objext; then
2729   ac_cv_prog_cc_g=yes
2730 else
2731   echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2733
2734
2735 fi
2736
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 fi
2739
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 fi
2742
2743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744    ac_c_werror_flag=$ac_save_c_werror_flag
2745 fi
2746 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2747 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2748 if test "$ac_test_CFLAGS" = set; then
2749   CFLAGS=$ac_save_CFLAGS
2750 elif test $ac_cv_prog_cc_g = yes; then
2751   if test "$GCC" = yes; then
2752     CFLAGS="-g -O2"
2753   else
2754     CFLAGS="-g"
2755   fi
2756 else
2757   if test "$GCC" = yes; then
2758     CFLAGS="-O2"
2759   else
2760     CFLAGS=
2761   fi
2762 fi
2763 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2764 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2765 if test "${ac_cv_prog_cc_c89+set}" = set; then
2766   echo $ECHO_N "(cached) $ECHO_C" >&6
2767 else
2768   ac_cv_prog_cc_c89=no
2769 ac_save_CC=$CC
2770 cat >conftest.$ac_ext <<_ACEOF
2771 /* confdefs.h.  */
2772 _ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h.  */
2776 #include <stdarg.h>
2777 #include <stdio.h>
2778 #include <sys/types.h>
2779 #include <sys/stat.h>
2780 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2781 struct buf { int x; };
2782 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2783 static char *e (p, i)
2784      char **p;
2785      int i;
2786 {
2787   return p[i];
2788 }
2789 static char *f (char * (*g) (char **, int), char **p, ...)
2790 {
2791   char *s;
2792   va_list v;
2793   va_start (v,p);
2794   s = g (p, va_arg (v,int));
2795   va_end (v);
2796   return s;
2797 }
2798
2799 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2800    function prototypes and stuff, but not '\xHH' hex character constants.
2801    These don't provoke an error unfortunately, instead are silently treated
2802    as 'x'.  The following induces an error, until -std is added to get
2803    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2804    array size at least.  It's necessary to write '\x00'==0 to get something
2805    that's true only with -std.  */
2806 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2807
2808 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2809    inside strings and character constants.  */
2810 #define FOO(x) 'x'
2811 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2812
2813 int test (int i, double x);
2814 struct s1 {int (*f) (int a);};
2815 struct s2 {int (*f) (double a);};
2816 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2817 int argc;
2818 char **argv;
2819 int
2820 main ()
2821 {
2822 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2823   ;
2824   return 0;
2825 }
2826 _ACEOF
2827 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2828         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2829 do
2830   CC="$ac_save_CC $ac_arg"
2831   rm -f conftest.$ac_objext
2832 if { (ac_try="$ac_compile"
2833 case "(($ac_try" in
2834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835   *) ac_try_echo=$ac_try;;
2836 esac
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838   (eval "$ac_compile") 2>conftest.er1
2839   ac_status=$?
2840   grep -v '^ *+' conftest.er1 >conftest.err
2841   rm -f conftest.er1
2842   cat conftest.err >&5
2843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844   (exit $ac_status); } && {
2845          test -z "$ac_c_werror_flag" ||
2846          test ! -s conftest.err
2847        } && test -s conftest.$ac_objext; then
2848   ac_cv_prog_cc_c89=$ac_arg
2849 else
2850   echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2852
2853
2854 fi
2855
2856 rm -f core conftest.err conftest.$ac_objext
2857   test "x$ac_cv_prog_cc_c89" != "xno" && break
2858 done
2859 rm -f conftest.$ac_ext
2860 CC=$ac_save_CC
2861
2862 fi
2863 # AC_CACHE_VAL
2864 case "x$ac_cv_prog_cc_c89" in
2865   x)
2866     { echo "$as_me:$LINENO: result: none needed" >&5
2867 echo "${ECHO_T}none needed" >&6; } ;;
2868   xno)
2869     { echo "$as_me:$LINENO: result: unsupported" >&5
2870 echo "${ECHO_T}unsupported" >&6; } ;;
2871   *)
2872     CC="$CC $ac_cv_prog_cc_c89"
2873     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2874 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2875 esac
2876
2877
2878 ac_ext=c
2879 ac_cpp='$CPP $CPPFLAGS'
2880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2883
2884  ac_ext=cpp
2885 ac_cpp='$CXXCPP $CPPFLAGS'
2886 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2887 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2888 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2889 if test -z "$CXX"; then
2890   if test -n "$CCC"; then
2891     CXX=$CCC
2892   else
2893     if test -n "$ac_tool_prefix"; then
2894   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2895   do
2896     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2897 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2900 if test "${ac_cv_prog_CXX+set}" = set; then
2901   echo $ECHO_N "(cached) $ECHO_C" >&6
2902 else
2903   if test -n "$CXX"; then
2904   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2905 else
2906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907 for as_dir in $PATH
2908 do
2909   IFS=$as_save_IFS
2910   test -z "$as_dir" && as_dir=.
2911   for ac_exec_ext in '' $ac_executable_extensions; do
2912   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2913     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2914     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2915     break 2
2916   fi
2917 done
2918 done
2919 IFS=$as_save_IFS
2920
2921 fi
2922 fi
2923 CXX=$ac_cv_prog_CXX
2924 if test -n "$CXX"; then
2925   { echo "$as_me:$LINENO: result: $CXX" >&5
2926 echo "${ECHO_T}$CXX" >&6; }
2927 else
2928   { echo "$as_me:$LINENO: result: no" >&5
2929 echo "${ECHO_T}no" >&6; }
2930 fi
2931
2932
2933     test -n "$CXX" && break
2934   done
2935 fi
2936 if test -z "$CXX"; then
2937   ac_ct_CXX=$CXX
2938   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2939 do
2940   # Extract the first word of "$ac_prog", so it can be a program name with args.
2941 set dummy $ac_prog; ac_word=$2
2942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2944 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2945   echo $ECHO_N "(cached) $ECHO_C" >&6
2946 else
2947   if test -n "$ac_ct_CXX"; then
2948   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2949 else
2950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951 for as_dir in $PATH
2952 do
2953   IFS=$as_save_IFS
2954   test -z "$as_dir" && as_dir=.
2955   for ac_exec_ext in '' $ac_executable_extensions; do
2956   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957     ac_cv_prog_ac_ct_CXX="$ac_prog"
2958     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2959     break 2
2960   fi
2961 done
2962 done
2963 IFS=$as_save_IFS
2964
2965 fi
2966 fi
2967 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2968 if test -n "$ac_ct_CXX"; then
2969   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2970 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2971 else
2972   { echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6; }
2974 fi
2975
2976
2977   test -n "$ac_ct_CXX" && break
2978 done
2979
2980   if test "x$ac_ct_CXX" = x; then
2981     CXX="g++"
2982   else
2983     case $cross_compiling:$ac_tool_warned in
2984 yes:)
2985 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2986 whose name does not start with the host triplet.  If you think this
2987 configuration is useful to you, please write to autoconf@gnu.org." >&5
2988 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2989 whose name does not start with the host triplet.  If you think this
2990 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2991 ac_tool_warned=yes ;;
2992 esac
2993     CXX=$ac_ct_CXX
2994   fi
2995 fi
2996
2997   fi
2998 fi
2999 # Provide some information about the compiler.
3000 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3001 ac_compiler=`set X $ac_compile; echo $2`
3002 { (ac_try="$ac_compiler --version >&5"
3003 case "(($ac_try" in
3004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3005   *) ac_try_echo=$ac_try;;
3006 esac
3007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3008   (eval "$ac_compiler --version >&5") 2>&5
3009   ac_status=$?
3010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3011   (exit $ac_status); }
3012 { (ac_try="$ac_compiler -v >&5"
3013 case "(($ac_try" in
3014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3015   *) ac_try_echo=$ac_try;;
3016 esac
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018   (eval "$ac_compiler -v >&5") 2>&5
3019   ac_status=$?
3020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021   (exit $ac_status); }
3022 { (ac_try="$ac_compiler -V >&5"
3023 case "(($ac_try" in
3024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025   *) ac_try_echo=$ac_try;;
3026 esac
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028   (eval "$ac_compiler -V >&5") 2>&5
3029   ac_status=$?
3030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031   (exit $ac_status); }
3032
3033 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3034 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3035 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3036   echo $ECHO_N "(cached) $ECHO_C" >&6
3037 else
3038   cat >conftest.$ac_ext <<_ACEOF
3039 /* confdefs.h.  */
3040 _ACEOF
3041 cat confdefs.h >>conftest.$ac_ext
3042 cat >>conftest.$ac_ext <<_ACEOF
3043 /* end confdefs.h.  */
3044
3045 int
3046 main ()
3047 {
3048 #ifndef __GNUC__
3049        choke me
3050 #endif
3051
3052   ;
3053   return 0;
3054 }
3055 _ACEOF
3056 rm -f conftest.$ac_objext
3057 if { (ac_try="$ac_compile"
3058 case "(($ac_try" in
3059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060   *) ac_try_echo=$ac_try;;
3061 esac
3062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3063   (eval "$ac_compile") 2>conftest.er1
3064   ac_status=$?
3065   grep -v '^ *+' conftest.er1 >conftest.err
3066   rm -f conftest.er1
3067   cat conftest.err >&5
3068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3069   (exit $ac_status); } && {
3070          test -z "$ac_cxx_werror_flag" ||
3071          test ! -s conftest.err
3072        } && test -s conftest.$ac_objext; then
3073   ac_compiler_gnu=yes
3074 else
3075   echo "$as_me: failed program was:" >&5
3076 sed 's/^/| /' conftest.$ac_ext >&5
3077
3078         ac_compiler_gnu=no
3079 fi
3080
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3083
3084 fi
3085 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3086 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3087 GXX=`test $ac_compiler_gnu = yes && echo yes`
3088 ac_test_CXXFLAGS=${CXXFLAGS+set}
3089 ac_save_CXXFLAGS=$CXXFLAGS
3090 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3091 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3092 if test "${ac_cv_prog_cxx_g+set}" = set; then
3093   echo $ECHO_N "(cached) $ECHO_C" >&6
3094 else
3095   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3096    ac_cxx_werror_flag=yes
3097    ac_cv_prog_cxx_g=no
3098    CXXFLAGS="-g"
3099    cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h.  */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h.  */
3105
3106 int
3107 main ()
3108 {
3109
3110   ;
3111   return 0;
3112 }
3113 _ACEOF
3114 rm -f conftest.$ac_objext
3115 if { (ac_try="$ac_compile"
3116 case "(($ac_try" in
3117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3118   *) ac_try_echo=$ac_try;;
3119 esac
3120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3121   (eval "$ac_compile") 2>conftest.er1
3122   ac_status=$?
3123   grep -v '^ *+' conftest.er1 >conftest.err
3124   rm -f conftest.er1
3125   cat conftest.err >&5
3126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127   (exit $ac_status); } && {
3128          test -z "$ac_cxx_werror_flag" ||
3129          test ! -s conftest.err
3130        } && test -s conftest.$ac_objext; then
3131   ac_cv_prog_cxx_g=yes
3132 else
3133   echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3135
3136         CXXFLAGS=""
3137       cat >conftest.$ac_ext <<_ACEOF
3138 /* confdefs.h.  */
3139 _ACEOF
3140 cat confdefs.h >>conftest.$ac_ext
3141 cat >>conftest.$ac_ext <<_ACEOF
3142 /* end confdefs.h.  */
3143
3144 int
3145 main ()
3146 {
3147
3148   ;
3149   return 0;
3150 }
3151 _ACEOF
3152 rm -f conftest.$ac_objext
3153 if { (ac_try="$ac_compile"
3154 case "(($ac_try" in
3155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156   *) ac_try_echo=$ac_try;;
3157 esac
3158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3159   (eval "$ac_compile") 2>conftest.er1
3160   ac_status=$?
3161   grep -v '^ *+' conftest.er1 >conftest.err
3162   rm -f conftest.er1
3163   cat conftest.err >&5
3164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165   (exit $ac_status); } && {
3166          test -z "$ac_cxx_werror_flag" ||
3167          test ! -s conftest.err
3168        } && test -s conftest.$ac_objext; then
3169   :
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3175          CXXFLAGS="-g"
3176          cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h.  */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h.  */
3182
3183 int
3184 main ()
3185 {
3186
3187   ;
3188   return 0;
3189 }
3190 _ACEOF
3191 rm -f conftest.$ac_objext
3192 if { (ac_try="$ac_compile"
3193 case "(($ac_try" in
3194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195   *) ac_try_echo=$ac_try;;
3196 esac
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198   (eval "$ac_compile") 2>conftest.er1
3199   ac_status=$?
3200   grep -v '^ *+' conftest.er1 >conftest.err
3201   rm -f conftest.er1
3202   cat conftest.err >&5
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); } && {
3205          test -z "$ac_cxx_werror_flag" ||
3206          test ! -s conftest.err
3207        } && test -s conftest.$ac_objext; then
3208   ac_cv_prog_cxx_g=yes
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213
3214 fi
3215
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 fi
3218
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3224 fi
3225 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3226 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3227 if test "$ac_test_CXXFLAGS" = set; then
3228   CXXFLAGS=$ac_save_CXXFLAGS
3229 elif test $ac_cv_prog_cxx_g = yes; then
3230   if test "$GXX" = yes; then
3231     CXXFLAGS="-g -O2"
3232   else
3233     CXXFLAGS="-g"
3234   fi
3235 else
3236   if test "$GXX" = yes; then
3237     CXXFLAGS="-O2"
3238   else
3239     CXXFLAGS=
3240   fi
3241 fi
3242 ac_ext=c
3243 ac_cpp='$CPP $CPPFLAGS'
3244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3247
3248
3249
3250
3251 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3252 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3253
3254 cat > conftest.c << EOF
3255 #include <stdlib.h>
3256 #include <stdio.h>
3257
3258 int main (int argc, char*argv)
3259 {
3260     int a,b;
3261     b=3;
3262     int c;
3263     c=4;
3264     return 0;
3265 }
3266 EOF
3267
3268 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3269 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3270   { echo "$as_me:$LINENO: result: yes" >&5
3271 echo "${ECHO_T}yes" >&6; }
3272   GCC_IS_OK=true
3273   export GCC_IS_OK
3274 else
3275   echo "configure: failed program was:" >&5
3276   cat conftest.c >&5
3277   { echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6; }
3279 fi
3280 rm -f conftest*
3281
3282
3283 if test "x$GCC_IS_OK" '=' "x";then
3284     echo "***************************************************"
3285     echo "* Your gcc is too old to compile this!"
3286     echo "* "
3287     echo "* The last version compilable by this compiler is "
3288     echo "* swftools 0.7.0, which you can download from "
3289     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3290     echo "* ."
3291     echo "* Newer versions require at least gcc 3.0.0 "
3292     echo "***************************************************"
3293     exit 1
3294 fi
3295
3296 if test "x$CHECKMEM" '!=' "x";then
3297     CC="ccmalloc $CC"
3298     CXX="ccmalloc $CXX"
3299     #echo running again
3300     #unset ac_cv_prog_CC
3301     #unset ac_cv_prog_CXX
3302     #AC_PROG_CC
3303     #AC_PROG_CXX
3304 fi
3305  ac_ext=c
3306 ac_cpp='$CPP $CPPFLAGS'
3307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3310 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3311 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3312 # On Suns, sometimes $CPP names a directory.
3313 if test -n "$CPP" && test -d "$CPP"; then
3314   CPP=
3315 fi
3316 if test -z "$CPP"; then
3317   if test "${ac_cv_prog_CPP+set}" = set; then
3318   echo $ECHO_N "(cached) $ECHO_C" >&6
3319 else
3320       # Double quotes because CPP needs to be expanded
3321     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3322     do
3323       ac_preproc_ok=false
3324 for ac_c_preproc_warn_flag in '' yes
3325 do
3326   # Use a header file that comes with gcc, so configuring glibc
3327   # with a fresh cross-compiler works.
3328   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3329   # <limits.h> exists even on freestanding compilers.
3330   # On the NeXT, cc -E runs the code through the compiler's parser,
3331   # not just through cpp. "Syntax error" is here to catch this case.
3332   cat >conftest.$ac_ext <<_ACEOF
3333 /* confdefs.h.  */
3334 _ACEOF
3335 cat confdefs.h >>conftest.$ac_ext
3336 cat >>conftest.$ac_ext <<_ACEOF
3337 /* end confdefs.h.  */
3338 #ifdef __STDC__
3339 # include <limits.h>
3340 #else
3341 # include <assert.h>
3342 #endif
3343                      Syntax error
3344 _ACEOF
3345 if { (ac_try="$ac_cpp conftest.$ac_ext"
3346 case "(($ac_try" in
3347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348   *) ac_try_echo=$ac_try;;
3349 esac
3350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3352   ac_status=$?
3353   grep -v '^ *+' conftest.er1 >conftest.err
3354   rm -f conftest.er1
3355   cat conftest.err >&5
3356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357   (exit $ac_status); } >/dev/null && {
3358          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3359          test ! -s conftest.err
3360        }; then
3361   :
3362 else
3363   echo "$as_me: failed program was:" >&5
3364 sed 's/^/| /' conftest.$ac_ext >&5
3365
3366   # Broken: fails on valid input.
3367 continue
3368 fi
3369
3370 rm -f conftest.err conftest.$ac_ext
3371
3372   # OK, works on sane cases.  Now check whether nonexistent headers
3373   # can be detected and how.
3374   cat >conftest.$ac_ext <<_ACEOF
3375 /* confdefs.h.  */
3376 _ACEOF
3377 cat confdefs.h >>conftest.$ac_ext
3378 cat >>conftest.$ac_ext <<_ACEOF
3379 /* end confdefs.h.  */
3380 #include <ac_nonexistent.h>
3381 _ACEOF
3382 if { (ac_try="$ac_cpp conftest.$ac_ext"
3383 case "(($ac_try" in
3384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3385   *) ac_try_echo=$ac_try;;
3386 esac
3387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3388   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3389   ac_status=$?
3390   grep -v '^ *+' conftest.er1 >conftest.err
3391   rm -f conftest.er1
3392   cat conftest.err >&5
3393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3394   (exit $ac_status); } >/dev/null && {
3395          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3396          test ! -s conftest.err
3397        }; then
3398   # Broken: success on invalid input.
3399 continue
3400 else
3401   echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3403
3404   # Passes both tests.
3405 ac_preproc_ok=:
3406 break
3407 fi
3408
3409 rm -f conftest.err conftest.$ac_ext
3410
3411 done
3412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3413 rm -f conftest.err conftest.$ac_ext
3414 if $ac_preproc_ok; then
3415   break
3416 fi
3417
3418     done
3419     ac_cv_prog_CPP=$CPP
3420
3421 fi
3422   CPP=$ac_cv_prog_CPP
3423 else
3424   ac_cv_prog_CPP=$CPP
3425 fi
3426 { echo "$as_me:$LINENO: result: $CPP" >&5
3427 echo "${ECHO_T}$CPP" >&6; }
3428 ac_preproc_ok=false
3429 for ac_c_preproc_warn_flag in '' yes
3430 do
3431   # Use a header file that comes with gcc, so configuring glibc
3432   # with a fresh cross-compiler works.
3433   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3434   # <limits.h> exists even on freestanding compilers.
3435   # On the NeXT, cc -E runs the code through the compiler's parser,
3436   # not just through cpp. "Syntax error" is here to catch this case.
3437   cat >conftest.$ac_ext <<_ACEOF
3438 /* confdefs.h.  */
3439 _ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h.  */
3443 #ifdef __STDC__
3444 # include <limits.h>
3445 #else
3446 # include <assert.h>
3447 #endif
3448                      Syntax error
3449 _ACEOF
3450 if { (ac_try="$ac_cpp conftest.$ac_ext"
3451 case "(($ac_try" in
3452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453   *) ac_try_echo=$ac_try;;
3454 esac
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3457   ac_status=$?
3458   grep -v '^ *+' conftest.er1 >conftest.err
3459   rm -f conftest.er1
3460   cat conftest.err >&5
3461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462   (exit $ac_status); } >/dev/null && {
3463          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3464          test ! -s conftest.err
3465        }; then
3466   :
3467 else
3468   echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3470
3471   # Broken: fails on valid input.
3472 continue
3473 fi
3474
3475 rm -f conftest.err conftest.$ac_ext
3476
3477   # OK, works on sane cases.  Now check whether nonexistent headers
3478   # can be detected and how.
3479   cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h.  */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h.  */
3485 #include <ac_nonexistent.h>
3486 _ACEOF
3487 if { (ac_try="$ac_cpp conftest.$ac_ext"
3488 case "(($ac_try" in
3489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3490   *) ac_try_echo=$ac_try;;
3491 esac
3492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3493   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3494   ac_status=$?
3495   grep -v '^ *+' conftest.er1 >conftest.err
3496   rm -f conftest.er1
3497   cat conftest.err >&5
3498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3499   (exit $ac_status); } >/dev/null && {
3500          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3501          test ! -s conftest.err
3502        }; then
3503   # Broken: success on invalid input.
3504 continue
3505 else
3506   echo "$as_me: failed program was:" >&5
3507 sed 's/^/| /' conftest.$ac_ext >&5
3508
3509   # Passes both tests.
3510 ac_preproc_ok=:
3511 break
3512 fi
3513
3514 rm -f conftest.err conftest.$ac_ext
3515
3516 done
3517 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3518 rm -f conftest.err conftest.$ac_ext
3519 if $ac_preproc_ok; then
3520   :
3521 else
3522   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3523 See \`config.log' for more details." >&5
3524 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3525 See \`config.log' for more details." >&2;}
3526    { (exit 1); exit 1; }; }
3527 fi
3528
3529 ac_ext=c
3530 ac_cpp='$CPP $CPPFLAGS'
3531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3534
3535
3536  if test -n "$ac_tool_prefix"; then
3537   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3538 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3541 if test "${ac_cv_prog_RANLIB+set}" = set; then
3542   echo $ECHO_N "(cached) $ECHO_C" >&6
3543 else
3544   if test -n "$RANLIB"; then
3545   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   test -z "$as_dir" && as_dir=.
3552   for ac_exec_ext in '' $ac_executable_extensions; do
3553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3554     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3556     break 2
3557   fi
3558 done
3559 done
3560 IFS=$as_save_IFS
3561
3562 fi
3563 fi
3564 RANLIB=$ac_cv_prog_RANLIB
3565 if test -n "$RANLIB"; then
3566   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3567 echo "${ECHO_T}$RANLIB" >&6; }
3568 else
3569   { echo "$as_me:$LINENO: result: no" >&5
3570 echo "${ECHO_T}no" >&6; }
3571 fi
3572
3573
3574 fi
3575 if test -z "$ac_cv_prog_RANLIB"; then
3576   ac_ct_RANLIB=$RANLIB
3577   # Extract the first word of "ranlib", so it can be a program name with args.
3578 set dummy ranlib; ac_word=$2
3579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3581 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3582   echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584   if test -n "$ac_ct_RANLIB"; then
3585   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3589 do
3590   IFS=$as_save_IFS
3591   test -z "$as_dir" && as_dir=.
3592   for ac_exec_ext in '' $ac_executable_extensions; do
3593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3594     ac_cv_prog_ac_ct_RANLIB="ranlib"
3595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596     break 2
3597   fi
3598 done
3599 done
3600 IFS=$as_save_IFS
3601
3602 fi
3603 fi
3604 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3605 if test -n "$ac_ct_RANLIB"; then
3606   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3607 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3608 else
3609   { echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6; }
3611 fi
3612
3613   if test "x$ac_ct_RANLIB" = x; then
3614     RANLIB=":"
3615   else
3616     case $cross_compiling:$ac_tool_warned in
3617 yes:)
3618 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3619 whose name does not start with the host triplet.  If you think this
3620 configuration is useful to you, please write to autoconf@gnu.org." >&5
3621 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3622 whose name does not start with the host triplet.  If you think this
3623 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3624 ac_tool_warned=yes ;;
3625 esac
3626     RANLIB=$ac_ct_RANLIB
3627   fi
3628 else
3629   RANLIB="$ac_cv_prog_RANLIB"
3630 fi
3631
3632  { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3633 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3634 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3635 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3636   echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638   cat >conftest.make <<\_ACEOF
3639 SHELL = /bin/sh
3640 all:
3641         @echo '@@@%%%=$(MAKE)=@@@%%%'
3642 _ACEOF
3643 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3644 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3645   *@@@%%%=?*=@@@%%%*)
3646     eval ac_cv_prog_make_${ac_make}_set=yes;;
3647   *)
3648     eval ac_cv_prog_make_${ac_make}_set=no;;
3649 esac
3650 rm -f conftest.make
3651 fi
3652 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3653   { echo "$as_me:$LINENO: result: yes" >&5
3654 echo "${ECHO_T}yes" >&6; }
3655   SET_MAKE=
3656 else
3657   { echo "$as_me:$LINENO: result: no" >&5
3658 echo "${ECHO_T}no" >&6; }
3659   SET_MAKE="MAKE=${MAKE-make}"
3660 fi
3661
3662  # Find a good install program.  We prefer a C program (faster),
3663 # so one script is as good as another.  But avoid the broken or
3664 # incompatible versions:
3665 # SysV /etc/install, /usr/sbin/install
3666 # SunOS /usr/etc/install
3667 # IRIX /sbin/install
3668 # AIX /bin/install
3669 # AmigaOS /C/install, which installs bootblocks on floppy discs
3670 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3671 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3672 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3673 # OS/2's system install, which has a completely different semantic
3674 # ./install, which can be erroneously created by make from ./install.sh.
3675 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3676 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3677 if test -z "$INSTALL"; then
3678 if test "${ac_cv_path_install+set}" = set; then
3679   echo $ECHO_N "(cached) $ECHO_C" >&6
3680 else
3681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 for as_dir in $PATH
3683 do
3684   IFS=$as_save_IFS
3685   test -z "$as_dir" && as_dir=.
3686   # Account for people who put trailing slashes in PATH elements.
3687 case $as_dir/ in
3688   ./ | .// | /cC/* | \
3689   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3690   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3691   /usr/ucb/* ) ;;
3692   *)
3693     # OSF1 and SCO ODT 3.0 have their own names for install.
3694     # Don't use installbsd from OSF since it installs stuff as root
3695     # by default.
3696     for ac_prog in ginstall scoinst install; do
3697       for ac_exec_ext in '' $ac_executable_extensions; do
3698         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3699           if test $ac_prog = install &&
3700             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3701             # AIX install.  It has an incompatible calling convention.
3702             :
3703           elif test $ac_prog = install &&
3704             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3705             # program-specific install script used by HP pwplus--don't use.
3706             :
3707           else
3708             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3709             break 3
3710           fi
3711         fi
3712       done
3713     done
3714     ;;
3715 esac
3716 done
3717 IFS=$as_save_IFS
3718
3719
3720 fi
3721   if test "${ac_cv_path_install+set}" = set; then
3722     INSTALL=$ac_cv_path_install
3723   else
3724     # As a last resort, use the slow shell script.  Don't cache a
3725     # value for INSTALL within a source directory, because that will
3726     # break other packages using the cache if that directory is
3727     # removed, or if the value is a relative name.
3728     INSTALL=$ac_install_sh
3729   fi
3730 fi
3731 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3732 echo "${ECHO_T}$INSTALL" >&6; }
3733
3734 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3735 # It thinks the first close brace ends the variable substitution.
3736 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3737
3738 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3739
3740 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3741
3742  { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3743 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3744 LN_S=$as_ln_s
3745 if test "$LN_S" = "ln -s"; then
3746   { echo "$as_me:$LINENO: result: yes" >&5
3747 echo "${ECHO_T}yes" >&6; }
3748 else
3749   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3750 echo "${ECHO_T}no, using $LN_S" >&6; }
3751 fi
3752
3753  for ac_prog in gzip uncompress compress
3754 do
3755   # Extract the first word of "$ac_prog", so it can be a program name with args.
3756 set dummy $ac_prog; ac_word=$2
3757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3759 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3760   echo $ECHO_N "(cached) $ECHO_C" >&6
3761 else
3762   if test -n "$UNCOMPRESS"; then
3763   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768   IFS=$as_save_IFS
3769   test -z "$as_dir" && as_dir=.
3770   for ac_exec_ext in '' $ac_executable_extensions; do
3771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772     ac_cv_prog_UNCOMPRESS="$ac_prog"
3773     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774     break 2
3775   fi
3776 done
3777 done
3778 IFS=$as_save_IFS
3779
3780 fi
3781 fi
3782 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3783 if test -n "$UNCOMPRESS"; then
3784   { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3785 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3786 else
3787   { echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6; }
3789 fi
3790
3791
3792   test -n "$UNCOMPRESS" && break
3793 done
3794
3795
3796 OBJEXT="o"
3797 AREXT=".a"
3798 CXXLIBS="-lstdc++"
3799
3800
3801
3802 if test "x$EXEEXT" = "x.exe";then
3803     OBJEXT="obj"
3804     AREXT=".lib"
3805     CXXLIBS=""
3806 fi
3807
3808
3809
3810
3811 { echo "$as_me:$LINENO: checking host system type" >&5
3812 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3813 if test "${ac_cv_host+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   if test "x$host_alias" = x; then
3817   ac_cv_host=$ac_cv_build
3818 else
3819   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3820     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3821 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3822    { (exit 1); exit 1; }; }
3823 fi
3824
3825 fi
3826 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3827 echo "${ECHO_T}$ac_cv_host" >&6; }
3828 case $ac_cv_host in
3829 *-*-*) ;;
3830 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3831 echo "$as_me: error: invalid value of canonical host" >&2;}
3832    { (exit 1); exit 1; }; };;
3833 esac
3834 host=$ac_cv_host
3835 ac_save_IFS=$IFS; IFS='-'
3836 set x $ac_cv_host
3837 shift
3838 host_cpu=$1
3839 host_vendor=$2
3840 shift; shift
3841 # Remember, the first character of IFS is used to create $*,
3842 # except with old shells:
3843 host_os=$*
3844 IFS=$ac_save_IFS
3845 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3846
3847
3848
3849
3850 { echo "$as_me:$LINENO: checking for target system" >&5
3851 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
3852 CYGWIN=
3853 MINGW=
3854 case $host_os in
3855     *cygwin* ) CYGWIN=yes;;
3856     *mingw* ) MINGW=yes;;
3857 esac
3858
3859 AR=ar
3860 if test "x$MINGW" = "xyes"; then
3861     #fix for the debian distribution of mingw
3862     if test -x "/usr/i586-mingw32msvc/bin/ar";then
3863         AR="/usr/i586-mingw32msvc/bin/ar"
3864     fi
3865     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
3866         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
3867     fi
3868     #fix for the gentoo distribution of mingw
3869     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
3870         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
3871     fi
3872     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
3873         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
3874     fi
3875     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
3876         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
3877     fi
3878 fi
3879
3880
3881
3882 if test "x${CYGWIN}" = "xyes"; then
3883     cat >>confdefs.h <<_ACEOF
3884 #define CYGWIN 1
3885 _ACEOF
3886
3887     { echo "$as_me:$LINENO: result: cygwin" >&5
3888 echo "${ECHO_T}cygwin" >&6; }
3889 else
3890     if test "x${MINGW}" = "xyes"; then
3891         cat >>confdefs.h <<_ACEOF
3892 #define MINGW 1
3893 _ACEOF
3894
3895         WIN32=1
3896         cat >>confdefs.h <<_ACEOF
3897 #define WIN32 1
3898 _ACEOF
3899
3900         LIBS="$LIBS -lws2_32 -lgdi32"
3901         { echo "$as_me:$LINENO: result: mingw" >&5
3902 echo "${ECHO_T}mingw" >&6; }
3903     else
3904         LINUX=1
3905         export LINUX
3906         cat >>confdefs.h <<_ACEOF
3907 #define LINUX 1
3908 _ACEOF
3909
3910         { echo "$as_me:$LINENO: result: " >&5
3911 echo "${ECHO_T}" >&6; }
3912     fi
3913 fi
3914
3915
3916 SLEXT="so"
3917 if test "x${MINGW}" != "xyes"; then
3918     # no mingW
3919     cat >>confdefs.h <<_ACEOF
3920 #define O_BINARY 0
3921 _ACEOF
3922
3923 else
3924     # mingW
3925     SLEXT="dll"
3926     CXXLIBS=""
3927 fi
3928 export SLEXT
3929
3930
3931
3932 # The following tries to make use of includes and libraries in
3933 # /usr/local, too. Notice: A -I/usr/local/include might break
3934 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
3935 # especially on systems which link /usr/local to /usr, so it has yet
3936 # to be seen how useful this is.
3937 if test -d /usr/local/lib; then
3938     LDFLAGS="$LDFLAGS -L/usr/local/lib"
3939 fi
3940 if test -d /usr/local/include; then
3941 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
3942 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3943     echo > /dev/null
3944 fi
3945 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
3946     # if the user has a special prefix (like /opt), there might also be $prefix/lib
3947     # and $prefix/include, which should be included in our search paths for libraries
3948     # and includes.
3949     LDFLAGS="$LDFLAGS -L${libdir}"
3950     CPPFLAGS="$CPPFLAGS -I${includedir}"
3951     # TODO- test whether gcc still works after this
3952 fi
3953
3954 #Mac OS:
3955 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
3956
3957
3958 # this must be done after (I believe) AC_PROG_MAKE_SET
3959 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
3960     STRIP="@echo debug enabled, not stripping "
3961     export STRIP
3962
3963 fi
3964
3965
3966
3967 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
3968 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
3969 if test "${ac_cv_lib_m_sin+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   ac_check_lib_save_LIBS=$LIBS
3973 LIBS="-lm  $LIBS"
3974 cat >conftest.$ac_ext <<_ACEOF
3975 /* confdefs.h.  */
3976 _ACEOF
3977 cat confdefs.h >>conftest.$ac_ext
3978 cat >>conftest.$ac_ext <<_ACEOF
3979 /* end confdefs.h.  */
3980
3981 /* Override any GCC internal prototype to avoid an error.
3982    Use char because int might match the return type of a GCC
3983    builtin and then its argument prototype would still apply.  */
3984 #ifdef __cplusplus
3985 extern "C"
3986 #endif
3987 char sin ();
3988 int
3989 main ()
3990 {
3991 return sin ();
3992   ;
3993   return 0;
3994 }
3995 _ACEOF
3996 rm -f conftest.$ac_objext conftest$ac_exeext
3997 if { (ac_try="$ac_link"
3998 case "(($ac_try" in
3999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000   *) ac_try_echo=$ac_try;;
4001 esac
4002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4003   (eval "$ac_link") 2>conftest.er1
4004   ac_status=$?
4005   grep -v '^ *+' conftest.er1 >conftest.err
4006   rm -f conftest.er1
4007   cat conftest.err >&5
4008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009   (exit $ac_status); } && {
4010          test -z "$ac_c_werror_flag" ||
4011          test ! -s conftest.err
4012        } && test -s conftest$ac_exeext &&
4013        $as_test_x conftest$ac_exeext; then
4014   ac_cv_lib_m_sin=yes
4015 else
4016   echo "$as_me: failed program was:" >&5
4017 sed 's/^/| /' conftest.$ac_ext >&5
4018
4019         ac_cv_lib_m_sin=no
4020 fi
4021
4022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4023       conftest$ac_exeext conftest.$ac_ext
4024 LIBS=$ac_check_lib_save_LIBS
4025 fi
4026 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4027 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4028 if test $ac_cv_lib_m_sin = yes; then
4029   cat >>confdefs.h <<_ACEOF
4030 #define HAVE_LIBM 1
4031 _ACEOF
4032
4033   LIBS="-lm $LIBS"
4034
4035 else
4036   echo "Error: Math library not found.";
4037  exit;
4038
4039 fi
4040
4041
4042 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4043 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4044 if test "${ac_cv_lib_z_deflate+set}" = set; then
4045   echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047   ac_check_lib_save_LIBS=$LIBS
4048 LIBS="-lz  $LIBS"
4049 cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h.  */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h.  */
4055
4056 /* Override any GCC internal prototype to avoid an error.
4057    Use char because int might match the return type of a GCC
4058    builtin and then its argument prototype would still apply.  */
4059 #ifdef __cplusplus
4060 extern "C"
4061 #endif
4062 char deflate ();
4063 int
4064 main ()
4065 {
4066 return deflate ();
4067   ;
4068   return 0;
4069 }
4070 _ACEOF
4071 rm -f conftest.$ac_objext conftest$ac_exeext
4072 if { (ac_try="$ac_link"
4073 case "(($ac_try" in
4074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075   *) ac_try_echo=$ac_try;;
4076 esac
4077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4078   (eval "$ac_link") 2>conftest.er1
4079   ac_status=$?
4080   grep -v '^ *+' conftest.er1 >conftest.err
4081   rm -f conftest.er1
4082   cat conftest.err >&5
4083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084   (exit $ac_status); } && {
4085          test -z "$ac_c_werror_flag" ||
4086          test ! -s conftest.err
4087        } && test -s conftest$ac_exeext &&
4088        $as_test_x conftest$ac_exeext; then
4089   ac_cv_lib_z_deflate=yes
4090 else
4091   echo "$as_me: failed program was:" >&5
4092 sed 's/^/| /' conftest.$ac_ext >&5
4093
4094         ac_cv_lib_z_deflate=no
4095 fi
4096
4097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4098       conftest$ac_exeext conftest.$ac_ext
4099 LIBS=$ac_check_lib_save_LIBS
4100 fi
4101 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4102 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4103 if test $ac_cv_lib_z_deflate = yes; then
4104   cat >>confdefs.h <<_ACEOF
4105 #define HAVE_LIBZ 1
4106 _ACEOF
4107
4108   LIBS="-lz $LIBS"
4109
4110 else
4111   ZLIBMISSING=true
4112 fi
4113
4114
4115 if test "x$ZLIBMISSING" = "xtrue";then
4116     echo
4117     echo "ERROR:"
4118     echo "You need zlib to compile swftools"
4119     echo
4120     exit
4121 fi
4122
4123
4124 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4125 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4126 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4127   echo $ECHO_N "(cached) $ECHO_C" >&6
4128 else
4129   ac_check_lib_save_LIBS=$LIBS
4130 LIBS="-ljpeg  $LIBS"
4131 cat >conftest.$ac_ext <<_ACEOF
4132 /* confdefs.h.  */
4133 _ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h.  */
4137
4138 /* Override any GCC internal prototype to avoid an error.
4139    Use char because int might match the return type of a GCC
4140    builtin and then its argument prototype would still apply.  */
4141 #ifdef __cplusplus
4142 extern "C"
4143 #endif
4144 char jpeg_write_raw_data ();
4145 int
4146 main ()
4147 {
4148 return jpeg_write_raw_data ();
4149   ;
4150   return 0;
4151 }
4152 _ACEOF
4153 rm -f conftest.$ac_objext conftest$ac_exeext
4154 if { (ac_try="$ac_link"
4155 case "(($ac_try" in
4156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157   *) ac_try_echo=$ac_try;;
4158 esac
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160   (eval "$ac_link") 2>conftest.er1
4161   ac_status=$?
4162   grep -v '^ *+' conftest.er1 >conftest.err
4163   rm -f conftest.er1
4164   cat conftest.err >&5
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); } && {
4167          test -z "$ac_c_werror_flag" ||
4168          test ! -s conftest.err
4169        } && test -s conftest$ac_exeext &&
4170        $as_test_x conftest$ac_exeext; then
4171   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4172 else
4173   echo "$as_me: failed program was:" >&5
4174 sed 's/^/| /' conftest.$ac_ext >&5
4175
4176         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4177 fi
4178
4179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4180       conftest$ac_exeext conftest.$ac_ext
4181 LIBS=$ac_check_lib_save_LIBS
4182 fi
4183 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4184 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4185 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4186   cat >>confdefs.h <<_ACEOF
4187 #define HAVE_LIBJPEG 1
4188 _ACEOF
4189
4190   LIBS="-ljpeg $LIBS"
4191
4192 else
4193   JPEGLIBMISSING=true
4194 fi
4195
4196
4197 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4198 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4199 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4200   echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202   ac_check_lib_save_LIBS=$LIBS
4203 LIBS="-lungif  $LIBS"
4204 cat >conftest.$ac_ext <<_ACEOF
4205 /* confdefs.h.  */
4206 _ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h.  */
4210
4211 /* Override any GCC internal prototype to avoid an error.
4212    Use char because int might match the return type of a GCC
4213    builtin and then its argument prototype would still apply.  */
4214 #ifdef __cplusplus
4215 extern "C"
4216 #endif
4217 char DGifOpen ();
4218 int
4219 main ()
4220 {
4221 return DGifOpen ();
4222   ;
4223   return 0;
4224 }
4225 _ACEOF
4226 rm -f conftest.$ac_objext conftest$ac_exeext
4227 if { (ac_try="$ac_link"
4228 case "(($ac_try" in
4229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230   *) ac_try_echo=$ac_try;;
4231 esac
4232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233   (eval "$ac_link") 2>conftest.er1
4234   ac_status=$?
4235   grep -v '^ *+' conftest.er1 >conftest.err
4236   rm -f conftest.er1
4237   cat conftest.err >&5
4238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239   (exit $ac_status); } && {
4240          test -z "$ac_c_werror_flag" ||
4241          test ! -s conftest.err
4242        } && test -s conftest$ac_exeext &&
4243        $as_test_x conftest$ac_exeext; then
4244   ac_cv_lib_ungif_DGifOpen=yes
4245 else
4246   echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.$ac_ext >&5
4248
4249         ac_cv_lib_ungif_DGifOpen=no
4250 fi
4251
4252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4253       conftest$ac_exeext conftest.$ac_ext
4254 LIBS=$ac_check_lib_save_LIBS
4255 fi
4256 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4257 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4258 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4259   cat >>confdefs.h <<_ACEOF
4260 #define HAVE_LIBUNGIF 1
4261 _ACEOF
4262
4263   LIBS="-lungif $LIBS"
4264
4265 else
4266   UNGIFMISSING=true
4267 fi
4268
4269 if test "$UNGIFMISSING";then
4270     UNGIFMISSING=
4271
4272 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4273 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4274 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4275   echo $ECHO_N "(cached) $ECHO_C" >&6
4276 else
4277   ac_check_lib_save_LIBS=$LIBS
4278 LIBS="-lgif  $LIBS"
4279 cat >conftest.$ac_ext <<_ACEOF
4280 /* confdefs.h.  */
4281 _ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h.  */
4285
4286 /* Override any GCC internal prototype to avoid an error.
4287    Use char because int might match the return type of a GCC
4288    builtin and then its argument prototype would still apply.  */
4289 #ifdef __cplusplus
4290 extern "C"
4291 #endif
4292 char DGifOpen ();
4293 int
4294 main ()
4295 {
4296 return DGifOpen ();
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 rm -f conftest.$ac_objext conftest$ac_exeext
4302 if { (ac_try="$ac_link"
4303 case "(($ac_try" in
4304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4305   *) ac_try_echo=$ac_try;;
4306 esac
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308   (eval "$ac_link") 2>conftest.er1
4309   ac_status=$?
4310   grep -v '^ *+' conftest.er1 >conftest.err
4311   rm -f conftest.er1
4312   cat conftest.err >&5
4313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314   (exit $ac_status); } && {
4315          test -z "$ac_c_werror_flag" ||
4316          test ! -s conftest.err
4317        } && test -s conftest$ac_exeext &&
4318        $as_test_x conftest$ac_exeext; then
4319   ac_cv_lib_gif_DGifOpen=yes
4320 else
4321   echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324         ac_cv_lib_gif_DGifOpen=no
4325 fi
4326
4327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4328       conftest$ac_exeext conftest.$ac_ext
4329 LIBS=$ac_check_lib_save_LIBS
4330 fi
4331 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4332 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4333 if test $ac_cv_lib_gif_DGifOpen = yes; then
4334   cat >>confdefs.h <<_ACEOF
4335 #define HAVE_LIBGIF 1
4336 _ACEOF
4337
4338   LIBS="-lgif $LIBS"
4339
4340 else
4341   UNGIFMISSING=true
4342 fi
4343
4344 fi
4345
4346
4347 { echo "$as_me:$LINENO: checking for byte order" >&5
4348 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4349 if test "$cross_compiling" = yes; then
4350   CROSSCOMPILE=1
4351 else
4352   cat >conftest.$ac_ext <<_ACEOF
4353 /* confdefs.h.  */
4354 _ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h.  */
4358
4359 int main (int argc, char *argv[])
4360 {
4361     int i = 1;
4362     return *(char*)&i;
4363 }
4364
4365 _ACEOF
4366 rm -f conftest$ac_exeext
4367 if { (ac_try="$ac_link"
4368 case "(($ac_try" in
4369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370   *) ac_try_echo=$ac_try;;
4371 esac
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373   (eval "$ac_link") 2>&5
4374   ac_status=$?
4375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4377   { (case "(($ac_try" in
4378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4379   *) ac_try_echo=$ac_try;;
4380 esac
4381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4382   (eval "$ac_try") 2>&5
4383   ac_status=$?
4384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4385   (exit $ac_status); }; }; then
4386   BIGENDIAN=1
4387 else
4388   echo "$as_me: program exited with status $ac_status" >&5
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392 ( exit $ac_status )
4393 LITTLEENDIAN=1
4394 fi
4395 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4396 fi
4397
4398
4399 export CROSSCOMPILE
4400
4401 if test "x${CROSSCOMPILE}" = "x1"; then
4402  { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4403 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4404  { echo "$as_me:$LINENO: checking target system type" >&5
4405 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4406 if test "${ac_cv_target+set}" = set; then
4407   echo $ECHO_N "(cached) $ECHO_C" >&6
4408 else
4409   if test "x$target_alias" = x; then
4410   ac_cv_target=$ac_cv_host
4411 else
4412   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4413     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4414 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4415    { (exit 1); exit 1; }; }
4416 fi
4417
4418 fi
4419 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4420 echo "${ECHO_T}$ac_cv_target" >&6; }
4421 case $ac_cv_target in
4422 *-*-*) ;;
4423 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4424 echo "$as_me: error: invalid value of canonical target" >&2;}
4425    { (exit 1); exit 1; }; };;
4426 esac
4427 target=$ac_cv_target
4428 ac_save_IFS=$IFS; IFS='-'
4429 set x $ac_cv_target
4430 shift
4431 target_cpu=$1
4432 target_vendor=$2
4433 shift; shift
4434 # Remember, the first character of IFS is used to create $*,
4435 # except with old shells:
4436 target_os=$*
4437 IFS=$ac_save_IFS
4438 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4439
4440
4441 # The aliases save the names the user supplied, while $host etc.
4442 # will get canonicalized.
4443 test -n "$target_alias" &&
4444   test "$program_prefix$program_suffix$program_transform_name" = \
4445     NONENONEs,x,x, &&
4446   program_prefix=${target_alias}-
4447  { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4448 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4449  case "${target}" in
4450   *86* | *-pc-* )
4451      LITTLEENDIAN=1
4452      ;;
4453   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4454      BIGENDIAN=1
4455      ;;
4456  esac
4457 fi
4458
4459 export LITTLEENDIAN
4460 if test "x${LITTLEENDIAN}" = "x1"; then
4461 { echo "$as_me:$LINENO: result: little endian" >&5
4462 echo "${ECHO_T}little endian" >&6; }
4463 BYTEORDERCHECKOK=1
4464 fi
4465 export BIGENDIAN
4466 if test "x${BIGENDIAN}" = "x1"; then
4467 { echo "$as_me:$LINENO: result: big endian" >&5
4468 echo "${ECHO_T}big endian" >&6; }
4469 BYTEORDERCHECKOK=1
4470 WORDS_BIGENDIAN=1
4471 export WORDS_BIGENDIAN
4472 cat >>confdefs.h <<_ACEOF
4473 #define WORDS_BIGENDIAN 1
4474 _ACEOF
4475
4476 fi
4477 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4478 { echo "$as_me:$LINENO: result: unknown" >&5
4479 echo "${ECHO_T}unknown" >&6; }
4480 echo Byte order could not determined.
4481 exit 1
4482 fi
4483
4484
4485
4486 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4487 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4488 if test "$cross_compiling" = yes; then
4489   CROSSCOMPILE=1
4490 else
4491   cat >conftest.$ac_ext <<_ACEOF
4492 /* confdefs.h.  */
4493 _ACEOF
4494 cat confdefs.h >>conftest.$ac_ext
4495 cat >>conftest.$ac_ext <<_ACEOF
4496 /* end confdefs.h.  */
4497
4498 #include "stdlib.h"
4499 int main (int argc, char*argv[])
4500 {
4501     return system("test `touch config.tmp2`");
4502 }
4503
4504 _ACEOF
4505 rm -f conftest$ac_exeext
4506 if { (ac_try="$ac_link"
4507 case "(($ac_try" in
4508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4509   *) ac_try_echo=$ac_try;;
4510 esac
4511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4512   (eval "$ac_link") 2>&5
4513   ac_status=$?
4514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4516   { (case "(($ac_try" in
4517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4518   *) ac_try_echo=$ac_try;;
4519 esac
4520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4521   (eval "$ac_try") 2>&5
4522   ac_status=$?
4523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524   (exit $ac_status); }; }; then
4525   OK=OK
4526 else
4527   echo "$as_me: program exited with status $ac_status" >&5
4528 echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4530
4531 fi
4532 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4533 fi
4534
4535
4536
4537 if test "x${OK}" = "xOK";then
4538     test -f config.tmp2 || OK=
4539 fi
4540
4541 if test "x${CROSSCOMPILE}" = "x1";then
4542     OK=no;
4543 fi
4544 if test "x${OK}" = "xOK";then
4545 rm -f config.tmp2
4546 { echo "$as_me:$LINENO: result: yes" >&5
4547 echo "${ECHO_T}yes" >&6; }
4548 SYSTEM_BACKTICKS=1
4549 export SYSTEM_BACKTICKS
4550 cat >>confdefs.h <<_ACEOF
4551 #define SYSTEM_BACKTICKS 1
4552 _ACEOF
4553
4554 else
4555 { echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6; }
4557 fi
4558
4559
4560
4561 test "$program_prefix" != NONE &&
4562   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4563 # Use a double $ so make ignores it.
4564 test "$program_suffix" != NONE &&
4565   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4566 # Double any \ or $.  echo might interpret backslashes.
4567 # By default was `s,x,x', remove it if useless.
4568 cat <<\_ACEOF >conftest.sed
4569 s/[\\$]/&&/g;s/;s,x,x,$//
4570 _ACEOF
4571 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4572 rm -f conftest.sed
4573
4574
4575  ac_config_headers="$ac_config_headers config.h"
4576
4577
4578
4579
4580
4581
4582 ac_header_dirent=no
4583 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4584   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4585 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4586 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4588   echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590   cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h.  */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h.  */
4596 #include <sys/types.h>
4597 #include <$ac_hdr>
4598
4599 int
4600 main ()
4601 {
4602 if ((DIR *) 0)
4603 return 0;
4604   ;
4605   return 0;
4606 }
4607 _ACEOF
4608 rm -f conftest.$ac_objext
4609 if { (ac_try="$ac_compile"
4610 case "(($ac_try" in
4611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612   *) ac_try_echo=$ac_try;;
4613 esac
4614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4615   (eval "$ac_compile") 2>conftest.er1
4616   ac_status=$?
4617   grep -v '^ *+' conftest.er1 >conftest.err
4618   rm -f conftest.er1
4619   cat conftest.err >&5
4620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621   (exit $ac_status); } && {
4622          test -z "$ac_c_werror_flag" ||
4623          test ! -s conftest.err
4624        } && test -s conftest.$ac_objext; then
4625   eval "$as_ac_Header=yes"
4626 else
4627   echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630         eval "$as_ac_Header=no"
4631 fi
4632
4633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 fi
4635 ac_res=`eval echo '${'$as_ac_Header'}'`
4636                { echo "$as_me:$LINENO: result: $ac_res" >&5
4637 echo "${ECHO_T}$ac_res" >&6; }
4638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4639   cat >>confdefs.h <<_ACEOF
4640 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4641 _ACEOF
4642
4643 ac_header_dirent=$ac_hdr; break
4644 fi
4645
4646 done
4647 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4648 if test $ac_header_dirent = dirent.h; then
4649   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4650 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4651 if test "${ac_cv_search_opendir+set}" = set; then
4652   echo $ECHO_N "(cached) $ECHO_C" >&6
4653 else
4654   ac_func_search_save_LIBS=$LIBS
4655 cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h.  */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h.  */
4661
4662 /* Override any GCC internal prototype to avoid an error.
4663    Use char because int might match the return type of a GCC
4664    builtin and then its argument prototype would still apply.  */
4665 #ifdef __cplusplus
4666 extern "C"
4667 #endif
4668 char opendir ();
4669 int
4670 main ()
4671 {
4672 return opendir ();
4673   ;
4674   return 0;
4675 }
4676 _ACEOF
4677 for ac_lib in '' dir; do
4678   if test -z "$ac_lib"; then
4679     ac_res="none required"
4680   else
4681     ac_res=-l$ac_lib
4682     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4683   fi
4684   rm -f conftest.$ac_objext conftest$ac_exeext
4685 if { (ac_try="$ac_link"
4686 case "(($ac_try" in
4687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688   *) ac_try_echo=$ac_try;;
4689 esac
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691   (eval "$ac_link") 2>conftest.er1
4692   ac_status=$?
4693   grep -v '^ *+' conftest.er1 >conftest.err
4694   rm -f conftest.er1
4695   cat conftest.err >&5
4696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697   (exit $ac_status); } && {
4698          test -z "$ac_c_werror_flag" ||
4699          test ! -s conftest.err
4700        } && test -s conftest$ac_exeext &&
4701        $as_test_x conftest$ac_exeext; then
4702   ac_cv_search_opendir=$ac_res
4703 else
4704   echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4706
4707
4708 fi
4709
4710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4711       conftest$ac_exeext
4712   if test "${ac_cv_search_opendir+set}" = set; then
4713   break
4714 fi
4715 done
4716 if test "${ac_cv_search_opendir+set}" = set; then
4717   :
4718 else
4719   ac_cv_search_opendir=no
4720 fi
4721 rm conftest.$ac_ext
4722 LIBS=$ac_func_search_save_LIBS
4723 fi
4724 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4725 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4726 ac_res=$ac_cv_search_opendir
4727 if test "$ac_res" != no; then
4728   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4729
4730 fi
4731
4732 else
4733   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4734 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4735 if test "${ac_cv_search_opendir+set}" = set; then
4736   echo $ECHO_N "(cached) $ECHO_C" >&6
4737 else
4738   ac_func_search_save_LIBS=$LIBS
4739 cat >conftest.$ac_ext <<_ACEOF
4740 /* confdefs.h.  */
4741 _ACEOF
4742 cat confdefs.h >>conftest.$ac_ext
4743 cat >>conftest.$ac_ext <<_ACEOF
4744 /* end confdefs.h.  */
4745
4746 /* Override any GCC internal prototype to avoid an error.
4747    Use char because int might match the return type of a GCC
4748    builtin and then its argument prototype would still apply.  */
4749 #ifdef __cplusplus
4750 extern "C"
4751 #endif
4752 char opendir ();
4753 int
4754 main ()
4755 {
4756 return opendir ();
4757   ;
4758   return 0;
4759 }
4760 _ACEOF
4761 for ac_lib in '' x; do
4762   if test -z "$ac_lib"; then
4763     ac_res="none required"
4764   else
4765     ac_res=-l$ac_lib
4766     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4767   fi
4768   rm -f conftest.$ac_objext conftest$ac_exeext
4769 if { (ac_try="$ac_link"
4770 case "(($ac_try" in
4771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4772   *) ac_try_echo=$ac_try;;
4773 esac
4774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4775   (eval "$ac_link") 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } && {
4782          test -z "$ac_c_werror_flag" ||
4783          test ! -s conftest.err
4784        } && test -s conftest$ac_exeext &&
4785        $as_test_x conftest$ac_exeext; then
4786   ac_cv_search_opendir=$ac_res
4787 else
4788   echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4790
4791
4792 fi
4793
4794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4795       conftest$ac_exeext
4796   if test "${ac_cv_search_opendir+set}" = set; then
4797   break
4798 fi
4799 done
4800 if test "${ac_cv_search_opendir+set}" = set; then
4801   :
4802 else
4803   ac_cv_search_opendir=no
4804 fi
4805 rm conftest.$ac_ext
4806 LIBS=$ac_func_search_save_LIBS
4807 fi
4808 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4809 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4810 ac_res=$ac_cv_search_opendir
4811 if test "$ac_res" != no; then
4812   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4813
4814 fi
4815
4816 fi
4817
4818
4819 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4820 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4821 if test "${ac_cv_path_GREP+set}" = set; then
4822   echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824   # Extract the first word of "grep ggrep" to use in msg output
4825 if test -z "$GREP"; then
4826 set dummy grep ggrep; ac_prog_name=$2
4827 if test "${ac_cv_path_GREP+set}" = set; then
4828   echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830   ac_path_GREP_found=false
4831 # Loop through the user's path and test for each of PROGNAME-LIST
4832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4834 do
4835   IFS=$as_save_IFS
4836   test -z "$as_dir" && as_dir=.
4837   for ac_prog in grep ggrep; do
4838   for ac_exec_ext in '' $ac_executable_extensions; do
4839     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4840     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4841     # Check for GNU ac_path_GREP and select it if it is found.
4842   # Check for GNU $ac_path_GREP
4843 case `"$ac_path_GREP" --version 2>&1` in
4844 *GNU*)
4845   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4846 *)
4847   ac_count=0
4848   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4849   while :
4850   do
4851     cat "conftest.in" "conftest.in" >"conftest.tmp"
4852     mv "conftest.tmp" "conftest.in"
4853     cp "conftest.in" "conftest.nl"
4854     echo 'GREP' >> "conftest.nl"
4855     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4856     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4857     ac_count=`expr $ac_count + 1`
4858     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4859       # Best one so far, save it but keep looking for a better one
4860       ac_cv_path_GREP="$ac_path_GREP"
4861       ac_path_GREP_max=$ac_count
4862     fi
4863     # 10*(2^10) chars as input seems more than enough
4864     test $ac_count -gt 10 && break
4865   done
4866   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4867 esac
4868
4869
4870     $ac_path_GREP_found && break 3
4871   done
4872 done
4873
4874 done
4875 IFS=$as_save_IFS
4876
4877
4878 fi
4879
4880 GREP="$ac_cv_path_GREP"
4881 if test -z "$GREP"; then
4882   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4883 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4884    { (exit 1); exit 1; }; }
4885 fi
4886
4887 else
4888   ac_cv_path_GREP=$GREP
4889 fi
4890
4891
4892 fi
4893 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4894 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4895  GREP="$ac_cv_path_GREP"
4896
4897
4898 { echo "$as_me:$LINENO: checking for egrep" >&5
4899 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4900 if test "${ac_cv_path_EGREP+set}" = set; then
4901   echo $ECHO_N "(cached) $ECHO_C" >&6
4902 else
4903   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4904    then ac_cv_path_EGREP="$GREP -E"
4905    else
4906      # Extract the first word of "egrep" to use in msg output
4907 if test -z "$EGREP"; then
4908 set dummy egrep; ac_prog_name=$2
4909 if test "${ac_cv_path_EGREP+set}" = set; then
4910   echo $ECHO_N "(cached) $ECHO_C" >&6
4911 else
4912   ac_path_EGREP_found=false
4913 # Loop through the user's path and test for each of PROGNAME-LIST
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4916 do
4917   IFS=$as_save_IFS
4918   test -z "$as_dir" && as_dir=.
4919   for ac_prog in egrep; do
4920   for ac_exec_ext in '' $ac_executable_extensions; do
4921     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4922     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4923     # Check for GNU ac_path_EGREP and select it if it is found.
4924   # Check for GNU $ac_path_EGREP
4925 case `"$ac_path_EGREP" --version 2>&1` in
4926 *GNU*)
4927   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4928 *)
4929   ac_count=0
4930   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4931   while :
4932   do
4933     cat "conftest.in" "conftest.in" >"conftest.tmp"
4934     mv "conftest.tmp" "conftest.in"
4935     cp "conftest.in" "conftest.nl"
4936     echo 'EGREP' >> "conftest.nl"
4937     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4938     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4939     ac_count=`expr $ac_count + 1`
4940     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4941       # Best one so far, save it but keep looking for a better one
4942       ac_cv_path_EGREP="$ac_path_EGREP"
4943       ac_path_EGREP_max=$ac_count
4944     fi
4945     # 10*(2^10) chars as input seems more than enough
4946     test $ac_count -gt 10 && break
4947   done
4948   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4949 esac
4950
4951
4952     $ac_path_EGREP_found && break 3
4953   done
4954 done
4955
4956 done
4957 IFS=$as_save_IFS
4958
4959
4960 fi
4961
4962 EGREP="$ac_cv_path_EGREP"
4963 if test -z "$EGREP"; then
4964   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4965 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4966    { (exit 1); exit 1; }; }
4967 fi
4968
4969 else
4970   ac_cv_path_EGREP=$EGREP
4971 fi
4972
4973
4974    fi
4975 fi
4976 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4977 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4978  EGREP="$ac_cv_path_EGREP"
4979
4980
4981 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4982 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4983 if test "${ac_cv_header_stdc+set}" = set; then
4984   echo $ECHO_N "(cached) $ECHO_C" >&6
4985 else
4986   cat >conftest.$ac_ext <<_ACEOF
4987 /* confdefs.h.  */
4988 _ACEOF
4989 cat confdefs.h >>conftest.$ac_ext
4990 cat >>conftest.$ac_ext <<_ACEOF
4991 /* end confdefs.h.  */
4992 #include <stdlib.h>
4993 #include <stdarg.h>
4994 #include <string.h>
4995 #include <float.h>
4996
4997 int
4998 main ()
4999 {
5000
5001   ;
5002   return 0;
5003 }
5004 _ACEOF
5005 rm -f conftest.$ac_objext
5006 if { (ac_try="$ac_compile"
5007 case "(($ac_try" in
5008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5009   *) ac_try_echo=$ac_try;;
5010 esac
5011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5012   (eval "$ac_compile") 2>conftest.er1
5013   ac_status=$?
5014   grep -v '^ *+' conftest.er1 >conftest.err
5015   rm -f conftest.er1
5016   cat conftest.err >&5
5017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5018   (exit $ac_status); } && {
5019          test -z "$ac_c_werror_flag" ||
5020          test ! -s conftest.err
5021        } && test -s conftest.$ac_objext; then
5022   ac_cv_header_stdc=yes
5023 else
5024   echo "$as_me: failed program was:" >&5
5025 sed 's/^/| /' conftest.$ac_ext >&5
5026
5027         ac_cv_header_stdc=no
5028 fi
5029
5030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5031
5032 if test $ac_cv_header_stdc = yes; then
5033   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5034   cat >conftest.$ac_ext <<_ACEOF
5035 /* confdefs.h.  */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h.  */
5040 #include <string.h>
5041
5042 _ACEOF
5043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5044   $EGREP "memchr" >/dev/null 2>&1; then
5045   :
5046 else
5047   ac_cv_header_stdc=no
5048 fi
5049 rm -f conftest*
5050
5051 fi
5052
5053 if test $ac_cv_header_stdc = yes; then
5054   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5055   cat >conftest.$ac_ext <<_ACEOF
5056 /* confdefs.h.  */
5057 _ACEOF
5058 cat confdefs.h >>conftest.$ac_ext
5059 cat >>conftest.$ac_ext <<_ACEOF
5060 /* end confdefs.h.  */
5061 #include <stdlib.h>
5062
5063 _ACEOF
5064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5065   $EGREP "free" >/dev/null 2>&1; then
5066   :
5067 else
5068   ac_cv_header_stdc=no
5069 fi
5070 rm -f conftest*
5071
5072 fi
5073
5074 if test $ac_cv_header_stdc = yes; then
5075   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5076   if test "$cross_compiling" = yes; then
5077   :
5078 else
5079   cat >conftest.$ac_ext <<_ACEOF
5080 /* confdefs.h.  */
5081 _ACEOF
5082 cat confdefs.h >>conftest.$ac_ext
5083 cat >>conftest.$ac_ext <<_ACEOF
5084 /* end confdefs.h.  */
5085 #include <ctype.h>
5086 #include <stdlib.h>
5087 #if ((' ' & 0x0FF) == 0x020)
5088 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5089 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5090 #else
5091 # define ISLOWER(c) \
5092                    (('a' <= (c) && (c) <= 'i') \
5093                      || ('j' <= (c) && (c) <= 'r') \
5094                      || ('s' <= (c) && (c) <= 'z'))
5095 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5096 #endif
5097
5098 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5099 int
5100 main ()
5101 {
5102   int i;
5103   for (i = 0; i < 256; i++)
5104     if (XOR (islower (i), ISLOWER (i))
5105         || toupper (i) != TOUPPER (i))
5106       return 2;
5107   return 0;
5108 }
5109 _ACEOF
5110 rm -f conftest$ac_exeext
5111 if { (ac_try="$ac_link"
5112 case "(($ac_try" in
5113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114   *) ac_try_echo=$ac_try;;
5115 esac
5116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5117   (eval "$ac_link") 2>&5
5118   ac_status=$?
5119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5121   { (case "(($ac_try" in
5122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5123   *) ac_try_echo=$ac_try;;
5124 esac
5125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5126   (eval "$ac_try") 2>&5
5127   ac_status=$?
5128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5129   (exit $ac_status); }; }; then
5130   :
5131 else
5132   echo "$as_me: program exited with status $ac_status" >&5
5133 echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5135
5136 ( exit $ac_status )
5137 ac_cv_header_stdc=no
5138 fi
5139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5140 fi
5141
5142
5143 fi
5144 fi
5145 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5146 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5147 if test $ac_cv_header_stdc = yes; then
5148
5149 cat >>confdefs.h <<\_ACEOF
5150 #define STDC_HEADERS 1
5151 _ACEOF
5152
5153 fi
5154
5155  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5166                   inttypes.h stdint.h unistd.h
5167 do
5168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5172   echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174   cat >conftest.$ac_ext <<_ACEOF
5175 /* confdefs.h.  */
5176 _ACEOF
5177 cat confdefs.h >>conftest.$ac_ext
5178 cat >>conftest.$ac_ext <<_ACEOF
5179 /* end confdefs.h.  */
5180 $ac_includes_default
5181
5182 #include <$ac_header>
5183 _ACEOF
5184 rm -f conftest.$ac_objext
5185 if { (ac_try="$ac_compile"
5186 case "(($ac_try" in
5187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188   *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191   (eval "$ac_compile") 2>conftest.er1
5192   ac_status=$?
5193   grep -v '^ *+' conftest.er1 >conftest.err
5194   rm -f conftest.er1
5195   cat conftest.err >&5
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); } && {
5198          test -z "$ac_c_werror_flag" ||
5199          test ! -s conftest.err
5200        } && test -s conftest.$ac_objext; then
5201   eval "$as_ac_Header=yes"
5202 else
5203   echo "$as_me: failed program was:" >&5
5204 sed 's/^/| /' conftest.$ac_ext >&5
5205
5206         eval "$as_ac_Header=no"
5207 fi
5208
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5210 fi
5211 ac_res=`eval echo '${'$as_ac_Header'}'`
5212                { echo "$as_me:$LINENO: result: $ac_res" >&5
5213 echo "${ECHO_T}$ac_res" >&6; }
5214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5215   cat >>confdefs.h <<_ACEOF
5216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5217 _ACEOF
5218
5219 fi
5220
5221 done
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240 for ac_header in zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
5241 do
5242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5244   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5247   echo $ECHO_N "(cached) $ECHO_C" >&6
5248 fi
5249 ac_res=`eval echo '${'$as_ac_Header'}'`
5250                { echo "$as_me:$LINENO: result: $ac_res" >&5
5251 echo "${ECHO_T}$ac_res" >&6; }
5252 else
5253   # Is the header compilable?
5254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5256 cat >conftest.$ac_ext <<_ACEOF
5257 /* confdefs.h.  */
5258 _ACEOF
5259 cat confdefs.h >>conftest.$ac_ext
5260 cat >>conftest.$ac_ext <<_ACEOF
5261 /* end confdefs.h.  */
5262 $ac_includes_default
5263 #include <$ac_header>
5264 _ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (ac_try="$ac_compile"
5267 case "(($ac_try" in
5268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269   *) ac_try_echo=$ac_try;;
5270 esac
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272   (eval "$ac_compile") 2>conftest.er1
5273   ac_status=$?
5274   grep -v '^ *+' conftest.er1 >conftest.err
5275   rm -f conftest.er1
5276   cat conftest.err >&5
5277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278   (exit $ac_status); } && {
5279          test -z "$ac_c_werror_flag" ||
5280          test ! -s conftest.err
5281        } && test -s conftest.$ac_objext; then
5282   ac_header_compiler=yes
5283 else
5284   echo "$as_me: failed program was:" >&5
5285 sed 's/^/| /' conftest.$ac_ext >&5
5286
5287         ac_header_compiler=no
5288 fi
5289
5290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5292 echo "${ECHO_T}$ac_header_compiler" >&6; }
5293
5294 # Is the header present?
5295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5297 cat >conftest.$ac_ext <<_ACEOF
5298 /* confdefs.h.  */
5299 _ACEOF
5300 cat confdefs.h >>conftest.$ac_ext
5301 cat >>conftest.$ac_ext <<_ACEOF
5302 /* end confdefs.h.  */
5303 #include <$ac_header>
5304 _ACEOF
5305 if { (ac_try="$ac_cpp conftest.$ac_ext"
5306 case "(($ac_try" in
5307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308   *) ac_try_echo=$ac_try;;
5309 esac
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5312   ac_status=$?
5313   grep -v '^ *+' conftest.er1 >conftest.err
5314   rm -f conftest.er1
5315   cat conftest.err >&5
5316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317   (exit $ac_status); } >/dev/null && {
5318          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5319          test ! -s conftest.err
5320        }; then
5321   ac_header_preproc=yes
5322 else
5323   echo "$as_me: failed program was:" >&5
5324 sed 's/^/| /' conftest.$ac_ext >&5
5325
5326   ac_header_preproc=no
5327 fi
5328
5329 rm -f conftest.err conftest.$ac_ext
5330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5331 echo "${ECHO_T}$ac_header_preproc" >&6; }
5332
5333 # So?  What about this header?
5334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5335   yes:no: )
5336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5340     ac_header_preproc=yes
5341     ;;
5342   no:yes:* )
5343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5355
5356     ;;
5357 esac
5358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5361   echo $ECHO_N "(cached) $ECHO_C" >&6
5362 else
5363   eval "$as_ac_Header=\$ac_header_preproc"
5364 fi
5365 ac_res=`eval echo '${'$as_ac_Header'}'`
5366                { echo "$as_me:$LINENO: result: $ac_res" >&5
5367 echo "${ECHO_T}$ac_res" >&6; }
5368
5369 fi
5370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5371   cat >>confdefs.h <<_ACEOF
5372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5373 _ACEOF
5374
5375 fi
5376
5377 done
5378
5379
5380 cat >>confdefs.h <<_ACEOF
5381 #define PACKAGE "$PACKAGE"
5382 _ACEOF
5383
5384 cat >>confdefs.h <<_ACEOF
5385 #define VERSION "$VERSION"
5386 _ACEOF
5387
5388
5389
5390
5391
5392
5393
5394  { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5395 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5396 if test "${ac_cv_c_const+set}" = set; then
5397   echo $ECHO_N "(cached) $ECHO_C" >&6
5398 else
5399   cat >conftest.$ac_ext <<_ACEOF
5400 /* confdefs.h.  */
5401 _ACEOF
5402 cat confdefs.h >>conftest.$ac_ext
5403 cat >>conftest.$ac_ext <<_ACEOF
5404 /* end confdefs.h.  */
5405
5406 int
5407 main ()
5408 {
5409 /* FIXME: Include the comments suggested by Paul. */
5410 #ifndef __cplusplus
5411   /* Ultrix mips cc rejects this.  */
5412   typedef int charset[2];
5413   const charset cs;
5414   /* SunOS 4.1.1 cc rejects this.  */
5415   char const *const *pcpcc;
5416   char **ppc;
5417   /* NEC SVR4.0.2 mips cc rejects this.  */
5418   struct point {int x, y;};
5419   static struct point const zero = {0,0};
5420   /* AIX XL C 1.02.0.0 rejects this.
5421      It does not let you subtract one const X* pointer from another in
5422      an arm of an if-expression whose if-part is not a constant
5423      expression */
5424   const char *g = "string";
5425   pcpcc = &g + (g ? g-g : 0);
5426   /* HPUX 7.0 cc rejects these. */
5427   ++pcpcc;
5428   ppc = (char**) pcpcc;
5429   pcpcc = (char const *const *) ppc;
5430   { /* SCO 3.2v4 cc rejects this.  */
5431     char *t;
5432     char const *s = 0 ? (char *) 0 : (char const *) 0;
5433
5434     *t++ = 0;
5435     if (s) return 0;
5436   }
5437   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5438     int x[] = {25, 17};
5439     const int *foo = &x[0];
5440     ++foo;
5441   }
5442   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5443     typedef const int *iptr;
5444     iptr p = 0;
5445     ++p;
5446   }
5447   { /* AIX XL C 1.02.0.0 rejects this saying
5448        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5449     struct s { int j; const int *ap[3]; };
5450     struct s *b; b->j = 5;
5451   }
5452   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5453     const int foo = 10;
5454     if (!foo) return 0;
5455   }
5456   return !cs[0] && !zero.x;
5457 #endif
5458
5459   ;
5460   return 0;
5461 }
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467   *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470   (eval "$ac_compile") 2>conftest.er1
5471   ac_status=$?
5472   grep -v '^ *+' conftest.er1 >conftest.err
5473   rm -f conftest.er1
5474   cat conftest.err >&5
5475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476   (exit $ac_status); } && {
5477          test -z "$ac_c_werror_flag" ||
5478          test ! -s conftest.err
5479        } && test -s conftest.$ac_objext; then
5480   ac_cv_c_const=yes
5481 else
5482   echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485         ac_cv_c_const=no
5486 fi
5487
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 fi
5490 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5491 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5492 if test $ac_cv_c_const = no; then
5493
5494 cat >>confdefs.h <<\_ACEOF
5495 #define const
5496 _ACEOF
5497
5498 fi
5499
5500  { echo "$as_me:$LINENO: checking for inline" >&5
5501 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5502 if test "${ac_cv_c_inline+set}" = set; then
5503   echo $ECHO_N "(cached) $ECHO_C" >&6
5504 else
5505   ac_cv_c_inline=no
5506 for ac_kw in inline __inline__ __inline; do
5507   cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h.  */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h.  */
5513 #ifndef __cplusplus
5514 typedef int foo_t;
5515 static $ac_kw foo_t static_foo () {return 0; }
5516 $ac_kw foo_t foo () {return 0; }
5517 #endif
5518
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5522 case "(($ac_try" in
5523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524   *) ac_try_echo=$ac_try;;
5525 esac
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527   (eval "$ac_compile") 2>conftest.er1
5528   ac_status=$?
5529   grep -v '^ *+' conftest.er1 >conftest.err
5530   rm -f conftest.er1
5531   cat conftest.err >&5
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); } && {
5534          test -z "$ac_c_werror_flag" ||
5535          test ! -s conftest.err
5536        } && test -s conftest.$ac_objext; then
5537   ac_cv_c_inline=$ac_kw
5538 else
5539   echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5541
5542
5543 fi
5544
5545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546   test "$ac_cv_c_inline" != no && break
5547 done
5548
5549 fi
5550 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5551 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5552
5553
5554 case $ac_cv_c_inline in
5555   inline | yes) ;;
5556   *)
5557     case $ac_cv_c_inline in
5558       no) ac_val=;;
5559       *) ac_val=$ac_cv_c_inline;;
5560     esac
5561     cat >>confdefs.h <<_ACEOF
5562 #ifndef __cplusplus
5563 #define inline $ac_val
5564 #endif
5565 _ACEOF
5566     ;;
5567 esac
5568
5569  { echo "$as_me:$LINENO: checking for off_t" >&5
5570 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5571 if test "${ac_cv_type_off_t+set}" = set; then
5572   echo $ECHO_N "(cached) $ECHO_C" >&6
5573 else
5574   cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h.  */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h.  */
5580 $ac_includes_default
5581 typedef off_t ac__type_new_;
5582 int
5583 main ()
5584 {
5585 if ((ac__type_new_ *) 0)
5586   return 0;
5587 if (sizeof (ac__type_new_))
5588   return 0;
5589   ;
5590   return 0;
5591 }
5592 _ACEOF
5593 rm -f conftest.$ac_objext
5594 if { (ac_try="$ac_compile"
5595 case "(($ac_try" in
5596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5597   *) ac_try_echo=$ac_try;;
5598 esac
5599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5600   (eval "$ac_compile") 2>conftest.er1
5601   ac_status=$?
5602   grep -v '^ *+' conftest.er1 >conftest.err
5603   rm -f conftest.er1
5604   cat conftest.err >&5
5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606   (exit $ac_status); } && {
5607          test -z "$ac_c_werror_flag" ||
5608          test ! -s conftest.err
5609        } && test -s conftest.$ac_objext; then
5610   ac_cv_type_off_t=yes
5611 else
5612   echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5614
5615         ac_cv_type_off_t=no
5616 fi
5617
5618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5619 fi
5620 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5621 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5622 if test $ac_cv_type_off_t = yes; then
5623   :
5624 else
5625
5626 cat >>confdefs.h <<_ACEOF
5627 #define off_t long int
5628 _ACEOF
5629
5630 fi
5631
5632  { echo "$as_me:$LINENO: checking for size_t" >&5
5633 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5634 if test "${ac_cv_type_size_t+set}" = set; then
5635   echo $ECHO_N "(cached) $ECHO_C" >&6
5636 else
5637   cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h.  */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h.  */
5643 $ac_includes_default
5644 typedef size_t ac__type_new_;
5645 int
5646 main ()
5647 {
5648 if ((ac__type_new_ *) 0)
5649   return 0;
5650 if (sizeof (ac__type_new_))
5651   return 0;
5652   ;
5653   return 0;
5654 }
5655 _ACEOF
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5658 case "(($ac_try" in
5659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660   *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663   (eval "$ac_compile") 2>conftest.er1
5664   ac_status=$?
5665   grep -v '^ *+' conftest.er1 >conftest.err
5666   rm -f conftest.er1
5667   cat conftest.err >&5
5668   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); } && {
5670          test -z "$ac_c_werror_flag" ||
5671          test ! -s conftest.err
5672        } && test -s conftest.$ac_objext; then
5673   ac_cv_type_size_t=yes
5674 else
5675   echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678         ac_cv_type_size_t=no
5679 fi
5680
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 fi
5683 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5684 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5685 if test $ac_cv_type_size_t = yes; then
5686   :
5687 else
5688
5689 cat >>confdefs.h <<_ACEOF
5690 #define size_t unsigned int
5691 _ACEOF
5692
5693 fi
5694
5695  { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5696 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5697 if test "${ac_cv_struct_tm+set}" = set; then
5698   echo $ECHO_N "(cached) $ECHO_C" >&6
5699 else
5700   cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h.  */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h.  */
5706 #include <sys/types.h>
5707 #include <time.h>
5708
5709 int
5710 main ()
5711 {
5712 struct tm tm;
5713                                      int *p = &tm.tm_sec;
5714                                      return !p;
5715   ;
5716   return 0;
5717 }
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5721 case "(($ac_try" in
5722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723   *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726   (eval "$ac_compile") 2>conftest.er1
5727   ac_status=$?
5728   grep -v '^ *+' conftest.er1 >conftest.err
5729   rm -f conftest.er1
5730   cat conftest.err >&5
5731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732   (exit $ac_status); } && {
5733          test -z "$ac_c_werror_flag" ||
5734          test ! -s conftest.err
5735        } && test -s conftest.$ac_objext; then
5736   ac_cv_struct_tm=time.h
5737 else
5738   echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5740
5741         ac_cv_struct_tm=sys/time.h
5742 fi
5743
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 fi
5746 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5747 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5748 if test $ac_cv_struct_tm = sys/time.h; then
5749
5750 cat >>confdefs.h <<\_ACEOF
5751 #define TM_IN_SYS_TIME 1
5752 _ACEOF
5753
5754 fi
5755
5756  { echo "$as_me:$LINENO: checking for boolean" >&5
5757 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5758 if test "${ac_cv_type_boolean+set}" = set; then
5759   echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761   cat >conftest.$ac_ext <<_ACEOF
5762 /* confdefs.h.  */
5763 _ACEOF
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h.  */
5767 $ac_includes_default
5768 typedef boolean ac__type_new_;
5769 int
5770 main ()
5771 {
5772 if ((ac__type_new_ *) 0)
5773   return 0;
5774 if (sizeof (ac__type_new_))
5775   return 0;
5776   ;
5777   return 0;
5778 }
5779 _ACEOF
5780 rm -f conftest.$ac_objext
5781 if { (ac_try="$ac_compile"
5782 case "(($ac_try" in
5783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784   *) ac_try_echo=$ac_try;;
5785 esac
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787   (eval "$ac_compile") 2>conftest.er1
5788   ac_status=$?
5789   grep -v '^ *+' conftest.er1 >conftest.err
5790   rm -f conftest.er1
5791   cat conftest.err >&5
5792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793   (exit $ac_status); } && {
5794          test -z "$ac_c_werror_flag" ||
5795          test ! -s conftest.err
5796        } && test -s conftest.$ac_objext; then
5797   ac_cv_type_boolean=yes
5798 else
5799   echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802         ac_cv_type_boolean=no
5803 fi
5804
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 fi
5807 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5808 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5809 if test $ac_cv_type_boolean = yes; then
5810   :
5811 else
5812
5813 cat >>confdefs.h <<_ACEOF
5814 #define boolean int
5815 _ACEOF
5816
5817 fi
5818  #needed for jpeglib
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831 for ac_func in popen wcschr wcsdup mkstemp stat lrand48 rand srand48 srand bcopy bzero time
5832 do
5833 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5834 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5835 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5837   echo $ECHO_N "(cached) $ECHO_C" >&6
5838 else
5839   cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h.  */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h.  */
5845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5847 #define $ac_func innocuous_$ac_func
5848
5849 /* System header to define __stub macros and hopefully few prototypes,
5850     which can conflict with char $ac_func (); below.
5851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5852     <limits.h> exists even on freestanding compilers.  */
5853
5854 #ifdef __STDC__
5855 # include <limits.h>
5856 #else
5857 # include <assert.h>
5858 #endif
5859
5860 #undef $ac_func
5861
5862 /* Override any GCC internal prototype to avoid an error.
5863    Use char because int might match the return type of a GCC
5864    builtin and then its argument prototype would still apply.  */
5865 #ifdef __cplusplus
5866 extern "C"
5867 #endif
5868 char $ac_func ();
5869 /* The GNU C library defines this for functions which it implements
5870     to always fail with ENOSYS.  Some functions are actually named
5871     something starting with __ and the normal name is an alias.  */
5872 #if defined __stub_$ac_func || defined __stub___$ac_func
5873 choke me
5874 #endif
5875
5876 int
5877 main ()
5878 {
5879 return $ac_func ();
5880   ;
5881   return 0;
5882 }
5883 _ACEOF
5884 rm -f conftest.$ac_objext conftest$ac_exeext
5885 if { (ac_try="$ac_link"
5886 case "(($ac_try" in
5887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5888   *) ac_try_echo=$ac_try;;
5889 esac
5890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5891   (eval "$ac_link") 2>conftest.er1
5892   ac_status=$?
5893   grep -v '^ *+' conftest.er1 >conftest.err
5894   rm -f conftest.er1
5895   cat conftest.err >&5
5896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5897   (exit $ac_status); } && {
5898          test -z "$ac_c_werror_flag" ||
5899          test ! -s conftest.err
5900        } && test -s conftest$ac_exeext &&
5901        $as_test_x conftest$ac_exeext; then
5902   eval "$as_ac_var=yes"
5903 else
5904   echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907         eval "$as_ac_var=no"
5908 fi
5909
5910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5911       conftest$ac_exeext conftest.$ac_ext
5912 fi
5913 ac_res=`eval echo '${'$as_ac_var'}'`
5914                { echo "$as_me:$LINENO: result: $ac_res" >&5
5915 echo "${ECHO_T}$ac_res" >&6; }
5916 if test `eval echo '${'$as_ac_var'}'` = yes; then
5917   cat >>confdefs.h <<_ACEOF
5918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5919 _ACEOF
5920
5921 fi
5922 done
5923
5924
5925 { echo "$as_me:$LINENO: checking for signed" >&5
5926 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5927 if test "${ac_cv_type_signed+set}" = set; then
5928   echo $ECHO_N "(cached) $ECHO_C" >&6
5929 else
5930   cat >conftest.$ac_ext <<_ACEOF
5931 /* confdefs.h.  */
5932 _ACEOF
5933 cat confdefs.h >>conftest.$ac_ext
5934 cat >>conftest.$ac_ext <<_ACEOF
5935 /* end confdefs.h.  */
5936 $ac_includes_default
5937 typedef signed ac__type_new_;
5938 int
5939 main ()
5940 {
5941 if ((ac__type_new_ *) 0)
5942   return 0;
5943 if (sizeof (ac__type_new_))
5944   return 0;
5945   ;
5946   return 0;
5947 }
5948 _ACEOF
5949 rm -f conftest.$ac_objext
5950 if { (ac_try="$ac_compile"
5951 case "(($ac_try" in
5952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953   *) ac_try_echo=$ac_try;;
5954 esac
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956   (eval "$ac_compile") 2>conftest.er1
5957   ac_status=$?
5958   grep -v '^ *+' conftest.er1 >conftest.err
5959   rm -f conftest.er1
5960   cat conftest.err >&5
5961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962   (exit $ac_status); } && {
5963          test -z "$ac_c_werror_flag" ||
5964          test ! -s conftest.err
5965        } && test -s conftest.$ac_objext; then
5966   ac_cv_type_signed=yes
5967 else
5968   echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5970
5971         ac_cv_type_signed=no
5972 fi
5973
5974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5975 fi
5976 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
5977 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
5978
5979 # The cast to long int works around a bug in the HP C Compiler
5980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5982 # This bug is HP SR number 8606223364.
5983 { echo "$as_me:$LINENO: checking size of signed" >&5
5984 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
5985 if test "${ac_cv_sizeof_signed+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   if test "$cross_compiling" = yes; then
5989   # Depending upon the size, compute the lo and hi bounds.
5990 cat >conftest.$ac_ext <<_ACEOF
5991 /* confdefs.h.  */
5992 _ACEOF
5993 cat confdefs.h >>conftest.$ac_ext
5994 cat >>conftest.$ac_ext <<_ACEOF
5995 /* end confdefs.h.  */
5996 $ac_includes_default
5997    typedef signed ac__type_sizeof_;
5998 int
5999 main ()
6000 {
6001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6002 test_array [0] = 0
6003
6004   ;
6005   return 0;
6006 }
6007 _ACEOF
6008 rm -f conftest.$ac_objext
6009 if { (ac_try="$ac_compile"
6010 case "(($ac_try" in
6011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6012   *) ac_try_echo=$ac_try;;
6013 esac
6014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6015   (eval "$ac_compile") 2>conftest.er1
6016   ac_status=$?
6017   grep -v '^ *+' conftest.er1 >conftest.err
6018   rm -f conftest.er1
6019   cat conftest.err >&5
6020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021   (exit $ac_status); } && {
6022          test -z "$ac_c_werror_flag" ||
6023          test ! -s conftest.err
6024        } && test -s conftest.$ac_objext; then
6025   ac_lo=0 ac_mid=0
6026   while :; do
6027     cat >conftest.$ac_ext <<_ACEOF
6028 /* confdefs.h.  */
6029 _ACEOF
6030 cat confdefs.h >>conftest.$ac_ext
6031 cat >>conftest.$ac_ext <<_ACEOF
6032 /* end confdefs.h.  */
6033 $ac_includes_default
6034    typedef signed ac__type_sizeof_;
6035 int
6036 main ()
6037 {
6038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6039 test_array [0] = 0
6040
6041   ;
6042   return 0;
6043 }
6044 _ACEOF
6045 rm -f conftest.$ac_objext
6046 if { (ac_try="$ac_compile"
6047 case "(($ac_try" in
6048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6049   *) ac_try_echo=$ac_try;;
6050 esac
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052   (eval "$ac_compile") 2>conftest.er1
6053   ac_status=$?
6054   grep -v '^ *+' conftest.er1 >conftest.err
6055   rm -f conftest.er1
6056   cat conftest.err >&5
6057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058   (exit $ac_status); } && {
6059          test -z "$ac_c_werror_flag" ||
6060          test ! -s conftest.err
6061        } && test -s conftest.$ac_objext; then
6062   ac_hi=$ac_mid; break
6063 else
6064   echo "$as_me: failed program was:" >&5
6065 sed 's/^/| /' conftest.$ac_ext >&5
6066
6067         ac_lo=`expr $ac_mid + 1`
6068                         if test $ac_lo -le $ac_mid; then
6069                           ac_lo= ac_hi=
6070                           break
6071                         fi
6072                         ac_mid=`expr 2 '*' $ac_mid + 1`
6073 fi
6074
6075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6076   done
6077 else
6078   echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.$ac_ext >&5
6080
6081         cat >conftest.$ac_ext <<_ACEOF
6082 /* confdefs.h.  */
6083 _ACEOF
6084 cat confdefs.h >>conftest.$ac_ext
6085 cat >>conftest.$ac_ext <<_ACEOF
6086 /* end confdefs.h.  */
6087 $ac_includes_default
6088    typedef signed ac__type_sizeof_;
6089 int
6090 main ()
6091 {
6092 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6093 test_array [0] = 0
6094
6095   ;
6096   return 0;
6097 }
6098 _ACEOF
6099 rm -f conftest.$ac_objext
6100 if { (ac_try="$ac_compile"
6101 case "(($ac_try" in
6102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6103   *) ac_try_echo=$ac_try;;
6104 esac
6105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6106   (eval "$ac_compile") 2>conftest.er1
6107   ac_status=$?
6108   grep -v '^ *+' conftest.er1 >conftest.err
6109   rm -f conftest.er1
6110   cat conftest.err >&5
6111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112   (exit $ac_status); } && {
6113          test -z "$ac_c_werror_flag" ||
6114          test ! -s conftest.err
6115        } && test -s conftest.$ac_objext; then
6116   ac_hi=-1 ac_mid=-1
6117   while :; do
6118     cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h.  */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h.  */
6124 $ac_includes_default
6125    typedef signed ac__type_sizeof_;
6126 int
6127 main ()
6128 {
6129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6130 test_array [0] = 0
6131
6132   ;
6133   return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext
6137 if { (ac_try="$ac_compile"
6138 case "(($ac_try" in
6139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140   *) ac_try_echo=$ac_try;;
6141 esac
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143   (eval "$ac_compile") 2>conftest.er1
6144   ac_status=$?
6145   grep -v '^ *+' conftest.er1 >conftest.err
6146   rm -f conftest.er1
6147   cat conftest.err >&5
6148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149   (exit $ac_status); } && {
6150          test -z "$ac_c_werror_flag" ||
6151          test ! -s conftest.err
6152        } && test -s conftest.$ac_objext; then
6153   ac_lo=$ac_mid; break
6154 else
6155   echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158         ac_hi=`expr '(' $ac_mid ')' - 1`
6159                         if test $ac_mid -le $ac_hi; then
6160                           ac_lo= ac_hi=
6161                           break
6162                         fi
6163                         ac_mid=`expr 2 '*' $ac_mid`
6164 fi
6165
6166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167   done
6168 else
6169   echo "$as_me: failed program was:" >&5
6170 sed 's/^/| /' conftest.$ac_ext >&5
6171
6172         ac_lo= ac_hi=
6173 fi
6174
6175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 fi
6177
6178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6179 # Binary search between lo and hi bounds.
6180 while test "x$ac_lo" != "x$ac_hi"; do
6181   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6182   cat >conftest.$ac_ext <<_ACEOF
6183 /* confdefs.h.  */
6184 _ACEOF
6185 cat confdefs.h >>conftest.$ac_ext
6186 cat >>conftest.$ac_ext <<_ACEOF
6187 /* end confdefs.h.  */
6188 $ac_includes_default
6189    typedef signed ac__type_sizeof_;
6190 int
6191 main ()
6192 {
6193 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6194 test_array [0] = 0
6195
6196   ;
6197   return 0;
6198 }
6199 _ACEOF
6200 rm -f conftest.$ac_objext
6201 if { (ac_try="$ac_compile"
6202 case "(($ac_try" in
6203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6204   *) ac_try_echo=$ac_try;;
6205 esac
6206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6207   (eval "$ac_compile") 2>conftest.er1
6208   ac_status=$?
6209   grep -v '^ *+' conftest.er1 >conftest.err
6210   rm -f conftest.er1
6211   cat conftest.err >&5
6212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213   (exit $ac_status); } && {
6214          test -z "$ac_c_werror_flag" ||
6215          test ! -s conftest.err
6216        } && test -s conftest.$ac_objext; then
6217   ac_hi=$ac_mid
6218 else
6219   echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6221
6222         ac_lo=`expr '(' $ac_mid ')' + 1`
6223 fi
6224
6225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6226 done
6227 case $ac_lo in
6228 ?*) ac_cv_sizeof_signed=$ac_lo;;
6229 '') if test "$ac_cv_type_signed" = yes; then
6230      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6231 See \`config.log' for more details." >&5
6232 echo "$as_me: error: cannot compute sizeof (signed)
6233 See \`config.log' for more details." >&2;}
6234    { (exit 77); exit 77; }; }
6235    else
6236      ac_cv_sizeof_signed=0
6237    fi ;;
6238 esac
6239 else
6240   cat >conftest.$ac_ext <<_ACEOF
6241 /* confdefs.h.  */
6242 _ACEOF
6243 cat confdefs.h >>conftest.$ac_ext
6244 cat >>conftest.$ac_ext <<_ACEOF
6245 /* end confdefs.h.  */
6246 $ac_includes_default
6247    typedef signed ac__type_sizeof_;
6248 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6249 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6250 #include <stdio.h>
6251 #include <stdlib.h>
6252 int
6253 main ()
6254 {
6255
6256   FILE *f = fopen ("conftest.val", "w");
6257   if (! f)
6258     return 1;
6259   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6260     {
6261       long int i = longval ();
6262       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6263         return 1;
6264       fprintf (f, "%ld\n", i);
6265     }
6266   else
6267     {
6268       unsigned long int i = ulongval ();
6269       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6270         return 1;
6271       fprintf (f, "%lu\n", i);
6272     }
6273   return ferror (f) || fclose (f) != 0;
6274
6275   ;
6276   return 0;
6277 }
6278 _ACEOF
6279 rm -f conftest$ac_exeext
6280 if { (ac_try="$ac_link"
6281 case "(($ac_try" in
6282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6283   *) ac_try_echo=$ac_try;;
6284 esac
6285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286   (eval "$ac_link") 2>&5
6287   ac_status=$?
6288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6290   { (case "(($ac_try" in
6291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6292   *) ac_try_echo=$ac_try;;
6293 esac
6294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6295   (eval "$ac_try") 2>&5
6296   ac_status=$?
6297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6298   (exit $ac_status); }; }; then
6299   ac_cv_sizeof_signed=`cat conftest.val`
6300 else
6301   echo "$as_me: program exited with status $ac_status" >&5
6302 echo "$as_me: failed program was:" >&5
6303 sed 's/^/| /' conftest.$ac_ext >&5
6304
6305 ( exit $ac_status )
6306 if test "$ac_cv_type_signed" = yes; then
6307      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6308 See \`config.log' for more details." >&5
6309 echo "$as_me: error: cannot compute sizeof (signed)
6310 See \`config.log' for more details." >&2;}
6311    { (exit 77); exit 77; }; }
6312    else
6313      ac_cv_sizeof_signed=0
6314    fi
6315 fi
6316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6317 fi
6318 rm -f conftest.val
6319 fi
6320 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
6321 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
6322
6323
6324
6325 cat >>confdefs.h <<_ACEOF
6326 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
6327 _ACEOF
6328
6329
6330 { echo "$as_me:$LINENO: checking for unsigned" >&5
6331 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
6332 if test "${ac_cv_type_unsigned+set}" = set; then
6333   echo $ECHO_N "(cached) $ECHO_C" >&6
6334 else
6335   cat >conftest.$ac_ext <<_ACEOF
6336 /* confdefs.h.  */
6337 _ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h.  */
6341 $ac_includes_default
6342 typedef unsigned ac__type_new_;
6343 int
6344 main ()
6345 {
6346 if ((ac__type_new_ *) 0)
6347   return 0;
6348 if (sizeof (ac__type_new_))
6349   return 0;
6350   ;
6351   return 0;
6352 }
6353 _ACEOF
6354 rm -f conftest.$ac_objext
6355 if { (ac_try="$ac_compile"
6356 case "(($ac_try" in
6357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6358   *) ac_try_echo=$ac_try;;
6359 esac
6360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6361   (eval "$ac_compile") 2>conftest.er1
6362   ac_status=$?
6363   grep -v '^ *+' conftest.er1 >conftest.err
6364   rm -f conftest.er1
6365   cat conftest.err >&5
6366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367   (exit $ac_status); } && {
6368          test -z "$ac_c_werror_flag" ||
6369          test ! -s conftest.err
6370        } && test -s conftest.$ac_objext; then
6371   ac_cv_type_unsigned=yes
6372 else
6373   echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6375
6376         ac_cv_type_unsigned=no
6377 fi
6378
6379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6380 fi
6381 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
6382 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
6383
6384 # The cast to long int works around a bug in the HP C Compiler
6385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6387 # This bug is HP SR number 8606223364.
6388 { echo "$as_me:$LINENO: checking size of unsigned" >&5
6389 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
6390 if test "${ac_cv_sizeof_unsigned+set}" = set; then
6391   echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393   if test "$cross_compiling" = yes; then
6394   # Depending upon the size, compute the lo and hi bounds.
6395 cat >conftest.$ac_ext <<_ACEOF
6396 /* confdefs.h.  */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h.  */
6401 $ac_includes_default
6402    typedef unsigned ac__type_sizeof_;
6403 int
6404 main ()
6405 {
6406 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6407 test_array [0] = 0
6408
6409   ;
6410   return 0;
6411 }
6412 _ACEOF
6413 rm -f conftest.$ac_objext
6414 if { (ac_try="$ac_compile"
6415 case "(($ac_try" in
6416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417   *) ac_try_echo=$ac_try;;
6418 esac
6419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6420   (eval "$ac_compile") 2>conftest.er1
6421   ac_status=$?
6422   grep -v '^ *+' conftest.er1 >conftest.err
6423   rm -f conftest.er1
6424   cat conftest.err >&5
6425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426   (exit $ac_status); } && {
6427          test -z "$ac_c_werror_flag" ||
6428          test ! -s conftest.err
6429        } && test -s conftest.$ac_objext; then
6430   ac_lo=0 ac_mid=0
6431   while :; do
6432     cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h.  */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h.  */
6438 $ac_includes_default
6439    typedef unsigned ac__type_sizeof_;
6440 int
6441 main ()
6442 {
6443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6444 test_array [0] = 0
6445
6446   ;
6447   return 0;
6448 }
6449 _ACEOF
6450 rm -f conftest.$ac_objext
6451 if { (ac_try="$ac_compile"
6452 case "(($ac_try" in
6453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454   *) ac_try_echo=$ac_try;;
6455 esac
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457   (eval "$ac_compile") 2>conftest.er1
6458   ac_status=$?
6459   grep -v '^ *+' conftest.er1 >conftest.err
6460   rm -f conftest.er1
6461   cat conftest.err >&5
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); } && {
6464          test -z "$ac_c_werror_flag" ||
6465          test ! -s conftest.err
6466        } && test -s conftest.$ac_objext; then
6467   ac_hi=$ac_mid; break
6468 else
6469   echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6471
6472         ac_lo=`expr $ac_mid + 1`
6473                         if test $ac_lo -le $ac_mid; then
6474                           ac_lo= ac_hi=
6475                           break
6476                         fi
6477                         ac_mid=`expr 2 '*' $ac_mid + 1`
6478 fi
6479
6480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6481   done
6482 else
6483   echo "$as_me: failed program was:" >&5
6484 sed 's/^/| /' conftest.$ac_ext >&5
6485
6486         cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h.  */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h.  */
6492 $ac_includes_default
6493    typedef unsigned ac__type_sizeof_;
6494 int
6495 main ()
6496 {
6497 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6498 test_array [0] = 0
6499
6500   ;
6501   return 0;
6502 }
6503 _ACEOF
6504 rm -f conftest.$ac_objext
6505 if { (ac_try="$ac_compile"
6506 case "(($ac_try" in
6507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6508   *) ac_try_echo=$ac_try;;
6509 esac
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511   (eval "$ac_compile") 2>conftest.er1
6512   ac_status=$?
6513   grep -v '^ *+' conftest.er1 >conftest.err
6514   rm -f conftest.er1
6515   cat conftest.err >&5
6516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } && {
6518          test -z "$ac_c_werror_flag" ||
6519          test ! -s conftest.err
6520        } && test -s conftest.$ac_objext; then
6521   ac_hi=-1 ac_mid=-1
6522   while :; do
6523     cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h.  */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h.  */
6529 $ac_includes_default
6530    typedef unsigned ac__type_sizeof_;
6531 int
6532 main ()
6533 {
6534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6535 test_array [0] = 0
6536
6537   ;
6538   return 0;
6539 }
6540 _ACEOF
6541 rm -f conftest.$ac_objext
6542 if { (ac_try="$ac_compile"
6543 case "(($ac_try" in
6544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545   *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548   (eval "$ac_compile") 2>conftest.er1
6549   ac_status=$?
6550   grep -v '^ *+' conftest.er1 >conftest.err
6551   rm -f conftest.er1
6552   cat conftest.err >&5
6553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554   (exit $ac_status); } && {
6555          test -z "$ac_c_werror_flag" ||
6556          test ! -s conftest.err
6557        } && test -s conftest.$ac_objext; then
6558   ac_lo=$ac_mid; break
6559 else
6560   echo "$as_me: failed program was:" >&5
6561 sed 's/^/| /' conftest.$ac_ext >&5
6562
6563         ac_hi=`expr '(' $ac_mid ')' - 1`
6564                         if test $ac_mid -le $ac_hi; then
6565                           ac_lo= ac_hi=
6566                           break
6567                         fi
6568                         ac_mid=`expr 2 '*' $ac_mid`
6569 fi
6570
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572   done
6573 else
6574   echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577         ac_lo= ac_hi=
6578 fi
6579
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581 fi
6582
6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6584 # Binary search between lo and hi bounds.
6585 while test "x$ac_lo" != "x$ac_hi"; do
6586   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6587   cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h.  */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h.  */
6593 $ac_includes_default
6594    typedef unsigned ac__type_sizeof_;
6595 int
6596 main ()
6597 {
6598 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6599 test_array [0] = 0
6600
6601   ;
6602   return 0;
6603 }
6604 _ACEOF
6605 rm -f conftest.$ac_objext
6606 if { (ac_try="$ac_compile"
6607 case "(($ac_try" in
6608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609   *) ac_try_echo=$ac_try;;
6610 esac
6611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612   (eval "$ac_compile") 2>conftest.er1
6613   ac_status=$?
6614   grep -v '^ *+' conftest.er1 >conftest.err
6615   rm -f conftest.er1
6616   cat conftest.err >&5
6617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618   (exit $ac_status); } && {
6619          test -z "$ac_c_werror_flag" ||
6620          test ! -s conftest.err
6621        } && test -s conftest.$ac_objext; then
6622   ac_hi=$ac_mid
6623 else
6624   echo "$as_me: failed program was:" >&5
6625 sed 's/^/| /' conftest.$ac_ext >&5
6626
6627         ac_lo=`expr '(' $ac_mid ')' + 1`
6628 fi
6629
6630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6631 done
6632 case $ac_lo in
6633 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
6634 '') if test "$ac_cv_type_unsigned" = yes; then
6635      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6636 See \`config.log' for more details." >&5
6637 echo "$as_me: error: cannot compute sizeof (unsigned)
6638 See \`config.log' for more details." >&2;}
6639    { (exit 77); exit 77; }; }
6640    else
6641      ac_cv_sizeof_unsigned=0
6642    fi ;;
6643 esac
6644 else
6645   cat >conftest.$ac_ext <<_ACEOF
6646 /* confdefs.h.  */
6647 _ACEOF
6648 cat confdefs.h >>conftest.$ac_ext
6649 cat >>conftest.$ac_ext <<_ACEOF
6650 /* end confdefs.h.  */
6651 $ac_includes_default
6652    typedef unsigned ac__type_sizeof_;
6653 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6654 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6655 #include <stdio.h>
6656 #include <stdlib.h>
6657 int
6658 main ()
6659 {
6660
6661   FILE *f = fopen ("conftest.val", "w");
6662   if (! f)
6663     return 1;
6664   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6665     {
6666       long int i = longval ();
6667       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6668         return 1;
6669       fprintf (f, "%ld\n", i);
6670     }
6671   else
6672     {
6673       unsigned long int i = ulongval ();
6674       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6675         return 1;
6676       fprintf (f, "%lu\n", i);
6677     }
6678   return ferror (f) || fclose (f) != 0;
6679
6680   ;
6681   return 0;
6682 }
6683 _ACEOF
6684 rm -f conftest$ac_exeext
6685 if { (ac_try="$ac_link"
6686 case "(($ac_try" in
6687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6688   *) ac_try_echo=$ac_try;;
6689 esac
6690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6691   (eval "$ac_link") 2>&5
6692   ac_status=$?
6693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6695   { (case "(($ac_try" in
6696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697   *) ac_try_echo=$ac_try;;
6698 esac
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700   (eval "$ac_try") 2>&5
6701   ac_status=$?
6702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6703   (exit $ac_status); }; }; then
6704   ac_cv_sizeof_unsigned=`cat conftest.val`
6705 else
6706   echo "$as_me: program exited with status $ac_status" >&5
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6709
6710 ( exit $ac_status )
6711 if test "$ac_cv_type_unsigned" = yes; then
6712      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6713 See \`config.log' for more details." >&5
6714 echo "$as_me: error: cannot compute sizeof (unsigned)
6715 See \`config.log' for more details." >&2;}
6716    { (exit 77); exit 77; }; }
6717    else
6718      ac_cv_sizeof_unsigned=0
6719    fi
6720 fi
6721 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6722 fi
6723 rm -f conftest.val
6724 fi
6725 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
6726 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
6727
6728
6729
6730 cat >>confdefs.h <<_ACEOF
6731 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
6732 _ACEOF
6733
6734
6735 { echo "$as_me:$LINENO: checking for signed long" >&5
6736 echo $ECHO_N "checking for signed long... $ECHO_C" >&6; }
6737 if test "${ac_cv_type_signed_long+set}" = set; then
6738   echo $ECHO_N "(cached) $ECHO_C" >&6
6739 else
6740   cat >conftest.$ac_ext <<_ACEOF
6741 /* confdefs.h.  */
6742 _ACEOF
6743 cat confdefs.h >>conftest.$ac_ext
6744 cat >>conftest.$ac_ext <<_ACEOF
6745 /* end confdefs.h.  */
6746 $ac_includes_default
6747 typedef signed long ac__type_new_;
6748 int
6749 main ()
6750 {
6751 if ((ac__type_new_ *) 0)
6752   return 0;
6753 if (sizeof (ac__type_new_))
6754   return 0;
6755   ;
6756   return 0;
6757 }
6758 _ACEOF
6759 rm -f conftest.$ac_objext
6760 if { (ac_try="$ac_compile"
6761 case "(($ac_try" in
6762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6763   *) ac_try_echo=$ac_try;;
6764 esac
6765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6766   (eval "$ac_compile") 2>conftest.er1
6767   ac_status=$?
6768   grep -v '^ *+' conftest.er1 >conftest.err
6769   rm -f conftest.er1
6770   cat conftest.err >&5
6771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772   (exit $ac_status); } && {
6773          test -z "$ac_c_werror_flag" ||
6774          test ! -s conftest.err
6775        } && test -s conftest.$ac_objext; then
6776   ac_cv_type_signed_long=yes
6777 else
6778   echo "$as_me: failed program was:" >&5
6779 sed 's/^/| /' conftest.$ac_ext >&5
6780
6781         ac_cv_type_signed_long=no
6782 fi
6783
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 fi
6786 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
6787 echo "${ECHO_T}$ac_cv_type_signed_long" >&6; }
6788
6789 # The cast to long int works around a bug in the HP C Compiler
6790 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6791 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6792 # This bug is HP SR number 8606223364.
6793 { echo "$as_me:$LINENO: checking size of signed long" >&5
6794 echo $ECHO_N "checking size of signed long... $ECHO_C" >&6; }
6795 if test "${ac_cv_sizeof_signed_long+set}" = set; then
6796   echo $ECHO_N "(cached) $ECHO_C" >&6
6797 else
6798   if test "$cross_compiling" = yes; then
6799   # Depending upon the size, compute the lo and hi bounds.
6800 cat >conftest.$ac_ext <<_ACEOF
6801 /* confdefs.h.  */
6802 _ACEOF
6803 cat confdefs.h >>conftest.$ac_ext
6804 cat >>conftest.$ac_ext <<_ACEOF
6805 /* end confdefs.h.  */
6806 $ac_includes_default
6807    typedef signed long ac__type_sizeof_;
6808 int
6809 main ()
6810 {
6811 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6812 test_array [0] = 0
6813
6814   ;
6815   return 0;
6816 }
6817 _ACEOF
6818 rm -f conftest.$ac_objext
6819 if { (ac_try="$ac_compile"
6820 case "(($ac_try" in
6821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6822   *) ac_try_echo=$ac_try;;
6823 esac
6824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6825   (eval "$ac_compile") 2>conftest.er1
6826   ac_status=$?
6827   grep -v '^ *+' conftest.er1 >conftest.err
6828   rm -f conftest.er1
6829   cat conftest.err >&5
6830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831   (exit $ac_status); } && {
6832          test -z "$ac_c_werror_flag" ||
6833          test ! -s conftest.err
6834        } && test -s conftest.$ac_objext; then
6835   ac_lo=0 ac_mid=0
6836   while :; do
6837     cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h.  */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h.  */
6843 $ac_includes_default
6844    typedef signed long ac__type_sizeof_;
6845 int
6846 main ()
6847 {
6848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6849 test_array [0] = 0
6850
6851   ;
6852   return 0;
6853 }
6854 _ACEOF
6855 rm -f conftest.$ac_objext
6856 if { (ac_try="$ac_compile"
6857 case "(($ac_try" in
6858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859   *) ac_try_echo=$ac_try;;
6860 esac
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862   (eval "$ac_compile") 2>conftest.er1
6863   ac_status=$?
6864   grep -v '^ *+' conftest.er1 >conftest.err
6865   rm -f conftest.er1
6866   cat conftest.err >&5
6867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868   (exit $ac_status); } && {
6869          test -z "$ac_c_werror_flag" ||
6870          test ! -s conftest.err
6871        } && test -s conftest.$ac_objext; then
6872   ac_hi=$ac_mid; break
6873 else
6874   echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877         ac_lo=`expr $ac_mid + 1`
6878                         if test $ac_lo -le $ac_mid; then
6879                           ac_lo= ac_hi=
6880                           break
6881                         fi
6882                         ac_mid=`expr 2 '*' $ac_mid + 1`
6883 fi
6884
6885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6886   done
6887 else
6888   echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6890
6891         cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 $ac_includes_default
6898    typedef signed long ac__type_sizeof_;
6899 int
6900 main ()
6901 {
6902 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6903 test_array [0] = 0
6904
6905   ;
6906   return 0;
6907 }
6908 _ACEOF
6909 rm -f conftest.$ac_objext
6910 if { (ac_try="$ac_compile"
6911 case "(($ac_try" in
6912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6913   *) ac_try_echo=$ac_try;;
6914 esac
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916   (eval "$ac_compile") 2>conftest.er1
6917   ac_status=$?
6918   grep -v '^ *+' conftest.er1 >conftest.err
6919   rm -f conftest.er1
6920   cat conftest.err >&5
6921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); } && {
6923          test -z "$ac_c_werror_flag" ||
6924          test ! -s conftest.err
6925        } && test -s conftest.$ac_objext; then
6926   ac_hi=-1 ac_mid=-1
6927   while :; do
6928     cat >conftest.$ac_ext <<_ACEOF
6929 /* confdefs.h.  */
6930 _ACEOF
6931 cat confdefs.h >>conftest.$ac_ext
6932 cat >>conftest.$ac_ext <<_ACEOF
6933 /* end confdefs.h.  */
6934 $ac_includes_default
6935    typedef signed long ac__type_sizeof_;
6936 int
6937 main ()
6938 {
6939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6940 test_array [0] = 0
6941
6942   ;
6943   return 0;
6944 }
6945 _ACEOF
6946 rm -f conftest.$ac_objext
6947 if { (ac_try="$ac_compile"
6948 case "(($ac_try" in
6949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6950   *) ac_try_echo=$ac_try;;
6951 esac
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953   (eval "$ac_compile") 2>conftest.er1
6954   ac_status=$?
6955   grep -v '^ *+' conftest.er1 >conftest.err
6956   rm -f conftest.er1
6957   cat conftest.err >&5
6958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959   (exit $ac_status); } && {
6960          test -z "$ac_c_werror_flag" ||
6961          test ! -s conftest.err
6962        } && test -s conftest.$ac_objext; then
6963   ac_lo=$ac_mid; break
6964 else
6965   echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6967
6968         ac_hi=`expr '(' $ac_mid ')' - 1`
6969                         if test $ac_mid -le $ac_hi; then
6970                           ac_lo= ac_hi=
6971                           break
6972                         fi
6973                         ac_mid=`expr 2 '*' $ac_mid`
6974 fi
6975
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977   done
6978 else
6979   echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6981
6982         ac_lo= ac_hi=
6983 fi
6984
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6986 fi
6987
6988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 # Binary search between lo and hi bounds.
6990 while test "x$ac_lo" != "x$ac_hi"; do
6991   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6992   cat >conftest.$ac_ext <<_ACEOF
6993 /* confdefs.h.  */
6994 _ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h.  */
6998 $ac_includes_default
6999    typedef signed long ac__type_sizeof_;
7000 int
7001 main ()
7002 {
7003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7004 test_array [0] = 0
7005
7006   ;
7007   return 0;
7008 }
7009 _ACEOF
7010 rm -f conftest.$ac_objext
7011 if { (ac_try="$ac_compile"
7012 case "(($ac_try" in
7013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7014   *) ac_try_echo=$ac_try;;
7015 esac
7016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017   (eval "$ac_compile") 2>conftest.er1
7018   ac_status=$?
7019   grep -v '^ *+' conftest.er1 >conftest.err
7020   rm -f conftest.er1
7021   cat conftest.err >&5
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); } && {
7024          test -z "$ac_c_werror_flag" ||
7025          test ! -s conftest.err
7026        } && test -s conftest.$ac_objext; then
7027   ac_hi=$ac_mid
7028 else
7029   echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7031
7032         ac_lo=`expr '(' $ac_mid ')' + 1`
7033 fi
7034
7035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7036 done
7037 case $ac_lo in
7038 ?*) ac_cv_sizeof_signed_long=$ac_lo;;
7039 '') if test "$ac_cv_type_signed_long" = yes; then
7040      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7041 See \`config.log' for more details." >&5
7042 echo "$as_me: error: cannot compute sizeof (signed long)
7043 See \`config.log' for more details." >&2;}
7044    { (exit 77); exit 77; }; }
7045    else
7046      ac_cv_sizeof_signed_long=0
7047    fi ;;
7048 esac
7049 else
7050   cat >conftest.$ac_ext <<_ACEOF
7051 /* confdefs.h.  */
7052 _ACEOF
7053 cat confdefs.h >>conftest.$ac_ext
7054 cat >>conftest.$ac_ext <<_ACEOF
7055 /* end confdefs.h.  */
7056 $ac_includes_default
7057    typedef signed long ac__type_sizeof_;
7058 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7059 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7060 #include <stdio.h>
7061 #include <stdlib.h>
7062 int
7063 main ()
7064 {
7065
7066   FILE *f = fopen ("conftest.val", "w");
7067   if (! f)
7068     return 1;
7069   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7070     {
7071       long int i = longval ();
7072       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7073         return 1;
7074       fprintf (f, "%ld\n", i);
7075     }
7076   else
7077     {
7078       unsigned long int i = ulongval ();
7079       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7080         return 1;
7081       fprintf (f, "%lu\n", i);
7082     }
7083   return ferror (f) || fclose (f) != 0;
7084
7085   ;
7086   return 0;
7087 }
7088 _ACEOF
7089 rm -f conftest$ac_exeext
7090 if { (ac_try="$ac_link"
7091 case "(($ac_try" in
7092   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7093   *) ac_try_echo=$ac_try;;
7094 esac
7095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7096   (eval "$ac_link") 2>&5
7097   ac_status=$?
7098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7100   { (case "(($ac_try" in
7101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7102   *) ac_try_echo=$ac_try;;
7103 esac
7104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7105   (eval "$ac_try") 2>&5
7106   ac_status=$?
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); }; }; then
7109   ac_cv_sizeof_signed_long=`cat conftest.val`
7110 else
7111   echo "$as_me: program exited with status $ac_status" >&5
7112 echo "$as_me: failed program was:" >&5
7113 sed 's/^/| /' conftest.$ac_ext >&5
7114
7115 ( exit $ac_status )
7116 if test "$ac_cv_type_signed_long" = yes; then
7117      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7118 See \`config.log' for more details." >&5
7119 echo "$as_me: error: cannot compute sizeof (signed long)
7120 See \`config.log' for more details." >&2;}
7121    { (exit 77); exit 77; }; }
7122    else
7123      ac_cv_sizeof_signed_long=0
7124    fi
7125 fi
7126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7127 fi
7128 rm -f conftest.val
7129 fi
7130 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
7131 echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6; }
7132
7133
7134
7135 cat >>confdefs.h <<_ACEOF
7136 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
7137 _ACEOF
7138
7139
7140 { echo "$as_me:$LINENO: checking for unsigned long" >&5
7141 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7142 if test "${ac_cv_type_unsigned_long+set}" = set; then
7143   echo $ECHO_N "(cached) $ECHO_C" >&6
7144 else
7145   cat >conftest.$ac_ext <<_ACEOF
7146 /* confdefs.h.  */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h.  */
7151 $ac_includes_default
7152 typedef unsigned long ac__type_new_;
7153 int
7154 main ()
7155 {
7156 if ((ac__type_new_ *) 0)
7157   return 0;
7158 if (sizeof (ac__type_new_))
7159   return 0;
7160   ;
7161   return 0;
7162 }
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7166 case "(($ac_try" in
7167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168   *) ac_try_echo=$ac_try;;
7169 esac
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171   (eval "$ac_compile") 2>conftest.er1
7172   ac_status=$?
7173   grep -v '^ *+' conftest.er1 >conftest.err
7174   rm -f conftest.er1
7175   cat conftest.err >&5
7176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177   (exit $ac_status); } && {
7178          test -z "$ac_c_werror_flag" ||
7179          test ! -s conftest.err
7180        } && test -s conftest.$ac_objext; then
7181   ac_cv_type_unsigned_long=yes
7182 else
7183   echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186         ac_cv_type_unsigned_long=no
7187 fi
7188
7189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7190 fi
7191 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7192 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7193
7194 # The cast to long int works around a bug in the HP C Compiler
7195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7197 # This bug is HP SR number 8606223364.
7198 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
7199 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7200 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7201   echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203   if test "$cross_compiling" = yes; then
7204   # Depending upon the size, compute the lo and hi bounds.
7205 cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h.  */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h.  */
7211 $ac_includes_default
7212    typedef unsigned long ac__type_sizeof_;
7213 int
7214 main ()
7215 {
7216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7217 test_array [0] = 0
7218
7219   ;
7220   return 0;
7221 }
7222 _ACEOF
7223 rm -f conftest.$ac_objext
7224 if { (ac_try="$ac_compile"
7225 case "(($ac_try" in
7226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7227   *) ac_try_echo=$ac_try;;
7228 esac
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230   (eval "$ac_compile") 2>conftest.er1
7231   ac_status=$?
7232   grep -v '^ *+' conftest.er1 >conftest.err
7233   rm -f conftest.er1
7234   cat conftest.err >&5
7235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236   (exit $ac_status); } && {
7237          test -z "$ac_c_werror_flag" ||
7238          test ! -s conftest.err
7239        } && test -s conftest.$ac_objext; then
7240   ac_lo=0 ac_mid=0
7241   while :; do
7242     cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h.  */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h.  */
7248 $ac_includes_default
7249    typedef unsigned long ac__type_sizeof_;
7250 int
7251 main ()
7252 {
7253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7254 test_array [0] = 0
7255
7256   ;
7257   return 0;
7258 }
7259 _ACEOF
7260 rm -f conftest.$ac_objext
7261 if { (ac_try="$ac_compile"
7262 case "(($ac_try" in
7263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7264   *) ac_try_echo=$ac_try;;
7265 esac
7266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7267   (eval "$ac_compile") 2>conftest.er1
7268   ac_status=$?
7269   grep -v '^ *+' conftest.er1 >conftest.err
7270   rm -f conftest.er1
7271   cat conftest.err >&5
7272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7273   (exit $ac_status); } && {
7274          test -z "$ac_c_werror_flag" ||
7275          test ! -s conftest.err
7276        } && test -s conftest.$ac_objext; then
7277   ac_hi=$ac_mid; break
7278 else
7279   echo "$as_me: failed program was:" >&5
7280 sed 's/^/| /' conftest.$ac_ext >&5
7281
7282         ac_lo=`expr $ac_mid + 1`
7283                         if test $ac_lo -le $ac_mid; then
7284                           ac_lo= ac_hi=
7285                           break
7286                         fi
7287                         ac_mid=`expr 2 '*' $ac_mid + 1`
7288 fi
7289
7290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7291   done
7292 else
7293   echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296         cat >conftest.$ac_ext <<_ACEOF
7297 /* confdefs.h.  */
7298 _ACEOF
7299 cat confdefs.h >>conftest.$ac_ext
7300 cat >>conftest.$ac_ext <<_ACEOF
7301 /* end confdefs.h.  */
7302 $ac_includes_default
7303    typedef unsigned long ac__type_sizeof_;
7304 int
7305 main ()
7306 {
7307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7308 test_array [0] = 0
7309
7310   ;
7311   return 0;
7312 }
7313 _ACEOF
7314 rm -f conftest.$ac_objext
7315 if { (ac_try="$ac_compile"
7316 case "(($ac_try" in
7317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318   *) ac_try_echo=$ac_try;;
7319 esac
7320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7321   (eval "$ac_compile") 2>conftest.er1
7322   ac_status=$?
7323   grep -v '^ *+' conftest.er1 >conftest.err
7324   rm -f conftest.er1
7325   cat conftest.err >&5
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); } && {
7328          test -z "$ac_c_werror_flag" ||
7329          test ! -s conftest.err
7330        } && test -s conftest.$ac_objext; then
7331   ac_hi=-1 ac_mid=-1
7332   while :; do
7333     cat >conftest.$ac_ext <<_ACEOF
7334 /* confdefs.h.  */
7335 _ACEOF
7336 cat confdefs.h >>conftest.$ac_ext
7337 cat >>conftest.$ac_ext <<_ACEOF
7338 /* end confdefs.h.  */
7339 $ac_includes_default
7340    typedef unsigned long ac__type_sizeof_;
7341 int
7342 main ()
7343 {
7344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7345 test_array [0] = 0
7346
7347   ;
7348   return 0;
7349 }
7350 _ACEOF
7351 rm -f conftest.$ac_objext
7352 if { (ac_try="$ac_compile"
7353 case "(($ac_try" in
7354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7355   *) ac_try_echo=$ac_try;;
7356 esac
7357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358   (eval "$ac_compile") 2>conftest.er1
7359   ac_status=$?
7360   grep -v '^ *+' conftest.er1 >conftest.err
7361   rm -f conftest.er1
7362   cat conftest.err >&5
7363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364   (exit $ac_status); } && {
7365          test -z "$ac_c_werror_flag" ||
7366          test ! -s conftest.err
7367        } && test -s conftest.$ac_objext; then
7368   ac_lo=$ac_mid; break
7369 else
7370   echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7372
7373         ac_hi=`expr '(' $ac_mid ')' - 1`
7374                         if test $ac_mid -le $ac_hi; then
7375                           ac_lo= ac_hi=
7376                           break
7377                         fi
7378                         ac_mid=`expr 2 '*' $ac_mid`
7379 fi
7380
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7382   done
7383 else
7384   echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7386
7387         ac_lo= ac_hi=
7388 fi
7389
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 fi
7392
7393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7394 # Binary search between lo and hi bounds.
7395 while test "x$ac_lo" != "x$ac_hi"; do
7396   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7397   cat >conftest.$ac_ext <<_ACEOF
7398 /* confdefs.h.  */
7399 _ACEOF
7400 cat confdefs.h >>conftest.$ac_ext
7401 cat >>conftest.$ac_ext <<_ACEOF
7402 /* end confdefs.h.  */
7403 $ac_includes_default
7404    typedef unsigned long ac__type_sizeof_;
7405 int
7406 main ()
7407 {
7408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7409 test_array [0] = 0
7410
7411   ;
7412   return 0;
7413 }
7414 _ACEOF
7415 rm -f conftest.$ac_objext
7416 if { (ac_try="$ac_compile"
7417 case "(($ac_try" in
7418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7419   *) ac_try_echo=$ac_try;;
7420 esac
7421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7422   (eval "$ac_compile") 2>conftest.er1
7423   ac_status=$?
7424   grep -v '^ *+' conftest.er1 >conftest.err
7425   rm -f conftest.er1
7426   cat conftest.err >&5
7427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428   (exit $ac_status); } && {
7429          test -z "$ac_c_werror_flag" ||
7430          test ! -s conftest.err
7431        } && test -s conftest.$ac_objext; then
7432   ac_hi=$ac_mid
7433 else
7434   echo "$as_me: failed program was:" >&5
7435 sed 's/^/| /' conftest.$ac_ext >&5
7436
7437         ac_lo=`expr '(' $ac_mid ')' + 1`
7438 fi
7439
7440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7441 done
7442 case $ac_lo in
7443 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7444 '') if test "$ac_cv_type_unsigned_long" = yes; then
7445      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7446 See \`config.log' for more details." >&5
7447 echo "$as_me: error: cannot compute sizeof (unsigned long)
7448 See \`config.log' for more details." >&2;}
7449    { (exit 77); exit 77; }; }
7450    else
7451      ac_cv_sizeof_unsigned_long=0
7452    fi ;;
7453 esac
7454 else
7455   cat >conftest.$ac_ext <<_ACEOF
7456 /* confdefs.h.  */
7457 _ACEOF
7458 cat confdefs.h >>conftest.$ac_ext
7459 cat >>conftest.$ac_ext <<_ACEOF
7460 /* end confdefs.h.  */
7461 $ac_includes_default
7462    typedef unsigned long ac__type_sizeof_;
7463 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7464 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7465 #include <stdio.h>
7466 #include <stdlib.h>
7467 int
7468 main ()
7469 {
7470
7471   FILE *f = fopen ("conftest.val", "w");
7472   if (! f)
7473     return 1;
7474   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7475     {
7476       long int i = longval ();
7477       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7478         return 1;
7479       fprintf (f, "%ld\n", i);
7480     }
7481   else
7482     {
7483       unsigned long int i = ulongval ();
7484       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7485         return 1;
7486       fprintf (f, "%lu\n", i);
7487     }
7488   return ferror (f) || fclose (f) != 0;
7489
7490   ;
7491   return 0;
7492 }
7493 _ACEOF
7494 rm -f conftest$ac_exeext
7495 if { (ac_try="$ac_link"
7496 case "(($ac_try" in
7497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7498   *) ac_try_echo=$ac_try;;
7499 esac
7500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501   (eval "$ac_link") 2>&5
7502   ac_status=$?
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7505   { (case "(($ac_try" in
7506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507   *) ac_try_echo=$ac_try;;
7508 esac
7509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7510   (eval "$ac_try") 2>&5
7511   ac_status=$?
7512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513   (exit $ac_status); }; }; then
7514   ac_cv_sizeof_unsigned_long=`cat conftest.val`
7515 else
7516   echo "$as_me: program exited with status $ac_status" >&5
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7519
7520 ( exit $ac_status )
7521 if test "$ac_cv_type_unsigned_long" = yes; then
7522      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7523 See \`config.log' for more details." >&5
7524 echo "$as_me: error: cannot compute sizeof (unsigned long)
7525 See \`config.log' for more details." >&2;}
7526    { (exit 77); exit 77; }; }
7527    else
7528      ac_cv_sizeof_unsigned_long=0
7529    fi
7530 fi
7531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7532 fi
7533 rm -f conftest.val
7534 fi
7535 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7536 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
7537
7538
7539
7540 cat >>confdefs.h <<_ACEOF
7541 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7542 _ACEOF
7543
7544
7545 { echo "$as_me:$LINENO: checking for signed long long" >&5
7546 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7547 if test "${ac_cv_type_signed_long_long+set}" = set; then
7548   echo $ECHO_N "(cached) $ECHO_C" >&6
7549 else
7550   cat >conftest.$ac_ext <<_ACEOF
7551 /* confdefs.h.  */
7552 _ACEOF
7553 cat confdefs.h >>conftest.$ac_ext
7554 cat >>conftest.$ac_ext <<_ACEOF
7555 /* end confdefs.h.  */
7556 $ac_includes_default
7557 typedef signed long long ac__type_new_;
7558 int
7559 main ()
7560 {
7561 if ((ac__type_new_ *) 0)
7562   return 0;
7563 if (sizeof (ac__type_new_))
7564   return 0;
7565   ;
7566   return 0;
7567 }
7568 _ACEOF
7569 rm -f conftest.$ac_objext
7570 if { (ac_try="$ac_compile"
7571 case "(($ac_try" in
7572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573   *) ac_try_echo=$ac_try;;
7574 esac
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576   (eval "$ac_compile") 2>conftest.er1
7577   ac_status=$?
7578   grep -v '^ *+' conftest.er1 >conftest.err
7579   rm -f conftest.er1
7580   cat conftest.err >&5
7581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582   (exit $ac_status); } && {
7583          test -z "$ac_c_werror_flag" ||
7584          test ! -s conftest.err
7585        } && test -s conftest.$ac_objext; then
7586   ac_cv_type_signed_long_long=yes
7587 else
7588   echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7590
7591         ac_cv_type_signed_long_long=no
7592 fi
7593
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 fi
7596 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7597 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7598
7599 # The cast to long int works around a bug in the HP C Compiler
7600 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7601 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7602 # This bug is HP SR number 8606223364.
7603 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7604 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7605 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7606   echo $ECHO_N "(cached) $ECHO_C" >&6
7607 else
7608   if test "$cross_compiling" = yes; then
7609   # Depending upon the size, compute the lo and hi bounds.
7610 cat >conftest.$ac_ext <<_ACEOF
7611 /* confdefs.h.  */
7612 _ACEOF
7613 cat confdefs.h >>conftest.$ac_ext
7614 cat >>conftest.$ac_ext <<_ACEOF
7615 /* end confdefs.h.  */
7616 $ac_includes_default
7617    typedef signed long long ac__type_sizeof_;
7618 int
7619 main ()
7620 {
7621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7622 test_array [0] = 0
7623
7624   ;
7625   return 0;
7626 }
7627 _ACEOF
7628 rm -f conftest.$ac_objext
7629 if { (ac_try="$ac_compile"
7630 case "(($ac_try" in
7631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7632   *) ac_try_echo=$ac_try;;
7633 esac
7634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7635   (eval "$ac_compile") 2>conftest.er1
7636   ac_status=$?
7637   grep -v '^ *+' conftest.er1 >conftest.err
7638   rm -f conftest.er1
7639   cat conftest.err >&5
7640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7641   (exit $ac_status); } && {
7642          test -z "$ac_c_werror_flag" ||
7643          test ! -s conftest.err
7644        } && test -s conftest.$ac_objext; then
7645   ac_lo=0 ac_mid=0
7646   while :; do
7647     cat >conftest.$ac_ext <<_ACEOF
7648 /* confdefs.h.  */
7649 _ACEOF
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h.  */
7653 $ac_includes_default
7654    typedef signed long long ac__type_sizeof_;
7655 int
7656 main ()
7657 {
7658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7659 test_array [0] = 0
7660
7661   ;
7662   return 0;
7663 }
7664 _ACEOF
7665 rm -f conftest.$ac_objext
7666 if { (ac_try="$ac_compile"
7667 case "(($ac_try" in
7668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7669   *) ac_try_echo=$ac_try;;
7670 esac
7671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7672   (eval "$ac_compile") 2>conftest.er1
7673   ac_status=$?
7674   grep -v '^ *+' conftest.er1 >conftest.err
7675   rm -f conftest.er1
7676   cat conftest.err >&5
7677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7678   (exit $ac_status); } && {
7679          test -z "$ac_c_werror_flag" ||
7680          test ! -s conftest.err
7681        } && test -s conftest.$ac_objext; then
7682   ac_hi=$ac_mid; break
7683 else
7684   echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7686
7687         ac_lo=`expr $ac_mid + 1`
7688                         if test $ac_lo -le $ac_mid; then
7689                           ac_lo= ac_hi=
7690                           break
7691                         fi
7692                         ac_mid=`expr 2 '*' $ac_mid + 1`
7693 fi
7694
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696   done
7697 else
7698   echo "$as_me: failed program was:" >&5
7699 sed 's/^/| /' conftest.$ac_ext >&5
7700
7701         cat >conftest.$ac_ext <<_ACEOF
7702 /* confdefs.h.  */
7703 _ACEOF
7704 cat confdefs.h >>conftest.$ac_ext
7705 cat >>conftest.$ac_ext <<_ACEOF
7706 /* end confdefs.h.  */
7707 $ac_includes_default
7708    typedef signed long long ac__type_sizeof_;
7709 int
7710 main ()
7711 {
7712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7713 test_array [0] = 0
7714
7715   ;
7716   return 0;
7717 }
7718 _ACEOF
7719 rm -f conftest.$ac_objext
7720 if { (ac_try="$ac_compile"
7721 case "(($ac_try" in
7722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723   *) ac_try_echo=$ac_try;;
7724 esac
7725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7726   (eval "$ac_compile") 2>conftest.er1
7727   ac_status=$?
7728   grep -v '^ *+' conftest.er1 >conftest.err
7729   rm -f conftest.er1
7730   cat conftest.err >&5
7731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7732   (exit $ac_status); } && {
7733          test -z "$ac_c_werror_flag" ||
7734          test ! -s conftest.err
7735        } && test -s conftest.$ac_objext; then
7736   ac_hi=-1 ac_mid=-1
7737   while :; do
7738     cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h.  */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h.  */
7744 $ac_includes_default
7745    typedef signed long long ac__type_sizeof_;
7746 int
7747 main ()
7748 {
7749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7750 test_array [0] = 0
7751
7752   ;
7753   return 0;
7754 }
7755 _ACEOF
7756 rm -f conftest.$ac_objext
7757 if { (ac_try="$ac_compile"
7758 case "(($ac_try" in
7759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760   *) ac_try_echo=$ac_try;;
7761 esac
7762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7763   (eval "$ac_compile") 2>conftest.er1
7764   ac_status=$?
7765   grep -v '^ *+' conftest.er1 >conftest.err
7766   rm -f conftest.er1
7767   cat conftest.err >&5
7768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769   (exit $ac_status); } && {
7770          test -z "$ac_c_werror_flag" ||
7771          test ! -s conftest.err
7772        } && test -s conftest.$ac_objext; then
7773   ac_lo=$ac_mid; break
7774 else
7775   echo "$as_me: failed program was:" >&5
7776 sed 's/^/| /' conftest.$ac_ext >&5
7777
7778         ac_hi=`expr '(' $ac_mid ')' - 1`
7779                         if test $ac_mid -le $ac_hi; then
7780                           ac_lo= ac_hi=
7781                           break
7782                         fi
7783                         ac_mid=`expr 2 '*' $ac_mid`
7784 fi
7785
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787   done
7788 else
7789   echo "$as_me: failed program was:" >&5
7790 sed 's/^/| /' conftest.$ac_ext >&5
7791
7792         ac_lo= ac_hi=
7793 fi
7794
7795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7796 fi
7797
7798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7799 # Binary search between lo and hi bounds.
7800 while test "x$ac_lo" != "x$ac_hi"; do
7801   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7802   cat >conftest.$ac_ext <<_ACEOF
7803 /* confdefs.h.  */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h.  */
7808 $ac_includes_default
7809    typedef signed long long ac__type_sizeof_;
7810 int
7811 main ()
7812 {
7813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7814 test_array [0] = 0
7815
7816   ;
7817   return 0;
7818 }
7819 _ACEOF
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7822 case "(($ac_try" in
7823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824   *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827   (eval "$ac_compile") 2>conftest.er1
7828   ac_status=$?
7829   grep -v '^ *+' conftest.er1 >conftest.err
7830   rm -f conftest.er1
7831   cat conftest.err >&5
7832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833   (exit $ac_status); } && {
7834          test -z "$ac_c_werror_flag" ||
7835          test ! -s conftest.err
7836        } && test -s conftest.$ac_objext; then
7837   ac_hi=$ac_mid
7838 else
7839   echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7841
7842         ac_lo=`expr '(' $ac_mid ')' + 1`
7843 fi
7844
7845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846 done
7847 case $ac_lo in
7848 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7849 '') if test "$ac_cv_type_signed_long_long" = yes; then
7850      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7851 See \`config.log' for more details." >&5
7852 echo "$as_me: error: cannot compute sizeof (signed long long)
7853 See \`config.log' for more details." >&2;}
7854    { (exit 77); exit 77; }; }
7855    else
7856      ac_cv_sizeof_signed_long_long=0
7857    fi ;;
7858 esac
7859 else
7860   cat >conftest.$ac_ext <<_ACEOF
7861 /* confdefs.h.  */
7862 _ACEOF
7863 cat confdefs.h >>conftest.$ac_ext
7864 cat >>conftest.$ac_ext <<_ACEOF
7865 /* end confdefs.h.  */
7866 $ac_includes_default
7867    typedef signed long long ac__type_sizeof_;
7868 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7869 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7870 #include <stdio.h>
7871 #include <stdlib.h>
7872 int
7873 main ()
7874 {
7875
7876   FILE *f = fopen ("conftest.val", "w");
7877   if (! f)
7878     return 1;
7879   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7880     {
7881       long int i = longval ();
7882       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7883         return 1;
7884       fprintf (f, "%ld\n", i);
7885     }
7886   else
7887     {
7888       unsigned long int i = ulongval ();
7889       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7890         return 1;
7891       fprintf (f, "%lu\n", i);
7892     }
7893   return ferror (f) || fclose (f) != 0;
7894
7895   ;
7896   return 0;
7897 }
7898 _ACEOF
7899 rm -f conftest$ac_exeext
7900 if { (ac_try="$ac_link"
7901 case "(($ac_try" in
7902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7903   *) ac_try_echo=$ac_try;;
7904 esac
7905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7906   (eval "$ac_link") 2>&5
7907   ac_status=$?
7908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7910   { (case "(($ac_try" in
7911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912   *) ac_try_echo=$ac_try;;
7913 esac
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915   (eval "$ac_try") 2>&5
7916   ac_status=$?
7917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918   (exit $ac_status); }; }; then
7919   ac_cv_sizeof_signed_long_long=`cat conftest.val`
7920 else
7921   echo "$as_me: program exited with status $ac_status" >&5
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7924
7925 ( exit $ac_status )
7926 if test "$ac_cv_type_signed_long_long" = yes; then
7927      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7928 See \`config.log' for more details." >&5
7929 echo "$as_me: error: cannot compute sizeof (signed long long)
7930 See \`config.log' for more details." >&2;}
7931    { (exit 77); exit 77; }; }
7932    else
7933      ac_cv_sizeof_signed_long_long=0
7934    fi
7935 fi
7936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7937 fi
7938 rm -f conftest.val
7939 fi
7940 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7941 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
7942
7943
7944
7945 cat >>confdefs.h <<_ACEOF
7946 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7947 _ACEOF
7948
7949
7950 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
7951 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
7952 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
7953   echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955   cat >conftest.$ac_ext <<_ACEOF
7956 /* confdefs.h.  */
7957 _ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h.  */
7961 $ac_includes_default
7962 typedef unsigned long long ac__type_new_;
7963 int
7964 main ()
7965 {
7966 if ((ac__type_new_ *) 0)
7967   return 0;
7968 if (sizeof (ac__type_new_))
7969   return 0;
7970   ;
7971   return 0;
7972 }
7973 _ACEOF
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7976 case "(($ac_try" in
7977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978   *) ac_try_echo=$ac_try;;
7979 esac
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981   (eval "$ac_compile") 2>conftest.er1
7982   ac_status=$?
7983   grep -v '^ *+' conftest.er1 >conftest.err
7984   rm -f conftest.er1
7985   cat conftest.err >&5
7986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } && {
7988          test -z "$ac_c_werror_flag" ||
7989          test ! -s conftest.err
7990        } && test -s conftest.$ac_objext; then
7991   ac_cv_type_unsigned_long_long=yes
7992 else
7993   echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7995
7996         ac_cv_type_unsigned_long_long=no
7997 fi
7998
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8000 fi
8001 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8002 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8003
8004 # The cast to long int works around a bug in the HP C Compiler
8005 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8006 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8007 # This bug is HP SR number 8606223364.
8008 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
8009 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
8010 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013   if test "$cross_compiling" = yes; then
8014   # Depending upon the size, compute the lo and hi bounds.
8015 cat >conftest.$ac_ext <<_ACEOF
8016 /* confdefs.h.  */
8017 _ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h.  */
8021 $ac_includes_default
8022    typedef unsigned long long ac__type_sizeof_;
8023 int
8024 main ()
8025 {
8026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8027 test_array [0] = 0
8028
8029   ;
8030   return 0;
8031 }
8032 _ACEOF
8033 rm -f conftest.$ac_objext
8034 if { (ac_try="$ac_compile"
8035 case "(($ac_try" in
8036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8037   *) ac_try_echo=$ac_try;;
8038 esac
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040   (eval "$ac_compile") 2>conftest.er1
8041   ac_status=$?
8042   grep -v '^ *+' conftest.er1 >conftest.err
8043   rm -f conftest.er1
8044   cat conftest.err >&5
8045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046   (exit $ac_status); } && {
8047          test -z "$ac_c_werror_flag" ||
8048          test ! -s conftest.err
8049        } && test -s conftest.$ac_objext; then
8050   ac_lo=0 ac_mid=0
8051   while :; do
8052     cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h.  */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h.  */
8058 $ac_includes_default
8059    typedef unsigned long long ac__type_sizeof_;
8060 int
8061 main ()
8062 {
8063 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8064 test_array [0] = 0
8065
8066   ;
8067   return 0;
8068 }
8069 _ACEOF
8070 rm -f conftest.$ac_objext
8071 if { (ac_try="$ac_compile"
8072 case "(($ac_try" in
8073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8074   *) ac_try_echo=$ac_try;;
8075 esac
8076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8077   (eval "$ac_compile") 2>conftest.er1
8078   ac_status=$?
8079   grep -v '^ *+' conftest.er1 >conftest.err
8080   rm -f conftest.er1
8081   cat conftest.err >&5
8082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083   (exit $ac_status); } && {
8084          test -z "$ac_c_werror_flag" ||
8085          test ! -s conftest.err
8086        } && test -s conftest.$ac_objext; then
8087   ac_hi=$ac_mid; break
8088 else
8089   echo "$as_me: failed program was:" >&5
8090 sed 's/^/| /' conftest.$ac_ext >&5
8091
8092         ac_lo=`expr $ac_mid + 1`
8093                         if test $ac_lo -le $ac_mid; then
8094                           ac_lo= ac_hi=
8095                           break
8096                         fi
8097                         ac_mid=`expr 2 '*' $ac_mid + 1`
8098 fi
8099
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101   done
8102 else
8103   echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8105
8106         cat >conftest.$ac_ext <<_ACEOF
8107 /* confdefs.h.  */
8108 _ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h.  */
8112 $ac_includes_default
8113    typedef unsigned long long ac__type_sizeof_;
8114 int
8115 main ()
8116 {
8117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8118 test_array [0] = 0
8119
8120   ;
8121   return 0;
8122 }
8123 _ACEOF
8124 rm -f conftest.$ac_objext
8125 if { (ac_try="$ac_compile"
8126 case "(($ac_try" in
8127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8128   *) ac_try_echo=$ac_try;;
8129 esac
8130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8131   (eval "$ac_compile") 2>conftest.er1
8132   ac_status=$?
8133   grep -v '^ *+' conftest.er1 >conftest.err
8134   rm -f conftest.er1
8135   cat conftest.err >&5
8136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137   (exit $ac_status); } && {
8138          test -z "$ac_c_werror_flag" ||
8139          test ! -s conftest.err
8140        } && test -s conftest.$ac_objext; then
8141   ac_hi=-1 ac_mid=-1
8142   while :; do
8143     cat >conftest.$ac_ext <<_ACEOF
8144 /* confdefs.h.  */
8145 _ACEOF
8146 cat confdefs.h >>conftest.$ac_ext
8147 cat >>conftest.$ac_ext <<_ACEOF
8148 /* end confdefs.h.  */
8149 $ac_includes_default
8150    typedef unsigned long long ac__type_sizeof_;
8151 int
8152 main ()
8153 {
8154 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8155 test_array [0] = 0
8156
8157   ;
8158   return 0;
8159 }
8160 _ACEOF
8161 rm -f conftest.$ac_objext
8162 if { (ac_try="$ac_compile"
8163 case "(($ac_try" in
8164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165   *) ac_try_echo=$ac_try;;
8166 esac
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168   (eval "$ac_compile") 2>conftest.er1
8169   ac_status=$?
8170   grep -v '^ *+' conftest.er1 >conftest.err
8171   rm -f conftest.er1
8172   cat conftest.err >&5
8173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174   (exit $ac_status); } && {
8175          test -z "$ac_c_werror_flag" ||
8176          test ! -s conftest.err
8177        } && test -s conftest.$ac_objext; then
8178   ac_lo=$ac_mid; break
8179 else
8180   echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.$ac_ext >&5
8182
8183         ac_hi=`expr '(' $ac_mid ')' - 1`
8184                         if test $ac_mid -le $ac_hi; then
8185                           ac_lo= ac_hi=
8186                           break
8187                         fi
8188                         ac_mid=`expr 2 '*' $ac_mid`
8189 fi
8190
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192   done
8193 else
8194   echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.$ac_ext >&5
8196
8197         ac_lo= ac_hi=
8198 fi
8199
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201 fi
8202
8203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8204 # Binary search between lo and hi bounds.
8205 while test "x$ac_lo" != "x$ac_hi"; do
8206   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8207   cat >conftest.$ac_ext <<_ACEOF
8208 /* confdefs.h.  */
8209 _ACEOF
8210 cat confdefs.h >>conftest.$ac_ext
8211 cat >>conftest.$ac_ext <<_ACEOF
8212 /* end confdefs.h.  */
8213 $ac_includes_default
8214    typedef unsigned long long ac__type_sizeof_;
8215 int
8216 main ()
8217 {
8218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8219 test_array [0] = 0
8220
8221   ;
8222   return 0;
8223 }
8224 _ACEOF
8225 rm -f conftest.$ac_objext
8226 if { (ac_try="$ac_compile"
8227 case "(($ac_try" in
8228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8229   *) ac_try_echo=$ac_try;;
8230 esac
8231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8232   (eval "$ac_compile") 2>conftest.er1
8233   ac_status=$?
8234   grep -v '^ *+' conftest.er1 >conftest.err
8235   rm -f conftest.er1
8236   cat conftest.err >&5
8237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238   (exit $ac_status); } && {
8239          test -z "$ac_c_werror_flag" ||
8240          test ! -s conftest.err
8241        } && test -s conftest.$ac_objext; then
8242   ac_hi=$ac_mid
8243 else
8244   echo "$as_me: failed program was:" >&5
8245 sed 's/^/| /' conftest.$ac_ext >&5
8246
8247         ac_lo=`expr '(' $ac_mid ')' + 1`
8248 fi
8249
8250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8251 done
8252 case $ac_lo in
8253 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
8254 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
8255      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8256 See \`config.log' for more details." >&5
8257 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8258 See \`config.log' for more details." >&2;}
8259    { (exit 77); exit 77; }; }
8260    else
8261      ac_cv_sizeof_unsigned_long_long=0
8262    fi ;;
8263 esac
8264 else
8265   cat >conftest.$ac_ext <<_ACEOF
8266 /* confdefs.h.  */
8267 _ACEOF
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h.  */
8271 $ac_includes_default
8272    typedef unsigned long long ac__type_sizeof_;
8273 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8274 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8275 #include <stdio.h>
8276 #include <stdlib.h>
8277 int
8278 main ()
8279 {
8280
8281   FILE *f = fopen ("conftest.val", "w");
8282   if (! f)
8283     return 1;
8284   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8285     {
8286       long int i = longval ();
8287       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8288         return 1;
8289       fprintf (f, "%ld\n", i);
8290     }
8291   else
8292     {
8293       unsigned long int i = ulongval ();
8294       if (i != ((long int) (sizeof (ac__type_sizeof_))))
8295         return 1;
8296       fprintf (f, "%lu\n", i);
8297     }
8298   return ferror (f) || fclose (f) != 0;
8299
8300   ;
8301   return 0;
8302 }
8303 _ACEOF
8304 rm -f conftest$ac_exeext
8305 if { (ac_try="$ac_link"
8306 case "(($ac_try" in
8307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308   *) ac_try_echo=$ac_try;;
8309 esac
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311   (eval "$ac_link") 2>&5
8312   ac_status=$?
8313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8315   { (case "(($ac_try" in
8316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8317   *) ac_try_echo=$ac_try;;
8318 esac
8319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8320   (eval "$ac_try") 2>&5
8321   ac_status=$?
8322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323   (exit $ac_status); }; }; then
8324   ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
8325 else
8326   echo "$as_me: program exited with status $ac_status" >&5
8327 echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8329
8330 ( exit $ac_status )
8331 if test "$ac_cv_type_unsigned_long_long" = yes; then
8332      { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8333 See \`config.log' for more details." >&5
8334 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8335 See \`config.log' for more details." >&2;}
8336    { (exit 77); exit 77; }; }
8337    else
8338      ac_cv_sizeof_unsigned_long_long=0
8339    fi
8340 fi
8341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8342 fi
8343 rm -f conftest.val
8344 fi
8345 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
8346 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
8347
8348
8349
8350 cat >>confdefs.h <<_ACEOF
8351 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8352 _ACEOF
8353
8354
8355
8356
8357
8358 # Extract the first word of "freetype-config", so it can be a program name with args.
8359 set dummy freetype-config; ac_word=$2
8360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8362 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   case $FREETYPE_CONFIG in
8366   [\\/]* | ?:[\\/]*)
8367   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8368   ;;
8369   *)
8370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8372 for as_dir in $as_dummy
8373 do
8374   IFS=$as_save_IFS
8375   test -z "$as_dir" && as_dir=.
8376   for ac_exec_ext in '' $ac_executable_extensions; do
8377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8378     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8380     break 2
8381   fi
8382 done
8383 done
8384 IFS=$as_save_IFS
8385
8386   ;;
8387 esac
8388 fi
8389 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8390 if test -n "$FREETYPE_CONFIG"; then
8391   { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8392 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8393 else
8394   { echo "$as_me:$LINENO: result: no" >&5
8395 echo "${ECHO_T}no" >&6; }
8396 fi
8397
8398
8399
8400 OLDCPPFLAGS="${CPPFLAGS}"
8401 OLDLIBS="${LIBS}"
8402 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8403     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8404 else if test -d /usr/include/freetype2; then
8405     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8406 else if test -d /usr/local/include/freetype2; then
8407     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8408 fi
8409 fi
8410 fi
8411
8412 if test "x${FREETYPE_CONFIG}" '=' "x";then
8413     # if we didn't find the freetype-config program, we won't
8414     # know where the libs are expected to be. So just blindly
8415     # try to link against them.
8416     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8417 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8418 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421   ac_check_lib_save_LIBS=$LIBS
8422 LIBS="-lfreetype  $LIBS"
8423 cat >conftest.$ac_ext <<_ACEOF
8424 /* confdefs.h.  */
8425 _ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h.  */
8429
8430 /* Override any GCC internal prototype to avoid an error.
8431    Use char because int might match the return type of a GCC
8432    builtin and then its argument prototype would still apply.  */
8433 #ifdef __cplusplus
8434 extern "C"
8435 #endif
8436 char FT_Init_FreeType ();
8437 int
8438 main ()
8439 {
8440 return FT_Init_FreeType ();
8441   ;
8442   return 0;
8443 }
8444 _ACEOF
8445 rm -f conftest.$ac_objext conftest$ac_exeext
8446 if { (ac_try="$ac_link"
8447 case "(($ac_try" in
8448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8449   *) ac_try_echo=$ac_try;;
8450 esac
8451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8452   (eval "$ac_link") 2>conftest.er1
8453   ac_status=$?
8454   grep -v '^ *+' conftest.er1 >conftest.err
8455   rm -f conftest.er1
8456   cat conftest.err >&5
8457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458   (exit $ac_status); } && {
8459          test -z "$ac_c_werror_flag" ||
8460          test ! -s conftest.err
8461        } && test -s conftest$ac_exeext &&
8462        $as_test_x conftest$ac_exeext; then
8463   ac_cv_lib_freetype_FT_Init_FreeType=yes
8464 else
8465   echo "$as_me: failed program was:" >&5
8466 sed 's/^/| /' conftest.$ac_ext >&5
8467
8468         ac_cv_lib_freetype_FT_Init_FreeType=no
8469 fi
8470
8471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8472       conftest$ac_exeext conftest.$ac_ext
8473 LIBS=$ac_check_lib_save_LIBS
8474 fi
8475 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8476 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8477 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8478   HAVE_LIB_FREETYPE=1
8479 fi
8480
8481 fi
8482
8483
8484 for ac_header in ft2build.h
8485 do
8486 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8488   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8491   echo $ECHO_N "(cached) $ECHO_C" >&6
8492 fi
8493 ac_res=`eval echo '${'$as_ac_Header'}'`
8494                { echo "$as_me:$LINENO: result: $ac_res" >&5
8495 echo "${ECHO_T}$ac_res" >&6; }
8496 else
8497   # Is the header compilable?
8498 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8499 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8500 cat >conftest.$ac_ext <<_ACEOF
8501 /* confdefs.h.  */
8502 _ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h.  */
8506 $ac_includes_default
8507 #include <$ac_header>
8508 _ACEOF
8509 rm -f conftest.$ac_objext
8510 if { (ac_try="$ac_compile"
8511 case "(($ac_try" in
8512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513   *) ac_try_echo=$ac_try;;
8514 esac
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516   (eval "$ac_compile") 2>conftest.er1
8517   ac_status=$?
8518   grep -v '^ *+' conftest.er1 >conftest.err
8519   rm -f conftest.er1
8520   cat conftest.err >&5
8521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522   (exit $ac_status); } && {
8523          test -z "$ac_c_werror_flag" ||
8524          test ! -s conftest.err
8525        } && test -s conftest.$ac_objext; then
8526   ac_header_compiler=yes
8527 else
8528   echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531         ac_header_compiler=no
8532 fi
8533
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8536 echo "${ECHO_T}$ac_header_compiler" >&6; }
8537
8538 # Is the header present?
8539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8541 cat >conftest.$ac_ext <<_ACEOF
8542 /* confdefs.h.  */
8543 _ACEOF
8544 cat confdefs.h >>conftest.$ac_ext
8545 cat >>conftest.$ac_ext <<_ACEOF
8546 /* end confdefs.h.  */
8547 #include <$ac_header>
8548 _ACEOF
8549 if { (ac_try="$ac_cpp conftest.$ac_ext"
8550 case "(($ac_try" in
8551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8552   *) ac_try_echo=$ac_try;;
8553 esac
8554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8555   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8556   ac_status=$?
8557   grep -v '^ *+' conftest.er1 >conftest.err
8558   rm -f conftest.er1
8559   cat conftest.err >&5
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); } >/dev/null && {
8562          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8563          test ! -s conftest.err
8564        }; then
8565   ac_header_preproc=yes
8566 else
8567   echo "$as_me: failed program was:" >&5
8568 sed 's/^/| /' conftest.$ac_ext >&5
8569
8570   ac_header_preproc=no
8571 fi
8572
8573 rm -f conftest.err conftest.$ac_ext
8574 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8575 echo "${ECHO_T}$ac_header_preproc" >&6; }
8576
8577 # So?  What about this header?
8578 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8579   yes:no: )
8580     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8581 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8582     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8583 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8584     ac_header_preproc=yes
8585     ;;
8586   no:yes:* )
8587     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8588 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8589     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8590 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8591     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8592 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8593     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8594 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8595     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8596 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8597     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8598 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8599
8600     ;;
8601 esac
8602 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8603 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8605   echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607   eval "$as_ac_Header=\$ac_header_preproc"
8608 fi
8609 ac_res=`eval echo '${'$as_ac_Header'}'`
8610                { echo "$as_me:$LINENO: result: $ac_res" >&5
8611 echo "${ECHO_T}$ac_res" >&6; }
8612
8613 fi
8614 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8615   cat >>confdefs.h <<_ACEOF
8616 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8617 _ACEOF
8618  HAVE_FT2BUILD_H=1
8619 fi
8620
8621 done
8622
8623 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8624
8625 for ac_header in freetype/freetype.h
8626 do
8627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8629   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8632   echo $ECHO_N "(cached) $ECHO_C" >&6
8633 fi
8634 ac_res=`eval echo '${'$as_ac_Header'}'`
8635                { echo "$as_me:$LINENO: result: $ac_res" >&5
8636 echo "${ECHO_T}$ac_res" >&6; }
8637 else
8638   # Is the header compilable?
8639 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8641 cat >conftest.$ac_ext <<_ACEOF
8642 /* confdefs.h.  */
8643 _ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h.  */
8647 $ac_includes_default
8648 #include <$ac_header>
8649 _ACEOF
8650 rm -f conftest.$ac_objext
8651 if { (ac_try="$ac_compile"
8652 case "(($ac_try" in
8653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8654   *) ac_try_echo=$ac_try;;
8655 esac
8656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8657   (eval "$ac_compile") 2>conftest.er1
8658   ac_status=$?
8659   grep -v '^ *+' conftest.er1 >conftest.err
8660   rm -f conftest.er1
8661   cat conftest.err >&5
8662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663   (exit $ac_status); } && {
8664          test -z "$ac_c_werror_flag" ||
8665          test ! -s conftest.err
8666        } && test -s conftest.$ac_objext; then
8667   ac_header_compiler=yes
8668 else
8669   echo "$as_me: failed program was:" >&5
8670 sed 's/^/| /' conftest.$ac_ext >&5
8671
8672         ac_header_compiler=no
8673 fi
8674
8675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8677 echo "${ECHO_T}$ac_header_compiler" >&6; }
8678
8679 # Is the header present?
8680 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8682 cat >conftest.$ac_ext <<_ACEOF
8683 /* confdefs.h.  */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h.  */
8688 #include <$ac_header>
8689 _ACEOF
8690 if { (ac_try="$ac_cpp conftest.$ac_ext"
8691 case "(($ac_try" in
8692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8693   *) ac_try_echo=$ac_try;;
8694 esac
8695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8696   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8697   ac_status=$?
8698   grep -v '^ *+' conftest.er1 >conftest.err
8699   rm -f conftest.er1
8700   cat conftest.err >&5
8701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8702   (exit $ac_status); } >/dev/null && {
8703          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8704          test ! -s conftest.err
8705        }; then
8706   ac_header_preproc=yes
8707 else
8708   echo "$as_me: failed program was:" >&5
8709 sed 's/^/| /' conftest.$ac_ext >&5
8710
8711   ac_header_preproc=no
8712 fi
8713
8714 rm -f conftest.err conftest.$ac_ext
8715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8716 echo "${ECHO_T}$ac_header_preproc" >&6; }
8717
8718 # So?  What about this header?
8719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8720   yes:no: )
8721     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8725     ac_header_preproc=yes
8726     ;;
8727   no:yes:* )
8728     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8730     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8731 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8732     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8734     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8735 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8736     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8738     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8740
8741     ;;
8742 esac
8743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8746   echo $ECHO_N "(cached) $ECHO_C" >&6
8747 else
8748   eval "$as_ac_Header=\$ac_header_preproc"
8749 fi
8750 ac_res=`eval echo '${'$as_ac_Header'}'`
8751                { echo "$as_me:$LINENO: result: $ac_res" >&5
8752 echo "${ECHO_T}$ac_res" >&6; }
8753
8754 fi
8755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8756   cat >>confdefs.h <<_ACEOF
8757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8758 _ACEOF
8759  HAVE_FREETYPE_FREETYPE_H=1
8760 fi
8761
8762 done
8763
8764 fi
8765
8766 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8767         "x${FREETYPE_CONFIG}" '!=' "x";then
8768     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8769         HAVE_FREETYPE=1
8770     fi
8771     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8772         HAVE_FREETYPE=1
8773     fi
8774 fi
8775
8776 if test "x${HAVE_FREETYPE}" = "x1"; then
8777     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8778         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8779     else
8780         LIBS="$LIBS -lfreetype"
8781     fi
8782
8783     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8784         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8785     fi
8786
8787     { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8788 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8789
8790     cat > conftest.c << EOF
8791 $HAVE_FT2BUILD_H_DEFINE
8792
8793 #ifdef HAVE_FT2BUILD_H
8794 #include <ft2build.h>
8795 #include FT_FREETYPE_H
8796 #include FT_GLYPH_H
8797 #include FT_SIZES_H
8798 #include FT_SFNT_NAMES_H
8799 #include FT_TRUETYPE_IDS_H
8800 #include FT_OUTLINE_H
8801 #else
8802 #include <freetype/freetype.h>
8803 #include <freetype/ftglyph.h>
8804 #include <freetype/ftsizes.h>
8805 #include <freetype/ftsnames.h>
8806 #include <freetype/ttnameid.h>
8807 #include <freetype/ftoutln.h>
8808 #endif
8809
8810 int main()
8811 {
8812     FT_Library ftlibrary;
8813     FT_Face face;
8814     FT_Error error;
8815     FT_ULong charcode;
8816     FT_UInt gindex;
8817     FT_Glyph glyph;
8818     FT_BBox bbox;
8819     FT_Matrix matrix;
8820     FT_UInt i;
8821     char* name = 0;
8822     char italic, bold;
8823
8824     FT_Init_FreeType(&ftlibrary);
8825     FT_New_Face(ftlibrary, "filename", 0, &face);
8826     i = face->num_glyphs - 1;
8827     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8828     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8829     FT_Get_Postscript_Name(face);
8830     FT_Get_Char_Index(face, 33);
8831     FT_Get_First_Char(face, &i);
8832     FT_Get_Next_Char(face, 33, &i);
8833     if(FT_HAS_GLYPH_NAMES(face)) {
8834         FT_Get_Glyph_Name(face, 33, name, 127);
8835     }
8836     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8837     FT_Get_Glyph(face->glyph, &glyph);
8838     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8839     FT_Done_Glyph(glyph);
8840     FT_Done_Face(face);
8841     FT_Done_FreeType(ftlibrary);
8842     return 0;
8843 }
8844 EOF
8845
8846     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8847     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8848         { echo "$as_me:$LINENO: result: yes" >&5
8849 echo "${ECHO_T}yes" >&6; }
8850         cat >>confdefs.h <<_ACEOF
8851 #define HAVE_FREETYPE 1
8852 _ACEOF
8853
8854         cat >>confdefs.h <<_ACEOF
8855 #define HAVE_FREETYPE_FREETYPE_H 1
8856 _ACEOF
8857
8858         cat >>confdefs.h <<_ACEOF
8859 #define USE_FREETYPE 1
8860 _ACEOF
8861   # for ttf2tp1
8862     else
8863         echo "configure: failed program was:" >&5
8864         cat conftest.c >&5
8865         HAVE_FREETYPE=0
8866         { echo "$as_me:$LINENO: result: no" >&5
8867 echo "${ECHO_T}no" >&6; }
8868     fi
8869     rm -f conftest*
8870 fi
8871
8872 # if the above didn't work out, reset all changes to the compiler variables.
8873 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8874     CPPFLAGS=$OLDCPPFLAGS
8875     LIBS=$OLDLIBS
8876 fi
8877
8878
8879
8880 OLDCPPFLAGS="${CPPFLAGS}"
8881 OLDLIBS="${LIBS}"
8882
8883 if test -d /usr/include/fontconfig; then
8884     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8885 fi
8886
8887 { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8888 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; }
8889 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8890   echo $ECHO_N "(cached) $ECHO_C" >&6
8891 else
8892   ac_check_lib_save_LIBS=$LIBS
8893 LIBS="-lfontconfig  $LIBS"
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900
8901 /* Override any GCC internal prototype to avoid an error.
8902    Use char because int might match the return type of a GCC
8903    builtin and then its argument prototype would still apply.  */
8904 #ifdef __cplusplus
8905 extern "C"
8906 #endif
8907 char FcInit ();
8908 int
8909 main ()
8910 {
8911 return FcInit ();
8912   ;
8913   return 0;
8914 }
8915 _ACEOF
8916 rm -f conftest.$ac_objext conftest$ac_exeext
8917 if { (ac_try="$ac_link"
8918 case "(($ac_try" in
8919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920   *) ac_try_echo=$ac_try;;
8921 esac
8922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8923   (eval "$ac_link") 2>conftest.er1
8924   ac_status=$?
8925   grep -v '^ *+' conftest.er1 >conftest.err
8926   rm -f conftest.er1
8927   cat conftest.err >&5
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); } && {
8930          test -z "$ac_c_werror_flag" ||
8931          test ! -s conftest.err
8932        } && test -s conftest$ac_exeext &&
8933        $as_test_x conftest$ac_exeext; then
8934   ac_cv_lib_fontconfig_FcInit=yes
8935 else
8936   echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8938
8939         ac_cv_lib_fontconfig_FcInit=no
8940 fi
8941
8942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8943       conftest$ac_exeext conftest.$ac_ext
8944 LIBS=$ac_check_lib_save_LIBS
8945 fi
8946 { echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8947 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; }
8948 if test $ac_cv_lib_fontconfig_FcInit = yes; then
8949   HAVE_LIB_FONTCONFIG=1
8950 fi
8951
8952
8953 for ac_header in fontconfig.h
8954 do
8955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8957   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8960   echo $ECHO_N "(cached) $ECHO_C" >&6
8961 fi
8962 ac_res=`eval echo '${'$as_ac_Header'}'`
8963                { echo "$as_me:$LINENO: result: $ac_res" >&5
8964 echo "${ECHO_T}$ac_res" >&6; }
8965 else
8966   # Is the header compilable?
8967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8969 cat >conftest.$ac_ext <<_ACEOF
8970 /* confdefs.h.  */
8971 _ACEOF
8972 cat confdefs.h >>conftest.$ac_ext
8973 cat >>conftest.$ac_ext <<_ACEOF
8974 /* end confdefs.h.  */
8975 $ac_includes_default
8976 #include <$ac_header>
8977 _ACEOF
8978 rm -f conftest.$ac_objext
8979 if { (ac_try="$ac_compile"
8980 case "(($ac_try" in
8981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8982   *) ac_try_echo=$ac_try;;
8983 esac
8984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8985   (eval "$ac_compile") 2>conftest.er1
8986   ac_status=$?
8987   grep -v '^ *+' conftest.er1 >conftest.err
8988   rm -f conftest.er1
8989   cat conftest.err >&5
8990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991   (exit $ac_status); } && {
8992          test -z "$ac_c_werror_flag" ||
8993          test ! -s conftest.err
8994        } && test -s conftest.$ac_objext; then
8995   ac_header_compiler=yes
8996 else
8997   echo "$as_me: failed program was:" >&5
8998 sed 's/^/| /' conftest.$ac_ext >&5
8999
9000         ac_header_compiler=no
9001 fi
9002
9003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9005 echo "${ECHO_T}$ac_header_compiler" >&6; }
9006
9007 # Is the header present?
9008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9010 cat >conftest.$ac_ext <<_ACEOF
9011 /* confdefs.h.  */
9012 _ACEOF
9013 cat confdefs.h >>conftest.$ac_ext
9014 cat >>conftest.$ac_ext <<_ACEOF
9015 /* end confdefs.h.  */
9016 #include <$ac_header>
9017 _ACEOF
9018 if { (ac_try="$ac_cpp conftest.$ac_ext"
9019 case "(($ac_try" in
9020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9021   *) ac_try_echo=$ac_try;;
9022 esac
9023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9025   ac_status=$?
9026   grep -v '^ *+' conftest.er1 >conftest.err
9027   rm -f conftest.er1
9028   cat conftest.err >&5
9029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9030   (exit $ac_status); } >/dev/null && {
9031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9032          test ! -s conftest.err
9033        }; then
9034   ac_header_preproc=yes
9035 else
9036   echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9038
9039   ac_header_preproc=no
9040 fi
9041
9042 rm -f conftest.err conftest.$ac_ext
9043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9044 echo "${ECHO_T}$ac_header_preproc" >&6; }
9045
9046 # So?  What about this header?
9047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9048   yes:no: )
9049     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9053     ac_header_preproc=yes
9054     ;;
9055   no:yes:* )
9056     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9058     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9059 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9060     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9062     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9063 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9066     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9068
9069     ;;
9070 esac
9071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9074   echo $ECHO_N "(cached) $ECHO_C" >&6
9075 else
9076   eval "$as_ac_Header=\$ac_header_preproc"
9077 fi
9078 ac_res=`eval echo '${'$as_ac_Header'}'`
9079                { echo "$as_me:$LINENO: result: $ac_res" >&5
9080 echo "${ECHO_T}$ac_res" >&6; }
9081
9082 fi
9083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9084   cat >>confdefs.h <<_ACEOF
9085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9086 _ACEOF
9087  HAVE_FONTCONFIG_H=1
9088 fi
9089
9090 done
9091
9092
9093 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
9094 if test "x${HAVE_FONTCONFIG_H}" != "x";then
9095     HAVE_FONTCONFIG=1
9096 fi
9097 fi
9098
9099 if test "x${HAVE_FONTCONFIG}" = "x1"; then
9100     LIBS="$LIBS -lfontconfig"
9101 { echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
9102 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6; }
9103
9104 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
9105     #move freetype library to the end of libraries, otherwise fontconfig
9106     #won't compile.
9107     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
9108 fi
9109
9110 cat > conftest.c << EOF
9111 #include <string.h>
9112 #include <fontconfig.h>
9113
9114 int main()
9115 {
9116     FcPattern *pattern, *match;
9117     FcResult result;
9118     FcChar8 *v;
9119     char*s1="abc",*s2="ABC";
9120     strcasecmp(s1,s2);
9121     FcInit();
9122     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
9123     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
9124     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
9125     FcConfigSubstitute(0, pattern, FcMatchPattern);
9126     FcDefaultSubstitute(pattern);
9127     match = FcFontMatch(0, pattern, &result);
9128     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
9129     FcPatternPrint(pattern);
9130     FcPatternDestroy(pattern);
9131     FcPatternDestroy(match);
9132     return 0;
9133 }
9134 EOF
9135
9136     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9137     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9138         { echo "$as_me:$LINENO: result: yes" >&5
9139 echo "${ECHO_T}yes" >&6; }
9140         cat >>confdefs.h <<_ACEOF
9141 #define HAVE_FONTCONFIG 1
9142 _ACEOF
9143
9144     else
9145         echo "configure: failed program was:" >&5
9146         cat conftest.c >&5
9147         HAVE_FONTCONFIG=0
9148         { echo "$as_me:$LINENO: result: no" >&5
9149 echo "${ECHO_T}no" >&6; }
9150     fi
9151     rm -f conftest*
9152 fi
9153
9154 # if the above didn't work out, reset all changes to the compiler variables.
9155 if test "x${HAVE_FREETYPE}" "!=" "x1"; then
9156     CPPFLAGS=$OLDCPPFLAGS
9157     LIBS=$OLDLIBS
9158 fi
9159
9160
9161 lame_objects=
9162 lame_makefile=
9163 if test "x${DISABLE_LAME}" = "xtrue"; then
9164     echo "*" Disabling lame support...
9165 else
9166     # old lame code at lib/lame
9167     if test -f lib/lame/Makefile.in; then
9168         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)"
9169         lame_makefile="lib/lame/Makefile"
9170         CPPFLAGS="$CPPFLAGS -Ilame"
9171         cat >>confdefs.h <<_ACEOF
9172 #define HAVE_LAME 1
9173 _ACEOF
9174
9175     else
9176         if test -d /usr/include/lame; then
9177             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9178         else
9179             if test -d /usr/local/include/lame; then
9180                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9181             fi
9182         fi
9183
9184 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9185 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
9186 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9187   echo $ECHO_N "(cached) $ECHO_C" >&6
9188 else
9189   ac_check_lib_save_LIBS=$LIBS
9190 LIBS="-lmp3lame  $LIBS"
9191 cat >conftest.$ac_ext <<_ACEOF
9192 /* confdefs.h.  */
9193 _ACEOF
9194 cat confdefs.h >>conftest.$ac_ext
9195 cat >>conftest.$ac_ext <<_ACEOF
9196 /* end confdefs.h.  */
9197
9198 /* Override any GCC internal prototype to avoid an error.
9199    Use char because int might match the return type of a GCC
9200    builtin and then its argument prototype would still apply.  */
9201 #ifdef __cplusplus
9202 extern "C"
9203 #endif
9204 char lame_init ();
9205 int
9206 main ()
9207 {
9208 return lame_init ();
9209   ;
9210   return 0;
9211 }
9212 _ACEOF
9213 rm -f conftest.$ac_objext conftest$ac_exeext
9214 if { (ac_try="$ac_link"
9215 case "(($ac_try" in
9216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217   *) ac_try_echo=$ac_try;;
9218 esac
9219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9220   (eval "$ac_link") 2>conftest.er1
9221   ac_status=$?
9222   grep -v '^ *+' conftest.er1 >conftest.err
9223   rm -f conftest.er1
9224   cat conftest.err >&5
9225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226   (exit $ac_status); } && {
9227          test -z "$ac_c_werror_flag" ||
9228          test ! -s conftest.err
9229        } && test -s conftest$ac_exeext &&
9230        $as_test_x conftest$ac_exeext; then
9231   ac_cv_lib_mp3lame_lame_init=yes
9232 else
9233   echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9235
9236         ac_cv_lib_mp3lame_lame_init=no
9237 fi
9238
9239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9240       conftest$ac_exeext conftest.$ac_ext
9241 LIBS=$ac_check_lib_save_LIBS
9242 fi
9243 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9244 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
9245 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9246   cat >>confdefs.h <<_ACEOF
9247 #define HAVE_LIBMP3LAME 1
9248 _ACEOF
9249
9250   LIBS="-lmp3lame $LIBS"
9251
9252 else
9253   NO_LIBMP3LAME=1
9254 fi
9255
9256
9257 for ac_header in lame.h
9258 do
9259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9261   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9264   echo $ECHO_N "(cached) $ECHO_C" >&6
9265 fi
9266 ac_res=`eval echo '${'$as_ac_Header'}'`
9267                { echo "$as_me:$LINENO: result: $ac_res" >&5
9268 echo "${ECHO_T}$ac_res" >&6; }
9269 else
9270   # Is the header compilable?
9271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9273 cat >conftest.$ac_ext <<_ACEOF
9274 /* confdefs.h.  */
9275 _ACEOF
9276 cat confdefs.h >>conftest.$ac_ext
9277 cat >>conftest.$ac_ext <<_ACEOF
9278 /* end confdefs.h.  */
9279 $ac_includes_default
9280 #include <$ac_header>
9281 _ACEOF
9282 rm -f conftest.$ac_objext
9283 if { (ac_try="$ac_compile"
9284 case "(($ac_try" in
9285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286   *) ac_try_echo=$ac_try;;
9287 esac
9288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289   (eval "$ac_compile") 2>conftest.er1
9290   ac_status=$?
9291   grep -v '^ *+' conftest.er1 >conftest.err
9292   rm -f conftest.er1
9293   cat conftest.err >&5
9294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295   (exit $ac_status); } && {
9296          test -z "$ac_c_werror_flag" ||
9297          test ! -s conftest.err
9298        } && test -s conftest.$ac_objext; then
9299   ac_header_compiler=yes
9300 else
9301   echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304         ac_header_compiler=no
9305 fi
9306
9307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9309 echo "${ECHO_T}$ac_header_compiler" >&6; }
9310
9311 # Is the header present?
9312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9314 cat >conftest.$ac_ext <<_ACEOF
9315 /* confdefs.h.  */
9316 _ACEOF
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h.  */
9320 #include <$ac_header>
9321 _ACEOF
9322 if { (ac_try="$ac_cpp conftest.$ac_ext"
9323 case "(($ac_try" in
9324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325   *) ac_try_echo=$ac_try;;
9326 esac
9327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9329   ac_status=$?
9330   grep -v '^ *+' conftest.er1 >conftest.err
9331   rm -f conftest.er1
9332   cat conftest.err >&5
9333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334   (exit $ac_status); } >/dev/null && {
9335          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9336          test ! -s conftest.err
9337        }; then
9338   ac_header_preproc=yes
9339 else
9340   echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9342
9343   ac_header_preproc=no
9344 fi
9345
9346 rm -f conftest.err conftest.$ac_ext
9347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9348 echo "${ECHO_T}$ac_header_preproc" >&6; }
9349
9350 # So?  What about this header?
9351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9352   yes:no: )
9353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9357     ac_header_preproc=yes
9358     ;;
9359   no:yes:* )
9360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9372
9373     ;;
9374 esac
9375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9378   echo $ECHO_N "(cached) $ECHO_C" >&6
9379 else
9380   eval "$as_ac_Header=\$ac_header_preproc"
9381 fi
9382 ac_res=`eval echo '${'$as_ac_Header'}'`
9383                { echo "$as_me:$LINENO: result: $ac_res" >&5
9384 echo "${ECHO_T}$ac_res" >&6; }
9385
9386 fi
9387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9388   cat >>confdefs.h <<_ACEOF
9389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9390 _ACEOF
9391
9392 fi
9393
9394 done
9395
9396         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
9397             cat >>confdefs.h <<_ACEOF
9398 #define HAVE_LAME 1
9399 _ACEOF
9400
9401         fi
9402     fi
9403 fi
9404
9405
9406 # ------------------------------------------------------------------
9407
9408
9409
9410 for ac_prog in avifile-config
9411 do
9412   # Extract the first word of "$ac_prog", so it can be a program name with args.
9413 set dummy $ac_prog; ac_word=$2
9414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9416 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9417   echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419   if test -n "$AVIFILE_CONFIG"; then
9420   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9421 else
9422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9423 for as_dir in $PATH
9424 do
9425   IFS=$as_save_IFS
9426   test -z "$as_dir" && as_dir=.
9427   for ac_exec_ext in '' $ac_executable_extensions; do
9428   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9429     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9430     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9431     break 2
9432   fi
9433 done
9434 done
9435 IFS=$as_save_IFS
9436
9437 fi
9438 fi
9439 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9440 if test -n "$AVIFILE_CONFIG"; then
9441   { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9442 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
9443 else
9444   { echo "$as_me:$LINENO: result: no" >&5
9445 echo "${ECHO_T}no" >&6; }
9446 fi
9447
9448
9449   test -n "$AVIFILE_CONFIG" && break
9450 done
9451
9452
9453 if test "x$AVIFILE_CONFIG" '!=' "x";then
9454     OLDCPPFLAGS="$CPPFLAGS"
9455     # temporarily add avifile paths to CPPFLAGS...
9456     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9457
9458
9459 for ac_header in avifile/version.h version.h
9460 do
9461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9463   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9464 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9466   echo $ECHO_N "(cached) $ECHO_C" >&6
9467 fi
9468 ac_res=`eval echo '${'$as_ac_Header'}'`
9469                { echo "$as_me:$LINENO: result: $ac_res" >&5
9470 echo "${ECHO_T}$ac_res" >&6; }
9471 else
9472   # Is the header compilable?
9473 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9474 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9475 cat >conftest.$ac_ext <<_ACEOF
9476 /* confdefs.h.  */
9477 _ACEOF
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h.  */
9481 $ac_includes_default
9482 #include <$ac_header>
9483 _ACEOF
9484 rm -f conftest.$ac_objext
9485 if { (ac_try="$ac_compile"
9486 case "(($ac_try" in
9487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488   *) ac_try_echo=$ac_try;;
9489 esac
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491   (eval "$ac_compile") 2>conftest.er1
9492   ac_status=$?
9493   grep -v '^ *+' conftest.er1 >conftest.err
9494   rm -f conftest.er1
9495   cat conftest.err >&5
9496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497   (exit $ac_status); } && {
9498          test -z "$ac_c_werror_flag" ||
9499          test ! -s conftest.err
9500        } && test -s conftest.$ac_objext; then
9501   ac_header_compiler=yes
9502 else
9503   echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9505
9506         ac_header_compiler=no
9507 fi
9508
9509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9510 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9511 echo "${ECHO_T}$ac_header_compiler" >&6; }
9512
9513 # Is the header present?
9514 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9515 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9516 cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h.  */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h.  */
9522 #include <$ac_header>
9523 _ACEOF
9524 if { (ac_try="$ac_cpp conftest.$ac_ext"
9525 case "(($ac_try" in
9526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527   *) ac_try_echo=$ac_try;;
9528 esac
9529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9530   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9531   ac_status=$?
9532   grep -v '^ *+' conftest.er1 >conftest.err
9533   rm -f conftest.er1
9534   cat conftest.err >&5
9535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9536   (exit $ac_status); } >/dev/null && {
9537          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9538          test ! -s conftest.err
9539        }; then
9540   ac_header_preproc=yes
9541 else
9542   echo "$as_me: failed program was:" >&5
9543 sed 's/^/| /' conftest.$ac_ext >&5
9544
9545   ac_header_preproc=no
9546 fi
9547
9548 rm -f conftest.err conftest.$ac_ext
9549 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9550 echo "${ECHO_T}$ac_header_preproc" >&6; }
9551
9552 # So?  What about this header?
9553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9554   yes:no: )
9555     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9556 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9557     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9558 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9559     ac_header_preproc=yes
9560     ;;
9561   no:yes:* )
9562     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9563 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9564     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9565 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9566     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9567 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9568     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9569 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9570     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9571 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9572     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9573 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9574
9575     ;;
9576 esac
9577 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9578 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9580   echo $ECHO_N "(cached) $ECHO_C" >&6
9581 else
9582   eval "$as_ac_Header=\$ac_header_preproc"
9583 fi
9584 ac_res=`eval echo '${'$as_ac_Header'}'`
9585                { echo "$as_me:$LINENO: result: $ac_res" >&5
9586 echo "${ECHO_T}$ac_res" >&6; }
9587
9588 fi
9589 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9590   cat >>confdefs.h <<_ACEOF
9591 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9592 _ACEOF
9593
9594 fi
9595
9596 done
9597
9598     # ... and reset
9599     CPPFLAGS="$OLDCPPFLAGS"
9600 fi
9601
9602 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9603 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
9604
9605 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9606     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9607 fi
9608 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9609     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9610 fi
9611
9612 cat > conftest.cpp << EOF
9613
9614 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9615 // so we have to introduce them this way
9616 $HAVE_VERSION_H_DEFINE
9617 $HAVE_AVIFILE_VERSION_H_DEFINE
9618
9619 #ifdef HAVE_VERSION_H
9620   #include <version.h>
9621 #endif
9622 #ifdef HAVE_AVIFILE_VERSION_H
9623   #include <avifile/version.h>
9624 #endif
9625
9626 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9627    #include <avifile.h>
9628    #include <aviplay.h>
9629    #include <avm_fourcc.h>
9630    #include <avm_creators.h>
9631    #include <StreamInfo.h>
9632    #define VERSION6
9633 #else
9634    #include <avifile.h>
9635    #include <aviplay.h>
9636    #include <aviutil.h>
9637    #define Width width
9638    #define Height height
9639    #define Data data
9640    #define Bpp bpp
9641 #endif
9642
9643 void test()
9644 {
9645   IAviReadFile* player;
9646   IAviReadStream* astream;
9647   IAviReadStream* vstream;
9648   player = CreateIAviReadFile(0);
9649   astream = player->GetStream(0, AviStream::Audio);
9650   vstream = player->GetStream(0, AviStream::Video);
9651   vstream -> StartStreaming();
9652   astream -> StartStreaming();
9653 #ifndef VERSION6
9654   MainAVIHeader head;
9655   player->GetFileHeader(&head);
9656   head.dwMicroSecPerFrame;
9657   head.dwTotalFrames;
9658   head.dwStreams;
9659   head.dwWidth;
9660   head.dwHeight;
9661   head.dwMicroSecPerFrame;
9662   astream->GetEndPos(),
9663   astream->GetEndTime());
9664   player->StreamCount();
9665 #else
9666   StreamInfo*audioinfo;
9667   StreamInfo*videoinfo;
9668   audioinfo = astream->GetStreamInfo();
9669   videoinfo = vstream->GetStreamInfo();
9670   videoinfo->GetVideoWidth();
9671   videoinfo->GetVideoHeight();
9672   audioinfo->GetAudioSamplesPerSec();
9673   videoinfo->GetFps();
9674 #endif
9675   CImage*img = vstream->GetFrame();
9676   img->ToRGB();
9677   img->Data();
9678   img->Bpp();
9679   img->Width();
9680   img->Height();
9681   WAVEFORMATEX wave;
9682   astream->GetAudioFormatInfo(&wave,0);
9683   uint_t a,b;
9684   astream->ReadFrames(0,0,0,a,b);
9685 }
9686 int main (int argc, char*argv)
9687 {
9688     return 0;
9689 }
9690 EOF
9691
9692 if test "x$AVIFILE_CONFIG" '!=' "x";then
9693     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9694     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9695     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9696     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9697       { echo "$as_me:$LINENO: result: yes" >&5
9698 echo "${ECHO_T}yes" >&6; }
9699       AVIFILE=true
9700       export AVIFILE
9701       cat >>confdefs.h <<_ACEOF
9702 #define AVIFILE true
9703 _ACEOF
9704
9705     else
9706       echo "configure: failed program was:" >&5
9707       cat conftest.cpp >&5
9708       { echo "$as_me:$LINENO: result: no" >&5
9709 echo "${ECHO_T}no" >&6; }
9710     fi
9711 else
9712     { echo "$as_me:$LINENO: result: no" >&5
9713 echo "${ECHO_T}no" >&6; }
9714 fi
9715 rm -f conftest*
9716
9717 if test "x${AVIFILE}" = "xtrue"; then
9718     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9719     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9720     cat >>confdefs.h <<_ACEOF
9721 #define HAVE_AVIFILE 1
9722 _ACEOF
9723
9724 fi
9725
9726 if test "x${WIN32}" != "x"; then
9727     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9728     #if test "x${AVIFIL32}" != "x"; then
9729     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9730     #fi
9731     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9732     AVIFIL32=true
9733 fi
9734
9735
9736
9737 # ------------------------------------------------------------------
9738
9739 if test "x${UNCOMPRESS}" = "xgzip"; then
9740     cat >>confdefs.h <<_ACEOF
9741 #define USE_GZIP 1
9742 _ACEOF
9743
9744 fi
9745
9746
9747 # ------------------------------------------------------------------
9748
9749
9750 { echo "$as_me:$LINENO: checking for Python.h" >&5
9751 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
9752
9753 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9754     PY_VERSION=unknown
9755 else
9756     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9757         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9758     fi
9759     # iterate through version 2.2 to 2.5
9760     for v in 2 3 4 5; do
9761         # Linux
9762         if test -f "/usr/include/python2.$v/Python.h";then
9763             PY_VERSION=2.$v
9764             PYTHON_LIB="-lpython$PY_VERSION"
9765             if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9766                 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9767                 HAVE_PYTHON_IMAGING_LIB=1
9768             else
9769                 PYTHON_LIB2="$PYTHON_LIB"
9770             fi
9771             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9772         # Mac OS X
9773         elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9774             #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
9775             PY_VERSION=2.$v
9776             PYTHON_LIB="-framework Python"
9777             if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
9778                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9779                 HAVE_PYTHON_IMAGING_LIB=1
9780             else
9781                 PYTHON_LIB2="$PYTHON_LIB"
9782             fi
9783             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9784         # Mac OS X [Fink]:
9785         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9786                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9787                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9788                   ")" \
9789                -a -f "/sw/include/python2.$v/Python.h"; then
9790             PY_VERSION=2.$v
9791             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9792             if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9793                 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9794                 HAVE_PYTHON_IMAGING_LIB=1
9795             else
9796                 PYTHON_LIB2="$PYTHON_LIB"
9797             fi
9798             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9799         fi
9800     done
9801 fi
9802
9803 if test "x$PY_VERSION" "!=" "x"; then
9804     { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9805 echo "${ECHO_T}$PY_VERSION" >&6; }
9806     export PYTHON_INCLUDES PYTHON_LIB
9807
9808
9809     { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9810 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
9811
9812     cat > conftest.c << EOF
9813 #include <Python.h>
9814
9815 int main()
9816 {
9817     int ret;
9818     ret = Py_Main(0, 0);
9819     int x; // check also for gcc 2.95.x incompatibilities
9820     return ret;
9821 }
9822 EOF
9823
9824     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9825     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9826         { echo "$as_me:$LINENO: result: yes" >&5
9827 echo "${ECHO_T}yes" >&6; }
9828         PYTHON_OK=yes
9829     else
9830         echo "configure: failed program was:" >&5
9831         cat conftest.c >&5
9832         { echo "$as_me:$LINENO: result: no" >&5
9833 echo "${ECHO_T}no" >&6; }
9834     fi
9835     rm -f conftest*
9836     if test "x$PYTHON_OK" = "xyes";then
9837         { echo "$as_me:$LINENO: checking for Python-Imaging" >&5
9838 echo $ECHO_N "checking for Python-Imaging... $ECHO_C" >&6; }
9839     cat > conftest.c << EOF
9840 #include <Python.h>
9841 #include <Imaging.h>
9842
9843 int main()
9844 {
9845     Py_Main(0, 0);
9846     return 0;
9847 }
9848 EOF
9849         if test "$HAVE_PYTHON_IMAGING_LIB"; then
9850             ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9851             if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9852                 PYTHON_LIB="${PYTHON_LIB2}"
9853                 cat >>confdefs.h <<_ACEOF
9854 #define HAVE_PYTHON_IMAGING 1
9855 _ACEOF
9856
9857                 HAVE_PYTHON_IMAGING=yes
9858                 export HAVE_PYTHON_IMAGING
9859
9860                 { echo "$as_me:$LINENO: result: yes" >&5
9861 echo "${ECHO_T}yes" >&6; }
9862             else
9863                 echo "configure: failed program was:" >&5
9864                 cat conftest.c >&5
9865                 { echo "$as_me:$LINENO: result: no" >&5
9866 echo "${ECHO_T}no" >&6; }
9867             fi
9868         else
9869             echo "(didn't find the Python-Imaging libraries)" >&5
9870             { echo "$as_me:$LINENO: result: no" >&5
9871 echo "${ECHO_T}no" >&6; }
9872         fi
9873     fi
9874     rm -f conftest*
9875 else
9876     { echo "$as_me:$LINENO: result: nope" >&5
9877 echo "${ECHO_T}nope" >&6; }
9878 fi
9879
9880
9881 if test "x$PYTHON_OK" '!=' "xyes";then
9882     echo all install uninstall clean: > lib/python/Makefile
9883     # fail silently- the most users won't have any need for the
9884     # python interface anyway
9885 else
9886     pythonrfxswf="lib/python/Makefile"
9887 fi
9888
9889 # ------------------------------------------------------------------
9890
9891 { echo "$as_me:$LINENO: checking for missing libraries" >&5
9892 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
9893
9894 if test "x$ZLIBMISSING" = "xtrue";then
9895     MISSINGLIBS="${MISSINGLIBS} zlib"
9896     DISABLEPNG2SWF=true
9897     PARTIAL=true
9898 fi
9899 if test "x$JPEGLIBMISSING" = "xtrue";then
9900     MISSINGLIBS="${MISSINGLIBS} jpeglib"
9901     DISABLEPDF2SWF=true
9902     DISABLEJPEG2SWF=true
9903     PARTIAL=true
9904 fi
9905 #if test "x$T1LIBMISSING" = "xtrue";then
9906 #    MISSINGLIBS="${MISSINGLIBS} t1lib"
9907 #fi
9908 if test "x$UNGIFMISSING" = "xtrue";then
9909     DISABLEGIF2SWF=true
9910     MISSINGLIBS="${MISSINGLIBS} ungif"
9911     PARTIAL=true
9912 fi
9913
9914 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
9915     DISABLEPDF2SWF=true;
9916     DISABLEJPEG2SWF=true;
9917     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9918     PARTIAL=true
9919 fi
9920 if test "x$HAVE_FREETYPE" '!=' "x1"; then
9921     DISABLEPDF2SWF=true;
9922     MISSINGLIBS="${MISSINGLIBS} freetype"
9923     PARTIAL=true
9924 fi
9925 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
9926 #    MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9927 #fi
9928 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
9929     DISABLEGIF2SWF=true
9930     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
9931     PARTIAL=true
9932 fi
9933 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
9934     DISABLEPNG2SWF=true;
9935     MISSINGLIBS="${MISSINGLIBS} zlib.h"
9936     PARTIAL=true
9937 fi
9938 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9939 #    MISSINGLIBS="${MISSINGLIBS} avifile"
9940 #fi
9941
9942 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
9943 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
9944
9945 # ------------------------------------------------------------------
9946
9947 if test "x${MISSINGLIBS}" '!=' "x"; then
9948   echo "***************************************************"
9949   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
9950 fi
9951
9952 avi2swf="avi2swf/Makefile"
9953 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9954  #don't whine, avi2swf is outdated anyway
9955  #echo "* Disabling avi2swf tool..."
9956  echo all install uninstall clean: > avi2swf/Makefile
9957  avi2swf=
9958 fi
9959
9960 pdf2swf_makefile="lib/pdf/Makefile"
9961 PDF2SWF='pdf2swf$(E)'
9962 LIBPDF='libpdf$(A)'
9963
9964 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
9965   echo "* Disabling pdf2swf tool..."
9966   rm -f lib/pdf/Makefile
9967   echo all install uninstall clean: > lib/pdf/Makefile
9968   pdf2swf_makefile=""
9969   PDF2SWF=
9970   LIBPDF=
9971 fi
9972
9973
9974
9975 if test "x${ZLIBMISSING}" = "xtrue"; then
9976   echo
9977   echo "* Warning! Without zlib, you will not be able to read"
9978   echo "* or write compressed Flash MX files!"
9979 fi
9980
9981 JPEG2SWF='jpeg2swf$(E)'
9982 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
9983   echo "* Disabling jpeg2swf tool..."
9984   JPEG2SWF=
9985 fi
9986 export JPEG2SWF
9987
9988
9989 GIF2SWF='gif2swf$(E)'
9990 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
9991   echo "* Disabling gif2swf tool..."
9992   GIF2SWF=
9993 fi
9994 export GIF2SWF
9995
9996
9997 PNG2SWF='png2swf$(E)'
9998 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
9999   echo "* Disabling png2swf tool..."
10000   PNG2SWF=
10001 fi
10002 export PNG2SWF
10003
10004
10005 if test "x${MISSINGLIBS}" '!=' "x"; then
10006   if test "x${PARTIAL}" '=' "x"; then
10007     echo "* (never mind)"
10008   fi
10009   echo "***************************************************"
10010 fi
10011
10012 # ------------------------------------------------------------------
10013
10014 if test -f "release.in"; then release_in="./release"; fi
10015 if test -f "wx/Makefile.in"; then wx_in="wx/Makefile"; fi
10016 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/readers/Makefile"
10017 ac_config_files="$ac_config_files ${FILES}"
10018
10019 cat >confcache <<\_ACEOF
10020 # This file is a shell script that caches the results of configure
10021 # tests run on this system so they can be shared between configure
10022 # scripts and configure runs, see configure's option --config-cache.
10023 # It is not useful on other systems.  If it contains results you don't
10024 # want to keep, you may remove or edit it.
10025 #
10026 # config.status only pays attention to the cache file if you give it
10027 # the --recheck option to rerun configure.
10028 #
10029 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10030 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10031 # following values.
10032
10033 _ACEOF
10034
10035 # The following way of writing the cache mishandles newlines in values,
10036 # but we know of no workaround that is simple, portable, and efficient.
10037 # So, we kill variables containing newlines.
10038 # Ultrix sh set writes to stderr and can't be redirected directly,
10039 # and sets the high bit in the cache file unless we assign to the vars.
10040 (
10041   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10042     eval ac_val=\$$ac_var
10043     case $ac_val in #(
10044     *${as_nl}*)
10045       case $ac_var in #(
10046       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10047 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10048       esac
10049       case $ac_var in #(
10050       _ | IFS | as_nl) ;; #(
10051       *) $as_unset $ac_var ;;
10052       esac ;;
10053     esac
10054   done
10055
10056   (set) 2>&1 |
10057     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10058     *${as_nl}ac_space=\ *)
10059       # `set' does not quote correctly, so add quotes (double-quote
10060       # substitution turns \\\\ into \\, and sed turns \\ into \).
10061       sed -n \
10062         "s/'/'\\\\''/g;
10063           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10064       ;; #(
10065     *)
10066       # `set' quotes correctly as required by POSIX, so do not add quotes.
10067       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10068       ;;
10069     esac |
10070     sort
10071 ) |
10072   sed '
10073      /^ac_cv_env_/b end
10074      t clear
10075      :clear
10076      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10077      t end
10078      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10079      :end' >>confcache
10080 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10081   if test -w "$cache_file"; then
10082     test "x$cache_file" != "x/dev/null" &&
10083       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10084 echo "$as_me: updating cache $cache_file" >&6;}
10085     cat confcache >$cache_file
10086   else
10087     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10088 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10089   fi
10090 fi
10091 rm -f confcache
10092
10093 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10094 # Let make expand exec_prefix.
10095 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10096
10097 DEFS=-DHAVE_CONFIG_H
10098
10099 ac_libobjs=
10100 ac_ltlibobjs=
10101 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10102   # 1. Remove the extension, and $U if already installed.
10103   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10104   ac_i=`echo "$ac_i" | sed "$ac_script"`
10105   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10106   #    will be set to the directory where LIBOBJS objects are built.
10107   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10108   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10109 done
10110 LIBOBJS=$ac_libobjs
10111
10112 LTLIBOBJS=$ac_ltlibobjs
10113
10114
10115
10116 : ${CONFIG_STATUS=./config.status}
10117 ac_clean_files_save=$ac_clean_files
10118 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10119 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10120 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10121 cat >$CONFIG_STATUS <<_ACEOF
10122 #! $SHELL
10123 # Generated by $as_me.
10124 # Run this file to recreate the current configuration.
10125 # Compiler output produced by configure, useful for debugging
10126 # configure, is in config.log if it exists.
10127
10128 debug=false
10129 ac_cs_recheck=false
10130 ac_cs_silent=false
10131 SHELL=\${CONFIG_SHELL-$SHELL}
10132 _ACEOF
10133
10134 cat >>$CONFIG_STATUS <<\_ACEOF
10135 ## --------------------- ##
10136 ## M4sh Initialization.  ##
10137 ## --------------------- ##
10138
10139 # Be more Bourne compatible
10140 DUALCASE=1; export DUALCASE # for MKS sh
10141 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10142   emulate sh
10143   NULLCMD=:
10144   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10145   # is contrary to our usage.  Disable this feature.
10146   alias -g '${1+"$@"}'='"$@"'
10147   setopt NO_GLOB_SUBST
10148 else
10149   case `(set -o) 2>/dev/null` in
10150   *posix*) set -o posix ;;
10151 esac
10152
10153 fi
10154
10155
10156
10157
10158 # PATH needs CR
10159 # Avoid depending upon Character Ranges.
10160 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10161 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10162 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10163 as_cr_digits='0123456789'
10164 as_cr_alnum=$as_cr_Letters$as_cr_digits
10165
10166 # The user is always right.
10167 if test "${PATH_SEPARATOR+set}" != set; then
10168   echo "#! /bin/sh" >conf$$.sh
10169   echo  "exit 0"   >>conf$$.sh
10170   chmod +x conf$$.sh
10171   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10172     PATH_SEPARATOR=';'
10173   else
10174     PATH_SEPARATOR=:
10175   fi
10176   rm -f conf$$.sh
10177 fi
10178
10179 # Support unset when possible.
10180 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10181   as_unset=unset
10182 else
10183   as_unset=false
10184 fi
10185
10186
10187 # IFS
10188 # We need space, tab and new line, in precisely that order.  Quoting is
10189 # there to prevent editors from complaining about space-tab.
10190 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10191 # splitting by setting IFS to empty value.)
10192 as_nl='
10193 '
10194 IFS=" ""        $as_nl"
10195
10196 # Find who we are.  Look in the path if we contain no directory separator.
10197 case $0 in
10198   *[\\/]* ) as_myself=$0 ;;
10199   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10200 for as_dir in $PATH
10201 do
10202   IFS=$as_save_IFS
10203   test -z "$as_dir" && as_dir=.
10204   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10205 done
10206 IFS=$as_save_IFS
10207
10208      ;;
10209 esac
10210 # We did not find ourselves, most probably we were run as `sh COMMAND'
10211 # in which case we are not to be found in the path.
10212 if test "x$as_myself" = x; then
10213   as_myself=$0
10214 fi
10215 if test ! -f "$as_myself"; then
10216   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10217   { (exit 1); exit 1; }
10218 fi
10219
10220 # Work around bugs in pre-3.0 UWIN ksh.
10221 for as_var in ENV MAIL MAILPATH
10222 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10223 done
10224 PS1='$ '
10225 PS2='> '
10226 PS4='+ '
10227
10228 # NLS nuisances.
10229 for as_var in \
10230   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10231   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10232   LC_TELEPHONE LC_TIME
10233 do
10234   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10235     eval $as_var=C; export $as_var
10236   else
10237     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10238   fi
10239 done
10240
10241 # Required to use basename.
10242 if expr a : '\(a\)' >/dev/null 2>&1 &&
10243    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10244   as_expr=expr
10245 else
10246   as_expr=false
10247 fi
10248
10249 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10250   as_basename=basename
10251 else
10252   as_basename=false
10253 fi
10254
10255
10256 # Name of the executable.
10257 as_me=`$as_basename -- "$0" ||
10258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10259          X"$0" : 'X\(//\)$' \| \
10260          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10261 echo X/"$0" |
10262     sed '/^.*\/\([^/][^/]*\)\/*$/{
10263             s//\1/
10264             q
10265           }
10266           /^X\/\(\/\/\)$/{
10267             s//\1/
10268             q
10269           }
10270           /^X\/\(\/\).*/{
10271             s//\1/
10272             q
10273           }
10274           s/.*/./; q'`
10275
10276 # CDPATH.
10277 $as_unset CDPATH
10278
10279
10280
10281   as_lineno_1=$LINENO
10282   as_lineno_2=$LINENO
10283   test "x$as_lineno_1" != "x$as_lineno_2" &&
10284   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10285
10286   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10287   # uniformly replaced by the line number.  The first 'sed' inserts a
10288   # line-number line after each line using $LINENO; the second 'sed'
10289   # does the real work.  The second script uses 'N' to pair each
10290   # line-number line with the line containing $LINENO, and appends
10291   # trailing '-' during substitution so that $LINENO is not a special
10292   # case at line end.
10293   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10294   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10295   # E. McMahon (1931-1989) for sed's syntax.  :-)
10296   sed -n '
10297     p
10298     /[$]LINENO/=
10299   ' <$as_myself |
10300     sed '
10301       s/[$]LINENO.*/&-/
10302       t lineno
10303       b
10304       :lineno
10305       N
10306       :loop
10307       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10308       t loop
10309       s/-\n.*//
10310     ' >$as_me.lineno &&
10311   chmod +x "$as_me.lineno" ||
10312     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10313    { (exit 1); exit 1; }; }
10314
10315   # Don't try to exec as it changes $[0], causing all sort of problems
10316   # (the dirname of $[0] is not the place where we might find the
10317   # original and so on.  Autoconf is especially sensitive to this).
10318   . "./$as_me.lineno"
10319   # Exit status is that of the last command.
10320   exit
10321 }
10322
10323
10324 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10325   as_dirname=dirname
10326 else
10327   as_dirname=false
10328 fi
10329
10330 ECHO_C= ECHO_N= ECHO_T=
10331 case `echo -n x` in
10332 -n*)
10333   case `echo 'x\c'` in
10334   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10335   *)   ECHO_C='\c';;
10336   esac;;
10337 *)
10338   ECHO_N='-n';;
10339 esac
10340
10341 if expr a : '\(a\)' >/dev/null 2>&1 &&
10342    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10343   as_expr=expr
10344 else
10345   as_expr=false
10346 fi
10347
10348 rm -f conf$$ conf$$.exe conf$$.file
10349 if test -d conf$$.dir; then
10350   rm -f conf$$.dir/conf$$.file
10351 else
10352   rm -f conf$$.dir
10353   mkdir conf$$.dir
10354 fi
10355 echo >conf$$.file
10356 if ln -s conf$$.file conf$$ 2>/dev/null; then
10357   as_ln_s='ln -s'
10358   # ... but there are two gotchas:
10359   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10360   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10361   # In both cases, we have to default to `cp -p'.
10362   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10363     as_ln_s='cp -p'
10364 elif ln conf$$.file conf$$ 2>/dev/null; then
10365   as_ln_s=ln
10366 else
10367   as_ln_s='cp -p'
10368 fi
10369 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10370 rmdir conf$$.dir 2>/dev/null
10371
10372 if mkdir -p . 2>/dev/null; then
10373   as_mkdir_p=:
10374 else
10375   test -d ./-p && rmdir ./-p
10376   as_mkdir_p=false
10377 fi
10378
10379 if test -x / >/dev/null 2>&1; then
10380   as_test_x='test -x'
10381 else
10382   if ls -dL / >/dev/null 2>&1; then
10383     as_ls_L_option=L
10384   else
10385     as_ls_L_option=
10386   fi
10387   as_test_x='
10388     eval sh -c '\''
10389       if test -d "$1"; then
10390         test -d "$1/.";
10391       else
10392         case $1 in
10393         -*)set "./$1";;
10394         esac;
10395         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10396         ???[sx]*):;;*)false;;esac;fi
10397     '\'' sh
10398   '
10399 fi
10400 as_executable_p=$as_test_x
10401
10402 # Sed expression to map a string onto a valid CPP name.
10403 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10404
10405 # Sed expression to map a string onto a valid variable name.
10406 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10407
10408
10409 exec 6>&1
10410
10411 # Save the log message, to keep $[0] and so on meaningful, and to
10412 # report actual input values of CONFIG_FILES etc. instead of their
10413 # values after options handling.
10414 ac_log="
10415 This file was extended by $as_me, which was
10416 generated by GNU Autoconf 2.61.  Invocation command line was
10417
10418   CONFIG_FILES    = $CONFIG_FILES
10419   CONFIG_HEADERS  = $CONFIG_HEADERS
10420   CONFIG_LINKS    = $CONFIG_LINKS
10421   CONFIG_COMMANDS = $CONFIG_COMMANDS
10422   $ $0 $@
10423
10424 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10425 "
10426
10427 _ACEOF
10428
10429 cat >>$CONFIG_STATUS <<_ACEOF
10430 # Files that config.status was made for.
10431 config_files="$ac_config_files"
10432 config_headers="$ac_config_headers"
10433
10434 _ACEOF
10435
10436 cat >>$CONFIG_STATUS <<\_ACEOF
10437 ac_cs_usage="\
10438 \`$as_me' instantiates files from templates according to the
10439 current configuration.
10440
10441 Usage: $0 [OPTIONS] [FILE]...
10442
10443   -h, --help       print this help, then exit
10444   -V, --version    print version number and configuration settings, then exit
10445   -q, --quiet      do not print progress messages
10446   -d, --debug      don't remove temporary files
10447       --recheck    update $as_me by reconfiguring in the same conditions
10448   --file=FILE[:TEMPLATE]
10449                    instantiate the configuration file FILE
10450   --header=FILE[:TEMPLATE]
10451                    instantiate the configuration header FILE
10452
10453 Configuration files:
10454 $config_files
10455
10456 Configuration headers:
10457 $config_headers
10458
10459 Report bugs to <bug-autoconf@gnu.org>."
10460
10461 _ACEOF
10462 cat >>$CONFIG_STATUS <<_ACEOF
10463 ac_cs_version="\\
10464 config.status
10465 configured by $0, generated by GNU Autoconf 2.61,
10466   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10467
10468 Copyright (C) 2006 Free Software Foundation, Inc.
10469 This config.status script is free software; the Free Software Foundation
10470 gives unlimited permission to copy, distribute and modify it."
10471
10472 ac_pwd='$ac_pwd'
10473 srcdir='$srcdir'
10474 INSTALL='$INSTALL'
10475 _ACEOF
10476
10477 cat >>$CONFIG_STATUS <<\_ACEOF
10478 # If no file are specified by the user, then we need to provide default
10479 # value.  By we need to know if files were specified by the user.
10480 ac_need_defaults=:
10481 while test $# != 0
10482 do
10483   case $1 in
10484   --*=*)
10485     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10486     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10487     ac_shift=:
10488     ;;
10489   *)
10490     ac_option=$1
10491     ac_optarg=$2
10492     ac_shift=shift
10493     ;;
10494   esac
10495
10496   case $ac_option in
10497   # Handling of the options.
10498   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10499     ac_cs_recheck=: ;;
10500   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10501     echo "$ac_cs_version"; exit ;;
10502   --debug | --debu | --deb | --de | --d | -d )
10503     debug=: ;;
10504   --file | --fil | --fi | --f )
10505     $ac_shift
10506     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10507     ac_need_defaults=false;;
10508   --header | --heade | --head | --hea )
10509     $ac_shift
10510     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10511     ac_need_defaults=false;;
10512   --he | --h)
10513     # Conflict between --help and --header
10514     { echo "$as_me: error: ambiguous option: $1
10515 Try \`$0 --help' for more information." >&2
10516    { (exit 1); exit 1; }; };;
10517   --help | --hel | -h )
10518     echo "$ac_cs_usage"; exit ;;
10519   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10520   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10521     ac_cs_silent=: ;;
10522
10523   # This is an error.
10524   -*) { echo "$as_me: error: unrecognized option: $1
10525 Try \`$0 --help' for more information." >&2
10526    { (exit 1); exit 1; }; } ;;
10527
10528   *) ac_config_targets="$ac_config_targets $1"
10529      ac_need_defaults=false ;;
10530
10531   esac
10532   shift
10533 done
10534
10535 ac_configure_extra_args=
10536
10537 if $ac_cs_silent; then
10538   exec 6>/dev/null
10539   ac_configure_extra_args="$ac_configure_extra_args --silent"
10540 fi
10541
10542 _ACEOF
10543 cat >>$CONFIG_STATUS <<_ACEOF
10544 if \$ac_cs_recheck; then
10545   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10546   CONFIG_SHELL=$SHELL
10547   export CONFIG_SHELL
10548   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10549 fi
10550
10551 _ACEOF
10552 cat >>$CONFIG_STATUS <<\_ACEOF
10553 exec 5>>config.log
10554 {
10555   echo
10556   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10557 ## Running $as_me. ##
10558 _ASBOX
10559   echo "$ac_log"
10560 } >&5
10561
10562 _ACEOF
10563 cat >>$CONFIG_STATUS <<_ACEOF
10564 _ACEOF
10565
10566 cat >>$CONFIG_STATUS <<\_ACEOF
10567
10568 # Handling of arguments.
10569 for ac_config_target in $ac_config_targets
10570 do
10571   case $ac_config_target in
10572     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10573     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10574
10575   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10576 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10577    { (exit 1); exit 1; }; };;
10578   esac
10579 done
10580
10581
10582 # If the user did not use the arguments to specify the items to instantiate,
10583 # then the envvar interface is used.  Set only those that are not.
10584 # We use the long form for the default assignment because of an extremely
10585 # bizarre bug on SunOS 4.1.3.
10586 if $ac_need_defaults; then
10587   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10588   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10589 fi
10590
10591 # Have a temporary directory for convenience.  Make it in the build tree
10592 # simply because there is no reason against having it here, and in addition,
10593 # creating and moving files from /tmp can sometimes cause problems.
10594 # Hook for its removal unless debugging.
10595 # Note that there is a small window in which the directory will not be cleaned:
10596 # after its creation but before its name has been assigned to `$tmp'.
10597 $debug ||
10598 {
10599   tmp=
10600   trap 'exit_status=$?
10601   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10602 ' 0
10603   trap '{ (exit 1); exit 1; }' 1 2 13 15
10604 }
10605 # Create a (secure) tmp directory for tmp files.
10606
10607 {
10608   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10609   test -n "$tmp" && test -d "$tmp"
10610 }  ||
10611 {
10612   tmp=./conf$$-$RANDOM
10613   (umask 077 && mkdir "$tmp")
10614 } ||
10615 {
10616    echo "$me: cannot create a temporary directory in ." >&2
10617    { (exit 1); exit 1; }
10618 }
10619
10620 #
10621 # Set up the sed scripts for CONFIG_FILES section.
10622 #
10623
10624 # No need to generate the scripts if there are no CONFIG_FILES.
10625 # This happens for instance when ./config.status config.h
10626 if test -n "$CONFIG_FILES"; then
10627
10628 _ACEOF
10629
10630
10631
10632 ac_delim='%!_!# '
10633 for ac_last_try in false false false false false :; do
10634   cat >conf$$subs.sed <<_ACEOF
10635 SHELL!$SHELL$ac_delim
10636 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10637 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10638 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10639 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10640 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10641 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10642 exec_prefix!$exec_prefix$ac_delim
10643 prefix!$prefix$ac_delim
10644 program_transform_name!$program_transform_name$ac_delim
10645 bindir!$bindir$ac_delim
10646 sbindir!$sbindir$ac_delim
10647 libexecdir!$libexecdir$ac_delim
10648 datarootdir!$datarootdir$ac_delim
10649 datadir!$datadir$ac_delim
10650 sysconfdir!$sysconfdir$ac_delim
10651 sharedstatedir!$sharedstatedir$ac_delim
10652 localstatedir!$localstatedir$ac_delim
10653 includedir!$includedir$ac_delim
10654 oldincludedir!$oldincludedir$ac_delim
10655 docdir!$docdir$ac_delim
10656 infodir!$infodir$ac_delim
10657 htmldir!$htmldir$ac_delim
10658 dvidir!$dvidir$ac_delim
10659 pdfdir!$pdfdir$ac_delim
10660 psdir!$psdir$ac_delim
10661 libdir!$libdir$ac_delim
10662 localedir!$localedir$ac_delim
10663 mandir!$mandir$ac_delim
10664 DEFS!$DEFS$ac_delim
10665 ECHO_C!$ECHO_C$ac_delim
10666 ECHO_N!$ECHO_N$ac_delim
10667 ECHO_T!$ECHO_T$ac_delim
10668 LIBS!$LIBS$ac_delim
10669 build_alias!$build_alias$ac_delim
10670 host_alias!$host_alias$ac_delim
10671 target_alias!$target_alias$ac_delim
10672 build!$build$ac_delim
10673 build_cpu!$build_cpu$ac_delim
10674 build_vendor!$build_vendor$ac_delim
10675 build_os!$build_os$ac_delim
10676 host!$host$ac_delim
10677 host_cpu!$host_cpu$ac_delim
10678 host_vendor!$host_vendor$ac_delim
10679 host_os!$host_os$ac_delim
10680 SHARED!$SHARED$ac_delim
10681 CC!$CC$ac_delim
10682 CFLAGS!$CFLAGS$ac_delim
10683 LDFLAGS!$LDFLAGS$ac_delim
10684 CPPFLAGS!$CPPFLAGS$ac_delim
10685 ac_ct_CC!$ac_ct_CC$ac_delim
10686 EXEEXT!$EXEEXT$ac_delim
10687 OBJEXT!$OBJEXT$ac_delim
10688 CXX!$CXX$ac_delim
10689 CXXFLAGS!$CXXFLAGS$ac_delim
10690 ac_ct_CXX!$ac_ct_CXX$ac_delim
10691 CPP!$CPP$ac_delim
10692 RANLIB!$RANLIB$ac_delim
10693 SET_MAKE!$SET_MAKE$ac_delim
10694 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10695 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10696 INSTALL_DATA!$INSTALL_DATA$ac_delim
10697 LN_S!$LN_S$ac_delim
10698 UNCOMPRESS!$UNCOMPRESS$ac_delim
10699 AREXT!$AREXT$ac_delim
10700 AR!$AR$ac_delim
10701 SLEXT!$SLEXT$ac_delim
10702 CXXLIBS!$CXXLIBS$ac_delim
10703 STRIP!$STRIP$ac_delim
10704 target!$target$ac_delim
10705 target_cpu!$target_cpu$ac_delim
10706 target_vendor!$target_vendor$ac_delim
10707 target_os!$target_os$ac_delim
10708 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
10709 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
10710 GREP!$GREP$ac_delim
10711 EGREP!$EGREP$ac_delim
10712 PACKAGE!$PACKAGE$ac_delim
10713 VERSION!$VERSION$ac_delim
10714 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10715 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
10716 lame_objects!$lame_objects$ac_delim
10717 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
10718 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
10719 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
10720 USE_GZIP!$USE_GZIP$ac_delim
10721 PYTHON_LIB!$PYTHON_LIB$ac_delim
10722 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
10723 HAVE_PYTHON_IMAGING!$HAVE_PYTHON_IMAGING$ac_delim
10724 PDF2SWF!$PDF2SWF$ac_delim
10725 LIBPDF!$LIBPDF$ac_delim
10726 JPEG2SWF!$JPEG2SWF$ac_delim
10727 GIF2SWF!$GIF2SWF$ac_delim
10728 PNG2SWF!$PNG2SWF$ac_delim
10729 LIBOBJS!$LIBOBJS$ac_delim
10730 LTLIBOBJS!$LTLIBOBJS$ac_delim
10731 _ACEOF
10732
10733   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then
10734     break
10735   elif $ac_last_try; then
10736     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10737 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10738    { (exit 1); exit 1; }; }
10739   else
10740     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10741   fi
10742 done
10743
10744 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10745 if test -n "$ac_eof"; then
10746   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10747   ac_eof=`expr $ac_eof + 1`
10748 fi
10749
10750 cat >>$CONFIG_STATUS <<_ACEOF
10751 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10752 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10753 _ACEOF
10754 sed '
10755 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10756 s/^/s,@/; s/!/@,|#_!!_#|/
10757 :n
10758 t n
10759 s/'"$ac_delim"'$/,g/; t
10760 s/$/\\/; p
10761 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10762 ' >>$CONFIG_STATUS <conf$$subs.sed
10763 rm -f conf$$subs.sed
10764 cat >>$CONFIG_STATUS <<_ACEOF
10765 CEOF$ac_eof
10766 _ACEOF
10767
10768
10769 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10770 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10771 # trailing colons and then remove the whole line if VPATH becomes empty
10772 # (actually we leave an empty line to preserve line numbers).
10773 if test "x$srcdir" = x.; then
10774   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10775 s/:*\$(srcdir):*/:/
10776 s/:*\${srcdir}:*/:/
10777 s/:*@srcdir@:*/:/
10778 s/^\([^=]*=[     ]*\):*/\1/
10779 s/:*$//
10780 s/^[^=]*=[       ]*$//
10781 }'
10782 fi
10783
10784 cat >>$CONFIG_STATUS <<\_ACEOF
10785 fi # test -n "$CONFIG_FILES"
10786
10787
10788 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
10789 do
10790   case $ac_tag in
10791   :[FHLC]) ac_mode=$ac_tag; continue;;
10792   esac
10793   case $ac_mode$ac_tag in
10794   :[FHL]*:*);;
10795   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10796 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10797    { (exit 1); exit 1; }; };;
10798   :[FH]-) ac_tag=-:-;;
10799   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10800   esac
10801   ac_save_IFS=$IFS
10802   IFS=:
10803   set x $ac_tag
10804   IFS=$ac_save_IFS
10805   shift
10806   ac_file=$1
10807   shift
10808
10809   case $ac_mode in
10810   :L) ac_source=$1;;
10811   :[FH])
10812     ac_file_inputs=
10813     for ac_f
10814     do
10815       case $ac_f in
10816       -) ac_f="$tmp/stdin";;
10817       *) # Look for the file first in the build tree, then in the source tree
10818          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10819          # because $ac_f cannot contain `:'.
10820          test -f "$ac_f" ||
10821            case $ac_f in
10822            [\\/$]*) false;;
10823            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10824            esac ||
10825            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10826 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10827    { (exit 1); exit 1; }; };;
10828       esac
10829       ac_file_inputs="$ac_file_inputs $ac_f"
10830     done
10831
10832     # Let's still pretend it is `configure' which instantiates (i.e., don't
10833     # use $as_me), people would be surprised to read:
10834     #    /* config.h.  Generated by config.status.  */
10835     configure_input="Generated from "`IFS=:
10836           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10837     if test x"$ac_file" != x-; then
10838       configure_input="$ac_file.  $configure_input"
10839       { echo "$as_me:$LINENO: creating $ac_file" >&5
10840 echo "$as_me: creating $ac_file" >&6;}
10841     fi
10842
10843     case $ac_tag in
10844     *:-:* | *:-) cat >"$tmp/stdin";;
10845     esac
10846     ;;
10847   esac
10848
10849   ac_dir=`$as_dirname -- "$ac_file" ||
10850 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10851          X"$ac_file" : 'X\(//\)[^/]' \| \
10852          X"$ac_file" : 'X\(//\)$' \| \
10853          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10854 echo X"$ac_file" |
10855     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10856             s//\1/
10857             q
10858           }
10859           /^X\(\/\/\)[^/].*/{
10860             s//\1/
10861             q
10862           }
10863           /^X\(\/\/\)$/{
10864             s//\1/
10865             q
10866           }
10867           /^X\(\/\).*/{
10868             s//\1/
10869             q
10870           }
10871           s/.*/./; q'`
10872   { as_dir="$ac_dir"
10873   case $as_dir in #(
10874   -*) as_dir=./$as_dir;;
10875   esac
10876   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10877     as_dirs=
10878     while :; do
10879       case $as_dir in #(
10880       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10881       *) as_qdir=$as_dir;;
10882       esac
10883       as_dirs="'$as_qdir' $as_dirs"
10884       as_dir=`$as_dirname -- "$as_dir" ||
10885 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10886          X"$as_dir" : 'X\(//\)[^/]' \| \
10887          X"$as_dir" : 'X\(//\)$' \| \
10888          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10889 echo X"$as_dir" |
10890     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10891             s//\1/
10892             q
10893           }
10894           /^X\(\/\/\)[^/].*/{
10895             s//\1/
10896             q
10897           }
10898           /^X\(\/\/\)$/{
10899             s//\1/
10900             q
10901           }
10902           /^X\(\/\).*/{
10903             s//\1/
10904             q
10905           }
10906           s/.*/./; q'`
10907       test -d "$as_dir" && break
10908     done
10909     test -z "$as_dirs" || eval "mkdir $as_dirs"
10910   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10911 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10912    { (exit 1); exit 1; }; }; }
10913   ac_builddir=.
10914
10915 case "$ac_dir" in
10916 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10917 *)
10918   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10919   # A ".." for each directory in $ac_dir_suffix.
10920   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10921   case $ac_top_builddir_sub in
10922   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10923   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10924   esac ;;
10925 esac
10926 ac_abs_top_builddir=$ac_pwd
10927 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10928 # for backward compatibility:
10929 ac_top_builddir=$ac_top_build_prefix
10930
10931 case $srcdir in
10932   .)  # We are building in place.
10933     ac_srcdir=.
10934     ac_top_srcdir=$ac_top_builddir_sub
10935     ac_abs_top_srcdir=$ac_pwd ;;
10936   [\\/]* | ?:[\\/]* )  # Absolute name.
10937     ac_srcdir=$srcdir$ac_dir_suffix;
10938     ac_top_srcdir=$srcdir
10939     ac_abs_top_srcdir=$srcdir ;;
10940   *) # Relative name.
10941     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10942     ac_top_srcdir=$ac_top_build_prefix$srcdir
10943     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10944 esac
10945 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10946
10947
10948   case $ac_mode in
10949   :F)
10950   #
10951   # CONFIG_FILE
10952   #
10953
10954   case $INSTALL in
10955   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10956   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10957   esac
10958 _ACEOF
10959
10960 cat >>$CONFIG_STATUS <<\_ACEOF
10961 # If the template does not know about datarootdir, expand it.
10962 # FIXME: This hack should be removed a few years after 2.60.
10963 ac_datarootdir_hack=; ac_datarootdir_seen=
10964
10965 case `sed -n '/datarootdir/ {
10966   p
10967   q
10968 }
10969 /@datadir@/p
10970 /@docdir@/p
10971 /@infodir@/p
10972 /@localedir@/p
10973 /@mandir@/p
10974 ' $ac_file_inputs` in
10975 *datarootdir*) ac_datarootdir_seen=yes;;
10976 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10977   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10978 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10979 _ACEOF
10980 cat >>$CONFIG_STATUS <<_ACEOF
10981   ac_datarootdir_hack='
10982   s&@datadir@&$datadir&g
10983   s&@docdir@&$docdir&g
10984   s&@infodir@&$infodir&g
10985   s&@localedir@&$localedir&g
10986   s&@mandir@&$mandir&g
10987     s&\\\${datarootdir}&$datarootdir&g' ;;
10988 esac
10989 _ACEOF
10990
10991 # Neutralize VPATH when `$srcdir' = `.'.
10992 # Shell code in configure.ac might set extrasub.
10993 # FIXME: do we really want to maintain this feature?
10994 cat >>$CONFIG_STATUS <<_ACEOF
10995   sed "$ac_vpsub
10996 $extrasub
10997 _ACEOF
10998 cat >>$CONFIG_STATUS <<\_ACEOF
10999 :t
11000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11001 s&@configure_input@&$configure_input&;t t
11002 s&@top_builddir@&$ac_top_builddir_sub&;t t
11003 s&@srcdir@&$ac_srcdir&;t t
11004 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11005 s&@top_srcdir@&$ac_top_srcdir&;t t
11006 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11007 s&@builddir@&$ac_builddir&;t t
11008 s&@abs_builddir@&$ac_abs_builddir&;t t
11009 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11010 s&@INSTALL@&$ac_INSTALL&;t t
11011 $ac_datarootdir_hack
11012 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed 's/|#_!!_#|//g' >$tmp/out
11013
11014 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11015   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11016   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11017   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11018 which seems to be undefined.  Please make sure it is defined." >&5
11019 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11020 which seems to be undefined.  Please make sure it is defined." >&2;}
11021
11022   rm -f "$tmp/stdin"
11023   case $ac_file in
11024   -) cat "$tmp/out"; rm -f "$tmp/out";;
11025   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11026   esac
11027  ;;
11028   :H)
11029   #
11030   # CONFIG_HEADER
11031   #
11032 _ACEOF
11033
11034 # Transform confdefs.h into a sed script `conftest.defines', that
11035 # substitutes the proper values into config.h.in to produce config.h.
11036 rm -f conftest.defines conftest.tail
11037 # First, append a space to every undef/define line, to ease matching.
11038 echo 's/$/ /' >conftest.defines
11039 # Then, protect against being on the right side of a sed subst, or in
11040 # an unquoted here document, in config.status.  If some macros were
11041 # called several times there might be several #defines for the same
11042 # symbol, which is useless.  But do not sort them, since the last
11043 # AC_DEFINE must be honored.
11044 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11045 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11046 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11047 # PARAMS is the parameter list in the macro definition--in most cases, it's
11048 # just an empty string.
11049 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
11050 ac_dB='\\)[      (].*,\\1define\\2'
11051 ac_dC=' '
11052 ac_dD=' ,'
11053
11054 uniq confdefs.h |
11055   sed -n '
11056         t rset
11057         :rset
11058         s/^[     ]*#[    ]*define[       ][      ]*//
11059         t ok
11060         d
11061         :ok
11062         s/[\\&,]/\\&/g
11063         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11064         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11065   ' >>conftest.defines
11066
11067 # Remove the space that was appended to ease matching.
11068 # Then replace #undef with comments.  This is necessary, for
11069 # example, in the case of _POSIX_SOURCE, which is predefined and required
11070 # on some systems where configure will not decide to define it.
11071 # (The regexp can be short, since the line contains either #define or #undef.)
11072 echo 's/ $//
11073 s,^[     #]*u.*,/* & */,' >>conftest.defines
11074
11075 # Break up conftest.defines:
11076 ac_max_sed_lines=50
11077
11078 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11079 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11080 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11081 # et cetera.
11082 ac_in='$ac_file_inputs'
11083 ac_out='"$tmp/out1"'
11084 ac_nxt='"$tmp/out2"'
11085
11086 while :
11087 do
11088   # Write a here document:
11089     cat >>$CONFIG_STATUS <<_ACEOF
11090     # First, check the format of the line:
11091     cat >"\$tmp/defines.sed" <<\\CEOF
11092 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
11093 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
11094 b
11095 :def
11096 _ACEOF
11097   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11098   echo 'CEOF
11099     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11100   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11101   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11102   grep . conftest.tail >/dev/null || break
11103   rm -f conftest.defines
11104   mv conftest.tail conftest.defines
11105 done
11106 rm -f conftest.defines conftest.tail
11107
11108 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11109 cat >>$CONFIG_STATUS <<\_ACEOF
11110   if test x"$ac_file" != x-; then
11111     echo "/* $configure_input  */" >"$tmp/config.h"
11112     cat "$ac_result" >>"$tmp/config.h"
11113     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11114       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11115 echo "$as_me: $ac_file is unchanged" >&6;}
11116     else
11117       rm -f $ac_file
11118       mv "$tmp/config.h" $ac_file
11119     fi
11120   else
11121     echo "/* $configure_input  */"
11122     cat "$ac_result"
11123   fi
11124   rm -f "$tmp/out12"
11125  ;;
11126
11127
11128   esac
11129
11130 done # for ac_tag
11131
11132
11133 { (exit 0); exit 0; }
11134 _ACEOF
11135 chmod +x $CONFIG_STATUS
11136 ac_clean_files=$ac_clean_files_save
11137
11138
11139 # configure is writing to config.log, and then calls config.status.
11140 # config.status does its own redirection, appending to config.log.
11141 # Unfortunately, on DOS this fails, as config.log is still kept open
11142 # by configure, so config.status won't be able to write to it; its
11143 # output is simply discarded.  So we exec the FD to /dev/null,
11144 # effectively closing config.log, so it can be properly (re)opened and
11145 # appended to by config.status.  When coming back to configure, we
11146 # need to make the FD available again.
11147 if test "$no_create" != yes; then
11148   ac_cs_success=:
11149   ac_config_status_args=
11150   test "$silent" = yes &&
11151     ac_config_status_args="$ac_config_status_args --quiet"
11152   exec 5>/dev/null
11153   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11154   exec 5>>config.log
11155   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11156   # would make configure fail if this is the last instruction.
11157   $ac_cs_success || { (exit 1); exit 1; }
11158 fi
11159
11160
11161
11162 #
11163 # On development trees, create snapshots of config.status
11164 #
11165 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11166     if test "x${MINGW}" = "xyes"; then
11167         echo cp config.status config.status.win32
11168         cp config.status config.status.win32
11169     else
11170         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
11171             echo cp config.status config.status.linux
11172             cp config.status config.status.linux
11173         fi
11174         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
11175             echo cp config.status config.status.debug
11176             cp config.status config.status.debug
11177         fi
11178         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
11179             echo cp config.status config.status.optimize
11180             cp config.status config.status.optimize
11181         fi
11182     fi
11183 fi