added pdf2pdf tool
[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 HAVE_PYTHON_IMAGING
648 PYTHON_INCLUDES
649 PYTHON_LIB
650 USE_GZIP
651 VIDEO_CFLAGS
652 VIDEO_LIBS
653 AVIFILE_CONFIG
654 splash_in_source
655 xpdf_in_source
656 art_in_source
657 lame_in_source
658 DEVICE_OPENGL
659 FREETYPE_CONFIG
660 HAVE_UNISTD_H
661 VERSION
662 PACKAGE
663 EGREP
664 GREP
665 SYSTEM_BACKTICKS
666 WORDS_BIGENDIAN
667 target_os
668 target_vendor
669 target_cpu
670 target
671 STRIP
672 CXXLIBS
673 SLEXT
674 AR
675 AREXT
676 UNCOMPRESS
677 LN_S
678 INSTALL_DATA
679 INSTALL_SCRIPT
680 INSTALL_PROGRAM
681 SET_MAKE
682 RANLIB
683 CPP
684 ac_ct_CXX
685 CXXFLAGS
686 CXX
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 SHARED
695 host_os
696 host_vendor
697 host_cpu
698 host
699 build_os
700 build_vendor
701 build_cpu
702 build
703 target_alias
704 host_alias
705 build_alias
706 LIBS
707 ECHO_T
708 ECHO_N
709 ECHO_C
710 DEFS
711 mandir
712 localedir
713 libdir
714 psdir
715 pdfdir
716 dvidir
717 htmldir
718 infodir
719 docdir
720 oldincludedir
721 includedir
722 localstatedir
723 sharedstatedir
724 sysconfdir
725 datadir
726 datarootdir
727 libexecdir
728 sbindir
729 bindir
730 program_transform_name
731 prefix
732 exec_prefix
733 PACKAGE_BUGREPORT
734 PACKAGE_STRING
735 PACKAGE_VERSION
736 PACKAGE_TARNAME
737 PACKAGE_NAME
738 PATH_SEPARATOR
739 SHELL'
740 ac_subst_files=''
741 ac_user_opts='
742 enable_option_checking
743 enable_checkmem
744 enable_debug
745 enable_profiling
746 enable_warnings
747 enable_optimizations
748 enable_lame
749 '
750       ac_precious_vars='build_alias
751 host_alias
752 target_alias
753 CC
754 CFLAGS
755 LDFLAGS
756 LIBS
757 CPPFLAGS
758 CXX
759 CXXFLAGS
760 CCC
761 CPP'
762
763
764 # Initialize some variables set by options.
765 ac_init_help=
766 ac_init_version=false
767 ac_unrecognized_opts=
768 ac_unrecognized_sep=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
771 cache_file=/dev/null
772 exec_prefix=NONE
773 no_create=
774 no_recursion=
775 prefix=NONE
776 program_prefix=NONE
777 program_suffix=NONE
778 program_transform_name=s,x,x,
779 silent=
780 site=
781 srcdir=
782 verbose=
783 x_includes=NONE
784 x_libraries=NONE
785
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE}'
803 infodir='${datarootdir}/info'
804 htmldir='${docdir}'
805 dvidir='${docdir}'
806 pdfdir='${docdir}'
807 psdir='${docdir}'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
811
812 ac_prev=
813 ac_dashdash=
814 for ac_option
815 do
816   # If the previous option needs an argument, assign it.
817   if test -n "$ac_prev"; then
818     eval $ac_prev=\$ac_option
819     ac_prev=
820     continue
821   fi
822
823   case $ac_option in
824   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
825   *)    ac_optarg=yes ;;
826   esac
827
828   # Accept the important Cygnus configure options, so we can diagnose typos.
829
830   case $ac_dashdash$ac_option in
831   --)
832     ac_dashdash=yes ;;
833
834   -bindir | --bindir | --bindi | --bind | --bin | --bi)
835     ac_prev=bindir ;;
836   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
837     bindir=$ac_optarg ;;
838
839   -build | --build | --buil | --bui | --bu)
840     ac_prev=build_alias ;;
841   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
842     build_alias=$ac_optarg ;;
843
844   -cache-file | --cache-file | --cache-fil | --cache-fi \
845   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
846     ac_prev=cache_file ;;
847   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
848   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
849     cache_file=$ac_optarg ;;
850
851   --config-cache | -C)
852     cache_file=config.cache ;;
853
854   -datadir | --datadir | --datadi | --datad)
855     ac_prev=datadir ;;
856   -datadir=* | --datadir=* | --datadi=* | --datad=*)
857     datadir=$ac_optarg ;;
858
859   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
860   | --dataroo | --dataro | --datar)
861     ac_prev=datarootdir ;;
862   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
863   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
864     datarootdir=$ac_optarg ;;
865
866   -disable-* | --disable-*)
867     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868     # Reject names that are not valid shell variable names.
869     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
871    { (exit 1); exit 1; }; }
872     ac_useropt_orig=$ac_useropt
873     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874     case $ac_user_opts in
875       *"
876 "enable_$ac_useropt"
877 "*) ;;
878       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879          ac_unrecognized_sep=', ';;
880     esac
881     eval enable_$ac_useropt=no ;;
882
883   -docdir | --docdir | --docdi | --doc | --do)
884     ac_prev=docdir ;;
885   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886     docdir=$ac_optarg ;;
887
888   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889     ac_prev=dvidir ;;
890   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891     dvidir=$ac_optarg ;;
892
893   -enable-* | --enable-*)
894     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895     # Reject names that are not valid shell variable names.
896     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
898    { (exit 1); exit 1; }; }
899     ac_useropt_orig=$ac_useropt
900     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901     case $ac_user_opts in
902       *"
903 "enable_$ac_useropt"
904 "*) ;;
905       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906          ac_unrecognized_sep=', ';;
907     esac
908     eval enable_$ac_useropt=\$ac_optarg ;;
909
910   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912   | --exec | --exe | --ex)
913     ac_prev=exec_prefix ;;
914   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916   | --exec=* | --exe=* | --ex=*)
917     exec_prefix=$ac_optarg ;;
918
919   -gas | --gas | --ga | --g)
920     # Obsolete; use --with-gas.
921     with_gas=yes ;;
922
923   -help | --help | --hel | --he | -h)
924     ac_init_help=long ;;
925   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926     ac_init_help=recursive ;;
927   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928     ac_init_help=short ;;
929
930   -host | --host | --hos | --ho)
931     ac_prev=host_alias ;;
932   -host=* | --host=* | --hos=* | --ho=*)
933     host_alias=$ac_optarg ;;
934
935   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
936     ac_prev=htmldir ;;
937   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
938   | --ht=*)
939     htmldir=$ac_optarg ;;
940
941   -includedir | --includedir | --includedi | --included | --include \
942   | --includ | --inclu | --incl | --inc)
943     ac_prev=includedir ;;
944   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945   | --includ=* | --inclu=* | --incl=* | --inc=*)
946     includedir=$ac_optarg ;;
947
948   -infodir | --infodir | --infodi | --infod | --info | --inf)
949     ac_prev=infodir ;;
950   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951     infodir=$ac_optarg ;;
952
953   -libdir | --libdir | --libdi | --libd)
954     ac_prev=libdir ;;
955   -libdir=* | --libdir=* | --libdi=* | --libd=*)
956     libdir=$ac_optarg ;;
957
958   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959   | --libexe | --libex | --libe)
960     ac_prev=libexecdir ;;
961   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962   | --libexe=* | --libex=* | --libe=*)
963     libexecdir=$ac_optarg ;;
964
965   -localedir | --localedir | --localedi | --localed | --locale)
966     ac_prev=localedir ;;
967   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968     localedir=$ac_optarg ;;
969
970   -localstatedir | --localstatedir | --localstatedi | --localstated \
971   | --localstate | --localstat | --localsta | --localst | --locals)
972     ac_prev=localstatedir ;;
973   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975     localstatedir=$ac_optarg ;;
976
977   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
978     ac_prev=mandir ;;
979   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
980     mandir=$ac_optarg ;;
981
982   -nfp | --nfp | --nf)
983     # Obsolete; use --without-fp.
984     with_fp=no ;;
985
986   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987   | --no-cr | --no-c | -n)
988     no_create=yes ;;
989
990   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
992     no_recursion=yes ;;
993
994   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996   | --oldin | --oldi | --old | --ol | --o)
997     ac_prev=oldincludedir ;;
998   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001     oldincludedir=$ac_optarg ;;
1002
1003   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1004     ac_prev=prefix ;;
1005   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006     prefix=$ac_optarg ;;
1007
1008   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009   | --program-pre | --program-pr | --program-p)
1010     ac_prev=program_prefix ;;
1011   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013     program_prefix=$ac_optarg ;;
1014
1015   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016   | --program-suf | --program-su | --program-s)
1017     ac_prev=program_suffix ;;
1018   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020     program_suffix=$ac_optarg ;;
1021
1022   -program-transform-name | --program-transform-name \
1023   | --program-transform-nam | --program-transform-na \
1024   | --program-transform-n | --program-transform- \
1025   | --program-transform | --program-transfor \
1026   | --program-transfo | --program-transf \
1027   | --program-trans | --program-tran \
1028   | --progr-tra | --program-tr | --program-t)
1029     ac_prev=program_transform_name ;;
1030   -program-transform-name=* | --program-transform-name=* \
1031   | --program-transform-nam=* | --program-transform-na=* \
1032   | --program-transform-n=* | --program-transform-=* \
1033   | --program-transform=* | --program-transfor=* \
1034   | --program-transfo=* | --program-transf=* \
1035   | --program-trans=* | --program-tran=* \
1036   | --progr-tra=* | --program-tr=* | --program-t=*)
1037     program_transform_name=$ac_optarg ;;
1038
1039   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1040     ac_prev=pdfdir ;;
1041   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042     pdfdir=$ac_optarg ;;
1043
1044   -psdir | --psdir | --psdi | --psd | --ps)
1045     ac_prev=psdir ;;
1046   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1047     psdir=$ac_optarg ;;
1048
1049   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050   | -silent | --silent | --silen | --sile | --sil)
1051     silent=yes ;;
1052
1053   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1054     ac_prev=sbindir ;;
1055   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1056   | --sbi=* | --sb=*)
1057     sbindir=$ac_optarg ;;
1058
1059   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061   | --sharedst | --shareds | --shared | --share | --shar \
1062   | --sha | --sh)
1063     ac_prev=sharedstatedir ;;
1064   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1067   | --sha=* | --sh=*)
1068     sharedstatedir=$ac_optarg ;;
1069
1070   -site | --site | --sit)
1071     ac_prev=site ;;
1072   -site=* | --site=* | --sit=*)
1073     site=$ac_optarg ;;
1074
1075   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1076     ac_prev=srcdir ;;
1077   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078     srcdir=$ac_optarg ;;
1079
1080   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081   | --syscon | --sysco | --sysc | --sys | --sy)
1082     ac_prev=sysconfdir ;;
1083   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085     sysconfdir=$ac_optarg ;;
1086
1087   -target | --target | --targe | --targ | --tar | --ta | --t)
1088     ac_prev=target_alias ;;
1089   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090     target_alias=$ac_optarg ;;
1091
1092   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1093     verbose=yes ;;
1094
1095   -version | --version | --versio | --versi | --vers | -V)
1096     ac_init_version=: ;;
1097
1098   -with-* | --with-*)
1099     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1100     # Reject names that are not valid shell variable names.
1101     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1103    { (exit 1); exit 1; }; }
1104     ac_useropt_orig=$ac_useropt
1105     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106     case $ac_user_opts in
1107       *"
1108 "with_$ac_useropt"
1109 "*) ;;
1110       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111          ac_unrecognized_sep=', ';;
1112     esac
1113     eval with_$ac_useropt=\$ac_optarg ;;
1114
1115   -without-* | --without-*)
1116     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117     # Reject names that are not valid shell variable names.
1118     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1120    { (exit 1); exit 1; }; }
1121     ac_useropt_orig=$ac_useropt
1122     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123     case $ac_user_opts in
1124       *"
1125 "with_$ac_useropt"
1126 "*) ;;
1127       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128          ac_unrecognized_sep=', ';;
1129     esac
1130     eval with_$ac_useropt=no ;;
1131
1132   --x)
1133     # Obsolete; use --with-x.
1134     with_x=yes ;;
1135
1136   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137   | --x-incl | --x-inc | --x-in | --x-i)
1138     ac_prev=x_includes ;;
1139   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141     x_includes=$ac_optarg ;;
1142
1143   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145     ac_prev=x_libraries ;;
1146   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148     x_libraries=$ac_optarg ;;
1149
1150   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1151 Try \`$0 --help' for more information." >&2
1152    { (exit 1); exit 1; }; }
1153     ;;
1154
1155   *=*)
1156     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157     # Reject names that are not valid shell variable names.
1158     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1159       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1160    { (exit 1); exit 1; }; }
1161     eval $ac_envvar=\$ac_optarg
1162     export $ac_envvar ;;
1163
1164   *)
1165     # FIXME: should be removed in autoconf 3.0.
1166     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1170     ;;
1171
1172   esac
1173 done
1174
1175 if test -n "$ac_prev"; then
1176   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1178    { (exit 1); exit 1; }; }
1179 fi
1180
1181 if test -n "$ac_unrecognized_opts"; then
1182   case $enable_option_checking in
1183     no) ;;
1184     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1185    { (exit 1); exit 1; }; } ;;
1186     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1187   esac
1188 fi
1189
1190 # Check all directory arguments for consistency.
1191 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192                 datadir sysconfdir sharedstatedir localstatedir includedir \
1193                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194                 libdir localedir mandir
1195 do
1196   eval ac_val=\$$ac_var
1197   # Remove trailing slashes.
1198   case $ac_val in
1199     */ )
1200       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201       eval $ac_var=\$ac_val;;
1202   esac
1203   # Be sure to have absolute directory names.
1204   case $ac_val in
1205     [\\/$]* | ?:[\\/]* )  continue;;
1206     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1207   esac
1208   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1209    { (exit 1); exit 1; }; }
1210 done
1211
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1215 build=$build_alias
1216 host=$host_alias
1217 target=$target_alias
1218
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221   if test "x$build_alias" = x; then
1222     cross_compiling=maybe
1223     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1224     If a cross compiler is detected then cross compile mode will be used." >&2
1225   elif test "x$build_alias" != "x$host_alias"; then
1226     cross_compiling=yes
1227   fi
1228 fi
1229
1230 ac_tool_prefix=
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1232
1233 test "$silent" = yes && exec 6>/dev/null
1234
1235
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1240    { (exit 1); exit 1; }; }
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1243    { (exit 1); exit 1; }; }
1244
1245
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248   ac_srcdir_defaulted=yes
1249   # Try the directory containing this script, then the parent directory.
1250   ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252          X"$as_myself" : 'X\(//\)[^/]' \| \
1253          X"$as_myself" : 'X\(//\)$' \| \
1254          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1257             s//\1/
1258             q
1259           }
1260           /^X\(\/\/\)[^/].*/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\).*/{
1269             s//\1/
1270             q
1271           }
1272           s/.*/./; q'`
1273   srcdir=$ac_confdir
1274   if test ! -r "$srcdir/$ac_unique_file"; then
1275     srcdir=..
1276   fi
1277 else
1278   ac_srcdir_defaulted=no
1279 fi
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1283    { (exit 1); exit 1; }; }
1284 fi
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 ac_abs_confdir=`(
1287         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1288    { (exit 1); exit 1; }; }
1289         pwd)`
1290 # When building in place, set srcdir=.
1291 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292   srcdir=.
1293 fi
1294 # Remove unnecessary trailing slashes from srcdir.
1295 # Double slashes in file names in object file debugging info
1296 # mess up M-x gdb in Emacs.
1297 case $srcdir in
1298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 esac
1300 for ac_var in $ac_precious_vars; do
1301   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302   eval ac_env_${ac_var}_value=\$${ac_var}
1303   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1305 done
1306
1307 #
1308 # Report the --help message.
1309 #
1310 if test "$ac_init_help" = "long"; then
1311   # Omit some internal or obsolete options to make the list less imposing.
1312   # This message is too long to be a string in the A/UX 3.1 sh.
1313   cat <<_ACEOF
1314 \`configure' configures this package to adapt to many kinds of systems.
1315
1316 Usage: $0 [OPTION]... [VAR=VALUE]...
1317
1318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319 VAR=VALUE.  See below for descriptions of some of the useful variables.
1320
1321 Defaults for the options are specified in brackets.
1322
1323 Configuration:
1324   -h, --help              display this help and exit
1325       --help=short        display options specific to this package
1326       --help=recursive    display the short help of all the included packages
1327   -V, --version           display version information and exit
1328   -q, --quiet, --silent   do not print \`checking...' messages
1329       --cache-file=FILE   cache test results in FILE [disabled]
1330   -C, --config-cache      alias for \`--cache-file=config.cache'
1331   -n, --no-create         do not create output files
1332       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1333
1334 Installation directories:
1335   --prefix=PREFIX         install architecture-independent files in PREFIX
1336                           [$ac_default_prefix]
1337   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1338                           [PREFIX]
1339
1340 By default, \`make install' will install all the files in
1341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343 for instance \`--prefix=\$HOME'.
1344
1345 For better control, use the options below.
1346
1347 Fine tuning of the installation directories:
1348   --bindir=DIR            user executables [EPREFIX/bin]
1349   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1350   --libexecdir=DIR        program executables [EPREFIX/libexec]
1351   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1352   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1353   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1354   --libdir=DIR            object code libraries [EPREFIX/lib]
1355   --includedir=DIR        C header files [PREFIX/include]
1356   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1357   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1358   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1359   --infodir=DIR           info documentation [DATAROOTDIR/info]
1360   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1361   --mandir=DIR            man documentation [DATAROOTDIR/man]
1362   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1363   --htmldir=DIR           html documentation [DOCDIR]
1364   --dvidir=DIR            dvi documentation [DOCDIR]
1365   --pdfdir=DIR            pdf documentation [DOCDIR]
1366   --psdir=DIR             ps documentation [DOCDIR]
1367 _ACEOF
1368
1369   cat <<\_ACEOF
1370
1371 Program names:
1372   --program-prefix=PREFIX            prepend PREFIX to installed program names
1373   --program-suffix=SUFFIX            append SUFFIX to installed program names
1374   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1375
1376 System types:
1377   --build=BUILD     configure for building on BUILD [guessed]
1378   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1379   --target=TARGET   configure for building compilers for TARGET [HOST]
1380 _ACEOF
1381 fi
1382
1383 if test -n "$ac_init_help"; then
1384
1385   cat <<\_ACEOF
1386
1387 Optional Features:
1388   --disable-option-checking  ignore unrecognized --enable/--with options
1389   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1390   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1391   --enable-checkmem       turn on ccmalloc debugging
1392   --enable-debug          turn on debugging
1393   --enable-profiling      turn on profiling
1394   --enable-warnings        turn on compiler warnings
1395   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1396   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1397
1398 Some influential environment variables:
1399   CC          C compiler command
1400   CFLAGS      C compiler flags
1401   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1402               nonstandard directory <lib dir>
1403   LIBS        libraries to pass to the linker, e.g. -l<library>
1404   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405               you have headers in a nonstandard directory <include dir>
1406   CXX         C++ compiler command
1407   CXXFLAGS    C++ compiler flags
1408   CPP         C preprocessor
1409
1410 Use these variables to override the choices made by `configure' or to help
1411 it to find libraries and programs with nonstandard names/locations.
1412
1413 _ACEOF
1414 ac_status=$?
1415 fi
1416
1417 if test "$ac_init_help" = "recursive"; then
1418   # If there are subdirs, report their specific --help.
1419   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420     test -d "$ac_dir" ||
1421       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1422       continue
1423     ac_builddir=.
1424
1425 case "$ac_dir" in
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *)
1428   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429   # A ".." for each directory in $ac_dir_suffix.
1430   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431   case $ac_top_builddir_sub in
1432   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1434   esac ;;
1435 esac
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1440
1441 case $srcdir in
1442   .)  # We are building in place.
1443     ac_srcdir=.
1444     ac_top_srcdir=$ac_top_builddir_sub
1445     ac_abs_top_srcdir=$ac_pwd ;;
1446   [\\/]* | ?:[\\/]* )  # Absolute name.
1447     ac_srcdir=$srcdir$ac_dir_suffix;
1448     ac_top_srcdir=$srcdir
1449     ac_abs_top_srcdir=$srcdir ;;
1450   *) # Relative name.
1451     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452     ac_top_srcdir=$ac_top_build_prefix$srcdir
1453     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1454 esac
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1456
1457     cd "$ac_dir" || { ac_status=$?; continue; }
1458     # Check for guested configure.
1459     if test -f "$ac_srcdir/configure.gnu"; then
1460       echo &&
1461       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462     elif test -f "$ac_srcdir/configure"; then
1463       echo &&
1464       $SHELL "$ac_srcdir/configure" --help=recursive
1465     else
1466       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1467     fi || ac_status=$?
1468     cd "$ac_pwd" || { ac_status=$?; break; }
1469   done
1470 fi
1471
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1474   cat <<\_ACEOF
1475 configure
1476 generated by GNU Autoconf 2.63
1477
1478 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1479 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1480 This configure script is free software; the Free Software Foundation
1481 gives unlimited permission to copy, distribute and modify it.
1482 _ACEOF
1483   exit
1484 fi
1485 cat >config.log <<_ACEOF
1486 This file contains any messages produced by compilers while
1487 running configure, to aid debugging if configure makes a mistake.
1488
1489 It was created by $as_me, which was
1490 generated by GNU Autoconf 2.63.  Invocation command line was
1491
1492   $ $0 $@
1493
1494 _ACEOF
1495 exec 5>>config.log
1496 {
1497 cat <<_ASUNAME
1498 ## --------- ##
1499 ## Platform. ##
1500 ## --------- ##
1501
1502 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1503 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1504 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1505 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1506 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1507
1508 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1509 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1510
1511 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1512 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1513 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1514 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1515 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1516 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1517 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1518
1519 _ASUNAME
1520
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522 for as_dir in $PATH
1523 do
1524   IFS=$as_save_IFS
1525   test -z "$as_dir" && as_dir=.
1526   $as_echo "PATH: $as_dir"
1527 done
1528 IFS=$as_save_IFS
1529
1530 } >&5
1531
1532 cat >&5 <<_ACEOF
1533
1534
1535 ## ----------- ##
1536 ## Core tests. ##
1537 ## ----------- ##
1538
1539 _ACEOF
1540
1541
1542 # Keep a trace of the command line.
1543 # Strip out --no-create and --no-recursion so they do not pile up.
1544 # Strip out --silent because we don't want to record it for future runs.
1545 # Also quote any args containing shell meta-characters.
1546 # Make two passes to allow for proper duplicate-argument suppression.
1547 ac_configure_args=
1548 ac_configure_args0=
1549 ac_configure_args1=
1550 ac_must_keep_next=false
1551 for ac_pass in 1 2
1552 do
1553   for ac_arg
1554   do
1555     case $ac_arg in
1556     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1557     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1558     | -silent | --silent | --silen | --sile | --sil)
1559       continue ;;
1560     *\'*)
1561       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1562     esac
1563     case $ac_pass in
1564     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1565     2)
1566       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1567       if test $ac_must_keep_next = true; then
1568         ac_must_keep_next=false # Got value, back to normal.
1569       else
1570         case $ac_arg in
1571           *=* | --config-cache | -C | -disable-* | --disable-* \
1572           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1573           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1574           | -with-* | --with-* | -without-* | --without-* | --x)
1575             case "$ac_configure_args0 " in
1576               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1577             esac
1578             ;;
1579           -* ) ac_must_keep_next=true ;;
1580         esac
1581       fi
1582       ac_configure_args="$ac_configure_args '$ac_arg'"
1583       ;;
1584     esac
1585   done
1586 done
1587 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1588 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1589
1590 # When interrupted or exit'd, cleanup temporary files, and complete
1591 # config.log.  We remove comments because anyway the quotes in there
1592 # would cause problems or look ugly.
1593 # WARNING: Use '\'' to represent an apostrophe within the trap.
1594 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1595 trap 'exit_status=$?
1596   # Save into config.log some information that might help in debugging.
1597   {
1598     echo
1599
1600     cat <<\_ASBOX
1601 ## ---------------- ##
1602 ## Cache variables. ##
1603 ## ---------------- ##
1604 _ASBOX
1605     echo
1606     # The following way of writing the cache mishandles newlines in values,
1607 (
1608   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1609     eval ac_val=\$$ac_var
1610     case $ac_val in #(
1611     *${as_nl}*)
1612       case $ac_var in #(
1613       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1614 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1615       esac
1616       case $ac_var in #(
1617       _ | IFS | as_nl) ;; #(
1618       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1619       *) $as_unset $ac_var ;;
1620       esac ;;
1621     esac
1622   done
1623   (set) 2>&1 |
1624     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625     *${as_nl}ac_space=\ *)
1626       sed -n \
1627         "s/'\''/'\''\\\\'\'''\''/g;
1628           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1629       ;; #(
1630     *)
1631       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1632       ;;
1633     esac |
1634     sort
1635 )
1636     echo
1637
1638     cat <<\_ASBOX
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1642 _ASBOX
1643     echo
1644     for ac_var in $ac_subst_vars
1645     do
1646       eval ac_val=\$$ac_var
1647       case $ac_val in
1648       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649       esac
1650       $as_echo "$ac_var='\''$ac_val'\''"
1651     done | sort
1652     echo
1653
1654     if test -n "$ac_subst_files"; then
1655       cat <<\_ASBOX
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1659 _ASBOX
1660       echo
1661       for ac_var in $ac_subst_files
1662       do
1663         eval ac_val=\$$ac_var
1664         case $ac_val in
1665         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1666         esac
1667         $as_echo "$ac_var='\''$ac_val'\''"
1668       done | sort
1669       echo
1670     fi
1671
1672     if test -s confdefs.h; then
1673       cat <<\_ASBOX
1674 ## ----------- ##
1675 ## confdefs.h. ##
1676 ## ----------- ##
1677 _ASBOX
1678       echo
1679       cat confdefs.h
1680       echo
1681     fi
1682     test "$ac_signal" != 0 &&
1683       $as_echo "$as_me: caught signal $ac_signal"
1684     $as_echo "$as_me: exit $exit_status"
1685   } >&5
1686   rm -f core *.core core.conftest.* &&
1687     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1688     exit $exit_status
1689 ' 0
1690 for ac_signal in 1 2 13 15; do
1691   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1692 done
1693 ac_signal=0
1694
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1697
1698 # Predefined preprocessor variables.
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1702 _ACEOF
1703
1704
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1707 _ACEOF
1708
1709
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1712 _ACEOF
1713
1714
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1717 _ACEOF
1718
1719
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1722 _ACEOF
1723
1724
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer an explicitly selected file to automatically selected ones.
1727 ac_site_file1=NONE
1728 ac_site_file2=NONE
1729 if test -n "$CONFIG_SITE"; then
1730   ac_site_file1=$CONFIG_SITE
1731 elif test "x$prefix" != xNONE; then
1732   ac_site_file1=$prefix/share/config.site
1733   ac_site_file2=$prefix/etc/config.site
1734 else
1735   ac_site_file1=$ac_default_prefix/share/config.site
1736   ac_site_file2=$ac_default_prefix/etc/config.site
1737 fi
1738 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1739 do
1740   test "x$ac_site_file" = xNONE && continue
1741   if test -r "$ac_site_file"; then
1742     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1743 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1744     sed 's/^/| /' "$ac_site_file" >&5
1745     . "$ac_site_file"
1746   fi
1747 done
1748
1749 if test -r "$cache_file"; then
1750   # Some versions of bash will fail to source /dev/null (special
1751   # files actually), so we avoid doing that.
1752   if test -f "$cache_file"; then
1753     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1754 $as_echo "$as_me: loading cache $cache_file" >&6;}
1755     case $cache_file in
1756       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1757       *)                      . "./$cache_file";;
1758     esac
1759   fi
1760 else
1761   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1762 $as_echo "$as_me: creating cache $cache_file" >&6;}
1763   >$cache_file
1764 fi
1765
1766 # Check that the precious variables saved in the cache have kept the same
1767 # value.
1768 ac_cache_corrupted=false
1769 for ac_var in $ac_precious_vars; do
1770   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1771   eval ac_new_set=\$ac_env_${ac_var}_set
1772   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1773   eval ac_new_val=\$ac_env_${ac_var}_value
1774   case $ac_old_set,$ac_new_set in
1775     set,)
1776       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1777 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1778       ac_cache_corrupted=: ;;
1779     ,set)
1780       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1781 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1782       ac_cache_corrupted=: ;;
1783     ,);;
1784     *)
1785       if test "x$ac_old_val" != "x$ac_new_val"; then
1786         # differences in whitespace do not lead to failure.
1787         ac_old_val_w=`echo x $ac_old_val`
1788         ac_new_val_w=`echo x $ac_new_val`
1789         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1790           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1791 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1792           ac_cache_corrupted=:
1793         else
1794           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1795 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1796           eval $ac_var=\$ac_old_val
1797         fi
1798         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1799 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1800         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1801 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1802       fi;;
1803   esac
1804   # Pass precious variables to config.status.
1805   if test "$ac_new_set" = set; then
1806     case $ac_new_val in
1807     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1808     *) ac_arg=$ac_var=$ac_new_val ;;
1809     esac
1810     case " $ac_configure_args " in
1811       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1812       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1813     esac
1814   fi
1815 done
1816 if $ac_cache_corrupted; then
1817   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1819   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1820 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1821   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1822 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1823    { (exit 1); exit 1; }; }
1824 fi
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842 ac_ext=c
1843 ac_cpp='$CPP $CPPFLAGS'
1844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1847
1848
1849
1850
1851 # Check whether --enable-checkmem was given.
1852 if test "${enable_checkmem+set}" = set; then
1853   enableval=$enable_checkmem; CHECKMEM=true
1854 fi
1855
1856 # Check whether --enable-debug was given.
1857 if test "${enable_debug+set}" = set; then
1858   enableval=$enable_debug; DEBUG=true
1859 fi
1860
1861 # Check whether --enable-profiling was given.
1862 if test "${enable_profiling+set}" = set; then
1863   enableval=$enable_profiling; PROFILING=true
1864 fi
1865
1866 # Check whether --enable-warnings was given.
1867 if test "${enable_warnings+set}" = set; then
1868   enableval=$enable_warnings; ENABLE_WARNINGS=true
1869 fi
1870
1871 # Check whether --enable-optimizations was given.
1872 if test "${enable_optimizations+set}" = set; then
1873   enableval=$enable_optimizations; OPTIMIZE=true
1874 fi
1875
1876 # Check whether --enable-lame was given.
1877 if test "${enable_lame+set}" = set; then
1878   enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1879     DISABLE_LAME=yes
1880 fi
1881 else
1882   DISABLE_LAME=
1883 fi
1884
1885
1886 PACKAGE=swftools
1887 VERSION=2009-08-12-1514
1888
1889
1890 # ------------------------------------------------------------------
1891
1892 if test "x${srcdir}" != "x."; then
1893     echo "--srcdir is not supported"
1894     exit 1
1895 fi
1896
1897 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1898 if test "x$ENABLE_WARNINGS" '!=' "x";then
1899     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1900 fi
1901
1902 if test "x$CHECKMEM" '!=' "x";then
1903     DEBUG=yes
1904 fi
1905 if test "x$PROFILING" '!=' "x";then
1906     DEBUG=yes
1907 fi
1908 if test "x$DEBUG" '!=' "x";then
1909     if test "x$PROFILING" = "x";then
1910         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1911         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1912         LDFLAGS="-g $LIBS"
1913     else
1914         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1915         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1916         LDFLAGS="-g -pg $LIBS"
1917     fi
1918 else if test "x$OPTIMIZE" '!=' "x"; then
1919     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1920     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1921 else
1922     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1923     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1924 fi
1925 fi
1926
1927 CFLAGS="-fPIC $CFLAGS"
1928 CXXFLAGS="-fPIC $CFLAGS"
1929
1930 #OLDGCC=1
1931 #if test "x$OLDGCC" '!=' "x";then
1932 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1933 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1934 #     CFLAGS="$CFLAGS -ansi -pendantic"
1935 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1936 #fi
1937
1938 export PACKAGE VERSION CFLAGS CXXFLAGS
1939
1940
1941 ac_aux_dir=
1942 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1943   if test -f "$ac_dir/install-sh"; then
1944     ac_aux_dir=$ac_dir
1945     ac_install_sh="$ac_aux_dir/install-sh -c"
1946     break
1947   elif test -f "$ac_dir/install.sh"; then
1948     ac_aux_dir=$ac_dir
1949     ac_install_sh="$ac_aux_dir/install.sh -c"
1950     break
1951   elif test -f "$ac_dir/shtool"; then
1952     ac_aux_dir=$ac_dir
1953     ac_install_sh="$ac_aux_dir/shtool install -c"
1954     break
1955   fi
1956 done
1957 if test -z "$ac_aux_dir"; then
1958   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1959 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1960    { (exit 1); exit 1; }; }
1961 fi
1962
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1970
1971
1972 # Make sure we can run config.sub.
1973 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1974   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1975 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1976    { (exit 1); exit 1; }; }
1977
1978 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1979 $as_echo_n "checking build system type... " >&6; }
1980 if test "${ac_cv_build+set}" = set; then
1981   $as_echo_n "(cached) " >&6
1982 else
1983   ac_build_alias=$build_alias
1984 test "x$ac_build_alias" = x &&
1985   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1986 test "x$ac_build_alias" = x &&
1987   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1988 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1989    { (exit 1); exit 1; }; }
1990 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1991   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1992 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1993    { (exit 1); exit 1; }; }
1994
1995 fi
1996 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1997 $as_echo "$ac_cv_build" >&6; }
1998 case $ac_cv_build in
1999 *-*-*) ;;
2000 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2001 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2002    { (exit 1); exit 1; }; };;
2003 esac
2004 build=$ac_cv_build
2005 ac_save_IFS=$IFS; IFS='-'
2006 set x $ac_cv_build
2007 shift
2008 build_cpu=$1
2009 build_vendor=$2
2010 shift; shift
2011 # Remember, the first character of IFS is used to create $*,
2012 # except with old shells:
2013 build_os=$*
2014 IFS=$ac_save_IFS
2015 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2016
2017
2018 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2019 $as_echo_n "checking host system type... " >&6; }
2020 if test "${ac_cv_host+set}" = set; then
2021   $as_echo_n "(cached) " >&6
2022 else
2023   if test "x$host_alias" = x; then
2024   ac_cv_host=$ac_cv_build
2025 else
2026   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2027     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2028 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2029    { (exit 1); exit 1; }; }
2030 fi
2031
2032 fi
2033 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2034 $as_echo "$ac_cv_host" >&6; }
2035 case $ac_cv_host in
2036 *-*-*) ;;
2037 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2038 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2039    { (exit 1); exit 1; }; };;
2040 esac
2041 host=$ac_cv_host
2042 ac_save_IFS=$IFS; IFS='-'
2043 set x $ac_cv_host
2044 shift
2045 host_cpu=$1
2046 host_vendor=$2
2047 shift; shift
2048 # Remember, the first character of IFS is used to create $*,
2049 # except with old shells:
2050 host_os=$*
2051 IFS=$ac_save_IFS
2052 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2053
2054
2055
2056 SHARED="-shared"
2057 MACOSX=
2058 case $host_os in
2059     *darwin* )
2060         MACOSX=yes
2061         CFLAGS="$CFLAGS"
2062         CXXFLAGS="$CXXFLAGS -fno-rtti"
2063         SHARED="-bundle"
2064         if test -d /opt/local/include && test -d /opt/local/lib; then
2065             CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2066             LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2067         fi
2068         # Use fink packages if available.
2069         #if test -d /sw/include && test -d /sw/lib; then
2070         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
2071         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
2072         #fi
2073         ;;
2074 esac
2075
2076
2077
2078  ac_ext=c
2079 ac_cpp='$CPP $CPPFLAGS'
2080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2083 if test -n "$ac_tool_prefix"; then
2084   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2085 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2086 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 $as_echo_n "checking for $ac_word... " >&6; }
2088 if test "${ac_cv_prog_CC+set}" = set; then
2089   $as_echo_n "(cached) " >&6
2090 else
2091   if test -n "$CC"; then
2092   ac_cv_prog_CC="$CC" # Let the user override the test.
2093 else
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2095 for as_dir in $PATH
2096 do
2097   IFS=$as_save_IFS
2098   test -z "$as_dir" && as_dir=.
2099   for ac_exec_ext in '' $ac_executable_extensions; do
2100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2101     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2102     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2103     break 2
2104   fi
2105 done
2106 done
2107 IFS=$as_save_IFS
2108
2109 fi
2110 fi
2111 CC=$ac_cv_prog_CC
2112 if test -n "$CC"; then
2113   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2114 $as_echo "$CC" >&6; }
2115 else
2116   { $as_echo "$as_me:$LINENO: result: no" >&5
2117 $as_echo "no" >&6; }
2118 fi
2119
2120
2121 fi
2122 if test -z "$ac_cv_prog_CC"; then
2123   ac_ct_CC=$CC
2124   # Extract the first word of "gcc", so it can be a program name with args.
2125 set dummy gcc; ac_word=$2
2126 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 $as_echo_n "checking for $ac_word... " >&6; }
2128 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2129   $as_echo_n "(cached) " >&6
2130 else
2131   if test -n "$ac_ct_CC"; then
2132   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2133 else
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135 for as_dir in $PATH
2136 do
2137   IFS=$as_save_IFS
2138   test -z "$as_dir" && as_dir=.
2139   for ac_exec_ext in '' $ac_executable_extensions; do
2140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2141     ac_cv_prog_ac_ct_CC="gcc"
2142     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143     break 2
2144   fi
2145 done
2146 done
2147 IFS=$as_save_IFS
2148
2149 fi
2150 fi
2151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2152 if test -n "$ac_ct_CC"; then
2153   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2154 $as_echo "$ac_ct_CC" >&6; }
2155 else
2156   { $as_echo "$as_me:$LINENO: result: no" >&5
2157 $as_echo "no" >&6; }
2158 fi
2159
2160   if test "x$ac_ct_CC" = x; then
2161     CC=""
2162   else
2163     case $cross_compiling:$ac_tool_warned in
2164 yes:)
2165 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2167 ac_tool_warned=yes ;;
2168 esac
2169     CC=$ac_ct_CC
2170   fi
2171 else
2172   CC="$ac_cv_prog_CC"
2173 fi
2174
2175 if test -z "$CC"; then
2176           if test -n "$ac_tool_prefix"; then
2177     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2178 set dummy ${ac_tool_prefix}cc; ac_word=$2
2179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 $as_echo_n "checking for $ac_word... " >&6; }
2181 if test "${ac_cv_prog_CC+set}" = set; then
2182   $as_echo_n "(cached) " >&6
2183 else
2184   if test -n "$CC"; then
2185   ac_cv_prog_CC="$CC" # Let the user override the test.
2186 else
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2188 for as_dir in $PATH
2189 do
2190   IFS=$as_save_IFS
2191   test -z "$as_dir" && as_dir=.
2192   for ac_exec_ext in '' $ac_executable_extensions; do
2193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194     ac_cv_prog_CC="${ac_tool_prefix}cc"
2195     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196     break 2
2197   fi
2198 done
2199 done
2200 IFS=$as_save_IFS
2201
2202 fi
2203 fi
2204 CC=$ac_cv_prog_CC
2205 if test -n "$CC"; then
2206   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2207 $as_echo "$CC" >&6; }
2208 else
2209   { $as_echo "$as_me:$LINENO: result: no" >&5
2210 $as_echo "no" >&6; }
2211 fi
2212
2213
2214   fi
2215 fi
2216 if test -z "$CC"; then
2217   # Extract the first word of "cc", so it can be a program name with args.
2218 set dummy cc; ac_word=$2
2219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 $as_echo_n "checking for $ac_word... " >&6; }
2221 if test "${ac_cv_prog_CC+set}" = set; then
2222   $as_echo_n "(cached) " >&6
2223 else
2224   if test -n "$CC"; then
2225   ac_cv_prog_CC="$CC" # Let the user override the test.
2226 else
2227   ac_prog_rejected=no
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2229 for as_dir in $PATH
2230 do
2231   IFS=$as_save_IFS
2232   test -z "$as_dir" && as_dir=.
2233   for ac_exec_ext in '' $ac_executable_extensions; do
2234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2235     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2236        ac_prog_rejected=yes
2237        continue
2238      fi
2239     ac_cv_prog_CC="cc"
2240     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2241     break 2
2242   fi
2243 done
2244 done
2245 IFS=$as_save_IFS
2246
2247 if test $ac_prog_rejected = yes; then
2248   # We found a bogon in the path, so make sure we never use it.
2249   set dummy $ac_cv_prog_CC
2250   shift
2251   if test $# != 0; then
2252     # We chose a different compiler from the bogus one.
2253     # However, it has the same basename, so the bogon will be chosen
2254     # first if we set CC to just the basename; use the full file name.
2255     shift
2256     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2257   fi
2258 fi
2259 fi
2260 fi
2261 CC=$ac_cv_prog_CC
2262 if test -n "$CC"; then
2263   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2264 $as_echo "$CC" >&6; }
2265 else
2266   { $as_echo "$as_me:$LINENO: result: no" >&5
2267 $as_echo "no" >&6; }
2268 fi
2269
2270
2271 fi
2272 if test -z "$CC"; then
2273   if test -n "$ac_tool_prefix"; then
2274   for ac_prog in cl.exe
2275   do
2276     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 $as_echo_n "checking for $ac_word... " >&6; }
2280 if test "${ac_cv_prog_CC+set}" = set; then
2281   $as_echo_n "(cached) " >&6
2282 else
2283   if test -n "$CC"; then
2284   ac_cv_prog_CC="$CC" # Let the user override the test.
2285 else
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287 for as_dir in $PATH
2288 do
2289   IFS=$as_save_IFS
2290   test -z "$as_dir" && as_dir=.
2291   for ac_exec_ext in '' $ac_executable_extensions; do
2292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2294     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2295     break 2
2296   fi
2297 done
2298 done
2299 IFS=$as_save_IFS
2300
2301 fi
2302 fi
2303 CC=$ac_cv_prog_CC
2304 if test -n "$CC"; then
2305   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2306 $as_echo "$CC" >&6; }
2307 else
2308   { $as_echo "$as_me:$LINENO: result: no" >&5
2309 $as_echo "no" >&6; }
2310 fi
2311
2312
2313     test -n "$CC" && break
2314   done
2315 fi
2316 if test -z "$CC"; then
2317   ac_ct_CC=$CC
2318   for ac_prog in cl.exe
2319 do
2320   # Extract the first word of "$ac_prog", so it can be a program name with args.
2321 set dummy $ac_prog; ac_word=$2
2322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 $as_echo_n "checking for $ac_word... " >&6; }
2324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2325   $as_echo_n "(cached) " >&6
2326 else
2327   if test -n "$ac_ct_CC"; then
2328   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2329 else
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 for as_dir in $PATH
2332 do
2333   IFS=$as_save_IFS
2334   test -z "$as_dir" && as_dir=.
2335   for ac_exec_ext in '' $ac_executable_extensions; do
2336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337     ac_cv_prog_ac_ct_CC="$ac_prog"
2338     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2339     break 2
2340   fi
2341 done
2342 done
2343 IFS=$as_save_IFS
2344
2345 fi
2346 fi
2347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2348 if test -n "$ac_ct_CC"; then
2349   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2350 $as_echo "$ac_ct_CC" >&6; }
2351 else
2352   { $as_echo "$as_me:$LINENO: result: no" >&5
2353 $as_echo "no" >&6; }
2354 fi
2355
2356
2357   test -n "$ac_ct_CC" && break
2358 done
2359
2360   if test "x$ac_ct_CC" = x; then
2361     CC=""
2362   else
2363     case $cross_compiling:$ac_tool_warned in
2364 yes:)
2365 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2367 ac_tool_warned=yes ;;
2368 esac
2369     CC=$ac_ct_CC
2370   fi
2371 fi
2372
2373 fi
2374
2375
2376 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2379 See \`config.log' for more details." >&5
2380 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2381 See \`config.log' for more details." >&2;}
2382    { (exit 1); exit 1; }; }; }
2383
2384 # Provide some information about the compiler.
2385 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2386 set X $ac_compile
2387 ac_compiler=$2
2388 { (ac_try="$ac_compiler --version >&5"
2389 case "(($ac_try" in
2390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391   *) ac_try_echo=$ac_try;;
2392 esac
2393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2394 $as_echo "$ac_try_echo") >&5
2395   (eval "$ac_compiler --version >&5") 2>&5
2396   ac_status=$?
2397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398   (exit $ac_status); }
2399 { (ac_try="$ac_compiler -v >&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 -v >&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
2422 cat >conftest.$ac_ext <<_ACEOF
2423 /* confdefs.h.  */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h.  */
2428
2429 int
2430 main ()
2431 {
2432
2433   ;
2434   return 0;
2435 }
2436 _ACEOF
2437 ac_clean_files_save=$ac_clean_files
2438 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2439 # Try to create an executable without -o first, disregard a.out.
2440 # It will help us diagnose broken compilers, and finding out an intuition
2441 # of exeext.
2442 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2443 $as_echo_n "checking for C compiler default output file name... " >&6; }
2444 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2445
2446 # The possible output files:
2447 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2448
2449 ac_rmfiles=
2450 for ac_file in $ac_files
2451 do
2452   case $ac_file in
2453     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2454     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2455   esac
2456 done
2457 rm -f $ac_rmfiles
2458
2459 if { (ac_try="$ac_link_default"
2460 case "(($ac_try" in
2461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462   *) ac_try_echo=$ac_try;;
2463 esac
2464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2465 $as_echo "$ac_try_echo") >&5
2466   (eval "$ac_link_default") 2>&5
2467   ac_status=$?
2468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469   (exit $ac_status); }; then
2470   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2471 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2472 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2473 # so that the user can short-circuit this test for compilers unknown to
2474 # Autoconf.
2475 for ac_file in $ac_files ''
2476 do
2477   test -f "$ac_file" || continue
2478   case $ac_file in
2479     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2480         ;;
2481     [ab].out )
2482         # We found the default executable, but exeext='' is most
2483         # certainly right.
2484         break;;
2485     *.* )
2486         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2487         then :; else
2488            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2489         fi
2490         # We set ac_cv_exeext here because the later test for it is not
2491         # safe: cross compilers may not add the suffix if given an `-o'
2492         # argument, so we may need to know it at that point already.
2493         # Even if this section looks crufty: it has the advantage of
2494         # actually working.
2495         break;;
2496     * )
2497         break;;
2498   esac
2499 done
2500 test "$ac_cv_exeext" = no && ac_cv_exeext=
2501
2502 else
2503   ac_file=''
2504 fi
2505
2506 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2507 $as_echo "$ac_file" >&6; }
2508 if test -z "$ac_file"; then
2509   $as_echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2511
2512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2514 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2515 See \`config.log' for more details." >&5
2516 $as_echo "$as_me: error: C compiler cannot create executables
2517 See \`config.log' for more details." >&2;}
2518    { (exit 77); exit 77; }; }; }
2519 fi
2520
2521 ac_exeext=$ac_cv_exeext
2522
2523 # Check that the compiler produces executables we can run.  If not, either
2524 # the compiler is broken, or we cross compile.
2525 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2526 $as_echo_n "checking whether the C compiler works... " >&6; }
2527 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2528 # If not cross compiling, check that we can run a simple program.
2529 if test "$cross_compiling" != yes; then
2530   if { ac_try='./$ac_file'
2531   { (case "(($ac_try" in
2532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533   *) ac_try_echo=$ac_try;;
2534 esac
2535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2536 $as_echo "$ac_try_echo") >&5
2537   (eval "$ac_try") 2>&5
2538   ac_status=$?
2539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540   (exit $ac_status); }; }; then
2541     cross_compiling=no
2542   else
2543     if test "$cross_compiling" = maybe; then
2544         cross_compiling=yes
2545     else
2546         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2548 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2549 If you meant to cross compile, use \`--host'.
2550 See \`config.log' for more details." >&5
2551 $as_echo "$as_me: error: cannot run C compiled programs.
2552 If you meant to cross compile, use \`--host'.
2553 See \`config.log' for more details." >&2;}
2554    { (exit 1); exit 1; }; }; }
2555     fi
2556   fi
2557 fi
2558 { $as_echo "$as_me:$LINENO: result: yes" >&5
2559 $as_echo "yes" >&6; }
2560
2561 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2562 ac_clean_files=$ac_clean_files_save
2563 # Check that the compiler produces executables we can run.  If not, either
2564 # the compiler is broken, or we cross compile.
2565 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2566 $as_echo_n "checking whether we are cross compiling... " >&6; }
2567 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2568 $as_echo "$cross_compiling" >&6; }
2569
2570 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2571 $as_echo_n "checking for suffix of executables... " >&6; }
2572 if { (ac_try="$ac_link"
2573 case "(($ac_try" in
2574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575   *) ac_try_echo=$ac_try;;
2576 esac
2577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2578 $as_echo "$ac_try_echo") >&5
2579   (eval "$ac_link") 2>&5
2580   ac_status=$?
2581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582   (exit $ac_status); }; then
2583   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2584 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2585 # work properly (i.e., refer to `conftest.exe'), while it won't with
2586 # `rm'.
2587 for ac_file in conftest.exe conftest conftest.*; do
2588   test -f "$ac_file" || continue
2589   case $ac_file in
2590     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2591     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2592           break;;
2593     * ) break;;
2594   esac
2595 done
2596 else
2597   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2599 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2600 See \`config.log' for more details." >&5
2601 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2602 See \`config.log' for more details." >&2;}
2603    { (exit 1); exit 1; }; }; }
2604 fi
2605
2606 rm -f conftest$ac_cv_exeext
2607 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2608 $as_echo "$ac_cv_exeext" >&6; }
2609
2610 rm -f conftest.$ac_ext
2611 EXEEXT=$ac_cv_exeext
2612 ac_exeext=$EXEEXT
2613 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2614 $as_echo_n "checking for suffix of object files... " >&6; }
2615 if test "${ac_cv_objext+set}" = set; then
2616   $as_echo_n "(cached) " >&6
2617 else
2618   cat >conftest.$ac_ext <<_ACEOF
2619 /* confdefs.h.  */
2620 _ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h.  */
2624
2625 int
2626 main ()
2627 {
2628
2629   ;
2630   return 0;
2631 }
2632 _ACEOF
2633 rm -f conftest.o conftest.obj
2634 if { (ac_try="$ac_compile"
2635 case "(($ac_try" in
2636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637   *) ac_try_echo=$ac_try;;
2638 esac
2639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2640 $as_echo "$ac_try_echo") >&5
2641   (eval "$ac_compile") 2>&5
2642   ac_status=$?
2643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644   (exit $ac_status); }; then
2645   for ac_file in conftest.o conftest.obj conftest.*; do
2646   test -f "$ac_file" || continue;
2647   case $ac_file in
2648     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2649     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2650        break;;
2651   esac
2652 done
2653 else
2654   $as_echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2656
2657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2660 See \`config.log' for more details." >&5
2661 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log' for more details." >&2;}
2663    { (exit 1); exit 1; }; }; }
2664 fi
2665
2666 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2667 fi
2668 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2669 $as_echo "$ac_cv_objext" >&6; }
2670 OBJEXT=$ac_cv_objext
2671 ac_objext=$OBJEXT
2672 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2673 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2674 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2675   $as_echo_n "(cached) " >&6
2676 else
2677   cat >conftest.$ac_ext <<_ACEOF
2678 /* confdefs.h.  */
2679 _ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h.  */
2683
2684 int
2685 main ()
2686 {
2687 #ifndef __GNUC__
2688        choke me
2689 #endif
2690
2691   ;
2692   return 0;
2693 }
2694 _ACEOF
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2697 case "(($ac_try" in
2698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699   *) ac_try_echo=$ac_try;;
2700 esac
2701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2702 $as_echo "$ac_try_echo") >&5
2703   (eval "$ac_compile") 2>conftest.er1
2704   ac_status=$?
2705   grep -v '^ *+' conftest.er1 >conftest.err
2706   rm -f conftest.er1
2707   cat conftest.err >&5
2708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709   (exit $ac_status); } && {
2710          test -z "$ac_c_werror_flag" ||
2711          test ! -s conftest.err
2712        } && test -s conftest.$ac_objext; then
2713   ac_compiler_gnu=yes
2714 else
2715   $as_echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2717
2718         ac_compiler_gnu=no
2719 fi
2720
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2723
2724 fi
2725 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2726 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2727 if test $ac_compiler_gnu = yes; then
2728   GCC=yes
2729 else
2730   GCC=
2731 fi
2732 ac_test_CFLAGS=${CFLAGS+set}
2733 ac_save_CFLAGS=$CFLAGS
2734 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2735 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2736 if test "${ac_cv_prog_cc_g+set}" = set; then
2737   $as_echo_n "(cached) " >&6
2738 else
2739   ac_save_c_werror_flag=$ac_c_werror_flag
2740    ac_c_werror_flag=yes
2741    ac_cv_prog_cc_g=no
2742    CFLAGS="-g"
2743    cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h.  */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h.  */
2749
2750 int
2751 main ()
2752 {
2753
2754   ;
2755   return 0;
2756 }
2757 _ACEOF
2758 rm -f conftest.$ac_objext
2759 if { (ac_try="$ac_compile"
2760 case "(($ac_try" in
2761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762   *) ac_try_echo=$ac_try;;
2763 esac
2764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2765 $as_echo "$ac_try_echo") >&5
2766   (eval "$ac_compile") 2>conftest.er1
2767   ac_status=$?
2768   grep -v '^ *+' conftest.er1 >conftest.err
2769   rm -f conftest.er1
2770   cat conftest.err >&5
2771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); } && {
2773          test -z "$ac_c_werror_flag" ||
2774          test ! -s conftest.err
2775        } && test -s conftest.$ac_objext; then
2776   ac_cv_prog_cc_g=yes
2777 else
2778   $as_echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2780
2781         CFLAGS=""
2782       cat >conftest.$ac_ext <<_ACEOF
2783 /* confdefs.h.  */
2784 _ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h.  */
2788
2789 int
2790 main ()
2791 {
2792
2793   ;
2794   return 0;
2795 }
2796 _ACEOF
2797 rm -f conftest.$ac_objext
2798 if { (ac_try="$ac_compile"
2799 case "(($ac_try" in
2800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801   *) ac_try_echo=$ac_try;;
2802 esac
2803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2804 $as_echo "$ac_try_echo") >&5
2805   (eval "$ac_compile") 2>conftest.er1
2806   ac_status=$?
2807   grep -v '^ *+' conftest.er1 >conftest.err
2808   rm -f conftest.er1
2809   cat conftest.err >&5
2810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811   (exit $ac_status); } && {
2812          test -z "$ac_c_werror_flag" ||
2813          test ! -s conftest.err
2814        } && test -s conftest.$ac_objext; then
2815   :
2816 else
2817   $as_echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820         ac_c_werror_flag=$ac_save_c_werror_flag
2821          CFLAGS="-g"
2822          cat >conftest.$ac_ext <<_ACEOF
2823 /* confdefs.h.  */
2824 _ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h.  */
2828
2829 int
2830 main ()
2831 {
2832
2833   ;
2834   return 0;
2835 }
2836 _ACEOF
2837 rm -f conftest.$ac_objext
2838 if { (ac_try="$ac_compile"
2839 case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2844 $as_echo "$ac_try_echo") >&5
2845   (eval "$ac_compile") 2>conftest.er1
2846   ac_status=$?
2847   grep -v '^ *+' conftest.er1 >conftest.err
2848   rm -f conftest.er1
2849   cat conftest.err >&5
2850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851   (exit $ac_status); } && {
2852          test -z "$ac_c_werror_flag" ||
2853          test ! -s conftest.err
2854        } && test -s conftest.$ac_objext; then
2855   ac_cv_prog_cc_g=yes
2856 else
2857   $as_echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2859
2860
2861 fi
2862
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 fi
2865
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 fi
2868
2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870    ac_c_werror_flag=$ac_save_c_werror_flag
2871 fi
2872 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2873 $as_echo "$ac_cv_prog_cc_g" >&6; }
2874 if test "$ac_test_CFLAGS" = set; then
2875   CFLAGS=$ac_save_CFLAGS
2876 elif test $ac_cv_prog_cc_g = yes; then
2877   if test "$GCC" = yes; then
2878     CFLAGS="-g -O2"
2879   else
2880     CFLAGS="-g"
2881   fi
2882 else
2883   if test "$GCC" = yes; then
2884     CFLAGS="-O2"
2885   else
2886     CFLAGS=
2887   fi
2888 fi
2889 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2891 if test "${ac_cv_prog_cc_c89+set}" = set; then
2892   $as_echo_n "(cached) " >&6
2893 else
2894   ac_cv_prog_cc_c89=no
2895 ac_save_CC=$CC
2896 cat >conftest.$ac_ext <<_ACEOF
2897 /* confdefs.h.  */
2898 _ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h.  */
2902 #include <stdarg.h>
2903 #include <stdio.h>
2904 #include <sys/types.h>
2905 #include <sys/stat.h>
2906 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2907 struct buf { int x; };
2908 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2909 static char *e (p, i)
2910      char **p;
2911      int i;
2912 {
2913   return p[i];
2914 }
2915 static char *f (char * (*g) (char **, int), char **p, ...)
2916 {
2917   char *s;
2918   va_list v;
2919   va_start (v,p);
2920   s = g (p, va_arg (v,int));
2921   va_end (v);
2922   return s;
2923 }
2924
2925 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2926    function prototypes and stuff, but not '\xHH' hex character constants.
2927    These don't provoke an error unfortunately, instead are silently treated
2928    as 'x'.  The following induces an error, until -std is added to get
2929    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2930    array size at least.  It's necessary to write '\x00'==0 to get something
2931    that's true only with -std.  */
2932 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2933
2934 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2935    inside strings and character constants.  */
2936 #define FOO(x) 'x'
2937 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2938
2939 int test (int i, double x);
2940 struct s1 {int (*f) (int a);};
2941 struct s2 {int (*f) (double a);};
2942 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2943 int argc;
2944 char **argv;
2945 int
2946 main ()
2947 {
2948 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2949   ;
2950   return 0;
2951 }
2952 _ACEOF
2953 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2954         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2955 do
2956   CC="$ac_save_CC $ac_arg"
2957   rm -f conftest.$ac_objext
2958 if { (ac_try="$ac_compile"
2959 case "(($ac_try" in
2960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961   *) ac_try_echo=$ac_try;;
2962 esac
2963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2964 $as_echo "$ac_try_echo") >&5
2965   (eval "$ac_compile") 2>conftest.er1
2966   ac_status=$?
2967   grep -v '^ *+' conftest.er1 >conftest.err
2968   rm -f conftest.er1
2969   cat conftest.err >&5
2970   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971   (exit $ac_status); } && {
2972          test -z "$ac_c_werror_flag" ||
2973          test ! -s conftest.err
2974        } && test -s conftest.$ac_objext; then
2975   ac_cv_prog_cc_c89=$ac_arg
2976 else
2977   $as_echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980
2981 fi
2982
2983 rm -f core conftest.err conftest.$ac_objext
2984   test "x$ac_cv_prog_cc_c89" != "xno" && break
2985 done
2986 rm -f conftest.$ac_ext
2987 CC=$ac_save_CC
2988
2989 fi
2990 # AC_CACHE_VAL
2991 case "x$ac_cv_prog_cc_c89" in
2992   x)
2993     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2994 $as_echo "none needed" >&6; } ;;
2995   xno)
2996     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2997 $as_echo "unsupported" >&6; } ;;
2998   *)
2999     CC="$CC $ac_cv_prog_cc_c89"
3000     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3001 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3002 esac
3003
3004
3005 ac_ext=c
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010
3011  ac_ext=cpp
3012 ac_cpp='$CXXCPP $CPPFLAGS'
3013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3016 if test -z "$CXX"; then
3017   if test -n "$CCC"; then
3018     CXX=$CCC
3019   else
3020     if test -n "$ac_tool_prefix"; then
3021   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3022   do
3023     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3025 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if test "${ac_cv_prog_CXX+set}" = set; then
3028   $as_echo_n "(cached) " >&6
3029 else
3030   if test -n "$CXX"; then
3031   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3032 else
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3034 for as_dir in $PATH
3035 do
3036   IFS=$as_save_IFS
3037   test -z "$as_dir" && as_dir=.
3038   for ac_exec_ext in '' $ac_executable_extensions; do
3039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3041     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3042     break 2
3043   fi
3044 done
3045 done
3046 IFS=$as_save_IFS
3047
3048 fi
3049 fi
3050 CXX=$ac_cv_prog_CXX
3051 if test -n "$CXX"; then
3052   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3053 $as_echo "$CXX" >&6; }
3054 else
3055   { $as_echo "$as_me:$LINENO: result: no" >&5
3056 $as_echo "no" >&6; }
3057 fi
3058
3059
3060     test -n "$CXX" && break
3061   done
3062 fi
3063 if test -z "$CXX"; then
3064   ac_ct_CXX=$CXX
3065   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3066 do
3067   # Extract the first word of "$ac_prog", so it can be a program name with args.
3068 set dummy $ac_prog; ac_word=$2
3069 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3072   $as_echo_n "(cached) " >&6
3073 else
3074   if test -n "$ac_ct_CXX"; then
3075   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080   IFS=$as_save_IFS
3081   test -z "$as_dir" && as_dir=.
3082   for ac_exec_ext in '' $ac_executable_extensions; do
3083   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084     ac_cv_prog_ac_ct_CXX="$ac_prog"
3085     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3086     break 2
3087   fi
3088 done
3089 done
3090 IFS=$as_save_IFS
3091
3092 fi
3093 fi
3094 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3095 if test -n "$ac_ct_CXX"; then
3096   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3097 $as_echo "$ac_ct_CXX" >&6; }
3098 else
3099   { $as_echo "$as_me:$LINENO: result: no" >&5
3100 $as_echo "no" >&6; }
3101 fi
3102
3103
3104   test -n "$ac_ct_CXX" && break
3105 done
3106
3107   if test "x$ac_ct_CXX" = x; then
3108     CXX="g++"
3109   else
3110     case $cross_compiling:$ac_tool_warned in
3111 yes:)
3112 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3114 ac_tool_warned=yes ;;
3115 esac
3116     CXX=$ac_ct_CXX
3117   fi
3118 fi
3119
3120   fi
3121 fi
3122 # Provide some information about the compiler.
3123 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3124 set X $ac_compile
3125 ac_compiler=$2
3126 { (ac_try="$ac_compiler --version >&5"
3127 case "(($ac_try" in
3128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129   *) ac_try_echo=$ac_try;;
3130 esac
3131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132 $as_echo "$ac_try_echo") >&5
3133   (eval "$ac_compiler --version >&5") 2>&5
3134   ac_status=$?
3135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136   (exit $ac_status); }
3137 { (ac_try="$ac_compiler -v >&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 -v >&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
3160 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3161 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3162 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3163   $as_echo_n "(cached) " >&6
3164 else
3165   cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171
3172 int
3173 main ()
3174 {
3175 #ifndef __GNUC__
3176        choke me
3177 #endif
3178
3179   ;
3180   return 0;
3181 }
3182 _ACEOF
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3185 case "(($ac_try" in
3186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187   *) ac_try_echo=$ac_try;;
3188 esac
3189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3190 $as_echo "$ac_try_echo") >&5
3191   (eval "$ac_compile") 2>conftest.er1
3192   ac_status=$?
3193   grep -v '^ *+' conftest.er1 >conftest.err
3194   rm -f conftest.er1
3195   cat conftest.err >&5
3196   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197   (exit $ac_status); } && {
3198          test -z "$ac_cxx_werror_flag" ||
3199          test ! -s conftest.err
3200        } && test -s conftest.$ac_objext; then
3201   ac_compiler_gnu=yes
3202 else
3203   $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3205
3206         ac_compiler_gnu=no
3207 fi
3208
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3211
3212 fi
3213 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3214 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3215 if test $ac_compiler_gnu = yes; then
3216   GXX=yes
3217 else
3218   GXX=
3219 fi
3220 ac_test_CXXFLAGS=${CXXFLAGS+set}
3221 ac_save_CXXFLAGS=$CXXFLAGS
3222 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3223 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3224 if test "${ac_cv_prog_cxx_g+set}" = set; then
3225   $as_echo_n "(cached) " >&6
3226 else
3227   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3228    ac_cxx_werror_flag=yes
3229    ac_cv_prog_cxx_g=no
3230    CXXFLAGS="-g"
3231    cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237
3238 int
3239 main ()
3240 {
3241
3242   ;
3243   return 0;
3244 }
3245 _ACEOF
3246 rm -f conftest.$ac_objext
3247 if { (ac_try="$ac_compile"
3248 case "(($ac_try" in
3249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250   *) ac_try_echo=$ac_try;;
3251 esac
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254   (eval "$ac_compile") 2>conftest.er1
3255   ac_status=$?
3256   grep -v '^ *+' conftest.er1 >conftest.err
3257   rm -f conftest.er1
3258   cat conftest.err >&5
3259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); } && {
3261          test -z "$ac_cxx_werror_flag" ||
3262          test ! -s conftest.err
3263        } && test -s conftest.$ac_objext; then
3264   ac_cv_prog_cxx_g=yes
3265 else
3266   $as_echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3268
3269         CXXFLAGS=""
3270       cat >conftest.$ac_ext <<_ACEOF
3271 /* confdefs.h.  */
3272 _ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h.  */
3276
3277 int
3278 main ()
3279 {
3280
3281   ;
3282   return 0;
3283 }
3284 _ACEOF
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3287 case "(($ac_try" in
3288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289   *) ac_try_echo=$ac_try;;
3290 esac
3291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3292 $as_echo "$ac_try_echo") >&5
3293   (eval "$ac_compile") 2>conftest.er1
3294   ac_status=$?
3295   grep -v '^ *+' conftest.er1 >conftest.err
3296   rm -f conftest.er1
3297   cat conftest.err >&5
3298   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299   (exit $ac_status); } && {
3300          test -z "$ac_cxx_werror_flag" ||
3301          test ! -s conftest.err
3302        } && test -s conftest.$ac_objext; then
3303   :
3304 else
3305   $as_echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3307
3308         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3309          CXXFLAGS="-g"
3310          cat >conftest.$ac_ext <<_ACEOF
3311 /* confdefs.h.  */
3312 _ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h.  */
3316
3317 int
3318 main ()
3319 {
3320
3321   ;
3322   return 0;
3323 }
3324 _ACEOF
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3327 case "(($ac_try" in
3328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329   *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3332 $as_echo "$ac_try_echo") >&5
3333   (eval "$ac_compile") 2>conftest.er1
3334   ac_status=$?
3335   grep -v '^ *+' conftest.er1 >conftest.err
3336   rm -f conftest.er1
3337   cat conftest.err >&5
3338   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); } && {
3340          test -z "$ac_cxx_werror_flag" ||
3341          test ! -s conftest.err
3342        } && test -s conftest.$ac_objext; then
3343   ac_cv_prog_cxx_g=yes
3344 else
3345   $as_echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3347
3348
3349 fi
3350
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 fi
3353
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 fi
3356
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3359 fi
3360 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3361 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3362 if test "$ac_test_CXXFLAGS" = set; then
3363   CXXFLAGS=$ac_save_CXXFLAGS
3364 elif test $ac_cv_prog_cxx_g = yes; then
3365   if test "$GXX" = yes; then
3366     CXXFLAGS="-g -O2"
3367   else
3368     CXXFLAGS="-g"
3369   fi
3370 else
3371   if test "$GXX" = yes; then
3372     CXXFLAGS="-O2"
3373   else
3374     CXXFLAGS=
3375   fi
3376 fi
3377 ac_ext=c
3378 ac_cpp='$CPP $CPPFLAGS'
3379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3382
3383
3384
3385
3386 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3387 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3388
3389 cat > conftest.c << EOF
3390 #include <stdlib.h>
3391 #include <stdio.h>
3392
3393 int main (int argc, char*argv)
3394 {
3395     int a,b;
3396     b=3;
3397     int c;
3398     c=4;
3399     return 0;
3400 }
3401 EOF
3402
3403 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3404 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3405   { $as_echo "$as_me:$LINENO: result: yes" >&5
3406 $as_echo "yes" >&6; }
3407   GCC_IS_OK=true
3408   export GCC_IS_OK
3409 else
3410   echo "configure: failed program was:" >&5
3411   cat conftest.c >&5
3412   { $as_echo "$as_me:$LINENO: result: no" >&5
3413 $as_echo "no" >&6; }
3414 fi
3415 rm -f conftest*
3416
3417
3418 if test "x$GCC_IS_OK" '=' "x";then
3419     echo "***************************************************"
3420     echo "* Your gcc is too old to compile this!"
3421     echo "* "
3422     echo "* The last version compileable by this compiler is "
3423     echo "* swftools 0.7.0, which you can download from "
3424     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3425     echo "* ."
3426     echo "* Newer versions require at least gcc 3.0.0 "
3427     echo "***************************************************"
3428     exit 1
3429 fi
3430
3431 if test "x$CHECKMEM" '!=' "x";then
3432     CC="ccmalloc $CC"
3433     CXX="ccmalloc $CXX"
3434     #echo running again
3435     #unset ac_cv_prog_CC
3436     #unset ac_cv_prog_CXX
3437     #AC_PROG_CC
3438     #AC_PROG_CXX
3439 fi
3440  ac_ext=c
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3446 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3447 # On Suns, sometimes $CPP names a directory.
3448 if test -n "$CPP" && test -d "$CPP"; then
3449   CPP=
3450 fi
3451 if test -z "$CPP"; then
3452   if test "${ac_cv_prog_CPP+set}" = set; then
3453   $as_echo_n "(cached) " >&6
3454 else
3455       # Double quotes because CPP needs to be expanded
3456     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3457     do
3458       ac_preproc_ok=false
3459 for ac_c_preproc_warn_flag in '' yes
3460 do
3461   # Use a header file that comes with gcc, so configuring glibc
3462   # with a fresh cross-compiler works.
3463   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3464   # <limits.h> exists even on freestanding compilers.
3465   # On the NeXT, cc -E runs the code through the compiler's parser,
3466   # not just through cpp. "Syntax error" is here to catch this case.
3467   cat >conftest.$ac_ext <<_ACEOF
3468 /* confdefs.h.  */
3469 _ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h.  */
3473 #ifdef __STDC__
3474 # include <limits.h>
3475 #else
3476 # include <assert.h>
3477 #endif
3478                      Syntax error
3479 _ACEOF
3480 if { (ac_try="$ac_cpp conftest.$ac_ext"
3481 case "(($ac_try" in
3482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483   *) ac_try_echo=$ac_try;;
3484 esac
3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 $as_echo "$ac_try_echo") >&5
3487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3488   ac_status=$?
3489   grep -v '^ *+' conftest.er1 >conftest.err
3490   rm -f conftest.er1
3491   cat conftest.err >&5
3492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493   (exit $ac_status); } >/dev/null && {
3494          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3495          test ! -s conftest.err
3496        }; then
3497   :
3498 else
3499   $as_echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3501
3502   # Broken: fails on valid input.
3503 continue
3504 fi
3505
3506 rm -f conftest.err conftest.$ac_ext
3507
3508   # OK, works on sane cases.  Now check whether nonexistent headers
3509   # can be detected and how.
3510   cat >conftest.$ac_ext <<_ACEOF
3511 /* confdefs.h.  */
3512 _ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h.  */
3516 #include <ac_nonexistent.h>
3517 _ACEOF
3518 if { (ac_try="$ac_cpp conftest.$ac_ext"
3519 case "(($ac_try" in
3520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521   *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3524 $as_echo "$ac_try_echo") >&5
3525   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3526   ac_status=$?
3527   grep -v '^ *+' conftest.er1 >conftest.err
3528   rm -f conftest.er1
3529   cat conftest.err >&5
3530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531   (exit $ac_status); } >/dev/null && {
3532          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3533          test ! -s conftest.err
3534        }; then
3535   # Broken: success on invalid input.
3536 continue
3537 else
3538   $as_echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3540
3541   # Passes both tests.
3542 ac_preproc_ok=:
3543 break
3544 fi
3545
3546 rm -f conftest.err conftest.$ac_ext
3547
3548 done
3549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550 rm -f conftest.err conftest.$ac_ext
3551 if $ac_preproc_ok; then
3552   break
3553 fi
3554
3555     done
3556     ac_cv_prog_CPP=$CPP
3557
3558 fi
3559   CPP=$ac_cv_prog_CPP
3560 else
3561   ac_cv_prog_CPP=$CPP
3562 fi
3563 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3564 $as_echo "$CPP" >&6; }
3565 ac_preproc_ok=false
3566 for ac_c_preproc_warn_flag in '' yes
3567 do
3568   # Use a header file that comes with gcc, so configuring glibc
3569   # with a fresh cross-compiler works.
3570   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571   # <limits.h> exists even on freestanding compilers.
3572   # On the NeXT, cc -E runs the code through the compiler's parser,
3573   # not just through cpp. "Syntax error" is here to catch this case.
3574   cat >conftest.$ac_ext <<_ACEOF
3575 /* confdefs.h.  */
3576 _ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h.  */
3580 #ifdef __STDC__
3581 # include <limits.h>
3582 #else
3583 # include <assert.h>
3584 #endif
3585                      Syntax error
3586 _ACEOF
3587 if { (ac_try="$ac_cpp conftest.$ac_ext"
3588 case "(($ac_try" in
3589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590   *) ac_try_echo=$ac_try;;
3591 esac
3592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3593 $as_echo "$ac_try_echo") >&5
3594   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3595   ac_status=$?
3596   grep -v '^ *+' conftest.er1 >conftest.err
3597   rm -f conftest.er1
3598   cat conftest.err >&5
3599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600   (exit $ac_status); } >/dev/null && {
3601          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3602          test ! -s conftest.err
3603        }; then
3604   :
3605 else
3606   $as_echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3608
3609   # Broken: fails on valid input.
3610 continue
3611 fi
3612
3613 rm -f conftest.err conftest.$ac_ext
3614
3615   # OK, works on sane cases.  Now check whether nonexistent headers
3616   # can be detected and how.
3617   cat >conftest.$ac_ext <<_ACEOF
3618 /* confdefs.h.  */
3619 _ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h.  */
3623 #include <ac_nonexistent.h>
3624 _ACEOF
3625 if { (ac_try="$ac_cpp conftest.$ac_ext"
3626 case "(($ac_try" in
3627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628   *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3631 $as_echo "$ac_try_echo") >&5
3632   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3633   ac_status=$?
3634   grep -v '^ *+' conftest.er1 >conftest.err
3635   rm -f conftest.er1
3636   cat conftest.err >&5
3637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638   (exit $ac_status); } >/dev/null && {
3639          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3640          test ! -s conftest.err
3641        }; then
3642   # Broken: success on invalid input.
3643 continue
3644 else
3645   $as_echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3647
3648   # Passes both tests.
3649 ac_preproc_ok=:
3650 break
3651 fi
3652
3653 rm -f conftest.err conftest.$ac_ext
3654
3655 done
3656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3657 rm -f conftest.err conftest.$ac_ext
3658 if $ac_preproc_ok; then
3659   :
3660 else
3661   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3664 See \`config.log' for more details." >&5
3665 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3666 See \`config.log' for more details." >&2;}
3667    { (exit 1); exit 1; }; }; }
3668 fi
3669
3670 ac_ext=c
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3675
3676
3677  if test -n "$ac_tool_prefix"; then
3678   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3679 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if test "${ac_cv_prog_RANLIB+set}" = set; then
3683   $as_echo_n "(cached) " >&6
3684 else
3685   if test -n "$RANLIB"; then
3686   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3687 else
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 for as_dir in $PATH
3690 do
3691   IFS=$as_save_IFS
3692   test -z "$as_dir" && as_dir=.
3693   for ac_exec_ext in '' $ac_executable_extensions; do
3694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3696     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3697     break 2
3698   fi
3699 done
3700 done
3701 IFS=$as_save_IFS
3702
3703 fi
3704 fi
3705 RANLIB=$ac_cv_prog_RANLIB
3706 if test -n "$RANLIB"; then
3707   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3708 $as_echo "$RANLIB" >&6; }
3709 else
3710   { $as_echo "$as_me:$LINENO: result: no" >&5
3711 $as_echo "no" >&6; }
3712 fi
3713
3714
3715 fi
3716 if test -z "$ac_cv_prog_RANLIB"; then
3717   ac_ct_RANLIB=$RANLIB
3718   # Extract the first word of "ranlib", so it can be a program name with args.
3719 set dummy ranlib; ac_word=$2
3720 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3723   $as_echo_n "(cached) " >&6
3724 else
3725   if test -n "$ac_ct_RANLIB"; then
3726   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3727 else
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3729 for as_dir in $PATH
3730 do
3731   IFS=$as_save_IFS
3732   test -z "$as_dir" && as_dir=.
3733   for ac_exec_ext in '' $ac_executable_extensions; do
3734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3735     ac_cv_prog_ac_ct_RANLIB="ranlib"
3736     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3737     break 2
3738   fi
3739 done
3740 done
3741 IFS=$as_save_IFS
3742
3743 fi
3744 fi
3745 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3746 if test -n "$ac_ct_RANLIB"; then
3747   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3748 $as_echo "$ac_ct_RANLIB" >&6; }
3749 else
3750   { $as_echo "$as_me:$LINENO: result: no" >&5
3751 $as_echo "no" >&6; }
3752 fi
3753
3754   if test "x$ac_ct_RANLIB" = x; then
3755     RANLIB=":"
3756   else
3757     case $cross_compiling:$ac_tool_warned in
3758 yes:)
3759 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3761 ac_tool_warned=yes ;;
3762 esac
3763     RANLIB=$ac_ct_RANLIB
3764   fi
3765 else
3766   RANLIB="$ac_cv_prog_RANLIB"
3767 fi
3768
3769  { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3770 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3771 set x ${MAKE-make}
3772 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3773 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3774   $as_echo_n "(cached) " >&6
3775 else
3776   cat >conftest.make <<\_ACEOF
3777 SHELL = /bin/sh
3778 all:
3779         @echo '@@@%%%=$(MAKE)=@@@%%%'
3780 _ACEOF
3781 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3782 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3783   *@@@%%%=?*=@@@%%%*)
3784     eval ac_cv_prog_make_${ac_make}_set=yes;;
3785   *)
3786     eval ac_cv_prog_make_${ac_make}_set=no;;
3787 esac
3788 rm -f conftest.make
3789 fi
3790 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3791   { $as_echo "$as_me:$LINENO: result: yes" >&5
3792 $as_echo "yes" >&6; }
3793   SET_MAKE=
3794 else
3795   { $as_echo "$as_me:$LINENO: result: no" >&5
3796 $as_echo "no" >&6; }
3797   SET_MAKE="MAKE=${MAKE-make}"
3798 fi
3799
3800  # Find a good install program.  We prefer a C program (faster),
3801 # so one script is as good as another.  But avoid the broken or
3802 # incompatible versions:
3803 # SysV /etc/install, /usr/sbin/install
3804 # SunOS /usr/etc/install
3805 # IRIX /sbin/install
3806 # AIX /bin/install
3807 # AmigaOS /C/install, which installs bootblocks on floppy discs
3808 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3809 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3810 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3811 # OS/2's system install, which has a completely different semantic
3812 # ./install, which can be erroneously created by make from ./install.sh.
3813 # Reject install programs that cannot install multiple files.
3814 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3815 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3816 if test -z "$INSTALL"; then
3817 if test "${ac_cv_path_install+set}" = set; then
3818   $as_echo_n "(cached) " >&6
3819 else
3820   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3822 do
3823   IFS=$as_save_IFS
3824   test -z "$as_dir" && as_dir=.
3825   # Account for people who put trailing slashes in PATH elements.
3826 case $as_dir/ in
3827   ./ | .// | /cC/* | \
3828   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3829   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3830   /usr/ucb/* ) ;;
3831   *)
3832     # OSF1 and SCO ODT 3.0 have their own names for install.
3833     # Don't use installbsd from OSF since it installs stuff as root
3834     # by default.
3835     for ac_prog in ginstall scoinst install; do
3836       for ac_exec_ext in '' $ac_executable_extensions; do
3837         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3838           if test $ac_prog = install &&
3839             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3840             # AIX install.  It has an incompatible calling convention.
3841             :
3842           elif test $ac_prog = install &&
3843             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3844             # program-specific install script used by HP pwplus--don't use.
3845             :
3846           else
3847             rm -rf conftest.one conftest.two conftest.dir
3848             echo one > conftest.one
3849             echo two > conftest.two
3850             mkdir conftest.dir
3851             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3852               test -s conftest.one && test -s conftest.two &&
3853               test -s conftest.dir/conftest.one &&
3854               test -s conftest.dir/conftest.two
3855             then
3856               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3857               break 3
3858             fi
3859           fi
3860         fi
3861       done
3862     done
3863     ;;
3864 esac
3865
3866 done
3867 IFS=$as_save_IFS
3868
3869 rm -rf conftest.one conftest.two conftest.dir
3870
3871 fi
3872   if test "${ac_cv_path_install+set}" = set; then
3873     INSTALL=$ac_cv_path_install
3874   else
3875     # As a last resort, use the slow shell script.  Don't cache a
3876     # value for INSTALL within a source directory, because that will
3877     # break other packages using the cache if that directory is
3878     # removed, or if the value is a relative name.
3879     INSTALL=$ac_install_sh
3880   fi
3881 fi
3882 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3883 $as_echo "$INSTALL" >&6; }
3884
3885 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3886 # It thinks the first close brace ends the variable substitution.
3887 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3888
3889 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3890
3891 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3892
3893  { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3894 $as_echo_n "checking whether ln -s works... " >&6; }
3895 LN_S=$as_ln_s
3896 if test "$LN_S" = "ln -s"; then
3897   { $as_echo "$as_me:$LINENO: result: yes" >&5
3898 $as_echo "yes" >&6; }
3899 else
3900   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3901 $as_echo "no, using $LN_S" >&6; }
3902 fi
3903
3904  for ac_prog in gzip uncompress compress
3905 do
3906   # Extract the first word of "$ac_prog", so it can be a program name with args.
3907 set dummy $ac_prog; ac_word=$2
3908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3911   $as_echo_n "(cached) " >&6
3912 else
3913   if test -n "$UNCOMPRESS"; then
3914   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3915 else
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3917 for as_dir in $PATH
3918 do
3919   IFS=$as_save_IFS
3920   test -z "$as_dir" && as_dir=.
3921   for ac_exec_ext in '' $ac_executable_extensions; do
3922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923     ac_cv_prog_UNCOMPRESS="$ac_prog"
3924     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3925     break 2
3926   fi
3927 done
3928 done
3929 IFS=$as_save_IFS
3930
3931 fi
3932 fi
3933 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3934 if test -n "$UNCOMPRESS"; then
3935   { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3936 $as_echo "$UNCOMPRESS" >&6; }
3937 else
3938   { $as_echo "$as_me:$LINENO: result: no" >&5
3939 $as_echo "no" >&6; }
3940 fi
3941
3942
3943   test -n "$UNCOMPRESS" && break
3944 done
3945
3946
3947
3948 OBJEXT="o"
3949 AREXT=".a"
3950 CXXLIBS="-lstdc++"
3951
3952
3953
3954 if test "x$EXEEXT" = "x.exe";then
3955     OBJEXT="obj"
3956     AREXT=".lib"
3957     CXXLIBS=""
3958 fi
3959
3960
3961
3962
3963 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3964 $as_echo_n "checking host system type... " >&6; }
3965 if test "${ac_cv_host+set}" = set; then
3966   $as_echo_n "(cached) " >&6
3967 else
3968   if test "x$host_alias" = x; then
3969   ac_cv_host=$ac_cv_build
3970 else
3971   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3972     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3973 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3974    { (exit 1); exit 1; }; }
3975 fi
3976
3977 fi
3978 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3979 $as_echo "$ac_cv_host" >&6; }
3980 case $ac_cv_host in
3981 *-*-*) ;;
3982 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3983 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3984    { (exit 1); exit 1; }; };;
3985 esac
3986 host=$ac_cv_host
3987 ac_save_IFS=$IFS; IFS='-'
3988 set x $ac_cv_host
3989 shift
3990 host_cpu=$1
3991 host_vendor=$2
3992 shift; shift
3993 # Remember, the first character of IFS is used to create $*,
3994 # except with old shells:
3995 host_os=$*
3996 IFS=$ac_save_IFS
3997 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3998
3999
4000
4001
4002 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4003 $as_echo_n "checking for target system... " >&6; }
4004 CYGWIN=
4005 MINGW=
4006 case $host_os in
4007     *cygwin* ) CYGWIN=yes;;
4008     *mingw* ) MINGW=yes;;
4009 esac
4010
4011 AR=ar
4012 if test "x$MINGW" = "xyes"; then
4013     #fix for the debian distribution of mingw
4014     if test -x "/usr/i586-mingw32msvc/bin/ar";then
4015         AR="/usr/i586-mingw32msvc/bin/ar"
4016     fi
4017     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4018         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4019     fi
4020     #fix for the gentoo distribution of mingw
4021     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4022         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4023     fi
4024     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4025         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4026     fi
4027     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4028         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4029     fi
4030 fi
4031
4032
4033
4034 if test "x${CYGWIN}" = "xyes"; then
4035
4036 cat >>confdefs.h <<\_ACEOF
4037 #define CYGWIN 1
4038 _ACEOF
4039
4040     { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4041 $as_echo "cygwin" >&6; }
4042 else
4043     if test "x${MINGW}" = "xyes"; then
4044
4045 cat >>confdefs.h <<\_ACEOF
4046 #define MINGW 1
4047 _ACEOF
4048
4049         WIN32=1
4050
4051 cat >>confdefs.h <<\_ACEOF
4052 #define WIN32 1
4053 _ACEOF
4054
4055         LIBS="$LIBS -lws2_32 -lgdi32"
4056         { $as_echo "$as_me:$LINENO: result: mingw" >&5
4057 $as_echo "mingw" >&6; }
4058     else
4059         LINUX=1
4060         export LINUX
4061
4062 cat >>confdefs.h <<\_ACEOF
4063 #define LINUX 1
4064 _ACEOF
4065
4066         { $as_echo "$as_me:$LINENO: result: " >&5
4067 $as_echo "" >&6; }
4068     fi
4069 fi
4070
4071
4072 SLEXT="so"
4073 if test "x${MINGW}" != "xyes"; then
4074     # no mingW
4075
4076 cat >>confdefs.h <<\_ACEOF
4077 #define O_BINARY 0
4078 _ACEOF
4079
4080 else
4081     # mingW
4082     SLEXT="dll"
4083     CXXLIBS=""
4084 fi
4085 export SLEXT
4086
4087
4088
4089 # The following tries to make use of includes and libraries in
4090 # /usr/local, too. Notice: A -I/usr/local/include might break
4091 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4092 # especially on systems which link /usr/local to /usr, so it has yet
4093 # to be seen how useful this is.
4094 if test -d /usr/local/lib; then
4095     LDFLAGS="$LDFLAGS -L/usr/local/lib"
4096 fi
4097 if test -d /usr/local/include; then
4098 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4099 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4100     echo > /dev/null
4101 fi
4102 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4103     # if the user has a special prefix (like /opt), there might also be $prefix/lib
4104     # and $prefix/include, which should be included in our search paths for libraries
4105     # and includes.
4106     LDFLAGS="$LDFLAGS -L${libdir}"
4107     CPPFLAGS="$CPPFLAGS -I${includedir}"
4108     # TODO- test whether gcc still works after this
4109 fi
4110
4111 #Mac OS:
4112 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4113
4114
4115 # this must be done after (I believe) AC_PROG_MAKE_SET
4116 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4117     if test "$MACOSX";then
4118         STRIP=dsymutil
4119     else
4120         STRIP="@echo debug enabled, not stripping "
4121     fi
4122     export STRIP
4123
4124 fi
4125
4126
4127
4128 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4129 $as_echo_n "checking for sin in -lm... " >&6; }
4130 if test "${ac_cv_lib_m_sin+set}" = set; then
4131   $as_echo_n "(cached) " >&6
4132 else
4133   ac_check_lib_save_LIBS=$LIBS
4134 LIBS="-lm  $LIBS"
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141
4142 /* Override any GCC internal prototype to avoid an error.
4143    Use char because int might match the return type of a GCC
4144    builtin and then its argument prototype would still apply.  */
4145 #ifdef __cplusplus
4146 extern "C"
4147 #endif
4148 char sin ();
4149 int
4150 main ()
4151 {
4152 return sin ();
4153   ;
4154   return 0;
4155 }
4156 _ACEOF
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (ac_try="$ac_link"
4159 case "(($ac_try" in
4160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161   *) ac_try_echo=$ac_try;;
4162 esac
4163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4164 $as_echo "$ac_try_echo") >&5
4165   (eval "$ac_link") 2>conftest.er1
4166   ac_status=$?
4167   grep -v '^ *+' conftest.er1 >conftest.err
4168   rm -f conftest.er1
4169   cat conftest.err >&5
4170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171   (exit $ac_status); } && {
4172          test -z "$ac_c_werror_flag" ||
4173          test ! -s conftest.err
4174        } && test -s conftest$ac_exeext && {
4175          test "$cross_compiling" = yes ||
4176          $as_test_x conftest$ac_exeext
4177        }; then
4178   ac_cv_lib_m_sin=yes
4179 else
4180   $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4182
4183         ac_cv_lib_m_sin=no
4184 fi
4185
4186 rm -rf conftest.dSYM
4187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4188       conftest$ac_exeext conftest.$ac_ext
4189 LIBS=$ac_check_lib_save_LIBS
4190 fi
4191 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4192 $as_echo "$ac_cv_lib_m_sin" >&6; }
4193 if test "x$ac_cv_lib_m_sin" = x""yes; then
4194   cat >>confdefs.h <<_ACEOF
4195 #define HAVE_LIBM 1
4196 _ACEOF
4197
4198   LIBS="-lm $LIBS"
4199
4200 else
4201   echo "Error: Math library not found.";
4202  exit;
4203
4204 fi
4205
4206
4207 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4208 $as_echo_n "checking for deflate in -lz... " >&6; }
4209 if test "${ac_cv_lib_z_deflate+set}" = set; then
4210   $as_echo_n "(cached) " >&6
4211 else
4212   ac_check_lib_save_LIBS=$LIBS
4213 LIBS="-lz  $LIBS"
4214 cat >conftest.$ac_ext <<_ACEOF
4215 /* confdefs.h.  */
4216 _ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h.  */
4220
4221 /* Override any GCC internal prototype to avoid an error.
4222    Use char because int might match the return type of a GCC
4223    builtin and then its argument prototype would still apply.  */
4224 #ifdef __cplusplus
4225 extern "C"
4226 #endif
4227 char deflate ();
4228 int
4229 main ()
4230 {
4231 return deflate ();
4232   ;
4233   return 0;
4234 }
4235 _ACEOF
4236 rm -f conftest.$ac_objext conftest$ac_exeext
4237 if { (ac_try="$ac_link"
4238 case "(($ac_try" in
4239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240   *) ac_try_echo=$ac_try;;
4241 esac
4242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4243 $as_echo "$ac_try_echo") >&5
4244   (eval "$ac_link") 2>conftest.er1
4245   ac_status=$?
4246   grep -v '^ *+' conftest.er1 >conftest.err
4247   rm -f conftest.er1
4248   cat conftest.err >&5
4249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); } && {
4251          test -z "$ac_c_werror_flag" ||
4252          test ! -s conftest.err
4253        } && test -s conftest$ac_exeext && {
4254          test "$cross_compiling" = yes ||
4255          $as_test_x conftest$ac_exeext
4256        }; then
4257   ac_cv_lib_z_deflate=yes
4258 else
4259   $as_echo "$as_me: failed program was:" >&5
4260 sed 's/^/| /' conftest.$ac_ext >&5
4261
4262         ac_cv_lib_z_deflate=no
4263 fi
4264
4265 rm -rf conftest.dSYM
4266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4267       conftest$ac_exeext conftest.$ac_ext
4268 LIBS=$ac_check_lib_save_LIBS
4269 fi
4270 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4271 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4272 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4273   cat >>confdefs.h <<_ACEOF
4274 #define HAVE_LIBZ 1
4275 _ACEOF
4276
4277   LIBS="-lz $LIBS"
4278
4279 else
4280   ZLIBMISSING=true
4281 fi
4282
4283
4284 if test "x$ZLIBMISSING" = "xtrue";then
4285     echo
4286     echo "ERROR:"
4287     echo "You need zlib to compile swftools"
4288     echo
4289     exit
4290 fi
4291
4292
4293 { $as_echo "$as_me:$LINENO: checking for PDF_open_file in -lpdf" >&5
4294 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4295 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then
4296   $as_echo_n "(cached) " >&6
4297 else
4298   ac_check_lib_save_LIBS=$LIBS
4299 LIBS="-lpdf  $LIBS"
4300 cat >conftest.$ac_ext <<_ACEOF
4301 /* confdefs.h.  */
4302 _ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h.  */
4306
4307 /* Override any GCC internal prototype to avoid an error.
4308    Use char because int might match the return type of a GCC
4309    builtin and then its argument prototype would still apply.  */
4310 #ifdef __cplusplus
4311 extern "C"
4312 #endif
4313 char PDF_open_file ();
4314 int
4315 main ()
4316 {
4317 return PDF_open_file ();
4318   ;
4319   return 0;
4320 }
4321 _ACEOF
4322 rm -f conftest.$ac_objext conftest$ac_exeext
4323 if { (ac_try="$ac_link"
4324 case "(($ac_try" in
4325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326   *) ac_try_echo=$ac_try;;
4327 esac
4328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4329 $as_echo "$ac_try_echo") >&5
4330   (eval "$ac_link") 2>conftest.er1
4331   ac_status=$?
4332   grep -v '^ *+' conftest.er1 >conftest.err
4333   rm -f conftest.er1
4334   cat conftest.err >&5
4335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); } && {
4337          test -z "$ac_c_werror_flag" ||
4338          test ! -s conftest.err
4339        } && test -s conftest$ac_exeext && {
4340          test "$cross_compiling" = yes ||
4341          $as_test_x conftest$ac_exeext
4342        }; then
4343   ac_cv_lib_pdf_PDF_open_file=yes
4344 else
4345   $as_echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4347
4348         ac_cv_lib_pdf_PDF_open_file=no
4349 fi
4350
4351 rm -rf conftest.dSYM
4352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4353       conftest$ac_exeext conftest.$ac_ext
4354 LIBS=$ac_check_lib_save_LIBS
4355 fi
4356 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4357 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4358 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then
4359   cat >>confdefs.h <<_ACEOF
4360 #define HAVE_LIBPDF 1
4361 _ACEOF
4362
4363   LIBS="-lpdf $LIBS"
4364
4365 else
4366   PDFLIBMISSING=true
4367 fi
4368
4369
4370 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4371 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4372 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4373   $as_echo_n "(cached) " >&6
4374 else
4375   ac_check_lib_save_LIBS=$LIBS
4376 LIBS="-ljpeg  $LIBS"
4377 cat >conftest.$ac_ext <<_ACEOF
4378 /* confdefs.h.  */
4379 _ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h.  */
4383
4384 /* Override any GCC internal prototype to avoid an error.
4385    Use char because int might match the return type of a GCC
4386    builtin and then its argument prototype would still apply.  */
4387 #ifdef __cplusplus
4388 extern "C"
4389 #endif
4390 char jpeg_write_raw_data ();
4391 int
4392 main ()
4393 {
4394 return jpeg_write_raw_data ();
4395   ;
4396   return 0;
4397 }
4398 _ACEOF
4399 rm -f conftest.$ac_objext conftest$ac_exeext
4400 if { (ac_try="$ac_link"
4401 case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4406 $as_echo "$ac_try_echo") >&5
4407   (eval "$ac_link") 2>conftest.er1
4408   ac_status=$?
4409   grep -v '^ *+' conftest.er1 >conftest.err
4410   rm -f conftest.er1
4411   cat conftest.err >&5
4412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); } && {
4414          test -z "$ac_c_werror_flag" ||
4415          test ! -s conftest.err
4416        } && test -s conftest$ac_exeext && {
4417          test "$cross_compiling" = yes ||
4418          $as_test_x conftest$ac_exeext
4419        }; then
4420   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4421 else
4422   $as_echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4424
4425         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4426 fi
4427
4428 rm -rf conftest.dSYM
4429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4430       conftest$ac_exeext conftest.$ac_ext
4431 LIBS=$ac_check_lib_save_LIBS
4432 fi
4433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4434 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4435 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4436   cat >>confdefs.h <<_ACEOF
4437 #define HAVE_LIBJPEG 1
4438 _ACEOF
4439
4440   LIBS="-ljpeg $LIBS"
4441
4442 else
4443   JPEGLIBMISSING=true
4444 fi
4445
4446
4447 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4448 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4449 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4450   $as_echo_n "(cached) " >&6
4451 else
4452   ac_check_lib_save_LIBS=$LIBS
4453 LIBS="-lungif  $LIBS"
4454 cat >conftest.$ac_ext <<_ACEOF
4455 /* confdefs.h.  */
4456 _ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h.  */
4460
4461 /* Override any GCC internal prototype to avoid an error.
4462    Use char because int might match the return type of a GCC
4463    builtin and then its argument prototype would still apply.  */
4464 #ifdef __cplusplus
4465 extern "C"
4466 #endif
4467 char DGifOpen ();
4468 int
4469 main ()
4470 {
4471 return DGifOpen ();
4472   ;
4473   return 0;
4474 }
4475 _ACEOF
4476 rm -f conftest.$ac_objext conftest$ac_exeext
4477 if { (ac_try="$ac_link"
4478 case "(($ac_try" in
4479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480   *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4483 $as_echo "$ac_try_echo") >&5
4484   (eval "$ac_link") 2>conftest.er1
4485   ac_status=$?
4486   grep -v '^ *+' conftest.er1 >conftest.err
4487   rm -f conftest.er1
4488   cat conftest.err >&5
4489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490   (exit $ac_status); } && {
4491          test -z "$ac_c_werror_flag" ||
4492          test ! -s conftest.err
4493        } && test -s conftest$ac_exeext && {
4494          test "$cross_compiling" = yes ||
4495          $as_test_x conftest$ac_exeext
4496        }; then
4497   ac_cv_lib_ungif_DGifOpen=yes
4498 else
4499   $as_echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4501
4502         ac_cv_lib_ungif_DGifOpen=no
4503 fi
4504
4505 rm -rf conftest.dSYM
4506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4507       conftest$ac_exeext conftest.$ac_ext
4508 LIBS=$ac_check_lib_save_LIBS
4509 fi
4510 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4511 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4512 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4513   cat >>confdefs.h <<_ACEOF
4514 #define HAVE_LIBUNGIF 1
4515 _ACEOF
4516
4517   LIBS="-lungif $LIBS"
4518
4519 else
4520   UNGIFMISSING=true
4521 fi
4522
4523 if test "$UNGIFMISSING";then
4524     UNGIFMISSING=
4525
4526 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4527 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4528 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4529   $as_echo_n "(cached) " >&6
4530 else
4531   ac_check_lib_save_LIBS=$LIBS
4532 LIBS="-lgif  $LIBS"
4533 cat >conftest.$ac_ext <<_ACEOF
4534 /* confdefs.h.  */
4535 _ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h.  */
4539
4540 /* Override any GCC internal prototype to avoid an error.
4541    Use char because int might match the return type of a GCC
4542    builtin and then its argument prototype would still apply.  */
4543 #ifdef __cplusplus
4544 extern "C"
4545 #endif
4546 char DGifOpen ();
4547 int
4548 main ()
4549 {
4550 return DGifOpen ();
4551   ;
4552   return 0;
4553 }
4554 _ACEOF
4555 rm -f conftest.$ac_objext conftest$ac_exeext
4556 if { (ac_try="$ac_link"
4557 case "(($ac_try" in
4558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559   *) ac_try_echo=$ac_try;;
4560 esac
4561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562 $as_echo "$ac_try_echo") >&5
4563   (eval "$ac_link") 2>conftest.er1
4564   ac_status=$?
4565   grep -v '^ *+' conftest.er1 >conftest.err
4566   rm -f conftest.er1
4567   cat conftest.err >&5
4568   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569   (exit $ac_status); } && {
4570          test -z "$ac_c_werror_flag" ||
4571          test ! -s conftest.err
4572        } && test -s conftest$ac_exeext && {
4573          test "$cross_compiling" = yes ||
4574          $as_test_x conftest$ac_exeext
4575        }; then
4576   ac_cv_lib_gif_DGifOpen=yes
4577 else
4578   $as_echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4580
4581         ac_cv_lib_gif_DGifOpen=no
4582 fi
4583
4584 rm -rf conftest.dSYM
4585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4586       conftest$ac_exeext conftest.$ac_ext
4587 LIBS=$ac_check_lib_save_LIBS
4588 fi
4589 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4590 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4591 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4592   cat >>confdefs.h <<_ACEOF
4593 #define HAVE_LIBGIF 1
4594 _ACEOF
4595
4596   LIBS="-lgif $LIBS"
4597
4598 else
4599   UNGIFMISSING=true
4600 fi
4601
4602 fi
4603
4604
4605 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4606 $as_echo_n "checking for byte order... " >&6; }
4607 if test "$cross_compiling" = yes; then
4608   CROSSCOMPILE=1
4609 else
4610   cat >conftest.$ac_ext <<_ACEOF
4611 /* confdefs.h.  */
4612 _ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h.  */
4616
4617 int main (int argc, char *argv[])
4618 {
4619     int i = 1;
4620     return *(char*)&i;
4621 }
4622
4623 _ACEOF
4624 rm -f conftest$ac_exeext
4625 if { (ac_try="$ac_link"
4626 case "(($ac_try" in
4627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628   *) ac_try_echo=$ac_try;;
4629 esac
4630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4631 $as_echo "$ac_try_echo") >&5
4632   (eval "$ac_link") 2>&5
4633   ac_status=$?
4634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4636   { (case "(($ac_try" in
4637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638   *) ac_try_echo=$ac_try;;
4639 esac
4640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4641 $as_echo "$ac_try_echo") >&5
4642   (eval "$ac_try") 2>&5
4643   ac_status=$?
4644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645   (exit $ac_status); }; }; then
4646   BIGENDIAN=1
4647 else
4648   $as_echo "$as_me: program exited with status $ac_status" >&5
4649 $as_echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4651
4652 ( exit $ac_status )
4653 LITTLEENDIAN=1
4654 fi
4655 rm -rf conftest.dSYM
4656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4657 fi
4658
4659
4660 export CROSSCOMPILE
4661
4662 if test "x${CROSSCOMPILE}" = "x1"; then
4663  { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4664 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4665  { $as_echo "$as_me:$LINENO: checking target system type" >&5
4666 $as_echo_n "checking target system type... " >&6; }
4667 if test "${ac_cv_target+set}" = set; then
4668   $as_echo_n "(cached) " >&6
4669 else
4670   if test "x$target_alias" = x; then
4671   ac_cv_target=$ac_cv_host
4672 else
4673   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4674     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4675 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4676    { (exit 1); exit 1; }; }
4677 fi
4678
4679 fi
4680 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4681 $as_echo "$ac_cv_target" >&6; }
4682 case $ac_cv_target in
4683 *-*-*) ;;
4684 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4685 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4686    { (exit 1); exit 1; }; };;
4687 esac
4688 target=$ac_cv_target
4689 ac_save_IFS=$IFS; IFS='-'
4690 set x $ac_cv_target
4691 shift
4692 target_cpu=$1
4693 target_vendor=$2
4694 shift; shift
4695 # Remember, the first character of IFS is used to create $*,
4696 # except with old shells:
4697 target_os=$*
4698 IFS=$ac_save_IFS
4699 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4700
4701
4702 # The aliases save the names the user supplied, while $host etc.
4703 # will get canonicalized.
4704 test -n "$target_alias" &&
4705   test "$program_prefix$program_suffix$program_transform_name" = \
4706     NONENONEs,x,x, &&
4707   program_prefix=${target_alias}-
4708  { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4709 $as_echo_n "checking for byte order, try 2... " >&6; }
4710  case "${target}" in
4711   *86* | *-pc-* )
4712      LITTLEENDIAN=1
4713      ;;
4714   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4715      BIGENDIAN=1
4716      ;;
4717  esac
4718 fi
4719
4720 export LITTLEENDIAN
4721 if test "x${LITTLEENDIAN}" = "x1"; then
4722 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4723 $as_echo "little endian" >&6; }
4724 BYTEORDERCHECKOK=1
4725 fi
4726 export BIGENDIAN
4727 if test "x${BIGENDIAN}" = "x1"; then
4728 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4729 $as_echo "big endian" >&6; }
4730 BYTEORDERCHECKOK=1
4731 WORDS_BIGENDIAN=1
4732 export WORDS_BIGENDIAN
4733
4734 cat >>confdefs.h <<\_ACEOF
4735 #define WORDS_BIGENDIAN 1
4736 _ACEOF
4737
4738 fi
4739 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4740 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4741 $as_echo "unknown" >&6; }
4742 echo Byte order could not determined.
4743 exit 1
4744 fi
4745
4746
4747
4748 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4749 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4750 if test "$cross_compiling" = yes; then
4751   CROSSCOMPILE=1
4752 else
4753   cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h.  */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h.  */
4759
4760 #include "stdlib.h"
4761 int main (int argc, char*argv[])
4762 {
4763     return system("test `touch config.tmp2`");
4764 }
4765
4766 _ACEOF
4767 rm -f conftest$ac_exeext
4768 if { (ac_try="$ac_link"
4769 case "(($ac_try" in
4770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771   *) ac_try_echo=$ac_try;;
4772 esac
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775   (eval "$ac_link") 2>&5
4776   ac_status=$?
4777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4779   { (case "(($ac_try" in
4780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781   *) ac_try_echo=$ac_try;;
4782 esac
4783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4784 $as_echo "$ac_try_echo") >&5
4785   (eval "$ac_try") 2>&5
4786   ac_status=$?
4787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); }; }; then
4789   OK=OK
4790 else
4791   $as_echo "$as_me: program exited with status $ac_status" >&5
4792 $as_echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4794
4795 fi
4796 rm -rf conftest.dSYM
4797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4798 fi
4799
4800
4801
4802 if test "x${OK}" = "xOK";then
4803     test -f config.tmp2 || OK=
4804 fi
4805
4806 if test "x${CROSSCOMPILE}" = "x1";then
4807     OK=no;
4808 fi
4809 if test "x${OK}" = "xOK";then
4810 rm -f config.tmp2
4811 { $as_echo "$as_me:$LINENO: result: yes" >&5
4812 $as_echo "yes" >&6; }
4813 SYSTEM_BACKTICKS=1
4814 export SYSTEM_BACKTICKS
4815
4816 cat >>confdefs.h <<\_ACEOF
4817 #define SYSTEM_BACKTICKS 1
4818 _ACEOF
4819
4820 else
4821 { $as_echo "$as_me:$LINENO: result: no" >&5
4822 $as_echo "no" >&6; }
4823 fi
4824
4825
4826
4827 test "$program_prefix" != NONE &&
4828   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4829 # Use a double $ so make ignores it.
4830 test "$program_suffix" != NONE &&
4831   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4832 # Double any \ or $.
4833 # By default was `s,x,x', remove it if useless.
4834 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4835 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4836
4837
4838  ac_config_headers="$ac_config_headers config.h"
4839
4840
4841
4842
4843
4844
4845 ac_header_dirent=no
4846 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4847   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4848 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4849 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4851   $as_echo_n "(cached) " >&6
4852 else
4853   cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h.  */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h.  */
4859 #include <sys/types.h>
4860 #include <$ac_hdr>
4861
4862 int
4863 main ()
4864 {
4865 if ((DIR *) 0)
4866 return 0;
4867   ;
4868   return 0;
4869 }
4870 _ACEOF
4871 rm -f conftest.$ac_objext
4872 if { (ac_try="$ac_compile"
4873 case "(($ac_try" in
4874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875   *) ac_try_echo=$ac_try;;
4876 esac
4877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4878 $as_echo "$ac_try_echo") >&5
4879   (eval "$ac_compile") 2>conftest.er1
4880   ac_status=$?
4881   grep -v '^ *+' conftest.er1 >conftest.err
4882   rm -f conftest.er1
4883   cat conftest.err >&5
4884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885   (exit $ac_status); } && {
4886          test -z "$ac_c_werror_flag" ||
4887          test ! -s conftest.err
4888        } && test -s conftest.$ac_objext; then
4889   eval "$as_ac_Header=yes"
4890 else
4891   $as_echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4893
4894         eval "$as_ac_Header=no"
4895 fi
4896
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 fi
4899 ac_res=`eval 'as_val=${'$as_ac_Header'}
4900                  $as_echo "$as_val"'`
4901                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4902 $as_echo "$ac_res" >&6; }
4903 as_val=`eval 'as_val=${'$as_ac_Header'}
4904                  $as_echo "$as_val"'`
4905    if test "x$as_val" = x""yes; then
4906   cat >>confdefs.h <<_ACEOF
4907 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4908 _ACEOF
4909
4910 ac_header_dirent=$ac_hdr; break
4911 fi
4912
4913 done
4914 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4915 if test $ac_header_dirent = dirent.h; then
4916   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4917 $as_echo_n "checking for library containing opendir... " >&6; }
4918 if test "${ac_cv_search_opendir+set}" = set; then
4919   $as_echo_n "(cached) " >&6
4920 else
4921   ac_func_search_save_LIBS=$LIBS
4922 cat >conftest.$ac_ext <<_ACEOF
4923 /* confdefs.h.  */
4924 _ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h.  */
4928
4929 /* Override any GCC internal prototype to avoid an error.
4930    Use char because int might match the return type of a GCC
4931    builtin and then its argument prototype would still apply.  */
4932 #ifdef __cplusplus
4933 extern "C"
4934 #endif
4935 char opendir ();
4936 int
4937 main ()
4938 {
4939 return opendir ();
4940   ;
4941   return 0;
4942 }
4943 _ACEOF
4944 for ac_lib in '' dir; do
4945   if test -z "$ac_lib"; then
4946     ac_res="none required"
4947   else
4948     ac_res=-l$ac_lib
4949     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4950   fi
4951   rm -f conftest.$ac_objext conftest$ac_exeext
4952 if { (ac_try="$ac_link"
4953 case "(($ac_try" in
4954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955   *) ac_try_echo=$ac_try;;
4956 esac
4957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4958 $as_echo "$ac_try_echo") >&5
4959   (eval "$ac_link") 2>conftest.er1
4960   ac_status=$?
4961   grep -v '^ *+' conftest.er1 >conftest.err
4962   rm -f conftest.er1
4963   cat conftest.err >&5
4964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965   (exit $ac_status); } && {
4966          test -z "$ac_c_werror_flag" ||
4967          test ! -s conftest.err
4968        } && test -s conftest$ac_exeext && {
4969          test "$cross_compiling" = yes ||
4970          $as_test_x conftest$ac_exeext
4971        }; then
4972   ac_cv_search_opendir=$ac_res
4973 else
4974   $as_echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4976
4977
4978 fi
4979
4980 rm -rf conftest.dSYM
4981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4982       conftest$ac_exeext
4983   if test "${ac_cv_search_opendir+set}" = set; then
4984   break
4985 fi
4986 done
4987 if test "${ac_cv_search_opendir+set}" = set; then
4988   :
4989 else
4990   ac_cv_search_opendir=no
4991 fi
4992 rm conftest.$ac_ext
4993 LIBS=$ac_func_search_save_LIBS
4994 fi
4995 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4996 $as_echo "$ac_cv_search_opendir" >&6; }
4997 ac_res=$ac_cv_search_opendir
4998 if test "$ac_res" != no; then
4999   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5000
5001 fi
5002
5003 else
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 '' x; 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 fi
5092
5093
5094 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5095 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5096 if test "${ac_cv_path_GREP+set}" = set; then
5097   $as_echo_n "(cached) " >&6
5098 else
5099   if test -z "$GREP"; then
5100   ac_path_GREP_found=false
5101   # Loop through the user's path and test for each of PROGNAME-LIST
5102   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5104 do
5105   IFS=$as_save_IFS
5106   test -z "$as_dir" && as_dir=.
5107   for ac_prog in grep ggrep; do
5108     for ac_exec_ext in '' $ac_executable_extensions; do
5109       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5110       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5111 # Check for GNU ac_path_GREP and select it if it is found.
5112   # Check for GNU $ac_path_GREP
5113 case `"$ac_path_GREP" --version 2>&1` in
5114 *GNU*)
5115   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5116 *)
5117   ac_count=0
5118   $as_echo_n 0123456789 >"conftest.in"
5119   while :
5120   do
5121     cat "conftest.in" "conftest.in" >"conftest.tmp"
5122     mv "conftest.tmp" "conftest.in"
5123     cp "conftest.in" "conftest.nl"
5124     $as_echo 'GREP' >> "conftest.nl"
5125     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127     ac_count=`expr $ac_count + 1`
5128     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5129       # Best one so far, save it but keep looking for a better one
5130       ac_cv_path_GREP="$ac_path_GREP"
5131       ac_path_GREP_max=$ac_count
5132     fi
5133     # 10*(2^10) chars as input seems more than enough
5134     test $ac_count -gt 10 && break
5135   done
5136   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5137 esac
5138
5139       $ac_path_GREP_found && break 3
5140     done
5141   done
5142 done
5143 IFS=$as_save_IFS
5144   if test -z "$ac_cv_path_GREP"; then
5145     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5146 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5147    { (exit 1); exit 1; }; }
5148   fi
5149 else
5150   ac_cv_path_GREP=$GREP
5151 fi
5152
5153 fi
5154 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5155 $as_echo "$ac_cv_path_GREP" >&6; }
5156  GREP="$ac_cv_path_GREP"
5157
5158
5159 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5160 $as_echo_n "checking for egrep... " >&6; }
5161 if test "${ac_cv_path_EGREP+set}" = set; then
5162   $as_echo_n "(cached) " >&6
5163 else
5164   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5165    then ac_cv_path_EGREP="$GREP -E"
5166    else
5167      if test -z "$EGREP"; then
5168   ac_path_EGREP_found=false
5169   # Loop through the user's path and test for each of PROGNAME-LIST
5170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172 do
5173   IFS=$as_save_IFS
5174   test -z "$as_dir" && as_dir=.
5175   for ac_prog in egrep; do
5176     for ac_exec_ext in '' $ac_executable_extensions; do
5177       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5178       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5179 # Check for GNU ac_path_EGREP and select it if it is found.
5180   # Check for GNU $ac_path_EGREP
5181 case `"$ac_path_EGREP" --version 2>&1` in
5182 *GNU*)
5183   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5184 *)
5185   ac_count=0
5186   $as_echo_n 0123456789 >"conftest.in"
5187   while :
5188   do
5189     cat "conftest.in" "conftest.in" >"conftest.tmp"
5190     mv "conftest.tmp" "conftest.in"
5191     cp "conftest.in" "conftest.nl"
5192     $as_echo 'EGREP' >> "conftest.nl"
5193     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5194     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5195     ac_count=`expr $ac_count + 1`
5196     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5197       # Best one so far, save it but keep looking for a better one
5198       ac_cv_path_EGREP="$ac_path_EGREP"
5199       ac_path_EGREP_max=$ac_count
5200     fi
5201     # 10*(2^10) chars as input seems more than enough
5202     test $ac_count -gt 10 && break
5203   done
5204   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5205 esac
5206
5207       $ac_path_EGREP_found && break 3
5208     done
5209   done
5210 done
5211 IFS=$as_save_IFS
5212   if test -z "$ac_cv_path_EGREP"; then
5213     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5214 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5215    { (exit 1); exit 1; }; }
5216   fi
5217 else
5218   ac_cv_path_EGREP=$EGREP
5219 fi
5220
5221    fi
5222 fi
5223 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5224 $as_echo "$ac_cv_path_EGREP" >&6; }
5225  EGREP="$ac_cv_path_EGREP"
5226
5227
5228 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5229 $as_echo_n "checking for ANSI C header files... " >&6; }
5230 if test "${ac_cv_header_stdc+set}" = set; then
5231   $as_echo_n "(cached) " >&6
5232 else
5233   cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h.  */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h.  */
5239 #include <stdlib.h>
5240 #include <stdarg.h>
5241 #include <string.h>
5242 #include <float.h>
5243
5244 int
5245 main ()
5246 {
5247
5248   ;
5249   return 0;
5250 }
5251 _ACEOF
5252 rm -f conftest.$ac_objext
5253 if { (ac_try="$ac_compile"
5254 case "(($ac_try" in
5255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256   *) ac_try_echo=$ac_try;;
5257 esac
5258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5259 $as_echo "$ac_try_echo") >&5
5260   (eval "$ac_compile") 2>conftest.er1
5261   ac_status=$?
5262   grep -v '^ *+' conftest.er1 >conftest.err
5263   rm -f conftest.er1
5264   cat conftest.err >&5
5265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266   (exit $ac_status); } && {
5267          test -z "$ac_c_werror_flag" ||
5268          test ! -s conftest.err
5269        } && test -s conftest.$ac_objext; then
5270   ac_cv_header_stdc=yes
5271 else
5272   $as_echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5274
5275         ac_cv_header_stdc=no
5276 fi
5277
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279
5280 if test $ac_cv_header_stdc = yes; then
5281   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5282   cat >conftest.$ac_ext <<_ACEOF
5283 /* confdefs.h.  */
5284 _ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h.  */
5288 #include <string.h>
5289
5290 _ACEOF
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292   $EGREP "memchr" >/dev/null 2>&1; then
5293   :
5294 else
5295   ac_cv_header_stdc=no
5296 fi
5297 rm -f conftest*
5298
5299 fi
5300
5301 if test $ac_cv_header_stdc = yes; then
5302   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5303   cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h.  */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h.  */
5309 #include <stdlib.h>
5310
5311 _ACEOF
5312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5313   $EGREP "free" >/dev/null 2>&1; then
5314   :
5315 else
5316   ac_cv_header_stdc=no
5317 fi
5318 rm -f conftest*
5319
5320 fi
5321
5322 if test $ac_cv_header_stdc = yes; then
5323   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5324   if test "$cross_compiling" = yes; then
5325   :
5326 else
5327   cat >conftest.$ac_ext <<_ACEOF
5328 /* confdefs.h.  */
5329 _ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h.  */
5333 #include <ctype.h>
5334 #include <stdlib.h>
5335 #if ((' ' & 0x0FF) == 0x020)
5336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5338 #else
5339 # define ISLOWER(c) \
5340                    (('a' <= (c) && (c) <= 'i') \
5341                      || ('j' <= (c) && (c) <= 'r') \
5342                      || ('s' <= (c) && (c) <= 'z'))
5343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5344 #endif
5345
5346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5347 int
5348 main ()
5349 {
5350   int i;
5351   for (i = 0; i < 256; i++)
5352     if (XOR (islower (i), ISLOWER (i))
5353         || toupper (i) != TOUPPER (i))
5354       return 2;
5355   return 0;
5356 }
5357 _ACEOF
5358 rm -f conftest$ac_exeext
5359 if { (ac_try="$ac_link"
5360 case "(($ac_try" in
5361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362   *) ac_try_echo=$ac_try;;
5363 esac
5364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5365 $as_echo "$ac_try_echo") >&5
5366   (eval "$ac_link") 2>&5
5367   ac_status=$?
5368   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5370   { (case "(($ac_try" in
5371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372   *) ac_try_echo=$ac_try;;
5373 esac
5374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5375 $as_echo "$ac_try_echo") >&5
5376   (eval "$ac_try") 2>&5
5377   ac_status=$?
5378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379   (exit $ac_status); }; }; then
5380   :
5381 else
5382   $as_echo "$as_me: program exited with status $ac_status" >&5
5383 $as_echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5385
5386 ( exit $ac_status )
5387 ac_cv_header_stdc=no
5388 fi
5389 rm -rf conftest.dSYM
5390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5391 fi
5392
5393
5394 fi
5395 fi
5396 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5397 $as_echo "$ac_cv_header_stdc" >&6; }
5398 if test $ac_cv_header_stdc = yes; then
5399
5400 cat >>confdefs.h <<\_ACEOF
5401 #define STDC_HEADERS 1
5402 _ACEOF
5403
5404 fi
5405
5406
5407  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5418                   inttypes.h stdint.h unistd.h
5419 do
5420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5421 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5422 $as_echo_n "checking for $ac_header... " >&6; }
5423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5424   $as_echo_n "(cached) " >&6
5425 else
5426   cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h.  */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h.  */
5432 $ac_includes_default
5433
5434 #include <$ac_header>
5435 _ACEOF
5436 rm -f conftest.$ac_objext
5437 if { (ac_try="$ac_compile"
5438 case "(($ac_try" in
5439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440   *) ac_try_echo=$ac_try;;
5441 esac
5442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5443 $as_echo "$ac_try_echo") >&5
5444   (eval "$ac_compile") 2>conftest.er1
5445   ac_status=$?
5446   grep -v '^ *+' conftest.er1 >conftest.err
5447   rm -f conftest.er1
5448   cat conftest.err >&5
5449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450   (exit $ac_status); } && {
5451          test -z "$ac_c_werror_flag" ||
5452          test ! -s conftest.err
5453        } && test -s conftest.$ac_objext; then
5454   eval "$as_ac_Header=yes"
5455 else
5456   $as_echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5458
5459         eval "$as_ac_Header=no"
5460 fi
5461
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 fi
5464 ac_res=`eval 'as_val=${'$as_ac_Header'}
5465                  $as_echo "$as_val"'`
5466                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5467 $as_echo "$ac_res" >&6; }
5468 as_val=`eval 'as_val=${'$as_ac_Header'}
5469                  $as_echo "$as_val"'`
5470    if test "x$as_val" = x""yes; then
5471   cat >>confdefs.h <<_ACEOF
5472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5473 _ACEOF
5474
5475 fi
5476
5477 done
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500 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
5501 do
5502 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5504   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5505 $as_echo_n "checking for $ac_header... " >&6; }
5506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5507   $as_echo_n "(cached) " >&6
5508 fi
5509 ac_res=`eval 'as_val=${'$as_ac_Header'}
5510                  $as_echo "$as_val"'`
5511                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5512 $as_echo "$ac_res" >&6; }
5513 else
5514   # Is the header compilable?
5515 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5516 $as_echo_n "checking $ac_header usability... " >&6; }
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h.  */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h.  */
5523 $ac_includes_default
5524 #include <$ac_header>
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5528 case "(($ac_try" in
5529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530   *) ac_try_echo=$ac_try;;
5531 esac
5532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5533 $as_echo "$ac_try_echo") >&5
5534   (eval "$ac_compile") 2>conftest.er1
5535   ac_status=$?
5536   grep -v '^ *+' conftest.er1 >conftest.err
5537   rm -f conftest.er1
5538   cat conftest.err >&5
5539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540   (exit $ac_status); } && {
5541          test -z "$ac_c_werror_flag" ||
5542          test ! -s conftest.err
5543        } && test -s conftest.$ac_objext; then
5544   ac_header_compiler=yes
5545 else
5546   $as_echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5548
5549         ac_header_compiler=no
5550 fi
5551
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5554 $as_echo "$ac_header_compiler" >&6; }
5555
5556 # Is the header present?
5557 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5558 $as_echo_n "checking $ac_header presence... " >&6; }
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h.  */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h.  */
5565 #include <$ac_header>
5566 _ACEOF
5567 if { (ac_try="$ac_cpp conftest.$ac_ext"
5568 case "(($ac_try" in
5569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570   *) ac_try_echo=$ac_try;;
5571 esac
5572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5573 $as_echo "$ac_try_echo") >&5
5574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5575   ac_status=$?
5576   grep -v '^ *+' conftest.er1 >conftest.err
5577   rm -f conftest.er1
5578   cat conftest.err >&5
5579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); } >/dev/null && {
5581          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5582          test ! -s conftest.err
5583        }; then
5584   ac_header_preproc=yes
5585 else
5586   $as_echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5588
5589   ac_header_preproc=no
5590 fi
5591
5592 rm -f conftest.err conftest.$ac_ext
5593 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5594 $as_echo "$ac_header_preproc" >&6; }
5595
5596 # So?  What about this header?
5597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5598   yes:no: )
5599     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5600 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5601     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5602 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5603     ac_header_preproc=yes
5604     ;;
5605   no:yes:* )
5606     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5607 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5608     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5609 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5610     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5611 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5612     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5613 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5614     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5615 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5616     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5617 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5618
5619     ;;
5620 esac
5621 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5622 $as_echo_n "checking for $ac_header... " >&6; }
5623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5624   $as_echo_n "(cached) " >&6
5625 else
5626   eval "$as_ac_Header=\$ac_header_preproc"
5627 fi
5628 ac_res=`eval 'as_val=${'$as_ac_Header'}
5629                  $as_echo "$as_val"'`
5630                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5631 $as_echo "$ac_res" >&6; }
5632
5633 fi
5634 as_val=`eval 'as_val=${'$as_ac_Header'}
5635                  $as_echo "$as_val"'`
5636    if test "x$as_val" = x""yes; then
5637   cat >>confdefs.h <<_ACEOF
5638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5639 _ACEOF
5640
5641 fi
5642
5643 done
5644
5645
5646
5647 cat >>confdefs.h <<_ACEOF
5648 #define PACKAGE "$PACKAGE"
5649 _ACEOF
5650
5651
5652 cat >>confdefs.h <<_ACEOF
5653 #define VERSION "$VERSION"
5654 _ACEOF
5655
5656
5657
5658
5659
5660
5661
5662  { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5663 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5664 if test "${ac_cv_c_const+set}" = set; then
5665   $as_echo_n "(cached) " >&6
5666 else
5667   cat >conftest.$ac_ext <<_ACEOF
5668 /* confdefs.h.  */
5669 _ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h.  */
5673
5674 int
5675 main ()
5676 {
5677 /* FIXME: Include the comments suggested by Paul. */
5678 #ifndef __cplusplus
5679   /* Ultrix mips cc rejects this.  */
5680   typedef int charset[2];
5681   const charset cs;
5682   /* SunOS 4.1.1 cc rejects this.  */
5683   char const *const *pcpcc;
5684   char **ppc;
5685   /* NEC SVR4.0.2 mips cc rejects this.  */
5686   struct point {int x, y;};
5687   static struct point const zero = {0,0};
5688   /* AIX XL C 1.02.0.0 rejects this.
5689      It does not let you subtract one const X* pointer from another in
5690      an arm of an if-expression whose if-part is not a constant
5691      expression */
5692   const char *g = "string";
5693   pcpcc = &g + (g ? g-g : 0);
5694   /* HPUX 7.0 cc rejects these. */
5695   ++pcpcc;
5696   ppc = (char**) pcpcc;
5697   pcpcc = (char const *const *) ppc;
5698   { /* SCO 3.2v4 cc rejects this.  */
5699     char *t;
5700     char const *s = 0 ? (char *) 0 : (char const *) 0;
5701
5702     *t++ = 0;
5703     if (s) return 0;
5704   }
5705   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5706     int x[] = {25, 17};
5707     const int *foo = &x[0];
5708     ++foo;
5709   }
5710   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5711     typedef const int *iptr;
5712     iptr p = 0;
5713     ++p;
5714   }
5715   { /* AIX XL C 1.02.0.0 rejects this saying
5716        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5717     struct s { int j; const int *ap[3]; };
5718     struct s *b; b->j = 5;
5719   }
5720   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5721     const int foo = 10;
5722     if (!foo) return 0;
5723   }
5724   return !cs[0] && !zero.x;
5725 #endif
5726
5727   ;
5728   return 0;
5729 }
5730 _ACEOF
5731 rm -f conftest.$ac_objext
5732 if { (ac_try="$ac_compile"
5733 case "(($ac_try" in
5734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735   *) ac_try_echo=$ac_try;;
5736 esac
5737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5738 $as_echo "$ac_try_echo") >&5
5739   (eval "$ac_compile") 2>conftest.er1
5740   ac_status=$?
5741   grep -v '^ *+' conftest.er1 >conftest.err
5742   rm -f conftest.er1
5743   cat conftest.err >&5
5744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745   (exit $ac_status); } && {
5746          test -z "$ac_c_werror_flag" ||
5747          test ! -s conftest.err
5748        } && test -s conftest.$ac_objext; then
5749   ac_cv_c_const=yes
5750 else
5751   $as_echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5753
5754         ac_cv_c_const=no
5755 fi
5756
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5758 fi
5759 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5760 $as_echo "$ac_cv_c_const" >&6; }
5761 if test $ac_cv_c_const = no; then
5762
5763 cat >>confdefs.h <<\_ACEOF
5764 #define const /**/
5765 _ACEOF
5766
5767 fi
5768
5769  { $as_echo "$as_me:$LINENO: checking for inline" >&5
5770 $as_echo_n "checking for inline... " >&6; }
5771 if test "${ac_cv_c_inline+set}" = set; then
5772   $as_echo_n "(cached) " >&6
5773 else
5774   ac_cv_c_inline=no
5775 for ac_kw in inline __inline__ __inline; do
5776   cat >conftest.$ac_ext <<_ACEOF
5777 /* confdefs.h.  */
5778 _ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h.  */
5782 #ifndef __cplusplus
5783 typedef int foo_t;
5784 static $ac_kw foo_t static_foo () {return 0; }
5785 $ac_kw foo_t foo () {return 0; }
5786 #endif
5787
5788 _ACEOF
5789 rm -f conftest.$ac_objext
5790 if { (ac_try="$ac_compile"
5791 case "(($ac_try" in
5792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793   *) ac_try_echo=$ac_try;;
5794 esac
5795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5796 $as_echo "$ac_try_echo") >&5
5797   (eval "$ac_compile") 2>conftest.er1
5798   ac_status=$?
5799   grep -v '^ *+' conftest.er1 >conftest.err
5800   rm -f conftest.er1
5801   cat conftest.err >&5
5802   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803   (exit $ac_status); } && {
5804          test -z "$ac_c_werror_flag" ||
5805          test ! -s conftest.err
5806        } && test -s conftest.$ac_objext; then
5807   ac_cv_c_inline=$ac_kw
5808 else
5809   $as_echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5811
5812
5813 fi
5814
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816   test "$ac_cv_c_inline" != no && break
5817 done
5818
5819 fi
5820 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5821 $as_echo "$ac_cv_c_inline" >&6; }
5822
5823
5824 case $ac_cv_c_inline in
5825   inline | yes) ;;
5826   *)
5827     case $ac_cv_c_inline in
5828       no) ac_val=;;
5829       *) ac_val=$ac_cv_c_inline;;
5830     esac
5831     cat >>confdefs.h <<_ACEOF
5832 #ifndef __cplusplus
5833 #define inline $ac_val
5834 #endif
5835 _ACEOF
5836     ;;
5837 esac
5838
5839  { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5840 $as_echo_n "checking for off_t... " >&6; }
5841 if test "${ac_cv_type_off_t+set}" = set; then
5842   $as_echo_n "(cached) " >&6
5843 else
5844   ac_cv_type_off_t=no
5845 cat >conftest.$ac_ext <<_ACEOF
5846 /* confdefs.h.  */
5847 _ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h.  */
5851 $ac_includes_default
5852 int
5853 main ()
5854 {
5855 if (sizeof (off_t))
5856        return 0;
5857   ;
5858   return 0;
5859 }
5860 _ACEOF
5861 rm -f conftest.$ac_objext
5862 if { (ac_try="$ac_compile"
5863 case "(($ac_try" in
5864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865   *) ac_try_echo=$ac_try;;
5866 esac
5867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5868 $as_echo "$ac_try_echo") >&5
5869   (eval "$ac_compile") 2>conftest.er1
5870   ac_status=$?
5871   grep -v '^ *+' conftest.er1 >conftest.err
5872   rm -f conftest.er1
5873   cat conftest.err >&5
5874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875   (exit $ac_status); } && {
5876          test -z "$ac_c_werror_flag" ||
5877          test ! -s conftest.err
5878        } && test -s conftest.$ac_objext; then
5879   cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h.  */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h.  */
5885 $ac_includes_default
5886 int
5887 main ()
5888 {
5889 if (sizeof ((off_t)))
5890           return 0;
5891   ;
5892   return 0;
5893 }
5894 _ACEOF
5895 rm -f conftest.$ac_objext
5896 if { (ac_try="$ac_compile"
5897 case "(($ac_try" in
5898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899   *) ac_try_echo=$ac_try;;
5900 esac
5901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5902 $as_echo "$ac_try_echo") >&5
5903   (eval "$ac_compile") 2>conftest.er1
5904   ac_status=$?
5905   grep -v '^ *+' conftest.er1 >conftest.err
5906   rm -f conftest.er1
5907   cat conftest.err >&5
5908   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909   (exit $ac_status); } && {
5910          test -z "$ac_c_werror_flag" ||
5911          test ! -s conftest.err
5912        } && test -s conftest.$ac_objext; then
5913   :
5914 else
5915   $as_echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5917
5918         ac_cv_type_off_t=yes
5919 fi
5920
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 else
5923   $as_echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5925
5926
5927 fi
5928
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 fi
5931 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5932 $as_echo "$ac_cv_type_off_t" >&6; }
5933 if test "x$ac_cv_type_off_t" = x""yes; then
5934   :
5935 else
5936
5937 cat >>confdefs.h <<_ACEOF
5938 #define off_t long int
5939 _ACEOF
5940
5941 fi
5942
5943  { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5944 $as_echo_n "checking for size_t... " >&6; }
5945 if test "${ac_cv_type_size_t+set}" = set; then
5946   $as_echo_n "(cached) " >&6
5947 else
5948   ac_cv_type_size_t=no
5949 cat >conftest.$ac_ext <<_ACEOF
5950 /* confdefs.h.  */
5951 _ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h.  */
5955 $ac_includes_default
5956 int
5957 main ()
5958 {
5959 if (sizeof (size_t))
5960        return 0;
5961   ;
5962   return 0;
5963 }
5964 _ACEOF
5965 rm -f conftest.$ac_objext
5966 if { (ac_try="$ac_compile"
5967 case "(($ac_try" in
5968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969   *) ac_try_echo=$ac_try;;
5970 esac
5971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5972 $as_echo "$ac_try_echo") >&5
5973   (eval "$ac_compile") 2>conftest.er1
5974   ac_status=$?
5975   grep -v '^ *+' conftest.er1 >conftest.err
5976   rm -f conftest.er1
5977   cat conftest.err >&5
5978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979   (exit $ac_status); } && {
5980          test -z "$ac_c_werror_flag" ||
5981          test ! -s conftest.err
5982        } && test -s conftest.$ac_objext; then
5983   cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h.  */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h.  */
5989 $ac_includes_default
5990 int
5991 main ()
5992 {
5993 if (sizeof ((size_t)))
5994           return 0;
5995   ;
5996   return 0;
5997 }
5998 _ACEOF
5999 rm -f conftest.$ac_objext
6000 if { (ac_try="$ac_compile"
6001 case "(($ac_try" in
6002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003   *) ac_try_echo=$ac_try;;
6004 esac
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007   (eval "$ac_compile") 2>conftest.er1
6008   ac_status=$?
6009   grep -v '^ *+' conftest.er1 >conftest.err
6010   rm -f conftest.er1
6011   cat conftest.err >&5
6012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013   (exit $ac_status); } && {
6014          test -z "$ac_c_werror_flag" ||
6015          test ! -s conftest.err
6016        } && test -s conftest.$ac_objext; then
6017   :
6018 else
6019   $as_echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6021
6022         ac_cv_type_size_t=yes
6023 fi
6024
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 else
6027   $as_echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6029
6030
6031 fi
6032
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 fi
6035 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6036 $as_echo "$ac_cv_type_size_t" >&6; }
6037 if test "x$ac_cv_type_size_t" = x""yes; then
6038   :
6039 else
6040
6041 cat >>confdefs.h <<_ACEOF
6042 #define size_t unsigned int
6043 _ACEOF
6044
6045 fi
6046
6047  { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6048 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6049 if test "${ac_cv_struct_tm+set}" = set; then
6050   $as_echo_n "(cached) " >&6
6051 else
6052   cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h.  */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h.  */
6058 #include <sys/types.h>
6059 #include <time.h>
6060
6061 int
6062 main ()
6063 {
6064 struct tm tm;
6065                                      int *p = &tm.tm_sec;
6066                                      return !p;
6067   ;
6068   return 0;
6069 }
6070 _ACEOF
6071 rm -f conftest.$ac_objext
6072 if { (ac_try="$ac_compile"
6073 case "(($ac_try" in
6074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075   *) ac_try_echo=$ac_try;;
6076 esac
6077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6078 $as_echo "$ac_try_echo") >&5
6079   (eval "$ac_compile") 2>conftest.er1
6080   ac_status=$?
6081   grep -v '^ *+' conftest.er1 >conftest.err
6082   rm -f conftest.er1
6083   cat conftest.err >&5
6084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085   (exit $ac_status); } && {
6086          test -z "$ac_c_werror_flag" ||
6087          test ! -s conftest.err
6088        } && test -s conftest.$ac_objext; then
6089   ac_cv_struct_tm=time.h
6090 else
6091   $as_echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094         ac_cv_struct_tm=sys/time.h
6095 fi
6096
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6098 fi
6099 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6100 $as_echo "$ac_cv_struct_tm" >&6; }
6101 if test $ac_cv_struct_tm = sys/time.h; then
6102
6103 cat >>confdefs.h <<\_ACEOF
6104 #define TM_IN_SYS_TIME 1
6105 _ACEOF
6106
6107 fi
6108
6109  { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6110 $as_echo_n "checking for boolean... " >&6; }
6111 if test "${ac_cv_type_boolean+set}" = set; then
6112   $as_echo_n "(cached) " >&6
6113 else
6114   ac_cv_type_boolean=no
6115 cat >conftest.$ac_ext <<_ACEOF
6116 /* confdefs.h.  */
6117 _ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h.  */
6121 $ac_includes_default
6122 int
6123 main ()
6124 {
6125 if (sizeof (boolean))
6126        return 0;
6127   ;
6128   return 0;
6129 }
6130 _ACEOF
6131 rm -f conftest.$ac_objext
6132 if { (ac_try="$ac_compile"
6133 case "(($ac_try" in
6134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135   *) ac_try_echo=$ac_try;;
6136 esac
6137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6138 $as_echo "$ac_try_echo") >&5
6139   (eval "$ac_compile") 2>conftest.er1
6140   ac_status=$?
6141   grep -v '^ *+' conftest.er1 >conftest.err
6142   rm -f conftest.er1
6143   cat conftest.err >&5
6144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145   (exit $ac_status); } && {
6146          test -z "$ac_c_werror_flag" ||
6147          test ! -s conftest.err
6148        } && test -s conftest.$ac_objext; then
6149   cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h.  */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h.  */
6155 $ac_includes_default
6156 int
6157 main ()
6158 {
6159 if (sizeof ((boolean)))
6160           return 0;
6161   ;
6162   return 0;
6163 }
6164 _ACEOF
6165 rm -f conftest.$ac_objext
6166 if { (ac_try="$ac_compile"
6167 case "(($ac_try" in
6168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169   *) ac_try_echo=$ac_try;;
6170 esac
6171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6172 $as_echo "$ac_try_echo") >&5
6173   (eval "$ac_compile") 2>conftest.er1
6174   ac_status=$?
6175   grep -v '^ *+' conftest.er1 >conftest.err
6176   rm -f conftest.er1
6177   cat conftest.err >&5
6178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179   (exit $ac_status); } && {
6180          test -z "$ac_c_werror_flag" ||
6181          test ! -s conftest.err
6182        } && test -s conftest.$ac_objext; then
6183   :
6184 else
6185   $as_echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6187
6188         ac_cv_type_boolean=yes
6189 fi
6190
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6192 else
6193   $as_echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196
6197 fi
6198
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 fi
6201 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6202 $as_echo "$ac_cv_type_boolean" >&6; }
6203 if test "x$ac_cv_type_boolean" = x""yes; then
6204   :
6205 else
6206
6207 cat >>confdefs.h <<_ACEOF
6208 #define boolean int
6209 _ACEOF
6210
6211 fi
6212  #needed for jpeglib
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6229 do
6230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6231 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6232 $as_echo_n "checking for $ac_func... " >&6; }
6233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6234   $as_echo_n "(cached) " >&6
6235 else
6236   cat >conftest.$ac_ext <<_ACEOF
6237 /* confdefs.h.  */
6238 _ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h.  */
6242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6244 #define $ac_func innocuous_$ac_func
6245
6246 /* System header to define __stub macros and hopefully few prototypes,
6247     which can conflict with char $ac_func (); below.
6248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6249     <limits.h> exists even on freestanding compilers.  */
6250
6251 #ifdef __STDC__
6252 # include <limits.h>
6253 #else
6254 # include <assert.h>
6255 #endif
6256
6257 #undef $ac_func
6258
6259 /* Override any GCC internal prototype to avoid an error.
6260    Use char because int might match the return type of a GCC
6261    builtin and then its argument prototype would still apply.  */
6262 #ifdef __cplusplus
6263 extern "C"
6264 #endif
6265 char $ac_func ();
6266 /* The GNU C library defines this for functions which it implements
6267     to always fail with ENOSYS.  Some functions are actually named
6268     something starting with __ and the normal name is an alias.  */
6269 #if defined __stub_$ac_func || defined __stub___$ac_func
6270 choke me
6271 #endif
6272
6273 int
6274 main ()
6275 {
6276 return $ac_func ();
6277   ;
6278   return 0;
6279 }
6280 _ACEOF
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (ac_try="$ac_link"
6283 case "(($ac_try" in
6284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285   *) ac_try_echo=$ac_try;;
6286 esac
6287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6288 $as_echo "$ac_try_echo") >&5
6289   (eval "$ac_link") 2>conftest.er1
6290   ac_status=$?
6291   grep -v '^ *+' conftest.er1 >conftest.err
6292   rm -f conftest.er1
6293   cat conftest.err >&5
6294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); } && {
6296          test -z "$ac_c_werror_flag" ||
6297          test ! -s conftest.err
6298        } && test -s conftest$ac_exeext && {
6299          test "$cross_compiling" = yes ||
6300          $as_test_x conftest$ac_exeext
6301        }; then
6302   eval "$as_ac_var=yes"
6303 else
6304   $as_echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6306
6307         eval "$as_ac_var=no"
6308 fi
6309
6310 rm -rf conftest.dSYM
6311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6312       conftest$ac_exeext conftest.$ac_ext
6313 fi
6314 ac_res=`eval 'as_val=${'$as_ac_var'}
6315                  $as_echo "$as_val"'`
6316                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6317 $as_echo "$ac_res" >&6; }
6318 as_val=`eval 'as_val=${'$as_ac_var'}
6319                  $as_echo "$as_val"'`
6320    if test "x$as_val" = x""yes; then
6321   cat >>confdefs.h <<_ACEOF
6322 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6323 _ACEOF
6324
6325 fi
6326 done
6327
6328
6329 # The cast to long int works around a bug in the HP C Compiler
6330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6332 # This bug is HP SR number 8606223364.
6333 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6334 $as_echo_n "checking size of signed char... " >&6; }
6335 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6336   $as_echo_n "(cached) " >&6
6337 else
6338   if test "$cross_compiling" = yes; then
6339   # Depending upon the size, compute the lo and hi bounds.
6340 cat >conftest.$ac_ext <<_ACEOF
6341 /* confdefs.h.  */
6342 _ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h.  */
6346 $ac_includes_default
6347 int
6348 main ()
6349 {
6350 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];
6351 test_array [0] = 0
6352
6353   ;
6354   return 0;
6355 }
6356 _ACEOF
6357 rm -f conftest.$ac_objext
6358 if { (ac_try="$ac_compile"
6359 case "(($ac_try" in
6360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361   *) ac_try_echo=$ac_try;;
6362 esac
6363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6364 $as_echo "$ac_try_echo") >&5
6365   (eval "$ac_compile") 2>conftest.er1
6366   ac_status=$?
6367   grep -v '^ *+' conftest.er1 >conftest.err
6368   rm -f conftest.er1
6369   cat conftest.err >&5
6370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371   (exit $ac_status); } && {
6372          test -z "$ac_c_werror_flag" ||
6373          test ! -s conftest.err
6374        } && test -s conftest.$ac_objext; then
6375   ac_lo=0 ac_mid=0
6376   while :; do
6377     cat >conftest.$ac_ext <<_ACEOF
6378 /* confdefs.h.  */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h.  */
6383 $ac_includes_default
6384 int
6385 main ()
6386 {
6387 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6388 test_array [0] = 0
6389
6390   ;
6391   return 0;
6392 }
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (ac_try="$ac_compile"
6396 case "(($ac_try" in
6397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398   *) ac_try_echo=$ac_try;;
6399 esac
6400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6401 $as_echo "$ac_try_echo") >&5
6402   (eval "$ac_compile") 2>conftest.er1
6403   ac_status=$?
6404   grep -v '^ *+' conftest.er1 >conftest.err
6405   rm -f conftest.er1
6406   cat conftest.err >&5
6407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408   (exit $ac_status); } && {
6409          test -z "$ac_c_werror_flag" ||
6410          test ! -s conftest.err
6411        } && test -s conftest.$ac_objext; then
6412   ac_hi=$ac_mid; break
6413 else
6414   $as_echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6416
6417         ac_lo=`expr $ac_mid + 1`
6418                         if test $ac_lo -le $ac_mid; then
6419                           ac_lo= ac_hi=
6420                           break
6421                         fi
6422                         ac_mid=`expr 2 '*' $ac_mid + 1`
6423 fi
6424
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426   done
6427 else
6428   $as_echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6430
6431         cat >conftest.$ac_ext <<_ACEOF
6432 /* confdefs.h.  */
6433 _ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h.  */
6437 $ac_includes_default
6438 int
6439 main ()
6440 {
6441 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6442 test_array [0] = 0
6443
6444   ;
6445   return 0;
6446 }
6447 _ACEOF
6448 rm -f conftest.$ac_objext
6449 if { (ac_try="$ac_compile"
6450 case "(($ac_try" in
6451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452   *) ac_try_echo=$ac_try;;
6453 esac
6454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6455 $as_echo "$ac_try_echo") >&5
6456   (eval "$ac_compile") 2>conftest.er1
6457   ac_status=$?
6458   grep -v '^ *+' conftest.er1 >conftest.err
6459   rm -f conftest.er1
6460   cat conftest.err >&5
6461   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462   (exit $ac_status); } && {
6463          test -z "$ac_c_werror_flag" ||
6464          test ! -s conftest.err
6465        } && test -s conftest.$ac_objext; then
6466   ac_hi=-1 ac_mid=-1
6467   while :; do
6468     cat >conftest.$ac_ext <<_ACEOF
6469 /* confdefs.h.  */
6470 _ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h.  */
6474 $ac_includes_default
6475 int
6476 main ()
6477 {
6478 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6479 test_array [0] = 0
6480
6481   ;
6482   return 0;
6483 }
6484 _ACEOF
6485 rm -f conftest.$ac_objext
6486 if { (ac_try="$ac_compile"
6487 case "(($ac_try" in
6488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489   *) ac_try_echo=$ac_try;;
6490 esac
6491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6492 $as_echo "$ac_try_echo") >&5
6493   (eval "$ac_compile") 2>conftest.er1
6494   ac_status=$?
6495   grep -v '^ *+' conftest.er1 >conftest.err
6496   rm -f conftest.er1
6497   cat conftest.err >&5
6498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499   (exit $ac_status); } && {
6500          test -z "$ac_c_werror_flag" ||
6501          test ! -s conftest.err
6502        } && test -s conftest.$ac_objext; then
6503   ac_lo=$ac_mid; break
6504 else
6505   $as_echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6507
6508         ac_hi=`expr '(' $ac_mid ')' - 1`
6509                         if test $ac_mid -le $ac_hi; then
6510                           ac_lo= ac_hi=
6511                           break
6512                         fi
6513                         ac_mid=`expr 2 '*' $ac_mid`
6514 fi
6515
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517   done
6518 else
6519   $as_echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6521
6522         ac_lo= ac_hi=
6523 fi
6524
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526 fi
6527
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 # Binary search between lo and hi bounds.
6530 while test "x$ac_lo" != "x$ac_hi"; do
6531   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6532   cat >conftest.$ac_ext <<_ACEOF
6533 /* confdefs.h.  */
6534 _ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h.  */
6538 $ac_includes_default
6539 int
6540 main ()
6541 {
6542 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6543 test_array [0] = 0
6544
6545   ;
6546   return 0;
6547 }
6548 _ACEOF
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6551 case "(($ac_try" in
6552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553   *) ac_try_echo=$ac_try;;
6554 esac
6555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6556 $as_echo "$ac_try_echo") >&5
6557   (eval "$ac_compile") 2>conftest.er1
6558   ac_status=$?
6559   grep -v '^ *+' conftest.er1 >conftest.err
6560   rm -f conftest.er1
6561   cat conftest.err >&5
6562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563   (exit $ac_status); } && {
6564          test -z "$ac_c_werror_flag" ||
6565          test ! -s conftest.err
6566        } && test -s conftest.$ac_objext; then
6567   ac_hi=$ac_mid
6568 else
6569   $as_echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6571
6572         ac_lo=`expr '(' $ac_mid ')' + 1`
6573 fi
6574
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6576 done
6577 case $ac_lo in
6578 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6579 '') if test "$ac_cv_type_signed_char" = yes; then
6580      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6582 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6583 See \`config.log' for more details." >&5
6584 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6585 See \`config.log' for more details." >&2;}
6586    { (exit 77); exit 77; }; }; }
6587    else
6588      ac_cv_sizeof_signed_char=0
6589    fi ;;
6590 esac
6591 else
6592   cat >conftest.$ac_ext <<_ACEOF
6593 /* confdefs.h.  */
6594 _ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h.  */
6598 $ac_includes_default
6599 static long int longval () { return (long int) (sizeof (signed char)); }
6600 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6601 #include <stdio.h>
6602 #include <stdlib.h>
6603 int
6604 main ()
6605 {
6606
6607   FILE *f = fopen ("conftest.val", "w");
6608   if (! f)
6609     return 1;
6610   if (((long int) (sizeof (signed char))) < 0)
6611     {
6612       long int i = longval ();
6613       if (i != ((long int) (sizeof (signed char))))
6614         return 1;
6615       fprintf (f, "%ld", i);
6616     }
6617   else
6618     {
6619       unsigned long int i = ulongval ();
6620       if (i != ((long int) (sizeof (signed char))))
6621         return 1;
6622       fprintf (f, "%lu", i);
6623     }
6624   /* Do not output a trailing newline, as this causes \r\n confusion
6625      on some platforms.  */
6626   return ferror (f) || fclose (f) != 0;
6627
6628   ;
6629   return 0;
6630 }
6631 _ACEOF
6632 rm -f conftest$ac_exeext
6633 if { (ac_try="$ac_link"
6634 case "(($ac_try" in
6635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636   *) ac_try_echo=$ac_try;;
6637 esac
6638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6639 $as_echo "$ac_try_echo") >&5
6640   (eval "$ac_link") 2>&5
6641   ac_status=$?
6642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6644   { (case "(($ac_try" in
6645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646   *) ac_try_echo=$ac_try;;
6647 esac
6648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6649 $as_echo "$ac_try_echo") >&5
6650   (eval "$ac_try") 2>&5
6651   ac_status=$?
6652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653   (exit $ac_status); }; }; then
6654   ac_cv_sizeof_signed_char=`cat conftest.val`
6655 else
6656   $as_echo "$as_me: program exited with status $ac_status" >&5
6657 $as_echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6659
6660 ( exit $ac_status )
6661 if test "$ac_cv_type_signed_char" = yes; then
6662      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6664 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6665 See \`config.log' for more details." >&5
6666 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6667 See \`config.log' for more details." >&2;}
6668    { (exit 77); exit 77; }; }; }
6669    else
6670      ac_cv_sizeof_signed_char=0
6671    fi
6672 fi
6673 rm -rf conftest.dSYM
6674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6675 fi
6676 rm -f conftest.val
6677 fi
6678 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6679 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6680
6681
6682
6683 cat >>confdefs.h <<_ACEOF
6684 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6685 _ACEOF
6686
6687
6688 # The cast to long int works around a bug in the HP C Compiler
6689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6691 # This bug is HP SR number 8606223364.
6692 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6693 $as_echo_n "checking size of signed short... " >&6; }
6694 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6695   $as_echo_n "(cached) " >&6
6696 else
6697   if test "$cross_compiling" = yes; then
6698   # Depending upon the size, compute the lo and hi bounds.
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h.  */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h.  */
6705 $ac_includes_default
6706 int
6707 main ()
6708 {
6709 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6710 test_array [0] = 0
6711
6712   ;
6713   return 0;
6714 }
6715 _ACEOF
6716 rm -f conftest.$ac_objext
6717 if { (ac_try="$ac_compile"
6718 case "(($ac_try" in
6719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720   *) ac_try_echo=$ac_try;;
6721 esac
6722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6723 $as_echo "$ac_try_echo") >&5
6724   (eval "$ac_compile") 2>conftest.er1
6725   ac_status=$?
6726   grep -v '^ *+' conftest.er1 >conftest.err
6727   rm -f conftest.er1
6728   cat conftest.err >&5
6729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730   (exit $ac_status); } && {
6731          test -z "$ac_c_werror_flag" ||
6732          test ! -s conftest.err
6733        } && test -s conftest.$ac_objext; then
6734   ac_lo=0 ac_mid=0
6735   while :; do
6736     cat >conftest.$ac_ext <<_ACEOF
6737 /* confdefs.h.  */
6738 _ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h.  */
6742 $ac_includes_default
6743 int
6744 main ()
6745 {
6746 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6747 test_array [0] = 0
6748
6749   ;
6750   return 0;
6751 }
6752 _ACEOF
6753 rm -f conftest.$ac_objext
6754 if { (ac_try="$ac_compile"
6755 case "(($ac_try" in
6756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757   *) ac_try_echo=$ac_try;;
6758 esac
6759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6760 $as_echo "$ac_try_echo") >&5
6761   (eval "$ac_compile") 2>conftest.er1
6762   ac_status=$?
6763   grep -v '^ *+' conftest.er1 >conftest.err
6764   rm -f conftest.er1
6765   cat conftest.err >&5
6766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767   (exit $ac_status); } && {
6768          test -z "$ac_c_werror_flag" ||
6769          test ! -s conftest.err
6770        } && test -s conftest.$ac_objext; then
6771   ac_hi=$ac_mid; break
6772 else
6773   $as_echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6775
6776         ac_lo=`expr $ac_mid + 1`
6777                         if test $ac_lo -le $ac_mid; then
6778                           ac_lo= ac_hi=
6779                           break
6780                         fi
6781                         ac_mid=`expr 2 '*' $ac_mid + 1`
6782 fi
6783
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785   done
6786 else
6787   $as_echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6789
6790         cat >conftest.$ac_ext <<_ACEOF
6791 /* confdefs.h.  */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h.  */
6796 $ac_includes_default
6797 int
6798 main ()
6799 {
6800 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6801 test_array [0] = 0
6802
6803   ;
6804   return 0;
6805 }
6806 _ACEOF
6807 rm -f conftest.$ac_objext
6808 if { (ac_try="$ac_compile"
6809 case "(($ac_try" in
6810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811   *) ac_try_echo=$ac_try;;
6812 esac
6813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6814 $as_echo "$ac_try_echo") >&5
6815   (eval "$ac_compile") 2>conftest.er1
6816   ac_status=$?
6817   grep -v '^ *+' conftest.er1 >conftest.err
6818   rm -f conftest.er1
6819   cat conftest.err >&5
6820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821   (exit $ac_status); } && {
6822          test -z "$ac_c_werror_flag" ||
6823          test ! -s conftest.err
6824        } && test -s conftest.$ac_objext; then
6825   ac_hi=-1 ac_mid=-1
6826   while :; do
6827     cat >conftest.$ac_ext <<_ACEOF
6828 /* confdefs.h.  */
6829 _ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h.  */
6833 $ac_includes_default
6834 int
6835 main ()
6836 {
6837 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6838 test_array [0] = 0
6839
6840   ;
6841   return 0;
6842 }
6843 _ACEOF
6844 rm -f conftest.$ac_objext
6845 if { (ac_try="$ac_compile"
6846 case "(($ac_try" in
6847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848   *) ac_try_echo=$ac_try;;
6849 esac
6850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6851 $as_echo "$ac_try_echo") >&5
6852   (eval "$ac_compile") 2>conftest.er1
6853   ac_status=$?
6854   grep -v '^ *+' conftest.er1 >conftest.err
6855   rm -f conftest.er1
6856   cat conftest.err >&5
6857   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858   (exit $ac_status); } && {
6859          test -z "$ac_c_werror_flag" ||
6860          test ! -s conftest.err
6861        } && test -s conftest.$ac_objext; then
6862   ac_lo=$ac_mid; break
6863 else
6864   $as_echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6866
6867         ac_hi=`expr '(' $ac_mid ')' - 1`
6868                         if test $ac_mid -le $ac_hi; then
6869                           ac_lo= ac_hi=
6870                           break
6871                         fi
6872                         ac_mid=`expr 2 '*' $ac_mid`
6873 fi
6874
6875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876   done
6877 else
6878   $as_echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6880
6881         ac_lo= ac_hi=
6882 fi
6883
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6885 fi
6886
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 # Binary search between lo and hi bounds.
6889 while test "x$ac_lo" != "x$ac_hi"; do
6890   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6891   cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 $ac_includes_default
6898 int
6899 main ()
6900 {
6901 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6902 test_array [0] = 0
6903
6904   ;
6905   return 0;
6906 }
6907 _ACEOF
6908 rm -f conftest.$ac_objext
6909 if { (ac_try="$ac_compile"
6910 case "(($ac_try" in
6911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912   *) ac_try_echo=$ac_try;;
6913 esac
6914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6915 $as_echo "$ac_try_echo") >&5
6916   (eval "$ac_compile") 2>conftest.er1
6917   ac_status=$?
6918   grep -v '^ *+' conftest.er1 >conftest.err
6919   rm -f conftest.er1
6920   cat conftest.err >&5
6921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922   (exit $ac_status); } && {
6923          test -z "$ac_c_werror_flag" ||
6924          test ! -s conftest.err
6925        } && test -s conftest.$ac_objext; then
6926   ac_hi=$ac_mid
6927 else
6928   $as_echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6930
6931         ac_lo=`expr '(' $ac_mid ')' + 1`
6932 fi
6933
6934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935 done
6936 case $ac_lo in
6937 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
6938 '') if test "$ac_cv_type_signed_short" = yes; then
6939      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6941 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6942 See \`config.log' for more details." >&5
6943 $as_echo "$as_me: error: cannot compute sizeof (signed short)
6944 See \`config.log' for more details." >&2;}
6945    { (exit 77); exit 77; }; }; }
6946    else
6947      ac_cv_sizeof_signed_short=0
6948    fi ;;
6949 esac
6950 else
6951   cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h.  */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h.  */
6957 $ac_includes_default
6958 static long int longval () { return (long int) (sizeof (signed short)); }
6959 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
6960 #include <stdio.h>
6961 #include <stdlib.h>
6962 int
6963 main ()
6964 {
6965
6966   FILE *f = fopen ("conftest.val", "w");
6967   if (! f)
6968     return 1;
6969   if (((long int) (sizeof (signed short))) < 0)
6970     {
6971       long int i = longval ();
6972       if (i != ((long int) (sizeof (signed short))))
6973         return 1;
6974       fprintf (f, "%ld", i);
6975     }
6976   else
6977     {
6978       unsigned long int i = ulongval ();
6979       if (i != ((long int) (sizeof (signed short))))
6980         return 1;
6981       fprintf (f, "%lu", i);
6982     }
6983   /* Do not output a trailing newline, as this causes \r\n confusion
6984      on some platforms.  */
6985   return ferror (f) || fclose (f) != 0;
6986
6987   ;
6988   return 0;
6989 }
6990 _ACEOF
6991 rm -f conftest$ac_exeext
6992 if { (ac_try="$ac_link"
6993 case "(($ac_try" in
6994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6995   *) ac_try_echo=$ac_try;;
6996 esac
6997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6998 $as_echo "$ac_try_echo") >&5
6999   (eval "$ac_link") 2>&5
7000   ac_status=$?
7001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7003   { (case "(($ac_try" in
7004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005   *) ac_try_echo=$ac_try;;
7006 esac
7007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7008 $as_echo "$ac_try_echo") >&5
7009   (eval "$ac_try") 2>&5
7010   ac_status=$?
7011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012   (exit $ac_status); }; }; then
7013   ac_cv_sizeof_signed_short=`cat conftest.val`
7014 else
7015   $as_echo "$as_me: program exited with status $ac_status" >&5
7016 $as_echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7018
7019 ( exit $ac_status )
7020 if test "$ac_cv_type_signed_short" = yes; then
7021      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7023 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7024 See \`config.log' for more details." >&5
7025 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7026 See \`config.log' for more details." >&2;}
7027    { (exit 77); exit 77; }; }; }
7028    else
7029      ac_cv_sizeof_signed_short=0
7030    fi
7031 fi
7032 rm -rf conftest.dSYM
7033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7034 fi
7035 rm -f conftest.val
7036 fi
7037 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
7038 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
7039
7040
7041
7042 cat >>confdefs.h <<_ACEOF
7043 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
7044 _ACEOF
7045
7046
7047 # The cast to long int works around a bug in the HP C Compiler
7048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7050 # This bug is HP SR number 8606223364.
7051 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
7052 $as_echo_n "checking size of signed... " >&6; }
7053 if test "${ac_cv_sizeof_signed+set}" = set; then
7054   $as_echo_n "(cached) " >&6
7055 else
7056   if test "$cross_compiling" = yes; then
7057   # Depending upon the size, compute the lo and hi bounds.
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h.  */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h.  */
7064 $ac_includes_default
7065 int
7066 main ()
7067 {
7068 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
7069 test_array [0] = 0
7070
7071   ;
7072   return 0;
7073 }
7074 _ACEOF
7075 rm -f conftest.$ac_objext
7076 if { (ac_try="$ac_compile"
7077 case "(($ac_try" in
7078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079   *) ac_try_echo=$ac_try;;
7080 esac
7081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7082 $as_echo "$ac_try_echo") >&5
7083   (eval "$ac_compile") 2>conftest.er1
7084   ac_status=$?
7085   grep -v '^ *+' conftest.er1 >conftest.err
7086   rm -f conftest.er1
7087   cat conftest.err >&5
7088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089   (exit $ac_status); } && {
7090          test -z "$ac_c_werror_flag" ||
7091          test ! -s conftest.err
7092        } && test -s conftest.$ac_objext; then
7093   ac_lo=0 ac_mid=0
7094   while :; do
7095     cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h.  */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h.  */
7101 $ac_includes_default
7102 int
7103 main ()
7104 {
7105 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7106 test_array [0] = 0
7107
7108   ;
7109   return 0;
7110 }
7111 _ACEOF
7112 rm -f conftest.$ac_objext
7113 if { (ac_try="$ac_compile"
7114 case "(($ac_try" in
7115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7116   *) ac_try_echo=$ac_try;;
7117 esac
7118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7119 $as_echo "$ac_try_echo") >&5
7120   (eval "$ac_compile") 2>conftest.er1
7121   ac_status=$?
7122   grep -v '^ *+' conftest.er1 >conftest.err
7123   rm -f conftest.er1
7124   cat conftest.err >&5
7125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); } && {
7127          test -z "$ac_c_werror_flag" ||
7128          test ! -s conftest.err
7129        } && test -s conftest.$ac_objext; then
7130   ac_hi=$ac_mid; break
7131 else
7132   $as_echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7134
7135         ac_lo=`expr $ac_mid + 1`
7136                         if test $ac_lo -le $ac_mid; then
7137                           ac_lo= ac_hi=
7138                           break
7139                         fi
7140                         ac_mid=`expr 2 '*' $ac_mid + 1`
7141 fi
7142
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144   done
7145 else
7146   $as_echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7148
7149         cat >conftest.$ac_ext <<_ACEOF
7150 /* confdefs.h.  */
7151 _ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h.  */
7155 $ac_includes_default
7156 int
7157 main ()
7158 {
7159 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7160 test_array [0] = 0
7161
7162   ;
7163   return 0;
7164 }
7165 _ACEOF
7166 rm -f conftest.$ac_objext
7167 if { (ac_try="$ac_compile"
7168 case "(($ac_try" in
7169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170   *) ac_try_echo=$ac_try;;
7171 esac
7172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7173 $as_echo "$ac_try_echo") >&5
7174   (eval "$ac_compile") 2>conftest.er1
7175   ac_status=$?
7176   grep -v '^ *+' conftest.er1 >conftest.err
7177   rm -f conftest.er1
7178   cat conftest.err >&5
7179   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180   (exit $ac_status); } && {
7181          test -z "$ac_c_werror_flag" ||
7182          test ! -s conftest.err
7183        } && test -s conftest.$ac_objext; then
7184   ac_hi=-1 ac_mid=-1
7185   while :; do
7186     cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h.  */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h.  */
7192 $ac_includes_default
7193 int
7194 main ()
7195 {
7196 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7197 test_array [0] = 0
7198
7199   ;
7200   return 0;
7201 }
7202 _ACEOF
7203 rm -f conftest.$ac_objext
7204 if { (ac_try="$ac_compile"
7205 case "(($ac_try" in
7206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207   *) ac_try_echo=$ac_try;;
7208 esac
7209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7210 $as_echo "$ac_try_echo") >&5
7211   (eval "$ac_compile") 2>conftest.er1
7212   ac_status=$?
7213   grep -v '^ *+' conftest.er1 >conftest.err
7214   rm -f conftest.er1
7215   cat conftest.err >&5
7216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217   (exit $ac_status); } && {
7218          test -z "$ac_c_werror_flag" ||
7219          test ! -s conftest.err
7220        } && test -s conftest.$ac_objext; then
7221   ac_lo=$ac_mid; break
7222 else
7223   $as_echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7225
7226         ac_hi=`expr '(' $ac_mid ')' - 1`
7227                         if test $ac_mid -le $ac_hi; then
7228                           ac_lo= ac_hi=
7229                           break
7230                         fi
7231                         ac_mid=`expr 2 '*' $ac_mid`
7232 fi
7233
7234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7235   done
7236 else
7237   $as_echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7239
7240         ac_lo= ac_hi=
7241 fi
7242
7243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7244 fi
7245
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 # Binary search between lo and hi bounds.
7248 while test "x$ac_lo" != "x$ac_hi"; do
7249   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7250   cat >conftest.$ac_ext <<_ACEOF
7251 /* confdefs.h.  */
7252 _ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h.  */
7256 $ac_includes_default
7257 int
7258 main ()
7259 {
7260 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7261 test_array [0] = 0
7262
7263   ;
7264   return 0;
7265 }
7266 _ACEOF
7267 rm -f conftest.$ac_objext
7268 if { (ac_try="$ac_compile"
7269 case "(($ac_try" in
7270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271   *) ac_try_echo=$ac_try;;
7272 esac
7273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7274 $as_echo "$ac_try_echo") >&5
7275   (eval "$ac_compile") 2>conftest.er1
7276   ac_status=$?
7277   grep -v '^ *+' conftest.er1 >conftest.err
7278   rm -f conftest.er1
7279   cat conftest.err >&5
7280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281   (exit $ac_status); } && {
7282          test -z "$ac_c_werror_flag" ||
7283          test ! -s conftest.err
7284        } && test -s conftest.$ac_objext; then
7285   ac_hi=$ac_mid
7286 else
7287   $as_echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7289
7290         ac_lo=`expr '(' $ac_mid ')' + 1`
7291 fi
7292
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7294 done
7295 case $ac_lo in
7296 ?*) ac_cv_sizeof_signed=$ac_lo;;
7297 '') if test "$ac_cv_type_signed" = yes; then
7298      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7300 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7301 See \`config.log' for more details." >&5
7302 $as_echo "$as_me: error: cannot compute sizeof (signed)
7303 See \`config.log' for more details." >&2;}
7304    { (exit 77); exit 77; }; }; }
7305    else
7306      ac_cv_sizeof_signed=0
7307    fi ;;
7308 esac
7309 else
7310   cat >conftest.$ac_ext <<_ACEOF
7311 /* confdefs.h.  */
7312 _ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h.  */
7316 $ac_includes_default
7317 static long int longval () { return (long int) (sizeof (signed)); }
7318 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7319 #include <stdio.h>
7320 #include <stdlib.h>
7321 int
7322 main ()
7323 {
7324
7325   FILE *f = fopen ("conftest.val", "w");
7326   if (! f)
7327     return 1;
7328   if (((long int) (sizeof (signed))) < 0)
7329     {
7330       long int i = longval ();
7331       if (i != ((long int) (sizeof (signed))))
7332         return 1;
7333       fprintf (f, "%ld", i);
7334     }
7335   else
7336     {
7337       unsigned long int i = ulongval ();
7338       if (i != ((long int) (sizeof (signed))))
7339         return 1;
7340       fprintf (f, "%lu", i);
7341     }
7342   /* Do not output a trailing newline, as this causes \r\n confusion
7343      on some platforms.  */
7344   return ferror (f) || fclose (f) != 0;
7345
7346   ;
7347   return 0;
7348 }
7349 _ACEOF
7350 rm -f conftest$ac_exeext
7351 if { (ac_try="$ac_link"
7352 case "(($ac_try" in
7353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354   *) ac_try_echo=$ac_try;;
7355 esac
7356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7357 $as_echo "$ac_try_echo") >&5
7358   (eval "$ac_link") 2>&5
7359   ac_status=$?
7360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7362   { (case "(($ac_try" in
7363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364   *) ac_try_echo=$ac_try;;
7365 esac
7366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7367 $as_echo "$ac_try_echo") >&5
7368   (eval "$ac_try") 2>&5
7369   ac_status=$?
7370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371   (exit $ac_status); }; }; then
7372   ac_cv_sizeof_signed=`cat conftest.val`
7373 else
7374   $as_echo "$as_me: program exited with status $ac_status" >&5
7375 $as_echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7377
7378 ( exit $ac_status )
7379 if test "$ac_cv_type_signed" = yes; then
7380      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7382 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7383 See \`config.log' for more details." >&5
7384 $as_echo "$as_me: error: cannot compute sizeof (signed)
7385 See \`config.log' for more details." >&2;}
7386    { (exit 77); exit 77; }; }; }
7387    else
7388      ac_cv_sizeof_signed=0
7389    fi
7390 fi
7391 rm -rf conftest.dSYM
7392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7393 fi
7394 rm -f conftest.val
7395 fi
7396 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7397 $as_echo "$ac_cv_sizeof_signed" >&6; }
7398
7399
7400
7401 cat >>confdefs.h <<_ACEOF
7402 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7403 _ACEOF
7404
7405
7406 # The cast to long int works around a bug in the HP C Compiler
7407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7409 # This bug is HP SR number 8606223364.
7410 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7411 $as_echo_n "checking size of signed long long... " >&6; }
7412 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7413   $as_echo_n "(cached) " >&6
7414 else
7415   if test "$cross_compiling" = yes; then
7416   # Depending upon the size, compute the lo and hi bounds.
7417 cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h.  */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h.  */
7423 $ac_includes_default
7424 int
7425 main ()
7426 {
7427 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7428 test_array [0] = 0
7429
7430   ;
7431   return 0;
7432 }
7433 _ACEOF
7434 rm -f conftest.$ac_objext
7435 if { (ac_try="$ac_compile"
7436 case "(($ac_try" in
7437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438   *) ac_try_echo=$ac_try;;
7439 esac
7440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7441 $as_echo "$ac_try_echo") >&5
7442   (eval "$ac_compile") 2>conftest.er1
7443   ac_status=$?
7444   grep -v '^ *+' conftest.er1 >conftest.err
7445   rm -f conftest.er1
7446   cat conftest.err >&5
7447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); } && {
7449          test -z "$ac_c_werror_flag" ||
7450          test ! -s conftest.err
7451        } && test -s conftest.$ac_objext; then
7452   ac_lo=0 ac_mid=0
7453   while :; do
7454     cat >conftest.$ac_ext <<_ACEOF
7455 /* confdefs.h.  */
7456 _ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h.  */
7460 $ac_includes_default
7461 int
7462 main ()
7463 {
7464 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7465 test_array [0] = 0
7466
7467   ;
7468   return 0;
7469 }
7470 _ACEOF
7471 rm -f conftest.$ac_objext
7472 if { (ac_try="$ac_compile"
7473 case "(($ac_try" in
7474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475   *) ac_try_echo=$ac_try;;
7476 esac
7477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7478 $as_echo "$ac_try_echo") >&5
7479   (eval "$ac_compile") 2>conftest.er1
7480   ac_status=$?
7481   grep -v '^ *+' conftest.er1 >conftest.err
7482   rm -f conftest.er1
7483   cat conftest.err >&5
7484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485   (exit $ac_status); } && {
7486          test -z "$ac_c_werror_flag" ||
7487          test ! -s conftest.err
7488        } && test -s conftest.$ac_objext; then
7489   ac_hi=$ac_mid; break
7490 else
7491   $as_echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7493
7494         ac_lo=`expr $ac_mid + 1`
7495                         if test $ac_lo -le $ac_mid; then
7496                           ac_lo= ac_hi=
7497                           break
7498                         fi
7499                         ac_mid=`expr 2 '*' $ac_mid + 1`
7500 fi
7501
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503   done
7504 else
7505   $as_echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508         cat >conftest.$ac_ext <<_ACEOF
7509 /* confdefs.h.  */
7510 _ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h.  */
7514 $ac_includes_default
7515 int
7516 main ()
7517 {
7518 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7519 test_array [0] = 0
7520
7521   ;
7522   return 0;
7523 }
7524 _ACEOF
7525 rm -f conftest.$ac_objext
7526 if { (ac_try="$ac_compile"
7527 case "(($ac_try" in
7528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529   *) ac_try_echo=$ac_try;;
7530 esac
7531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7532 $as_echo "$ac_try_echo") >&5
7533   (eval "$ac_compile") 2>conftest.er1
7534   ac_status=$?
7535   grep -v '^ *+' conftest.er1 >conftest.err
7536   rm -f conftest.er1
7537   cat conftest.err >&5
7538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539   (exit $ac_status); } && {
7540          test -z "$ac_c_werror_flag" ||
7541          test ! -s conftest.err
7542        } && test -s conftest.$ac_objext; then
7543   ac_hi=-1 ac_mid=-1
7544   while :; do
7545     cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h.  */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h.  */
7551 $ac_includes_default
7552 int
7553 main ()
7554 {
7555 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7556 test_array [0] = 0
7557
7558   ;
7559   return 0;
7560 }
7561 _ACEOF
7562 rm -f conftest.$ac_objext
7563 if { (ac_try="$ac_compile"
7564 case "(($ac_try" in
7565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566   *) ac_try_echo=$ac_try;;
7567 esac
7568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7569 $as_echo "$ac_try_echo") >&5
7570   (eval "$ac_compile") 2>conftest.er1
7571   ac_status=$?
7572   grep -v '^ *+' conftest.er1 >conftest.err
7573   rm -f conftest.er1
7574   cat conftest.err >&5
7575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576   (exit $ac_status); } && {
7577          test -z "$ac_c_werror_flag" ||
7578          test ! -s conftest.err
7579        } && test -s conftest.$ac_objext; then
7580   ac_lo=$ac_mid; break
7581 else
7582   $as_echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7584
7585         ac_hi=`expr '(' $ac_mid ')' - 1`
7586                         if test $ac_mid -le $ac_hi; then
7587                           ac_lo= ac_hi=
7588                           break
7589                         fi
7590                         ac_mid=`expr 2 '*' $ac_mid`
7591 fi
7592
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594   done
7595 else
7596   $as_echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7598
7599         ac_lo= ac_hi=
7600 fi
7601
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7603 fi
7604
7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606 # Binary search between lo and hi bounds.
7607 while test "x$ac_lo" != "x$ac_hi"; do
7608   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7609   cat >conftest.$ac_ext <<_ACEOF
7610 /* confdefs.h.  */
7611 _ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h.  */
7615 $ac_includes_default
7616 int
7617 main ()
7618 {
7619 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7620 test_array [0] = 0
7621
7622   ;
7623   return 0;
7624 }
7625 _ACEOF
7626 rm -f conftest.$ac_objext
7627 if { (ac_try="$ac_compile"
7628 case "(($ac_try" in
7629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630   *) ac_try_echo=$ac_try;;
7631 esac
7632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7633 $as_echo "$ac_try_echo") >&5
7634   (eval "$ac_compile") 2>conftest.er1
7635   ac_status=$?
7636   grep -v '^ *+' conftest.er1 >conftest.err
7637   rm -f conftest.er1
7638   cat conftest.err >&5
7639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640   (exit $ac_status); } && {
7641          test -z "$ac_c_werror_flag" ||
7642          test ! -s conftest.err
7643        } && test -s conftest.$ac_objext; then
7644   ac_hi=$ac_mid
7645 else
7646   $as_echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7648
7649         ac_lo=`expr '(' $ac_mid ')' + 1`
7650 fi
7651
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7653 done
7654 case $ac_lo in
7655 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7656 '') if test "$ac_cv_type_signed_long_long" = yes; then
7657      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7659 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7660 See \`config.log' for more details." >&5
7661 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7662 See \`config.log' for more details." >&2;}
7663    { (exit 77); exit 77; }; }; }
7664    else
7665      ac_cv_sizeof_signed_long_long=0
7666    fi ;;
7667 esac
7668 else
7669   cat >conftest.$ac_ext <<_ACEOF
7670 /* confdefs.h.  */
7671 _ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h.  */
7675 $ac_includes_default
7676 static long int longval () { return (long int) (sizeof (signed long long)); }
7677 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7678 #include <stdio.h>
7679 #include <stdlib.h>
7680 int
7681 main ()
7682 {
7683
7684   FILE *f = fopen ("conftest.val", "w");
7685   if (! f)
7686     return 1;
7687   if (((long int) (sizeof (signed long long))) < 0)
7688     {
7689       long int i = longval ();
7690       if (i != ((long int) (sizeof (signed long long))))
7691         return 1;
7692       fprintf (f, "%ld", i);
7693     }
7694   else
7695     {
7696       unsigned long int i = ulongval ();
7697       if (i != ((long int) (sizeof (signed long long))))
7698         return 1;
7699       fprintf (f, "%lu", i);
7700     }
7701   /* Do not output a trailing newline, as this causes \r\n confusion
7702      on some platforms.  */
7703   return ferror (f) || fclose (f) != 0;
7704
7705   ;
7706   return 0;
7707 }
7708 _ACEOF
7709 rm -f conftest$ac_exeext
7710 if { (ac_try="$ac_link"
7711 case "(($ac_try" in
7712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713   *) ac_try_echo=$ac_try;;
7714 esac
7715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7716 $as_echo "$ac_try_echo") >&5
7717   (eval "$ac_link") 2>&5
7718   ac_status=$?
7719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7721   { (case "(($ac_try" in
7722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723   *) ac_try_echo=$ac_try;;
7724 esac
7725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7726 $as_echo "$ac_try_echo") >&5
7727   (eval "$ac_try") 2>&5
7728   ac_status=$?
7729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730   (exit $ac_status); }; }; then
7731   ac_cv_sizeof_signed_long_long=`cat conftest.val`
7732 else
7733   $as_echo "$as_me: program exited with status $ac_status" >&5
7734 $as_echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7736
7737 ( exit $ac_status )
7738 if test "$ac_cv_type_signed_long_long" = yes; then
7739      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7741 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7742 See \`config.log' for more details." >&5
7743 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7744 See \`config.log' for more details." >&2;}
7745    { (exit 77); exit 77; }; }; }
7746    else
7747      ac_cv_sizeof_signed_long_long=0
7748    fi
7749 fi
7750 rm -rf conftest.dSYM
7751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7752 fi
7753 rm -f conftest.val
7754 fi
7755 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7756 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7757
7758
7759
7760 cat >>confdefs.h <<_ACEOF
7761 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7762 _ACEOF
7763
7764
7765 # The cast to long int works around a bug in the HP C Compiler
7766 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7767 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7768 # This bug is HP SR number 8606223364.
7769 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7770 $as_echo_n "checking size of void*... " >&6; }
7771 if test "${ac_cv_sizeof_voidp+set}" = set; then
7772   $as_echo_n "(cached) " >&6
7773 else
7774   if test "$cross_compiling" = yes; then
7775   # Depending upon the size, compute the lo and hi bounds.
7776 cat >conftest.$ac_ext <<_ACEOF
7777 /* confdefs.h.  */
7778 _ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h.  */
7782 $ac_includes_default
7783 int
7784 main ()
7785 {
7786 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7787 test_array [0] = 0
7788
7789   ;
7790   return 0;
7791 }
7792 _ACEOF
7793 rm -f conftest.$ac_objext
7794 if { (ac_try="$ac_compile"
7795 case "(($ac_try" in
7796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797   *) ac_try_echo=$ac_try;;
7798 esac
7799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7800 $as_echo "$ac_try_echo") >&5
7801   (eval "$ac_compile") 2>conftest.er1
7802   ac_status=$?
7803   grep -v '^ *+' conftest.er1 >conftest.err
7804   rm -f conftest.er1
7805   cat conftest.err >&5
7806   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); } && {
7808          test -z "$ac_c_werror_flag" ||
7809          test ! -s conftest.err
7810        } && test -s conftest.$ac_objext; then
7811   ac_lo=0 ac_mid=0
7812   while :; do
7813     cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h.  */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h.  */
7819 $ac_includes_default
7820 int
7821 main ()
7822 {
7823 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7824 test_array [0] = 0
7825
7826   ;
7827   return 0;
7828 }
7829 _ACEOF
7830 rm -f conftest.$ac_objext
7831 if { (ac_try="$ac_compile"
7832 case "(($ac_try" in
7833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834   *) ac_try_echo=$ac_try;;
7835 esac
7836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7837 $as_echo "$ac_try_echo") >&5
7838   (eval "$ac_compile") 2>conftest.er1
7839   ac_status=$?
7840   grep -v '^ *+' conftest.er1 >conftest.err
7841   rm -f conftest.er1
7842   cat conftest.err >&5
7843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844   (exit $ac_status); } && {
7845          test -z "$ac_c_werror_flag" ||
7846          test ! -s conftest.err
7847        } && test -s conftest.$ac_objext; then
7848   ac_hi=$ac_mid; break
7849 else
7850   $as_echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853         ac_lo=`expr $ac_mid + 1`
7854                         if test $ac_lo -le $ac_mid; then
7855                           ac_lo= ac_hi=
7856                           break
7857                         fi
7858                         ac_mid=`expr 2 '*' $ac_mid + 1`
7859 fi
7860
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862   done
7863 else
7864   $as_echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867         cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h.  */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h.  */
7873 $ac_includes_default
7874 int
7875 main ()
7876 {
7877 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7878 test_array [0] = 0
7879
7880   ;
7881   return 0;
7882 }
7883 _ACEOF
7884 rm -f conftest.$ac_objext
7885 if { (ac_try="$ac_compile"
7886 case "(($ac_try" in
7887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888   *) ac_try_echo=$ac_try;;
7889 esac
7890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7891 $as_echo "$ac_try_echo") >&5
7892   (eval "$ac_compile") 2>conftest.er1
7893   ac_status=$?
7894   grep -v '^ *+' conftest.er1 >conftest.err
7895   rm -f conftest.er1
7896   cat conftest.err >&5
7897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898   (exit $ac_status); } && {
7899          test -z "$ac_c_werror_flag" ||
7900          test ! -s conftest.err
7901        } && test -s conftest.$ac_objext; then
7902   ac_hi=-1 ac_mid=-1
7903   while :; do
7904     cat >conftest.$ac_ext <<_ACEOF
7905 /* confdefs.h.  */
7906 _ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h.  */
7910 $ac_includes_default
7911 int
7912 main ()
7913 {
7914 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
7915 test_array [0] = 0
7916
7917   ;
7918   return 0;
7919 }
7920 _ACEOF
7921 rm -f conftest.$ac_objext
7922 if { (ac_try="$ac_compile"
7923 case "(($ac_try" in
7924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925   *) ac_try_echo=$ac_try;;
7926 esac
7927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7928 $as_echo "$ac_try_echo") >&5
7929   (eval "$ac_compile") 2>conftest.er1
7930   ac_status=$?
7931   grep -v '^ *+' conftest.er1 >conftest.err
7932   rm -f conftest.er1
7933   cat conftest.err >&5
7934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935   (exit $ac_status); } && {
7936          test -z "$ac_c_werror_flag" ||
7937          test ! -s conftest.err
7938        } && test -s conftest.$ac_objext; then
7939   ac_lo=$ac_mid; break
7940 else
7941   $as_echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7943
7944         ac_hi=`expr '(' $ac_mid ')' - 1`
7945                         if test $ac_mid -le $ac_hi; then
7946                           ac_lo= ac_hi=
7947                           break
7948                         fi
7949                         ac_mid=`expr 2 '*' $ac_mid`
7950 fi
7951
7952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953   done
7954 else
7955   $as_echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7957
7958         ac_lo= ac_hi=
7959 fi
7960
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7962 fi
7963
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 # Binary search between lo and hi bounds.
7966 while test "x$ac_lo" != "x$ac_hi"; do
7967   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7968   cat >conftest.$ac_ext <<_ACEOF
7969 /* confdefs.h.  */
7970 _ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h.  */
7974 $ac_includes_default
7975 int
7976 main ()
7977 {
7978 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7979 test_array [0] = 0
7980
7981   ;
7982   return 0;
7983 }
7984 _ACEOF
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7987 case "(($ac_try" in
7988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989   *) ac_try_echo=$ac_try;;
7990 esac
7991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7992 $as_echo "$ac_try_echo") >&5
7993   (eval "$ac_compile") 2>conftest.er1
7994   ac_status=$?
7995   grep -v '^ *+' conftest.er1 >conftest.err
7996   rm -f conftest.er1
7997   cat conftest.err >&5
7998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999   (exit $ac_status); } && {
8000          test -z "$ac_c_werror_flag" ||
8001          test ! -s conftest.err
8002        } && test -s conftest.$ac_objext; then
8003   ac_hi=$ac_mid
8004 else
8005   $as_echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8007
8008         ac_lo=`expr '(' $ac_mid ')' + 1`
8009 fi
8010
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8012 done
8013 case $ac_lo in
8014 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8015 '') if test "$ac_cv_type_voidp" = yes; then
8016      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8018 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8019 See \`config.log' for more details." >&5
8020 $as_echo "$as_me: error: cannot compute sizeof (void*)
8021 See \`config.log' for more details." >&2;}
8022    { (exit 77); exit 77; }; }; }
8023    else
8024      ac_cv_sizeof_voidp=0
8025    fi ;;
8026 esac
8027 else
8028   cat >conftest.$ac_ext <<_ACEOF
8029 /* confdefs.h.  */
8030 _ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h.  */
8034 $ac_includes_default
8035 static long int longval () { return (long int) (sizeof (void*)); }
8036 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
8037 #include <stdio.h>
8038 #include <stdlib.h>
8039 int
8040 main ()
8041 {
8042
8043   FILE *f = fopen ("conftest.val", "w");
8044   if (! f)
8045     return 1;
8046   if (((long int) (sizeof (void*))) < 0)
8047     {
8048       long int i = longval ();
8049       if (i != ((long int) (sizeof (void*))))
8050         return 1;
8051       fprintf (f, "%ld", i);
8052     }
8053   else
8054     {
8055       unsigned long int i = ulongval ();
8056       if (i != ((long int) (sizeof (void*))))
8057         return 1;
8058       fprintf (f, "%lu", i);
8059     }
8060   /* Do not output a trailing newline, as this causes \r\n confusion
8061      on some platforms.  */
8062   return ferror (f) || fclose (f) != 0;
8063
8064   ;
8065   return 0;
8066 }
8067 _ACEOF
8068 rm -f conftest$ac_exeext
8069 if { (ac_try="$ac_link"
8070 case "(($ac_try" in
8071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072   *) ac_try_echo=$ac_try;;
8073 esac
8074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8075 $as_echo "$ac_try_echo") >&5
8076   (eval "$ac_link") 2>&5
8077   ac_status=$?
8078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8080   { (case "(($ac_try" in
8081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082   *) ac_try_echo=$ac_try;;
8083 esac
8084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8085 $as_echo "$ac_try_echo") >&5
8086   (eval "$ac_try") 2>&5
8087   ac_status=$?
8088   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089   (exit $ac_status); }; }; then
8090   ac_cv_sizeof_voidp=`cat conftest.val`
8091 else
8092   $as_echo "$as_me: program exited with status $ac_status" >&5
8093 $as_echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096 ( exit $ac_status )
8097 if test "$ac_cv_type_voidp" = yes; then
8098      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8100 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8101 See \`config.log' for more details." >&5
8102 $as_echo "$as_me: error: cannot compute sizeof (void*)
8103 See \`config.log' for more details." >&2;}
8104    { (exit 77); exit 77; }; }; }
8105    else
8106      ac_cv_sizeof_voidp=0
8107    fi
8108 fi
8109 rm -rf conftest.dSYM
8110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8111 fi
8112 rm -f conftest.val
8113 fi
8114 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8115 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8116
8117
8118
8119 cat >>confdefs.h <<_ACEOF
8120 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8121 _ACEOF
8122
8123
8124
8125
8126
8127 # Extract the first word of "freetype-config", so it can be a program name with args.
8128 set dummy freetype-config; ac_word=$2
8129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8132   $as_echo_n "(cached) " >&6
8133 else
8134   case $FREETYPE_CONFIG in
8135   [\\/]* | ?:[\\/]*)
8136   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8137   ;;
8138   *)
8139   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8141 for as_dir in $as_dummy
8142 do
8143   IFS=$as_save_IFS
8144   test -z "$as_dir" && as_dir=.
8145   for ac_exec_ext in '' $ac_executable_extensions; do
8146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8148     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149     break 2
8150   fi
8151 done
8152 done
8153 IFS=$as_save_IFS
8154
8155   ;;
8156 esac
8157 fi
8158 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8159 if test -n "$FREETYPE_CONFIG"; then
8160   { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8161 $as_echo "$FREETYPE_CONFIG" >&6; }
8162 else
8163   { $as_echo "$as_me:$LINENO: result: no" >&5
8164 $as_echo "no" >&6; }
8165 fi
8166
8167
8168
8169 OLDCPPFLAGS="${CPPFLAGS}"
8170 OLDLIBS="${LIBS}"
8171 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8172     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8173 else if test -d /usr/include/freetype2; then
8174     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8175 else if test -d /usr/local/include/freetype2; then
8176     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8177 fi
8178 fi
8179 fi
8180
8181 if test "x${FREETYPE_CONFIG}" '=' "x";then
8182     # if we didn't find the freetype-config program, we won't
8183     # know where the libs are expected to be. So just blindly
8184     # try to link against them.
8185     { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8186 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8187 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8188   $as_echo_n "(cached) " >&6
8189 else
8190   ac_check_lib_save_LIBS=$LIBS
8191 LIBS="-lfreetype  $LIBS"
8192 cat >conftest.$ac_ext <<_ACEOF
8193 /* confdefs.h.  */
8194 _ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h.  */
8198
8199 /* Override any GCC internal prototype to avoid an error.
8200    Use char because int might match the return type of a GCC
8201    builtin and then its argument prototype would still apply.  */
8202 #ifdef __cplusplus
8203 extern "C"
8204 #endif
8205 char FT_Init_FreeType ();
8206 int
8207 main ()
8208 {
8209 return FT_Init_FreeType ();
8210   ;
8211   return 0;
8212 }
8213 _ACEOF
8214 rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (ac_try="$ac_link"
8216 case "(($ac_try" in
8217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218   *) ac_try_echo=$ac_try;;
8219 esac
8220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8221 $as_echo "$ac_try_echo") >&5
8222   (eval "$ac_link") 2>conftest.er1
8223   ac_status=$?
8224   grep -v '^ *+' conftest.er1 >conftest.err
8225   rm -f conftest.er1
8226   cat conftest.err >&5
8227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228   (exit $ac_status); } && {
8229          test -z "$ac_c_werror_flag" ||
8230          test ! -s conftest.err
8231        } && test -s conftest$ac_exeext && {
8232          test "$cross_compiling" = yes ||
8233          $as_test_x conftest$ac_exeext
8234        }; then
8235   ac_cv_lib_freetype_FT_Init_FreeType=yes
8236 else
8237   $as_echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8239
8240         ac_cv_lib_freetype_FT_Init_FreeType=no
8241 fi
8242
8243 rm -rf conftest.dSYM
8244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8245       conftest$ac_exeext conftest.$ac_ext
8246 LIBS=$ac_check_lib_save_LIBS
8247 fi
8248 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8249 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8250 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
8251   HAVE_LIB_FREETYPE=1
8252 fi
8253
8254 fi
8255
8256
8257 for ac_header in ft2build.h
8258 do
8259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8261   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8262 $as_echo_n "checking for $ac_header... " >&6; }
8263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8264   $as_echo_n "(cached) " >&6
8265 fi
8266 ac_res=`eval 'as_val=${'$as_ac_Header'}
8267                  $as_echo "$as_val"'`
8268                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8269 $as_echo "$ac_res" >&6; }
8270 else
8271   # Is the header compilable?
8272 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8273 $as_echo_n "checking $ac_header usability... " >&6; }
8274 cat >conftest.$ac_ext <<_ACEOF
8275 /* confdefs.h.  */
8276 _ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h.  */
8280 $ac_includes_default
8281 #include <$ac_header>
8282 _ACEOF
8283 rm -f conftest.$ac_objext
8284 if { (ac_try="$ac_compile"
8285 case "(($ac_try" in
8286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287   *) ac_try_echo=$ac_try;;
8288 esac
8289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8290 $as_echo "$ac_try_echo") >&5
8291   (eval "$ac_compile") 2>conftest.er1
8292   ac_status=$?
8293   grep -v '^ *+' conftest.er1 >conftest.err
8294   rm -f conftest.er1
8295   cat conftest.err >&5
8296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } && {
8298          test -z "$ac_c_werror_flag" ||
8299          test ! -s conftest.err
8300        } && test -s conftest.$ac_objext; then
8301   ac_header_compiler=yes
8302 else
8303   $as_echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8305
8306         ac_header_compiler=no
8307 fi
8308
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8311 $as_echo "$ac_header_compiler" >&6; }
8312
8313 # Is the header present?
8314 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8315 $as_echo_n "checking $ac_header presence... " >&6; }
8316 cat >conftest.$ac_ext <<_ACEOF
8317 /* confdefs.h.  */
8318 _ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h.  */
8322 #include <$ac_header>
8323 _ACEOF
8324 if { (ac_try="$ac_cpp conftest.$ac_ext"
8325 case "(($ac_try" in
8326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327   *) ac_try_echo=$ac_try;;
8328 esac
8329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8330 $as_echo "$ac_try_echo") >&5
8331   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8332   ac_status=$?
8333   grep -v '^ *+' conftest.er1 >conftest.err
8334   rm -f conftest.er1
8335   cat conftest.err >&5
8336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); } >/dev/null && {
8338          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8339          test ! -s conftest.err
8340        }; then
8341   ac_header_preproc=yes
8342 else
8343   $as_echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8345
8346   ac_header_preproc=no
8347 fi
8348
8349 rm -f conftest.err conftest.$ac_ext
8350 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8351 $as_echo "$ac_header_preproc" >&6; }
8352
8353 # So?  What about this header?
8354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8355   yes:no: )
8356     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8357 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8358     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8360     ac_header_preproc=yes
8361     ;;
8362   no:yes:* )
8363     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8364 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8365     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8366 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8367     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8368 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8369     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8370 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8371     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8373     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8374 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8375
8376     ;;
8377 esac
8378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8379 $as_echo_n "checking for $ac_header... " >&6; }
8380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8381   $as_echo_n "(cached) " >&6
8382 else
8383   eval "$as_ac_Header=\$ac_header_preproc"
8384 fi
8385 ac_res=`eval 'as_val=${'$as_ac_Header'}
8386                  $as_echo "$as_val"'`
8387                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8388 $as_echo "$ac_res" >&6; }
8389
8390 fi
8391 as_val=`eval 'as_val=${'$as_ac_Header'}
8392                  $as_echo "$as_val"'`
8393    if test "x$as_val" = x""yes; then
8394   cat >>confdefs.h <<_ACEOF
8395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8396 _ACEOF
8397  HAVE_FT2BUILD_H=1
8398 fi
8399
8400 done
8401
8402 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8403
8404 for ac_header in freetype/freetype.h
8405 do
8406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8408   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8409 $as_echo_n "checking for $ac_header... " >&6; }
8410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8411   $as_echo_n "(cached) " >&6
8412 fi
8413 ac_res=`eval 'as_val=${'$as_ac_Header'}
8414                  $as_echo "$as_val"'`
8415                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8416 $as_echo "$ac_res" >&6; }
8417 else
8418   # Is the header compilable?
8419 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8420 $as_echo_n "checking $ac_header usability... " >&6; }
8421 cat >conftest.$ac_ext <<_ACEOF
8422 /* confdefs.h.  */
8423 _ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h.  */
8427 $ac_includes_default
8428 #include <$ac_header>
8429 _ACEOF
8430 rm -f conftest.$ac_objext
8431 if { (ac_try="$ac_compile"
8432 case "(($ac_try" in
8433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434   *) ac_try_echo=$ac_try;;
8435 esac
8436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8437 $as_echo "$ac_try_echo") >&5
8438   (eval "$ac_compile") 2>conftest.er1
8439   ac_status=$?
8440   grep -v '^ *+' conftest.er1 >conftest.err
8441   rm -f conftest.er1
8442   cat conftest.err >&5
8443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444   (exit $ac_status); } && {
8445          test -z "$ac_c_werror_flag" ||
8446          test ! -s conftest.err
8447        } && test -s conftest.$ac_objext; then
8448   ac_header_compiler=yes
8449 else
8450   $as_echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8452
8453         ac_header_compiler=no
8454 fi
8455
8456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8458 $as_echo "$ac_header_compiler" >&6; }
8459
8460 # Is the header present?
8461 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8462 $as_echo_n "checking $ac_header presence... " >&6; }
8463 cat >conftest.$ac_ext <<_ACEOF
8464 /* confdefs.h.  */
8465 _ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h.  */
8469 #include <$ac_header>
8470 _ACEOF
8471 if { (ac_try="$ac_cpp conftest.$ac_ext"
8472 case "(($ac_try" in
8473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474   *) ac_try_echo=$ac_try;;
8475 esac
8476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8477 $as_echo "$ac_try_echo") >&5
8478   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8479   ac_status=$?
8480   grep -v '^ *+' conftest.er1 >conftest.err
8481   rm -f conftest.er1
8482   cat conftest.err >&5
8483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484   (exit $ac_status); } >/dev/null && {
8485          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8486          test ! -s conftest.err
8487        }; then
8488   ac_header_preproc=yes
8489 else
8490   $as_echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8492
8493   ac_header_preproc=no
8494 fi
8495
8496 rm -f conftest.err conftest.$ac_ext
8497 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8498 $as_echo "$ac_header_preproc" >&6; }
8499
8500 # So?  What about this header?
8501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8502   yes:no: )
8503     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8504 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8505     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8506 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8507     ac_header_preproc=yes
8508     ;;
8509   no:yes:* )
8510     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8511 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8512     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8513 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8514     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8515 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8516     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8517 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8518     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8519 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8520     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8521 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8522
8523     ;;
8524 esac
8525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8526 $as_echo_n "checking for $ac_header... " >&6; }
8527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8528   $as_echo_n "(cached) " >&6
8529 else
8530   eval "$as_ac_Header=\$ac_header_preproc"
8531 fi
8532 ac_res=`eval 'as_val=${'$as_ac_Header'}
8533                  $as_echo "$as_val"'`
8534                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8535 $as_echo "$ac_res" >&6; }
8536
8537 fi
8538 as_val=`eval 'as_val=${'$as_ac_Header'}
8539                  $as_echo "$as_val"'`
8540    if test "x$as_val" = x""yes; then
8541   cat >>confdefs.h <<_ACEOF
8542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8543 _ACEOF
8544  HAVE_FREETYPE_FREETYPE_H=1
8545 fi
8546
8547 done
8548
8549 fi
8550
8551 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8552         "x${FREETYPE_CONFIG}" '!=' "x";then
8553     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8554         HAVE_FREETYPE=1
8555     fi
8556     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8557         HAVE_FREETYPE=1
8558     fi
8559 fi
8560
8561 if test "x${HAVE_FREETYPE}" = "x1"; then
8562     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8563         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8564     else
8565         LIBS="$LIBS -lfreetype"
8566     fi
8567
8568     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8569         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8570     fi
8571
8572     { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8573 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8574
8575     cat > conftest.c << EOF
8576 $HAVE_FT2BUILD_H_DEFINE
8577
8578 #ifdef HAVE_FT2BUILD_H
8579 #include <ft2build.h>
8580 #include FT_FREETYPE_H
8581 #include FT_GLYPH_H
8582 #include FT_SIZES_H
8583 #include FT_SFNT_NAMES_H
8584 #include FT_TRUETYPE_IDS_H
8585 #include FT_OUTLINE_H
8586 #else
8587 #include <freetype/freetype.h>
8588 #include <freetype/ftglyph.h>
8589 #include <freetype/ftsizes.h>
8590 #include <freetype/ftsnames.h>
8591 #include <freetype/ttnameid.h>
8592 #include <freetype/ftoutln.h>
8593 #endif
8594
8595 int main()
8596 {
8597     FT_Library ftlibrary;
8598     FT_Face face;
8599     FT_Error error;
8600     FT_ULong charcode;
8601     FT_UInt gindex;
8602     FT_Glyph glyph;
8603     FT_BBox bbox;
8604     FT_Matrix matrix;
8605     FT_UInt i;
8606     char* name = 0;
8607     char italic, bold;
8608
8609     FT_Init_FreeType(&ftlibrary);
8610     FT_New_Face(ftlibrary, "filename", 0, &face);
8611     i = face->num_glyphs - 1;
8612     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8613     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8614     FT_Get_Postscript_Name(face);
8615     FT_Get_Char_Index(face, 33);
8616     FT_Get_First_Char(face, &i);
8617     FT_Get_Next_Char(face, 33, &i);
8618     if(FT_HAS_GLYPH_NAMES(face)) {
8619         FT_Get_Glyph_Name(face, 33, name, 127);
8620     }
8621     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8622     FT_Get_Glyph(face->glyph, &glyph);
8623     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8624     FT_Done_Glyph(glyph);
8625     FT_Done_Face(face);
8626     FT_Done_FreeType(ftlibrary);
8627     return 0;
8628 }
8629 EOF
8630
8631     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8632     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8633         { $as_echo "$as_me:$LINENO: result: yes" >&5
8634 $as_echo "yes" >&6; }
8635
8636 cat >>confdefs.h <<\_ACEOF
8637 #define HAVE_FREETYPE 1
8638 _ACEOF
8639
8640
8641 cat >>confdefs.h <<\_ACEOF
8642 #define HAVE_FREETYPE_FREETYPE_H 1
8643 _ACEOF
8644
8645
8646 cat >>confdefs.h <<\_ACEOF
8647 #define USE_FREETYPE 1
8648 _ACEOF
8649   # for ttf2tp1
8650     else
8651         echo "configure: failed program was:" >&5
8652         cat conftest.c >&5
8653         HAVE_FREETYPE=0
8654         { $as_echo "$as_me:$LINENO: result: no" >&5
8655 $as_echo "no" >&6; }
8656     fi
8657     rm -f conftest*
8658 fi
8659
8660 # if the above didn't work out, reset all changes to the compiler variables.
8661 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8662     CPPFLAGS=$OLDCPPFLAGS
8663     LIBS=$OLDLIBS
8664 fi
8665
8666
8667
8668 OLDCPPFLAGS="${CPPFLAGS}"
8669 OLDLIBS="${LIBS}"
8670
8671 if test -d /usr/include/fontconfig; then
8672     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8673 fi
8674
8675 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8676 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8677 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8678   $as_echo_n "(cached) " >&6
8679 else
8680   ac_check_lib_save_LIBS=$LIBS
8681 LIBS="-lfontconfig  $LIBS"
8682 cat >conftest.$ac_ext <<_ACEOF
8683 /* confdefs.h.  */
8684 _ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h.  */
8688
8689 /* Override any GCC internal prototype to avoid an error.
8690    Use char because int might match the return type of a GCC
8691    builtin and then its argument prototype would still apply.  */
8692 #ifdef __cplusplus
8693 extern "C"
8694 #endif
8695 char FcInit ();
8696 int
8697 main ()
8698 {
8699 return FcInit ();
8700   ;
8701   return 0;
8702 }
8703 _ACEOF
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (ac_try="$ac_link"
8706 case "(($ac_try" in
8707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708   *) ac_try_echo=$ac_try;;
8709 esac
8710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8711 $as_echo "$ac_try_echo") >&5
8712   (eval "$ac_link") 2>conftest.er1
8713   ac_status=$?
8714   grep -v '^ *+' conftest.er1 >conftest.err
8715   rm -f conftest.er1
8716   cat conftest.err >&5
8717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718   (exit $ac_status); } && {
8719          test -z "$ac_c_werror_flag" ||
8720          test ! -s conftest.err
8721        } && test -s conftest$ac_exeext && {
8722          test "$cross_compiling" = yes ||
8723          $as_test_x conftest$ac_exeext
8724        }; then
8725   ac_cv_lib_fontconfig_FcInit=yes
8726 else
8727   $as_echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8729
8730         ac_cv_lib_fontconfig_FcInit=no
8731 fi
8732
8733 rm -rf conftest.dSYM
8734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8735       conftest$ac_exeext conftest.$ac_ext
8736 LIBS=$ac_check_lib_save_LIBS
8737 fi
8738 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8739 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8740 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then
8741   HAVE_LIB_FONTCONFIG=1
8742 fi
8743
8744
8745 for ac_header in fontconfig.h
8746 do
8747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8749   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8750 $as_echo_n "checking for $ac_header... " >&6; }
8751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8752   $as_echo_n "(cached) " >&6
8753 fi
8754 ac_res=`eval 'as_val=${'$as_ac_Header'}
8755                  $as_echo "$as_val"'`
8756                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8757 $as_echo "$ac_res" >&6; }
8758 else
8759   # Is the header compilable?
8760 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8761 $as_echo_n "checking $ac_header usability... " >&6; }
8762 cat >conftest.$ac_ext <<_ACEOF
8763 /* confdefs.h.  */
8764 _ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h.  */
8768 $ac_includes_default
8769 #include <$ac_header>
8770 _ACEOF
8771 rm -f conftest.$ac_objext
8772 if { (ac_try="$ac_compile"
8773 case "(($ac_try" in
8774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775   *) ac_try_echo=$ac_try;;
8776 esac
8777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8778 $as_echo "$ac_try_echo") >&5
8779   (eval "$ac_compile") 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } && {
8786          test -z "$ac_c_werror_flag" ||
8787          test ! -s conftest.err
8788        } && test -s conftest.$ac_objext; then
8789   ac_header_compiler=yes
8790 else
8791   $as_echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794         ac_header_compiler=no
8795 fi
8796
8797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8799 $as_echo "$ac_header_compiler" >&6; }
8800
8801 # Is the header present?
8802 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8803 $as_echo_n "checking $ac_header presence... " >&6; }
8804 cat >conftest.$ac_ext <<_ACEOF
8805 /* confdefs.h.  */
8806 _ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h.  */
8810 #include <$ac_header>
8811 _ACEOF
8812 if { (ac_try="$ac_cpp conftest.$ac_ext"
8813 case "(($ac_try" in
8814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815   *) ac_try_echo=$ac_try;;
8816 esac
8817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8818 $as_echo "$ac_try_echo") >&5
8819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8820   ac_status=$?
8821   grep -v '^ *+' conftest.er1 >conftest.err
8822   rm -f conftest.er1
8823   cat conftest.err >&5
8824   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825   (exit $ac_status); } >/dev/null && {
8826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8827          test ! -s conftest.err
8828        }; then
8829   ac_header_preproc=yes
8830 else
8831   $as_echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8833
8834   ac_header_preproc=no
8835 fi
8836
8837 rm -f conftest.err conftest.$ac_ext
8838 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8839 $as_echo "$ac_header_preproc" >&6; }
8840
8841 # So?  What about this header?
8842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8843   yes:no: )
8844     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8845 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8846     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8847 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8848     ac_header_preproc=yes
8849     ;;
8850   no:yes:* )
8851     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8852 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8853     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8854 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8855     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8856 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8857     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8858 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8859     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8861     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8862 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8863
8864     ;;
8865 esac
8866 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8867 $as_echo_n "checking for $ac_header... " >&6; }
8868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8869   $as_echo_n "(cached) " >&6
8870 else
8871   eval "$as_ac_Header=\$ac_header_preproc"
8872 fi
8873 ac_res=`eval 'as_val=${'$as_ac_Header'}
8874                  $as_echo "$as_val"'`
8875                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8876 $as_echo "$ac_res" >&6; }
8877
8878 fi
8879 as_val=`eval 'as_val=${'$as_ac_Header'}
8880                  $as_echo "$as_val"'`
8881    if test "x$as_val" = x""yes; then
8882   cat >>confdefs.h <<_ACEOF
8883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8884 _ACEOF
8885  HAVE_FONTCONFIG_H=1
8886 fi
8887
8888 done
8889
8890
8891 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8892 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8893     HAVE_FONTCONFIG=1
8894 fi
8895 fi
8896
8897 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8898     LIBS="$LIBS -lfontconfig"
8899 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8900 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8901
8902 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8903     #move freetype library to the end of libraries, otherwise fontconfig
8904     #won't compile.
8905     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8906 fi
8907
8908 cat > conftest.c << EOF
8909 #include <string.h>
8910 #include <fontconfig.h>
8911
8912 int main()
8913 {
8914     FcPattern *pattern, *match;
8915     FcResult result;
8916     FcChar8 *v;
8917     char*s1="abc",*s2="ABC";
8918     strcasecmp(s1,s2);
8919     FcInit();
8920     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8921     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8922     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8923
8924     FcConfig*c = FcConfigCreate();
8925     FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8926     FcConfigBuildFonts(c);
8927     FcConfigSetCurrent(c);
8928
8929     FcFontSet * set =  FcConfigGetFonts(c, FcSetSystem);
8930     FcFontSetDestroy(set);
8931
8932     FcConfigSubstitute(0, pattern, FcMatchPattern);
8933     FcDefaultSubstitute(pattern);
8934     match = FcFontMatch(0, pattern, &result);
8935     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8936     FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8937     FcPatternPrint(pattern);
8938     FcPatternDestroy(pattern);
8939     FcPatternDestroy(match);
8940     FcFini();
8941     return 0;
8942 }
8943 EOF
8944
8945     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8946     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8947         { $as_echo "$as_me:$LINENO: result: yes" >&5
8948 $as_echo "yes" >&6; }
8949
8950 cat >>confdefs.h <<\_ACEOF
8951 #define HAVE_FONTCONFIG 1
8952 _ACEOF
8953
8954     else
8955         echo "configure: failed program was:" >&5
8956         cat conftest.c >&5
8957         HAVE_FONTCONFIG=0
8958         { $as_echo "$as_me:$LINENO: result: no" >&5
8959 $as_echo "no" >&6; }
8960     fi
8961     rm -f conftest*
8962 fi
8963
8964 # if the above didn't work out, reset all changes to the compiler variables.
8965 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
8966     CPPFLAGS=$OLDCPPFLAGS
8967     LIBS=$OLDLIBS
8968 fi
8969
8970
8971
8972 OLDCPPFLAGS="${CPPFLAGS}"
8973 OLDLIBS="${LIBS}"
8974
8975
8976 { $as_echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
8977 $as_echo_n "checking for glBegin in -lGL... " >&6; }
8978 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
8979   $as_echo_n "(cached) " >&6
8980 else
8981   ac_check_lib_save_LIBS=$LIBS
8982 LIBS="-lGL  $LIBS"
8983 cat >conftest.$ac_ext <<_ACEOF
8984 /* confdefs.h.  */
8985 _ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h.  */
8989
8990 /* Override any GCC internal prototype to avoid an error.
8991    Use char because int might match the return type of a GCC
8992    builtin and then its argument prototype would still apply.  */
8993 #ifdef __cplusplus
8994 extern "C"
8995 #endif
8996 char glBegin ();
8997 int
8998 main ()
8999 {
9000 return glBegin ();
9001   ;
9002   return 0;
9003 }
9004 _ACEOF
9005 rm -f conftest.$ac_objext conftest$ac_exeext
9006 if { (ac_try="$ac_link"
9007 case "(($ac_try" in
9008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009   *) ac_try_echo=$ac_try;;
9010 esac
9011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9012 $as_echo "$ac_try_echo") >&5
9013   (eval "$ac_link") 2>conftest.er1
9014   ac_status=$?
9015   grep -v '^ *+' conftest.er1 >conftest.err
9016   rm -f conftest.er1
9017   cat conftest.err >&5
9018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019   (exit $ac_status); } && {
9020          test -z "$ac_c_werror_flag" ||
9021          test ! -s conftest.err
9022        } && test -s conftest$ac_exeext && {
9023          test "$cross_compiling" = yes ||
9024          $as_test_x conftest$ac_exeext
9025        }; then
9026   ac_cv_lib_GL_glBegin=yes
9027 else
9028   $as_echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9030
9031         ac_cv_lib_GL_glBegin=no
9032 fi
9033
9034 rm -rf conftest.dSYM
9035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9036       conftest$ac_exeext conftest.$ac_ext
9037 LIBS=$ac_check_lib_save_LIBS
9038 fi
9039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
9040 $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
9041 if test "x$ac_cv_lib_GL_glBegin" = x""yes; then
9042   cat >>confdefs.h <<_ACEOF
9043 #define HAVE_LIBGL 1
9044 _ACEOF
9045
9046   LIBS="-lGL $LIBS"
9047
9048 fi
9049
9050
9051 { $as_echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
9052 $as_echo_n "checking for gluBeginSurface in -lGLU... " >&6; }
9053 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
9054   $as_echo_n "(cached) " >&6
9055 else
9056   ac_check_lib_save_LIBS=$LIBS
9057 LIBS="-lGLU  $LIBS"
9058 cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h.  */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h.  */
9064
9065 /* Override any GCC internal prototype to avoid an error.
9066    Use char because int might match the return type of a GCC
9067    builtin and then its argument prototype would still apply.  */
9068 #ifdef __cplusplus
9069 extern "C"
9070 #endif
9071 char gluBeginSurface ();
9072 int
9073 main ()
9074 {
9075 return gluBeginSurface ();
9076   ;
9077   return 0;
9078 }
9079 _ACEOF
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (ac_try="$ac_link"
9082 case "(($ac_try" in
9083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084   *) ac_try_echo=$ac_try;;
9085 esac
9086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9087 $as_echo "$ac_try_echo") >&5
9088   (eval "$ac_link") 2>conftest.er1
9089   ac_status=$?
9090   grep -v '^ *+' conftest.er1 >conftest.err
9091   rm -f conftest.er1
9092   cat conftest.err >&5
9093   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094   (exit $ac_status); } && {
9095          test -z "$ac_c_werror_flag" ||
9096          test ! -s conftest.err
9097        } && test -s conftest$ac_exeext && {
9098          test "$cross_compiling" = yes ||
9099          $as_test_x conftest$ac_exeext
9100        }; then
9101   ac_cv_lib_GLU_gluBeginSurface=yes
9102 else
9103   $as_echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9105
9106         ac_cv_lib_GLU_gluBeginSurface=no
9107 fi
9108
9109 rm -rf conftest.dSYM
9110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9111       conftest$ac_exeext conftest.$ac_ext
9112 LIBS=$ac_check_lib_save_LIBS
9113 fi
9114 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
9115 $as_echo "$ac_cv_lib_GLU_gluBeginSurface" >&6; }
9116 if test "x$ac_cv_lib_GLU_gluBeginSurface" = x""yes; then
9117   cat >>confdefs.h <<_ACEOF
9118 #define HAVE_LIBGLU 1
9119 _ACEOF
9120
9121   LIBS="-lGLU $LIBS"
9122
9123 fi
9124
9125
9126 { $as_echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
9127 $as_echo_n "checking for glutInit in -lglut... " >&6; }
9128 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
9129   $as_echo_n "(cached) " >&6
9130 else
9131   ac_check_lib_save_LIBS=$LIBS
9132 LIBS="-lglut  $LIBS"
9133 cat >conftest.$ac_ext <<_ACEOF
9134 /* confdefs.h.  */
9135 _ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h.  */
9139
9140 /* Override any GCC internal prototype to avoid an error.
9141    Use char because int might match the return type of a GCC
9142    builtin and then its argument prototype would still apply.  */
9143 #ifdef __cplusplus
9144 extern "C"
9145 #endif
9146 char glutInit ();
9147 int
9148 main ()
9149 {
9150 return glutInit ();
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 rm -f conftest.$ac_objext conftest$ac_exeext
9156 if { (ac_try="$ac_link"
9157 case "(($ac_try" in
9158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159   *) ac_try_echo=$ac_try;;
9160 esac
9161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9162 $as_echo "$ac_try_echo") >&5
9163   (eval "$ac_link") 2>conftest.er1
9164   ac_status=$?
9165   grep -v '^ *+' conftest.er1 >conftest.err
9166   rm -f conftest.er1
9167   cat conftest.err >&5
9168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169   (exit $ac_status); } && {
9170          test -z "$ac_c_werror_flag" ||
9171          test ! -s conftest.err
9172        } && test -s conftest$ac_exeext && {
9173          test "$cross_compiling" = yes ||
9174          $as_test_x conftest$ac_exeext
9175        }; then
9176   ac_cv_lib_glut_glutInit=yes
9177 else
9178   $as_echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9180
9181         ac_cv_lib_glut_glutInit=no
9182 fi
9183
9184 rm -rf conftest.dSYM
9185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9186       conftest$ac_exeext conftest.$ac_ext
9187 LIBS=$ac_check_lib_save_LIBS
9188 fi
9189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
9190 $as_echo "$ac_cv_lib_glut_glutInit" >&6; }
9191 if test "x$ac_cv_lib_glut_glutInit" = x""yes; then
9192   cat >>confdefs.h <<_ACEOF
9193 #define HAVE_LIBGLUT 1
9194 _ACEOF
9195
9196   LIBS="-lglut $LIBS"
9197
9198 fi
9199
9200
9201
9202 for ac_header in GL/gl.h GL/glut.h
9203 do
9204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9206   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9207 $as_echo_n "checking for $ac_header... " >&6; }
9208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9209   $as_echo_n "(cached) " >&6
9210 fi
9211 ac_res=`eval 'as_val=${'$as_ac_Header'}
9212                  $as_echo "$as_val"'`
9213                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9214 $as_echo "$ac_res" >&6; }
9215 else
9216   # Is the header compilable?
9217 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9218 $as_echo_n "checking $ac_header usability... " >&6; }
9219 cat >conftest.$ac_ext <<_ACEOF
9220 /* confdefs.h.  */
9221 _ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h.  */
9225 $ac_includes_default
9226 #include <$ac_header>
9227 _ACEOF
9228 rm -f conftest.$ac_objext
9229 if { (ac_try="$ac_compile"
9230 case "(($ac_try" in
9231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232   *) ac_try_echo=$ac_try;;
9233 esac
9234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9235 $as_echo "$ac_try_echo") >&5
9236   (eval "$ac_compile") 2>conftest.er1
9237   ac_status=$?
9238   grep -v '^ *+' conftest.er1 >conftest.err
9239   rm -f conftest.er1
9240   cat conftest.err >&5
9241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242   (exit $ac_status); } && {
9243          test -z "$ac_c_werror_flag" ||
9244          test ! -s conftest.err
9245        } && test -s conftest.$ac_objext; then
9246   ac_header_compiler=yes
9247 else
9248   $as_echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251         ac_header_compiler=no
9252 fi
9253
9254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9256 $as_echo "$ac_header_compiler" >&6; }
9257
9258 # Is the header present?
9259 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9260 $as_echo_n "checking $ac_header presence... " >&6; }
9261 cat >conftest.$ac_ext <<_ACEOF
9262 /* confdefs.h.  */
9263 _ACEOF
9264 cat confdefs.h >>conftest.$ac_ext
9265 cat >>conftest.$ac_ext <<_ACEOF
9266 /* end confdefs.h.  */
9267 #include <$ac_header>
9268 _ACEOF
9269 if { (ac_try="$ac_cpp conftest.$ac_ext"
9270 case "(($ac_try" in
9271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272   *) ac_try_echo=$ac_try;;
9273 esac
9274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9275 $as_echo "$ac_try_echo") >&5
9276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9277   ac_status=$?
9278   grep -v '^ *+' conftest.er1 >conftest.err
9279   rm -f conftest.er1
9280   cat conftest.err >&5
9281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282   (exit $ac_status); } >/dev/null && {
9283          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9284          test ! -s conftest.err
9285        }; then
9286   ac_header_preproc=yes
9287 else
9288   $as_echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9290
9291   ac_header_preproc=no
9292 fi
9293
9294 rm -f conftest.err conftest.$ac_ext
9295 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9296 $as_echo "$ac_header_preproc" >&6; }
9297
9298 # So?  What about this header?
9299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9300   yes:no: )
9301     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9302 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9303     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9304 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9305     ac_header_preproc=yes
9306     ;;
9307   no:yes:* )
9308     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9309 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9311 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9312     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9313 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9314     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9315 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9316     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9318     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9319 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9320
9321     ;;
9322 esac
9323 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9324 $as_echo_n "checking for $ac_header... " >&6; }
9325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9326   $as_echo_n "(cached) " >&6
9327 else
9328   eval "$as_ac_Header=\$ac_header_preproc"
9329 fi
9330 ac_res=`eval 'as_val=${'$as_ac_Header'}
9331                  $as_echo "$as_val"'`
9332                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9333 $as_echo "$ac_res" >&6; }
9334
9335 fi
9336 as_val=`eval 'as_val=${'$as_ac_Header'}
9337                  $as_echo "$as_val"'`
9338    if test "x$as_val" = x""yes; then
9339   cat >>confdefs.h <<_ACEOF
9340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9341 _ACEOF
9342
9343 fi
9344
9345 done
9346
9347
9348 cat > conftest.c << EOF
9349 #include <GL/gl.h>
9350 #include <GL/glu.h>
9351 #include <GL/glut.h>
9352
9353 int main(int argc, char*argv)
9354 {
9355     glutInit(&argc, argv);
9356     glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
9357     glutInitWindowSize(320,200);
9358     glutInitWindowPosition(0,0);
9359     glutCreateWindow("main");
9360     glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
9361     glShadeModel(GL_SMOOTH);
9362     glEnable (GL_LINE_SMOOTH);
9363     glEnable (GL_POLYGON_SMOOTH);
9364     glEnable (GL_BLEND);
9365     glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9366     glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
9367     glHint (GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
9368 }
9369 EOF
9370
9371 { $as_echo "$as_me:$LINENO: checking whether we can compile the opengl test program" >&5
9372 $as_echo_n "checking whether we can compile the opengl test program... " >&6; }
9373
9374 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9375 if { (eval echo opengl.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9376     { $as_echo "$as_me:$LINENO: result: yes" >&5
9377 $as_echo "yes" >&6; }
9378     HAVE_OPENGL=1
9379
9380 cat >>confdefs.h <<\_ACEOF
9381 #define HAVE_OPENGL 1
9382 _ACEOF
9383
9384 else
9385     echo "configure: failed program was:" >&5
9386     cat conftest.c >&5
9387     HAVE_OPENGL=
9388     { $as_echo "$as_me:$LINENO: result: no" >&5
9389 $as_echo "no" >&6; }
9390 fi
9391 rm -f conftest*
9392
9393 # if the above didn't work out, reset all changes to the compiler variables.
9394 if test "x${HAVE_OPENGL}" "!=" "x1"; then
9395     CPPFLAGS=$OLDCPPFLAGS
9396     LIBS=$OLDLIBS
9397 fi
9398
9399 if test "$HAVE_OPENGL";then
9400     DEVICE_OPENGL='devices/opengl.$(O)'
9401
9402 fi
9403
9404 lame_in_source=
9405 lame_makefile=
9406 if test "x${DISABLE_LAME}" = "xtrue"; then
9407     echo "*" Disabling lame support...
9408 else
9409     # old lame code at lib/lame
9410     if test -f lib/lame/Makefile.in; then
9411         lame_in_source='$(lame_objects)'
9412         lame_makefile="lib/lame/Makefile"
9413         CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9414
9415 cat >>confdefs.h <<\_ACEOF
9416 #define HAVE_LAME 1
9417 _ACEOF
9418
9419     else
9420         if test -d /usr/include/lame; then
9421             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9422         else
9423             if test -d /usr/local/include/lame; then
9424                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9425             fi
9426         fi
9427
9428 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9429 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9430 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9431   $as_echo_n "(cached) " >&6
9432 else
9433   ac_check_lib_save_LIBS=$LIBS
9434 LIBS="-lmp3lame  $LIBS"
9435 cat >conftest.$ac_ext <<_ACEOF
9436 /* confdefs.h.  */
9437 _ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h.  */
9441
9442 /* Override any GCC internal prototype to avoid an error.
9443    Use char because int might match the return type of a GCC
9444    builtin and then its argument prototype would still apply.  */
9445 #ifdef __cplusplus
9446 extern "C"
9447 #endif
9448 char lame_init ();
9449 int
9450 main ()
9451 {
9452 return lame_init ();
9453   ;
9454   return 0;
9455 }
9456 _ACEOF
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (ac_try="$ac_link"
9459 case "(($ac_try" in
9460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461   *) ac_try_echo=$ac_try;;
9462 esac
9463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9464 $as_echo "$ac_try_echo") >&5
9465   (eval "$ac_link") 2>conftest.er1
9466   ac_status=$?
9467   grep -v '^ *+' conftest.er1 >conftest.err
9468   rm -f conftest.er1
9469   cat conftest.err >&5
9470   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471   (exit $ac_status); } && {
9472          test -z "$ac_c_werror_flag" ||
9473          test ! -s conftest.err
9474        } && test -s conftest$ac_exeext && {
9475          test "$cross_compiling" = yes ||
9476          $as_test_x conftest$ac_exeext
9477        }; then
9478   ac_cv_lib_mp3lame_lame_init=yes
9479 else
9480   $as_echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9482
9483         ac_cv_lib_mp3lame_lame_init=no
9484 fi
9485
9486 rm -rf conftest.dSYM
9487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9488       conftest$ac_exeext conftest.$ac_ext
9489 LIBS=$ac_check_lib_save_LIBS
9490 fi
9491 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9492 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9493 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then
9494   cat >>confdefs.h <<_ACEOF
9495 #define HAVE_LIBMP3LAME 1
9496 _ACEOF
9497
9498   LIBS="-lmp3lame $LIBS"
9499
9500 else
9501   NO_LIBMP3LAME=1
9502 fi
9503
9504         HASLAMEHEADER=
9505
9506 for ac_header in lame.h
9507 do
9508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9510   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9511 $as_echo_n "checking for $ac_header... " >&6; }
9512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9513   $as_echo_n "(cached) " >&6
9514 fi
9515 ac_res=`eval 'as_val=${'$as_ac_Header'}
9516                  $as_echo "$as_val"'`
9517                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9518 $as_echo "$ac_res" >&6; }
9519 else
9520   # Is the header compilable?
9521 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9522 $as_echo_n "checking $ac_header usability... " >&6; }
9523 cat >conftest.$ac_ext <<_ACEOF
9524 /* confdefs.h.  */
9525 _ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h.  */
9529 $ac_includes_default
9530 #include <$ac_header>
9531 _ACEOF
9532 rm -f conftest.$ac_objext
9533 if { (ac_try="$ac_compile"
9534 case "(($ac_try" in
9535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536   *) ac_try_echo=$ac_try;;
9537 esac
9538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9539 $as_echo "$ac_try_echo") >&5
9540   (eval "$ac_compile") 2>conftest.er1
9541   ac_status=$?
9542   grep -v '^ *+' conftest.er1 >conftest.err
9543   rm -f conftest.er1
9544   cat conftest.err >&5
9545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546   (exit $ac_status); } && {
9547          test -z "$ac_c_werror_flag" ||
9548          test ! -s conftest.err
9549        } && test -s conftest.$ac_objext; then
9550   ac_header_compiler=yes
9551 else
9552   $as_echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9554
9555         ac_header_compiler=no
9556 fi
9557
9558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9559 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9560 $as_echo "$ac_header_compiler" >&6; }
9561
9562 # Is the header present?
9563 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9564 $as_echo_n "checking $ac_header presence... " >&6; }
9565 cat >conftest.$ac_ext <<_ACEOF
9566 /* confdefs.h.  */
9567 _ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h.  */
9571 #include <$ac_header>
9572 _ACEOF
9573 if { (ac_try="$ac_cpp conftest.$ac_ext"
9574 case "(($ac_try" in
9575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576   *) ac_try_echo=$ac_try;;
9577 esac
9578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9579 $as_echo "$ac_try_echo") >&5
9580   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9581   ac_status=$?
9582   grep -v '^ *+' conftest.er1 >conftest.err
9583   rm -f conftest.er1
9584   cat conftest.err >&5
9585   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586   (exit $ac_status); } >/dev/null && {
9587          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9588          test ! -s conftest.err
9589        }; then
9590   ac_header_preproc=yes
9591 else
9592   $as_echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9594
9595   ac_header_preproc=no
9596 fi
9597
9598 rm -f conftest.err conftest.$ac_ext
9599 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9600 $as_echo "$ac_header_preproc" >&6; }
9601
9602 # So?  What about this header?
9603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9604   yes:no: )
9605     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9606 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9607     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9608 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9609     ac_header_preproc=yes
9610     ;;
9611   no:yes:* )
9612     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9613 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9614     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9615 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9616     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9617 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9618     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9619 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9620     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9621 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9622     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9623 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9624
9625     ;;
9626 esac
9627 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9628 $as_echo_n "checking for $ac_header... " >&6; }
9629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9630   $as_echo_n "(cached) " >&6
9631 else
9632   eval "$as_ac_Header=\$ac_header_preproc"
9633 fi
9634 ac_res=`eval 'as_val=${'$as_ac_Header'}
9635                  $as_echo "$as_val"'`
9636                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9637 $as_echo "$ac_res" >&6; }
9638
9639 fi
9640 as_val=`eval 'as_val=${'$as_ac_Header'}
9641                  $as_echo "$as_val"'`
9642    if test "x$as_val" = x""yes; then
9643   cat >>confdefs.h <<_ACEOF
9644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9645 _ACEOF
9646  HASLAMEHEADER=1
9647 fi
9648
9649 done
9650
9651         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9652             cat >>confdefs.h <<\_ACEOF
9653 #define HAVE_LAME 1
9654 _ACEOF
9655
9656         fi
9657     fi
9658 fi
9659
9660
9661
9662 cat >>confdefs.h <<\_ACEOF
9663 #define INTERNAL_LIBART 1
9664 _ACEOF
9665
9666 art_in_source='$(art_objects)'
9667 splash_in_source='$(splash_objects)'
9668 xpdf_in_source='$(xpdf_objects)'
9669
9670
9671
9672
9673
9674
9675 # ------------------------------------------------------------------
9676
9677
9678 { $as_echo "$as_me:$LINENO: checking whether the filesystem normalizes file names" >&5
9679 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
9680
9681 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
9682 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9683 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
9684     { $as_echo "$as_me:$LINENO: result: yes" >&5
9685 $as_echo "yes" >&6; }
9686
9687 cat >>confdefs.h <<\_ACEOF
9688 #define LOWERCASE_UPPERCASE 1
9689 _ACEOF
9690
9691 else
9692     { $as_echo "$as_me:$LINENO: result: no" >&5
9693 $as_echo "no" >&6; }
9694 fi
9695
9696 rm -f __abcdefghijklmnopqrstuvwxyz.txt
9697 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9698
9699
9700
9701 for ac_prog in avifile-config
9702 do
9703   # Extract the first word of "$ac_prog", so it can be a program name with args.
9704 set dummy $ac_prog; ac_word=$2
9705 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9706 $as_echo_n "checking for $ac_word... " >&6; }
9707 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9708   $as_echo_n "(cached) " >&6
9709 else
9710   if test -n "$AVIFILE_CONFIG"; then
9711   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9712 else
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 for as_dir in $PATH
9715 do
9716   IFS=$as_save_IFS
9717   test -z "$as_dir" && as_dir=.
9718   for ac_exec_ext in '' $ac_executable_extensions; do
9719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9720     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9721     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9722     break 2
9723   fi
9724 done
9725 done
9726 IFS=$as_save_IFS
9727
9728 fi
9729 fi
9730 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9731 if test -n "$AVIFILE_CONFIG"; then
9732   { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9733 $as_echo "$AVIFILE_CONFIG" >&6; }
9734 else
9735   { $as_echo "$as_me:$LINENO: result: no" >&5
9736 $as_echo "no" >&6; }
9737 fi
9738
9739
9740   test -n "$AVIFILE_CONFIG" && break
9741 done
9742
9743
9744 if test "x$AVIFILE_CONFIG" '!=' "x";then
9745     OLDCPPFLAGS="$CPPFLAGS"
9746     # temporarily add avifile paths to CPPFLAGS...
9747     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9748
9749
9750 for ac_header in avifile/version.h version.h
9751 do
9752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9754   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9755 $as_echo_n "checking for $ac_header... " >&6; }
9756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9757   $as_echo_n "(cached) " >&6
9758 fi
9759 ac_res=`eval 'as_val=${'$as_ac_Header'}
9760                  $as_echo "$as_val"'`
9761                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9762 $as_echo "$ac_res" >&6; }
9763 else
9764   # Is the header compilable?
9765 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9766 $as_echo_n "checking $ac_header usability... " >&6; }
9767 cat >conftest.$ac_ext <<_ACEOF
9768 /* confdefs.h.  */
9769 _ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h.  */
9773 $ac_includes_default
9774 #include <$ac_header>
9775 _ACEOF
9776 rm -f conftest.$ac_objext
9777 if { (ac_try="$ac_compile"
9778 case "(($ac_try" in
9779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780   *) ac_try_echo=$ac_try;;
9781 esac
9782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9783 $as_echo "$ac_try_echo") >&5
9784   (eval "$ac_compile") 2>conftest.er1
9785   ac_status=$?
9786   grep -v '^ *+' conftest.er1 >conftest.err
9787   rm -f conftest.er1
9788   cat conftest.err >&5
9789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790   (exit $ac_status); } && {
9791          test -z "$ac_c_werror_flag" ||
9792          test ! -s conftest.err
9793        } && test -s conftest.$ac_objext; then
9794   ac_header_compiler=yes
9795 else
9796   $as_echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9798
9799         ac_header_compiler=no
9800 fi
9801
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9804 $as_echo "$ac_header_compiler" >&6; }
9805
9806 # Is the header present?
9807 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9808 $as_echo_n "checking $ac_header presence... " >&6; }
9809 cat >conftest.$ac_ext <<_ACEOF
9810 /* confdefs.h.  */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h.  */
9815 #include <$ac_header>
9816 _ACEOF
9817 if { (ac_try="$ac_cpp conftest.$ac_ext"
9818 case "(($ac_try" in
9819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820   *) ac_try_echo=$ac_try;;
9821 esac
9822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9823 $as_echo "$ac_try_echo") >&5
9824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9825   ac_status=$?
9826   grep -v '^ *+' conftest.er1 >conftest.err
9827   rm -f conftest.er1
9828   cat conftest.err >&5
9829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830   (exit $ac_status); } >/dev/null && {
9831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9832          test ! -s conftest.err
9833        }; then
9834   ac_header_preproc=yes
9835 else
9836   $as_echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9838
9839   ac_header_preproc=no
9840 fi
9841
9842 rm -f conftest.err conftest.$ac_ext
9843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9844 $as_echo "$ac_header_preproc" >&6; }
9845
9846 # So?  What about this header?
9847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9848   yes:no: )
9849     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9850 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9851     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9853     ac_header_preproc=yes
9854     ;;
9855   no:yes:* )
9856     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9857 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9858     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9859 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9860     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9861 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9862     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9863 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9867 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9868
9869     ;;
9870 esac
9871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9872 $as_echo_n "checking for $ac_header... " >&6; }
9873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9874   $as_echo_n "(cached) " >&6
9875 else
9876   eval "$as_ac_Header=\$ac_header_preproc"
9877 fi
9878 ac_res=`eval 'as_val=${'$as_ac_Header'}
9879                  $as_echo "$as_val"'`
9880                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9881 $as_echo "$ac_res" >&6; }
9882
9883 fi
9884 as_val=`eval 'as_val=${'$as_ac_Header'}
9885                  $as_echo "$as_val"'`
9886    if test "x$as_val" = x""yes; then
9887   cat >>confdefs.h <<_ACEOF
9888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9889 _ACEOF
9890
9891 fi
9892
9893 done
9894
9895     # ... and reset
9896     CPPFLAGS="$OLDCPPFLAGS"
9897 fi
9898
9899 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9900 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
9901
9902 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9903     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9904 fi
9905 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9906     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9907 fi
9908
9909 cat > conftest.cpp << EOF
9910
9911 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9912 // so we have to introduce them this way
9913 $HAVE_VERSION_H_DEFINE
9914 $HAVE_AVIFILE_VERSION_H_DEFINE
9915
9916 #ifdef HAVE_VERSION_H
9917   #include <version.h>
9918 #endif
9919 #ifdef HAVE_AVIFILE_VERSION_H
9920   #include <avifile/version.h>
9921 #endif
9922
9923 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9924    #include <avifile.h>
9925    #include <aviplay.h>
9926    #include <avm_fourcc.h>
9927    #include <avm_creators.h>
9928    #include <StreamInfo.h>
9929    #define VERSION6
9930 #else
9931    #include <avifile.h>
9932    #include <aviplay.h>
9933    #include <aviutil.h>
9934    #define Width width
9935    #define Height height
9936    #define Data data
9937    #define Bpp bpp
9938 #endif
9939
9940 void test()
9941 {
9942   IAviReadFile* player;
9943   IAviReadStream* astream;
9944   IAviReadStream* vstream;
9945   player = CreateIAviReadFile(0);
9946   astream = player->GetStream(0, AviStream::Audio);
9947   vstream = player->GetStream(0, AviStream::Video);
9948   vstream -> StartStreaming();
9949   astream -> StartStreaming();
9950 #ifndef VERSION6
9951   MainAVIHeader head;
9952   player->GetFileHeader(&head);
9953   head.dwMicroSecPerFrame;
9954   head.dwTotalFrames;
9955   head.dwStreams;
9956   head.dwWidth;
9957   head.dwHeight;
9958   head.dwMicroSecPerFrame;
9959   astream->GetEndPos(),
9960   astream->GetEndTime());
9961   player->StreamCount();
9962 #else
9963   StreamInfo*audioinfo;
9964   StreamInfo*videoinfo;
9965   audioinfo = astream->GetStreamInfo();
9966   videoinfo = vstream->GetStreamInfo();
9967   videoinfo->GetVideoWidth();
9968   videoinfo->GetVideoHeight();
9969   audioinfo->GetAudioSamplesPerSec();
9970   videoinfo->GetFps();
9971 #endif
9972   CImage*img = vstream->GetFrame();
9973   img->ToRGB();
9974   img->Data();
9975   img->Bpp();
9976   img->Width();
9977   img->Height();
9978   WAVEFORMATEX wave;
9979   astream->GetAudioFormatInfo(&wave,0);
9980   uint_t a,b;
9981   astream->ReadFrames(0,0,0,a,b);
9982 }
9983 int main (int argc, char*argv)
9984 {
9985     return 0;
9986 }
9987 EOF
9988
9989 if test "x$AVIFILE_CONFIG" '!=' "x";then
9990     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9991     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9992     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9993     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9994       { $as_echo "$as_me:$LINENO: result: yes" >&5
9995 $as_echo "yes" >&6; }
9996       AVIFILE=true
9997       export AVIFILE
9998
9999 cat >>confdefs.h <<\_ACEOF
10000 #define AVIFILE true
10001 _ACEOF
10002
10003     else
10004       echo "configure: failed program was:" >&5
10005       cat conftest.cpp >&5
10006       { $as_echo "$as_me:$LINENO: result: no" >&5
10007 $as_echo "no" >&6; }
10008     fi
10009 else
10010     { $as_echo "$as_me:$LINENO: result: no" >&5
10011 $as_echo "no" >&6; }
10012 fi
10013 rm -f conftest*
10014
10015 if test "x${AVIFILE}" = "xtrue"; then
10016     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
10017     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
10018
10019 cat >>confdefs.h <<\_ACEOF
10020 #define HAVE_AVIFILE 1
10021 _ACEOF
10022
10023 fi
10024
10025 if test "x${WIN32}" != "x"; then
10026     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
10027     #if test "x${AVIFIL32}" != "x"; then
10028     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
10029     #fi
10030     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
10031     AVIFIL32=true
10032 fi
10033
10034
10035
10036 # ------------------------------------------------------------------
10037
10038 if test "x${UNCOMPRESS}" = "xgzip"; then
10039
10040 cat >>confdefs.h <<\_ACEOF
10041 #define USE_GZIP 1
10042 _ACEOF
10043
10044 fi
10045
10046
10047 # ------------------------------------------------------------------
10048
10049
10050 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
10051 $as_echo_n "checking for Python.h... " >&6; }
10052
10053 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
10054     PY_VERSION=unknown
10055 else
10056     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
10057         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
10058     fi
10059     # iterate through version 2.2 to 2.6
10060     for v in 2 3 4 5 6; do
10061         # Linux
10062         if test -f "/usr/include/python2.$v/Python.h";then
10063             PY_VERSION=2.$v
10064             PYTHON_LIB="-lpython$PY_VERSION"
10065             if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
10066                 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
10067                 HAVE_PYTHON_IMAGING_LIB=1
10068             else
10069                 PYTHON_LIB2="$PYTHON_LIB"
10070             fi
10071             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
10072         # Mac OS X
10073         elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
10074             PY_VERSION=2.$v
10075             PYTHON_LIB="-framework Python"
10076             if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
10077                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
10078                 HAVE_PYTHON_IMAGING_LIB=1
10079             else
10080                 PYTHON_LIB2="$PYTHON_LIB"
10081             fi
10082             PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
10083         # Mac OS X [Fink]:
10084         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
10085                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
10086                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
10087                   ")" \
10088                -a -f "/sw/include/python2.$v/Python.h"; then
10089             PY_VERSION=2.$v
10090             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10091             if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
10092                 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10093                 HAVE_PYTHON_IMAGING_LIB=1
10094             else
10095                 PYTHON_LIB2="$PYTHON_LIB"
10096             fi
10097             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
10098         fi
10099     done
10100 fi
10101
10102 if test "x$PY_VERSION" "!=" "x"; then
10103     { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
10104 $as_echo "$PY_VERSION" >&6; }
10105     export PYTHON_INCLUDES PYTHON_LIB
10106
10107
10108     { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
10109 $as_echo_n "checking whether we can compile the python test program... " >&6; }
10110
10111     cat > conftest.c << EOF
10112 #include <Python.h>
10113
10114 int main()
10115 {
10116     int ret;
10117     ret = Py_Main(0, 0);
10118     int x; // check also for gcc 2.95.x incompatibilities
10119     return ret;
10120 }
10121 EOF
10122
10123     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
10124     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10125         { $as_echo "$as_me:$LINENO: result: yes" >&5
10126 $as_echo "yes" >&6; }
10127         PYTHON_OK=yes
10128     else
10129         echo "configure: failed program was:" >&5
10130         cat conftest.c >&5
10131         { $as_echo "$as_me:$LINENO: result: no" >&5
10132 $as_echo "no" >&6; }
10133     fi
10134     rm -f conftest*
10135     if test "x$PYTHON_OK" = "xyes";then
10136         { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
10137 $as_echo_n "checking for Python-Imaging... " >&6; }
10138     cat > conftest.c << EOF
10139 #include <Python.h>
10140 #include <Imaging.h>
10141
10142 int main()
10143 {
10144     Py_Main(0, 0);
10145     return 0;
10146 }
10147 EOF
10148         if test "$HAVE_PYTHON_IMAGING_LIB"; then
10149             ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
10150             if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10151                 PYTHON_LIB="${PYTHON_LIB2}"
10152
10153 cat >>confdefs.h <<\_ACEOF
10154 #define HAVE_PYTHON_IMAGING 1
10155 _ACEOF
10156
10157                 HAVE_PYTHON_IMAGING=yes
10158                 export HAVE_PYTHON_IMAGING
10159
10160                 { $as_echo "$as_me:$LINENO: result: yes" >&5
10161 $as_echo "yes" >&6; }
10162             else
10163                 echo "configure: failed program was:" >&5
10164                 cat conftest.c >&5
10165                 { $as_echo "$as_me:$LINENO: result: no" >&5
10166 $as_echo "no" >&6; }
10167             fi
10168         else
10169             echo "(didn't find the Python-Imaging libraries)" >&5
10170             { $as_echo "$as_me:$LINENO: result: no" >&5
10171 $as_echo "no" >&6; }
10172         fi
10173     fi
10174     rm -f conftest*
10175 else
10176     { $as_echo "$as_me:$LINENO: result: nope" >&5
10177 $as_echo "nope" >&6; }
10178 fi
10179
10180
10181 if test "x$PYTHON_OK" '!=' "xyes";then
10182     echo all install uninstall clean: > lib/python/Makefile
10183     # fail silently- the most users won't have any need for the
10184     # python interface anyway
10185 else
10186     pythonrfxswf="lib/python/Makefile"
10187 fi
10188
10189 # ------------------------------------------------------------------
10190
10191 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
10192 $as_echo_n "checking for missing libraries... " >&6; }
10193
10194 if test "x$ZLIBMISSING" = "xtrue";then
10195     MISSINGLIBS="${MISSINGLIBS} zlib"
10196     DISABLEPNG2SWF=true
10197     PARTIAL=true
10198 fi
10199 if test "x$JPEGLIBMISSING" = "xtrue";then
10200     MISSINGLIBS="${MISSINGLIBS} jpeglib"
10201     DISABLEPDF2SWF=true
10202     DISABLEJPEG2SWF=true
10203     PARTIAL=true
10204 fi
10205 if test "x$PDFLIBMISSING" = "xtrue";then
10206     DISABLEPDF2PDF=true;
10207 fi
10208 #if test "x$T1LIBMISSING" = "xtrue";then
10209 #    MISSINGLIBS="${MISSINGLIBS} t1lib"
10210 #fi
10211 if test "x$UNGIFMISSING" = "xtrue";then
10212     DISABLEGIF2SWF=true
10213     MISSINGLIBS="${MISSINGLIBS} ungif"
10214     PARTIAL=true
10215 fi
10216
10217 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
10218     DISABLEPDF2PDF=true;
10219 fi
10220 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10221     DISABLEPDF2SWF=true;
10222     DISABLEJPEG2SWF=true;
10223     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10224     PARTIAL=true
10225 fi
10226 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10227     DISABLEPDF2SWF=true;
10228     MISSINGLIBS="${MISSINGLIBS} freetype"
10229     PARTIAL=true
10230 fi
10231 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10232 #    MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10233 #fi
10234 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10235     DISABLEGIF2SWF=true
10236     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10237     PARTIAL=true
10238 fi
10239 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10240     DISABLEPNG2SWF=true;
10241     MISSINGLIBS="${MISSINGLIBS} zlib.h"
10242     PARTIAL=true
10243 fi
10244 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10245 #    MISSINGLIBS="${MISSINGLIBS} avifile"
10246 #fi
10247
10248 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10249 $as_echo "${MISSINGLIBS}" >&6; }
10250
10251 # ------------------------------------------------------------------
10252
10253 if test "x${MISSINGLIBS}" '!=' "x"; then
10254   echo "***************************************************"
10255   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10256 fi
10257
10258 avi2swf="avi2swf/Makefile"
10259 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10260  #don't whine, avi2swf is outdated anyway
10261  #echo "* Disabling avi2swf tool..."
10262  echo all install uninstall clean: > avi2swf/Makefile
10263  avi2swf=
10264 fi
10265
10266 pdf2swf_makefile="lib/pdf/Makefile"
10267 PDF2SWF='pdf2swf$(E)'
10268 LIBPDF='libpdf$(A)'
10269
10270 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10271   echo "* Disabling pdf2swf tool..."
10272   rm -f lib/pdf/Makefile
10273   echo all install uninstall clean libpdf: > lib/pdf/Makefile
10274   pdf2swf_makefile=""
10275   PDF2SWF=
10276   LIBPDF=
10277 fi
10278
10279
10280
10281 PDF2PDF='pdf2pdf$(E)'
10282 DEVICE_PDF='devices/pdf.$(O)'
10283 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
10284   #echo "* Disabling pdf2pdf tool..."
10285   PDF2PDF=
10286   DEVICE_PDF=
10287 fi
10288
10289
10290
10291 if test "x${ZLIBMISSING}" = "xtrue"; then
10292   echo
10293   echo "* Warning! Without zlib, you will not be able to read"
10294   echo "* or write compressed Flash MX files!"
10295 fi
10296
10297 JPEG2SWF='jpeg2swf$(E)'
10298 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10299   echo "* Disabling jpeg2swf tool..."
10300   JPEG2SWF=
10301 fi
10302 export JPEG2SWF
10303
10304
10305 GIF2SWF='gif2swf$(E)'
10306 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10307   echo "* Disabling gif2swf tool..."
10308   GIF2SWF=
10309 fi
10310 export GIF2SWF
10311
10312
10313 PNG2SWF='png2swf$(E)'
10314 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10315   echo "* Disabling png2swf tool..."
10316   PNG2SWF=
10317 fi
10318 export PNG2SWF
10319
10320
10321 if test "x${MISSINGLIBS}" '!=' "x"; then
10322   if test "x${PARTIAL}" '=' "x"; then
10323     echo "* (never mind)"
10324   fi
10325   echo "***************************************************"
10326 fi
10327
10328 # ------------------------------------------------------------------
10329
10330
10331
10332
10333
10334
10335
10336 if test -f "release.in"; then release_in="./release"; fi
10337 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10338 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
10339 ac_config_files="$ac_config_files ${FILES}"
10340
10341 cat >confcache <<\_ACEOF
10342 # This file is a shell script that caches the results of configure
10343 # tests run on this system so they can be shared between configure
10344 # scripts and configure runs, see configure's option --config-cache.
10345 # It is not useful on other systems.  If it contains results you don't
10346 # want to keep, you may remove or edit it.
10347 #
10348 # config.status only pays attention to the cache file if you give it
10349 # the --recheck option to rerun configure.
10350 #
10351 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10352 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10353 # following values.
10354
10355 _ACEOF
10356
10357 # The following way of writing the cache mishandles newlines in values,
10358 # but we know of no workaround that is simple, portable, and efficient.
10359 # So, we kill variables containing newlines.
10360 # Ultrix sh set writes to stderr and can't be redirected directly,
10361 # and sets the high bit in the cache file unless we assign to the vars.
10362 (
10363   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10364     eval ac_val=\$$ac_var
10365     case $ac_val in #(
10366     *${as_nl}*)
10367       case $ac_var in #(
10368       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10369 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10370       esac
10371       case $ac_var in #(
10372       _ | IFS | as_nl) ;; #(
10373       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10374       *) $as_unset $ac_var ;;
10375       esac ;;
10376     esac
10377   done
10378
10379   (set) 2>&1 |
10380     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10381     *${as_nl}ac_space=\ *)
10382       # `set' does not quote correctly, so add quotes (double-quote
10383       # substitution turns \\\\ into \\, and sed turns \\ into \).
10384       sed -n \
10385         "s/'/'\\\\''/g;
10386           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10387       ;; #(
10388     *)
10389       # `set' quotes correctly as required by POSIX, so do not add quotes.
10390       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10391       ;;
10392     esac |
10393     sort
10394 ) |
10395   sed '
10396      /^ac_cv_env_/b end
10397      t clear
10398      :clear
10399      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10400      t end
10401      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10402      :end' >>confcache
10403 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10404   if test -w "$cache_file"; then
10405     test "x$cache_file" != "x/dev/null" &&
10406       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10407 $as_echo "$as_me: updating cache $cache_file" >&6;}
10408     cat confcache >$cache_file
10409   else
10410     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10411 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10412   fi
10413 fi
10414 rm -f confcache
10415
10416 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10417 # Let make expand exec_prefix.
10418 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10419
10420 DEFS=-DHAVE_CONFIG_H
10421
10422 ac_libobjs=
10423 ac_ltlibobjs=
10424 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10425   # 1. Remove the extension, and $U if already installed.
10426   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10427   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10428   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10429   #    will be set to the directory where LIBOBJS objects are built.
10430   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10431   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10432 done
10433 LIBOBJS=$ac_libobjs
10434
10435 LTLIBOBJS=$ac_ltlibobjs
10436
10437
10438
10439 : ${CONFIG_STATUS=./config.status}
10440 ac_write_fail=0
10441 ac_clean_files_save=$ac_clean_files
10442 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10443 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10444 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10445 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10446 #! $SHELL
10447 # Generated by $as_me.
10448 # Run this file to recreate the current configuration.
10449 # Compiler output produced by configure, useful for debugging
10450 # configure, is in config.log if it exists.
10451
10452 debug=false
10453 ac_cs_recheck=false
10454 ac_cs_silent=false
10455 SHELL=\${CONFIG_SHELL-$SHELL}
10456 _ACEOF
10457
10458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10459 ## --------------------- ##
10460 ## M4sh Initialization.  ##
10461 ## --------------------- ##
10462
10463 # Be more Bourne compatible
10464 DUALCASE=1; export DUALCASE # for MKS sh
10465 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10466   emulate sh
10467   NULLCMD=:
10468   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10469   # is contrary to our usage.  Disable this feature.
10470   alias -g '${1+"$@"}'='"$@"'
10471   setopt NO_GLOB_SUBST
10472 else
10473   case `(set -o) 2>/dev/null` in
10474   *posix*) set -o posix ;;
10475 esac
10476
10477 fi
10478
10479
10480
10481
10482 # PATH needs CR
10483 # Avoid depending upon Character Ranges.
10484 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10485 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10486 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10487 as_cr_digits='0123456789'
10488 as_cr_alnum=$as_cr_Letters$as_cr_digits
10489
10490 as_nl='
10491 '
10492 export as_nl
10493 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10494 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10495 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10496 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10497 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10498   as_echo='printf %s\n'
10499   as_echo_n='printf %s'
10500 else
10501   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10502     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10503     as_echo_n='/usr/ucb/echo -n'
10504   else
10505     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10506     as_echo_n_body='eval
10507       arg=$1;
10508       case $arg in
10509       *"$as_nl"*)
10510         expr "X$arg" : "X\\(.*\\)$as_nl";
10511         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10512       esac;
10513       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10514     '
10515     export as_echo_n_body
10516     as_echo_n='sh -c $as_echo_n_body as_echo'
10517   fi
10518   export as_echo_body
10519   as_echo='sh -c $as_echo_body as_echo'
10520 fi
10521
10522 # The user is always right.
10523 if test "${PATH_SEPARATOR+set}" != set; then
10524   PATH_SEPARATOR=:
10525   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10526     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10527       PATH_SEPARATOR=';'
10528   }
10529 fi
10530
10531 # Support unset when possible.
10532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10533   as_unset=unset
10534 else
10535   as_unset=false
10536 fi
10537
10538
10539 # IFS
10540 # We need space, tab and new line, in precisely that order.  Quoting is
10541 # there to prevent editors from complaining about space-tab.
10542 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10543 # splitting by setting IFS to empty value.)
10544 IFS=" ""        $as_nl"
10545
10546 # Find who we are.  Look in the path if we contain no directory separator.
10547 case $0 in
10548   *[\\/]* ) as_myself=$0 ;;
10549   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550 for as_dir in $PATH
10551 do
10552   IFS=$as_save_IFS
10553   test -z "$as_dir" && as_dir=.
10554   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10555 done
10556 IFS=$as_save_IFS
10557
10558      ;;
10559 esac
10560 # We did not find ourselves, most probably we were run as `sh COMMAND'
10561 # in which case we are not to be found in the path.
10562 if test "x$as_myself" = x; then
10563   as_myself=$0
10564 fi
10565 if test ! -f "$as_myself"; then
10566   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10567   { (exit 1); exit 1; }
10568 fi
10569
10570 # Work around bugs in pre-3.0 UWIN ksh.
10571 for as_var in ENV MAIL MAILPATH
10572 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10573 done
10574 PS1='$ '
10575 PS2='> '
10576 PS4='+ '
10577
10578 # NLS nuisances.
10579 LC_ALL=C
10580 export LC_ALL
10581 LANGUAGE=C
10582 export LANGUAGE
10583
10584 # Required to use basename.
10585 if expr a : '\(a\)' >/dev/null 2>&1 &&
10586    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10587   as_expr=expr
10588 else
10589   as_expr=false
10590 fi
10591
10592 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10593   as_basename=basename
10594 else
10595   as_basename=false
10596 fi
10597
10598
10599 # Name of the executable.
10600 as_me=`$as_basename -- "$0" ||
10601 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10602          X"$0" : 'X\(//\)$' \| \
10603          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10604 $as_echo X/"$0" |
10605     sed '/^.*\/\([^/][^/]*\)\/*$/{
10606             s//\1/
10607             q
10608           }
10609           /^X\/\(\/\/\)$/{
10610             s//\1/
10611             q
10612           }
10613           /^X\/\(\/\).*/{
10614             s//\1/
10615             q
10616           }
10617           s/.*/./; q'`
10618
10619 # CDPATH.
10620 $as_unset CDPATH
10621
10622
10623
10624   as_lineno_1=$LINENO
10625   as_lineno_2=$LINENO
10626   test "x$as_lineno_1" != "x$as_lineno_2" &&
10627   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10628
10629   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10630   # uniformly replaced by the line number.  The first 'sed' inserts a
10631   # line-number line after each line using $LINENO; the second 'sed'
10632   # does the real work.  The second script uses 'N' to pair each
10633   # line-number line with the line containing $LINENO, and appends
10634   # trailing '-' during substitution so that $LINENO is not a special
10635   # case at line end.
10636   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10637   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10638   # E. McMahon (1931-1989) for sed's syntax.  :-)
10639   sed -n '
10640     p
10641     /[$]LINENO/=
10642   ' <$as_myself |
10643     sed '
10644       s/[$]LINENO.*/&-/
10645       t lineno
10646       b
10647       :lineno
10648       N
10649       :loop
10650       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10651       t loop
10652       s/-\n.*//
10653     ' >$as_me.lineno &&
10654   chmod +x "$as_me.lineno" ||
10655     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10656    { (exit 1); exit 1; }; }
10657
10658   # Don't try to exec as it changes $[0], causing all sort of problems
10659   # (the dirname of $[0] is not the place where we might find the
10660   # original and so on.  Autoconf is especially sensitive to this).
10661   . "./$as_me.lineno"
10662   # Exit status is that of the last command.
10663   exit
10664 }
10665
10666
10667 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10668   as_dirname=dirname
10669 else
10670   as_dirname=false
10671 fi
10672
10673 ECHO_C= ECHO_N= ECHO_T=
10674 case `echo -n x` in
10675 -n*)
10676   case `echo 'x\c'` in
10677   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10678   *)   ECHO_C='\c';;
10679   esac;;
10680 *)
10681   ECHO_N='-n';;
10682 esac
10683 if expr a : '\(a\)' >/dev/null 2>&1 &&
10684    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10685   as_expr=expr
10686 else
10687   as_expr=false
10688 fi
10689
10690 rm -f conf$$ conf$$.exe conf$$.file
10691 if test -d conf$$.dir; then
10692   rm -f conf$$.dir/conf$$.file
10693 else
10694   rm -f conf$$.dir
10695   mkdir conf$$.dir 2>/dev/null
10696 fi
10697 if (echo >conf$$.file) 2>/dev/null; then
10698   if ln -s conf$$.file conf$$ 2>/dev/null; then
10699     as_ln_s='ln -s'
10700     # ... but there are two gotchas:
10701     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10702     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10703     # In both cases, we have to default to `cp -p'.
10704     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10705       as_ln_s='cp -p'
10706   elif ln conf$$.file conf$$ 2>/dev/null; then
10707     as_ln_s=ln
10708   else
10709     as_ln_s='cp -p'
10710   fi
10711 else
10712   as_ln_s='cp -p'
10713 fi
10714 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10715 rmdir conf$$.dir 2>/dev/null
10716
10717 if mkdir -p . 2>/dev/null; then
10718   as_mkdir_p=:
10719 else
10720   test -d ./-p && rmdir ./-p
10721   as_mkdir_p=false
10722 fi
10723
10724 if test -x / >/dev/null 2>&1; then
10725   as_test_x='test -x'
10726 else
10727   if ls -dL / >/dev/null 2>&1; then
10728     as_ls_L_option=L
10729   else
10730     as_ls_L_option=
10731   fi
10732   as_test_x='
10733     eval sh -c '\''
10734       if test -d "$1"; then
10735         test -d "$1/.";
10736       else
10737         case $1 in
10738         -*)set "./$1";;
10739         esac;
10740         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10741         ???[sx]*):;;*)false;;esac;fi
10742     '\'' sh
10743   '
10744 fi
10745 as_executable_p=$as_test_x
10746
10747 # Sed expression to map a string onto a valid CPP name.
10748 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10749
10750 # Sed expression to map a string onto a valid variable name.
10751 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10752
10753
10754 exec 6>&1
10755
10756 # Save the log message, to keep $[0] and so on meaningful, and to
10757 # report actual input values of CONFIG_FILES etc. instead of their
10758 # values after options handling.
10759 ac_log="
10760 This file was extended by $as_me, which was
10761 generated by GNU Autoconf 2.63.  Invocation command line was
10762
10763   CONFIG_FILES    = $CONFIG_FILES
10764   CONFIG_HEADERS  = $CONFIG_HEADERS
10765   CONFIG_LINKS    = $CONFIG_LINKS
10766   CONFIG_COMMANDS = $CONFIG_COMMANDS
10767   $ $0 $@
10768
10769 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10770 "
10771
10772 _ACEOF
10773
10774 case $ac_config_files in *"
10775 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10776 esac
10777
10778 case $ac_config_headers in *"
10779 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10780 esac
10781
10782
10783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10784 # Files that config.status was made for.
10785 config_files="$ac_config_files"
10786 config_headers="$ac_config_headers"
10787
10788 _ACEOF
10789
10790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10791 ac_cs_usage="\
10792 \`$as_me' instantiates files from templates according to the
10793 current configuration.
10794
10795 Usage: $0 [OPTION]... [FILE]...
10796
10797   -h, --help       print this help, then exit
10798   -V, --version    print version number and configuration settings, then exit
10799   -q, --quiet, --silent
10800                    do not print progress messages
10801   -d, --debug      don't remove temporary files
10802       --recheck    update $as_me by reconfiguring in the same conditions
10803       --file=FILE[:TEMPLATE]
10804                    instantiate the configuration file FILE
10805       --header=FILE[:TEMPLATE]
10806                    instantiate the configuration header FILE
10807
10808 Configuration files:
10809 $config_files
10810
10811 Configuration headers:
10812 $config_headers
10813
10814 Report bugs to <bug-autoconf@gnu.org>."
10815
10816 _ACEOF
10817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10818 ac_cs_version="\\
10819 config.status
10820 configured by $0, generated by GNU Autoconf 2.63,
10821   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10822
10823 Copyright (C) 2008 Free Software Foundation, Inc.
10824 This config.status script is free software; the Free Software Foundation
10825 gives unlimited permission to copy, distribute and modify it."
10826
10827 ac_pwd='$ac_pwd'
10828 srcdir='$srcdir'
10829 INSTALL='$INSTALL'
10830 test -n "\$AWK" || AWK=awk
10831 _ACEOF
10832
10833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10834 # The default lists apply if the user does not specify any file.
10835 ac_need_defaults=:
10836 while test $# != 0
10837 do
10838   case $1 in
10839   --*=*)
10840     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10841     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10842     ac_shift=:
10843     ;;
10844   *)
10845     ac_option=$1
10846     ac_optarg=$2
10847     ac_shift=shift
10848     ;;
10849   esac
10850
10851   case $ac_option in
10852   # Handling of the options.
10853   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10854     ac_cs_recheck=: ;;
10855   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10856     $as_echo "$ac_cs_version"; exit ;;
10857   --debug | --debu | --deb | --de | --d | -d )
10858     debug=: ;;
10859   --file | --fil | --fi | --f )
10860     $ac_shift
10861     case $ac_optarg in
10862     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10863     esac
10864     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10865     ac_need_defaults=false;;
10866   --header | --heade | --head | --hea )
10867     $ac_shift
10868     case $ac_optarg in
10869     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10870     esac
10871     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10872     ac_need_defaults=false;;
10873   --he | --h)
10874     # Conflict between --help and --header
10875     { $as_echo "$as_me: error: ambiguous option: $1
10876 Try \`$0 --help' for more information." >&2
10877    { (exit 1); exit 1; }; };;
10878   --help | --hel | -h )
10879     $as_echo "$ac_cs_usage"; exit ;;
10880   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10881   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10882     ac_cs_silent=: ;;
10883
10884   # This is an error.
10885   -*) { $as_echo "$as_me: error: unrecognized option: $1
10886 Try \`$0 --help' for more information." >&2
10887    { (exit 1); exit 1; }; } ;;
10888
10889   *) ac_config_targets="$ac_config_targets $1"
10890      ac_need_defaults=false ;;
10891
10892   esac
10893   shift
10894 done
10895
10896 ac_configure_extra_args=
10897
10898 if $ac_cs_silent; then
10899   exec 6>/dev/null
10900   ac_configure_extra_args="$ac_configure_extra_args --silent"
10901 fi
10902
10903 _ACEOF
10904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10905 if \$ac_cs_recheck; then
10906   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10907   shift
10908   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10909   CONFIG_SHELL='$SHELL'
10910   export CONFIG_SHELL
10911   exec "\$@"
10912 fi
10913
10914 _ACEOF
10915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10916 exec 5>>config.log
10917 {
10918   echo
10919   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10920 ## Running $as_me. ##
10921 _ASBOX
10922   $as_echo "$ac_log"
10923 } >&5
10924
10925 _ACEOF
10926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10927 _ACEOF
10928
10929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10930
10931 # Handling of arguments.
10932 for ac_config_target in $ac_config_targets
10933 do
10934   case $ac_config_target in
10935     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10936     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10937
10938   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10939 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10940    { (exit 1); exit 1; }; };;
10941   esac
10942 done
10943
10944
10945 # If the user did not use the arguments to specify the items to instantiate,
10946 # then the envvar interface is used.  Set only those that are not.
10947 # We use the long form for the default assignment because of an extremely
10948 # bizarre bug on SunOS 4.1.3.
10949 if $ac_need_defaults; then
10950   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10951   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10952 fi
10953
10954 # Have a temporary directory for convenience.  Make it in the build tree
10955 # simply because there is no reason against having it here, and in addition,
10956 # creating and moving files from /tmp can sometimes cause problems.
10957 # Hook for its removal unless debugging.
10958 # Note that there is a small window in which the directory will not be cleaned:
10959 # after its creation but before its name has been assigned to `$tmp'.
10960 $debug ||
10961 {
10962   tmp=
10963   trap 'exit_status=$?
10964   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10965 ' 0
10966   trap '{ (exit 1); exit 1; }' 1 2 13 15
10967 }
10968 # Create a (secure) tmp directory for tmp files.
10969
10970 {
10971   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10972   test -n "$tmp" && test -d "$tmp"
10973 }  ||
10974 {
10975   tmp=./conf$$-$RANDOM
10976   (umask 077 && mkdir "$tmp")
10977 } ||
10978 {
10979    $as_echo "$as_me: cannot create a temporary directory in ." >&2
10980    { (exit 1); exit 1; }
10981 }
10982
10983 # Set up the scripts for CONFIG_FILES section.
10984 # No need to generate them if there are no CONFIG_FILES.
10985 # This happens for instance with `./config.status config.h'.
10986 if test -n "$CONFIG_FILES"; then
10987
10988
10989 ac_cr='\r'
10990 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10991 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10992   ac_cs_awk_cr='\\r'
10993 else
10994   ac_cs_awk_cr=$ac_cr
10995 fi
10996
10997 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10998 _ACEOF
10999
11000
11001 {
11002   echo "cat >conf$$subs.awk <<_ACEOF" &&
11003   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11004   echo "_ACEOF"
11005 } >conf$$subs.sh ||
11006   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11007 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11008    { (exit 1); exit 1; }; }
11009 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11010 ac_delim='%!_!# '
11011 for ac_last_try in false false false false false :; do
11012   . ./conf$$subs.sh ||
11013     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11014 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11015    { (exit 1); exit 1; }; }
11016
11017   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11018   if test $ac_delim_n = $ac_delim_num; then
11019     break
11020   elif $ac_last_try; then
11021     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11022 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11023    { (exit 1); exit 1; }; }
11024   else
11025     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11026   fi
11027 done
11028 rm -f conf$$subs.sh
11029
11030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11031 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11032 _ACEOF
11033 sed -n '
11034 h
11035 s/^/S["/; s/!.*/"]=/
11036 p
11037 g
11038 s/^[^!]*!//
11039 :repl
11040 t repl
11041 s/'"$ac_delim"'$//
11042 t delim
11043 :nl
11044 h
11045 s/\(.\{148\}\).*/\1/
11046 t more1
11047 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11048 p
11049 n
11050 b repl
11051 :more1
11052 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11053 p
11054 g
11055 s/.\{148\}//
11056 t nl
11057 :delim
11058 h
11059 s/\(.\{148\}\).*/\1/
11060 t more2
11061 s/["\\]/\\&/g; s/^/"/; s/$/"/
11062 p
11063 b
11064 :more2
11065 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11066 p
11067 g
11068 s/.\{148\}//
11069 t delim
11070 ' <conf$$subs.awk | sed '
11071 /^[^""]/{
11072   N
11073   s/\n//
11074 }
11075 ' >>$CONFIG_STATUS || ac_write_fail=1
11076 rm -f conf$$subs.awk
11077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11078 _ACAWK
11079 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11080   for (key in S) S_is_set[key] = 1
11081   FS = "\a"
11082
11083 }
11084 {
11085   line = $ 0
11086   nfields = split(line, field, "@")
11087   substed = 0
11088   len = length(field[1])
11089   for (i = 2; i < nfields; i++) {
11090     key = field[i]
11091     keylen = length(key)
11092     if (S_is_set[key]) {
11093       value = S[key]
11094       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11095       len += length(value) + length(field[++i])
11096       substed = 1
11097     } else
11098       len += 1 + keylen
11099   }
11100
11101   print line
11102 }
11103
11104 _ACAWK
11105 _ACEOF
11106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11107 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11108   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11109 else
11110   cat
11111 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11112   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11113 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11114    { (exit 1); exit 1; }; }
11115 _ACEOF
11116
11117 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11118 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11119 # trailing colons and then remove the whole line if VPATH becomes empty
11120 # (actually we leave an empty line to preserve line numbers).
11121 if test "x$srcdir" = x.; then
11122   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11123 s/:*\$(srcdir):*/:/
11124 s/:*\${srcdir}:*/:/
11125 s/:*@srcdir@:*/:/
11126 s/^\([^=]*=[     ]*\):*/\1/
11127 s/:*$//
11128 s/^[^=]*=[       ]*$//
11129 }'
11130 fi
11131
11132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11133 fi # test -n "$CONFIG_FILES"
11134
11135 # Set up the scripts for CONFIG_HEADERS section.
11136 # No need to generate them if there are no CONFIG_HEADERS.
11137 # This happens for instance with `./config.status Makefile'.
11138 if test -n "$CONFIG_HEADERS"; then
11139 cat >"$tmp/defines.awk" <<\_ACAWK ||
11140 BEGIN {
11141 _ACEOF
11142
11143 # Transform confdefs.h into an awk script `defines.awk', embedded as
11144 # here-document in config.status, that substitutes the proper values into
11145 # config.h.in to produce config.h.
11146
11147 # Create a delimiter string that does not exist in confdefs.h, to ease
11148 # handling of long lines.
11149 ac_delim='%!_!# '
11150 for ac_last_try in false false :; do
11151   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11152   if test -z "$ac_t"; then
11153     break
11154   elif $ac_last_try; then
11155     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11156 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11157    { (exit 1); exit 1; }; }
11158   else
11159     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11160   fi
11161 done
11162
11163 # For the awk script, D is an array of macro values keyed by name,
11164 # likewise P contains macro parameters if any.  Preserve backslash
11165 # newline sequences.
11166
11167 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11168 sed -n '
11169 s/.\{148\}/&'"$ac_delim"'/g
11170 t rset
11171 :rset
11172 s/^[     ]*#[    ]*define[       ][      ]*/ /
11173 t def
11174 d
11175 :def
11176 s/\\$//
11177 t bsnl
11178 s/["\\]/\\&/g
11179 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11180 D["\1"]=" \3"/p
11181 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
11182 d
11183 :bsnl
11184 s/["\\]/\\&/g
11185 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11186 D["\1"]=" \3\\\\\\n"\\/p
11187 t cont
11188 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11189 t cont
11190 d
11191 :cont
11192 n
11193 s/.\{148\}/&'"$ac_delim"'/g
11194 t clear
11195 :clear
11196 s/\\$//
11197 t bsnlc
11198 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11199 d
11200 :bsnlc
11201 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11202 b cont
11203 ' <confdefs.h | sed '
11204 s/'"$ac_delim"'/"\\\
11205 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11206
11207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11208   for (key in D) D_is_set[key] = 1
11209   FS = "\a"
11210 }
11211 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11212   line = \$ 0
11213   split(line, arg, " ")
11214   if (arg[1] == "#") {
11215     defundef = arg[2]
11216     mac1 = arg[3]
11217   } else {
11218     defundef = substr(arg[1], 2)
11219     mac1 = arg[2]
11220   }
11221   split(mac1, mac2, "(") #)
11222   macro = mac2[1]
11223   prefix = substr(line, 1, index(line, defundef) - 1)
11224   if (D_is_set[macro]) {
11225     # Preserve the white space surrounding the "#".
11226     print prefix "define", macro P[macro] D[macro]
11227     next
11228   } else {
11229     # Replace #undef with comments.  This is necessary, for example,
11230     # in the case of _POSIX_SOURCE, which is predefined and required
11231     # on some systems where configure will not decide to define it.
11232     if (defundef == "undef") {
11233       print "/*", prefix defundef, macro, "*/"
11234       next
11235     }
11236   }
11237 }
11238 { print }
11239 _ACAWK
11240 _ACEOF
11241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11242   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11243 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11244    { (exit 1); exit 1; }; }
11245 fi # test -n "$CONFIG_HEADERS"
11246
11247
11248 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
11249 shift
11250 for ac_tag
11251 do
11252   case $ac_tag in
11253   :[FHLC]) ac_mode=$ac_tag; continue;;
11254   esac
11255   case $ac_mode$ac_tag in
11256   :[FHL]*:*);;
11257   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11258 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11259    { (exit 1); exit 1; }; };;
11260   :[FH]-) ac_tag=-:-;;
11261   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11262   esac
11263   ac_save_IFS=$IFS
11264   IFS=:
11265   set x $ac_tag
11266   IFS=$ac_save_IFS
11267   shift
11268   ac_file=$1
11269   shift
11270
11271   case $ac_mode in
11272   :L) ac_source=$1;;
11273   :[FH])
11274     ac_file_inputs=
11275     for ac_f
11276     do
11277       case $ac_f in
11278       -) ac_f="$tmp/stdin";;
11279       *) # Look for the file first in the build tree, then in the source tree
11280          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11281          # because $ac_f cannot contain `:'.
11282          test -f "$ac_f" ||
11283            case $ac_f in
11284            [\\/$]*) false;;
11285            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11286            esac ||
11287            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11288 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11289    { (exit 1); exit 1; }; };;
11290       esac
11291       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11292       ac_file_inputs="$ac_file_inputs '$ac_f'"
11293     done
11294
11295     # Let's still pretend it is `configure' which instantiates (i.e., don't
11296     # use $as_me), people would be surprised to read:
11297     #    /* config.h.  Generated by config.status.  */
11298     configure_input='Generated from '`
11299           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11300         `' by configure.'
11301     if test x"$ac_file" != x-; then
11302       configure_input="$ac_file.  $configure_input"
11303       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11304 $as_echo "$as_me: creating $ac_file" >&6;}
11305     fi
11306     # Neutralize special characters interpreted by sed in replacement strings.
11307     case $configure_input in #(
11308     *\&* | *\|* | *\\* )
11309        ac_sed_conf_input=`$as_echo "$configure_input" |
11310        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11311     *) ac_sed_conf_input=$configure_input;;
11312     esac
11313
11314     case $ac_tag in
11315     *:-:* | *:-) cat >"$tmp/stdin" \
11316       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11317 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11318    { (exit 1); exit 1; }; } ;;
11319     esac
11320     ;;
11321   esac
11322
11323   ac_dir=`$as_dirname -- "$ac_file" ||
11324 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11325          X"$ac_file" : 'X\(//\)[^/]' \| \
11326          X"$ac_file" : 'X\(//\)$' \| \
11327          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11328 $as_echo X"$ac_file" |
11329     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11330             s//\1/
11331             q
11332           }
11333           /^X\(\/\/\)[^/].*/{
11334             s//\1/
11335             q
11336           }
11337           /^X\(\/\/\)$/{
11338             s//\1/
11339             q
11340           }
11341           /^X\(\/\).*/{
11342             s//\1/
11343             q
11344           }
11345           s/.*/./; q'`
11346   { as_dir="$ac_dir"
11347   case $as_dir in #(
11348   -*) as_dir=./$as_dir;;
11349   esac
11350   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11351     as_dirs=
11352     while :; do
11353       case $as_dir in #(
11354       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11355       *) as_qdir=$as_dir;;
11356       esac
11357       as_dirs="'$as_qdir' $as_dirs"
11358       as_dir=`$as_dirname -- "$as_dir" ||
11359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11360          X"$as_dir" : 'X\(//\)[^/]' \| \
11361          X"$as_dir" : 'X\(//\)$' \| \
11362          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11363 $as_echo X"$as_dir" |
11364     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11365             s//\1/
11366             q
11367           }
11368           /^X\(\/\/\)[^/].*/{
11369             s//\1/
11370             q
11371           }
11372           /^X\(\/\/\)$/{
11373             s//\1/
11374             q
11375           }
11376           /^X\(\/\).*/{
11377             s//\1/
11378             q
11379           }
11380           s/.*/./; q'`
11381       test -d "$as_dir" && break
11382     done
11383     test -z "$as_dirs" || eval "mkdir $as_dirs"
11384   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11385 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11386    { (exit 1); exit 1; }; }; }
11387   ac_builddir=.
11388
11389 case "$ac_dir" in
11390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11391 *)
11392   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11393   # A ".." for each directory in $ac_dir_suffix.
11394   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11395   case $ac_top_builddir_sub in
11396   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11397   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11398   esac ;;
11399 esac
11400 ac_abs_top_builddir=$ac_pwd
11401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11402 # for backward compatibility:
11403 ac_top_builddir=$ac_top_build_prefix
11404
11405 case $srcdir in
11406   .)  # We are building in place.
11407     ac_srcdir=.
11408     ac_top_srcdir=$ac_top_builddir_sub
11409     ac_abs_top_srcdir=$ac_pwd ;;
11410   [\\/]* | ?:[\\/]* )  # Absolute name.
11411     ac_srcdir=$srcdir$ac_dir_suffix;
11412     ac_top_srcdir=$srcdir
11413     ac_abs_top_srcdir=$srcdir ;;
11414   *) # Relative name.
11415     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11416     ac_top_srcdir=$ac_top_build_prefix$srcdir
11417     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11418 esac
11419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11420
11421
11422   case $ac_mode in
11423   :F)
11424   #
11425   # CONFIG_FILE
11426   #
11427
11428   case $INSTALL in
11429   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11430   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11431   esac
11432 _ACEOF
11433
11434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11435 # If the template does not know about datarootdir, expand it.
11436 # FIXME: This hack should be removed a few years after 2.60.
11437 ac_datarootdir_hack=; ac_datarootdir_seen=
11438
11439 ac_sed_dataroot='
11440 /datarootdir/ {
11441   p
11442   q
11443 }
11444 /@datadir@/p
11445 /@docdir@/p
11446 /@infodir@/p
11447 /@localedir@/p
11448 /@mandir@/p
11449 '
11450 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11451 *datarootdir*) ac_datarootdir_seen=yes;;
11452 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11453   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11454 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11455 _ACEOF
11456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11457   ac_datarootdir_hack='
11458   s&@datadir@&$datadir&g
11459   s&@docdir@&$docdir&g
11460   s&@infodir@&$infodir&g
11461   s&@localedir@&$localedir&g
11462   s&@mandir@&$mandir&g
11463     s&\\\${datarootdir}&$datarootdir&g' ;;
11464 esac
11465 _ACEOF
11466
11467 # Neutralize VPATH when `$srcdir' = `.'.
11468 # Shell code in configure.ac might set extrasub.
11469 # FIXME: do we really want to maintain this feature?
11470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11471 ac_sed_extra="$ac_vpsub
11472 $extrasub
11473 _ACEOF
11474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11475 :t
11476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11477 s|@configure_input@|$ac_sed_conf_input|;t t
11478 s&@top_builddir@&$ac_top_builddir_sub&;t t
11479 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11480 s&@srcdir@&$ac_srcdir&;t t
11481 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11482 s&@top_srcdir@&$ac_top_srcdir&;t t
11483 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11484 s&@builddir@&$ac_builddir&;t t
11485 s&@abs_builddir@&$ac_abs_builddir&;t t
11486 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11487 s&@INSTALL@&$ac_INSTALL&;t t
11488 $ac_datarootdir_hack
11489 "
11490 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11491   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11492 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11493    { (exit 1); exit 1; }; }
11494
11495 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11496   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11497   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11498   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11499 which seems to be undefined.  Please make sure it is defined." >&5
11500 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11501 which seems to be undefined.  Please make sure it is defined." >&2;}
11502
11503   rm -f "$tmp/stdin"
11504   case $ac_file in
11505   -) cat "$tmp/out" && rm -f "$tmp/out";;
11506   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11507   esac \
11508   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11509 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11510    { (exit 1); exit 1; }; }
11511  ;;
11512   :H)
11513   #
11514   # CONFIG_HEADER
11515   #
11516   if test x"$ac_file" != x-; then
11517     {
11518       $as_echo "/* $configure_input  */" \
11519       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11520     } >"$tmp/config.h" \
11521       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11522 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11523    { (exit 1); exit 1; }; }
11524     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11525       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11526 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11527     else
11528       rm -f "$ac_file"
11529       mv "$tmp/config.h" "$ac_file" \
11530         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11531 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11532    { (exit 1); exit 1; }; }
11533     fi
11534   else
11535     $as_echo "/* $configure_input  */" \
11536       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11537       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11538 $as_echo "$as_me: error: could not create -" >&2;}
11539    { (exit 1); exit 1; }; }
11540   fi
11541  ;;
11542
11543
11544   esac
11545
11546 done # for ac_tag
11547
11548
11549 { (exit 0); exit 0; }
11550 _ACEOF
11551 chmod +x $CONFIG_STATUS
11552 ac_clean_files=$ac_clean_files_save
11553
11554 test $ac_write_fail = 0 ||
11555   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11556 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11557    { (exit 1); exit 1; }; }
11558
11559
11560 # configure is writing to config.log, and then calls config.status.
11561 # config.status does its own redirection, appending to config.log.
11562 # Unfortunately, on DOS this fails, as config.log is still kept open
11563 # by configure, so config.status won't be able to write to it; its
11564 # output is simply discarded.  So we exec the FD to /dev/null,
11565 # effectively closing config.log, so it can be properly (re)opened and
11566 # appended to by config.status.  When coming back to configure, we
11567 # need to make the FD available again.
11568 if test "$no_create" != yes; then
11569   ac_cs_success=:
11570   ac_config_status_args=
11571   test "$silent" = yes &&
11572     ac_config_status_args="$ac_config_status_args --quiet"
11573   exec 5>/dev/null
11574   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11575   exec 5>>config.log
11576   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11577   # would make configure fail if this is the last instruction.
11578   $ac_cs_success || { (exit 1); exit 1; }
11579 fi
11580 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11581   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11582 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11583 fi
11584
11585
11586
11587 #
11588 # On development trees, create snapshots of config.status
11589 #
11590 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11591     if test "x${MINGW}" = "xyes"; then
11592         echo cp config.status config.status.win32
11593         cp config.status config.status.win32
11594     else
11595         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
11596             echo cp config.status config.status.linux
11597             cp config.status config.status.linux
11598         fi
11599         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
11600             echo cp config.status config.status.debug
11601             cp config.status config.status.debug
11602         fi
11603         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
11604             echo cp config.status config.status.optimize
11605             cp config.status config.status.optimize
11606         fi
11607     fi
11608 fi