several small fixes in polygon code
[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 DEVICE_OPENGL
698 lame_in_source
699 art_in_source
700 xpdf_in_source
701 splash_in_source
702 AVIFILE_CONFIG
703 VIDEO_LIBS
704 VIDEO_CFLAGS
705 USE_GZIP
706 PYTHON_LIB
707 PYTHON_INCLUDES
708 HAVE_PYTHON_IMAGING
709 PDF2SWF
710 LIBPDF
711 JPEG2SWF
712 GIF2SWF
713 PNG2SWF
714 LIBOBJS
715 LTLIBOBJS'
716 ac_subst_files=''
717       ac_precious_vars='build_alias
718 host_alias
719 target_alias
720 CC
721 CFLAGS
722 LDFLAGS
723 LIBS
724 CPPFLAGS
725 CXX
726 CXXFLAGS
727 CCC
728 CPP'
729
730
731 # Initialize some variables set by options.
732 ac_init_help=
733 ac_init_version=false
734 # The variables have the same names as the options, with
735 # dashes changed to underlines.
736 cache_file=/dev/null
737 exec_prefix=NONE
738 no_create=
739 no_recursion=
740 prefix=NONE
741 program_prefix=NONE
742 program_suffix=NONE
743 program_transform_name=s,x,x,
744 silent=
745 site=
746 srcdir=
747 verbose=
748 x_includes=NONE
749 x_libraries=NONE
750
751 # Installation directory options.
752 # These are left unexpanded so users can "make install exec_prefix=/foo"
753 # and all the variables that are supposed to be based on exec_prefix
754 # by default will actually change.
755 # Use braces instead of parens because sh, perl, etc. also accept them.
756 # (The list follows the same order as the GNU Coding Standards.)
757 bindir='${exec_prefix}/bin'
758 sbindir='${exec_prefix}/sbin'
759 libexecdir='${exec_prefix}/libexec'
760 datarootdir='${prefix}/share'
761 datadir='${datarootdir}'
762 sysconfdir='${prefix}/etc'
763 sharedstatedir='${prefix}/com'
764 localstatedir='${prefix}/var'
765 includedir='${prefix}/include'
766 oldincludedir='/usr/include'
767 docdir='${datarootdir}/doc/${PACKAGE}'
768 infodir='${datarootdir}/info'
769 htmldir='${docdir}'
770 dvidir='${docdir}'
771 pdfdir='${docdir}'
772 psdir='${docdir}'
773 libdir='${exec_prefix}/lib'
774 localedir='${datarootdir}/locale'
775 mandir='${datarootdir}/man'
776
777 ac_prev=
778 ac_dashdash=
779 for ac_option
780 do
781   # If the previous option needs an argument, assign it.
782   if test -n "$ac_prev"; then
783     eval $ac_prev=\$ac_option
784     ac_prev=
785     continue
786   fi
787
788   case $ac_option in
789   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
790   *)    ac_optarg=yes ;;
791   esac
792
793   # Accept the important Cygnus configure options, so we can diagnose typos.
794
795   case $ac_dashdash$ac_option in
796   --)
797     ac_dashdash=yes ;;
798
799   -bindir | --bindir | --bindi | --bind | --bin | --bi)
800     ac_prev=bindir ;;
801   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
802     bindir=$ac_optarg ;;
803
804   -build | --build | --buil | --bui | --bu)
805     ac_prev=build_alias ;;
806   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
807     build_alias=$ac_optarg ;;
808
809   -cache-file | --cache-file | --cache-fil | --cache-fi \
810   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
811     ac_prev=cache_file ;;
812   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
813   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
814     cache_file=$ac_optarg ;;
815
816   --config-cache | -C)
817     cache_file=config.cache ;;
818
819   -datadir | --datadir | --datadi | --datad)
820     ac_prev=datadir ;;
821   -datadir=* | --datadir=* | --datadi=* | --datad=*)
822     datadir=$ac_optarg ;;
823
824   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
825   | --dataroo | --dataro | --datar)
826     ac_prev=datarootdir ;;
827   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
828   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
829     datarootdir=$ac_optarg ;;
830
831   -disable-* | --disable-*)
832     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
833     # Reject names that are not valid shell variable names.
834     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
835       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
836    { (exit 1); exit 1; }; }
837     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
838     eval enable_$ac_feature=no ;;
839
840   -docdir | --docdir | --docdi | --doc | --do)
841     ac_prev=docdir ;;
842   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
843     docdir=$ac_optarg ;;
844
845   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
846     ac_prev=dvidir ;;
847   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
848     dvidir=$ac_optarg ;;
849
850   -enable-* | --enable-*)
851     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
852     # Reject names that are not valid shell variable names.
853     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
854       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
855    { (exit 1); exit 1; }; }
856     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
857     eval enable_$ac_feature=\$ac_optarg ;;
858
859   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
860   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
861   | --exec | --exe | --ex)
862     ac_prev=exec_prefix ;;
863   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
864   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
865   | --exec=* | --exe=* | --ex=*)
866     exec_prefix=$ac_optarg ;;
867
868   -gas | --gas | --ga | --g)
869     # Obsolete; use --with-gas.
870     with_gas=yes ;;
871
872   -help | --help | --hel | --he | -h)
873     ac_init_help=long ;;
874   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
875     ac_init_help=recursive ;;
876   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
877     ac_init_help=short ;;
878
879   -host | --host | --hos | --ho)
880     ac_prev=host_alias ;;
881   -host=* | --host=* | --hos=* | --ho=*)
882     host_alias=$ac_optarg ;;
883
884   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
885     ac_prev=htmldir ;;
886   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
887   | --ht=*)
888     htmldir=$ac_optarg ;;
889
890   -includedir | --includedir | --includedi | --included | --include \
891   | --includ | --inclu | --incl | --inc)
892     ac_prev=includedir ;;
893   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
894   | --includ=* | --inclu=* | --incl=* | --inc=*)
895     includedir=$ac_optarg ;;
896
897   -infodir | --infodir | --infodi | --infod | --info | --inf)
898     ac_prev=infodir ;;
899   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
900     infodir=$ac_optarg ;;
901
902   -libdir | --libdir | --libdi | --libd)
903     ac_prev=libdir ;;
904   -libdir=* | --libdir=* | --libdi=* | --libd=*)
905     libdir=$ac_optarg ;;
906
907   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
908   | --libexe | --libex | --libe)
909     ac_prev=libexecdir ;;
910   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
911   | --libexe=* | --libex=* | --libe=*)
912     libexecdir=$ac_optarg ;;
913
914   -localedir | --localedir | --localedi | --localed | --locale)
915     ac_prev=localedir ;;
916   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
917     localedir=$ac_optarg ;;
918
919   -localstatedir | --localstatedir | --localstatedi | --localstated \
920   | --localstate | --localstat | --localsta | --localst | --locals)
921     ac_prev=localstatedir ;;
922   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
923   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
924     localstatedir=$ac_optarg ;;
925
926   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
927     ac_prev=mandir ;;
928   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
929     mandir=$ac_optarg ;;
930
931   -nfp | --nfp | --nf)
932     # Obsolete; use --without-fp.
933     with_fp=no ;;
934
935   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
936   | --no-cr | --no-c | -n)
937     no_create=yes ;;
938
939   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
940   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
941     no_recursion=yes ;;
942
943   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
944   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
945   | --oldin | --oldi | --old | --ol | --o)
946     ac_prev=oldincludedir ;;
947   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
948   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
949   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
950     oldincludedir=$ac_optarg ;;
951
952   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
953     ac_prev=prefix ;;
954   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
955     prefix=$ac_optarg ;;
956
957   -program-prefix | --program-prefix | --program-prefi | --program-pref \
958   | --program-pre | --program-pr | --program-p)
959     ac_prev=program_prefix ;;
960   -program-prefix=* | --program-prefix=* | --program-prefi=* \
961   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
962     program_prefix=$ac_optarg ;;
963
964   -program-suffix | --program-suffix | --program-suffi | --program-suff \
965   | --program-suf | --program-su | --program-s)
966     ac_prev=program_suffix ;;
967   -program-suffix=* | --program-suffix=* | --program-suffi=* \
968   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
969     program_suffix=$ac_optarg ;;
970
971   -program-transform-name | --program-transform-name \
972   | --program-transform-nam | --program-transform-na \
973   | --program-transform-n | --program-transform- \
974   | --program-transform | --program-transfor \
975   | --program-transfo | --program-transf \
976   | --program-trans | --program-tran \
977   | --progr-tra | --program-tr | --program-t)
978     ac_prev=program_transform_name ;;
979   -program-transform-name=* | --program-transform-name=* \
980   | --program-transform-nam=* | --program-transform-na=* \
981   | --program-transform-n=* | --program-transform-=* \
982   | --program-transform=* | --program-transfor=* \
983   | --program-transfo=* | --program-transf=* \
984   | --program-trans=* | --program-tran=* \
985   | --progr-tra=* | --program-tr=* | --program-t=*)
986     program_transform_name=$ac_optarg ;;
987
988   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
989     ac_prev=pdfdir ;;
990   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
991     pdfdir=$ac_optarg ;;
992
993   -psdir | --psdir | --psdi | --psd | --ps)
994     ac_prev=psdir ;;
995   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
996     psdir=$ac_optarg ;;
997
998   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
999   | -silent | --silent | --silen | --sile | --sil)
1000     silent=yes ;;
1001
1002   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1003     ac_prev=sbindir ;;
1004   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1005   | --sbi=* | --sb=*)
1006     sbindir=$ac_optarg ;;
1007
1008   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1009   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1010   | --sharedst | --shareds | --shared | --share | --shar \
1011   | --sha | --sh)
1012     ac_prev=sharedstatedir ;;
1013   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1014   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1015   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1016   | --sha=* | --sh=*)
1017     sharedstatedir=$ac_optarg ;;
1018
1019   -site | --site | --sit)
1020     ac_prev=site ;;
1021   -site=* | --site=* | --sit=*)
1022     site=$ac_optarg ;;
1023
1024   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1025     ac_prev=srcdir ;;
1026   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1027     srcdir=$ac_optarg ;;
1028
1029   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1030   | --syscon | --sysco | --sysc | --sys | --sy)
1031     ac_prev=sysconfdir ;;
1032   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1033   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1034     sysconfdir=$ac_optarg ;;
1035
1036   -target | --target | --targe | --targ | --tar | --ta | --t)
1037     ac_prev=target_alias ;;
1038   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1039     target_alias=$ac_optarg ;;
1040
1041   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1042     verbose=yes ;;
1043
1044   -version | --version | --versio | --versi | --vers | -V)
1045     ac_init_version=: ;;
1046
1047   -with-* | --with-*)
1048     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1049     # Reject names that are not valid shell variable names.
1050     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1051       { echo "$as_me: error: invalid package name: $ac_package" >&2
1052    { (exit 1); exit 1; }; }
1053     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1054     eval with_$ac_package=\$ac_optarg ;;
1055
1056   -without-* | --without-*)
1057     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1058     # Reject names that are not valid shell variable names.
1059     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060       { echo "$as_me: error: invalid package name: $ac_package" >&2
1061    { (exit 1); exit 1; }; }
1062     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063     eval with_$ac_package=no ;;
1064
1065   --x)
1066     # Obsolete; use --with-x.
1067     with_x=yes ;;
1068
1069   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1070   | --x-incl | --x-inc | --x-in | --x-i)
1071     ac_prev=x_includes ;;
1072   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1073   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1074     x_includes=$ac_optarg ;;
1075
1076   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1077   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1078     ac_prev=x_libraries ;;
1079   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1080   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1081     x_libraries=$ac_optarg ;;
1082
1083   -*) { echo "$as_me: error: unrecognized option: $ac_option
1084 Try \`$0 --help' for more information." >&2
1085    { (exit 1); exit 1; }; }
1086     ;;
1087
1088   *=*)
1089     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1090     # Reject names that are not valid shell variable names.
1091     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1092       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1093    { (exit 1); exit 1; }; }
1094     eval $ac_envvar=\$ac_optarg
1095     export $ac_envvar ;;
1096
1097   *)
1098     # FIXME: should be removed in autoconf 3.0.
1099     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1100     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1101       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1102     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1103     ;;
1104
1105   esac
1106 done
1107
1108 if test -n "$ac_prev"; then
1109   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1110   { echo "$as_me: error: missing argument to $ac_option" >&2
1111    { (exit 1); exit 1; }; }
1112 fi
1113
1114 # Be sure to have absolute directory names.
1115 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1116                 datadir sysconfdir sharedstatedir localstatedir includedir \
1117                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1118                 libdir localedir mandir
1119 do
1120   eval ac_val=\$$ac_var
1121   case $ac_val in
1122     [\\/$]* | ?:[\\/]* )  continue;;
1123     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1124   esac
1125   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1126    { (exit 1); exit 1; }; }
1127 done
1128
1129 # There might be people who depend on the old broken behavior: `$host'
1130 # used to hold the argument of --host etc.
1131 # FIXME: To remove some day.
1132 build=$build_alias
1133 host=$host_alias
1134 target=$target_alias
1135
1136 # FIXME: To remove some day.
1137 if test "x$host_alias" != x; then
1138   if test "x$build_alias" = x; then
1139     cross_compiling=maybe
1140     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1141     If a cross compiler is detected then cross compile mode will be used." >&2
1142   elif test "x$build_alias" != "x$host_alias"; then
1143     cross_compiling=yes
1144   fi
1145 fi
1146
1147 ac_tool_prefix=
1148 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1149
1150 test "$silent" = yes && exec 6>/dev/null
1151
1152
1153 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1154 ac_ls_di=`ls -di .` &&
1155 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1156   { echo "$as_me: error: Working directory cannot be determined" >&2
1157    { (exit 1); exit 1; }; }
1158 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1159   { echo "$as_me: error: pwd does not report name of working directory" >&2
1160    { (exit 1); exit 1; }; }
1161
1162
1163 # Find the source files, if location was not specified.
1164 if test -z "$srcdir"; then
1165   ac_srcdir_defaulted=yes
1166   # Try the directory containing this script, then the parent directory.
1167   ac_confdir=`$as_dirname -- "$0" ||
1168 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1169          X"$0" : 'X\(//\)[^/]' \| \
1170          X"$0" : 'X\(//\)$' \| \
1171          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1172 echo X"$0" |
1173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1174             s//\1/
1175             q
1176           }
1177           /^X\(\/\/\)[^/].*/{
1178             s//\1/
1179             q
1180           }
1181           /^X\(\/\/\)$/{
1182             s//\1/
1183             q
1184           }
1185           /^X\(\/\).*/{
1186             s//\1/
1187             q
1188           }
1189           s/.*/./; q'`
1190   srcdir=$ac_confdir
1191   if test ! -r "$srcdir/$ac_unique_file"; then
1192     srcdir=..
1193   fi
1194 else
1195   ac_srcdir_defaulted=no
1196 fi
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1198   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1199   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1200    { (exit 1); exit 1; }; }
1201 fi
1202 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1203 ac_abs_confdir=`(
1204         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1205    { (exit 1); exit 1; }; }
1206         pwd)`
1207 # When building in place, set srcdir=.
1208 if test "$ac_abs_confdir" = "$ac_pwd"; then
1209   srcdir=.
1210 fi
1211 # Remove unnecessary trailing slashes from srcdir.
1212 # Double slashes in file names in object file debugging info
1213 # mess up M-x gdb in Emacs.
1214 case $srcdir in
1215 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1216 esac
1217 for ac_var in $ac_precious_vars; do
1218   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1219   eval ac_env_${ac_var}_value=\$${ac_var}
1220   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1221   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1222 done
1223
1224 #
1225 # Report the --help message.
1226 #
1227 if test "$ac_init_help" = "long"; then
1228   # Omit some internal or obsolete options to make the list less imposing.
1229   # This message is too long to be a string in the A/UX 3.1 sh.
1230   cat <<_ACEOF
1231 \`configure' configures this package to adapt to many kinds of systems.
1232
1233 Usage: $0 [OPTION]... [VAR=VALUE]...
1234
1235 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1236 VAR=VALUE.  See below for descriptions of some of the useful variables.
1237
1238 Defaults for the options are specified in brackets.
1239
1240 Configuration:
1241   -h, --help              display this help and exit
1242       --help=short        display options specific to this package
1243       --help=recursive    display the short help of all the included packages
1244   -V, --version           display version information and exit
1245   -q, --quiet, --silent   do not print \`checking...' messages
1246       --cache-file=FILE   cache test results in FILE [disabled]
1247   -C, --config-cache      alias for \`--cache-file=config.cache'
1248   -n, --no-create         do not create output files
1249       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1250
1251 Installation directories:
1252   --prefix=PREFIX         install architecture-independent files in PREFIX
1253                           [$ac_default_prefix]
1254   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1255                           [PREFIX]
1256
1257 By default, \`make install' will install all the files in
1258 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1259 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1260 for instance \`--prefix=\$HOME'.
1261
1262 For better control, use the options below.
1263
1264 Fine tuning of the installation directories:
1265   --bindir=DIR           user executables [EPREFIX/bin]
1266   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1267   --libexecdir=DIR       program executables [EPREFIX/libexec]
1268   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1269   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1270   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1271   --libdir=DIR           object code libraries [EPREFIX/lib]
1272   --includedir=DIR       C header files [PREFIX/include]
1273   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1274   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1275   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1276   --infodir=DIR          info documentation [DATAROOTDIR/info]
1277   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1278   --mandir=DIR           man documentation [DATAROOTDIR/man]
1279   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1280   --htmldir=DIR          html documentation [DOCDIR]
1281   --dvidir=DIR           dvi documentation [DOCDIR]
1282   --pdfdir=DIR           pdf documentation [DOCDIR]
1283   --psdir=DIR            ps documentation [DOCDIR]
1284 _ACEOF
1285
1286   cat <<\_ACEOF
1287
1288 Program names:
1289   --program-prefix=PREFIX            prepend PREFIX to installed program names
1290   --program-suffix=SUFFIX            append SUFFIX to installed program names
1291   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1292
1293 System types:
1294   --build=BUILD     configure for building on BUILD [guessed]
1295   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1296   --target=TARGET   configure for building compilers for TARGET [HOST]
1297 _ACEOF
1298 fi
1299
1300 if test -n "$ac_init_help"; then
1301
1302   cat <<\_ACEOF
1303
1304 Optional Features:
1305   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1306   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1307   --enable-checkmem       turn on ccmalloc debugging
1308   --enable-debug          turn on debugging
1309   --enable-profiling      turn on profiling
1310   --enable-warnings        turn on compiler warnings
1311   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1312   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1313
1314 Optional Packages:
1315   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1316   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1317   --with-poppler          use poppler instead of internal xpdf (currently broken)
1318
1319 Some influential environment variables:
1320   CC          C compiler command
1321   CFLAGS      C compiler flags
1322   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1323               nonstandard directory <lib dir>
1324   LIBS        libraries to pass to the linker, e.g. -l<library>
1325   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1326               you have headers in a nonstandard directory <include dir>
1327   CXX         C++ compiler command
1328   CXXFLAGS    C++ compiler flags
1329   CPP         C preprocessor
1330
1331 Use these variables to override the choices made by `configure' or to help
1332 it to find libraries and programs with nonstandard names/locations.
1333
1334 _ACEOF
1335 ac_status=$?
1336 fi
1337
1338 if test "$ac_init_help" = "recursive"; then
1339   # If there are subdirs, report their specific --help.
1340   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1341     test -d "$ac_dir" || continue
1342     ac_builddir=.
1343
1344 case "$ac_dir" in
1345 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1346 *)
1347   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1348   # A ".." for each directory in $ac_dir_suffix.
1349   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1350   case $ac_top_builddir_sub in
1351   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1353   esac ;;
1354 esac
1355 ac_abs_top_builddir=$ac_pwd
1356 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1357 # for backward compatibility:
1358 ac_top_builddir=$ac_top_build_prefix
1359
1360 case $srcdir in
1361   .)  # We are building in place.
1362     ac_srcdir=.
1363     ac_top_srcdir=$ac_top_builddir_sub
1364     ac_abs_top_srcdir=$ac_pwd ;;
1365   [\\/]* | ?:[\\/]* )  # Absolute name.
1366     ac_srcdir=$srcdir$ac_dir_suffix;
1367     ac_top_srcdir=$srcdir
1368     ac_abs_top_srcdir=$srcdir ;;
1369   *) # Relative name.
1370     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1371     ac_top_srcdir=$ac_top_build_prefix$srcdir
1372     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1373 esac
1374 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1375
1376     cd "$ac_dir" || { ac_status=$?; continue; }
1377     # Check for guested configure.
1378     if test -f "$ac_srcdir/configure.gnu"; then
1379       echo &&
1380       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1381     elif test -f "$ac_srcdir/configure"; then
1382       echo &&
1383       $SHELL "$ac_srcdir/configure" --help=recursive
1384     else
1385       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1386     fi || ac_status=$?
1387     cd "$ac_pwd" || { ac_status=$?; break; }
1388   done
1389 fi
1390
1391 test -n "$ac_init_help" && exit $ac_status
1392 if $ac_init_version; then
1393   cat <<\_ACEOF
1394 configure
1395 generated by GNU Autoconf 2.61
1396
1397 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1398 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1399 This configure script is free software; the Free Software Foundation
1400 gives unlimited permission to copy, distribute and modify it.
1401 _ACEOF
1402   exit
1403 fi
1404 cat >config.log <<_ACEOF
1405 This file contains any messages produced by compilers while
1406 running configure, to aid debugging if configure makes a mistake.
1407
1408 It was created by $as_me, which was
1409 generated by GNU Autoconf 2.61.  Invocation command line was
1410
1411   $ $0 $@
1412
1413 _ACEOF
1414 exec 5>>config.log
1415 {
1416 cat <<_ASUNAME
1417 ## --------- ##
1418 ## Platform. ##
1419 ## --------- ##
1420
1421 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1422 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1423 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1424 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1425 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1426
1427 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1428 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1429
1430 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1431 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1432 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1433 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1434 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1435 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1436 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1437
1438 _ASUNAME
1439
1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 for as_dir in $PATH
1442 do
1443   IFS=$as_save_IFS
1444   test -z "$as_dir" && as_dir=.
1445   echo "PATH: $as_dir"
1446 done
1447 IFS=$as_save_IFS
1448
1449 } >&5
1450
1451 cat >&5 <<_ACEOF
1452
1453
1454 ## ----------- ##
1455 ## Core tests. ##
1456 ## ----------- ##
1457
1458 _ACEOF
1459
1460
1461 # Keep a trace of the command line.
1462 # Strip out --no-create and --no-recursion so they do not pile up.
1463 # Strip out --silent because we don't want to record it for future runs.
1464 # Also quote any args containing shell meta-characters.
1465 # Make two passes to allow for proper duplicate-argument suppression.
1466 ac_configure_args=
1467 ac_configure_args0=
1468 ac_configure_args1=
1469 ac_must_keep_next=false
1470 for ac_pass in 1 2
1471 do
1472   for ac_arg
1473   do
1474     case $ac_arg in
1475     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1476     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1477     | -silent | --silent | --silen | --sile | --sil)
1478       continue ;;
1479     *\'*)
1480       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1481     esac
1482     case $ac_pass in
1483     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1484     2)
1485       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1486       if test $ac_must_keep_next = true; then
1487         ac_must_keep_next=false # Got value, back to normal.
1488       else
1489         case $ac_arg in
1490           *=* | --config-cache | -C | -disable-* | --disable-* \
1491           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1492           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1493           | -with-* | --with-* | -without-* | --without-* | --x)
1494             case "$ac_configure_args0 " in
1495               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1496             esac
1497             ;;
1498           -* ) ac_must_keep_next=true ;;
1499         esac
1500       fi
1501       ac_configure_args="$ac_configure_args '$ac_arg'"
1502       ;;
1503     esac
1504   done
1505 done
1506 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1507 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1508
1509 # When interrupted or exit'd, cleanup temporary files, and complete
1510 # config.log.  We remove comments because anyway the quotes in there
1511 # would cause problems or look ugly.
1512 # WARNING: Use '\'' to represent an apostrophe within the trap.
1513 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1514 trap 'exit_status=$?
1515   # Save into config.log some information that might help in debugging.
1516   {
1517     echo
1518
1519     cat <<\_ASBOX
1520 ## ---------------- ##
1521 ## Cache variables. ##
1522 ## ---------------- ##
1523 _ASBOX
1524     echo
1525     # The following way of writing the cache mishandles newlines in values,
1526 (
1527   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1528     eval ac_val=\$$ac_var
1529     case $ac_val in #(
1530     *${as_nl}*)
1531       case $ac_var in #(
1532       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1533 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1534       esac
1535       case $ac_var in #(
1536       _ | IFS | as_nl) ;; #(
1537       *) $as_unset $ac_var ;;
1538       esac ;;
1539     esac
1540   done
1541   (set) 2>&1 |
1542     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1543     *${as_nl}ac_space=\ *)
1544       sed -n \
1545         "s/'\''/'\''\\\\'\'''\''/g;
1546           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1547       ;; #(
1548     *)
1549       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1550       ;;
1551     esac |
1552     sort
1553 )
1554     echo
1555
1556     cat <<\_ASBOX
1557 ## ----------------- ##
1558 ## Output variables. ##
1559 ## ----------------- ##
1560 _ASBOX
1561     echo
1562     for ac_var in $ac_subst_vars
1563     do
1564       eval ac_val=\$$ac_var
1565       case $ac_val in
1566       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1567       esac
1568       echo "$ac_var='\''$ac_val'\''"
1569     done | sort
1570     echo
1571
1572     if test -n "$ac_subst_files"; then
1573       cat <<\_ASBOX
1574 ## ------------------- ##
1575 ## File substitutions. ##
1576 ## ------------------- ##
1577 _ASBOX
1578       echo
1579       for ac_var in $ac_subst_files
1580       do
1581         eval ac_val=\$$ac_var
1582         case $ac_val in
1583         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1584         esac
1585         echo "$ac_var='\''$ac_val'\''"
1586       done | sort
1587       echo
1588     fi
1589
1590     if test -s confdefs.h; then
1591       cat <<\_ASBOX
1592 ## ----------- ##
1593 ## confdefs.h. ##
1594 ## ----------- ##
1595 _ASBOX
1596       echo
1597       cat confdefs.h
1598       echo
1599     fi
1600     test "$ac_signal" != 0 &&
1601       echo "$as_me: caught signal $ac_signal"
1602     echo "$as_me: exit $exit_status"
1603   } >&5
1604   rm -f core *.core core.conftest.* &&
1605     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1606     exit $exit_status
1607 ' 0
1608 for ac_signal in 1 2 13 15; do
1609   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1610 done
1611 ac_signal=0
1612
1613 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1614 rm -f -r conftest* confdefs.h
1615
1616 # Predefined preprocessor variables.
1617
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_NAME "$PACKAGE_NAME"
1620 _ACEOF
1621
1622
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1625 _ACEOF
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1630 _ACEOF
1631
1632
1633 cat >>confdefs.h <<_ACEOF
1634 #define PACKAGE_STRING "$PACKAGE_STRING"
1635 _ACEOF
1636
1637
1638 cat >>confdefs.h <<_ACEOF
1639 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1640 _ACEOF
1641
1642
1643 # Let the site file select an alternate cache file if it wants to.
1644 # Prefer explicitly selected file to automatically selected ones.
1645 if test -n "$CONFIG_SITE"; then
1646   set x "$CONFIG_SITE"
1647 elif test "x$prefix" != xNONE; then
1648   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1649 else
1650   set x "$ac_default_prefix/share/config.site" \
1651         "$ac_default_prefix/etc/config.site"
1652 fi
1653 shift
1654 for ac_site_file
1655 do
1656   if test -r "$ac_site_file"; then
1657     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1658 echo "$as_me: loading site script $ac_site_file" >&6;}
1659     sed 's/^/| /' "$ac_site_file" >&5
1660     . "$ac_site_file"
1661   fi
1662 done
1663
1664 if test -r "$cache_file"; then
1665   # Some versions of bash will fail to source /dev/null (special
1666   # files actually), so we avoid doing that.
1667   if test -f "$cache_file"; then
1668     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1669 echo "$as_me: loading cache $cache_file" >&6;}
1670     case $cache_file in
1671       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1672       *)                      . "./$cache_file";;
1673     esac
1674   fi
1675 else
1676   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1677 echo "$as_me: creating cache $cache_file" >&6;}
1678   >$cache_file
1679 fi
1680
1681 # Check that the precious variables saved in the cache have kept the same
1682 # value.
1683 ac_cache_corrupted=false
1684 for ac_var in $ac_precious_vars; do
1685   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1686   eval ac_new_set=\$ac_env_${ac_var}_set
1687   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1688   eval ac_new_val=\$ac_env_${ac_var}_value
1689   case $ac_old_set,$ac_new_set in
1690     set,)
1691       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1692 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1693       ac_cache_corrupted=: ;;
1694     ,set)
1695       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1696 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1697       ac_cache_corrupted=: ;;
1698     ,);;
1699     *)
1700       if test "x$ac_old_val" != "x$ac_new_val"; then
1701         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1702 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1703         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1704 echo "$as_me:   former value:  $ac_old_val" >&2;}
1705         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1706 echo "$as_me:   current value: $ac_new_val" >&2;}
1707         ac_cache_corrupted=:
1708       fi;;
1709   esac
1710   # Pass precious variables to config.status.
1711   if test "$ac_new_set" = set; then
1712     case $ac_new_val in
1713     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1714     *) ac_arg=$ac_var=$ac_new_val ;;
1715     esac
1716     case " $ac_configure_args " in
1717       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1718       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1719     esac
1720   fi
1721 done
1722 if $ac_cache_corrupted; then
1723   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1724 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1725   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1726 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1727    { (exit 1); exit 1; }; }
1728 fi
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746 ac_ext=c
1747 ac_cpp='$CPP $CPPFLAGS'
1748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1751
1752
1753
1754
1755 # Check whether --enable-checkmem was given.
1756 if test "${enable_checkmem+set}" = set; then
1757   enableval=$enable_checkmem; CHECKMEM=true
1758 fi
1759
1760 # Check whether --enable-debug was given.
1761 if test "${enable_debug+set}" = set; then
1762   enableval=$enable_debug; DEBUG=true
1763 fi
1764
1765 # Check whether --enable-profiling was given.
1766 if test "${enable_profiling+set}" = set; then
1767   enableval=$enable_profiling; PROFILING=true
1768 fi
1769
1770 # Check whether --enable-warnings was given.
1771 if test "${enable_warnings+set}" = set; then
1772   enableval=$enable_warnings; ENABLE_WARNINGS=true
1773 fi
1774
1775 # Check whether --enable-optimizations was given.
1776 if test "${enable_optimizations+set}" = set; then
1777   enableval=$enable_optimizations; OPTIMIZE=true
1778 fi
1779
1780 # Check whether --enable-lame was given.
1781 if test "${enable_lame+set}" = set; then
1782   enableval=$enable_lame; DISABLE_LAME=true
1783 fi
1784
1785
1786 # Check whether --with-poppler was given.
1787 if test "${with_poppler+set}" = set; then
1788   withval=$with_poppler; USE_POPPLER=true
1789 fi
1790
1791
1792 PACKAGE=swftools
1793 VERSION=0.9.0
1794
1795
1796 # ------------------------------------------------------------------
1797
1798 if test "x${srcdir}" != "x."; then
1799     echo "--srcdir is not supported"
1800     exit 1
1801 fi
1802
1803 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1804 if test "x$ENABLE_WARNINGS" '!=' "x";then
1805     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1806 fi
1807
1808 if test "x$CHECKMEM" '!=' "x";then
1809     DEBUG=yes
1810 fi
1811 if test "x$PROFILING" '!=' "x";then
1812     DEBUG=yes
1813 fi
1814 if test "x$DEBUG" '!=' "x";then
1815     if test "x$PROFILING" = "x";then
1816         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1817         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1818         LDFLAGS="-g $LIBS"
1819     else
1820         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1821         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1822         LDFLAGS="-g -pg $LIBS"
1823     fi
1824 else if test "x$OPTIMIZE" '!=' "x"; then
1825     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1826     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1827 else
1828     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1829     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1830 fi
1831 fi
1832
1833 CFLAGS="-fPIC $CFLAGS"
1834 CXXFLAGS="-fPIC $CFLAGS"
1835
1836 #OLDGCC=1
1837 #if test "x$OLDGCC" '!=' "x";then
1838 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1839 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1840 #     CFLAGS="$CFLAGS -ansi -pendantic"
1841 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1842 #fi
1843
1844 export PACKAGE VERSION CFLAGS CXXFLAGS
1845
1846
1847 ac_aux_dir=
1848 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1849   if test -f "$ac_dir/install-sh"; then
1850     ac_aux_dir=$ac_dir
1851     ac_install_sh="$ac_aux_dir/install-sh -c"
1852     break
1853   elif test -f "$ac_dir/install.sh"; then
1854     ac_aux_dir=$ac_dir
1855     ac_install_sh="$ac_aux_dir/install.sh -c"
1856     break
1857   elif test -f "$ac_dir/shtool"; then
1858     ac_aux_dir=$ac_dir
1859     ac_install_sh="$ac_aux_dir/shtool install -c"
1860     break
1861   fi
1862 done
1863 if test -z "$ac_aux_dir"; then
1864   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1865 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1866    { (exit 1); exit 1; }; }
1867 fi
1868
1869 # These three variables are undocumented and unsupported,
1870 # and are intended to be withdrawn in a future Autoconf release.
1871 # They can cause serious problems if a builder's source tree is in a directory
1872 # whose full name contains unusual characters.
1873 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1874 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1875 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1876
1877
1878 # Make sure we can run config.sub.
1879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1880   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1881 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1882    { (exit 1); exit 1; }; }
1883
1884 { echo "$as_me:$LINENO: checking build system type" >&5
1885 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1886 if test "${ac_cv_build+set}" = set; then
1887   echo $ECHO_N "(cached) $ECHO_C" >&6
1888 else
1889   ac_build_alias=$build_alias
1890 test "x$ac_build_alias" = x &&
1891   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1892 test "x$ac_build_alias" = x &&
1893   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1894 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1895    { (exit 1); exit 1; }; }
1896 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1897   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1898 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1899    { (exit 1); exit 1; }; }
1900
1901 fi
1902 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1903 echo "${ECHO_T}$ac_cv_build" >&6; }
1904 case $ac_cv_build in
1905 *-*-*) ;;
1906 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1907 echo "$as_me: error: invalid value of canonical build" >&2;}
1908    { (exit 1); exit 1; }; };;
1909 esac
1910 build=$ac_cv_build
1911 ac_save_IFS=$IFS; IFS='-'
1912 set x $ac_cv_build
1913 shift
1914 build_cpu=$1
1915 build_vendor=$2
1916 shift; shift
1917 # Remember, the first character of IFS is used to create $*,
1918 # except with old shells:
1919 build_os=$*
1920 IFS=$ac_save_IFS
1921 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1922
1923
1924 { echo "$as_me:$LINENO: checking host system type" >&5
1925 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1926 if test "${ac_cv_host+set}" = set; then
1927   echo $ECHO_N "(cached) $ECHO_C" >&6
1928 else
1929   if test "x$host_alias" = x; then
1930   ac_cv_host=$ac_cv_build
1931 else
1932   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1933     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1934 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1935    { (exit 1); exit 1; }; }
1936 fi
1937
1938 fi
1939 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1940 echo "${ECHO_T}$ac_cv_host" >&6; }
1941 case $ac_cv_host in
1942 *-*-*) ;;
1943 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1944 echo "$as_me: error: invalid value of canonical host" >&2;}
1945    { (exit 1); exit 1; }; };;
1946 esac
1947 host=$ac_cv_host
1948 ac_save_IFS=$IFS; IFS='-'
1949 set x $ac_cv_host
1950 shift
1951 host_cpu=$1
1952 host_vendor=$2
1953 shift; shift
1954 # Remember, the first character of IFS is used to create $*,
1955 # except with old shells:
1956 host_os=$*
1957 IFS=$ac_save_IFS
1958 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1959
1960
1961
1962 SHARED="-shared"
1963 MACOSX=
1964 case $host_os in
1965     *darwin* )
1966         MACOSX=yes
1967         CFLAGS="$CFLAGS"
1968         CXXFLAGS="$CXXFLAGS -fno-rtti"
1969         SHARED="-bundle"
1970         if test -d /opt/local/include && test -d /opt/local/lib; then
1971             CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
1972             LDFLAGS="${LDFLAGS} -L/opt/local/lib"
1973         fi
1974         # Use fink packages if available.
1975         #if test -d /sw/include && test -d /sw/lib; then
1976         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
1977         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
1978         #fi
1979         ;;
1980 esac
1981
1982
1983
1984  ac_ext=c
1985 ac_cpp='$CPP $CPPFLAGS'
1986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1989 if test -n "$ac_tool_prefix"; then
1990   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1992 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1994 if test "${ac_cv_prog_CC+set}" = set; then
1995   echo $ECHO_N "(cached) $ECHO_C" >&6
1996 else
1997   if test -n "$CC"; then
1998   ac_cv_prog_CC="$CC" # Let the user override the test.
1999 else
2000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 for as_dir in $PATH
2002 do
2003   IFS=$as_save_IFS
2004   test -z "$as_dir" && as_dir=.
2005   for ac_exec_ext in '' $ac_executable_extensions; do
2006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2007     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2009     break 2
2010   fi
2011 done
2012 done
2013 IFS=$as_save_IFS
2014
2015 fi
2016 fi
2017 CC=$ac_cv_prog_CC
2018 if test -n "$CC"; then
2019   { echo "$as_me:$LINENO: result: $CC" >&5
2020 echo "${ECHO_T}$CC" >&6; }
2021 else
2022   { echo "$as_me:$LINENO: result: no" >&5
2023 echo "${ECHO_T}no" >&6; }
2024 fi
2025
2026
2027 fi
2028 if test -z "$ac_cv_prog_CC"; then
2029   ac_ct_CC=$CC
2030   # Extract the first word of "gcc", so it can be a program name with args.
2031 set dummy gcc; ac_word=$2
2032 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2033 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2035   echo $ECHO_N "(cached) $ECHO_C" >&6
2036 else
2037   if test -n "$ac_ct_CC"; then
2038   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2039 else
2040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2041 for as_dir in $PATH
2042 do
2043   IFS=$as_save_IFS
2044   test -z "$as_dir" && as_dir=.
2045   for ac_exec_ext in '' $ac_executable_extensions; do
2046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2047     ac_cv_prog_ac_ct_CC="gcc"
2048     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049     break 2
2050   fi
2051 done
2052 done
2053 IFS=$as_save_IFS
2054
2055 fi
2056 fi
2057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2058 if test -n "$ac_ct_CC"; then
2059   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2060 echo "${ECHO_T}$ac_ct_CC" >&6; }
2061 else
2062   { echo "$as_me:$LINENO: result: no" >&5
2063 echo "${ECHO_T}no" >&6; }
2064 fi
2065
2066   if test "x$ac_ct_CC" = x; then
2067     CC=""
2068   else
2069     case $cross_compiling:$ac_tool_warned in
2070 yes:)
2071 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2072 whose name does not start with the host triplet.  If you think this
2073 configuration is useful to you, please write to autoconf@gnu.org." >&5
2074 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2075 whose name does not start with the host triplet.  If you think this
2076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2077 ac_tool_warned=yes ;;
2078 esac
2079     CC=$ac_ct_CC
2080   fi
2081 else
2082   CC="$ac_cv_prog_CC"
2083 fi
2084
2085 if test -z "$CC"; then
2086           if test -n "$ac_tool_prefix"; then
2087     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2088 set dummy ${ac_tool_prefix}cc; ac_word=$2
2089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2091 if test "${ac_cv_prog_CC+set}" = set; then
2092   echo $ECHO_N "(cached) $ECHO_C" >&6
2093 else
2094   if test -n "$CC"; then
2095   ac_cv_prog_CC="$CC" # Let the user override the test.
2096 else
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2099 do
2100   IFS=$as_save_IFS
2101   test -z "$as_dir" && as_dir=.
2102   for ac_exec_ext in '' $ac_executable_extensions; do
2103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104     ac_cv_prog_CC="${ac_tool_prefix}cc"
2105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2106     break 2
2107   fi
2108 done
2109 done
2110 IFS=$as_save_IFS
2111
2112 fi
2113 fi
2114 CC=$ac_cv_prog_CC
2115 if test -n "$CC"; then
2116   { echo "$as_me:$LINENO: result: $CC" >&5
2117 echo "${ECHO_T}$CC" >&6; }
2118 else
2119   { echo "$as_me:$LINENO: result: no" >&5
2120 echo "${ECHO_T}no" >&6; }
2121 fi
2122
2123
2124   fi
2125 fi
2126 if test -z "$CC"; then
2127   # Extract the first word of "cc", so it can be a program name with args.
2128 set dummy cc; ac_word=$2
2129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2131 if test "${ac_cv_prog_CC+set}" = set; then
2132   echo $ECHO_N "(cached) $ECHO_C" >&6
2133 else
2134   if test -n "$CC"; then
2135   ac_cv_prog_CC="$CC" # Let the user override the test.
2136 else
2137   ac_prog_rejected=no
2138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2139 for as_dir in $PATH
2140 do
2141   IFS=$as_save_IFS
2142   test -z "$as_dir" && as_dir=.
2143   for ac_exec_ext in '' $ac_executable_extensions; do
2144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2145     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2146        ac_prog_rejected=yes
2147        continue
2148      fi
2149     ac_cv_prog_CC="cc"
2150     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151     break 2
2152   fi
2153 done
2154 done
2155 IFS=$as_save_IFS
2156
2157 if test $ac_prog_rejected = yes; then
2158   # We found a bogon in the path, so make sure we never use it.
2159   set dummy $ac_cv_prog_CC
2160   shift
2161   if test $# != 0; then
2162     # We chose a different compiler from the bogus one.
2163     # However, it has the same basename, so the bogon will be chosen
2164     # first if we set CC to just the basename; use the full file name.
2165     shift
2166     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2167   fi
2168 fi
2169 fi
2170 fi
2171 CC=$ac_cv_prog_CC
2172 if test -n "$CC"; then
2173   { echo "$as_me:$LINENO: result: $CC" >&5
2174 echo "${ECHO_T}$CC" >&6; }
2175 else
2176   { echo "$as_me:$LINENO: result: no" >&5
2177 echo "${ECHO_T}no" >&6; }
2178 fi
2179
2180
2181 fi
2182 if test -z "$CC"; then
2183   if test -n "$ac_tool_prefix"; then
2184   for ac_prog in cl.exe
2185   do
2186     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2187 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2190 if test "${ac_cv_prog_CC+set}" = set; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   if test -n "$CC"; then
2194   ac_cv_prog_CC="$CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199   IFS=$as_save_IFS
2200   test -z "$as_dir" && as_dir=.
2201   for ac_exec_ext in '' $ac_executable_extensions; do
2202   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2203     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205     break 2
2206   fi
2207 done
2208 done
2209 IFS=$as_save_IFS
2210
2211 fi
2212 fi
2213 CC=$ac_cv_prog_CC
2214 if test -n "$CC"; then
2215   { echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6; }
2217 else
2218   { echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6; }
2220 fi
2221
2222
2223     test -n "$CC" && break
2224   done
2225 fi
2226 if test -z "$CC"; then
2227   ac_ct_CC=$CC
2228   for ac_prog in cl.exe
2229 do
2230   # Extract the first word of "$ac_prog", so it can be a program name with args.
2231 set dummy $ac_prog; ac_word=$2
2232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235   echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237   if test -n "$ac_ct_CC"; then
2238   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239 else
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245   for ac_exec_ext in '' $ac_executable_extensions; do
2246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247     ac_cv_prog_ac_ct_CC="$ac_prog"
2248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2249     break 2
2250   fi
2251 done
2252 done
2253 IFS=$as_save_IFS
2254
2255 fi
2256 fi
2257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2258 if test -n "$ac_ct_CC"; then
2259   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2260 echo "${ECHO_T}$ac_ct_CC" >&6; }
2261 else
2262   { echo "$as_me:$LINENO: result: no" >&5
2263 echo "${ECHO_T}no" >&6; }
2264 fi
2265
2266
2267   test -n "$ac_ct_CC" && break
2268 done
2269
2270   if test "x$ac_ct_CC" = x; then
2271     CC=""
2272   else
2273     case $cross_compiling:$ac_tool_warned in
2274 yes:)
2275 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2276 whose name does not start with the host triplet.  If you think this
2277 configuration is useful to you, please write to autoconf@gnu.org." >&5
2278 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2279 whose name does not start with the host triplet.  If you think this
2280 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2281 ac_tool_warned=yes ;;
2282 esac
2283     CC=$ac_ct_CC
2284   fi
2285 fi
2286
2287 fi
2288
2289
2290 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2291 See \`config.log' for more details." >&5
2292 echo "$as_me: error: no acceptable C compiler found in \$PATH
2293 See \`config.log' for more details." >&2;}
2294    { (exit 1); exit 1; }; }
2295
2296 # Provide some information about the compiler.
2297 echo "$as_me:$LINENO: checking for C compiler version" >&5
2298 ac_compiler=`set X $ac_compile; echo $2`
2299 { (ac_try="$ac_compiler --version >&5"
2300 case "(($ac_try" in
2301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2302   *) ac_try_echo=$ac_try;;
2303 esac
2304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2305   (eval "$ac_compiler --version >&5") 2>&5
2306   ac_status=$?
2307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308   (exit $ac_status); }
2309 { (ac_try="$ac_compiler -v >&5"
2310 case "(($ac_try" in
2311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2312   *) ac_try_echo=$ac_try;;
2313 esac
2314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2315   (eval "$ac_compiler -v >&5") 2>&5
2316   ac_status=$?
2317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318   (exit $ac_status); }
2319 { (ac_try="$ac_compiler -V >&5"
2320 case "(($ac_try" in
2321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322   *) ac_try_echo=$ac_try;;
2323 esac
2324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2325   (eval "$ac_compiler -V >&5") 2>&5
2326   ac_status=$?
2327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328   (exit $ac_status); }
2329
2330 cat >conftest.$ac_ext <<_ACEOF
2331 /* confdefs.h.  */
2332 _ACEOF
2333 cat confdefs.h >>conftest.$ac_ext
2334 cat >>conftest.$ac_ext <<_ACEOF
2335 /* end confdefs.h.  */
2336
2337 int
2338 main ()
2339 {
2340
2341   ;
2342   return 0;
2343 }
2344 _ACEOF
2345 ac_clean_files_save=$ac_clean_files
2346 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2347 # Try to create an executable without -o first, disregard a.out.
2348 # It will help us diagnose broken compilers, and finding out an intuition
2349 # of exeext.
2350 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2351 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2352 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2353 #
2354 # List of possible output files, starting from the most likely.
2355 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2356 # only as a last resort.  b.out is created by i960 compilers.
2357 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2358 #
2359 # The IRIX 6 linker writes into existing files which may not be
2360 # executable, retaining their permissions.  Remove them first so a
2361 # subsequent execution test works.
2362 ac_rmfiles=
2363 for ac_file in $ac_files
2364 do
2365   case $ac_file in
2366     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2367     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2368   esac
2369 done
2370 rm -f $ac_rmfiles
2371
2372 if { (ac_try="$ac_link_default"
2373 case "(($ac_try" in
2374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2375   *) ac_try_echo=$ac_try;;
2376 esac
2377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2378   (eval "$ac_link_default") 2>&5
2379   ac_status=$?
2380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381   (exit $ac_status); }; then
2382   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2383 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2384 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2385 # so that the user can short-circuit this test for compilers unknown to
2386 # Autoconf.
2387 for ac_file in $ac_files ''
2388 do
2389   test -f "$ac_file" || continue
2390   case $ac_file in
2391     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2392         ;;
2393     [ab].out )
2394         # We found the default executable, but exeext='' is most
2395         # certainly right.
2396         break;;
2397     *.* )
2398         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2399         then :; else
2400            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2401         fi
2402         # We set ac_cv_exeext here because the later test for it is not
2403         # safe: cross compilers may not add the suffix if given an `-o'
2404         # argument, so we may need to know it at that point already.
2405         # Even if this section looks crufty: it has the advantage of
2406         # actually working.
2407         break;;
2408     * )
2409         break;;
2410   esac
2411 done
2412 test "$ac_cv_exeext" = no && ac_cv_exeext=
2413
2414 else
2415   ac_file=''
2416 fi
2417
2418 { echo "$as_me:$LINENO: result: $ac_file" >&5
2419 echo "${ECHO_T}$ac_file" >&6; }
2420 if test -z "$ac_file"; then
2421   echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2423
2424 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2425 See \`config.log' for more details." >&5
2426 echo "$as_me: error: C compiler cannot create executables
2427 See \`config.log' for more details." >&2;}
2428    { (exit 77); exit 77; }; }
2429 fi
2430
2431 ac_exeext=$ac_cv_exeext
2432
2433 # Check that the compiler produces executables we can run.  If not, either
2434 # the compiler is broken, or we cross compile.
2435 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2436 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2437 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2438 # If not cross compiling, check that we can run a simple program.
2439 if test "$cross_compiling" != yes; then
2440   if { ac_try='./$ac_file'
2441   { (case "(($ac_try" in
2442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2443   *) ac_try_echo=$ac_try;;
2444 esac
2445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2446   (eval "$ac_try") 2>&5
2447   ac_status=$?
2448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2449   (exit $ac_status); }; }; then
2450     cross_compiling=no
2451   else
2452     if test "$cross_compiling" = maybe; then
2453         cross_compiling=yes
2454     else
2455         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2456 If you meant to cross compile, use \`--host'.
2457 See \`config.log' for more details." >&5
2458 echo "$as_me: error: cannot run C compiled programs.
2459 If you meant to cross compile, use \`--host'.
2460 See \`config.log' for more details." >&2;}
2461    { (exit 1); exit 1; }; }
2462     fi
2463   fi
2464 fi
2465 { echo "$as_me:$LINENO: result: yes" >&5
2466 echo "${ECHO_T}yes" >&6; }
2467
2468 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2469 ac_clean_files=$ac_clean_files_save
2470 # Check that the compiler produces executables we can run.  If not, either
2471 # the compiler is broken, or we cross compile.
2472 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2473 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2474 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2475 echo "${ECHO_T}$cross_compiling" >&6; }
2476
2477 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2478 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2479 if { (ac_try="$ac_link"
2480 case "(($ac_try" in
2481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482   *) ac_try_echo=$ac_try;;
2483 esac
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485   (eval "$ac_link") 2>&5
2486   ac_status=$?
2487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; then
2489   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2490 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2491 # work properly (i.e., refer to `conftest.exe'), while it won't with
2492 # `rm'.
2493 for ac_file in conftest.exe conftest conftest.*; do
2494   test -f "$ac_file" || continue
2495   case $ac_file in
2496     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2497     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2498           break;;
2499     * ) break;;
2500   esac
2501 done
2502 else
2503   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2504 See \`config.log' for more details." >&5
2505 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2506 See \`config.log' for more details." >&2;}
2507    { (exit 1); exit 1; }; }
2508 fi
2509
2510 rm -f conftest$ac_cv_exeext
2511 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2512 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2513
2514 rm -f conftest.$ac_ext
2515 EXEEXT=$ac_cv_exeext
2516 ac_exeext=$EXEEXT
2517 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2518 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2519 if test "${ac_cv_objext+set}" = set; then
2520   echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522   cat >conftest.$ac_ext <<_ACEOF
2523 /* confdefs.h.  */
2524 _ACEOF
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h.  */
2528
2529 int
2530 main ()
2531 {
2532
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 rm -f conftest.o conftest.obj
2538 if { (ac_try="$ac_compile"
2539 case "(($ac_try" in
2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541   *) ac_try_echo=$ac_try;;
2542 esac
2543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2544   (eval "$ac_compile") 2>&5
2545   ac_status=$?
2546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547   (exit $ac_status); }; then
2548   for ac_file in conftest.o conftest.obj conftest.*; do
2549   test -f "$ac_file" || continue;
2550   case $ac_file in
2551     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2552     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2553        break;;
2554   esac
2555 done
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2563 See \`config.log' for more details." >&2;}
2564    { (exit 1); exit 1; }; }
2565 fi
2566
2567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2568 fi
2569 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2570 echo "${ECHO_T}$ac_cv_objext" >&6; }
2571 OBJEXT=$ac_cv_objext
2572 ac_objext=$OBJEXT
2573 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2574 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2575 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2576   echo $ECHO_N "(cached) $ECHO_C" >&6
2577 else
2578   cat >conftest.$ac_ext <<_ACEOF
2579 /* confdefs.h.  */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h.  */
2584
2585 int
2586 main ()
2587 {
2588 #ifndef __GNUC__
2589        choke me
2590 #endif
2591
2592   ;
2593   return 0;
2594 }
2595 _ACEOF
2596 rm -f conftest.$ac_objext
2597 if { (ac_try="$ac_compile"
2598 case "(($ac_try" in
2599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2600   *) ac_try_echo=$ac_try;;
2601 esac
2602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2603   (eval "$ac_compile") 2>conftest.er1
2604   ac_status=$?
2605   grep -v '^ *+' conftest.er1 >conftest.err
2606   rm -f conftest.er1
2607   cat conftest.err >&5
2608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609   (exit $ac_status); } && {
2610          test -z "$ac_c_werror_flag" ||
2611          test ! -s conftest.err
2612        } && test -s conftest.$ac_objext; then
2613   ac_compiler_gnu=yes
2614 else
2615   echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2617
2618         ac_compiler_gnu=no
2619 fi
2620
2621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2622 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2623
2624 fi
2625 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2626 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2627 GCC=`test $ac_compiler_gnu = yes && echo yes`
2628 ac_test_CFLAGS=${CFLAGS+set}
2629 ac_save_CFLAGS=$CFLAGS
2630 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2631 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_cc_g+set}" = set; then
2633   echo $ECHO_N "(cached) $ECHO_C" >&6
2634 else
2635   ac_save_c_werror_flag=$ac_c_werror_flag
2636    ac_c_werror_flag=yes
2637    ac_cv_prog_cc_g=no
2638    CFLAGS="-g"
2639    cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h.  */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h.  */
2645
2646 int
2647 main ()
2648 {
2649
2650   ;
2651   return 0;
2652 }
2653 _ACEOF
2654 rm -f conftest.$ac_objext
2655 if { (ac_try="$ac_compile"
2656 case "(($ac_try" in
2657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658   *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661   (eval "$ac_compile") 2>conftest.er1
2662   ac_status=$?
2663   grep -v '^ *+' conftest.er1 >conftest.err
2664   rm -f conftest.er1
2665   cat conftest.err >&5
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); } && {
2668          test -z "$ac_c_werror_flag" ||
2669          test ! -s conftest.err
2670        } && test -s conftest.$ac_objext; then
2671   ac_cv_prog_cc_g=yes
2672 else
2673   echo "$as_me: failed program was:" >&5
2674 sed 's/^/| /' conftest.$ac_ext >&5
2675
2676         CFLAGS=""
2677       cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683
2684 int
2685 main ()
2686 {
2687
2688   ;
2689   return 0;
2690 }
2691 _ACEOF
2692 rm -f conftest.$ac_objext
2693 if { (ac_try="$ac_compile"
2694 case "(($ac_try" in
2695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2696   *) ac_try_echo=$ac_try;;
2697 esac
2698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2699   (eval "$ac_compile") 2>conftest.er1
2700   ac_status=$?
2701   grep -v '^ *+' conftest.er1 >conftest.err
2702   rm -f conftest.er1
2703   cat conftest.err >&5
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); } && {
2706          test -z "$ac_c_werror_flag" ||
2707          test ! -s conftest.err
2708        } && test -s conftest.$ac_objext; then
2709   :
2710 else
2711   echo "$as_me: failed program was:" >&5
2712 sed 's/^/| /' conftest.$ac_ext >&5
2713
2714         ac_c_werror_flag=$ac_save_c_werror_flag
2715          CFLAGS="-g"
2716          cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h.  */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h.  */
2722
2723 int
2724 main ()
2725 {
2726
2727   ;
2728   return 0;
2729 }
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2733 case "(($ac_try" in
2734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735   *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738   (eval "$ac_compile") 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } && {
2745          test -z "$ac_c_werror_flag" ||
2746          test ! -s conftest.err
2747        } && test -s conftest.$ac_objext; then
2748   ac_cv_prog_cc_g=yes
2749 else
2750   echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753
2754 fi
2755
2756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2757 fi
2758
2759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2760 fi
2761
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763    ac_c_werror_flag=$ac_save_c_werror_flag
2764 fi
2765 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2766 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2767 if test "$ac_test_CFLAGS" = set; then
2768   CFLAGS=$ac_save_CFLAGS
2769 elif test $ac_cv_prog_cc_g = yes; then
2770   if test "$GCC" = yes; then
2771     CFLAGS="-g -O2"
2772   else
2773     CFLAGS="-g"
2774   fi
2775 else
2776   if test "$GCC" = yes; then
2777     CFLAGS="-O2"
2778   else
2779     CFLAGS=
2780   fi
2781 fi
2782 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2783 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_cc_c89+set}" = set; then
2785   echo $ECHO_N "(cached) $ECHO_C" >&6
2786 else
2787   ac_cv_prog_cc_c89=no
2788 ac_save_CC=$CC
2789 cat >conftest.$ac_ext <<_ACEOF
2790 /* confdefs.h.  */
2791 _ACEOF
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h.  */
2795 #include <stdarg.h>
2796 #include <stdio.h>
2797 #include <sys/types.h>
2798 #include <sys/stat.h>
2799 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2800 struct buf { int x; };
2801 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2802 static char *e (p, i)
2803      char **p;
2804      int i;
2805 {
2806   return p[i];
2807 }
2808 static char *f (char * (*g) (char **, int), char **p, ...)
2809 {
2810   char *s;
2811   va_list v;
2812   va_start (v,p);
2813   s = g (p, va_arg (v,int));
2814   va_end (v);
2815   return s;
2816 }
2817
2818 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2819    function prototypes and stuff, but not '\xHH' hex character constants.
2820    These don't provoke an error unfortunately, instead are silently treated
2821    as 'x'.  The following induces an error, until -std is added to get
2822    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2823    array size at least.  It's necessary to write '\x00'==0 to get something
2824    that's true only with -std.  */
2825 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2826
2827 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2828    inside strings and character constants.  */
2829 #define FOO(x) 'x'
2830 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2831
2832 int test (int i, double x);
2833 struct s1 {int (*f) (int a);};
2834 struct s2 {int (*f) (double a);};
2835 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2836 int argc;
2837 char **argv;
2838 int
2839 main ()
2840 {
2841 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2842   ;
2843   return 0;
2844 }
2845 _ACEOF
2846 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2847         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2848 do
2849   CC="$ac_save_CC $ac_arg"
2850   rm -f conftest.$ac_objext
2851 if { (ac_try="$ac_compile"
2852 case "(($ac_try" in
2853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854   *) ac_try_echo=$ac_try;;
2855 esac
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857   (eval "$ac_compile") 2>conftest.er1
2858   ac_status=$?
2859   grep -v '^ *+' conftest.er1 >conftest.err
2860   rm -f conftest.er1
2861   cat conftest.err >&5
2862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); } && {
2864          test -z "$ac_c_werror_flag" ||
2865          test ! -s conftest.err
2866        } && test -s conftest.$ac_objext; then
2867   ac_cv_prog_cc_c89=$ac_arg
2868 else
2869   echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872
2873 fi
2874
2875 rm -f core conftest.err conftest.$ac_objext
2876   test "x$ac_cv_prog_cc_c89" != "xno" && break
2877 done
2878 rm -f conftest.$ac_ext
2879 CC=$ac_save_CC
2880
2881 fi
2882 # AC_CACHE_VAL
2883 case "x$ac_cv_prog_cc_c89" in
2884   x)
2885     { echo "$as_me:$LINENO: result: none needed" >&5
2886 echo "${ECHO_T}none needed" >&6; } ;;
2887   xno)
2888     { echo "$as_me:$LINENO: result: unsupported" >&5
2889 echo "${ECHO_T}unsupported" >&6; } ;;
2890   *)
2891     CC="$CC $ac_cv_prog_cc_c89"
2892     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2893 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2894 esac
2895
2896
2897 ac_ext=c
2898 ac_cpp='$CPP $CPPFLAGS'
2899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2902
2903  ac_ext=cpp
2904 ac_cpp='$CXXCPP $CPPFLAGS'
2905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2908 if test -z "$CXX"; then
2909   if test -n "$CCC"; then
2910     CXX=$CCC
2911   else
2912     if test -n "$ac_tool_prefix"; then
2913   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2914   do
2915     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2916 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2919 if test "${ac_cv_prog_CXX+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922   if test -n "$CXX"; then
2923   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928   IFS=$as_save_IFS
2929   test -z "$as_dir" && as_dir=.
2930   for ac_exec_ext in '' $ac_executable_extensions; do
2931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934     break 2
2935   fi
2936 done
2937 done
2938 IFS=$as_save_IFS
2939
2940 fi
2941 fi
2942 CXX=$ac_cv_prog_CXX
2943 if test -n "$CXX"; then
2944   { echo "$as_me:$LINENO: result: $CXX" >&5
2945 echo "${ECHO_T}$CXX" >&6; }
2946 else
2947   { echo "$as_me:$LINENO: result: no" >&5
2948 echo "${ECHO_T}no" >&6; }
2949 fi
2950
2951
2952     test -n "$CXX" && break
2953   done
2954 fi
2955 if test -z "$CXX"; then
2956   ac_ct_CXX=$CXX
2957   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2958 do
2959   # Extract the first word of "$ac_prog", so it can be a program name with args.
2960 set dummy $ac_prog; ac_word=$2
2961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2964   echo $ECHO_N "(cached) $ECHO_C" >&6
2965 else
2966   if test -n "$ac_ct_CXX"; then
2967   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2968 else
2969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970 for as_dir in $PATH
2971 do
2972   IFS=$as_save_IFS
2973   test -z "$as_dir" && as_dir=.
2974   for ac_exec_ext in '' $ac_executable_extensions; do
2975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976     ac_cv_prog_ac_ct_CXX="$ac_prog"
2977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978     break 2
2979   fi
2980 done
2981 done
2982 IFS=$as_save_IFS
2983
2984 fi
2985 fi
2986 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2987 if test -n "$ac_ct_CXX"; then
2988   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2989 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2990 else
2991   { echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6; }
2993 fi
2994
2995
2996   test -n "$ac_ct_CXX" && break
2997 done
2998
2999   if test "x$ac_ct_CXX" = x; then
3000     CXX="g++"
3001   else
3002     case $cross_compiling:$ac_tool_warned in
3003 yes:)
3004 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3005 whose name does not start with the host triplet.  If you think this
3006 configuration is useful to you, please write to autoconf@gnu.org." >&5
3007 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3008 whose name does not start with the host triplet.  If you think this
3009 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3010 ac_tool_warned=yes ;;
3011 esac
3012     CXX=$ac_ct_CXX
3013   fi
3014 fi
3015
3016   fi
3017 fi
3018 # Provide some information about the compiler.
3019 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3020 ac_compiler=`set X $ac_compile; echo $2`
3021 { (ac_try="$ac_compiler --version >&5"
3022 case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_compiler --version >&5") 2>&5
3028   ac_status=$?
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); }
3031 { (ac_try="$ac_compiler -v >&5"
3032 case "(($ac_try" in
3033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034   *) ac_try_echo=$ac_try;;
3035 esac
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037   (eval "$ac_compiler -v >&5") 2>&5
3038   ac_status=$?
3039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040   (exit $ac_status); }
3041 { (ac_try="$ac_compiler -V >&5"
3042 case "(($ac_try" in
3043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044   *) ac_try_echo=$ac_try;;
3045 esac
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047   (eval "$ac_compiler -V >&5") 2>&5
3048   ac_status=$?
3049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050   (exit $ac_status); }
3051
3052 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3053 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3054 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3055   echo $ECHO_N "(cached) $ECHO_C" >&6
3056 else
3057   cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h.  */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h.  */
3063
3064 int
3065 main ()
3066 {
3067 #ifndef __GNUC__
3068        choke me
3069 #endif
3070
3071   ;
3072   return 0;
3073 }
3074 _ACEOF
3075 rm -f conftest.$ac_objext
3076 if { (ac_try="$ac_compile"
3077 case "(($ac_try" in
3078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079   *) ac_try_echo=$ac_try;;
3080 esac
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082   (eval "$ac_compile") 2>conftest.er1
3083   ac_status=$?
3084   grep -v '^ *+' conftest.er1 >conftest.err
3085   rm -f conftest.er1
3086   cat conftest.err >&5
3087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088   (exit $ac_status); } && {
3089          test -z "$ac_cxx_werror_flag" ||
3090          test ! -s conftest.err
3091        } && test -s conftest.$ac_objext; then
3092   ac_compiler_gnu=yes
3093 else
3094   echo "$as_me: failed program was:" >&5
3095 sed 's/^/| /' conftest.$ac_ext >&5
3096
3097         ac_compiler_gnu=no
3098 fi
3099
3100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3101 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3102
3103 fi
3104 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3105 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3106 GXX=`test $ac_compiler_gnu = yes && echo yes`
3107 ac_test_CXXFLAGS=${CXXFLAGS+set}
3108 ac_save_CXXFLAGS=$CXXFLAGS
3109 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3110 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3111 if test "${ac_cv_prog_cxx_g+set}" = set; then
3112   echo $ECHO_N "(cached) $ECHO_C" >&6
3113 else
3114   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3115    ac_cxx_werror_flag=yes
3116    ac_cv_prog_cxx_g=no
3117    CXXFLAGS="-g"
3118    cat >conftest.$ac_ext <<_ACEOF
3119 /* confdefs.h.  */
3120 _ACEOF
3121 cat confdefs.h >>conftest.$ac_ext
3122 cat >>conftest.$ac_ext <<_ACEOF
3123 /* end confdefs.h.  */
3124
3125 int
3126 main ()
3127 {
3128
3129   ;
3130   return 0;
3131 }
3132 _ACEOF
3133 rm -f conftest.$ac_objext
3134 if { (ac_try="$ac_compile"
3135 case "(($ac_try" in
3136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3137   *) ac_try_echo=$ac_try;;
3138 esac
3139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3140   (eval "$ac_compile") 2>conftest.er1
3141   ac_status=$?
3142   grep -v '^ *+' conftest.er1 >conftest.err
3143   rm -f conftest.er1
3144   cat conftest.err >&5
3145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); } && {
3147          test -z "$ac_cxx_werror_flag" ||
3148          test ! -s conftest.err
3149        } && test -s conftest.$ac_objext; then
3150   ac_cv_prog_cxx_g=yes
3151 else
3152   echo "$as_me: failed program was:" >&5
3153 sed 's/^/| /' conftest.$ac_ext >&5
3154
3155         CXXFLAGS=""
3156       cat >conftest.$ac_ext <<_ACEOF
3157 /* confdefs.h.  */
3158 _ACEOF
3159 cat confdefs.h >>conftest.$ac_ext
3160 cat >>conftest.$ac_ext <<_ACEOF
3161 /* end confdefs.h.  */
3162
3163 int
3164 main ()
3165 {
3166
3167   ;
3168   return 0;
3169 }
3170 _ACEOF
3171 rm -f conftest.$ac_objext
3172 if { (ac_try="$ac_compile"
3173 case "(($ac_try" in
3174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3175   *) ac_try_echo=$ac_try;;
3176 esac
3177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3178   (eval "$ac_compile") 2>conftest.er1
3179   ac_status=$?
3180   grep -v '^ *+' conftest.er1 >conftest.err
3181   rm -f conftest.er1
3182   cat conftest.err >&5
3183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184   (exit $ac_status); } && {
3185          test -z "$ac_cxx_werror_flag" ||
3186          test ! -s conftest.err
3187        } && test -s conftest.$ac_objext; then
3188   :
3189 else
3190   echo "$as_me: failed program was:" >&5
3191 sed 's/^/| /' conftest.$ac_ext >&5
3192
3193         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3194          CXXFLAGS="-g"
3195          cat >conftest.$ac_ext <<_ACEOF
3196 /* confdefs.h.  */
3197 _ACEOF
3198 cat confdefs.h >>conftest.$ac_ext
3199 cat >>conftest.$ac_ext <<_ACEOF
3200 /* end confdefs.h.  */
3201
3202 int
3203 main ()
3204 {
3205
3206   ;
3207   return 0;
3208 }
3209 _ACEOF
3210 rm -f conftest.$ac_objext
3211 if { (ac_try="$ac_compile"
3212 case "(($ac_try" in
3213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214   *) ac_try_echo=$ac_try;;
3215 esac
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217   (eval "$ac_compile") 2>conftest.er1
3218   ac_status=$?
3219   grep -v '^ *+' conftest.er1 >conftest.err
3220   rm -f conftest.er1
3221   cat conftest.err >&5
3222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223   (exit $ac_status); } && {
3224          test -z "$ac_cxx_werror_flag" ||
3225          test ! -s conftest.err
3226        } && test -s conftest.$ac_objext; then
3227   ac_cv_prog_cxx_g=yes
3228 else
3229   echo "$as_me: failed program was:" >&5
3230 sed 's/^/| /' conftest.$ac_ext >&5
3231
3232
3233 fi
3234
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 fi
3237
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 fi
3240
3241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3243 fi
3244 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3245 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3246 if test "$ac_test_CXXFLAGS" = set; then
3247   CXXFLAGS=$ac_save_CXXFLAGS
3248 elif test $ac_cv_prog_cxx_g = yes; then
3249   if test "$GXX" = yes; then
3250     CXXFLAGS="-g -O2"
3251   else
3252     CXXFLAGS="-g"
3253   fi
3254 else
3255   if test "$GXX" = yes; then
3256     CXXFLAGS="-O2"
3257   else
3258     CXXFLAGS=
3259   fi
3260 fi
3261 ac_ext=c
3262 ac_cpp='$CPP $CPPFLAGS'
3263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3266
3267
3268
3269
3270 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3271 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3272
3273 cat > conftest.c << EOF
3274 #include <stdlib.h>
3275 #include <stdio.h>
3276
3277 int main (int argc, char*argv)
3278 {
3279     int a,b;
3280     b=3;
3281     int c;
3282     c=4;
3283     return 0;
3284 }
3285 EOF
3286
3287 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3288 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3289   { echo "$as_me:$LINENO: result: yes" >&5
3290 echo "${ECHO_T}yes" >&6; }
3291   GCC_IS_OK=true
3292   export GCC_IS_OK
3293 else
3294   echo "configure: failed program was:" >&5
3295   cat conftest.c >&5
3296   { echo "$as_me:$LINENO: result: no" >&5
3297 echo "${ECHO_T}no" >&6; }
3298 fi
3299 rm -f conftest*
3300
3301
3302 if test "x$GCC_IS_OK" '=' "x";then
3303     echo "***************************************************"
3304     echo "* Your gcc is too old to compile this!"
3305     echo "* "
3306     echo "* The last version compileable by this compiler is "
3307     echo "* swftools 0.7.0, which you can download from "
3308     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3309     echo "* ."
3310     echo "* Newer versions require at least gcc 3.0.0 "
3311     echo "***************************************************"
3312     exit 1
3313 fi
3314
3315 if test "x$CHECKMEM" '!=' "x";then
3316     CC="ccmalloc $CC"
3317     CXX="ccmalloc $CXX"
3318     #echo running again
3319     #unset ac_cv_prog_CC
3320     #unset ac_cv_prog_CXX
3321     #AC_PROG_CC
3322     #AC_PROG_CXX
3323 fi
3324  ac_ext=c
3325 ac_cpp='$CPP $CPPFLAGS'
3326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3329 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3330 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3331 # On Suns, sometimes $CPP names a directory.
3332 if test -n "$CPP" && test -d "$CPP"; then
3333   CPP=
3334 fi
3335 if test -z "$CPP"; then
3336   if test "${ac_cv_prog_CPP+set}" = set; then
3337   echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339       # Double quotes because CPP needs to be expanded
3340     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3341     do
3342       ac_preproc_ok=false
3343 for ac_c_preproc_warn_flag in '' yes
3344 do
3345   # Use a header file that comes with gcc, so configuring glibc
3346   # with a fresh cross-compiler works.
3347   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3348   # <limits.h> exists even on freestanding compilers.
3349   # On the NeXT, cc -E runs the code through the compiler's parser,
3350   # not just through cpp. "Syntax error" is here to catch this case.
3351   cat >conftest.$ac_ext <<_ACEOF
3352 /* confdefs.h.  */
3353 _ACEOF
3354 cat confdefs.h >>conftest.$ac_ext
3355 cat >>conftest.$ac_ext <<_ACEOF
3356 /* end confdefs.h.  */
3357 #ifdef __STDC__
3358 # include <limits.h>
3359 #else
3360 # include <assert.h>
3361 #endif
3362                      Syntax error
3363 _ACEOF
3364 if { (ac_try="$ac_cpp conftest.$ac_ext"
3365 case "(($ac_try" in
3366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367   *) ac_try_echo=$ac_try;;
3368 esac
3369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3371   ac_status=$?
3372   grep -v '^ *+' conftest.er1 >conftest.err
3373   rm -f conftest.er1
3374   cat conftest.err >&5
3375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376   (exit $ac_status); } >/dev/null && {
3377          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3378          test ! -s conftest.err
3379        }; then
3380   :
3381 else
3382   echo "$as_me: failed program was:" >&5
3383 sed 's/^/| /' conftest.$ac_ext >&5
3384
3385   # Broken: fails on valid input.
3386 continue
3387 fi
3388
3389 rm -f conftest.err conftest.$ac_ext
3390
3391   # OK, works on sane cases.  Now check whether nonexistent headers
3392   # can be detected and how.
3393   cat >conftest.$ac_ext <<_ACEOF
3394 /* confdefs.h.  */
3395 _ACEOF
3396 cat confdefs.h >>conftest.$ac_ext
3397 cat >>conftest.$ac_ext <<_ACEOF
3398 /* end confdefs.h.  */
3399 #include <ac_nonexistent.h>
3400 _ACEOF
3401 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 case "(($ac_try" in
3403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404   *) ac_try_echo=$ac_try;;
3405 esac
3406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3407   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } >/dev/null && {
3414          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3415          test ! -s conftest.err
3416        }; then
3417   # Broken: success on invalid input.
3418 continue
3419 else
3420   echo "$as_me: failed program was:" >&5
3421 sed 's/^/| /' conftest.$ac_ext >&5
3422
3423   # Passes both tests.
3424 ac_preproc_ok=:
3425 break
3426 fi
3427
3428 rm -f conftest.err conftest.$ac_ext
3429
3430 done
3431 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3432 rm -f conftest.err conftest.$ac_ext
3433 if $ac_preproc_ok; then
3434   break
3435 fi
3436
3437     done
3438     ac_cv_prog_CPP=$CPP
3439
3440 fi
3441   CPP=$ac_cv_prog_CPP
3442 else
3443   ac_cv_prog_CPP=$CPP
3444 fi
3445 { echo "$as_me:$LINENO: result: $CPP" >&5
3446 echo "${ECHO_T}$CPP" >&6; }
3447 ac_preproc_ok=false
3448 for ac_c_preproc_warn_flag in '' yes
3449 do
3450   # Use a header file that comes with gcc, so configuring glibc
3451   # with a fresh cross-compiler works.
3452   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3453   # <limits.h> exists even on freestanding compilers.
3454   # On the NeXT, cc -E runs the code through the compiler's parser,
3455   # not just through cpp. "Syntax error" is here to catch this case.
3456   cat >conftest.$ac_ext <<_ACEOF
3457 /* confdefs.h.  */
3458 _ACEOF
3459 cat confdefs.h >>conftest.$ac_ext
3460 cat >>conftest.$ac_ext <<_ACEOF
3461 /* end confdefs.h.  */
3462 #ifdef __STDC__
3463 # include <limits.h>
3464 #else
3465 # include <assert.h>
3466 #endif
3467                      Syntax error
3468 _ACEOF
3469 if { (ac_try="$ac_cpp conftest.$ac_ext"
3470 case "(($ac_try" in
3471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472   *) ac_try_echo=$ac_try;;
3473 esac
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3476   ac_status=$?
3477   grep -v '^ *+' conftest.er1 >conftest.err
3478   rm -f conftest.er1
3479   cat conftest.err >&5
3480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481   (exit $ac_status); } >/dev/null && {
3482          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3483          test ! -s conftest.err
3484        }; then
3485   :
3486 else
3487   echo "$as_me: failed program was:" >&5
3488 sed 's/^/| /' conftest.$ac_ext >&5
3489
3490   # Broken: fails on valid input.
3491 continue
3492 fi
3493
3494 rm -f conftest.err conftest.$ac_ext
3495
3496   # OK, works on sane cases.  Now check whether nonexistent headers
3497   # can be detected and how.
3498   cat >conftest.$ac_ext <<_ACEOF
3499 /* confdefs.h.  */
3500 _ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h.  */
3504 #include <ac_nonexistent.h>
3505 _ACEOF
3506 if { (ac_try="$ac_cpp conftest.$ac_ext"
3507 case "(($ac_try" in
3508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509   *) ac_try_echo=$ac_try;;
3510 esac
3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3513   ac_status=$?
3514   grep -v '^ *+' conftest.er1 >conftest.err
3515   rm -f conftest.er1
3516   cat conftest.err >&5
3517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3518   (exit $ac_status); } >/dev/null && {
3519          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3520          test ! -s conftest.err
3521        }; then
3522   # Broken: success on invalid input.
3523 continue
3524 else
3525   echo "$as_me: failed program was:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3527
3528   # Passes both tests.
3529 ac_preproc_ok=:
3530 break
3531 fi
3532
3533 rm -f conftest.err conftest.$ac_ext
3534
3535 done
3536 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3537 rm -f conftest.err conftest.$ac_ext
3538 if $ac_preproc_ok; then
3539   :
3540 else
3541   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3542 See \`config.log' for more details." >&5
3543 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3544 See \`config.log' for more details." >&2;}
3545    { (exit 1); exit 1; }; }
3546 fi
3547
3548 ac_ext=c
3549 ac_cpp='$CPP $CPPFLAGS'
3550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553
3554
3555  if test -n "$ac_tool_prefix"; then
3556   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3557 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3560 if test "${ac_cv_prog_RANLIB+set}" = set; then
3561   echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563   if test -n "$RANLIB"; then
3564   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569   IFS=$as_save_IFS
3570   test -z "$as_dir" && as_dir=.
3571   for ac_exec_ext in '' $ac_executable_extensions; do
3572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575     break 2
3576   fi
3577 done
3578 done
3579 IFS=$as_save_IFS
3580
3581 fi
3582 fi
3583 RANLIB=$ac_cv_prog_RANLIB
3584 if test -n "$RANLIB"; then
3585   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3586 echo "${ECHO_T}$RANLIB" >&6; }
3587 else
3588   { echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6; }
3590 fi
3591
3592
3593 fi
3594 if test -z "$ac_cv_prog_RANLIB"; then
3595   ac_ct_RANLIB=$RANLIB
3596   # Extract the first word of "ranlib", so it can be a program name with args.
3597 set dummy ranlib; ac_word=$2
3598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3600 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3601   echo $ECHO_N "(cached) $ECHO_C" >&6
3602 else
3603   if test -n "$ac_ct_RANLIB"; then
3604   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3608 do
3609   IFS=$as_save_IFS
3610   test -z "$as_dir" && as_dir=.
3611   for ac_exec_ext in '' $ac_executable_extensions; do
3612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613     ac_cv_prog_ac_ct_RANLIB="ranlib"
3614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3615     break 2
3616   fi
3617 done
3618 done
3619 IFS=$as_save_IFS
3620
3621 fi
3622 fi
3623 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3624 if test -n "$ac_ct_RANLIB"; then
3625   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3626 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3627 else
3628   { echo "$as_me:$LINENO: result: no" >&5
3629 echo "${ECHO_T}no" >&6; }
3630 fi
3631
3632   if test "x$ac_ct_RANLIB" = x; then
3633     RANLIB=":"
3634   else
3635     case $cross_compiling:$ac_tool_warned in
3636 yes:)
3637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3638 whose name does not start with the host triplet.  If you think this
3639 configuration is useful to you, please write to autoconf@gnu.org." >&5
3640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3641 whose name does not start with the host triplet.  If you think this
3642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3643 ac_tool_warned=yes ;;
3644 esac
3645     RANLIB=$ac_ct_RANLIB
3646   fi
3647 else
3648   RANLIB="$ac_cv_prog_RANLIB"
3649 fi
3650
3651  { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3652 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3653 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3654 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   cat >conftest.make <<\_ACEOF
3658 SHELL = /bin/sh
3659 all:
3660         @echo '@@@%%%=$(MAKE)=@@@%%%'
3661 _ACEOF
3662 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3663 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3664   *@@@%%%=?*=@@@%%%*)
3665     eval ac_cv_prog_make_${ac_make}_set=yes;;
3666   *)
3667     eval ac_cv_prog_make_${ac_make}_set=no;;
3668 esac
3669 rm -f conftest.make
3670 fi
3671 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3672   { echo "$as_me:$LINENO: result: yes" >&5
3673 echo "${ECHO_T}yes" >&6; }
3674   SET_MAKE=
3675 else
3676   { echo "$as_me:$LINENO: result: no" >&5
3677 echo "${ECHO_T}no" >&6; }
3678   SET_MAKE="MAKE=${MAKE-make}"
3679 fi
3680
3681  # Find a good install program.  We prefer a C program (faster),
3682 # so one script is as good as another.  But avoid the broken or
3683 # incompatible versions:
3684 # SysV /etc/install, /usr/sbin/install
3685 # SunOS /usr/etc/install
3686 # IRIX /sbin/install
3687 # AIX /bin/install
3688 # AmigaOS /C/install, which installs bootblocks on floppy discs
3689 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3690 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3691 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3692 # OS/2's system install, which has a completely different semantic
3693 # ./install, which can be erroneously created by make from ./install.sh.
3694 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3695 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3696 if test -z "$INSTALL"; then
3697 if test "${ac_cv_path_install+set}" = set; then
3698   echo $ECHO_N "(cached) $ECHO_C" >&6
3699 else
3700   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703   IFS=$as_save_IFS
3704   test -z "$as_dir" && as_dir=.
3705   # Account for people who put trailing slashes in PATH elements.
3706 case $as_dir/ in
3707   ./ | .// | /cC/* | \
3708   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3709   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3710   /usr/ucb/* ) ;;
3711   *)
3712     # OSF1 and SCO ODT 3.0 have their own names for install.
3713     # Don't use installbsd from OSF since it installs stuff as root
3714     # by default.
3715     for ac_prog in ginstall scoinst install; do
3716       for ac_exec_ext in '' $ac_executable_extensions; do
3717         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3718           if test $ac_prog = install &&
3719             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3720             # AIX install.  It has an incompatible calling convention.
3721             :
3722           elif test $ac_prog = install &&
3723             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3724             # program-specific install script used by HP pwplus--don't use.
3725             :
3726           else
3727             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3728             break 3
3729           fi
3730         fi
3731       done
3732     done
3733     ;;
3734 esac
3735 done
3736 IFS=$as_save_IFS
3737
3738
3739 fi
3740   if test "${ac_cv_path_install+set}" = set; then
3741     INSTALL=$ac_cv_path_install
3742   else
3743     # As a last resort, use the slow shell script.  Don't cache a
3744     # value for INSTALL within a source directory, because that will
3745     # break other packages using the cache if that directory is
3746     # removed, or if the value is a relative name.
3747     INSTALL=$ac_install_sh
3748   fi
3749 fi
3750 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3751 echo "${ECHO_T}$INSTALL" >&6; }
3752
3753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3754 # It thinks the first close brace ends the variable substitution.
3755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3756
3757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3758
3759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3760
3761  { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3762 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3763 LN_S=$as_ln_s
3764 if test "$LN_S" = "ln -s"; then
3765   { echo "$as_me:$LINENO: result: yes" >&5
3766 echo "${ECHO_T}yes" >&6; }
3767 else
3768   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3769 echo "${ECHO_T}no, using $LN_S" >&6; }
3770 fi
3771
3772  for ac_prog in gzip uncompress compress
3773 do
3774   # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3778 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3779   echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781   if test -n "$UNCOMPRESS"; then
3782   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3783 else
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3786 do
3787   IFS=$as_save_IFS
3788   test -z "$as_dir" && as_dir=.
3789   for ac_exec_ext in '' $ac_executable_extensions; do
3790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3791     ac_cv_prog_UNCOMPRESS="$ac_prog"
3792     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3793     break 2
3794   fi
3795 done
3796 done
3797 IFS=$as_save_IFS
3798
3799 fi
3800 fi
3801 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3802 if test -n "$UNCOMPRESS"; then
3803   { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3804 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3805 else
3806   { echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6; }
3808 fi
3809
3810
3811   test -n "$UNCOMPRESS" && break
3812 done
3813
3814
3815
3816 OBJEXT="o"
3817 AREXT=".a"
3818 CXXLIBS="-lstdc++"
3819
3820
3821
3822 if test "x$EXEEXT" = "x.exe";then
3823     OBJEXT="obj"
3824     AREXT=".lib"
3825     CXXLIBS=""
3826 fi
3827
3828
3829
3830
3831 { echo "$as_me:$LINENO: checking host system type" >&5
3832 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3833 if test "${ac_cv_host+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   if test "x$host_alias" = x; then
3837   ac_cv_host=$ac_cv_build
3838 else
3839   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3840     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3841 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3842    { (exit 1); exit 1; }; }
3843 fi
3844
3845 fi
3846 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3847 echo "${ECHO_T}$ac_cv_host" >&6; }
3848 case $ac_cv_host in
3849 *-*-*) ;;
3850 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3851 echo "$as_me: error: invalid value of canonical host" >&2;}
3852    { (exit 1); exit 1; }; };;
3853 esac
3854 host=$ac_cv_host
3855 ac_save_IFS=$IFS; IFS='-'
3856 set x $ac_cv_host
3857 shift
3858 host_cpu=$1
3859 host_vendor=$2
3860 shift; shift
3861 # Remember, the first character of IFS is used to create $*,
3862 # except with old shells:
3863 host_os=$*
3864 IFS=$ac_save_IFS
3865 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3866
3867
3868
3869
3870 { echo "$as_me:$LINENO: checking for target system" >&5
3871 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
3872 CYGWIN=
3873 MINGW=
3874 case $host_os in
3875     *cygwin* ) CYGWIN=yes;;
3876     *mingw* ) MINGW=yes;;
3877 esac
3878
3879 AR=ar
3880 if test "x$MINGW" = "xyes"; then
3881     #fix for the debian distribution of mingw
3882     if test -x "/usr/i586-mingw32msvc/bin/ar";then
3883         AR="/usr/i586-mingw32msvc/bin/ar"
3884     fi
3885     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
3886         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
3887     fi
3888     #fix for the gentoo distribution of mingw
3889     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
3890         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
3891     fi
3892     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
3893         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
3894     fi
3895     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
3896         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
3897     fi
3898 fi
3899
3900
3901
3902 if test "x${CYGWIN}" = "xyes"; then
3903
3904 cat >>confdefs.h <<\_ACEOF
3905 #define CYGWIN 1
3906 _ACEOF
3907
3908     { echo "$as_me:$LINENO: result: cygwin" >&5
3909 echo "${ECHO_T}cygwin" >&6; }
3910 else
3911     if test "x${MINGW}" = "xyes"; then
3912
3913 cat >>confdefs.h <<\_ACEOF
3914 #define MINGW 1
3915 _ACEOF
3916
3917         WIN32=1
3918
3919 cat >>confdefs.h <<\_ACEOF
3920 #define WIN32 1
3921 _ACEOF
3922
3923         LIBS="$LIBS -lws2_32 -lgdi32"
3924         { echo "$as_me:$LINENO: result: mingw" >&5
3925 echo "${ECHO_T}mingw" >&6; }
3926     else
3927         LINUX=1
3928         export LINUX
3929
3930 cat >>confdefs.h <<\_ACEOF
3931 #define LINUX 1
3932 _ACEOF
3933
3934         { echo "$as_me:$LINENO: result: " >&5
3935 echo "${ECHO_T}" >&6; }
3936     fi
3937 fi
3938
3939
3940 SLEXT="so"
3941 if test "x${MINGW}" != "xyes"; then
3942     # no mingW
3943
3944 cat >>confdefs.h <<\_ACEOF
3945 #define O_BINARY 0
3946 _ACEOF
3947
3948 else
3949     # mingW
3950     SLEXT="dll"
3951     CXXLIBS=""
3952 fi
3953 export SLEXT
3954
3955
3956
3957 # The following tries to make use of includes and libraries in
3958 # /usr/local, too. Notice: A -I/usr/local/include might break
3959 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
3960 # especially on systems which link /usr/local to /usr, so it has yet
3961 # to be seen how useful this is.
3962 if test -d /usr/local/lib; then
3963     LDFLAGS="$LDFLAGS -L/usr/local/lib"
3964 fi
3965 if test -d /usr/local/include; then
3966 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
3967 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3968     echo > /dev/null
3969 fi
3970 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
3971     # if the user has a special prefix (like /opt), there might also be $prefix/lib
3972     # and $prefix/include, which should be included in our search paths for libraries
3973     # and includes.
3974     LDFLAGS="$LDFLAGS -L${libdir}"
3975     CPPFLAGS="$CPPFLAGS -I${includedir}"
3976     # TODO- test whether gcc still works after this
3977 fi
3978
3979 #Mac OS:
3980 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
3981
3982
3983 # this must be done after (I believe) AC_PROG_MAKE_SET
3984 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
3985     STRIP="@echo debug enabled, not stripping "
3986     export STRIP
3987
3988 fi
3989
3990
3991
3992 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
3993 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
3994 if test "${ac_cv_lib_m_sin+set}" = set; then
3995   echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997   ac_check_lib_save_LIBS=$LIBS
3998 LIBS="-lm  $LIBS"
3999 cat >conftest.$ac_ext <<_ACEOF
4000 /* confdefs.h.  */
4001 _ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h.  */
4005
4006 /* Override any GCC internal prototype to avoid an error.
4007    Use char because int might match the return type of a GCC
4008    builtin and then its argument prototype would still apply.  */
4009 #ifdef __cplusplus
4010 extern "C"
4011 #endif
4012 char sin ();
4013 int
4014 main ()
4015 {
4016 return sin ();
4017   ;
4018   return 0;
4019 }
4020 _ACEOF
4021 rm -f conftest.$ac_objext conftest$ac_exeext
4022 if { (ac_try="$ac_link"
4023 case "(($ac_try" in
4024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4025   *) ac_try_echo=$ac_try;;
4026 esac
4027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4028   (eval "$ac_link") 2>conftest.er1
4029   ac_status=$?
4030   grep -v '^ *+' conftest.er1 >conftest.err
4031   rm -f conftest.er1
4032   cat conftest.err >&5
4033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4034   (exit $ac_status); } && {
4035          test -z "$ac_c_werror_flag" ||
4036          test ! -s conftest.err
4037        } && test -s conftest$ac_exeext &&
4038        $as_test_x conftest$ac_exeext; then
4039   ac_cv_lib_m_sin=yes
4040 else
4041   echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044         ac_cv_lib_m_sin=no
4045 fi
4046
4047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4048       conftest$ac_exeext conftest.$ac_ext
4049 LIBS=$ac_check_lib_save_LIBS
4050 fi
4051 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4052 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4053 if test $ac_cv_lib_m_sin = yes; then
4054   cat >>confdefs.h <<_ACEOF
4055 #define HAVE_LIBM 1
4056 _ACEOF
4057
4058   LIBS="-lm $LIBS"
4059
4060 else
4061   echo "Error: Math library not found.";
4062  exit;
4063
4064 fi
4065
4066
4067 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4068 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4069 if test "${ac_cv_lib_z_deflate+set}" = set; then
4070   echo $ECHO_N "(cached) $ECHO_C" >&6
4071 else
4072   ac_check_lib_save_LIBS=$LIBS
4073 LIBS="-lz  $LIBS"
4074 cat >conftest.$ac_ext <<_ACEOF
4075 /* confdefs.h.  */
4076 _ACEOF
4077 cat confdefs.h >>conftest.$ac_ext
4078 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h.  */
4080
4081 /* Override any GCC internal prototype to avoid an error.
4082    Use char because int might match the return type of a GCC
4083    builtin and then its argument prototype would still apply.  */
4084 #ifdef __cplusplus
4085 extern "C"
4086 #endif
4087 char deflate ();
4088 int
4089 main ()
4090 {
4091 return deflate ();
4092   ;
4093   return 0;
4094 }
4095 _ACEOF
4096 rm -f conftest.$ac_objext conftest$ac_exeext
4097 if { (ac_try="$ac_link"
4098 case "(($ac_try" in
4099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4100   *) ac_try_echo=$ac_try;;
4101 esac
4102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4103   (eval "$ac_link") 2>conftest.er1
4104   ac_status=$?
4105   grep -v '^ *+' conftest.er1 >conftest.err
4106   rm -f conftest.er1
4107   cat conftest.err >&5
4108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109   (exit $ac_status); } && {
4110          test -z "$ac_c_werror_flag" ||
4111          test ! -s conftest.err
4112        } && test -s conftest$ac_exeext &&
4113        $as_test_x conftest$ac_exeext; then
4114   ac_cv_lib_z_deflate=yes
4115 else
4116   echo "$as_me: failed program was:" >&5
4117 sed 's/^/| /' conftest.$ac_ext >&5
4118
4119         ac_cv_lib_z_deflate=no
4120 fi
4121
4122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4123       conftest$ac_exeext conftest.$ac_ext
4124 LIBS=$ac_check_lib_save_LIBS
4125 fi
4126 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4127 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4128 if test $ac_cv_lib_z_deflate = yes; then
4129   cat >>confdefs.h <<_ACEOF
4130 #define HAVE_LIBZ 1
4131 _ACEOF
4132
4133   LIBS="-lz $LIBS"
4134
4135 else
4136   ZLIBMISSING=true
4137 fi
4138
4139
4140 if test "x$ZLIBMISSING" = "xtrue";then
4141     echo
4142     echo "ERROR:"
4143     echo "You need zlib to compile swftools"
4144     echo
4145     exit
4146 fi
4147
4148
4149 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4150 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4151 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4152   echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154   ac_check_lib_save_LIBS=$LIBS
4155 LIBS="-ljpeg  $LIBS"
4156 cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h.  */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h.  */
4162
4163 /* Override any GCC internal prototype to avoid an error.
4164    Use char because int might match the return type of a GCC
4165    builtin and then its argument prototype would still apply.  */
4166 #ifdef __cplusplus
4167 extern "C"
4168 #endif
4169 char jpeg_write_raw_data ();
4170 int
4171 main ()
4172 {
4173 return jpeg_write_raw_data ();
4174   ;
4175   return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (ac_try="$ac_link"
4180 case "(($ac_try" in
4181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182   *) ac_try_echo=$ac_try;;
4183 esac
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185   (eval "$ac_link") 2>conftest.er1
4186   ac_status=$?
4187   grep -v '^ *+' conftest.er1 >conftest.err
4188   rm -f conftest.er1
4189   cat conftest.err >&5
4190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4191   (exit $ac_status); } && {
4192          test -z "$ac_c_werror_flag" ||
4193          test ! -s conftest.err
4194        } && test -s conftest$ac_exeext &&
4195        $as_test_x conftest$ac_exeext; then
4196   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4197 else
4198   echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4202 fi
4203
4204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4205       conftest$ac_exeext conftest.$ac_ext
4206 LIBS=$ac_check_lib_save_LIBS
4207 fi
4208 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4209 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4210 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4211   cat >>confdefs.h <<_ACEOF
4212 #define HAVE_LIBJPEG 1
4213 _ACEOF
4214
4215   LIBS="-ljpeg $LIBS"
4216
4217 else
4218   JPEGLIBMISSING=true
4219 fi
4220
4221
4222 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4223 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4224 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4225   echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227   ac_check_lib_save_LIBS=$LIBS
4228 LIBS="-lungif  $LIBS"
4229 cat >conftest.$ac_ext <<_ACEOF
4230 /* confdefs.h.  */
4231 _ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h.  */
4235
4236 /* Override any GCC internal prototype to avoid an error.
4237    Use char because int might match the return type of a GCC
4238    builtin and then its argument prototype would still apply.  */
4239 #ifdef __cplusplus
4240 extern "C"
4241 #endif
4242 char DGifOpen ();
4243 int
4244 main ()
4245 {
4246 return DGifOpen ();
4247   ;
4248   return 0;
4249 }
4250 _ACEOF
4251 rm -f conftest.$ac_objext conftest$ac_exeext
4252 if { (ac_try="$ac_link"
4253 case "(($ac_try" in
4254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4255   *) ac_try_echo=$ac_try;;
4256 esac
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258   (eval "$ac_link") 2>conftest.er1
4259   ac_status=$?
4260   grep -v '^ *+' conftest.er1 >conftest.err
4261   rm -f conftest.er1
4262   cat conftest.err >&5
4263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264   (exit $ac_status); } && {
4265          test -z "$ac_c_werror_flag" ||
4266          test ! -s conftest.err
4267        } && test -s conftest$ac_exeext &&
4268        $as_test_x conftest$ac_exeext; then
4269   ac_cv_lib_ungif_DGifOpen=yes
4270 else
4271   echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4273
4274         ac_cv_lib_ungif_DGifOpen=no
4275 fi
4276
4277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4278       conftest$ac_exeext conftest.$ac_ext
4279 LIBS=$ac_check_lib_save_LIBS
4280 fi
4281 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4282 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4283 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4284   cat >>confdefs.h <<_ACEOF
4285 #define HAVE_LIBUNGIF 1
4286 _ACEOF
4287
4288   LIBS="-lungif $LIBS"
4289
4290 else
4291   UNGIFMISSING=true
4292 fi
4293
4294 if test "$UNGIFMISSING";then
4295     UNGIFMISSING=
4296
4297 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4298 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4299 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4300   echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302   ac_check_lib_save_LIBS=$LIBS
4303 LIBS="-lgif  $LIBS"
4304 cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h.  */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h.  */
4310
4311 /* Override any GCC internal prototype to avoid an error.
4312    Use char because int might match the return type of a GCC
4313    builtin and then its argument prototype would still apply.  */
4314 #ifdef __cplusplus
4315 extern "C"
4316 #endif
4317 char DGifOpen ();
4318 int
4319 main ()
4320 {
4321 return DGifOpen ();
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 rm -f conftest.$ac_objext conftest$ac_exeext
4327 if { (ac_try="$ac_link"
4328 case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333   (eval "$ac_link") 2>conftest.er1
4334   ac_status=$?
4335   grep -v '^ *+' conftest.er1 >conftest.err
4336   rm -f conftest.er1
4337   cat conftest.err >&5
4338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4339   (exit $ac_status); } && {
4340          test -z "$ac_c_werror_flag" ||
4341          test ! -s conftest.err
4342        } && test -s conftest$ac_exeext &&
4343        $as_test_x conftest$ac_exeext; then
4344   ac_cv_lib_gif_DGifOpen=yes
4345 else
4346   echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4348
4349         ac_cv_lib_gif_DGifOpen=no
4350 fi
4351
4352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4353       conftest$ac_exeext conftest.$ac_ext
4354 LIBS=$ac_check_lib_save_LIBS
4355 fi
4356 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4357 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4358 if test $ac_cv_lib_gif_DGifOpen = yes; then
4359   cat >>confdefs.h <<_ACEOF
4360 #define HAVE_LIBGIF 1
4361 _ACEOF
4362
4363   LIBS="-lgif $LIBS"
4364
4365 else
4366   UNGIFMISSING=true
4367 fi
4368
4369 fi
4370
4371
4372 { echo "$as_me:$LINENO: checking for byte order" >&5
4373 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4374 if test "$cross_compiling" = yes; then
4375   CROSSCOMPILE=1
4376 else
4377   cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h.  */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h.  */
4383
4384 int main (int argc, char *argv[])
4385 {
4386     int i = 1;
4387     return *(char*)&i;
4388 }
4389
4390 _ACEOF
4391 rm -f conftest$ac_exeext
4392 if { (ac_try="$ac_link"
4393 case "(($ac_try" in
4394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395   *) ac_try_echo=$ac_try;;
4396 esac
4397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4398   (eval "$ac_link") 2>&5
4399   ac_status=$?
4400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4402   { (case "(($ac_try" in
4403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404   *) ac_try_echo=$ac_try;;
4405 esac
4406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4407   (eval "$ac_try") 2>&5
4408   ac_status=$?
4409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410   (exit $ac_status); }; }; then
4411   BIGENDIAN=1
4412 else
4413   echo "$as_me: program exited with status $ac_status" >&5
4414 echo "$as_me: failed program was:" >&5
4415 sed 's/^/| /' conftest.$ac_ext >&5
4416
4417 ( exit $ac_status )
4418 LITTLEENDIAN=1
4419 fi
4420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4421 fi
4422
4423
4424 export CROSSCOMPILE
4425
4426 if test "x${CROSSCOMPILE}" = "x1"; then
4427  { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4428 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4429  { echo "$as_me:$LINENO: checking target system type" >&5
4430 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4431 if test "${ac_cv_target+set}" = set; then
4432   echo $ECHO_N "(cached) $ECHO_C" >&6
4433 else
4434   if test "x$target_alias" = x; then
4435   ac_cv_target=$ac_cv_host
4436 else
4437   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4438     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4439 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4440    { (exit 1); exit 1; }; }
4441 fi
4442
4443 fi
4444 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4445 echo "${ECHO_T}$ac_cv_target" >&6; }
4446 case $ac_cv_target in
4447 *-*-*) ;;
4448 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4449 echo "$as_me: error: invalid value of canonical target" >&2;}
4450    { (exit 1); exit 1; }; };;
4451 esac
4452 target=$ac_cv_target
4453 ac_save_IFS=$IFS; IFS='-'
4454 set x $ac_cv_target
4455 shift
4456 target_cpu=$1
4457 target_vendor=$2
4458 shift; shift
4459 # Remember, the first character of IFS is used to create $*,
4460 # except with old shells:
4461 target_os=$*
4462 IFS=$ac_save_IFS
4463 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4464
4465
4466 # The aliases save the names the user supplied, while $host etc.
4467 # will get canonicalized.
4468 test -n "$target_alias" &&
4469   test "$program_prefix$program_suffix$program_transform_name" = \
4470     NONENONEs,x,x, &&
4471   program_prefix=${target_alias}-
4472  { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4473 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4474  case "${target}" in
4475   *86* | *-pc-* )
4476      LITTLEENDIAN=1
4477      ;;
4478   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4479      BIGENDIAN=1
4480      ;;
4481  esac
4482 fi
4483
4484 export LITTLEENDIAN
4485 if test "x${LITTLEENDIAN}" = "x1"; then
4486 { echo "$as_me:$LINENO: result: little endian" >&5
4487 echo "${ECHO_T}little endian" >&6; }
4488 BYTEORDERCHECKOK=1
4489 fi
4490 export BIGENDIAN
4491 if test "x${BIGENDIAN}" = "x1"; then
4492 { echo "$as_me:$LINENO: result: big endian" >&5
4493 echo "${ECHO_T}big endian" >&6; }
4494 BYTEORDERCHECKOK=1
4495 WORDS_BIGENDIAN=1
4496 export WORDS_BIGENDIAN
4497
4498 cat >>confdefs.h <<\_ACEOF
4499 #define WORDS_BIGENDIAN 1
4500 _ACEOF
4501
4502 fi
4503 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4504 { echo "$as_me:$LINENO: result: unknown" >&5
4505 echo "${ECHO_T}unknown" >&6; }
4506 echo Byte order could not determined.
4507 exit 1
4508 fi
4509
4510
4511
4512 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4513 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4514 if test "$cross_compiling" = yes; then
4515   CROSSCOMPILE=1
4516 else
4517   cat >conftest.$ac_ext <<_ACEOF
4518 /* confdefs.h.  */
4519 _ACEOF
4520 cat confdefs.h >>conftest.$ac_ext
4521 cat >>conftest.$ac_ext <<_ACEOF
4522 /* end confdefs.h.  */
4523
4524 #include "stdlib.h"
4525 int main (int argc, char*argv[])
4526 {
4527     return system("test `touch config.tmp2`");
4528 }
4529
4530 _ACEOF
4531 rm -f conftest$ac_exeext
4532 if { (ac_try="$ac_link"
4533 case "(($ac_try" in
4534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535   *) ac_try_echo=$ac_try;;
4536 esac
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538   (eval "$ac_link") 2>&5
4539   ac_status=$?
4540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4542   { (case "(($ac_try" in
4543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544   *) ac_try_echo=$ac_try;;
4545 esac
4546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4547   (eval "$ac_try") 2>&5
4548   ac_status=$?
4549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550   (exit $ac_status); }; }; then
4551   OK=OK
4552 else
4553   echo "$as_me: program exited with status $ac_status" >&5
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4556
4557 fi
4558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4559 fi
4560
4561
4562
4563 if test "x${OK}" = "xOK";then
4564     test -f config.tmp2 || OK=
4565 fi
4566
4567 if test "x${CROSSCOMPILE}" = "x1";then
4568     OK=no;
4569 fi
4570 if test "x${OK}" = "xOK";then
4571 rm -f config.tmp2
4572 { echo "$as_me:$LINENO: result: yes" >&5
4573 echo "${ECHO_T}yes" >&6; }
4574 SYSTEM_BACKTICKS=1
4575 export SYSTEM_BACKTICKS
4576
4577 cat >>confdefs.h <<\_ACEOF
4578 #define SYSTEM_BACKTICKS 1
4579 _ACEOF
4580
4581 else
4582 { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4584 fi
4585
4586
4587
4588 test "$program_prefix" != NONE &&
4589   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4590 # Use a double $ so make ignores it.
4591 test "$program_suffix" != NONE &&
4592   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4593 # Double any \ or $.  echo might interpret backslashes.
4594 # By default was `s,x,x', remove it if useless.
4595 cat <<\_ACEOF >conftest.sed
4596 s/[\\$]/&&/g;s/;s,x,x,$//
4597 _ACEOF
4598 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4599 rm -f conftest.sed
4600
4601
4602  ac_config_headers="$ac_config_headers config.h"
4603
4604
4605
4606
4607
4608
4609 ac_header_dirent=no
4610 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4611   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4612 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4613 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4615   echo $ECHO_N "(cached) $ECHO_C" >&6
4616 else
4617   cat >conftest.$ac_ext <<_ACEOF
4618 /* confdefs.h.  */
4619 _ACEOF
4620 cat confdefs.h >>conftest.$ac_ext
4621 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h.  */
4623 #include <sys/types.h>
4624 #include <$ac_hdr>
4625
4626 int
4627 main ()
4628 {
4629 if ((DIR *) 0)
4630 return 0;
4631   ;
4632   return 0;
4633 }
4634 _ACEOF
4635 rm -f conftest.$ac_objext
4636 if { (ac_try="$ac_compile"
4637 case "(($ac_try" in
4638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4639   *) ac_try_echo=$ac_try;;
4640 esac
4641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4642   (eval "$ac_compile") 2>conftest.er1
4643   ac_status=$?
4644   grep -v '^ *+' conftest.er1 >conftest.err
4645   rm -f conftest.er1
4646   cat conftest.err >&5
4647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648   (exit $ac_status); } && {
4649          test -z "$ac_c_werror_flag" ||
4650          test ! -s conftest.err
4651        } && test -s conftest.$ac_objext; then
4652   eval "$as_ac_Header=yes"
4653 else
4654   echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4656
4657         eval "$as_ac_Header=no"
4658 fi
4659
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 fi
4662 ac_res=`eval echo '${'$as_ac_Header'}'`
4663                { echo "$as_me:$LINENO: result: $ac_res" >&5
4664 echo "${ECHO_T}$ac_res" >&6; }
4665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4666   cat >>confdefs.h <<_ACEOF
4667 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4668 _ACEOF
4669
4670 ac_header_dirent=$ac_hdr; break
4671 fi
4672
4673 done
4674 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4675 if test $ac_header_dirent = dirent.h; then
4676   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4677 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4678 if test "${ac_cv_search_opendir+set}" = set; then
4679   echo $ECHO_N "(cached) $ECHO_C" >&6
4680 else
4681   ac_func_search_save_LIBS=$LIBS
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h.  */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h.  */
4688
4689 /* Override any GCC internal prototype to avoid an error.
4690    Use char because int might match the return type of a GCC
4691    builtin and then its argument prototype would still apply.  */
4692 #ifdef __cplusplus
4693 extern "C"
4694 #endif
4695 char opendir ();
4696 int
4697 main ()
4698 {
4699 return opendir ();
4700   ;
4701   return 0;
4702 }
4703 _ACEOF
4704 for ac_lib in '' dir; do
4705   if test -z "$ac_lib"; then
4706     ac_res="none required"
4707   else
4708     ac_res=-l$ac_lib
4709     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4710   fi
4711   rm -f conftest.$ac_objext conftest$ac_exeext
4712 if { (ac_try="$ac_link"
4713 case "(($ac_try" in
4714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4715   *) ac_try_echo=$ac_try;;
4716 esac
4717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4718   (eval "$ac_link") 2>conftest.er1
4719   ac_status=$?
4720   grep -v '^ *+' conftest.er1 >conftest.err
4721   rm -f conftest.er1
4722   cat conftest.err >&5
4723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); } && {
4725          test -z "$ac_c_werror_flag" ||
4726          test ! -s conftest.err
4727        } && test -s conftest$ac_exeext &&
4728        $as_test_x conftest$ac_exeext; then
4729   ac_cv_search_opendir=$ac_res
4730 else
4731   echo "$as_me: failed program was:" >&5
4732 sed 's/^/| /' conftest.$ac_ext >&5
4733
4734
4735 fi
4736
4737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4738       conftest$ac_exeext
4739   if test "${ac_cv_search_opendir+set}" = set; then
4740   break
4741 fi
4742 done
4743 if test "${ac_cv_search_opendir+set}" = set; then
4744   :
4745 else
4746   ac_cv_search_opendir=no
4747 fi
4748 rm conftest.$ac_ext
4749 LIBS=$ac_func_search_save_LIBS
4750 fi
4751 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4752 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4753 ac_res=$ac_cv_search_opendir
4754 if test "$ac_res" != no; then
4755   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4756
4757 fi
4758
4759 else
4760   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4761 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4762 if test "${ac_cv_search_opendir+set}" = set; then
4763   echo $ECHO_N "(cached) $ECHO_C" >&6
4764 else
4765   ac_func_search_save_LIBS=$LIBS
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h.  */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h.  */
4772
4773 /* Override any GCC internal prototype to avoid an error.
4774    Use char because int might match the return type of a GCC
4775    builtin and then its argument prototype would still apply.  */
4776 #ifdef __cplusplus
4777 extern "C"
4778 #endif
4779 char opendir ();
4780 int
4781 main ()
4782 {
4783 return opendir ();
4784   ;
4785   return 0;
4786 }
4787 _ACEOF
4788 for ac_lib in '' x; do
4789   if test -z "$ac_lib"; then
4790     ac_res="none required"
4791   else
4792     ac_res=-l$ac_lib
4793     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4794   fi
4795   rm -f conftest.$ac_objext conftest$ac_exeext
4796 if { (ac_try="$ac_link"
4797 case "(($ac_try" in
4798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4799   *) ac_try_echo=$ac_try;;
4800 esac
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802   (eval "$ac_link") 2>conftest.er1
4803   ac_status=$?
4804   grep -v '^ *+' conftest.er1 >conftest.err
4805   rm -f conftest.er1
4806   cat conftest.err >&5
4807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808   (exit $ac_status); } && {
4809          test -z "$ac_c_werror_flag" ||
4810          test ! -s conftest.err
4811        } && test -s conftest$ac_exeext &&
4812        $as_test_x conftest$ac_exeext; then
4813   ac_cv_search_opendir=$ac_res
4814 else
4815   echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4817
4818
4819 fi
4820
4821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4822       conftest$ac_exeext
4823   if test "${ac_cv_search_opendir+set}" = set; then
4824   break
4825 fi
4826 done
4827 if test "${ac_cv_search_opendir+set}" = set; then
4828   :
4829 else
4830   ac_cv_search_opendir=no
4831 fi
4832 rm conftest.$ac_ext
4833 LIBS=$ac_func_search_save_LIBS
4834 fi
4835 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4836 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4837 ac_res=$ac_cv_search_opendir
4838 if test "$ac_res" != no; then
4839   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4840
4841 fi
4842
4843 fi
4844
4845
4846 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4847 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4848 if test "${ac_cv_path_GREP+set}" = set; then
4849   echo $ECHO_N "(cached) $ECHO_C" >&6
4850 else
4851   # Extract the first word of "grep ggrep" to use in msg output
4852 if test -z "$GREP"; then
4853 set dummy grep ggrep; ac_prog_name=$2
4854 if test "${ac_cv_path_GREP+set}" = set; then
4855   echo $ECHO_N "(cached) $ECHO_C" >&6
4856 else
4857   ac_path_GREP_found=false
4858 # Loop through the user's path and test for each of PROGNAME-LIST
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864   for ac_prog in grep ggrep; do
4865   for ac_exec_ext in '' $ac_executable_extensions; do
4866     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4867     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4868     # Check for GNU ac_path_GREP and select it if it is found.
4869   # Check for GNU $ac_path_GREP
4870 case `"$ac_path_GREP" --version 2>&1` in
4871 *GNU*)
4872   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4873 *)
4874   ac_count=0
4875   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4876   while :
4877   do
4878     cat "conftest.in" "conftest.in" >"conftest.tmp"
4879     mv "conftest.tmp" "conftest.in"
4880     cp "conftest.in" "conftest.nl"
4881     echo 'GREP' >> "conftest.nl"
4882     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4883     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4884     ac_count=`expr $ac_count + 1`
4885     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4886       # Best one so far, save it but keep looking for a better one
4887       ac_cv_path_GREP="$ac_path_GREP"
4888       ac_path_GREP_max=$ac_count
4889     fi
4890     # 10*(2^10) chars as input seems more than enough
4891     test $ac_count -gt 10 && break
4892   done
4893   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4894 esac
4895
4896
4897     $ac_path_GREP_found && break 3
4898   done
4899 done
4900
4901 done
4902 IFS=$as_save_IFS
4903
4904
4905 fi
4906
4907 GREP="$ac_cv_path_GREP"
4908 if test -z "$GREP"; then
4909   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4910 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4911    { (exit 1); exit 1; }; }
4912 fi
4913
4914 else
4915   ac_cv_path_GREP=$GREP
4916 fi
4917
4918
4919 fi
4920 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4921 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4922  GREP="$ac_cv_path_GREP"
4923
4924
4925 { echo "$as_me:$LINENO: checking for egrep" >&5
4926 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4927 if test "${ac_cv_path_EGREP+set}" = set; then
4928   echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4931    then ac_cv_path_EGREP="$GREP -E"
4932    else
4933      # Extract the first word of "egrep" to use in msg output
4934 if test -z "$EGREP"; then
4935 set dummy egrep; ac_prog_name=$2
4936 if test "${ac_cv_path_EGREP+set}" = set; then
4937   echo $ECHO_N "(cached) $ECHO_C" >&6
4938 else
4939   ac_path_EGREP_found=false
4940 # Loop through the user's path and test for each of PROGNAME-LIST
4941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4943 do
4944   IFS=$as_save_IFS
4945   test -z "$as_dir" && as_dir=.
4946   for ac_prog in egrep; do
4947   for ac_exec_ext in '' $ac_executable_extensions; do
4948     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4949     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4950     # Check for GNU ac_path_EGREP and select it if it is found.
4951   # Check for GNU $ac_path_EGREP
4952 case `"$ac_path_EGREP" --version 2>&1` in
4953 *GNU*)
4954   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4955 *)
4956   ac_count=0
4957   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4958   while :
4959   do
4960     cat "conftest.in" "conftest.in" >"conftest.tmp"
4961     mv "conftest.tmp" "conftest.in"
4962     cp "conftest.in" "conftest.nl"
4963     echo 'EGREP' >> "conftest.nl"
4964     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4965     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4966     ac_count=`expr $ac_count + 1`
4967     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4968       # Best one so far, save it but keep looking for a better one
4969       ac_cv_path_EGREP="$ac_path_EGREP"
4970       ac_path_EGREP_max=$ac_count
4971     fi
4972     # 10*(2^10) chars as input seems more than enough
4973     test $ac_count -gt 10 && break
4974   done
4975   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4976 esac
4977
4978
4979     $ac_path_EGREP_found && break 3
4980   done
4981 done
4982
4983 done
4984 IFS=$as_save_IFS
4985
4986
4987 fi
4988
4989 EGREP="$ac_cv_path_EGREP"
4990 if test -z "$EGREP"; then
4991   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4992 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4993    { (exit 1); exit 1; }; }
4994 fi
4995
4996 else
4997   ac_cv_path_EGREP=$EGREP
4998 fi
4999
5000
5001    fi
5002 fi
5003 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5004 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5005  EGREP="$ac_cv_path_EGREP"
5006
5007
5008 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5009 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5010 if test "${ac_cv_header_stdc+set}" = set; then
5011   echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013   cat >conftest.$ac_ext <<_ACEOF
5014 /* confdefs.h.  */
5015 _ACEOF
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h.  */
5019 #include <stdlib.h>
5020 #include <stdarg.h>
5021 #include <string.h>
5022 #include <float.h>
5023
5024 int
5025 main ()
5026 {
5027
5028   ;
5029   return 0;
5030 }
5031 _ACEOF
5032 rm -f conftest.$ac_objext
5033 if { (ac_try="$ac_compile"
5034 case "(($ac_try" in
5035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5036   *) ac_try_echo=$ac_try;;
5037 esac
5038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5039   (eval "$ac_compile") 2>conftest.er1
5040   ac_status=$?
5041   grep -v '^ *+' conftest.er1 >conftest.err
5042   rm -f conftest.er1
5043   cat conftest.err >&5
5044   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045   (exit $ac_status); } && {
5046          test -z "$ac_c_werror_flag" ||
5047          test ! -s conftest.err
5048        } && test -s conftest.$ac_objext; then
5049   ac_cv_header_stdc=yes
5050 else
5051   echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5053
5054         ac_cv_header_stdc=no
5055 fi
5056
5057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5058
5059 if test $ac_cv_header_stdc = yes; then
5060   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5061   cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h.  */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
5066 /* end confdefs.h.  */
5067 #include <string.h>
5068
5069 _ACEOF
5070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5071   $EGREP "memchr" >/dev/null 2>&1; then
5072   :
5073 else
5074   ac_cv_header_stdc=no
5075 fi
5076 rm -f conftest*
5077
5078 fi
5079
5080 if test $ac_cv_header_stdc = yes; then
5081   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5082   cat >conftest.$ac_ext <<_ACEOF
5083 /* confdefs.h.  */
5084 _ACEOF
5085 cat confdefs.h >>conftest.$ac_ext
5086 cat >>conftest.$ac_ext <<_ACEOF
5087 /* end confdefs.h.  */
5088 #include <stdlib.h>
5089
5090 _ACEOF
5091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5092   $EGREP "free" >/dev/null 2>&1; then
5093   :
5094 else
5095   ac_cv_header_stdc=no
5096 fi
5097 rm -f conftest*
5098
5099 fi
5100
5101 if test $ac_cv_header_stdc = yes; then
5102   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5103   if test "$cross_compiling" = yes; then
5104   :
5105 else
5106   cat >conftest.$ac_ext <<_ACEOF
5107 /* confdefs.h.  */
5108 _ACEOF
5109 cat confdefs.h >>conftest.$ac_ext
5110 cat >>conftest.$ac_ext <<_ACEOF
5111 /* end confdefs.h.  */
5112 #include <ctype.h>
5113 #include <stdlib.h>
5114 #if ((' ' & 0x0FF) == 0x020)
5115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5117 #else
5118 # define ISLOWER(c) \
5119                    (('a' <= (c) && (c) <= 'i') \
5120                      || ('j' <= (c) && (c) <= 'r') \
5121                      || ('s' <= (c) && (c) <= 'z'))
5122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5123 #endif
5124
5125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5126 int
5127 main ()
5128 {
5129   int i;
5130   for (i = 0; i < 256; i++)
5131     if (XOR (islower (i), ISLOWER (i))
5132         || toupper (i) != TOUPPER (i))
5133       return 2;
5134   return 0;
5135 }
5136 _ACEOF
5137 rm -f conftest$ac_exeext
5138 if { (ac_try="$ac_link"
5139 case "(($ac_try" in
5140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5141   *) ac_try_echo=$ac_try;;
5142 esac
5143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5144   (eval "$ac_link") 2>&5
5145   ac_status=$?
5146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5148   { (case "(($ac_try" in
5149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150   *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153   (eval "$ac_try") 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); }; }; then
5157   :
5158 else
5159   echo "$as_me: program exited with status $ac_status" >&5
5160 echo "$as_me: failed program was:" >&5
5161 sed 's/^/| /' conftest.$ac_ext >&5
5162
5163 ( exit $ac_status )
5164 ac_cv_header_stdc=no
5165 fi
5166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5167 fi
5168
5169
5170 fi
5171 fi
5172 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5173 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5174 if test $ac_cv_header_stdc = yes; then
5175
5176 cat >>confdefs.h <<\_ACEOF
5177 #define STDC_HEADERS 1
5178 _ACEOF
5179
5180 fi
5181
5182
5183  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5194                   inttypes.h stdint.h unistd.h
5195 do
5196 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5200   echo $ECHO_N "(cached) $ECHO_C" >&6
5201 else
5202   cat >conftest.$ac_ext <<_ACEOF
5203 /* confdefs.h.  */
5204 _ACEOF
5205 cat confdefs.h >>conftest.$ac_ext
5206 cat >>conftest.$ac_ext <<_ACEOF
5207 /* end confdefs.h.  */
5208 $ac_includes_default
5209
5210 #include <$ac_header>
5211 _ACEOF
5212 rm -f conftest.$ac_objext
5213 if { (ac_try="$ac_compile"
5214 case "(($ac_try" in
5215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216   *) ac_try_echo=$ac_try;;
5217 esac
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219   (eval "$ac_compile") 2>conftest.er1
5220   ac_status=$?
5221   grep -v '^ *+' conftest.er1 >conftest.err
5222   rm -f conftest.er1
5223   cat conftest.err >&5
5224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225   (exit $ac_status); } && {
5226          test -z "$ac_c_werror_flag" ||
5227          test ! -s conftest.err
5228        } && test -s conftest.$ac_objext; then
5229   eval "$as_ac_Header=yes"
5230 else
5231   echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
5234         eval "$as_ac_Header=no"
5235 fi
5236
5237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5238 fi
5239 ac_res=`eval echo '${'$as_ac_Header'}'`
5240                { echo "$as_me:$LINENO: result: $ac_res" >&5
5241 echo "${ECHO_T}$ac_res" >&6; }
5242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5243   cat >>confdefs.h <<_ACEOF
5244 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5245 _ACEOF
5246
5247 fi
5248
5249 done
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271 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/mman.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h
5272 do
5273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5275   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5278   echo $ECHO_N "(cached) $ECHO_C" >&6
5279 fi
5280 ac_res=`eval echo '${'$as_ac_Header'}'`
5281                { echo "$as_me:$LINENO: result: $ac_res" >&5
5282 echo "${ECHO_T}$ac_res" >&6; }
5283 else
5284   # Is the header compilable?
5285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5287 cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h.  */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h.  */
5293 $ac_includes_default
5294 #include <$ac_header>
5295 _ACEOF
5296 rm -f conftest.$ac_objext
5297 if { (ac_try="$ac_compile"
5298 case "(($ac_try" in
5299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5300   *) ac_try_echo=$ac_try;;
5301 esac
5302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5303   (eval "$ac_compile") 2>conftest.er1
5304   ac_status=$?
5305   grep -v '^ *+' conftest.er1 >conftest.err
5306   rm -f conftest.er1
5307   cat conftest.err >&5
5308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309   (exit $ac_status); } && {
5310          test -z "$ac_c_werror_flag" ||
5311          test ! -s conftest.err
5312        } && test -s conftest.$ac_objext; then
5313   ac_header_compiler=yes
5314 else
5315   echo "$as_me: failed program was:" >&5
5316 sed 's/^/| /' conftest.$ac_ext >&5
5317
5318         ac_header_compiler=no
5319 fi
5320
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5323 echo "${ECHO_T}$ac_header_compiler" >&6; }
5324
5325 # Is the header present?
5326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5328 cat >conftest.$ac_ext <<_ACEOF
5329 /* confdefs.h.  */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h.  */
5334 #include <$ac_header>
5335 _ACEOF
5336 if { (ac_try="$ac_cpp conftest.$ac_ext"
5337 case "(($ac_try" in
5338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5339   *) ac_try_echo=$ac_try;;
5340 esac
5341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5343   ac_status=$?
5344   grep -v '^ *+' conftest.er1 >conftest.err
5345   rm -f conftest.er1
5346   cat conftest.err >&5
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); } >/dev/null && {
5349          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5350          test ! -s conftest.err
5351        }; then
5352   ac_header_preproc=yes
5353 else
5354   echo "$as_me: failed program was:" >&5
5355 sed 's/^/| /' conftest.$ac_ext >&5
5356
5357   ac_header_preproc=no
5358 fi
5359
5360 rm -f conftest.err conftest.$ac_ext
5361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5362 echo "${ECHO_T}$ac_header_preproc" >&6; }
5363
5364 # So?  What about this header?
5365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5366   yes:no: )
5367     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5371     ac_header_preproc=yes
5372     ;;
5373   no:yes:* )
5374     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5376     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5377 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5378     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5380     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5381 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5384     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5386
5387     ;;
5388 esac
5389 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5390 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5392   echo $ECHO_N "(cached) $ECHO_C" >&6
5393 else
5394   eval "$as_ac_Header=\$ac_header_preproc"
5395 fi
5396 ac_res=`eval echo '${'$as_ac_Header'}'`
5397                { echo "$as_me:$LINENO: result: $ac_res" >&5
5398 echo "${ECHO_T}$ac_res" >&6; }
5399
5400 fi
5401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5402   cat >>confdefs.h <<_ACEOF
5403 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5404 _ACEOF
5405
5406 fi
5407
5408 done
5409
5410
5411
5412 cat >>confdefs.h <<_ACEOF
5413 #define PACKAGE "$PACKAGE"
5414 _ACEOF
5415
5416
5417 cat >>confdefs.h <<_ACEOF
5418 #define VERSION "$VERSION"
5419 _ACEOF
5420
5421
5422
5423
5424
5425
5426
5427  { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5428 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5429 if test "${ac_cv_c_const+set}" = set; then
5430   echo $ECHO_N "(cached) $ECHO_C" >&6
5431 else
5432   cat >conftest.$ac_ext <<_ACEOF
5433 /* confdefs.h.  */
5434 _ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h.  */
5438
5439 int
5440 main ()
5441 {
5442 /* FIXME: Include the comments suggested by Paul. */
5443 #ifndef __cplusplus
5444   /* Ultrix mips cc rejects this.  */
5445   typedef int charset[2];
5446   const charset cs;
5447   /* SunOS 4.1.1 cc rejects this.  */
5448   char const *const *pcpcc;
5449   char **ppc;
5450   /* NEC SVR4.0.2 mips cc rejects this.  */
5451   struct point {int x, y;};
5452   static struct point const zero = {0,0};
5453   /* AIX XL C 1.02.0.0 rejects this.
5454      It does not let you subtract one const X* pointer from another in
5455      an arm of an if-expression whose if-part is not a constant
5456      expression */
5457   const char *g = "string";
5458   pcpcc = &g + (g ? g-g : 0);
5459   /* HPUX 7.0 cc rejects these. */
5460   ++pcpcc;
5461   ppc = (char**) pcpcc;
5462   pcpcc = (char const *const *) ppc;
5463   { /* SCO 3.2v4 cc rejects this.  */
5464     char *t;
5465     char const *s = 0 ? (char *) 0 : (char const *) 0;
5466
5467     *t++ = 0;
5468     if (s) return 0;
5469   }
5470   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5471     int x[] = {25, 17};
5472     const int *foo = &x[0];
5473     ++foo;
5474   }
5475   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5476     typedef const int *iptr;
5477     iptr p = 0;
5478     ++p;
5479   }
5480   { /* AIX XL C 1.02.0.0 rejects this saying
5481        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5482     struct s { int j; const int *ap[3]; };
5483     struct s *b; b->j = 5;
5484   }
5485   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5486     const int foo = 10;
5487     if (!foo) return 0;
5488   }
5489   return !cs[0] && !zero.x;
5490 #endif
5491
5492   ;
5493   return 0;
5494 }
5495 _ACEOF
5496 rm -f conftest.$ac_objext
5497 if { (ac_try="$ac_compile"
5498 case "(($ac_try" in
5499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5500   *) ac_try_echo=$ac_try;;
5501 esac
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503   (eval "$ac_compile") 2>conftest.er1
5504   ac_status=$?
5505   grep -v '^ *+' conftest.er1 >conftest.err
5506   rm -f conftest.er1
5507   cat conftest.err >&5
5508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509   (exit $ac_status); } && {
5510          test -z "$ac_c_werror_flag" ||
5511          test ! -s conftest.err
5512        } && test -s conftest.$ac_objext; then
5513   ac_cv_c_const=yes
5514 else
5515   echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5517
5518         ac_cv_c_const=no
5519 fi
5520
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 fi
5523 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5524 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5525 if test $ac_cv_c_const = no; then
5526
5527 cat >>confdefs.h <<\_ACEOF
5528 #define const
5529 _ACEOF
5530
5531 fi
5532
5533  { echo "$as_me:$LINENO: checking for inline" >&5
5534 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5535 if test "${ac_cv_c_inline+set}" = set; then
5536   echo $ECHO_N "(cached) $ECHO_C" >&6
5537 else
5538   ac_cv_c_inline=no
5539 for ac_kw in inline __inline__ __inline; do
5540   cat >conftest.$ac_ext <<_ACEOF
5541 /* confdefs.h.  */
5542 _ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h.  */
5546 #ifndef __cplusplus
5547 typedef int foo_t;
5548 static $ac_kw foo_t static_foo () {return 0; }
5549 $ac_kw foo_t foo () {return 0; }
5550 #endif
5551
5552 _ACEOF
5553 rm -f conftest.$ac_objext
5554 if { (ac_try="$ac_compile"
5555 case "(($ac_try" in
5556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557   *) ac_try_echo=$ac_try;;
5558 esac
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560   (eval "$ac_compile") 2>conftest.er1
5561   ac_status=$?
5562   grep -v '^ *+' conftest.er1 >conftest.err
5563   rm -f conftest.er1
5564   cat conftest.err >&5
5565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566   (exit $ac_status); } && {
5567          test -z "$ac_c_werror_flag" ||
5568          test ! -s conftest.err
5569        } && test -s conftest.$ac_objext; then
5570   ac_cv_c_inline=$ac_kw
5571 else
5572   echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5574
5575
5576 fi
5577
5578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5579   test "$ac_cv_c_inline" != no && break
5580 done
5581
5582 fi
5583 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5584 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5585
5586
5587 case $ac_cv_c_inline in
5588   inline | yes) ;;
5589   *)
5590     case $ac_cv_c_inline in
5591       no) ac_val=;;
5592       *) ac_val=$ac_cv_c_inline;;
5593     esac
5594     cat >>confdefs.h <<_ACEOF
5595 #ifndef __cplusplus
5596 #define inline $ac_val
5597 #endif
5598 _ACEOF
5599     ;;
5600 esac
5601
5602  { echo "$as_me:$LINENO: checking for off_t" >&5
5603 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5604 if test "${ac_cv_type_off_t+set}" = set; then
5605   echo $ECHO_N "(cached) $ECHO_C" >&6
5606 else
5607   cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h.  */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h.  */
5613 $ac_includes_default
5614 typedef off_t ac__type_new_;
5615 int
5616 main ()
5617 {
5618 if ((ac__type_new_ *) 0)
5619   return 0;
5620 if (sizeof (ac__type_new_))
5621   return 0;
5622   ;
5623   return 0;
5624 }
5625 _ACEOF
5626 rm -f conftest.$ac_objext
5627 if { (ac_try="$ac_compile"
5628 case "(($ac_try" in
5629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630   *) ac_try_echo=$ac_try;;
5631 esac
5632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5633   (eval "$ac_compile") 2>conftest.er1
5634   ac_status=$?
5635   grep -v '^ *+' conftest.er1 >conftest.err
5636   rm -f conftest.er1
5637   cat conftest.err >&5
5638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639   (exit $ac_status); } && {
5640          test -z "$ac_c_werror_flag" ||
5641          test ! -s conftest.err
5642        } && test -s conftest.$ac_objext; then
5643   ac_cv_type_off_t=yes
5644 else
5645   echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5647
5648         ac_cv_type_off_t=no
5649 fi
5650
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652 fi
5653 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5654 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5655 if test $ac_cv_type_off_t = yes; then
5656   :
5657 else
5658
5659 cat >>confdefs.h <<_ACEOF
5660 #define off_t long int
5661 _ACEOF
5662
5663 fi
5664
5665  { echo "$as_me:$LINENO: checking for size_t" >&5
5666 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5667 if test "${ac_cv_type_size_t+set}" = set; then
5668   echo $ECHO_N "(cached) $ECHO_C" >&6
5669 else
5670   cat >conftest.$ac_ext <<_ACEOF
5671 /* confdefs.h.  */
5672 _ACEOF
5673 cat confdefs.h >>conftest.$ac_ext
5674 cat >>conftest.$ac_ext <<_ACEOF
5675 /* end confdefs.h.  */
5676 $ac_includes_default
5677 typedef size_t ac__type_new_;
5678 int
5679 main ()
5680 {
5681 if ((ac__type_new_ *) 0)
5682   return 0;
5683 if (sizeof (ac__type_new_))
5684   return 0;
5685   ;
5686   return 0;
5687 }
5688 _ACEOF
5689 rm -f conftest.$ac_objext
5690 if { (ac_try="$ac_compile"
5691 case "(($ac_try" in
5692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693   *) ac_try_echo=$ac_try;;
5694 esac
5695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5696   (eval "$ac_compile") 2>conftest.er1
5697   ac_status=$?
5698   grep -v '^ *+' conftest.er1 >conftest.err
5699   rm -f conftest.er1
5700   cat conftest.err >&5
5701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5702   (exit $ac_status); } && {
5703          test -z "$ac_c_werror_flag" ||
5704          test ! -s conftest.err
5705        } && test -s conftest.$ac_objext; then
5706   ac_cv_type_size_t=yes
5707 else
5708   echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5710
5711         ac_cv_type_size_t=no
5712 fi
5713
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 fi
5716 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5717 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5718 if test $ac_cv_type_size_t = yes; then
5719   :
5720 else
5721
5722 cat >>confdefs.h <<_ACEOF
5723 #define size_t unsigned int
5724 _ACEOF
5725
5726 fi
5727
5728  { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5729 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5730 if test "${ac_cv_struct_tm+set}" = set; then
5731   echo $ECHO_N "(cached) $ECHO_C" >&6
5732 else
5733   cat >conftest.$ac_ext <<_ACEOF
5734 /* confdefs.h.  */
5735 _ACEOF
5736 cat confdefs.h >>conftest.$ac_ext
5737 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h.  */
5739 #include <sys/types.h>
5740 #include <time.h>
5741
5742 int
5743 main ()
5744 {
5745 struct tm tm;
5746                                      int *p = &tm.tm_sec;
5747                                      return !p;
5748   ;
5749   return 0;
5750 }
5751 _ACEOF
5752 rm -f conftest.$ac_objext
5753 if { (ac_try="$ac_compile"
5754 case "(($ac_try" in
5755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756   *) ac_try_echo=$ac_try;;
5757 esac
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759   (eval "$ac_compile") 2>conftest.er1
5760   ac_status=$?
5761   grep -v '^ *+' conftest.er1 >conftest.err
5762   rm -f conftest.er1
5763   cat conftest.err >&5
5764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5765   (exit $ac_status); } && {
5766          test -z "$ac_c_werror_flag" ||
5767          test ! -s conftest.err
5768        } && test -s conftest.$ac_objext; then
5769   ac_cv_struct_tm=time.h
5770 else
5771   echo "$as_me: failed program was:" >&5
5772 sed 's/^/| /' conftest.$ac_ext >&5
5773
5774         ac_cv_struct_tm=sys/time.h
5775 fi
5776
5777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5778 fi
5779 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5780 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5781 if test $ac_cv_struct_tm = sys/time.h; then
5782
5783 cat >>confdefs.h <<\_ACEOF
5784 #define TM_IN_SYS_TIME 1
5785 _ACEOF
5786
5787 fi
5788
5789  { echo "$as_me:$LINENO: checking for boolean" >&5
5790 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5791 if test "${ac_cv_type_boolean+set}" = set; then
5792   echo $ECHO_N "(cached) $ECHO_C" >&6
5793 else
5794   cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h.  */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h.  */
5800 $ac_includes_default
5801 typedef boolean ac__type_new_;
5802 int
5803 main ()
5804 {
5805 if ((ac__type_new_ *) 0)
5806   return 0;
5807 if (sizeof (ac__type_new_))
5808   return 0;
5809   ;
5810   return 0;
5811 }
5812 _ACEOF
5813 rm -f conftest.$ac_objext
5814 if { (ac_try="$ac_compile"
5815 case "(($ac_try" in
5816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5817   *) ac_try_echo=$ac_try;;
5818 esac
5819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5820   (eval "$ac_compile") 2>conftest.er1
5821   ac_status=$?
5822   grep -v '^ *+' conftest.er1 >conftest.err
5823   rm -f conftest.er1
5824   cat conftest.err >&5
5825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826   (exit $ac_status); } && {
5827          test -z "$ac_c_werror_flag" ||
5828          test ! -s conftest.err
5829        } && test -s conftest.$ac_objext; then
5830   ac_cv_type_boolean=yes
5831 else
5832   echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5834
5835         ac_cv_type_boolean=no
5836 fi
5837
5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5839 fi
5840 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5841 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5842 if test $ac_cv_type_boolean = yes; then
5843   :
5844 else
5845
5846 cat >>confdefs.h <<_ACEOF
5847 #define boolean int
5848 _ACEOF
5849
5850 fi
5851  #needed for jpeglib
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
5868 do
5869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5873   echo $ECHO_N "(cached) $ECHO_C" >&6
5874 else
5875   cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h.  */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h.  */
5881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5882    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5883 #define $ac_func innocuous_$ac_func
5884
5885 /* System header to define __stub macros and hopefully few prototypes,
5886     which can conflict with char $ac_func (); below.
5887     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5888     <limits.h> exists even on freestanding compilers.  */
5889
5890 #ifdef __STDC__
5891 # include <limits.h>
5892 #else
5893 # include <assert.h>
5894 #endif
5895
5896 #undef $ac_func
5897
5898 /* Override any GCC internal prototype to avoid an error.
5899    Use char because int might match the return type of a GCC
5900    builtin and then its argument prototype would still apply.  */
5901 #ifdef __cplusplus
5902 extern "C"
5903 #endif
5904 char $ac_func ();
5905 /* The GNU C library defines this for functions which it implements
5906     to always fail with ENOSYS.  Some functions are actually named
5907     something starting with __ and the normal name is an alias.  */
5908 #if defined __stub_$ac_func || defined __stub___$ac_func
5909 choke me
5910 #endif
5911
5912 int
5913 main ()
5914 {
5915 return $ac_func ();
5916   ;
5917   return 0;
5918 }
5919 _ACEOF
5920 rm -f conftest.$ac_objext conftest$ac_exeext
5921 if { (ac_try="$ac_link"
5922 case "(($ac_try" in
5923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924   *) ac_try_echo=$ac_try;;
5925 esac
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927   (eval "$ac_link") 2>conftest.er1
5928   ac_status=$?
5929   grep -v '^ *+' conftest.er1 >conftest.err
5930   rm -f conftest.er1
5931   cat conftest.err >&5
5932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933   (exit $ac_status); } && {
5934          test -z "$ac_c_werror_flag" ||
5935          test ! -s conftest.err
5936        } && test -s conftest$ac_exeext &&
5937        $as_test_x conftest$ac_exeext; then
5938   eval "$as_ac_var=yes"
5939 else
5940   echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5942
5943         eval "$as_ac_var=no"
5944 fi
5945
5946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5947       conftest$ac_exeext conftest.$ac_ext
5948 fi
5949 ac_res=`eval echo '${'$as_ac_var'}'`
5950                { echo "$as_me:$LINENO: result: $ac_res" >&5
5951 echo "${ECHO_T}$ac_res" >&6; }
5952 if test `eval echo '${'$as_ac_var'}'` = yes; then
5953   cat >>confdefs.h <<_ACEOF
5954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5955 _ACEOF
5956
5957 fi
5958 done
5959
5960
5961 { echo "$as_me:$LINENO: checking for signed char" >&5
5962 echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
5963 if test "${ac_cv_type_signed_char+set}" = set; then
5964   echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966   cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h.  */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h.  */
5972 $ac_includes_default
5973 typedef signed char ac__type_new_;
5974 int
5975 main ()
5976 {
5977 if ((ac__type_new_ *) 0)
5978   return 0;
5979 if (sizeof (ac__type_new_))
5980   return 0;
5981   ;
5982   return 0;
5983 }
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (ac_try="$ac_compile"
5987 case "(($ac_try" in
5988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989   *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992   (eval "$ac_compile") 2>conftest.er1
5993   ac_status=$?
5994   grep -v '^ *+' conftest.er1 >conftest.err
5995   rm -f conftest.er1
5996   cat conftest.err >&5
5997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); } && {
5999          test -z "$ac_c_werror_flag" ||
6000          test ! -s conftest.err
6001        } && test -s conftest.$ac_objext; then
6002   ac_cv_type_signed_char=yes
6003 else
6004   echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007         ac_cv_type_signed_char=no
6008 fi
6009
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 fi
6012 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
6013 echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
6014
6015 # The cast to long int works around a bug in the HP C Compiler
6016 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6017 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6018 # This bug is HP SR number 8606223364.
6019 { echo "$as_me:$LINENO: checking size of signed char" >&5
6020 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6; }
6021 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6022   echo $ECHO_N "(cached) $ECHO_C" >&6
6023 else
6024   if test "$cross_compiling" = yes; then
6025   # Depending upon the size, compute the lo and hi bounds.
6026 cat >conftest.$ac_ext <<_ACEOF
6027 /* confdefs.h.  */
6028 _ACEOF
6029 cat confdefs.h >>conftest.$ac_ext
6030 cat >>conftest.$ac_ext <<_ACEOF
6031 /* end confdefs.h.  */
6032 $ac_includes_default
6033    typedef signed char ac__type_sizeof_;
6034 int
6035 main ()
6036 {
6037 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6038 test_array [0] = 0
6039
6040   ;
6041   return 0;
6042 }
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (ac_try="$ac_compile"
6046 case "(($ac_try" in
6047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048   *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051   (eval "$ac_compile") 2>conftest.er1
6052   ac_status=$?
6053   grep -v '^ *+' conftest.er1 >conftest.err
6054   rm -f conftest.er1
6055   cat conftest.err >&5
6056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057   (exit $ac_status); } && {
6058          test -z "$ac_c_werror_flag" ||
6059          test ! -s conftest.err
6060        } && test -s conftest.$ac_objext; then
6061   ac_lo=0 ac_mid=0
6062   while :; do
6063     cat >conftest.$ac_ext <<_ACEOF
6064 /* confdefs.h.  */
6065 _ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h.  */
6069 $ac_includes_default
6070    typedef signed char ac__type_sizeof_;
6071 int
6072 main ()
6073 {
6074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6075 test_array [0] = 0
6076
6077   ;
6078   return 0;
6079 }
6080 _ACEOF
6081 rm -f conftest.$ac_objext
6082 if { (ac_try="$ac_compile"
6083 case "(($ac_try" in
6084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085   *) ac_try_echo=$ac_try;;
6086 esac
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088   (eval "$ac_compile") 2>conftest.er1
6089   ac_status=$?
6090   grep -v '^ *+' conftest.er1 >conftest.err
6091   rm -f conftest.er1
6092   cat conftest.err >&5
6093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094   (exit $ac_status); } && {
6095          test -z "$ac_c_werror_flag" ||
6096          test ! -s conftest.err
6097        } && test -s conftest.$ac_objext; then
6098   ac_hi=$ac_mid; break
6099 else
6100   echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6102
6103         ac_lo=`expr $ac_mid + 1`
6104                         if test $ac_lo -le $ac_mid; then
6105                           ac_lo= ac_hi=
6106                           break
6107                         fi
6108                         ac_mid=`expr 2 '*' $ac_mid + 1`
6109 fi
6110
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112   done
6113 else
6114   echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6116
6117         cat >conftest.$ac_ext <<_ACEOF
6118 /* confdefs.h.  */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h.  */
6123 $ac_includes_default
6124    typedef signed char ac__type_sizeof_;
6125 int
6126 main ()
6127 {
6128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6129 test_array [0] = 0
6130
6131   ;
6132   return 0;
6133 }
6134 _ACEOF
6135 rm -f conftest.$ac_objext
6136 if { (ac_try="$ac_compile"
6137 case "(($ac_try" in
6138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139   *) ac_try_echo=$ac_try;;
6140 esac
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142   (eval "$ac_compile") 2>conftest.er1
6143   ac_status=$?
6144   grep -v '^ *+' conftest.er1 >conftest.err
6145   rm -f conftest.er1
6146   cat conftest.err >&5
6147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148   (exit $ac_status); } && {
6149          test -z "$ac_c_werror_flag" ||
6150          test ! -s conftest.err
6151        } && test -s conftest.$ac_objext; then
6152   ac_hi=-1 ac_mid=-1
6153   while :; do
6154     cat >conftest.$ac_ext <<_ACEOF
6155 /* confdefs.h.  */
6156 _ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h.  */
6160 $ac_includes_default
6161    typedef signed char ac__type_sizeof_;
6162 int
6163 main ()
6164 {
6165 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6166 test_array [0] = 0
6167
6168   ;
6169   return 0;
6170 }
6171 _ACEOF
6172 rm -f conftest.$ac_objext
6173 if { (ac_try="$ac_compile"
6174 case "(($ac_try" in
6175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176   *) ac_try_echo=$ac_try;;
6177 esac
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179   (eval "$ac_compile") 2>conftest.er1
6180   ac_status=$?
6181   grep -v '^ *+' conftest.er1 >conftest.err
6182   rm -f conftest.er1
6183   cat conftest.err >&5
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } && {
6186          test -z "$ac_c_werror_flag" ||
6187          test ! -s conftest.err
6188        } && test -s conftest.$ac_objext; then
6189   ac_lo=$ac_mid; break
6190 else
6191   echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194         ac_hi=`expr '(' $ac_mid ')' - 1`
6195                         if test $ac_mid -le $ac_hi; then
6196                           ac_lo= ac_hi=
6197                           break
6198                         fi
6199                         ac_mid=`expr 2 '*' $ac_mid`
6200 fi
6201
6202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6203   done
6204 else
6205   echo "$as_me: failed program was:" >&5
6206 sed 's/^/| /' conftest.$ac_ext >&5
6207
6208         ac_lo= ac_hi=
6209 fi
6210
6211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6212 fi
6213
6214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6215 # Binary search between lo and hi bounds.
6216 while test "x$ac_lo" != "x$ac_hi"; do
6217   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6218   cat >conftest.$ac_ext <<_ACEOF
6219 /* confdefs.h.  */
6220 _ACEOF
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h.  */
6224 $ac_includes_default
6225    typedef signed char ac__type_sizeof_;
6226 int
6227 main ()
6228 {
6229 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6230 test_array [0] = 0
6231
6232   ;
6233   return 0;
6234 }
6235 _ACEOF
6236 rm -f conftest.$ac_objext
6237 if { (ac_try="$ac_compile"
6238 case "(($ac_try" in
6239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6240   *) ac_try_echo=$ac_try;;
6241 esac
6242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6243   (eval "$ac_compile") 2>conftest.er1
6244   ac_status=$?
6245   grep -v '^ *+' conftest.er1 >conftest.err
6246   rm -f conftest.er1
6247   cat conftest.err >&5
6248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249   (exit $ac_status); } && {
6250          test -z "$ac_c_werror_flag" ||
6251          test ! -s conftest.err
6252        } && test -s conftest.$ac_objext; then
6253   ac_hi=$ac_mid
6254 else
6255   echo "$as_me: failed program was:" >&5
6256 sed 's/^/| /' conftest.$ac_ext >&5
6257
6258         ac_lo=`expr '(' $ac_mid ')' + 1`
6259 fi
6260
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262 done
6263 case $ac_lo in
6264 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6265 '') if test "$ac_cv_type_signed_char" = yes; then
6266      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6267 See \`config.log' for more details." >&5
6268 echo "$as_me: error: cannot compute sizeof (signed char)
6269 See \`config.log' for more details." >&2;}
6270    { (exit 77); exit 77; }; }
6271    else
6272      ac_cv_sizeof_signed_char=0
6273    fi ;;
6274 esac
6275 else
6276   cat >conftest.$ac_ext <<_ACEOF
6277 /* confdefs.h.  */
6278 _ACEOF
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h.  */
6282 $ac_includes_default
6283    typedef signed char ac__type_sizeof_;
6284 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6285 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6286 #include <stdio.h>
6287 #include <stdlib.h>
6288 int
6289 main ()
6290 {
6291
6292   FILE *f = fopen ("conftest.val", "w");
6293   if (! f)
6294     return 1;
6295   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6296     {
6297       long int i = longval ();
6298       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6299         return 1;
6300       fprintf (f, "%ld\n", i);
6301     }
6302   else
6303     {
6304       unsigned long int i = ulongval ();
6305       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6306         return 1;
6307       fprintf (f, "%lu\n", i);
6308     }
6309   return ferror (f) || fclose (f) != 0;
6310
6311   ;
6312   return 0;
6313 }
6314 _ACEOF
6315 rm -f conftest$ac_exeext
6316 if { (ac_try="$ac_link"
6317 case "(($ac_try" in
6318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6319   *) ac_try_echo=$ac_try;;
6320 esac
6321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6322   (eval "$ac_link") 2>&5
6323   ac_status=$?
6324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6326   { (case "(($ac_try" in
6327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328   *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331   (eval "$ac_try") 2>&5
6332   ac_status=$?
6333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334   (exit $ac_status); }; }; then
6335   ac_cv_sizeof_signed_char=`cat conftest.val`
6336 else
6337   echo "$as_me: program exited with status $ac_status" >&5
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6340
6341 ( exit $ac_status )
6342 if test "$ac_cv_type_signed_char" = yes; then
6343      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6344 See \`config.log' for more details." >&5
6345 echo "$as_me: error: cannot compute sizeof (signed char)
6346 See \`config.log' for more details." >&2;}
6347    { (exit 77); exit 77; }; }
6348    else
6349      ac_cv_sizeof_signed_char=0
6350    fi
6351 fi
6352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6353 fi
6354 rm -f conftest.val
6355 fi
6356 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6357 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6; }
6358
6359
6360
6361 cat >>confdefs.h <<_ACEOF
6362 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6363 _ACEOF
6364
6365
6366 { echo "$as_me:$LINENO: checking for signed short" >&5
6367 echo $ECHO_N "checking for signed short... $ECHO_C" >&6; }
6368 if test "${ac_cv_type_signed_short+set}" = set; then
6369   echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371   cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h.  */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h.  */
6377 $ac_includes_default
6378 typedef signed short ac__type_new_;
6379 int
6380 main ()
6381 {
6382 if ((ac__type_new_ *) 0)
6383   return 0;
6384 if (sizeof (ac__type_new_))
6385   return 0;
6386   ;
6387   return 0;
6388 }
6389 _ACEOF
6390 rm -f conftest.$ac_objext
6391 if { (ac_try="$ac_compile"
6392 case "(($ac_try" in
6393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394   *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397   (eval "$ac_compile") 2>conftest.er1
6398   ac_status=$?
6399   grep -v '^ *+' conftest.er1 >conftest.err
6400   rm -f conftest.er1
6401   cat conftest.err >&5
6402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403   (exit $ac_status); } && {
6404          test -z "$ac_c_werror_flag" ||
6405          test ! -s conftest.err
6406        } && test -s conftest.$ac_objext; then
6407   ac_cv_type_signed_short=yes
6408 else
6409   echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6411
6412         ac_cv_type_signed_short=no
6413 fi
6414
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6416 fi
6417 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_short" >&5
6418 echo "${ECHO_T}$ac_cv_type_signed_short" >&6; }
6419
6420 # The cast to long int works around a bug in the HP C Compiler
6421 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6422 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6423 # This bug is HP SR number 8606223364.
6424 { echo "$as_me:$LINENO: checking size of signed short" >&5
6425 echo $ECHO_N "checking size of signed short... $ECHO_C" >&6; }
6426 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6427   echo $ECHO_N "(cached) $ECHO_C" >&6
6428 else
6429   if test "$cross_compiling" = yes; then
6430   # Depending upon the size, compute the lo and hi bounds.
6431 cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h.  */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h.  */
6437 $ac_includes_default
6438    typedef signed short ac__type_sizeof_;
6439 int
6440 main ()
6441 {
6442 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6443 test_array [0] = 0
6444
6445   ;
6446   return 0;
6447 }
6448 _ACEOF
6449 rm -f conftest.$ac_objext
6450 if { (ac_try="$ac_compile"
6451 case "(($ac_try" in
6452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453   *) ac_try_echo=$ac_try;;
6454 esac
6455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456   (eval "$ac_compile") 2>conftest.er1
6457   ac_status=$?
6458   grep -v '^ *+' conftest.er1 >conftest.err
6459   rm -f conftest.er1
6460   cat conftest.err >&5
6461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462   (exit $ac_status); } && {
6463          test -z "$ac_c_werror_flag" ||
6464          test ! -s conftest.err
6465        } && test -s conftest.$ac_objext; then
6466   ac_lo=0 ac_mid=0
6467   while :; do
6468     cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h.  */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h.  */
6474 $ac_includes_default
6475    typedef signed short ac__type_sizeof_;
6476 int
6477 main ()
6478 {
6479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6480 test_array [0] = 0
6481
6482   ;
6483   return 0;
6484 }
6485 _ACEOF
6486 rm -f conftest.$ac_objext
6487 if { (ac_try="$ac_compile"
6488 case "(($ac_try" in
6489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6490   *) ac_try_echo=$ac_try;;
6491 esac
6492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6493   (eval "$ac_compile") 2>conftest.er1
6494   ac_status=$?
6495   grep -v '^ *+' conftest.er1 >conftest.err
6496   rm -f conftest.er1
6497   cat conftest.err >&5
6498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499   (exit $ac_status); } && {
6500          test -z "$ac_c_werror_flag" ||
6501          test ! -s conftest.err
6502        } && test -s conftest.$ac_objext; then
6503   ac_hi=$ac_mid; break
6504 else
6505   echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6507
6508         ac_lo=`expr $ac_mid + 1`
6509                         if test $ac_lo -le $ac_mid; then
6510                           ac_lo= ac_hi=
6511                           break
6512                         fi
6513                         ac_mid=`expr 2 '*' $ac_mid + 1`
6514 fi
6515
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517   done
6518 else
6519   echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6521
6522         cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h.  */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h.  */
6528 $ac_includes_default
6529    typedef signed short ac__type_sizeof_;
6530 int
6531 main ()
6532 {
6533 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6534 test_array [0] = 0
6535
6536   ;
6537   return 0;
6538 }
6539 _ACEOF
6540 rm -f conftest.$ac_objext
6541 if { (ac_try="$ac_compile"
6542 case "(($ac_try" in
6543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544   *) ac_try_echo=$ac_try;;
6545 esac
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547   (eval "$ac_compile") 2>conftest.er1
6548   ac_status=$?
6549   grep -v '^ *+' conftest.er1 >conftest.err
6550   rm -f conftest.er1
6551   cat conftest.err >&5
6552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553   (exit $ac_status); } && {
6554          test -z "$ac_c_werror_flag" ||
6555          test ! -s conftest.err
6556        } && test -s conftest.$ac_objext; then
6557   ac_hi=-1 ac_mid=-1
6558   while :; do
6559     cat >conftest.$ac_ext <<_ACEOF
6560 /* confdefs.h.  */
6561 _ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h.  */
6565 $ac_includes_default
6566    typedef signed short ac__type_sizeof_;
6567 int
6568 main ()
6569 {
6570 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6571 test_array [0] = 0
6572
6573   ;
6574   return 0;
6575 }
6576 _ACEOF
6577 rm -f conftest.$ac_objext
6578 if { (ac_try="$ac_compile"
6579 case "(($ac_try" in
6580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581   *) ac_try_echo=$ac_try;;
6582 esac
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584   (eval "$ac_compile") 2>conftest.er1
6585   ac_status=$?
6586   grep -v '^ *+' conftest.er1 >conftest.err
6587   rm -f conftest.er1
6588   cat conftest.err >&5
6589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590   (exit $ac_status); } && {
6591          test -z "$ac_c_werror_flag" ||
6592          test ! -s conftest.err
6593        } && test -s conftest.$ac_objext; then
6594   ac_lo=$ac_mid; break
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599         ac_hi=`expr '(' $ac_mid ')' - 1`
6600                         if test $ac_mid -le $ac_hi; then
6601                           ac_lo= ac_hi=
6602                           break
6603                         fi
6604                         ac_mid=`expr 2 '*' $ac_mid`
6605 fi
6606
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608   done
6609 else
6610   echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.$ac_ext >&5
6612
6613         ac_lo= ac_hi=
6614 fi
6615
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 fi
6618
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 # Binary search between lo and hi bounds.
6621 while test "x$ac_lo" != "x$ac_hi"; do
6622   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6623   cat >conftest.$ac_ext <<_ACEOF
6624 /* confdefs.h.  */
6625 _ACEOF
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h.  */
6629 $ac_includes_default
6630    typedef signed short ac__type_sizeof_;
6631 int
6632 main ()
6633 {
6634 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6635 test_array [0] = 0
6636
6637   ;
6638   return 0;
6639 }
6640 _ACEOF
6641 rm -f conftest.$ac_objext
6642 if { (ac_try="$ac_compile"
6643 case "(($ac_try" in
6644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645   *) ac_try_echo=$ac_try;;
6646 esac
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648   (eval "$ac_compile") 2>conftest.er1
6649   ac_status=$?
6650   grep -v '^ *+' conftest.er1 >conftest.err
6651   rm -f conftest.er1
6652   cat conftest.err >&5
6653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654   (exit $ac_status); } && {
6655          test -z "$ac_c_werror_flag" ||
6656          test ! -s conftest.err
6657        } && test -s conftest.$ac_objext; then
6658   ac_hi=$ac_mid
6659 else
6660   echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6662
6663         ac_lo=`expr '(' $ac_mid ')' + 1`
6664 fi
6665
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 done
6668 case $ac_lo in
6669 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
6670 '') if test "$ac_cv_type_signed_short" = yes; then
6671      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6672 See \`config.log' for more details." >&5
6673 echo "$as_me: error: cannot compute sizeof (signed short)
6674 See \`config.log' for more details." >&2;}
6675    { (exit 77); exit 77; }; }
6676    else
6677      ac_cv_sizeof_signed_short=0
6678    fi ;;
6679 esac
6680 else
6681   cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h.  */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h.  */
6687 $ac_includes_default
6688    typedef signed short ac__type_sizeof_;
6689 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6690 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6691 #include <stdio.h>
6692 #include <stdlib.h>
6693 int
6694 main ()
6695 {
6696
6697   FILE *f = fopen ("conftest.val", "w");
6698   if (! f)
6699     return 1;
6700   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6701     {
6702       long int i = longval ();
6703       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6704         return 1;
6705       fprintf (f, "%ld\n", i);
6706     }
6707   else
6708     {
6709       unsigned long int i = ulongval ();
6710       if (i != ((long int) (sizeof (ac__type_sizeof_))))
6711         return 1;
6712       fprintf (f, "%lu\n", i);
6713     }
6714   return ferror (f) || fclose (f) != 0;
6715
6716   ;
6717   return 0;
6718 }
6719 _ACEOF
6720 rm -f conftest$ac_exeext
6721 if { (ac_try="$ac_link"
6722 case "(($ac_try" in
6723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6724   *) ac_try_echo=$ac_try;;
6725 esac
6726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6727   (eval "$ac_link") 2>&5
6728   ac_status=$?
6729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6731   { (case "(($ac_try" in
6732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6733   *) ac_try_echo=$ac_try;;
6734 esac
6735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6736   (eval "$ac_try") 2>&5
6737   ac_status=$?
6738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739   (exit $ac_status); }; }; then
6740   ac_cv_sizeof_signed_short=`cat conftest.val`
6741 else
6742   echo "$as_me: program exited with status $ac_status" >&5
6743 echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6745
6746 ( exit $ac_status )
6747 if test "$ac_cv_type_signed_short" = yes; then
6748      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6749 See \`config.log' for more details." >&5
6750 echo "$as_me: error: cannot compute sizeof (signed short)
6751 See \`config.log' for more details." >&2;}
6752    { (exit 77); exit 77; }; }
6753    else
6754      ac_cv_sizeof_signed_short=0
6755    fi
6756 fi
6757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6758 fi
6759 rm -f conftest.val
6760 fi
6761 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
6762 echo "${ECHO_T}$ac_cv_sizeof_signed_short" >&6; }
6763
6764
6765
6766 cat >>confdefs.h <<_ACEOF
6767 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
6768 _ACEOF
6769
6770
6771 { echo "$as_me:$LINENO: checking for signed" >&5
6772 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
6773 if test "${ac_cv_type_signed+set}" = set; then
6774   echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776   cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h.  */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h.  */
6782 $ac_includes_default
6783 typedef signed ac__type_new_;
6784 int
6785 main ()
6786 {
6787 if ((ac__type_new_ *) 0)
6788   return 0;
6789 if (sizeof (ac__type_new_))
6790   return 0;
6791   ;
6792   return 0;
6793 }
6794 _ACEOF
6795 rm -f conftest.$ac_objext
6796 if { (ac_try="$ac_compile"
6797 case "(($ac_try" in
6798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799   *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802   (eval "$ac_compile") 2>conftest.er1
6803   ac_status=$?
6804   grep -v '^ *+' conftest.er1 >conftest.err
6805   rm -f conftest.er1
6806   cat conftest.err >&5
6807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808   (exit $ac_status); } && {
6809          test -z "$ac_c_werror_flag" ||
6810          test ! -s conftest.err
6811        } && test -s conftest.$ac_objext; then
6812   ac_cv_type_signed=yes
6813 else
6814   echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6816
6817         ac_cv_type_signed=no
6818 fi
6819
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 fi
6822 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
6823 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
6824
6825 # The cast to long int works around a bug in the HP C Compiler
6826 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6827 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6828 # This bug is HP SR number 8606223364.
6829 { echo "$as_me:$LINENO: checking size of signed" >&5
6830 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
6831 if test "${ac_cv_sizeof_signed+set}" = set; then
6832   echo $ECHO_N "(cached) $ECHO_C" >&6
6833 else
6834   if test "$cross_compiling" = yes; then
6835   # Depending upon the size, compute the lo and hi bounds.
6836 cat >conftest.$ac_ext <<_ACEOF
6837 /* confdefs.h.  */
6838 _ACEOF
6839 cat confdefs.h >>conftest.$ac_ext
6840 cat >>conftest.$ac_ext <<_ACEOF
6841 /* end confdefs.h.  */
6842 $ac_includes_default
6843    typedef signed ac__type_sizeof_;
6844 int
6845 main ()
6846 {
6847 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6848 test_array [0] = 0
6849
6850   ;
6851   return 0;
6852 }
6853 _ACEOF
6854 rm -f conftest.$ac_objext
6855 if { (ac_try="$ac_compile"
6856 case "(($ac_try" in
6857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6858   *) ac_try_echo=$ac_try;;
6859 esac
6860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6861   (eval "$ac_compile") 2>conftest.er1
6862   ac_status=$?
6863   grep -v '^ *+' conftest.er1 >conftest.err
6864   rm -f conftest.er1
6865   cat conftest.err >&5
6866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867   (exit $ac_status); } && {
6868          test -z "$ac_c_werror_flag" ||
6869          test ! -s conftest.err
6870        } && test -s conftest.$ac_objext; then
6871   ac_lo=0 ac_mid=0
6872   while :; do
6873     cat >conftest.$ac_ext <<_ACEOF
6874 /* confdefs.h.  */
6875 _ACEOF
6876 cat confdefs.h >>conftest.$ac_ext
6877 cat >>conftest.$ac_ext <<_ACEOF
6878 /* end confdefs.h.  */
6879 $ac_includes_default
6880    typedef signed ac__type_sizeof_;
6881 int
6882 main ()
6883 {
6884 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6885 test_array [0] = 0
6886
6887   ;
6888   return 0;
6889 }
6890 _ACEOF
6891 rm -f conftest.$ac_objext
6892 if { (ac_try="$ac_compile"
6893 case "(($ac_try" in
6894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6895   *) ac_try_echo=$ac_try;;
6896 esac
6897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6898   (eval "$ac_compile") 2>conftest.er1
6899   ac_status=$?
6900   grep -v '^ *+' conftest.er1 >conftest.err
6901   rm -f conftest.er1
6902   cat conftest.err >&5
6903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6904   (exit $ac_status); } && {
6905          test -z "$ac_c_werror_flag" ||
6906          test ! -s conftest.err
6907        } && test -s conftest.$ac_objext; then
6908   ac_hi=$ac_mid; break
6909 else
6910   echo "$as_me: failed program was:" >&5
6911 sed 's/^/| /' conftest.$ac_ext >&5
6912
6913         ac_lo=`expr $ac_mid + 1`
6914                         if test $ac_lo -le $ac_mid; then
6915                           ac_lo= ac_hi=
6916                           break
6917                         fi
6918                         ac_mid=`expr 2 '*' $ac_mid + 1`
6919 fi
6920
6921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6922   done
6923 else
6924   echo "$as_me: failed program was:" >&5
6925 sed 's/^/| /' conftest.$ac_ext >&5
6926
6927         cat >conftest.$ac_ext <<_ACEOF
6928 /* confdefs.h.  */
6929 _ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h.  */
6933 $ac_includes_default
6934    typedef signed ac__type_sizeof_;
6935 int
6936 main ()
6937 {
6938 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6939 test_array [0] = 0
6940
6941   ;
6942   return 0;
6943 }
6944 _ACEOF
6945 rm -f conftest.$ac_objext
6946 if { (ac_try="$ac_compile"
6947 case "(($ac_try" in
6948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6949   *) ac_try_echo=$ac_try;;
6950 esac
6951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6952   (eval "$ac_compile") 2>conftest.er1
6953   ac_status=$?
6954   grep -v '^ *+' conftest.er1 >conftest.err
6955   rm -f conftest.er1
6956   cat conftest.err >&5
6957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6958   (exit $ac_status); } && {
6959          test -z "$ac_c_werror_flag" ||
6960          test ! -s conftest.err
6961        } && test -s conftest.$ac_objext; then
6962   ac_hi=-1 ac_mid=-1
6963   while :; do
6964     cat >conftest.$ac_ext <<_ACEOF
6965 /* confdefs.h.  */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h.  */
6970 $ac_includes_default
6971    typedef signed ac__type_sizeof_;
6972 int
6973 main ()
6974 {
6975 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6976 test_array [0] = 0
6977
6978   ;
6979   return 0;
6980 }
6981 _ACEOF
6982 rm -f conftest.$ac_objext
6983 if { (ac_try="$ac_compile"
6984 case "(($ac_try" in
6985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6986   *) ac_try_echo=$ac_try;;
6987 esac
6988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6989   (eval "$ac_compile") 2>conftest.er1
6990   ac_status=$?
6991   grep -v '^ *+' conftest.er1 >conftest.err
6992   rm -f conftest.er1
6993   cat conftest.err >&5
6994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6995   (exit $ac_status); } && {
6996          test -z "$ac_c_werror_flag" ||
6997          test ! -s conftest.err
6998        } && test -s conftest.$ac_objext; then
6999   ac_lo=$ac_mid; break
7000 else
7001   echo "$as_me: failed program was:" >&5
7002 sed 's/^/| /' conftest.$ac_ext >&5
7003
7004         ac_hi=`expr '(' $ac_mid ')' - 1`
7005                         if test $ac_mid -le $ac_hi; then
7006                           ac_lo= ac_hi=
7007                           break
7008                         fi
7009                         ac_mid=`expr 2 '*' $ac_mid`
7010 fi
7011
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013   done
7014 else
7015   echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7017
7018         ac_lo= ac_hi=
7019 fi
7020
7021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022 fi
7023
7024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7025 # Binary search between lo and hi bounds.
7026 while test "x$ac_lo" != "x$ac_hi"; do
7027   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7028   cat >conftest.$ac_ext <<_ACEOF
7029 /* confdefs.h.  */
7030 _ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h.  */
7034 $ac_includes_default
7035    typedef signed ac__type_sizeof_;
7036 int
7037 main ()
7038 {
7039 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7040 test_array [0] = 0
7041
7042   ;
7043   return 0;
7044 }
7045 _ACEOF
7046 rm -f conftest.$ac_objext
7047 if { (ac_try="$ac_compile"
7048 case "(($ac_try" in
7049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7050   *) ac_try_echo=$ac_try;;
7051 esac
7052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7053   (eval "$ac_compile") 2>conftest.er1
7054   ac_status=$?
7055   grep -v '^ *+' conftest.er1 >conftest.err
7056   rm -f conftest.er1
7057   cat conftest.err >&5
7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7059   (exit $ac_status); } && {
7060          test -z "$ac_c_werror_flag" ||
7061          test ! -s conftest.err
7062        } && test -s conftest.$ac_objext; then
7063   ac_hi=$ac_mid
7064 else
7065   echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7067
7068         ac_lo=`expr '(' $ac_mid ')' + 1`
7069 fi
7070
7071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7072 done
7073 case $ac_lo in
7074 ?*) ac_cv_sizeof_signed=$ac_lo;;
7075 '') if test "$ac_cv_type_signed" = yes; then
7076      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7077 See \`config.log' for more details." >&5
7078 echo "$as_me: error: cannot compute sizeof (signed)
7079 See \`config.log' for more details." >&2;}
7080    { (exit 77); exit 77; }; }
7081    else
7082      ac_cv_sizeof_signed=0
7083    fi ;;
7084 esac
7085 else
7086   cat >conftest.$ac_ext <<_ACEOF
7087 /* confdefs.h.  */
7088 _ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h.  */
7092 $ac_includes_default
7093    typedef signed ac__type_sizeof_;
7094 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7095 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7096 #include <stdio.h>
7097 #include <stdlib.h>
7098 int
7099 main ()
7100 {
7101
7102   FILE *f = fopen ("conftest.val", "w");
7103   if (! f)
7104     return 1;
7105   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7106     {
7107       long int i = longval ();
7108       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7109         return 1;
7110       fprintf (f, "%ld\n", i);
7111     }
7112   else
7113     {
7114       unsigned long int i = ulongval ();
7115       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7116         return 1;
7117       fprintf (f, "%lu\n", i);
7118     }
7119   return ferror (f) || fclose (f) != 0;
7120
7121   ;
7122   return 0;
7123 }
7124 _ACEOF
7125 rm -f conftest$ac_exeext
7126 if { (ac_try="$ac_link"
7127 case "(($ac_try" in
7128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7129   *) ac_try_echo=$ac_try;;
7130 esac
7131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7132   (eval "$ac_link") 2>&5
7133   ac_status=$?
7134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7136   { (case "(($ac_try" in
7137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138   *) ac_try_echo=$ac_try;;
7139 esac
7140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7141   (eval "$ac_try") 2>&5
7142   ac_status=$?
7143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144   (exit $ac_status); }; }; then
7145   ac_cv_sizeof_signed=`cat conftest.val`
7146 else
7147   echo "$as_me: program exited with status $ac_status" >&5
7148 echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7150
7151 ( exit $ac_status )
7152 if test "$ac_cv_type_signed" = yes; then
7153      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7154 See \`config.log' for more details." >&5
7155 echo "$as_me: error: cannot compute sizeof (signed)
7156 See \`config.log' for more details." >&2;}
7157    { (exit 77); exit 77; }; }
7158    else
7159      ac_cv_sizeof_signed=0
7160    fi
7161 fi
7162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7163 fi
7164 rm -f conftest.val
7165 fi
7166 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7167 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
7168
7169
7170
7171 cat >>confdefs.h <<_ACEOF
7172 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7173 _ACEOF
7174
7175
7176 { echo "$as_me:$LINENO: checking for signed long long" >&5
7177 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7178 if test "${ac_cv_type_signed_long_long+set}" = set; then
7179   echo $ECHO_N "(cached) $ECHO_C" >&6
7180 else
7181   cat >conftest.$ac_ext <<_ACEOF
7182 /* confdefs.h.  */
7183 _ACEOF
7184 cat confdefs.h >>conftest.$ac_ext
7185 cat >>conftest.$ac_ext <<_ACEOF
7186 /* end confdefs.h.  */
7187 $ac_includes_default
7188 typedef signed long long ac__type_new_;
7189 int
7190 main ()
7191 {
7192 if ((ac__type_new_ *) 0)
7193   return 0;
7194 if (sizeof (ac__type_new_))
7195   return 0;
7196   ;
7197   return 0;
7198 }
7199 _ACEOF
7200 rm -f conftest.$ac_objext
7201 if { (ac_try="$ac_compile"
7202 case "(($ac_try" in
7203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7204   *) ac_try_echo=$ac_try;;
7205 esac
7206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7207   (eval "$ac_compile") 2>conftest.er1
7208   ac_status=$?
7209   grep -v '^ *+' conftest.er1 >conftest.err
7210   rm -f conftest.er1
7211   cat conftest.err >&5
7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); } && {
7214          test -z "$ac_c_werror_flag" ||
7215          test ! -s conftest.err
7216        } && test -s conftest.$ac_objext; then
7217   ac_cv_type_signed_long_long=yes
7218 else
7219   echo "$as_me: failed program was:" >&5
7220 sed 's/^/| /' conftest.$ac_ext >&5
7221
7222         ac_cv_type_signed_long_long=no
7223 fi
7224
7225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7226 fi
7227 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7228 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7229
7230 # The cast to long int works around a bug in the HP C Compiler
7231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7233 # This bug is HP SR number 8606223364.
7234 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7235 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7236 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7237   echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239   if test "$cross_compiling" = yes; then
7240   # Depending upon the size, compute the lo and hi bounds.
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h.  */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h.  */
7247 $ac_includes_default
7248    typedef signed long long ac__type_sizeof_;
7249 int
7250 main ()
7251 {
7252 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7253 test_array [0] = 0
7254
7255   ;
7256   return 0;
7257 }
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (ac_try="$ac_compile"
7261 case "(($ac_try" in
7262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263   *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266   (eval "$ac_compile") 2>conftest.er1
7267   ac_status=$?
7268   grep -v '^ *+' conftest.er1 >conftest.err
7269   rm -f conftest.er1
7270   cat conftest.err >&5
7271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272   (exit $ac_status); } && {
7273          test -z "$ac_c_werror_flag" ||
7274          test ! -s conftest.err
7275        } && test -s conftest.$ac_objext; then
7276   ac_lo=0 ac_mid=0
7277   while :; do
7278     cat >conftest.$ac_ext <<_ACEOF
7279 /* confdefs.h.  */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h.  */
7284 $ac_includes_default
7285    typedef signed long long ac__type_sizeof_;
7286 int
7287 main ()
7288 {
7289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7290 test_array [0] = 0
7291
7292   ;
7293   return 0;
7294 }
7295 _ACEOF
7296 rm -f conftest.$ac_objext
7297 if { (ac_try="$ac_compile"
7298 case "(($ac_try" in
7299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300   *) ac_try_echo=$ac_try;;
7301 esac
7302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7303   (eval "$ac_compile") 2>conftest.er1
7304   ac_status=$?
7305   grep -v '^ *+' conftest.er1 >conftest.err
7306   rm -f conftest.er1
7307   cat conftest.err >&5
7308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309   (exit $ac_status); } && {
7310          test -z "$ac_c_werror_flag" ||
7311          test ! -s conftest.err
7312        } && test -s conftest.$ac_objext; then
7313   ac_hi=$ac_mid; break
7314 else
7315   echo "$as_me: failed program was:" >&5
7316 sed 's/^/| /' conftest.$ac_ext >&5
7317
7318         ac_lo=`expr $ac_mid + 1`
7319                         if test $ac_lo -le $ac_mid; then
7320                           ac_lo= ac_hi=
7321                           break
7322                         fi
7323                         ac_mid=`expr 2 '*' $ac_mid + 1`
7324 fi
7325
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327   done
7328 else
7329   echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7331
7332         cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h.  */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h.  */
7338 $ac_includes_default
7339    typedef signed long long ac__type_sizeof_;
7340 int
7341 main ()
7342 {
7343 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7344 test_array [0] = 0
7345
7346   ;
7347   return 0;
7348 }
7349 _ACEOF
7350 rm -f conftest.$ac_objext
7351 if { (ac_try="$ac_compile"
7352 case "(($ac_try" in
7353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354   *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357   (eval "$ac_compile") 2>conftest.er1
7358   ac_status=$?
7359   grep -v '^ *+' conftest.er1 >conftest.err
7360   rm -f conftest.er1
7361   cat conftest.err >&5
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); } && {
7364          test -z "$ac_c_werror_flag" ||
7365          test ! -s conftest.err
7366        } && test -s conftest.$ac_objext; then
7367   ac_hi=-1 ac_mid=-1
7368   while :; do
7369     cat >conftest.$ac_ext <<_ACEOF
7370 /* confdefs.h.  */
7371 _ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h.  */
7375 $ac_includes_default
7376    typedef signed long long ac__type_sizeof_;
7377 int
7378 main ()
7379 {
7380 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7381 test_array [0] = 0
7382
7383   ;
7384   return 0;
7385 }
7386 _ACEOF
7387 rm -f conftest.$ac_objext
7388 if { (ac_try="$ac_compile"
7389 case "(($ac_try" in
7390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7391   *) ac_try_echo=$ac_try;;
7392 esac
7393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7394   (eval "$ac_compile") 2>conftest.er1
7395   ac_status=$?
7396   grep -v '^ *+' conftest.er1 >conftest.err
7397   rm -f conftest.er1
7398   cat conftest.err >&5
7399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7400   (exit $ac_status); } && {
7401          test -z "$ac_c_werror_flag" ||
7402          test ! -s conftest.err
7403        } && test -s conftest.$ac_objext; then
7404   ac_lo=$ac_mid; break
7405 else
7406   echo "$as_me: failed program was:" >&5
7407 sed 's/^/| /' conftest.$ac_ext >&5
7408
7409         ac_hi=`expr '(' $ac_mid ')' - 1`
7410                         if test $ac_mid -le $ac_hi; then
7411                           ac_lo= ac_hi=
7412                           break
7413                         fi
7414                         ac_mid=`expr 2 '*' $ac_mid`
7415 fi
7416
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418   done
7419 else
7420   echo "$as_me: failed program was:" >&5
7421 sed 's/^/| /' conftest.$ac_ext >&5
7422
7423         ac_lo= ac_hi=
7424 fi
7425
7426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7427 fi
7428
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7430 # Binary search between lo and hi bounds.
7431 while test "x$ac_lo" != "x$ac_hi"; do
7432   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7433   cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h.  */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h.  */
7439 $ac_includes_default
7440    typedef signed long long ac__type_sizeof_;
7441 int
7442 main ()
7443 {
7444 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7445 test_array [0] = 0
7446
7447   ;
7448   return 0;
7449 }
7450 _ACEOF
7451 rm -f conftest.$ac_objext
7452 if { (ac_try="$ac_compile"
7453 case "(($ac_try" in
7454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7455   *) ac_try_echo=$ac_try;;
7456 esac
7457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7458   (eval "$ac_compile") 2>conftest.er1
7459   ac_status=$?
7460   grep -v '^ *+' conftest.er1 >conftest.err
7461   rm -f conftest.er1
7462   cat conftest.err >&5
7463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7464   (exit $ac_status); } && {
7465          test -z "$ac_c_werror_flag" ||
7466          test ! -s conftest.err
7467        } && test -s conftest.$ac_objext; then
7468   ac_hi=$ac_mid
7469 else
7470   echo "$as_me: failed program was:" >&5
7471 sed 's/^/| /' conftest.$ac_ext >&5
7472
7473         ac_lo=`expr '(' $ac_mid ')' + 1`
7474 fi
7475
7476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7477 done
7478 case $ac_lo in
7479 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7480 '') if test "$ac_cv_type_signed_long_long" = yes; then
7481      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7482 See \`config.log' for more details." >&5
7483 echo "$as_me: error: cannot compute sizeof (signed long long)
7484 See \`config.log' for more details." >&2;}
7485    { (exit 77); exit 77; }; }
7486    else
7487      ac_cv_sizeof_signed_long_long=0
7488    fi ;;
7489 esac
7490 else
7491   cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h.  */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h.  */
7497 $ac_includes_default
7498    typedef signed long long ac__type_sizeof_;
7499 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7500 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7501 #include <stdio.h>
7502 #include <stdlib.h>
7503 int
7504 main ()
7505 {
7506
7507   FILE *f = fopen ("conftest.val", "w");
7508   if (! f)
7509     return 1;
7510   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7511     {
7512       long int i = longval ();
7513       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7514         return 1;
7515       fprintf (f, "%ld\n", i);
7516     }
7517   else
7518     {
7519       unsigned long int i = ulongval ();
7520       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7521         return 1;
7522       fprintf (f, "%lu\n", i);
7523     }
7524   return ferror (f) || fclose (f) != 0;
7525
7526   ;
7527   return 0;
7528 }
7529 _ACEOF
7530 rm -f conftest$ac_exeext
7531 if { (ac_try="$ac_link"
7532 case "(($ac_try" in
7533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7534   *) ac_try_echo=$ac_try;;
7535 esac
7536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7537   (eval "$ac_link") 2>&5
7538   ac_status=$?
7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7541   { (case "(($ac_try" in
7542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543   *) ac_try_echo=$ac_try;;
7544 esac
7545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546   (eval "$ac_try") 2>&5
7547   ac_status=$?
7548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7549   (exit $ac_status); }; }; then
7550   ac_cv_sizeof_signed_long_long=`cat conftest.val`
7551 else
7552   echo "$as_me: program exited with status $ac_status" >&5
7553 echo "$as_me: failed program was:" >&5
7554 sed 's/^/| /' conftest.$ac_ext >&5
7555
7556 ( exit $ac_status )
7557 if test "$ac_cv_type_signed_long_long" = yes; then
7558      { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7559 See \`config.log' for more details." >&5
7560 echo "$as_me: error: cannot compute sizeof (signed long long)
7561 See \`config.log' for more details." >&2;}
7562    { (exit 77); exit 77; }; }
7563    else
7564      ac_cv_sizeof_signed_long_long=0
7565    fi
7566 fi
7567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7568 fi
7569 rm -f conftest.val
7570 fi
7571 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7572 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
7573
7574
7575
7576 cat >>confdefs.h <<_ACEOF
7577 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7578 _ACEOF
7579
7580
7581 { echo "$as_me:$LINENO: checking for void*" >&5
7582 echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
7583 if test "${ac_cv_type_voidp+set}" = set; then
7584   echo $ECHO_N "(cached) $ECHO_C" >&6
7585 else
7586   cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h.  */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h.  */
7592 $ac_includes_default
7593 typedef void* ac__type_new_;
7594 int
7595 main ()
7596 {
7597 if ((ac__type_new_ *) 0)
7598   return 0;
7599 if (sizeof (ac__type_new_))
7600   return 0;
7601   ;
7602   return 0;
7603 }
7604 _ACEOF
7605 rm -f conftest.$ac_objext
7606 if { (ac_try="$ac_compile"
7607 case "(($ac_try" in
7608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609   *) ac_try_echo=$ac_try;;
7610 esac
7611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7612   (eval "$ac_compile") 2>conftest.er1
7613   ac_status=$?
7614   grep -v '^ *+' conftest.er1 >conftest.err
7615   rm -f conftest.er1
7616   cat conftest.err >&5
7617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618   (exit $ac_status); } && {
7619          test -z "$ac_c_werror_flag" ||
7620          test ! -s conftest.err
7621        } && test -s conftest.$ac_objext; then
7622   ac_cv_type_voidp=yes
7623 else
7624   echo "$as_me: failed program was:" >&5
7625 sed 's/^/| /' conftest.$ac_ext >&5
7626
7627         ac_cv_type_voidp=no
7628 fi
7629
7630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7631 fi
7632 { echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7633 echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
7634
7635 # The cast to long int works around a bug in the HP C Compiler
7636 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7637 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7638 # This bug is HP SR number 8606223364.
7639 { echo "$as_me:$LINENO: checking size of void*" >&5
7640 echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
7641 if test "${ac_cv_sizeof_voidp+set}" = set; then
7642   echo $ECHO_N "(cached) $ECHO_C" >&6
7643 else
7644   if test "$cross_compiling" = yes; then
7645   # Depending upon the size, compute the lo and hi bounds.
7646 cat >conftest.$ac_ext <<_ACEOF
7647 /* confdefs.h.  */
7648 _ACEOF
7649 cat confdefs.h >>conftest.$ac_ext
7650 cat >>conftest.$ac_ext <<_ACEOF
7651 /* end confdefs.h.  */
7652 $ac_includes_default
7653    typedef void* ac__type_sizeof_;
7654 int
7655 main ()
7656 {
7657 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7658 test_array [0] = 0
7659
7660   ;
7661   return 0;
7662 }
7663 _ACEOF
7664 rm -f conftest.$ac_objext
7665 if { (ac_try="$ac_compile"
7666 case "(($ac_try" in
7667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7668   *) ac_try_echo=$ac_try;;
7669 esac
7670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7671   (eval "$ac_compile") 2>conftest.er1
7672   ac_status=$?
7673   grep -v '^ *+' conftest.er1 >conftest.err
7674   rm -f conftest.er1
7675   cat conftest.err >&5
7676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); } && {
7678          test -z "$ac_c_werror_flag" ||
7679          test ! -s conftest.err
7680        } && test -s conftest.$ac_objext; then
7681   ac_lo=0 ac_mid=0
7682   while :; do
7683     cat >conftest.$ac_ext <<_ACEOF
7684 /* confdefs.h.  */
7685 _ACEOF
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h.  */
7689 $ac_includes_default
7690    typedef void* ac__type_sizeof_;
7691 int
7692 main ()
7693 {
7694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7695 test_array [0] = 0
7696
7697   ;
7698   return 0;
7699 }
7700 _ACEOF
7701 rm -f conftest.$ac_objext
7702 if { (ac_try="$ac_compile"
7703 case "(($ac_try" in
7704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705   *) ac_try_echo=$ac_try;;
7706 esac
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708   (eval "$ac_compile") 2>conftest.er1
7709   ac_status=$?
7710   grep -v '^ *+' conftest.er1 >conftest.err
7711   rm -f conftest.er1
7712   cat conftest.err >&5
7713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714   (exit $ac_status); } && {
7715          test -z "$ac_c_werror_flag" ||
7716          test ! -s conftest.err
7717        } && test -s conftest.$ac_objext; then
7718   ac_hi=$ac_mid; break
7719 else
7720   echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7722
7723         ac_lo=`expr $ac_mid + 1`
7724                         if test $ac_lo -le $ac_mid; then
7725                           ac_lo= ac_hi=
7726                           break
7727                         fi
7728                         ac_mid=`expr 2 '*' $ac_mid + 1`
7729 fi
7730
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7732   done
7733 else
7734   echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7736
7737         cat >conftest.$ac_ext <<_ACEOF
7738 /* confdefs.h.  */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h.  */
7743 $ac_includes_default
7744    typedef void* ac__type_sizeof_;
7745 int
7746 main ()
7747 {
7748 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7749 test_array [0] = 0
7750
7751   ;
7752   return 0;
7753 }
7754 _ACEOF
7755 rm -f conftest.$ac_objext
7756 if { (ac_try="$ac_compile"
7757 case "(($ac_try" in
7758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759   *) ac_try_echo=$ac_try;;
7760 esac
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762   (eval "$ac_compile") 2>conftest.er1
7763   ac_status=$?
7764   grep -v '^ *+' conftest.er1 >conftest.err
7765   rm -f conftest.er1
7766   cat conftest.err >&5
7767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768   (exit $ac_status); } && {
7769          test -z "$ac_c_werror_flag" ||
7770          test ! -s conftest.err
7771        } && test -s conftest.$ac_objext; then
7772   ac_hi=-1 ac_mid=-1
7773   while :; do
7774     cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h.  */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h.  */
7780 $ac_includes_default
7781    typedef void* ac__type_sizeof_;
7782 int
7783 main ()
7784 {
7785 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7786 test_array [0] = 0
7787
7788   ;
7789   return 0;
7790 }
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7794 case "(($ac_try" in
7795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796   *) ac_try_echo=$ac_try;;
7797 esac
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799   (eval "$ac_compile") 2>conftest.er1
7800   ac_status=$?
7801   grep -v '^ *+' conftest.er1 >conftest.err
7802   rm -f conftest.er1
7803   cat conftest.err >&5
7804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805   (exit $ac_status); } && {
7806          test -z "$ac_c_werror_flag" ||
7807          test ! -s conftest.err
7808        } && test -s conftest.$ac_objext; then
7809   ac_lo=$ac_mid; break
7810 else
7811   echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.$ac_ext >&5
7813
7814         ac_hi=`expr '(' $ac_mid ')' - 1`
7815                         if test $ac_mid -le $ac_hi; then
7816                           ac_lo= ac_hi=
7817                           break
7818                         fi
7819                         ac_mid=`expr 2 '*' $ac_mid`
7820 fi
7821
7822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7823   done
7824 else
7825   echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7827
7828         ac_lo= ac_hi=
7829 fi
7830
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 fi
7833
7834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7835 # Binary search between lo and hi bounds.
7836 while test "x$ac_lo" != "x$ac_hi"; do
7837   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7838   cat >conftest.$ac_ext <<_ACEOF
7839 /* confdefs.h.  */
7840 _ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h.  */
7844 $ac_includes_default
7845    typedef void* ac__type_sizeof_;
7846 int
7847 main ()
7848 {
7849 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7850 test_array [0] = 0
7851
7852   ;
7853   return 0;
7854 }
7855 _ACEOF
7856 rm -f conftest.$ac_objext
7857 if { (ac_try="$ac_compile"
7858 case "(($ac_try" in
7859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7860   *) ac_try_echo=$ac_try;;
7861 esac
7862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7863   (eval "$ac_compile") 2>conftest.er1
7864   ac_status=$?
7865   grep -v '^ *+' conftest.er1 >conftest.err
7866   rm -f conftest.er1
7867   cat conftest.err >&5
7868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869   (exit $ac_status); } && {
7870          test -z "$ac_c_werror_flag" ||
7871          test ! -s conftest.err
7872        } && test -s conftest.$ac_objext; then
7873   ac_hi=$ac_mid
7874 else
7875   echo "$as_me: failed program was:" >&5
7876 sed 's/^/| /' conftest.$ac_ext >&5
7877
7878         ac_lo=`expr '(' $ac_mid ')' + 1`
7879 fi
7880
7881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7882 done
7883 case $ac_lo in
7884 ?*) ac_cv_sizeof_voidp=$ac_lo;;
7885 '') if test "$ac_cv_type_voidp" = yes; then
7886      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
7887 See \`config.log' for more details." >&5
7888 echo "$as_me: error: cannot compute sizeof (void*)
7889 See \`config.log' for more details." >&2;}
7890    { (exit 77); exit 77; }; }
7891    else
7892      ac_cv_sizeof_voidp=0
7893    fi ;;
7894 esac
7895 else
7896   cat >conftest.$ac_ext <<_ACEOF
7897 /* confdefs.h.  */
7898 _ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h.  */
7902 $ac_includes_default
7903    typedef void* ac__type_sizeof_;
7904 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7905 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7906 #include <stdio.h>
7907 #include <stdlib.h>
7908 int
7909 main ()
7910 {
7911
7912   FILE *f = fopen ("conftest.val", "w");
7913   if (! f)
7914     return 1;
7915   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7916     {
7917       long int i = longval ();
7918       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7919         return 1;
7920       fprintf (f, "%ld\n", i);
7921     }
7922   else
7923     {
7924       unsigned long int i = ulongval ();
7925       if (i != ((long int) (sizeof (ac__type_sizeof_))))
7926         return 1;
7927       fprintf (f, "%lu\n", i);
7928     }
7929   return ferror (f) || fclose (f) != 0;
7930
7931   ;
7932   return 0;
7933 }
7934 _ACEOF
7935 rm -f conftest$ac_exeext
7936 if { (ac_try="$ac_link"
7937 case "(($ac_try" in
7938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939   *) ac_try_echo=$ac_try;;
7940 esac
7941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7942   (eval "$ac_link") 2>&5
7943   ac_status=$?
7944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7945   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7946   { (case "(($ac_try" in
7947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948   *) ac_try_echo=$ac_try;;
7949 esac
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951   (eval "$ac_try") 2>&5
7952   ac_status=$?
7953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954   (exit $ac_status); }; }; then
7955   ac_cv_sizeof_voidp=`cat conftest.val`
7956 else
7957   echo "$as_me: program exited with status $ac_status" >&5
7958 echo "$as_me: failed program was:" >&5
7959 sed 's/^/| /' conftest.$ac_ext >&5
7960
7961 ( exit $ac_status )
7962 if test "$ac_cv_type_voidp" = yes; then
7963      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
7964 See \`config.log' for more details." >&5
7965 echo "$as_me: error: cannot compute sizeof (void*)
7966 See \`config.log' for more details." >&2;}
7967    { (exit 77); exit 77; }; }
7968    else
7969      ac_cv_sizeof_voidp=0
7970    fi
7971 fi
7972 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7973 fi
7974 rm -f conftest.val
7975 fi
7976 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
7977 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
7978
7979
7980
7981 cat >>confdefs.h <<_ACEOF
7982 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
7983 _ACEOF
7984
7985
7986
7987
7988
7989 # Extract the first word of "freetype-config", so it can be a program name with args.
7990 set dummy freetype-config; ac_word=$2
7991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7993 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
7994   echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996   case $FREETYPE_CONFIG in
7997   [\\/]* | ?:[\\/]*)
7998   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
7999   ;;
8000   *)
8001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8003 for as_dir in $as_dummy
8004 do
8005   IFS=$as_save_IFS
8006   test -z "$as_dir" && as_dir=.
8007   for ac_exec_ext in '' $ac_executable_extensions; do
8008   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8010     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8011     break 2
8012   fi
8013 done
8014 done
8015 IFS=$as_save_IFS
8016
8017   ;;
8018 esac
8019 fi
8020 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8021 if test -n "$FREETYPE_CONFIG"; then
8022   { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8023 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8024 else
8025   { echo "$as_me:$LINENO: result: no" >&5
8026 echo "${ECHO_T}no" >&6; }
8027 fi
8028
8029
8030
8031 OLDCPPFLAGS="${CPPFLAGS}"
8032 OLDLIBS="${LIBS}"
8033 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8034     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8035 else if test -d /usr/include/freetype2; then
8036     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8037 else if test -d /usr/local/include/freetype2; then
8038     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8039 fi
8040 fi
8041 fi
8042
8043 if test "x${FREETYPE_CONFIG}" '=' "x";then
8044     # if we didn't find the freetype-config program, we won't
8045     # know where the libs are expected to be. So just blindly
8046     # try to link against them.
8047     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8048 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8049 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8050   echo $ECHO_N "(cached) $ECHO_C" >&6
8051 else
8052   ac_check_lib_save_LIBS=$LIBS
8053 LIBS="-lfreetype  $LIBS"
8054 cat >conftest.$ac_ext <<_ACEOF
8055 /* confdefs.h.  */
8056 _ACEOF
8057 cat confdefs.h >>conftest.$ac_ext
8058 cat >>conftest.$ac_ext <<_ACEOF
8059 /* end confdefs.h.  */
8060
8061 /* Override any GCC internal prototype to avoid an error.
8062    Use char because int might match the return type of a GCC
8063    builtin and then its argument prototype would still apply.  */
8064 #ifdef __cplusplus
8065 extern "C"
8066 #endif
8067 char FT_Init_FreeType ();
8068 int
8069 main ()
8070 {
8071 return FT_Init_FreeType ();
8072   ;
8073   return 0;
8074 }
8075 _ACEOF
8076 rm -f conftest.$ac_objext conftest$ac_exeext
8077 if { (ac_try="$ac_link"
8078 case "(($ac_try" in
8079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8080   *) ac_try_echo=$ac_try;;
8081 esac
8082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8083   (eval "$ac_link") 2>conftest.er1
8084   ac_status=$?
8085   grep -v '^ *+' conftest.er1 >conftest.err
8086   rm -f conftest.er1
8087   cat conftest.err >&5
8088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); } && {
8090          test -z "$ac_c_werror_flag" ||
8091          test ! -s conftest.err
8092        } && test -s conftest$ac_exeext &&
8093        $as_test_x conftest$ac_exeext; then
8094   ac_cv_lib_freetype_FT_Init_FreeType=yes
8095 else
8096   echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8098
8099         ac_cv_lib_freetype_FT_Init_FreeType=no
8100 fi
8101
8102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8103       conftest$ac_exeext conftest.$ac_ext
8104 LIBS=$ac_check_lib_save_LIBS
8105 fi
8106 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8107 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8108 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8109   HAVE_LIB_FREETYPE=1
8110 fi
8111
8112 fi
8113
8114
8115 for ac_header in ft2build.h
8116 do
8117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8119   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8122   echo $ECHO_N "(cached) $ECHO_C" >&6
8123 fi
8124 ac_res=`eval echo '${'$as_ac_Header'}'`
8125                { echo "$as_me:$LINENO: result: $ac_res" >&5
8126 echo "${ECHO_T}$ac_res" >&6; }
8127 else
8128   # Is the header compilable?
8129 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8131 cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h.  */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h.  */
8137 $ac_includes_default
8138 #include <$ac_header>
8139 _ACEOF
8140 rm -f conftest.$ac_objext
8141 if { (ac_try="$ac_compile"
8142 case "(($ac_try" in
8143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144   *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147   (eval "$ac_compile") 2>conftest.er1
8148   ac_status=$?
8149   grep -v '^ *+' conftest.er1 >conftest.err
8150   rm -f conftest.er1
8151   cat conftest.err >&5
8152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153   (exit $ac_status); } && {
8154          test -z "$ac_c_werror_flag" ||
8155          test ! -s conftest.err
8156        } && test -s conftest.$ac_objext; then
8157   ac_header_compiler=yes
8158 else
8159   echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8161
8162         ac_header_compiler=no
8163 fi
8164
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8167 echo "${ECHO_T}$ac_header_compiler" >&6; }
8168
8169 # Is the header present?
8170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8172 cat >conftest.$ac_ext <<_ACEOF
8173 /* confdefs.h.  */
8174 _ACEOF
8175 cat confdefs.h >>conftest.$ac_ext
8176 cat >>conftest.$ac_ext <<_ACEOF
8177 /* end confdefs.h.  */
8178 #include <$ac_header>
8179 _ACEOF
8180 if { (ac_try="$ac_cpp conftest.$ac_ext"
8181 case "(($ac_try" in
8182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8183   *) ac_try_echo=$ac_try;;
8184 esac
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8187   ac_status=$?
8188   grep -v '^ *+' conftest.er1 >conftest.err
8189   rm -f conftest.er1
8190   cat conftest.err >&5
8191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192   (exit $ac_status); } >/dev/null && {
8193          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8194          test ! -s conftest.err
8195        }; then
8196   ac_header_preproc=yes
8197 else
8198   echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.$ac_ext >&5
8200
8201   ac_header_preproc=no
8202 fi
8203
8204 rm -f conftest.err conftest.$ac_ext
8205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8206 echo "${ECHO_T}$ac_header_preproc" >&6; }
8207
8208 # So?  What about this header?
8209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8210   yes:no: )
8211     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8213     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8215     ac_header_preproc=yes
8216     ;;
8217   no:yes:* )
8218     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8220     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8221 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8222     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8224     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8225 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8226     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8228     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8230
8231     ;;
8232 esac
8233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8236   echo $ECHO_N "(cached) $ECHO_C" >&6
8237 else
8238   eval "$as_ac_Header=\$ac_header_preproc"
8239 fi
8240 ac_res=`eval echo '${'$as_ac_Header'}'`
8241                { echo "$as_me:$LINENO: result: $ac_res" >&5
8242 echo "${ECHO_T}$ac_res" >&6; }
8243
8244 fi
8245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8246   cat >>confdefs.h <<_ACEOF
8247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8248 _ACEOF
8249  HAVE_FT2BUILD_H=1
8250 fi
8251
8252 done
8253
8254 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8255
8256 for ac_header in freetype/freetype.h
8257 do
8258 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8260   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 fi
8265 ac_res=`eval echo '${'$as_ac_Header'}'`
8266                { echo "$as_me:$LINENO: result: $ac_res" >&5
8267 echo "${ECHO_T}$ac_res" >&6; }
8268 else
8269   # Is the header compilable?
8270 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8271 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h.  */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h.  */
8278 $ac_includes_default
8279 #include <$ac_header>
8280 _ACEOF
8281 rm -f conftest.$ac_objext
8282 if { (ac_try="$ac_compile"
8283 case "(($ac_try" in
8284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8285   *) ac_try_echo=$ac_try;;
8286 esac
8287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8288   (eval "$ac_compile") 2>conftest.er1
8289   ac_status=$?
8290   grep -v '^ *+' conftest.er1 >conftest.err
8291   rm -f conftest.er1
8292   cat conftest.err >&5
8293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294   (exit $ac_status); } && {
8295          test -z "$ac_c_werror_flag" ||
8296          test ! -s conftest.err
8297        } && test -s conftest.$ac_objext; then
8298   ac_header_compiler=yes
8299 else
8300   echo "$as_me: failed program was:" >&5
8301 sed 's/^/| /' conftest.$ac_ext >&5
8302
8303         ac_header_compiler=no
8304 fi
8305
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8308 echo "${ECHO_T}$ac_header_compiler" >&6; }
8309
8310 # Is the header present?
8311 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8312 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8313 cat >conftest.$ac_ext <<_ACEOF
8314 /* confdefs.h.  */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h.  */
8319 #include <$ac_header>
8320 _ACEOF
8321 if { (ac_try="$ac_cpp conftest.$ac_ext"
8322 case "(($ac_try" in
8323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324   *) ac_try_echo=$ac_try;;
8325 esac
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8328   ac_status=$?
8329   grep -v '^ *+' conftest.er1 >conftest.err
8330   rm -f conftest.er1
8331   cat conftest.err >&5
8332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333   (exit $ac_status); } >/dev/null && {
8334          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8335          test ! -s conftest.err
8336        }; then
8337   ac_header_preproc=yes
8338 else
8339   echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.$ac_ext >&5
8341
8342   ac_header_preproc=no
8343 fi
8344
8345 rm -f conftest.err conftest.$ac_ext
8346 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8347 echo "${ECHO_T}$ac_header_preproc" >&6; }
8348
8349 # So?  What about this header?
8350 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8351   yes:no: )
8352     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8353 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8354     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8355 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8356     ac_header_preproc=yes
8357     ;;
8358   no:yes:* )
8359     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8360 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8361     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8362 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8363     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8364 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8365     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8366 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8367     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8368 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8369     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8370 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8371
8372     ;;
8373 esac
8374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8377   echo $ECHO_N "(cached) $ECHO_C" >&6
8378 else
8379   eval "$as_ac_Header=\$ac_header_preproc"
8380 fi
8381 ac_res=`eval echo '${'$as_ac_Header'}'`
8382                { echo "$as_me:$LINENO: result: $ac_res" >&5
8383 echo "${ECHO_T}$ac_res" >&6; }
8384
8385 fi
8386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8387   cat >>confdefs.h <<_ACEOF
8388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8389 _ACEOF
8390  HAVE_FREETYPE_FREETYPE_H=1
8391 fi
8392
8393 done
8394
8395 fi
8396
8397 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8398         "x${FREETYPE_CONFIG}" '!=' "x";then
8399     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8400         HAVE_FREETYPE=1
8401     fi
8402     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8403         HAVE_FREETYPE=1
8404     fi
8405 fi
8406
8407 if test "x${HAVE_FREETYPE}" = "x1"; then
8408     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8409         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8410     else
8411         LIBS="$LIBS -lfreetype"
8412     fi
8413
8414     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8415         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8416     fi
8417
8418     { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8419 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8420
8421     cat > conftest.c << EOF
8422 $HAVE_FT2BUILD_H_DEFINE
8423
8424 #ifdef HAVE_FT2BUILD_H
8425 #include <ft2build.h>
8426 #include FT_FREETYPE_H
8427 #include FT_GLYPH_H
8428 #include FT_SIZES_H
8429 #include FT_SFNT_NAMES_H
8430 #include FT_TRUETYPE_IDS_H
8431 #include FT_OUTLINE_H
8432 #else
8433 #include <freetype/freetype.h>
8434 #include <freetype/ftglyph.h>
8435 #include <freetype/ftsizes.h>
8436 #include <freetype/ftsnames.h>
8437 #include <freetype/ttnameid.h>
8438 #include <freetype/ftoutln.h>
8439 #endif
8440
8441 int main()
8442 {
8443     FT_Library ftlibrary;
8444     FT_Face face;
8445     FT_Error error;
8446     FT_ULong charcode;
8447     FT_UInt gindex;
8448     FT_Glyph glyph;
8449     FT_BBox bbox;
8450     FT_Matrix matrix;
8451     FT_UInt i;
8452     char* name = 0;
8453     char italic, bold;
8454
8455     FT_Init_FreeType(&ftlibrary);
8456     FT_New_Face(ftlibrary, "filename", 0, &face);
8457     i = face->num_glyphs - 1;
8458     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8459     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8460     FT_Get_Postscript_Name(face);
8461     FT_Get_Char_Index(face, 33);
8462     FT_Get_First_Char(face, &i);
8463     FT_Get_Next_Char(face, 33, &i);
8464     if(FT_HAS_GLYPH_NAMES(face)) {
8465         FT_Get_Glyph_Name(face, 33, name, 127);
8466     }
8467     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8468     FT_Get_Glyph(face->glyph, &glyph);
8469     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8470     FT_Done_Glyph(glyph);
8471     FT_Done_Face(face);
8472     FT_Done_FreeType(ftlibrary);
8473     return 0;
8474 }
8475 EOF
8476
8477     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8478     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8479         { echo "$as_me:$LINENO: result: yes" >&5
8480 echo "${ECHO_T}yes" >&6; }
8481
8482 cat >>confdefs.h <<\_ACEOF
8483 #define HAVE_FREETYPE 1
8484 _ACEOF
8485
8486
8487 cat >>confdefs.h <<\_ACEOF
8488 #define HAVE_FREETYPE_FREETYPE_H 1
8489 _ACEOF
8490
8491
8492 cat >>confdefs.h <<\_ACEOF
8493 #define USE_FREETYPE 1
8494 _ACEOF
8495   # for ttf2tp1
8496     else
8497         echo "configure: failed program was:" >&5
8498         cat conftest.c >&5
8499         HAVE_FREETYPE=0
8500         { echo "$as_me:$LINENO: result: no" >&5
8501 echo "${ECHO_T}no" >&6; }
8502     fi
8503     rm -f conftest*
8504 fi
8505
8506 # if the above didn't work out, reset all changes to the compiler variables.
8507 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8508     CPPFLAGS=$OLDCPPFLAGS
8509     LIBS=$OLDLIBS
8510 fi
8511
8512
8513
8514 OLDCPPFLAGS="${CPPFLAGS}"
8515 OLDLIBS="${LIBS}"
8516
8517 if test -d /usr/include/fontconfig; then
8518     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8519 fi
8520
8521 { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8522 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; }
8523 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8524   echo $ECHO_N "(cached) $ECHO_C" >&6
8525 else
8526   ac_check_lib_save_LIBS=$LIBS
8527 LIBS="-lfontconfig  $LIBS"
8528 cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h.  */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h.  */
8534
8535 /* Override any GCC internal prototype to avoid an error.
8536    Use char because int might match the return type of a GCC
8537    builtin and then its argument prototype would still apply.  */
8538 #ifdef __cplusplus
8539 extern "C"
8540 #endif
8541 char FcInit ();
8542 int
8543 main ()
8544 {
8545 return FcInit ();
8546   ;
8547   return 0;
8548 }
8549 _ACEOF
8550 rm -f conftest.$ac_objext conftest$ac_exeext
8551 if { (ac_try="$ac_link"
8552 case "(($ac_try" in
8553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8554   *) ac_try_echo=$ac_try;;
8555 esac
8556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557   (eval "$ac_link") 2>conftest.er1
8558   ac_status=$?
8559   grep -v '^ *+' conftest.er1 >conftest.err
8560   rm -f conftest.er1
8561   cat conftest.err >&5
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); } && {
8564          test -z "$ac_c_werror_flag" ||
8565          test ! -s conftest.err
8566        } && test -s conftest$ac_exeext &&
8567        $as_test_x conftest$ac_exeext; then
8568   ac_cv_lib_fontconfig_FcInit=yes
8569 else
8570   echo "$as_me: failed program was:" >&5
8571 sed 's/^/| /' conftest.$ac_ext >&5
8572
8573         ac_cv_lib_fontconfig_FcInit=no
8574 fi
8575
8576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8577       conftest$ac_exeext conftest.$ac_ext
8578 LIBS=$ac_check_lib_save_LIBS
8579 fi
8580 { echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8581 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; }
8582 if test $ac_cv_lib_fontconfig_FcInit = yes; then
8583   HAVE_LIB_FONTCONFIG=1
8584 fi
8585
8586
8587 for ac_header in fontconfig.h
8588 do
8589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8591   { echo "$as_me:$LINENO: checking for $ac_header" >&5
8592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8594   echo $ECHO_N "(cached) $ECHO_C" >&6
8595 fi
8596 ac_res=`eval echo '${'$as_ac_Header'}'`
8597                { echo "$as_me:$LINENO: result: $ac_res" >&5
8598 echo "${ECHO_T}$ac_res" >&6; }
8599 else
8600   # Is the header compilable?
8601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8603 cat >conftest.$ac_ext <<_ACEOF
8604 /* confdefs.h.  */
8605 _ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h.  */
8609 $ac_includes_default
8610 #include <$ac_header>
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (ac_try="$ac_compile"
8614 case "(($ac_try" in
8615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616   *) ac_try_echo=$ac_try;;
8617 esac
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619   (eval "$ac_compile") 2>conftest.er1
8620   ac_status=$?
8621   grep -v '^ *+' conftest.er1 >conftest.err
8622   rm -f conftest.er1
8623   cat conftest.err >&5
8624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625   (exit $ac_status); } && {
8626          test -z "$ac_c_werror_flag" ||
8627          test ! -s conftest.err
8628        } && test -s conftest.$ac_objext; then
8629   ac_header_compiler=yes
8630 else
8631   echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8633
8634         ac_header_compiler=no
8635 fi
8636
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8639 echo "${ECHO_T}$ac_header_compiler" >&6; }
8640
8641 # Is the header present?
8642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8644 cat >conftest.$ac_ext <<_ACEOF
8645 /* confdefs.h.  */
8646 _ACEOF
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h.  */
8650 #include <$ac_header>
8651 _ACEOF
8652 if { (ac_try="$ac_cpp conftest.$ac_ext"
8653 case "(($ac_try" in
8654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8655   *) ac_try_echo=$ac_try;;
8656 esac
8657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8658   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8659   ac_status=$?
8660   grep -v '^ *+' conftest.er1 >conftest.err
8661   rm -f conftest.er1
8662   cat conftest.err >&5
8663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664   (exit $ac_status); } >/dev/null && {
8665          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8666          test ! -s conftest.err
8667        }; then
8668   ac_header_preproc=yes
8669 else
8670   echo "$as_me: failed program was:" >&5
8671 sed 's/^/| /' conftest.$ac_ext >&5
8672
8673   ac_header_preproc=no
8674 fi
8675
8676 rm -f conftest.err conftest.$ac_ext
8677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8678 echo "${ECHO_T}$ac_header_preproc" >&6; }
8679
8680 # So?  What about this header?
8681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8682   yes:no: )
8683     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8685     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8687     ac_header_preproc=yes
8688     ;;
8689   no:yes:* )
8690     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8692     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8693 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8694     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8696     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8697 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8698     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8700     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8702
8703     ;;
8704 esac
8705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8708   echo $ECHO_N "(cached) $ECHO_C" >&6
8709 else
8710   eval "$as_ac_Header=\$ac_header_preproc"
8711 fi
8712 ac_res=`eval echo '${'$as_ac_Header'}'`
8713                { echo "$as_me:$LINENO: result: $ac_res" >&5
8714 echo "${ECHO_T}$ac_res" >&6; }
8715
8716 fi
8717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8718   cat >>confdefs.h <<_ACEOF
8719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8720 _ACEOF
8721  HAVE_FONTCONFIG_H=1
8722 fi
8723
8724 done
8725
8726
8727 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8728 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8729     HAVE_FONTCONFIG=1
8730 fi
8731 fi
8732
8733 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8734     LIBS="$LIBS -lfontconfig"
8735 { echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8736 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6; }
8737
8738 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8739     #move freetype library to the end of libraries, otherwise fontconfig
8740     #won't compile.
8741     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8742 fi
8743
8744 cat > conftest.c << EOF
8745 #include <string.h>
8746 #include <fontconfig.h>
8747
8748 int main()
8749 {
8750     FcPattern *pattern, *match;
8751     FcResult result;
8752     FcChar8 *v;
8753     char*s1="abc",*s2="ABC";
8754     strcasecmp(s1,s2);
8755     FcInit();
8756     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8757     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8758     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8759
8760     FcConfig*c = FcConfigCreate();
8761     FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8762     FcConfigBuildFonts(c);
8763     FcConfigSetCurrent(c);
8764
8765     FcFontSet * set =  FcConfigGetFonts(c, FcSetSystem);
8766     FcFontSetDestroy(set);
8767
8768     FcConfigSubstitute(0, pattern, FcMatchPattern);
8769     FcDefaultSubstitute(pattern);
8770     match = FcFontMatch(0, pattern, &result);
8771     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8772     FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8773     FcPatternPrint(pattern);
8774     FcPatternDestroy(pattern);
8775     FcPatternDestroy(match);
8776     FcFini();
8777     return 0;
8778 }
8779 EOF
8780
8781     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8782     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8783         { echo "$as_me:$LINENO: result: yes" >&5
8784 echo "${ECHO_T}yes" >&6; }
8785
8786 cat >>confdefs.h <<\_ACEOF
8787 #define HAVE_FONTCONFIG 1
8788 _ACEOF
8789
8790     else
8791         echo "configure: failed program was:" >&5
8792         cat conftest.c >&5
8793         HAVE_FONTCONFIG=0
8794         { echo "$as_me:$LINENO: result: no" >&5
8795 echo "${ECHO_T}no" >&6; }
8796     fi
8797     rm -f conftest*
8798 fi
8799
8800 # if the above didn't work out, reset all changes to the compiler variables.
8801 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
8802     CPPFLAGS=$OLDCPPFLAGS
8803     LIBS=$OLDLIBS
8804 fi
8805
8806
8807
8808 OLDCPPFLAGS="${CPPFLAGS}"
8809 OLDLIBS="${LIBS}"
8810
8811
8812 { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
8813 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
8814 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
8815   echo $ECHO_N "(cached) $ECHO_C" >&6
8816 else
8817   ac_check_lib_save_LIBS=$LIBS
8818 LIBS="-lGL  $LIBS"
8819 cat >conftest.$ac_ext <<_ACEOF
8820 /* confdefs.h.  */
8821 _ACEOF
8822 cat confdefs.h >>conftest.$ac_ext
8823 cat >>conftest.$ac_ext <<_ACEOF
8824 /* end confdefs.h.  */
8825
8826 /* Override any GCC internal prototype to avoid an error.
8827    Use char because int might match the return type of a GCC
8828    builtin and then its argument prototype would still apply.  */
8829 #ifdef __cplusplus
8830 extern "C"
8831 #endif
8832 char glBegin ();
8833 int
8834 main ()
8835 {
8836 return glBegin ();
8837   ;
8838   return 0;
8839 }
8840 _ACEOF
8841 rm -f conftest.$ac_objext conftest$ac_exeext
8842 if { (ac_try="$ac_link"
8843 case "(($ac_try" in
8844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8845   *) ac_try_echo=$ac_try;;
8846 esac
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848   (eval "$ac_link") 2>conftest.er1
8849   ac_status=$?
8850   grep -v '^ *+' conftest.er1 >conftest.err
8851   rm -f conftest.er1
8852   cat conftest.err >&5
8853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854   (exit $ac_status); } && {
8855          test -z "$ac_c_werror_flag" ||
8856          test ! -s conftest.err
8857        } && test -s conftest$ac_exeext &&
8858        $as_test_x conftest$ac_exeext; then
8859   ac_cv_lib_GL_glBegin=yes
8860 else
8861   echo "$as_me: failed program was:" >&5
8862 sed 's/^/| /' conftest.$ac_ext >&5
8863
8864         ac_cv_lib_GL_glBegin=no
8865 fi
8866
8867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8868       conftest$ac_exeext conftest.$ac_ext
8869 LIBS=$ac_check_lib_save_LIBS
8870 fi
8871 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
8872 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
8873 if test $ac_cv_lib_GL_glBegin = yes; then
8874   cat >>confdefs.h <<_ACEOF
8875 #define HAVE_LIBGL 1
8876 _ACEOF
8877
8878   LIBS="-lGL $LIBS"
8879
8880 fi
8881
8882
8883 { echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
8884 echo $ECHO_N "checking for gluBeginSurface in -lGLU... $ECHO_C" >&6; }
8885 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
8886   echo $ECHO_N "(cached) $ECHO_C" >&6
8887 else
8888   ac_check_lib_save_LIBS=$LIBS
8889 LIBS="-lGLU  $LIBS"
8890 cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h.  */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h.  */
8896
8897 /* Override any GCC internal prototype to avoid an error.
8898    Use char because int might match the return type of a GCC
8899    builtin and then its argument prototype would still apply.  */
8900 #ifdef __cplusplus
8901 extern "C"
8902 #endif
8903 char gluBeginSurface ();
8904 int
8905 main ()
8906 {
8907 return gluBeginSurface ();
8908   ;
8909   return 0;
8910 }
8911 _ACEOF
8912 rm -f conftest.$ac_objext conftest$ac_exeext
8913 if { (ac_try="$ac_link"
8914 case "(($ac_try" in
8915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8916   *) ac_try_echo=$ac_try;;
8917 esac
8918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8919   (eval "$ac_link") 2>conftest.er1
8920   ac_status=$?
8921   grep -v '^ *+' conftest.er1 >conftest.err
8922   rm -f conftest.er1
8923   cat conftest.err >&5
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); } && {
8926          test -z "$ac_c_werror_flag" ||
8927          test ! -s conftest.err
8928        } && test -s conftest$ac_exeext &&
8929        $as_test_x conftest$ac_exeext; then
8930   ac_cv_lib_GLU_gluBeginSurface=yes
8931 else
8932   echo "$as_me: failed program was:" >&5
8933 sed 's/^/| /' conftest.$ac_ext >&5
8934
8935         ac_cv_lib_GLU_gluBeginSurface=no
8936 fi
8937
8938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8939       conftest$ac_exeext conftest.$ac_ext
8940 LIBS=$ac_check_lib_save_LIBS
8941 fi
8942 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
8943 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginSurface" >&6; }
8944 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
8945   cat >>confdefs.h <<_ACEOF
8946 #define HAVE_LIBGLU 1
8947 _ACEOF
8948
8949   LIBS="-lGLU $LIBS"
8950
8951 fi
8952
8953
8954 { echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
8955 echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6; }
8956 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
8957   echo $ECHO_N "(cached) $ECHO_C" >&6
8958 else
8959   ac_check_lib_save_LIBS=$LIBS
8960 LIBS="-lglut  $LIBS"
8961 cat >conftest.$ac_ext <<_ACEOF
8962 /* confdefs.h.  */
8963 _ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h.  */
8967
8968 /* Override any GCC internal prototype to avoid an error.
8969    Use char because int might match the return type of a GCC
8970    builtin and then its argument prototype would still apply.  */
8971 #ifdef __cplusplus
8972 extern "C"
8973 #endif
8974 char glutInit ();
8975 int
8976 main ()
8977 {
8978 return glutInit ();
8979   ;
8980   return 0;
8981 }
8982 _ACEOF
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (ac_try="$ac_link"
8985 case "(($ac_try" in
8986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987   *) ac_try_echo=$ac_try;;
8988 esac
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990   (eval "$ac_link") 2>conftest.er1
8991   ac_status=$?
8992   grep -v '^ *+' conftest.er1 >conftest.err
8993   rm -f conftest.er1
8994   cat conftest.err >&5
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); } && {
8997          test -z "$ac_c_werror_flag" ||
8998          test ! -s conftest.err
8999        } && test -s conftest$ac_exeext &&
9000        $as_test_x conftest$ac_exeext; then
9001   ac_cv_lib_glut_glutInit=yes
9002 else
9003   echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006         ac_cv_lib_glut_glutInit=no
9007 fi
9008
9009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9010       conftest$ac_exeext conftest.$ac_ext
9011 LIBS=$ac_check_lib_save_LIBS
9012 fi
9013 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
9014 echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6; }
9015 if test $ac_cv_lib_glut_glutInit = yes; then
9016   cat >>confdefs.h <<_ACEOF
9017 #define HAVE_LIBGLUT 1
9018 _ACEOF
9019
9020   LIBS="-lglut $LIBS"
9021
9022 fi
9023
9024
9025
9026 for ac_header in GL/gl.h GL/glut.h
9027 do
9028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9030   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9033   echo $ECHO_N "(cached) $ECHO_C" >&6
9034 fi
9035 ac_res=`eval echo '${'$as_ac_Header'}'`
9036                { echo "$as_me:$LINENO: result: $ac_res" >&5
9037 echo "${ECHO_T}$ac_res" >&6; }
9038 else
9039   # Is the header compilable?
9040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9042 cat >conftest.$ac_ext <<_ACEOF
9043 /* confdefs.h.  */
9044 _ACEOF
9045 cat confdefs.h >>conftest.$ac_ext
9046 cat >>conftest.$ac_ext <<_ACEOF
9047 /* end confdefs.h.  */
9048 $ac_includes_default
9049 #include <$ac_header>
9050 _ACEOF
9051 rm -f conftest.$ac_objext
9052 if { (ac_try="$ac_compile"
9053 case "(($ac_try" in
9054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055   *) ac_try_echo=$ac_try;;
9056 esac
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058   (eval "$ac_compile") 2>conftest.er1
9059   ac_status=$?
9060   grep -v '^ *+' conftest.er1 >conftest.err
9061   rm -f conftest.er1
9062   cat conftest.err >&5
9063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064   (exit $ac_status); } && {
9065          test -z "$ac_c_werror_flag" ||
9066          test ! -s conftest.err
9067        } && test -s conftest.$ac_objext; then
9068   ac_header_compiler=yes
9069 else
9070   echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9072
9073         ac_header_compiler=no
9074 fi
9075
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9078 echo "${ECHO_T}$ac_header_compiler" >&6; }
9079
9080 # Is the header present?
9081 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9083 cat >conftest.$ac_ext <<_ACEOF
9084 /* confdefs.h.  */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h.  */
9089 #include <$ac_header>
9090 _ACEOF
9091 if { (ac_try="$ac_cpp conftest.$ac_ext"
9092 case "(($ac_try" in
9093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9094   *) ac_try_echo=$ac_try;;
9095 esac
9096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9097   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9098   ac_status=$?
9099   grep -v '^ *+' conftest.er1 >conftest.err
9100   rm -f conftest.er1
9101   cat conftest.err >&5
9102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9103   (exit $ac_status); } >/dev/null && {
9104          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9105          test ! -s conftest.err
9106        }; then
9107   ac_header_preproc=yes
9108 else
9109   echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9111
9112   ac_header_preproc=no
9113 fi
9114
9115 rm -f conftest.err conftest.$ac_ext
9116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9117 echo "${ECHO_T}$ac_header_preproc" >&6; }
9118
9119 # So?  What about this header?
9120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9121   yes:no: )
9122     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9124     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9126     ac_header_preproc=yes
9127     ;;
9128   no:yes:* )
9129     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9131     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9132 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9133     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9135     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9136 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9137     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9139     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9141
9142     ;;
9143 esac
9144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9147   echo $ECHO_N "(cached) $ECHO_C" >&6
9148 else
9149   eval "$as_ac_Header=\$ac_header_preproc"
9150 fi
9151 ac_res=`eval echo '${'$as_ac_Header'}'`
9152                { echo "$as_me:$LINENO: result: $ac_res" >&5
9153 echo "${ECHO_T}$ac_res" >&6; }
9154
9155 fi
9156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9157   cat >>confdefs.h <<_ACEOF
9158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9159 _ACEOF
9160
9161 fi
9162
9163 done
9164
9165
9166 cat > conftest.c << EOF
9167 #include <GL/gl.h>
9168 #include <GL/glu.h>
9169 #include <GL/glut.h>
9170
9171 int main(int argc, char*argv)
9172 {
9173     glutInit(&argc, argv);
9174     glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
9175     glutInitWindowSize(320,200);
9176     glutInitWindowPosition(0,0);
9177     glutCreateWindow("main");
9178     glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
9179     glShadeModel(GL_SMOOTH);
9180     glEnable (GL_LINE_SMOOTH);
9181     glEnable (GL_POLYGON_SMOOTH);
9182     glEnable (GL_BLEND);
9183     glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9184     glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
9185     glHint (GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
9186 }
9187 EOF
9188
9189 { echo "$as_me:$LINENO: checking whether we can compile the opengl test program" >&5
9190 echo $ECHO_N "checking whether we can compile the opengl test program... $ECHO_C" >&6; }
9191
9192 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9193 if { (eval echo opengl.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9194     { echo "$as_me:$LINENO: result: yes" >&5
9195 echo "${ECHO_T}yes" >&6; }
9196     HAVE_OPENGL=1
9197
9198 cat >>confdefs.h <<\_ACEOF
9199 #define HAVE_OPENGL 1
9200 _ACEOF
9201
9202 else
9203     echo "configure: failed program was:" >&5
9204     cat conftest.c >&5
9205     HAVE_OPENGL=
9206     { echo "$as_me:$LINENO: result: no" >&5
9207 echo "${ECHO_T}no" >&6; }
9208 fi
9209 rm -f conftest*
9210
9211 # if the above didn't work out, reset all changes to the compiler variables.
9212 if test "x${HAVE_OPENGL}" "!=" "x1"; then
9213     CPPFLAGS=$OLDCPPFLAGS
9214     LIBS=$OLDLIBS
9215 fi
9216
9217 if test "$HAVE_OPENGL";then
9218     DEVICE_OPENGL='devices/opengl.$(O)'
9219
9220 fi
9221
9222 lame_in_source=
9223 lame_makefile=
9224 if test "x${DISABLE_LAME}" = "xtrue"; then
9225     echo "*" Disabling lame support...
9226 else
9227     # old lame code at lib/lame
9228     if test -f lib/lame/Makefile.in; then
9229         lame_in_source='$(lame_objects)'
9230         lame_makefile="lib/lame/Makefile"
9231         CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9232
9233 cat >>confdefs.h <<\_ACEOF
9234 #define HAVE_LAME 1
9235 _ACEOF
9236
9237     else
9238         if test -d /usr/include/lame; then
9239             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9240         else
9241             if test -d /usr/local/include/lame; then
9242                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9243             fi
9244         fi
9245
9246 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9247 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
9248 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9249   echo $ECHO_N "(cached) $ECHO_C" >&6
9250 else
9251   ac_check_lib_save_LIBS=$LIBS
9252 LIBS="-lmp3lame  $LIBS"
9253 cat >conftest.$ac_ext <<_ACEOF
9254 /* confdefs.h.  */
9255 _ACEOF
9256 cat confdefs.h >>conftest.$ac_ext
9257 cat >>conftest.$ac_ext <<_ACEOF
9258 /* end confdefs.h.  */
9259
9260 /* Override any GCC internal prototype to avoid an error.
9261    Use char because int might match the return type of a GCC
9262    builtin and then its argument prototype would still apply.  */
9263 #ifdef __cplusplus
9264 extern "C"
9265 #endif
9266 char lame_init ();
9267 int
9268 main ()
9269 {
9270 return lame_init ();
9271   ;
9272   return 0;
9273 }
9274 _ACEOF
9275 rm -f conftest.$ac_objext conftest$ac_exeext
9276 if { (ac_try="$ac_link"
9277 case "(($ac_try" in
9278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9279   *) ac_try_echo=$ac_try;;
9280 esac
9281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9282   (eval "$ac_link") 2>conftest.er1
9283   ac_status=$?
9284   grep -v '^ *+' conftest.er1 >conftest.err
9285   rm -f conftest.er1
9286   cat conftest.err >&5
9287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9288   (exit $ac_status); } && {
9289          test -z "$ac_c_werror_flag" ||
9290          test ! -s conftest.err
9291        } && test -s conftest$ac_exeext &&
9292        $as_test_x conftest$ac_exeext; then
9293   ac_cv_lib_mp3lame_lame_init=yes
9294 else
9295   echo "$as_me: failed program was:" >&5
9296 sed 's/^/| /' conftest.$ac_ext >&5
9297
9298         ac_cv_lib_mp3lame_lame_init=no
9299 fi
9300
9301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9302       conftest$ac_exeext conftest.$ac_ext
9303 LIBS=$ac_check_lib_save_LIBS
9304 fi
9305 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9306 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
9307 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9308   cat >>confdefs.h <<_ACEOF
9309 #define HAVE_LIBMP3LAME 1
9310 _ACEOF
9311
9312   LIBS="-lmp3lame $LIBS"
9313
9314 else
9315   NO_LIBMP3LAME=1
9316 fi
9317
9318         HASLAMEHEADER=
9319
9320 for ac_header in lame.h
9321 do
9322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9324   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9327   echo $ECHO_N "(cached) $ECHO_C" >&6
9328 fi
9329 ac_res=`eval echo '${'$as_ac_Header'}'`
9330                { echo "$as_me:$LINENO: result: $ac_res" >&5
9331 echo "${ECHO_T}$ac_res" >&6; }
9332 else
9333   # Is the header compilable?
9334 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9335 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9336 cat >conftest.$ac_ext <<_ACEOF
9337 /* confdefs.h.  */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h.  */
9342 $ac_includes_default
9343 #include <$ac_header>
9344 _ACEOF
9345 rm -f conftest.$ac_objext
9346 if { (ac_try="$ac_compile"
9347 case "(($ac_try" in
9348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9349   *) ac_try_echo=$ac_try;;
9350 esac
9351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9352   (eval "$ac_compile") 2>conftest.er1
9353   ac_status=$?
9354   grep -v '^ *+' conftest.er1 >conftest.err
9355   rm -f conftest.er1
9356   cat conftest.err >&5
9357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358   (exit $ac_status); } && {
9359          test -z "$ac_c_werror_flag" ||
9360          test ! -s conftest.err
9361        } && test -s conftest.$ac_objext; then
9362   ac_header_compiler=yes
9363 else
9364   echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9366
9367         ac_header_compiler=no
9368 fi
9369
9370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9371 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9372 echo "${ECHO_T}$ac_header_compiler" >&6; }
9373
9374 # Is the header present?
9375 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9376 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9377 cat >conftest.$ac_ext <<_ACEOF
9378 /* confdefs.h.  */
9379 _ACEOF
9380 cat confdefs.h >>conftest.$ac_ext
9381 cat >>conftest.$ac_ext <<_ACEOF
9382 /* end confdefs.h.  */
9383 #include <$ac_header>
9384 _ACEOF
9385 if { (ac_try="$ac_cpp conftest.$ac_ext"
9386 case "(($ac_try" in
9387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388   *) ac_try_echo=$ac_try;;
9389 esac
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9392   ac_status=$?
9393   grep -v '^ *+' conftest.er1 >conftest.err
9394   rm -f conftest.er1
9395   cat conftest.err >&5
9396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9397   (exit $ac_status); } >/dev/null && {
9398          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9399          test ! -s conftest.err
9400        }; then
9401   ac_header_preproc=yes
9402 else
9403   echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406   ac_header_preproc=no
9407 fi
9408
9409 rm -f conftest.err conftest.$ac_ext
9410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9411 echo "${ECHO_T}$ac_header_preproc" >&6; }
9412
9413 # So?  What about this header?
9414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9415   yes:no: )
9416     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9420     ac_header_preproc=yes
9421     ;;
9422   no:yes:* )
9423     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9425     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9426 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9427     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9429     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9430 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9431     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9433     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9435
9436     ;;
9437 esac
9438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9441   echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443   eval "$as_ac_Header=\$ac_header_preproc"
9444 fi
9445 ac_res=`eval echo '${'$as_ac_Header'}'`
9446                { echo "$as_me:$LINENO: result: $ac_res" >&5
9447 echo "${ECHO_T}$ac_res" >&6; }
9448
9449 fi
9450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9451   cat >>confdefs.h <<_ACEOF
9452 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9453 _ACEOF
9454  HASLAMEHEADER=1
9455 fi
9456
9457 done
9458
9459         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9460             cat >>confdefs.h <<\_ACEOF
9461 #define HAVE_LAME 1
9462 _ACEOF
9463
9464         fi
9465     fi
9466 fi
9467
9468
9469
9470 cat >>confdefs.h <<\_ACEOF
9471 #define INTERNAL_LIBART 1
9472 _ACEOF
9473
9474 art_in_source='$(art_objects)'
9475 splash_in_source='$(splash_objects)'
9476 xpdf_in_source='$(xpdf_objects)'
9477
9478
9479
9480
9481
9482
9483 # ------------------------------------------------------------------
9484
9485
9486
9487 for ac_prog in avifile-config
9488 do
9489   # Extract the first word of "$ac_prog", so it can be a program name with args.
9490 set dummy $ac_prog; ac_word=$2
9491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9493 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9494   echo $ECHO_N "(cached) $ECHO_C" >&6
9495 else
9496   if test -n "$AVIFILE_CONFIG"; then
9497   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9498 else
9499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9500 for as_dir in $PATH
9501 do
9502   IFS=$as_save_IFS
9503   test -z "$as_dir" && as_dir=.
9504   for ac_exec_ext in '' $ac_executable_extensions; do
9505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9506     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9508     break 2
9509   fi
9510 done
9511 done
9512 IFS=$as_save_IFS
9513
9514 fi
9515 fi
9516 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9517 if test -n "$AVIFILE_CONFIG"; then
9518   { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9519 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
9520 else
9521   { echo "$as_me:$LINENO: result: no" >&5
9522 echo "${ECHO_T}no" >&6; }
9523 fi
9524
9525
9526   test -n "$AVIFILE_CONFIG" && break
9527 done
9528
9529
9530 if test "x$AVIFILE_CONFIG" '!=' "x";then
9531     OLDCPPFLAGS="$CPPFLAGS"
9532     # temporarily add avifile paths to CPPFLAGS...
9533     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9534
9535
9536 for ac_header in avifile/version.h version.h
9537 do
9538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9540   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9543   echo $ECHO_N "(cached) $ECHO_C" >&6
9544 fi
9545 ac_res=`eval echo '${'$as_ac_Header'}'`
9546                { echo "$as_me:$LINENO: result: $ac_res" >&5
9547 echo "${ECHO_T}$ac_res" >&6; }
9548 else
9549   # Is the header compilable?
9550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9552 cat >conftest.$ac_ext <<_ACEOF
9553 /* confdefs.h.  */
9554 _ACEOF
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h.  */
9558 $ac_includes_default
9559 #include <$ac_header>
9560 _ACEOF
9561 rm -f conftest.$ac_objext
9562 if { (ac_try="$ac_compile"
9563 case "(($ac_try" in
9564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9565   *) ac_try_echo=$ac_try;;
9566 esac
9567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9568   (eval "$ac_compile") 2>conftest.er1
9569   ac_status=$?
9570   grep -v '^ *+' conftest.er1 >conftest.err
9571   rm -f conftest.er1
9572   cat conftest.err >&5
9573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574   (exit $ac_status); } && {
9575          test -z "$ac_c_werror_flag" ||
9576          test ! -s conftest.err
9577        } && test -s conftest.$ac_objext; then
9578   ac_header_compiler=yes
9579 else
9580   echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9582
9583         ac_header_compiler=no
9584 fi
9585
9586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9588 echo "${ECHO_T}$ac_header_compiler" >&6; }
9589
9590 # Is the header present?
9591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9593 cat >conftest.$ac_ext <<_ACEOF
9594 /* confdefs.h.  */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h.  */
9599 #include <$ac_header>
9600 _ACEOF
9601 if { (ac_try="$ac_cpp conftest.$ac_ext"
9602 case "(($ac_try" in
9603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9604   *) ac_try_echo=$ac_try;;
9605 esac
9606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9607   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9608   ac_status=$?
9609   grep -v '^ *+' conftest.er1 >conftest.err
9610   rm -f conftest.er1
9611   cat conftest.err >&5
9612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9613   (exit $ac_status); } >/dev/null && {
9614          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9615          test ! -s conftest.err
9616        }; then
9617   ac_header_preproc=yes
9618 else
9619   echo "$as_me: failed program was:" >&5
9620 sed 's/^/| /' conftest.$ac_ext >&5
9621
9622   ac_header_preproc=no
9623 fi
9624
9625 rm -f conftest.err conftest.$ac_ext
9626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9627 echo "${ECHO_T}$ac_header_preproc" >&6; }
9628
9629 # So?  What about this header?
9630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9631   yes:no: )
9632     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9636     ac_header_preproc=yes
9637     ;;
9638   no:yes:* )
9639     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9641     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9642 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9643     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9645     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9646 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9649     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9651
9652     ;;
9653 esac
9654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9657   echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659   eval "$as_ac_Header=\$ac_header_preproc"
9660 fi
9661 ac_res=`eval echo '${'$as_ac_Header'}'`
9662                { echo "$as_me:$LINENO: result: $ac_res" >&5
9663 echo "${ECHO_T}$ac_res" >&6; }
9664
9665 fi
9666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9667   cat >>confdefs.h <<_ACEOF
9668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9669 _ACEOF
9670
9671 fi
9672
9673 done
9674
9675     # ... and reset
9676     CPPFLAGS="$OLDCPPFLAGS"
9677 fi
9678
9679 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9680 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
9681
9682 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9683     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9684 fi
9685 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9686     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9687 fi
9688
9689 cat > conftest.cpp << EOF
9690
9691 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9692 // so we have to introduce them this way
9693 $HAVE_VERSION_H_DEFINE
9694 $HAVE_AVIFILE_VERSION_H_DEFINE
9695
9696 #ifdef HAVE_VERSION_H
9697   #include <version.h>
9698 #endif
9699 #ifdef HAVE_AVIFILE_VERSION_H
9700   #include <avifile/version.h>
9701 #endif
9702
9703 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9704    #include <avifile.h>
9705    #include <aviplay.h>
9706    #include <avm_fourcc.h>
9707    #include <avm_creators.h>
9708    #include <StreamInfo.h>
9709    #define VERSION6
9710 #else
9711    #include <avifile.h>
9712    #include <aviplay.h>
9713    #include <aviutil.h>
9714    #define Width width
9715    #define Height height
9716    #define Data data
9717    #define Bpp bpp
9718 #endif
9719
9720 void test()
9721 {
9722   IAviReadFile* player;
9723   IAviReadStream* astream;
9724   IAviReadStream* vstream;
9725   player = CreateIAviReadFile(0);
9726   astream = player->GetStream(0, AviStream::Audio);
9727   vstream = player->GetStream(0, AviStream::Video);
9728   vstream -> StartStreaming();
9729   astream -> StartStreaming();
9730 #ifndef VERSION6
9731   MainAVIHeader head;
9732   player->GetFileHeader(&head);
9733   head.dwMicroSecPerFrame;
9734   head.dwTotalFrames;
9735   head.dwStreams;
9736   head.dwWidth;
9737   head.dwHeight;
9738   head.dwMicroSecPerFrame;
9739   astream->GetEndPos(),
9740   astream->GetEndTime());
9741   player->StreamCount();
9742 #else
9743   StreamInfo*audioinfo;
9744   StreamInfo*videoinfo;
9745   audioinfo = astream->GetStreamInfo();
9746   videoinfo = vstream->GetStreamInfo();
9747   videoinfo->GetVideoWidth();
9748   videoinfo->GetVideoHeight();
9749   audioinfo->GetAudioSamplesPerSec();
9750   videoinfo->GetFps();
9751 #endif
9752   CImage*img = vstream->GetFrame();
9753   img->ToRGB();
9754   img->Data();
9755   img->Bpp();
9756   img->Width();
9757   img->Height();
9758   WAVEFORMATEX wave;
9759   astream->GetAudioFormatInfo(&wave,0);
9760   uint_t a,b;
9761   astream->ReadFrames(0,0,0,a,b);
9762 }
9763 int main (int argc, char*argv)
9764 {
9765     return 0;
9766 }
9767 EOF
9768
9769 if test "x$AVIFILE_CONFIG" '!=' "x";then
9770     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9771     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9772     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9773     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9774       { echo "$as_me:$LINENO: result: yes" >&5
9775 echo "${ECHO_T}yes" >&6; }
9776       AVIFILE=true
9777       export AVIFILE
9778
9779 cat >>confdefs.h <<\_ACEOF
9780 #define AVIFILE true
9781 _ACEOF
9782
9783     else
9784       echo "configure: failed program was:" >&5
9785       cat conftest.cpp >&5
9786       { echo "$as_me:$LINENO: result: no" >&5
9787 echo "${ECHO_T}no" >&6; }
9788     fi
9789 else
9790     { echo "$as_me:$LINENO: result: no" >&5
9791 echo "${ECHO_T}no" >&6; }
9792 fi
9793 rm -f conftest*
9794
9795 if test "x${AVIFILE}" = "xtrue"; then
9796     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9797     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9798
9799 cat >>confdefs.h <<\_ACEOF
9800 #define HAVE_AVIFILE 1
9801 _ACEOF
9802
9803 fi
9804
9805 if test "x${WIN32}" != "x"; then
9806     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9807     #if test "x${AVIFIL32}" != "x"; then
9808     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9809     #fi
9810     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9811     AVIFIL32=true
9812 fi
9813
9814
9815
9816 # ------------------------------------------------------------------
9817
9818 if test "x${UNCOMPRESS}" = "xgzip"; then
9819
9820 cat >>confdefs.h <<\_ACEOF
9821 #define USE_GZIP 1
9822 _ACEOF
9823
9824 fi
9825
9826
9827 # ------------------------------------------------------------------
9828
9829
9830 { echo "$as_me:$LINENO: checking for Python.h" >&5
9831 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
9832
9833 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9834     PY_VERSION=unknown
9835 else
9836     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9837         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9838     fi
9839     # iterate through version 2.2 to 2.6
9840     for v in 2 3 4 5 6; do
9841         # Linux
9842         if test -f "/usr/include/python2.$v/Python.h";then
9843             PY_VERSION=2.$v
9844             PYTHON_LIB="-lpython$PY_VERSION"
9845             if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9846                 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9847                 HAVE_PYTHON_IMAGING_LIB=1
9848             else
9849                 PYTHON_LIB2="$PYTHON_LIB"
9850             fi
9851             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9852         # Mac OS X
9853         elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9854             PY_VERSION=2.$v
9855             PYTHON_LIB="-framework Python"
9856             if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
9857                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9858                 HAVE_PYTHON_IMAGING_LIB=1
9859             else
9860                 PYTHON_LIB2="$PYTHON_LIB"
9861             fi
9862             PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9863         # Mac OS X [Fink]:
9864         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9865                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9866                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9867                   ")" \
9868                -a -f "/sw/include/python2.$v/Python.h"; then
9869             PY_VERSION=2.$v
9870             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9871             if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9872                 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9873                 HAVE_PYTHON_IMAGING_LIB=1
9874             else
9875                 PYTHON_LIB2="$PYTHON_LIB"
9876             fi
9877             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9878         fi
9879     done
9880 fi
9881
9882 if test "x$PY_VERSION" "!=" "x"; then
9883     { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9884 echo "${ECHO_T}$PY_VERSION" >&6; }
9885     export PYTHON_INCLUDES PYTHON_LIB
9886
9887
9888     { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9889 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
9890
9891     cat > conftest.c << EOF
9892 #include <Python.h>
9893
9894 int main()
9895 {
9896     int ret;
9897     ret = Py_Main(0, 0);
9898     int x; // check also for gcc 2.95.x incompatibilities
9899     return ret;
9900 }
9901 EOF
9902
9903     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9904     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9905         { echo "$as_me:$LINENO: result: yes" >&5
9906 echo "${ECHO_T}yes" >&6; }
9907         PYTHON_OK=yes
9908     else
9909         echo "configure: failed program was:" >&5
9910         cat conftest.c >&5
9911         { echo "$as_me:$LINENO: result: no" >&5
9912 echo "${ECHO_T}no" >&6; }
9913     fi
9914     rm -f conftest*
9915     if test "x$PYTHON_OK" = "xyes";then
9916         { echo "$as_me:$LINENO: checking for Python-Imaging" >&5
9917 echo $ECHO_N "checking for Python-Imaging... $ECHO_C" >&6; }
9918     cat > conftest.c << EOF
9919 #include <Python.h>
9920 #include <Imaging.h>
9921
9922 int main()
9923 {
9924     Py_Main(0, 0);
9925     return 0;
9926 }
9927 EOF
9928         if test "$HAVE_PYTHON_IMAGING_LIB"; then
9929             ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9930             if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9931                 PYTHON_LIB="${PYTHON_LIB2}"
9932
9933 cat >>confdefs.h <<\_ACEOF
9934 #define HAVE_PYTHON_IMAGING 1
9935 _ACEOF
9936
9937                 HAVE_PYTHON_IMAGING=yes
9938                 export HAVE_PYTHON_IMAGING
9939
9940                 { echo "$as_me:$LINENO: result: yes" >&5
9941 echo "${ECHO_T}yes" >&6; }
9942             else
9943                 echo "configure: failed program was:" >&5
9944                 cat conftest.c >&5
9945                 { echo "$as_me:$LINENO: result: no" >&5
9946 echo "${ECHO_T}no" >&6; }
9947             fi
9948         else
9949             echo "(didn't find the Python-Imaging libraries)" >&5
9950             { echo "$as_me:$LINENO: result: no" >&5
9951 echo "${ECHO_T}no" >&6; }
9952         fi
9953     fi
9954     rm -f conftest*
9955 else
9956     { echo "$as_me:$LINENO: result: nope" >&5
9957 echo "${ECHO_T}nope" >&6; }
9958 fi
9959
9960
9961 if test "x$PYTHON_OK" '!=' "xyes";then
9962     echo all install uninstall clean: > lib/python/Makefile
9963     # fail silently- the most users won't have any need for the
9964     # python interface anyway
9965 else
9966     pythonrfxswf="lib/python/Makefile"
9967 fi
9968
9969 # ------------------------------------------------------------------
9970
9971 { echo "$as_me:$LINENO: checking for missing libraries" >&5
9972 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
9973
9974 if test "x$ZLIBMISSING" = "xtrue";then
9975     MISSINGLIBS="${MISSINGLIBS} zlib"
9976     DISABLEPNG2SWF=true
9977     PARTIAL=true
9978 fi
9979 if test "x$JPEGLIBMISSING" = "xtrue";then
9980     MISSINGLIBS="${MISSINGLIBS} jpeglib"
9981     DISABLEPDF2SWF=true
9982     DISABLEJPEG2SWF=true
9983     PARTIAL=true
9984 fi
9985 #if test "x$T1LIBMISSING" = "xtrue";then
9986 #    MISSINGLIBS="${MISSINGLIBS} t1lib"
9987 #fi
9988 if test "x$UNGIFMISSING" = "xtrue";then
9989     DISABLEGIF2SWF=true
9990     MISSINGLIBS="${MISSINGLIBS} ungif"
9991     PARTIAL=true
9992 fi
9993
9994 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
9995     DISABLEPDF2SWF=true;
9996     DISABLEJPEG2SWF=true;
9997     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9998     PARTIAL=true
9999 fi
10000 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10001     DISABLEPDF2SWF=true;
10002     MISSINGLIBS="${MISSINGLIBS} freetype"
10003     PARTIAL=true
10004 fi
10005 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10006 #    MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10007 #fi
10008 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10009     DISABLEGIF2SWF=true
10010     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10011     PARTIAL=true
10012 fi
10013 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10014     DISABLEPNG2SWF=true;
10015     MISSINGLIBS="${MISSINGLIBS} zlib.h"
10016     PARTIAL=true
10017 fi
10018 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10019 #    MISSINGLIBS="${MISSINGLIBS} avifile"
10020 #fi
10021
10022 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10023 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
10024
10025 # ------------------------------------------------------------------
10026
10027 if test "x${MISSINGLIBS}" '!=' "x"; then
10028   echo "***************************************************"
10029   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10030 fi
10031
10032 avi2swf="avi2swf/Makefile"
10033 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10034  #don't whine, avi2swf is outdated anyway
10035  #echo "* Disabling avi2swf tool..."
10036  echo all install uninstall clean: > avi2swf/Makefile
10037  avi2swf=
10038 fi
10039
10040 pdf2swf_makefile="lib/pdf/Makefile"
10041 PDF2SWF='pdf2swf$(E)'
10042 LIBPDF='libpdf$(A)'
10043
10044 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10045   echo "* Disabling pdf2swf tool..."
10046   rm -f lib/pdf/Makefile
10047   echo all install uninstall clean libpdf: > lib/pdf/Makefile
10048   pdf2swf_makefile=""
10049   PDF2SWF=
10050   LIBPDF=
10051 fi
10052
10053
10054
10055 if test "x${ZLIBMISSING}" = "xtrue"; then
10056   echo
10057   echo "* Warning! Without zlib, you will not be able to read"
10058   echo "* or write compressed Flash MX files!"
10059 fi
10060
10061 JPEG2SWF='jpeg2swf$(E)'
10062 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10063   echo "* Disabling jpeg2swf tool..."
10064   JPEG2SWF=
10065 fi
10066 export JPEG2SWF
10067
10068
10069 GIF2SWF='gif2swf$(E)'
10070 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10071   echo "* Disabling gif2swf tool..."
10072   GIF2SWF=
10073 fi
10074 export GIF2SWF
10075
10076
10077 PNG2SWF='png2swf$(E)'
10078 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10079   echo "* Disabling png2swf tool..."
10080   PNG2SWF=
10081 fi
10082 export PNG2SWF
10083
10084
10085 if test "x${MISSINGLIBS}" '!=' "x"; then
10086   if test "x${PARTIAL}" '=' "x"; then
10087     echo "* (never mind)"
10088   fi
10089   echo "***************************************************"
10090 fi
10091
10092 # ------------------------------------------------------------------
10093
10094
10095
10096
10097
10098
10099
10100 if test -f "release.in"; then release_in="./release"; fi
10101 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10102 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
10103 ac_config_files="$ac_config_files ${FILES}"
10104
10105 cat >confcache <<\_ACEOF
10106 # This file is a shell script that caches the results of configure
10107 # tests run on this system so they can be shared between configure
10108 # scripts and configure runs, see configure's option --config-cache.
10109 # It is not useful on other systems.  If it contains results you don't
10110 # want to keep, you may remove or edit it.
10111 #
10112 # config.status only pays attention to the cache file if you give it
10113 # the --recheck option to rerun configure.
10114 #
10115 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10116 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10117 # following values.
10118
10119 _ACEOF
10120
10121 # The following way of writing the cache mishandles newlines in values,
10122 # but we know of no workaround that is simple, portable, and efficient.
10123 # So, we kill variables containing newlines.
10124 # Ultrix sh set writes to stderr and can't be redirected directly,
10125 # and sets the high bit in the cache file unless we assign to the vars.
10126 (
10127   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10128     eval ac_val=\$$ac_var
10129     case $ac_val in #(
10130     *${as_nl}*)
10131       case $ac_var in #(
10132       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
10133 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
10134       esac
10135       case $ac_var in #(
10136       _ | IFS | as_nl) ;; #(
10137       *) $as_unset $ac_var ;;
10138       esac ;;
10139     esac
10140   done
10141
10142   (set) 2>&1 |
10143     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10144     *${as_nl}ac_space=\ *)
10145       # `set' does not quote correctly, so add quotes (double-quote
10146       # substitution turns \\\\ into \\, and sed turns \\ into \).
10147       sed -n \
10148         "s/'/'\\\\''/g;
10149           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10150       ;; #(
10151     *)
10152       # `set' quotes correctly as required by POSIX, so do not add quotes.
10153       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10154       ;;
10155     esac |
10156     sort
10157 ) |
10158   sed '
10159      /^ac_cv_env_/b end
10160      t clear
10161      :clear
10162      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10163      t end
10164      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10165      :end' >>confcache
10166 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10167   if test -w "$cache_file"; then
10168     test "x$cache_file" != "x/dev/null" &&
10169       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
10170 echo "$as_me: updating cache $cache_file" >&6;}
10171     cat confcache >$cache_file
10172   else
10173     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10174 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10175   fi
10176 fi
10177 rm -f confcache
10178
10179 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10180 # Let make expand exec_prefix.
10181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10182
10183 DEFS=-DHAVE_CONFIG_H
10184
10185 ac_libobjs=
10186 ac_ltlibobjs=
10187 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10188   # 1. Remove the extension, and $U if already installed.
10189   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10190   ac_i=`echo "$ac_i" | sed "$ac_script"`
10191   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10192   #    will be set to the directory where LIBOBJS objects are built.
10193   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10194   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10195 done
10196 LIBOBJS=$ac_libobjs
10197
10198 LTLIBOBJS=$ac_ltlibobjs
10199
10200
10201
10202 : ${CONFIG_STATUS=./config.status}
10203 ac_clean_files_save=$ac_clean_files
10204 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10205 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10206 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10207 cat >$CONFIG_STATUS <<_ACEOF
10208 #! $SHELL
10209 # Generated by $as_me.
10210 # Run this file to recreate the current configuration.
10211 # Compiler output produced by configure, useful for debugging
10212 # configure, is in config.log if it exists.
10213
10214 debug=false
10215 ac_cs_recheck=false
10216 ac_cs_silent=false
10217 SHELL=\${CONFIG_SHELL-$SHELL}
10218 _ACEOF
10219
10220 cat >>$CONFIG_STATUS <<\_ACEOF
10221 ## --------------------- ##
10222 ## M4sh Initialization.  ##
10223 ## --------------------- ##
10224
10225 # Be more Bourne compatible
10226 DUALCASE=1; export DUALCASE # for MKS sh
10227 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10228   emulate sh
10229   NULLCMD=:
10230   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
10231   # is contrary to our usage.  Disable this feature.
10232   alias -g '${1+"$@"}'='"$@"'
10233   setopt NO_GLOB_SUBST
10234 else
10235   case `(set -o) 2>/dev/null` in
10236   *posix*) set -o posix ;;
10237 esac
10238
10239 fi
10240
10241
10242
10243
10244 # PATH needs CR
10245 # Avoid depending upon Character Ranges.
10246 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10247 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10248 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10249 as_cr_digits='0123456789'
10250 as_cr_alnum=$as_cr_Letters$as_cr_digits
10251
10252 # The user is always right.
10253 if test "${PATH_SEPARATOR+set}" != set; then
10254   echo "#! /bin/sh" >conf$$.sh
10255   echo  "exit 0"   >>conf$$.sh
10256   chmod +x conf$$.sh
10257   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10258     PATH_SEPARATOR=';'
10259   else
10260     PATH_SEPARATOR=:
10261   fi
10262   rm -f conf$$.sh
10263 fi
10264
10265 # Support unset when possible.
10266 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10267   as_unset=unset
10268 else
10269   as_unset=false
10270 fi
10271
10272
10273 # IFS
10274 # We need space, tab and new line, in precisely that order.  Quoting is
10275 # there to prevent editors from complaining about space-tab.
10276 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10277 # splitting by setting IFS to empty value.)
10278 as_nl='
10279 '
10280 IFS=" ""        $as_nl"
10281
10282 # Find who we are.  Look in the path if we contain no directory separator.
10283 case $0 in
10284   *[\\/]* ) as_myself=$0 ;;
10285   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286 for as_dir in $PATH
10287 do
10288   IFS=$as_save_IFS
10289   test -z "$as_dir" && as_dir=.
10290   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10291 done
10292 IFS=$as_save_IFS
10293
10294      ;;
10295 esac
10296 # We did not find ourselves, most probably we were run as `sh COMMAND'
10297 # in which case we are not to be found in the path.
10298 if test "x$as_myself" = x; then
10299   as_myself=$0
10300 fi
10301 if test ! -f "$as_myself"; then
10302   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10303   { (exit 1); exit 1; }
10304 fi
10305
10306 # Work around bugs in pre-3.0 UWIN ksh.
10307 for as_var in ENV MAIL MAILPATH
10308 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10309 done
10310 PS1='$ '
10311 PS2='> '
10312 PS4='+ '
10313
10314 # NLS nuisances.
10315 for as_var in \
10316   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
10317   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
10318   LC_TELEPHONE LC_TIME
10319 do
10320   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
10321     eval $as_var=C; export $as_var
10322   else
10323     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10324   fi
10325 done
10326
10327 # Required to use basename.
10328 if expr a : '\(a\)' >/dev/null 2>&1 &&
10329    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10330   as_expr=expr
10331 else
10332   as_expr=false
10333 fi
10334
10335 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10336   as_basename=basename
10337 else
10338   as_basename=false
10339 fi
10340
10341
10342 # Name of the executable.
10343 as_me=`$as_basename -- "$0" ||
10344 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10345          X"$0" : 'X\(//\)$' \| \
10346          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10347 echo X/"$0" |
10348     sed '/^.*\/\([^/][^/]*\)\/*$/{
10349             s//\1/
10350             q
10351           }
10352           /^X\/\(\/\/\)$/{
10353             s//\1/
10354             q
10355           }
10356           /^X\/\(\/\).*/{
10357             s//\1/
10358             q
10359           }
10360           s/.*/./; q'`
10361
10362 # CDPATH.
10363 $as_unset CDPATH
10364
10365
10366
10367   as_lineno_1=$LINENO
10368   as_lineno_2=$LINENO
10369   test "x$as_lineno_1" != "x$as_lineno_2" &&
10370   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10371
10372   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10373   # uniformly replaced by the line number.  The first 'sed' inserts a
10374   # line-number line after each line using $LINENO; the second 'sed'
10375   # does the real work.  The second script uses 'N' to pair each
10376   # line-number line with the line containing $LINENO, and appends
10377   # trailing '-' during substitution so that $LINENO is not a special
10378   # case at line end.
10379   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10380   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10381   # E. McMahon (1931-1989) for sed's syntax.  :-)
10382   sed -n '
10383     p
10384     /[$]LINENO/=
10385   ' <$as_myself |
10386     sed '
10387       s/[$]LINENO.*/&-/
10388       t lineno
10389       b
10390       :lineno
10391       N
10392       :loop
10393       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10394       t loop
10395       s/-\n.*//
10396     ' >$as_me.lineno &&
10397   chmod +x "$as_me.lineno" ||
10398     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10399    { (exit 1); exit 1; }; }
10400
10401   # Don't try to exec as it changes $[0], causing all sort of problems
10402   # (the dirname of $[0] is not the place where we might find the
10403   # original and so on.  Autoconf is especially sensitive to this).
10404   . "./$as_me.lineno"
10405   # Exit status is that of the last command.
10406   exit
10407 }
10408
10409
10410 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10411   as_dirname=dirname
10412 else
10413   as_dirname=false
10414 fi
10415
10416 ECHO_C= ECHO_N= ECHO_T=
10417 case `echo -n x` in
10418 -n*)
10419   case `echo 'x\c'` in
10420   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10421   *)   ECHO_C='\c';;
10422   esac;;
10423 *)
10424   ECHO_N='-n';;
10425 esac
10426
10427 if expr a : '\(a\)' >/dev/null 2>&1 &&
10428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10429   as_expr=expr
10430 else
10431   as_expr=false
10432 fi
10433
10434 rm -f conf$$ conf$$.exe conf$$.file
10435 if test -d conf$$.dir; then
10436   rm -f conf$$.dir/conf$$.file
10437 else
10438   rm -f conf$$.dir
10439   mkdir conf$$.dir
10440 fi
10441 echo >conf$$.file
10442 if ln -s conf$$.file conf$$ 2>/dev/null; then
10443   as_ln_s='ln -s'
10444   # ... but there are two gotchas:
10445   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10446   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10447   # In both cases, we have to default to `cp -p'.
10448   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10449     as_ln_s='cp -p'
10450 elif ln conf$$.file conf$$ 2>/dev/null; then
10451   as_ln_s=ln
10452 else
10453   as_ln_s='cp -p'
10454 fi
10455 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10456 rmdir conf$$.dir 2>/dev/null
10457
10458 if mkdir -p . 2>/dev/null; then
10459   as_mkdir_p=:
10460 else
10461   test -d ./-p && rmdir ./-p
10462   as_mkdir_p=false
10463 fi
10464
10465 if test -x / >/dev/null 2>&1; then
10466   as_test_x='test -x'
10467 else
10468   if ls -dL / >/dev/null 2>&1; then
10469     as_ls_L_option=L
10470   else
10471     as_ls_L_option=
10472   fi
10473   as_test_x='
10474     eval sh -c '\''
10475       if test -d "$1"; then
10476         test -d "$1/.";
10477       else
10478         case $1 in
10479         -*)set "./$1";;
10480         esac;
10481         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10482         ???[sx]*):;;*)false;;esac;fi
10483     '\'' sh
10484   '
10485 fi
10486 as_executable_p=$as_test_x
10487
10488 # Sed expression to map a string onto a valid CPP name.
10489 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10490
10491 # Sed expression to map a string onto a valid variable name.
10492 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10493
10494
10495 exec 6>&1
10496
10497 # Save the log message, to keep $[0] and so on meaningful, and to
10498 # report actual input values of CONFIG_FILES etc. instead of their
10499 # values after options handling.
10500 ac_log="
10501 This file was extended by $as_me, which was
10502 generated by GNU Autoconf 2.61.  Invocation command line was
10503
10504   CONFIG_FILES    = $CONFIG_FILES
10505   CONFIG_HEADERS  = $CONFIG_HEADERS
10506   CONFIG_LINKS    = $CONFIG_LINKS
10507   CONFIG_COMMANDS = $CONFIG_COMMANDS
10508   $ $0 $@
10509
10510 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10511 "
10512
10513 _ACEOF
10514
10515 cat >>$CONFIG_STATUS <<_ACEOF
10516 # Files that config.status was made for.
10517 config_files="$ac_config_files"
10518 config_headers="$ac_config_headers"
10519
10520 _ACEOF
10521
10522 cat >>$CONFIG_STATUS <<\_ACEOF
10523 ac_cs_usage="\
10524 \`$as_me' instantiates files from templates according to the
10525 current configuration.
10526
10527 Usage: $0 [OPTIONS] [FILE]...
10528
10529   -h, --help       print this help, then exit
10530   -V, --version    print version number and configuration settings, then exit
10531   -q, --quiet      do not print progress messages
10532   -d, --debug      don't remove temporary files
10533       --recheck    update $as_me by reconfiguring in the same conditions
10534   --file=FILE[:TEMPLATE]
10535                    instantiate the configuration file FILE
10536   --header=FILE[:TEMPLATE]
10537                    instantiate the configuration header FILE
10538
10539 Configuration files:
10540 $config_files
10541
10542 Configuration headers:
10543 $config_headers
10544
10545 Report bugs to <bug-autoconf@gnu.org>."
10546
10547 _ACEOF
10548 cat >>$CONFIG_STATUS <<_ACEOF
10549 ac_cs_version="\\
10550 config.status
10551 configured by $0, generated by GNU Autoconf 2.61,
10552   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10553
10554 Copyright (C) 2006 Free Software Foundation, Inc.
10555 This config.status script is free software; the Free Software Foundation
10556 gives unlimited permission to copy, distribute and modify it."
10557
10558 ac_pwd='$ac_pwd'
10559 srcdir='$srcdir'
10560 INSTALL='$INSTALL'
10561 _ACEOF
10562
10563 cat >>$CONFIG_STATUS <<\_ACEOF
10564 # If no file are specified by the user, then we need to provide default
10565 # value.  By we need to know if files were specified by the user.
10566 ac_need_defaults=:
10567 while test $# != 0
10568 do
10569   case $1 in
10570   --*=*)
10571     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10572     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10573     ac_shift=:
10574     ;;
10575   *)
10576     ac_option=$1
10577     ac_optarg=$2
10578     ac_shift=shift
10579     ;;
10580   esac
10581
10582   case $ac_option in
10583   # Handling of the options.
10584   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10585     ac_cs_recheck=: ;;
10586   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10587     echo "$ac_cs_version"; exit ;;
10588   --debug | --debu | --deb | --de | --d | -d )
10589     debug=: ;;
10590   --file | --fil | --fi | --f )
10591     $ac_shift
10592     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10593     ac_need_defaults=false;;
10594   --header | --heade | --head | --hea )
10595     $ac_shift
10596     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10597     ac_need_defaults=false;;
10598   --he | --h)
10599     # Conflict between --help and --header
10600     { echo "$as_me: error: ambiguous option: $1
10601 Try \`$0 --help' for more information." >&2
10602    { (exit 1); exit 1; }; };;
10603   --help | --hel | -h )
10604     echo "$ac_cs_usage"; exit ;;
10605   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10606   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10607     ac_cs_silent=: ;;
10608
10609   # This is an error.
10610   -*) { echo "$as_me: error: unrecognized option: $1
10611 Try \`$0 --help' for more information." >&2
10612    { (exit 1); exit 1; }; } ;;
10613
10614   *) ac_config_targets="$ac_config_targets $1"
10615      ac_need_defaults=false ;;
10616
10617   esac
10618   shift
10619 done
10620
10621 ac_configure_extra_args=
10622
10623 if $ac_cs_silent; then
10624   exec 6>/dev/null
10625   ac_configure_extra_args="$ac_configure_extra_args --silent"
10626 fi
10627
10628 _ACEOF
10629 cat >>$CONFIG_STATUS <<_ACEOF
10630 if \$ac_cs_recheck; then
10631   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10632   CONFIG_SHELL=$SHELL
10633   export CONFIG_SHELL
10634   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10635 fi
10636
10637 _ACEOF
10638 cat >>$CONFIG_STATUS <<\_ACEOF
10639 exec 5>>config.log
10640 {
10641   echo
10642   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10643 ## Running $as_me. ##
10644 _ASBOX
10645   echo "$ac_log"
10646 } >&5
10647
10648 _ACEOF
10649 cat >>$CONFIG_STATUS <<_ACEOF
10650 _ACEOF
10651
10652 cat >>$CONFIG_STATUS <<\_ACEOF
10653
10654 # Handling of arguments.
10655 for ac_config_target in $ac_config_targets
10656 do
10657   case $ac_config_target in
10658     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10659     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10660
10661   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10662 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10663    { (exit 1); exit 1; }; };;
10664   esac
10665 done
10666
10667
10668 # If the user did not use the arguments to specify the items to instantiate,
10669 # then the envvar interface is used.  Set only those that are not.
10670 # We use the long form for the default assignment because of an extremely
10671 # bizarre bug on SunOS 4.1.3.
10672 if $ac_need_defaults; then
10673   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10674   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10675 fi
10676
10677 # Have a temporary directory for convenience.  Make it in the build tree
10678 # simply because there is no reason against having it here, and in addition,
10679 # creating and moving files from /tmp can sometimes cause problems.
10680 # Hook for its removal unless debugging.
10681 # Note that there is a small window in which the directory will not be cleaned:
10682 # after its creation but before its name has been assigned to `$tmp'.
10683 $debug ||
10684 {
10685   tmp=
10686   trap 'exit_status=$?
10687   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10688 ' 0
10689   trap '{ (exit 1); exit 1; }' 1 2 13 15
10690 }
10691 # Create a (secure) tmp directory for tmp files.
10692
10693 {
10694   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10695   test -n "$tmp" && test -d "$tmp"
10696 }  ||
10697 {
10698   tmp=./conf$$-$RANDOM
10699   (umask 077 && mkdir "$tmp")
10700 } ||
10701 {
10702    echo "$me: cannot create a temporary directory in ." >&2
10703    { (exit 1); exit 1; }
10704 }
10705
10706 #
10707 # Set up the sed scripts for CONFIG_FILES section.
10708 #
10709
10710 # No need to generate the scripts if there are no CONFIG_FILES.
10711 # This happens for instance when ./config.status config.h
10712 if test -n "$CONFIG_FILES"; then
10713
10714 _ACEOF
10715
10716
10717
10718 ac_delim='%!_!# '
10719 for ac_last_try in false false false false false :; do
10720   cat >conf$$subs.sed <<_ACEOF
10721 SHELL!$SHELL$ac_delim
10722 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10723 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10724 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10725 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10726 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10727 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10728 exec_prefix!$exec_prefix$ac_delim
10729 prefix!$prefix$ac_delim
10730 program_transform_name!$program_transform_name$ac_delim
10731 bindir!$bindir$ac_delim
10732 sbindir!$sbindir$ac_delim
10733 libexecdir!$libexecdir$ac_delim
10734 datarootdir!$datarootdir$ac_delim
10735 datadir!$datadir$ac_delim
10736 sysconfdir!$sysconfdir$ac_delim
10737 sharedstatedir!$sharedstatedir$ac_delim
10738 localstatedir!$localstatedir$ac_delim
10739 includedir!$includedir$ac_delim
10740 oldincludedir!$oldincludedir$ac_delim
10741 docdir!$docdir$ac_delim
10742 infodir!$infodir$ac_delim
10743 htmldir!$htmldir$ac_delim
10744 dvidir!$dvidir$ac_delim
10745 pdfdir!$pdfdir$ac_delim
10746 psdir!$psdir$ac_delim
10747 libdir!$libdir$ac_delim
10748 localedir!$localedir$ac_delim
10749 mandir!$mandir$ac_delim
10750 DEFS!$DEFS$ac_delim
10751 ECHO_C!$ECHO_C$ac_delim
10752 ECHO_N!$ECHO_N$ac_delim
10753 ECHO_T!$ECHO_T$ac_delim
10754 LIBS!$LIBS$ac_delim
10755 build_alias!$build_alias$ac_delim
10756 host_alias!$host_alias$ac_delim
10757 target_alias!$target_alias$ac_delim
10758 build!$build$ac_delim
10759 build_cpu!$build_cpu$ac_delim
10760 build_vendor!$build_vendor$ac_delim
10761 build_os!$build_os$ac_delim
10762 host!$host$ac_delim
10763 host_cpu!$host_cpu$ac_delim
10764 host_vendor!$host_vendor$ac_delim
10765 host_os!$host_os$ac_delim
10766 SHARED!$SHARED$ac_delim
10767 CC!$CC$ac_delim
10768 CFLAGS!$CFLAGS$ac_delim
10769 LDFLAGS!$LDFLAGS$ac_delim
10770 CPPFLAGS!$CPPFLAGS$ac_delim
10771 ac_ct_CC!$ac_ct_CC$ac_delim
10772 EXEEXT!$EXEEXT$ac_delim
10773 OBJEXT!$OBJEXT$ac_delim
10774 CXX!$CXX$ac_delim
10775 CXXFLAGS!$CXXFLAGS$ac_delim
10776 ac_ct_CXX!$ac_ct_CXX$ac_delim
10777 CPP!$CPP$ac_delim
10778 RANLIB!$RANLIB$ac_delim
10779 SET_MAKE!$SET_MAKE$ac_delim
10780 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10781 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10782 INSTALL_DATA!$INSTALL_DATA$ac_delim
10783 LN_S!$LN_S$ac_delim
10784 UNCOMPRESS!$UNCOMPRESS$ac_delim
10785 AREXT!$AREXT$ac_delim
10786 AR!$AR$ac_delim
10787 SLEXT!$SLEXT$ac_delim
10788 CXXLIBS!$CXXLIBS$ac_delim
10789 STRIP!$STRIP$ac_delim
10790 target!$target$ac_delim
10791 target_cpu!$target_cpu$ac_delim
10792 target_vendor!$target_vendor$ac_delim
10793 target_os!$target_os$ac_delim
10794 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
10795 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
10796 GREP!$GREP$ac_delim
10797 EGREP!$EGREP$ac_delim
10798 PACKAGE!$PACKAGE$ac_delim
10799 VERSION!$VERSION$ac_delim
10800 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10801 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
10802 DEVICE_OPENGL!$DEVICE_OPENGL$ac_delim
10803 lame_in_source!$lame_in_source$ac_delim
10804 art_in_source!$art_in_source$ac_delim
10805 xpdf_in_source!$xpdf_in_source$ac_delim
10806 splash_in_source!$splash_in_source$ac_delim
10807 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
10808 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
10809 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
10810 USE_GZIP!$USE_GZIP$ac_delim
10811 PYTHON_LIB!$PYTHON_LIB$ac_delim
10812 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
10813 HAVE_PYTHON_IMAGING!$HAVE_PYTHON_IMAGING$ac_delim
10814 PDF2SWF!$PDF2SWF$ac_delim
10815 LIBPDF!$LIBPDF$ac_delim
10816 JPEG2SWF!$JPEG2SWF$ac_delim
10817 GIF2SWF!$GIF2SWF$ac_delim
10818 _ACEOF
10819
10820   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
10821     break
10822   elif $ac_last_try; then
10823     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10824 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10825    { (exit 1); exit 1; }; }
10826   else
10827     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10828   fi
10829 done
10830
10831 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10832 if test -n "$ac_eof"; then
10833   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10834   ac_eof=`expr $ac_eof + 1`
10835 fi
10836
10837 cat >>$CONFIG_STATUS <<_ACEOF
10838 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10839 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10840 _ACEOF
10841 sed '
10842 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10843 s/^/s,@/; s/!/@,|#_!!_#|/
10844 :n
10845 t n
10846 s/'"$ac_delim"'$/,g/; t
10847 s/$/\\/; p
10848 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10849 ' >>$CONFIG_STATUS <conf$$subs.sed
10850 rm -f conf$$subs.sed
10851 cat >>$CONFIG_STATUS <<_ACEOF
10852 CEOF$ac_eof
10853 _ACEOF
10854
10855
10856 ac_delim='%!_!# '
10857 for ac_last_try in false false false false false :; do
10858   cat >conf$$subs.sed <<_ACEOF
10859 PNG2SWF!$PNG2SWF$ac_delim
10860 LIBOBJS!$LIBOBJS$ac_delim
10861 LTLIBOBJS!$LTLIBOBJS$ac_delim
10862 _ACEOF
10863
10864   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 3; then
10865     break
10866   elif $ac_last_try; then
10867     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10868 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10869    { (exit 1); exit 1; }; }
10870   else
10871     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10872   fi
10873 done
10874
10875 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10876 if test -n "$ac_eof"; then
10877   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10878   ac_eof=`expr $ac_eof + 1`
10879 fi
10880
10881 cat >>$CONFIG_STATUS <<_ACEOF
10882 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
10883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10884 _ACEOF
10885 sed '
10886 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10887 s/^/s,@/; s/!/@,|#_!!_#|/
10888 :n
10889 t n
10890 s/'"$ac_delim"'$/,g/; t
10891 s/$/\\/; p
10892 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10893 ' >>$CONFIG_STATUS <conf$$subs.sed
10894 rm -f conf$$subs.sed
10895 cat >>$CONFIG_STATUS <<_ACEOF
10896 :end
10897 s/|#_!!_#|//g
10898 CEOF$ac_eof
10899 _ACEOF
10900
10901
10902 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10903 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10904 # trailing colons and then remove the whole line if VPATH becomes empty
10905 # (actually we leave an empty line to preserve line numbers).
10906 if test "x$srcdir" = x.; then
10907   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10908 s/:*\$(srcdir):*/:/
10909 s/:*\${srcdir}:*/:/
10910 s/:*@srcdir@:*/:/
10911 s/^\([^=]*=[     ]*\):*/\1/
10912 s/:*$//
10913 s/^[^=]*=[       ]*$//
10914 }'
10915 fi
10916
10917 cat >>$CONFIG_STATUS <<\_ACEOF
10918 fi # test -n "$CONFIG_FILES"
10919
10920
10921 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
10922 do
10923   case $ac_tag in
10924   :[FHLC]) ac_mode=$ac_tag; continue;;
10925   esac
10926   case $ac_mode$ac_tag in
10927   :[FHL]*:*);;
10928   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10929 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10930    { (exit 1); exit 1; }; };;
10931   :[FH]-) ac_tag=-:-;;
10932   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10933   esac
10934   ac_save_IFS=$IFS
10935   IFS=:
10936   set x $ac_tag
10937   IFS=$ac_save_IFS
10938   shift
10939   ac_file=$1
10940   shift
10941
10942   case $ac_mode in
10943   :L) ac_source=$1;;
10944   :[FH])
10945     ac_file_inputs=
10946     for ac_f
10947     do
10948       case $ac_f in
10949       -) ac_f="$tmp/stdin";;
10950       *) # Look for the file first in the build tree, then in the source tree
10951          # (if the path is not absolute).  The absolute path cannot be DOS-style,
10952          # because $ac_f cannot contain `:'.
10953          test -f "$ac_f" ||
10954            case $ac_f in
10955            [\\/$]*) false;;
10956            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10957            esac ||
10958            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10959 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10960    { (exit 1); exit 1; }; };;
10961       esac
10962       ac_file_inputs="$ac_file_inputs $ac_f"
10963     done
10964
10965     # Let's still pretend it is `configure' which instantiates (i.e., don't
10966     # use $as_me), people would be surprised to read:
10967     #    /* config.h.  Generated by config.status.  */
10968     configure_input="Generated from "`IFS=:
10969           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10970     if test x"$ac_file" != x-; then
10971       configure_input="$ac_file.  $configure_input"
10972       { echo "$as_me:$LINENO: creating $ac_file" >&5
10973 echo "$as_me: creating $ac_file" >&6;}
10974     fi
10975
10976     case $ac_tag in
10977     *:-:* | *:-) cat >"$tmp/stdin";;
10978     esac
10979     ;;
10980   esac
10981
10982   ac_dir=`$as_dirname -- "$ac_file" ||
10983 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10984          X"$ac_file" : 'X\(//\)[^/]' \| \
10985          X"$ac_file" : 'X\(//\)$' \| \
10986          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10987 echo X"$ac_file" |
10988     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10989             s//\1/
10990             q
10991           }
10992           /^X\(\/\/\)[^/].*/{
10993             s//\1/
10994             q
10995           }
10996           /^X\(\/\/\)$/{
10997             s//\1/
10998             q
10999           }
11000           /^X\(\/\).*/{
11001             s//\1/
11002             q
11003           }
11004           s/.*/./; q'`
11005   { as_dir="$ac_dir"
11006   case $as_dir in #(
11007   -*) as_dir=./$as_dir;;
11008   esac
11009   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11010     as_dirs=
11011     while :; do
11012       case $as_dir in #(
11013       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
11014       *) as_qdir=$as_dir;;
11015       esac
11016       as_dirs="'$as_qdir' $as_dirs"
11017       as_dir=`$as_dirname -- "$as_dir" ||
11018 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11019          X"$as_dir" : 'X\(//\)[^/]' \| \
11020          X"$as_dir" : 'X\(//\)$' \| \
11021          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11022 echo X"$as_dir" |
11023     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11024             s//\1/
11025             q
11026           }
11027           /^X\(\/\/\)[^/].*/{
11028             s//\1/
11029             q
11030           }
11031           /^X\(\/\/\)$/{
11032             s//\1/
11033             q
11034           }
11035           /^X\(\/\).*/{
11036             s//\1/
11037             q
11038           }
11039           s/.*/./; q'`
11040       test -d "$as_dir" && break
11041     done
11042     test -z "$as_dirs" || eval "mkdir $as_dirs"
11043   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11044 echo "$as_me: error: cannot create directory $as_dir" >&2;}
11045    { (exit 1); exit 1; }; }; }
11046   ac_builddir=.
11047
11048 case "$ac_dir" in
11049 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11050 *)
11051   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
11052   # A ".." for each directory in $ac_dir_suffix.
11053   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
11054   case $ac_top_builddir_sub in
11055   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11056   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11057   esac ;;
11058 esac
11059 ac_abs_top_builddir=$ac_pwd
11060 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11061 # for backward compatibility:
11062 ac_top_builddir=$ac_top_build_prefix
11063
11064 case $srcdir in
11065   .)  # We are building in place.
11066     ac_srcdir=.
11067     ac_top_srcdir=$ac_top_builddir_sub
11068     ac_abs_top_srcdir=$ac_pwd ;;
11069   [\\/]* | ?:[\\/]* )  # Absolute name.
11070     ac_srcdir=$srcdir$ac_dir_suffix;
11071     ac_top_srcdir=$srcdir
11072     ac_abs_top_srcdir=$srcdir ;;
11073   *) # Relative name.
11074     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11075     ac_top_srcdir=$ac_top_build_prefix$srcdir
11076     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11077 esac
11078 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11079
11080
11081   case $ac_mode in
11082   :F)
11083   #
11084   # CONFIG_FILE
11085   #
11086
11087   case $INSTALL in
11088   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11089   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11090   esac
11091 _ACEOF
11092
11093 cat >>$CONFIG_STATUS <<\_ACEOF
11094 # If the template does not know about datarootdir, expand it.
11095 # FIXME: This hack should be removed a few years after 2.60.
11096 ac_datarootdir_hack=; ac_datarootdir_seen=
11097
11098 case `sed -n '/datarootdir/ {
11099   p
11100   q
11101 }
11102 /@datadir@/p
11103 /@docdir@/p
11104 /@infodir@/p
11105 /@localedir@/p
11106 /@mandir@/p
11107 ' $ac_file_inputs` in
11108 *datarootdir*) ac_datarootdir_seen=yes;;
11109 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11110   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11111 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11112 _ACEOF
11113 cat >>$CONFIG_STATUS <<_ACEOF
11114   ac_datarootdir_hack='
11115   s&@datadir@&$datadir&g
11116   s&@docdir@&$docdir&g
11117   s&@infodir@&$infodir&g
11118   s&@localedir@&$localedir&g
11119   s&@mandir@&$mandir&g
11120     s&\\\${datarootdir}&$datarootdir&g' ;;
11121 esac
11122 _ACEOF
11123
11124 # Neutralize VPATH when `$srcdir' = `.'.
11125 # Shell code in configure.ac might set extrasub.
11126 # FIXME: do we really want to maintain this feature?
11127 cat >>$CONFIG_STATUS <<_ACEOF
11128   sed "$ac_vpsub
11129 $extrasub
11130 _ACEOF
11131 cat >>$CONFIG_STATUS <<\_ACEOF
11132 :t
11133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11134 s&@configure_input@&$configure_input&;t t
11135 s&@top_builddir@&$ac_top_builddir_sub&;t t
11136 s&@srcdir@&$ac_srcdir&;t t
11137 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11138 s&@top_srcdir@&$ac_top_srcdir&;t t
11139 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11140 s&@builddir@&$ac_builddir&;t t
11141 s&@abs_builddir@&$ac_abs_builddir&;t t
11142 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11143 s&@INSTALL@&$ac_INSTALL&;t t
11144 $ac_datarootdir_hack
11145 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
11146
11147 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11148   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11149   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11150   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11151 which seems to be undefined.  Please make sure it is defined." >&5
11152 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11153 which seems to be undefined.  Please make sure it is defined." >&2;}
11154
11155   rm -f "$tmp/stdin"
11156   case $ac_file in
11157   -) cat "$tmp/out"; rm -f "$tmp/out";;
11158   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
11159   esac
11160  ;;
11161   :H)
11162   #
11163   # CONFIG_HEADER
11164   #
11165 _ACEOF
11166
11167 # Transform confdefs.h into a sed script `conftest.defines', that
11168 # substitutes the proper values into config.h.in to produce config.h.
11169 rm -f conftest.defines conftest.tail
11170 # First, append a space to every undef/define line, to ease matching.
11171 echo 's/$/ /' >conftest.defines
11172 # Then, protect against being on the right side of a sed subst, or in
11173 # an unquoted here document, in config.status.  If some macros were
11174 # called several times there might be several #defines for the same
11175 # symbol, which is useless.  But do not sort them, since the last
11176 # AC_DEFINE must be honored.
11177 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11178 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
11179 # NAME is the cpp macro being defined, VALUE is the value it is being given.
11180 # PARAMS is the parameter list in the macro definition--in most cases, it's
11181 # just an empty string.
11182 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
11183 ac_dB='\\)[      (].*,\\1define\\2'
11184 ac_dC=' '
11185 ac_dD=' ,'
11186
11187 uniq confdefs.h |
11188   sed -n '
11189         t rset
11190         :rset
11191         s/^[     ]*#[    ]*define[       ][      ]*//
11192         t ok
11193         d
11194         :ok
11195         s/[\\&,]/\\&/g
11196         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
11197         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
11198   ' >>conftest.defines
11199
11200 # Remove the space that was appended to ease matching.
11201 # Then replace #undef with comments.  This is necessary, for
11202 # example, in the case of _POSIX_SOURCE, which is predefined and required
11203 # on some systems where configure will not decide to define it.
11204 # (The regexp can be short, since the line contains either #define or #undef.)
11205 echo 's/ $//
11206 s,^[     #]*u.*,/* & */,' >>conftest.defines
11207
11208 # Break up conftest.defines:
11209 ac_max_sed_lines=50
11210
11211 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
11212 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
11213 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
11214 # et cetera.
11215 ac_in='$ac_file_inputs'
11216 ac_out='"$tmp/out1"'
11217 ac_nxt='"$tmp/out2"'
11218
11219 while :
11220 do
11221   # Write a here document:
11222     cat >>$CONFIG_STATUS <<_ACEOF
11223     # First, check the format of the line:
11224     cat >"\$tmp/defines.sed" <<\\CEOF
11225 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
11226 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
11227 b
11228 :def
11229 _ACEOF
11230   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
11231   echo 'CEOF
11232     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
11233   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
11234   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
11235   grep . conftest.tail >/dev/null || break
11236   rm -f conftest.defines
11237   mv conftest.tail conftest.defines
11238 done
11239 rm -f conftest.defines conftest.tail
11240
11241 echo "ac_result=$ac_in" >>$CONFIG_STATUS
11242 cat >>$CONFIG_STATUS <<\_ACEOF
11243   if test x"$ac_file" != x-; then
11244     echo "/* $configure_input  */" >"$tmp/config.h"
11245     cat "$ac_result" >>"$tmp/config.h"
11246     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
11247       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11248 echo "$as_me: $ac_file is unchanged" >&6;}
11249     else
11250       rm -f $ac_file
11251       mv "$tmp/config.h" $ac_file
11252     fi
11253   else
11254     echo "/* $configure_input  */"
11255     cat "$ac_result"
11256   fi
11257   rm -f "$tmp/out12"
11258  ;;
11259
11260
11261   esac
11262
11263 done # for ac_tag
11264
11265
11266 { (exit 0); exit 0; }
11267 _ACEOF
11268 chmod +x $CONFIG_STATUS
11269 ac_clean_files=$ac_clean_files_save
11270
11271
11272 # configure is writing to config.log, and then calls config.status.
11273 # config.status does its own redirection, appending to config.log.
11274 # Unfortunately, on DOS this fails, as config.log is still kept open
11275 # by configure, so config.status won't be able to write to it; its
11276 # output is simply discarded.  So we exec the FD to /dev/null,
11277 # effectively closing config.log, so it can be properly (re)opened and
11278 # appended to by config.status.  When coming back to configure, we
11279 # need to make the FD available again.
11280 if test "$no_create" != yes; then
11281   ac_cs_success=:
11282   ac_config_status_args=
11283   test "$silent" = yes &&
11284     ac_config_status_args="$ac_config_status_args --quiet"
11285   exec 5>/dev/null
11286   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11287   exec 5>>config.log
11288   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11289   # would make configure fail if this is the last instruction.
11290   $ac_cs_success || { (exit 1); exit 1; }
11291 fi
11292
11293
11294
11295 #
11296 # On development trees, create snapshots of config.status
11297 #
11298 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11299     if test "x${MINGW}" = "xyes"; then
11300         echo cp config.status config.status.win32
11301         cp config.status config.status.win32
11302     else
11303         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
11304             echo cp config.status config.status.linux
11305             cp config.status config.status.linux
11306         fi
11307         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
11308             echo cp config.status config.status.debug
11309             cp config.status config.status.debug
11310         fi
11311         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
11312             echo cp config.status config.status.optimize
11313             cp config.status config.status.optimize
11314         fi
11315     fi
11316 fi