Generated from configure.in
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 #  include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #  include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 SHARED
662 CC
663 CFLAGS
664 LDFLAGS
665 CPPFLAGS
666 ac_ct_CC
667 EXEEXT
668 OBJEXT
669 CXX
670 CXXFLAGS
671 ac_ct_CXX
672 CPP
673 RANLIB
674 SET_MAKE
675 INSTALL_PROGRAM
676 INSTALL_SCRIPT
677 INSTALL_DATA
678 LN_S
679 UNCOMPRESS
680 AREXT
681 AR
682 SLEXT
683 CXXLIBS
684 STRIP
685 target
686 target_cpu
687 target_vendor
688 target_os
689 WORDS_BIGENDIAN
690 SYSTEM_BACKTICKS
691 GREP
692 EGREP
693 PACKAGE
694 VERSION
695 HAVE_UNISTD_H
696 FREETYPE_CONFIG
697 lame_objects
698 AVIFILE_CONFIG
699 VIDEO_LIBS
700 VIDEO_CFLAGS
701 USE_GZIP
702 PYTHON_LIB
703 PYTHON_INCLUDES
704 PDF2SWF
705 LIBPDF
706 JPEG2SWF
707 GIF2SWF
708 PNG2SWF
709 LIBOBJS
710 LTLIBOBJS'
711 ac_subst_files=''
712       ac_precious_vars='build_alias
713 host_alias
714 target_alias
715 CC
716 CFLAGS
717 LDFLAGS
718 LIBS
719 CPPFLAGS
720 CXX
721 CXXFLAGS
722 CCC
723 CPP'
724
725
726 # Initialize some variables set by options.
727 ac_init_help=
728 ac_init_version=false
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
731 cache_file=/dev/null
732 exec_prefix=NONE
733 no_create=
734 no_recursion=
735 prefix=NONE
736 program_prefix=NONE
737 program_suffix=NONE
738 program_transform_name=s,x,x,
739 silent=
740 site=
741 srcdir=
742 verbose=
743 x_includes=NONE
744 x_libraries=NONE
745
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir='${exec_prefix}/bin'
753 sbindir='${exec_prefix}/sbin'
754 libexecdir='${exec_prefix}/libexec'
755 datarootdir='${prefix}/share'
756 datadir='${datarootdir}'
757 sysconfdir='${prefix}/etc'
758 sharedstatedir='${prefix}/com'
759 localstatedir='${prefix}/var'
760 includedir='${prefix}/include'
761 oldincludedir='/usr/include'
762 docdir='${datarootdir}/doc/${PACKAGE}'
763 infodir='${datarootdir}/info'
764 htmldir='${docdir}'
765 dvidir='${docdir}'
766 pdfdir='${docdir}'
767 psdir='${docdir}'
768 libdir='${exec_prefix}/lib'
769 localedir='${datarootdir}/locale'
770 mandir='${datarootdir}/man'
771
772 ac_prev=
773 ac_dashdash=
774 for ac_option
775 do
776   # If the previous option needs an argument, assign it.
777   if test -n "$ac_prev"; then
778     eval $ac_prev=\$ac_option
779     ac_prev=
780     continue
781   fi
782
783   case $ac_option in
784   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785   *)    ac_optarg=yes ;;
786   esac
787
788   # Accept the important Cygnus configure options, so we can diagnose typos.
789
790   case $ac_dashdash$ac_option in
791   --)
792     ac_dashdash=yes ;;
793
794   -bindir | --bindir | --bindi | --bind | --bin | --bi)
795     ac_prev=bindir ;;
796   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797     bindir=$ac_optarg ;;
798
799   -build | --build | --buil | --bui | --bu)
800     ac_prev=build_alias ;;
801   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802     build_alias=$ac_optarg ;;
803
804   -cache-file | --cache-file | --cache-fil | --cache-fi \
805   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806     ac_prev=cache_file ;;
807   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809     cache_file=$ac_optarg ;;
810
811   --config-cache | -C)
812     cache_file=config.cache ;;
813
814   -datadir | --datadir | --datadi | --datad)
815     ac_prev=datadir ;;
816   -datadir=* | --datadir=* | --datadi=* | --datad=*)
817     datadir=$ac_optarg ;;
818
819   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820   | --dataroo | --dataro | --datar)
821     ac_prev=datarootdir ;;
822   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824     datarootdir=$ac_optarg ;;
825
826   -disable-* | --disable-*)
827     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828     # Reject names that are not valid shell variable names.
829     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
830       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831    { (exit 1); exit 1; }; }
832     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
833     eval enable_$ac_feature=no ;;
834
835   -docdir | --docdir | --docdi | --doc | --do)
836     ac_prev=docdir ;;
837   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838     docdir=$ac_optarg ;;
839
840   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
841     ac_prev=dvidir ;;
842   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843     dvidir=$ac_optarg ;;
844
845   -enable-* | --enable-*)
846     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847     # Reject names that are not valid shell variable names.
848     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850    { (exit 1); exit 1; }; }
851     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852     eval enable_$ac_feature=\$ac_optarg ;;
853
854   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
855   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
856   | --exec | --exe | --ex)
857     ac_prev=exec_prefix ;;
858   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
859   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
860   | --exec=* | --exe=* | --ex=*)
861     exec_prefix=$ac_optarg ;;
862
863   -gas | --gas | --ga | --g)
864     # Obsolete; use --with-gas.
865     with_gas=yes ;;
866
867   -help | --help | --hel | --he | -h)
868     ac_init_help=long ;;
869   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
870     ac_init_help=recursive ;;
871   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
872     ac_init_help=short ;;
873
874   -host | --host | --hos | --ho)
875     ac_prev=host_alias ;;
876   -host=* | --host=* | --hos=* | --ho=*)
877     host_alias=$ac_optarg ;;
878
879   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
880     ac_prev=htmldir ;;
881   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
882   | --ht=*)
883     htmldir=$ac_optarg ;;
884
885   -includedir | --includedir | --includedi | --included | --include \
886   | --includ | --inclu | --incl | --inc)
887     ac_prev=includedir ;;
888   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
889   | --includ=* | --inclu=* | --incl=* | --inc=*)
890     includedir=$ac_optarg ;;
891
892   -infodir | --infodir | --infodi | --infod | --info | --inf)
893     ac_prev=infodir ;;
894   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
895     infodir=$ac_optarg ;;
896
897   -libdir | --libdir | --libdi | --libd)
898     ac_prev=libdir ;;
899   -libdir=* | --libdir=* | --libdi=* | --libd=*)
900     libdir=$ac_optarg ;;
901
902   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
903   | --libexe | --libex | --libe)
904     ac_prev=libexecdir ;;
905   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
906   | --libexe=* | --libex=* | --libe=*)
907     libexecdir=$ac_optarg ;;
908
909   -localedir | --localedir | --localedi | --localed | --locale)
910     ac_prev=localedir ;;
911   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
912     localedir=$ac_optarg ;;
913
914   -localstatedir | --localstatedir | --localstatedi | --localstated \
915   | --localstate | --localstat | --localsta | --localst | --locals)
916     ac_prev=localstatedir ;;
917   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
918   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
919     localstatedir=$ac_optarg ;;
920
921   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
922     ac_prev=mandir ;;
923   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
924     mandir=$ac_optarg ;;
925
926   -nfp | --nfp | --nf)
927     # Obsolete; use --without-fp.
928     with_fp=no ;;
929
930   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931   | --no-cr | --no-c | -n)
932     no_create=yes ;;
933
934   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936     no_recursion=yes ;;
937
938   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
939   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
940   | --oldin | --oldi | --old | --ol | --o)
941     ac_prev=oldincludedir ;;
942   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
943   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
944   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
945     oldincludedir=$ac_optarg ;;
946
947   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
948     ac_prev=prefix ;;
949   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950     prefix=$ac_optarg ;;
951
952   -program-prefix | --program-prefix | --program-prefi | --program-pref \
953   | --program-pre | --program-pr | --program-p)
954     ac_prev=program_prefix ;;
955   -program-prefix=* | --program-prefix=* | --program-prefi=* \
956   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
957     program_prefix=$ac_optarg ;;
958
959   -program-suffix | --program-suffix | --program-suffi | --program-suff \
960   | --program-suf | --program-su | --program-s)
961     ac_prev=program_suffix ;;
962   -program-suffix=* | --program-suffix=* | --program-suffi=* \
963   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
964     program_suffix=$ac_optarg ;;
965
966   -program-transform-name | --program-transform-name \
967   | --program-transform-nam | --program-transform-na \
968   | --program-transform-n | --program-transform- \
969   | --program-transform | --program-transfor \
970   | --program-transfo | --program-transf \
971   | --program-trans | --program-tran \
972   | --progr-tra | --program-tr | --program-t)
973     ac_prev=program_transform_name ;;
974   -program-transform-name=* | --program-transform-name=* \
975   | --program-transform-nam=* | --program-transform-na=* \
976   | --program-transform-n=* | --program-transform-=* \
977   | --program-transform=* | --program-transfor=* \
978   | --program-transfo=* | --program-transf=* \
979   | --program-trans=* | --program-tran=* \
980   | --progr-tra=* | --program-tr=* | --program-t=*)
981     program_transform_name=$ac_optarg ;;
982
983   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
984     ac_prev=pdfdir ;;
985   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986     pdfdir=$ac_optarg ;;
987
988   -psdir | --psdir | --psdi | --psd | --ps)
989     ac_prev=psdir ;;
990   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991     psdir=$ac_optarg ;;
992
993   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994   | -silent | --silent | --silen | --sile | --sil)
995     silent=yes ;;
996
997   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
998     ac_prev=sbindir ;;
999   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1000   | --sbi=* | --sb=*)
1001     sbindir=$ac_optarg ;;
1002
1003   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1004   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1005   | --sharedst | --shareds | --shared | --share | --shar \
1006   | --sha | --sh)
1007     ac_prev=sharedstatedir ;;
1008   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1009   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1010   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1011   | --sha=* | --sh=*)
1012     sharedstatedir=$ac_optarg ;;
1013
1014   -site | --site | --sit)
1015     ac_prev=site ;;
1016   -site=* | --site=* | --sit=*)
1017     site=$ac_optarg ;;
1018
1019   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1020     ac_prev=srcdir ;;
1021   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1022     srcdir=$ac_optarg ;;
1023
1024   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1025   | --syscon | --sysco | --sysc | --sys | --sy)
1026     ac_prev=sysconfdir ;;
1027   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1028   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1029     sysconfdir=$ac_optarg ;;
1030
1031   -target | --target | --targe | --targ | --tar | --ta | --t)
1032     ac_prev=target_alias ;;
1033   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1034     target_alias=$ac_optarg ;;
1035
1036   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037     verbose=yes ;;
1038
1039   -version | --version | --versio | --versi | --vers | -V)
1040     ac_init_version=: ;;
1041
1042   -with-* | --with-*)
1043     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044     # Reject names that are not valid shell variable names.
1045     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046       { echo "$as_me: error: invalid package name: $ac_package" >&2
1047    { (exit 1); exit 1; }; }
1048     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1049     eval with_$ac_package=\$ac_optarg ;;
1050
1051   -without-* | --without-*)
1052     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053     # Reject names that are not valid shell variable names.
1054     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055       { echo "$as_me: error: invalid package name: $ac_package" >&2
1056    { (exit 1); exit 1; }; }
1057     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058     eval with_$ac_package=no ;;
1059
1060   --x)
1061     # Obsolete; use --with-x.
1062     with_x=yes ;;
1063
1064   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065   | --x-incl | --x-inc | --x-in | --x-i)
1066     ac_prev=x_includes ;;
1067   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069     x_includes=$ac_optarg ;;
1070
1071   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073     ac_prev=x_libraries ;;
1074   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076     x_libraries=$ac_optarg ;;
1077
1078   -*) { echo "$as_me: error: unrecognized option: $ac_option
1079 Try \`$0 --help' for more information." >&2
1080    { (exit 1); exit 1; }; }
1081     ;;
1082
1083   *=*)
1084     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1085     # Reject names that are not valid shell variable names.
1086     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1087       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1088    { (exit 1); exit 1; }; }
1089     eval $ac_envvar=\$ac_optarg
1090     export $ac_envvar ;;
1091
1092   *)
1093     # FIXME: should be removed in autoconf 3.0.
1094     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1098     ;;
1099
1100   esac
1101 done
1102
1103 if test -n "$ac_prev"; then
1104   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105   { echo "$as_me: error: missing argument to $ac_option" >&2
1106    { (exit 1); exit 1; }; }
1107 fi
1108
1109 # Be sure to have absolute directory names.
1110 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111                 datadir sysconfdir sharedstatedir localstatedir includedir \
1112                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113                 libdir localedir mandir
1114 do
1115   eval ac_val=\$$ac_var
1116   case $ac_val in
1117     [\\/$]* | ?:[\\/]* )  continue;;
1118     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1119   esac
1120   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1121    { (exit 1); exit 1; }; }
1122 done
1123
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1127 build=$build_alias
1128 host=$host_alias
1129 target=$target_alias
1130
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x; then
1133   if test "x$build_alias" = x; then
1134     cross_compiling=maybe
1135     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1136     If a cross compiler is detected then cross compile mode will be used." >&2
1137   elif test "x$build_alias" != "x$host_alias"; then
1138     cross_compiling=yes
1139   fi
1140 fi
1141
1142 ac_tool_prefix=
1143 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1144
1145 test "$silent" = yes && exec 6>/dev/null
1146
1147
1148 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1149 ac_ls_di=`ls -di .` &&
1150 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1151   { echo "$as_me: error: Working directory cannot be determined" >&2
1152    { (exit 1); exit 1; }; }
1153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154   { echo "$as_me: error: pwd does not report name of working directory" >&2
1155    { (exit 1); exit 1; }; }
1156
1157
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160   ac_srcdir_defaulted=yes
1161   # Try the directory containing this script, then the parent directory.
1162   ac_confdir=`$as_dirname -- "$0" ||
1163 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164          X"$0" : 'X\(//\)[^/]' \| \
1165          X"$0" : 'X\(//\)$' \| \
1166          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1167 echo X"$0" |
1168     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1169             s//\1/
1170             q
1171           }
1172           /^X\(\/\/\)[^/].*/{
1173             s//\1/
1174             q
1175           }
1176           /^X\(\/\/\)$/{
1177             s//\1/
1178             q
1179           }
1180           /^X\(\/\).*/{
1181             s//\1/
1182             q
1183           }
1184           s/.*/./; q'`
1185   srcdir=$ac_confdir
1186   if test ! -r "$srcdir/$ac_unique_file"; then
1187     srcdir=..
1188   fi
1189 else
1190   ac_srcdir_defaulted=no
1191 fi
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1195    { (exit 1); exit 1; }; }
1196 fi
1197 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1198 ac_abs_confdir=`(
1199         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1200    { (exit 1); exit 1; }; }
1201         pwd)`
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204   srcdir=.
1205 fi
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1209 case $srcdir in
1210 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1211 esac
1212 for ac_var in $ac_precious_vars; do
1213   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1214   eval ac_env_${ac_var}_value=\$${ac_var}
1215   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1216   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1217 done
1218
1219 #
1220 # Report the --help message.
1221 #
1222 if test "$ac_init_help" = "long"; then
1223   # Omit some internal or obsolete options to make the list less imposing.
1224   # This message is too long to be a string in the A/UX 3.1 sh.
1225   cat <<_ACEOF
1226 \`configure' configures this package to adapt to many kinds of systems.
1227
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1229
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE.  See below for descriptions of some of the useful variables.
1232
1233 Defaults for the options are specified in brackets.
1234
1235 Configuration:
1236   -h, --help              display this help and exit
1237       --help=short        display options specific to this package
1238       --help=recursive    display the short help of all the included packages
1239   -V, --version           display version information and exit
1240   -q, --quiet, --silent   do not print \`checking...' messages
1241       --cache-file=FILE   cache test results in FILE [disabled]
1242   -C, --config-cache      alias for \`--cache-file=config.cache'
1243   -n, --no-create         do not create output files
1244       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1245
1246 Installation directories:
1247   --prefix=PREFIX         install architecture-independent files in PREFIX
1248                           [$ac_default_prefix]
1249   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1250                           [PREFIX]
1251
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1256
1257 For better control, use the options below.
1258
1259 Fine tuning of the installation directories:
1260   --bindir=DIR           user executables [EPREFIX/bin]
1261   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1262   --libexecdir=DIR       program executables [EPREFIX/libexec]
1263   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1264   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1265   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1266   --libdir=DIR           object code libraries [EPREFIX/lib]
1267   --includedir=DIR       C header files [PREFIX/include]
1268   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1269   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1270   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1271   --infodir=DIR          info documentation [DATAROOTDIR/info]
1272   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1273   --mandir=DIR           man documentation [DATAROOTDIR/man]
1274   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1275   --htmldir=DIR          html documentation [DOCDIR]
1276   --dvidir=DIR           dvi documentation [DOCDIR]
1277   --pdfdir=DIR           pdf documentation [DOCDIR]
1278   --psdir=DIR            ps documentation [DOCDIR]
1279 _ACEOF
1280
1281   cat <<\_ACEOF
1282
1283 Program names:
1284   --program-prefix=PREFIX            prepend PREFIX to installed program names
1285   --program-suffix=SUFFIX            append SUFFIX to installed program names
1286   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1287
1288 System types:
1289   --build=BUILD     configure for building on BUILD [guessed]
1290   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1291   --target=TARGET   configure for building compilers for TARGET [HOST]
1292 _ACEOF
1293 fi
1294
1295 if test -n "$ac_init_help"; then
1296
1297   cat <<\_ACEOF
1298
1299 Optional Features:
1300   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1301   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1302   --enable-checkmem       turn on ccmalloc debugging
1303   --enable-debug          turn on debugging
1304   --enable-profiling      turn on profiling
1305   --enable-warnings        turn on compiler warnings
1306   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1307   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1308
1309 Some influential environment variables:
1310   CC          C compiler command
1311   CFLAGS      C compiler flags
1312   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1313               nonstandard directory <lib dir>
1314   LIBS        libraries to pass to the linker, e.g. -l<library>
1315   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1316               you have headers in a nonstandard directory <include dir>
1317   CXX         C++ compiler command
1318   CXXFLAGS    C++ compiler flags
1319   CPP         C preprocessor
1320
1321 Use these variables to override the choices made by `configure' or to help
1322 it to find libraries and programs with nonstandard names/locations.
1323
1324 _ACEOF
1325 ac_status=$?
1326 fi
1327
1328 if test "$ac_init_help" = "recursive"; then
1329   # If there are subdirs, report their specific --help.
1330   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1331     test -d "$ac_dir" || continue
1332     ac_builddir=.
1333
1334 case "$ac_dir" in
1335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1336 *)
1337   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1338   # A ".." for each directory in $ac_dir_suffix.
1339   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1340   case $ac_top_builddir_sub in
1341   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1342   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1343   esac ;;
1344 esac
1345 ac_abs_top_builddir=$ac_pwd
1346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1347 # for backward compatibility:
1348 ac_top_builddir=$ac_top_build_prefix
1349
1350 case $srcdir in
1351   .)  # We are building in place.
1352     ac_srcdir=.
1353     ac_top_srcdir=$ac_top_builddir_sub
1354     ac_abs_top_srcdir=$ac_pwd ;;
1355   [\\/]* | ?:[\\/]* )  # Absolute name.
1356     ac_srcdir=$srcdir$ac_dir_suffix;
1357     ac_top_srcdir=$srcdir
1358     ac_abs_top_srcdir=$srcdir ;;
1359   *) # Relative name.
1360     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1361     ac_top_srcdir=$ac_top_build_prefix$srcdir
1362     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1363 esac
1364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1365
1366     cd "$ac_dir" || { ac_status=$?; continue; }
1367     # Check for guested configure.
1368     if test -f "$ac_srcdir/configure.gnu"; then
1369       echo &&
1370       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1371     elif test -f "$ac_srcdir/configure"; then
1372       echo &&
1373       $SHELL "$ac_srcdir/configure" --help=recursive
1374     else
1375       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1376     fi || ac_status=$?
1377     cd "$ac_pwd" || { ac_status=$?; break; }
1378   done
1379 fi
1380
1381 test -n "$ac_init_help" && exit $ac_status
1382 if $ac_init_version; then
1383   cat <<\_ACEOF
1384 configure
1385 generated by GNU Autoconf 2.61
1386
1387 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1388 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1389 This configure script is free software; the Free Software Foundation
1390 gives unlimited permission to copy, distribute and modify it.
1391 _ACEOF
1392   exit
1393 fi
1394 cat >config.log <<_ACEOF
1395 This file contains any messages produced by compilers while
1396 running configure, to aid debugging if configure makes a mistake.
1397
1398 It was created by $as_me, which was
1399 generated by GNU Autoconf 2.61.  Invocation command line was
1400
1401   $ $0 $@
1402
1403 _ACEOF
1404 exec 5>>config.log
1405 {
1406 cat <<_ASUNAME
1407 ## --------- ##
1408 ## Platform. ##
1409 ## --------- ##
1410
1411 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1412 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1413 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1414 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1415 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1416
1417 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1418 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1419
1420 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1421 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1422 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1423 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1424 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1425 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1426 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1427
1428 _ASUNAME
1429
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1432 do
1433   IFS=$as_save_IFS
1434   test -z "$as_dir" && as_dir=.
1435   echo "PATH: $as_dir"
1436 done
1437 IFS=$as_save_IFS
1438
1439 } >&5
1440
1441 cat >&5 <<_ACEOF
1442
1443
1444 ## ----------- ##
1445 ## Core tests. ##
1446 ## ----------- ##
1447
1448 _ACEOF
1449
1450
1451 # Keep a trace of the command line.
1452 # Strip out --no-create and --no-recursion so they do not pile up.
1453 # Strip out --silent because we don't want to record it for future runs.
1454 # Also quote any args containing shell meta-characters.
1455 # Make two passes to allow for proper duplicate-argument suppression.
1456 ac_configure_args=
1457 ac_configure_args0=
1458 ac_configure_args1=
1459 ac_must_keep_next=false
1460 for ac_pass in 1 2
1461 do
1462   for ac_arg
1463   do
1464     case $ac_arg in
1465     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1466     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1467     | -silent | --silent | --silen | --sile | --sil)
1468       continue ;;
1469     *\'*)
1470       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1471     esac
1472     case $ac_pass in
1473     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1474     2)
1475       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1476       if test $ac_must_keep_next = true; then
1477         ac_must_keep_next=false # Got value, back to normal.
1478       else
1479         case $ac_arg in
1480           *=* | --config-cache | -C | -disable-* | --disable-* \
1481           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1482           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1483           | -with-* | --with-* | -without-* | --without-* | --x)
1484             case "$ac_configure_args0 " in
1485               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1486             esac
1487             ;;
1488           -* ) ac_must_keep_next=true ;;
1489         esac
1490       fi
1491       ac_configure_args="$ac_configure_args '$ac_arg'"
1492       ;;
1493     esac
1494   done
1495 done
1496 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1497 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1498
1499 # When interrupted or exit'd, cleanup temporary files, and complete
1500 # config.log.  We remove comments because anyway the quotes in there
1501 # would cause problems or look ugly.
1502 # WARNING: Use '\'' to represent an apostrophe within the trap.
1503 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1504 trap 'exit_status=$?
1505   # Save into config.log some information that might help in debugging.
1506   {
1507     echo
1508
1509     cat <<\_ASBOX
1510 ## ---------------- ##
1511 ## Cache variables. ##
1512 ## ---------------- ##
1513 _ASBOX
1514     echo
1515     # The following way of writing the cache mishandles newlines in values,
1516 (
1517   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1518     eval ac_val=\$$ac_var
1519     case $ac_val in #(
1520     *${as_nl}*)
1521       case $ac_var in #(
1522       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1523 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1524       esac
1525       case $ac_var in #(
1526       _ | IFS | as_nl) ;; #(
1527       *) $as_unset $ac_var ;;
1528       esac ;;
1529     esac
1530   done
1531   (set) 2>&1 |
1532     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1533     *${as_nl}ac_space=\ *)
1534       sed -n \
1535         "s/'\''/'\''\\\\'\'''\''/g;
1536           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1537       ;; #(
1538     *)
1539       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1540       ;;
1541     esac |
1542     sort
1543 )
1544     echo
1545
1546     cat <<\_ASBOX
1547 ## ----------------- ##
1548 ## Output variables. ##
1549 ## ----------------- ##
1550 _ASBOX
1551     echo
1552     for ac_var in $ac_subst_vars
1553     do
1554       eval ac_val=\$$ac_var
1555       case $ac_val in
1556       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1557       esac
1558       echo "$ac_var='\''$ac_val'\''"
1559     done | sort
1560     echo
1561
1562     if test -n "$ac_subst_files"; then
1563       cat <<\_ASBOX
1564 ## ------------------- ##
1565 ## File substitutions. ##
1566 ## ------------------- ##
1567 _ASBOX
1568       echo
1569       for ac_var in $ac_subst_files
1570       do
1571         eval ac_val=\$$ac_var
1572         case $ac_val in
1573         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1574         esac
1575         echo "$ac_var='\''$ac_val'\''"
1576       done | sort
1577       echo
1578     fi
1579
1580     if test -s confdefs.h; then
1581       cat <<\_ASBOX
1582 ## ----------- ##
1583 ## confdefs.h. ##
1584 ## ----------- ##
1585 _ASBOX
1586       echo
1587       cat confdefs.h
1588       echo
1589     fi
1590     test "$ac_signal" != 0 &&
1591       echo "$as_me: caught signal $ac_signal"
1592     echo "$as_me: exit $exit_status"
1593   } >&5
1594   rm -f core *.core core.conftest.* &&
1595     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1596     exit $exit_status
1597 ' 0
1598 for ac_signal in 1 2 13 15; do
1599   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1600 done
1601 ac_signal=0
1602
1603 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1604 rm -f -r conftest* confdefs.h
1605
1606 # Predefined preprocessor variables.
1607
1608 cat >>confdefs.h <<_ACEOF
1609 #define PACKAGE_NAME "$PACKAGE_NAME"
1610 _ACEOF
1611
1612
1613 cat >>confdefs.h <<_ACEOF
1614 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1615 _ACEOF
1616
1617
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1620 _ACEOF
1621
1622
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_STRING "$PACKAGE_STRING"
1625 _ACEOF
1626
1627
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1630 _ACEOF
1631
1632
1633 # Let the site file select an alternate cache file if it wants to.
1634 # Prefer explicitly selected file to automatically selected ones.
1635 if test -n "$CONFIG_SITE"; then
1636   set x "$CONFIG_SITE"
1637 elif test "x$prefix" != xNONE; then
1638   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1639 else
1640   set x "$ac_default_prefix/share/config.site" \
1641         "$ac_default_prefix/etc/config.site"
1642 fi
1643 shift
1644 for ac_site_file
1645 do
1646   if test -r "$ac_site_file"; then
1647     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1648 echo "$as_me: loading site script $ac_site_file" >&6;}
1649     sed 's/^/| /' "$ac_site_file" >&5
1650     . "$ac_site_file"
1651   fi
1652 done
1653
1654 if test -r "$cache_file"; then
1655   # Some versions of bash will fail to source /dev/null (special
1656   # files actually), so we avoid doing that.
1657   if test -f "$cache_file"; then
1658     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1659 echo "$as_me: loading cache $cache_file" >&6;}
1660     case $cache_file in
1661       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1662       *)                      . "./$cache_file";;
1663     esac
1664   fi
1665 else
1666   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1667 echo "$as_me: creating cache $cache_file" >&6;}
1668   >$cache_file
1669 fi
1670
1671 # Check that the precious variables saved in the cache have kept the same
1672 # value.
1673 ac_cache_corrupted=false
1674 for ac_var in $ac_precious_vars; do
1675   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1676   eval ac_new_set=\$ac_env_${ac_var}_set
1677   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1678   eval ac_new_val=\$ac_env_${ac_var}_value
1679   case $ac_old_set,$ac_new_set in
1680     set,)
1681       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1682 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1683       ac_cache_corrupted=: ;;
1684     ,set)
1685       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1686 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1687       ac_cache_corrupted=: ;;
1688     ,);;
1689     *)
1690       if test "x$ac_old_val" != "x$ac_new_val"; then
1691         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1692 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1693         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1694 echo "$as_me:   former value:  $ac_old_val" >&2;}
1695         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1696 echo "$as_me:   current value: $ac_new_val" >&2;}
1697         ac_cache_corrupted=:
1698       fi;;
1699   esac
1700   # Pass precious variables to config.status.
1701   if test "$ac_new_set" = set; then
1702     case $ac_new_val in
1703     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1704     *) ac_arg=$ac_var=$ac_new_val ;;
1705     esac
1706     case " $ac_configure_args " in
1707       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1708       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1709     esac
1710   fi
1711 done
1712 if $ac_cache_corrupted; then
1713   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1714 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1715   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1716 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1717    { (exit 1); exit 1; }; }
1718 fi
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736 ac_ext=c
1737 ac_cpp='$CPP $CPPFLAGS'
1738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1741
1742
1743
1744
1745 # Check whether --enable-checkmem was given.
1746 if test "${enable_checkmem+set}" = set; then
1747   enableval=$enable_checkmem; CHECKMEM=true
1748 fi
1749
1750 # Check whether --enable-debug was given.
1751 if test "${enable_debug+set}" = set; then
1752   enableval=$enable_debug; DEBUG=true
1753 fi
1754
1755 # Check whether --enable-profiling was given.
1756 if test "${enable_profiling+set}" = set; then
1757   enableval=$enable_profiling; PROFILING=true
1758 fi
1759
1760 # Check whether --enable-warnings was given.
1761 if test "${enable_warnings+set}" = set; then
1762   enableval=$enable_warnings; ENABLE_WARNINGS=true
1763 fi
1764
1765 # Check whether --enable-optimizations was given.
1766 if test "${enable_optimizations+set}" = set; then
1767   enableval=$enable_optimizations; OPTIMIZE=true
1768 fi
1769
1770 # Check whether --enable-lame was given.
1771 if test "${enable_lame+set}" = set; then
1772   enableval=$enable_lame; DISABLE_LAME=true
1773 fi
1774
1775
1776 PACKAGE=swftools
1777 VERSION=2007-01-13-1826
1778
1779
1780 # ------------------------------------------------------------------
1781
1782 if test "x${srcdir}" != "x."; then
1783     echo "--srcdir is not supported"
1784     exit 1
1785 fi
1786
1787 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type -Wno-unused-value"
1788 if test "x$ENABLE_WARNINGS" '!=' "x";then
1789     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1790 fi
1791
1792 if test "x$CHECKMEM" '!=' "x";then
1793     DEBUG=yes
1794 fi
1795 if test "x$PROFILING" '!=' "x";then
1796     DEBUG=yes
1797 fi
1798 if test "x$DEBUG" '!=' "x";then
1799     if test "x$PROFILING" = "x";then
1800         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1801         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1802         LDFLAGS="-g $LIBS"
1803     else
1804         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1805         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1806         LDFLAGS="-g -pg $LIBS"
1807     fi
1808 else if test "x$OPTIMIZE" '!=' "x"; then
1809     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1810     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1811 else
1812     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1813     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1814 fi
1815 fi
1816 #OLDGCC=1
1817 #if test "x$OLDGCC" '!=' "x";then
1818 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1819 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1820 #     CFLAGS="$CFLAGS -ansi -pendantic"
1821 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1822 #fi
1823
1824 export PACKAGE VERSION CFLAGS CXXFLAGS
1825
1826
1827 ac_aux_dir=
1828 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1829   if test -f "$ac_dir/install-sh"; then
1830     ac_aux_dir=$ac_dir
1831     ac_install_sh="$ac_aux_dir/install-sh -c"
1832     break
1833   elif test -f "$ac_dir/install.sh"; then
1834     ac_aux_dir=$ac_dir
1835     ac_install_sh="$ac_aux_dir/install.sh -c"
1836     break
1837   elif test -f "$ac_dir/shtool"; then
1838     ac_aux_dir=$ac_dir
1839     ac_install_sh="$ac_aux_dir/shtool install -c"
1840     break
1841   fi
1842 done
1843 if test -z "$ac_aux_dir"; then
1844   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1845 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1846    { (exit 1); exit 1; }; }
1847 fi
1848
1849 # These three variables are undocumented and unsupported,
1850 # and are intended to be withdrawn in a future Autoconf release.
1851 # They can cause serious problems if a builder's source tree is in a directory
1852 # whose full name contains unusual characters.
1853 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1854 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1855 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1856
1857
1858 # Make sure we can run config.sub.
1859 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1860   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1861 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1862    { (exit 1); exit 1; }; }
1863
1864 { echo "$as_me:$LINENO: checking build system type" >&5
1865 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1866 if test "${ac_cv_build+set}" = set; then
1867   echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869   ac_build_alias=$build_alias
1870 test "x$ac_build_alias" = x &&
1871   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1872 test "x$ac_build_alias" = x &&
1873   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1874 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1875    { (exit 1); exit 1; }; }
1876 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1877   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1878 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1879    { (exit 1); exit 1; }; }
1880
1881 fi
1882 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1883 echo "${ECHO_T}$ac_cv_build" >&6; }
1884 case $ac_cv_build in
1885 *-*-*) ;;
1886 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1887 echo "$as_me: error: invalid value of canonical build" >&2;}
1888    { (exit 1); exit 1; }; };;
1889 esac
1890 build=$ac_cv_build
1891 ac_save_IFS=$IFS; IFS='-'
1892 set x $ac_cv_build
1893 shift
1894 build_cpu=$1
1895 build_vendor=$2
1896 shift; shift
1897 # Remember, the first character of IFS is used to create $*,
1898 # except with old shells:
1899 build_os=$*
1900 IFS=$ac_save_IFS
1901 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1902
1903
1904 { echo "$as_me:$LINENO: checking host system type" >&5
1905 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1906 if test "${ac_cv_host+set}" = set; then
1907   echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909   if test "x$host_alias" = x; then
1910   ac_cv_host=$ac_cv_build
1911 else
1912   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1913     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1914 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1915    { (exit 1); exit 1; }; }
1916 fi
1917
1918 fi
1919 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1920 echo "${ECHO_T}$ac_cv_host" >&6; }
1921 case $ac_cv_host in
1922 *-*-*) ;;
1923 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1924 echo "$as_me: error: invalid value of canonical host" >&2;}
1925    { (exit 1); exit 1; }; };;
1926 esac
1927 host=$ac_cv_host
1928 ac_save_IFS=$IFS; IFS='-'
1929 set x $ac_cv_host
1930 shift
1931 host_cpu=$1
1932 host_vendor=$2
1933 shift; shift
1934 # Remember, the first character of IFS is used to create $*,
1935 # except with old shells:
1936 host_os=$*
1937 IFS=$ac_save_IFS
1938 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1939
1940
1941
1942 SHARED="-shared"
1943 MACOSX=
1944 case $host_os in
1945     *darwin* )
1946         MACOSX=yes
1947         CFLAGS="$CFLAGS"
1948         CXXFLAGS="$CXXFLAGS -fno-rtti"
1949         SHARED="-bundle"
1950         # Use fink packages if available.
1951         #if test -d /sw/include && test -d /sw/lib; then
1952         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
1953         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
1954         #fi
1955         ;;
1956 esac
1957
1958
1959
1960  ac_ext=c
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 if test -n "$ac_tool_prefix"; then
1966   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   if test -n "$CC"; then
1974   ac_cv_prog_CC="$CC" # Let the user override the test.
1975 else
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1978 do
1979   IFS=$as_save_IFS
1980   test -z "$as_dir" && as_dir=.
1981   for ac_exec_ext in '' $ac_executable_extensions; do
1982   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1983     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985     break 2
1986   fi
1987 done
1988 done
1989 IFS=$as_save_IFS
1990
1991 fi
1992 fi
1993 CC=$ac_cv_prog_CC
1994 if test -n "$CC"; then
1995   { echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6; }
1997 else
1998   { echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6; }
2000 fi
2001
2002
2003 fi
2004 if test -z "$ac_cv_prog_CC"; then
2005   ac_ct_CC=$CC
2006   # Extract the first word of "gcc", so it can be a program name with args.
2007 set dummy gcc; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011   echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013   if test -n "$ac_ct_CC"; then
2014   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2018 do
2019   IFS=$as_save_IFS
2020   test -z "$as_dir" && as_dir=.
2021   for ac_exec_ext in '' $ac_executable_extensions; do
2022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2023     ac_cv_prog_ac_ct_CC="gcc"
2024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025     break 2
2026   fi
2027 done
2028 done
2029 IFS=$as_save_IFS
2030
2031 fi
2032 fi
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6; }
2037 else
2038   { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2040 fi
2041
2042   if test "x$ac_ct_CC" = x; then
2043     CC=""
2044   else
2045     case $cross_compiling:$ac_tool_warned in
2046 yes:)
2047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2048 whose name does not start with the host triplet.  If you think this
2049 configuration is useful to you, please write to autoconf@gnu.org." >&5
2050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2051 whose name does not start with the host triplet.  If you think this
2052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2053 ac_tool_warned=yes ;;
2054 esac
2055     CC=$ac_ct_CC
2056   fi
2057 else
2058   CC="$ac_cv_prog_CC"
2059 fi
2060
2061 if test -z "$CC"; then
2062           if test -n "$ac_tool_prefix"; then
2063     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2064 set dummy ${ac_tool_prefix}cc; ac_word=$2
2065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2067 if test "${ac_cv_prog_CC+set}" = set; then
2068   echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070   if test -n "$CC"; then
2071   ac_cv_prog_CC="$CC" # Let the user override the test.
2072 else
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2075 do
2076   IFS=$as_save_IFS
2077   test -z "$as_dir" && as_dir=.
2078   for ac_exec_ext in '' $ac_executable_extensions; do
2079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2080     ac_cv_prog_CC="${ac_tool_prefix}cc"
2081     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082     break 2
2083   fi
2084 done
2085 done
2086 IFS=$as_save_IFS
2087
2088 fi
2089 fi
2090 CC=$ac_cv_prog_CC
2091 if test -n "$CC"; then
2092   { echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6; }
2094 else
2095   { echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6; }
2097 fi
2098
2099
2100   fi
2101 fi
2102 if test -z "$CC"; then
2103   # Extract the first word of "cc", so it can be a program name with args.
2104 set dummy cc; ac_word=$2
2105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108   echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110   if test -n "$CC"; then
2111   ac_cv_prog_CC="$CC" # Let the user override the test.
2112 else
2113   ac_prog_rejected=no
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2116 do
2117   IFS=$as_save_IFS
2118   test -z "$as_dir" && as_dir=.
2119   for ac_exec_ext in '' $ac_executable_extensions; do
2120   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2121     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2122        ac_prog_rejected=yes
2123        continue
2124      fi
2125     ac_cv_prog_CC="cc"
2126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127     break 2
2128   fi
2129 done
2130 done
2131 IFS=$as_save_IFS
2132
2133 if test $ac_prog_rejected = yes; then
2134   # We found a bogon in the path, so make sure we never use it.
2135   set dummy $ac_cv_prog_CC
2136   shift
2137   if test $# != 0; then
2138     # We chose a different compiler from the bogus one.
2139     # However, it has the same basename, so the bogon will be chosen
2140     # first if we set CC to just the basename; use the full file name.
2141     shift
2142     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2143   fi
2144 fi
2145 fi
2146 fi
2147 CC=$ac_cv_prog_CC
2148 if test -n "$CC"; then
2149   { echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6; }
2151 else
2152   { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2154 fi
2155
2156
2157 fi
2158 if test -z "$CC"; then
2159   if test -n "$ac_tool_prefix"; then
2160   for ac_prog in cl.exe
2161   do
2162     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_CC+set}" = set; then
2167   echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169   if test -n "$CC"; then
2170   ac_cv_prog_CC="$CC" # Let the user override the test.
2171 else
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2174 do
2175   IFS=$as_save_IFS
2176   test -z "$as_dir" && as_dir=.
2177   for ac_exec_ext in '' $ac_executable_extensions; do
2178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2180     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181     break 2
2182   fi
2183 done
2184 done
2185 IFS=$as_save_IFS
2186
2187 fi
2188 fi
2189 CC=$ac_cv_prog_CC
2190 if test -n "$CC"; then
2191   { echo "$as_me:$LINENO: result: $CC" >&5
2192 echo "${ECHO_T}$CC" >&6; }
2193 else
2194   { echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6; }
2196 fi
2197
2198
2199     test -n "$CC" && break
2200   done
2201 fi
2202 if test -z "$CC"; then
2203   ac_ct_CC=$CC
2204   for ac_prog in cl.exe
2205 do
2206   # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy $ac_prog; ac_word=$2
2208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211   echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213   if test -n "$ac_ct_CC"; then
2214   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2218 do
2219   IFS=$as_save_IFS
2220   test -z "$as_dir" && as_dir=.
2221   for ac_exec_ext in '' $ac_executable_extensions; do
2222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223     ac_cv_prog_ac_ct_CC="$ac_prog"
2224     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225     break 2
2226   fi
2227 done
2228 done
2229 IFS=$as_save_IFS
2230
2231 fi
2232 fi
2233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2234 if test -n "$ac_ct_CC"; then
2235   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2236 echo "${ECHO_T}$ac_ct_CC" >&6; }
2237 else
2238   { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2240 fi
2241
2242
2243   test -n "$ac_ct_CC" && break
2244 done
2245
2246   if test "x$ac_ct_CC" = x; then
2247     CC=""
2248   else
2249     case $cross_compiling:$ac_tool_warned in
2250 yes:)
2251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2252 whose name does not start with the host triplet.  If you think this
2253 configuration is useful to you, please write to autoconf@gnu.org." >&5
2254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2255 whose name does not start with the host triplet.  If you think this
2256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2257 ac_tool_warned=yes ;;
2258 esac
2259     CC=$ac_ct_CC
2260   fi
2261 fi
2262
2263 fi
2264
2265
2266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&2;}
2270    { (exit 1); exit 1; }; }
2271
2272 # Provide some information about the compiler.
2273 echo "$as_me:$LINENO: checking for C compiler version" >&5
2274 ac_compiler=`set X $ac_compile; echo $2`
2275 { (ac_try="$ac_compiler --version >&5"
2276 case "(($ac_try" in
2277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278   *) ac_try_echo=$ac_try;;
2279 esac
2280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2281   (eval "$ac_compiler --version >&5") 2>&5
2282   ac_status=$?
2283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284   (exit $ac_status); }
2285 { (ac_try="$ac_compiler -v >&5"
2286 case "(($ac_try" in
2287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288   *) ac_try_echo=$ac_try;;
2289 esac
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291   (eval "$ac_compiler -v >&5") 2>&5
2292   ac_status=$?
2293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294   (exit $ac_status); }
2295 { (ac_try="$ac_compiler -V >&5"
2296 case "(($ac_try" in
2297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298   *) ac_try_echo=$ac_try;;
2299 esac
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301   (eval "$ac_compiler -V >&5") 2>&5
2302   ac_status=$?
2303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304   (exit $ac_status); }
2305
2306 cat >conftest.$ac_ext <<_ACEOF
2307 /* confdefs.h.  */
2308 _ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h.  */
2312
2313 int
2314 main ()
2315 {
2316
2317   ;
2318   return 0;
2319 }
2320 _ACEOF
2321 ac_clean_files_save=$ac_clean_files
2322 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2323 # Try to create an executable without -o first, disregard a.out.
2324 # It will help us diagnose broken compilers, and finding out an intuition
2325 # of exeext.
2326 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2327 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2328 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2329 #
2330 # List of possible output files, starting from the most likely.
2331 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2332 # only as a last resort.  b.out is created by i960 compilers.
2333 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2334 #
2335 # The IRIX 6 linker writes into existing files which may not be
2336 # executable, retaining their permissions.  Remove them first so a
2337 # subsequent execution test works.
2338 ac_rmfiles=
2339 for ac_file in $ac_files
2340 do
2341   case $ac_file in
2342     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2343     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2344   esac
2345 done
2346 rm -f $ac_rmfiles
2347
2348 if { (ac_try="$ac_link_default"
2349 case "(($ac_try" in
2350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351   *) ac_try_echo=$ac_try;;
2352 esac
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354   (eval "$ac_link_default") 2>&5
2355   ac_status=$?
2356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357   (exit $ac_status); }; then
2358   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2360 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2361 # so that the user can short-circuit this test for compilers unknown to
2362 # Autoconf.
2363 for ac_file in $ac_files ''
2364 do
2365   test -f "$ac_file" || continue
2366   case $ac_file in
2367     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2368         ;;
2369     [ab].out )
2370         # We found the default executable, but exeext='' is most
2371         # certainly right.
2372         break;;
2373     *.* )
2374         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2375         then :; else
2376            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2377         fi
2378         # We set ac_cv_exeext here because the later test for it is not
2379         # safe: cross compilers may not add the suffix if given an `-o'
2380         # argument, so we may need to know it at that point already.
2381         # Even if this section looks crufty: it has the advantage of
2382         # actually working.
2383         break;;
2384     * )
2385         break;;
2386   esac
2387 done
2388 test "$ac_cv_exeext" = no && ac_cv_exeext=
2389
2390 else
2391   ac_file=''
2392 fi
2393
2394 { echo "$as_me:$LINENO: result: $ac_file" >&5
2395 echo "${ECHO_T}$ac_file" >&6; }
2396 if test -z "$ac_file"; then
2397   echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2399
2400 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2401 See \`config.log' for more details." >&5
2402 echo "$as_me: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&2;}
2404    { (exit 77); exit 77; }; }
2405 fi
2406
2407 ac_exeext=$ac_cv_exeext
2408
2409 # Check that the compiler produces executables we can run.  If not, either
2410 # the compiler is broken, or we cross compile.
2411 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2412 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2413 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2414 # If not cross compiling, check that we can run a simple program.
2415 if test "$cross_compiling" != yes; then
2416   if { ac_try='./$ac_file'
2417   { (case "(($ac_try" in
2418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419   *) ac_try_echo=$ac_try;;
2420 esac
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422   (eval "$ac_try") 2>&5
2423   ac_status=$?
2424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425   (exit $ac_status); }; }; then
2426     cross_compiling=no
2427   else
2428     if test "$cross_compiling" = maybe; then
2429         cross_compiling=yes
2430     else
2431         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&2;}
2437    { (exit 1); exit 1; }; }
2438     fi
2439   fi
2440 fi
2441 { echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6; }
2443
2444 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2445 ac_clean_files=$ac_clean_files_save
2446 # Check that the compiler produces executables we can run.  If not, either
2447 # the compiler is broken, or we cross compile.
2448 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2450 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451 echo "${ECHO_T}$cross_compiling" >&6; }
2452
2453 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2455 if { (ac_try="$ac_link"
2456 case "(($ac_try" in
2457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458   *) ac_try_echo=$ac_try;;
2459 esac
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461   (eval "$ac_link") 2>&5
2462   ac_status=$?
2463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464   (exit $ac_status); }; then
2465   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2466 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2467 # work properly (i.e., refer to `conftest.exe'), while it won't with
2468 # `rm'.
2469 for ac_file in conftest.exe conftest conftest.*; do
2470   test -f "$ac_file" || continue
2471   case $ac_file in
2472     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2473     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2474           break;;
2475     * ) break;;
2476   esac
2477 done
2478 else
2479   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2480 See \`config.log' for more details." >&5
2481 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2482 See \`config.log' for more details." >&2;}
2483    { (exit 1); exit 1; }; }
2484 fi
2485
2486 rm -f conftest$ac_cv_exeext
2487 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2488 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2489
2490 rm -f conftest.$ac_ext
2491 EXEEXT=$ac_cv_exeext
2492 ac_exeext=$EXEEXT
2493 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2494 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2495 if test "${ac_cv_objext+set}" = set; then
2496   echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498   cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h.  */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h.  */
2504
2505 int
2506 main ()
2507 {
2508
2509   ;
2510   return 0;
2511 }
2512 _ACEOF
2513 rm -f conftest.o conftest.obj
2514 if { (ac_try="$ac_compile"
2515 case "(($ac_try" in
2516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517   *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520   (eval "$ac_compile") 2>&5
2521   ac_status=$?
2522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523   (exit $ac_status); }; then
2524   for ac_file in conftest.o conftest.obj conftest.*; do
2525   test -f "$ac_file" || continue;
2526   case $ac_file in
2527     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2528     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2529        break;;
2530   esac
2531 done
2532 else
2533   echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2535
2536 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2539 See \`config.log' for more details." >&2;}
2540    { (exit 1); exit 1; }; }
2541 fi
2542
2543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2544 fi
2545 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2546 echo "${ECHO_T}$ac_cv_objext" >&6; }
2547 OBJEXT=$ac_cv_objext
2548 ac_objext=$OBJEXT
2549 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2550 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2551 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2552   echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554   cat >conftest.$ac_ext <<_ACEOF
2555 /* confdefs.h.  */
2556 _ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h.  */
2560
2561 int
2562 main ()
2563 {
2564 #ifndef __GNUC__
2565        choke me
2566 #endif
2567
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2574 case "(($ac_try" in
2575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576   *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579   (eval "$ac_compile") 2>conftest.er1
2580   ac_status=$?
2581   grep -v '^ *+' conftest.er1 >conftest.err
2582   rm -f conftest.er1
2583   cat conftest.err >&5
2584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585   (exit $ac_status); } && {
2586          test -z "$ac_c_werror_flag" ||
2587          test ! -s conftest.err
2588        } && test -s conftest.$ac_objext; then
2589   ac_compiler_gnu=yes
2590 else
2591   echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2593
2594         ac_compiler_gnu=no
2595 fi
2596
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2599
2600 fi
2601 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2602 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2603 GCC=`test $ac_compiler_gnu = yes && echo yes`
2604 ac_test_CFLAGS=${CFLAGS+set}
2605 ac_save_CFLAGS=$CFLAGS
2606 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2607 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2608 if test "${ac_cv_prog_cc_g+set}" = set; then
2609   echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611   ac_save_c_werror_flag=$ac_c_werror_flag
2612    ac_c_werror_flag=yes
2613    ac_cv_prog_cc_g=no
2614    CFLAGS="-g"
2615    cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h.  */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h.  */
2621
2622 int
2623 main ()
2624 {
2625
2626   ;
2627   return 0;
2628 }
2629 _ACEOF
2630 rm -f conftest.$ac_objext
2631 if { (ac_try="$ac_compile"
2632 case "(($ac_try" in
2633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634   *) ac_try_echo=$ac_try;;
2635 esac
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637   (eval "$ac_compile") 2>conftest.er1
2638   ac_status=$?
2639   grep -v '^ *+' conftest.er1 >conftest.err
2640   rm -f conftest.er1
2641   cat conftest.err >&5
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); } && {
2644          test -z "$ac_c_werror_flag" ||
2645          test ! -s conftest.err
2646        } && test -s conftest.$ac_objext; then
2647   ac_cv_prog_cc_g=yes
2648 else
2649   echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652         CFLAGS=""
2653       cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h.  */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h.  */
2659
2660 int
2661 main ()
2662 {
2663
2664   ;
2665   return 0;
2666 }
2667 _ACEOF
2668 rm -f conftest.$ac_objext
2669 if { (ac_try="$ac_compile"
2670 case "(($ac_try" in
2671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672   *) ac_try_echo=$ac_try;;
2673 esac
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675   (eval "$ac_compile") 2>conftest.er1
2676   ac_status=$?
2677   grep -v '^ *+' conftest.er1 >conftest.err
2678   rm -f conftest.er1
2679   cat conftest.err >&5
2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681   (exit $ac_status); } && {
2682          test -z "$ac_c_werror_flag" ||
2683          test ! -s conftest.err
2684        } && test -s conftest.$ac_objext; then
2685   :
2686 else
2687   echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2689
2690         ac_c_werror_flag=$ac_save_c_werror_flag
2691          CFLAGS="-g"
2692          cat >conftest.$ac_ext <<_ACEOF
2693 /* confdefs.h.  */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h.  */
2698
2699 int
2700 main ()
2701 {
2702
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714   (eval "$ac_compile") 2>conftest.er1
2715   ac_status=$?
2716   grep -v '^ *+' conftest.er1 >conftest.err
2717   rm -f conftest.er1
2718   cat conftest.err >&5
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); } && {
2721          test -z "$ac_c_werror_flag" ||
2722          test ! -s conftest.err
2723        } && test -s conftest.$ac_objext; then
2724   ac_cv_prog_cc_g=yes
2725 else
2726   echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729
2730 fi
2731
2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733 fi
2734
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 fi
2737
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739    ac_c_werror_flag=$ac_save_c_werror_flag
2740 fi
2741 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2742 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2743 if test "$ac_test_CFLAGS" = set; then
2744   CFLAGS=$ac_save_CFLAGS
2745 elif test $ac_cv_prog_cc_g = yes; then
2746   if test "$GCC" = yes; then
2747     CFLAGS="-g -O2"
2748   else
2749     CFLAGS="-g"
2750   fi
2751 else
2752   if test "$GCC" = yes; then
2753     CFLAGS="-O2"
2754   else
2755     CFLAGS=
2756   fi
2757 fi
2758 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2759 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_cc_c89+set}" = set; then
2761   echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763   ac_cv_prog_cc_c89=no
2764 ac_save_CC=$CC
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h.  */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h.  */
2771 #include <stdarg.h>
2772 #include <stdio.h>
2773 #include <sys/types.h>
2774 #include <sys/stat.h>
2775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2776 struct buf { int x; };
2777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2778 static char *e (p, i)
2779      char **p;
2780      int i;
2781 {
2782   return p[i];
2783 }
2784 static char *f (char * (*g) (char **, int), char **p, ...)
2785 {
2786   char *s;
2787   va_list v;
2788   va_start (v,p);
2789   s = g (p, va_arg (v,int));
2790   va_end (v);
2791   return s;
2792 }
2793
2794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2795    function prototypes and stuff, but not '\xHH' hex character constants.
2796    These don't provoke an error unfortunately, instead are silently treated
2797    as 'x'.  The following induces an error, until -std is added to get
2798    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2799    array size at least.  It's necessary to write '\x00'==0 to get something
2800    that's true only with -std.  */
2801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2802
2803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2804    inside strings and character constants.  */
2805 #define FOO(x) 'x'
2806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2807
2808 int test (int i, double x);
2809 struct s1 {int (*f) (int a);};
2810 struct s2 {int (*f) (double a);};
2811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2812 int argc;
2813 char **argv;
2814 int
2815 main ()
2816 {
2817 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2818   ;
2819   return 0;
2820 }
2821 _ACEOF
2822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2823         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2824 do
2825   CC="$ac_save_CC $ac_arg"
2826   rm -f conftest.$ac_objext
2827 if { (ac_try="$ac_compile"
2828 case "(($ac_try" in
2829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830   *) ac_try_echo=$ac_try;;
2831 esac
2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833   (eval "$ac_compile") 2>conftest.er1
2834   ac_status=$?
2835   grep -v '^ *+' conftest.er1 >conftest.err
2836   rm -f conftest.er1
2837   cat conftest.err >&5
2838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839   (exit $ac_status); } && {
2840          test -z "$ac_c_werror_flag" ||
2841          test ! -s conftest.err
2842        } && test -s conftest.$ac_objext; then
2843   ac_cv_prog_cc_c89=$ac_arg
2844 else
2845   echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2847
2848
2849 fi
2850
2851 rm -f core conftest.err conftest.$ac_objext
2852   test "x$ac_cv_prog_cc_c89" != "xno" && break
2853 done
2854 rm -f conftest.$ac_ext
2855 CC=$ac_save_CC
2856
2857 fi
2858 # AC_CACHE_VAL
2859 case "x$ac_cv_prog_cc_c89" in
2860   x)
2861     { echo "$as_me:$LINENO: result: none needed" >&5
2862 echo "${ECHO_T}none needed" >&6; } ;;
2863   xno)
2864     { echo "$as_me:$LINENO: result: unsupported" >&5
2865 echo "${ECHO_T}unsupported" >&6; } ;;
2866   *)
2867     CC="$CC $ac_cv_prog_cc_c89"
2868     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2869 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2870 esac
2871
2872
2873 ac_ext=c
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2878
2879  ac_ext=cpp
2880 ac_cpp='$CXXCPP $CPPFLAGS'
2881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2884 if test -z "$CXX"; then
2885   if test -n "$CCC"; then
2886     CXX=$CCC
2887   else
2888     if test -n "$ac_tool_prefix"; then
2889   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2890   do
2891     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2895 if test "${ac_cv_prog_CXX+set}" = set; then
2896   echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898   if test -n "$CXX"; then
2899   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904   IFS=$as_save_IFS
2905   test -z "$as_dir" && as_dir=.
2906   for ac_exec_ext in '' $ac_executable_extensions; do
2907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2909     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910     break 2
2911   fi
2912 done
2913 done
2914 IFS=$as_save_IFS
2915
2916 fi
2917 fi
2918 CXX=$ac_cv_prog_CXX
2919 if test -n "$CXX"; then
2920   { echo "$as_me:$LINENO: result: $CXX" >&5
2921 echo "${ECHO_T}$CXX" >&6; }
2922 else
2923   { echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6; }
2925 fi
2926
2927
2928     test -n "$CXX" && break
2929   done
2930 fi
2931 if test -z "$CXX"; then
2932   ac_ct_CXX=$CXX
2933   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2934 do
2935   # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2939 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2940   echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942   if test -n "$ac_ct_CXX"; then
2943   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948   IFS=$as_save_IFS
2949   test -z "$as_dir" && as_dir=.
2950   for ac_exec_ext in '' $ac_executable_extensions; do
2951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952     ac_cv_prog_ac_ct_CXX="$ac_prog"
2953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954     break 2
2955   fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2963 if test -n "$ac_ct_CXX"; then
2964   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2965 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2966 else
2967   { echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6; }
2969 fi
2970
2971
2972   test -n "$ac_ct_CXX" && break
2973 done
2974
2975   if test "x$ac_ct_CXX" = x; then
2976     CXX="g++"
2977   else
2978     case $cross_compiling:$ac_tool_warned in
2979 yes:)
2980 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2981 whose name does not start with the host triplet.  If you think this
2982 configuration is useful to you, please write to autoconf@gnu.org." >&5
2983 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2984 whose name does not start with the host triplet.  If you think this
2985 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988     CXX=$ac_ct_CXX
2989   fi
2990 fi
2991
2992   fi
2993 fi
2994 # Provide some information about the compiler.
2995 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2996 ac_compiler=`set X $ac_compile; echo $2`
2997 { (ac_try="$ac_compiler --version >&5"
2998 case "(($ac_try" in
2999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000   *) ac_try_echo=$ac_try;;
3001 esac
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003   (eval "$ac_compiler --version >&5") 2>&5
3004   ac_status=$?
3005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006   (exit $ac_status); }
3007 { (ac_try="$ac_compiler -v >&5"
3008 case "(($ac_try" in
3009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010   *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013   (eval "$ac_compiler -v >&5") 2>&5
3014   ac_status=$?
3015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016   (exit $ac_status); }
3017 { (ac_try="$ac_compiler -V >&5"
3018 case "(($ac_try" in
3019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020   *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023   (eval "$ac_compiler -V >&5") 2>&5
3024   ac_status=$?
3025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026   (exit $ac_status); }
3027
3028 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3029 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3030 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3031   echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033   cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h.  */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h.  */
3039
3040 int
3041 main ()
3042 {
3043 #ifndef __GNUC__
3044        choke me
3045 #endif
3046
3047   ;
3048   return 0;
3049 }
3050 _ACEOF
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3053 case "(($ac_try" in
3054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055   *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058   (eval "$ac_compile") 2>conftest.er1
3059   ac_status=$?
3060   grep -v '^ *+' conftest.er1 >conftest.err
3061   rm -f conftest.er1
3062   cat conftest.err >&5
3063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064   (exit $ac_status); } && {
3065          test -z "$ac_cxx_werror_flag" ||
3066          test ! -s conftest.err
3067        } && test -s conftest.$ac_objext; then
3068   ac_compiler_gnu=yes
3069 else
3070   echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3072
3073         ac_compiler_gnu=no
3074 fi
3075
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3078
3079 fi
3080 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3081 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3082 GXX=`test $ac_compiler_gnu = yes && echo yes`
3083 ac_test_CXXFLAGS=${CXXFLAGS+set}
3084 ac_save_CXXFLAGS=$CXXFLAGS
3085 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3086 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3087 if test "${ac_cv_prog_cxx_g+set}" = set; then
3088   echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3091    ac_cxx_werror_flag=yes
3092    ac_cv_prog_cxx_g=no
3093    CXXFLAGS="-g"
3094    cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h.  */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h.  */
3100
3101 int
3102 main ()
3103 {
3104
3105   ;
3106   return 0;
3107 }
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3111 case "(($ac_try" in
3112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113   *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116   (eval "$ac_compile") 2>conftest.er1
3117   ac_status=$?
3118   grep -v '^ *+' conftest.er1 >conftest.err
3119   rm -f conftest.er1
3120   cat conftest.err >&5
3121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122   (exit $ac_status); } && {
3123          test -z "$ac_cxx_werror_flag" ||
3124          test ! -s conftest.err
3125        } && test -s conftest.$ac_objext; then
3126   ac_cv_prog_cxx_g=yes
3127 else
3128   echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3130
3131         CXXFLAGS=""
3132       cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h.  */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h.  */
3138
3139 int
3140 main ()
3141 {
3142
3143   ;
3144   return 0;
3145 }
3146 _ACEOF
3147 rm -f conftest.$ac_objext
3148 if { (ac_try="$ac_compile"
3149 case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154   (eval "$ac_compile") 2>conftest.er1
3155   ac_status=$?
3156   grep -v '^ *+' conftest.er1 >conftest.err
3157   rm -f conftest.er1
3158   cat conftest.err >&5
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); } && {
3161          test -z "$ac_cxx_werror_flag" ||
3162          test ! -s conftest.err
3163        } && test -s conftest.$ac_objext; then
3164   :
3165 else
3166   echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3168
3169         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3170          CXXFLAGS="-g"
3171          cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h.  */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h.  */
3177
3178 int
3179 main ()
3180 {
3181
3182   ;
3183   return 0;
3184 }
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3188 case "(($ac_try" in
3189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190   *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193   (eval "$ac_compile") 2>conftest.er1
3194   ac_status=$?
3195   grep -v '^ *+' conftest.er1 >conftest.err
3196   rm -f conftest.er1
3197   cat conftest.err >&5
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); } && {
3200          test -z "$ac_cxx_werror_flag" ||
3201          test ! -s conftest.err
3202        } && test -s conftest.$ac_objext; then
3203   ac_cv_prog_cxx_g=yes
3204 else
3205   echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208
3209 fi
3210
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3212 fi
3213
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 fi
3216
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3219 fi
3220 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3221 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3222 if test "$ac_test_CXXFLAGS" = set; then
3223   CXXFLAGS=$ac_save_CXXFLAGS
3224 elif test $ac_cv_prog_cxx_g = yes; then
3225   if test "$GXX" = yes; then
3226     CXXFLAGS="-g -O2"
3227   else
3228     CXXFLAGS="-g"
3229   fi
3230 else
3231   if test "$GXX" = yes; then
3232     CXXFLAGS="-O2"
3233   else
3234     CXXFLAGS=
3235   fi
3236 fi
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242
3243
3244
3245
3246 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3247 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3248
3249 cat > conftest.c << EOF
3250 #include <stdlib.h>
3251 #include <stdio.h>
3252
3253 int main (int argc, char*argv)
3254 {
3255     int a,b;
3256     b=3;
3257     int c;
3258     c=4;
3259     return 0;
3260 }
3261 EOF
3262
3263 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3264 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3265   { echo "$as_me:$LINENO: result: yes" >&5
3266 echo "${ECHO_T}yes" >&6; }
3267   GCC_IS_OK=true
3268   export GCC_IS_OK
3269 else
3270   echo "configure: failed program was:" >&5
3271   cat conftest.c >&5
3272   { echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6; }
3274 fi
3275 rm -f conftest*
3276
3277
3278 if test "x$GCC_IS_OK" '=' "x";then
3279     echo "***************************************************"
3280     echo "* Your gcc is too old to compile this!"
3281     echo "* "
3282     echo "* The last version compilable by this compiler is "
3283     echo "* swftools 0.7.0, which you can download from "
3284     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3285     echo "* ."
3286     echo "* Newer versions require at least gcc 3.0.0 "
3287     echo "***************************************************"
3288     exit 1
3289 fi
3290
3291 if test "x$CHECKMEM" '!=' "x";then
3292     CC="ccmalloc $CC"
3293     CXX="ccmalloc $CXX"
3294     #echo running again
3295     #unset ac_cv_prog_CC
3296     #unset ac_cv_prog_CXX
3297     #AC_PROG_CC
3298     #AC_PROG_CXX
3299 fi
3300  ac_ext=c
3301 ac_cpp='$CPP $CPPFLAGS'
3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3306 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3307 # On Suns, sometimes $CPP names a directory.
3308 if test -n "$CPP" && test -d "$CPP"; then
3309   CPP=
3310 fi
3311 if test -z "$CPP"; then
3312   if test "${ac_cv_prog_CPP+set}" = set; then
3313   echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315       # Double quotes because CPP needs to be expanded
3316     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3317     do
3318       ac_preproc_ok=false
3319 for ac_c_preproc_warn_flag in '' yes
3320 do
3321   # Use a header file that comes with gcc, so configuring glibc
3322   # with a fresh cross-compiler works.
3323   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3324   # <limits.h> exists even on freestanding compilers.
3325   # On the NeXT, cc -E runs the code through the compiler's parser,
3326   # not just through cpp. "Syntax error" is here to catch this case.
3327   cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h.  */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h.  */
3333 #ifdef __STDC__
3334 # include <limits.h>
3335 #else
3336 # include <assert.h>
3337 #endif
3338                      Syntax error
3339 _ACEOF
3340 if { (ac_try="$ac_cpp conftest.$ac_ext"
3341 case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3347   ac_status=$?
3348   grep -v '^ *+' conftest.er1 >conftest.err
3349   rm -f conftest.er1
3350   cat conftest.err >&5
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); } >/dev/null && {
3353          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3354          test ! -s conftest.err
3355        }; then
3356   :
3357 else
3358   echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3360
3361   # Broken: fails on valid input.
3362 continue
3363 fi
3364
3365 rm -f conftest.err conftest.$ac_ext
3366
3367   # OK, works on sane cases.  Now check whether nonexistent headers
3368   # can be detected and how.
3369   cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h.  */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h.  */
3375 #include <ac_nonexistent.h>
3376 _ACEOF
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3378 case "(($ac_try" in
3379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380   *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384   ac_status=$?
3385   grep -v '^ *+' conftest.er1 >conftest.err
3386   rm -f conftest.er1
3387   cat conftest.err >&5
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); } >/dev/null && {
3390          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391          test ! -s conftest.err
3392        }; then
3393   # Broken: success on invalid input.
3394 continue
3395 else
3396   echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399   # Passes both tests.
3400 ac_preproc_ok=:
3401 break
3402 fi
3403
3404 rm -f conftest.err conftest.$ac_ext
3405
3406 done
3407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408 rm -f conftest.err conftest.$ac_ext
3409 if $ac_preproc_ok; then
3410   break
3411 fi
3412
3413     done
3414     ac_cv_prog_CPP=$CPP
3415
3416 fi
3417   CPP=$ac_cv_prog_CPP
3418 else
3419   ac_cv_prog_CPP=$CPP
3420 fi
3421 { echo "$as_me:$LINENO: result: $CPP" >&5
3422 echo "${ECHO_T}$CPP" >&6; }
3423 ac_preproc_ok=false
3424 for ac_c_preproc_warn_flag in '' yes
3425 do
3426   # Use a header file that comes with gcc, so configuring glibc
3427   # with a fresh cross-compiler works.
3428   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429   # <limits.h> exists even on freestanding compilers.
3430   # On the NeXT, cc -E runs the code through the compiler's parser,
3431   # not just through cpp. "Syntax error" is here to catch this case.
3432   cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h.  */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h.  */
3438 #ifdef __STDC__
3439 # include <limits.h>
3440 #else
3441 # include <assert.h>
3442 #endif
3443                      Syntax error
3444 _ACEOF
3445 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452   ac_status=$?
3453   grep -v '^ *+' conftest.er1 >conftest.err
3454   rm -f conftest.er1
3455   cat conftest.err >&5
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); } >/dev/null && {
3458          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3459          test ! -s conftest.err
3460        }; then
3461   :
3462 else
3463   echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3465
3466   # Broken: fails on valid input.
3467 continue
3468 fi
3469
3470 rm -f conftest.err conftest.$ac_ext
3471
3472   # OK, works on sane cases.  Now check whether nonexistent headers
3473   # can be detected and how.
3474   cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h.  */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h.  */
3480 #include <ac_nonexistent.h>
3481 _ACEOF
3482 if { (ac_try="$ac_cpp conftest.$ac_ext"
3483 case "(($ac_try" in
3484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485   *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3489   ac_status=$?
3490   grep -v '^ *+' conftest.er1 >conftest.err
3491   rm -f conftest.er1
3492   cat conftest.err >&5
3493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494   (exit $ac_status); } >/dev/null && {
3495          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3496          test ! -s conftest.err
3497        }; then
3498   # Broken: success on invalid input.
3499 continue
3500 else
3501   echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3503
3504   # Passes both tests.
3505 ac_preproc_ok=:
3506 break
3507 fi
3508
3509 rm -f conftest.err conftest.$ac_ext
3510
3511 done
3512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3513 rm -f conftest.err conftest.$ac_ext
3514 if $ac_preproc_ok; then
3515   :
3516 else
3517   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3518 See \`config.log' for more details." >&5
3519 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3520 See \`config.log' for more details." >&2;}
3521    { (exit 1); exit 1; }; }
3522 fi
3523
3524 ac_ext=c
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529
3530
3531  if test -n "$ac_tool_prefix"; then
3532   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3536 if test "${ac_cv_prog_RANLIB+set}" = set; then
3537   echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539   if test -n "$RANLIB"; then
3540   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545   IFS=$as_save_IFS
3546   test -z "$as_dir" && as_dir=.
3547   for ac_exec_ext in '' $ac_executable_extensions; do
3548   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3550     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551     break 2
3552   fi
3553 done
3554 done
3555 IFS=$as_save_IFS
3556
3557 fi
3558 fi
3559 RANLIB=$ac_cv_prog_RANLIB
3560 if test -n "$RANLIB"; then
3561   { echo "$as_me:$LINENO: result: $RANLIB" >&5
3562 echo "${ECHO_T}$RANLIB" >&6; }
3563 else
3564   { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3566 fi
3567
3568
3569 fi
3570 if test -z "$ac_cv_prog_RANLIB"; then
3571   ac_ct_RANLIB=$RANLIB
3572   # Extract the first word of "ranlib", so it can be a program name with args.
3573 set dummy ranlib; ac_word=$2
3574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3576 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3577   echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579   if test -n "$ac_ct_RANLIB"; then
3580   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3584 do
3585   IFS=$as_save_IFS
3586   test -z "$as_dir" && as_dir=.
3587   for ac_exec_ext in '' $ac_executable_extensions; do
3588   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3589     ac_cv_prog_ac_ct_RANLIB="ranlib"
3590     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591     break 2
3592   fi
3593 done
3594 done
3595 IFS=$as_save_IFS
3596
3597 fi
3598 fi
3599 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3600 if test -n "$ac_ct_RANLIB"; then
3601   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3602 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3603 else
3604   { echo "$as_me:$LINENO: result: no" >&5
3605 echo "${ECHO_T}no" >&6; }
3606 fi
3607
3608   if test "x$ac_ct_RANLIB" = x; then
3609     RANLIB=":"
3610   else
3611     case $cross_compiling:$ac_tool_warned in
3612 yes:)
3613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3614 whose name does not start with the host triplet.  If you think this
3615 configuration is useful to you, please write to autoconf@gnu.org." >&5
3616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3617 whose name does not start with the host triplet.  If you think this
3618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3619 ac_tool_warned=yes ;;
3620 esac
3621     RANLIB=$ac_ct_RANLIB
3622   fi
3623 else
3624   RANLIB="$ac_cv_prog_RANLIB"
3625 fi
3626
3627  { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3628 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3629 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3630 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3631   echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633   cat >conftest.make <<\_ACEOF
3634 SHELL = /bin/sh
3635 all:
3636         @echo '@@@%%%=$(MAKE)=@@@%%%'
3637 _ACEOF
3638 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3639 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3640   *@@@%%%=?*=@@@%%%*)
3641     eval ac_cv_prog_make_${ac_make}_set=yes;;
3642   *)
3643     eval ac_cv_prog_make_${ac_make}_set=no;;
3644 esac
3645 rm -f conftest.make
3646 fi
3647 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3648   { echo "$as_me:$LINENO: result: yes" >&5
3649 echo "${ECHO_T}yes" >&6; }
3650   SET_MAKE=
3651 else
3652   { echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6; }
3654   SET_MAKE="MAKE=${MAKE-make}"
3655 fi
3656
3657  # Find a good install program.  We prefer a C program (faster),
3658 # so one script is as good as another.  But avoid the broken or
3659 # incompatible versions:
3660 # SysV /etc/install, /usr/sbin/install
3661 # SunOS /usr/etc/install
3662 # IRIX /sbin/install
3663 # AIX /bin/install
3664 # AmigaOS /C/install, which installs bootblocks on floppy discs
3665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3668 # OS/2's system install, which has a completely different semantic
3669 # ./install, which can be erroneously created by make from ./install.sh.
3670 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3671 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3672 if test -z "$INSTALL"; then
3673 if test "${ac_cv_path_install+set}" = set; then
3674   echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3678 do
3679   IFS=$as_save_IFS
3680   test -z "$as_dir" && as_dir=.
3681   # Account for people who put trailing slashes in PATH elements.
3682 case $as_dir/ in
3683   ./ | .// | /cC/* | \
3684   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3685   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3686   /usr/ucb/* ) ;;
3687   *)
3688     # OSF1 and SCO ODT 3.0 have their own names for install.
3689     # Don't use installbsd from OSF since it installs stuff as root
3690     # by default.
3691     for ac_prog in ginstall scoinst install; do
3692       for ac_exec_ext in '' $ac_executable_extensions; do
3693         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3694           if test $ac_prog = install &&
3695             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3696             # AIX install.  It has an incompatible calling convention.
3697             :
3698           elif test $ac_prog = install &&
3699             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700             # program-specific install script used by HP pwplus--don't use.
3701             :
3702           else
3703             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3704             break 3
3705           fi
3706         fi
3707       done
3708     done
3709     ;;
3710 esac
3711 done
3712 IFS=$as_save_IFS
3713
3714
3715 fi
3716   if test "${ac_cv_path_install+set}" = set; then
3717     INSTALL=$ac_cv_path_install
3718   else
3719     # As a last resort, use the slow shell script.  Don't cache a
3720     # value for INSTALL within a source directory, because that will
3721     # break other packages using the cache if that directory is
3722     # removed, or if the value is a relative name.
3723     INSTALL=$ac_install_sh
3724   fi
3725 fi
3726 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3727 echo "${ECHO_T}$INSTALL" >&6; }
3728
3729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3730 # It thinks the first close brace ends the variable substitution.
3731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3732
3733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3734
3735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3736
3737  { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3738 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3739 LN_S=$as_ln_s
3740 if test "$LN_S" = "ln -s"; then
3741   { echo "$as_me:$LINENO: result: yes" >&5
3742 echo "${ECHO_T}yes" >&6; }
3743 else
3744   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3745 echo "${ECHO_T}no, using $LN_S" >&6; }
3746 fi
3747
3748  for ac_prog in gzip uncompress compress
3749 do
3750   # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy $ac_prog; ac_word=$2
3752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3754 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3755   echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757   if test -n "$UNCOMPRESS"; then
3758   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3762 do
3763   IFS=$as_save_IFS
3764   test -z "$as_dir" && as_dir=.
3765   for ac_exec_ext in '' $ac_executable_extensions; do
3766   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767     ac_cv_prog_UNCOMPRESS="$ac_prog"
3768     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769     break 2
3770   fi
3771 done
3772 done
3773 IFS=$as_save_IFS
3774
3775 fi
3776 fi
3777 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3778 if test -n "$UNCOMPRESS"; then
3779   { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3780 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3781 else
3782   { echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6; }
3784 fi
3785
3786
3787   test -n "$UNCOMPRESS" && break
3788 done
3789
3790
3791 OBJEXT="o"
3792 AREXT=".a"
3793 CXXLIBS="-lstdc++"
3794
3795
3796
3797 if test "x$EXEEXT" = "x.exe";then
3798     OBJEXT="obj"
3799     AREXT=".lib"
3800     CXXLIBS=""
3801 fi
3802
3803
3804
3805
3806 { echo "$as_me:$LINENO: checking host system type" >&5
3807 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3808 if test "${ac_cv_host+set}" = set; then
3809   echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811   if test "x$host_alias" = x; then
3812   ac_cv_host=$ac_cv_build
3813 else
3814   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3815     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3817    { (exit 1); exit 1; }; }
3818 fi
3819
3820 fi
3821 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3822 echo "${ECHO_T}$ac_cv_host" >&6; }
3823 case $ac_cv_host in
3824 *-*-*) ;;
3825 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3826 echo "$as_me: error: invalid value of canonical host" >&2;}
3827    { (exit 1); exit 1; }; };;
3828 esac
3829 host=$ac_cv_host
3830 ac_save_IFS=$IFS; IFS='-'
3831 set x $ac_cv_host
3832 shift
3833 host_cpu=$1
3834 host_vendor=$2
3835 shift; shift
3836 # Remember, the first character of IFS is used to create $*,
3837 # except with old shells:
3838 host_os=$*
3839 IFS=$ac_save_IFS
3840 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3841
3842
3843
3844
3845 { echo "$as_me:$LINENO: checking for target system" >&5
3846 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
3847 CYGWIN=
3848 MINGW=
3849 case $host_os in
3850     *cygwin* ) CYGWIN=yes;;
3851     *mingw* ) MINGW=yes;;
3852 esac
3853
3854 AR=ar
3855 if test "x$MINGW" = "xyes"; then
3856     #fix for the debian distribution of mingw
3857     if test -x "/usr/i586-mingw32msvc/bin/ar";then
3858         AR="/usr/i586-mingw32msvc/bin/ar"
3859     fi
3860     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
3861         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
3862     fi
3863     #fix for the gentoo distribution of mingw
3864     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
3865         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
3866     fi
3867     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
3868         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
3869     fi
3870     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
3871         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
3872     fi
3873 fi
3874
3875
3876
3877 if test "x${CYGWIN}" = "xyes"; then
3878     cat >>confdefs.h <<_ACEOF
3879 #define CYGWIN 1
3880 _ACEOF
3881
3882     { echo "$as_me:$LINENO: result: cygwin" >&5
3883 echo "${ECHO_T}cygwin" >&6; }
3884 else
3885     if test "x${MINGW}" = "xyes"; then
3886         cat >>confdefs.h <<_ACEOF
3887 #define MINGW 1
3888 _ACEOF
3889
3890         WIN32=1
3891         cat >>confdefs.h <<_ACEOF
3892 #define WIN32 1
3893 _ACEOF
3894
3895         LIBS="$LIBS -lws2_32 -lgdi32"
3896         { echo "$as_me:$LINENO: result: mingw" >&5
3897 echo "${ECHO_T}mingw" >&6; }
3898     else
3899         LINUX=1
3900         export LINUX
3901         cat >>confdefs.h <<_ACEOF
3902 #define LINUX 1
3903 _ACEOF
3904
3905         { echo "$as_me:$LINENO: result: " >&5
3906 echo "${ECHO_T}" >&6; }
3907     fi
3908 fi
3909
3910
3911 SLEXT="so"
3912 if test "x${MINGW}" != "xyes"; then
3913     # no mingW
3914     cat >>confdefs.h <<_ACEOF
3915 #define O_BINARY 0
3916 _ACEOF
3917
3918 else
3919     # mingW
3920     SLEXT="dll"
3921     CXXLIBS=""
3922 fi
3923 export SLEXT
3924
3925
3926
3927 # The following tries to make use of includes and libraries in
3928 # /usr/local, too. Notice: A -I/usr/local/include might break
3929 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
3930 # especially on systems which link /usr/local to /usr, so it has yet
3931 # to be seen how useful this is.
3932 if test -d /usr/local/lib; then
3933     LDFLAGS="$LDFLAGS -L/usr/local/lib"
3934 fi
3935 if test -d /usr/local/include; then
3936 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
3937 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3938     echo > /dev/null
3939 fi
3940 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
3941     # if the user has a special prefix (like /opt), there might also be $prefix/lib
3942     # and $prefix/include, which should be included in our search paths for libraries
3943     # and includes.
3944     LDFLAGS="$LDFLAGS -L${libdir}"
3945     CPPFLAGS="$CPPFLAGS -I${includedir}"
3946     # TODO- test whether gcc still works after this
3947 fi
3948
3949 #Mac OS:
3950 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
3951
3952
3953 # this must be done after (I believe) AC_PROG_MAKE_SET
3954 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
3955     STRIP="@echo debug enabled, not stripping "
3956     export STRIP
3957
3958 fi
3959
3960
3961
3962 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
3963 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
3964 if test "${ac_cv_lib_m_sin+set}" = set; then
3965   echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967   ac_check_lib_save_LIBS=$LIBS
3968 LIBS="-lm  $LIBS"
3969 cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h.  */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h.  */
3975
3976 /* Override any GCC internal prototype to avoid an error.
3977    Use char because int might match the return type of a GCC
3978    builtin and then its argument prototype would still apply.  */
3979 #ifdef __cplusplus
3980 extern "C"
3981 #endif
3982 char sin ();
3983 int
3984 main ()
3985 {
3986 return sin ();
3987   ;
3988   return 0;
3989 }
3990 _ACEOF
3991 rm -f conftest.$ac_objext conftest$ac_exeext
3992 if { (ac_try="$ac_link"
3993 case "(($ac_try" in
3994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995   *) ac_try_echo=$ac_try;;
3996 esac
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998   (eval "$ac_link") 2>conftest.er1
3999   ac_status=$?
4000   grep -v '^ *+' conftest.er1 >conftest.err
4001   rm -f conftest.er1
4002   cat conftest.err >&5
4003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004   (exit $ac_status); } && {
4005          test -z "$ac_c_werror_flag" ||
4006          test ! -s conftest.err
4007        } && test -s conftest$ac_exeext &&
4008        $as_test_x conftest$ac_exeext; then
4009   ac_cv_lib_m_sin=yes
4010 else
4011   echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4013
4014         ac_cv_lib_m_sin=no
4015 fi
4016
4017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4018       conftest$ac_exeext conftest.$ac_ext
4019 LIBS=$ac_check_lib_save_LIBS
4020 fi
4021 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4022 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4023 if test $ac_cv_lib_m_sin = yes; then
4024   cat >>confdefs.h <<_ACEOF
4025 #define HAVE_LIBM 1
4026 _ACEOF
4027
4028   LIBS="-lm $LIBS"
4029
4030 else
4031   echo "Error: Math library not found.";
4032  exit;
4033
4034 fi
4035
4036
4037 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4038 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4039 if test "${ac_cv_lib_z_deflate+set}" = set; then
4040   echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042   ac_check_lib_save_LIBS=$LIBS
4043 LIBS="-lz  $LIBS"
4044 cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h.  */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h.  */
4050
4051 /* Override any GCC internal prototype to avoid an error.
4052    Use char because int might match the return type of a GCC
4053    builtin and then its argument prototype would still apply.  */
4054 #ifdef __cplusplus
4055 extern "C"
4056 #endif
4057 char deflate ();
4058 int
4059 main ()
4060 {
4061 return deflate ();
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 rm -f conftest.$ac_objext conftest$ac_exeext
4067 if { (ac_try="$ac_link"
4068 case "(($ac_try" in
4069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070   *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073   (eval "$ac_link") 2>conftest.er1
4074   ac_status=$?
4075   grep -v '^ *+' conftest.er1 >conftest.err
4076   rm -f conftest.er1
4077   cat conftest.err >&5
4078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079   (exit $ac_status); } && {
4080          test -z "$ac_c_werror_flag" ||
4081          test ! -s conftest.err
4082        } && test -s conftest$ac_exeext &&
4083        $as_test_x conftest$ac_exeext; then
4084   ac_cv_lib_z_deflate=yes
4085 else
4086   echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089         ac_cv_lib_z_deflate=no
4090 fi
4091
4092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4093       conftest$ac_exeext conftest.$ac_ext
4094 LIBS=$ac_check_lib_save_LIBS
4095 fi
4096 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4097 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4098 if test $ac_cv_lib_z_deflate = yes; then
4099   cat >>confdefs.h <<_ACEOF
4100 #define HAVE_LIBZ 1
4101 _ACEOF
4102
4103   LIBS="-lz $LIBS"
4104
4105 else
4106   ZLIBMISSING=true
4107 fi
4108
4109
4110 if test "x$ZLIBMISSING" = "xtrue";then
4111     echo
4112     echo "ERROR:"
4113     echo "You need zlib to compile swftools"
4114     echo
4115     exit
4116 fi
4117
4118
4119 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4120 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4121 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4122   echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124   ac_check_lib_save_LIBS=$LIBS
4125 LIBS="-ljpeg  $LIBS"
4126 cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h.  */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h.  */
4132
4133 /* Override any GCC internal prototype to avoid an error.
4134    Use char because int might match the return type of a GCC
4135    builtin and then its argument prototype would still apply.  */
4136 #ifdef __cplusplus
4137 extern "C"
4138 #endif
4139 char jpeg_write_raw_data ();
4140 int
4141 main ()
4142 {
4143 return jpeg_write_raw_data ();
4144   ;
4145   return 0;
4146 }
4147 _ACEOF
4148 rm -f conftest.$ac_objext conftest$ac_exeext
4149 if { (ac_try="$ac_link"
4150 case "(($ac_try" in
4151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152   *) ac_try_echo=$ac_try;;
4153 esac
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155   (eval "$ac_link") 2>conftest.er1
4156   ac_status=$?
4157   grep -v '^ *+' conftest.er1 >conftest.err
4158   rm -f conftest.er1
4159   cat conftest.err >&5
4160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161   (exit $ac_status); } && {
4162          test -z "$ac_c_werror_flag" ||
4163          test ! -s conftest.err
4164        } && test -s conftest$ac_exeext &&
4165        $as_test_x conftest$ac_exeext; then
4166   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4167 else
4168   echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4170
4171         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4172 fi
4173
4174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4175       conftest$ac_exeext conftest.$ac_ext
4176 LIBS=$ac_check_lib_save_LIBS
4177 fi
4178 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4179 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4180 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4181   cat >>confdefs.h <<_ACEOF
4182 #define HAVE_LIBJPEG 1
4183 _ACEOF
4184
4185   LIBS="-ljpeg $LIBS"
4186
4187 else
4188   JPEGLIBMISSING=true
4189 fi
4190
4191
4192 { echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
4193 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6; }
4194 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
4195   echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197   ac_check_lib_save_LIBS=$LIBS
4198 LIBS="-lt1  $LIBS"
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h.  */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h.  */
4205
4206 /* Override any GCC internal prototype to avoid an error.
4207    Use char because int might match the return type of a GCC
4208    builtin and then its argument prototype would still apply.  */
4209 #ifdef __cplusplus
4210 extern "C"
4211 #endif
4212 char T1_LoadFont ();
4213 int
4214 main ()
4215 {
4216 return T1_LoadFont ();
4217   ;
4218   return 0;
4219 }
4220 _ACEOF
4221 rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (ac_try="$ac_link"
4223 case "(($ac_try" in
4224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225   *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228   (eval "$ac_link") 2>conftest.er1
4229   ac_status=$?
4230   grep -v '^ *+' conftest.er1 >conftest.err
4231   rm -f conftest.er1
4232   cat conftest.err >&5
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); } && {
4235          test -z "$ac_c_werror_flag" ||
4236          test ! -s conftest.err
4237        } && test -s conftest$ac_exeext &&
4238        $as_test_x conftest$ac_exeext; then
4239   ac_cv_lib_t1_T1_LoadFont=yes
4240 else
4241   echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4243
4244         ac_cv_lib_t1_T1_LoadFont=no
4245 fi
4246
4247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4248       conftest$ac_exeext conftest.$ac_ext
4249 LIBS=$ac_check_lib_save_LIBS
4250 fi
4251 { echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
4252 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6; }
4253 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
4254   cat >>confdefs.h <<_ACEOF
4255 #define HAVE_LIBT1 1
4256 _ACEOF
4257
4258   LIBS="-lt1 $LIBS"
4259
4260 else
4261   T1LIBMISSING=true
4262 fi
4263
4264
4265 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4266 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4267 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4268   echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270   ac_check_lib_save_LIBS=$LIBS
4271 LIBS="-lungif  $LIBS"
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h.  */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h.  */
4278
4279 /* Override any GCC internal prototype to avoid an error.
4280    Use char because int might match the return type of a GCC
4281    builtin and then its argument prototype would still apply.  */
4282 #ifdef __cplusplus
4283 extern "C"
4284 #endif
4285 char DGifOpen ();
4286 int
4287 main ()
4288 {
4289 return DGifOpen ();
4290   ;
4291   return 0;
4292 }
4293 _ACEOF
4294 rm -f conftest.$ac_objext conftest$ac_exeext
4295 if { (ac_try="$ac_link"
4296 case "(($ac_try" in
4297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298   *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301   (eval "$ac_link") 2>conftest.er1
4302   ac_status=$?
4303   grep -v '^ *+' conftest.er1 >conftest.err
4304   rm -f conftest.er1
4305   cat conftest.err >&5
4306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307   (exit $ac_status); } && {
4308          test -z "$ac_c_werror_flag" ||
4309          test ! -s conftest.err
4310        } && test -s conftest$ac_exeext &&
4311        $as_test_x conftest$ac_exeext; then
4312   ac_cv_lib_ungif_DGifOpen=yes
4313 else
4314   echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317         ac_cv_lib_ungif_DGifOpen=no
4318 fi
4319
4320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4321       conftest$ac_exeext conftest.$ac_ext
4322 LIBS=$ac_check_lib_save_LIBS
4323 fi
4324 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4325 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4326 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4327   cat >>confdefs.h <<_ACEOF
4328 #define HAVE_LIBUNGIF 1
4329 _ACEOF
4330
4331   LIBS="-lungif $LIBS"
4332
4333 else
4334   UNGIFMISSING=true
4335 fi
4336
4337 if "$UNGIFMISSING";then
4338     UNGIFMISSING=
4339
4340 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4341 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4342 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4343   echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345   ac_check_lib_save_LIBS=$LIBS
4346 LIBS="-lgif  $LIBS"
4347 cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h.  */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h.  */
4353
4354 /* Override any GCC internal prototype to avoid an error.
4355    Use char because int might match the return type of a GCC
4356    builtin and then its argument prototype would still apply.  */
4357 #ifdef __cplusplus
4358 extern "C"
4359 #endif
4360 char DGifOpen ();
4361 int
4362 main ()
4363 {
4364 return DGifOpen ();
4365   ;
4366   return 0;
4367 }
4368 _ACEOF
4369 rm -f conftest.$ac_objext conftest$ac_exeext
4370 if { (ac_try="$ac_link"
4371 case "(($ac_try" in
4372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373   *) ac_try_echo=$ac_try;;
4374 esac
4375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376   (eval "$ac_link") 2>conftest.er1
4377   ac_status=$?
4378   grep -v '^ *+' conftest.er1 >conftest.err
4379   rm -f conftest.er1
4380   cat conftest.err >&5
4381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382   (exit $ac_status); } && {
4383          test -z "$ac_c_werror_flag" ||
4384          test ! -s conftest.err
4385        } && test -s conftest$ac_exeext &&
4386        $as_test_x conftest$ac_exeext; then
4387   ac_cv_lib_gif_DGifOpen=yes
4388 else
4389   echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4391
4392         ac_cv_lib_gif_DGifOpen=no
4393 fi
4394
4395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4396       conftest$ac_exeext conftest.$ac_ext
4397 LIBS=$ac_check_lib_save_LIBS
4398 fi
4399 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4400 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4401 if test $ac_cv_lib_gif_DGifOpen = yes; then
4402   cat >>confdefs.h <<_ACEOF
4403 #define HAVE_LIBGIF 1
4404 _ACEOF
4405
4406   LIBS="-lgif $LIBS"
4407
4408 else
4409   UNGIFMISSING=true
4410 fi
4411
4412 fi
4413
4414
4415 { echo "$as_me:$LINENO: checking for byte order" >&5
4416 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4417 if test "$cross_compiling" = yes; then
4418   CROSSCOMPILE=1
4419 else
4420   cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h.  */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h.  */
4426
4427 int main (int argc, char *argv[])
4428 {
4429     int i = 1;
4430     return *(char*)&i;
4431 }
4432
4433 _ACEOF
4434 rm -f conftest$ac_exeext
4435 if { (ac_try="$ac_link"
4436 case "(($ac_try" in
4437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438   *) ac_try_echo=$ac_try;;
4439 esac
4440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441   (eval "$ac_link") 2>&5
4442   ac_status=$?
4443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4445   { (case "(($ac_try" in
4446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447   *) ac_try_echo=$ac_try;;
4448 esac
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450   (eval "$ac_try") 2>&5
4451   ac_status=$?
4452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453   (exit $ac_status); }; }; then
4454   BIGENDIAN=1
4455 else
4456   echo "$as_me: program exited with status $ac_status" >&5
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4459
4460 ( exit $ac_status )
4461 LITTLEENDIAN=1
4462 fi
4463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4464 fi
4465
4466
4467 export CROSSCOMPILE
4468
4469 if test "x${CROSSCOMPILE}" = "x1"; then
4470  { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4471 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4472  { echo "$as_me:$LINENO: checking target system type" >&5
4473 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4474 if test "${ac_cv_target+set}" = set; then
4475   echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477   if test "x$target_alias" = x; then
4478   ac_cv_target=$ac_cv_host
4479 else
4480   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4481     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4482 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4483    { (exit 1); exit 1; }; }
4484 fi
4485
4486 fi
4487 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4488 echo "${ECHO_T}$ac_cv_target" >&6; }
4489 case $ac_cv_target in
4490 *-*-*) ;;
4491 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4492 echo "$as_me: error: invalid value of canonical target" >&2;}
4493    { (exit 1); exit 1; }; };;
4494 esac
4495 target=$ac_cv_target
4496 ac_save_IFS=$IFS; IFS='-'
4497 set x $ac_cv_target
4498 shift
4499 target_cpu=$1
4500 target_vendor=$2
4501 shift; shift
4502 # Remember, the first character of IFS is used to create $*,
4503 # except with old shells:
4504 target_os=$*
4505 IFS=$ac_save_IFS
4506 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4507
4508
4509 # The aliases save the names the user supplied, while $host etc.
4510 # will get canonicalized.
4511 test -n "$target_alias" &&
4512   test "$program_prefix$program_suffix$program_transform_name" = \
4513     NONENONEs,x,x, &&
4514   program_prefix=${target_alias}-
4515  { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4516 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4517  case "${target}" in
4518   *86* | *-pc-* )
4519      LITTLEENDIAN=1
4520      ;;
4521   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4522      BIGENDIAN=1
4523      ;;
4524  esac
4525 fi
4526
4527 export LITTLEENDIAN
4528 if test "x${LITTLEENDIAN}" = "x1"; then
4529 { echo "$as_me:$LINENO: result: little endian" >&5
4530 echo "${ECHO_T}little endian" >&6; }
4531 BYTEORDERCHECKOK=1
4532 fi
4533 export BIGENDIAN
4534 if test "x${BIGENDIAN}" = "x1"; then
4535 { echo "$as_me:$LINENO: result: big endian" >&5
4536 echo "${ECHO_T}big endian" >&6; }
4537 BYTEORDERCHECKOK=1
4538 WORDS_BIGENDIAN=1
4539 export WORDS_BIGENDIAN
4540 cat >>confdefs.h <<_ACEOF
4541 #define WORDS_BIGENDIAN 1
4542 _ACEOF
4543
4544 fi
4545 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4546 { echo "$as_me:$LINENO: result: unknown" >&5
4547 echo "${ECHO_T}unknown" >&6; }
4548 echo Byte order could not determined.
4549 exit 1
4550 fi
4551
4552
4553
4554 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4555 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4556 if test "$cross_compiling" = yes; then
4557   CROSSCOMPILE=1
4558 else
4559   cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h.  */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h.  */
4565
4566 #include "stdlib.h"
4567 int main (int argc, char*argv[])
4568 {
4569     return system("test `touch config.tmp2`");
4570 }
4571
4572 _ACEOF
4573 rm -f conftest$ac_exeext
4574 if { (ac_try="$ac_link"
4575 case "(($ac_try" in
4576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577   *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580   (eval "$ac_link") 2>&5
4581   ac_status=$?
4582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4584   { (case "(($ac_try" in
4585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586   *) ac_try_echo=$ac_try;;
4587 esac
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589   (eval "$ac_try") 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; }; then
4593   OK=OK
4594 else
4595   echo "$as_me: program exited with status $ac_status" >&5
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599 fi
4600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4601 fi
4602
4603
4604
4605 if test "x${OK}" = "xOK";then
4606     test -f config.tmp2 || OK=
4607 fi
4608
4609 if test "x${CROSSCOMPILE}" = "x1";then
4610     OK=no;
4611 fi
4612 if test "x${OK}" = "xOK";then
4613 rm -f config.tmp2
4614 { echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6; }
4616 SYSTEM_BACKTICKS=1
4617 export SYSTEM_BACKTICKS
4618 cat >>confdefs.h <<_ACEOF
4619 #define SYSTEM_BACKTICKS 1
4620 _ACEOF
4621
4622 else
4623 { echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6; }
4625 fi
4626
4627
4628
4629 test "$program_prefix" != NONE &&
4630   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4631 # Use a double $ so make ignores it.
4632 test "$program_suffix" != NONE &&
4633   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4634 # Double any \ or $.  echo might interpret backslashes.
4635 # By default was `s,x,x', remove it if useless.
4636 cat <<\_ACEOF >conftest.sed
4637 s/[\\$]/&&/g;s/;s,x,x,$//
4638 _ACEOF
4639 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4640 rm -f conftest.sed
4641
4642
4643  ac_config_headers="$ac_config_headers config.h"
4644
4645
4646
4647
4648
4649
4650 ac_header_dirent=no
4651 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4652   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4653 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4654 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4656   echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658   cat >conftest.$ac_ext <<_ACEOF
4659 /* confdefs.h.  */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h.  */
4664 #include <sys/types.h>
4665 #include <$ac_hdr>
4666
4667 int
4668 main ()
4669 {
4670 if ((DIR *) 0)
4671 return 0;
4672   ;
4673   return 0;
4674 }
4675 _ACEOF
4676 rm -f conftest.$ac_objext
4677 if { (ac_try="$ac_compile"
4678 case "(($ac_try" in
4679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680   *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683   (eval "$ac_compile") 2>conftest.er1
4684   ac_status=$?
4685   grep -v '^ *+' conftest.er1 >conftest.err
4686   rm -f conftest.er1
4687   cat conftest.err >&5
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); } && {
4690          test -z "$ac_c_werror_flag" ||
4691          test ! -s conftest.err
4692        } && test -s conftest.$ac_objext; then
4693   eval "$as_ac_Header=yes"
4694 else
4695   echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4697
4698         eval "$as_ac_Header=no"
4699 fi
4700
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4702 fi
4703 ac_res=`eval echo '${'$as_ac_Header'}'`
4704                { echo "$as_me:$LINENO: result: $ac_res" >&5
4705 echo "${ECHO_T}$ac_res" >&6; }
4706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4707   cat >>confdefs.h <<_ACEOF
4708 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4709 _ACEOF
4710
4711 ac_header_dirent=$ac_hdr; break
4712 fi
4713
4714 done
4715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4716 if test $ac_header_dirent = dirent.h; then
4717   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4718 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4719 if test "${ac_cv_search_opendir+set}" = set; then
4720   echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722   ac_func_search_save_LIBS=$LIBS
4723 cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h.  */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h.  */
4729
4730 /* Override any GCC internal prototype to avoid an error.
4731    Use char because int might match the return type of a GCC
4732    builtin and then its argument prototype would still apply.  */
4733 #ifdef __cplusplus
4734 extern "C"
4735 #endif
4736 char opendir ();
4737 int
4738 main ()
4739 {
4740 return opendir ();
4741   ;
4742   return 0;
4743 }
4744 _ACEOF
4745 for ac_lib in '' dir; do
4746   if test -z "$ac_lib"; then
4747     ac_res="none required"
4748   else
4749     ac_res=-l$ac_lib
4750     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4751   fi
4752   rm -f conftest.$ac_objext conftest$ac_exeext
4753 if { (ac_try="$ac_link"
4754 case "(($ac_try" in
4755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756   *) ac_try_echo=$ac_try;;
4757 esac
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759   (eval "$ac_link") 2>conftest.er1
4760   ac_status=$?
4761   grep -v '^ *+' conftest.er1 >conftest.err
4762   rm -f conftest.er1
4763   cat conftest.err >&5
4764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765   (exit $ac_status); } && {
4766          test -z "$ac_c_werror_flag" ||
4767          test ! -s conftest.err
4768        } && test -s conftest$ac_exeext &&
4769        $as_test_x conftest$ac_exeext; then
4770   ac_cv_search_opendir=$ac_res
4771 else
4772   echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4774
4775
4776 fi
4777
4778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4779       conftest$ac_exeext
4780   if test "${ac_cv_search_opendir+set}" = set; then
4781   break
4782 fi
4783 done
4784 if test "${ac_cv_search_opendir+set}" = set; then
4785   :
4786 else
4787   ac_cv_search_opendir=no
4788 fi
4789 rm conftest.$ac_ext
4790 LIBS=$ac_func_search_save_LIBS
4791 fi
4792 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4793 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4794 ac_res=$ac_cv_search_opendir
4795 if test "$ac_res" != no; then
4796   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4797
4798 fi
4799
4800 else
4801   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4802 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4803 if test "${ac_cv_search_opendir+set}" = set; then
4804   echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806   ac_func_search_save_LIBS=$LIBS
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h.  */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h.  */
4813
4814 /* Override any GCC internal prototype to avoid an error.
4815    Use char because int might match the return type of a GCC
4816    builtin and then its argument prototype would still apply.  */
4817 #ifdef __cplusplus
4818 extern "C"
4819 #endif
4820 char opendir ();
4821 int
4822 main ()
4823 {
4824 return opendir ();
4825   ;
4826   return 0;
4827 }
4828 _ACEOF
4829 for ac_lib in '' x; do
4830   if test -z "$ac_lib"; then
4831     ac_res="none required"
4832   else
4833     ac_res=-l$ac_lib
4834     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4835   fi
4836   rm -f conftest.$ac_objext conftest$ac_exeext
4837 if { (ac_try="$ac_link"
4838 case "(($ac_try" in
4839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840   *) ac_try_echo=$ac_try;;
4841 esac
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843   (eval "$ac_link") 2>conftest.er1
4844   ac_status=$?
4845   grep -v '^ *+' conftest.er1 >conftest.err
4846   rm -f conftest.er1
4847   cat conftest.err >&5
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } && {
4850          test -z "$ac_c_werror_flag" ||
4851          test ! -s conftest.err
4852        } && test -s conftest$ac_exeext &&
4853        $as_test_x conftest$ac_exeext; then
4854   ac_cv_search_opendir=$ac_res
4855 else
4856   echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4858
4859
4860 fi
4861
4862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4863       conftest$ac_exeext
4864   if test "${ac_cv_search_opendir+set}" = set; then
4865   break
4866 fi
4867 done
4868 if test "${ac_cv_search_opendir+set}" = set; then
4869   :
4870 else
4871   ac_cv_search_opendir=no
4872 fi
4873 rm conftest.$ac_ext
4874 LIBS=$ac_func_search_save_LIBS
4875 fi
4876 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4877 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4878 ac_res=$ac_cv_search_opendir
4879 if test "$ac_res" != no; then
4880   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4881
4882 fi
4883
4884 fi
4885
4886
4887 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4888 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4889 if test "${ac_cv_path_GREP+set}" = set; then
4890   echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892   # Extract the first word of "grep ggrep" to use in msg output
4893 if test -z "$GREP"; then
4894 set dummy grep ggrep; ac_prog_name=$2
4895 if test "${ac_cv_path_GREP+set}" = set; then
4896   echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898   ac_path_GREP_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4902 do
4903   IFS=$as_save_IFS
4904   test -z "$as_dir" && as_dir=.
4905   for ac_prog in grep ggrep; do
4906   for ac_exec_ext in '' $ac_executable_extensions; do
4907     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4908     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4909     # Check for GNU ac_path_GREP and select it if it is found.
4910   # Check for GNU $ac_path_GREP
4911 case `"$ac_path_GREP" --version 2>&1` in
4912 *GNU*)
4913   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4914 *)
4915   ac_count=0
4916   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4917   while :
4918   do
4919     cat "conftest.in" "conftest.in" >"conftest.tmp"
4920     mv "conftest.tmp" "conftest.in"
4921     cp "conftest.in" "conftest.nl"
4922     echo 'GREP' >> "conftest.nl"
4923     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925     ac_count=`expr $ac_count + 1`
4926     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4927       # Best one so far, save it but keep looking for a better one
4928       ac_cv_path_GREP="$ac_path_GREP"
4929       ac_path_GREP_max=$ac_count
4930     fi
4931     # 10*(2^10) chars as input seems more than enough
4932     test $ac_count -gt 10 && break
4933   done
4934   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935 esac
4936
4937
4938     $ac_path_GREP_found && break 3
4939   done
4940 done
4941
4942 done
4943 IFS=$as_save_IFS
4944
4945
4946 fi
4947
4948 GREP="$ac_cv_path_GREP"
4949 if test -z "$GREP"; then
4950   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4951 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4952    { (exit 1); exit 1; }; }
4953 fi
4954
4955 else
4956   ac_cv_path_GREP=$GREP
4957 fi
4958
4959
4960 fi
4961 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4962 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4963  GREP="$ac_cv_path_GREP"
4964
4965
4966 { echo "$as_me:$LINENO: checking for egrep" >&5
4967 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4968 if test "${ac_cv_path_EGREP+set}" = set; then
4969   echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4972    then ac_cv_path_EGREP="$GREP -E"
4973    else
4974      # Extract the first word of "egrep" to use in msg output
4975 if test -z "$EGREP"; then
4976 set dummy egrep; ac_prog_name=$2
4977 if test "${ac_cv_path_EGREP+set}" = set; then
4978   echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980   ac_path_EGREP_found=false
4981 # Loop through the user's path and test for each of PROGNAME-LIST
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4984 do
4985   IFS=$as_save_IFS
4986   test -z "$as_dir" && as_dir=.
4987   for ac_prog in egrep; do
4988   for ac_exec_ext in '' $ac_executable_extensions; do
4989     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4990     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4991     # Check for GNU ac_path_EGREP and select it if it is found.
4992   # Check for GNU $ac_path_EGREP
4993 case `"$ac_path_EGREP" --version 2>&1` in
4994 *GNU*)
4995   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4996 *)
4997   ac_count=0
4998   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4999   while :
5000   do
5001     cat "conftest.in" "conftest.in" >"conftest.tmp"
5002     mv "conftest.tmp" "conftest.in"
5003     cp "conftest.in" "conftest.nl"
5004     echo 'EGREP' >> "conftest.nl"
5005     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007     ac_count=`expr $ac_count + 1`
5008     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5009       # Best one so far, save it but keep looking for a better one
5010       ac_cv_path_EGREP="$ac_path_EGREP"
5011       ac_path_EGREP_max=$ac_count
5012     fi
5013     # 10*(2^10) chars as input seems more than enough
5014     test $ac_count -gt 10 && break
5015   done
5016   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5017 esac
5018
5019
5020     $ac_path_EGREP_found && break 3
5021   done
5022 done
5023
5024 done
5025 IFS=$as_save_IFS
5026
5027
5028 fi
5029
5030 EGREP="$ac_cv_path_EGREP"
5031 if test -z "$EGREP"; then
5032   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5033 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5034    { (exit 1); exit 1; }; }
5035 fi
5036
5037 else
5038   ac_cv_path_EGREP=$EGREP
5039 fi
5040
5041
5042    fi
5043 fi
5044 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5045 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5046  EGREP="$ac_cv_path_EGREP"
5047
5048
5049 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5050 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5051 if test "${ac_cv_header_stdc+set}" = set; then
5052   echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054   cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 #include <stdlib.h>
5061 #include <stdarg.h>
5062 #include <string.h>
5063 #include <float.h>
5064
5065 int
5066 main ()
5067 {
5068
5069   ;
5070   return 0;
5071 }
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (ac_try="$ac_compile"
5075 case "(($ac_try" in
5076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077   *) ac_try_echo=$ac_try;;
5078 esac
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080   (eval "$ac_compile") 2>conftest.er1
5081   ac_status=$?
5082   grep -v '^ *+' conftest.er1 >conftest.err
5083   rm -f conftest.er1
5084   cat conftest.err >&5
5085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086   (exit $ac_status); } && {
5087          test -z "$ac_c_werror_flag" ||
5088          test ! -s conftest.err
5089        } && test -s conftest.$ac_objext; then
5090   ac_cv_header_stdc=yes
5091 else
5092   echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5094
5095         ac_cv_header_stdc=no
5096 fi
5097
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5099
5100 if test $ac_cv_header_stdc = yes; then
5101   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5102   cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h.  */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h.  */
5108 #include <string.h>
5109
5110 _ACEOF
5111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5112   $EGREP "memchr" >/dev/null 2>&1; then
5113   :
5114 else
5115   ac_cv_header_stdc=no
5116 fi
5117 rm -f conftest*
5118
5119 fi
5120
5121 if test $ac_cv_header_stdc = yes; then
5122   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5123   cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h.  */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h.  */
5129 #include <stdlib.h>
5130
5131 _ACEOF
5132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5133   $EGREP "free" >/dev/null 2>&1; then
5134   :
5135 else
5136   ac_cv_header_stdc=no
5137 fi
5138 rm -f conftest*
5139
5140 fi
5141
5142 if test $ac_cv_header_stdc = yes; then
5143   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5144   if test "$cross_compiling" = yes; then
5145   :
5146 else
5147   cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153 #include <ctype.h>
5154 #include <stdlib.h>
5155 #if ((' ' & 0x0FF) == 0x020)
5156 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5157 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5158 #else
5159 # define ISLOWER(c) \
5160                    (('a' <= (c) && (c) <= 'i') \
5161                      || ('j' <= (c) && (c) <= 'r') \
5162                      || ('s' <= (c) && (c) <= 'z'))
5163 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5164 #endif
5165
5166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5167 int
5168 main ()
5169 {
5170   int i;
5171   for (i = 0; i < 256; i++)
5172     if (XOR (islower (i), ISLOWER (i))
5173         || toupper (i) != TOUPPER (i))
5174       return 2;
5175   return 0;
5176 }
5177 _ACEOF
5178 rm -f conftest$ac_exeext
5179 if { (ac_try="$ac_link"
5180 case "(($ac_try" in
5181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182   *) ac_try_echo=$ac_try;;
5183 esac
5184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185   (eval "$ac_link") 2>&5
5186   ac_status=$?
5187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5189   { (case "(($ac_try" in
5190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191   *) ac_try_echo=$ac_try;;
5192 esac
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194   (eval "$ac_try") 2>&5
5195   ac_status=$?
5196   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197   (exit $ac_status); }; }; then
5198   :
5199 else
5200   echo "$as_me: program exited with status $ac_status" >&5
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5203
5204 ( exit $ac_status )
5205 ac_cv_header_stdc=no
5206 fi
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5208 fi
5209
5210
5211 fi
5212 fi
5213 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5214 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5216
5217 cat >>confdefs.h <<\_ACEOF
5218 #define STDC_HEADERS 1
5219 _ACEOF
5220
5221 fi
5222
5223  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5234                   inttypes.h stdint.h unistd.h
5235 do
5236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5240   echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242   cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h.  */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h.  */
5248 $ac_includes_default
5249
5250 #include <$ac_header>
5251 _ACEOF
5252 rm -f conftest.$ac_objext
5253 if { (ac_try="$ac_compile"
5254 case "(($ac_try" in
5255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256   *) ac_try_echo=$ac_try;;
5257 esac
5258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259   (eval "$ac_compile") 2>conftest.er1
5260   ac_status=$?
5261   grep -v '^ *+' conftest.er1 >conftest.err
5262   rm -f conftest.er1
5263   cat conftest.err >&5
5264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); } && {
5266          test -z "$ac_c_werror_flag" ||
5267          test ! -s conftest.err
5268        } && test -s conftest.$ac_objext; then
5269   eval "$as_ac_Header=yes"
5270 else
5271   echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274         eval "$as_ac_Header=no"
5275 fi
5276
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278 fi
5279 ac_res=`eval echo '${'$as_ac_Header'}'`
5280                { echo "$as_me:$LINENO: result: $ac_res" >&5
5281 echo "${ECHO_T}$ac_res" >&6; }
5282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5283   cat >>confdefs.h <<_ACEOF
5284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5285 _ACEOF
5286
5287 fi
5288
5289 done
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307 for ac_header in zlib.h gif_lib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
5308 do
5309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5311   { echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 fi
5316 ac_res=`eval echo '${'$as_ac_Header'}'`
5317                { echo "$as_me:$LINENO: result: $ac_res" >&5
5318 echo "${ECHO_T}$ac_res" >&6; }
5319 else
5320   # Is the header compilable?
5321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h.  */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h.  */
5329 $ac_includes_default
5330 #include <$ac_header>
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (ac_try="$ac_compile"
5334 case "(($ac_try" in
5335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336   *) ac_try_echo=$ac_try;;
5337 esac
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339   (eval "$ac_compile") 2>conftest.er1
5340   ac_status=$?
5341   grep -v '^ *+' conftest.er1 >conftest.err
5342   rm -f conftest.er1
5343   cat conftest.err >&5
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); } && {
5346          test -z "$ac_c_werror_flag" ||
5347          test ! -s conftest.err
5348        } && test -s conftest.$ac_objext; then
5349   ac_header_compiler=yes
5350 else
5351   echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5353
5354         ac_header_compiler=no
5355 fi
5356
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 echo "${ECHO_T}$ac_header_compiler" >&6; }
5360
5361 # Is the header present?
5362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h.  */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h.  */
5370 #include <$ac_header>
5371 _ACEOF
5372 if { (ac_try="$ac_cpp conftest.$ac_ext"
5373 case "(($ac_try" in
5374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375   *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5379   ac_status=$?
5380   grep -v '^ *+' conftest.er1 >conftest.err
5381   rm -f conftest.er1
5382   cat conftest.err >&5
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); } >/dev/null && {
5385          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5386          test ! -s conftest.err
5387        }; then
5388   ac_header_preproc=yes
5389 else
5390   echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5392
5393   ac_header_preproc=no
5394 fi
5395
5396 rm -f conftest.err conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6; }
5399
5400 # So?  What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5402   yes:no: )
5403     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5407     ac_header_preproc=yes
5408     ;;
5409   no:yes:* )
5410     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5412     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5414     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5416     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5418     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5420     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5422
5423     ;;
5424 esac
5425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5428   echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430   eval "$as_ac_Header=\$ac_header_preproc"
5431 fi
5432 ac_res=`eval echo '${'$as_ac_Header'}'`
5433                { echo "$as_me:$LINENO: result: $ac_res" >&5
5434 echo "${ECHO_T}$ac_res" >&6; }
5435
5436 fi
5437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5438   cat >>confdefs.h <<_ACEOF
5439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5440 _ACEOF
5441
5442 fi
5443
5444 done
5445
5446
5447 cat >>confdefs.h <<_ACEOF
5448 #define PACKAGE "$PACKAGE"
5449 _ACEOF
5450
5451 cat >>confdefs.h <<_ACEOF
5452 #define VERSION "$VERSION"
5453 _ACEOF
5454
5455
5456
5457
5458
5459
5460
5461  { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5462 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5463 if test "${ac_cv_c_const+set}" = set; then
5464   echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466   cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h.  */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h.  */
5472
5473 int
5474 main ()
5475 {
5476 /* FIXME: Include the comments suggested by Paul. */
5477 #ifndef __cplusplus
5478   /* Ultrix mips cc rejects this.  */
5479   typedef int charset[2];
5480   const charset cs;
5481   /* SunOS 4.1.1 cc rejects this.  */
5482   char const *const *pcpcc;
5483   char **ppc;
5484   /* NEC SVR4.0.2 mips cc rejects this.  */
5485   struct point {int x, y;};
5486   static struct point const zero = {0,0};
5487   /* AIX XL C 1.02.0.0 rejects this.
5488      It does not let you subtract one const X* pointer from another in
5489      an arm of an if-expression whose if-part is not a constant
5490      expression */
5491   const char *g = "string";
5492   pcpcc = &g + (g ? g-g : 0);
5493   /* HPUX 7.0 cc rejects these. */
5494   ++pcpcc;
5495   ppc = (char**) pcpcc;
5496   pcpcc = (char const *const *) ppc;
5497   { /* SCO 3.2v4 cc rejects this.  */
5498     char *t;
5499     char const *s = 0 ? (char *) 0 : (char const *) 0;
5500
5501     *t++ = 0;
5502     if (s) return 0;
5503   }
5504   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5505     int x[] = {25, 17};
5506     const int *foo = &x[0];
5507     ++foo;
5508   }
5509   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5510     typedef const int *iptr;
5511     iptr p = 0;
5512     ++p;
5513   }
5514   { /* AIX XL C 1.02.0.0 rejects this saying
5515        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5516     struct s { int j; const int *ap[3]; };
5517     struct s *b; b->j = 5;
5518   }
5519   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5520     const int foo = 10;
5521     if (!foo) return 0;
5522   }
5523   return !cs[0] && !zero.x;
5524 #endif
5525
5526   ;
5527   return 0;
5528 }
5529 _ACEOF
5530 rm -f conftest.$ac_objext
5531 if { (ac_try="$ac_compile"
5532 case "(($ac_try" in
5533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534   *) ac_try_echo=$ac_try;;
5535 esac
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537   (eval "$ac_compile") 2>conftest.er1
5538   ac_status=$?
5539   grep -v '^ *+' conftest.er1 >conftest.err
5540   rm -f conftest.er1
5541   cat conftest.err >&5
5542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543   (exit $ac_status); } && {
5544          test -z "$ac_c_werror_flag" ||
5545          test ! -s conftest.err
5546        } && test -s conftest.$ac_objext; then
5547   ac_cv_c_const=yes
5548 else
5549   echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5551
5552         ac_cv_c_const=no
5553 fi
5554
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5556 fi
5557 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5558 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5559 if test $ac_cv_c_const = no; then
5560
5561 cat >>confdefs.h <<\_ACEOF
5562 #define const
5563 _ACEOF
5564
5565 fi
5566
5567  { echo "$as_me:$LINENO: checking for inline" >&5
5568 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5569 if test "${ac_cv_c_inline+set}" = set; then
5570   echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572   ac_cv_c_inline=no
5573 for ac_kw in inline __inline__ __inline; do
5574   cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h.  */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h.  */
5580 #ifndef __cplusplus
5581 typedef int foo_t;
5582 static $ac_kw foo_t static_foo () {return 0; }
5583 $ac_kw foo_t foo () {return 0; }
5584 #endif
5585
5586 _ACEOF
5587 rm -f conftest.$ac_objext
5588 if { (ac_try="$ac_compile"
5589 case "(($ac_try" in
5590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591   *) ac_try_echo=$ac_try;;
5592 esac
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594   (eval "$ac_compile") 2>conftest.er1
5595   ac_status=$?
5596   grep -v '^ *+' conftest.er1 >conftest.err
5597   rm -f conftest.er1
5598   cat conftest.err >&5
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); } && {
5601          test -z "$ac_c_werror_flag" ||
5602          test ! -s conftest.err
5603        } && test -s conftest.$ac_objext; then
5604   ac_cv_c_inline=$ac_kw
5605 else
5606   echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5608
5609
5610 fi
5611
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613   test "$ac_cv_c_inline" != no && break
5614 done
5615
5616 fi
5617 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5618 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5619
5620
5621 case $ac_cv_c_inline in
5622   inline | yes) ;;
5623   *)
5624     case $ac_cv_c_inline in
5625       no) ac_val=;;
5626       *) ac_val=$ac_cv_c_inline;;
5627     esac
5628     cat >>confdefs.h <<_ACEOF
5629 #ifndef __cplusplus
5630 #define inline $ac_val
5631 #endif
5632 _ACEOF
5633     ;;
5634 esac
5635
5636  { echo "$as_me:$LINENO: checking for off_t" >&5
5637 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5638 if test "${ac_cv_type_off_t+set}" = set; then
5639   echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641   cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h.  */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h.  */
5647 $ac_includes_default
5648 typedef off_t ac__type_new_;
5649 int
5650 main ()
5651 {
5652 if ((ac__type_new_ *) 0)
5653   return 0;
5654 if (sizeof (ac__type_new_))
5655   return 0;
5656   ;
5657   return 0;
5658 }
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5662 case "(($ac_try" in
5663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664   *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667   (eval "$ac_compile") 2>conftest.er1
5668   ac_status=$?
5669   grep -v '^ *+' conftest.er1 >conftest.err
5670   rm -f conftest.er1
5671   cat conftest.err >&5
5672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673   (exit $ac_status); } && {
5674          test -z "$ac_c_werror_flag" ||
5675          test ! -s conftest.err
5676        } && test -s conftest.$ac_objext; then
5677   ac_cv_type_off_t=yes
5678 else
5679   echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5681
5682         ac_cv_type_off_t=no
5683 fi
5684
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5686 fi
5687 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5688 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5689 if test $ac_cv_type_off_t = yes; then
5690   :
5691 else
5692
5693 cat >>confdefs.h <<_ACEOF
5694 #define off_t long int
5695 _ACEOF
5696
5697 fi
5698
5699  { echo "$as_me:$LINENO: checking for size_t" >&5
5700 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5701 if test "${ac_cv_type_size_t+set}" = set; then
5702   echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704   cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h.  */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h.  */
5710 $ac_includes_default
5711 typedef size_t ac__type_new_;
5712 int
5713 main ()
5714 {
5715 if ((ac__type_new_ *) 0)
5716   return 0;
5717 if (sizeof (ac__type_new_))
5718   return 0;
5719   ;
5720   return 0;
5721 }
5722 _ACEOF
5723 rm -f conftest.$ac_objext
5724 if { (ac_try="$ac_compile"
5725 case "(($ac_try" in
5726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727   *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730   (eval "$ac_compile") 2>conftest.er1
5731   ac_status=$?
5732   grep -v '^ *+' conftest.er1 >conftest.err
5733   rm -f conftest.er1
5734   cat conftest.err >&5
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); } && {
5737          test -z "$ac_c_werror_flag" ||
5738          test ! -s conftest.err
5739        } && test -s conftest.$ac_objext; then
5740   ac_cv_type_size_t=yes
5741 else
5742   echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5744
5745         ac_cv_type_size_t=no
5746 fi
5747
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5749 fi
5750 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5751 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5752 if test $ac_cv_type_size_t = yes; then
5753   :
5754 else
5755
5756 cat >>confdefs.h <<_ACEOF
5757 #define size_t unsigned int
5758 _ACEOF
5759
5760 fi
5761
5762  { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5763 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5764 if test "${ac_cv_struct_tm+set}" = set; then
5765   echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767   cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h.  */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h.  */
5773 #include <sys/types.h>
5774 #include <time.h>
5775
5776 int
5777 main ()
5778 {
5779 struct tm tm;
5780                                      int *p = &tm.tm_sec;
5781                                      return !p;
5782   ;
5783   return 0;
5784 }
5785 _ACEOF
5786 rm -f conftest.$ac_objext
5787 if { (ac_try="$ac_compile"
5788 case "(($ac_try" in
5789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790   *) ac_try_echo=$ac_try;;
5791 esac
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793   (eval "$ac_compile") 2>conftest.er1
5794   ac_status=$?
5795   grep -v '^ *+' conftest.er1 >conftest.err
5796   rm -f conftest.er1
5797   cat conftest.err >&5
5798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799   (exit $ac_status); } && {
5800          test -z "$ac_c_werror_flag" ||
5801          test ! -s conftest.err
5802        } && test -s conftest.$ac_objext; then
5803   ac_cv_struct_tm=time.h
5804 else
5805   echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5807
5808         ac_cv_struct_tm=sys/time.h
5809 fi
5810
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5812 fi
5813 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5814 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5815 if test $ac_cv_struct_tm = sys/time.h; then
5816
5817 cat >>confdefs.h <<\_ACEOF
5818 #define TM_IN_SYS_TIME 1
5819 _ACEOF
5820
5821 fi
5822
5823  { echo "$as_me:$LINENO: checking for boolean" >&5
5824 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5825 if test "${ac_cv_type_boolean+set}" = set; then
5826   echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828   cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h.  */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h.  */
5834 $ac_includes_default
5835 typedef boolean ac__type_new_;
5836 int
5837 main ()
5838 {
5839 if ((ac__type_new_ *) 0)
5840   return 0;
5841 if (sizeof (ac__type_new_))
5842   return 0;
5843   ;
5844   return 0;
5845 }
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (ac_try="$ac_compile"
5849 case "(($ac_try" in
5850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851   *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854   (eval "$ac_compile") 2>conftest.er1
5855   ac_status=$?
5856   grep -v '^ *+' conftest.er1 >conftest.err
5857   rm -f conftest.er1
5858   cat conftest.err >&5
5859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860   (exit $ac_status); } && {
5861          test -z "$ac_c_werror_flag" ||
5862          test ! -s conftest.err
5863        } && test -s conftest.$ac_objext; then
5864   ac_cv_type_boolean=yes
5865 else
5866   echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5868
5869         ac_cv_type_boolean=no
5870 fi
5871
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5873 fi
5874 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5875 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5876 if test $ac_cv_type_boolean = yes; then
5877   :
5878 else
5879
5880 cat >>confdefs.h <<_ACEOF
5881 #define boolean int
5882 _ACEOF
5883
5884 fi
5885  #needed for jpeglib
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
5898 do
5899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5903   echo $ECHO_N "(cached) $ECHO_C" >&6
5904 else
5905   cat >conftest.$ac_ext <<_ACEOF
5906 /* confdefs.h.  */
5907 _ACEOF
5908 cat confdefs.h >>conftest.$ac_ext
5909 cat >>conftest.$ac_ext <<_ACEOF
5910 /* end confdefs.h.  */
5911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5912    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5913 #define $ac_func innocuous_$ac_func
5914
5915 /* System header to define __stub macros and hopefully few prototypes,
5916     which can conflict with char $ac_func (); below.
5917     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5918     <limits.h> exists even on freestanding compilers.  */
5919
5920 #ifdef __STDC__
5921 # include <limits.h>
5922 #else
5923 # include <assert.h>
5924 #endif
5925
5926 #undef $ac_func
5927
5928 /* Override any GCC internal prototype to avoid an error.
5929    Use char because int might match the return type of a GCC
5930    builtin and then its argument prototype would still apply.  */
5931 #ifdef __cplusplus
5932 extern "C"
5933 #endif
5934 char $ac_func ();
5935 /* The GNU C library defines this for functions which it implements
5936     to always fail with ENOSYS.  Some functions are actually named
5937     something starting with __ and the normal name is an alias.  */
5938 #if defined __stub_$ac_func || defined __stub___$ac_func
5939 choke me
5940 #endif
5941
5942 int
5943 main ()
5944 {
5945 return $ac_func ();
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest.$ac_objext conftest$ac_exeext
5951 if { (ac_try="$ac_link"
5952 case "(($ac_try" in
5953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954   *) ac_try_echo=$ac_try;;
5955 esac
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957   (eval "$ac_link") 2>conftest.er1
5958   ac_status=$?
5959   grep -v '^ *+' conftest.er1 >conftest.err
5960   rm -f conftest.er1
5961   cat conftest.err >&5
5962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5963   (exit $ac_status); } && {
5964          test -z "$ac_c_werror_flag" ||
5965          test ! -s conftest.err
5966        } && test -s conftest$ac_exeext &&
5967        $as_test_x conftest$ac_exeext; then
5968   eval "$as_ac_var=yes"
5969 else
5970   echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.$ac_ext >&5
5972
5973         eval "$as_ac_var=no"
5974 fi
5975
5976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5977       conftest$ac_exeext conftest.$ac_ext
5978 fi
5979 ac_res=`eval echo '${'$as_ac_var'}'`
5980                { echo "$as_me:$LINENO: result: $ac_res" >&5
5981 echo "${ECHO_T}$ac_res" >&6; }
5982 if test `eval echo '${'$as_ac_var'}'` = yes; then
5983   cat >>confdefs.h <<_ACEOF
5984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5985 _ACEOF
5986
5987 fi
5988 done
5989
5990
5991 # ------------------------------------------------------------------
5992
5993
5994
5995 # Extract the first word of "freetype-config", so it can be a program name with args.
5996 set dummy freetype-config; ac_word=$2
5997 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5999 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
6000   echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002   case $FREETYPE_CONFIG in
6003   [\\/]* | ?:[\\/]*)
6004   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
6005   ;;
6006   *)
6007   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6008 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
6009 for as_dir in $as_dummy
6010 do
6011   IFS=$as_save_IFS
6012   test -z "$as_dir" && as_dir=.
6013   for ac_exec_ext in '' $ac_executable_extensions; do
6014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6015     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6017     break 2
6018   fi
6019 done
6020 done
6021 IFS=$as_save_IFS
6022
6023   ;;
6024 esac
6025 fi
6026 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
6027 if test -n "$FREETYPE_CONFIG"; then
6028   { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
6029 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
6030 else
6031   { echo "$as_me:$LINENO: result: no" >&5
6032 echo "${ECHO_T}no" >&6; }
6033 fi
6034
6035
6036
6037 OLDCPPFLAGS="${CPPFLAGS}"
6038 OLDLIBS="${LIBS}"
6039 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
6040     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
6041 else if test -d /usr/include/freetype2; then
6042     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
6043 else if test -d /usr/local/include/freetype2; then
6044     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
6045 fi
6046 fi
6047 fi
6048
6049 if test "x${FREETYPE_CONFIG}" '=' "x";then
6050     # if we didn't find the freetype-config program, we won't
6051     # know where the libs are expected to be. So just blindly
6052     # try to link against them.
6053     { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
6054 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
6055 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
6056   echo $ECHO_N "(cached) $ECHO_C" >&6
6057 else
6058   ac_check_lib_save_LIBS=$LIBS
6059 LIBS="-lfreetype  $LIBS"
6060 cat >conftest.$ac_ext <<_ACEOF
6061 /* confdefs.h.  */
6062 _ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h.  */
6066
6067 /* Override any GCC internal prototype to avoid an error.
6068    Use char because int might match the return type of a GCC
6069    builtin and then its argument prototype would still apply.  */
6070 #ifdef __cplusplus
6071 extern "C"
6072 #endif
6073 char FT_Init_FreeType ();
6074 int
6075 main ()
6076 {
6077 return FT_Init_FreeType ();
6078   ;
6079   return 0;
6080 }
6081 _ACEOF
6082 rm -f conftest.$ac_objext conftest$ac_exeext
6083 if { (ac_try="$ac_link"
6084 case "(($ac_try" in
6085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086   *) ac_try_echo=$ac_try;;
6087 esac
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089   (eval "$ac_link") 2>conftest.er1
6090   ac_status=$?
6091   grep -v '^ *+' conftest.er1 >conftest.err
6092   rm -f conftest.er1
6093   cat conftest.err >&5
6094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095   (exit $ac_status); } && {
6096          test -z "$ac_c_werror_flag" ||
6097          test ! -s conftest.err
6098        } && test -s conftest$ac_exeext &&
6099        $as_test_x conftest$ac_exeext; then
6100   ac_cv_lib_freetype_FT_Init_FreeType=yes
6101 else
6102   echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6104
6105         ac_cv_lib_freetype_FT_Init_FreeType=no
6106 fi
6107
6108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6109       conftest$ac_exeext conftest.$ac_ext
6110 LIBS=$ac_check_lib_save_LIBS
6111 fi
6112 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
6113 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
6114 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
6115   HAVE_LIB_FREETYPE=1
6116 fi
6117
6118 fi
6119
6120
6121 for ac_header in ft2build.h
6122 do
6123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6125   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6128   echo $ECHO_N "(cached) $ECHO_C" >&6
6129 fi
6130 ac_res=`eval echo '${'$as_ac_Header'}'`
6131                { echo "$as_me:$LINENO: result: $ac_res" >&5
6132 echo "${ECHO_T}$ac_res" >&6; }
6133 else
6134   # Is the header compilable?
6135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6137 cat >conftest.$ac_ext <<_ACEOF
6138 /* confdefs.h.  */
6139 _ACEOF
6140 cat confdefs.h >>conftest.$ac_ext
6141 cat >>conftest.$ac_ext <<_ACEOF
6142 /* end confdefs.h.  */
6143 $ac_includes_default
6144 #include <$ac_header>
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6148 case "(($ac_try" in
6149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150   *) ac_try_echo=$ac_try;;
6151 esac
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153   (eval "$ac_compile") 2>conftest.er1
6154   ac_status=$?
6155   grep -v '^ *+' conftest.er1 >conftest.err
6156   rm -f conftest.er1
6157   cat conftest.err >&5
6158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159   (exit $ac_status); } && {
6160          test -z "$ac_c_werror_flag" ||
6161          test ! -s conftest.err
6162        } && test -s conftest.$ac_objext; then
6163   ac_header_compiler=yes
6164 else
6165   echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168         ac_header_compiler=no
6169 fi
6170
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6173 echo "${ECHO_T}$ac_header_compiler" >&6; }
6174
6175 # Is the header present?
6176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6178 cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h.  */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h.  */
6184 #include <$ac_header>
6185 _ACEOF
6186 if { (ac_try="$ac_cpp conftest.$ac_ext"
6187 case "(($ac_try" in
6188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189   *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6193   ac_status=$?
6194   grep -v '^ *+' conftest.er1 >conftest.err
6195   rm -f conftest.er1
6196   cat conftest.err >&5
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); } >/dev/null && {
6199          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6200          test ! -s conftest.err
6201        }; then
6202   ac_header_preproc=yes
6203 else
6204   echo "$as_me: failed program was:" >&5
6205 sed 's/^/| /' conftest.$ac_ext >&5
6206
6207   ac_header_preproc=no
6208 fi
6209
6210 rm -f conftest.err conftest.$ac_ext
6211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6212 echo "${ECHO_T}$ac_header_preproc" >&6; }
6213
6214 # So?  What about this header?
6215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6216   yes:no: )
6217     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6219     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6221     ac_header_preproc=yes
6222     ;;
6223   no:yes:* )
6224     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6226     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6227 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6228     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6230     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6231 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6232     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6234     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6236
6237     ;;
6238 esac
6239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6242   echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244   eval "$as_ac_Header=\$ac_header_preproc"
6245 fi
6246 ac_res=`eval echo '${'$as_ac_Header'}'`
6247                { echo "$as_me:$LINENO: result: $ac_res" >&5
6248 echo "${ECHO_T}$ac_res" >&6; }
6249
6250 fi
6251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6252   cat >>confdefs.h <<_ACEOF
6253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6254 _ACEOF
6255  HAVE_FT2BUILD_H=1
6256 fi
6257
6258 done
6259
6260 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
6261
6262 for ac_header in freetype/freetype.h
6263 do
6264 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6266   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6267 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6269   echo $ECHO_N "(cached) $ECHO_C" >&6
6270 fi
6271 ac_res=`eval echo '${'$as_ac_Header'}'`
6272                { echo "$as_me:$LINENO: result: $ac_res" >&5
6273 echo "${ECHO_T}$ac_res" >&6; }
6274 else
6275   # Is the header compilable?
6276 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6277 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6278 cat >conftest.$ac_ext <<_ACEOF
6279 /* confdefs.h.  */
6280 _ACEOF
6281 cat confdefs.h >>conftest.$ac_ext
6282 cat >>conftest.$ac_ext <<_ACEOF
6283 /* end confdefs.h.  */
6284 $ac_includes_default
6285 #include <$ac_header>
6286 _ACEOF
6287 rm -f conftest.$ac_objext
6288 if { (ac_try="$ac_compile"
6289 case "(($ac_try" in
6290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6291   *) ac_try_echo=$ac_try;;
6292 esac
6293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6294   (eval "$ac_compile") 2>conftest.er1
6295   ac_status=$?
6296   grep -v '^ *+' conftest.er1 >conftest.err
6297   rm -f conftest.er1
6298   cat conftest.err >&5
6299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300   (exit $ac_status); } && {
6301          test -z "$ac_c_werror_flag" ||
6302          test ! -s conftest.err
6303        } && test -s conftest.$ac_objext; then
6304   ac_header_compiler=yes
6305 else
6306   echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6308
6309         ac_header_compiler=no
6310 fi
6311
6312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6313 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6314 echo "${ECHO_T}$ac_header_compiler" >&6; }
6315
6316 # Is the header present?
6317 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6318 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h.  */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h.  */
6325 #include <$ac_header>
6326 _ACEOF
6327 if { (ac_try="$ac_cpp conftest.$ac_ext"
6328 case "(($ac_try" in
6329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330   *) ac_try_echo=$ac_try;;
6331 esac
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6334   ac_status=$?
6335   grep -v '^ *+' conftest.er1 >conftest.err
6336   rm -f conftest.er1
6337   cat conftest.err >&5
6338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6339   (exit $ac_status); } >/dev/null && {
6340          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6341          test ! -s conftest.err
6342        }; then
6343   ac_header_preproc=yes
6344 else
6345   echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6347
6348   ac_header_preproc=no
6349 fi
6350
6351 rm -f conftest.err conftest.$ac_ext
6352 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6353 echo "${ECHO_T}$ac_header_preproc" >&6; }
6354
6355 # So?  What about this header?
6356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6357   yes:no: )
6358     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6359 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6360     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6362     ac_header_preproc=yes
6363     ;;
6364   no:yes:* )
6365     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6366 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6367     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6368 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6369     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6370 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6371     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6372 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6373     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6375     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6376 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6377
6378     ;;
6379 esac
6380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6383   echo $ECHO_N "(cached) $ECHO_C" >&6
6384 else
6385   eval "$as_ac_Header=\$ac_header_preproc"
6386 fi
6387 ac_res=`eval echo '${'$as_ac_Header'}'`
6388                { echo "$as_me:$LINENO: result: $ac_res" >&5
6389 echo "${ECHO_T}$ac_res" >&6; }
6390
6391 fi
6392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6393   cat >>confdefs.h <<_ACEOF
6394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6395 _ACEOF
6396  HAVE_FREETYPE_FREETYPE_H=1
6397 fi
6398
6399 done
6400
6401 fi
6402
6403 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
6404         "x${FREETYPE_CONFIG}" '!=' "x";then
6405     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
6406         HAVE_FREETYPE=1
6407     fi
6408     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
6409         HAVE_FREETYPE=1
6410     fi
6411 fi
6412
6413 if test "x${HAVE_FREETYPE}" = "x1"; then
6414     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
6415         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
6416     else
6417         LIBS="$LIBS -lfreetype"
6418     fi
6419
6420     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
6421         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
6422     fi
6423
6424     { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
6425 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
6426
6427     cat > conftest.c << EOF
6428 $HAVE_FT2BUILD_H_DEFINE
6429
6430 #ifdef HAVE_FT2BUILD_H
6431 #include <ft2build.h>
6432 #include FT_FREETYPE_H
6433 #include FT_GLYPH_H
6434 #include FT_SIZES_H
6435 #include FT_SFNT_NAMES_H
6436 #include FT_TRUETYPE_IDS_H
6437 #include FT_OUTLINE_H
6438 #else
6439 #include <freetype/freetype.h>
6440 #include <freetype/ftglyph.h>
6441 #include <freetype/ftsizes.h>
6442 #include <freetype/ftsnames.h>
6443 #include <freetype/ttnameid.h>
6444 #include <freetype/ftoutln.h>
6445 #endif
6446
6447 int main()
6448 {
6449     FT_Library ftlibrary;
6450     FT_Face face;
6451     FT_Error error;
6452     FT_ULong charcode;
6453     FT_UInt gindex;
6454     FT_Glyph glyph;
6455     FT_BBox bbox;
6456     FT_Matrix matrix;
6457     FT_UInt i;
6458     char* name = 0;
6459     char italic, bold;
6460
6461     FT_Init_FreeType(&ftlibrary);
6462     FT_New_Face(ftlibrary, "filename", 0, &face);
6463     i = face->num_glyphs - 1;
6464     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
6465     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
6466     FT_Get_Postscript_Name(face);
6467     FT_Get_Char_Index(face, 33);
6468     FT_Get_First_Char(face, &i);
6469     FT_Get_Next_Char(face, 33, &i);
6470     if(FT_HAS_GLYPH_NAMES(face)) {
6471         FT_Get_Glyph_Name(face, 33, name, 127);
6472     }
6473     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
6474     FT_Get_Glyph(face->glyph, &glyph);
6475     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
6476     FT_Done_Glyph(glyph);
6477     FT_Done_Face(face);
6478     FT_Done_FreeType(ftlibrary);
6479     return 0;
6480 }
6481 EOF
6482
6483     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
6484     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6485         { echo "$as_me:$LINENO: result: yes" >&5
6486 echo "${ECHO_T}yes" >&6; }
6487         cat >>confdefs.h <<_ACEOF
6488 #define HAVE_FREETYPE 1
6489 _ACEOF
6490
6491         cat >>confdefs.h <<_ACEOF
6492 #define HAVE_FREETYPE_FREETYPE_H 1
6493 _ACEOF
6494
6495         cat >>confdefs.h <<_ACEOF
6496 #define USE_FREETYPE 1
6497 _ACEOF
6498   # for ttf2tp1
6499     else
6500         echo "configure: failed program was:" >&5
6501         cat conftest.c >&5
6502         HAVE_FREETYPE=0
6503         { echo "$as_me:$LINENO: result: no" >&5
6504 echo "${ECHO_T}no" >&6; }
6505     fi
6506     rm -f conftest*
6507 fi
6508
6509 # if the above didn't work out, reset all changes to the compiler variables.
6510 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
6511     CPPFLAGS=$OLDCPPFLAGS
6512     LIBS=$OLDLIBS
6513 fi
6514
6515
6516 #RFX_CHECK_FONTCONFIG
6517
6518 # ------------------------------------------------------------------
6519
6520 lame_objects=
6521 lame_makefile=
6522 if test "x${DISABLE_LAME}" = "xtrue"; then
6523     echo "*" Disabling lame support...
6524 else
6525     # old lame code at lib/lame
6526     if test -f lib/lame/Makefile.in; then
6527         lame_objects="lame/psymodel.\$(O) lame/fft.\$(O) lame/newmdct.\$(O) lame/quantize.\$(O) lame/takehiro.\$(O) lame/reservoir.\$(O) lame/quantize_pvt.\$(O) lame/vbrquantize.\$(O) lame/encoder.\$(O) lame/id3tag.\$(O) lame/version.\$(O) lame/tables.\$(O) lame/util.\$(O) lame/bitstream.\$(O) lame/set_get.\$(O) lame/VbrTag.\$(O) lame/lame.\$(O)"
6528         lame_makefile="lib/lame/Makefile"
6529         CPPFLAGS="$CPPFLAGS -Ilame"
6530         cat >>confdefs.h <<_ACEOF
6531 #define HAVE_LAME 1
6532 _ACEOF
6533
6534     else
6535         if test -d /usr/include/lame; then
6536             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
6537         else
6538             if test -d /usr/local/include/lame; then
6539                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
6540             fi
6541         fi
6542
6543 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
6544 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
6545 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
6546   echo $ECHO_N "(cached) $ECHO_C" >&6
6547 else
6548   ac_check_lib_save_LIBS=$LIBS
6549 LIBS="-lmp3lame  $LIBS"
6550 cat >conftest.$ac_ext <<_ACEOF
6551 /* confdefs.h.  */
6552 _ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h.  */
6556
6557 /* Override any GCC internal prototype to avoid an error.
6558    Use char because int might match the return type of a GCC
6559    builtin and then its argument prototype would still apply.  */
6560 #ifdef __cplusplus
6561 extern "C"
6562 #endif
6563 char lame_init ();
6564 int
6565 main ()
6566 {
6567 return lame_init ();
6568   ;
6569   return 0;
6570 }
6571 _ACEOF
6572 rm -f conftest.$ac_objext conftest$ac_exeext
6573 if { (ac_try="$ac_link"
6574 case "(($ac_try" in
6575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6576   *) ac_try_echo=$ac_try;;
6577 esac
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579   (eval "$ac_link") 2>conftest.er1
6580   ac_status=$?
6581   grep -v '^ *+' conftest.er1 >conftest.err
6582   rm -f conftest.er1
6583   cat conftest.err >&5
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); } && {
6586          test -z "$ac_c_werror_flag" ||
6587          test ! -s conftest.err
6588        } && test -s conftest$ac_exeext &&
6589        $as_test_x conftest$ac_exeext; then
6590   ac_cv_lib_mp3lame_lame_init=yes
6591 else
6592   echo "$as_me: failed program was:" >&5
6593 sed 's/^/| /' conftest.$ac_ext >&5
6594
6595         ac_cv_lib_mp3lame_lame_init=no
6596 fi
6597
6598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6599       conftest$ac_exeext conftest.$ac_ext
6600 LIBS=$ac_check_lib_save_LIBS
6601 fi
6602 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
6603 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
6604 if test $ac_cv_lib_mp3lame_lame_init = yes; then
6605   cat >>confdefs.h <<_ACEOF
6606 #define HAVE_LIBMP3LAME 1
6607 _ACEOF
6608
6609   LIBS="-lmp3lame $LIBS"
6610
6611 else
6612   NO_LIBMP3LAME=1
6613 fi
6614
6615
6616 for ac_header in lame.h
6617 do
6618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6620   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6623   echo $ECHO_N "(cached) $ECHO_C" >&6
6624 fi
6625 ac_res=`eval echo '${'$as_ac_Header'}'`
6626                { echo "$as_me:$LINENO: result: $ac_res" >&5
6627 echo "${ECHO_T}$ac_res" >&6; }
6628 else
6629   # Is the header compilable?
6630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6632 cat >conftest.$ac_ext <<_ACEOF
6633 /* confdefs.h.  */
6634 _ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h.  */
6638 $ac_includes_default
6639 #include <$ac_header>
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_header_compiler=yes
6659 else
6660   echo "$as_me: failed program was:" >&5
6661 sed 's/^/| /' conftest.$ac_ext >&5
6662
6663         ac_header_compiler=no
6664 fi
6665
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6668 echo "${ECHO_T}$ac_header_compiler" >&6; }
6669
6670 # Is the header present?
6671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6673 cat >conftest.$ac_ext <<_ACEOF
6674 /* confdefs.h.  */
6675 _ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h.  */
6679 #include <$ac_header>
6680 _ACEOF
6681 if { (ac_try="$ac_cpp conftest.$ac_ext"
6682 case "(($ac_try" in
6683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6684   *) ac_try_echo=$ac_try;;
6685 esac
6686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6687   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6688   ac_status=$?
6689   grep -v '^ *+' conftest.er1 >conftest.err
6690   rm -f conftest.er1
6691   cat conftest.err >&5
6692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693   (exit $ac_status); } >/dev/null && {
6694          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6695          test ! -s conftest.err
6696        }; then
6697   ac_header_preproc=yes
6698 else
6699   echo "$as_me: failed program was:" >&5
6700 sed 's/^/| /' conftest.$ac_ext >&5
6701
6702   ac_header_preproc=no
6703 fi
6704
6705 rm -f conftest.err conftest.$ac_ext
6706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6707 echo "${ECHO_T}$ac_header_preproc" >&6; }
6708
6709 # So?  What about this header?
6710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6711   yes:no: )
6712     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6714     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6716     ac_header_preproc=yes
6717     ;;
6718   no:yes:* )
6719     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6721     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6722 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6723     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6725     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6726 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6727     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6729     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6731
6732     ;;
6733 esac
6734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6737   echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739   eval "$as_ac_Header=\$ac_header_preproc"
6740 fi
6741 ac_res=`eval echo '${'$as_ac_Header'}'`
6742                { echo "$as_me:$LINENO: result: $ac_res" >&5
6743 echo "${ECHO_T}$ac_res" >&6; }
6744
6745 fi
6746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6747   cat >>confdefs.h <<_ACEOF
6748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6749 _ACEOF
6750
6751 fi
6752
6753 done
6754
6755         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
6756             cat >>confdefs.h <<_ACEOF
6757 #define HAVE_LAME 1
6758 _ACEOF
6759
6760         fi
6761     fi
6762 fi
6763
6764
6765 # ------------------------------------------------------------------
6766
6767
6768
6769 for ac_prog in avifile-config
6770 do
6771   # Extract the first word of "$ac_prog", so it can be a program name with args.
6772 set dummy $ac_prog; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   if test -n "$AVIFILE_CONFIG"; then
6779   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786   for ac_exec_ext in '' $ac_executable_extensions; do
6787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
6789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790     break 2
6791   fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
6799 if test -n "$AVIFILE_CONFIG"; then
6800   { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
6801 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
6802 else
6803   { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6805 fi
6806
6807
6808   test -n "$AVIFILE_CONFIG" && break
6809 done
6810
6811
6812 if test "x$AVIFILE_CONFIG" '!=' "x";then
6813     OLDCPPFLAGS="$CPPFLAGS"
6814     # temporarily add avifile paths to CPPFLAGS...
6815     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
6816
6817
6818 for ac_header in avifile/version.h version.h
6819 do
6820 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6822   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6825   echo $ECHO_N "(cached) $ECHO_C" >&6
6826 fi
6827 ac_res=`eval echo '${'$as_ac_Header'}'`
6828                { echo "$as_me:$LINENO: result: $ac_res" >&5
6829 echo "${ECHO_T}$ac_res" >&6; }
6830 else
6831   # Is the header compilable?
6832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6834 cat >conftest.$ac_ext <<_ACEOF
6835 /* confdefs.h.  */
6836 _ACEOF
6837 cat confdefs.h >>conftest.$ac_ext
6838 cat >>conftest.$ac_ext <<_ACEOF
6839 /* end confdefs.h.  */
6840 $ac_includes_default
6841 #include <$ac_header>
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (ac_try="$ac_compile"
6845 case "(($ac_try" in
6846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847   *) ac_try_echo=$ac_try;;
6848 esac
6849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6850   (eval "$ac_compile") 2>conftest.er1
6851   ac_status=$?
6852   grep -v '^ *+' conftest.er1 >conftest.err
6853   rm -f conftest.er1
6854   cat conftest.err >&5
6855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856   (exit $ac_status); } && {
6857          test -z "$ac_c_werror_flag" ||
6858          test ! -s conftest.err
6859        } && test -s conftest.$ac_objext; then
6860   ac_header_compiler=yes
6861 else
6862   echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865         ac_header_compiler=no
6866 fi
6867
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6870 echo "${ECHO_T}$ac_header_compiler" >&6; }
6871
6872 # Is the header present?
6873 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6874 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6875 cat >conftest.$ac_ext <<_ACEOF
6876 /* confdefs.h.  */
6877 _ACEOF
6878 cat confdefs.h >>conftest.$ac_ext
6879 cat >>conftest.$ac_ext <<_ACEOF
6880 /* end confdefs.h.  */
6881 #include <$ac_header>
6882 _ACEOF
6883 if { (ac_try="$ac_cpp conftest.$ac_ext"
6884 case "(($ac_try" in
6885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886   *) ac_try_echo=$ac_try;;
6887 esac
6888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6889   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6890   ac_status=$?
6891   grep -v '^ *+' conftest.er1 >conftest.err
6892   rm -f conftest.er1
6893   cat conftest.err >&5
6894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895   (exit $ac_status); } >/dev/null && {
6896          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6897          test ! -s conftest.err
6898        }; then
6899   ac_header_preproc=yes
6900 else
6901   echo "$as_me: failed program was:" >&5
6902 sed 's/^/| /' conftest.$ac_ext >&5
6903
6904   ac_header_preproc=no
6905 fi
6906
6907 rm -f conftest.err conftest.$ac_ext
6908 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6909 echo "${ECHO_T}$ac_header_preproc" >&6; }
6910
6911 # So?  What about this header?
6912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6913   yes:no: )
6914     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6916     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6918     ac_header_preproc=yes
6919     ;;
6920   no:yes:* )
6921     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6923     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6924 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6925     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6927     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6928 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6929     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6931     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6933
6934     ;;
6935 esac
6936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6939   echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941   eval "$as_ac_Header=\$ac_header_preproc"
6942 fi
6943 ac_res=`eval echo '${'$as_ac_Header'}'`
6944                { echo "$as_me:$LINENO: result: $ac_res" >&5
6945 echo "${ECHO_T}$ac_res" >&6; }
6946
6947 fi
6948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6949   cat >>confdefs.h <<_ACEOF
6950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6951 _ACEOF
6952
6953 fi
6954
6955 done
6956
6957     # ... and reset
6958     CPPFLAGS="$OLDCPPFLAGS"
6959 fi
6960
6961 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
6962 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
6963
6964 if test "x${ac_cv_header_version_h}" '=' "xyes";then
6965     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
6966 fi
6967 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
6968     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
6969 fi
6970
6971 cat > conftest.cpp << EOF
6972
6973 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
6974 // so we have to introduce them this way
6975 $HAVE_VERSION_H_DEFINE
6976 $HAVE_AVIFILE_VERSION_H_DEFINE
6977
6978 #ifdef HAVE_VERSION_H
6979   #include <version.h>
6980 #endif
6981 #ifdef HAVE_AVIFILE_VERSION_H
6982   #include <avifile/version.h>
6983 #endif
6984
6985 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
6986    #include <avifile.h>
6987    #include <aviplay.h>
6988    #include <avm_fourcc.h>
6989    #include <avm_creators.h>
6990    #include <StreamInfo.h>
6991    #define VERSION6
6992 #else
6993    #include <avifile.h>
6994    #include <aviplay.h>
6995    #include <aviutil.h>
6996    #define Width width
6997    #define Height height
6998    #define Data data
6999    #define Bpp bpp
7000 #endif
7001
7002 void test()
7003 {
7004   IAviReadFile* player;
7005   IAviReadStream* astream;
7006   IAviReadStream* vstream;
7007   player = CreateIAviReadFile(0);
7008   astream = player->GetStream(0, AviStream::Audio);
7009   vstream = player->GetStream(0, AviStream::Video);
7010   vstream -> StartStreaming();
7011   astream -> StartStreaming();
7012 #ifndef VERSION6
7013   MainAVIHeader head;
7014   player->GetFileHeader(&head);
7015   head.dwMicroSecPerFrame;
7016   head.dwTotalFrames;
7017   head.dwStreams;
7018   head.dwWidth;
7019   head.dwHeight;
7020   head.dwMicroSecPerFrame;
7021   astream->GetEndPos(),
7022   astream->GetEndTime());
7023   player->StreamCount();
7024 #else
7025   StreamInfo*audioinfo;
7026   StreamInfo*videoinfo;
7027   audioinfo = astream->GetStreamInfo();
7028   videoinfo = vstream->GetStreamInfo();
7029   videoinfo->GetVideoWidth();
7030   videoinfo->GetVideoHeight();
7031   audioinfo->GetAudioSamplesPerSec();
7032   videoinfo->GetFps();
7033 #endif
7034   CImage*img = vstream->GetFrame();
7035   img->ToRGB();
7036   img->Data();
7037   img->Bpp();
7038   img->Width();
7039   img->Height();
7040   WAVEFORMATEX wave;
7041   astream->GetAudioFormatInfo(&wave,0);
7042   uint_t a,b;
7043   astream->ReadFrames(0,0,0,a,b);
7044 }
7045 int main (int argc, char*argv)
7046 {
7047     return 0;
7048 }
7049 EOF
7050
7051 if test "x$AVIFILE_CONFIG" '!=' "x";then
7052     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
7053     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
7054     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
7055     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
7056       { echo "$as_me:$LINENO: result: yes" >&5
7057 echo "${ECHO_T}yes" >&6; }
7058       AVIFILE=true
7059       export AVIFILE
7060       cat >>confdefs.h <<_ACEOF
7061 #define AVIFILE true
7062 _ACEOF
7063
7064     else
7065       echo "configure: failed program was:" >&5
7066       cat conftest.cpp >&5
7067       { echo "$as_me:$LINENO: result: no" >&5
7068 echo "${ECHO_T}no" >&6; }
7069     fi
7070 else
7071     { echo "$as_me:$LINENO: result: no" >&5
7072 echo "${ECHO_T}no" >&6; }
7073 fi
7074 rm -f conftest*
7075
7076 if test "x${AVIFILE}" = "xtrue"; then
7077     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
7078     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
7079     cat >>confdefs.h <<_ACEOF
7080 #define HAVE_AVIFILE 1
7081 _ACEOF
7082
7083 fi
7084
7085 if test "x${WIN32}" != "x"; then
7086     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
7087     #if test "x${AVIFIL32}" != "x"; then
7088     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
7089     #fi
7090     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
7091     AVIFIL32=true
7092 fi
7093
7094
7095
7096 # ------------------------------------------------------------------
7097
7098 if test "x${UNCOMPRESS}" = "xgzip"; then
7099     cat >>confdefs.h <<_ACEOF
7100 #define USE_GZIP 1
7101 _ACEOF
7102
7103 fi
7104
7105
7106 # ------------------------------------------------------------------
7107
7108
7109 { echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
7110 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6; }
7111
7112 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
7113     PY_VERSION=unknown
7114 else
7115     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
7116         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
7117     fi
7118     # iterate through version 2.2 to 2.4
7119     for v in 2 3 4; do
7120         # Linux
7121         if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
7122             PY_VERSION=2.$v
7123             PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
7124             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
7125         # Mac OS X
7126         elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
7127             #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
7128             PY_VERSION=2.$v
7129             PYTHON_LIB="-framework Python"
7130             if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
7131                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
7132             else
7133                 PYTHON_LIB2="$PYTHON_LIB"
7134             fi
7135             PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
7136         # Mac OS X [Fink]:
7137         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
7138                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
7139                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
7140                   ")" \
7141                -a -f "/sw/include/python2.$v/Python.h" \
7142                -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
7143             PY_VERSION=2.$v
7144             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
7145             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
7146         fi
7147     done
7148 fi
7149
7150 if test "x$PY_VERSION" "!=" "x"; then
7151     { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
7152 echo "${ECHO_T}$PY_VERSION" >&6; }
7153     export PYTHON_INCLUDES PYTHON_LIB
7154
7155
7156     { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
7157 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
7158
7159     cat > conftest.c << EOF
7160 #include <Python.h>
7161 #include <Imaging.h>
7162
7163 int main()
7164 {
7165     int ret;
7166     ret = Py_Main(0, 0);
7167     int x; // check also for gcc 2.95.x incompatibilities
7168     return ret;
7169 }
7170 EOF
7171     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
7172     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7173         { echo "$as_me:$LINENO: result: yes" >&5
7174 echo "${ECHO_T}yes" >&6; }
7175         PYTHON_OK=yes
7176     else
7177         ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
7178         if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7179             { echo "$as_me:$LINENO: result: yes" >&5
7180 echo "${ECHO_T}yes" >&6; }
7181             PYTHON_LIB="${PYTHON_LIB2}"
7182             PYTHON_OK=yes
7183         else
7184             echo "configure: failed program was:" >&5
7185             cat conftest.c >&5
7186             { echo "$as_me:$LINENO: result: no" >&5
7187 echo "${ECHO_T}no" >&6; }
7188         fi
7189     fi
7190     rm -f conftest*
7191 else
7192     { echo "$as_me:$LINENO: result: nope" >&5
7193 echo "${ECHO_T}nope" >&6; }
7194 fi
7195
7196
7197 if test "x$PYTHON_OK" '!=' "xyes";then
7198     echo all install uninstall clean: > lib/python/Makefile
7199     # fail silently- the most users won't have any need for the
7200     # python interface anyway
7201 else
7202     pythonrfxswf="lib/python/Makefile"
7203 fi
7204
7205 # ------------------------------------------------------------------
7206
7207 { echo "$as_me:$LINENO: checking for missing libraries" >&5
7208 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
7209
7210 if test "x$ZLIBMISSING" = "xtrue";then
7211     MISSINGLIBS="${MISSINGLIBS} zlib"
7212     DISABLEPNG2SWF=true
7213     PARTIAL=true
7214 fi
7215 if test "x$JPEGLIBMISSING" = "xtrue";then
7216     MISSINGLIBS="${MISSINGLIBS} jpeglib"
7217     DISABLEPDF2SWF=true
7218     DISABLEJPEG2SWF=true
7219     PARTIAL=true
7220 fi
7221 if test "x$T1LIBMISSING" = "xtrue";then
7222     MISSINGLIBS="${MISSINGLIBS} t1lib"
7223 fi
7224 if test "x$UNGIFMISSING" = "xtrue";then
7225     DISABLEGIF2SWF=true
7226     MISSINGLIBS="${MISSINGLIBS} ungif"
7227     PARTIAL=true
7228 fi
7229
7230 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
7231     DISABLEPDF2SWF=true;
7232     DISABLEJPEG2SWF=true;
7233     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
7234     PARTIAL=true
7235 fi
7236 if test "x$HAVE_FREETYPE" '!=' "x1"; then
7237     DISABLEPDF2SWF=true;
7238     MISSINGLIBS="${MISSINGLIBS} freetype"
7239     PARTIAL=true
7240 fi
7241 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
7242     MISSINGLIBS="${MISSINGLIBS} t1lib.h"
7243 fi
7244 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
7245     DISABLEGIF2SWF=true
7246     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
7247     PARTIAL=true
7248 fi
7249 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
7250     DISABLEPNG2SWF=true;
7251     MISSINGLIBS="${MISSINGLIBS} zlib.h"
7252     PARTIAL=true
7253 fi
7254 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
7255     MISSINGLIBS="${MISSINGLIBS} avifile"
7256     PARTIAL=true
7257 fi
7258
7259 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
7260 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
7261
7262 # ------------------------------------------------------------------
7263
7264 if test "x${MISSINGLIBS}" '!=' "x"; then
7265   echo "***************************************************"
7266   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
7267 fi
7268
7269 avi2swf="avi2swf/Makefile"
7270 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
7271  echo "* Disabling avi2swf tool..."
7272  echo all install uninstall clean: > avi2swf/Makefile
7273  avi2swf=
7274 fi
7275
7276 pdf2swf_makefile="lib/pdf/Makefile"
7277 PDF2SWF='pdf2swf$(E)'
7278 LIBPDF='libpdf$(A)'
7279
7280 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
7281   echo "* Disabling pdf2swf tool..."
7282   rm -f lib/pdf/Makefile
7283   echo all install uninstall clean: > lib/pdf/Makefile
7284   pdf2swf_makefile=""
7285   PDF2SWF=
7286   LIBPDF=
7287 fi
7288
7289
7290
7291 if test "x${ZLIBMISSING}" = "xtrue"; then
7292   echo
7293   echo "* Warning! Without zlib, you will not be able to read"
7294   echo "* or write compressed Flash MX files!"
7295 fi
7296
7297 JPEG2SWF='jpeg2swf$(E)'
7298 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
7299   echo "* Disabling jpeg2swf tool..."
7300   JPEG2SWF=
7301 fi
7302 export JPEG2SWF
7303
7304
7305 GIF2SWF='gif2swf$(E)'
7306 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
7307   echo "* Disabling gif2swf tool..."
7308   GIF2SWF=
7309 fi
7310 export GIF2SWF
7311
7312
7313 PNG2SWF='png2swf$(E)'
7314 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
7315   echo "* Disabling png2swf tool..."
7316   PNG2SWF=
7317 fi
7318 export PNG2SWF
7319
7320
7321 if test "x${MISSINGLIBS}" '!=' "x"; then
7322   if test "x${PARTIAL}" '=' "x"; then
7323     echo "* (never mind)"
7324   fi
7325   echo "***************************************************"
7326 fi
7327
7328 # ------------------------------------------------------------------
7329
7330 if test -f "release.in"; then release_in="./release"; fi
7331 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile"
7332
7333 ac_config_files="$ac_config_files ${FILES}"
7334
7335 cat >confcache <<\_ACEOF
7336 # This file is a shell script that caches the results of configure
7337 # tests run on this system so they can be shared between configure
7338 # scripts and configure runs, see configure's option --config-cache.
7339 # It is not useful on other systems.  If it contains results you don't
7340 # want to keep, you may remove or edit it.
7341 #
7342 # config.status only pays attention to the cache file if you give it
7343 # the --recheck option to rerun configure.
7344 #
7345 # `ac_cv_env_foo' variables (set or unset) will be overridden when
7346 # loading this file, other *unset* `ac_cv_foo' will be assigned the
7347 # following values.
7348
7349 _ACEOF
7350
7351 # The following way of writing the cache mishandles newlines in values,
7352 # but we know of no workaround that is simple, portable, and efficient.
7353 # So, we kill variables containing newlines.
7354 # Ultrix sh set writes to stderr and can't be redirected directly,
7355 # and sets the high bit in the cache file unless we assign to the vars.
7356 (
7357   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7358     eval ac_val=\$$ac_var
7359     case $ac_val in #(
7360     *${as_nl}*)
7361       case $ac_var in #(
7362       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
7363 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
7364       esac
7365       case $ac_var in #(
7366       _ | IFS | as_nl) ;; #(
7367       *) $as_unset $ac_var ;;
7368       esac ;;
7369     esac
7370   done
7371
7372   (set) 2>&1 |
7373     case $as_nl`(ac_space=' '; set) 2>&1` in #(
7374     *${as_nl}ac_space=\ *)
7375       # `set' does not quote correctly, so add quotes (double-quote
7376       # substitution turns \\\\ into \\, and sed turns \\ into \).
7377       sed -n \
7378         "s/'/'\\\\''/g;
7379           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7380       ;; #(
7381     *)
7382       # `set' quotes correctly as required by POSIX, so do not add quotes.
7383       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7384       ;;
7385     esac |
7386     sort
7387 ) |
7388   sed '
7389      /^ac_cv_env_/b end
7390      t clear
7391      :clear
7392      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7393      t end
7394      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7395      :end' >>confcache
7396 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7397   if test -w "$cache_file"; then
7398     test "x$cache_file" != "x/dev/null" &&
7399       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
7400 echo "$as_me: updating cache $cache_file" >&6;}
7401     cat confcache >$cache_file
7402   else
7403     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
7404 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7405   fi
7406 fi
7407 rm -f confcache
7408
7409 test "x$prefix" = xNONE && prefix=$ac_default_prefix
7410 # Let make expand exec_prefix.
7411 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7412
7413 DEFS=-DHAVE_CONFIG_H
7414
7415 ac_libobjs=
7416 ac_ltlibobjs=
7417 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7418   # 1. Remove the extension, and $U if already installed.
7419   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7420   ac_i=`echo "$ac_i" | sed "$ac_script"`
7421   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
7422   #    will be set to the directory where LIBOBJS objects are built.
7423   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7424   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
7425 done
7426 LIBOBJS=$ac_libobjs
7427
7428 LTLIBOBJS=$ac_ltlibobjs
7429
7430
7431
7432 : ${CONFIG_STATUS=./config.status}
7433 ac_clean_files_save=$ac_clean_files
7434 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7435 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
7436 echo "$as_me: creating $CONFIG_STATUS" >&6;}
7437 cat >$CONFIG_STATUS <<_ACEOF
7438 #! $SHELL
7439 # Generated by $as_me.
7440 # Run this file to recreate the current configuration.
7441 # Compiler output produced by configure, useful for debugging
7442 # configure, is in config.log if it exists.
7443
7444 debug=false
7445 ac_cs_recheck=false
7446 ac_cs_silent=false
7447 SHELL=\${CONFIG_SHELL-$SHELL}
7448 _ACEOF
7449
7450 cat >>$CONFIG_STATUS <<\_ACEOF
7451 ## --------------------- ##
7452 ## M4sh Initialization.  ##
7453 ## --------------------- ##
7454
7455 # Be more Bourne compatible
7456 DUALCASE=1; export DUALCASE # for MKS sh
7457 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
7458   emulate sh
7459   NULLCMD=:
7460   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
7461   # is contrary to our usage.  Disable this feature.
7462   alias -g '${1+"$@"}'='"$@"'
7463   setopt NO_GLOB_SUBST
7464 else
7465   case `(set -o) 2>/dev/null` in
7466   *posix*) set -o posix ;;
7467 esac
7468
7469 fi
7470
7471
7472
7473
7474 # PATH needs CR
7475 # Avoid depending upon Character Ranges.
7476 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7477 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7478 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7479 as_cr_digits='0123456789'
7480 as_cr_alnum=$as_cr_Letters$as_cr_digits
7481
7482 # The user is always right.
7483 if test "${PATH_SEPARATOR+set}" != set; then
7484   echo "#! /bin/sh" >conf$$.sh
7485   echo  "exit 0"   >>conf$$.sh
7486   chmod +x conf$$.sh
7487   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7488     PATH_SEPARATOR=';'
7489   else
7490     PATH_SEPARATOR=:
7491   fi
7492   rm -f conf$$.sh
7493 fi
7494
7495 # Support unset when possible.
7496 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7497   as_unset=unset
7498 else
7499   as_unset=false
7500 fi
7501
7502
7503 # IFS
7504 # We need space, tab and new line, in precisely that order.  Quoting is
7505 # there to prevent editors from complaining about space-tab.
7506 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
7507 # splitting by setting IFS to empty value.)
7508 as_nl='
7509 '
7510 IFS=" ""        $as_nl"
7511
7512 # Find who we are.  Look in the path if we contain no directory separator.
7513 case $0 in
7514   *[\\/]* ) as_myself=$0 ;;
7515   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518   IFS=$as_save_IFS
7519   test -z "$as_dir" && as_dir=.
7520   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7521 done
7522 IFS=$as_save_IFS
7523
7524      ;;
7525 esac
7526 # We did not find ourselves, most probably we were run as `sh COMMAND'
7527 # in which case we are not to be found in the path.
7528 if test "x$as_myself" = x; then
7529   as_myself=$0
7530 fi
7531 if test ! -f "$as_myself"; then
7532   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7533   { (exit 1); exit 1; }
7534 fi
7535
7536 # Work around bugs in pre-3.0 UWIN ksh.
7537 for as_var in ENV MAIL MAILPATH
7538 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7539 done
7540 PS1='$ '
7541 PS2='> '
7542 PS4='+ '
7543
7544 # NLS nuisances.
7545 for as_var in \
7546   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
7547   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
7548   LC_TELEPHONE LC_TIME
7549 do
7550   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
7551     eval $as_var=C; export $as_var
7552   else
7553     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
7554   fi
7555 done
7556
7557 # Required to use basename.
7558 if expr a : '\(a\)' >/dev/null 2>&1 &&
7559    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7560   as_expr=expr
7561 else
7562   as_expr=false
7563 fi
7564
7565 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7566   as_basename=basename
7567 else
7568   as_basename=false
7569 fi
7570
7571
7572 # Name of the executable.
7573 as_me=`$as_basename -- "$0" ||
7574 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7575          X"$0" : 'X\(//\)$' \| \
7576          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7577 echo X/"$0" |
7578     sed '/^.*\/\([^/][^/]*\)\/*$/{
7579             s//\1/
7580             q
7581           }
7582           /^X\/\(\/\/\)$/{
7583             s//\1/
7584             q
7585           }
7586           /^X\/\(\/\).*/{
7587             s//\1/
7588             q
7589           }
7590           s/.*/./; q'`
7591
7592 # CDPATH.
7593 $as_unset CDPATH
7594
7595
7596
7597   as_lineno_1=$LINENO
7598   as_lineno_2=$LINENO
7599   test "x$as_lineno_1" != "x$as_lineno_2" &&
7600   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
7601
7602   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7603   # uniformly replaced by the line number.  The first 'sed' inserts a
7604   # line-number line after each line using $LINENO; the second 'sed'
7605   # does the real work.  The second script uses 'N' to pair each
7606   # line-number line with the line containing $LINENO, and appends
7607   # trailing '-' during substitution so that $LINENO is not a special
7608   # case at line end.
7609   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7610   # scripts with optimization help from Paolo Bonzini.  Blame Lee
7611   # E. McMahon (1931-1989) for sed's syntax.  :-)
7612   sed -n '
7613     p
7614     /[$]LINENO/=
7615   ' <$as_myself |
7616     sed '
7617       s/[$]LINENO.*/&-/
7618       t lineno
7619       b
7620       :lineno
7621       N
7622       :loop
7623       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
7624       t loop
7625       s/-\n.*//
7626     ' >$as_me.lineno &&
7627   chmod +x "$as_me.lineno" ||
7628     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
7629    { (exit 1); exit 1; }; }
7630
7631   # Don't try to exec as it changes $[0], causing all sort of problems
7632   # (the dirname of $[0] is not the place where we might find the
7633   # original and so on.  Autoconf is especially sensitive to this).
7634   . "./$as_me.lineno"
7635   # Exit status is that of the last command.
7636   exit
7637 }
7638
7639
7640 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7641   as_dirname=dirname
7642 else
7643   as_dirname=false
7644 fi
7645
7646 ECHO_C= ECHO_N= ECHO_T=
7647 case `echo -n x` in
7648 -n*)
7649   case `echo 'x\c'` in
7650   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
7651   *)   ECHO_C='\c';;
7652   esac;;
7653 *)
7654   ECHO_N='-n';;
7655 esac
7656
7657 if expr a : '\(a\)' >/dev/null 2>&1 &&
7658    test "X`expr 00001 : '.*\(...\)'`" = X001; then
7659   as_expr=expr
7660 else
7661   as_expr=false
7662 fi
7663
7664 rm -f conf$$ conf$$.exe conf$$.file
7665 if test -d conf$$.dir; then
7666   rm -f conf$$.dir/conf$$.file
7667 else
7668   rm -f conf$$.dir
7669   mkdir conf$$.dir
7670 fi
7671 echo >conf$$.file
7672 if ln -s conf$$.file conf$$ 2>/dev/null; then
7673   as_ln_s='ln -s'
7674   # ... but there are two gotchas:
7675   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7676   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7677   # In both cases, we have to default to `cp -p'.
7678   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7679     as_ln_s='cp -p'
7680 elif ln conf$$.file conf$$ 2>/dev/null; then
7681   as_ln_s=ln
7682 else
7683   as_ln_s='cp -p'
7684 fi
7685 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7686 rmdir conf$$.dir 2>/dev/null
7687
7688 if mkdir -p . 2>/dev/null; then
7689   as_mkdir_p=:
7690 else
7691   test -d ./-p && rmdir ./-p
7692   as_mkdir_p=false
7693 fi
7694
7695 if test -x / >/dev/null 2>&1; then
7696   as_test_x='test -x'
7697 else
7698   if ls -dL / >/dev/null 2>&1; then
7699     as_ls_L_option=L
7700   else
7701     as_ls_L_option=
7702   fi
7703   as_test_x='
7704     eval sh -c '\''
7705       if test -d "$1"; then
7706         test -d "$1/.";
7707       else
7708         case $1 in
7709         -*)set "./$1";;
7710         esac;
7711         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
7712         ???[sx]*):;;*)false;;esac;fi
7713     '\'' sh
7714   '
7715 fi
7716 as_executable_p=$as_test_x
7717
7718 # Sed expression to map a string onto a valid CPP name.
7719 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7720
7721 # Sed expression to map a string onto a valid variable name.
7722 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7723
7724
7725 exec 6>&1
7726
7727 # Save the log message, to keep $[0] and so on meaningful, and to
7728 # report actual input values of CONFIG_FILES etc. instead of their
7729 # values after options handling.
7730 ac_log="
7731 This file was extended by $as_me, which was
7732 generated by GNU Autoconf 2.61.  Invocation command line was
7733
7734   CONFIG_FILES    = $CONFIG_FILES
7735   CONFIG_HEADERS  = $CONFIG_HEADERS
7736   CONFIG_LINKS    = $CONFIG_LINKS
7737   CONFIG_COMMANDS = $CONFIG_COMMANDS
7738   $ $0 $@
7739
7740 on `(hostname || uname -n) 2>/dev/null | sed 1q`
7741 "
7742
7743 _ACEOF
7744
7745 cat >>$CONFIG_STATUS <<_ACEOF
7746 # Files that config.status was made for.
7747 config_files="$ac_config_files"
7748 config_headers="$ac_config_headers"
7749
7750 _ACEOF
7751
7752 cat >>$CONFIG_STATUS <<\_ACEOF
7753 ac_cs_usage="\
7754 \`$as_me' instantiates files from templates according to the
7755 current configuration.
7756
7757 Usage: $0 [OPTIONS] [FILE]...
7758
7759   -h, --help       print this help, then exit
7760   -V, --version    print version number and configuration settings, then exit
7761   -q, --quiet      do not print progress messages
7762   -d, --debug      don't remove temporary files
7763       --recheck    update $as_me by reconfiguring in the same conditions
7764   --file=FILE[:TEMPLATE]
7765                    instantiate the configuration file FILE
7766   --header=FILE[:TEMPLATE]
7767                    instantiate the configuration header FILE
7768
7769 Configuration files:
7770 $config_files
7771
7772 Configuration headers:
7773 $config_headers
7774
7775 Report bugs to <bug-autoconf@gnu.org>."
7776
7777 _ACEOF
7778 cat >>$CONFIG_STATUS <<_ACEOF
7779 ac_cs_version="\\
7780 config.status
7781 configured by $0, generated by GNU Autoconf 2.61,
7782   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
7783
7784 Copyright (C) 2006 Free Software Foundation, Inc.
7785 This config.status script is free software; the Free Software Foundation
7786 gives unlimited permission to copy, distribute and modify it."
7787
7788 ac_pwd='$ac_pwd'
7789 srcdir='$srcdir'
7790 INSTALL='$INSTALL'
7791 _ACEOF
7792
7793 cat >>$CONFIG_STATUS <<\_ACEOF
7794 # If no file are specified by the user, then we need to provide default
7795 # value.  By we need to know if files were specified by the user.
7796 ac_need_defaults=:
7797 while test $# != 0
7798 do
7799   case $1 in
7800   --*=*)
7801     ac_option=`expr "X$1" : 'X\([^=]*\)='`
7802     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7803     ac_shift=:
7804     ;;
7805   *)
7806     ac_option=$1
7807     ac_optarg=$2
7808     ac_shift=shift
7809     ;;
7810   esac
7811
7812   case $ac_option in
7813   # Handling of the options.
7814   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7815     ac_cs_recheck=: ;;
7816   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7817     echo "$ac_cs_version"; exit ;;
7818   --debug | --debu | --deb | --de | --d | -d )
7819     debug=: ;;
7820   --file | --fil | --fi | --f )
7821     $ac_shift
7822     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7823     ac_need_defaults=false;;
7824   --header | --heade | --head | --hea )
7825     $ac_shift
7826     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7827     ac_need_defaults=false;;
7828   --he | --h)
7829     # Conflict between --help and --header
7830     { echo "$as_me: error: ambiguous option: $1
7831 Try \`$0 --help' for more information." >&2
7832    { (exit 1); exit 1; }; };;
7833   --help | --hel | -h )
7834     echo "$ac_cs_usage"; exit ;;
7835   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7836   | -silent | --silent | --silen | --sile | --sil | --si | --s)
7837     ac_cs_silent=: ;;
7838
7839   # This is an error.
7840   -*) { echo "$as_me: error: unrecognized option: $1
7841 Try \`$0 --help' for more information." >&2
7842    { (exit 1); exit 1; }; } ;;
7843
7844   *) ac_config_targets="$ac_config_targets $1"
7845      ac_need_defaults=false ;;
7846
7847   esac
7848   shift
7849 done
7850
7851 ac_configure_extra_args=
7852
7853 if $ac_cs_silent; then
7854   exec 6>/dev/null
7855   ac_configure_extra_args="$ac_configure_extra_args --silent"
7856 fi
7857
7858 _ACEOF
7859 cat >>$CONFIG_STATUS <<_ACEOF
7860 if \$ac_cs_recheck; then
7861   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7862   CONFIG_SHELL=$SHELL
7863   export CONFIG_SHELL
7864   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7865 fi
7866
7867 _ACEOF
7868 cat >>$CONFIG_STATUS <<\_ACEOF
7869 exec 5>>config.log
7870 {
7871   echo
7872   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7873 ## Running $as_me. ##
7874 _ASBOX
7875   echo "$ac_log"
7876 } >&5
7877
7878 _ACEOF
7879 cat >>$CONFIG_STATUS <<_ACEOF
7880 _ACEOF
7881
7882 cat >>$CONFIG_STATUS <<\_ACEOF
7883
7884 # Handling of arguments.
7885 for ac_config_target in $ac_config_targets
7886 do
7887   case $ac_config_target in
7888     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7889     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
7890
7891   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7892 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7893    { (exit 1); exit 1; }; };;
7894   esac
7895 done
7896
7897
7898 # If the user did not use the arguments to specify the items to instantiate,
7899 # then the envvar interface is used.  Set only those that are not.
7900 # We use the long form for the default assignment because of an extremely
7901 # bizarre bug on SunOS 4.1.3.
7902 if $ac_need_defaults; then
7903   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7904   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7905 fi
7906
7907 # Have a temporary directory for convenience.  Make it in the build tree
7908 # simply because there is no reason against having it here, and in addition,
7909 # creating and moving files from /tmp can sometimes cause problems.
7910 # Hook for its removal unless debugging.
7911 # Note that there is a small window in which the directory will not be cleaned:
7912 # after its creation but before its name has been assigned to `$tmp'.
7913 $debug ||
7914 {
7915   tmp=
7916   trap 'exit_status=$?
7917   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
7918 ' 0
7919   trap '{ (exit 1); exit 1; }' 1 2 13 15
7920 }
7921 # Create a (secure) tmp directory for tmp files.
7922
7923 {
7924   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7925   test -n "$tmp" && test -d "$tmp"
7926 }  ||
7927 {
7928   tmp=./conf$$-$RANDOM
7929   (umask 077 && mkdir "$tmp")
7930 } ||
7931 {
7932    echo "$me: cannot create a temporary directory in ." >&2
7933    { (exit 1); exit 1; }
7934 }
7935
7936 #
7937 # Set up the sed scripts for CONFIG_FILES section.
7938 #
7939
7940 # No need to generate the scripts if there are no CONFIG_FILES.
7941 # This happens for instance when ./config.status config.h
7942 if test -n "$CONFIG_FILES"; then
7943
7944 _ACEOF
7945
7946
7947
7948 ac_delim='%!_!# '
7949 for ac_last_try in false false false false false :; do
7950   cat >conf$$subs.sed <<_ACEOF
7951 SHELL!$SHELL$ac_delim
7952 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
7953 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
7954 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
7955 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
7956 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
7957 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
7958 exec_prefix!$exec_prefix$ac_delim
7959 prefix!$prefix$ac_delim
7960 program_transform_name!$program_transform_name$ac_delim
7961 bindir!$bindir$ac_delim
7962 sbindir!$sbindir$ac_delim
7963 libexecdir!$libexecdir$ac_delim
7964 datarootdir!$datarootdir$ac_delim
7965 datadir!$datadir$ac_delim
7966 sysconfdir!$sysconfdir$ac_delim
7967 sharedstatedir!$sharedstatedir$ac_delim
7968 localstatedir!$localstatedir$ac_delim
7969 includedir!$includedir$ac_delim
7970 oldincludedir!$oldincludedir$ac_delim
7971 docdir!$docdir$ac_delim
7972 infodir!$infodir$ac_delim
7973 htmldir!$htmldir$ac_delim
7974 dvidir!$dvidir$ac_delim
7975 pdfdir!$pdfdir$ac_delim
7976 psdir!$psdir$ac_delim
7977 libdir!$libdir$ac_delim
7978 localedir!$localedir$ac_delim
7979 mandir!$mandir$ac_delim
7980 DEFS!$DEFS$ac_delim
7981 ECHO_C!$ECHO_C$ac_delim
7982 ECHO_N!$ECHO_N$ac_delim
7983 ECHO_T!$ECHO_T$ac_delim
7984 LIBS!$LIBS$ac_delim
7985 build_alias!$build_alias$ac_delim
7986 host_alias!$host_alias$ac_delim
7987 target_alias!$target_alias$ac_delim
7988 build!$build$ac_delim
7989 build_cpu!$build_cpu$ac_delim
7990 build_vendor!$build_vendor$ac_delim
7991 build_os!$build_os$ac_delim
7992 host!$host$ac_delim
7993 host_cpu!$host_cpu$ac_delim
7994 host_vendor!$host_vendor$ac_delim
7995 host_os!$host_os$ac_delim
7996 SHARED!$SHARED$ac_delim
7997 CC!$CC$ac_delim
7998 CFLAGS!$CFLAGS$ac_delim
7999 LDFLAGS!$LDFLAGS$ac_delim
8000 CPPFLAGS!$CPPFLAGS$ac_delim
8001 ac_ct_CC!$ac_ct_CC$ac_delim
8002 EXEEXT!$EXEEXT$ac_delim
8003 OBJEXT!$OBJEXT$ac_delim
8004 CXX!$CXX$ac_delim
8005 CXXFLAGS!$CXXFLAGS$ac_delim
8006 ac_ct_CXX!$ac_ct_CXX$ac_delim
8007 CPP!$CPP$ac_delim
8008 RANLIB!$RANLIB$ac_delim
8009 SET_MAKE!$SET_MAKE$ac_delim
8010 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
8011 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
8012 INSTALL_DATA!$INSTALL_DATA$ac_delim
8013 LN_S!$LN_S$ac_delim
8014 UNCOMPRESS!$UNCOMPRESS$ac_delim
8015 AREXT!$AREXT$ac_delim
8016 AR!$AR$ac_delim
8017 SLEXT!$SLEXT$ac_delim
8018 CXXLIBS!$CXXLIBS$ac_delim
8019 STRIP!$STRIP$ac_delim
8020 target!$target$ac_delim
8021 target_cpu!$target_cpu$ac_delim
8022 target_vendor!$target_vendor$ac_delim
8023 target_os!$target_os$ac_delim
8024 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
8025 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
8026 GREP!$GREP$ac_delim
8027 EGREP!$EGREP$ac_delim
8028 PACKAGE!$PACKAGE$ac_delim
8029 VERSION!$VERSION$ac_delim
8030 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
8031 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
8032 lame_objects!$lame_objects$ac_delim
8033 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
8034 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
8035 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
8036 USE_GZIP!$USE_GZIP$ac_delim
8037 PYTHON_LIB!$PYTHON_LIB$ac_delim
8038 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
8039 PDF2SWF!$PDF2SWF$ac_delim
8040 LIBPDF!$LIBPDF$ac_delim
8041 JPEG2SWF!$JPEG2SWF$ac_delim
8042 GIF2SWF!$GIF2SWF$ac_delim
8043 PNG2SWF!$PNG2SWF$ac_delim
8044 LIBOBJS!$LIBOBJS$ac_delim
8045 LTLIBOBJS!$LTLIBOBJS$ac_delim
8046 _ACEOF
8047
8048   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
8049     break
8050   elif $ac_last_try; then
8051     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
8052 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
8053    { (exit 1); exit 1; }; }
8054   else
8055     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8056   fi
8057 done
8058
8059 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
8060 if test -n "$ac_eof"; then
8061   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
8062   ac_eof=`expr $ac_eof + 1`
8063 fi
8064
8065 cat >>$CONFIG_STATUS <<_ACEOF
8066 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
8067 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
8068 _ACEOF
8069 sed '
8070 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
8071 s/^/s,@/; s/!/@,|#_!!_#|/
8072 :n
8073 t n
8074 s/'"$ac_delim"'$/,g/; t
8075 s/$/\\/; p
8076 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
8077 ' >>$CONFIG_STATUS <conf$$subs.sed
8078 rm -f conf$$subs.sed
8079 cat >>$CONFIG_STATUS <<_ACEOF
8080 :end
8081 s/|#_!!_#|//g
8082 CEOF$ac_eof
8083 _ACEOF
8084
8085
8086 # VPATH may cause trouble with some makes, so we remove $(srcdir),
8087 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
8088 # trailing colons and then remove the whole line if VPATH becomes empty
8089 # (actually we leave an empty line to preserve line numbers).
8090 if test "x$srcdir" = x.; then
8091   ac_vpsub='/^[  ]*VPATH[        ]*=/{
8092 s/:*\$(srcdir):*/:/
8093 s/:*\${srcdir}:*/:/
8094 s/:*@srcdir@:*/:/
8095 s/^\([^=]*=[     ]*\):*/\1/
8096 s/:*$//
8097 s/^[^=]*=[       ]*$//
8098 }'
8099 fi
8100
8101 cat >>$CONFIG_STATUS <<\_ACEOF
8102 fi # test -n "$CONFIG_FILES"
8103
8104
8105 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
8106 do
8107   case $ac_tag in
8108   :[FHLC]) ac_mode=$ac_tag; continue;;
8109   esac
8110   case $ac_mode$ac_tag in
8111   :[FHL]*:*);;
8112   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
8113 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
8114    { (exit 1); exit 1; }; };;
8115   :[FH]-) ac_tag=-:-;;
8116   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8117   esac
8118   ac_save_IFS=$IFS
8119   IFS=:
8120   set x $ac_tag
8121   IFS=$ac_save_IFS
8122   shift
8123   ac_file=$1
8124   shift
8125
8126   case $ac_mode in
8127   :L) ac_source=$1;;
8128   :[FH])
8129     ac_file_inputs=
8130     for ac_f
8131     do
8132       case $ac_f in
8133       -) ac_f="$tmp/stdin";;
8134       *) # Look for the file first in the build tree, then in the source tree
8135          # (if the path is not absolute).  The absolute path cannot be DOS-style,
8136          # because $ac_f cannot contain `:'.
8137          test -f "$ac_f" ||
8138            case $ac_f in
8139            [\\/$]*) false;;
8140            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8141            esac ||
8142            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
8143 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
8144    { (exit 1); exit 1; }; };;
8145       esac
8146       ac_file_inputs="$ac_file_inputs $ac_f"
8147     done
8148
8149     # Let's still pretend it is `configure' which instantiates (i.e., don't
8150     # use $as_me), people would be surprised to read:
8151     #    /* config.h.  Generated by config.status.  */
8152     configure_input="Generated from "`IFS=:
8153           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
8154     if test x"$ac_file" != x-; then
8155       configure_input="$ac_file.  $configure_input"
8156       { echo "$as_me:$LINENO: creating $ac_file" >&5
8157 echo "$as_me: creating $ac_file" >&6;}
8158     fi
8159
8160     case $ac_tag in
8161     *:-:* | *:-) cat >"$tmp/stdin";;
8162     esac
8163     ;;
8164   esac
8165
8166   ac_dir=`$as_dirname -- "$ac_file" ||
8167 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8168          X"$ac_file" : 'X\(//\)[^/]' \| \
8169          X"$ac_file" : 'X\(//\)$' \| \
8170          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8171 echo X"$ac_file" |
8172     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8173             s//\1/
8174             q
8175           }
8176           /^X\(\/\/\)[^/].*/{
8177             s//\1/
8178             q
8179           }
8180           /^X\(\/\/\)$/{
8181             s//\1/
8182             q
8183           }
8184           /^X\(\/\).*/{
8185             s//\1/
8186             q
8187           }
8188           s/.*/./; q'`
8189   { as_dir="$ac_dir"
8190   case $as_dir in #(
8191   -*) as_dir=./$as_dir;;
8192   esac
8193   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
8194     as_dirs=
8195     while :; do
8196       case $as_dir in #(
8197       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
8198       *) as_qdir=$as_dir;;
8199       esac
8200       as_dirs="'$as_qdir' $as_dirs"
8201       as_dir=`$as_dirname -- "$as_dir" ||
8202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8203          X"$as_dir" : 'X\(//\)[^/]' \| \
8204          X"$as_dir" : 'X\(//\)$' \| \
8205          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8206 echo X"$as_dir" |
8207     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8208             s//\1/
8209             q
8210           }
8211           /^X\(\/\/\)[^/].*/{
8212             s//\1/
8213             q
8214           }
8215           /^X\(\/\/\)$/{
8216             s//\1/
8217             q
8218           }
8219           /^X\(\/\).*/{
8220             s//\1/
8221             q
8222           }
8223           s/.*/./; q'`
8224       test -d "$as_dir" && break
8225     done
8226     test -z "$as_dirs" || eval "mkdir $as_dirs"
8227   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
8228 echo "$as_me: error: cannot create directory $as_dir" >&2;}
8229    { (exit 1); exit 1; }; }; }
8230   ac_builddir=.
8231
8232 case "$ac_dir" in
8233 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8234 *)
8235   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
8236   # A ".." for each directory in $ac_dir_suffix.
8237   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
8238   case $ac_top_builddir_sub in
8239   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8240   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8241   esac ;;
8242 esac
8243 ac_abs_top_builddir=$ac_pwd
8244 ac_abs_builddir=$ac_pwd$ac_dir_suffix
8245 # for backward compatibility:
8246 ac_top_builddir=$ac_top_build_prefix
8247
8248 case $srcdir in
8249   .)  # We are building in place.
8250     ac_srcdir=.
8251     ac_top_srcdir=$ac_top_builddir_sub
8252     ac_abs_top_srcdir=$ac_pwd ;;
8253   [\\/]* | ?:[\\/]* )  # Absolute name.
8254     ac_srcdir=$srcdir$ac_dir_suffix;
8255     ac_top_srcdir=$srcdir
8256     ac_abs_top_srcdir=$srcdir ;;
8257   *) # Relative name.
8258     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8259     ac_top_srcdir=$ac_top_build_prefix$srcdir
8260     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8261 esac
8262 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8263
8264
8265   case $ac_mode in
8266   :F)
8267   #
8268   # CONFIG_FILE
8269   #
8270
8271   case $INSTALL in
8272   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8273   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8274   esac
8275 _ACEOF
8276
8277 cat >>$CONFIG_STATUS <<\_ACEOF
8278 # If the template does not know about datarootdir, expand it.
8279 # FIXME: This hack should be removed a few years after 2.60.
8280 ac_datarootdir_hack=; ac_datarootdir_seen=
8281
8282 case `sed -n '/datarootdir/ {
8283   p
8284   q
8285 }
8286 /@datadir@/p
8287 /@docdir@/p
8288 /@infodir@/p
8289 /@localedir@/p
8290 /@mandir@/p
8291 ' $ac_file_inputs` in
8292 *datarootdir*) ac_datarootdir_seen=yes;;
8293 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8294   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8295 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8296 _ACEOF
8297 cat >>$CONFIG_STATUS <<_ACEOF
8298   ac_datarootdir_hack='
8299   s&@datadir@&$datadir&g
8300   s&@docdir@&$docdir&g
8301   s&@infodir@&$infodir&g
8302   s&@localedir@&$localedir&g
8303   s&@mandir@&$mandir&g
8304     s&\\\${datarootdir}&$datarootdir&g' ;;
8305 esac
8306 _ACEOF
8307
8308 # Neutralize VPATH when `$srcdir' = `.'.
8309 # Shell code in configure.ac might set extrasub.
8310 # FIXME: do we really want to maintain this feature?
8311 cat >>$CONFIG_STATUS <<_ACEOF
8312   sed "$ac_vpsub
8313 $extrasub
8314 _ACEOF
8315 cat >>$CONFIG_STATUS <<\_ACEOF
8316 :t
8317 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8318 s&@configure_input@&$configure_input&;t t
8319 s&@top_builddir@&$ac_top_builddir_sub&;t t
8320 s&@srcdir@&$ac_srcdir&;t t
8321 s&@abs_srcdir@&$ac_abs_srcdir&;t t
8322 s&@top_srcdir@&$ac_top_srcdir&;t t
8323 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8324 s&@builddir@&$ac_builddir&;t t
8325 s&@abs_builddir@&$ac_abs_builddir&;t t
8326 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8327 s&@INSTALL@&$ac_INSTALL&;t t
8328 $ac_datarootdir_hack
8329 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
8330
8331 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8332   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
8333   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
8334   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8335 which seems to be undefined.  Please make sure it is defined." >&5
8336 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8337 which seems to be undefined.  Please make sure it is defined." >&2;}
8338
8339   rm -f "$tmp/stdin"
8340   case $ac_file in
8341   -) cat "$tmp/out"; rm -f "$tmp/out";;
8342   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
8343   esac
8344  ;;
8345   :H)
8346   #
8347   # CONFIG_HEADER
8348   #
8349 _ACEOF
8350
8351 # Transform confdefs.h into a sed script `conftest.defines', that
8352 # substitutes the proper values into config.h.in to produce config.h.
8353 rm -f conftest.defines conftest.tail
8354 # First, append a space to every undef/define line, to ease matching.
8355 echo 's/$/ /' >conftest.defines
8356 # Then, protect against being on the right side of a sed subst, or in
8357 # an unquoted here document, in config.status.  If some macros were
8358 # called several times there might be several #defines for the same
8359 # symbol, which is useless.  But do not sort them, since the last
8360 # AC_DEFINE must be honored.
8361 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8362 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
8363 # NAME is the cpp macro being defined, VALUE is the value it is being given.
8364 # PARAMS is the parameter list in the macro definition--in most cases, it's
8365 # just an empty string.
8366 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
8367 ac_dB='\\)[      (].*,\\1define\\2'
8368 ac_dC=' '
8369 ac_dD=' ,'
8370
8371 uniq confdefs.h |
8372   sed -n '
8373         t rset
8374         :rset
8375         s/^[     ]*#[    ]*define[       ][      ]*//
8376         t ok
8377         d
8378         :ok
8379         s/[\\&,]/\\&/g
8380         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
8381         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
8382   ' >>conftest.defines
8383
8384 # Remove the space that was appended to ease matching.
8385 # Then replace #undef with comments.  This is necessary, for
8386 # example, in the case of _POSIX_SOURCE, which is predefined and required
8387 # on some systems where configure will not decide to define it.
8388 # (The regexp can be short, since the line contains either #define or #undef.)
8389 echo 's/ $//
8390 s,^[     #]*u.*,/* & */,' >>conftest.defines
8391
8392 # Break up conftest.defines:
8393 ac_max_sed_lines=50
8394
8395 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
8396 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
8397 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
8398 # et cetera.
8399 ac_in='$ac_file_inputs'
8400 ac_out='"$tmp/out1"'
8401 ac_nxt='"$tmp/out2"'
8402
8403 while :
8404 do
8405   # Write a here document:
8406     cat >>$CONFIG_STATUS <<_ACEOF
8407     # First, check the format of the line:
8408     cat >"\$tmp/defines.sed" <<\\CEOF
8409 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
8410 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
8411 b
8412 :def
8413 _ACEOF
8414   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
8415   echo 'CEOF
8416     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
8417   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
8418   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
8419   grep . conftest.tail >/dev/null || break
8420   rm -f conftest.defines
8421   mv conftest.tail conftest.defines
8422 done
8423 rm -f conftest.defines conftest.tail
8424
8425 echo "ac_result=$ac_in" >>$CONFIG_STATUS
8426 cat >>$CONFIG_STATUS <<\_ACEOF
8427   if test x"$ac_file" != x-; then
8428     echo "/* $configure_input  */" >"$tmp/config.h"
8429     cat "$ac_result" >>"$tmp/config.h"
8430     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
8431       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
8432 echo "$as_me: $ac_file is unchanged" >&6;}
8433     else
8434       rm -f $ac_file
8435       mv "$tmp/config.h" $ac_file
8436     fi
8437   else
8438     echo "/* $configure_input  */"
8439     cat "$ac_result"
8440   fi
8441   rm -f "$tmp/out12"
8442  ;;
8443
8444
8445   esac
8446
8447 done # for ac_tag
8448
8449
8450 { (exit 0); exit 0; }
8451 _ACEOF
8452 chmod +x $CONFIG_STATUS
8453 ac_clean_files=$ac_clean_files_save
8454
8455
8456 # configure is writing to config.log, and then calls config.status.
8457 # config.status does its own redirection, appending to config.log.
8458 # Unfortunately, on DOS this fails, as config.log is still kept open
8459 # by configure, so config.status won't be able to write to it; its
8460 # output is simply discarded.  So we exec the FD to /dev/null,
8461 # effectively closing config.log, so it can be properly (re)opened and
8462 # appended to by config.status.  When coming back to configure, we
8463 # need to make the FD available again.
8464 if test "$no_create" != yes; then
8465   ac_cs_success=:
8466   ac_config_status_args=
8467   test "$silent" = yes &&
8468     ac_config_status_args="$ac_config_status_args --quiet"
8469   exec 5>/dev/null
8470   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8471   exec 5>>config.log
8472   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8473   # would make configure fail if this is the last instruction.
8474   $ac_cs_success || { (exit 1); exit 1; }
8475 fi
8476
8477
8478
8479 #
8480 # On development trees, create snapshots of config.status
8481 #
8482 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
8483     if test "x${MINGW}" = "xyes"; then
8484         echo cp config.status config.status.win32
8485         cp config.status config.status.win32
8486     else
8487         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
8488             echo cp config.status config.status.linux
8489             cp config.status config.status.linux
8490         fi
8491         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
8492             echo cp config.status config.status.debug
8493             cp config.status config.status.debug
8494         fi
8495         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
8496             echo cp config.status config.status.optimize
8497             cp config.status config.status.optimize
8498         fi
8499     fi
8500 fi