detect ruby in configure script
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 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   # Pre-4.2 versions of Zsh do 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 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="src/"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 PNG2SWF
641 GIF2SWF
642 JPEG2SWF
643 PDF2PDF
644 DEVICE_PDF
645 LIBPDF
646 PDF2SWF
647 RUBY_LDFLAGS
648 RUBY_CPPFLAGS
649 RUBY_LIBS
650 RUBY
651 HAVE_PYTHON_IMAGING
652 PYTHON_INCLUDES
653 PYTHON_LIB
654 USE_GZIP
655 VIDEO_CFLAGS
656 VIDEO_LIBS
657 AVIFILE_CONFIG
658 splash_in_source
659 xpdf_in_source
660 lame_in_source
661 DEVICE_OPENGL
662 FREETYPE_CONFIG
663 HAVE_UNISTD_H
664 VERSION
665 PACKAGE
666 EGREP
667 GREP
668 SYSTEM_BACKTICKS
669 WORDS_BIGENDIAN
670 target_os
671 target_vendor
672 target_cpu
673 target
674 STRIP
675 CXXLIBS
676 SLEXT
677 AR
678 AREXT
679 UNCOMPRESS
680 LN_S
681 INSTALL_DATA
682 INSTALL_SCRIPT
683 INSTALL_PROGRAM
684 SET_MAKE
685 RANLIB
686 CPP
687 ac_ct_CXX
688 CXXFLAGS
689 CXX
690 OBJEXT
691 EXEEXT
692 ac_ct_CC
693 CPPFLAGS
694 LDFLAGS
695 CFLAGS
696 CC
697 SHARED
698 host_os
699 host_vendor
700 host_cpu
701 host
702 build_os
703 build_vendor
704 build_cpu
705 build
706 target_alias
707 host_alias
708 build_alias
709 LIBS
710 ECHO_T
711 ECHO_N
712 ECHO_C
713 DEFS
714 mandir
715 localedir
716 libdir
717 psdir
718 pdfdir
719 dvidir
720 htmldir
721 infodir
722 docdir
723 oldincludedir
724 includedir
725 localstatedir
726 sharedstatedir
727 sysconfdir
728 datadir
729 datarootdir
730 libexecdir
731 sbindir
732 bindir
733 program_transform_name
734 prefix
735 exec_prefix
736 PACKAGE_BUGREPORT
737 PACKAGE_STRING
738 PACKAGE_VERSION
739 PACKAGE_TARNAME
740 PACKAGE_NAME
741 PATH_SEPARATOR
742 SHELL'
743 ac_subst_files=''
744 ac_user_opts='
745 enable_option_checking
746 enable_checkmem
747 enable_debug
748 enable_profiling
749 enable_warnings
750 enable_optimizations
751 enable_lame
752 '
753       ac_precious_vars='build_alias
754 host_alias
755 target_alias
756 CC
757 CFLAGS
758 LDFLAGS
759 LIBS
760 CPPFLAGS
761 CXX
762 CXXFLAGS
763 CCC
764 CPP'
765
766
767 # Initialize some variables set by options.
768 ac_init_help=
769 ac_init_version=false
770 ac_unrecognized_opts=
771 ac_unrecognized_sep=
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
774 cache_file=/dev/null
775 exec_prefix=NONE
776 no_create=
777 no_recursion=
778 prefix=NONE
779 program_prefix=NONE
780 program_suffix=NONE
781 program_transform_name=s,x,x,
782 silent=
783 site=
784 srcdir=
785 verbose=
786 x_includes=NONE
787 x_libraries=NONE
788
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE}'
806 infodir='${datarootdir}/info'
807 htmldir='${docdir}'
808 dvidir='${docdir}'
809 pdfdir='${docdir}'
810 psdir='${docdir}'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
814
815 ac_prev=
816 ac_dashdash=
817 for ac_option
818 do
819   # If the previous option needs an argument, assign it.
820   if test -n "$ac_prev"; then
821     eval $ac_prev=\$ac_option
822     ac_prev=
823     continue
824   fi
825
826   case $ac_option in
827   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828   *)    ac_optarg=yes ;;
829   esac
830
831   # Accept the important Cygnus configure options, so we can diagnose typos.
832
833   case $ac_dashdash$ac_option in
834   --)
835     ac_dashdash=yes ;;
836
837   -bindir | --bindir | --bindi | --bind | --bin | --bi)
838     ac_prev=bindir ;;
839   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
840     bindir=$ac_optarg ;;
841
842   -build | --build | --buil | --bui | --bu)
843     ac_prev=build_alias ;;
844   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845     build_alias=$ac_optarg ;;
846
847   -cache-file | --cache-file | --cache-fil | --cache-fi \
848   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849     ac_prev=cache_file ;;
850   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852     cache_file=$ac_optarg ;;
853
854   --config-cache | -C)
855     cache_file=config.cache ;;
856
857   -datadir | --datadir | --datadi | --datad)
858     ac_prev=datadir ;;
859   -datadir=* | --datadir=* | --datadi=* | --datad=*)
860     datadir=$ac_optarg ;;
861
862   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863   | --dataroo | --dataro | --datar)
864     ac_prev=datarootdir ;;
865   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867     datarootdir=$ac_optarg ;;
868
869   -disable-* | --disable-*)
870     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871     # Reject names that are not valid shell variable names.
872     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
874    { (exit 1); exit 1; }; }
875     ac_useropt_orig=$ac_useropt
876     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877     case $ac_user_opts in
878       *"
879 "enable_$ac_useropt"
880 "*) ;;
881       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882          ac_unrecognized_sep=', ';;
883     esac
884     eval enable_$ac_useropt=no ;;
885
886   -docdir | --docdir | --docdi | --doc | --do)
887     ac_prev=docdir ;;
888   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
889     docdir=$ac_optarg ;;
890
891   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
892     ac_prev=dvidir ;;
893   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
894     dvidir=$ac_optarg ;;
895
896   -enable-* | --enable-*)
897     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898     # Reject names that are not valid shell variable names.
899     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
901    { (exit 1); exit 1; }; }
902     ac_useropt_orig=$ac_useropt
903     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904     case $ac_user_opts in
905       *"
906 "enable_$ac_useropt"
907 "*) ;;
908       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909          ac_unrecognized_sep=', ';;
910     esac
911     eval enable_$ac_useropt=\$ac_optarg ;;
912
913   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915   | --exec | --exe | --ex)
916     ac_prev=exec_prefix ;;
917   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919   | --exec=* | --exe=* | --ex=*)
920     exec_prefix=$ac_optarg ;;
921
922   -gas | --gas | --ga | --g)
923     # Obsolete; use --with-gas.
924     with_gas=yes ;;
925
926   -help | --help | --hel | --he | -h)
927     ac_init_help=long ;;
928   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929     ac_init_help=recursive ;;
930   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931     ac_init_help=short ;;
932
933   -host | --host | --hos | --ho)
934     ac_prev=host_alias ;;
935   -host=* | --host=* | --hos=* | --ho=*)
936     host_alias=$ac_optarg ;;
937
938   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
939     ac_prev=htmldir ;;
940   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
941   | --ht=*)
942     htmldir=$ac_optarg ;;
943
944   -includedir | --includedir | --includedi | --included | --include \
945   | --includ | --inclu | --incl | --inc)
946     ac_prev=includedir ;;
947   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948   | --includ=* | --inclu=* | --incl=* | --inc=*)
949     includedir=$ac_optarg ;;
950
951   -infodir | --infodir | --infodi | --infod | --info | --inf)
952     ac_prev=infodir ;;
953   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954     infodir=$ac_optarg ;;
955
956   -libdir | --libdir | --libdi | --libd)
957     ac_prev=libdir ;;
958   -libdir=* | --libdir=* | --libdi=* | --libd=*)
959     libdir=$ac_optarg ;;
960
961   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962   | --libexe | --libex | --libe)
963     ac_prev=libexecdir ;;
964   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965   | --libexe=* | --libex=* | --libe=*)
966     libexecdir=$ac_optarg ;;
967
968   -localedir | --localedir | --localedi | --localed | --locale)
969     ac_prev=localedir ;;
970   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971     localedir=$ac_optarg ;;
972
973   -localstatedir | --localstatedir | --localstatedi | --localstated \
974   | --localstate | --localstat | --localsta | --localst | --locals)
975     ac_prev=localstatedir ;;
976   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978     localstatedir=$ac_optarg ;;
979
980   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
981     ac_prev=mandir ;;
982   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983     mandir=$ac_optarg ;;
984
985   -nfp | --nfp | --nf)
986     # Obsolete; use --without-fp.
987     with_fp=no ;;
988
989   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990   | --no-cr | --no-c | -n)
991     no_create=yes ;;
992
993   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
995     no_recursion=yes ;;
996
997   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999   | --oldin | --oldi | --old | --ol | --o)
1000     ac_prev=oldincludedir ;;
1001   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004     oldincludedir=$ac_optarg ;;
1005
1006   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1007     ac_prev=prefix ;;
1008   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009     prefix=$ac_optarg ;;
1010
1011   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012   | --program-pre | --program-pr | --program-p)
1013     ac_prev=program_prefix ;;
1014   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016     program_prefix=$ac_optarg ;;
1017
1018   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019   | --program-suf | --program-su | --program-s)
1020     ac_prev=program_suffix ;;
1021   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023     program_suffix=$ac_optarg ;;
1024
1025   -program-transform-name | --program-transform-name \
1026   | --program-transform-nam | --program-transform-na \
1027   | --program-transform-n | --program-transform- \
1028   | --program-transform | --program-transfor \
1029   | --program-transfo | --program-transf \
1030   | --program-trans | --program-tran \
1031   | --progr-tra | --program-tr | --program-t)
1032     ac_prev=program_transform_name ;;
1033   -program-transform-name=* | --program-transform-name=* \
1034   | --program-transform-nam=* | --program-transform-na=* \
1035   | --program-transform-n=* | --program-transform-=* \
1036   | --program-transform=* | --program-transfor=* \
1037   | --program-transfo=* | --program-transf=* \
1038   | --program-trans=* | --program-tran=* \
1039   | --progr-tra=* | --program-tr=* | --program-t=*)
1040     program_transform_name=$ac_optarg ;;
1041
1042   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1043     ac_prev=pdfdir ;;
1044   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045     pdfdir=$ac_optarg ;;
1046
1047   -psdir | --psdir | --psdi | --psd | --ps)
1048     ac_prev=psdir ;;
1049   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1050     psdir=$ac_optarg ;;
1051
1052   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053   | -silent | --silent | --silen | --sile | --sil)
1054     silent=yes ;;
1055
1056   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1057     ac_prev=sbindir ;;
1058   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1059   | --sbi=* | --sb=*)
1060     sbindir=$ac_optarg ;;
1061
1062   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064   | --sharedst | --shareds | --shared | --share | --shar \
1065   | --sha | --sh)
1066     ac_prev=sharedstatedir ;;
1067   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1070   | --sha=* | --sh=*)
1071     sharedstatedir=$ac_optarg ;;
1072
1073   -site | --site | --sit)
1074     ac_prev=site ;;
1075   -site=* | --site=* | --sit=*)
1076     site=$ac_optarg ;;
1077
1078   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1079     ac_prev=srcdir ;;
1080   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081     srcdir=$ac_optarg ;;
1082
1083   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084   | --syscon | --sysco | --sysc | --sys | --sy)
1085     ac_prev=sysconfdir ;;
1086   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088     sysconfdir=$ac_optarg ;;
1089
1090   -target | --target | --targe | --targ | --tar | --ta | --t)
1091     ac_prev=target_alias ;;
1092   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093     target_alias=$ac_optarg ;;
1094
1095   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1096     verbose=yes ;;
1097
1098   -version | --version | --versio | --versi | --vers | -V)
1099     ac_init_version=: ;;
1100
1101   -with-* | --with-*)
1102     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103     # Reject names that are not valid shell variable names.
1104     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1106    { (exit 1); exit 1; }; }
1107     ac_useropt_orig=$ac_useropt
1108     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109     case $ac_user_opts in
1110       *"
1111 "with_$ac_useropt"
1112 "*) ;;
1113       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114          ac_unrecognized_sep=', ';;
1115     esac
1116     eval with_$ac_useropt=\$ac_optarg ;;
1117
1118   -without-* | --without-*)
1119     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120     # Reject names that are not valid shell variable names.
1121     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1123    { (exit 1); exit 1; }; }
1124     ac_useropt_orig=$ac_useropt
1125     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126     case $ac_user_opts in
1127       *"
1128 "with_$ac_useropt"
1129 "*) ;;
1130       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131          ac_unrecognized_sep=', ';;
1132     esac
1133     eval with_$ac_useropt=no ;;
1134
1135   --x)
1136     # Obsolete; use --with-x.
1137     with_x=yes ;;
1138
1139   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140   | --x-incl | --x-inc | --x-in | --x-i)
1141     ac_prev=x_includes ;;
1142   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144     x_includes=$ac_optarg ;;
1145
1146   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148     ac_prev=x_libraries ;;
1149   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151     x_libraries=$ac_optarg ;;
1152
1153   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1154 Try \`$0 --help' for more information." >&2
1155    { (exit 1); exit 1; }; }
1156     ;;
1157
1158   *=*)
1159     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1162       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1163    { (exit 1); exit 1; }; }
1164     eval $ac_envvar=\$ac_optarg
1165     export $ac_envvar ;;
1166
1167   *)
1168     # FIXME: should be removed in autoconf 3.0.
1169     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1173     ;;
1174
1175   esac
1176 done
1177
1178 if test -n "$ac_prev"; then
1179   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1181    { (exit 1); exit 1; }; }
1182 fi
1183
1184 if test -n "$ac_unrecognized_opts"; then
1185   case $enable_option_checking in
1186     no) ;;
1187     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1188    { (exit 1); exit 1; }; } ;;
1189     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190   esac
1191 fi
1192
1193 # Check all directory arguments for consistency.
1194 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195                 datadir sysconfdir sharedstatedir localstatedir includedir \
1196                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197                 libdir localedir mandir
1198 do
1199   eval ac_val=\$$ac_var
1200   # Remove trailing slashes.
1201   case $ac_val in
1202     */ )
1203       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204       eval $ac_var=\$ac_val;;
1205   esac
1206   # Be sure to have absolute directory names.
1207   case $ac_val in
1208     [\\/$]* | ?:[\\/]* )  continue;;
1209     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210   esac
1211   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212    { (exit 1); exit 1; }; }
1213 done
1214
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1218 build=$build_alias
1219 host=$host_alias
1220 target=$target_alias
1221
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224   if test "x$build_alias" = x; then
1225     cross_compiling=maybe
1226     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227     If a cross compiler is detected then cross compile mode will be used." >&2
1228   elif test "x$build_alias" != "x$host_alias"; then
1229     cross_compiling=yes
1230   fi
1231 fi
1232
1233 ac_tool_prefix=
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235
1236 test "$silent" = yes && exec 6>/dev/null
1237
1238
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1243    { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1246    { (exit 1); exit 1; }; }
1247
1248
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251   ac_srcdir_defaulted=yes
1252   # Try the directory containing this script, then the parent directory.
1253   ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255          X"$as_myself" : 'X\(//\)[^/]' \| \
1256          X"$as_myself" : 'X\(//\)$' \| \
1257          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)[^/].*/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\/\)$/{
1268             s//\1/
1269             q
1270           }
1271           /^X\(\/\).*/{
1272             s//\1/
1273             q
1274           }
1275           s/.*/./; q'`
1276   srcdir=$ac_confdir
1277   if test ! -r "$srcdir/$ac_unique_file"; then
1278     srcdir=..
1279   fi
1280 else
1281   ac_srcdir_defaulted=no
1282 fi
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286    { (exit 1); exit 1; }; }
1287 fi
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 ac_abs_confdir=`(
1290         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1291    { (exit 1); exit 1; }; }
1292         pwd)`
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1295   srcdir=.
1296 fi
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1300 case $srcdir in
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 esac
1303 for ac_var in $ac_precious_vars; do
1304   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305   eval ac_env_${ac_var}_value=\$${ac_var}
1306   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 done
1309
1310 #
1311 # Report the --help message.
1312 #
1313 if test "$ac_init_help" = "long"; then
1314   # Omit some internal or obsolete options to make the list less imposing.
1315   # This message is too long to be a string in the A/UX 3.1 sh.
1316   cat <<_ACEOF
1317 \`configure' configures this package to adapt to many kinds of systems.
1318
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1320
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE.  See below for descriptions of some of the useful variables.
1323
1324 Defaults for the options are specified in brackets.
1325
1326 Configuration:
1327   -h, --help              display this help and exit
1328       --help=short        display options specific to this package
1329       --help=recursive    display the short help of all the included packages
1330   -V, --version           display version information and exit
1331   -q, --quiet, --silent   do not print \`checking...' messages
1332       --cache-file=FILE   cache test results in FILE [disabled]
1333   -C, --config-cache      alias for \`--cache-file=config.cache'
1334   -n, --no-create         do not create output files
1335       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1336
1337 Installation directories:
1338   --prefix=PREFIX         install architecture-independent files in PREFIX
1339                           [$ac_default_prefix]
1340   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1341                           [PREFIX]
1342
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1347
1348 For better control, use the options below.
1349
1350 Fine tuning of the installation directories:
1351   --bindir=DIR            user executables [EPREFIX/bin]
1352   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1353   --libexecdir=DIR        program executables [EPREFIX/libexec]
1354   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1355   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1356   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1357   --libdir=DIR            object code libraries [EPREFIX/lib]
1358   --includedir=DIR        C header files [PREFIX/include]
1359   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1360   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1361   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1362   --infodir=DIR           info documentation [DATAROOTDIR/info]
1363   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1364   --mandir=DIR            man documentation [DATAROOTDIR/man]
1365   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1366   --htmldir=DIR           html documentation [DOCDIR]
1367   --dvidir=DIR            dvi documentation [DOCDIR]
1368   --pdfdir=DIR            pdf documentation [DOCDIR]
1369   --psdir=DIR             ps documentation [DOCDIR]
1370 _ACEOF
1371
1372   cat <<\_ACEOF
1373
1374 Program names:
1375   --program-prefix=PREFIX            prepend PREFIX to installed program names
1376   --program-suffix=SUFFIX            append SUFFIX to installed program names
1377   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1378
1379 System types:
1380   --build=BUILD     configure for building on BUILD [guessed]
1381   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382   --target=TARGET   configure for building compilers for TARGET [HOST]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387
1388   cat <<\_ACEOF
1389
1390 Optional Features:
1391   --disable-option-checking  ignore unrecognized --enable/--with options
1392   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1393   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1394   --enable-checkmem       turn on ccmalloc debugging
1395   --enable-debug          turn on debugging
1396   --enable-profiling      turn on profiling
1397   --enable-warnings        turn on compiler warnings
1398   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1399   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1400
1401 Some influential environment variables:
1402   CC          C compiler command
1403   CFLAGS      C compiler flags
1404   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1405               nonstandard directory <lib dir>
1406   LIBS        libraries to pass to the linker, e.g. -l<library>
1407   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1408               you have headers in a nonstandard directory <include dir>
1409   CXX         C++ compiler command
1410   CXXFLAGS    C++ compiler flags
1411   CPP         C preprocessor
1412
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1415
1416 _ACEOF
1417 ac_status=$?
1418 fi
1419
1420 if test "$ac_init_help" = "recursive"; then
1421   # If there are subdirs, report their specific --help.
1422   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423     test -d "$ac_dir" ||
1424       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425       continue
1426     ac_builddir=.
1427
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 *)
1431   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432   # A ".." for each directory in $ac_dir_suffix.
1433   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434   case $ac_top_builddir_sub in
1435   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437   esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1443
1444 case $srcdir in
1445   .)  # We are building in place.
1446     ac_srcdir=.
1447     ac_top_srcdir=$ac_top_builddir_sub
1448     ac_abs_top_srcdir=$ac_pwd ;;
1449   [\\/]* | ?:[\\/]* )  # Absolute name.
1450     ac_srcdir=$srcdir$ac_dir_suffix;
1451     ac_top_srcdir=$srcdir
1452     ac_abs_top_srcdir=$srcdir ;;
1453   *) # Relative name.
1454     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455     ac_top_srcdir=$ac_top_build_prefix$srcdir
1456     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459
1460     cd "$ac_dir" || { ac_status=$?; continue; }
1461     # Check for guested configure.
1462     if test -f "$ac_srcdir/configure.gnu"; then
1463       echo &&
1464       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465     elif test -f "$ac_srcdir/configure"; then
1466       echo &&
1467       $SHELL "$ac_srcdir/configure" --help=recursive
1468     else
1469       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470     fi || ac_status=$?
1471     cd "$ac_pwd" || { ac_status=$?; break; }
1472   done
1473 fi
1474
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477   cat <<\_ACEOF
1478 configure
1479 generated by GNU Autoconf 2.63
1480
1481 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1482 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1483 This configure script is free software; the Free Software Foundation
1484 gives unlimited permission to copy, distribute and modify it.
1485 _ACEOF
1486   exit
1487 fi
1488 cat >config.log <<_ACEOF
1489 This file contains any messages produced by compilers while
1490 running configure, to aid debugging if configure makes a mistake.
1491
1492 It was created by $as_me, which was
1493 generated by GNU Autoconf 2.63.  Invocation command line was
1494
1495   $ $0 $@
1496
1497 _ACEOF
1498 exec 5>>config.log
1499 {
1500 cat <<_ASUNAME
1501 ## --------- ##
1502 ## Platform. ##
1503 ## --------- ##
1504
1505 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1506 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1507 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1508 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1509 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1510
1511 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1512 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1513
1514 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1515 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1516 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1517 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1518 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1519 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1520 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1521
1522 _ASUNAME
1523
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 for as_dir in $PATH
1526 do
1527   IFS=$as_save_IFS
1528   test -z "$as_dir" && as_dir=.
1529   $as_echo "PATH: $as_dir"
1530 done
1531 IFS=$as_save_IFS
1532
1533 } >&5
1534
1535 cat >&5 <<_ACEOF
1536
1537
1538 ## ----------- ##
1539 ## Core tests. ##
1540 ## ----------- ##
1541
1542 _ACEOF
1543
1544
1545 # Keep a trace of the command line.
1546 # Strip out --no-create and --no-recursion so they do not pile up.
1547 # Strip out --silent because we don't want to record it for future runs.
1548 # Also quote any args containing shell meta-characters.
1549 # Make two passes to allow for proper duplicate-argument suppression.
1550 ac_configure_args=
1551 ac_configure_args0=
1552 ac_configure_args1=
1553 ac_must_keep_next=false
1554 for ac_pass in 1 2
1555 do
1556   for ac_arg
1557   do
1558     case $ac_arg in
1559     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1560     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1561     | -silent | --silent | --silen | --sile | --sil)
1562       continue ;;
1563     *\'*)
1564       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1565     esac
1566     case $ac_pass in
1567     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1568     2)
1569       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1570       if test $ac_must_keep_next = true; then
1571         ac_must_keep_next=false # Got value, back to normal.
1572       else
1573         case $ac_arg in
1574           *=* | --config-cache | -C | -disable-* | --disable-* \
1575           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1576           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1577           | -with-* | --with-* | -without-* | --without-* | --x)
1578             case "$ac_configure_args0 " in
1579               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1580             esac
1581             ;;
1582           -* ) ac_must_keep_next=true ;;
1583         esac
1584       fi
1585       ac_configure_args="$ac_configure_args '$ac_arg'"
1586       ;;
1587     esac
1588   done
1589 done
1590 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1591 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1592
1593 # When interrupted or exit'd, cleanup temporary files, and complete
1594 # config.log.  We remove comments because anyway the quotes in there
1595 # would cause problems or look ugly.
1596 # WARNING: Use '\'' to represent an apostrophe within the trap.
1597 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1598 trap 'exit_status=$?
1599   # Save into config.log some information that might help in debugging.
1600   {
1601     echo
1602
1603     cat <<\_ASBOX
1604 ## ---------------- ##
1605 ## Cache variables. ##
1606 ## ---------------- ##
1607 _ASBOX
1608     echo
1609     # The following way of writing the cache mishandles newlines in values,
1610 (
1611   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1612     eval ac_val=\$$ac_var
1613     case $ac_val in #(
1614     *${as_nl}*)
1615       case $ac_var in #(
1616       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1617 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1618       esac
1619       case $ac_var in #(
1620       _ | IFS | as_nl) ;; #(
1621       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1622       *) $as_unset $ac_var ;;
1623       esac ;;
1624     esac
1625   done
1626   (set) 2>&1 |
1627     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1628     *${as_nl}ac_space=\ *)
1629       sed -n \
1630         "s/'\''/'\''\\\\'\'''\''/g;
1631           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1632       ;; #(
1633     *)
1634       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1635       ;;
1636     esac |
1637     sort
1638 )
1639     echo
1640
1641     cat <<\_ASBOX
1642 ## ----------------- ##
1643 ## Output variables. ##
1644 ## ----------------- ##
1645 _ASBOX
1646     echo
1647     for ac_var in $ac_subst_vars
1648     do
1649       eval ac_val=\$$ac_var
1650       case $ac_val in
1651       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1652       esac
1653       $as_echo "$ac_var='\''$ac_val'\''"
1654     done | sort
1655     echo
1656
1657     if test -n "$ac_subst_files"; then
1658       cat <<\_ASBOX
1659 ## ------------------- ##
1660 ## File substitutions. ##
1661 ## ------------------- ##
1662 _ASBOX
1663       echo
1664       for ac_var in $ac_subst_files
1665       do
1666         eval ac_val=\$$ac_var
1667         case $ac_val in
1668         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1669         esac
1670         $as_echo "$ac_var='\''$ac_val'\''"
1671       done | sort
1672       echo
1673     fi
1674
1675     if test -s confdefs.h; then
1676       cat <<\_ASBOX
1677 ## ----------- ##
1678 ## confdefs.h. ##
1679 ## ----------- ##
1680 _ASBOX
1681       echo
1682       cat confdefs.h
1683       echo
1684     fi
1685     test "$ac_signal" != 0 &&
1686       $as_echo "$as_me: caught signal $ac_signal"
1687     $as_echo "$as_me: exit $exit_status"
1688   } >&5
1689   rm -f core *.core core.conftest.* &&
1690     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1691     exit $exit_status
1692 ' 0
1693 for ac_signal in 1 2 13 15; do
1694   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1695 done
1696 ac_signal=0
1697
1698 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1699 rm -f -r conftest* confdefs.h
1700
1701 # Predefined preprocessor variables.
1702
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_NAME "$PACKAGE_NAME"
1705 _ACEOF
1706
1707
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1710 _ACEOF
1711
1712
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1715 _ACEOF
1716
1717
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_STRING "$PACKAGE_STRING"
1720 _ACEOF
1721
1722
1723 cat >>confdefs.h <<_ACEOF
1724 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1725 _ACEOF
1726
1727
1728 # Let the site file select an alternate cache file if it wants to.
1729 # Prefer an explicitly selected file to automatically selected ones.
1730 ac_site_file1=NONE
1731 ac_site_file2=NONE
1732 if test -n "$CONFIG_SITE"; then
1733   ac_site_file1=$CONFIG_SITE
1734 elif test "x$prefix" != xNONE; then
1735   ac_site_file1=$prefix/share/config.site
1736   ac_site_file2=$prefix/etc/config.site
1737 else
1738   ac_site_file1=$ac_default_prefix/share/config.site
1739   ac_site_file2=$ac_default_prefix/etc/config.site
1740 fi
1741 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1742 do
1743   test "x$ac_site_file" = xNONE && continue
1744   if test -r "$ac_site_file"; then
1745     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1746 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1747     sed 's/^/| /' "$ac_site_file" >&5
1748     . "$ac_site_file"
1749   fi
1750 done
1751
1752 if test -r "$cache_file"; then
1753   # Some versions of bash will fail to source /dev/null (special
1754   # files actually), so we avoid doing that.
1755   if test -f "$cache_file"; then
1756     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1757 $as_echo "$as_me: loading cache $cache_file" >&6;}
1758     case $cache_file in
1759       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1760       *)                      . "./$cache_file";;
1761     esac
1762   fi
1763 else
1764   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1765 $as_echo "$as_me: creating cache $cache_file" >&6;}
1766   >$cache_file
1767 fi
1768
1769 # Check that the precious variables saved in the cache have kept the same
1770 # value.
1771 ac_cache_corrupted=false
1772 for ac_var in $ac_precious_vars; do
1773   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1774   eval ac_new_set=\$ac_env_${ac_var}_set
1775   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1776   eval ac_new_val=\$ac_env_${ac_var}_value
1777   case $ac_old_set,$ac_new_set in
1778     set,)
1779       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1780 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1781       ac_cache_corrupted=: ;;
1782     ,set)
1783       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1784 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1785       ac_cache_corrupted=: ;;
1786     ,);;
1787     *)
1788       if test "x$ac_old_val" != "x$ac_new_val"; then
1789         # differences in whitespace do not lead to failure.
1790         ac_old_val_w=`echo x $ac_old_val`
1791         ac_new_val_w=`echo x $ac_new_val`
1792         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1793           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1794 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1795           ac_cache_corrupted=:
1796         else
1797           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1798 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1799           eval $ac_var=\$ac_old_val
1800         fi
1801         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1802 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1803         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1804 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1805       fi;;
1806   esac
1807   # Pass precious variables to config.status.
1808   if test "$ac_new_set" = set; then
1809     case $ac_new_val in
1810     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1811     *) ac_arg=$ac_var=$ac_new_val ;;
1812     esac
1813     case " $ac_configure_args " in
1814       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1815       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1816     esac
1817   fi
1818 done
1819 if $ac_cache_corrupted; then
1820   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1822   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1823 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1824   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1825 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1826    { (exit 1); exit 1; }; }
1827 fi
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845 ac_ext=c
1846 ac_cpp='$CPP $CPPFLAGS'
1847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1850
1851
1852
1853
1854 # ------------------- option parsing -------------------------------
1855
1856 DEBUG=
1857 CHECKMEM=
1858 PROFILING=
1859 ENABLE_WARNINGS=
1860 OPTIMIZE=
1861 DISABLE_LAME=
1862
1863 # Check whether --enable-checkmem was given.
1864 if test "${enable_checkmem+set}" = set; then
1865   enableval=$enable_checkmem; CHECKMEM=true
1866 fi
1867
1868 # Check whether --enable-debug was given.
1869 if test "${enable_debug+set}" = set; then
1870   enableval=$enable_debug; DEBUG=true
1871 fi
1872
1873 # Check whether --enable-profiling was given.
1874 if test "${enable_profiling+set}" = set; then
1875   enableval=$enable_profiling; PROFILING=true
1876 fi
1877
1878 # Check whether --enable-warnings was given.
1879 if test "${enable_warnings+set}" = set; then
1880   enableval=$enable_warnings; ENABLE_WARNINGS=true
1881 fi
1882
1883 # Check whether --enable-optimizations was given.
1884 if test "${enable_optimizations+set}" = set; then
1885   enableval=$enable_optimizations; OPTIMIZE=true
1886 fi
1887
1888 # Check whether --enable-lame was given.
1889 if test "${enable_lame+set}" = set; then
1890   enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1891     DISABLE_LAME=yes
1892 fi
1893 else
1894   DISABLE_LAME=
1895 fi
1896
1897
1898 PACKAGE=swftools
1899 VERSION=2010-02-06-1900
1900
1901 # ------------------------------------------------------------------
1902
1903 if test "x${srcdir}" != "x."; then
1904     echo "--srcdir is not supported"
1905     exit 1
1906 fi
1907
1908 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings -Wformat"
1909 if test "x$ENABLE_WARNINGS" '!=' "x";then
1910     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
1911 fi
1912
1913 if test "x$CHECKMEM" '!=' "x";then
1914     DEBUG=yes
1915 fi
1916 if test "x$PROFILING" '!=' "x";then
1917     DEBUG=yes
1918 fi
1919 if test "x$DEBUG" '!=' "x";then
1920     if test "x$PROFILING" = "x";then
1921         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1922         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1923         LDFLAGS="-g $LDFLAGS"
1924     else
1925         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1926         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1927         LDFLAGS="-g -pg $LDFLAGS"
1928     fi
1929 else if test "x$OPTIMIZE" '!=' "x"; then
1930     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1931     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1932 else
1933     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1934     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1935 fi
1936 fi
1937
1938 CFLAGS="-fPIC $CFLAGS"
1939 CXXFLAGS="-fPIC $CFLAGS"
1940
1941 #OLDGCC=1
1942 #if test "x$OLDGCC" '!=' "x";then
1943 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1944 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1945 #     CFLAGS="$CFLAGS -ansi -pendantic"
1946 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1947 #fi
1948
1949 export PACKAGE VERSION CFLAGS CXXFLAGS
1950
1951
1952 ac_aux_dir=
1953 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1954   if test -f "$ac_dir/install-sh"; then
1955     ac_aux_dir=$ac_dir
1956     ac_install_sh="$ac_aux_dir/install-sh -c"
1957     break
1958   elif test -f "$ac_dir/install.sh"; then
1959     ac_aux_dir=$ac_dir
1960     ac_install_sh="$ac_aux_dir/install.sh -c"
1961     break
1962   elif test -f "$ac_dir/shtool"; then
1963     ac_aux_dir=$ac_dir
1964     ac_install_sh="$ac_aux_dir/shtool install -c"
1965     break
1966   fi
1967 done
1968 if test -z "$ac_aux_dir"; then
1969   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1970 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1971    { (exit 1); exit 1; }; }
1972 fi
1973
1974 # These three variables are undocumented and unsupported,
1975 # and are intended to be withdrawn in a future Autoconf release.
1976 # They can cause serious problems if a builder's source tree is in a directory
1977 # whose full name contains unusual characters.
1978 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1979 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1980 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1981
1982
1983 # Make sure we can run config.sub.
1984 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1985   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1986 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1987    { (exit 1); exit 1; }; }
1988
1989 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1990 $as_echo_n "checking build system type... " >&6; }
1991 if test "${ac_cv_build+set}" = set; then
1992   $as_echo_n "(cached) " >&6
1993 else
1994   ac_build_alias=$build_alias
1995 test "x$ac_build_alias" = x &&
1996   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1997 test "x$ac_build_alias" = x &&
1998   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1999 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2000    { (exit 1); exit 1; }; }
2001 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2002   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2003 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2004    { (exit 1); exit 1; }; }
2005
2006 fi
2007 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2008 $as_echo "$ac_cv_build" >&6; }
2009 case $ac_cv_build in
2010 *-*-*) ;;
2011 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2012 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2013    { (exit 1); exit 1; }; };;
2014 esac
2015 build=$ac_cv_build
2016 ac_save_IFS=$IFS; IFS='-'
2017 set x $ac_cv_build
2018 shift
2019 build_cpu=$1
2020 build_vendor=$2
2021 shift; shift
2022 # Remember, the first character of IFS is used to create $*,
2023 # except with old shells:
2024 build_os=$*
2025 IFS=$ac_save_IFS
2026 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2027
2028
2029 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2030 $as_echo_n "checking host system type... " >&6; }
2031 if test "${ac_cv_host+set}" = set; then
2032   $as_echo_n "(cached) " >&6
2033 else
2034   if test "x$host_alias" = x; then
2035   ac_cv_host=$ac_cv_build
2036 else
2037   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2038     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2039 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2040    { (exit 1); exit 1; }; }
2041 fi
2042
2043 fi
2044 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2045 $as_echo "$ac_cv_host" >&6; }
2046 case $ac_cv_host in
2047 *-*-*) ;;
2048 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2049 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2050    { (exit 1); exit 1; }; };;
2051 esac
2052 host=$ac_cv_host
2053 ac_save_IFS=$IFS; IFS='-'
2054 set x $ac_cv_host
2055 shift
2056 host_cpu=$1
2057 host_vendor=$2
2058 shift; shift
2059 # Remember, the first character of IFS is used to create $*,
2060 # except with old shells:
2061 host_os=$*
2062 IFS=$ac_save_IFS
2063 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2064
2065
2066
2067 SHARED="-shared"
2068 MACOSX=
2069 case $host_os in
2070     *darwin* )
2071         MACOSX=yes
2072         CFLAGS="$CFLAGS"
2073         CXXFLAGS="$CXXFLAGS -fno-rtti"
2074         SHARED="-bundle"
2075         if test -d /opt/local/include && test -d /opt/local/lib; then
2076             CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2077             LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2078         fi
2079         # Use fink packages if available.
2080         #if test -d /sw/include && test -d /sw/lib; then
2081         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
2082         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
2083         #fi
2084         ;;
2085 esac
2086
2087
2088
2089  ac_ext=c
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2094 if test -n "$ac_tool_prefix"; then
2095   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2096 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 $as_echo_n "checking for $ac_word... " >&6; }
2099 if test "${ac_cv_prog_CC+set}" = set; then
2100   $as_echo_n "(cached) " >&6
2101 else
2102   if test -n "$CC"; then
2103   ac_cv_prog_CC="$CC" # Let the user override the test.
2104 else
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2106 for as_dir in $PATH
2107 do
2108   IFS=$as_save_IFS
2109   test -z "$as_dir" && as_dir=.
2110   for ac_exec_ext in '' $ac_executable_extensions; do
2111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2112     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2113     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2114     break 2
2115   fi
2116 done
2117 done
2118 IFS=$as_save_IFS
2119
2120 fi
2121 fi
2122 CC=$ac_cv_prog_CC
2123 if test -n "$CC"; then
2124   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2125 $as_echo "$CC" >&6; }
2126 else
2127   { $as_echo "$as_me:$LINENO: result: no" >&5
2128 $as_echo "no" >&6; }
2129 fi
2130
2131
2132 fi
2133 if test -z "$ac_cv_prog_CC"; then
2134   ac_ct_CC=$CC
2135   # Extract the first word of "gcc", so it can be a program name with args.
2136 set dummy gcc; ac_word=$2
2137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 $as_echo_n "checking for $ac_word... " >&6; }
2139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2140   $as_echo_n "(cached) " >&6
2141 else
2142   if test -n "$ac_ct_CC"; then
2143   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2144 else
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2146 for as_dir in $PATH
2147 do
2148   IFS=$as_save_IFS
2149   test -z "$as_dir" && as_dir=.
2150   for ac_exec_ext in '' $ac_executable_extensions; do
2151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2152     ac_cv_prog_ac_ct_CC="gcc"
2153     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2154     break 2
2155   fi
2156 done
2157 done
2158 IFS=$as_save_IFS
2159
2160 fi
2161 fi
2162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2163 if test -n "$ac_ct_CC"; then
2164   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2165 $as_echo "$ac_ct_CC" >&6; }
2166 else
2167   { $as_echo "$as_me:$LINENO: result: no" >&5
2168 $as_echo "no" >&6; }
2169 fi
2170
2171   if test "x$ac_ct_CC" = x; then
2172     CC=""
2173   else
2174     case $cross_compiling:$ac_tool_warned in
2175 yes:)
2176 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2178 ac_tool_warned=yes ;;
2179 esac
2180     CC=$ac_ct_CC
2181   fi
2182 else
2183   CC="$ac_cv_prog_CC"
2184 fi
2185
2186 if test -z "$CC"; then
2187           if test -n "$ac_tool_prefix"; then
2188     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2189 set dummy ${ac_tool_prefix}cc; ac_word=$2
2190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 $as_echo_n "checking for $ac_word... " >&6; }
2192 if test "${ac_cv_prog_CC+set}" = set; then
2193   $as_echo_n "(cached) " >&6
2194 else
2195   if test -n "$CC"; then
2196   ac_cv_prog_CC="$CC" # Let the user override the test.
2197 else
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 for as_dir in $PATH
2200 do
2201   IFS=$as_save_IFS
2202   test -z "$as_dir" && as_dir=.
2203   for ac_exec_ext in '' $ac_executable_extensions; do
2204   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2205     ac_cv_prog_CC="${ac_tool_prefix}cc"
2206     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2207     break 2
2208   fi
2209 done
2210 done
2211 IFS=$as_save_IFS
2212
2213 fi
2214 fi
2215 CC=$ac_cv_prog_CC
2216 if test -n "$CC"; then
2217   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2218 $as_echo "$CC" >&6; }
2219 else
2220   { $as_echo "$as_me:$LINENO: result: no" >&5
2221 $as_echo "no" >&6; }
2222 fi
2223
2224
2225   fi
2226 fi
2227 if test -z "$CC"; then
2228   # Extract the first word of "cc", so it can be a program name with args.
2229 set dummy cc; ac_word=$2
2230 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 $as_echo_n "checking for $ac_word... " >&6; }
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233   $as_echo_n "(cached) " >&6
2234 else
2235   if test -n "$CC"; then
2236   ac_cv_prog_CC="$CC" # Let the user override the test.
2237 else
2238   ac_prog_rejected=no
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244   for ac_exec_ext in '' $ac_executable_extensions; do
2245   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2247        ac_prog_rejected=yes
2248        continue
2249      fi
2250     ac_cv_prog_CC="cc"
2251     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252     break 2
2253   fi
2254 done
2255 done
2256 IFS=$as_save_IFS
2257
2258 if test $ac_prog_rejected = yes; then
2259   # We found a bogon in the path, so make sure we never use it.
2260   set dummy $ac_cv_prog_CC
2261   shift
2262   if test $# != 0; then
2263     # We chose a different compiler from the bogus one.
2264     # However, it has the same basename, so the bogon will be chosen
2265     # first if we set CC to just the basename; use the full file name.
2266     shift
2267     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2268   fi
2269 fi
2270 fi
2271 fi
2272 CC=$ac_cv_prog_CC
2273 if test -n "$CC"; then
2274   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2275 $as_echo "$CC" >&6; }
2276 else
2277   { $as_echo "$as_me:$LINENO: result: no" >&5
2278 $as_echo "no" >&6; }
2279 fi
2280
2281
2282 fi
2283 if test -z "$CC"; then
2284   if test -n "$ac_tool_prefix"; then
2285   for ac_prog in cl.exe
2286   do
2287     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 $as_echo_n "checking for $ac_word... " >&6; }
2291 if test "${ac_cv_prog_CC+set}" = set; then
2292   $as_echo_n "(cached) " >&6
2293 else
2294   if test -n "$CC"; then
2295   ac_cv_prog_CC="$CC" # Let the user override the test.
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2299 do
2300   IFS=$as_save_IFS
2301   test -z "$as_dir" && as_dir=.
2302   for ac_exec_ext in '' $ac_executable_extensions; do
2303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2304     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2305     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306     break 2
2307   fi
2308 done
2309 done
2310 IFS=$as_save_IFS
2311
2312 fi
2313 fi
2314 CC=$ac_cv_prog_CC
2315 if test -n "$CC"; then
2316   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2317 $as_echo "$CC" >&6; }
2318 else
2319   { $as_echo "$as_me:$LINENO: result: no" >&5
2320 $as_echo "no" >&6; }
2321 fi
2322
2323
2324     test -n "$CC" && break
2325   done
2326 fi
2327 if test -z "$CC"; then
2328   ac_ct_CC=$CC
2329   for ac_prog in cl.exe
2330 do
2331   # Extract the first word of "$ac_prog", so it can be a program name with args.
2332 set dummy $ac_prog; ac_word=$2
2333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 $as_echo_n "checking for $ac_word... " >&6; }
2335 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2336   $as_echo_n "(cached) " >&6
2337 else
2338   if test -n "$ac_ct_CC"; then
2339   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344   IFS=$as_save_IFS
2345   test -z "$as_dir" && as_dir=.
2346   for ac_exec_ext in '' $ac_executable_extensions; do
2347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348     ac_cv_prog_ac_ct_CC="$ac_prog"
2349     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2350     break 2
2351   fi
2352 done
2353 done
2354 IFS=$as_save_IFS
2355
2356 fi
2357 fi
2358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2359 if test -n "$ac_ct_CC"; then
2360   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2361 $as_echo "$ac_ct_CC" >&6; }
2362 else
2363   { $as_echo "$as_me:$LINENO: result: no" >&5
2364 $as_echo "no" >&6; }
2365 fi
2366
2367
2368   test -n "$ac_ct_CC" && break
2369 done
2370
2371   if test "x$ac_ct_CC" = x; then
2372     CC=""
2373   else
2374     case $cross_compiling:$ac_tool_warned in
2375 yes:)
2376 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2378 ac_tool_warned=yes ;;
2379 esac
2380     CC=$ac_ct_CC
2381   fi
2382 fi
2383
2384 fi
2385
2386
2387 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2390 See \`config.log' for more details." >&5
2391 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2392 See \`config.log' for more details." >&2;}
2393    { (exit 1); exit 1; }; }; }
2394
2395 # Provide some information about the compiler.
2396 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2397 set X $ac_compile
2398 ac_compiler=$2
2399 { (ac_try="$ac_compiler --version >&5"
2400 case "(($ac_try" in
2401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402   *) ac_try_echo=$ac_try;;
2403 esac
2404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2405 $as_echo "$ac_try_echo") >&5
2406   (eval "$ac_compiler --version >&5") 2>&5
2407   ac_status=$?
2408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409   (exit $ac_status); }
2410 { (ac_try="$ac_compiler -v >&5"
2411 case "(($ac_try" in
2412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413   *) ac_try_echo=$ac_try;;
2414 esac
2415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2416 $as_echo "$ac_try_echo") >&5
2417   (eval "$ac_compiler -v >&5") 2>&5
2418   ac_status=$?
2419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420   (exit $ac_status); }
2421 { (ac_try="$ac_compiler -V >&5"
2422 case "(($ac_try" in
2423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424   *) ac_try_echo=$ac_try;;
2425 esac
2426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2427 $as_echo "$ac_try_echo") >&5
2428   (eval "$ac_compiler -V >&5") 2>&5
2429   ac_status=$?
2430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); }
2432
2433 cat >conftest.$ac_ext <<_ACEOF
2434 /* confdefs.h.  */
2435 _ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h.  */
2439
2440 int
2441 main ()
2442 {
2443
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 ac_clean_files_save=$ac_clean_files
2449 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2450 # Try to create an executable without -o first, disregard a.out.
2451 # It will help us diagnose broken compilers, and finding out an intuition
2452 # of exeext.
2453 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2454 $as_echo_n "checking for C compiler default output file name... " >&6; }
2455 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2456
2457 # The possible output files:
2458 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2459
2460 ac_rmfiles=
2461 for ac_file in $ac_files
2462 do
2463   case $ac_file in
2464     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2465     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2466   esac
2467 done
2468 rm -f $ac_rmfiles
2469
2470 if { (ac_try="$ac_link_default"
2471 case "(($ac_try" in
2472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473   *) ac_try_echo=$ac_try;;
2474 esac
2475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2476 $as_echo "$ac_try_echo") >&5
2477   (eval "$ac_link_default") 2>&5
2478   ac_status=$?
2479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; then
2481   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2482 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2483 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2484 # so that the user can short-circuit this test for compilers unknown to
2485 # Autoconf.
2486 for ac_file in $ac_files ''
2487 do
2488   test -f "$ac_file" || continue
2489   case $ac_file in
2490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2491         ;;
2492     [ab].out )
2493         # We found the default executable, but exeext='' is most
2494         # certainly right.
2495         break;;
2496     *.* )
2497         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2498         then :; else
2499            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2500         fi
2501         # We set ac_cv_exeext here because the later test for it is not
2502         # safe: cross compilers may not add the suffix if given an `-o'
2503         # argument, so we may need to know it at that point already.
2504         # Even if this section looks crufty: it has the advantage of
2505         # actually working.
2506         break;;
2507     * )
2508         break;;
2509   esac
2510 done
2511 test "$ac_cv_exeext" = no && ac_cv_exeext=
2512
2513 else
2514   ac_file=''
2515 fi
2516
2517 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2518 $as_echo "$ac_file" >&6; }
2519 if test -z "$ac_file"; then
2520   $as_echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2522
2523 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2526 See \`config.log' for more details." >&5
2527 $as_echo "$as_me: error: C compiler cannot create executables
2528 See \`config.log' for more details." >&2;}
2529    { (exit 77); exit 77; }; }; }
2530 fi
2531
2532 ac_exeext=$ac_cv_exeext
2533
2534 # Check that the compiler produces executables we can run.  If not, either
2535 # the compiler is broken, or we cross compile.
2536 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2537 $as_echo_n "checking whether the C compiler works... " >&6; }
2538 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2539 # If not cross compiling, check that we can run a simple program.
2540 if test "$cross_compiling" != yes; then
2541   if { ac_try='./$ac_file'
2542   { (case "(($ac_try" in
2543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544   *) ac_try_echo=$ac_try;;
2545 esac
2546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2547 $as_echo "$ac_try_echo") >&5
2548   (eval "$ac_try") 2>&5
2549   ac_status=$?
2550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551   (exit $ac_status); }; }; then
2552     cross_compiling=no
2553   else
2554     if test "$cross_compiling" = maybe; then
2555         cross_compiling=yes
2556     else
2557         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2560 If you meant to cross compile, use \`--host'.
2561 See \`config.log' for more details." >&5
2562 $as_echo "$as_me: error: cannot run C compiled programs.
2563 If you meant to cross compile, use \`--host'.
2564 See \`config.log' for more details." >&2;}
2565    { (exit 1); exit 1; }; }; }
2566     fi
2567   fi
2568 fi
2569 { $as_echo "$as_me:$LINENO: result: yes" >&5
2570 $as_echo "yes" >&6; }
2571
2572 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2573 ac_clean_files=$ac_clean_files_save
2574 # Check that the compiler produces executables we can run.  If not, either
2575 # the compiler is broken, or we cross compile.
2576 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2577 $as_echo_n "checking whether we are cross compiling... " >&6; }
2578 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2579 $as_echo "$cross_compiling" >&6; }
2580
2581 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2582 $as_echo_n "checking for suffix of executables... " >&6; }
2583 if { (ac_try="$ac_link"
2584 case "(($ac_try" in
2585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586   *) ac_try_echo=$ac_try;;
2587 esac
2588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2589 $as_echo "$ac_try_echo") >&5
2590   (eval "$ac_link") 2>&5
2591   ac_status=$?
2592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593   (exit $ac_status); }; then
2594   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2595 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2596 # work properly (i.e., refer to `conftest.exe'), while it won't with
2597 # `rm'.
2598 for ac_file in conftest.exe conftest conftest.*; do
2599   test -f "$ac_file" || continue
2600   case $ac_file in
2601     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2602     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2603           break;;
2604     * ) break;;
2605   esac
2606 done
2607 else
2608   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2611 See \`config.log' for more details." >&5
2612 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2613 See \`config.log' for more details." >&2;}
2614    { (exit 1); exit 1; }; }; }
2615 fi
2616
2617 rm -f conftest$ac_cv_exeext
2618 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2619 $as_echo "$ac_cv_exeext" >&6; }
2620
2621 rm -f conftest.$ac_ext
2622 EXEEXT=$ac_cv_exeext
2623 ac_exeext=$EXEEXT
2624 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2625 $as_echo_n "checking for suffix of object files... " >&6; }
2626 if test "${ac_cv_objext+set}" = set; then
2627   $as_echo_n "(cached) " >&6
2628 else
2629   cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h.  */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h.  */
2635
2636 int
2637 main ()
2638 {
2639
2640   ;
2641   return 0;
2642 }
2643 _ACEOF
2644 rm -f conftest.o conftest.obj
2645 if { (ac_try="$ac_compile"
2646 case "(($ac_try" in
2647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648   *) ac_try_echo=$ac_try;;
2649 esac
2650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2651 $as_echo "$ac_try_echo") >&5
2652   (eval "$ac_compile") 2>&5
2653   ac_status=$?
2654   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; then
2656   for ac_file in conftest.o conftest.obj conftest.*; do
2657   test -f "$ac_file" || continue;
2658   case $ac_file in
2659     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2660     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2661        break;;
2662   esac
2663 done
2664 else
2665   $as_echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2671 See \`config.log' for more details." >&5
2672 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2673 See \`config.log' for more details." >&2;}
2674    { (exit 1); exit 1; }; }; }
2675 fi
2676
2677 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2678 fi
2679 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2680 $as_echo "$ac_cv_objext" >&6; }
2681 OBJEXT=$ac_cv_objext
2682 ac_objext=$OBJEXT
2683 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2684 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2685 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2686   $as_echo_n "(cached) " >&6
2687 else
2688   cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h.  */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h.  */
2694
2695 int
2696 main ()
2697 {
2698 #ifndef __GNUC__
2699        choke me
2700 #endif
2701
2702   ;
2703   return 0;
2704 }
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (ac_try="$ac_compile"
2708 case "(($ac_try" in
2709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710   *) ac_try_echo=$ac_try;;
2711 esac
2712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2713 $as_echo "$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   $as_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_compiler_gnu=yes
2725 else
2726   $as_echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2728
2729         ac_compiler_gnu=no
2730 fi
2731
2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2734
2735 fi
2736 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2737 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2738 if test $ac_compiler_gnu = yes; then
2739   GCC=yes
2740 else
2741   GCC=
2742 fi
2743 ac_test_CFLAGS=${CFLAGS+set}
2744 ac_save_CFLAGS=$CFLAGS
2745 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2746 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2747 if test "${ac_cv_prog_cc_g+set}" = set; then
2748   $as_echo_n "(cached) " >&6
2749 else
2750   ac_save_c_werror_flag=$ac_c_werror_flag
2751    ac_c_werror_flag=yes
2752    ac_cv_prog_cc_g=no
2753    CFLAGS="-g"
2754    cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h.  */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h.  */
2760
2761 int
2762 main ()
2763 {
2764
2765   ;
2766   return 0;
2767 }
2768 _ACEOF
2769 rm -f conftest.$ac_objext
2770 if { (ac_try="$ac_compile"
2771 case "(($ac_try" in
2772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773   *) ac_try_echo=$ac_try;;
2774 esac
2775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2776 $as_echo "$ac_try_echo") >&5
2777   (eval "$ac_compile") 2>conftest.er1
2778   ac_status=$?
2779   grep -v '^ *+' conftest.er1 >conftest.err
2780   rm -f conftest.er1
2781   cat conftest.err >&5
2782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); } && {
2784          test -z "$ac_c_werror_flag" ||
2785          test ! -s conftest.err
2786        } && test -s conftest.$ac_objext; then
2787   ac_cv_prog_cc_g=yes
2788 else
2789   $as_echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2791
2792         CFLAGS=""
2793       cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h.  */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h.  */
2799
2800 int
2801 main ()
2802 {
2803
2804   ;
2805   return 0;
2806 }
2807 _ACEOF
2808 rm -f conftest.$ac_objext
2809 if { (ac_try="$ac_compile"
2810 case "(($ac_try" in
2811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812   *) ac_try_echo=$ac_try;;
2813 esac
2814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2815 $as_echo "$ac_try_echo") >&5
2816   (eval "$ac_compile") 2>conftest.er1
2817   ac_status=$?
2818   grep -v '^ *+' conftest.er1 >conftest.err
2819   rm -f conftest.er1
2820   cat conftest.err >&5
2821   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822   (exit $ac_status); } && {
2823          test -z "$ac_c_werror_flag" ||
2824          test ! -s conftest.err
2825        } && test -s conftest.$ac_objext; then
2826   :
2827 else
2828   $as_echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2830
2831         ac_c_werror_flag=$ac_save_c_werror_flag
2832          CFLAGS="-g"
2833          cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h.  */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h.  */
2839
2840 int
2841 main ()
2842 {
2843
2844   ;
2845   return 0;
2846 }
2847 _ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (ac_try="$ac_compile"
2850 case "(($ac_try" in
2851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852   *) ac_try_echo=$ac_try;;
2853 esac
2854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2855 $as_echo "$ac_try_echo") >&5
2856   (eval "$ac_compile") 2>conftest.er1
2857   ac_status=$?
2858   grep -v '^ *+' conftest.er1 >conftest.err
2859   rm -f conftest.er1
2860   cat conftest.err >&5
2861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862   (exit $ac_status); } && {
2863          test -z "$ac_c_werror_flag" ||
2864          test ! -s conftest.err
2865        } && test -s conftest.$ac_objext; then
2866   ac_cv_prog_cc_g=yes
2867 else
2868   $as_echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2870
2871
2872 fi
2873
2874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875 fi
2876
2877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2878 fi
2879
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881    ac_c_werror_flag=$ac_save_c_werror_flag
2882 fi
2883 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2884 $as_echo "$ac_cv_prog_cc_g" >&6; }
2885 if test "$ac_test_CFLAGS" = set; then
2886   CFLAGS=$ac_save_CFLAGS
2887 elif test $ac_cv_prog_cc_g = yes; then
2888   if test "$GCC" = yes; then
2889     CFLAGS="-g -O2"
2890   else
2891     CFLAGS="-g"
2892   fi
2893 else
2894   if test "$GCC" = yes; then
2895     CFLAGS="-O2"
2896   else
2897     CFLAGS=
2898   fi
2899 fi
2900 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2901 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2902 if test "${ac_cv_prog_cc_c89+set}" = set; then
2903   $as_echo_n "(cached) " >&6
2904 else
2905   ac_cv_prog_cc_c89=no
2906 ac_save_CC=$CC
2907 cat >conftest.$ac_ext <<_ACEOF
2908 /* confdefs.h.  */
2909 _ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h.  */
2913 #include <stdarg.h>
2914 #include <stdio.h>
2915 #include <sys/types.h>
2916 #include <sys/stat.h>
2917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2918 struct buf { int x; };
2919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2920 static char *e (p, i)
2921      char **p;
2922      int i;
2923 {
2924   return p[i];
2925 }
2926 static char *f (char * (*g) (char **, int), char **p, ...)
2927 {
2928   char *s;
2929   va_list v;
2930   va_start (v,p);
2931   s = g (p, va_arg (v,int));
2932   va_end (v);
2933   return s;
2934 }
2935
2936 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2937    function prototypes and stuff, but not '\xHH' hex character constants.
2938    These don't provoke an error unfortunately, instead are silently treated
2939    as 'x'.  The following induces an error, until -std is added to get
2940    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2941    array size at least.  It's necessary to write '\x00'==0 to get something
2942    that's true only with -std.  */
2943 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2944
2945 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2946    inside strings and character constants.  */
2947 #define FOO(x) 'x'
2948 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2949
2950 int test (int i, double x);
2951 struct s1 {int (*f) (int a);};
2952 struct s2 {int (*f) (double a);};
2953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2954 int argc;
2955 char **argv;
2956 int
2957 main ()
2958 {
2959 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2960   ;
2961   return 0;
2962 }
2963 _ACEOF
2964 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2965         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2966 do
2967   CC="$ac_save_CC $ac_arg"
2968   rm -f conftest.$ac_objext
2969 if { (ac_try="$ac_compile"
2970 case "(($ac_try" in
2971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972   *) ac_try_echo=$ac_try;;
2973 esac
2974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2975 $as_echo "$ac_try_echo") >&5
2976   (eval "$ac_compile") 2>conftest.er1
2977   ac_status=$?
2978   grep -v '^ *+' conftest.er1 >conftest.err
2979   rm -f conftest.er1
2980   cat conftest.err >&5
2981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982   (exit $ac_status); } && {
2983          test -z "$ac_c_werror_flag" ||
2984          test ! -s conftest.err
2985        } && test -s conftest.$ac_objext; then
2986   ac_cv_prog_cc_c89=$ac_arg
2987 else
2988   $as_echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991
2992 fi
2993
2994 rm -f core conftest.err conftest.$ac_objext
2995   test "x$ac_cv_prog_cc_c89" != "xno" && break
2996 done
2997 rm -f conftest.$ac_ext
2998 CC=$ac_save_CC
2999
3000 fi
3001 # AC_CACHE_VAL
3002 case "x$ac_cv_prog_cc_c89" in
3003   x)
3004     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3005 $as_echo "none needed" >&6; } ;;
3006   xno)
3007     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3008 $as_echo "unsupported" >&6; } ;;
3009   *)
3010     CC="$CC $ac_cv_prog_cc_c89"
3011     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3012 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3013 esac
3014
3015
3016 ac_ext=c
3017 ac_cpp='$CPP $CPPFLAGS'
3018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021
3022  ac_ext=cpp
3023 ac_cpp='$CXXCPP $CPPFLAGS'
3024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3027 if test -z "$CXX"; then
3028   if test -n "$CCC"; then
3029     CXX=$CCC
3030   else
3031     if test -n "$ac_tool_prefix"; then
3032   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3033   do
3034     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if test "${ac_cv_prog_CXX+set}" = set; then
3039   $as_echo_n "(cached) " >&6
3040 else
3041   if test -n "$CXX"; then
3042   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3043 else
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3045 for as_dir in $PATH
3046 do
3047   IFS=$as_save_IFS
3048   test -z "$as_dir" && as_dir=.
3049   for ac_exec_ext in '' $ac_executable_extensions; do
3050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3052     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3053     break 2
3054   fi
3055 done
3056 done
3057 IFS=$as_save_IFS
3058
3059 fi
3060 fi
3061 CXX=$ac_cv_prog_CXX
3062 if test -n "$CXX"; then
3063   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3064 $as_echo "$CXX" >&6; }
3065 else
3066   { $as_echo "$as_me:$LINENO: result: no" >&5
3067 $as_echo "no" >&6; }
3068 fi
3069
3070
3071     test -n "$CXX" && break
3072   done
3073 fi
3074 if test -z "$CXX"; then
3075   ac_ct_CXX=$CXX
3076   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3077 do
3078   # Extract the first word of "$ac_prog", so it can be a program name with args.
3079 set dummy $ac_prog; ac_word=$2
3080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3083   $as_echo_n "(cached) " >&6
3084 else
3085   if test -n "$ac_ct_CXX"; then
3086   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3087 else
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3089 for as_dir in $PATH
3090 do
3091   IFS=$as_save_IFS
3092   test -z "$as_dir" && as_dir=.
3093   for ac_exec_ext in '' $ac_executable_extensions; do
3094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095     ac_cv_prog_ac_ct_CXX="$ac_prog"
3096     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3097     break 2
3098   fi
3099 done
3100 done
3101 IFS=$as_save_IFS
3102
3103 fi
3104 fi
3105 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3106 if test -n "$ac_ct_CXX"; then
3107   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3108 $as_echo "$ac_ct_CXX" >&6; }
3109 else
3110   { $as_echo "$as_me:$LINENO: result: no" >&5
3111 $as_echo "no" >&6; }
3112 fi
3113
3114
3115   test -n "$ac_ct_CXX" && break
3116 done
3117
3118   if test "x$ac_ct_CXX" = x; then
3119     CXX="g++"
3120   else
3121     case $cross_compiling:$ac_tool_warned in
3122 yes:)
3123 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3125 ac_tool_warned=yes ;;
3126 esac
3127     CXX=$ac_ct_CXX
3128   fi
3129 fi
3130
3131   fi
3132 fi
3133 # Provide some information about the compiler.
3134 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3135 set X $ac_compile
3136 ac_compiler=$2
3137 { (ac_try="$ac_compiler --version >&5"
3138 case "(($ac_try" in
3139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140   *) ac_try_echo=$ac_try;;
3141 esac
3142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3143 $as_echo "$ac_try_echo") >&5
3144   (eval "$ac_compiler --version >&5") 2>&5
3145   ac_status=$?
3146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }
3148 { (ac_try="$ac_compiler -v >&5"
3149 case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154 $as_echo "$ac_try_echo") >&5
3155   (eval "$ac_compiler -v >&5") 2>&5
3156   ac_status=$?
3157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); }
3159 { (ac_try="$ac_compiler -V >&5"
3160 case "(($ac_try" in
3161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162   *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166   (eval "$ac_compiler -V >&5") 2>&5
3167   ac_status=$?
3168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169   (exit $ac_status); }
3170
3171 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3172 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3173 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3174   $as_echo_n "(cached) " >&6
3175 else
3176   cat >conftest.$ac_ext <<_ACEOF
3177 /* confdefs.h.  */
3178 _ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h.  */
3182
3183 int
3184 main ()
3185 {
3186 #ifndef __GNUC__
3187        choke me
3188 #endif
3189
3190   ;
3191   return 0;
3192 }
3193 _ACEOF
3194 rm -f conftest.$ac_objext
3195 if { (ac_try="$ac_compile"
3196 case "(($ac_try" in
3197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198   *) ac_try_echo=$ac_try;;
3199 esac
3200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3201 $as_echo "$ac_try_echo") >&5
3202   (eval "$ac_compile") 2>conftest.er1
3203   ac_status=$?
3204   grep -v '^ *+' conftest.er1 >conftest.err
3205   rm -f conftest.er1
3206   cat conftest.err >&5
3207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); } && {
3209          test -z "$ac_cxx_werror_flag" ||
3210          test ! -s conftest.err
3211        } && test -s conftest.$ac_objext; then
3212   ac_compiler_gnu=yes
3213 else
3214   $as_echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217         ac_compiler_gnu=no
3218 fi
3219
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3222
3223 fi
3224 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3225 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3226 if test $ac_compiler_gnu = yes; then
3227   GXX=yes
3228 else
3229   GXX=
3230 fi
3231 ac_test_CXXFLAGS=${CXXFLAGS+set}
3232 ac_save_CXXFLAGS=$CXXFLAGS
3233 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3234 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3235 if test "${ac_cv_prog_cxx_g+set}" = set; then
3236   $as_echo_n "(cached) " >&6
3237 else
3238   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3239    ac_cxx_werror_flag=yes
3240    ac_cv_prog_cxx_g=no
3241    CXXFLAGS="-g"
3242    cat >conftest.$ac_ext <<_ACEOF
3243 /* confdefs.h.  */
3244 _ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h.  */
3248
3249 int
3250 main ()
3251 {
3252
3253   ;
3254   return 0;
3255 }
3256 _ACEOF
3257 rm -f conftest.$ac_objext
3258 if { (ac_try="$ac_compile"
3259 case "(($ac_try" in
3260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261   *) ac_try_echo=$ac_try;;
3262 esac
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264 $as_echo "$ac_try_echo") >&5
3265   (eval "$ac_compile") 2>conftest.er1
3266   ac_status=$?
3267   grep -v '^ *+' conftest.er1 >conftest.err
3268   rm -f conftest.er1
3269   cat conftest.err >&5
3270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271   (exit $ac_status); } && {
3272          test -z "$ac_cxx_werror_flag" ||
3273          test ! -s conftest.err
3274        } && test -s conftest.$ac_objext; then
3275   ac_cv_prog_cxx_g=yes
3276 else
3277   $as_echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3279
3280         CXXFLAGS=""
3281       cat >conftest.$ac_ext <<_ACEOF
3282 /* confdefs.h.  */
3283 _ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h.  */
3287
3288 int
3289 main ()
3290 {
3291
3292   ;
3293   return 0;
3294 }
3295 _ACEOF
3296 rm -f conftest.$ac_objext
3297 if { (ac_try="$ac_compile"
3298 case "(($ac_try" in
3299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300   *) ac_try_echo=$ac_try;;
3301 esac
3302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3303 $as_echo "$ac_try_echo") >&5
3304   (eval "$ac_compile") 2>conftest.er1
3305   ac_status=$?
3306   grep -v '^ *+' conftest.er1 >conftest.err
3307   rm -f conftest.er1
3308   cat conftest.err >&5
3309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310   (exit $ac_status); } && {
3311          test -z "$ac_cxx_werror_flag" ||
3312          test ! -s conftest.err
3313        } && test -s conftest.$ac_objext; then
3314   :
3315 else
3316   $as_echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3318
3319         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3320          CXXFLAGS="-g"
3321          cat >conftest.$ac_ext <<_ACEOF
3322 /* confdefs.h.  */
3323 _ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h.  */
3327
3328 int
3329 main ()
3330 {
3331
3332   ;
3333   return 0;
3334 }
3335 _ACEOF
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3338 case "(($ac_try" in
3339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340   *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343 $as_echo "$ac_try_echo") >&5
3344   (eval "$ac_compile") 2>conftest.er1
3345   ac_status=$?
3346   grep -v '^ *+' conftest.er1 >conftest.err
3347   rm -f conftest.er1
3348   cat conftest.err >&5
3349   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350   (exit $ac_status); } && {
3351          test -z "$ac_cxx_werror_flag" ||
3352          test ! -s conftest.err
3353        } && test -s conftest.$ac_objext; then
3354   ac_cv_prog_cxx_g=yes
3355 else
3356   $as_echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359
3360 fi
3361
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3363 fi
3364
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 fi
3367
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3370 fi
3371 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3372 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3373 if test "$ac_test_CXXFLAGS" = set; then
3374   CXXFLAGS=$ac_save_CXXFLAGS
3375 elif test $ac_cv_prog_cxx_g = yes; then
3376   if test "$GXX" = yes; then
3377     CXXFLAGS="-g -O2"
3378   else
3379     CXXFLAGS="-g"
3380   fi
3381 else
3382   if test "$GXX" = yes; then
3383     CXXFLAGS="-O2"
3384   else
3385     CXXFLAGS=
3386   fi
3387 fi
3388 ac_ext=c
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393
3394
3395
3396
3397 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3398 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3399
3400 cat > conftest.c << EOF
3401 #include <stdlib.h>
3402 #include <stdio.h>
3403
3404 int main (int argc, char*argv)
3405 {
3406     int a,b;
3407     b=3;
3408     int c;
3409     c=4;
3410     return 0;
3411 }
3412 EOF
3413
3414 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3415 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3416   { $as_echo "$as_me:$LINENO: result: yes" >&5
3417 $as_echo "yes" >&6; }
3418   GCC_IS_OK=true
3419   export GCC_IS_OK
3420 else
3421   echo "configure: failed program was:" >&5
3422   cat conftest.c >&5
3423   { $as_echo "$as_me:$LINENO: result: no" >&5
3424 $as_echo "no" >&6; }
3425 fi
3426 rm -f conftest*
3427
3428
3429 if test "x$GCC_IS_OK" '=' "x";then
3430     echo "***************************************************"
3431     echo "* Your gcc is too old to compile this!"
3432     echo "* "
3433     echo "* The last version compileable by this compiler is "
3434     echo "* swftools 0.7.0, which you can download from "
3435     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3436     echo "* ."
3437     echo "* Newer versions require at least gcc 3.0.0 "
3438     echo "***************************************************"
3439     exit 1
3440 fi
3441
3442 if test "x$CHECKMEM" '!=' "x";then
3443     CC="ccmalloc $CC"
3444     CXX="ccmalloc $CXX"
3445     #echo running again
3446     #unset ac_cv_prog_CC
3447     #unset ac_cv_prog_CXX
3448     #AC_PROG_CC
3449     #AC_PROG_CXX
3450 fi
3451  ac_ext=c
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3458 # On Suns, sometimes $CPP names a directory.
3459 if test -n "$CPP" && test -d "$CPP"; then
3460   CPP=
3461 fi
3462 if test -z "$CPP"; then
3463   if test "${ac_cv_prog_CPP+set}" = set; then
3464   $as_echo_n "(cached) " >&6
3465 else
3466       # Double quotes because CPP needs to be expanded
3467     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3468     do
3469       ac_preproc_ok=false
3470 for ac_c_preproc_warn_flag in '' yes
3471 do
3472   # Use a header file that comes with gcc, so configuring glibc
3473   # with a fresh cross-compiler works.
3474   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3475   # <limits.h> exists even on freestanding compilers.
3476   # On the NeXT, cc -E runs the code through the compiler's parser,
3477   # not just through cpp. "Syntax error" is here to catch this case.
3478   cat >conftest.$ac_ext <<_ACEOF
3479 /* confdefs.h.  */
3480 _ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h.  */
3484 #ifdef __STDC__
3485 # include <limits.h>
3486 #else
3487 # include <assert.h>
3488 #endif
3489                      Syntax error
3490 _ACEOF
3491 if { (ac_try="$ac_cpp conftest.$ac_ext"
3492 case "(($ac_try" in
3493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494   *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3497 $as_echo "$ac_try_echo") >&5
3498   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3499   ac_status=$?
3500   grep -v '^ *+' conftest.er1 >conftest.err
3501   rm -f conftest.er1
3502   cat conftest.err >&5
3503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504   (exit $ac_status); } >/dev/null && {
3505          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3506          test ! -s conftest.err
3507        }; then
3508   :
3509 else
3510   $as_echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3512
3513   # Broken: fails on valid input.
3514 continue
3515 fi
3516
3517 rm -f conftest.err conftest.$ac_ext
3518
3519   # OK, works on sane cases.  Now check whether nonexistent headers
3520   # can be detected and how.
3521   cat >conftest.$ac_ext <<_ACEOF
3522 /* confdefs.h.  */
3523 _ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h.  */
3527 #include <ac_nonexistent.h>
3528 _ACEOF
3529 if { (ac_try="$ac_cpp conftest.$ac_ext"
3530 case "(($ac_try" in
3531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532   *) ac_try_echo=$ac_try;;
3533 esac
3534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3535 $as_echo "$ac_try_echo") >&5
3536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3537   ac_status=$?
3538   grep -v '^ *+' conftest.er1 >conftest.err
3539   rm -f conftest.er1
3540   cat conftest.err >&5
3541   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542   (exit $ac_status); } >/dev/null && {
3543          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3544          test ! -s conftest.err
3545        }; then
3546   # Broken: success on invalid input.
3547 continue
3548 else
3549   $as_echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552   # Passes both tests.
3553 ac_preproc_ok=:
3554 break
3555 fi
3556
3557 rm -f conftest.err conftest.$ac_ext
3558
3559 done
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then
3563   break
3564 fi
3565
3566     done
3567     ac_cv_prog_CPP=$CPP
3568
3569 fi
3570   CPP=$ac_cv_prog_CPP
3571 else
3572   ac_cv_prog_CPP=$CPP
3573 fi
3574 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3575 $as_echo "$CPP" >&6; }
3576 ac_preproc_ok=false
3577 for ac_c_preproc_warn_flag in '' yes
3578 do
3579   # Use a header file that comes with gcc, so configuring glibc
3580   # with a fresh cross-compiler works.
3581   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3582   # <limits.h> exists even on freestanding compilers.
3583   # On the NeXT, cc -E runs the code through the compiler's parser,
3584   # not just through cpp. "Syntax error" is here to catch this case.
3585   cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h.  */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h.  */
3591 #ifdef __STDC__
3592 # include <limits.h>
3593 #else
3594 # include <assert.h>
3595 #endif
3596                      Syntax error
3597 _ACEOF
3598 if { (ac_try="$ac_cpp conftest.$ac_ext"
3599 case "(($ac_try" in
3600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601   *) ac_try_echo=$ac_try;;
3602 esac
3603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3604 $as_echo "$ac_try_echo") >&5
3605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3606   ac_status=$?
3607   grep -v '^ *+' conftest.er1 >conftest.err
3608   rm -f conftest.er1
3609   cat conftest.err >&5
3610   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611   (exit $ac_status); } >/dev/null && {
3612          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3613          test ! -s conftest.err
3614        }; then
3615   :
3616 else
3617   $as_echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620   # Broken: fails on valid input.
3621 continue
3622 fi
3623
3624 rm -f conftest.err conftest.$ac_ext
3625
3626   # OK, works on sane cases.  Now check whether nonexistent headers
3627   # can be detected and how.
3628   cat >conftest.$ac_ext <<_ACEOF
3629 /* confdefs.h.  */
3630 _ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h.  */
3634 #include <ac_nonexistent.h>
3635 _ACEOF
3636 if { (ac_try="$ac_cpp conftest.$ac_ext"
3637 case "(($ac_try" in
3638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639   *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3644   ac_status=$?
3645   grep -v '^ *+' conftest.er1 >conftest.err
3646   rm -f conftest.er1
3647   cat conftest.err >&5
3648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649   (exit $ac_status); } >/dev/null && {
3650          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3651          test ! -s conftest.err
3652        }; then
3653   # Broken: success on invalid input.
3654 continue
3655 else
3656   $as_echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3658
3659   # Passes both tests.
3660 ac_preproc_ok=:
3661 break
3662 fi
3663
3664 rm -f conftest.err conftest.$ac_ext
3665
3666 done
3667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3668 rm -f conftest.err conftest.$ac_ext
3669 if $ac_preproc_ok; then
3670   :
3671 else
3672   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3675 See \`config.log' for more details." >&5
3676 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3677 See \`config.log' for more details." >&2;}
3678    { (exit 1); exit 1; }; }; }
3679 fi
3680
3681 ac_ext=c
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686
3687
3688  if test -n "$ac_tool_prefix"; then
3689   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3690 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if test "${ac_cv_prog_RANLIB+set}" = set; then
3694   $as_echo_n "(cached) " >&6
3695 else
3696   if test -n "$RANLIB"; then
3697   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3698 else
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3701 do
3702   IFS=$as_save_IFS
3703   test -z "$as_dir" && as_dir=.
3704   for ac_exec_ext in '' $ac_executable_extensions; do
3705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3707     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708     break 2
3709   fi
3710 done
3711 done
3712 IFS=$as_save_IFS
3713
3714 fi
3715 fi
3716 RANLIB=$ac_cv_prog_RANLIB
3717 if test -n "$RANLIB"; then
3718   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3719 $as_echo "$RANLIB" >&6; }
3720 else
3721   { $as_echo "$as_me:$LINENO: result: no" >&5
3722 $as_echo "no" >&6; }
3723 fi
3724
3725
3726 fi
3727 if test -z "$ac_cv_prog_RANLIB"; then
3728   ac_ct_RANLIB=$RANLIB
3729   # Extract the first word of "ranlib", so it can be a program name with args.
3730 set dummy ranlib; ac_word=$2
3731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3734   $as_echo_n "(cached) " >&6
3735 else
3736   if test -n "$ac_ct_RANLIB"; then
3737   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3738 else
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 for as_dir in $PATH
3741 do
3742   IFS=$as_save_IFS
3743   test -z "$as_dir" && as_dir=.
3744   for ac_exec_ext in '' $ac_executable_extensions; do
3745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746     ac_cv_prog_ac_ct_RANLIB="ranlib"
3747     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3748     break 2
3749   fi
3750 done
3751 done
3752 IFS=$as_save_IFS
3753
3754 fi
3755 fi
3756 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3757 if test -n "$ac_ct_RANLIB"; then
3758   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3759 $as_echo "$ac_ct_RANLIB" >&6; }
3760 else
3761   { $as_echo "$as_me:$LINENO: result: no" >&5
3762 $as_echo "no" >&6; }
3763 fi
3764
3765   if test "x$ac_ct_RANLIB" = x; then
3766     RANLIB=":"
3767   else
3768     case $cross_compiling:$ac_tool_warned in
3769 yes:)
3770 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3772 ac_tool_warned=yes ;;
3773 esac
3774     RANLIB=$ac_ct_RANLIB
3775   fi
3776 else
3777   RANLIB="$ac_cv_prog_RANLIB"
3778 fi
3779
3780  { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3781 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3782 set x ${MAKE-make}
3783 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3784 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3785   $as_echo_n "(cached) " >&6
3786 else
3787   cat >conftest.make <<\_ACEOF
3788 SHELL = /bin/sh
3789 all:
3790         @echo '@@@%%%=$(MAKE)=@@@%%%'
3791 _ACEOF
3792 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3793 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3794   *@@@%%%=?*=@@@%%%*)
3795     eval ac_cv_prog_make_${ac_make}_set=yes;;
3796   *)
3797     eval ac_cv_prog_make_${ac_make}_set=no;;
3798 esac
3799 rm -f conftest.make
3800 fi
3801 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3802   { $as_echo "$as_me:$LINENO: result: yes" >&5
3803 $as_echo "yes" >&6; }
3804   SET_MAKE=
3805 else
3806   { $as_echo "$as_me:$LINENO: result: no" >&5
3807 $as_echo "no" >&6; }
3808   SET_MAKE="MAKE=${MAKE-make}"
3809 fi
3810
3811  # Find a good install program.  We prefer a C program (faster),
3812 # so one script is as good as another.  But avoid the broken or
3813 # incompatible versions:
3814 # SysV /etc/install, /usr/sbin/install
3815 # SunOS /usr/etc/install
3816 # IRIX /sbin/install
3817 # AIX /bin/install
3818 # AmigaOS /C/install, which installs bootblocks on floppy discs
3819 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3822 # OS/2's system install, which has a completely different semantic
3823 # ./install, which can be erroneously created by make from ./install.sh.
3824 # Reject install programs that cannot install multiple files.
3825 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3826 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3827 if test -z "$INSTALL"; then
3828 if test "${ac_cv_path_install+set}" = set; then
3829   $as_echo_n "(cached) " >&6
3830 else
3831   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832 for as_dir in $PATH
3833 do
3834   IFS=$as_save_IFS
3835   test -z "$as_dir" && as_dir=.
3836   # Account for people who put trailing slashes in PATH elements.
3837 case $as_dir/ in
3838   ./ | .// | /cC/* | \
3839   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3840   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3841   /usr/ucb/* ) ;;
3842   *)
3843     # OSF1 and SCO ODT 3.0 have their own names for install.
3844     # Don't use installbsd from OSF since it installs stuff as root
3845     # by default.
3846     for ac_prog in ginstall scoinst install; do
3847       for ac_exec_ext in '' $ac_executable_extensions; do
3848         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3849           if test $ac_prog = install &&
3850             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3851             # AIX install.  It has an incompatible calling convention.
3852             :
3853           elif test $ac_prog = install &&
3854             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3855             # program-specific install script used by HP pwplus--don't use.
3856             :
3857           else
3858             rm -rf conftest.one conftest.two conftest.dir
3859             echo one > conftest.one
3860             echo two > conftest.two
3861             mkdir conftest.dir
3862             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3863               test -s conftest.one && test -s conftest.two &&
3864               test -s conftest.dir/conftest.one &&
3865               test -s conftest.dir/conftest.two
3866             then
3867               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3868               break 3
3869             fi
3870           fi
3871         fi
3872       done
3873     done
3874     ;;
3875 esac
3876
3877 done
3878 IFS=$as_save_IFS
3879
3880 rm -rf conftest.one conftest.two conftest.dir
3881
3882 fi
3883   if test "${ac_cv_path_install+set}" = set; then
3884     INSTALL=$ac_cv_path_install
3885   else
3886     # As a last resort, use the slow shell script.  Don't cache a
3887     # value for INSTALL within a source directory, because that will
3888     # break other packages using the cache if that directory is
3889     # removed, or if the value is a relative name.
3890     INSTALL=$ac_install_sh
3891   fi
3892 fi
3893 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3894 $as_echo "$INSTALL" >&6; }
3895
3896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3897 # It thinks the first close brace ends the variable substitution.
3898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3899
3900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3901
3902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3903
3904  { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3905 $as_echo_n "checking whether ln -s works... " >&6; }
3906 LN_S=$as_ln_s
3907 if test "$LN_S" = "ln -s"; then
3908   { $as_echo "$as_me:$LINENO: result: yes" >&5
3909 $as_echo "yes" >&6; }
3910 else
3911   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3912 $as_echo "no, using $LN_S" >&6; }
3913 fi
3914
3915  for ac_prog in gzip uncompress compress
3916 do
3917   # Extract the first word of "$ac_prog", so it can be a program name with args.
3918 set dummy $ac_prog; ac_word=$2
3919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3922   $as_echo_n "(cached) " >&6
3923 else
3924   if test -n "$UNCOMPRESS"; then
3925   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3926 else
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3928 for as_dir in $PATH
3929 do
3930   IFS=$as_save_IFS
3931   test -z "$as_dir" && as_dir=.
3932   for ac_exec_ext in '' $ac_executable_extensions; do
3933   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934     ac_cv_prog_UNCOMPRESS="$ac_prog"
3935     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3936     break 2
3937   fi
3938 done
3939 done
3940 IFS=$as_save_IFS
3941
3942 fi
3943 fi
3944 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3945 if test -n "$UNCOMPRESS"; then
3946   { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3947 $as_echo "$UNCOMPRESS" >&6; }
3948 else
3949   { $as_echo "$as_me:$LINENO: result: no" >&5
3950 $as_echo "no" >&6; }
3951 fi
3952
3953
3954   test -n "$UNCOMPRESS" && break
3955 done
3956
3957
3958
3959 OBJEXT="o"
3960 AREXT=".a"
3961 CXXLIBS="-lstdc++"
3962
3963
3964
3965 if test "x$EXEEXT" = "x.exe";then
3966     OBJEXT="obj"
3967     AREXT=".lib"
3968     CXXLIBS=""
3969 fi
3970
3971
3972
3973
3974 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3975 $as_echo_n "checking host system type... " >&6; }
3976 if test "${ac_cv_host+set}" = set; then
3977   $as_echo_n "(cached) " >&6
3978 else
3979   if test "x$host_alias" = x; then
3980   ac_cv_host=$ac_cv_build
3981 else
3982   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3983     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3984 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3985    { (exit 1); exit 1; }; }
3986 fi
3987
3988 fi
3989 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3990 $as_echo "$ac_cv_host" >&6; }
3991 case $ac_cv_host in
3992 *-*-*) ;;
3993 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3994 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3995    { (exit 1); exit 1; }; };;
3996 esac
3997 host=$ac_cv_host
3998 ac_save_IFS=$IFS; IFS='-'
3999 set x $ac_cv_host
4000 shift
4001 host_cpu=$1
4002 host_vendor=$2
4003 shift; shift
4004 # Remember, the first character of IFS is used to create $*,
4005 # except with old shells:
4006 host_os=$*
4007 IFS=$ac_save_IFS
4008 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4009
4010
4011
4012
4013 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4014 $as_echo_n "checking for target system... " >&6; }
4015 CYGWIN=
4016 MINGW=
4017 case $host_os in
4018     *cygwin* ) CYGWIN=yes;;
4019     *mingw* ) MINGW=yes;;
4020 esac
4021
4022 AR=ar
4023 if test "x$MINGW" = "xyes"; then
4024     #fix for the debian distribution of mingw
4025     if test -x "/usr/i586-mingw32msvc/bin/ar";then
4026         AR="/usr/i586-mingw32msvc/bin/ar"
4027     fi
4028     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4029         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4030     fi
4031     #fix for the gentoo distribution of mingw
4032     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4033         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4034     fi
4035     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4036         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4037     fi
4038     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4039         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4040     fi
4041 fi
4042
4043
4044
4045 if test "x${CYGWIN}" = "xyes"; then
4046
4047 cat >>confdefs.h <<\_ACEOF
4048 #define CYGWIN 1
4049 _ACEOF
4050
4051     { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4052 $as_echo "cygwin" >&6; }
4053 else
4054     if test "x${MINGW}" = "xyes"; then
4055
4056 cat >>confdefs.h <<\_ACEOF
4057 #define MINGW 1
4058 _ACEOF
4059
4060         WIN32=1
4061
4062 cat >>confdefs.h <<\_ACEOF
4063 #define WIN32 1
4064 _ACEOF
4065
4066         LIBS="$LIBS -lws2_32 -lgdi32"
4067         { $as_echo "$as_me:$LINENO: result: mingw" >&5
4068 $as_echo "mingw" >&6; }
4069     else
4070         LINUX=1
4071         export LINUX
4072
4073 cat >>confdefs.h <<\_ACEOF
4074 #define LINUX 1
4075 _ACEOF
4076
4077         { $as_echo "$as_me:$LINENO: result: " >&5
4078 $as_echo "" >&6; }
4079     fi
4080 fi
4081
4082
4083 SLEXT="so"
4084 if test "x${MINGW}" != "xyes"; then
4085     # no mingW
4086
4087 cat >>confdefs.h <<\_ACEOF
4088 #define O_BINARY 0
4089 _ACEOF
4090
4091 else
4092     # mingW
4093     SLEXT="dll"
4094     CXXLIBS=""
4095 fi
4096 export SLEXT
4097
4098
4099
4100 # The following tries to make use of includes and libraries in
4101 # /usr/local, too. Notice: A -I/usr/local/include might break
4102 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4103 # especially on systems which link /usr/local to /usr, so it has yet
4104 # to be seen how useful this is.
4105 if test -d /usr/local/lib; then
4106     LDFLAGS="$LDFLAGS -L/usr/local/lib"
4107 fi
4108 if test -d /usr/local/include; then
4109 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4110 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4111     echo > /dev/null
4112 fi
4113 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4114     # if the user has a special prefix (like /opt), there might also be $prefix/lib
4115     # and $prefix/include, which should be included in our search paths for libraries
4116     # and includes.
4117     LDFLAGS="$LDFLAGS -L${libdir}"
4118     CPPFLAGS="$CPPFLAGS -I${includedir}"
4119     # TODO- test whether gcc still works after this
4120 fi
4121
4122 #Mac OS:
4123 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4124
4125
4126 # this must be done after (I believe) AC_PROG_MAKE_SET
4127 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4128     if test "$MACOSX";then
4129         STRIP=dsymutil
4130     else
4131         STRIP="@echo debug enabled, not stripping "
4132     fi
4133     export STRIP
4134
4135 fi
4136
4137
4138
4139 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4140 $as_echo_n "checking for sin in -lm... " >&6; }
4141 if test "${ac_cv_lib_m_sin+set}" = set; then
4142   $as_echo_n "(cached) " >&6
4143 else
4144   ac_check_lib_save_LIBS=$LIBS
4145 LIBS="-lm  $LIBS"
4146 cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h.  */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h.  */
4152
4153 /* Override any GCC internal prototype to avoid an error.
4154    Use char because int might match the return type of a GCC
4155    builtin and then its argument prototype would still apply.  */
4156 #ifdef __cplusplus
4157 extern "C"
4158 #endif
4159 char sin ();
4160 int
4161 main ()
4162 {
4163 return sin ();
4164   ;
4165   return 0;
4166 }
4167 _ACEOF
4168 rm -f conftest.$ac_objext conftest$ac_exeext
4169 if { (ac_try="$ac_link"
4170 case "(($ac_try" in
4171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172   *) ac_try_echo=$ac_try;;
4173 esac
4174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4175 $as_echo "$ac_try_echo") >&5
4176   (eval "$ac_link") 2>conftest.er1
4177   ac_status=$?
4178   grep -v '^ *+' conftest.er1 >conftest.err
4179   rm -f conftest.er1
4180   cat conftest.err >&5
4181   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); } && {
4183          test -z "$ac_c_werror_flag" ||
4184          test ! -s conftest.err
4185        } && test -s conftest$ac_exeext && {
4186          test "$cross_compiling" = yes ||
4187          $as_test_x conftest$ac_exeext
4188        }; then
4189   ac_cv_lib_m_sin=yes
4190 else
4191   $as_echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4193
4194         ac_cv_lib_m_sin=no
4195 fi
4196
4197 rm -rf conftest.dSYM
4198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4199       conftest$ac_exeext conftest.$ac_ext
4200 LIBS=$ac_check_lib_save_LIBS
4201 fi
4202 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4203 $as_echo "$ac_cv_lib_m_sin" >&6; }
4204 if test "x$ac_cv_lib_m_sin" = x""yes; then
4205   cat >>confdefs.h <<_ACEOF
4206 #define HAVE_LIBM 1
4207 _ACEOF
4208
4209   LIBS="-lm $LIBS"
4210
4211 else
4212   echo "Error: Math library not found.";
4213  exit;
4214
4215 fi
4216
4217
4218 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4219 $as_echo_n "checking for deflate in -lz... " >&6; }
4220 if test "${ac_cv_lib_z_deflate+set}" = set; then
4221   $as_echo_n "(cached) " >&6
4222 else
4223   ac_check_lib_save_LIBS=$LIBS
4224 LIBS="-lz  $LIBS"
4225 cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h.  */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h.  */
4231
4232 /* Override any GCC internal prototype to avoid an error.
4233    Use char because int might match the return type of a GCC
4234    builtin and then its argument prototype would still apply.  */
4235 #ifdef __cplusplus
4236 extern "C"
4237 #endif
4238 char deflate ();
4239 int
4240 main ()
4241 {
4242 return deflate ();
4243   ;
4244   return 0;
4245 }
4246 _ACEOF
4247 rm -f conftest.$ac_objext conftest$ac_exeext
4248 if { (ac_try="$ac_link"
4249 case "(($ac_try" in
4250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251   *) ac_try_echo=$ac_try;;
4252 esac
4253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4254 $as_echo "$ac_try_echo") >&5
4255   (eval "$ac_link") 2>conftest.er1
4256   ac_status=$?
4257   grep -v '^ *+' conftest.er1 >conftest.err
4258   rm -f conftest.er1
4259   cat conftest.err >&5
4260   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261   (exit $ac_status); } && {
4262          test -z "$ac_c_werror_flag" ||
4263          test ! -s conftest.err
4264        } && test -s conftest$ac_exeext && {
4265          test "$cross_compiling" = yes ||
4266          $as_test_x conftest$ac_exeext
4267        }; then
4268   ac_cv_lib_z_deflate=yes
4269 else
4270   $as_echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4272
4273         ac_cv_lib_z_deflate=no
4274 fi
4275
4276 rm -rf conftest.dSYM
4277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4278       conftest$ac_exeext conftest.$ac_ext
4279 LIBS=$ac_check_lib_save_LIBS
4280 fi
4281 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4282 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4283 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4284   cat >>confdefs.h <<_ACEOF
4285 #define HAVE_LIBZ 1
4286 _ACEOF
4287
4288   LIBS="-lz $LIBS"
4289
4290 else
4291   ZLIBMISSING=true
4292 fi
4293
4294
4295 if test "x$ZLIBMISSING" = "xtrue";then
4296     echo
4297     echo "ERROR:"
4298     echo "You need zlib to compile swftools"
4299     echo
4300     exit
4301 fi
4302
4303
4304 { $as_echo "$as_me:$LINENO: checking for PDF_open_file in -lpdf" >&5
4305 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4306 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then
4307   $as_echo_n "(cached) " >&6
4308 else
4309   ac_check_lib_save_LIBS=$LIBS
4310 LIBS="-lpdf  $LIBS"
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h.  */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h.  */
4317
4318 /* Override any GCC internal prototype to avoid an error.
4319    Use char because int might match the return type of a GCC
4320    builtin and then its argument prototype would still apply.  */
4321 #ifdef __cplusplus
4322 extern "C"
4323 #endif
4324 char PDF_open_file ();
4325 int
4326 main ()
4327 {
4328 return PDF_open_file ();
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 rm -f conftest.$ac_objext conftest$ac_exeext
4334 if { (ac_try="$ac_link"
4335 case "(($ac_try" in
4336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337   *) ac_try_echo=$ac_try;;
4338 esac
4339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4340 $as_echo "$ac_try_echo") >&5
4341   (eval "$ac_link") 2>conftest.er1
4342   ac_status=$?
4343   grep -v '^ *+' conftest.er1 >conftest.err
4344   rm -f conftest.er1
4345   cat conftest.err >&5
4346   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); } && {
4348          test -z "$ac_c_werror_flag" ||
4349          test ! -s conftest.err
4350        } && test -s conftest$ac_exeext && {
4351          test "$cross_compiling" = yes ||
4352          $as_test_x conftest$ac_exeext
4353        }; then
4354   ac_cv_lib_pdf_PDF_open_file=yes
4355 else
4356   $as_echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4358
4359         ac_cv_lib_pdf_PDF_open_file=no
4360 fi
4361
4362 rm -rf conftest.dSYM
4363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4364       conftest$ac_exeext conftest.$ac_ext
4365 LIBS=$ac_check_lib_save_LIBS
4366 fi
4367 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4368 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4369 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then
4370   cat >>confdefs.h <<_ACEOF
4371 #define HAVE_LIBPDF 1
4372 _ACEOF
4373
4374   LIBS="-lpdf $LIBS"
4375
4376 else
4377   PDFLIBMISSING=true
4378 fi
4379
4380
4381 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4382 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4383 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4384   $as_echo_n "(cached) " >&6
4385 else
4386   ac_check_lib_save_LIBS=$LIBS
4387 LIBS="-ljpeg  $LIBS"
4388 cat >conftest.$ac_ext <<_ACEOF
4389 /* confdefs.h.  */
4390 _ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h.  */
4394
4395 /* Override any GCC internal prototype to avoid an error.
4396    Use char because int might match the return type of a GCC
4397    builtin and then its argument prototype would still apply.  */
4398 #ifdef __cplusplus
4399 extern "C"
4400 #endif
4401 char jpeg_write_raw_data ();
4402 int
4403 main ()
4404 {
4405 return jpeg_write_raw_data ();
4406   ;
4407   return 0;
4408 }
4409 _ACEOF
4410 rm -f conftest.$ac_objext conftest$ac_exeext
4411 if { (ac_try="$ac_link"
4412 case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4417 $as_echo "$ac_try_echo") >&5
4418   (eval "$ac_link") 2>conftest.er1
4419   ac_status=$?
4420   grep -v '^ *+' conftest.er1 >conftest.err
4421   rm -f conftest.er1
4422   cat conftest.err >&5
4423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424   (exit $ac_status); } && {
4425          test -z "$ac_c_werror_flag" ||
4426          test ! -s conftest.err
4427        } && test -s conftest$ac_exeext && {
4428          test "$cross_compiling" = yes ||
4429          $as_test_x conftest$ac_exeext
4430        }; then
4431   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4432 else
4433   $as_echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4437 fi
4438
4439 rm -rf conftest.dSYM
4440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4441       conftest$ac_exeext conftest.$ac_ext
4442 LIBS=$ac_check_lib_save_LIBS
4443 fi
4444 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4445 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4446 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4447   cat >>confdefs.h <<_ACEOF
4448 #define HAVE_LIBJPEG 1
4449 _ACEOF
4450
4451   LIBS="-ljpeg $LIBS"
4452
4453 else
4454   JPEGLIBMISSING=true
4455 fi
4456
4457
4458 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4459 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4460 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4461   $as_echo_n "(cached) " >&6
4462 else
4463   ac_check_lib_save_LIBS=$LIBS
4464 LIBS="-lungif  $LIBS"
4465 cat >conftest.$ac_ext <<_ACEOF
4466 /* confdefs.h.  */
4467 _ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h.  */
4471
4472 /* Override any GCC internal prototype to avoid an error.
4473    Use char because int might match the return type of a GCC
4474    builtin and then its argument prototype would still apply.  */
4475 #ifdef __cplusplus
4476 extern "C"
4477 #endif
4478 char DGifOpen ();
4479 int
4480 main ()
4481 {
4482 return DGifOpen ();
4483   ;
4484   return 0;
4485 }
4486 _ACEOF
4487 rm -f conftest.$ac_objext conftest$ac_exeext
4488 if { (ac_try="$ac_link"
4489 case "(($ac_try" in
4490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491   *) ac_try_echo=$ac_try;;
4492 esac
4493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4494 $as_echo "$ac_try_echo") >&5
4495   (eval "$ac_link") 2>conftest.er1
4496   ac_status=$?
4497   grep -v '^ *+' conftest.er1 >conftest.err
4498   rm -f conftest.er1
4499   cat conftest.err >&5
4500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); } && {
4502          test -z "$ac_c_werror_flag" ||
4503          test ! -s conftest.err
4504        } && test -s conftest$ac_exeext && {
4505          test "$cross_compiling" = yes ||
4506          $as_test_x conftest$ac_exeext
4507        }; then
4508   ac_cv_lib_ungif_DGifOpen=yes
4509 else
4510   $as_echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513         ac_cv_lib_ungif_DGifOpen=no
4514 fi
4515
4516 rm -rf conftest.dSYM
4517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4518       conftest$ac_exeext conftest.$ac_ext
4519 LIBS=$ac_check_lib_save_LIBS
4520 fi
4521 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4522 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4523 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4524   cat >>confdefs.h <<_ACEOF
4525 #define HAVE_LIBUNGIF 1
4526 _ACEOF
4527
4528   LIBS="-lungif $LIBS"
4529
4530 else
4531   UNGIFMISSING=true
4532 fi
4533
4534 if test "$UNGIFMISSING";then
4535     UNGIFMISSING=
4536
4537 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4538 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4539 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4540   $as_echo_n "(cached) " >&6
4541 else
4542   ac_check_lib_save_LIBS=$LIBS
4543 LIBS="-lgif  $LIBS"
4544 cat >conftest.$ac_ext <<_ACEOF
4545 /* confdefs.h.  */
4546 _ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h.  */
4550
4551 /* Override any GCC internal prototype to avoid an error.
4552    Use char because int might match the return type of a GCC
4553    builtin and then its argument prototype would still apply.  */
4554 #ifdef __cplusplus
4555 extern "C"
4556 #endif
4557 char DGifOpen ();
4558 int
4559 main ()
4560 {
4561 return DGifOpen ();
4562   ;
4563   return 0;
4564 }
4565 _ACEOF
4566 rm -f conftest.$ac_objext conftest$ac_exeext
4567 if { (ac_try="$ac_link"
4568 case "(($ac_try" in
4569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570   *) ac_try_echo=$ac_try;;
4571 esac
4572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4573 $as_echo "$ac_try_echo") >&5
4574   (eval "$ac_link") 2>conftest.er1
4575   ac_status=$?
4576   grep -v '^ *+' conftest.er1 >conftest.err
4577   rm -f conftest.er1
4578   cat conftest.err >&5
4579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580   (exit $ac_status); } && {
4581          test -z "$ac_c_werror_flag" ||
4582          test ! -s conftest.err
4583        } && test -s conftest$ac_exeext && {
4584          test "$cross_compiling" = yes ||
4585          $as_test_x conftest$ac_exeext
4586        }; then
4587   ac_cv_lib_gif_DGifOpen=yes
4588 else
4589   $as_echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4591
4592         ac_cv_lib_gif_DGifOpen=no
4593 fi
4594
4595 rm -rf conftest.dSYM
4596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4597       conftest$ac_exeext conftest.$ac_ext
4598 LIBS=$ac_check_lib_save_LIBS
4599 fi
4600 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4601 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4602 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4603   cat >>confdefs.h <<_ACEOF
4604 #define HAVE_LIBGIF 1
4605 _ACEOF
4606
4607   LIBS="-lgif $LIBS"
4608
4609 else
4610   UNGIFMISSING=true
4611 fi
4612
4613 fi
4614
4615 { $as_echo "$as_me:$LINENO: checking for zzip_file_open in -lzzip" >&5
4616 $as_echo_n "checking for zzip_file_open in -lzzip... " >&6; }
4617 if test "${ac_cv_lib_zzip_zzip_file_open+set}" = set; then
4618   $as_echo_n "(cached) " >&6
4619 else
4620   ac_check_lib_save_LIBS=$LIBS
4621 LIBS="-lzzip  $LIBS"
4622 cat >conftest.$ac_ext <<_ACEOF
4623 /* confdefs.h.  */
4624 _ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h.  */
4628
4629 /* Override any GCC internal prototype to avoid an error.
4630    Use char because int might match the return type of a GCC
4631    builtin and then its argument prototype would still apply.  */
4632 #ifdef __cplusplus
4633 extern "C"
4634 #endif
4635 char zzip_file_open ();
4636 int
4637 main ()
4638 {
4639 return zzip_file_open ();
4640   ;
4641   return 0;
4642 }
4643 _ACEOF
4644 rm -f conftest.$ac_objext conftest$ac_exeext
4645 if { (ac_try="$ac_link"
4646 case "(($ac_try" in
4647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648   *) ac_try_echo=$ac_try;;
4649 esac
4650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4651 $as_echo "$ac_try_echo") >&5
4652   (eval "$ac_link") 2>conftest.er1
4653   ac_status=$?
4654   grep -v '^ *+' conftest.er1 >conftest.err
4655   rm -f conftest.er1
4656   cat conftest.err >&5
4657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); } && {
4659          test -z "$ac_c_werror_flag" ||
4660          test ! -s conftest.err
4661        } && test -s conftest$ac_exeext && {
4662          test "$cross_compiling" = yes ||
4663          $as_test_x conftest$ac_exeext
4664        }; then
4665   ac_cv_lib_zzip_zzip_file_open=yes
4666 else
4667   $as_echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4669
4670         ac_cv_lib_zzip_zzip_file_open=no
4671 fi
4672
4673 rm -rf conftest.dSYM
4674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4675       conftest$ac_exeext conftest.$ac_ext
4676 LIBS=$ac_check_lib_save_LIBS
4677 fi
4678 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_zzip_zzip_file_open" >&5
4679 $as_echo "$ac_cv_lib_zzip_zzip_file_open" >&6; }
4680 if test "x$ac_cv_lib_zzip_zzip_file_open" = x""yes; then
4681   cat >>confdefs.h <<_ACEOF
4682 #define HAVE_LIBZZIP 1
4683 _ACEOF
4684
4685   LIBS="-lzzip $LIBS"
4686
4687 else
4688   ZZIPMISSING=true
4689 fi
4690
4691
4692
4693 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4694 $as_echo_n "checking for byte order... " >&6; }
4695 if test "$cross_compiling" = yes; then
4696   CROSSCOMPILE=1
4697 else
4698   cat >conftest.$ac_ext <<_ACEOF
4699 /* confdefs.h.  */
4700 _ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h.  */
4704
4705 int main (int argc, char *argv[])
4706 {
4707     int i = 1;
4708     return *(char*)&i;
4709 }
4710
4711 _ACEOF
4712 rm -f conftest$ac_exeext
4713 if { (ac_try="$ac_link"
4714 case "(($ac_try" in
4715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716   *) ac_try_echo=$ac_try;;
4717 esac
4718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4719 $as_echo "$ac_try_echo") >&5
4720   (eval "$ac_link") 2>&5
4721   ac_status=$?
4722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4724   { (case "(($ac_try" in
4725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726   *) ac_try_echo=$ac_try;;
4727 esac
4728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4729 $as_echo "$ac_try_echo") >&5
4730   (eval "$ac_try") 2>&5
4731   ac_status=$?
4732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); }; }; then
4734   BIGENDIAN=1
4735 else
4736   $as_echo "$as_me: program exited with status $ac_status" >&5
4737 $as_echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4739
4740 ( exit $ac_status )
4741 LITTLEENDIAN=1
4742 fi
4743 rm -rf conftest.dSYM
4744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4745 fi
4746
4747
4748 export CROSSCOMPILE
4749
4750 if test "x${CROSSCOMPILE}" = "x1"; then
4751  { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4752 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4753  { $as_echo "$as_me:$LINENO: checking target system type" >&5
4754 $as_echo_n "checking target system type... " >&6; }
4755 if test "${ac_cv_target+set}" = set; then
4756   $as_echo_n "(cached) " >&6
4757 else
4758   if test "x$target_alias" = x; then
4759   ac_cv_target=$ac_cv_host
4760 else
4761   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4762     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4763 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4764    { (exit 1); exit 1; }; }
4765 fi
4766
4767 fi
4768 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4769 $as_echo "$ac_cv_target" >&6; }
4770 case $ac_cv_target in
4771 *-*-*) ;;
4772 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4773 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4774    { (exit 1); exit 1; }; };;
4775 esac
4776 target=$ac_cv_target
4777 ac_save_IFS=$IFS; IFS='-'
4778 set x $ac_cv_target
4779 shift
4780 target_cpu=$1
4781 target_vendor=$2
4782 shift; shift
4783 # Remember, the first character of IFS is used to create $*,
4784 # except with old shells:
4785 target_os=$*
4786 IFS=$ac_save_IFS
4787 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4788
4789
4790 # The aliases save the names the user supplied, while $host etc.
4791 # will get canonicalized.
4792 test -n "$target_alias" &&
4793   test "$program_prefix$program_suffix$program_transform_name" = \
4794     NONENONEs,x,x, &&
4795   program_prefix=${target_alias}-
4796  { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4797 $as_echo_n "checking for byte order, try 2... " >&6; }
4798  case "${target}" in
4799   *86* | *-pc-* )
4800      LITTLEENDIAN=1
4801      ;;
4802   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4803      BIGENDIAN=1
4804      ;;
4805  esac
4806 fi
4807
4808 export LITTLEENDIAN
4809 if test "x${LITTLEENDIAN}" = "x1"; then
4810 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4811 $as_echo "little endian" >&6; }
4812 BYTEORDERCHECKOK=1
4813 fi
4814 export BIGENDIAN
4815 if test "x${BIGENDIAN}" = "x1"; then
4816 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4817 $as_echo "big endian" >&6; }
4818 BYTEORDERCHECKOK=1
4819 WORDS_BIGENDIAN=1
4820 export WORDS_BIGENDIAN
4821
4822 cat >>confdefs.h <<\_ACEOF
4823 #define WORDS_BIGENDIAN 1
4824 _ACEOF
4825
4826 fi
4827 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4828 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4829 $as_echo "unknown" >&6; }
4830 echo Byte order could not determined.
4831 exit 1
4832 fi
4833
4834
4835
4836 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4837 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4838 if test "$cross_compiling" = yes; then
4839   CROSSCOMPILE=1
4840 else
4841   cat >conftest.$ac_ext <<_ACEOF
4842 /* confdefs.h.  */
4843 _ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h.  */
4847
4848 #include "stdlib.h"
4849 int main (int argc, char*argv[])
4850 {
4851     return system("test `touch config.tmp2`");
4852 }
4853
4854 _ACEOF
4855 rm -f conftest$ac_exeext
4856 if { (ac_try="$ac_link"
4857 case "(($ac_try" in
4858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859   *) ac_try_echo=$ac_try;;
4860 esac
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863   (eval "$ac_link") 2>&5
4864   ac_status=$?
4865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4867   { (case "(($ac_try" in
4868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869   *) ac_try_echo=$ac_try;;
4870 esac
4871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4872 $as_echo "$ac_try_echo") >&5
4873   (eval "$ac_try") 2>&5
4874   ac_status=$?
4875   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); }; }; then
4877   OK=OK
4878 else
4879   $as_echo "$as_me: program exited with status $ac_status" >&5
4880 $as_echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 fi
4884 rm -rf conftest.dSYM
4885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4886 fi
4887
4888
4889
4890 if test "x${OK}" = "xOK";then
4891     test -f config.tmp2 || OK=
4892 fi
4893
4894 if test "x${CROSSCOMPILE}" = "x1";then
4895     OK=no;
4896 fi
4897 if test "x${OK}" = "xOK";then
4898 rm -f config.tmp2
4899 { $as_echo "$as_me:$LINENO: result: yes" >&5
4900 $as_echo "yes" >&6; }
4901 SYSTEM_BACKTICKS=1
4902 export SYSTEM_BACKTICKS
4903
4904 cat >>confdefs.h <<\_ACEOF
4905 #define SYSTEM_BACKTICKS 1
4906 _ACEOF
4907
4908 else
4909 { $as_echo "$as_me:$LINENO: result: no" >&5
4910 $as_echo "no" >&6; }
4911 fi
4912
4913
4914
4915 test "$program_prefix" != NONE &&
4916   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4917 # Use a double $ so make ignores it.
4918 test "$program_suffix" != NONE &&
4919   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4920 # Double any \ or $.
4921 # By default was `s,x,x', remove it if useless.
4922 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4923 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4924
4925
4926  ac_config_headers="$ac_config_headers config.h"
4927
4928
4929
4930
4931
4932
4933 ac_header_dirent=no
4934 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4935   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4936 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4937 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4939   $as_echo_n "(cached) " >&6
4940 else
4941   cat >conftest.$ac_ext <<_ACEOF
4942 /* confdefs.h.  */
4943 _ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h.  */
4947 #include <sys/types.h>
4948 #include <$ac_hdr>
4949
4950 int
4951 main ()
4952 {
4953 if ((DIR *) 0)
4954 return 0;
4955   ;
4956   return 0;
4957 }
4958 _ACEOF
4959 rm -f conftest.$ac_objext
4960 if { (ac_try="$ac_compile"
4961 case "(($ac_try" in
4962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963   *) ac_try_echo=$ac_try;;
4964 esac
4965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4966 $as_echo "$ac_try_echo") >&5
4967   (eval "$ac_compile") 2>conftest.er1
4968   ac_status=$?
4969   grep -v '^ *+' conftest.er1 >conftest.err
4970   rm -f conftest.er1
4971   cat conftest.err >&5
4972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); } && {
4974          test -z "$ac_c_werror_flag" ||
4975          test ! -s conftest.err
4976        } && test -s conftest.$ac_objext; then
4977   eval "$as_ac_Header=yes"
4978 else
4979   $as_echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4981
4982         eval "$as_ac_Header=no"
4983 fi
4984
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4986 fi
4987 ac_res=`eval 'as_val=${'$as_ac_Header'}
4988                  $as_echo "$as_val"'`
4989                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4990 $as_echo "$ac_res" >&6; }
4991 as_val=`eval 'as_val=${'$as_ac_Header'}
4992                  $as_echo "$as_val"'`
4993    if test "x$as_val" = x""yes; then
4994   cat >>confdefs.h <<_ACEOF
4995 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4996 _ACEOF
4997
4998 ac_header_dirent=$ac_hdr; break
4999 fi
5000
5001 done
5002 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5003 if test $ac_header_dirent = dirent.h; then
5004   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5005 $as_echo_n "checking for library containing opendir... " >&6; }
5006 if test "${ac_cv_search_opendir+set}" = set; then
5007   $as_echo_n "(cached) " >&6
5008 else
5009   ac_func_search_save_LIBS=$LIBS
5010 cat >conftest.$ac_ext <<_ACEOF
5011 /* confdefs.h.  */
5012 _ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h.  */
5016
5017 /* Override any GCC internal prototype to avoid an error.
5018    Use char because int might match the return type of a GCC
5019    builtin and then its argument prototype would still apply.  */
5020 #ifdef __cplusplus
5021 extern "C"
5022 #endif
5023 char opendir ();
5024 int
5025 main ()
5026 {
5027 return opendir ();
5028   ;
5029   return 0;
5030 }
5031 _ACEOF
5032 for ac_lib in '' dir; do
5033   if test -z "$ac_lib"; then
5034     ac_res="none required"
5035   else
5036     ac_res=-l$ac_lib
5037     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5038   fi
5039   rm -f conftest.$ac_objext conftest$ac_exeext
5040 if { (ac_try="$ac_link"
5041 case "(($ac_try" in
5042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043   *) ac_try_echo=$ac_try;;
5044 esac
5045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5046 $as_echo "$ac_try_echo") >&5
5047   (eval "$ac_link") 2>conftest.er1
5048   ac_status=$?
5049   grep -v '^ *+' conftest.er1 >conftest.err
5050   rm -f conftest.er1
5051   cat conftest.err >&5
5052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053   (exit $ac_status); } && {
5054          test -z "$ac_c_werror_flag" ||
5055          test ! -s conftest.err
5056        } && test -s conftest$ac_exeext && {
5057          test "$cross_compiling" = yes ||
5058          $as_test_x conftest$ac_exeext
5059        }; then
5060   ac_cv_search_opendir=$ac_res
5061 else
5062   $as_echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065
5066 fi
5067
5068 rm -rf conftest.dSYM
5069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5070       conftest$ac_exeext
5071   if test "${ac_cv_search_opendir+set}" = set; then
5072   break
5073 fi
5074 done
5075 if test "${ac_cv_search_opendir+set}" = set; then
5076   :
5077 else
5078   ac_cv_search_opendir=no
5079 fi
5080 rm conftest.$ac_ext
5081 LIBS=$ac_func_search_save_LIBS
5082 fi
5083 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5084 $as_echo "$ac_cv_search_opendir" >&6; }
5085 ac_res=$ac_cv_search_opendir
5086 if test "$ac_res" != no; then
5087   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5088
5089 fi
5090
5091 else
5092   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5093 $as_echo_n "checking for library containing opendir... " >&6; }
5094 if test "${ac_cv_search_opendir+set}" = set; then
5095   $as_echo_n "(cached) " >&6
5096 else
5097   ac_func_search_save_LIBS=$LIBS
5098 cat >conftest.$ac_ext <<_ACEOF
5099 /* confdefs.h.  */
5100 _ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h.  */
5104
5105 /* Override any GCC internal prototype to avoid an error.
5106    Use char because int might match the return type of a GCC
5107    builtin and then its argument prototype would still apply.  */
5108 #ifdef __cplusplus
5109 extern "C"
5110 #endif
5111 char opendir ();
5112 int
5113 main ()
5114 {
5115 return opendir ();
5116   ;
5117   return 0;
5118 }
5119 _ACEOF
5120 for ac_lib in '' x; do
5121   if test -z "$ac_lib"; then
5122     ac_res="none required"
5123   else
5124     ac_res=-l$ac_lib
5125     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5126   fi
5127   rm -f conftest.$ac_objext conftest$ac_exeext
5128 if { (ac_try="$ac_link"
5129 case "(($ac_try" in
5130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131   *) ac_try_echo=$ac_try;;
5132 esac
5133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5134 $as_echo "$ac_try_echo") >&5
5135   (eval "$ac_link") 2>conftest.er1
5136   ac_status=$?
5137   grep -v '^ *+' conftest.er1 >conftest.err
5138   rm -f conftest.er1
5139   cat conftest.err >&5
5140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141   (exit $ac_status); } && {
5142          test -z "$ac_c_werror_flag" ||
5143          test ! -s conftest.err
5144        } && test -s conftest$ac_exeext && {
5145          test "$cross_compiling" = yes ||
5146          $as_test_x conftest$ac_exeext
5147        }; then
5148   ac_cv_search_opendir=$ac_res
5149 else
5150   $as_echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153
5154 fi
5155
5156 rm -rf conftest.dSYM
5157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5158       conftest$ac_exeext
5159   if test "${ac_cv_search_opendir+set}" = set; then
5160   break
5161 fi
5162 done
5163 if test "${ac_cv_search_opendir+set}" = set; then
5164   :
5165 else
5166   ac_cv_search_opendir=no
5167 fi
5168 rm conftest.$ac_ext
5169 LIBS=$ac_func_search_save_LIBS
5170 fi
5171 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5172 $as_echo "$ac_cv_search_opendir" >&6; }
5173 ac_res=$ac_cv_search_opendir
5174 if test "$ac_res" != no; then
5175   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5176
5177 fi
5178
5179 fi
5180
5181
5182 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5183 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5184 if test "${ac_cv_path_GREP+set}" = set; then
5185   $as_echo_n "(cached) " >&6
5186 else
5187   if test -z "$GREP"; then
5188   ac_path_GREP_found=false
5189   # Loop through the user's path and test for each of PROGNAME-LIST
5190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195   for ac_prog in grep ggrep; do
5196     for ac_exec_ext in '' $ac_executable_extensions; do
5197       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5198       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5199 # Check for GNU ac_path_GREP and select it if it is found.
5200   # Check for GNU $ac_path_GREP
5201 case `"$ac_path_GREP" --version 2>&1` in
5202 *GNU*)
5203   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5204 *)
5205   ac_count=0
5206   $as_echo_n 0123456789 >"conftest.in"
5207   while :
5208   do
5209     cat "conftest.in" "conftest.in" >"conftest.tmp"
5210     mv "conftest.tmp" "conftest.in"
5211     cp "conftest.in" "conftest.nl"
5212     $as_echo 'GREP' >> "conftest.nl"
5213     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5214     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5215     ac_count=`expr $ac_count + 1`
5216     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5217       # Best one so far, save it but keep looking for a better one
5218       ac_cv_path_GREP="$ac_path_GREP"
5219       ac_path_GREP_max=$ac_count
5220     fi
5221     # 10*(2^10) chars as input seems more than enough
5222     test $ac_count -gt 10 && break
5223   done
5224   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5225 esac
5226
5227       $ac_path_GREP_found && break 3
5228     done
5229   done
5230 done
5231 IFS=$as_save_IFS
5232   if test -z "$ac_cv_path_GREP"; then
5233     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5234 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5235    { (exit 1); exit 1; }; }
5236   fi
5237 else
5238   ac_cv_path_GREP=$GREP
5239 fi
5240
5241 fi
5242 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5243 $as_echo "$ac_cv_path_GREP" >&6; }
5244  GREP="$ac_cv_path_GREP"
5245
5246
5247 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5248 $as_echo_n "checking for egrep... " >&6; }
5249 if test "${ac_cv_path_EGREP+set}" = set; then
5250   $as_echo_n "(cached) " >&6
5251 else
5252   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5253    then ac_cv_path_EGREP="$GREP -E"
5254    else
5255      if test -z "$EGREP"; then
5256   ac_path_EGREP_found=false
5257   # Loop through the user's path and test for each of PROGNAME-LIST
5258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5260 do
5261   IFS=$as_save_IFS
5262   test -z "$as_dir" && as_dir=.
5263   for ac_prog in egrep; do
5264     for ac_exec_ext in '' $ac_executable_extensions; do
5265       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5266       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5267 # Check for GNU ac_path_EGREP and select it if it is found.
5268   # Check for GNU $ac_path_EGREP
5269 case `"$ac_path_EGREP" --version 2>&1` in
5270 *GNU*)
5271   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5272 *)
5273   ac_count=0
5274   $as_echo_n 0123456789 >"conftest.in"
5275   while :
5276   do
5277     cat "conftest.in" "conftest.in" >"conftest.tmp"
5278     mv "conftest.tmp" "conftest.in"
5279     cp "conftest.in" "conftest.nl"
5280     $as_echo 'EGREP' >> "conftest.nl"
5281     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5282     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5283     ac_count=`expr $ac_count + 1`
5284     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5285       # Best one so far, save it but keep looking for a better one
5286       ac_cv_path_EGREP="$ac_path_EGREP"
5287       ac_path_EGREP_max=$ac_count
5288     fi
5289     # 10*(2^10) chars as input seems more than enough
5290     test $ac_count -gt 10 && break
5291   done
5292   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5293 esac
5294
5295       $ac_path_EGREP_found && break 3
5296     done
5297   done
5298 done
5299 IFS=$as_save_IFS
5300   if test -z "$ac_cv_path_EGREP"; then
5301     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5302 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5303    { (exit 1); exit 1; }; }
5304   fi
5305 else
5306   ac_cv_path_EGREP=$EGREP
5307 fi
5308
5309    fi
5310 fi
5311 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5312 $as_echo "$ac_cv_path_EGREP" >&6; }
5313  EGREP="$ac_cv_path_EGREP"
5314
5315
5316 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5317 $as_echo_n "checking for ANSI C header files... " >&6; }
5318 if test "${ac_cv_header_stdc+set}" = set; then
5319   $as_echo_n "(cached) " >&6
5320 else
5321   cat >conftest.$ac_ext <<_ACEOF
5322 /* confdefs.h.  */
5323 _ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h.  */
5327 #include <stdlib.h>
5328 #include <stdarg.h>
5329 #include <string.h>
5330 #include <float.h>
5331
5332 int
5333 main ()
5334 {
5335
5336   ;
5337   return 0;
5338 }
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (ac_try="$ac_compile"
5342 case "(($ac_try" in
5343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344   *) ac_try_echo=$ac_try;;
5345 esac
5346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5347 $as_echo "$ac_try_echo") >&5
5348   (eval "$ac_compile") 2>conftest.er1
5349   ac_status=$?
5350   grep -v '^ *+' conftest.er1 >conftest.err
5351   rm -f conftest.er1
5352   cat conftest.err >&5
5353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); } && {
5355          test -z "$ac_c_werror_flag" ||
5356          test ! -s conftest.err
5357        } && test -s conftest.$ac_objext; then
5358   ac_cv_header_stdc=yes
5359 else
5360   $as_echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363         ac_cv_header_stdc=no
5364 fi
5365
5366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5367
5368 if test $ac_cv_header_stdc = yes; then
5369   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5370   cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376 #include <string.h>
5377
5378 _ACEOF
5379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380   $EGREP "memchr" >/dev/null 2>&1; then
5381   :
5382 else
5383   ac_cv_header_stdc=no
5384 fi
5385 rm -f conftest*
5386
5387 fi
5388
5389 if test $ac_cv_header_stdc = yes; then
5390   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5391   cat >conftest.$ac_ext <<_ACEOF
5392 /* confdefs.h.  */
5393 _ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h.  */
5397 #include <stdlib.h>
5398
5399 _ACEOF
5400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5401   $EGREP "free" >/dev/null 2>&1; then
5402   :
5403 else
5404   ac_cv_header_stdc=no
5405 fi
5406 rm -f conftest*
5407
5408 fi
5409
5410 if test $ac_cv_header_stdc = yes; then
5411   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5412   if test "$cross_compiling" = yes; then
5413   :
5414 else
5415   cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h.  */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h.  */
5421 #include <ctype.h>
5422 #include <stdlib.h>
5423 #if ((' ' & 0x0FF) == 0x020)
5424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5426 #else
5427 # define ISLOWER(c) \
5428                    (('a' <= (c) && (c) <= 'i') \
5429                      || ('j' <= (c) && (c) <= 'r') \
5430                      || ('s' <= (c) && (c) <= 'z'))
5431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5432 #endif
5433
5434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5435 int
5436 main ()
5437 {
5438   int i;
5439   for (i = 0; i < 256; i++)
5440     if (XOR (islower (i), ISLOWER (i))
5441         || toupper (i) != TOUPPER (i))
5442       return 2;
5443   return 0;
5444 }
5445 _ACEOF
5446 rm -f conftest$ac_exeext
5447 if { (ac_try="$ac_link"
5448 case "(($ac_try" in
5449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450   *) ac_try_echo=$ac_try;;
5451 esac
5452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5453 $as_echo "$ac_try_echo") >&5
5454   (eval "$ac_link") 2>&5
5455   ac_status=$?
5456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5458   { (case "(($ac_try" in
5459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460   *) ac_try_echo=$ac_try;;
5461 esac
5462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5463 $as_echo "$ac_try_echo") >&5
5464   (eval "$ac_try") 2>&5
5465   ac_status=$?
5466   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467   (exit $ac_status); }; }; then
5468   :
5469 else
5470   $as_echo "$as_me: program exited with status $ac_status" >&5
5471 $as_echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5473
5474 ( exit $ac_status )
5475 ac_cv_header_stdc=no
5476 fi
5477 rm -rf conftest.dSYM
5478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5479 fi
5480
5481
5482 fi
5483 fi
5484 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5485 $as_echo "$ac_cv_header_stdc" >&6; }
5486 if test $ac_cv_header_stdc = yes; then
5487
5488 cat >>confdefs.h <<\_ACEOF
5489 #define STDC_HEADERS 1
5490 _ACEOF
5491
5492 fi
5493
5494
5495  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5506                   inttypes.h stdint.h unistd.h
5507 do
5508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5510 $as_echo_n "checking for $ac_header... " >&6; }
5511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5512   $as_echo_n "(cached) " >&6
5513 else
5514   cat >conftest.$ac_ext <<_ACEOF
5515 /* confdefs.h.  */
5516 _ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h.  */
5520 $ac_includes_default
5521
5522 #include <$ac_header>
5523 _ACEOF
5524 rm -f conftest.$ac_objext
5525 if { (ac_try="$ac_compile"
5526 case "(($ac_try" in
5527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528   *) ac_try_echo=$ac_try;;
5529 esac
5530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5531 $as_echo "$ac_try_echo") >&5
5532   (eval "$ac_compile") 2>conftest.er1
5533   ac_status=$?
5534   grep -v '^ *+' conftest.er1 >conftest.err
5535   rm -f conftest.er1
5536   cat conftest.err >&5
5537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538   (exit $ac_status); } && {
5539          test -z "$ac_c_werror_flag" ||
5540          test ! -s conftest.err
5541        } && test -s conftest.$ac_objext; then
5542   eval "$as_ac_Header=yes"
5543 else
5544   $as_echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5546
5547         eval "$as_ac_Header=no"
5548 fi
5549
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 fi
5552 ac_res=`eval 'as_val=${'$as_ac_Header'}
5553                  $as_echo "$as_val"'`
5554                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5555 $as_echo "$ac_res" >&6; }
5556 as_val=`eval 'as_val=${'$as_ac_Header'}
5557                  $as_echo "$as_val"'`
5558    if test "x$as_val" = x""yes; then
5559   cat >>confdefs.h <<_ACEOF
5560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5561 _ACEOF
5562
5563 fi
5564
5565 done
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589 for ac_header in zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/mman.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h pdflib.h zzip/lib.h
5590 do
5591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5593   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5594 $as_echo_n "checking for $ac_header... " >&6; }
5595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5596   $as_echo_n "(cached) " >&6
5597 fi
5598 ac_res=`eval 'as_val=${'$as_ac_Header'}
5599                  $as_echo "$as_val"'`
5600                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5601 $as_echo "$ac_res" >&6; }
5602 else
5603   # Is the header compilable?
5604 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5605 $as_echo_n "checking $ac_header usability... " >&6; }
5606 cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h.  */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h.  */
5612 $ac_includes_default
5613 #include <$ac_header>
5614 _ACEOF
5615 rm -f conftest.$ac_objext
5616 if { (ac_try="$ac_compile"
5617 case "(($ac_try" in
5618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619   *) ac_try_echo=$ac_try;;
5620 esac
5621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5622 $as_echo "$ac_try_echo") >&5
5623   (eval "$ac_compile") 2>conftest.er1
5624   ac_status=$?
5625   grep -v '^ *+' conftest.er1 >conftest.err
5626   rm -f conftest.er1
5627   cat conftest.err >&5
5628   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629   (exit $ac_status); } && {
5630          test -z "$ac_c_werror_flag" ||
5631          test ! -s conftest.err
5632        } && test -s conftest.$ac_objext; then
5633   ac_header_compiler=yes
5634 else
5635   $as_echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5637
5638         ac_header_compiler=no
5639 fi
5640
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5643 $as_echo "$ac_header_compiler" >&6; }
5644
5645 # Is the header present?
5646 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5647 $as_echo_n "checking $ac_header presence... " >&6; }
5648 cat >conftest.$ac_ext <<_ACEOF
5649 /* confdefs.h.  */
5650 _ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h.  */
5654 #include <$ac_header>
5655 _ACEOF
5656 if { (ac_try="$ac_cpp conftest.$ac_ext"
5657 case "(($ac_try" in
5658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659   *) ac_try_echo=$ac_try;;
5660 esac
5661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5662 $as_echo "$ac_try_echo") >&5
5663   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5664   ac_status=$?
5665   grep -v '^ *+' conftest.er1 >conftest.err
5666   rm -f conftest.er1
5667   cat conftest.err >&5
5668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669   (exit $ac_status); } >/dev/null && {
5670          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5671          test ! -s conftest.err
5672        }; then
5673   ac_header_preproc=yes
5674 else
5675   $as_echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678   ac_header_preproc=no
5679 fi
5680
5681 rm -f conftest.err conftest.$ac_ext
5682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5683 $as_echo "$ac_header_preproc" >&6; }
5684
5685 # So?  What about this header?
5686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5687   yes:no: )
5688     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5689 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5690     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5691 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5692     ac_header_preproc=yes
5693     ;;
5694   no:yes:* )
5695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5696 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5698 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5700 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5702 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5705     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5706 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5707
5708     ;;
5709 esac
5710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5711 $as_echo_n "checking for $ac_header... " >&6; }
5712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5713   $as_echo_n "(cached) " >&6
5714 else
5715   eval "$as_ac_Header=\$ac_header_preproc"
5716 fi
5717 ac_res=`eval 'as_val=${'$as_ac_Header'}
5718                  $as_echo "$as_val"'`
5719                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5720 $as_echo "$ac_res" >&6; }
5721
5722 fi
5723 as_val=`eval 'as_val=${'$as_ac_Header'}
5724                  $as_echo "$as_val"'`
5725    if test "x$as_val" = x""yes; then
5726   cat >>confdefs.h <<_ACEOF
5727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5728 _ACEOF
5729
5730 fi
5731
5732 done
5733
5734
5735
5736 cat >>confdefs.h <<_ACEOF
5737 #define PACKAGE "$PACKAGE"
5738 _ACEOF
5739
5740
5741 cat >>confdefs.h <<_ACEOF
5742 #define VERSION "$VERSION"
5743 _ACEOF
5744
5745
5746
5747
5748
5749
5750
5751  { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5752 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5753 if test "${ac_cv_c_const+set}" = set; then
5754   $as_echo_n "(cached) " >&6
5755 else
5756   cat >conftest.$ac_ext <<_ACEOF
5757 /* confdefs.h.  */
5758 _ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h.  */
5762
5763 int
5764 main ()
5765 {
5766 /* FIXME: Include the comments suggested by Paul. */
5767 #ifndef __cplusplus
5768   /* Ultrix mips cc rejects this.  */
5769   typedef int charset[2];
5770   const charset cs;
5771   /* SunOS 4.1.1 cc rejects this.  */
5772   char const *const *pcpcc;
5773   char **ppc;
5774   /* NEC SVR4.0.2 mips cc rejects this.  */
5775   struct point {int x, y;};
5776   static struct point const zero = {0,0};
5777   /* AIX XL C 1.02.0.0 rejects this.
5778      It does not let you subtract one const X* pointer from another in
5779      an arm of an if-expression whose if-part is not a constant
5780      expression */
5781   const char *g = "string";
5782   pcpcc = &g + (g ? g-g : 0);
5783   /* HPUX 7.0 cc rejects these. */
5784   ++pcpcc;
5785   ppc = (char**) pcpcc;
5786   pcpcc = (char const *const *) ppc;
5787   { /* SCO 3.2v4 cc rejects this.  */
5788     char *t;
5789     char const *s = 0 ? (char *) 0 : (char const *) 0;
5790
5791     *t++ = 0;
5792     if (s) return 0;
5793   }
5794   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5795     int x[] = {25, 17};
5796     const int *foo = &x[0];
5797     ++foo;
5798   }
5799   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5800     typedef const int *iptr;
5801     iptr p = 0;
5802     ++p;
5803   }
5804   { /* AIX XL C 1.02.0.0 rejects this saying
5805        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5806     struct s { int j; const int *ap[3]; };
5807     struct s *b; b->j = 5;
5808   }
5809   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5810     const int foo = 10;
5811     if (!foo) return 0;
5812   }
5813   return !cs[0] && !zero.x;
5814 #endif
5815
5816   ;
5817   return 0;
5818 }
5819 _ACEOF
5820 rm -f conftest.$ac_objext
5821 if { (ac_try="$ac_compile"
5822 case "(($ac_try" in
5823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824   *) ac_try_echo=$ac_try;;
5825 esac
5826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5827 $as_echo "$ac_try_echo") >&5
5828   (eval "$ac_compile") 2>conftest.er1
5829   ac_status=$?
5830   grep -v '^ *+' conftest.er1 >conftest.err
5831   rm -f conftest.er1
5832   cat conftest.err >&5
5833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834   (exit $ac_status); } && {
5835          test -z "$ac_c_werror_flag" ||
5836          test ! -s conftest.err
5837        } && test -s conftest.$ac_objext; then
5838   ac_cv_c_const=yes
5839 else
5840   $as_echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5842
5843         ac_cv_c_const=no
5844 fi
5845
5846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847 fi
5848 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5849 $as_echo "$ac_cv_c_const" >&6; }
5850 if test $ac_cv_c_const = no; then
5851
5852 cat >>confdefs.h <<\_ACEOF
5853 #define const /**/
5854 _ACEOF
5855
5856 fi
5857
5858  { $as_echo "$as_me:$LINENO: checking for inline" >&5
5859 $as_echo_n "checking for inline... " >&6; }
5860 if test "${ac_cv_c_inline+set}" = set; then
5861   $as_echo_n "(cached) " >&6
5862 else
5863   ac_cv_c_inline=no
5864 for ac_kw in inline __inline__ __inline; do
5865   cat >conftest.$ac_ext <<_ACEOF
5866 /* confdefs.h.  */
5867 _ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h.  */
5871 #ifndef __cplusplus
5872 typedef int foo_t;
5873 static $ac_kw foo_t static_foo () {return 0; }
5874 $ac_kw foo_t foo () {return 0; }
5875 #endif
5876
5877 _ACEOF
5878 rm -f conftest.$ac_objext
5879 if { (ac_try="$ac_compile"
5880 case "(($ac_try" in
5881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882   *) ac_try_echo=$ac_try;;
5883 esac
5884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5885 $as_echo "$ac_try_echo") >&5
5886   (eval "$ac_compile") 2>conftest.er1
5887   ac_status=$?
5888   grep -v '^ *+' conftest.er1 >conftest.err
5889   rm -f conftest.er1
5890   cat conftest.err >&5
5891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892   (exit $ac_status); } && {
5893          test -z "$ac_c_werror_flag" ||
5894          test ! -s conftest.err
5895        } && test -s conftest.$ac_objext; then
5896   ac_cv_c_inline=$ac_kw
5897 else
5898   $as_echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5900
5901
5902 fi
5903
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905   test "$ac_cv_c_inline" != no && break
5906 done
5907
5908 fi
5909 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5910 $as_echo "$ac_cv_c_inline" >&6; }
5911
5912
5913 case $ac_cv_c_inline in
5914   inline | yes) ;;
5915   *)
5916     case $ac_cv_c_inline in
5917       no) ac_val=;;
5918       *) ac_val=$ac_cv_c_inline;;
5919     esac
5920     cat >>confdefs.h <<_ACEOF
5921 #ifndef __cplusplus
5922 #define inline $ac_val
5923 #endif
5924 _ACEOF
5925     ;;
5926 esac
5927
5928  { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5929 $as_echo_n "checking for off_t... " >&6; }
5930 if test "${ac_cv_type_off_t+set}" = set; then
5931   $as_echo_n "(cached) " >&6
5932 else
5933   ac_cv_type_off_t=no
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h.  */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h.  */
5940 $ac_includes_default
5941 int
5942 main ()
5943 {
5944 if (sizeof (off_t))
5945        return 0;
5946   ;
5947   return 0;
5948 }
5949 _ACEOF
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5952 case "(($ac_try" in
5953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954   *) ac_try_echo=$ac_try;;
5955 esac
5956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5957 $as_echo "$ac_try_echo") >&5
5958   (eval "$ac_compile") 2>conftest.er1
5959   ac_status=$?
5960   grep -v '^ *+' conftest.er1 >conftest.err
5961   rm -f conftest.er1
5962   cat conftest.err >&5
5963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964   (exit $ac_status); } && {
5965          test -z "$ac_c_werror_flag" ||
5966          test ! -s conftest.err
5967        } && test -s conftest.$ac_objext; then
5968   cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h.  */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h.  */
5974 $ac_includes_default
5975 int
5976 main ()
5977 {
5978 if (sizeof ((off_t)))
5979           return 0;
5980   ;
5981   return 0;
5982 }
5983 _ACEOF
5984 rm -f conftest.$ac_objext
5985 if { (ac_try="$ac_compile"
5986 case "(($ac_try" in
5987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988   *) ac_try_echo=$ac_try;;
5989 esac
5990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5991 $as_echo "$ac_try_echo") >&5
5992   (eval "$ac_compile") 2>conftest.er1
5993   ac_status=$?
5994   grep -v '^ *+' conftest.er1 >conftest.err
5995   rm -f conftest.er1
5996   cat conftest.err >&5
5997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998   (exit $ac_status); } && {
5999          test -z "$ac_c_werror_flag" ||
6000          test ! -s conftest.err
6001        } && test -s conftest.$ac_objext; then
6002   :
6003 else
6004   $as_echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6006
6007         ac_cv_type_off_t=yes
6008 fi
6009
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6011 else
6012   $as_echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015
6016 fi
6017
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6019 fi
6020 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6021 $as_echo "$ac_cv_type_off_t" >&6; }
6022 if test "x$ac_cv_type_off_t" = x""yes; then
6023   :
6024 else
6025
6026 cat >>confdefs.h <<_ACEOF
6027 #define off_t long int
6028 _ACEOF
6029
6030 fi
6031
6032  { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6033 $as_echo_n "checking for size_t... " >&6; }
6034 if test "${ac_cv_type_size_t+set}" = set; then
6035   $as_echo_n "(cached) " >&6
6036 else
6037   ac_cv_type_size_t=no
6038 cat >conftest.$ac_ext <<_ACEOF
6039 /* confdefs.h.  */
6040 _ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h.  */
6044 $ac_includes_default
6045 int
6046 main ()
6047 {
6048 if (sizeof (size_t))
6049        return 0;
6050   ;
6051   return 0;
6052 }
6053 _ACEOF
6054 rm -f conftest.$ac_objext
6055 if { (ac_try="$ac_compile"
6056 case "(($ac_try" in
6057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058   *) ac_try_echo=$ac_try;;
6059 esac
6060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6061 $as_echo "$ac_try_echo") >&5
6062   (eval "$ac_compile") 2>conftest.er1
6063   ac_status=$?
6064   grep -v '^ *+' conftest.er1 >conftest.err
6065   rm -f conftest.er1
6066   cat conftest.err >&5
6067   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068   (exit $ac_status); } && {
6069          test -z "$ac_c_werror_flag" ||
6070          test ! -s conftest.err
6071        } && test -s conftest.$ac_objext; then
6072   cat >conftest.$ac_ext <<_ACEOF
6073 /* confdefs.h.  */
6074 _ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h.  */
6078 $ac_includes_default
6079 int
6080 main ()
6081 {
6082 if (sizeof ((size_t)))
6083           return 0;
6084   ;
6085   return 0;
6086 }
6087 _ACEOF
6088 rm -f conftest.$ac_objext
6089 if { (ac_try="$ac_compile"
6090 case "(($ac_try" in
6091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092   *) ac_try_echo=$ac_try;;
6093 esac
6094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6095 $as_echo "$ac_try_echo") >&5
6096   (eval "$ac_compile") 2>conftest.er1
6097   ac_status=$?
6098   grep -v '^ *+' conftest.er1 >conftest.err
6099   rm -f conftest.er1
6100   cat conftest.err >&5
6101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102   (exit $ac_status); } && {
6103          test -z "$ac_c_werror_flag" ||
6104          test ! -s conftest.err
6105        } && test -s conftest.$ac_objext; then
6106   :
6107 else
6108   $as_echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6110
6111         ac_cv_type_size_t=yes
6112 fi
6113
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115 else
6116   $as_echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6118
6119
6120 fi
6121
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6123 fi
6124 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6125 $as_echo "$ac_cv_type_size_t" >&6; }
6126 if test "x$ac_cv_type_size_t" = x""yes; then
6127   :
6128 else
6129
6130 cat >>confdefs.h <<_ACEOF
6131 #define size_t unsigned int
6132 _ACEOF
6133
6134 fi
6135
6136  { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6137 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6138 if test "${ac_cv_struct_tm+set}" = set; then
6139   $as_echo_n "(cached) " >&6
6140 else
6141   cat >conftest.$ac_ext <<_ACEOF
6142 /* confdefs.h.  */
6143 _ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h.  */
6147 #include <sys/types.h>
6148 #include <time.h>
6149
6150 int
6151 main ()
6152 {
6153 struct tm tm;
6154                                      int *p = &tm.tm_sec;
6155                                      return !p;
6156   ;
6157   return 0;
6158 }
6159 _ACEOF
6160 rm -f conftest.$ac_objext
6161 if { (ac_try="$ac_compile"
6162 case "(($ac_try" in
6163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164   *) ac_try_echo=$ac_try;;
6165 esac
6166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6167 $as_echo "$ac_try_echo") >&5
6168   (eval "$ac_compile") 2>conftest.er1
6169   ac_status=$?
6170   grep -v '^ *+' conftest.er1 >conftest.err
6171   rm -f conftest.er1
6172   cat conftest.err >&5
6173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174   (exit $ac_status); } && {
6175          test -z "$ac_c_werror_flag" ||
6176          test ! -s conftest.err
6177        } && test -s conftest.$ac_objext; then
6178   ac_cv_struct_tm=time.h
6179 else
6180   $as_echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6182
6183         ac_cv_struct_tm=sys/time.h
6184 fi
6185
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 fi
6188 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6189 $as_echo "$ac_cv_struct_tm" >&6; }
6190 if test $ac_cv_struct_tm = sys/time.h; then
6191
6192 cat >>confdefs.h <<\_ACEOF
6193 #define TM_IN_SYS_TIME 1
6194 _ACEOF
6195
6196 fi
6197
6198  { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6199 $as_echo_n "checking for boolean... " >&6; }
6200 if test "${ac_cv_type_boolean+set}" = set; then
6201   $as_echo_n "(cached) " >&6
6202 else
6203   ac_cv_type_boolean=no
6204 cat >conftest.$ac_ext <<_ACEOF
6205 /* confdefs.h.  */
6206 _ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h.  */
6210 $ac_includes_default
6211 int
6212 main ()
6213 {
6214 if (sizeof (boolean))
6215        return 0;
6216   ;
6217   return 0;
6218 }
6219 _ACEOF
6220 rm -f conftest.$ac_objext
6221 if { (ac_try="$ac_compile"
6222 case "(($ac_try" in
6223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224   *) ac_try_echo=$ac_try;;
6225 esac
6226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6227 $as_echo "$ac_try_echo") >&5
6228   (eval "$ac_compile") 2>conftest.er1
6229   ac_status=$?
6230   grep -v '^ *+' conftest.er1 >conftest.err
6231   rm -f conftest.er1
6232   cat conftest.err >&5
6233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234   (exit $ac_status); } && {
6235          test -z "$ac_c_werror_flag" ||
6236          test ! -s conftest.err
6237        } && test -s conftest.$ac_objext; then
6238   cat >conftest.$ac_ext <<_ACEOF
6239 /* confdefs.h.  */
6240 _ACEOF
6241 cat confdefs.h >>conftest.$ac_ext
6242 cat >>conftest.$ac_ext <<_ACEOF
6243 /* end confdefs.h.  */
6244 $ac_includes_default
6245 int
6246 main ()
6247 {
6248 if (sizeof ((boolean)))
6249           return 0;
6250   ;
6251   return 0;
6252 }
6253 _ACEOF
6254 rm -f conftest.$ac_objext
6255 if { (ac_try="$ac_compile"
6256 case "(($ac_try" in
6257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258   *) ac_try_echo=$ac_try;;
6259 esac
6260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6261 $as_echo "$ac_try_echo") >&5
6262   (eval "$ac_compile") 2>conftest.er1
6263   ac_status=$?
6264   grep -v '^ *+' conftest.er1 >conftest.err
6265   rm -f conftest.er1
6266   cat conftest.err >&5
6267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268   (exit $ac_status); } && {
6269          test -z "$ac_c_werror_flag" ||
6270          test ! -s conftest.err
6271        } && test -s conftest.$ac_objext; then
6272   :
6273 else
6274   $as_echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6276
6277         ac_cv_type_boolean=yes
6278 fi
6279
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 else
6282   $as_echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6284
6285
6286 fi
6287
6288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 fi
6290 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6291 $as_echo "$ac_cv_type_boolean" >&6; }
6292 if test "x$ac_cv_type_boolean" = x""yes; then
6293   :
6294 else
6295
6296 cat >>confdefs.h <<_ACEOF
6297 #define boolean int
6298 _ACEOF
6299
6300 fi
6301  #needed for jpeglib
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6318 do
6319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6320 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6321 $as_echo_n "checking for $ac_func... " >&6; }
6322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6323   $as_echo_n "(cached) " >&6
6324 else
6325   cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h.  */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h.  */
6331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6332    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6333 #define $ac_func innocuous_$ac_func
6334
6335 /* System header to define __stub macros and hopefully few prototypes,
6336     which can conflict with char $ac_func (); below.
6337     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6338     <limits.h> exists even on freestanding compilers.  */
6339
6340 #ifdef __STDC__
6341 # include <limits.h>
6342 #else
6343 # include <assert.h>
6344 #endif
6345
6346 #undef $ac_func
6347
6348 /* Override any GCC internal prototype to avoid an error.
6349    Use char because int might match the return type of a GCC
6350    builtin and then its argument prototype would still apply.  */
6351 #ifdef __cplusplus
6352 extern "C"
6353 #endif
6354 char $ac_func ();
6355 /* The GNU C library defines this for functions which it implements
6356     to always fail with ENOSYS.  Some functions are actually named
6357     something starting with __ and the normal name is an alias.  */
6358 #if defined __stub_$ac_func || defined __stub___$ac_func
6359 choke me
6360 #endif
6361
6362 int
6363 main ()
6364 {
6365 return $ac_func ();
6366   ;
6367   return 0;
6368 }
6369 _ACEOF
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (ac_try="$ac_link"
6372 case "(($ac_try" in
6373   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374   *) ac_try_echo=$ac_try;;
6375 esac
6376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6377 $as_echo "$ac_try_echo") >&5
6378   (eval "$ac_link") 2>conftest.er1
6379   ac_status=$?
6380   grep -v '^ *+' conftest.er1 >conftest.err
6381   rm -f conftest.er1
6382   cat conftest.err >&5
6383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384   (exit $ac_status); } && {
6385          test -z "$ac_c_werror_flag" ||
6386          test ! -s conftest.err
6387        } && test -s conftest$ac_exeext && {
6388          test "$cross_compiling" = yes ||
6389          $as_test_x conftest$ac_exeext
6390        }; then
6391   eval "$as_ac_var=yes"
6392 else
6393   $as_echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6395
6396         eval "$as_ac_var=no"
6397 fi
6398
6399 rm -rf conftest.dSYM
6400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6401       conftest$ac_exeext conftest.$ac_ext
6402 fi
6403 ac_res=`eval 'as_val=${'$as_ac_var'}
6404                  $as_echo "$as_val"'`
6405                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6406 $as_echo "$ac_res" >&6; }
6407 as_val=`eval 'as_val=${'$as_ac_var'}
6408                  $as_echo "$as_val"'`
6409    if test "x$as_val" = x""yes; then
6410   cat >>confdefs.h <<_ACEOF
6411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6412 _ACEOF
6413
6414 fi
6415 done
6416
6417
6418 # The cast to long int works around a bug in the HP C Compiler
6419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6421 # This bug is HP SR number 8606223364.
6422 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6423 $as_echo_n "checking size of signed char... " >&6; }
6424 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6425   $as_echo_n "(cached) " >&6
6426 else
6427   if test "$cross_compiling" = yes; then
6428   # Depending upon the size, compute the lo and hi bounds.
6429 cat >conftest.$ac_ext <<_ACEOF
6430 /* confdefs.h.  */
6431 _ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h.  */
6435 $ac_includes_default
6436 int
6437 main ()
6438 {
6439 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];
6440 test_array [0] = 0
6441
6442   ;
6443   return 0;
6444 }
6445 _ACEOF
6446 rm -f conftest.$ac_objext
6447 if { (ac_try="$ac_compile"
6448 case "(($ac_try" in
6449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450   *) ac_try_echo=$ac_try;;
6451 esac
6452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6453 $as_echo "$ac_try_echo") >&5
6454   (eval "$ac_compile") 2>conftest.er1
6455   ac_status=$?
6456   grep -v '^ *+' conftest.er1 >conftest.err
6457   rm -f conftest.er1
6458   cat conftest.err >&5
6459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460   (exit $ac_status); } && {
6461          test -z "$ac_c_werror_flag" ||
6462          test ! -s conftest.err
6463        } && test -s conftest.$ac_objext; then
6464   ac_lo=0 ac_mid=0
6465   while :; do
6466     cat >conftest.$ac_ext <<_ACEOF
6467 /* confdefs.h.  */
6468 _ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h.  */
6472 $ac_includes_default
6473 int
6474 main ()
6475 {
6476 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6477 test_array [0] = 0
6478
6479   ;
6480   return 0;
6481 }
6482 _ACEOF
6483 rm -f conftest.$ac_objext
6484 if { (ac_try="$ac_compile"
6485 case "(($ac_try" in
6486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487   *) ac_try_echo=$ac_try;;
6488 esac
6489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6490 $as_echo "$ac_try_echo") >&5
6491   (eval "$ac_compile") 2>conftest.er1
6492   ac_status=$?
6493   grep -v '^ *+' conftest.er1 >conftest.err
6494   rm -f conftest.er1
6495   cat conftest.err >&5
6496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497   (exit $ac_status); } && {
6498          test -z "$ac_c_werror_flag" ||
6499          test ! -s conftest.err
6500        } && test -s conftest.$ac_objext; then
6501   ac_hi=$ac_mid; break
6502 else
6503   $as_echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6505
6506         ac_lo=`expr $ac_mid + 1`
6507                         if test $ac_lo -le $ac_mid; then
6508                           ac_lo= ac_hi=
6509                           break
6510                         fi
6511                         ac_mid=`expr 2 '*' $ac_mid + 1`
6512 fi
6513
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6515   done
6516 else
6517   $as_echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6519
6520         cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h.  */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h.  */
6526 $ac_includes_default
6527 int
6528 main ()
6529 {
6530 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6531 test_array [0] = 0
6532
6533   ;
6534   return 0;
6535 }
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6539 case "(($ac_try" in
6540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541   *) ac_try_echo=$ac_try;;
6542 esac
6543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6544 $as_echo "$ac_try_echo") >&5
6545   (eval "$ac_compile") 2>conftest.er1
6546   ac_status=$?
6547   grep -v '^ *+' conftest.er1 >conftest.err
6548   rm -f conftest.er1
6549   cat conftest.err >&5
6550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551   (exit $ac_status); } && {
6552          test -z "$ac_c_werror_flag" ||
6553          test ! -s conftest.err
6554        } && test -s conftest.$ac_objext; then
6555   ac_hi=-1 ac_mid=-1
6556   while :; do
6557     cat >conftest.$ac_ext <<_ACEOF
6558 /* confdefs.h.  */
6559 _ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h.  */
6563 $ac_includes_default
6564 int
6565 main ()
6566 {
6567 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6568 test_array [0] = 0
6569
6570   ;
6571   return 0;
6572 }
6573 _ACEOF
6574 rm -f conftest.$ac_objext
6575 if { (ac_try="$ac_compile"
6576 case "(($ac_try" in
6577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578   *) ac_try_echo=$ac_try;;
6579 esac
6580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6581 $as_echo "$ac_try_echo") >&5
6582   (eval "$ac_compile") 2>conftest.er1
6583   ac_status=$?
6584   grep -v '^ *+' conftest.er1 >conftest.err
6585   rm -f conftest.er1
6586   cat conftest.err >&5
6587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588   (exit $ac_status); } && {
6589          test -z "$ac_c_werror_flag" ||
6590          test ! -s conftest.err
6591        } && test -s conftest.$ac_objext; then
6592   ac_lo=$ac_mid; break
6593 else
6594   $as_echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6596
6597         ac_hi=`expr '(' $ac_mid ')' - 1`
6598                         if test $ac_mid -le $ac_hi; then
6599                           ac_lo= ac_hi=
6600                           break
6601                         fi
6602                         ac_mid=`expr 2 '*' $ac_mid`
6603 fi
6604
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606   done
6607 else
6608   $as_echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6610
6611         ac_lo= ac_hi=
6612 fi
6613
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6615 fi
6616
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 # Binary search between lo and hi bounds.
6619 while test "x$ac_lo" != "x$ac_hi"; do
6620   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6621   cat >conftest.$ac_ext <<_ACEOF
6622 /* confdefs.h.  */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h.  */
6627 $ac_includes_default
6628 int
6629 main ()
6630 {
6631 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6632 test_array [0] = 0
6633
6634   ;
6635   return 0;
6636 }
6637 _ACEOF
6638 rm -f conftest.$ac_objext
6639 if { (ac_try="$ac_compile"
6640 case "(($ac_try" in
6641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6642   *) ac_try_echo=$ac_try;;
6643 esac
6644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6645 $as_echo "$ac_try_echo") >&5
6646   (eval "$ac_compile") 2>conftest.er1
6647   ac_status=$?
6648   grep -v '^ *+' conftest.er1 >conftest.err
6649   rm -f conftest.er1
6650   cat conftest.err >&5
6651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); } && {
6653          test -z "$ac_c_werror_flag" ||
6654          test ! -s conftest.err
6655        } && test -s conftest.$ac_objext; then
6656   ac_hi=$ac_mid
6657 else
6658   $as_echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6660
6661         ac_lo=`expr '(' $ac_mid ')' + 1`
6662 fi
6663
6664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665 done
6666 case $ac_lo in
6667 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6668 '') if test "$ac_cv_type_signed_char" = yes; then
6669      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6671 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6672 See \`config.log' for more details." >&5
6673 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6674 See \`config.log' for more details." >&2;}
6675    { (exit 77); exit 77; }; }; }
6676    else
6677      ac_cv_sizeof_signed_char=0
6678    fi ;;
6679 esac
6680 else
6681   cat >conftest.$ac_ext <<_ACEOF
6682 /* confdefs.h.  */
6683 _ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h.  */
6687 $ac_includes_default
6688 static long int longval () { return (long int) (sizeof (signed char)); }
6689 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6690 #include <stdio.h>
6691 #include <stdlib.h>
6692 int
6693 main ()
6694 {
6695
6696   FILE *f = fopen ("conftest.val", "w");
6697   if (! f)
6698     return 1;
6699   if (((long int) (sizeof (signed char))) < 0)
6700     {
6701       long int i = longval ();
6702       if (i != ((long int) (sizeof (signed char))))
6703         return 1;
6704       fprintf (f, "%ld", i);
6705     }
6706   else
6707     {
6708       unsigned long int i = ulongval ();
6709       if (i != ((long int) (sizeof (signed char))))
6710         return 1;
6711       fprintf (f, "%lu", i);
6712     }
6713   /* Do not output a trailing newline, as this causes \r\n confusion
6714      on some platforms.  */
6715   return ferror (f) || fclose (f) != 0;
6716
6717   ;
6718   return 0;
6719 }
6720 _ACEOF
6721 rm -f conftest$ac_exeext
6722 if { (ac_try="$ac_link"
6723 case "(($ac_try" in
6724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725   *) ac_try_echo=$ac_try;;
6726 esac
6727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6728 $as_echo "$ac_try_echo") >&5
6729   (eval "$ac_link") 2>&5
6730   ac_status=$?
6731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6733   { (case "(($ac_try" in
6734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735   *) ac_try_echo=$ac_try;;
6736 esac
6737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6738 $as_echo "$ac_try_echo") >&5
6739   (eval "$ac_try") 2>&5
6740   ac_status=$?
6741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742   (exit $ac_status); }; }; then
6743   ac_cv_sizeof_signed_char=`cat conftest.val`
6744 else
6745   $as_echo "$as_me: program exited with status $ac_status" >&5
6746 $as_echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6748
6749 ( exit $ac_status )
6750 if test "$ac_cv_type_signed_char" = yes; then
6751      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6753 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6754 See \`config.log' for more details." >&5
6755 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6756 See \`config.log' for more details." >&2;}
6757    { (exit 77); exit 77; }; }; }
6758    else
6759      ac_cv_sizeof_signed_char=0
6760    fi
6761 fi
6762 rm -rf conftest.dSYM
6763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6764 fi
6765 rm -f conftest.val
6766 fi
6767 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6768 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6769
6770
6771
6772 cat >>confdefs.h <<_ACEOF
6773 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6774 _ACEOF
6775
6776
6777 # The cast to long int works around a bug in the HP C Compiler
6778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6780 # This bug is HP SR number 8606223364.
6781 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6782 $as_echo_n "checking size of signed short... " >&6; }
6783 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6784   $as_echo_n "(cached) " >&6
6785 else
6786   if test "$cross_compiling" = yes; then
6787   # Depending upon the size, compute the lo and hi bounds.
6788 cat >conftest.$ac_ext <<_ACEOF
6789 /* confdefs.h.  */
6790 _ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h.  */
6794 $ac_includes_default
6795 int
6796 main ()
6797 {
6798 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6799 test_array [0] = 0
6800
6801   ;
6802   return 0;
6803 }
6804 _ACEOF
6805 rm -f conftest.$ac_objext
6806 if { (ac_try="$ac_compile"
6807 case "(($ac_try" in
6808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809   *) ac_try_echo=$ac_try;;
6810 esac
6811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6812 $as_echo "$ac_try_echo") >&5
6813   (eval "$ac_compile") 2>conftest.er1
6814   ac_status=$?
6815   grep -v '^ *+' conftest.er1 >conftest.err
6816   rm -f conftest.er1
6817   cat conftest.err >&5
6818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819   (exit $ac_status); } && {
6820          test -z "$ac_c_werror_flag" ||
6821          test ! -s conftest.err
6822        } && test -s conftest.$ac_objext; then
6823   ac_lo=0 ac_mid=0
6824   while :; do
6825     cat >conftest.$ac_ext <<_ACEOF
6826 /* confdefs.h.  */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h.  */
6831 $ac_includes_default
6832 int
6833 main ()
6834 {
6835 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6836 test_array [0] = 0
6837
6838   ;
6839   return 0;
6840 }
6841 _ACEOF
6842 rm -f conftest.$ac_objext
6843 if { (ac_try="$ac_compile"
6844 case "(($ac_try" in
6845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846   *) ac_try_echo=$ac_try;;
6847 esac
6848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6849 $as_echo "$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   $as_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_hi=$ac_mid; break
6861 else
6862   $as_echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865         ac_lo=`expr $ac_mid + 1`
6866                         if test $ac_lo -le $ac_mid; then
6867                           ac_lo= ac_hi=
6868                           break
6869                         fi
6870                         ac_mid=`expr 2 '*' $ac_mid + 1`
6871 fi
6872
6873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6874   done
6875 else
6876   $as_echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6878
6879         cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h.  */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h.  */
6885 $ac_includes_default
6886 int
6887 main ()
6888 {
6889 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6890 test_array [0] = 0
6891
6892   ;
6893   return 0;
6894 }
6895 _ACEOF
6896 rm -f conftest.$ac_objext
6897 if { (ac_try="$ac_compile"
6898 case "(($ac_try" in
6899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900   *) ac_try_echo=$ac_try;;
6901 esac
6902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6903 $as_echo "$ac_try_echo") >&5
6904   (eval "$ac_compile") 2>conftest.er1
6905   ac_status=$?
6906   grep -v '^ *+' conftest.er1 >conftest.err
6907   rm -f conftest.er1
6908   cat conftest.err >&5
6909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910   (exit $ac_status); } && {
6911          test -z "$ac_c_werror_flag" ||
6912          test ! -s conftest.err
6913        } && test -s conftest.$ac_objext; then
6914   ac_hi=-1 ac_mid=-1
6915   while :; do
6916     cat >conftest.$ac_ext <<_ACEOF
6917 /* confdefs.h.  */
6918 _ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h.  */
6922 $ac_includes_default
6923 int
6924 main ()
6925 {
6926 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6927 test_array [0] = 0
6928
6929   ;
6930   return 0;
6931 }
6932 _ACEOF
6933 rm -f conftest.$ac_objext
6934 if { (ac_try="$ac_compile"
6935 case "(($ac_try" in
6936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937   *) ac_try_echo=$ac_try;;
6938 esac
6939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6940 $as_echo "$ac_try_echo") >&5
6941   (eval "$ac_compile") 2>conftest.er1
6942   ac_status=$?
6943   grep -v '^ *+' conftest.er1 >conftest.err
6944   rm -f conftest.er1
6945   cat conftest.err >&5
6946   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947   (exit $ac_status); } && {
6948          test -z "$ac_c_werror_flag" ||
6949          test ! -s conftest.err
6950        } && test -s conftest.$ac_objext; then
6951   ac_lo=$ac_mid; break
6952 else
6953   $as_echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6955
6956         ac_hi=`expr '(' $ac_mid ')' - 1`
6957                         if test $ac_mid -le $ac_hi; then
6958                           ac_lo= ac_hi=
6959                           break
6960                         fi
6961                         ac_mid=`expr 2 '*' $ac_mid`
6962 fi
6963
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965   done
6966 else
6967   $as_echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6969
6970         ac_lo= ac_hi=
6971 fi
6972
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6974 fi
6975
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 # Binary search between lo and hi bounds.
6978 while test "x$ac_lo" != "x$ac_hi"; do
6979   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6980   cat >conftest.$ac_ext <<_ACEOF
6981 /* confdefs.h.  */
6982 _ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h.  */
6986 $ac_includes_default
6987 int
6988 main ()
6989 {
6990 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6991 test_array [0] = 0
6992
6993   ;
6994   return 0;
6995 }
6996 _ACEOF
6997 rm -f conftest.$ac_objext
6998 if { (ac_try="$ac_compile"
6999 case "(($ac_try" in
7000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001   *) ac_try_echo=$ac_try;;
7002 esac
7003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7004 $as_echo "$ac_try_echo") >&5
7005   (eval "$ac_compile") 2>conftest.er1
7006   ac_status=$?
7007   grep -v '^ *+' conftest.er1 >conftest.err
7008   rm -f conftest.er1
7009   cat conftest.err >&5
7010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); } && {
7012          test -z "$ac_c_werror_flag" ||
7013          test ! -s conftest.err
7014        } && test -s conftest.$ac_objext; then
7015   ac_hi=$ac_mid
7016 else
7017   $as_echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7019
7020         ac_lo=`expr '(' $ac_mid ')' + 1`
7021 fi
7022
7023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7024 done
7025 case $ac_lo in
7026 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
7027 '') if test "$ac_cv_type_signed_short" = yes; then
7028      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7030 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7031 See \`config.log' for more details." >&5
7032 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7033 See \`config.log' for more details." >&2;}
7034    { (exit 77); exit 77; }; }; }
7035    else
7036      ac_cv_sizeof_signed_short=0
7037    fi ;;
7038 esac
7039 else
7040   cat >conftest.$ac_ext <<_ACEOF
7041 /* confdefs.h.  */
7042 _ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h.  */
7046 $ac_includes_default
7047 static long int longval () { return (long int) (sizeof (signed short)); }
7048 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
7049 #include <stdio.h>
7050 #include <stdlib.h>
7051 int
7052 main ()
7053 {
7054
7055   FILE *f = fopen ("conftest.val", "w");
7056   if (! f)
7057     return 1;
7058   if (((long int) (sizeof (signed short))) < 0)
7059     {
7060       long int i = longval ();
7061       if (i != ((long int) (sizeof (signed short))))
7062         return 1;
7063       fprintf (f, "%ld", i);
7064     }
7065   else
7066     {
7067       unsigned long int i = ulongval ();
7068       if (i != ((long int) (sizeof (signed short))))
7069         return 1;
7070       fprintf (f, "%lu", i);
7071     }
7072   /* Do not output a trailing newline, as this causes \r\n confusion
7073      on some platforms.  */
7074   return ferror (f) || fclose (f) != 0;
7075
7076   ;
7077   return 0;
7078 }
7079 _ACEOF
7080 rm -f conftest$ac_exeext
7081 if { (ac_try="$ac_link"
7082 case "(($ac_try" in
7083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084   *) ac_try_echo=$ac_try;;
7085 esac
7086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7087 $as_echo "$ac_try_echo") >&5
7088   (eval "$ac_link") 2>&5
7089   ac_status=$?
7090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7092   { (case "(($ac_try" in
7093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094   *) ac_try_echo=$ac_try;;
7095 esac
7096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7097 $as_echo "$ac_try_echo") >&5
7098   (eval "$ac_try") 2>&5
7099   ac_status=$?
7100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101   (exit $ac_status); }; }; then
7102   ac_cv_sizeof_signed_short=`cat conftest.val`
7103 else
7104   $as_echo "$as_me: program exited with status $ac_status" >&5
7105 $as_echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7107
7108 ( exit $ac_status )
7109 if test "$ac_cv_type_signed_short" = yes; then
7110      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7112 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7113 See \`config.log' for more details." >&5
7114 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7115 See \`config.log' for more details." >&2;}
7116    { (exit 77); exit 77; }; }; }
7117    else
7118      ac_cv_sizeof_signed_short=0
7119    fi
7120 fi
7121 rm -rf conftest.dSYM
7122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7123 fi
7124 rm -f conftest.val
7125 fi
7126 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
7127 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
7128
7129
7130
7131 cat >>confdefs.h <<_ACEOF
7132 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
7133 _ACEOF
7134
7135
7136 # The cast to long int works around a bug in the HP C Compiler
7137 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7138 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7139 # This bug is HP SR number 8606223364.
7140 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
7141 $as_echo_n "checking size of signed... " >&6; }
7142 if test "${ac_cv_sizeof_signed+set}" = set; then
7143   $as_echo_n "(cached) " >&6
7144 else
7145   if test "$cross_compiling" = yes; then
7146   # Depending upon the size, compute the lo and hi bounds.
7147 cat >conftest.$ac_ext <<_ACEOF
7148 /* confdefs.h.  */
7149 _ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h.  */
7153 $ac_includes_default
7154 int
7155 main ()
7156 {
7157 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
7158 test_array [0] = 0
7159
7160   ;
7161   return 0;
7162 }
7163 _ACEOF
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7166 case "(($ac_try" in
7167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168   *) ac_try_echo=$ac_try;;
7169 esac
7170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7171 $as_echo "$ac_try_echo") >&5
7172   (eval "$ac_compile") 2>conftest.er1
7173   ac_status=$?
7174   grep -v '^ *+' conftest.er1 >conftest.err
7175   rm -f conftest.er1
7176   cat conftest.err >&5
7177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); } && {
7179          test -z "$ac_c_werror_flag" ||
7180          test ! -s conftest.err
7181        } && test -s conftest.$ac_objext; then
7182   ac_lo=0 ac_mid=0
7183   while :; do
7184     cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h.  */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h.  */
7190 $ac_includes_default
7191 int
7192 main ()
7193 {
7194 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7195 test_array [0] = 0
7196
7197   ;
7198   return 0;
7199 }
7200 _ACEOF
7201 rm -f conftest.$ac_objext
7202 if { (ac_try="$ac_compile"
7203 case "(($ac_try" in
7204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7205   *) ac_try_echo=$ac_try;;
7206 esac
7207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7208 $as_echo "$ac_try_echo") >&5
7209   (eval "$ac_compile") 2>conftest.er1
7210   ac_status=$?
7211   grep -v '^ *+' conftest.er1 >conftest.err
7212   rm -f conftest.er1
7213   cat conftest.err >&5
7214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215   (exit $ac_status); } && {
7216          test -z "$ac_c_werror_flag" ||
7217          test ! -s conftest.err
7218        } && test -s conftest.$ac_objext; then
7219   ac_hi=$ac_mid; break
7220 else
7221   $as_echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7223
7224         ac_lo=`expr $ac_mid + 1`
7225                         if test $ac_lo -le $ac_mid; then
7226                           ac_lo= ac_hi=
7227                           break
7228                         fi
7229                         ac_mid=`expr 2 '*' $ac_mid + 1`
7230 fi
7231
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7233   done
7234 else
7235   $as_echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7237
7238         cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h.  */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h.  */
7244 $ac_includes_default
7245 int
7246 main ()
7247 {
7248 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7249 test_array [0] = 0
7250
7251   ;
7252   return 0;
7253 }
7254 _ACEOF
7255 rm -f conftest.$ac_objext
7256 if { (ac_try="$ac_compile"
7257 case "(($ac_try" in
7258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259   *) ac_try_echo=$ac_try;;
7260 esac
7261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7262 $as_echo "$ac_try_echo") >&5
7263   (eval "$ac_compile") 2>conftest.er1
7264   ac_status=$?
7265   grep -v '^ *+' conftest.er1 >conftest.err
7266   rm -f conftest.er1
7267   cat conftest.err >&5
7268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269   (exit $ac_status); } && {
7270          test -z "$ac_c_werror_flag" ||
7271          test ! -s conftest.err
7272        } && test -s conftest.$ac_objext; then
7273   ac_hi=-1 ac_mid=-1
7274   while :; do
7275     cat >conftest.$ac_ext <<_ACEOF
7276 /* confdefs.h.  */
7277 _ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h.  */
7281 $ac_includes_default
7282 int
7283 main ()
7284 {
7285 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7286 test_array [0] = 0
7287
7288   ;
7289   return 0;
7290 }
7291 _ACEOF
7292 rm -f conftest.$ac_objext
7293 if { (ac_try="$ac_compile"
7294 case "(($ac_try" in
7295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296   *) ac_try_echo=$ac_try;;
7297 esac
7298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7299 $as_echo "$ac_try_echo") >&5
7300   (eval "$ac_compile") 2>conftest.er1
7301   ac_status=$?
7302   grep -v '^ *+' conftest.er1 >conftest.err
7303   rm -f conftest.er1
7304   cat conftest.err >&5
7305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306   (exit $ac_status); } && {
7307          test -z "$ac_c_werror_flag" ||
7308          test ! -s conftest.err
7309        } && test -s conftest.$ac_objext; then
7310   ac_lo=$ac_mid; break
7311 else
7312   $as_echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7314
7315         ac_hi=`expr '(' $ac_mid ')' - 1`
7316                         if test $ac_mid -le $ac_hi; then
7317                           ac_lo= ac_hi=
7318                           break
7319                         fi
7320                         ac_mid=`expr 2 '*' $ac_mid`
7321 fi
7322
7323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7324   done
7325 else
7326   $as_echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7328
7329         ac_lo= ac_hi=
7330 fi
7331
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7333 fi
7334
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 # Binary search between lo and hi bounds.
7337 while test "x$ac_lo" != "x$ac_hi"; do
7338   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7339   cat >conftest.$ac_ext <<_ACEOF
7340 /* confdefs.h.  */
7341 _ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h.  */
7345 $ac_includes_default
7346 int
7347 main ()
7348 {
7349 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7350 test_array [0] = 0
7351
7352   ;
7353   return 0;
7354 }
7355 _ACEOF
7356 rm -f conftest.$ac_objext
7357 if { (ac_try="$ac_compile"
7358 case "(($ac_try" in
7359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360   *) ac_try_echo=$ac_try;;
7361 esac
7362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7363 $as_echo "$ac_try_echo") >&5
7364   (eval "$ac_compile") 2>conftest.er1
7365   ac_status=$?
7366   grep -v '^ *+' conftest.er1 >conftest.err
7367   rm -f conftest.er1
7368   cat conftest.err >&5
7369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); } && {
7371          test -z "$ac_c_werror_flag" ||
7372          test ! -s conftest.err
7373        } && test -s conftest.$ac_objext; then
7374   ac_hi=$ac_mid
7375 else
7376   $as_echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7378
7379         ac_lo=`expr '(' $ac_mid ')' + 1`
7380 fi
7381
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 done
7384 case $ac_lo in
7385 ?*) ac_cv_sizeof_signed=$ac_lo;;
7386 '') if test "$ac_cv_type_signed" = yes; then
7387      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7389 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7390 See \`config.log' for more details." >&5
7391 $as_echo "$as_me: error: cannot compute sizeof (signed)
7392 See \`config.log' for more details." >&2;}
7393    { (exit 77); exit 77; }; }; }
7394    else
7395      ac_cv_sizeof_signed=0
7396    fi ;;
7397 esac
7398 else
7399   cat >conftest.$ac_ext <<_ACEOF
7400 /* confdefs.h.  */
7401 _ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h.  */
7405 $ac_includes_default
7406 static long int longval () { return (long int) (sizeof (signed)); }
7407 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7408 #include <stdio.h>
7409 #include <stdlib.h>
7410 int
7411 main ()
7412 {
7413
7414   FILE *f = fopen ("conftest.val", "w");
7415   if (! f)
7416     return 1;
7417   if (((long int) (sizeof (signed))) < 0)
7418     {
7419       long int i = longval ();
7420       if (i != ((long int) (sizeof (signed))))
7421         return 1;
7422       fprintf (f, "%ld", i);
7423     }
7424   else
7425     {
7426       unsigned long int i = ulongval ();
7427       if (i != ((long int) (sizeof (signed))))
7428         return 1;
7429       fprintf (f, "%lu", i);
7430     }
7431   /* Do not output a trailing newline, as this causes \r\n confusion
7432      on some platforms.  */
7433   return ferror (f) || fclose (f) != 0;
7434
7435   ;
7436   return 0;
7437 }
7438 _ACEOF
7439 rm -f conftest$ac_exeext
7440 if { (ac_try="$ac_link"
7441 case "(($ac_try" in
7442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443   *) ac_try_echo=$ac_try;;
7444 esac
7445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7446 $as_echo "$ac_try_echo") >&5
7447   (eval "$ac_link") 2>&5
7448   ac_status=$?
7449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7451   { (case "(($ac_try" in
7452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7453   *) ac_try_echo=$ac_try;;
7454 esac
7455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7456 $as_echo "$ac_try_echo") >&5
7457   (eval "$ac_try") 2>&5
7458   ac_status=$?
7459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460   (exit $ac_status); }; }; then
7461   ac_cv_sizeof_signed=`cat conftest.val`
7462 else
7463   $as_echo "$as_me: program exited with status $ac_status" >&5
7464 $as_echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7466
7467 ( exit $ac_status )
7468 if test "$ac_cv_type_signed" = yes; then
7469      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7471 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7472 See \`config.log' for more details." >&5
7473 $as_echo "$as_me: error: cannot compute sizeof (signed)
7474 See \`config.log' for more details." >&2;}
7475    { (exit 77); exit 77; }; }; }
7476    else
7477      ac_cv_sizeof_signed=0
7478    fi
7479 fi
7480 rm -rf conftest.dSYM
7481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7482 fi
7483 rm -f conftest.val
7484 fi
7485 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7486 $as_echo "$ac_cv_sizeof_signed" >&6; }
7487
7488
7489
7490 cat >>confdefs.h <<_ACEOF
7491 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7492 _ACEOF
7493
7494
7495 # The cast to long int works around a bug in the HP C Compiler
7496 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7497 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7498 # This bug is HP SR number 8606223364.
7499 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7500 $as_echo_n "checking size of signed long long... " >&6; }
7501 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7502   $as_echo_n "(cached) " >&6
7503 else
7504   if test "$cross_compiling" = yes; then
7505   # Depending upon the size, compute the lo and hi bounds.
7506 cat >conftest.$ac_ext <<_ACEOF
7507 /* confdefs.h.  */
7508 _ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h.  */
7512 $ac_includes_default
7513 int
7514 main ()
7515 {
7516 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7517 test_array [0] = 0
7518
7519   ;
7520   return 0;
7521 }
7522 _ACEOF
7523 rm -f conftest.$ac_objext
7524 if { (ac_try="$ac_compile"
7525 case "(($ac_try" in
7526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527   *) ac_try_echo=$ac_try;;
7528 esac
7529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7530 $as_echo "$ac_try_echo") >&5
7531   (eval "$ac_compile") 2>conftest.er1
7532   ac_status=$?
7533   grep -v '^ *+' conftest.er1 >conftest.err
7534   rm -f conftest.er1
7535   cat conftest.err >&5
7536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537   (exit $ac_status); } && {
7538          test -z "$ac_c_werror_flag" ||
7539          test ! -s conftest.err
7540        } && test -s conftest.$ac_objext; then
7541   ac_lo=0 ac_mid=0
7542   while :; do
7543     cat >conftest.$ac_ext <<_ACEOF
7544 /* confdefs.h.  */
7545 _ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h.  */
7549 $ac_includes_default
7550 int
7551 main ()
7552 {
7553 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7554 test_array [0] = 0
7555
7556   ;
7557   return 0;
7558 }
7559 _ACEOF
7560 rm -f conftest.$ac_objext
7561 if { (ac_try="$ac_compile"
7562 case "(($ac_try" in
7563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564   *) ac_try_echo=$ac_try;;
7565 esac
7566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7567 $as_echo "$ac_try_echo") >&5
7568   (eval "$ac_compile") 2>conftest.er1
7569   ac_status=$?
7570   grep -v '^ *+' conftest.er1 >conftest.err
7571   rm -f conftest.er1
7572   cat conftest.err >&5
7573   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574   (exit $ac_status); } && {
7575          test -z "$ac_c_werror_flag" ||
7576          test ! -s conftest.err
7577        } && test -s conftest.$ac_objext; then
7578   ac_hi=$ac_mid; break
7579 else
7580   $as_echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7582
7583         ac_lo=`expr $ac_mid + 1`
7584                         if test $ac_lo -le $ac_mid; then
7585                           ac_lo= ac_hi=
7586                           break
7587                         fi
7588                         ac_mid=`expr 2 '*' $ac_mid + 1`
7589 fi
7590
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592   done
7593 else
7594   $as_echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7596
7597         cat >conftest.$ac_ext <<_ACEOF
7598 /* confdefs.h.  */
7599 _ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h.  */
7603 $ac_includes_default
7604 int
7605 main ()
7606 {
7607 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7608 test_array [0] = 0
7609
7610   ;
7611   return 0;
7612 }
7613 _ACEOF
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7616 case "(($ac_try" in
7617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618   *) ac_try_echo=$ac_try;;
7619 esac
7620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621 $as_echo "$ac_try_echo") >&5
7622   (eval "$ac_compile") 2>conftest.er1
7623   ac_status=$?
7624   grep -v '^ *+' conftest.er1 >conftest.err
7625   rm -f conftest.er1
7626   cat conftest.err >&5
7627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628   (exit $ac_status); } && {
7629          test -z "$ac_c_werror_flag" ||
7630          test ! -s conftest.err
7631        } && test -s conftest.$ac_objext; then
7632   ac_hi=-1 ac_mid=-1
7633   while :; do
7634     cat >conftest.$ac_ext <<_ACEOF
7635 /* confdefs.h.  */
7636 _ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h.  */
7640 $ac_includes_default
7641 int
7642 main ()
7643 {
7644 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7645 test_array [0] = 0
7646
7647   ;
7648   return 0;
7649 }
7650 _ACEOF
7651 rm -f conftest.$ac_objext
7652 if { (ac_try="$ac_compile"
7653 case "(($ac_try" in
7654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655   *) ac_try_echo=$ac_try;;
7656 esac
7657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7658 $as_echo "$ac_try_echo") >&5
7659   (eval "$ac_compile") 2>conftest.er1
7660   ac_status=$?
7661   grep -v '^ *+' conftest.er1 >conftest.err
7662   rm -f conftest.er1
7663   cat conftest.err >&5
7664   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665   (exit $ac_status); } && {
7666          test -z "$ac_c_werror_flag" ||
7667          test ! -s conftest.err
7668        } && test -s conftest.$ac_objext; then
7669   ac_lo=$ac_mid; break
7670 else
7671   $as_echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7673
7674         ac_hi=`expr '(' $ac_mid ')' - 1`
7675                         if test $ac_mid -le $ac_hi; then
7676                           ac_lo= ac_hi=
7677                           break
7678                         fi
7679                         ac_mid=`expr 2 '*' $ac_mid`
7680 fi
7681
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683   done
7684 else
7685   $as_echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7687
7688         ac_lo= ac_hi=
7689 fi
7690
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 fi
7693
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 # Binary search between lo and hi bounds.
7696 while test "x$ac_lo" != "x$ac_hi"; do
7697   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7698   cat >conftest.$ac_ext <<_ACEOF
7699 /* confdefs.h.  */
7700 _ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h.  */
7704 $ac_includes_default
7705 int
7706 main ()
7707 {
7708 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7709 test_array [0] = 0
7710
7711   ;
7712   return 0;
7713 }
7714 _ACEOF
7715 rm -f conftest.$ac_objext
7716 if { (ac_try="$ac_compile"
7717 case "(($ac_try" in
7718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719   *) ac_try_echo=$ac_try;;
7720 esac
7721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7722 $as_echo "$ac_try_echo") >&5
7723   (eval "$ac_compile") 2>conftest.er1
7724   ac_status=$?
7725   grep -v '^ *+' conftest.er1 >conftest.err
7726   rm -f conftest.er1
7727   cat conftest.err >&5
7728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729   (exit $ac_status); } && {
7730          test -z "$ac_c_werror_flag" ||
7731          test ! -s conftest.err
7732        } && test -s conftest.$ac_objext; then
7733   ac_hi=$ac_mid
7734 else
7735   $as_echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7737
7738         ac_lo=`expr '(' $ac_mid ')' + 1`
7739 fi
7740
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7742 done
7743 case $ac_lo in
7744 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7745 '') if test "$ac_cv_type_signed_long_long" = yes; then
7746      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7748 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7749 See \`config.log' for more details." >&5
7750 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7751 See \`config.log' for more details." >&2;}
7752    { (exit 77); exit 77; }; }; }
7753    else
7754      ac_cv_sizeof_signed_long_long=0
7755    fi ;;
7756 esac
7757 else
7758   cat >conftest.$ac_ext <<_ACEOF
7759 /* confdefs.h.  */
7760 _ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h.  */
7764 $ac_includes_default
7765 static long int longval () { return (long int) (sizeof (signed long long)); }
7766 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7767 #include <stdio.h>
7768 #include <stdlib.h>
7769 int
7770 main ()
7771 {
7772
7773   FILE *f = fopen ("conftest.val", "w");
7774   if (! f)
7775     return 1;
7776   if (((long int) (sizeof (signed long long))) < 0)
7777     {
7778       long int i = longval ();
7779       if (i != ((long int) (sizeof (signed long long))))
7780         return 1;
7781       fprintf (f, "%ld", i);
7782     }
7783   else
7784     {
7785       unsigned long int i = ulongval ();
7786       if (i != ((long int) (sizeof (signed long long))))
7787         return 1;
7788       fprintf (f, "%lu", i);
7789     }
7790   /* Do not output a trailing newline, as this causes \r\n confusion
7791      on some platforms.  */
7792   return ferror (f) || fclose (f) != 0;
7793
7794   ;
7795   return 0;
7796 }
7797 _ACEOF
7798 rm -f conftest$ac_exeext
7799 if { (ac_try="$ac_link"
7800 case "(($ac_try" in
7801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802   *) ac_try_echo=$ac_try;;
7803 esac
7804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7805 $as_echo "$ac_try_echo") >&5
7806   (eval "$ac_link") 2>&5
7807   ac_status=$?
7808   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7810   { (case "(($ac_try" in
7811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812   *) ac_try_echo=$ac_try;;
7813 esac
7814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7815 $as_echo "$ac_try_echo") >&5
7816   (eval "$ac_try") 2>&5
7817   ac_status=$?
7818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819   (exit $ac_status); }; }; then
7820   ac_cv_sizeof_signed_long_long=`cat conftest.val`
7821 else
7822   $as_echo "$as_me: program exited with status $ac_status" >&5
7823 $as_echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7825
7826 ( exit $ac_status )
7827 if test "$ac_cv_type_signed_long_long" = yes; then
7828      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7830 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7831 See \`config.log' for more details." >&5
7832 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7833 See \`config.log' for more details." >&2;}
7834    { (exit 77); exit 77; }; }; }
7835    else
7836      ac_cv_sizeof_signed_long_long=0
7837    fi
7838 fi
7839 rm -rf conftest.dSYM
7840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7841 fi
7842 rm -f conftest.val
7843 fi
7844 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7845 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7846
7847
7848
7849 cat >>confdefs.h <<_ACEOF
7850 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7851 _ACEOF
7852
7853
7854 # The cast to long int works around a bug in the HP C Compiler
7855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7857 # This bug is HP SR number 8606223364.
7858 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7859 $as_echo_n "checking size of void*... " >&6; }
7860 if test "${ac_cv_sizeof_voidp+set}" = set; then
7861   $as_echo_n "(cached) " >&6
7862 else
7863   if test "$cross_compiling" = yes; then
7864   # Depending upon the size, compute the lo and hi bounds.
7865 cat >conftest.$ac_ext <<_ACEOF
7866 /* confdefs.h.  */
7867 _ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h.  */
7871 $ac_includes_default
7872 int
7873 main ()
7874 {
7875 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7876 test_array [0] = 0
7877
7878   ;
7879   return 0;
7880 }
7881 _ACEOF
7882 rm -f conftest.$ac_objext
7883 if { (ac_try="$ac_compile"
7884 case "(($ac_try" in
7885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886   *) ac_try_echo=$ac_try;;
7887 esac
7888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7889 $as_echo "$ac_try_echo") >&5
7890   (eval "$ac_compile") 2>conftest.er1
7891   ac_status=$?
7892   grep -v '^ *+' conftest.er1 >conftest.err
7893   rm -f conftest.er1
7894   cat conftest.err >&5
7895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896   (exit $ac_status); } && {
7897          test -z "$ac_c_werror_flag" ||
7898          test ! -s conftest.err
7899        } && test -s conftest.$ac_objext; then
7900   ac_lo=0 ac_mid=0
7901   while :; do
7902     cat >conftest.$ac_ext <<_ACEOF
7903 /* confdefs.h.  */
7904 _ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h.  */
7908 $ac_includes_default
7909 int
7910 main ()
7911 {
7912 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7913 test_array [0] = 0
7914
7915   ;
7916   return 0;
7917 }
7918 _ACEOF
7919 rm -f conftest.$ac_objext
7920 if { (ac_try="$ac_compile"
7921 case "(($ac_try" in
7922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923   *) ac_try_echo=$ac_try;;
7924 esac
7925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7926 $as_echo "$ac_try_echo") >&5
7927   (eval "$ac_compile") 2>conftest.er1
7928   ac_status=$?
7929   grep -v '^ *+' conftest.er1 >conftest.err
7930   rm -f conftest.er1
7931   cat conftest.err >&5
7932   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933   (exit $ac_status); } && {
7934          test -z "$ac_c_werror_flag" ||
7935          test ! -s conftest.err
7936        } && test -s conftest.$ac_objext; then
7937   ac_hi=$ac_mid; break
7938 else
7939   $as_echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7941
7942         ac_lo=`expr $ac_mid + 1`
7943                         if test $ac_lo -le $ac_mid; then
7944                           ac_lo= ac_hi=
7945                           break
7946                         fi
7947                         ac_mid=`expr 2 '*' $ac_mid + 1`
7948 fi
7949
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7951   done
7952 else
7953   $as_echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956         cat >conftest.$ac_ext <<_ACEOF
7957 /* confdefs.h.  */
7958 _ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h.  */
7962 $ac_includes_default
7963 int
7964 main ()
7965 {
7966 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7967 test_array [0] = 0
7968
7969   ;
7970   return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7975 case "(($ac_try" in
7976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977   *) ac_try_echo=$ac_try;;
7978 esac
7979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981   (eval "$ac_compile") 2>conftest.er1
7982   ac_status=$?
7983   grep -v '^ *+' conftest.er1 >conftest.err
7984   rm -f conftest.er1
7985   cat conftest.err >&5
7986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987   (exit $ac_status); } && {
7988          test -z "$ac_c_werror_flag" ||
7989          test ! -s conftest.err
7990        } && test -s conftest.$ac_objext; then
7991   ac_hi=-1 ac_mid=-1
7992   while :; do
7993     cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999 $ac_includes_default
8000 int
8001 main ()
8002 {
8003 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
8004 test_array [0] = 0
8005
8006   ;
8007   return 0;
8008 }
8009 _ACEOF
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8012 case "(($ac_try" in
8013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014   *) ac_try_echo=$ac_try;;
8015 esac
8016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8017 $as_echo "$ac_try_echo") >&5
8018   (eval "$ac_compile") 2>conftest.er1
8019   ac_status=$?
8020   grep -v '^ *+' conftest.er1 >conftest.err
8021   rm -f conftest.er1
8022   cat conftest.err >&5
8023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024   (exit $ac_status); } && {
8025          test -z "$ac_c_werror_flag" ||
8026          test ! -s conftest.err
8027        } && test -s conftest.$ac_objext; then
8028   ac_lo=$ac_mid; break
8029 else
8030   $as_echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8032
8033         ac_hi=`expr '(' $ac_mid ')' - 1`
8034                         if test $ac_mid -le $ac_hi; then
8035                           ac_lo= ac_hi=
8036                           break
8037                         fi
8038                         ac_mid=`expr 2 '*' $ac_mid`
8039 fi
8040
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042   done
8043 else
8044   $as_echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8046
8047         ac_lo= ac_hi=
8048 fi
8049
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8051 fi
8052
8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 # Binary search between lo and hi bounds.
8055 while test "x$ac_lo" != "x$ac_hi"; do
8056   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8057   cat >conftest.$ac_ext <<_ACEOF
8058 /* confdefs.h.  */
8059 _ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h.  */
8063 $ac_includes_default
8064 int
8065 main ()
8066 {
8067 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
8068 test_array [0] = 0
8069
8070   ;
8071   return 0;
8072 }
8073 _ACEOF
8074 rm -f conftest.$ac_objext
8075 if { (ac_try="$ac_compile"
8076 case "(($ac_try" in
8077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078   *) ac_try_echo=$ac_try;;
8079 esac
8080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8081 $as_echo "$ac_try_echo") >&5
8082   (eval "$ac_compile") 2>conftest.er1
8083   ac_status=$?
8084   grep -v '^ *+' conftest.er1 >conftest.err
8085   rm -f conftest.er1
8086   cat conftest.err >&5
8087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); } && {
8089          test -z "$ac_c_werror_flag" ||
8090          test ! -s conftest.err
8091        } && test -s conftest.$ac_objext; then
8092   ac_hi=$ac_mid
8093 else
8094   $as_echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097         ac_lo=`expr '(' $ac_mid ')' + 1`
8098 fi
8099
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 done
8102 case $ac_lo in
8103 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8104 '') if test "$ac_cv_type_voidp" = yes; then
8105      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8107 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8108 See \`config.log' for more details." >&5
8109 $as_echo "$as_me: error: cannot compute sizeof (void*)
8110 See \`config.log' for more details." >&2;}
8111    { (exit 77); exit 77; }; }; }
8112    else
8113      ac_cv_sizeof_voidp=0
8114    fi ;;
8115 esac
8116 else
8117   cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h.  */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h.  */
8123 $ac_includes_default
8124 static long int longval () { return (long int) (sizeof (void*)); }
8125 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
8126 #include <stdio.h>
8127 #include <stdlib.h>
8128 int
8129 main ()
8130 {
8131
8132   FILE *f = fopen ("conftest.val", "w");
8133   if (! f)
8134     return 1;
8135   if (((long int) (sizeof (void*))) < 0)
8136     {
8137       long int i = longval ();
8138       if (i != ((long int) (sizeof (void*))))
8139         return 1;
8140       fprintf (f, "%ld", i);
8141     }
8142   else
8143     {
8144       unsigned long int i = ulongval ();
8145       if (i != ((long int) (sizeof (void*))))
8146         return 1;
8147       fprintf (f, "%lu", i);
8148     }
8149   /* Do not output a trailing newline, as this causes \r\n confusion
8150      on some platforms.  */
8151   return ferror (f) || fclose (f) != 0;
8152
8153   ;
8154   return 0;
8155 }
8156 _ACEOF
8157 rm -f conftest$ac_exeext
8158 if { (ac_try="$ac_link"
8159 case "(($ac_try" in
8160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161   *) ac_try_echo=$ac_try;;
8162 esac
8163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8164 $as_echo "$ac_try_echo") >&5
8165   (eval "$ac_link") 2>&5
8166   ac_status=$?
8167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8169   { (case "(($ac_try" in
8170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171   *) ac_try_echo=$ac_try;;
8172 esac
8173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8174 $as_echo "$ac_try_echo") >&5
8175   (eval "$ac_try") 2>&5
8176   ac_status=$?
8177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178   (exit $ac_status); }; }; then
8179   ac_cv_sizeof_voidp=`cat conftest.val`
8180 else
8181   $as_echo "$as_me: program exited with status $ac_status" >&5
8182 $as_echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8184
8185 ( exit $ac_status )
8186 if test "$ac_cv_type_voidp" = yes; then
8187      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8189 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8190 See \`config.log' for more details." >&5
8191 $as_echo "$as_me: error: cannot compute sizeof (void*)
8192 See \`config.log' for more details." >&2;}
8193    { (exit 77); exit 77; }; }; }
8194    else
8195      ac_cv_sizeof_voidp=0
8196    fi
8197 fi
8198 rm -rf conftest.dSYM
8199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8200 fi
8201 rm -f conftest.val
8202 fi
8203 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8204 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8205
8206
8207
8208 cat >>confdefs.h <<_ACEOF
8209 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8210 _ACEOF
8211
8212
8213
8214
8215
8216 # Extract the first word of "freetype-config", so it can be a program name with args.
8217 set dummy freetype-config; ac_word=$2
8218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8221   $as_echo_n "(cached) " >&6
8222 else
8223   case $FREETYPE_CONFIG in
8224   [\\/]* | ?:[\\/]*)
8225   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8226   ;;
8227   *)
8228   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8230 for as_dir in $as_dummy
8231 do
8232   IFS=$as_save_IFS
8233   test -z "$as_dir" && as_dir=.
8234   for ac_exec_ext in '' $ac_executable_extensions; do
8235   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8236     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8237     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8238     break 2
8239   fi
8240 done
8241 done
8242 IFS=$as_save_IFS
8243
8244   ;;
8245 esac
8246 fi
8247 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8248 if test -n "$FREETYPE_CONFIG"; then
8249   { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8250 $as_echo "$FREETYPE_CONFIG" >&6; }
8251 else
8252   { $as_echo "$as_me:$LINENO: result: no" >&5
8253 $as_echo "no" >&6; }
8254 fi
8255
8256
8257
8258 OLDCPPFLAGS="${CPPFLAGS}"
8259 OLDLIBS="${LIBS}"
8260 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8261     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8262 else if test -d /usr/include/freetype2; then
8263     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8264 else if test -d /usr/local/include/freetype2; then
8265     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8266 fi
8267 fi
8268 fi
8269
8270 if test "x${FREETYPE_CONFIG}" '=' "x";then
8271     # if we didn't find the freetype-config program, we won't
8272     # know where the libs are expected to be. So just blindly
8273     # try to link against them.
8274     { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8275 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8276 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8277   $as_echo_n "(cached) " >&6
8278 else
8279   ac_check_lib_save_LIBS=$LIBS
8280 LIBS="-lfreetype  $LIBS"
8281 cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h.  */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h.  */
8287
8288 /* Override any GCC internal prototype to avoid an error.
8289    Use char because int might match the return type of a GCC
8290    builtin and then its argument prototype would still apply.  */
8291 #ifdef __cplusplus
8292 extern "C"
8293 #endif
8294 char FT_Init_FreeType ();
8295 int
8296 main ()
8297 {
8298 return FT_Init_FreeType ();
8299   ;
8300   return 0;
8301 }
8302 _ACEOF
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (ac_try="$ac_link"
8305 case "(($ac_try" in
8306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307   *) ac_try_echo=$ac_try;;
8308 esac
8309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8310 $as_echo "$ac_try_echo") >&5
8311   (eval "$ac_link") 2>conftest.er1
8312   ac_status=$?
8313   grep -v '^ *+' conftest.er1 >conftest.err
8314   rm -f conftest.er1
8315   cat conftest.err >&5
8316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317   (exit $ac_status); } && {
8318          test -z "$ac_c_werror_flag" ||
8319          test ! -s conftest.err
8320        } && test -s conftest$ac_exeext && {
8321          test "$cross_compiling" = yes ||
8322          $as_test_x conftest$ac_exeext
8323        }; then
8324   ac_cv_lib_freetype_FT_Init_FreeType=yes
8325 else
8326   $as_echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329         ac_cv_lib_freetype_FT_Init_FreeType=no
8330 fi
8331
8332 rm -rf conftest.dSYM
8333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8334       conftest$ac_exeext conftest.$ac_ext
8335 LIBS=$ac_check_lib_save_LIBS
8336 fi
8337 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8338 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8339 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
8340   HAVE_LIB_FREETYPE=1
8341 fi
8342
8343 fi
8344
8345
8346 for ac_header in ft2build.h
8347 do
8348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8350   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8351 $as_echo_n "checking for $ac_header... " >&6; }
8352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8353   $as_echo_n "(cached) " >&6
8354 fi
8355 ac_res=`eval 'as_val=${'$as_ac_Header'}
8356                  $as_echo "$as_val"'`
8357                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8358 $as_echo "$ac_res" >&6; }
8359 else
8360   # Is the header compilable?
8361 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8362 $as_echo_n "checking $ac_header usability... " >&6; }
8363 cat >conftest.$ac_ext <<_ACEOF
8364 /* confdefs.h.  */
8365 _ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h.  */
8369 $ac_includes_default
8370 #include <$ac_header>
8371 _ACEOF
8372 rm -f conftest.$ac_objext
8373 if { (ac_try="$ac_compile"
8374 case "(($ac_try" in
8375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376   *) ac_try_echo=$ac_try;;
8377 esac
8378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8379 $as_echo "$ac_try_echo") >&5
8380   (eval "$ac_compile") 2>conftest.er1
8381   ac_status=$?
8382   grep -v '^ *+' conftest.er1 >conftest.err
8383   rm -f conftest.er1
8384   cat conftest.err >&5
8385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386   (exit $ac_status); } && {
8387          test -z "$ac_c_werror_flag" ||
8388          test ! -s conftest.err
8389        } && test -s conftest.$ac_objext; then
8390   ac_header_compiler=yes
8391 else
8392   $as_echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8394
8395         ac_header_compiler=no
8396 fi
8397
8398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8400 $as_echo "$ac_header_compiler" >&6; }
8401
8402 # Is the header present?
8403 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8404 $as_echo_n "checking $ac_header presence... " >&6; }
8405 cat >conftest.$ac_ext <<_ACEOF
8406 /* confdefs.h.  */
8407 _ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h.  */
8411 #include <$ac_header>
8412 _ACEOF
8413 if { (ac_try="$ac_cpp conftest.$ac_ext"
8414 case "(($ac_try" in
8415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416   *) ac_try_echo=$ac_try;;
8417 esac
8418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8419 $as_echo "$ac_try_echo") >&5
8420   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8421   ac_status=$?
8422   grep -v '^ *+' conftest.er1 >conftest.err
8423   rm -f conftest.er1
8424   cat conftest.err >&5
8425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426   (exit $ac_status); } >/dev/null && {
8427          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8428          test ! -s conftest.err
8429        }; then
8430   ac_header_preproc=yes
8431 else
8432   $as_echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8434
8435   ac_header_preproc=no
8436 fi
8437
8438 rm -f conftest.err conftest.$ac_ext
8439 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8440 $as_echo "$ac_header_preproc" >&6; }
8441
8442 # So?  What about this header?
8443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8444   yes:no: )
8445     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8446 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8447     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8448 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8449     ac_header_preproc=yes
8450     ;;
8451   no:yes:* )
8452     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8453 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8454     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8455 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8456     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8457 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8458     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8459 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8460     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8461 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8462     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8463 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8464
8465     ;;
8466 esac
8467 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8468 $as_echo_n "checking for $ac_header... " >&6; }
8469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8470   $as_echo_n "(cached) " >&6
8471 else
8472   eval "$as_ac_Header=\$ac_header_preproc"
8473 fi
8474 ac_res=`eval 'as_val=${'$as_ac_Header'}
8475                  $as_echo "$as_val"'`
8476                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8477 $as_echo "$ac_res" >&6; }
8478
8479 fi
8480 as_val=`eval 'as_val=${'$as_ac_Header'}
8481                  $as_echo "$as_val"'`
8482    if test "x$as_val" = x""yes; then
8483   cat >>confdefs.h <<_ACEOF
8484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8485 _ACEOF
8486  HAVE_FT2BUILD_H=1
8487 fi
8488
8489 done
8490
8491 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8492
8493 for ac_header in freetype/freetype.h
8494 do
8495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8497   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8498 $as_echo_n "checking for $ac_header... " >&6; }
8499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8500   $as_echo_n "(cached) " >&6
8501 fi
8502 ac_res=`eval 'as_val=${'$as_ac_Header'}
8503                  $as_echo "$as_val"'`
8504                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8505 $as_echo "$ac_res" >&6; }
8506 else
8507   # Is the header compilable?
8508 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8509 $as_echo_n "checking $ac_header usability... " >&6; }
8510 cat >conftest.$ac_ext <<_ACEOF
8511 /* confdefs.h.  */
8512 _ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h.  */
8516 $ac_includes_default
8517 #include <$ac_header>
8518 _ACEOF
8519 rm -f conftest.$ac_objext
8520 if { (ac_try="$ac_compile"
8521 case "(($ac_try" in
8522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523   *) ac_try_echo=$ac_try;;
8524 esac
8525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8526 $as_echo "$ac_try_echo") >&5
8527   (eval "$ac_compile") 2>conftest.er1
8528   ac_status=$?
8529   grep -v '^ *+' conftest.er1 >conftest.err
8530   rm -f conftest.er1
8531   cat conftest.err >&5
8532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533   (exit $ac_status); } && {
8534          test -z "$ac_c_werror_flag" ||
8535          test ! -s conftest.err
8536        } && test -s conftest.$ac_objext; then
8537   ac_header_compiler=yes
8538 else
8539   $as_echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8541
8542         ac_header_compiler=no
8543 fi
8544
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8547 $as_echo "$ac_header_compiler" >&6; }
8548
8549 # Is the header present?
8550 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8551 $as_echo_n "checking $ac_header presence... " >&6; }
8552 cat >conftest.$ac_ext <<_ACEOF
8553 /* confdefs.h.  */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h.  */
8558 #include <$ac_header>
8559 _ACEOF
8560 if { (ac_try="$ac_cpp conftest.$ac_ext"
8561 case "(($ac_try" in
8562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563   *) ac_try_echo=$ac_try;;
8564 esac
8565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8566 $as_echo "$ac_try_echo") >&5
8567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8568   ac_status=$?
8569   grep -v '^ *+' conftest.er1 >conftest.err
8570   rm -f conftest.er1
8571   cat conftest.err >&5
8572   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573   (exit $ac_status); } >/dev/null && {
8574          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8575          test ! -s conftest.err
8576        }; then
8577   ac_header_preproc=yes
8578 else
8579   $as_echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8581
8582   ac_header_preproc=no
8583 fi
8584
8585 rm -f conftest.err conftest.$ac_ext
8586 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8587 $as_echo "$ac_header_preproc" >&6; }
8588
8589 # So?  What about this header?
8590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8591   yes:no: )
8592     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8593 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8594     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8595 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8596     ac_header_preproc=yes
8597     ;;
8598   no:yes:* )
8599     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8600 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8601     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8602 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8603     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8604 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8605     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8606 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8607     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8608 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8609     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8610 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8611
8612     ;;
8613 esac
8614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8615 $as_echo_n "checking for $ac_header... " >&6; }
8616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8617   $as_echo_n "(cached) " >&6
8618 else
8619   eval "$as_ac_Header=\$ac_header_preproc"
8620 fi
8621 ac_res=`eval 'as_val=${'$as_ac_Header'}
8622                  $as_echo "$as_val"'`
8623                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8624 $as_echo "$ac_res" >&6; }
8625
8626 fi
8627 as_val=`eval 'as_val=${'$as_ac_Header'}
8628                  $as_echo "$as_val"'`
8629    if test "x$as_val" = x""yes; then
8630   cat >>confdefs.h <<_ACEOF
8631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8632 _ACEOF
8633  HAVE_FREETYPE_FREETYPE_H=1
8634 fi
8635
8636 done
8637
8638 fi
8639
8640 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8641         "x${FREETYPE_CONFIG}" '!=' "x";then
8642     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8643         HAVE_FREETYPE=1
8644     fi
8645     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8646         HAVE_FREETYPE=1
8647     fi
8648 fi
8649
8650 if test "x${HAVE_FREETYPE}" = "x1"; then
8651     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8652         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8653     else
8654         LIBS="$LIBS -lfreetype"
8655     fi
8656
8657     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8658         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8659     fi
8660
8661     { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8662 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8663
8664     cat > conftest.c << EOF
8665 $HAVE_FT2BUILD_H_DEFINE
8666
8667 #ifdef HAVE_FT2BUILD_H
8668 #include <ft2build.h>
8669 #include FT_FREETYPE_H
8670 #include FT_GLYPH_H
8671 #include FT_SIZES_H
8672 #include FT_SFNT_NAMES_H
8673 #include FT_TRUETYPE_IDS_H
8674 #include FT_OUTLINE_H
8675 #else
8676 #include <freetype/freetype.h>
8677 #include <freetype/ftglyph.h>
8678 #include <freetype/ftsizes.h>
8679 #include <freetype/ftsnames.h>
8680 #include <freetype/ttnameid.h>
8681 #include <freetype/ftoutln.h>
8682 #endif
8683
8684 int main()
8685 {
8686     FT_Library ftlibrary;
8687     FT_Face face;
8688     FT_Error error;
8689     FT_ULong charcode;
8690     FT_UInt gindex;
8691     FT_Glyph glyph;
8692     FT_BBox bbox;
8693     FT_Matrix matrix;
8694     FT_UInt i;
8695     char* name = 0;
8696     char italic, bold;
8697
8698     FT_Init_FreeType(&ftlibrary);
8699     FT_New_Face(ftlibrary, "filename", 0, &face);
8700     i = face->num_glyphs - 1;
8701     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8702     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8703     FT_Get_Postscript_Name(face);
8704     FT_Get_Char_Index(face, 33);
8705     FT_Get_First_Char(face, &i);
8706     FT_Get_Next_Char(face, 33, &i);
8707     if(FT_HAS_GLYPH_NAMES(face)) {
8708         FT_Get_Glyph_Name(face, 33, name, 127);
8709     }
8710     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8711     FT_Get_Glyph(face->glyph, &glyph);
8712     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8713     FT_Done_Glyph(glyph);
8714     FT_Done_Face(face);
8715     FT_Done_FreeType(ftlibrary);
8716     return 0;
8717 }
8718 EOF
8719
8720     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8721     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8722         { $as_echo "$as_me:$LINENO: result: yes" >&5
8723 $as_echo "yes" >&6; }
8724
8725 cat >>confdefs.h <<\_ACEOF
8726 #define HAVE_FREETYPE 1
8727 _ACEOF
8728
8729
8730 cat >>confdefs.h <<\_ACEOF
8731 #define HAVE_FREETYPE_FREETYPE_H 1
8732 _ACEOF
8733
8734
8735 cat >>confdefs.h <<\_ACEOF
8736 #define USE_FREETYPE 1
8737 _ACEOF
8738   # for ttf2tp1
8739     else
8740         echo "configure: failed program was:" >&5
8741         cat conftest.c >&5
8742         HAVE_FREETYPE=0
8743         { $as_echo "$as_me:$LINENO: result: no" >&5
8744 $as_echo "no" >&6; }
8745     fi
8746     rm -f conftest*
8747 fi
8748
8749 # if the above didn't work out, reset all changes to the compiler variables.
8750 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8751     CPPFLAGS=$OLDCPPFLAGS
8752     LIBS=$OLDLIBS
8753 fi
8754
8755
8756
8757 OLDCPPFLAGS="${CPPFLAGS}"
8758 OLDLIBS="${LIBS}"
8759
8760 if test -d /usr/include/fontconfig; then
8761     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8762 fi
8763
8764 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8765 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8766 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8767   $as_echo_n "(cached) " >&6
8768 else
8769   ac_check_lib_save_LIBS=$LIBS
8770 LIBS="-lfontconfig  $LIBS"
8771 cat >conftest.$ac_ext <<_ACEOF
8772 /* confdefs.h.  */
8773 _ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h.  */
8777
8778 /* Override any GCC internal prototype to avoid an error.
8779    Use char because int might match the return type of a GCC
8780    builtin and then its argument prototype would still apply.  */
8781 #ifdef __cplusplus
8782 extern "C"
8783 #endif
8784 char FcInit ();
8785 int
8786 main ()
8787 {
8788 return FcInit ();
8789   ;
8790   return 0;
8791 }
8792 _ACEOF
8793 rm -f conftest.$ac_objext conftest$ac_exeext
8794 if { (ac_try="$ac_link"
8795 case "(($ac_try" in
8796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797   *) ac_try_echo=$ac_try;;
8798 esac
8799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8800 $as_echo "$ac_try_echo") >&5
8801   (eval "$ac_link") 2>conftest.er1
8802   ac_status=$?
8803   grep -v '^ *+' conftest.er1 >conftest.err
8804   rm -f conftest.er1
8805   cat conftest.err >&5
8806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807   (exit $ac_status); } && {
8808          test -z "$ac_c_werror_flag" ||
8809          test ! -s conftest.err
8810        } && test -s conftest$ac_exeext && {
8811          test "$cross_compiling" = yes ||
8812          $as_test_x conftest$ac_exeext
8813        }; then
8814   ac_cv_lib_fontconfig_FcInit=yes
8815 else
8816   $as_echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8818
8819         ac_cv_lib_fontconfig_FcInit=no
8820 fi
8821
8822 rm -rf conftest.dSYM
8823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8824       conftest$ac_exeext conftest.$ac_ext
8825 LIBS=$ac_check_lib_save_LIBS
8826 fi
8827 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8828 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8829 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then
8830   HAVE_LIB_FONTCONFIG=1
8831 fi
8832
8833
8834 for ac_header in fontconfig.h
8835 do
8836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8838   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8839 $as_echo_n "checking for $ac_header... " >&6; }
8840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8841   $as_echo_n "(cached) " >&6
8842 fi
8843 ac_res=`eval 'as_val=${'$as_ac_Header'}
8844                  $as_echo "$as_val"'`
8845                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8846 $as_echo "$ac_res" >&6; }
8847 else
8848   # Is the header compilable?
8849 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8850 $as_echo_n "checking $ac_header usability... " >&6; }
8851 cat >conftest.$ac_ext <<_ACEOF
8852 /* confdefs.h.  */
8853 _ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h.  */
8857 $ac_includes_default
8858 #include <$ac_header>
8859 _ACEOF
8860 rm -f conftest.$ac_objext
8861 if { (ac_try="$ac_compile"
8862 case "(($ac_try" in
8863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864   *) ac_try_echo=$ac_try;;
8865 esac
8866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8867 $as_echo "$ac_try_echo") >&5
8868   (eval "$ac_compile") 2>conftest.er1
8869   ac_status=$?
8870   grep -v '^ *+' conftest.er1 >conftest.err
8871   rm -f conftest.er1
8872   cat conftest.err >&5
8873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874   (exit $ac_status); } && {
8875          test -z "$ac_c_werror_flag" ||
8876          test ! -s conftest.err
8877        } && test -s conftest.$ac_objext; then
8878   ac_header_compiler=yes
8879 else
8880   $as_echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8882
8883         ac_header_compiler=no
8884 fi
8885
8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8888 $as_echo "$ac_header_compiler" >&6; }
8889
8890 # Is the header present?
8891 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8892 $as_echo_n "checking $ac_header presence... " >&6; }
8893 cat >conftest.$ac_ext <<_ACEOF
8894 /* confdefs.h.  */
8895 _ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h.  */
8899 #include <$ac_header>
8900 _ACEOF
8901 if { (ac_try="$ac_cpp conftest.$ac_ext"
8902 case "(($ac_try" in
8903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904   *) ac_try_echo=$ac_try;;
8905 esac
8906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8907 $as_echo "$ac_try_echo") >&5
8908   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8909   ac_status=$?
8910   grep -v '^ *+' conftest.er1 >conftest.err
8911   rm -f conftest.er1
8912   cat conftest.err >&5
8913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914   (exit $ac_status); } >/dev/null && {
8915          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8916          test ! -s conftest.err
8917        }; then
8918   ac_header_preproc=yes
8919 else
8920   $as_echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8922
8923   ac_header_preproc=no
8924 fi
8925
8926 rm -f conftest.err conftest.$ac_ext
8927 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8928 $as_echo "$ac_header_preproc" >&6; }
8929
8930 # So?  What about this header?
8931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8932   yes:no: )
8933     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8934 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8935     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8937     ac_header_preproc=yes
8938     ;;
8939   no:yes:* )
8940     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8941 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8942     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8943 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8944     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8945 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8946     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8947 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8948     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8949 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8950     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8951 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8952
8953     ;;
8954 esac
8955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8956 $as_echo_n "checking for $ac_header... " >&6; }
8957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8958   $as_echo_n "(cached) " >&6
8959 else
8960   eval "$as_ac_Header=\$ac_header_preproc"
8961 fi
8962 ac_res=`eval 'as_val=${'$as_ac_Header'}
8963                  $as_echo "$as_val"'`
8964                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8965 $as_echo "$ac_res" >&6; }
8966
8967 fi
8968 as_val=`eval 'as_val=${'$as_ac_Header'}
8969                  $as_echo "$as_val"'`
8970    if test "x$as_val" = x""yes; then
8971   cat >>confdefs.h <<_ACEOF
8972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8973 _ACEOF
8974  HAVE_FONTCONFIG_H=1
8975 fi
8976
8977 done
8978
8979
8980 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8981 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8982     HAVE_FONTCONFIG=1
8983 fi
8984 fi
8985
8986 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8987     LIBS="$LIBS -lfontconfig"
8988 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8989 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8990
8991 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8992     #move freetype library to the end of libraries, otherwise fontconfig
8993     #won't compile.
8994     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8995 fi
8996
8997 cat > conftest.c << EOF
8998 #include <string.h>
8999 #include <fontconfig.h>
9000
9001 int main()
9002 {
9003     FcPattern *pattern, *match;
9004     FcResult result;
9005     FcChar8 *v;
9006     char*s1="abc",*s2="ABC";
9007     strcasecmp(s1,s2);
9008     FcInit();
9009     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
9010     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
9011     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
9012
9013     FcConfig*c = FcConfigCreate();
9014     FcConfigParseAndLoad(c, (FcChar8*)"", 1);
9015     FcConfigBuildFonts(c);
9016     FcConfigSetCurrent(c);
9017
9018     FcFontSet * set =  FcConfigGetFonts(c, FcSetSystem);
9019     FcFontSetDestroy(set);
9020
9021     FcConfigSubstitute(0, pattern, FcMatchPattern);
9022     FcDefaultSubstitute(pattern);
9023     match = FcFontMatch(0, pattern, &result);
9024     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
9025     FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
9026     FcPatternPrint(pattern);
9027     FcPatternDestroy(pattern);
9028     FcPatternDestroy(match);
9029     FcFini();
9030     return 0;
9031 }
9032 EOF
9033
9034     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9035     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9036         { $as_echo "$as_me:$LINENO: result: yes" >&5
9037 $as_echo "yes" >&6; }
9038
9039 cat >>confdefs.h <<\_ACEOF
9040 #define HAVE_FONTCONFIG 1
9041 _ACEOF
9042
9043     else
9044         echo "configure: failed program was:" >&5
9045         cat conftest.c >&5
9046         HAVE_FONTCONFIG=0
9047         { $as_echo "$as_me:$LINENO: result: no" >&5
9048 $as_echo "no" >&6; }
9049     fi
9050     rm -f conftest*
9051 fi
9052
9053 # if the above didn't work out, reset all changes to the compiler variables.
9054 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
9055     CPPFLAGS=$OLDCPPFLAGS
9056     LIBS=$OLDLIBS
9057 fi
9058
9059
9060
9061   OLDCPPFLAGS="${CPPFLAGS}"
9062   OLDLIBS="${LIBS}"
9063
9064   { $as_echo "$as_me:$LINENO: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
9065 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
9066 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then
9067   $as_echo_n "(cached) " >&6
9068 else
9069   ac_check_lib_save_LIBS=$LIBS
9070 LIBS="-lfftw3  $LIBS"
9071 cat >conftest.$ac_ext <<_ACEOF
9072 /* confdefs.h.  */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h.  */
9077
9078 /* Override any GCC internal prototype to avoid an error.
9079    Use char because int might match the return type of a GCC
9080    builtin and then its argument prototype would still apply.  */
9081 #ifdef __cplusplus
9082 extern "C"
9083 #endif
9084 char fftw_plan_dft_r2c_2d ();
9085 int
9086 main ()
9087 {
9088 return fftw_plan_dft_r2c_2d ();
9089   ;
9090   return 0;
9091 }
9092 _ACEOF
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (ac_try="$ac_link"
9095 case "(($ac_try" in
9096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097   *) ac_try_echo=$ac_try;;
9098 esac
9099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9100 $as_echo "$ac_try_echo") >&5
9101   (eval "$ac_link") 2>conftest.er1
9102   ac_status=$?
9103   grep -v '^ *+' conftest.er1 >conftest.err
9104   rm -f conftest.er1
9105   cat conftest.err >&5
9106   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107   (exit $ac_status); } && {
9108          test -z "$ac_c_werror_flag" ||
9109          test ! -s conftest.err
9110        } && test -s conftest$ac_exeext && {
9111          test "$cross_compiling" = yes ||
9112          $as_test_x conftest$ac_exeext
9113        }; then
9114   ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
9115 else
9116   $as_echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9118
9119         ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
9120 fi
9121
9122 rm -rf conftest.dSYM
9123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9124       conftest$ac_exeext conftest.$ac_ext
9125 LIBS=$ac_check_lib_save_LIBS
9126 fi
9127 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
9128 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
9129 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then
9130   HAVE_LIBFFTW3=1
9131 fi
9132
9133
9134 for ac_header in fftw3.h
9135 do
9136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9138   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9139 $as_echo_n "checking for $ac_header... " >&6; }
9140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9141   $as_echo_n "(cached) " >&6
9142 fi
9143 ac_res=`eval 'as_val=${'$as_ac_Header'}
9144                  $as_echo "$as_val"'`
9145                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9146 $as_echo "$ac_res" >&6; }
9147 else
9148   # Is the header compilable?
9149 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9150 $as_echo_n "checking $ac_header usability... " >&6; }
9151 cat >conftest.$ac_ext <<_ACEOF
9152 /* confdefs.h.  */
9153 _ACEOF
9154 cat confdefs.h >>conftest.$ac_ext
9155 cat >>conftest.$ac_ext <<_ACEOF
9156 /* end confdefs.h.  */
9157 $ac_includes_default
9158 #include <$ac_header>
9159 _ACEOF
9160 rm -f conftest.$ac_objext
9161 if { (ac_try="$ac_compile"
9162 case "(($ac_try" in
9163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164   *) ac_try_echo=$ac_try;;
9165 esac
9166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9167 $as_echo "$ac_try_echo") >&5
9168   (eval "$ac_compile") 2>conftest.er1
9169   ac_status=$?
9170   grep -v '^ *+' conftest.er1 >conftest.err
9171   rm -f conftest.er1
9172   cat conftest.err >&5
9173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174   (exit $ac_status); } && {
9175          test -z "$ac_c_werror_flag" ||
9176          test ! -s conftest.err
9177        } && test -s conftest.$ac_objext; then
9178   ac_header_compiler=yes
9179 else
9180   $as_echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9182
9183         ac_header_compiler=no
9184 fi
9185
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9188 $as_echo "$ac_header_compiler" >&6; }
9189
9190 # Is the header present?
9191 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9192 $as_echo_n "checking $ac_header presence... " >&6; }
9193 cat >conftest.$ac_ext <<_ACEOF
9194 /* confdefs.h.  */
9195 _ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h.  */
9199 #include <$ac_header>
9200 _ACEOF
9201 if { (ac_try="$ac_cpp conftest.$ac_ext"
9202 case "(($ac_try" in
9203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204   *) ac_try_echo=$ac_try;;
9205 esac
9206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9207 $as_echo "$ac_try_echo") >&5
9208   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9209   ac_status=$?
9210   grep -v '^ *+' conftest.er1 >conftest.err
9211   rm -f conftest.er1
9212   cat conftest.err >&5
9213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214   (exit $ac_status); } >/dev/null && {
9215          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9216          test ! -s conftest.err
9217        }; then
9218   ac_header_preproc=yes
9219 else
9220   $as_echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9222
9223   ac_header_preproc=no
9224 fi
9225
9226 rm -f conftest.err conftest.$ac_ext
9227 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9228 $as_echo "$ac_header_preproc" >&6; }
9229
9230 # So?  What about this header?
9231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9232   yes:no: )
9233     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9234 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9235     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9236 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9237     ac_header_preproc=yes
9238     ;;
9239   no:yes:* )
9240     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9241 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9242     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9243 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9244     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9245 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9246     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9247 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9248     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9250     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9251 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9252
9253     ;;
9254 esac
9255 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9256 $as_echo_n "checking for $ac_header... " >&6; }
9257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9258   $as_echo_n "(cached) " >&6
9259 else
9260   eval "$as_ac_Header=\$ac_header_preproc"
9261 fi
9262 ac_res=`eval 'as_val=${'$as_ac_Header'}
9263                  $as_echo "$as_val"'`
9264                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9265 $as_echo "$ac_res" >&6; }
9266
9267 fi
9268 as_val=`eval 'as_val=${'$as_ac_Header'}
9269                  $as_echo "$as_val"'`
9270    if test "x$as_val" = x""yes; then
9271   cat >>confdefs.h <<_ACEOF
9272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9273 _ACEOF
9274  HAVE_FFTW3_H=1
9275 fi
9276
9277 done
9278
9279
9280   if test "x${HAVE_LIBFFTW3}" != "x";then
9281     if test "x${HAVE_FFTW3_H}" != "x";then
9282       HAVE_FFTW3=1
9283     fi
9284   fi
9285
9286   if test "x${HAVE_FFTW3}" = "x1"; then
9287     LIBS="$LIBS -lfftw3"
9288     { $as_echo "$as_me:$LINENO: checking whether we can compile the fftw3 test program" >&5
9289 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
9290
9291     cat > conftest.c << EOF
9292     #include <fftw3.h>
9293
9294     int main()
9295     {
9296         char*data = 0;
9297         fftw_plan plan = fftw_plan_dft_2d(600, 800, (fftw_complex*)data, (fftw_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
9298         plan = fftw_plan_dft_r2c_2d(600, 800, (double*)data, (fftw_complex*)data, FFTW_ESTIMATE);
9299         plan = fftw_plan_dft_c2r_2d(600, 800, (fftw_complex*)data, (double*)data, FFTW_ESTIMATE);
9300         fftw_execute(plan);
9301         fftw_destroy_plan(plan);
9302     }
9303 EOF
9304
9305     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9306     if { (eval echo fftw3.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9307       { $as_echo "$as_me:$LINENO: result: yes" >&5
9308 $as_echo "yes" >&6; }
9309
9310 cat >>confdefs.h <<\_ACEOF
9311 #define HAVE_FFTW3 1
9312 _ACEOF
9313
9314     else
9315       echo "configure: failed program was:" >&5
9316       cat conftest.c >&5
9317       HAVE_FFTW3=0
9318       { $as_echo "$as_me:$LINENO: result: no" >&5
9319 $as_echo "no" >&6; }
9320     fi
9321     rm -f conftest*
9322   fi
9323
9324   # if the above didn't work out, reset all changes to the compiler variables.
9325   if test "x${HAVE_FFTW3}" "!=" "x1"; then
9326       CPPFLAGS=$OLDCPPFLAGS
9327       LIBS=$OLDLIBS
9328   fi
9329
9330
9331 # RFX_CHECK_OPENGL
9332 # if test "$HAVE_OPENGL";then
9333 #     DEVICE_OPENGL='devices/opengl.$(O)'
9334 #     AC_SUBST(DEVICE_OPENGL)
9335 # fi
9336
9337
9338 lame_in_source=
9339 lame_makefile=
9340 if test "x${DISABLE_LAME}" = "xtrue"; then
9341     echo "*" Disabling lame support...
9342 else
9343     # old lame code at lib/lame
9344     if test -f lib/lame/Makefile.in; then
9345         lame_in_source='$(lame_objects)'
9346         lame_makefile="lib/lame/Makefile"
9347         CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9348
9349 cat >>confdefs.h <<\_ACEOF
9350 #define HAVE_LAME 1
9351 _ACEOF
9352
9353     else
9354         if test -d /usr/include/lame; then
9355             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9356         else
9357             if test -d /usr/local/include/lame; then
9358                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9359             fi
9360         fi
9361
9362 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9363 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9364 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9365   $as_echo_n "(cached) " >&6
9366 else
9367   ac_check_lib_save_LIBS=$LIBS
9368 LIBS="-lmp3lame  $LIBS"
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h.  */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h.  */
9375
9376 /* Override any GCC internal prototype to avoid an error.
9377    Use char because int might match the return type of a GCC
9378    builtin and then its argument prototype would still apply.  */
9379 #ifdef __cplusplus
9380 extern "C"
9381 #endif
9382 char lame_init ();
9383 int
9384 main ()
9385 {
9386 return lame_init ();
9387   ;
9388   return 0;
9389 }
9390 _ACEOF
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (ac_try="$ac_link"
9393 case "(($ac_try" in
9394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395   *) ac_try_echo=$ac_try;;
9396 esac
9397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9398 $as_echo "$ac_try_echo") >&5
9399   (eval "$ac_link") 2>conftest.er1
9400   ac_status=$?
9401   grep -v '^ *+' conftest.er1 >conftest.err
9402   rm -f conftest.er1
9403   cat conftest.err >&5
9404   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405   (exit $ac_status); } && {
9406          test -z "$ac_c_werror_flag" ||
9407          test ! -s conftest.err
9408        } && test -s conftest$ac_exeext && {
9409          test "$cross_compiling" = yes ||
9410          $as_test_x conftest$ac_exeext
9411        }; then
9412   ac_cv_lib_mp3lame_lame_init=yes
9413 else
9414   $as_echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9416
9417         ac_cv_lib_mp3lame_lame_init=no
9418 fi
9419
9420 rm -rf conftest.dSYM
9421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9422       conftest$ac_exeext conftest.$ac_ext
9423 LIBS=$ac_check_lib_save_LIBS
9424 fi
9425 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9426 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9427 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then
9428   cat >>confdefs.h <<_ACEOF
9429 #define HAVE_LIBMP3LAME 1
9430 _ACEOF
9431
9432   LIBS="-lmp3lame $LIBS"
9433
9434 else
9435   NO_LIBMP3LAME=1
9436 fi
9437
9438         HASLAMEHEADER=
9439
9440 for ac_header in lame.h
9441 do
9442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9444   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9445 $as_echo_n "checking for $ac_header... " >&6; }
9446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9447   $as_echo_n "(cached) " >&6
9448 fi
9449 ac_res=`eval 'as_val=${'$as_ac_Header'}
9450                  $as_echo "$as_val"'`
9451                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9452 $as_echo "$ac_res" >&6; }
9453 else
9454   # Is the header compilable?
9455 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9456 $as_echo_n "checking $ac_header usability... " >&6; }
9457 cat >conftest.$ac_ext <<_ACEOF
9458 /* confdefs.h.  */
9459 _ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h.  */
9463 $ac_includes_default
9464 #include <$ac_header>
9465 _ACEOF
9466 rm -f conftest.$ac_objext
9467 if { (ac_try="$ac_compile"
9468 case "(($ac_try" in
9469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470   *) ac_try_echo=$ac_try;;
9471 esac
9472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9473 $as_echo "$ac_try_echo") >&5
9474   (eval "$ac_compile") 2>conftest.er1
9475   ac_status=$?
9476   grep -v '^ *+' conftest.er1 >conftest.err
9477   rm -f conftest.er1
9478   cat conftest.err >&5
9479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480   (exit $ac_status); } && {
9481          test -z "$ac_c_werror_flag" ||
9482          test ! -s conftest.err
9483        } && test -s conftest.$ac_objext; then
9484   ac_header_compiler=yes
9485 else
9486   $as_echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9488
9489         ac_header_compiler=no
9490 fi
9491
9492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9493 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9494 $as_echo "$ac_header_compiler" >&6; }
9495
9496 # Is the header present?
9497 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9498 $as_echo_n "checking $ac_header presence... " >&6; }
9499 cat >conftest.$ac_ext <<_ACEOF
9500 /* confdefs.h.  */
9501 _ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h.  */
9505 #include <$ac_header>
9506 _ACEOF
9507 if { (ac_try="$ac_cpp conftest.$ac_ext"
9508 case "(($ac_try" in
9509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510   *) ac_try_echo=$ac_try;;
9511 esac
9512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9513 $as_echo "$ac_try_echo") >&5
9514   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9515   ac_status=$?
9516   grep -v '^ *+' conftest.er1 >conftest.err
9517   rm -f conftest.er1
9518   cat conftest.err >&5
9519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520   (exit $ac_status); } >/dev/null && {
9521          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9522          test ! -s conftest.err
9523        }; then
9524   ac_header_preproc=yes
9525 else
9526   $as_echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9528
9529   ac_header_preproc=no
9530 fi
9531
9532 rm -f conftest.err conftest.$ac_ext
9533 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9534 $as_echo "$ac_header_preproc" >&6; }
9535
9536 # So?  What about this header?
9537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9538   yes:no: )
9539     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9540 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9541     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9542 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9543     ac_header_preproc=yes
9544     ;;
9545   no:yes:* )
9546     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9547 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9548     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9549 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9550     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9551 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9552     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9553 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9554     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9555 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9556     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9557 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9558
9559     ;;
9560 esac
9561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9562 $as_echo_n "checking for $ac_header... " >&6; }
9563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9564   $as_echo_n "(cached) " >&6
9565 else
9566   eval "$as_ac_Header=\$ac_header_preproc"
9567 fi
9568 ac_res=`eval 'as_val=${'$as_ac_Header'}
9569                  $as_echo "$as_val"'`
9570                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9571 $as_echo "$ac_res" >&6; }
9572
9573 fi
9574 as_val=`eval 'as_val=${'$as_ac_Header'}
9575                  $as_echo "$as_val"'`
9576    if test "x$as_val" = x""yes; then
9577   cat >>confdefs.h <<_ACEOF
9578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9579 _ACEOF
9580  HASLAMEHEADER=1
9581 fi
9582
9583 done
9584
9585         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9586             cat >>confdefs.h <<\_ACEOF
9587 #define HAVE_LAME 1
9588 _ACEOF
9589
9590         fi
9591     fi
9592 fi
9593
9594
9595 splash_in_source='$(splash_objects)'
9596 xpdf_in_source='$(xpdf_objects)'
9597
9598
9599
9600
9601
9602 # ------------------------------------------------------------------
9603
9604
9605 { $as_echo "$as_me:$LINENO: checking whether the filesystem normalizes file names" >&5
9606 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
9607
9608 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
9609 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9610 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
9611     { $as_echo "$as_me:$LINENO: result: yes" >&5
9612 $as_echo "yes" >&6; }
9613
9614 cat >>confdefs.h <<\_ACEOF
9615 #define LOWERCASE_UPPERCASE 1
9616 _ACEOF
9617
9618 else
9619     { $as_echo "$as_me:$LINENO: result: no" >&5
9620 $as_echo "no" >&6; }
9621 fi
9622
9623 rm -f __abcdefghijklmnopqrstuvwxyz.txt
9624 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9625
9626
9627
9628 for ac_prog in avifile-config
9629 do
9630   # Extract the first word of "$ac_prog", so it can be a program name with args.
9631 set dummy $ac_prog; ac_word=$2
9632 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9635   $as_echo_n "(cached) " >&6
9636 else
9637   if test -n "$AVIFILE_CONFIG"; then
9638   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9639 else
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9642 do
9643   IFS=$as_save_IFS
9644   test -z "$as_dir" && as_dir=.
9645   for ac_exec_ext in '' $ac_executable_extensions; do
9646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9647     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9648     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9649     break 2
9650   fi
9651 done
9652 done
9653 IFS=$as_save_IFS
9654
9655 fi
9656 fi
9657 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9658 if test -n "$AVIFILE_CONFIG"; then
9659   { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9660 $as_echo "$AVIFILE_CONFIG" >&6; }
9661 else
9662   { $as_echo "$as_me:$LINENO: result: no" >&5
9663 $as_echo "no" >&6; }
9664 fi
9665
9666
9667   test -n "$AVIFILE_CONFIG" && break
9668 done
9669
9670
9671 if test "x$AVIFILE_CONFIG" '!=' "x";then
9672     OLDCPPFLAGS="$CPPFLAGS"
9673     # temporarily add avifile paths to CPPFLAGS...
9674     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9675
9676
9677 for ac_header in avifile/version.h version.h
9678 do
9679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9681   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9682 $as_echo_n "checking for $ac_header... " >&6; }
9683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9684   $as_echo_n "(cached) " >&6
9685 fi
9686 ac_res=`eval 'as_val=${'$as_ac_Header'}
9687                  $as_echo "$as_val"'`
9688                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9689 $as_echo "$ac_res" >&6; }
9690 else
9691   # Is the header compilable?
9692 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9693 $as_echo_n "checking $ac_header usability... " >&6; }
9694 cat >conftest.$ac_ext <<_ACEOF
9695 /* confdefs.h.  */
9696 _ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h.  */
9700 $ac_includes_default
9701 #include <$ac_header>
9702 _ACEOF
9703 rm -f conftest.$ac_objext
9704 if { (ac_try="$ac_compile"
9705 case "(($ac_try" in
9706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707   *) ac_try_echo=$ac_try;;
9708 esac
9709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9710 $as_echo "$ac_try_echo") >&5
9711   (eval "$ac_compile") 2>conftest.er1
9712   ac_status=$?
9713   grep -v '^ *+' conftest.er1 >conftest.err
9714   rm -f conftest.er1
9715   cat conftest.err >&5
9716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717   (exit $ac_status); } && {
9718          test -z "$ac_c_werror_flag" ||
9719          test ! -s conftest.err
9720        } && test -s conftest.$ac_objext; then
9721   ac_header_compiler=yes
9722 else
9723   $as_echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9725
9726         ac_header_compiler=no
9727 fi
9728
9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9731 $as_echo "$ac_header_compiler" >&6; }
9732
9733 # Is the header present?
9734 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9735 $as_echo_n "checking $ac_header presence... " >&6; }
9736 cat >conftest.$ac_ext <<_ACEOF
9737 /* confdefs.h.  */
9738 _ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h.  */
9742 #include <$ac_header>
9743 _ACEOF
9744 if { (ac_try="$ac_cpp conftest.$ac_ext"
9745 case "(($ac_try" in
9746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747   *) ac_try_echo=$ac_try;;
9748 esac
9749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9750 $as_echo "$ac_try_echo") >&5
9751   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9752   ac_status=$?
9753   grep -v '^ *+' conftest.er1 >conftest.err
9754   rm -f conftest.er1
9755   cat conftest.err >&5
9756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757   (exit $ac_status); } >/dev/null && {
9758          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9759          test ! -s conftest.err
9760        }; then
9761   ac_header_preproc=yes
9762 else
9763   $as_echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9765
9766   ac_header_preproc=no
9767 fi
9768
9769 rm -f conftest.err conftest.$ac_ext
9770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9771 $as_echo "$ac_header_preproc" >&6; }
9772
9773 # So?  What about this header?
9774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9775   yes:no: )
9776     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9777 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9778     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9780     ac_header_preproc=yes
9781     ;;
9782   no:yes:* )
9783     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9784 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9785     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9786 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9787     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9788 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9789     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9790 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9791     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9793     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9794 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9795
9796     ;;
9797 esac
9798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9799 $as_echo_n "checking for $ac_header... " >&6; }
9800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9801   $as_echo_n "(cached) " >&6
9802 else
9803   eval "$as_ac_Header=\$ac_header_preproc"
9804 fi
9805 ac_res=`eval 'as_val=${'$as_ac_Header'}
9806                  $as_echo "$as_val"'`
9807                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9808 $as_echo "$ac_res" >&6; }
9809
9810 fi
9811 as_val=`eval 'as_val=${'$as_ac_Header'}
9812                  $as_echo "$as_val"'`
9813    if test "x$as_val" = x""yes; then
9814   cat >>confdefs.h <<_ACEOF
9815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9816 _ACEOF
9817
9818 fi
9819
9820 done
9821
9822     # ... and reset
9823     CPPFLAGS="$OLDCPPFLAGS"
9824 fi
9825
9826 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9827 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
9828
9829 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9830     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9831 fi
9832 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9833     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9834 fi
9835
9836 cat > conftest.cpp << EOF
9837
9838 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9839 // so we have to introduce them this way
9840 $HAVE_VERSION_H_DEFINE
9841 $HAVE_AVIFILE_VERSION_H_DEFINE
9842
9843 #ifdef HAVE_VERSION_H
9844   #include <version.h>
9845 #endif
9846 #ifdef HAVE_AVIFILE_VERSION_H
9847   #include <avifile/version.h>
9848 #endif
9849
9850 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9851    #include <avifile.h>
9852    #include <aviplay.h>
9853    #include <avm_fourcc.h>
9854    #include <avm_creators.h>
9855    #include <StreamInfo.h>
9856    #define VERSION6
9857 #else
9858    #include <avifile.h>
9859    #include <aviplay.h>
9860    #include <aviutil.h>
9861    #define Width width
9862    #define Height height
9863    #define Data data
9864    #define Bpp bpp
9865 #endif
9866
9867 void test()
9868 {
9869   IAviReadFile* player;
9870   IAviReadStream* astream;
9871   IAviReadStream* vstream;
9872   player = CreateIAviReadFile(0);
9873   astream = player->GetStream(0, AviStream::Audio);
9874   vstream = player->GetStream(0, AviStream::Video);
9875   vstream -> StartStreaming();
9876   astream -> StartStreaming();
9877 #ifndef VERSION6
9878   MainAVIHeader head;
9879   player->GetFileHeader(&head);
9880   head.dwMicroSecPerFrame;
9881   head.dwTotalFrames;
9882   head.dwStreams;
9883   head.dwWidth;
9884   head.dwHeight;
9885   head.dwMicroSecPerFrame;
9886   astream->GetEndPos(),
9887   astream->GetEndTime());
9888   player->StreamCount();
9889 #else
9890   StreamInfo*audioinfo;
9891   StreamInfo*videoinfo;
9892   audioinfo = astream->GetStreamInfo();
9893   videoinfo = vstream->GetStreamInfo();
9894   videoinfo->GetVideoWidth();
9895   videoinfo->GetVideoHeight();
9896   audioinfo->GetAudioSamplesPerSec();
9897   videoinfo->GetFps();
9898 #endif
9899   CImage*img = vstream->GetFrame();
9900   img->ToRGB();
9901   img->Data();
9902   img->Bpp();
9903   img->Width();
9904   img->Height();
9905   WAVEFORMATEX wave;
9906   astream->GetAudioFormatInfo(&wave,0);
9907   uint_t a,b;
9908   astream->ReadFrames(0,0,0,a,b);
9909 }
9910 int main (int argc, char*argv)
9911 {
9912     return 0;
9913 }
9914 EOF
9915
9916 if test "x$AVIFILE_CONFIG" '!=' "x";then
9917     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9918     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9919     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9920     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9921       { $as_echo "$as_me:$LINENO: result: yes" >&5
9922 $as_echo "yes" >&6; }
9923       AVIFILE=true
9924       export AVIFILE
9925
9926 cat >>confdefs.h <<\_ACEOF
9927 #define AVIFILE true
9928 _ACEOF
9929
9930     else
9931       echo "configure: failed program was:" >&5
9932       cat conftest.cpp >&5
9933       { $as_echo "$as_me:$LINENO: result: no" >&5
9934 $as_echo "no" >&6; }
9935     fi
9936 else
9937     { $as_echo "$as_me:$LINENO: result: no" >&5
9938 $as_echo "no" >&6; }
9939 fi
9940 rm -f conftest*
9941
9942 if test "x${AVIFILE}" = "xtrue"; then
9943     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9944     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9945
9946 cat >>confdefs.h <<\_ACEOF
9947 #define HAVE_AVIFILE 1
9948 _ACEOF
9949
9950 fi
9951
9952 if test "x${WIN32}" != "x"; then
9953     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9954     #if test "x${AVIFIL32}" != "x"; then
9955     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9956     #fi
9957     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9958     AVIFIL32=true
9959 fi
9960
9961
9962
9963 # ------------------------------------------------------------------
9964
9965 if test "x${UNCOMPRESS}" = "xgzip"; then
9966
9967 cat >>confdefs.h <<\_ACEOF
9968 #define USE_GZIP 1
9969 _ACEOF
9970
9971 fi
9972
9973
9974 # ------------------------------------------------------------------
9975
9976
9977 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
9978 $as_echo_n "checking for Python.h... " >&6; }
9979
9980 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9981     PY_VERSION=unknown
9982 else
9983     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9984         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9985     fi
9986     # iterate through version 2.2 to 2.6
9987     for v in 2 3 4 5 6; do
9988         # Linux
9989         if test -f "/usr/include/python2.$v/Python.h";then
9990             PY_VERSION=2.$v
9991             PYTHON_LIB="-lpython$PY_VERSION"
9992             if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9993                 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9994                 HAVE_PYTHON_IMAGING_LIB=1
9995             else
9996                 PYTHON_LIB2="$PYTHON_LIB"
9997             fi
9998             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9999         # Mac OS X
10000         elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
10001             PY_VERSION=2.$v
10002             PYTHON_LIB="-framework Python"
10003             if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
10004                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
10005                 HAVE_PYTHON_IMAGING_LIB=1
10006             else
10007                 PYTHON_LIB2="$PYTHON_LIB"
10008             fi
10009             PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
10010         # Mac OS X [Fink]:
10011         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
10012                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
10013                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
10014                   ")" \
10015                -a -f "/sw/include/python2.$v/Python.h"; then
10016             PY_VERSION=2.$v
10017             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10018             if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
10019                 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10020                 HAVE_PYTHON_IMAGING_LIB=1
10021             else
10022                 PYTHON_LIB2="$PYTHON_LIB"
10023             fi
10024             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
10025         fi
10026     done
10027 fi
10028
10029 if test "x$PY_VERSION" "!=" "x"; then
10030     { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
10031 $as_echo "$PY_VERSION" >&6; }
10032     export PYTHON_INCLUDES PYTHON_LIB
10033
10034
10035     { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
10036 $as_echo_n "checking whether we can compile the python test program... " >&6; }
10037
10038     cat > conftest.c << EOF
10039 #include <Python.h>
10040
10041 int main()
10042 {
10043     int ret;
10044     ret = Py_Main(0, 0);
10045     int x; // check also for gcc 2.95.x incompatibilities
10046     return ret;
10047 }
10048 EOF
10049
10050     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
10051     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10052         { $as_echo "$as_me:$LINENO: result: yes" >&5
10053 $as_echo "yes" >&6; }
10054         PYTHON_OK=yes
10055     else
10056         echo "configure: failed program was:" >&5
10057         cat conftest.c >&5
10058         { $as_echo "$as_me:$LINENO: result: no" >&5
10059 $as_echo "no" >&6; }
10060     fi
10061     rm -f conftest*
10062     if test "x$PYTHON_OK" = "xyes";then
10063         { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
10064 $as_echo_n "checking for Python-Imaging... " >&6; }
10065     cat > conftest.c << EOF
10066 #include <Python.h>
10067 #include <Imaging.h>
10068
10069 int main()
10070 {
10071     Py_Main(0, 0);
10072     return 0;
10073 }
10074 EOF
10075         if test "$HAVE_PYTHON_IMAGING_LIB"; then
10076             ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
10077             if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10078                 PYTHON_LIB="${PYTHON_LIB2}"
10079
10080 cat >>confdefs.h <<\_ACEOF
10081 #define HAVE_PYTHON_IMAGING 1
10082 _ACEOF
10083
10084                 HAVE_PYTHON_IMAGING=yes
10085                 export HAVE_PYTHON_IMAGING
10086
10087                 { $as_echo "$as_me:$LINENO: result: yes" >&5
10088 $as_echo "yes" >&6; }
10089             else
10090                 echo "configure: failed program was:" >&5
10091                 cat conftest.c >&5
10092                 { $as_echo "$as_me:$LINENO: result: no" >&5
10093 $as_echo "no" >&6; }
10094             fi
10095         else
10096             echo "(didn't find the Python-Imaging libraries)" >&5
10097             { $as_echo "$as_me:$LINENO: result: no" >&5
10098 $as_echo "no" >&6; }
10099         fi
10100     fi
10101     rm -f conftest*
10102 else
10103     { $as_echo "$as_me:$LINENO: result: nope" >&5
10104 $as_echo "nope" >&6; }
10105 fi
10106
10107
10108 if test "x$PYTHON_OK" '!=' "xyes";then
10109     echo all install uninstall clean: > lib/python/Makefile
10110     # fail silently- the most users won't have any need for the
10111     # python interface anyway
10112 else
10113     pythongfx="lib/python/Makefile"
10114 fi
10115
10116 # ------------------------------------------------------------------
10117
10118
10119 # Extract the first word of "ruby", so it can be a program name with args.
10120 set dummy ruby; ac_word=$2
10121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10122 $as_echo_n "checking for $ac_word... " >&6; }
10123 if test "${ac_cv_path_RUBY+set}" = set; then
10124   $as_echo_n "(cached) " >&6
10125 else
10126   case $RUBY in
10127   [\\/]* | ?:[\\/]*)
10128   ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
10129   ;;
10130   *)
10131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10132 for as_dir in $PATH
10133 do
10134   IFS=$as_save_IFS
10135   test -z "$as_dir" && as_dir=.
10136   for ac_exec_ext in '' $ac_executable_extensions; do
10137   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10138     ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
10139     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10140     break 2
10141   fi
10142 done
10143 done
10144 IFS=$as_save_IFS
10145
10146   ;;
10147 esac
10148 fi
10149 RUBY=$ac_cv_path_RUBY
10150 if test -n "$RUBY"; then
10151   { $as_echo "$as_me:$LINENO: result: $RUBY" >&5
10152 $as_echo "$RUBY" >&6; }
10153 else
10154   { $as_echo "$as_me:$LINENO: result: no" >&5
10155 $as_echo "no" >&6; }
10156 fi
10157
10158
10159
10160 RUBY_CPPFLAGS=""
10161 RUBY_LDFLAGS=""
10162 RUBY_LIBS=""
10163
10164 rubylib=ruby18
10165
10166 { $as_echo "$as_me:$LINENO: checking for ruby's include directory" >&5
10167 $as_echo_n "checking for ruby's include directory... " >&6; }
10168 if test "x$RUBY" '!=' "x";then
10169     rubyinc=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "archdir"))' 2>/dev/null`
10170     if test -d $rubyinc;then
10171         { $as_echo "$as_me:$LINENO: result: $rubyinc" >&5
10172 $as_echo "$rubyinc" >&6; }
10173
10174         # If we got a sensible archdir, we also ask ruby to supply us with CPPFLAGS
10175         # and LDFLAGS.
10176         { $as_echo "$as_me:$LINENO: checking for ruby's cpp flags" >&5
10177 $as_echo_n "checking for ruby's cpp flags... " >&6; }
10178         rubycpp=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "CPPFLAGS"))' 2>/dev/null`
10179         { $as_echo "$as_me:$LINENO: result: $rubycpp" >&5
10180 $as_echo "$rubycpp" >&6; }
10181
10182         { $as_echo "$as_me:$LINENO: checking for ruby's ld flags" >&5
10183 $as_echo_n "checking for ruby's ld flags... " >&6; }
10184         rubyld=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBYARG_SHARED"))' 2>/dev/null`
10185         { $as_echo "$as_me:$LINENO: result: $rubyld" >&5
10186 $as_echo "$rubyld" >&6; }
10187
10188         { $as_echo "$as_me:$LINENO: checking for ruby library name" >&5
10189 $as_echo_n "checking for ruby library name... " >&6; }
10190         rubylib=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "RUBY_SO_NAME"))' 2>/dev/null`
10191         { $as_echo "$as_me:$LINENO: result: $rubylib" >&5
10192 $as_echo "$rubylib" >&6; }
10193
10194         RUBY_CPPFLAGS="$rubycpp -I$rubyinc $RUBY_CPPFLAGS"
10195         RUBY_LDFLAGS="$rubyld $RUBY_LDFLAGS"
10196     else
10197         { $as_echo "$as_me:$LINENO: result: 'unknown'" >&5
10198 $as_echo "'unknown'" >&6; }
10199     fi
10200 else
10201     { $as_echo "$as_me:$LINENO: result: 'unknown'" >&5
10202 $as_echo "'unknown'" >&6; }
10203 fi
10204
10205 #OLDLDFLAGS="$LDFLAGS"
10206 #LDFLAGS="$LDFLAGS $RUBY_LDFLAGS"
10207 #AC_CHECK_LIB($rubylib, rb_define_method, HAVE_RUBY_LIB=1,)
10208 #LDFLAGS="$OLDLDFLAGS"
10209
10210 OLDCPPFLAGS="$CPPFLAGS"
10211 CPPFLAGS="$CPPFLAGS $RUBY_CPPFLAGS"
10212
10213 for ac_header in ruby.h
10214 do
10215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10217   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10218 $as_echo_n "checking for $ac_header... " >&6; }
10219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10220   $as_echo_n "(cached) " >&6
10221 fi
10222 ac_res=`eval 'as_val=${'$as_ac_Header'}
10223                  $as_echo "$as_val"'`
10224                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10225 $as_echo "$ac_res" >&6; }
10226 else
10227   # Is the header compilable?
10228 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10229 $as_echo_n "checking $ac_header usability... " >&6; }
10230 cat >conftest.$ac_ext <<_ACEOF
10231 /* confdefs.h.  */
10232 _ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h.  */
10236 $ac_includes_default
10237 #include <$ac_header>
10238 _ACEOF
10239 rm -f conftest.$ac_objext
10240 if { (ac_try="$ac_compile"
10241 case "(($ac_try" in
10242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243   *) ac_try_echo=$ac_try;;
10244 esac
10245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10246 $as_echo "$ac_try_echo") >&5
10247   (eval "$ac_compile") 2>conftest.er1
10248   ac_status=$?
10249   grep -v '^ *+' conftest.er1 >conftest.err
10250   rm -f conftest.er1
10251   cat conftest.err >&5
10252   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253   (exit $ac_status); } && {
10254          test -z "$ac_c_werror_flag" ||
10255          test ! -s conftest.err
10256        } && test -s conftest.$ac_objext; then
10257   ac_header_compiler=yes
10258 else
10259   $as_echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10261
10262         ac_header_compiler=no
10263 fi
10264
10265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10266 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10267 $as_echo "$ac_header_compiler" >&6; }
10268
10269 # Is the header present?
10270 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10271 $as_echo_n "checking $ac_header presence... " >&6; }
10272 cat >conftest.$ac_ext <<_ACEOF
10273 /* confdefs.h.  */
10274 _ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h.  */
10278 #include <$ac_header>
10279 _ACEOF
10280 if { (ac_try="$ac_cpp conftest.$ac_ext"
10281 case "(($ac_try" in
10282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283   *) ac_try_echo=$ac_try;;
10284 esac
10285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10286 $as_echo "$ac_try_echo") >&5
10287   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10288   ac_status=$?
10289   grep -v '^ *+' conftest.er1 >conftest.err
10290   rm -f conftest.er1
10291   cat conftest.err >&5
10292   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293   (exit $ac_status); } >/dev/null && {
10294          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10295          test ! -s conftest.err
10296        }; then
10297   ac_header_preproc=yes
10298 else
10299   $as_echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10301
10302   ac_header_preproc=no
10303 fi
10304
10305 rm -f conftest.err conftest.$ac_ext
10306 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10307 $as_echo "$ac_header_preproc" >&6; }
10308
10309 # So?  What about this header?
10310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10311   yes:no: )
10312     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10313 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10314     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10315 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10316     ac_header_preproc=yes
10317     ;;
10318   no:yes:* )
10319     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10320 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
10322 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
10323     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10324 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10325     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
10326 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
10327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10328 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10329     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10330 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10331
10332     ;;
10333 esac
10334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10335 $as_echo_n "checking for $ac_header... " >&6; }
10336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10337   $as_echo_n "(cached) " >&6
10338 else
10339   eval "$as_ac_Header=\$ac_header_preproc"
10340 fi
10341 ac_res=`eval 'as_val=${'$as_ac_Header'}
10342                  $as_echo "$as_val"'`
10343                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10344 $as_echo "$ac_res" >&6; }
10345
10346 fi
10347 as_val=`eval 'as_val=${'$as_ac_Header'}
10348                  $as_echo "$as_val"'`
10349    if test "x$as_val" = x""yes; then
10350   cat >>confdefs.h <<_ACEOF
10351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10352 _ACEOF
10353  HAVE_RUBY_H=1
10354 fi
10355
10356 done
10357
10358 CPPFLAGS="$OLDCPPFLAGS"
10359
10360 { $as_echo "$as_me:$LINENO: checking whether we should compile the ruby module" >&5
10361 $as_echo_n "checking whether we should compile the ruby module... " >&6; }
10362 if test "x${HAVE_RUBY_H}" '!=' "x";then
10363     #RUBY_LIBS="$RUBY_LIBS -l$rubylib"
10364
10365     cat > conftest.c << EOF
10366 #include <ruby.h>
10367 static VALUE foobar;
10368 VALUE foobar_set_foo(VALUE module, VALUE _key, VALUE _value)
10369 {
10370     return Qnil;
10371 }
10372 int Init_foobar()
10373 {
10374     foobar = rb_define_module("foobar");
10375     rb_define_module_function(foobar, "set_foo", foobar_set_foo, 2);
10376 }
10377 int main() {return 0;}
10378 EOF
10379     ac_link='$CC $SHARED $CPPFLAGS $RUBY_CPPFLAGS $CFLAGS conftest.c $LDFLAGS $RUBY_LDFLAGS $LIBS $RUBY_LIBS -o conftest${ac_exeext}'
10380     if { (eval echo ruby.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10381         RUBY_OK=yes
10382     else
10383         echo "configure: failed program was:" >&5
10384         cat conftest.c >&5
10385     fi
10386     rm -f conftest*
10387 fi
10388
10389 if test "x${RUBY_OK}" '=' "xyes"; then
10390     { $as_echo "$as_me:$LINENO: result: yes" >&5
10391 $as_echo "yes" >&6; }
10392
10393
10394
10395 else
10396     { $as_echo "$as_me:$LINENO: result: no" >&5
10397 $as_echo "no" >&6; }
10398     RUBY_CPPFLAGS=""
10399     RUBY_LDFLAGS=""
10400     RUBY_LIBS=""
10401 fi
10402
10403
10404 if test "x$RUBY_OK" '!=' "xyes";then
10405     echo all install uninstall clean: > lib/ruby/Makefile
10406     # fail silently- the most users won't have any need for the
10407     # ruby interface anyway
10408 else
10409     rubygfx="lib/python/Makefile"
10410 fi
10411
10412 # ------------------------------------------------------------------
10413
10414 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
10415 $as_echo_n "checking for missing libraries... " >&6; }
10416
10417 if test "x$ZLIBMISSING" = "xtrue";then
10418     MISSINGLIBS="${MISSINGLIBS} zlib"
10419     DISABLEPNG2SWF=true
10420     PARTIAL=true
10421 fi
10422 if test "x$JPEGLIBMISSING" = "xtrue";then
10423     MISSINGLIBS="${MISSINGLIBS} jpeglib"
10424     DISABLEPDF2SWF=true
10425     DISABLEJPEG2SWF=true
10426     PARTIAL=true
10427 fi
10428 if test "x$PDFLIBMISSING" = "xtrue";then
10429     DISABLEPDF2PDF=true;
10430 fi
10431 #if test "x$T1LIBMISSING" = "xtrue";then
10432 #    MISSINGLIBS="${MISSINGLIBS} t1lib"
10433 #fi
10434 if test "x$UNGIFMISSING" = "xtrue";then
10435     DISABLEGIF2SWF=true
10436     MISSINGLIBS="${MISSINGLIBS} ungif"
10437     PARTIAL=true
10438 fi
10439
10440 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
10441     DISABLEPDF2PDF=true;
10442 fi
10443 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10444     DISABLEPDF2SWF=true;
10445     DISABLEJPEG2SWF=true;
10446     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10447     PARTIAL=true
10448 fi
10449 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10450     DISABLEPDF2SWF=true;
10451     MISSINGLIBS="${MISSINGLIBS} freetype"
10452     PARTIAL=true
10453 fi
10454 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10455 #    MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10456 #fi
10457 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10458     DISABLEGIF2SWF=true
10459     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10460     PARTIAL=true
10461 fi
10462 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10463     DISABLEPNG2SWF=true;
10464     MISSINGLIBS="${MISSINGLIBS} zlib.h"
10465     PARTIAL=true
10466 fi
10467 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10468 #    MISSINGLIBS="${MISSINGLIBS} avifile"
10469 #fi
10470
10471 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10472 $as_echo "${MISSINGLIBS}" >&6; }
10473
10474 # ------------------------------------------------------------------
10475
10476 if test "x${MISSINGLIBS}" '!=' "x"; then
10477   echo "***************************************************"
10478   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10479 fi
10480
10481 avi2swf="avi2swf/Makefile"
10482 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10483  #don't whine, avi2swf is outdated anyway
10484  #echo "* Disabling avi2swf tool..."
10485  echo all install uninstall clean: > avi2swf/Makefile
10486  avi2swf=
10487 fi
10488
10489 pdf2swf_makefile="lib/pdf/Makefile"
10490 PDF2SWF='pdf2swf$(E)'
10491 LIBPDF='libpdf$(A)'
10492
10493 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10494   echo "* Disabling pdf2swf tool..."
10495   rm -f lib/pdf/Makefile
10496   echo all install uninstall clean libpdf libgfxpdf: > lib/pdf/Makefile
10497   pdf2swf_makefile=""
10498   PDF2SWF=
10499   LIBPDF=
10500 fi
10501
10502
10503
10504 PDF2PDF='pdf2pdf$(E)'
10505 DEVICE_PDF='devices/pdf.$(O)'
10506 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
10507   #echo "* Disabling pdf2pdf tool..."
10508   PDF2PDF=
10509   DEVICE_PDF=
10510 fi
10511
10512
10513
10514 if test "x${ZLIBMISSING}" = "xtrue"; then
10515   echo
10516   echo "* Warning! Without zlib, you will not be able to read"
10517   echo "* or write compressed Flash MX files!"
10518 fi
10519
10520 JPEG2SWF='jpeg2swf$(E)'
10521 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10522   echo "* Disabling jpeg2swf tool..."
10523   JPEG2SWF=
10524 fi
10525 export JPEG2SWF
10526
10527
10528 GIF2SWF='gif2swf$(E)'
10529 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10530   echo "* Disabling gif2swf tool..."
10531   GIF2SWF=
10532 fi
10533 export GIF2SWF
10534
10535
10536 PNG2SWF='png2swf$(E)'
10537 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10538   echo "* Disabling png2swf tool..."
10539   PNG2SWF=
10540 fi
10541 export PNG2SWF
10542
10543
10544 if test "x${MISSINGLIBS}" '!=' "x"; then
10545   if test "x${PARTIAL}" '=' "x"; then
10546     echo "* (never mind)"
10547   fi
10548   echo "***************************************************"
10549 fi
10550
10551 # ------------------------------------------------------------------
10552
10553
10554
10555
10556
10557
10558
10559 if test -f "release.in"; then release_in="./release"; fi
10560 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10561 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythongfx} ${lame_makefile} lib/readers/Makefile"
10562 ac_config_files="$ac_config_files ${FILES}"
10563
10564 cat >confcache <<\_ACEOF
10565 # This file is a shell script that caches the results of configure
10566 # tests run on this system so they can be shared between configure
10567 # scripts and configure runs, see configure's option --config-cache.
10568 # It is not useful on other systems.  If it contains results you don't
10569 # want to keep, you may remove or edit it.
10570 #
10571 # config.status only pays attention to the cache file if you give it
10572 # the --recheck option to rerun configure.
10573 #
10574 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10575 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10576 # following values.
10577
10578 _ACEOF
10579
10580 # The following way of writing the cache mishandles newlines in values,
10581 # but we know of no workaround that is simple, portable, and efficient.
10582 # So, we kill variables containing newlines.
10583 # Ultrix sh set writes to stderr and can't be redirected directly,
10584 # and sets the high bit in the cache file unless we assign to the vars.
10585 (
10586   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10587     eval ac_val=\$$ac_var
10588     case $ac_val in #(
10589     *${as_nl}*)
10590       case $ac_var in #(
10591       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10592 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10593       esac
10594       case $ac_var in #(
10595       _ | IFS | as_nl) ;; #(
10596       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10597       *) $as_unset $ac_var ;;
10598       esac ;;
10599     esac
10600   done
10601
10602   (set) 2>&1 |
10603     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10604     *${as_nl}ac_space=\ *)
10605       # `set' does not quote correctly, so add quotes (double-quote
10606       # substitution turns \\\\ into \\, and sed turns \\ into \).
10607       sed -n \
10608         "s/'/'\\\\''/g;
10609           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10610       ;; #(
10611     *)
10612       # `set' quotes correctly as required by POSIX, so do not add quotes.
10613       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10614       ;;
10615     esac |
10616     sort
10617 ) |
10618   sed '
10619      /^ac_cv_env_/b end
10620      t clear
10621      :clear
10622      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10623      t end
10624      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10625      :end' >>confcache
10626 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10627   if test -w "$cache_file"; then
10628     test "x$cache_file" != "x/dev/null" &&
10629       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10630 $as_echo "$as_me: updating cache $cache_file" >&6;}
10631     cat confcache >$cache_file
10632   else
10633     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10634 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10635   fi
10636 fi
10637 rm -f confcache
10638
10639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10640 # Let make expand exec_prefix.
10641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10642
10643 DEFS=-DHAVE_CONFIG_H
10644
10645 ac_libobjs=
10646 ac_ltlibobjs=
10647 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10648   # 1. Remove the extension, and $U if already installed.
10649   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10650   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10651   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10652   #    will be set to the directory where LIBOBJS objects are built.
10653   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10654   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10655 done
10656 LIBOBJS=$ac_libobjs
10657
10658 LTLIBOBJS=$ac_ltlibobjs
10659
10660
10661
10662 : ${CONFIG_STATUS=./config.status}
10663 ac_write_fail=0
10664 ac_clean_files_save=$ac_clean_files
10665 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10666 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10667 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10668 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10669 #! $SHELL
10670 # Generated by $as_me.
10671 # Run this file to recreate the current configuration.
10672 # Compiler output produced by configure, useful for debugging
10673 # configure, is in config.log if it exists.
10674
10675 debug=false
10676 ac_cs_recheck=false
10677 ac_cs_silent=false
10678 SHELL=\${CONFIG_SHELL-$SHELL}
10679 _ACEOF
10680
10681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10682 ## --------------------- ##
10683 ## M4sh Initialization.  ##
10684 ## --------------------- ##
10685
10686 # Be more Bourne compatible
10687 DUALCASE=1; export DUALCASE # for MKS sh
10688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10689   emulate sh
10690   NULLCMD=:
10691   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10692   # is contrary to our usage.  Disable this feature.
10693   alias -g '${1+"$@"}'='"$@"'
10694   setopt NO_GLOB_SUBST
10695 else
10696   case `(set -o) 2>/dev/null` in
10697   *posix*) set -o posix ;;
10698 esac
10699
10700 fi
10701
10702
10703
10704
10705 # PATH needs CR
10706 # Avoid depending upon Character Ranges.
10707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10710 as_cr_digits='0123456789'
10711 as_cr_alnum=$as_cr_Letters$as_cr_digits
10712
10713 as_nl='
10714 '
10715 export as_nl
10716 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10717 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10718 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10719 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10720 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10721   as_echo='printf %s\n'
10722   as_echo_n='printf %s'
10723 else
10724   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10725     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10726     as_echo_n='/usr/ucb/echo -n'
10727   else
10728     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10729     as_echo_n_body='eval
10730       arg=$1;
10731       case $arg in
10732       *"$as_nl"*)
10733         expr "X$arg" : "X\\(.*\\)$as_nl";
10734         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10735       esac;
10736       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10737     '
10738     export as_echo_n_body
10739     as_echo_n='sh -c $as_echo_n_body as_echo'
10740   fi
10741   export as_echo_body
10742   as_echo='sh -c $as_echo_body as_echo'
10743 fi
10744
10745 # The user is always right.
10746 if test "${PATH_SEPARATOR+set}" != set; then
10747   PATH_SEPARATOR=:
10748   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10749     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10750       PATH_SEPARATOR=';'
10751   }
10752 fi
10753
10754 # Support unset when possible.
10755 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10756   as_unset=unset
10757 else
10758   as_unset=false
10759 fi
10760
10761
10762 # IFS
10763 # We need space, tab and new line, in precisely that order.  Quoting is
10764 # there to prevent editors from complaining about space-tab.
10765 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10766 # splitting by setting IFS to empty value.)
10767 IFS=" ""        $as_nl"
10768
10769 # Find who we are.  Look in the path if we contain no directory separator.
10770 case $0 in
10771   *[\\/]* ) as_myself=$0 ;;
10772   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773 for as_dir in $PATH
10774 do
10775   IFS=$as_save_IFS
10776   test -z "$as_dir" && as_dir=.
10777   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10778 done
10779 IFS=$as_save_IFS
10780
10781      ;;
10782 esac
10783 # We did not find ourselves, most probably we were run as `sh COMMAND'
10784 # in which case we are not to be found in the path.
10785 if test "x$as_myself" = x; then
10786   as_myself=$0
10787 fi
10788 if test ! -f "$as_myself"; then
10789   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10790   { (exit 1); exit 1; }
10791 fi
10792
10793 # Work around bugs in pre-3.0 UWIN ksh.
10794 for as_var in ENV MAIL MAILPATH
10795 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10796 done
10797 PS1='$ '
10798 PS2='> '
10799 PS4='+ '
10800
10801 # NLS nuisances.
10802 LC_ALL=C
10803 export LC_ALL
10804 LANGUAGE=C
10805 export LANGUAGE
10806
10807 # Required to use basename.
10808 if expr a : '\(a\)' >/dev/null 2>&1 &&
10809    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10810   as_expr=expr
10811 else
10812   as_expr=false
10813 fi
10814
10815 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10816   as_basename=basename
10817 else
10818   as_basename=false
10819 fi
10820
10821
10822 # Name of the executable.
10823 as_me=`$as_basename -- "$0" ||
10824 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10825          X"$0" : 'X\(//\)$' \| \
10826          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10827 $as_echo X/"$0" |
10828     sed '/^.*\/\([^/][^/]*\)\/*$/{
10829             s//\1/
10830             q
10831           }
10832           /^X\/\(\/\/\)$/{
10833             s//\1/
10834             q
10835           }
10836           /^X\/\(\/\).*/{
10837             s//\1/
10838             q
10839           }
10840           s/.*/./; q'`
10841
10842 # CDPATH.
10843 $as_unset CDPATH
10844
10845
10846
10847   as_lineno_1=$LINENO
10848   as_lineno_2=$LINENO
10849   test "x$as_lineno_1" != "x$as_lineno_2" &&
10850   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10851
10852   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10853   # uniformly replaced by the line number.  The first 'sed' inserts a
10854   # line-number line after each line using $LINENO; the second 'sed'
10855   # does the real work.  The second script uses 'N' to pair each
10856   # line-number line with the line containing $LINENO, and appends
10857   # trailing '-' during substitution so that $LINENO is not a special
10858   # case at line end.
10859   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10860   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10861   # E. McMahon (1931-1989) for sed's syntax.  :-)
10862   sed -n '
10863     p
10864     /[$]LINENO/=
10865   ' <$as_myself |
10866     sed '
10867       s/[$]LINENO.*/&-/
10868       t lineno
10869       b
10870       :lineno
10871       N
10872       :loop
10873       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10874       t loop
10875       s/-\n.*//
10876     ' >$as_me.lineno &&
10877   chmod +x "$as_me.lineno" ||
10878     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10879    { (exit 1); exit 1; }; }
10880
10881   # Don't try to exec as it changes $[0], causing all sort of problems
10882   # (the dirname of $[0] is not the place where we might find the
10883   # original and so on.  Autoconf is especially sensitive to this).
10884   . "./$as_me.lineno"
10885   # Exit status is that of the last command.
10886   exit
10887 }
10888
10889
10890 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10891   as_dirname=dirname
10892 else
10893   as_dirname=false
10894 fi
10895
10896 ECHO_C= ECHO_N= ECHO_T=
10897 case `echo -n x` in
10898 -n*)
10899   case `echo 'x\c'` in
10900   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10901   *)   ECHO_C='\c';;
10902   esac;;
10903 *)
10904   ECHO_N='-n';;
10905 esac
10906 if expr a : '\(a\)' >/dev/null 2>&1 &&
10907    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10908   as_expr=expr
10909 else
10910   as_expr=false
10911 fi
10912
10913 rm -f conf$$ conf$$.exe conf$$.file
10914 if test -d conf$$.dir; then
10915   rm -f conf$$.dir/conf$$.file
10916 else
10917   rm -f conf$$.dir
10918   mkdir conf$$.dir 2>/dev/null
10919 fi
10920 if (echo >conf$$.file) 2>/dev/null; then
10921   if ln -s conf$$.file conf$$ 2>/dev/null; then
10922     as_ln_s='ln -s'
10923     # ... but there are two gotchas:
10924     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10925     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10926     # In both cases, we have to default to `cp -p'.
10927     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10928       as_ln_s='cp -p'
10929   elif ln conf$$.file conf$$ 2>/dev/null; then
10930     as_ln_s=ln
10931   else
10932     as_ln_s='cp -p'
10933   fi
10934 else
10935   as_ln_s='cp -p'
10936 fi
10937 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10938 rmdir conf$$.dir 2>/dev/null
10939
10940 if mkdir -p . 2>/dev/null; then
10941   as_mkdir_p=:
10942 else
10943   test -d ./-p && rmdir ./-p
10944   as_mkdir_p=false
10945 fi
10946
10947 if test -x / >/dev/null 2>&1; then
10948   as_test_x='test -x'
10949 else
10950   if ls -dL / >/dev/null 2>&1; then
10951     as_ls_L_option=L
10952   else
10953     as_ls_L_option=
10954   fi
10955   as_test_x='
10956     eval sh -c '\''
10957       if test -d "$1"; then
10958         test -d "$1/.";
10959       else
10960         case $1 in
10961         -*)set "./$1";;
10962         esac;
10963         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10964         ???[sx]*):;;*)false;;esac;fi
10965     '\'' sh
10966   '
10967 fi
10968 as_executable_p=$as_test_x
10969
10970 # Sed expression to map a string onto a valid CPP name.
10971 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10972
10973 # Sed expression to map a string onto a valid variable name.
10974 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10975
10976
10977 exec 6>&1
10978
10979 # Save the log message, to keep $[0] and so on meaningful, and to
10980 # report actual input values of CONFIG_FILES etc. instead of their
10981 # values after options handling.
10982 ac_log="
10983 This file was extended by $as_me, which was
10984 generated by GNU Autoconf 2.63.  Invocation command line was
10985
10986   CONFIG_FILES    = $CONFIG_FILES
10987   CONFIG_HEADERS  = $CONFIG_HEADERS
10988   CONFIG_LINKS    = $CONFIG_LINKS
10989   CONFIG_COMMANDS = $CONFIG_COMMANDS
10990   $ $0 $@
10991
10992 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10993 "
10994
10995 _ACEOF
10996
10997 case $ac_config_files in *"
10998 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10999 esac
11000
11001 case $ac_config_headers in *"
11002 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11003 esac
11004
11005
11006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11007 # Files that config.status was made for.
11008 config_files="$ac_config_files"
11009 config_headers="$ac_config_headers"
11010
11011 _ACEOF
11012
11013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11014 ac_cs_usage="\
11015 \`$as_me' instantiates files from templates according to the
11016 current configuration.
11017
11018 Usage: $0 [OPTION]... [FILE]...
11019
11020   -h, --help       print this help, then exit
11021   -V, --version    print version number and configuration settings, then exit
11022   -q, --quiet, --silent
11023                    do not print progress messages
11024   -d, --debug      don't remove temporary files
11025       --recheck    update $as_me by reconfiguring in the same conditions
11026       --file=FILE[:TEMPLATE]
11027                    instantiate the configuration file FILE
11028       --header=FILE[:TEMPLATE]
11029                    instantiate the configuration header FILE
11030
11031 Configuration files:
11032 $config_files
11033
11034 Configuration headers:
11035 $config_headers
11036
11037 Report bugs to <bug-autoconf@gnu.org>."
11038
11039 _ACEOF
11040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11041 ac_cs_version="\\
11042 config.status
11043 configured by $0, generated by GNU Autoconf 2.63,
11044   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11045
11046 Copyright (C) 2008 Free Software Foundation, Inc.
11047 This config.status script is free software; the Free Software Foundation
11048 gives unlimited permission to copy, distribute and modify it."
11049
11050 ac_pwd='$ac_pwd'
11051 srcdir='$srcdir'
11052 INSTALL='$INSTALL'
11053 test -n "\$AWK" || AWK=awk
11054 _ACEOF
11055
11056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11057 # The default lists apply if the user does not specify any file.
11058 ac_need_defaults=:
11059 while test $# != 0
11060 do
11061   case $1 in
11062   --*=*)
11063     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11064     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11065     ac_shift=:
11066     ;;
11067   *)
11068     ac_option=$1
11069     ac_optarg=$2
11070     ac_shift=shift
11071     ;;
11072   esac
11073
11074   case $ac_option in
11075   # Handling of the options.
11076   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11077     ac_cs_recheck=: ;;
11078   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11079     $as_echo "$ac_cs_version"; exit ;;
11080   --debug | --debu | --deb | --de | --d | -d )
11081     debug=: ;;
11082   --file | --fil | --fi | --f )
11083     $ac_shift
11084     case $ac_optarg in
11085     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11086     esac
11087     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11088     ac_need_defaults=false;;
11089   --header | --heade | --head | --hea )
11090     $ac_shift
11091     case $ac_optarg in
11092     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11093     esac
11094     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11095     ac_need_defaults=false;;
11096   --he | --h)
11097     # Conflict between --help and --header
11098     { $as_echo "$as_me: error: ambiguous option: $1
11099 Try \`$0 --help' for more information." >&2
11100    { (exit 1); exit 1; }; };;
11101   --help | --hel | -h )
11102     $as_echo "$ac_cs_usage"; exit ;;
11103   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11104   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11105     ac_cs_silent=: ;;
11106
11107   # This is an error.
11108   -*) { $as_echo "$as_me: error: unrecognized option: $1
11109 Try \`$0 --help' for more information." >&2
11110    { (exit 1); exit 1; }; } ;;
11111
11112   *) ac_config_targets="$ac_config_targets $1"
11113      ac_need_defaults=false ;;
11114
11115   esac
11116   shift
11117 done
11118
11119 ac_configure_extra_args=
11120
11121 if $ac_cs_silent; then
11122   exec 6>/dev/null
11123   ac_configure_extra_args="$ac_configure_extra_args --silent"
11124 fi
11125
11126 _ACEOF
11127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11128 if \$ac_cs_recheck; then
11129   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11130   shift
11131   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11132   CONFIG_SHELL='$SHELL'
11133   export CONFIG_SHELL
11134   exec "\$@"
11135 fi
11136
11137 _ACEOF
11138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11139 exec 5>>config.log
11140 {
11141   echo
11142   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11143 ## Running $as_me. ##
11144 _ASBOX
11145   $as_echo "$ac_log"
11146 } >&5
11147
11148 _ACEOF
11149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11150 _ACEOF
11151
11152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11153
11154 # Handling of arguments.
11155 for ac_config_target in $ac_config_targets
11156 do
11157   case $ac_config_target in
11158     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11159     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11160
11161   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11162 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11163    { (exit 1); exit 1; }; };;
11164   esac
11165 done
11166
11167
11168 # If the user did not use the arguments to specify the items to instantiate,
11169 # then the envvar interface is used.  Set only those that are not.
11170 # We use the long form for the default assignment because of an extremely
11171 # bizarre bug on SunOS 4.1.3.
11172 if $ac_need_defaults; then
11173   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11174   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11175 fi
11176
11177 # Have a temporary directory for convenience.  Make it in the build tree
11178 # simply because there is no reason against having it here, and in addition,
11179 # creating and moving files from /tmp can sometimes cause problems.
11180 # Hook for its removal unless debugging.
11181 # Note that there is a small window in which the directory will not be cleaned:
11182 # after its creation but before its name has been assigned to `$tmp'.
11183 $debug ||
11184 {
11185   tmp=
11186   trap 'exit_status=$?
11187   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11188 ' 0
11189   trap '{ (exit 1); exit 1; }' 1 2 13 15
11190 }
11191 # Create a (secure) tmp directory for tmp files.
11192
11193 {
11194   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11195   test -n "$tmp" && test -d "$tmp"
11196 }  ||
11197 {
11198   tmp=./conf$$-$RANDOM
11199   (umask 077 && mkdir "$tmp")
11200 } ||
11201 {
11202    $as_echo "$as_me: cannot create a temporary directory in ." >&2
11203    { (exit 1); exit 1; }
11204 }
11205
11206 # Set up the scripts for CONFIG_FILES section.
11207 # No need to generate them if there are no CONFIG_FILES.
11208 # This happens for instance with `./config.status config.h'.
11209 if test -n "$CONFIG_FILES"; then
11210
11211
11212 ac_cr='\r'
11213 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11214 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11215   ac_cs_awk_cr='\\r'
11216 else
11217   ac_cs_awk_cr=$ac_cr
11218 fi
11219
11220 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11221 _ACEOF
11222
11223
11224 {
11225   echo "cat >conf$$subs.awk <<_ACEOF" &&
11226   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11227   echo "_ACEOF"
11228 } >conf$$subs.sh ||
11229   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11230 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11231    { (exit 1); exit 1; }; }
11232 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11233 ac_delim='%!_!# '
11234 for ac_last_try in false false false false false :; do
11235   . ./conf$$subs.sh ||
11236     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11237 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11238    { (exit 1); exit 1; }; }
11239
11240   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11241   if test $ac_delim_n = $ac_delim_num; then
11242     break
11243   elif $ac_last_try; then
11244     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11245 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11246    { (exit 1); exit 1; }; }
11247   else
11248     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11249   fi
11250 done
11251 rm -f conf$$subs.sh
11252
11253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11254 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11255 _ACEOF
11256 sed -n '
11257 h
11258 s/^/S["/; s/!.*/"]=/
11259 p
11260 g
11261 s/^[^!]*!//
11262 :repl
11263 t repl
11264 s/'"$ac_delim"'$//
11265 t delim
11266 :nl
11267 h
11268 s/\(.\{148\}\).*/\1/
11269 t more1
11270 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11271 p
11272 n
11273 b repl
11274 :more1
11275 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11276 p
11277 g
11278 s/.\{148\}//
11279 t nl
11280 :delim
11281 h
11282 s/\(.\{148\}\).*/\1/
11283 t more2
11284 s/["\\]/\\&/g; s/^/"/; s/$/"/
11285 p
11286 b
11287 :more2
11288 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11289 p
11290 g
11291 s/.\{148\}//
11292 t delim
11293 ' <conf$$subs.awk | sed '
11294 /^[^""]/{
11295   N
11296   s/\n//
11297 }
11298 ' >>$CONFIG_STATUS || ac_write_fail=1
11299 rm -f conf$$subs.awk
11300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11301 _ACAWK
11302 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11303   for (key in S) S_is_set[key] = 1
11304   FS = "\a"
11305
11306 }
11307 {
11308   line = $ 0
11309   nfields = split(line, field, "@")
11310   substed = 0
11311   len = length(field[1])
11312   for (i = 2; i < nfields; i++) {
11313     key = field[i]
11314     keylen = length(key)
11315     if (S_is_set[key]) {
11316       value = S[key]
11317       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11318       len += length(value) + length(field[++i])
11319       substed = 1
11320     } else
11321       len += 1 + keylen
11322   }
11323
11324   print line
11325 }
11326
11327 _ACAWK
11328 _ACEOF
11329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11330 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11331   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11332 else
11333   cat
11334 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11335   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11336 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11337    { (exit 1); exit 1; }; }
11338 _ACEOF
11339
11340 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11341 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11342 # trailing colons and then remove the whole line if VPATH becomes empty
11343 # (actually we leave an empty line to preserve line numbers).
11344 if test "x$srcdir" = x.; then
11345   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11346 s/:*\$(srcdir):*/:/
11347 s/:*\${srcdir}:*/:/
11348 s/:*@srcdir@:*/:/
11349 s/^\([^=]*=[     ]*\):*/\1/
11350 s/:*$//
11351 s/^[^=]*=[       ]*$//
11352 }'
11353 fi
11354
11355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11356 fi # test -n "$CONFIG_FILES"
11357
11358 # Set up the scripts for CONFIG_HEADERS section.
11359 # No need to generate them if there are no CONFIG_HEADERS.
11360 # This happens for instance with `./config.status Makefile'.
11361 if test -n "$CONFIG_HEADERS"; then
11362 cat >"$tmp/defines.awk" <<\_ACAWK ||
11363 BEGIN {
11364 _ACEOF
11365
11366 # Transform confdefs.h into an awk script `defines.awk', embedded as
11367 # here-document in config.status, that substitutes the proper values into
11368 # config.h.in to produce config.h.
11369
11370 # Create a delimiter string that does not exist in confdefs.h, to ease
11371 # handling of long lines.
11372 ac_delim='%!_!# '
11373 for ac_last_try in false false :; do
11374   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11375   if test -z "$ac_t"; then
11376     break
11377   elif $ac_last_try; then
11378     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11379 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11380    { (exit 1); exit 1; }; }
11381   else
11382     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11383   fi
11384 done
11385
11386 # For the awk script, D is an array of macro values keyed by name,
11387 # likewise P contains macro parameters if any.  Preserve backslash
11388 # newline sequences.
11389
11390 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11391 sed -n '
11392 s/.\{148\}/&'"$ac_delim"'/g
11393 t rset
11394 :rset
11395 s/^[     ]*#[    ]*define[       ][      ]*/ /
11396 t def
11397 d
11398 :def
11399 s/\\$//
11400 t bsnl
11401 s/["\\]/\\&/g
11402 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11403 D["\1"]=" \3"/p
11404 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
11405 d
11406 :bsnl
11407 s/["\\]/\\&/g
11408 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11409 D["\1"]=" \3\\\\\\n"\\/p
11410 t cont
11411 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11412 t cont
11413 d
11414 :cont
11415 n
11416 s/.\{148\}/&'"$ac_delim"'/g
11417 t clear
11418 :clear
11419 s/\\$//
11420 t bsnlc
11421 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11422 d
11423 :bsnlc
11424 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11425 b cont
11426 ' <confdefs.h | sed '
11427 s/'"$ac_delim"'/"\\\
11428 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11429
11430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11431   for (key in D) D_is_set[key] = 1
11432   FS = "\a"
11433 }
11434 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11435   line = \$ 0
11436   split(line, arg, " ")
11437   if (arg[1] == "#") {
11438     defundef = arg[2]
11439     mac1 = arg[3]
11440   } else {
11441     defundef = substr(arg[1], 2)
11442     mac1 = arg[2]
11443   }
11444   split(mac1, mac2, "(") #)
11445   macro = mac2[1]
11446   prefix = substr(line, 1, index(line, defundef) - 1)
11447   if (D_is_set[macro]) {
11448     # Preserve the white space surrounding the "#".
11449     print prefix "define", macro P[macro] D[macro]
11450     next
11451   } else {
11452     # Replace #undef with comments.  This is necessary, for example,
11453     # in the case of _POSIX_SOURCE, which is predefined and required
11454     # on some systems where configure will not decide to define it.
11455     if (defundef == "undef") {
11456       print "/*", prefix defundef, macro, "*/"
11457       next
11458     }
11459   }
11460 }
11461 { print }
11462 _ACAWK
11463 _ACEOF
11464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11465   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11466 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11467    { (exit 1); exit 1; }; }
11468 fi # test -n "$CONFIG_HEADERS"
11469
11470
11471 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
11472 shift
11473 for ac_tag
11474 do
11475   case $ac_tag in
11476   :[FHLC]) ac_mode=$ac_tag; continue;;
11477   esac
11478   case $ac_mode$ac_tag in
11479   :[FHL]*:*);;
11480   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11481 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11482    { (exit 1); exit 1; }; };;
11483   :[FH]-) ac_tag=-:-;;
11484   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11485   esac
11486   ac_save_IFS=$IFS
11487   IFS=:
11488   set x $ac_tag
11489   IFS=$ac_save_IFS
11490   shift
11491   ac_file=$1
11492   shift
11493
11494   case $ac_mode in
11495   :L) ac_source=$1;;
11496   :[FH])
11497     ac_file_inputs=
11498     for ac_f
11499     do
11500       case $ac_f in
11501       -) ac_f="$tmp/stdin";;
11502       *) # Look for the file first in the build tree, then in the source tree
11503          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11504          # because $ac_f cannot contain `:'.
11505          test -f "$ac_f" ||
11506            case $ac_f in
11507            [\\/$]*) false;;
11508            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11509            esac ||
11510            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11511 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11512    { (exit 1); exit 1; }; };;
11513       esac
11514       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11515       ac_file_inputs="$ac_file_inputs '$ac_f'"
11516     done
11517
11518     # Let's still pretend it is `configure' which instantiates (i.e., don't
11519     # use $as_me), people would be surprised to read:
11520     #    /* config.h.  Generated by config.status.  */
11521     configure_input='Generated from '`
11522           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11523         `' by configure.'
11524     if test x"$ac_file" != x-; then
11525       configure_input="$ac_file.  $configure_input"
11526       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11527 $as_echo "$as_me: creating $ac_file" >&6;}
11528     fi
11529     # Neutralize special characters interpreted by sed in replacement strings.
11530     case $configure_input in #(
11531     *\&* | *\|* | *\\* )
11532        ac_sed_conf_input=`$as_echo "$configure_input" |
11533        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11534     *) ac_sed_conf_input=$configure_input;;
11535     esac
11536
11537     case $ac_tag in
11538     *:-:* | *:-) cat >"$tmp/stdin" \
11539       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11540 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11541    { (exit 1); exit 1; }; } ;;
11542     esac
11543     ;;
11544   esac
11545
11546   ac_dir=`$as_dirname -- "$ac_file" ||
11547 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11548          X"$ac_file" : 'X\(//\)[^/]' \| \
11549          X"$ac_file" : 'X\(//\)$' \| \
11550          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11551 $as_echo X"$ac_file" |
11552     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11553             s//\1/
11554             q
11555           }
11556           /^X\(\/\/\)[^/].*/{
11557             s//\1/
11558             q
11559           }
11560           /^X\(\/\/\)$/{
11561             s//\1/
11562             q
11563           }
11564           /^X\(\/\).*/{
11565             s//\1/
11566             q
11567           }
11568           s/.*/./; q'`
11569   { as_dir="$ac_dir"
11570   case $as_dir in #(
11571   -*) as_dir=./$as_dir;;
11572   esac
11573   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11574     as_dirs=
11575     while :; do
11576       case $as_dir in #(
11577       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11578       *) as_qdir=$as_dir;;
11579       esac
11580       as_dirs="'$as_qdir' $as_dirs"
11581       as_dir=`$as_dirname -- "$as_dir" ||
11582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11583          X"$as_dir" : 'X\(//\)[^/]' \| \
11584          X"$as_dir" : 'X\(//\)$' \| \
11585          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11586 $as_echo X"$as_dir" |
11587     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11588             s//\1/
11589             q
11590           }
11591           /^X\(\/\/\)[^/].*/{
11592             s//\1/
11593             q
11594           }
11595           /^X\(\/\/\)$/{
11596             s//\1/
11597             q
11598           }
11599           /^X\(\/\).*/{
11600             s//\1/
11601             q
11602           }
11603           s/.*/./; q'`
11604       test -d "$as_dir" && break
11605     done
11606     test -z "$as_dirs" || eval "mkdir $as_dirs"
11607   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11608 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11609    { (exit 1); exit 1; }; }; }
11610   ac_builddir=.
11611
11612 case "$ac_dir" in
11613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11614 *)
11615   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11616   # A ".." for each directory in $ac_dir_suffix.
11617   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11618   case $ac_top_builddir_sub in
11619   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11620   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11621   esac ;;
11622 esac
11623 ac_abs_top_builddir=$ac_pwd
11624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11625 # for backward compatibility:
11626 ac_top_builddir=$ac_top_build_prefix
11627
11628 case $srcdir in
11629   .)  # We are building in place.
11630     ac_srcdir=.
11631     ac_top_srcdir=$ac_top_builddir_sub
11632     ac_abs_top_srcdir=$ac_pwd ;;
11633   [\\/]* | ?:[\\/]* )  # Absolute name.
11634     ac_srcdir=$srcdir$ac_dir_suffix;
11635     ac_top_srcdir=$srcdir
11636     ac_abs_top_srcdir=$srcdir ;;
11637   *) # Relative name.
11638     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11639     ac_top_srcdir=$ac_top_build_prefix$srcdir
11640     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11641 esac
11642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11643
11644
11645   case $ac_mode in
11646   :F)
11647   #
11648   # CONFIG_FILE
11649   #
11650
11651   case $INSTALL in
11652   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11653   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11654   esac
11655 _ACEOF
11656
11657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11658 # If the template does not know about datarootdir, expand it.
11659 # FIXME: This hack should be removed a few years after 2.60.
11660 ac_datarootdir_hack=; ac_datarootdir_seen=
11661
11662 ac_sed_dataroot='
11663 /datarootdir/ {
11664   p
11665   q
11666 }
11667 /@datadir@/p
11668 /@docdir@/p
11669 /@infodir@/p
11670 /@localedir@/p
11671 /@mandir@/p
11672 '
11673 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11674 *datarootdir*) ac_datarootdir_seen=yes;;
11675 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11676   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11677 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11678 _ACEOF
11679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11680   ac_datarootdir_hack='
11681   s&@datadir@&$datadir&g
11682   s&@docdir@&$docdir&g
11683   s&@infodir@&$infodir&g
11684   s&@localedir@&$localedir&g
11685   s&@mandir@&$mandir&g
11686     s&\\\${datarootdir}&$datarootdir&g' ;;
11687 esac
11688 _ACEOF
11689
11690 # Neutralize VPATH when `$srcdir' = `.'.
11691 # Shell code in configure.ac might set extrasub.
11692 # FIXME: do we really want to maintain this feature?
11693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11694 ac_sed_extra="$ac_vpsub
11695 $extrasub
11696 _ACEOF
11697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11698 :t
11699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11700 s|@configure_input@|$ac_sed_conf_input|;t t
11701 s&@top_builddir@&$ac_top_builddir_sub&;t t
11702 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11703 s&@srcdir@&$ac_srcdir&;t t
11704 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11705 s&@top_srcdir@&$ac_top_srcdir&;t t
11706 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11707 s&@builddir@&$ac_builddir&;t t
11708 s&@abs_builddir@&$ac_abs_builddir&;t t
11709 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11710 s&@INSTALL@&$ac_INSTALL&;t t
11711 $ac_datarootdir_hack
11712 "
11713 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11714   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11715 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11716    { (exit 1); exit 1; }; }
11717
11718 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11719   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11720   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11721   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11722 which seems to be undefined.  Please make sure it is defined." >&5
11723 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11724 which seems to be undefined.  Please make sure it is defined." >&2;}
11725
11726   rm -f "$tmp/stdin"
11727   case $ac_file in
11728   -) cat "$tmp/out" && rm -f "$tmp/out";;
11729   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11730   esac \
11731   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11732 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11733    { (exit 1); exit 1; }; }
11734  ;;
11735   :H)
11736   #
11737   # CONFIG_HEADER
11738   #
11739   if test x"$ac_file" != x-; then
11740     {
11741       $as_echo "/* $configure_input  */" \
11742       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11743     } >"$tmp/config.h" \
11744       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11745 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11746    { (exit 1); exit 1; }; }
11747     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11748       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11749 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11750     else
11751       rm -f "$ac_file"
11752       mv "$tmp/config.h" "$ac_file" \
11753         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11754 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11755    { (exit 1); exit 1; }; }
11756     fi
11757   else
11758     $as_echo "/* $configure_input  */" \
11759       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11760       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11761 $as_echo "$as_me: error: could not create -" >&2;}
11762    { (exit 1); exit 1; }; }
11763   fi
11764  ;;
11765
11766
11767   esac
11768
11769 done # for ac_tag
11770
11771
11772 { (exit 0); exit 0; }
11773 _ACEOF
11774 chmod +x $CONFIG_STATUS
11775 ac_clean_files=$ac_clean_files_save
11776
11777 test $ac_write_fail = 0 ||
11778   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11779 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11780    { (exit 1); exit 1; }; }
11781
11782
11783 # configure is writing to config.log, and then calls config.status.
11784 # config.status does its own redirection, appending to config.log.
11785 # Unfortunately, on DOS this fails, as config.log is still kept open
11786 # by configure, so config.status won't be able to write to it; its
11787 # output is simply discarded.  So we exec the FD to /dev/null,
11788 # effectively closing config.log, so it can be properly (re)opened and
11789 # appended to by config.status.  When coming back to configure, we
11790 # need to make the FD available again.
11791 if test "$no_create" != yes; then
11792   ac_cs_success=:
11793   ac_config_status_args=
11794   test "$silent" = yes &&
11795     ac_config_status_args="$ac_config_status_args --quiet"
11796   exec 5>/dev/null
11797   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11798   exec 5>>config.log
11799   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11800   # would make configure fail if this is the last instruction.
11801   $ac_cs_success || { (exit 1); exit 1; }
11802 fi
11803 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11804   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11805 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11806 fi
11807
11808
11809
11810 #
11811 # On development trees, create snapshots of config.status
11812 #
11813 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11814     if test "x${MINGW}" = "xyes"; then
11815         echo cp config.status config.status.win32
11816         cp config.status config.status.win32
11817     else
11818         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
11819             echo cp config.status config.status.linux
11820             cp config.status config.status.linux
11821         fi
11822         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
11823             echo cp config.status config.status.debug
11824             cp config.status config.status.debug
11825         fi
11826         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
11827             echo cp config.status config.status.optimize
11828             cp config.status config.status.optimize
11829         fi
11830     fi
11831 fi