added configure check for fftw3
[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 lame_in_source
657 DEVICE_OPENGL
658 FREETYPE_CONFIG
659 HAVE_UNISTD_H
660 VERSION
661 PACKAGE
662 EGREP
663 GREP
664 SYSTEM_BACKTICKS
665 WORDS_BIGENDIAN
666 target_os
667 target_vendor
668 target_cpu
669 target
670 STRIP
671 CXXLIBS
672 SLEXT
673 AR
674 AREXT
675 UNCOMPRESS
676 LN_S
677 INSTALL_DATA
678 INSTALL_SCRIPT
679 INSTALL_PROGRAM
680 SET_MAKE
681 RANLIB
682 CPP
683 ac_ct_CXX
684 CXXFLAGS
685 CXX
686 OBJEXT
687 EXEEXT
688 ac_ct_CC
689 CPPFLAGS
690 LDFLAGS
691 CFLAGS
692 CC
693 SHARED
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 target_alias
703 host_alias
704 build_alias
705 LIBS
706 ECHO_T
707 ECHO_N
708 ECHO_C
709 DEFS
710 mandir
711 localedir
712 libdir
713 psdir
714 pdfdir
715 dvidir
716 htmldir
717 infodir
718 docdir
719 oldincludedir
720 includedir
721 localstatedir
722 sharedstatedir
723 sysconfdir
724 datadir
725 datarootdir
726 libexecdir
727 sbindir
728 bindir
729 program_transform_name
730 prefix
731 exec_prefix
732 PACKAGE_BUGREPORT
733 PACKAGE_STRING
734 PACKAGE_VERSION
735 PACKAGE_TARNAME
736 PACKAGE_NAME
737 PATH_SEPARATOR
738 SHELL'
739 ac_subst_files=''
740 ac_user_opts='
741 enable_option_checking
742 enable_checkmem
743 enable_debug
744 enable_profiling
745 enable_warnings
746 enable_optimizations
747 enable_lame
748 '
749       ac_precious_vars='build_alias
750 host_alias
751 target_alias
752 CC
753 CFLAGS
754 LDFLAGS
755 LIBS
756 CPPFLAGS
757 CXX
758 CXXFLAGS
759 CCC
760 CPP'
761
762
763 # Initialize some variables set by options.
764 ac_init_help=
765 ac_init_version=false
766 ac_unrecognized_opts=
767 ac_unrecognized_sep=
768 # The variables have the same names as the options, with
769 # dashes changed to underlines.
770 cache_file=/dev/null
771 exec_prefix=NONE
772 no_create=
773 no_recursion=
774 prefix=NONE
775 program_prefix=NONE
776 program_suffix=NONE
777 program_transform_name=s,x,x,
778 silent=
779 site=
780 srcdir=
781 verbose=
782 x_includes=NONE
783 x_libraries=NONE
784
785 # Installation directory options.
786 # These are left unexpanded so users can "make install exec_prefix=/foo"
787 # and all the variables that are supposed to be based on exec_prefix
788 # by default will actually change.
789 # Use braces instead of parens because sh, perl, etc. also accept them.
790 # (The list follows the same order as the GNU Coding Standards.)
791 bindir='${exec_prefix}/bin'
792 sbindir='${exec_prefix}/sbin'
793 libexecdir='${exec_prefix}/libexec'
794 datarootdir='${prefix}/share'
795 datadir='${datarootdir}'
796 sysconfdir='${prefix}/etc'
797 sharedstatedir='${prefix}/com'
798 localstatedir='${prefix}/var'
799 includedir='${prefix}/include'
800 oldincludedir='/usr/include'
801 docdir='${datarootdir}/doc/${PACKAGE}'
802 infodir='${datarootdir}/info'
803 htmldir='${docdir}'
804 dvidir='${docdir}'
805 pdfdir='${docdir}'
806 psdir='${docdir}'
807 libdir='${exec_prefix}/lib'
808 localedir='${datarootdir}/locale'
809 mandir='${datarootdir}/man'
810
811 ac_prev=
812 ac_dashdash=
813 for ac_option
814 do
815   # If the previous option needs an argument, assign it.
816   if test -n "$ac_prev"; then
817     eval $ac_prev=\$ac_option
818     ac_prev=
819     continue
820   fi
821
822   case $ac_option in
823   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
824   *)    ac_optarg=yes ;;
825   esac
826
827   # Accept the important Cygnus configure options, so we can diagnose typos.
828
829   case $ac_dashdash$ac_option in
830   --)
831     ac_dashdash=yes ;;
832
833   -bindir | --bindir | --bindi | --bind | --bin | --bi)
834     ac_prev=bindir ;;
835   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
836     bindir=$ac_optarg ;;
837
838   -build | --build | --buil | --bui | --bu)
839     ac_prev=build_alias ;;
840   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
841     build_alias=$ac_optarg ;;
842
843   -cache-file | --cache-file | --cache-fil | --cache-fi \
844   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
845     ac_prev=cache_file ;;
846   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
847   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
848     cache_file=$ac_optarg ;;
849
850   --config-cache | -C)
851     cache_file=config.cache ;;
852
853   -datadir | --datadir | --datadi | --datad)
854     ac_prev=datadir ;;
855   -datadir=* | --datadir=* | --datadi=* | --datad=*)
856     datadir=$ac_optarg ;;
857
858   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
859   | --dataroo | --dataro | --datar)
860     ac_prev=datarootdir ;;
861   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
862   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
863     datarootdir=$ac_optarg ;;
864
865   -disable-* | --disable-*)
866     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
867     # Reject names that are not valid shell variable names.
868     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
869       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
870    { (exit 1); exit 1; }; }
871     ac_useropt_orig=$ac_useropt
872     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
873     case $ac_user_opts in
874       *"
875 "enable_$ac_useropt"
876 "*) ;;
877       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
878          ac_unrecognized_sep=', ';;
879     esac
880     eval enable_$ac_useropt=no ;;
881
882   -docdir | --docdir | --docdi | --doc | --do)
883     ac_prev=docdir ;;
884   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
885     docdir=$ac_optarg ;;
886
887   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
888     ac_prev=dvidir ;;
889   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
890     dvidir=$ac_optarg ;;
891
892   -enable-* | --enable-*)
893     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
894     # Reject names that are not valid shell variable names.
895     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
896       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
897    { (exit 1); exit 1; }; }
898     ac_useropt_orig=$ac_useropt
899     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900     case $ac_user_opts in
901       *"
902 "enable_$ac_useropt"
903 "*) ;;
904       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905          ac_unrecognized_sep=', ';;
906     esac
907     eval enable_$ac_useropt=\$ac_optarg ;;
908
909   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911   | --exec | --exe | --ex)
912     ac_prev=exec_prefix ;;
913   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915   | --exec=* | --exe=* | --ex=*)
916     exec_prefix=$ac_optarg ;;
917
918   -gas | --gas | --ga | --g)
919     # Obsolete; use --with-gas.
920     with_gas=yes ;;
921
922   -help | --help | --hel | --he | -h)
923     ac_init_help=long ;;
924   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925     ac_init_help=recursive ;;
926   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927     ac_init_help=short ;;
928
929   -host | --host | --hos | --ho)
930     ac_prev=host_alias ;;
931   -host=* | --host=* | --hos=* | --ho=*)
932     host_alias=$ac_optarg ;;
933
934   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935     ac_prev=htmldir ;;
936   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937   | --ht=*)
938     htmldir=$ac_optarg ;;
939
940   -includedir | --includedir | --includedi | --included | --include \
941   | --includ | --inclu | --incl | --inc)
942     ac_prev=includedir ;;
943   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944   | --includ=* | --inclu=* | --incl=* | --inc=*)
945     includedir=$ac_optarg ;;
946
947   -infodir | --infodir | --infodi | --infod | --info | --inf)
948     ac_prev=infodir ;;
949   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950     infodir=$ac_optarg ;;
951
952   -libdir | --libdir | --libdi | --libd)
953     ac_prev=libdir ;;
954   -libdir=* | --libdir=* | --libdi=* | --libd=*)
955     libdir=$ac_optarg ;;
956
957   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958   | --libexe | --libex | --libe)
959     ac_prev=libexecdir ;;
960   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961   | --libexe=* | --libex=* | --libe=*)
962     libexecdir=$ac_optarg ;;
963
964   -localedir | --localedir | --localedi | --localed | --locale)
965     ac_prev=localedir ;;
966   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967     localedir=$ac_optarg ;;
968
969   -localstatedir | --localstatedir | --localstatedi | --localstated \
970   | --localstate | --localstat | --localsta | --localst | --locals)
971     ac_prev=localstatedir ;;
972   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974     localstatedir=$ac_optarg ;;
975
976   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977     ac_prev=mandir ;;
978   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979     mandir=$ac_optarg ;;
980
981   -nfp | --nfp | --nf)
982     # Obsolete; use --without-fp.
983     with_fp=no ;;
984
985   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986   | --no-cr | --no-c | -n)
987     no_create=yes ;;
988
989   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991     no_recursion=yes ;;
992
993   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995   | --oldin | --oldi | --old | --ol | --o)
996     ac_prev=oldincludedir ;;
997   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000     oldincludedir=$ac_optarg ;;
1001
1002   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003     ac_prev=prefix ;;
1004   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005     prefix=$ac_optarg ;;
1006
1007   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008   | --program-pre | --program-pr | --program-p)
1009     ac_prev=program_prefix ;;
1010   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012     program_prefix=$ac_optarg ;;
1013
1014   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015   | --program-suf | --program-su | --program-s)
1016     ac_prev=program_suffix ;;
1017   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019     program_suffix=$ac_optarg ;;
1020
1021   -program-transform-name | --program-transform-name \
1022   | --program-transform-nam | --program-transform-na \
1023   | --program-transform-n | --program-transform- \
1024   | --program-transform | --program-transfor \
1025   | --program-transfo | --program-transf \
1026   | --program-trans | --program-tran \
1027   | --progr-tra | --program-tr | --program-t)
1028     ac_prev=program_transform_name ;;
1029   -program-transform-name=* | --program-transform-name=* \
1030   | --program-transform-nam=* | --program-transform-na=* \
1031   | --program-transform-n=* | --program-transform-=* \
1032   | --program-transform=* | --program-transfor=* \
1033   | --program-transfo=* | --program-transf=* \
1034   | --program-trans=* | --program-tran=* \
1035   | --progr-tra=* | --program-tr=* | --program-t=*)
1036     program_transform_name=$ac_optarg ;;
1037
1038   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039     ac_prev=pdfdir ;;
1040   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041     pdfdir=$ac_optarg ;;
1042
1043   -psdir | --psdir | --psdi | --psd | --ps)
1044     ac_prev=psdir ;;
1045   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046     psdir=$ac_optarg ;;
1047
1048   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049   | -silent | --silent | --silen | --sile | --sil)
1050     silent=yes ;;
1051
1052   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053     ac_prev=sbindir ;;
1054   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055   | --sbi=* | --sb=*)
1056     sbindir=$ac_optarg ;;
1057
1058   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060   | --sharedst | --shareds | --shared | --share | --shar \
1061   | --sha | --sh)
1062     ac_prev=sharedstatedir ;;
1063   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066   | --sha=* | --sh=*)
1067     sharedstatedir=$ac_optarg ;;
1068
1069   -site | --site | --sit)
1070     ac_prev=site ;;
1071   -site=* | --site=* | --sit=*)
1072     site=$ac_optarg ;;
1073
1074   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075     ac_prev=srcdir ;;
1076   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077     srcdir=$ac_optarg ;;
1078
1079   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080   | --syscon | --sysco | --sysc | --sys | --sy)
1081     ac_prev=sysconfdir ;;
1082   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084     sysconfdir=$ac_optarg ;;
1085
1086   -target | --target | --targe | --targ | --tar | --ta | --t)
1087     ac_prev=target_alias ;;
1088   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089     target_alias=$ac_optarg ;;
1090
1091   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092     verbose=yes ;;
1093
1094   -version | --version | --versio | --versi | --vers | -V)
1095     ac_init_version=: ;;
1096
1097   -with-* | --with-*)
1098     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099     # Reject names that are not valid shell variable names.
1100     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1102    { (exit 1); exit 1; }; }
1103     ac_useropt_orig=$ac_useropt
1104     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1105     case $ac_user_opts in
1106       *"
1107 "with_$ac_useropt"
1108 "*) ;;
1109       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1110          ac_unrecognized_sep=', ';;
1111     esac
1112     eval with_$ac_useropt=\$ac_optarg ;;
1113
1114   -without-* | --without-*)
1115     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1116     # Reject names that are not valid shell variable names.
1117     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1118       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1119    { (exit 1); exit 1; }; }
1120     ac_useropt_orig=$ac_useropt
1121     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122     case $ac_user_opts in
1123       *"
1124 "with_$ac_useropt"
1125 "*) ;;
1126       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1127          ac_unrecognized_sep=', ';;
1128     esac
1129     eval with_$ac_useropt=no ;;
1130
1131   --x)
1132     # Obsolete; use --with-x.
1133     with_x=yes ;;
1134
1135   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1136   | --x-incl | --x-inc | --x-in | --x-i)
1137     ac_prev=x_includes ;;
1138   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1139   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1140     x_includes=$ac_optarg ;;
1141
1142   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1143   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1144     ac_prev=x_libraries ;;
1145   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1146   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1147     x_libraries=$ac_optarg ;;
1148
1149   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1150 Try \`$0 --help' for more information." >&2
1151    { (exit 1); exit 1; }; }
1152     ;;
1153
1154   *=*)
1155     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1156     # Reject names that are not valid shell variable names.
1157     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1158       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1159    { (exit 1); exit 1; }; }
1160     eval $ac_envvar=\$ac_optarg
1161     export $ac_envvar ;;
1162
1163   *)
1164     # FIXME: should be removed in autoconf 3.0.
1165     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1166     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1167       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1168     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169     ;;
1170
1171   esac
1172 done
1173
1174 if test -n "$ac_prev"; then
1175   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1176   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1177    { (exit 1); exit 1; }; }
1178 fi
1179
1180 if test -n "$ac_unrecognized_opts"; then
1181   case $enable_option_checking in
1182     no) ;;
1183     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1184    { (exit 1); exit 1; }; } ;;
1185     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1186   esac
1187 fi
1188
1189 # Check all directory arguments for consistency.
1190 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1191                 datadir sysconfdir sharedstatedir localstatedir includedir \
1192                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1193                 libdir localedir mandir
1194 do
1195   eval ac_val=\$$ac_var
1196   # Remove trailing slashes.
1197   case $ac_val in
1198     */ )
1199       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1200       eval $ac_var=\$ac_val;;
1201   esac
1202   # Be sure to have absolute directory names.
1203   case $ac_val in
1204     [\\/$]* | ?:[\\/]* )  continue;;
1205     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1206   esac
1207   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1208    { (exit 1); exit 1; }; }
1209 done
1210
1211 # There might be people who depend on the old broken behavior: `$host'
1212 # used to hold the argument of --host etc.
1213 # FIXME: To remove some day.
1214 build=$build_alias
1215 host=$host_alias
1216 target=$target_alias
1217
1218 # FIXME: To remove some day.
1219 if test "x$host_alias" != x; then
1220   if test "x$build_alias" = x; then
1221     cross_compiling=maybe
1222     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1223     If a cross compiler is detected then cross compile mode will be used." >&2
1224   elif test "x$build_alias" != "x$host_alias"; then
1225     cross_compiling=yes
1226   fi
1227 fi
1228
1229 ac_tool_prefix=
1230 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1231
1232 test "$silent" = yes && exec 6>/dev/null
1233
1234
1235 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1236 ac_ls_di=`ls -di .` &&
1237 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1238   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1239    { (exit 1); exit 1; }; }
1240 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1241   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1242    { (exit 1); exit 1; }; }
1243
1244
1245 # Find the source files, if location was not specified.
1246 if test -z "$srcdir"; then
1247   ac_srcdir_defaulted=yes
1248   # Try the directory containing this script, then the parent directory.
1249   ac_confdir=`$as_dirname -- "$as_myself" ||
1250 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251          X"$as_myself" : 'X\(//\)[^/]' \| \
1252          X"$as_myself" : 'X\(//\)$' \| \
1253          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254 $as_echo X"$as_myself" |
1255     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256             s//\1/
1257             q
1258           }
1259           /^X\(\/\/\)[^/].*/{
1260             s//\1/
1261             q
1262           }
1263           /^X\(\/\/\)$/{
1264             s//\1/
1265             q
1266           }
1267           /^X\(\/\).*/{
1268             s//\1/
1269             q
1270           }
1271           s/.*/./; q'`
1272   srcdir=$ac_confdir
1273   if test ! -r "$srcdir/$ac_unique_file"; then
1274     srcdir=..
1275   fi
1276 else
1277   ac_srcdir_defaulted=no
1278 fi
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1280   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1282    { (exit 1); exit 1; }; }
1283 fi
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1285 ac_abs_confdir=`(
1286         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1287    { (exit 1); exit 1; }; }
1288         pwd)`
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1291   srcdir=.
1292 fi
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1296 case $srcdir in
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 esac
1299 for ac_var in $ac_precious_vars; do
1300   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301   eval ac_env_${ac_var}_value=\$${ac_var}
1302   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1304 done
1305
1306 #
1307 # Report the --help message.
1308 #
1309 if test "$ac_init_help" = "long"; then
1310   # Omit some internal or obsolete options to make the list less imposing.
1311   # This message is too long to be a string in the A/UX 3.1 sh.
1312   cat <<_ACEOF
1313 \`configure' configures this package to adapt to many kinds of systems.
1314
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1316
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE.  See below for descriptions of some of the useful variables.
1319
1320 Defaults for the options are specified in brackets.
1321
1322 Configuration:
1323   -h, --help              display this help and exit
1324       --help=short        display options specific to this package
1325       --help=recursive    display the short help of all the included packages
1326   -V, --version           display version information and exit
1327   -q, --quiet, --silent   do not print \`checking...' messages
1328       --cache-file=FILE   cache test results in FILE [disabled]
1329   -C, --config-cache      alias for \`--cache-file=config.cache'
1330   -n, --no-create         do not create output files
1331       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1332
1333 Installation directories:
1334   --prefix=PREFIX         install architecture-independent files in PREFIX
1335                           [$ac_default_prefix]
1336   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1337                           [PREFIX]
1338
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1343
1344 For better control, use the options below.
1345
1346 Fine tuning of the installation directories:
1347   --bindir=DIR            user executables [EPREFIX/bin]
1348   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1349   --libexecdir=DIR        program executables [EPREFIX/libexec]
1350   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1351   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1352   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1353   --libdir=DIR            object code libraries [EPREFIX/lib]
1354   --includedir=DIR        C header files [PREFIX/include]
1355   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1356   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1357   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1358   --infodir=DIR           info documentation [DATAROOTDIR/info]
1359   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1360   --mandir=DIR            man documentation [DATAROOTDIR/man]
1361   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1362   --htmldir=DIR           html documentation [DOCDIR]
1363   --dvidir=DIR            dvi documentation [DOCDIR]
1364   --pdfdir=DIR            pdf documentation [DOCDIR]
1365   --psdir=DIR             ps documentation [DOCDIR]
1366 _ACEOF
1367
1368   cat <<\_ACEOF
1369
1370 Program names:
1371   --program-prefix=PREFIX            prepend PREFIX to installed program names
1372   --program-suffix=SUFFIX            append SUFFIX to installed program names
1373   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1374
1375 System types:
1376   --build=BUILD     configure for building on BUILD [guessed]
1377   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1378   --target=TARGET   configure for building compilers for TARGET [HOST]
1379 _ACEOF
1380 fi
1381
1382 if test -n "$ac_init_help"; then
1383
1384   cat <<\_ACEOF
1385
1386 Optional Features:
1387   --disable-option-checking  ignore unrecognized --enable/--with options
1388   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1389   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1390   --enable-checkmem       turn on ccmalloc debugging
1391   --enable-debug          turn on debugging
1392   --enable-profiling      turn on profiling
1393   --enable-warnings        turn on compiler warnings
1394   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1395   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1396
1397 Some influential environment variables:
1398   CC          C compiler command
1399   CFLAGS      C compiler flags
1400   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1401               nonstandard directory <lib dir>
1402   LIBS        libraries to pass to the linker, e.g. -l<library>
1403   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1404               you have headers in a nonstandard directory <include dir>
1405   CXX         C++ compiler command
1406   CXXFLAGS    C++ compiler flags
1407   CPP         C preprocessor
1408
1409 Use these variables to override the choices made by `configure' or to help
1410 it to find libraries and programs with nonstandard names/locations.
1411
1412 _ACEOF
1413 ac_status=$?
1414 fi
1415
1416 if test "$ac_init_help" = "recursive"; then
1417   # If there are subdirs, report their specific --help.
1418   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1419     test -d "$ac_dir" ||
1420       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1421       continue
1422     ac_builddir=.
1423
1424 case "$ac_dir" in
1425 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1426 *)
1427   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1428   # A ".." for each directory in $ac_dir_suffix.
1429   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1430   case $ac_top_builddir_sub in
1431   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1433   esac ;;
1434 esac
1435 ac_abs_top_builddir=$ac_pwd
1436 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1437 # for backward compatibility:
1438 ac_top_builddir=$ac_top_build_prefix
1439
1440 case $srcdir in
1441   .)  # We are building in place.
1442     ac_srcdir=.
1443     ac_top_srcdir=$ac_top_builddir_sub
1444     ac_abs_top_srcdir=$ac_pwd ;;
1445   [\\/]* | ?:[\\/]* )  # Absolute name.
1446     ac_srcdir=$srcdir$ac_dir_suffix;
1447     ac_top_srcdir=$srcdir
1448     ac_abs_top_srcdir=$srcdir ;;
1449   *) # Relative name.
1450     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1451     ac_top_srcdir=$ac_top_build_prefix$srcdir
1452     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1453 esac
1454 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1455
1456     cd "$ac_dir" || { ac_status=$?; continue; }
1457     # Check for guested configure.
1458     if test -f "$ac_srcdir/configure.gnu"; then
1459       echo &&
1460       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1461     elif test -f "$ac_srcdir/configure"; then
1462       echo &&
1463       $SHELL "$ac_srcdir/configure" --help=recursive
1464     else
1465       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1466     fi || ac_status=$?
1467     cd "$ac_pwd" || { ac_status=$?; break; }
1468   done
1469 fi
1470
1471 test -n "$ac_init_help" && exit $ac_status
1472 if $ac_init_version; then
1473   cat <<\_ACEOF
1474 configure
1475 generated by GNU Autoconf 2.63
1476
1477 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1478 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1479 This configure script is free software; the Free Software Foundation
1480 gives unlimited permission to copy, distribute and modify it.
1481 _ACEOF
1482   exit
1483 fi
1484 cat >config.log <<_ACEOF
1485 This file contains any messages produced by compilers while
1486 running configure, to aid debugging if configure makes a mistake.
1487
1488 It was created by $as_me, which was
1489 generated by GNU Autoconf 2.63.  Invocation command line was
1490
1491   $ $0 $@
1492
1493 _ACEOF
1494 exec 5>>config.log
1495 {
1496 cat <<_ASUNAME
1497 ## --------- ##
1498 ## Platform. ##
1499 ## --------- ##
1500
1501 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1502 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1503 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1504 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1505 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1506
1507 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1508 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1509
1510 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1511 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1512 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1513 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1514 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1515 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1516 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1517
1518 _ASUNAME
1519
1520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1521 for as_dir in $PATH
1522 do
1523   IFS=$as_save_IFS
1524   test -z "$as_dir" && as_dir=.
1525   $as_echo "PATH: $as_dir"
1526 done
1527 IFS=$as_save_IFS
1528
1529 } >&5
1530
1531 cat >&5 <<_ACEOF
1532
1533
1534 ## ----------- ##
1535 ## Core tests. ##
1536 ## ----------- ##
1537
1538 _ACEOF
1539
1540
1541 # Keep a trace of the command line.
1542 # Strip out --no-create and --no-recursion so they do not pile up.
1543 # Strip out --silent because we don't want to record it for future runs.
1544 # Also quote any args containing shell meta-characters.
1545 # Make two passes to allow for proper duplicate-argument suppression.
1546 ac_configure_args=
1547 ac_configure_args0=
1548 ac_configure_args1=
1549 ac_must_keep_next=false
1550 for ac_pass in 1 2
1551 do
1552   for ac_arg
1553   do
1554     case $ac_arg in
1555     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1556     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1557     | -silent | --silent | --silen | --sile | --sil)
1558       continue ;;
1559     *\'*)
1560       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1561     esac
1562     case $ac_pass in
1563     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1564     2)
1565       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1566       if test $ac_must_keep_next = true; then
1567         ac_must_keep_next=false # Got value, back to normal.
1568       else
1569         case $ac_arg in
1570           *=* | --config-cache | -C | -disable-* | --disable-* \
1571           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1572           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1573           | -with-* | --with-* | -without-* | --without-* | --x)
1574             case "$ac_configure_args0 " in
1575               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1576             esac
1577             ;;
1578           -* ) ac_must_keep_next=true ;;
1579         esac
1580       fi
1581       ac_configure_args="$ac_configure_args '$ac_arg'"
1582       ;;
1583     esac
1584   done
1585 done
1586 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1587 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1588
1589 # When interrupted or exit'd, cleanup temporary files, and complete
1590 # config.log.  We remove comments because anyway the quotes in there
1591 # would cause problems or look ugly.
1592 # WARNING: Use '\'' to represent an apostrophe within the trap.
1593 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1594 trap 'exit_status=$?
1595   # Save into config.log some information that might help in debugging.
1596   {
1597     echo
1598
1599     cat <<\_ASBOX
1600 ## ---------------- ##
1601 ## Cache variables. ##
1602 ## ---------------- ##
1603 _ASBOX
1604     echo
1605     # The following way of writing the cache mishandles newlines in values,
1606 (
1607   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1608     eval ac_val=\$$ac_var
1609     case $ac_val in #(
1610     *${as_nl}*)
1611       case $ac_var in #(
1612       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1613 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1614       esac
1615       case $ac_var in #(
1616       _ | IFS | as_nl) ;; #(
1617       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1618       *) $as_unset $ac_var ;;
1619       esac ;;
1620     esac
1621   done
1622   (set) 2>&1 |
1623     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1624     *${as_nl}ac_space=\ *)
1625       sed -n \
1626         "s/'\''/'\''\\\\'\'''\''/g;
1627           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1628       ;; #(
1629     *)
1630       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1631       ;;
1632     esac |
1633     sort
1634 )
1635     echo
1636
1637     cat <<\_ASBOX
1638 ## ----------------- ##
1639 ## Output variables. ##
1640 ## ----------------- ##
1641 _ASBOX
1642     echo
1643     for ac_var in $ac_subst_vars
1644     do
1645       eval ac_val=\$$ac_var
1646       case $ac_val in
1647       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1648       esac
1649       $as_echo "$ac_var='\''$ac_val'\''"
1650     done | sort
1651     echo
1652
1653     if test -n "$ac_subst_files"; then
1654       cat <<\_ASBOX
1655 ## ------------------- ##
1656 ## File substitutions. ##
1657 ## ------------------- ##
1658 _ASBOX
1659       echo
1660       for ac_var in $ac_subst_files
1661       do
1662         eval ac_val=\$$ac_var
1663         case $ac_val in
1664         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1665         esac
1666         $as_echo "$ac_var='\''$ac_val'\''"
1667       done | sort
1668       echo
1669     fi
1670
1671     if test -s confdefs.h; then
1672       cat <<\_ASBOX
1673 ## ----------- ##
1674 ## confdefs.h. ##
1675 ## ----------- ##
1676 _ASBOX
1677       echo
1678       cat confdefs.h
1679       echo
1680     fi
1681     test "$ac_signal" != 0 &&
1682       $as_echo "$as_me: caught signal $ac_signal"
1683     $as_echo "$as_me: exit $exit_status"
1684   } >&5
1685   rm -f core *.core core.conftest.* &&
1686     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1687     exit $exit_status
1688 ' 0
1689 for ac_signal in 1 2 13 15; do
1690   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1691 done
1692 ac_signal=0
1693
1694 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1695 rm -f -r conftest* confdefs.h
1696
1697 # Predefined preprocessor variables.
1698
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_NAME "$PACKAGE_NAME"
1701 _ACEOF
1702
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1706 _ACEOF
1707
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1711 _ACEOF
1712
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_STRING "$PACKAGE_STRING"
1716 _ACEOF
1717
1718
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1721 _ACEOF
1722
1723
1724 # Let the site file select an alternate cache file if it wants to.
1725 # Prefer an explicitly selected file to automatically selected ones.
1726 ac_site_file1=NONE
1727 ac_site_file2=NONE
1728 if test -n "$CONFIG_SITE"; then
1729   ac_site_file1=$CONFIG_SITE
1730 elif test "x$prefix" != xNONE; then
1731   ac_site_file1=$prefix/share/config.site
1732   ac_site_file2=$prefix/etc/config.site
1733 else
1734   ac_site_file1=$ac_default_prefix/share/config.site
1735   ac_site_file2=$ac_default_prefix/etc/config.site
1736 fi
1737 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1738 do
1739   test "x$ac_site_file" = xNONE && continue
1740   if test -r "$ac_site_file"; then
1741     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1742 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1743     sed 's/^/| /' "$ac_site_file" >&5
1744     . "$ac_site_file"
1745   fi
1746 done
1747
1748 if test -r "$cache_file"; then
1749   # Some versions of bash will fail to source /dev/null (special
1750   # files actually), so we avoid doing that.
1751   if test -f "$cache_file"; then
1752     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1753 $as_echo "$as_me: loading cache $cache_file" >&6;}
1754     case $cache_file in
1755       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1756       *)                      . "./$cache_file";;
1757     esac
1758   fi
1759 else
1760   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1761 $as_echo "$as_me: creating cache $cache_file" >&6;}
1762   >$cache_file
1763 fi
1764
1765 # Check that the precious variables saved in the cache have kept the same
1766 # value.
1767 ac_cache_corrupted=false
1768 for ac_var in $ac_precious_vars; do
1769   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1770   eval ac_new_set=\$ac_env_${ac_var}_set
1771   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1772   eval ac_new_val=\$ac_env_${ac_var}_value
1773   case $ac_old_set,$ac_new_set in
1774     set,)
1775       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1776 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1777       ac_cache_corrupted=: ;;
1778     ,set)
1779       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1780 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1781       ac_cache_corrupted=: ;;
1782     ,);;
1783     *)
1784       if test "x$ac_old_val" != "x$ac_new_val"; then
1785         # differences in whitespace do not lead to failure.
1786         ac_old_val_w=`echo x $ac_old_val`
1787         ac_new_val_w=`echo x $ac_new_val`
1788         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1789           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1790 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1791           ac_cache_corrupted=:
1792         else
1793           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1794 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1795           eval $ac_var=\$ac_old_val
1796         fi
1797         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1798 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1799         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1800 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1801       fi;;
1802   esac
1803   # Pass precious variables to config.status.
1804   if test "$ac_new_set" = set; then
1805     case $ac_new_val in
1806     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1807     *) ac_arg=$ac_var=$ac_new_val ;;
1808     esac
1809     case " $ac_configure_args " in
1810       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1811       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1812     esac
1813   fi
1814 done
1815 if $ac_cache_corrupted; then
1816   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1818   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1819 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1820   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1821 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1822    { (exit 1); exit 1; }; }
1823 fi
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841 ac_ext=c
1842 ac_cpp='$CPP $CPPFLAGS'
1843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1846
1847
1848
1849
1850 # Check whether --enable-checkmem was given.
1851 if test "${enable_checkmem+set}" = set; then
1852   enableval=$enable_checkmem; CHECKMEM=true
1853 fi
1854
1855 # Check whether --enable-debug was given.
1856 if test "${enable_debug+set}" = set; then
1857   enableval=$enable_debug; DEBUG=true
1858 fi
1859
1860 # Check whether --enable-profiling was given.
1861 if test "${enable_profiling+set}" = set; then
1862   enableval=$enable_profiling; PROFILING=true
1863 fi
1864
1865 # Check whether --enable-warnings was given.
1866 if test "${enable_warnings+set}" = set; then
1867   enableval=$enable_warnings; ENABLE_WARNINGS=true
1868 fi
1869
1870 # Check whether --enable-optimizations was given.
1871 if test "${enable_optimizations+set}" = set; then
1872   enableval=$enable_optimizations; OPTIMIZE=true
1873 fi
1874
1875 # Check whether --enable-lame was given.
1876 if test "${enable_lame+set}" = set; then
1877   enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1878     DISABLE_LAME=yes
1879 fi
1880 else
1881   DISABLE_LAME=
1882 fi
1883
1884
1885 PACKAGE=swftools
1886 VERSION=2009-08-12-1514
1887
1888
1889 # ------------------------------------------------------------------
1890
1891 if test "x${srcdir}" != "x."; then
1892     echo "--srcdir is not supported"
1893     exit 1
1894 fi
1895
1896 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1897 if test "x$ENABLE_WARNINGS" '!=' "x";then
1898     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1899 fi
1900
1901 if test "x$CHECKMEM" '!=' "x";then
1902     DEBUG=yes
1903 fi
1904 if test "x$PROFILING" '!=' "x";then
1905     DEBUG=yes
1906 fi
1907 if test "x$DEBUG" '!=' "x";then
1908     if test "x$PROFILING" = "x";then
1909         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1910         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1911         LDFLAGS="-g $LIBS"
1912     else
1913         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1914         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1915         LDFLAGS="-g -pg $LIBS"
1916     fi
1917 else if test "x$OPTIMIZE" '!=' "x"; then
1918     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1919     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1920 else
1921     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1922     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1923 fi
1924 fi
1925
1926 CFLAGS="-fPIC $CFLAGS"
1927 CXXFLAGS="-fPIC $CFLAGS"
1928
1929 #OLDGCC=1
1930 #if test "x$OLDGCC" '!=' "x";then
1931 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1932 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1933 #     CFLAGS="$CFLAGS -ansi -pendantic"
1934 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1935 #fi
1936
1937 export PACKAGE VERSION CFLAGS CXXFLAGS
1938
1939
1940 ac_aux_dir=
1941 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1942   if test -f "$ac_dir/install-sh"; then
1943     ac_aux_dir=$ac_dir
1944     ac_install_sh="$ac_aux_dir/install-sh -c"
1945     break
1946   elif test -f "$ac_dir/install.sh"; then
1947     ac_aux_dir=$ac_dir
1948     ac_install_sh="$ac_aux_dir/install.sh -c"
1949     break
1950   elif test -f "$ac_dir/shtool"; then
1951     ac_aux_dir=$ac_dir
1952     ac_install_sh="$ac_aux_dir/shtool install -c"
1953     break
1954   fi
1955 done
1956 if test -z "$ac_aux_dir"; then
1957   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1958 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1959    { (exit 1); exit 1; }; }
1960 fi
1961
1962 # These three variables are undocumented and unsupported,
1963 # and are intended to be withdrawn in a future Autoconf release.
1964 # They can cause serious problems if a builder's source tree is in a directory
1965 # whose full name contains unusual characters.
1966 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1967 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1968 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1969
1970
1971 # Make sure we can run config.sub.
1972 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1973   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1974 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1975    { (exit 1); exit 1; }; }
1976
1977 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1978 $as_echo_n "checking build system type... " >&6; }
1979 if test "${ac_cv_build+set}" = set; then
1980   $as_echo_n "(cached) " >&6
1981 else
1982   ac_build_alias=$build_alias
1983 test "x$ac_build_alias" = x &&
1984   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1985 test "x$ac_build_alias" = x &&
1986   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1987 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1988    { (exit 1); exit 1; }; }
1989 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1990   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1991 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1992    { (exit 1); exit 1; }; }
1993
1994 fi
1995 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1996 $as_echo "$ac_cv_build" >&6; }
1997 case $ac_cv_build in
1998 *-*-*) ;;
1999 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2000 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2001    { (exit 1); exit 1; }; };;
2002 esac
2003 build=$ac_cv_build
2004 ac_save_IFS=$IFS; IFS='-'
2005 set x $ac_cv_build
2006 shift
2007 build_cpu=$1
2008 build_vendor=$2
2009 shift; shift
2010 # Remember, the first character of IFS is used to create $*,
2011 # except with old shells:
2012 build_os=$*
2013 IFS=$ac_save_IFS
2014 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2015
2016
2017 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2018 $as_echo_n "checking host system type... " >&6; }
2019 if test "${ac_cv_host+set}" = set; then
2020   $as_echo_n "(cached) " >&6
2021 else
2022   if test "x$host_alias" = x; then
2023   ac_cv_host=$ac_cv_build
2024 else
2025   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2026     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2027 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2028    { (exit 1); exit 1; }; }
2029 fi
2030
2031 fi
2032 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2033 $as_echo "$ac_cv_host" >&6; }
2034 case $ac_cv_host in
2035 *-*-*) ;;
2036 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2037 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2038    { (exit 1); exit 1; }; };;
2039 esac
2040 host=$ac_cv_host
2041 ac_save_IFS=$IFS; IFS='-'
2042 set x $ac_cv_host
2043 shift
2044 host_cpu=$1
2045 host_vendor=$2
2046 shift; shift
2047 # Remember, the first character of IFS is used to create $*,
2048 # except with old shells:
2049 host_os=$*
2050 IFS=$ac_save_IFS
2051 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2052
2053
2054
2055 SHARED="-shared"
2056 MACOSX=
2057 case $host_os in
2058     *darwin* )
2059         MACOSX=yes
2060         CFLAGS="$CFLAGS"
2061         CXXFLAGS="$CXXFLAGS -fno-rtti"
2062         SHARED="-bundle"
2063         if test -d /opt/local/include && test -d /opt/local/lib; then
2064             CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2065             LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2066         fi
2067         # Use fink packages if available.
2068         #if test -d /sw/include && test -d /sw/lib; then
2069         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
2070         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
2071         #fi
2072         ;;
2073 esac
2074
2075
2076
2077  ac_ext=c
2078 ac_cpp='$CPP $CPPFLAGS'
2079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2082 if test -n "$ac_tool_prefix"; then
2083   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2084 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2085 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2086 $as_echo_n "checking for $ac_word... " >&6; }
2087 if test "${ac_cv_prog_CC+set}" = set; then
2088   $as_echo_n "(cached) " >&6
2089 else
2090   if test -n "$CC"; then
2091   ac_cv_prog_CC="$CC" # Let the user override the test.
2092 else
2093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094 for as_dir in $PATH
2095 do
2096   IFS=$as_save_IFS
2097   test -z "$as_dir" && as_dir=.
2098   for ac_exec_ext in '' $ac_executable_extensions; do
2099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2100     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2101     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2102     break 2
2103   fi
2104 done
2105 done
2106 IFS=$as_save_IFS
2107
2108 fi
2109 fi
2110 CC=$ac_cv_prog_CC
2111 if test -n "$CC"; then
2112   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2113 $as_echo "$CC" >&6; }
2114 else
2115   { $as_echo "$as_me:$LINENO: result: no" >&5
2116 $as_echo "no" >&6; }
2117 fi
2118
2119
2120 fi
2121 if test -z "$ac_cv_prog_CC"; then
2122   ac_ct_CC=$CC
2123   # Extract the first word of "gcc", so it can be a program name with args.
2124 set dummy gcc; ac_word=$2
2125 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 $as_echo_n "checking for $ac_word... " >&6; }
2127 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2128   $as_echo_n "(cached) " >&6
2129 else
2130   if test -n "$ac_ct_CC"; then
2131   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2132 else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136   IFS=$as_save_IFS
2137   test -z "$as_dir" && as_dir=.
2138   for ac_exec_ext in '' $ac_executable_extensions; do
2139   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2140     ac_cv_prog_ac_ct_CC="gcc"
2141     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142     break 2
2143   fi
2144 done
2145 done
2146 IFS=$as_save_IFS
2147
2148 fi
2149 fi
2150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2151 if test -n "$ac_ct_CC"; then
2152   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153 $as_echo "$ac_ct_CC" >&6; }
2154 else
2155   { $as_echo "$as_me:$LINENO: result: no" >&5
2156 $as_echo "no" >&6; }
2157 fi
2158
2159   if test "x$ac_ct_CC" = x; then
2160     CC=""
2161   else
2162     case $cross_compiling:$ac_tool_warned in
2163 yes:)
2164 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2166 ac_tool_warned=yes ;;
2167 esac
2168     CC=$ac_ct_CC
2169   fi
2170 else
2171   CC="$ac_cv_prog_CC"
2172 fi
2173
2174 if test -z "$CC"; then
2175           if test -n "$ac_tool_prefix"; then
2176     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2177 set dummy ${ac_tool_prefix}cc; ac_word=$2
2178 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2179 $as_echo_n "checking for $ac_word... " >&6; }
2180 if test "${ac_cv_prog_CC+set}" = set; then
2181   $as_echo_n "(cached) " >&6
2182 else
2183   if test -n "$CC"; then
2184   ac_cv_prog_CC="$CC" # Let the user override the test.
2185 else
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2187 for as_dir in $PATH
2188 do
2189   IFS=$as_save_IFS
2190   test -z "$as_dir" && as_dir=.
2191   for ac_exec_ext in '' $ac_executable_extensions; do
2192   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2193     ac_cv_prog_CC="${ac_tool_prefix}cc"
2194     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2195     break 2
2196   fi
2197 done
2198 done
2199 IFS=$as_save_IFS
2200
2201 fi
2202 fi
2203 CC=$ac_cv_prog_CC
2204 if test -n "$CC"; then
2205   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2206 $as_echo "$CC" >&6; }
2207 else
2208   { $as_echo "$as_me:$LINENO: result: no" >&5
2209 $as_echo "no" >&6; }
2210 fi
2211
2212
2213   fi
2214 fi
2215 if test -z "$CC"; then
2216   # Extract the first word of "cc", so it can be a program name with args.
2217 set dummy cc; ac_word=$2
2218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2219 $as_echo_n "checking for $ac_word... " >&6; }
2220 if test "${ac_cv_prog_CC+set}" = set; then
2221   $as_echo_n "(cached) " >&6
2222 else
2223   if test -n "$CC"; then
2224   ac_cv_prog_CC="$CC" # Let the user override the test.
2225 else
2226   ac_prog_rejected=no
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230   IFS=$as_save_IFS
2231   test -z "$as_dir" && as_dir=.
2232   for ac_exec_ext in '' $ac_executable_extensions; do
2233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2234     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2235        ac_prog_rejected=yes
2236        continue
2237      fi
2238     ac_cv_prog_CC="cc"
2239     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2240     break 2
2241   fi
2242 done
2243 done
2244 IFS=$as_save_IFS
2245
2246 if test $ac_prog_rejected = yes; then
2247   # We found a bogon in the path, so make sure we never use it.
2248   set dummy $ac_cv_prog_CC
2249   shift
2250   if test $# != 0; then
2251     # We chose a different compiler from the bogus one.
2252     # However, it has the same basename, so the bogon will be chosen
2253     # first if we set CC to just the basename; use the full file name.
2254     shift
2255     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2256   fi
2257 fi
2258 fi
2259 fi
2260 CC=$ac_cv_prog_CC
2261 if test -n "$CC"; then
2262   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2263 $as_echo "$CC" >&6; }
2264 else
2265   { $as_echo "$as_me:$LINENO: result: no" >&5
2266 $as_echo "no" >&6; }
2267 fi
2268
2269
2270 fi
2271 if test -z "$CC"; then
2272   if test -n "$ac_tool_prefix"; then
2273   for ac_prog in cl.exe
2274   do
2275     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2278 $as_echo_n "checking for $ac_word... " >&6; }
2279 if test "${ac_cv_prog_CC+set}" = set; then
2280   $as_echo_n "(cached) " >&6
2281 else
2282   if test -n "$CC"; then
2283   ac_cv_prog_CC="$CC" # Let the user override the test.
2284 else
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288   IFS=$as_save_IFS
2289   test -z "$as_dir" && as_dir=.
2290   for ac_exec_ext in '' $ac_executable_extensions; do
2291   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2292     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2293     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2294     break 2
2295   fi
2296 done
2297 done
2298 IFS=$as_save_IFS
2299
2300 fi
2301 fi
2302 CC=$ac_cv_prog_CC
2303 if test -n "$CC"; then
2304   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2305 $as_echo "$CC" >&6; }
2306 else
2307   { $as_echo "$as_me:$LINENO: result: no" >&5
2308 $as_echo "no" >&6; }
2309 fi
2310
2311
2312     test -n "$CC" && break
2313   done
2314 fi
2315 if test -z "$CC"; then
2316   ac_ct_CC=$CC
2317   for ac_prog in cl.exe
2318 do
2319   # Extract the first word of "$ac_prog", so it can be a program name with args.
2320 set dummy $ac_prog; ac_word=$2
2321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2322 $as_echo_n "checking for $ac_word... " >&6; }
2323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2324   $as_echo_n "(cached) " >&6
2325 else
2326   if test -n "$ac_ct_CC"; then
2327   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2328 else
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2330 for as_dir in $PATH
2331 do
2332   IFS=$as_save_IFS
2333   test -z "$as_dir" && as_dir=.
2334   for ac_exec_ext in '' $ac_executable_extensions; do
2335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2336     ac_cv_prog_ac_ct_CC="$ac_prog"
2337     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338     break 2
2339   fi
2340 done
2341 done
2342 IFS=$as_save_IFS
2343
2344 fi
2345 fi
2346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2347 if test -n "$ac_ct_CC"; then
2348   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2349 $as_echo "$ac_ct_CC" >&6; }
2350 else
2351   { $as_echo "$as_me:$LINENO: result: no" >&5
2352 $as_echo "no" >&6; }
2353 fi
2354
2355
2356   test -n "$ac_ct_CC" && break
2357 done
2358
2359   if test "x$ac_ct_CC" = x; then
2360     CC=""
2361   else
2362     case $cross_compiling:$ac_tool_warned in
2363 yes:)
2364 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2366 ac_tool_warned=yes ;;
2367 esac
2368     CC=$ac_ct_CC
2369   fi
2370 fi
2371
2372 fi
2373
2374
2375 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2378 See \`config.log' for more details." >&5
2379 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2380 See \`config.log' for more details." >&2;}
2381    { (exit 1); exit 1; }; }; }
2382
2383 # Provide some information about the compiler.
2384 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2385 set X $ac_compile
2386 ac_compiler=$2
2387 { (ac_try="$ac_compiler --version >&5"
2388 case "(($ac_try" in
2389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390   *) ac_try_echo=$ac_try;;
2391 esac
2392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2393 $as_echo "$ac_try_echo") >&5
2394   (eval "$ac_compiler --version >&5") 2>&5
2395   ac_status=$?
2396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397   (exit $ac_status); }
2398 { (ac_try="$ac_compiler -v >&5"
2399 case "(($ac_try" in
2400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2401   *) ac_try_echo=$ac_try;;
2402 esac
2403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2404 $as_echo "$ac_try_echo") >&5
2405   (eval "$ac_compiler -v >&5") 2>&5
2406   ac_status=$?
2407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408   (exit $ac_status); }
2409 { (ac_try="$ac_compiler -V >&5"
2410 case "(($ac_try" in
2411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412   *) ac_try_echo=$ac_try;;
2413 esac
2414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2415 $as_echo "$ac_try_echo") >&5
2416   (eval "$ac_compiler -V >&5") 2>&5
2417   ac_status=$?
2418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }
2420
2421 cat >conftest.$ac_ext <<_ACEOF
2422 /* confdefs.h.  */
2423 _ACEOF
2424 cat confdefs.h >>conftest.$ac_ext
2425 cat >>conftest.$ac_ext <<_ACEOF
2426 /* end confdefs.h.  */
2427
2428 int
2429 main ()
2430 {
2431
2432   ;
2433   return 0;
2434 }
2435 _ACEOF
2436 ac_clean_files_save=$ac_clean_files
2437 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2438 # Try to create an executable without -o first, disregard a.out.
2439 # It will help us diagnose broken compilers, and finding out an intuition
2440 # of exeext.
2441 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2442 $as_echo_n "checking for C compiler default output file name... " >&6; }
2443 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2444
2445 # The possible output files:
2446 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2447
2448 ac_rmfiles=
2449 for ac_file in $ac_files
2450 do
2451   case $ac_file in
2452     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2453     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2454   esac
2455 done
2456 rm -f $ac_rmfiles
2457
2458 if { (ac_try="$ac_link_default"
2459 case "(($ac_try" in
2460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461   *) ac_try_echo=$ac_try;;
2462 esac
2463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2464 $as_echo "$ac_try_echo") >&5
2465   (eval "$ac_link_default") 2>&5
2466   ac_status=$?
2467   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2468   (exit $ac_status); }; then
2469   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2470 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2471 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2472 # so that the user can short-circuit this test for compilers unknown to
2473 # Autoconf.
2474 for ac_file in $ac_files ''
2475 do
2476   test -f "$ac_file" || continue
2477   case $ac_file in
2478     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2479         ;;
2480     [ab].out )
2481         # We found the default executable, but exeext='' is most
2482         # certainly right.
2483         break;;
2484     *.* )
2485         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2486         then :; else
2487            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2488         fi
2489         # We set ac_cv_exeext here because the later test for it is not
2490         # safe: cross compilers may not add the suffix if given an `-o'
2491         # argument, so we may need to know it at that point already.
2492         # Even if this section looks crufty: it has the advantage of
2493         # actually working.
2494         break;;
2495     * )
2496         break;;
2497   esac
2498 done
2499 test "$ac_cv_exeext" = no && ac_cv_exeext=
2500
2501 else
2502   ac_file=''
2503 fi
2504
2505 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2506 $as_echo "$ac_file" >&6; }
2507 if test -z "$ac_file"; then
2508   $as_echo "$as_me: failed program was:" >&5
2509 sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2513 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2514 See \`config.log' for more details." >&5
2515 $as_echo "$as_me: error: C compiler cannot create executables
2516 See \`config.log' for more details." >&2;}
2517    { (exit 77); exit 77; }; }; }
2518 fi
2519
2520 ac_exeext=$ac_cv_exeext
2521
2522 # Check that the compiler produces executables we can run.  If not, either
2523 # the compiler is broken, or we cross compile.
2524 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2525 $as_echo_n "checking whether the C compiler works... " >&6; }
2526 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2527 # If not cross compiling, check that we can run a simple program.
2528 if test "$cross_compiling" != yes; then
2529   if { ac_try='./$ac_file'
2530   { (case "(($ac_try" in
2531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2532   *) ac_try_echo=$ac_try;;
2533 esac
2534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2535 $as_echo "$ac_try_echo") >&5
2536   (eval "$ac_try") 2>&5
2537   ac_status=$?
2538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; }; then
2540     cross_compiling=no
2541   else
2542     if test "$cross_compiling" = maybe; then
2543         cross_compiling=yes
2544     else
2545         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2547 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2548 If you meant to cross compile, use \`--host'.
2549 See \`config.log' for more details." >&5
2550 $as_echo "$as_me: error: cannot run C compiled programs.
2551 If you meant to cross compile, use \`--host'.
2552 See \`config.log' for more details." >&2;}
2553    { (exit 1); exit 1; }; }; }
2554     fi
2555   fi
2556 fi
2557 { $as_echo "$as_me:$LINENO: result: yes" >&5
2558 $as_echo "yes" >&6; }
2559
2560 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2561 ac_clean_files=$ac_clean_files_save
2562 # Check that the compiler produces executables we can run.  If not, either
2563 # the compiler is broken, or we cross compile.
2564 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2565 $as_echo_n "checking whether we are cross compiling... " >&6; }
2566 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2567 $as_echo "$cross_compiling" >&6; }
2568
2569 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2570 $as_echo_n "checking for suffix of executables... " >&6; }
2571 if { (ac_try="$ac_link"
2572 case "(($ac_try" in
2573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2574   *) ac_try_echo=$ac_try;;
2575 esac
2576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2577 $as_echo "$ac_try_echo") >&5
2578   (eval "$ac_link") 2>&5
2579   ac_status=$?
2580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581   (exit $ac_status); }; then
2582   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2583 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2584 # work properly (i.e., refer to `conftest.exe'), while it won't with
2585 # `rm'.
2586 for ac_file in conftest.exe conftest conftest.*; do
2587   test -f "$ac_file" || continue
2588   case $ac_file in
2589     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2590     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2591           break;;
2592     * ) break;;
2593   esac
2594 done
2595 else
2596   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2599 See \`config.log' for more details." >&5
2600 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2601 See \`config.log' for more details." >&2;}
2602    { (exit 1); exit 1; }; }; }
2603 fi
2604
2605 rm -f conftest$ac_cv_exeext
2606 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2607 $as_echo "$ac_cv_exeext" >&6; }
2608
2609 rm -f conftest.$ac_ext
2610 EXEEXT=$ac_cv_exeext
2611 ac_exeext=$EXEEXT
2612 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2613 $as_echo_n "checking for suffix of object files... " >&6; }
2614 if test "${ac_cv_objext+set}" = set; then
2615   $as_echo_n "(cached) " >&6
2616 else
2617   cat >conftest.$ac_ext <<_ACEOF
2618 /* confdefs.h.  */
2619 _ACEOF
2620 cat confdefs.h >>conftest.$ac_ext
2621 cat >>conftest.$ac_ext <<_ACEOF
2622 /* end confdefs.h.  */
2623
2624 int
2625 main ()
2626 {
2627
2628   ;
2629   return 0;
2630 }
2631 _ACEOF
2632 rm -f conftest.o conftest.obj
2633 if { (ac_try="$ac_compile"
2634 case "(($ac_try" in
2635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2636   *) ac_try_echo=$ac_try;;
2637 esac
2638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2639 $as_echo "$ac_try_echo") >&5
2640   (eval "$ac_compile") 2>&5
2641   ac_status=$?
2642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); }; then
2644   for ac_file in conftest.o conftest.obj conftest.*; do
2645   test -f "$ac_file" || continue;
2646   case $ac_file in
2647     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2648     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2649        break;;
2650   esac
2651 done
2652 else
2653   $as_echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2655
2656 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2658 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2659 See \`config.log' for more details." >&5
2660 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2661 See \`config.log' for more details." >&2;}
2662    { (exit 1); exit 1; }; }; }
2663 fi
2664
2665 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2666 fi
2667 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2668 $as_echo "$ac_cv_objext" >&6; }
2669 OBJEXT=$ac_cv_objext
2670 ac_objext=$OBJEXT
2671 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2672 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2673 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2674   $as_echo_n "(cached) " >&6
2675 else
2676   cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h.  */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h.  */
2682
2683 int
2684 main ()
2685 {
2686 #ifndef __GNUC__
2687        choke me
2688 #endif
2689
2690   ;
2691   return 0;
2692 }
2693 _ACEOF
2694 rm -f conftest.$ac_objext
2695 if { (ac_try="$ac_compile"
2696 case "(($ac_try" in
2697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698   *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2701 $as_echo "$ac_try_echo") >&5
2702   (eval "$ac_compile") 2>conftest.er1
2703   ac_status=$?
2704   grep -v '^ *+' conftest.er1 >conftest.err
2705   rm -f conftest.er1
2706   cat conftest.err >&5
2707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708   (exit $ac_status); } && {
2709          test -z "$ac_c_werror_flag" ||
2710          test ! -s conftest.err
2711        } && test -s conftest.$ac_objext; then
2712   ac_compiler_gnu=yes
2713 else
2714   $as_echo "$as_me: failed program was:" >&5
2715 sed 's/^/| /' conftest.$ac_ext >&5
2716
2717         ac_compiler_gnu=no
2718 fi
2719
2720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2721 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2722
2723 fi
2724 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2725 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2726 if test $ac_compiler_gnu = yes; then
2727   GCC=yes
2728 else
2729   GCC=
2730 fi
2731 ac_test_CFLAGS=${CFLAGS+set}
2732 ac_save_CFLAGS=$CFLAGS
2733 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2734 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2735 if test "${ac_cv_prog_cc_g+set}" = set; then
2736   $as_echo_n "(cached) " >&6
2737 else
2738   ac_save_c_werror_flag=$ac_c_werror_flag
2739    ac_c_werror_flag=yes
2740    ac_cv_prog_cc_g=no
2741    CFLAGS="-g"
2742    cat >conftest.$ac_ext <<_ACEOF
2743 /* confdefs.h.  */
2744 _ACEOF
2745 cat confdefs.h >>conftest.$ac_ext
2746 cat >>conftest.$ac_ext <<_ACEOF
2747 /* end confdefs.h.  */
2748
2749 int
2750 main ()
2751 {
2752
2753   ;
2754   return 0;
2755 }
2756 _ACEOF
2757 rm -f conftest.$ac_objext
2758 if { (ac_try="$ac_compile"
2759 case "(($ac_try" in
2760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761   *) ac_try_echo=$ac_try;;
2762 esac
2763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2764 $as_echo "$ac_try_echo") >&5
2765   (eval "$ac_compile") 2>conftest.er1
2766   ac_status=$?
2767   grep -v '^ *+' conftest.er1 >conftest.err
2768   rm -f conftest.er1
2769   cat conftest.err >&5
2770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } && {
2772          test -z "$ac_c_werror_flag" ||
2773          test ! -s conftest.err
2774        } && test -s conftest.$ac_objext; then
2775   ac_cv_prog_cc_g=yes
2776 else
2777   $as_echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2779
2780         CFLAGS=""
2781       cat >conftest.$ac_ext <<_ACEOF
2782 /* confdefs.h.  */
2783 _ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h.  */
2787
2788 int
2789 main ()
2790 {
2791
2792   ;
2793   return 0;
2794 }
2795 _ACEOF
2796 rm -f conftest.$ac_objext
2797 if { (ac_try="$ac_compile"
2798 case "(($ac_try" in
2799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800   *) ac_try_echo=$ac_try;;
2801 esac
2802 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2803 $as_echo "$ac_try_echo") >&5
2804   (eval "$ac_compile") 2>conftest.er1
2805   ac_status=$?
2806   grep -v '^ *+' conftest.er1 >conftest.err
2807   rm -f conftest.er1
2808   cat conftest.err >&5
2809   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810   (exit $ac_status); } && {
2811          test -z "$ac_c_werror_flag" ||
2812          test ! -s conftest.err
2813        } && test -s conftest.$ac_objext; then
2814   :
2815 else
2816   $as_echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2818
2819         ac_c_werror_flag=$ac_save_c_werror_flag
2820          CFLAGS="-g"
2821          cat >conftest.$ac_ext <<_ACEOF
2822 /* confdefs.h.  */
2823 _ACEOF
2824 cat confdefs.h >>conftest.$ac_ext
2825 cat >>conftest.$ac_ext <<_ACEOF
2826 /* end confdefs.h.  */
2827
2828 int
2829 main ()
2830 {
2831
2832   ;
2833   return 0;
2834 }
2835 _ACEOF
2836 rm -f conftest.$ac_objext
2837 if { (ac_try="$ac_compile"
2838 case "(($ac_try" in
2839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840   *) ac_try_echo=$ac_try;;
2841 esac
2842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2843 $as_echo "$ac_try_echo") >&5
2844   (eval "$ac_compile") 2>conftest.er1
2845   ac_status=$?
2846   grep -v '^ *+' conftest.er1 >conftest.err
2847   rm -f conftest.er1
2848   cat conftest.err >&5
2849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); } && {
2851          test -z "$ac_c_werror_flag" ||
2852          test ! -s conftest.err
2853        } && test -s conftest.$ac_objext; then
2854   ac_cv_prog_cc_g=yes
2855 else
2856   $as_echo "$as_me: failed program was:" >&5
2857 sed 's/^/| /' conftest.$ac_ext >&5
2858
2859
2860 fi
2861
2862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 fi
2864
2865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 fi
2867
2868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869    ac_c_werror_flag=$ac_save_c_werror_flag
2870 fi
2871 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2872 $as_echo "$ac_cv_prog_cc_g" >&6; }
2873 if test "$ac_test_CFLAGS" = set; then
2874   CFLAGS=$ac_save_CFLAGS
2875 elif test $ac_cv_prog_cc_g = yes; then
2876   if test "$GCC" = yes; then
2877     CFLAGS="-g -O2"
2878   else
2879     CFLAGS="-g"
2880   fi
2881 else
2882   if test "$GCC" = yes; then
2883     CFLAGS="-O2"
2884   else
2885     CFLAGS=
2886   fi
2887 fi
2888 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2890 if test "${ac_cv_prog_cc_c89+set}" = set; then
2891   $as_echo_n "(cached) " >&6
2892 else
2893   ac_cv_prog_cc_c89=no
2894 ac_save_CC=$CC
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h.  */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h.  */
2901 #include <stdarg.h>
2902 #include <stdio.h>
2903 #include <sys/types.h>
2904 #include <sys/stat.h>
2905 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2906 struct buf { int x; };
2907 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2908 static char *e (p, i)
2909      char **p;
2910      int i;
2911 {
2912   return p[i];
2913 }
2914 static char *f (char * (*g) (char **, int), char **p, ...)
2915 {
2916   char *s;
2917   va_list v;
2918   va_start (v,p);
2919   s = g (p, va_arg (v,int));
2920   va_end (v);
2921   return s;
2922 }
2923
2924 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2925    function prototypes and stuff, but not '\xHH' hex character constants.
2926    These don't provoke an error unfortunately, instead are silently treated
2927    as 'x'.  The following induces an error, until -std is added to get
2928    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2929    array size at least.  It's necessary to write '\x00'==0 to get something
2930    that's true only with -std.  */
2931 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2932
2933 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2934    inside strings and character constants.  */
2935 #define FOO(x) 'x'
2936 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2937
2938 int test (int i, double x);
2939 struct s1 {int (*f) (int a);};
2940 struct s2 {int (*f) (double a);};
2941 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2942 int argc;
2943 char **argv;
2944 int
2945 main ()
2946 {
2947 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2953         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2954 do
2955   CC="$ac_save_CC $ac_arg"
2956   rm -f conftest.$ac_objext
2957 if { (ac_try="$ac_compile"
2958 case "(($ac_try" in
2959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960   *) ac_try_echo=$ac_try;;
2961 esac
2962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2963 $as_echo "$ac_try_echo") >&5
2964   (eval "$ac_compile") 2>conftest.er1
2965   ac_status=$?
2966   grep -v '^ *+' conftest.er1 >conftest.err
2967   rm -f conftest.er1
2968   cat conftest.err >&5
2969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970   (exit $ac_status); } && {
2971          test -z "$ac_c_werror_flag" ||
2972          test ! -s conftest.err
2973        } && test -s conftest.$ac_objext; then
2974   ac_cv_prog_cc_c89=$ac_arg
2975 else
2976   $as_echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2978
2979
2980 fi
2981
2982 rm -f core conftest.err conftest.$ac_objext
2983   test "x$ac_cv_prog_cc_c89" != "xno" && break
2984 done
2985 rm -f conftest.$ac_ext
2986 CC=$ac_save_CC
2987
2988 fi
2989 # AC_CACHE_VAL
2990 case "x$ac_cv_prog_cc_c89" in
2991   x)
2992     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2993 $as_echo "none needed" >&6; } ;;
2994   xno)
2995     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2996 $as_echo "unsupported" >&6; } ;;
2997   *)
2998     CC="$CC $ac_cv_prog_cc_c89"
2999     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3000 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3001 esac
3002
3003
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009
3010  ac_ext=cpp
3011 ac_cpp='$CXXCPP $CPPFLAGS'
3012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3015 if test -z "$CXX"; then
3016   if test -n "$CCC"; then
3017     CXX=$CCC
3018   else
3019     if test -n "$ac_tool_prefix"; then
3020   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3021   do
3022     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3023 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; }
3026 if test "${ac_cv_prog_CXX+set}" = set; then
3027   $as_echo_n "(cached) " >&6
3028 else
3029   if test -n "$CXX"; then
3030   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035   IFS=$as_save_IFS
3036   test -z "$as_dir" && as_dir=.
3037   for ac_exec_ext in '' $ac_executable_extensions; do
3038   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3040     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3041     break 2
3042   fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 fi
3048 fi
3049 CXX=$ac_cv_prog_CXX
3050 if test -n "$CXX"; then
3051   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3052 $as_echo "$CXX" >&6; }
3053 else
3054   { $as_echo "$as_me:$LINENO: result: no" >&5
3055 $as_echo "no" >&6; }
3056 fi
3057
3058
3059     test -n "$CXX" && break
3060   done
3061 fi
3062 if test -z "$CXX"; then
3063   ac_ct_CXX=$CXX
3064   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3065 do
3066   # Extract the first word of "$ac_prog", so it can be a program name with args.
3067 set dummy $ac_prog; ac_word=$2
3068 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3071   $as_echo_n "(cached) " >&6
3072 else
3073   if test -n "$ac_ct_CXX"; then
3074   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3078 do
3079   IFS=$as_save_IFS
3080   test -z "$as_dir" && as_dir=.
3081   for ac_exec_ext in '' $ac_executable_extensions; do
3082   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083     ac_cv_prog_ac_ct_CXX="$ac_prog"
3084     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3085     break 2
3086   fi
3087 done
3088 done
3089 IFS=$as_save_IFS
3090
3091 fi
3092 fi
3093 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3094 if test -n "$ac_ct_CXX"; then
3095   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3096 $as_echo "$ac_ct_CXX" >&6; }
3097 else
3098   { $as_echo "$as_me:$LINENO: result: no" >&5
3099 $as_echo "no" >&6; }
3100 fi
3101
3102
3103   test -n "$ac_ct_CXX" && break
3104 done
3105
3106   if test "x$ac_ct_CXX" = x; then
3107     CXX="g++"
3108   else
3109     case $cross_compiling:$ac_tool_warned in
3110 yes:)
3111 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3112 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3113 ac_tool_warned=yes ;;
3114 esac
3115     CXX=$ac_ct_CXX
3116   fi
3117 fi
3118
3119   fi
3120 fi
3121 # Provide some information about the compiler.
3122 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3123 set X $ac_compile
3124 ac_compiler=$2
3125 { (ac_try="$ac_compiler --version >&5"
3126 case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3131 $as_echo "$ac_try_echo") >&5
3132   (eval "$ac_compiler --version >&5") 2>&5
3133   ac_status=$?
3134   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135   (exit $ac_status); }
3136 { (ac_try="$ac_compiler -v >&5"
3137 case "(($ac_try" in
3138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139   *) ac_try_echo=$ac_try;;
3140 esac
3141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3142 $as_echo "$ac_try_echo") >&5
3143   (eval "$ac_compiler -v >&5") 2>&5
3144   ac_status=$?
3145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146   (exit $ac_status); }
3147 { (ac_try="$ac_compiler -V >&5"
3148 case "(($ac_try" in
3149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150   *) ac_try_echo=$ac_try;;
3151 esac
3152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3153 $as_echo "$ac_try_echo") >&5
3154   (eval "$ac_compiler -V >&5") 2>&5
3155   ac_status=$?
3156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }
3158
3159 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3160 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3161 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3162   $as_echo_n "(cached) " >&6
3163 else
3164   cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h.  */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h.  */
3170
3171 int
3172 main ()
3173 {
3174 #ifndef __GNUC__
3175        choke me
3176 #endif
3177
3178   ;
3179   return 0;
3180 }
3181 _ACEOF
3182 rm -f conftest.$ac_objext
3183 if { (ac_try="$ac_compile"
3184 case "(($ac_try" in
3185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186   *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3189 $as_echo "$ac_try_echo") >&5
3190   (eval "$ac_compile") 2>conftest.er1
3191   ac_status=$?
3192   grep -v '^ *+' conftest.er1 >conftest.err
3193   rm -f conftest.er1
3194   cat conftest.err >&5
3195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); } && {
3197          test -z "$ac_cxx_werror_flag" ||
3198          test ! -s conftest.err
3199        } && test -s conftest.$ac_objext; then
3200   ac_compiler_gnu=yes
3201 else
3202   $as_echo "$as_me: failed program was:" >&5
3203 sed 's/^/| /' conftest.$ac_ext >&5
3204
3205         ac_compiler_gnu=no
3206 fi
3207
3208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3209 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3210
3211 fi
3212 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3213 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3214 if test $ac_compiler_gnu = yes; then
3215   GXX=yes
3216 else
3217   GXX=
3218 fi
3219 ac_test_CXXFLAGS=${CXXFLAGS+set}
3220 ac_save_CXXFLAGS=$CXXFLAGS
3221 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3222 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3223 if test "${ac_cv_prog_cxx_g+set}" = set; then
3224   $as_echo_n "(cached) " >&6
3225 else
3226   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3227    ac_cxx_werror_flag=yes
3228    ac_cv_prog_cxx_g=no
3229    CXXFLAGS="-g"
3230    cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h.  */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h.  */
3236
3237 int
3238 main ()
3239 {
3240
3241   ;
3242   return 0;
3243 }
3244 _ACEOF
3245 rm -f conftest.$ac_objext
3246 if { (ac_try="$ac_compile"
3247 case "(($ac_try" in
3248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249   *) ac_try_echo=$ac_try;;
3250 esac
3251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3252 $as_echo "$ac_try_echo") >&5
3253   (eval "$ac_compile") 2>conftest.er1
3254   ac_status=$?
3255   grep -v '^ *+' conftest.er1 >conftest.err
3256   rm -f conftest.er1
3257   cat conftest.err >&5
3258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259   (exit $ac_status); } && {
3260          test -z "$ac_cxx_werror_flag" ||
3261          test ! -s conftest.err
3262        } && test -s conftest.$ac_objext; then
3263   ac_cv_prog_cxx_g=yes
3264 else
3265   $as_echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3267
3268         CXXFLAGS=""
3269       cat >conftest.$ac_ext <<_ACEOF
3270 /* confdefs.h.  */
3271 _ACEOF
3272 cat confdefs.h >>conftest.$ac_ext
3273 cat >>conftest.$ac_ext <<_ACEOF
3274 /* end confdefs.h.  */
3275
3276 int
3277 main ()
3278 {
3279
3280   ;
3281   return 0;
3282 }
3283 _ACEOF
3284 rm -f conftest.$ac_objext
3285 if { (ac_try="$ac_compile"
3286 case "(($ac_try" in
3287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288   *) ac_try_echo=$ac_try;;
3289 esac
3290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3291 $as_echo "$ac_try_echo") >&5
3292   (eval "$ac_compile") 2>conftest.er1
3293   ac_status=$?
3294   grep -v '^ *+' conftest.er1 >conftest.err
3295   rm -f conftest.er1
3296   cat conftest.err >&5
3297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298   (exit $ac_status); } && {
3299          test -z "$ac_cxx_werror_flag" ||
3300          test ! -s conftest.err
3301        } && test -s conftest.$ac_objext; then
3302   :
3303 else
3304   $as_echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3306
3307         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3308          CXXFLAGS="-g"
3309          cat >conftest.$ac_ext <<_ACEOF
3310 /* confdefs.h.  */
3311 _ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h.  */
3315
3316 int
3317 main ()
3318 {
3319
3320   ;
3321   return 0;
3322 }
3323 _ACEOF
3324 rm -f conftest.$ac_objext
3325 if { (ac_try="$ac_compile"
3326 case "(($ac_try" in
3327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328   *) ac_try_echo=$ac_try;;
3329 esac
3330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3331 $as_echo "$ac_try_echo") >&5
3332   (eval "$ac_compile") 2>conftest.er1
3333   ac_status=$?
3334   grep -v '^ *+' conftest.er1 >conftest.err
3335   rm -f conftest.er1
3336   cat conftest.err >&5
3337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338   (exit $ac_status); } && {
3339          test -z "$ac_cxx_werror_flag" ||
3340          test ! -s conftest.err
3341        } && test -s conftest.$ac_objext; then
3342   ac_cv_prog_cxx_g=yes
3343 else
3344   $as_echo "$as_me: failed program was:" >&5
3345 sed 's/^/| /' conftest.$ac_ext >&5
3346
3347
3348 fi
3349
3350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 fi
3352
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 fi
3355
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3358 fi
3359 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3360 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3361 if test "$ac_test_CXXFLAGS" = set; then
3362   CXXFLAGS=$ac_save_CXXFLAGS
3363 elif test $ac_cv_prog_cxx_g = yes; then
3364   if test "$GXX" = yes; then
3365     CXXFLAGS="-g -O2"
3366   else
3367     CXXFLAGS="-g"
3368   fi
3369 else
3370   if test "$GXX" = yes; then
3371     CXXFLAGS="-O2"
3372   else
3373     CXXFLAGS=
3374   fi
3375 fi
3376 ac_ext=c
3377 ac_cpp='$CPP $CPPFLAGS'
3378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3381
3382
3383
3384
3385 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3386 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3387
3388 cat > conftest.c << EOF
3389 #include <stdlib.h>
3390 #include <stdio.h>
3391
3392 int main (int argc, char*argv)
3393 {
3394     int a,b;
3395     b=3;
3396     int c;
3397     c=4;
3398     return 0;
3399 }
3400 EOF
3401
3402 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3403 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3404   { $as_echo "$as_me:$LINENO: result: yes" >&5
3405 $as_echo "yes" >&6; }
3406   GCC_IS_OK=true
3407   export GCC_IS_OK
3408 else
3409   echo "configure: failed program was:" >&5
3410   cat conftest.c >&5
3411   { $as_echo "$as_me:$LINENO: result: no" >&5
3412 $as_echo "no" >&6; }
3413 fi
3414 rm -f conftest*
3415
3416
3417 if test "x$GCC_IS_OK" '=' "x";then
3418     echo "***************************************************"
3419     echo "* Your gcc is too old to compile this!"
3420     echo "* "
3421     echo "* The last version compileable by this compiler is "
3422     echo "* swftools 0.7.0, which you can download from "
3423     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3424     echo "* ."
3425     echo "* Newer versions require at least gcc 3.0.0 "
3426     echo "***************************************************"
3427     exit 1
3428 fi
3429
3430 if test "x$CHECKMEM" '!=' "x";then
3431     CC="ccmalloc $CC"
3432     CXX="ccmalloc $CXX"
3433     #echo running again
3434     #unset ac_cv_prog_CC
3435     #unset ac_cv_prog_CXX
3436     #AC_PROG_CC
3437     #AC_PROG_CXX
3438 fi
3439  ac_ext=c
3440 ac_cpp='$CPP $CPPFLAGS'
3441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3444 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3445 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3446 # On Suns, sometimes $CPP names a directory.
3447 if test -n "$CPP" && test -d "$CPP"; then
3448   CPP=
3449 fi
3450 if test -z "$CPP"; then
3451   if test "${ac_cv_prog_CPP+set}" = set; then
3452   $as_echo_n "(cached) " >&6
3453 else
3454       # Double quotes because CPP needs to be expanded
3455     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3456     do
3457       ac_preproc_ok=false
3458 for ac_c_preproc_warn_flag in '' yes
3459 do
3460   # Use a header file that comes with gcc, so configuring glibc
3461   # with a fresh cross-compiler works.
3462   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3463   # <limits.h> exists even on freestanding compilers.
3464   # On the NeXT, cc -E runs the code through the compiler's parser,
3465   # not just through cpp. "Syntax error" is here to catch this case.
3466   cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472 #ifdef __STDC__
3473 # include <limits.h>
3474 #else
3475 # include <assert.h>
3476 #endif
3477                      Syntax error
3478 _ACEOF
3479 if { (ac_try="$ac_cpp conftest.$ac_ext"
3480 case "(($ac_try" in
3481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482   *) ac_try_echo=$ac_try;;
3483 esac
3484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3485 $as_echo "$ac_try_echo") >&5
3486   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3487   ac_status=$?
3488   grep -v '^ *+' conftest.er1 >conftest.err
3489   rm -f conftest.er1
3490   cat conftest.err >&5
3491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492   (exit $ac_status); } >/dev/null && {
3493          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3494          test ! -s conftest.err
3495        }; then
3496   :
3497 else
3498   $as_echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501   # Broken: fails on valid input.
3502 continue
3503 fi
3504
3505 rm -f conftest.err conftest.$ac_ext
3506
3507   # OK, works on sane cases.  Now check whether nonexistent headers
3508   # can be detected and how.
3509   cat >conftest.$ac_ext <<_ACEOF
3510 /* confdefs.h.  */
3511 _ACEOF
3512 cat confdefs.h >>conftest.$ac_ext
3513 cat >>conftest.$ac_ext <<_ACEOF
3514 /* end confdefs.h.  */
3515 #include <ac_nonexistent.h>
3516 _ACEOF
3517 if { (ac_try="$ac_cpp conftest.$ac_ext"
3518 case "(($ac_try" in
3519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520   *) ac_try_echo=$ac_try;;
3521 esac
3522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3523 $as_echo "$ac_try_echo") >&5
3524   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3525   ac_status=$?
3526   grep -v '^ *+' conftest.er1 >conftest.err
3527   rm -f conftest.er1
3528   cat conftest.err >&5
3529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); } >/dev/null && {
3531          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3532          test ! -s conftest.err
3533        }; then
3534   # Broken: success on invalid input.
3535 continue
3536 else
3537   $as_echo "$as_me: failed program was:" >&5
3538 sed 's/^/| /' conftest.$ac_ext >&5
3539
3540   # Passes both tests.
3541 ac_preproc_ok=:
3542 break
3543 fi
3544
3545 rm -f conftest.err conftest.$ac_ext
3546
3547 done
3548 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3549 rm -f conftest.err conftest.$ac_ext
3550 if $ac_preproc_ok; then
3551   break
3552 fi
3553
3554     done
3555     ac_cv_prog_CPP=$CPP
3556
3557 fi
3558   CPP=$ac_cv_prog_CPP
3559 else
3560   ac_cv_prog_CPP=$CPP
3561 fi
3562 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3563 $as_echo "$CPP" >&6; }
3564 ac_preproc_ok=false
3565 for ac_c_preproc_warn_flag in '' yes
3566 do
3567   # Use a header file that comes with gcc, so configuring glibc
3568   # with a fresh cross-compiler works.
3569   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3570   # <limits.h> exists even on freestanding compilers.
3571   # On the NeXT, cc -E runs the code through the compiler's parser,
3572   # not just through cpp. "Syntax error" is here to catch this case.
3573   cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579 #ifdef __STDC__
3580 # include <limits.h>
3581 #else
3582 # include <assert.h>
3583 #endif
3584                      Syntax error
3585 _ACEOF
3586 if { (ac_try="$ac_cpp conftest.$ac_ext"
3587 case "(($ac_try" in
3588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589   *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3592 $as_echo "$ac_try_echo") >&5
3593   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3594   ac_status=$?
3595   grep -v '^ *+' conftest.er1 >conftest.err
3596   rm -f conftest.er1
3597   cat conftest.err >&5
3598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599   (exit $ac_status); } >/dev/null && {
3600          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3601          test ! -s conftest.err
3602        }; then
3603   :
3604 else
3605   $as_echo "$as_me: failed program was:" >&5
3606 sed 's/^/| /' conftest.$ac_ext >&5
3607
3608   # Broken: fails on valid input.
3609 continue
3610 fi
3611
3612 rm -f conftest.err conftest.$ac_ext
3613
3614   # OK, works on sane cases.  Now check whether nonexistent headers
3615   # can be detected and how.
3616   cat >conftest.$ac_ext <<_ACEOF
3617 /* confdefs.h.  */
3618 _ACEOF
3619 cat confdefs.h >>conftest.$ac_ext
3620 cat >>conftest.$ac_ext <<_ACEOF
3621 /* end confdefs.h.  */
3622 #include <ac_nonexistent.h>
3623 _ACEOF
3624 if { (ac_try="$ac_cpp conftest.$ac_ext"
3625 case "(($ac_try" in
3626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627   *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3630 $as_echo "$ac_try_echo") >&5
3631   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3632   ac_status=$?
3633   grep -v '^ *+' conftest.er1 >conftest.err
3634   rm -f conftest.er1
3635   cat conftest.err >&5
3636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); } >/dev/null && {
3638          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3639          test ! -s conftest.err
3640        }; then
3641   # Broken: success on invalid input.
3642 continue
3643 else
3644   $as_echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647   # Passes both tests.
3648 ac_preproc_ok=:
3649 break
3650 fi
3651
3652 rm -f conftest.err conftest.$ac_ext
3653
3654 done
3655 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3656 rm -f conftest.err conftest.$ac_ext
3657 if $ac_preproc_ok; then
3658   :
3659 else
3660   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3663 See \`config.log' for more details." >&5
3664 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3665 See \`config.log' for more details." >&2;}
3666    { (exit 1); exit 1; }; }; }
3667 fi
3668
3669 ac_ext=c
3670 ac_cpp='$CPP $CPPFLAGS'
3671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
3675
3676  if test -n "$ac_tool_prefix"; then
3677   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3678 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3679 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if test "${ac_cv_prog_RANLIB+set}" = set; then
3682   $as_echo_n "(cached) " >&6
3683 else
3684   if test -n "$RANLIB"; then
3685   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690   IFS=$as_save_IFS
3691   test -z "$as_dir" && as_dir=.
3692   for ac_exec_ext in '' $ac_executable_extensions; do
3693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3694     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3695     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3696     break 2
3697   fi
3698 done
3699 done
3700 IFS=$as_save_IFS
3701
3702 fi
3703 fi
3704 RANLIB=$ac_cv_prog_RANLIB
3705 if test -n "$RANLIB"; then
3706   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3707 $as_echo "$RANLIB" >&6; }
3708 else
3709   { $as_echo "$as_me:$LINENO: result: no" >&5
3710 $as_echo "no" >&6; }
3711 fi
3712
3713
3714 fi
3715 if test -z "$ac_cv_prog_RANLIB"; then
3716   ac_ct_RANLIB=$RANLIB
3717   # Extract the first word of "ranlib", so it can be a program name with args.
3718 set dummy ranlib; ac_word=$2
3719 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3720 $as_echo_n "checking for $ac_word... " >&6; }
3721 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3722   $as_echo_n "(cached) " >&6
3723 else
3724   if test -n "$ac_ct_RANLIB"; then
3725   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3726 else
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3729 do
3730   IFS=$as_save_IFS
3731   test -z "$as_dir" && as_dir=.
3732   for ac_exec_ext in '' $ac_executable_extensions; do
3733   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734     ac_cv_prog_ac_ct_RANLIB="ranlib"
3735     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736     break 2
3737   fi
3738 done
3739 done
3740 IFS=$as_save_IFS
3741
3742 fi
3743 fi
3744 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3745 if test -n "$ac_ct_RANLIB"; then
3746   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3747 $as_echo "$ac_ct_RANLIB" >&6; }
3748 else
3749   { $as_echo "$as_me:$LINENO: result: no" >&5
3750 $as_echo "no" >&6; }
3751 fi
3752
3753   if test "x$ac_ct_RANLIB" = x; then
3754     RANLIB=":"
3755   else
3756     case $cross_compiling:$ac_tool_warned in
3757 yes:)
3758 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3760 ac_tool_warned=yes ;;
3761 esac
3762     RANLIB=$ac_ct_RANLIB
3763   fi
3764 else
3765   RANLIB="$ac_cv_prog_RANLIB"
3766 fi
3767
3768  { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3769 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3770 set x ${MAKE-make}
3771 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3772 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3773   $as_echo_n "(cached) " >&6
3774 else
3775   cat >conftest.make <<\_ACEOF
3776 SHELL = /bin/sh
3777 all:
3778         @echo '@@@%%%=$(MAKE)=@@@%%%'
3779 _ACEOF
3780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3781 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3782   *@@@%%%=?*=@@@%%%*)
3783     eval ac_cv_prog_make_${ac_make}_set=yes;;
3784   *)
3785     eval ac_cv_prog_make_${ac_make}_set=no;;
3786 esac
3787 rm -f conftest.make
3788 fi
3789 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3790   { $as_echo "$as_me:$LINENO: result: yes" >&5
3791 $as_echo "yes" >&6; }
3792   SET_MAKE=
3793 else
3794   { $as_echo "$as_me:$LINENO: result: no" >&5
3795 $as_echo "no" >&6; }
3796   SET_MAKE="MAKE=${MAKE-make}"
3797 fi
3798
3799  # Find a good install program.  We prefer a C program (faster),
3800 # so one script is as good as another.  But avoid the broken or
3801 # incompatible versions:
3802 # SysV /etc/install, /usr/sbin/install
3803 # SunOS /usr/etc/install
3804 # IRIX /sbin/install
3805 # AIX /bin/install
3806 # AmigaOS /C/install, which installs bootblocks on floppy discs
3807 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3808 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3809 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3810 # OS/2's system install, which has a completely different semantic
3811 # ./install, which can be erroneously created by make from ./install.sh.
3812 # Reject install programs that cannot install multiple files.
3813 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3814 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3815 if test -z "$INSTALL"; then
3816 if test "${ac_cv_path_install+set}" = set; then
3817   $as_echo_n "(cached) " >&6
3818 else
3819   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822   IFS=$as_save_IFS
3823   test -z "$as_dir" && as_dir=.
3824   # Account for people who put trailing slashes in PATH elements.
3825 case $as_dir/ in
3826   ./ | .// | /cC/* | \
3827   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3828   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3829   /usr/ucb/* ) ;;
3830   *)
3831     # OSF1 and SCO ODT 3.0 have their own names for install.
3832     # Don't use installbsd from OSF since it installs stuff as root
3833     # by default.
3834     for ac_prog in ginstall scoinst install; do
3835       for ac_exec_ext in '' $ac_executable_extensions; do
3836         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3837           if test $ac_prog = install &&
3838             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3839             # AIX install.  It has an incompatible calling convention.
3840             :
3841           elif test $ac_prog = install &&
3842             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3843             # program-specific install script used by HP pwplus--don't use.
3844             :
3845           else
3846             rm -rf conftest.one conftest.two conftest.dir
3847             echo one > conftest.one
3848             echo two > conftest.two
3849             mkdir conftest.dir
3850             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3851               test -s conftest.one && test -s conftest.two &&
3852               test -s conftest.dir/conftest.one &&
3853               test -s conftest.dir/conftest.two
3854             then
3855               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3856               break 3
3857             fi
3858           fi
3859         fi
3860       done
3861     done
3862     ;;
3863 esac
3864
3865 done
3866 IFS=$as_save_IFS
3867
3868 rm -rf conftest.one conftest.two conftest.dir
3869
3870 fi
3871   if test "${ac_cv_path_install+set}" = set; then
3872     INSTALL=$ac_cv_path_install
3873   else
3874     # As a last resort, use the slow shell script.  Don't cache a
3875     # value for INSTALL within a source directory, because that will
3876     # break other packages using the cache if that directory is
3877     # removed, or if the value is a relative name.
3878     INSTALL=$ac_install_sh
3879   fi
3880 fi
3881 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3882 $as_echo "$INSTALL" >&6; }
3883
3884 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3885 # It thinks the first close brace ends the variable substitution.
3886 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3887
3888 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3889
3890 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3891
3892  { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3893 $as_echo_n "checking whether ln -s works... " >&6; }
3894 LN_S=$as_ln_s
3895 if test "$LN_S" = "ln -s"; then
3896   { $as_echo "$as_me:$LINENO: result: yes" >&5
3897 $as_echo "yes" >&6; }
3898 else
3899   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3900 $as_echo "no, using $LN_S" >&6; }
3901 fi
3902
3903  for ac_prog in gzip uncompress compress
3904 do
3905   # Extract the first word of "$ac_prog", so it can be a program name with args.
3906 set dummy $ac_prog; ac_word=$2
3907 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3908 $as_echo_n "checking for $ac_word... " >&6; }
3909 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3910   $as_echo_n "(cached) " >&6
3911 else
3912   if test -n "$UNCOMPRESS"; then
3913   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3914 else
3915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916 for as_dir in $PATH
3917 do
3918   IFS=$as_save_IFS
3919   test -z "$as_dir" && as_dir=.
3920   for ac_exec_ext in '' $ac_executable_extensions; do
3921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3922     ac_cv_prog_UNCOMPRESS="$ac_prog"
3923     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3924     break 2
3925   fi
3926 done
3927 done
3928 IFS=$as_save_IFS
3929
3930 fi
3931 fi
3932 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3933 if test -n "$UNCOMPRESS"; then
3934   { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3935 $as_echo "$UNCOMPRESS" >&6; }
3936 else
3937   { $as_echo "$as_me:$LINENO: result: no" >&5
3938 $as_echo "no" >&6; }
3939 fi
3940
3941
3942   test -n "$UNCOMPRESS" && break
3943 done
3944
3945
3946
3947 OBJEXT="o"
3948 AREXT=".a"
3949 CXXLIBS="-lstdc++"
3950
3951
3952
3953 if test "x$EXEEXT" = "x.exe";then
3954     OBJEXT="obj"
3955     AREXT=".lib"
3956     CXXLIBS=""
3957 fi
3958
3959
3960
3961
3962 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3963 $as_echo_n "checking host system type... " >&6; }
3964 if test "${ac_cv_host+set}" = set; then
3965   $as_echo_n "(cached) " >&6
3966 else
3967   if test "x$host_alias" = x; then
3968   ac_cv_host=$ac_cv_build
3969 else
3970   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3971     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3972 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3973    { (exit 1); exit 1; }; }
3974 fi
3975
3976 fi
3977 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3978 $as_echo "$ac_cv_host" >&6; }
3979 case $ac_cv_host in
3980 *-*-*) ;;
3981 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3982 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3983    { (exit 1); exit 1; }; };;
3984 esac
3985 host=$ac_cv_host
3986 ac_save_IFS=$IFS; IFS='-'
3987 set x $ac_cv_host
3988 shift
3989 host_cpu=$1
3990 host_vendor=$2
3991 shift; shift
3992 # Remember, the first character of IFS is used to create $*,
3993 # except with old shells:
3994 host_os=$*
3995 IFS=$ac_save_IFS
3996 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3997
3998
3999
4000
4001 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4002 $as_echo_n "checking for target system... " >&6; }
4003 CYGWIN=
4004 MINGW=
4005 case $host_os in
4006     *cygwin* ) CYGWIN=yes;;
4007     *mingw* ) MINGW=yes;;
4008 esac
4009
4010 AR=ar
4011 if test "x$MINGW" = "xyes"; then
4012     #fix for the debian distribution of mingw
4013     if test -x "/usr/i586-mingw32msvc/bin/ar";then
4014         AR="/usr/i586-mingw32msvc/bin/ar"
4015     fi
4016     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4017         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4018     fi
4019     #fix for the gentoo distribution of mingw
4020     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4021         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4022     fi
4023     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4024         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4025     fi
4026     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4027         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4028     fi
4029 fi
4030
4031
4032
4033 if test "x${CYGWIN}" = "xyes"; then
4034
4035 cat >>confdefs.h <<\_ACEOF
4036 #define CYGWIN 1
4037 _ACEOF
4038
4039     { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4040 $as_echo "cygwin" >&6; }
4041 else
4042     if test "x${MINGW}" = "xyes"; then
4043
4044 cat >>confdefs.h <<\_ACEOF
4045 #define MINGW 1
4046 _ACEOF
4047
4048         WIN32=1
4049
4050 cat >>confdefs.h <<\_ACEOF
4051 #define WIN32 1
4052 _ACEOF
4053
4054         LIBS="$LIBS -lws2_32 -lgdi32"
4055         { $as_echo "$as_me:$LINENO: result: mingw" >&5
4056 $as_echo "mingw" >&6; }
4057     else
4058         LINUX=1
4059         export LINUX
4060
4061 cat >>confdefs.h <<\_ACEOF
4062 #define LINUX 1
4063 _ACEOF
4064
4065         { $as_echo "$as_me:$LINENO: result: " >&5
4066 $as_echo "" >&6; }
4067     fi
4068 fi
4069
4070
4071 SLEXT="so"
4072 if test "x${MINGW}" != "xyes"; then
4073     # no mingW
4074
4075 cat >>confdefs.h <<\_ACEOF
4076 #define O_BINARY 0
4077 _ACEOF
4078
4079 else
4080     # mingW
4081     SLEXT="dll"
4082     CXXLIBS=""
4083 fi
4084 export SLEXT
4085
4086
4087
4088 # The following tries to make use of includes and libraries in
4089 # /usr/local, too. Notice: A -I/usr/local/include might break
4090 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4091 # especially on systems which link /usr/local to /usr, so it has yet
4092 # to be seen how useful this is.
4093 if test -d /usr/local/lib; then
4094     LDFLAGS="$LDFLAGS -L/usr/local/lib"
4095 fi
4096 if test -d /usr/local/include; then
4097 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4098 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4099     echo > /dev/null
4100 fi
4101 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4102     # if the user has a special prefix (like /opt), there might also be $prefix/lib
4103     # and $prefix/include, which should be included in our search paths for libraries
4104     # and includes.
4105     LDFLAGS="$LDFLAGS -L${libdir}"
4106     CPPFLAGS="$CPPFLAGS -I${includedir}"
4107     # TODO- test whether gcc still works after this
4108 fi
4109
4110 #Mac OS:
4111 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4112
4113
4114 # this must be done after (I believe) AC_PROG_MAKE_SET
4115 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4116     if test "$MACOSX";then
4117         STRIP=dsymutil
4118     else
4119         STRIP="@echo debug enabled, not stripping "
4120     fi
4121     export STRIP
4122
4123 fi
4124
4125
4126
4127 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4128 $as_echo_n "checking for sin in -lm... " >&6; }
4129 if test "${ac_cv_lib_m_sin+set}" = set; then
4130   $as_echo_n "(cached) " >&6
4131 else
4132   ac_check_lib_save_LIBS=$LIBS
4133 LIBS="-lm  $LIBS"
4134 cat >conftest.$ac_ext <<_ACEOF
4135 /* confdefs.h.  */
4136 _ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h.  */
4140
4141 /* Override any GCC internal prototype to avoid an error.
4142    Use char because int might match the return type of a GCC
4143    builtin and then its argument prototype would still apply.  */
4144 #ifdef __cplusplus
4145 extern "C"
4146 #endif
4147 char sin ();
4148 int
4149 main ()
4150 {
4151 return sin ();
4152   ;
4153   return 0;
4154 }
4155 _ACEOF
4156 rm -f conftest.$ac_objext conftest$ac_exeext
4157 if { (ac_try="$ac_link"
4158 case "(($ac_try" in
4159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160   *) ac_try_echo=$ac_try;;
4161 esac
4162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4163 $as_echo "$ac_try_echo") >&5
4164   (eval "$ac_link") 2>conftest.er1
4165   ac_status=$?
4166   grep -v '^ *+' conftest.er1 >conftest.err
4167   rm -f conftest.er1
4168   cat conftest.err >&5
4169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); } && {
4171          test -z "$ac_c_werror_flag" ||
4172          test ! -s conftest.err
4173        } && test -s conftest$ac_exeext && {
4174          test "$cross_compiling" = yes ||
4175          $as_test_x conftest$ac_exeext
4176        }; then
4177   ac_cv_lib_m_sin=yes
4178 else
4179   $as_echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4181
4182         ac_cv_lib_m_sin=no
4183 fi
4184
4185 rm -rf conftest.dSYM
4186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4187       conftest$ac_exeext conftest.$ac_ext
4188 LIBS=$ac_check_lib_save_LIBS
4189 fi
4190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4191 $as_echo "$ac_cv_lib_m_sin" >&6; }
4192 if test "x$ac_cv_lib_m_sin" = x""yes; then
4193   cat >>confdefs.h <<_ACEOF
4194 #define HAVE_LIBM 1
4195 _ACEOF
4196
4197   LIBS="-lm $LIBS"
4198
4199 else
4200   echo "Error: Math library not found.";
4201  exit;
4202
4203 fi
4204
4205
4206 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4207 $as_echo_n "checking for deflate in -lz... " >&6; }
4208 if test "${ac_cv_lib_z_deflate+set}" = set; then
4209   $as_echo_n "(cached) " >&6
4210 else
4211   ac_check_lib_save_LIBS=$LIBS
4212 LIBS="-lz  $LIBS"
4213 cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h.  */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h.  */
4219
4220 /* Override any GCC internal prototype to avoid an error.
4221    Use char because int might match the return type of a GCC
4222    builtin and then its argument prototype would still apply.  */
4223 #ifdef __cplusplus
4224 extern "C"
4225 #endif
4226 char deflate ();
4227 int
4228 main ()
4229 {
4230 return deflate ();
4231   ;
4232   return 0;
4233 }
4234 _ACEOF
4235 rm -f conftest.$ac_objext conftest$ac_exeext
4236 if { (ac_try="$ac_link"
4237 case "(($ac_try" in
4238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239   *) ac_try_echo=$ac_try;;
4240 esac
4241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4242 $as_echo "$ac_try_echo") >&5
4243   (eval "$ac_link") 2>conftest.er1
4244   ac_status=$?
4245   grep -v '^ *+' conftest.er1 >conftest.err
4246   rm -f conftest.er1
4247   cat conftest.err >&5
4248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249   (exit $ac_status); } && {
4250          test -z "$ac_c_werror_flag" ||
4251          test ! -s conftest.err
4252        } && test -s conftest$ac_exeext && {
4253          test "$cross_compiling" = yes ||
4254          $as_test_x conftest$ac_exeext
4255        }; then
4256   ac_cv_lib_z_deflate=yes
4257 else
4258   $as_echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4260
4261         ac_cv_lib_z_deflate=no
4262 fi
4263
4264 rm -rf conftest.dSYM
4265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4266       conftest$ac_exeext conftest.$ac_ext
4267 LIBS=$ac_check_lib_save_LIBS
4268 fi
4269 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4270 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4271 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4272   cat >>confdefs.h <<_ACEOF
4273 #define HAVE_LIBZ 1
4274 _ACEOF
4275
4276   LIBS="-lz $LIBS"
4277
4278 else
4279   ZLIBMISSING=true
4280 fi
4281
4282
4283 if test "x$ZLIBMISSING" = "xtrue";then
4284     echo
4285     echo "ERROR:"
4286     echo "You need zlib to compile swftools"
4287     echo
4288     exit
4289 fi
4290
4291
4292 { $as_echo "$as_me:$LINENO: checking for PDF_open_file in -lpdf" >&5
4293 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4294 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then
4295   $as_echo_n "(cached) " >&6
4296 else
4297   ac_check_lib_save_LIBS=$LIBS
4298 LIBS="-lpdf  $LIBS"
4299 cat >conftest.$ac_ext <<_ACEOF
4300 /* confdefs.h.  */
4301 _ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h.  */
4305
4306 /* Override any GCC internal prototype to avoid an error.
4307    Use char because int might match the return type of a GCC
4308    builtin and then its argument prototype would still apply.  */
4309 #ifdef __cplusplus
4310 extern "C"
4311 #endif
4312 char PDF_open_file ();
4313 int
4314 main ()
4315 {
4316 return PDF_open_file ();
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 rm -f conftest.$ac_objext conftest$ac_exeext
4322 if { (ac_try="$ac_link"
4323 case "(($ac_try" in
4324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325   *) ac_try_echo=$ac_try;;
4326 esac
4327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4328 $as_echo "$ac_try_echo") >&5
4329   (eval "$ac_link") 2>conftest.er1
4330   ac_status=$?
4331   grep -v '^ *+' conftest.er1 >conftest.err
4332   rm -f conftest.er1
4333   cat conftest.err >&5
4334   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335   (exit $ac_status); } && {
4336          test -z "$ac_c_werror_flag" ||
4337          test ! -s conftest.err
4338        } && test -s conftest$ac_exeext && {
4339          test "$cross_compiling" = yes ||
4340          $as_test_x conftest$ac_exeext
4341        }; then
4342   ac_cv_lib_pdf_PDF_open_file=yes
4343 else
4344   $as_echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4347         ac_cv_lib_pdf_PDF_open_file=no
4348 fi
4349
4350 rm -rf conftest.dSYM
4351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4352       conftest$ac_exeext conftest.$ac_ext
4353 LIBS=$ac_check_lib_save_LIBS
4354 fi
4355 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4356 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4357 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then
4358   cat >>confdefs.h <<_ACEOF
4359 #define HAVE_LIBPDF 1
4360 _ACEOF
4361
4362   LIBS="-lpdf $LIBS"
4363
4364 else
4365   PDFLIBMISSING=true
4366 fi
4367
4368
4369 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4370 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4371 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4372   $as_echo_n "(cached) " >&6
4373 else
4374   ac_check_lib_save_LIBS=$LIBS
4375 LIBS="-ljpeg  $LIBS"
4376 cat >conftest.$ac_ext <<_ACEOF
4377 /* confdefs.h.  */
4378 _ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h.  */
4382
4383 /* Override any GCC internal prototype to avoid an error.
4384    Use char because int might match the return type of a GCC
4385    builtin and then its argument prototype would still apply.  */
4386 #ifdef __cplusplus
4387 extern "C"
4388 #endif
4389 char jpeg_write_raw_data ();
4390 int
4391 main ()
4392 {
4393 return jpeg_write_raw_data ();
4394   ;
4395   return 0;
4396 }
4397 _ACEOF
4398 rm -f conftest.$ac_objext conftest$ac_exeext
4399 if { (ac_try="$ac_link"
4400 case "(($ac_try" in
4401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402   *) ac_try_echo=$ac_try;;
4403 esac
4404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4405 $as_echo "$ac_try_echo") >&5
4406   (eval "$ac_link") 2>conftest.er1
4407   ac_status=$?
4408   grep -v '^ *+' conftest.er1 >conftest.err
4409   rm -f conftest.er1
4410   cat conftest.err >&5
4411   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412   (exit $ac_status); } && {
4413          test -z "$ac_c_werror_flag" ||
4414          test ! -s conftest.err
4415        } && test -s conftest$ac_exeext && {
4416          test "$cross_compiling" = yes ||
4417          $as_test_x conftest$ac_exeext
4418        }; then
4419   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4420 else
4421   $as_echo "$as_me: failed program was:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4423
4424         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4425 fi
4426
4427 rm -rf conftest.dSYM
4428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4429       conftest$ac_exeext conftest.$ac_ext
4430 LIBS=$ac_check_lib_save_LIBS
4431 fi
4432 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4433 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4434 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4435   cat >>confdefs.h <<_ACEOF
4436 #define HAVE_LIBJPEG 1
4437 _ACEOF
4438
4439   LIBS="-ljpeg $LIBS"
4440
4441 else
4442   JPEGLIBMISSING=true
4443 fi
4444
4445
4446 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4447 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4448 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4449   $as_echo_n "(cached) " >&6
4450 else
4451   ac_check_lib_save_LIBS=$LIBS
4452 LIBS="-lungif  $LIBS"
4453 cat >conftest.$ac_ext <<_ACEOF
4454 /* confdefs.h.  */
4455 _ACEOF
4456 cat confdefs.h >>conftest.$ac_ext
4457 cat >>conftest.$ac_ext <<_ACEOF
4458 /* end confdefs.h.  */
4459
4460 /* Override any GCC internal prototype to avoid an error.
4461    Use char because int might match the return type of a GCC
4462    builtin and then its argument prototype would still apply.  */
4463 #ifdef __cplusplus
4464 extern "C"
4465 #endif
4466 char DGifOpen ();
4467 int
4468 main ()
4469 {
4470 return DGifOpen ();
4471   ;
4472   return 0;
4473 }
4474 _ACEOF
4475 rm -f conftest.$ac_objext conftest$ac_exeext
4476 if { (ac_try="$ac_link"
4477 case "(($ac_try" in
4478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4479   *) ac_try_echo=$ac_try;;
4480 esac
4481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4482 $as_echo "$ac_try_echo") >&5
4483   (eval "$ac_link") 2>conftest.er1
4484   ac_status=$?
4485   grep -v '^ *+' conftest.er1 >conftest.err
4486   rm -f conftest.er1
4487   cat conftest.err >&5
4488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489   (exit $ac_status); } && {
4490          test -z "$ac_c_werror_flag" ||
4491          test ! -s conftest.err
4492        } && test -s conftest$ac_exeext && {
4493          test "$cross_compiling" = yes ||
4494          $as_test_x conftest$ac_exeext
4495        }; then
4496   ac_cv_lib_ungif_DGifOpen=yes
4497 else
4498   $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.$ac_ext >&5
4500
4501         ac_cv_lib_ungif_DGifOpen=no
4502 fi
4503
4504 rm -rf conftest.dSYM
4505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4506       conftest$ac_exeext conftest.$ac_ext
4507 LIBS=$ac_check_lib_save_LIBS
4508 fi
4509 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4510 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4511 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4512   cat >>confdefs.h <<_ACEOF
4513 #define HAVE_LIBUNGIF 1
4514 _ACEOF
4515
4516   LIBS="-lungif $LIBS"
4517
4518 else
4519   UNGIFMISSING=true
4520 fi
4521
4522 if test "$UNGIFMISSING";then
4523     UNGIFMISSING=
4524
4525 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4526 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4527 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4528   $as_echo_n "(cached) " >&6
4529 else
4530   ac_check_lib_save_LIBS=$LIBS
4531 LIBS="-lgif  $LIBS"
4532 cat >conftest.$ac_ext <<_ACEOF
4533 /* confdefs.h.  */
4534 _ACEOF
4535 cat confdefs.h >>conftest.$ac_ext
4536 cat >>conftest.$ac_ext <<_ACEOF
4537 /* end confdefs.h.  */
4538
4539 /* Override any GCC internal prototype to avoid an error.
4540    Use char because int might match the return type of a GCC
4541    builtin and then its argument prototype would still apply.  */
4542 #ifdef __cplusplus
4543 extern "C"
4544 #endif
4545 char DGifOpen ();
4546 int
4547 main ()
4548 {
4549 return DGifOpen ();
4550   ;
4551   return 0;
4552 }
4553 _ACEOF
4554 rm -f conftest.$ac_objext conftest$ac_exeext
4555 if { (ac_try="$ac_link"
4556 case "(($ac_try" in
4557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558   *) ac_try_echo=$ac_try;;
4559 esac
4560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4561 $as_echo "$ac_try_echo") >&5
4562   (eval "$ac_link") 2>conftest.er1
4563   ac_status=$?
4564   grep -v '^ *+' conftest.er1 >conftest.err
4565   rm -f conftest.er1
4566   cat conftest.err >&5
4567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568   (exit $ac_status); } && {
4569          test -z "$ac_c_werror_flag" ||
4570          test ! -s conftest.err
4571        } && test -s conftest$ac_exeext && {
4572          test "$cross_compiling" = yes ||
4573          $as_test_x conftest$ac_exeext
4574        }; then
4575   ac_cv_lib_gif_DGifOpen=yes
4576 else
4577   $as_echo "$as_me: failed program was:" >&5
4578 sed 's/^/| /' conftest.$ac_ext >&5
4579
4580         ac_cv_lib_gif_DGifOpen=no
4581 fi
4582
4583 rm -rf conftest.dSYM
4584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4585       conftest$ac_exeext conftest.$ac_ext
4586 LIBS=$ac_check_lib_save_LIBS
4587 fi
4588 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4589 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4590 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4591   cat >>confdefs.h <<_ACEOF
4592 #define HAVE_LIBGIF 1
4593 _ACEOF
4594
4595   LIBS="-lgif $LIBS"
4596
4597 else
4598   UNGIFMISSING=true
4599 fi
4600
4601 fi
4602
4603
4604 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4605 $as_echo_n "checking for byte order... " >&6; }
4606 if test "$cross_compiling" = yes; then
4607   CROSSCOMPILE=1
4608 else
4609   cat >conftest.$ac_ext <<_ACEOF
4610 /* confdefs.h.  */
4611 _ACEOF
4612 cat confdefs.h >>conftest.$ac_ext
4613 cat >>conftest.$ac_ext <<_ACEOF
4614 /* end confdefs.h.  */
4615
4616 int main (int argc, char *argv[])
4617 {
4618     int i = 1;
4619     return *(char*)&i;
4620 }
4621
4622 _ACEOF
4623 rm -f conftest$ac_exeext
4624 if { (ac_try="$ac_link"
4625 case "(($ac_try" in
4626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627   *) ac_try_echo=$ac_try;;
4628 esac
4629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4630 $as_echo "$ac_try_echo") >&5
4631   (eval "$ac_link") 2>&5
4632   ac_status=$?
4633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4635   { (case "(($ac_try" in
4636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4637   *) ac_try_echo=$ac_try;;
4638 esac
4639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4640 $as_echo "$ac_try_echo") >&5
4641   (eval "$ac_try") 2>&5
4642   ac_status=$?
4643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }; }; then
4645   BIGENDIAN=1
4646 else
4647   $as_echo "$as_me: program exited with status $ac_status" >&5
4648 $as_echo "$as_me: failed program was:" >&5
4649 sed 's/^/| /' conftest.$ac_ext >&5
4650
4651 ( exit $ac_status )
4652 LITTLEENDIAN=1
4653 fi
4654 rm -rf conftest.dSYM
4655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4656 fi
4657
4658
4659 export CROSSCOMPILE
4660
4661 if test "x${CROSSCOMPILE}" = "x1"; then
4662  { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4663 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4664  { $as_echo "$as_me:$LINENO: checking target system type" >&5
4665 $as_echo_n "checking target system type... " >&6; }
4666 if test "${ac_cv_target+set}" = set; then
4667   $as_echo_n "(cached) " >&6
4668 else
4669   if test "x$target_alias" = x; then
4670   ac_cv_target=$ac_cv_host
4671 else
4672   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4673     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4674 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4675    { (exit 1); exit 1; }; }
4676 fi
4677
4678 fi
4679 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4680 $as_echo "$ac_cv_target" >&6; }
4681 case $ac_cv_target in
4682 *-*-*) ;;
4683 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4684 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4685    { (exit 1); exit 1; }; };;
4686 esac
4687 target=$ac_cv_target
4688 ac_save_IFS=$IFS; IFS='-'
4689 set x $ac_cv_target
4690 shift
4691 target_cpu=$1
4692 target_vendor=$2
4693 shift; shift
4694 # Remember, the first character of IFS is used to create $*,
4695 # except with old shells:
4696 target_os=$*
4697 IFS=$ac_save_IFS
4698 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4699
4700
4701 # The aliases save the names the user supplied, while $host etc.
4702 # will get canonicalized.
4703 test -n "$target_alias" &&
4704   test "$program_prefix$program_suffix$program_transform_name" = \
4705     NONENONEs,x,x, &&
4706   program_prefix=${target_alias}-
4707  { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4708 $as_echo_n "checking for byte order, try 2... " >&6; }
4709  case "${target}" in
4710   *86* | *-pc-* )
4711      LITTLEENDIAN=1
4712      ;;
4713   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4714      BIGENDIAN=1
4715      ;;
4716  esac
4717 fi
4718
4719 export LITTLEENDIAN
4720 if test "x${LITTLEENDIAN}" = "x1"; then
4721 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4722 $as_echo "little endian" >&6; }
4723 BYTEORDERCHECKOK=1
4724 fi
4725 export BIGENDIAN
4726 if test "x${BIGENDIAN}" = "x1"; then
4727 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4728 $as_echo "big endian" >&6; }
4729 BYTEORDERCHECKOK=1
4730 WORDS_BIGENDIAN=1
4731 export WORDS_BIGENDIAN
4732
4733 cat >>confdefs.h <<\_ACEOF
4734 #define WORDS_BIGENDIAN 1
4735 _ACEOF
4736
4737 fi
4738 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4739 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4740 $as_echo "unknown" >&6; }
4741 echo Byte order could not determined.
4742 exit 1
4743 fi
4744
4745
4746
4747 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4748 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4749 if test "$cross_compiling" = yes; then
4750   CROSSCOMPILE=1
4751 else
4752   cat >conftest.$ac_ext <<_ACEOF
4753 /* confdefs.h.  */
4754 _ACEOF
4755 cat confdefs.h >>conftest.$ac_ext
4756 cat >>conftest.$ac_ext <<_ACEOF
4757 /* end confdefs.h.  */
4758
4759 #include "stdlib.h"
4760 int main (int argc, char*argv[])
4761 {
4762     return system("test `touch config.tmp2`");
4763 }
4764
4765 _ACEOF
4766 rm -f conftest$ac_exeext
4767 if { (ac_try="$ac_link"
4768 case "(($ac_try" in
4769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770   *) ac_try_echo=$ac_try;;
4771 esac
4772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4773 $as_echo "$ac_try_echo") >&5
4774   (eval "$ac_link") 2>&5
4775   ac_status=$?
4776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4778   { (case "(($ac_try" in
4779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780   *) ac_try_echo=$ac_try;;
4781 esac
4782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4783 $as_echo "$ac_try_echo") >&5
4784   (eval "$ac_try") 2>&5
4785   ac_status=$?
4786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; }; then
4788   OK=OK
4789 else
4790   $as_echo "$as_me: program exited with status $ac_status" >&5
4791 $as_echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4793
4794 fi
4795 rm -rf conftest.dSYM
4796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4797 fi
4798
4799
4800
4801 if test "x${OK}" = "xOK";then
4802     test -f config.tmp2 || OK=
4803 fi
4804
4805 if test "x${CROSSCOMPILE}" = "x1";then
4806     OK=no;
4807 fi
4808 if test "x${OK}" = "xOK";then
4809 rm -f config.tmp2
4810 { $as_echo "$as_me:$LINENO: result: yes" >&5
4811 $as_echo "yes" >&6; }
4812 SYSTEM_BACKTICKS=1
4813 export SYSTEM_BACKTICKS
4814
4815 cat >>confdefs.h <<\_ACEOF
4816 #define SYSTEM_BACKTICKS 1
4817 _ACEOF
4818
4819 else
4820 { $as_echo "$as_me:$LINENO: result: no" >&5
4821 $as_echo "no" >&6; }
4822 fi
4823
4824
4825
4826 test "$program_prefix" != NONE &&
4827   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4828 # Use a double $ so make ignores it.
4829 test "$program_suffix" != NONE &&
4830   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4831 # Double any \ or $.
4832 # By default was `s,x,x', remove it if useless.
4833 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4834 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4835
4836
4837  ac_config_headers="$ac_config_headers config.h"
4838
4839
4840
4841
4842
4843
4844 ac_header_dirent=no
4845 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4846   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4847 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4848 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4850   $as_echo_n "(cached) " >&6
4851 else
4852   cat >conftest.$ac_ext <<_ACEOF
4853 /* confdefs.h.  */
4854 _ACEOF
4855 cat confdefs.h >>conftest.$ac_ext
4856 cat >>conftest.$ac_ext <<_ACEOF
4857 /* end confdefs.h.  */
4858 #include <sys/types.h>
4859 #include <$ac_hdr>
4860
4861 int
4862 main ()
4863 {
4864 if ((DIR *) 0)
4865 return 0;
4866   ;
4867   return 0;
4868 }
4869 _ACEOF
4870 rm -f conftest.$ac_objext
4871 if { (ac_try="$ac_compile"
4872 case "(($ac_try" in
4873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4874   *) ac_try_echo=$ac_try;;
4875 esac
4876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4877 $as_echo "$ac_try_echo") >&5
4878   (eval "$ac_compile") 2>conftest.er1
4879   ac_status=$?
4880   grep -v '^ *+' conftest.er1 >conftest.err
4881   rm -f conftest.er1
4882   cat conftest.err >&5
4883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884   (exit $ac_status); } && {
4885          test -z "$ac_c_werror_flag" ||
4886          test ! -s conftest.err
4887        } && test -s conftest.$ac_objext; then
4888   eval "$as_ac_Header=yes"
4889 else
4890   $as_echo "$as_me: failed program was:" >&5
4891 sed 's/^/| /' conftest.$ac_ext >&5
4892
4893         eval "$as_ac_Header=no"
4894 fi
4895
4896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 fi
4898 ac_res=`eval 'as_val=${'$as_ac_Header'}
4899                  $as_echo "$as_val"'`
4900                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4901 $as_echo "$ac_res" >&6; }
4902 as_val=`eval 'as_val=${'$as_ac_Header'}
4903                  $as_echo "$as_val"'`
4904    if test "x$as_val" = x""yes; then
4905   cat >>confdefs.h <<_ACEOF
4906 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4907 _ACEOF
4908
4909 ac_header_dirent=$ac_hdr; break
4910 fi
4911
4912 done
4913 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4914 if test $ac_header_dirent = dirent.h; then
4915   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4916 $as_echo_n "checking for library containing opendir... " >&6; }
4917 if test "${ac_cv_search_opendir+set}" = set; then
4918   $as_echo_n "(cached) " >&6
4919 else
4920   ac_func_search_save_LIBS=$LIBS
4921 cat >conftest.$ac_ext <<_ACEOF
4922 /* confdefs.h.  */
4923 _ACEOF
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h.  */
4927
4928 /* Override any GCC internal prototype to avoid an error.
4929    Use char because int might match the return type of a GCC
4930    builtin and then its argument prototype would still apply.  */
4931 #ifdef __cplusplus
4932 extern "C"
4933 #endif
4934 char opendir ();
4935 int
4936 main ()
4937 {
4938 return opendir ();
4939   ;
4940   return 0;
4941 }
4942 _ACEOF
4943 for ac_lib in '' dir; do
4944   if test -z "$ac_lib"; then
4945     ac_res="none required"
4946   else
4947     ac_res=-l$ac_lib
4948     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4949   fi
4950   rm -f conftest.$ac_objext conftest$ac_exeext
4951 if { (ac_try="$ac_link"
4952 case "(($ac_try" in
4953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4954   *) ac_try_echo=$ac_try;;
4955 esac
4956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4957 $as_echo "$ac_try_echo") >&5
4958   (eval "$ac_link") 2>conftest.er1
4959   ac_status=$?
4960   grep -v '^ *+' conftest.er1 >conftest.err
4961   rm -f conftest.er1
4962   cat conftest.err >&5
4963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964   (exit $ac_status); } && {
4965          test -z "$ac_c_werror_flag" ||
4966          test ! -s conftest.err
4967        } && test -s conftest$ac_exeext && {
4968          test "$cross_compiling" = yes ||
4969          $as_test_x conftest$ac_exeext
4970        }; then
4971   ac_cv_search_opendir=$ac_res
4972 else
4973   $as_echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4975
4976
4977 fi
4978
4979 rm -rf conftest.dSYM
4980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4981       conftest$ac_exeext
4982   if test "${ac_cv_search_opendir+set}" = set; then
4983   break
4984 fi
4985 done
4986 if test "${ac_cv_search_opendir+set}" = set; then
4987   :
4988 else
4989   ac_cv_search_opendir=no
4990 fi
4991 rm conftest.$ac_ext
4992 LIBS=$ac_func_search_save_LIBS
4993 fi
4994 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4995 $as_echo "$ac_cv_search_opendir" >&6; }
4996 ac_res=$ac_cv_search_opendir
4997 if test "$ac_res" != no; then
4998   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4999
5000 fi
5001
5002 else
5003   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5004 $as_echo_n "checking for library containing opendir... " >&6; }
5005 if test "${ac_cv_search_opendir+set}" = set; then
5006   $as_echo_n "(cached) " >&6
5007 else
5008   ac_func_search_save_LIBS=$LIBS
5009 cat >conftest.$ac_ext <<_ACEOF
5010 /* confdefs.h.  */
5011 _ACEOF
5012 cat confdefs.h >>conftest.$ac_ext
5013 cat >>conftest.$ac_ext <<_ACEOF
5014 /* end confdefs.h.  */
5015
5016 /* Override any GCC internal prototype to avoid an error.
5017    Use char because int might match the return type of a GCC
5018    builtin and then its argument prototype would still apply.  */
5019 #ifdef __cplusplus
5020 extern "C"
5021 #endif
5022 char opendir ();
5023 int
5024 main ()
5025 {
5026 return opendir ();
5027   ;
5028   return 0;
5029 }
5030 _ACEOF
5031 for ac_lib in '' x; do
5032   if test -z "$ac_lib"; then
5033     ac_res="none required"
5034   else
5035     ac_res=-l$ac_lib
5036     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5037   fi
5038   rm -f conftest.$ac_objext conftest$ac_exeext
5039 if { (ac_try="$ac_link"
5040 case "(($ac_try" in
5041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5042   *) ac_try_echo=$ac_try;;
5043 esac
5044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5045 $as_echo "$ac_try_echo") >&5
5046   (eval "$ac_link") 2>conftest.er1
5047   ac_status=$?
5048   grep -v '^ *+' conftest.er1 >conftest.err
5049   rm -f conftest.er1
5050   cat conftest.err >&5
5051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); } && {
5053          test -z "$ac_c_werror_flag" ||
5054          test ! -s conftest.err
5055        } && test -s conftest$ac_exeext && {
5056          test "$cross_compiling" = yes ||
5057          $as_test_x conftest$ac_exeext
5058        }; then
5059   ac_cv_search_opendir=$ac_res
5060 else
5061   $as_echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5063
5064
5065 fi
5066
5067 rm -rf conftest.dSYM
5068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5069       conftest$ac_exeext
5070   if test "${ac_cv_search_opendir+set}" = set; then
5071   break
5072 fi
5073 done
5074 if test "${ac_cv_search_opendir+set}" = set; then
5075   :
5076 else
5077   ac_cv_search_opendir=no
5078 fi
5079 rm conftest.$ac_ext
5080 LIBS=$ac_func_search_save_LIBS
5081 fi
5082 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5083 $as_echo "$ac_cv_search_opendir" >&6; }
5084 ac_res=$ac_cv_search_opendir
5085 if test "$ac_res" != no; then
5086   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5087
5088 fi
5089
5090 fi
5091
5092
5093 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5094 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5095 if test "${ac_cv_path_GREP+set}" = set; then
5096   $as_echo_n "(cached) " >&6
5097 else
5098   if test -z "$GREP"; then
5099   ac_path_GREP_found=false
5100   # Loop through the user's path and test for each of PROGNAME-LIST
5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106   for ac_prog in grep ggrep; do
5107     for ac_exec_ext in '' $ac_executable_extensions; do
5108       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5109       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5110 # Check for GNU ac_path_GREP and select it if it is found.
5111   # Check for GNU $ac_path_GREP
5112 case `"$ac_path_GREP" --version 2>&1` in
5113 *GNU*)
5114   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5115 *)
5116   ac_count=0
5117   $as_echo_n 0123456789 >"conftest.in"
5118   while :
5119   do
5120     cat "conftest.in" "conftest.in" >"conftest.tmp"
5121     mv "conftest.tmp" "conftest.in"
5122     cp "conftest.in" "conftest.nl"
5123     $as_echo 'GREP' >> "conftest.nl"
5124     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5125     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5126     ac_count=`expr $ac_count + 1`
5127     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5128       # Best one so far, save it but keep looking for a better one
5129       ac_cv_path_GREP="$ac_path_GREP"
5130       ac_path_GREP_max=$ac_count
5131     fi
5132     # 10*(2^10) chars as input seems more than enough
5133     test $ac_count -gt 10 && break
5134   done
5135   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5136 esac
5137
5138       $ac_path_GREP_found && break 3
5139     done
5140   done
5141 done
5142 IFS=$as_save_IFS
5143   if test -z "$ac_cv_path_GREP"; then
5144     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5145 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5146    { (exit 1); exit 1; }; }
5147   fi
5148 else
5149   ac_cv_path_GREP=$GREP
5150 fi
5151
5152 fi
5153 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5154 $as_echo "$ac_cv_path_GREP" >&6; }
5155  GREP="$ac_cv_path_GREP"
5156
5157
5158 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5159 $as_echo_n "checking for egrep... " >&6; }
5160 if test "${ac_cv_path_EGREP+set}" = set; then
5161   $as_echo_n "(cached) " >&6
5162 else
5163   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5164    then ac_cv_path_EGREP="$GREP -E"
5165    else
5166      if test -z "$EGREP"; then
5167   ac_path_EGREP_found=false
5168   # Loop through the user's path and test for each of PROGNAME-LIST
5169   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5171 do
5172   IFS=$as_save_IFS
5173   test -z "$as_dir" && as_dir=.
5174   for ac_prog in egrep; do
5175     for ac_exec_ext in '' $ac_executable_extensions; do
5176       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5177       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5178 # Check for GNU ac_path_EGREP and select it if it is found.
5179   # Check for GNU $ac_path_EGREP
5180 case `"$ac_path_EGREP" --version 2>&1` in
5181 *GNU*)
5182   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5183 *)
5184   ac_count=0
5185   $as_echo_n 0123456789 >"conftest.in"
5186   while :
5187   do
5188     cat "conftest.in" "conftest.in" >"conftest.tmp"
5189     mv "conftest.tmp" "conftest.in"
5190     cp "conftest.in" "conftest.nl"
5191     $as_echo 'EGREP' >> "conftest.nl"
5192     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194     ac_count=`expr $ac_count + 1`
5195     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5196       # Best one so far, save it but keep looking for a better one
5197       ac_cv_path_EGREP="$ac_path_EGREP"
5198       ac_path_EGREP_max=$ac_count
5199     fi
5200     # 10*(2^10) chars as input seems more than enough
5201     test $ac_count -gt 10 && break
5202   done
5203   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204 esac
5205
5206       $ac_path_EGREP_found && break 3
5207     done
5208   done
5209 done
5210 IFS=$as_save_IFS
5211   if test -z "$ac_cv_path_EGREP"; then
5212     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5213 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5214    { (exit 1); exit 1; }; }
5215   fi
5216 else
5217   ac_cv_path_EGREP=$EGREP
5218 fi
5219
5220    fi
5221 fi
5222 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5223 $as_echo "$ac_cv_path_EGREP" >&6; }
5224  EGREP="$ac_cv_path_EGREP"
5225
5226
5227 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5228 $as_echo_n "checking for ANSI C header files... " >&6; }
5229 if test "${ac_cv_header_stdc+set}" = set; then
5230   $as_echo_n "(cached) " >&6
5231 else
5232   cat >conftest.$ac_ext <<_ACEOF
5233 /* confdefs.h.  */
5234 _ACEOF
5235 cat confdefs.h >>conftest.$ac_ext
5236 cat >>conftest.$ac_ext <<_ACEOF
5237 /* end confdefs.h.  */
5238 #include <stdlib.h>
5239 #include <stdarg.h>
5240 #include <string.h>
5241 #include <float.h>
5242
5243 int
5244 main ()
5245 {
5246
5247   ;
5248   return 0;
5249 }
5250 _ACEOF
5251 rm -f conftest.$ac_objext
5252 if { (ac_try="$ac_compile"
5253 case "(($ac_try" in
5254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5255   *) ac_try_echo=$ac_try;;
5256 esac
5257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5258 $as_echo "$ac_try_echo") >&5
5259   (eval "$ac_compile") 2>conftest.er1
5260   ac_status=$?
5261   grep -v '^ *+' conftest.er1 >conftest.err
5262   rm -f conftest.er1
5263   cat conftest.err >&5
5264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265   (exit $ac_status); } && {
5266          test -z "$ac_c_werror_flag" ||
5267          test ! -s conftest.err
5268        } && test -s conftest.$ac_objext; then
5269   ac_cv_header_stdc=yes
5270 else
5271   $as_echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274         ac_cv_header_stdc=no
5275 fi
5276
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278
5279 if test $ac_cv_header_stdc = yes; then
5280   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5281   cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h.  */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h.  */
5287 #include <string.h>
5288
5289 _ACEOF
5290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5291   $EGREP "memchr" >/dev/null 2>&1; then
5292   :
5293 else
5294   ac_cv_header_stdc=no
5295 fi
5296 rm -f conftest*
5297
5298 fi
5299
5300 if test $ac_cv_header_stdc = yes; then
5301   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5302   cat >conftest.$ac_ext <<_ACEOF
5303 /* confdefs.h.  */
5304 _ACEOF
5305 cat confdefs.h >>conftest.$ac_ext
5306 cat >>conftest.$ac_ext <<_ACEOF
5307 /* end confdefs.h.  */
5308 #include <stdlib.h>
5309
5310 _ACEOF
5311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5312   $EGREP "free" >/dev/null 2>&1; then
5313   :
5314 else
5315   ac_cv_header_stdc=no
5316 fi
5317 rm -f conftest*
5318
5319 fi
5320
5321 if test $ac_cv_header_stdc = yes; then
5322   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5323   if test "$cross_compiling" = yes; then
5324   :
5325 else
5326   cat >conftest.$ac_ext <<_ACEOF
5327 /* confdefs.h.  */
5328 _ACEOF
5329 cat confdefs.h >>conftest.$ac_ext
5330 cat >>conftest.$ac_ext <<_ACEOF
5331 /* end confdefs.h.  */
5332 #include <ctype.h>
5333 #include <stdlib.h>
5334 #if ((' ' & 0x0FF) == 0x020)
5335 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5336 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5337 #else
5338 # define ISLOWER(c) \
5339                    (('a' <= (c) && (c) <= 'i') \
5340                      || ('j' <= (c) && (c) <= 'r') \
5341                      || ('s' <= (c) && (c) <= 'z'))
5342 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5343 #endif
5344
5345 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5346 int
5347 main ()
5348 {
5349   int i;
5350   for (i = 0; i < 256; i++)
5351     if (XOR (islower (i), ISLOWER (i))
5352         || toupper (i) != TOUPPER (i))
5353       return 2;
5354   return 0;
5355 }
5356 _ACEOF
5357 rm -f conftest$ac_exeext
5358 if { (ac_try="$ac_link"
5359 case "(($ac_try" in
5360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5361   *) ac_try_echo=$ac_try;;
5362 esac
5363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5364 $as_echo "$ac_try_echo") >&5
5365   (eval "$ac_link") 2>&5
5366   ac_status=$?
5367   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5369   { (case "(($ac_try" in
5370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371   *) ac_try_echo=$ac_try;;
5372 esac
5373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5374 $as_echo "$ac_try_echo") >&5
5375   (eval "$ac_try") 2>&5
5376   ac_status=$?
5377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); }; }; then
5379   :
5380 else
5381   $as_echo "$as_me: program exited with status $ac_status" >&5
5382 $as_echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385 ( exit $ac_status )
5386 ac_cv_header_stdc=no
5387 fi
5388 rm -rf conftest.dSYM
5389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5390 fi
5391
5392
5393 fi
5394 fi
5395 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5396 $as_echo "$ac_cv_header_stdc" >&6; }
5397 if test $ac_cv_header_stdc = yes; then
5398
5399 cat >>confdefs.h <<\_ACEOF
5400 #define STDC_HEADERS 1
5401 _ACEOF
5402
5403 fi
5404
5405
5406  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5417                   inttypes.h stdint.h unistd.h
5418 do
5419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5420 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5421 $as_echo_n "checking for $ac_header... " >&6; }
5422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5423   $as_echo_n "(cached) " >&6
5424 else
5425   cat >conftest.$ac_ext <<_ACEOF
5426 /* confdefs.h.  */
5427 _ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h.  */
5431 $ac_includes_default
5432
5433 #include <$ac_header>
5434 _ACEOF
5435 rm -f conftest.$ac_objext
5436 if { (ac_try="$ac_compile"
5437 case "(($ac_try" in
5438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439   *) ac_try_echo=$ac_try;;
5440 esac
5441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5442 $as_echo "$ac_try_echo") >&5
5443   (eval "$ac_compile") 2>conftest.er1
5444   ac_status=$?
5445   grep -v '^ *+' conftest.er1 >conftest.err
5446   rm -f conftest.er1
5447   cat conftest.err >&5
5448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5449   (exit $ac_status); } && {
5450          test -z "$ac_c_werror_flag" ||
5451          test ! -s conftest.err
5452        } && test -s conftest.$ac_objext; then
5453   eval "$as_ac_Header=yes"
5454 else
5455   $as_echo "$as_me: failed program was:" >&5
5456 sed 's/^/| /' conftest.$ac_ext >&5
5457
5458         eval "$as_ac_Header=no"
5459 fi
5460
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5462 fi
5463 ac_res=`eval 'as_val=${'$as_ac_Header'}
5464                  $as_echo "$as_val"'`
5465                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5466 $as_echo "$ac_res" >&6; }
5467 as_val=`eval 'as_val=${'$as_ac_Header'}
5468                  $as_echo "$as_val"'`
5469    if test "x$as_val" = x""yes; then
5470   cat >>confdefs.h <<_ACEOF
5471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5472 _ACEOF
5473
5474 fi
5475
5476 done
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499 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
5500 do
5501 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5503   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5504 $as_echo_n "checking for $ac_header... " >&6; }
5505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5506   $as_echo_n "(cached) " >&6
5507 fi
5508 ac_res=`eval 'as_val=${'$as_ac_Header'}
5509                  $as_echo "$as_val"'`
5510                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5511 $as_echo "$ac_res" >&6; }
5512 else
5513   # Is the header compilable?
5514 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5515 $as_echo_n "checking $ac_header usability... " >&6; }
5516 cat >conftest.$ac_ext <<_ACEOF
5517 /* confdefs.h.  */
5518 _ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h.  */
5522 $ac_includes_default
5523 #include <$ac_header>
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5527 case "(($ac_try" in
5528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529   *) ac_try_echo=$ac_try;;
5530 esac
5531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5532 $as_echo "$ac_try_echo") >&5
5533   (eval "$ac_compile") 2>conftest.er1
5534   ac_status=$?
5535   grep -v '^ *+' conftest.er1 >conftest.err
5536   rm -f conftest.er1
5537   cat conftest.err >&5
5538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539   (exit $ac_status); } && {
5540          test -z "$ac_c_werror_flag" ||
5541          test ! -s conftest.err
5542        } && test -s conftest.$ac_objext; then
5543   ac_header_compiler=yes
5544 else
5545   $as_echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548         ac_header_compiler=no
5549 fi
5550
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5553 $as_echo "$ac_header_compiler" >&6; }
5554
5555 # Is the header present?
5556 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5557 $as_echo_n "checking $ac_header presence... " >&6; }
5558 cat >conftest.$ac_ext <<_ACEOF
5559 /* confdefs.h.  */
5560 _ACEOF
5561 cat confdefs.h >>conftest.$ac_ext
5562 cat >>conftest.$ac_ext <<_ACEOF
5563 /* end confdefs.h.  */
5564 #include <$ac_header>
5565 _ACEOF
5566 if { (ac_try="$ac_cpp conftest.$ac_ext"
5567 case "(($ac_try" in
5568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569   *) ac_try_echo=$ac_try;;
5570 esac
5571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5572 $as_echo "$ac_try_echo") >&5
5573   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5574   ac_status=$?
5575   grep -v '^ *+' conftest.er1 >conftest.err
5576   rm -f conftest.er1
5577   cat conftest.err >&5
5578   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); } >/dev/null && {
5580          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5581          test ! -s conftest.err
5582        }; then
5583   ac_header_preproc=yes
5584 else
5585   $as_echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5587
5588   ac_header_preproc=no
5589 fi
5590
5591 rm -f conftest.err conftest.$ac_ext
5592 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5593 $as_echo "$ac_header_preproc" >&6; }
5594
5595 # So?  What about this header?
5596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5597   yes:no: )
5598     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5599 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5600     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5601 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5602     ac_header_preproc=yes
5603     ;;
5604   no:yes:* )
5605     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5606 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5607     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5608 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5609     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5610 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5611     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5612 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5613     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5614 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5615     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5616 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5617
5618     ;;
5619 esac
5620 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5621 $as_echo_n "checking for $ac_header... " >&6; }
5622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5623   $as_echo_n "(cached) " >&6
5624 else
5625   eval "$as_ac_Header=\$ac_header_preproc"
5626 fi
5627 ac_res=`eval 'as_val=${'$as_ac_Header'}
5628                  $as_echo "$as_val"'`
5629                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5630 $as_echo "$ac_res" >&6; }
5631
5632 fi
5633 as_val=`eval 'as_val=${'$as_ac_Header'}
5634                  $as_echo "$as_val"'`
5635    if test "x$as_val" = x""yes; then
5636   cat >>confdefs.h <<_ACEOF
5637 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5638 _ACEOF
5639
5640 fi
5641
5642 done
5643
5644
5645
5646 cat >>confdefs.h <<_ACEOF
5647 #define PACKAGE "$PACKAGE"
5648 _ACEOF
5649
5650
5651 cat >>confdefs.h <<_ACEOF
5652 #define VERSION "$VERSION"
5653 _ACEOF
5654
5655
5656
5657
5658
5659
5660
5661  { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5662 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5663 if test "${ac_cv_c_const+set}" = set; then
5664   $as_echo_n "(cached) " >&6
5665 else
5666   cat >conftest.$ac_ext <<_ACEOF
5667 /* confdefs.h.  */
5668 _ACEOF
5669 cat confdefs.h >>conftest.$ac_ext
5670 cat >>conftest.$ac_ext <<_ACEOF
5671 /* end confdefs.h.  */
5672
5673 int
5674 main ()
5675 {
5676 /* FIXME: Include the comments suggested by Paul. */
5677 #ifndef __cplusplus
5678   /* Ultrix mips cc rejects this.  */
5679   typedef int charset[2];
5680   const charset cs;
5681   /* SunOS 4.1.1 cc rejects this.  */
5682   char const *const *pcpcc;
5683   char **ppc;
5684   /* NEC SVR4.0.2 mips cc rejects this.  */
5685   struct point {int x, y;};
5686   static struct point const zero = {0,0};
5687   /* AIX XL C 1.02.0.0 rejects this.
5688      It does not let you subtract one const X* pointer from another in
5689      an arm of an if-expression whose if-part is not a constant
5690      expression */
5691   const char *g = "string";
5692   pcpcc = &g + (g ? g-g : 0);
5693   /* HPUX 7.0 cc rejects these. */
5694   ++pcpcc;
5695   ppc = (char**) pcpcc;
5696   pcpcc = (char const *const *) ppc;
5697   { /* SCO 3.2v4 cc rejects this.  */
5698     char *t;
5699     char const *s = 0 ? (char *) 0 : (char const *) 0;
5700
5701     *t++ = 0;
5702     if (s) return 0;
5703   }
5704   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5705     int x[] = {25, 17};
5706     const int *foo = &x[0];
5707     ++foo;
5708   }
5709   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5710     typedef const int *iptr;
5711     iptr p = 0;
5712     ++p;
5713   }
5714   { /* AIX XL C 1.02.0.0 rejects this saying
5715        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5716     struct s { int j; const int *ap[3]; };
5717     struct s *b; b->j = 5;
5718   }
5719   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5720     const int foo = 10;
5721     if (!foo) return 0;
5722   }
5723   return !cs[0] && !zero.x;
5724 #endif
5725
5726   ;
5727   return 0;
5728 }
5729 _ACEOF
5730 rm -f conftest.$ac_objext
5731 if { (ac_try="$ac_compile"
5732 case "(($ac_try" in
5733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734   *) ac_try_echo=$ac_try;;
5735 esac
5736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5737 $as_echo "$ac_try_echo") >&5
5738   (eval "$ac_compile") 2>conftest.er1
5739   ac_status=$?
5740   grep -v '^ *+' conftest.er1 >conftest.err
5741   rm -f conftest.er1
5742   cat conftest.err >&5
5743   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744   (exit $ac_status); } && {
5745          test -z "$ac_c_werror_flag" ||
5746          test ! -s conftest.err
5747        } && test -s conftest.$ac_objext; then
5748   ac_cv_c_const=yes
5749 else
5750   $as_echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5752
5753         ac_cv_c_const=no
5754 fi
5755
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 fi
5758 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5759 $as_echo "$ac_cv_c_const" >&6; }
5760 if test $ac_cv_c_const = no; then
5761
5762 cat >>confdefs.h <<\_ACEOF
5763 #define const /**/
5764 _ACEOF
5765
5766 fi
5767
5768  { $as_echo "$as_me:$LINENO: checking for inline" >&5
5769 $as_echo_n "checking for inline... " >&6; }
5770 if test "${ac_cv_c_inline+set}" = set; then
5771   $as_echo_n "(cached) " >&6
5772 else
5773   ac_cv_c_inline=no
5774 for ac_kw in inline __inline__ __inline; do
5775   cat >conftest.$ac_ext <<_ACEOF
5776 /* confdefs.h.  */
5777 _ACEOF
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h.  */
5781 #ifndef __cplusplus
5782 typedef int foo_t;
5783 static $ac_kw foo_t static_foo () {return 0; }
5784 $ac_kw foo_t foo () {return 0; }
5785 #endif
5786
5787 _ACEOF
5788 rm -f conftest.$ac_objext
5789 if { (ac_try="$ac_compile"
5790 case "(($ac_try" in
5791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792   *) ac_try_echo=$ac_try;;
5793 esac
5794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5795 $as_echo "$ac_try_echo") >&5
5796   (eval "$ac_compile") 2>conftest.er1
5797   ac_status=$?
5798   grep -v '^ *+' conftest.er1 >conftest.err
5799   rm -f conftest.er1
5800   cat conftest.err >&5
5801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802   (exit $ac_status); } && {
5803          test -z "$ac_c_werror_flag" ||
5804          test ! -s conftest.err
5805        } && test -s conftest.$ac_objext; then
5806   ac_cv_c_inline=$ac_kw
5807 else
5808   $as_echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5810
5811
5812 fi
5813
5814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5815   test "$ac_cv_c_inline" != no && break
5816 done
5817
5818 fi
5819 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5820 $as_echo "$ac_cv_c_inline" >&6; }
5821
5822
5823 case $ac_cv_c_inline in
5824   inline | yes) ;;
5825   *)
5826     case $ac_cv_c_inline in
5827       no) ac_val=;;
5828       *) ac_val=$ac_cv_c_inline;;
5829     esac
5830     cat >>confdefs.h <<_ACEOF
5831 #ifndef __cplusplus
5832 #define inline $ac_val
5833 #endif
5834 _ACEOF
5835     ;;
5836 esac
5837
5838  { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5839 $as_echo_n "checking for off_t... " >&6; }
5840 if test "${ac_cv_type_off_t+set}" = set; then
5841   $as_echo_n "(cached) " >&6
5842 else
5843   ac_cv_type_off_t=no
5844 cat >conftest.$ac_ext <<_ACEOF
5845 /* confdefs.h.  */
5846 _ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h.  */
5850 $ac_includes_default
5851 int
5852 main ()
5853 {
5854 if (sizeof (off_t))
5855        return 0;
5856   ;
5857   return 0;
5858 }
5859 _ACEOF
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5862 case "(($ac_try" in
5863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864   *) ac_try_echo=$ac_try;;
5865 esac
5866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5867 $as_echo "$ac_try_echo") >&5
5868   (eval "$ac_compile") 2>conftest.er1
5869   ac_status=$?
5870   grep -v '^ *+' conftest.er1 >conftest.err
5871   rm -f conftest.er1
5872   cat conftest.err >&5
5873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); } && {
5875          test -z "$ac_c_werror_flag" ||
5876          test ! -s conftest.err
5877        } && test -s conftest.$ac_objext; then
5878   cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h.  */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h.  */
5884 $ac_includes_default
5885 int
5886 main ()
5887 {
5888 if (sizeof ((off_t)))
5889           return 0;
5890   ;
5891   return 0;
5892 }
5893 _ACEOF
5894 rm -f conftest.$ac_objext
5895 if { (ac_try="$ac_compile"
5896 case "(($ac_try" in
5897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898   *) ac_try_echo=$ac_try;;
5899 esac
5900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5901 $as_echo "$ac_try_echo") >&5
5902   (eval "$ac_compile") 2>conftest.er1
5903   ac_status=$?
5904   grep -v '^ *+' conftest.er1 >conftest.err
5905   rm -f conftest.er1
5906   cat conftest.err >&5
5907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908   (exit $ac_status); } && {
5909          test -z "$ac_c_werror_flag" ||
5910          test ! -s conftest.err
5911        } && test -s conftest.$ac_objext; then
5912   :
5913 else
5914   $as_echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5916
5917         ac_cv_type_off_t=yes
5918 fi
5919
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921 else
5922   $as_echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5924
5925
5926 fi
5927
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929 fi
5930 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5931 $as_echo "$ac_cv_type_off_t" >&6; }
5932 if test "x$ac_cv_type_off_t" = x""yes; then
5933   :
5934 else
5935
5936 cat >>confdefs.h <<_ACEOF
5937 #define off_t long int
5938 _ACEOF
5939
5940 fi
5941
5942  { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5943 $as_echo_n "checking for size_t... " >&6; }
5944 if test "${ac_cv_type_size_t+set}" = set; then
5945   $as_echo_n "(cached) " >&6
5946 else
5947   ac_cv_type_size_t=no
5948 cat >conftest.$ac_ext <<_ACEOF
5949 /* confdefs.h.  */
5950 _ACEOF
5951 cat confdefs.h >>conftest.$ac_ext
5952 cat >>conftest.$ac_ext <<_ACEOF
5953 /* end confdefs.h.  */
5954 $ac_includes_default
5955 int
5956 main ()
5957 {
5958 if (sizeof (size_t))
5959        return 0;
5960   ;
5961   return 0;
5962 }
5963 _ACEOF
5964 rm -f conftest.$ac_objext
5965 if { (ac_try="$ac_compile"
5966 case "(($ac_try" in
5967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5968   *) ac_try_echo=$ac_try;;
5969 esac
5970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5971 $as_echo "$ac_try_echo") >&5
5972   (eval "$ac_compile") 2>conftest.er1
5973   ac_status=$?
5974   grep -v '^ *+' conftest.er1 >conftest.err
5975   rm -f conftest.er1
5976   cat conftest.err >&5
5977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978   (exit $ac_status); } && {
5979          test -z "$ac_c_werror_flag" ||
5980          test ! -s conftest.err
5981        } && test -s conftest.$ac_objext; then
5982   cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h.  */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h.  */
5988 $ac_includes_default
5989 int
5990 main ()
5991 {
5992 if (sizeof ((size_t)))
5993           return 0;
5994   ;
5995   return 0;
5996 }
5997 _ACEOF
5998 rm -f conftest.$ac_objext
5999 if { (ac_try="$ac_compile"
6000 case "(($ac_try" in
6001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6002   *) ac_try_echo=$ac_try;;
6003 esac
6004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6005 $as_echo "$ac_try_echo") >&5
6006   (eval "$ac_compile") 2>conftest.er1
6007   ac_status=$?
6008   grep -v '^ *+' conftest.er1 >conftest.err
6009   rm -f conftest.er1
6010   cat conftest.err >&5
6011   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012   (exit $ac_status); } && {
6013          test -z "$ac_c_werror_flag" ||
6014          test ! -s conftest.err
6015        } && test -s conftest.$ac_objext; then
6016   :
6017 else
6018   $as_echo "$as_me: failed program was:" >&5
6019 sed 's/^/| /' conftest.$ac_ext >&5
6020
6021         ac_cv_type_size_t=yes
6022 fi
6023
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6025 else
6026   $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029
6030 fi
6031
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 fi
6034 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6035 $as_echo "$ac_cv_type_size_t" >&6; }
6036 if test "x$ac_cv_type_size_t" = x""yes; then
6037   :
6038 else
6039
6040 cat >>confdefs.h <<_ACEOF
6041 #define size_t unsigned int
6042 _ACEOF
6043
6044 fi
6045
6046  { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6047 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6048 if test "${ac_cv_struct_tm+set}" = set; then
6049   $as_echo_n "(cached) " >&6
6050 else
6051   cat >conftest.$ac_ext <<_ACEOF
6052 /* confdefs.h.  */
6053 _ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h.  */
6057 #include <sys/types.h>
6058 #include <time.h>
6059
6060 int
6061 main ()
6062 {
6063 struct tm tm;
6064                                      int *p = &tm.tm_sec;
6065                                      return !p;
6066   ;
6067   return 0;
6068 }
6069 _ACEOF
6070 rm -f conftest.$ac_objext
6071 if { (ac_try="$ac_compile"
6072 case "(($ac_try" in
6073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074   *) ac_try_echo=$ac_try;;
6075 esac
6076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6077 $as_echo "$ac_try_echo") >&5
6078   (eval "$ac_compile") 2>conftest.er1
6079   ac_status=$?
6080   grep -v '^ *+' conftest.er1 >conftest.err
6081   rm -f conftest.er1
6082   cat conftest.err >&5
6083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084   (exit $ac_status); } && {
6085          test -z "$ac_c_werror_flag" ||
6086          test ! -s conftest.err
6087        } && test -s conftest.$ac_objext; then
6088   ac_cv_struct_tm=time.h
6089 else
6090   $as_echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093         ac_cv_struct_tm=sys/time.h
6094 fi
6095
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 fi
6098 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6099 $as_echo "$ac_cv_struct_tm" >&6; }
6100 if test $ac_cv_struct_tm = sys/time.h; then
6101
6102 cat >>confdefs.h <<\_ACEOF
6103 #define TM_IN_SYS_TIME 1
6104 _ACEOF
6105
6106 fi
6107
6108  { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6109 $as_echo_n "checking for boolean... " >&6; }
6110 if test "${ac_cv_type_boolean+set}" = set; then
6111   $as_echo_n "(cached) " >&6
6112 else
6113   ac_cv_type_boolean=no
6114 cat >conftest.$ac_ext <<_ACEOF
6115 /* confdefs.h.  */
6116 _ACEOF
6117 cat confdefs.h >>conftest.$ac_ext
6118 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h.  */
6120 $ac_includes_default
6121 int
6122 main ()
6123 {
6124 if (sizeof (boolean))
6125        return 0;
6126   ;
6127   return 0;
6128 }
6129 _ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6132 case "(($ac_try" in
6133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134   *) ac_try_echo=$ac_try;;
6135 esac
6136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6137 $as_echo "$ac_try_echo") >&5
6138   (eval "$ac_compile") 2>conftest.er1
6139   ac_status=$?
6140   grep -v '^ *+' conftest.er1 >conftest.err
6141   rm -f conftest.er1
6142   cat conftest.err >&5
6143   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6144   (exit $ac_status); } && {
6145          test -z "$ac_c_werror_flag" ||
6146          test ! -s conftest.err
6147        } && test -s conftest.$ac_objext; then
6148   cat >conftest.$ac_ext <<_ACEOF
6149 /* confdefs.h.  */
6150 _ACEOF
6151 cat confdefs.h >>conftest.$ac_ext
6152 cat >>conftest.$ac_ext <<_ACEOF
6153 /* end confdefs.h.  */
6154 $ac_includes_default
6155 int
6156 main ()
6157 {
6158 if (sizeof ((boolean)))
6159           return 0;
6160   ;
6161   return 0;
6162 }
6163 _ACEOF
6164 rm -f conftest.$ac_objext
6165 if { (ac_try="$ac_compile"
6166 case "(($ac_try" in
6167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168   *) ac_try_echo=$ac_try;;
6169 esac
6170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6171 $as_echo "$ac_try_echo") >&5
6172   (eval "$ac_compile") 2>conftest.er1
6173   ac_status=$?
6174   grep -v '^ *+' conftest.er1 >conftest.err
6175   rm -f conftest.er1
6176   cat conftest.err >&5
6177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); } && {
6179          test -z "$ac_c_werror_flag" ||
6180          test ! -s conftest.err
6181        } && test -s conftest.$ac_objext; then
6182   :
6183 else
6184   $as_echo "$as_me: failed program was:" >&5
6185 sed 's/^/| /' conftest.$ac_ext >&5
6186
6187         ac_cv_type_boolean=yes
6188 fi
6189
6190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191 else
6192   $as_echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6194
6195
6196 fi
6197
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6199 fi
6200 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6201 $as_echo "$ac_cv_type_boolean" >&6; }
6202 if test "x$ac_cv_type_boolean" = x""yes; then
6203   :
6204 else
6205
6206 cat >>confdefs.h <<_ACEOF
6207 #define boolean int
6208 _ACEOF
6209
6210 fi
6211  #needed for jpeglib
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6228 do
6229 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6230 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6231 $as_echo_n "checking for $ac_func... " >&6; }
6232 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6233   $as_echo_n "(cached) " >&6
6234 else
6235   cat >conftest.$ac_ext <<_ACEOF
6236 /* confdefs.h.  */
6237 _ACEOF
6238 cat confdefs.h >>conftest.$ac_ext
6239 cat >>conftest.$ac_ext <<_ACEOF
6240 /* end confdefs.h.  */
6241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6242    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6243 #define $ac_func innocuous_$ac_func
6244
6245 /* System header to define __stub macros and hopefully few prototypes,
6246     which can conflict with char $ac_func (); below.
6247     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6248     <limits.h> exists even on freestanding compilers.  */
6249
6250 #ifdef __STDC__
6251 # include <limits.h>
6252 #else
6253 # include <assert.h>
6254 #endif
6255
6256 #undef $ac_func
6257
6258 /* Override any GCC internal prototype to avoid an error.
6259    Use char because int might match the return type of a GCC
6260    builtin and then its argument prototype would still apply.  */
6261 #ifdef __cplusplus
6262 extern "C"
6263 #endif
6264 char $ac_func ();
6265 /* The GNU C library defines this for functions which it implements
6266     to always fail with ENOSYS.  Some functions are actually named
6267     something starting with __ and the normal name is an alias.  */
6268 #if defined __stub_$ac_func || defined __stub___$ac_func
6269 choke me
6270 #endif
6271
6272 int
6273 main ()
6274 {
6275 return $ac_func ();
6276   ;
6277   return 0;
6278 }
6279 _ACEOF
6280 rm -f conftest.$ac_objext conftest$ac_exeext
6281 if { (ac_try="$ac_link"
6282 case "(($ac_try" in
6283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284   *) ac_try_echo=$ac_try;;
6285 esac
6286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6287 $as_echo "$ac_try_echo") >&5
6288   (eval "$ac_link") 2>conftest.er1
6289   ac_status=$?
6290   grep -v '^ *+' conftest.er1 >conftest.err
6291   rm -f conftest.er1
6292   cat conftest.err >&5
6293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294   (exit $ac_status); } && {
6295          test -z "$ac_c_werror_flag" ||
6296          test ! -s conftest.err
6297        } && test -s conftest$ac_exeext && {
6298          test "$cross_compiling" = yes ||
6299          $as_test_x conftest$ac_exeext
6300        }; then
6301   eval "$as_ac_var=yes"
6302 else
6303   $as_echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6305
6306         eval "$as_ac_var=no"
6307 fi
6308
6309 rm -rf conftest.dSYM
6310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6311       conftest$ac_exeext conftest.$ac_ext
6312 fi
6313 ac_res=`eval 'as_val=${'$as_ac_var'}
6314                  $as_echo "$as_val"'`
6315                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6316 $as_echo "$ac_res" >&6; }
6317 as_val=`eval 'as_val=${'$as_ac_var'}
6318                  $as_echo "$as_val"'`
6319    if test "x$as_val" = x""yes; then
6320   cat >>confdefs.h <<_ACEOF
6321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6322 _ACEOF
6323
6324 fi
6325 done
6326
6327
6328 # The cast to long int works around a bug in the HP C Compiler
6329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6331 # This bug is HP SR number 8606223364.
6332 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6333 $as_echo_n "checking size of signed char... " >&6; }
6334 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6335   $as_echo_n "(cached) " >&6
6336 else
6337   if test "$cross_compiling" = yes; then
6338   # Depending upon the size, compute the lo and hi bounds.
6339 cat >conftest.$ac_ext <<_ACEOF
6340 /* confdefs.h.  */
6341 _ACEOF
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h.  */
6345 $ac_includes_default
6346 int
6347 main ()
6348 {
6349 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];
6350 test_array [0] = 0
6351
6352   ;
6353   return 0;
6354 }
6355 _ACEOF
6356 rm -f conftest.$ac_objext
6357 if { (ac_try="$ac_compile"
6358 case "(($ac_try" in
6359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6360   *) ac_try_echo=$ac_try;;
6361 esac
6362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6363 $as_echo "$ac_try_echo") >&5
6364   (eval "$ac_compile") 2>conftest.er1
6365   ac_status=$?
6366   grep -v '^ *+' conftest.er1 >conftest.err
6367   rm -f conftest.er1
6368   cat conftest.err >&5
6369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); } && {
6371          test -z "$ac_c_werror_flag" ||
6372          test ! -s conftest.err
6373        } && test -s conftest.$ac_objext; then
6374   ac_lo=0 ac_mid=0
6375   while :; do
6376     cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h.  */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h.  */
6382 $ac_includes_default
6383 int
6384 main ()
6385 {
6386 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6387 test_array [0] = 0
6388
6389   ;
6390   return 0;
6391 }
6392 _ACEOF
6393 rm -f conftest.$ac_objext
6394 if { (ac_try="$ac_compile"
6395 case "(($ac_try" in
6396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397   *) ac_try_echo=$ac_try;;
6398 esac
6399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6400 $as_echo "$ac_try_echo") >&5
6401   (eval "$ac_compile") 2>conftest.er1
6402   ac_status=$?
6403   grep -v '^ *+' conftest.er1 >conftest.err
6404   rm -f conftest.er1
6405   cat conftest.err >&5
6406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407   (exit $ac_status); } && {
6408          test -z "$ac_c_werror_flag" ||
6409          test ! -s conftest.err
6410        } && test -s conftest.$ac_objext; then
6411   ac_hi=$ac_mid; break
6412 else
6413   $as_echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6415
6416         ac_lo=`expr $ac_mid + 1`
6417                         if test $ac_lo -le $ac_mid; then
6418                           ac_lo= ac_hi=
6419                           break
6420                         fi
6421                         ac_mid=`expr 2 '*' $ac_mid + 1`
6422 fi
6423
6424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6425   done
6426 else
6427   $as_echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6429
6430         cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h.  */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h.  */
6436 $ac_includes_default
6437 int
6438 main ()
6439 {
6440 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6441 test_array [0] = 0
6442
6443   ;
6444   return 0;
6445 }
6446 _ACEOF
6447 rm -f conftest.$ac_objext
6448 if { (ac_try="$ac_compile"
6449 case "(($ac_try" in
6450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451   *) ac_try_echo=$ac_try;;
6452 esac
6453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6454 $as_echo "$ac_try_echo") >&5
6455   (eval "$ac_compile") 2>conftest.er1
6456   ac_status=$?
6457   grep -v '^ *+' conftest.er1 >conftest.err
6458   rm -f conftest.er1
6459   cat conftest.err >&5
6460   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461   (exit $ac_status); } && {
6462          test -z "$ac_c_werror_flag" ||
6463          test ! -s conftest.err
6464        } && test -s conftest.$ac_objext; then
6465   ac_hi=-1 ac_mid=-1
6466   while :; do
6467     cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h.  */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h.  */
6473 $ac_includes_default
6474 int
6475 main ()
6476 {
6477 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6478 test_array [0] = 0
6479
6480   ;
6481   return 0;
6482 }
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6486 case "(($ac_try" in
6487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488   *) ac_try_echo=$ac_try;;
6489 esac
6490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6491 $as_echo "$ac_try_echo") >&5
6492   (eval "$ac_compile") 2>conftest.er1
6493   ac_status=$?
6494   grep -v '^ *+' conftest.er1 >conftest.err
6495   rm -f conftest.er1
6496   cat conftest.err >&5
6497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498   (exit $ac_status); } && {
6499          test -z "$ac_c_werror_flag" ||
6500          test ! -s conftest.err
6501        } && test -s conftest.$ac_objext; then
6502   ac_lo=$ac_mid; break
6503 else
6504   $as_echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6506
6507         ac_hi=`expr '(' $ac_mid ')' - 1`
6508                         if test $ac_mid -le $ac_hi; then
6509                           ac_lo= ac_hi=
6510                           break
6511                         fi
6512                         ac_mid=`expr 2 '*' $ac_mid`
6513 fi
6514
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516   done
6517 else
6518   $as_echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6520
6521         ac_lo= ac_hi=
6522 fi
6523
6524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6525 fi
6526
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 # Binary search between lo and hi bounds.
6529 while test "x$ac_lo" != "x$ac_hi"; do
6530   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6531   cat >conftest.$ac_ext <<_ACEOF
6532 /* confdefs.h.  */
6533 _ACEOF
6534 cat confdefs.h >>conftest.$ac_ext
6535 cat >>conftest.$ac_ext <<_ACEOF
6536 /* end confdefs.h.  */
6537 $ac_includes_default
6538 int
6539 main ()
6540 {
6541 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6542 test_array [0] = 0
6543
6544   ;
6545   return 0;
6546 }
6547 _ACEOF
6548 rm -f conftest.$ac_objext
6549 if { (ac_try="$ac_compile"
6550 case "(($ac_try" in
6551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6552   *) ac_try_echo=$ac_try;;
6553 esac
6554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6555 $as_echo "$ac_try_echo") >&5
6556   (eval "$ac_compile") 2>conftest.er1
6557   ac_status=$?
6558   grep -v '^ *+' conftest.er1 >conftest.err
6559   rm -f conftest.er1
6560   cat conftest.err >&5
6561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6562   (exit $ac_status); } && {
6563          test -z "$ac_c_werror_flag" ||
6564          test ! -s conftest.err
6565        } && test -s conftest.$ac_objext; then
6566   ac_hi=$ac_mid
6567 else
6568   $as_echo "$as_me: failed program was:" >&5
6569 sed 's/^/| /' conftest.$ac_ext >&5
6570
6571         ac_lo=`expr '(' $ac_mid ')' + 1`
6572 fi
6573
6574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6575 done
6576 case $ac_lo in
6577 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6578 '') if test "$ac_cv_type_signed_char" = yes; then
6579      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6581 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6582 See \`config.log' for more details." >&5
6583 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6584 See \`config.log' for more details." >&2;}
6585    { (exit 77); exit 77; }; }; }
6586    else
6587      ac_cv_sizeof_signed_char=0
6588    fi ;;
6589 esac
6590 else
6591   cat >conftest.$ac_ext <<_ACEOF
6592 /* confdefs.h.  */
6593 _ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h.  */
6597 $ac_includes_default
6598 static long int longval () { return (long int) (sizeof (signed char)); }
6599 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6600 #include <stdio.h>
6601 #include <stdlib.h>
6602 int
6603 main ()
6604 {
6605
6606   FILE *f = fopen ("conftest.val", "w");
6607   if (! f)
6608     return 1;
6609   if (((long int) (sizeof (signed char))) < 0)
6610     {
6611       long int i = longval ();
6612       if (i != ((long int) (sizeof (signed char))))
6613         return 1;
6614       fprintf (f, "%ld", i);
6615     }
6616   else
6617     {
6618       unsigned long int i = ulongval ();
6619       if (i != ((long int) (sizeof (signed char))))
6620         return 1;
6621       fprintf (f, "%lu", i);
6622     }
6623   /* Do not output a trailing newline, as this causes \r\n confusion
6624      on some platforms.  */
6625   return ferror (f) || fclose (f) != 0;
6626
6627   ;
6628   return 0;
6629 }
6630 _ACEOF
6631 rm -f conftest$ac_exeext
6632 if { (ac_try="$ac_link"
6633 case "(($ac_try" in
6634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6635   *) ac_try_echo=$ac_try;;
6636 esac
6637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6638 $as_echo "$ac_try_echo") >&5
6639   (eval "$ac_link") 2>&5
6640   ac_status=$?
6641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6643   { (case "(($ac_try" in
6644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6645   *) ac_try_echo=$ac_try;;
6646 esac
6647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6648 $as_echo "$ac_try_echo") >&5
6649   (eval "$ac_try") 2>&5
6650   ac_status=$?
6651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652   (exit $ac_status); }; }; then
6653   ac_cv_sizeof_signed_char=`cat conftest.val`
6654 else
6655   $as_echo "$as_me: program exited with status $ac_status" >&5
6656 $as_echo "$as_me: failed program was:" >&5
6657 sed 's/^/| /' conftest.$ac_ext >&5
6658
6659 ( exit $ac_status )
6660 if test "$ac_cv_type_signed_char" = yes; then
6661      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6663 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6664 See \`config.log' for more details." >&5
6665 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6666 See \`config.log' for more details." >&2;}
6667    { (exit 77); exit 77; }; }; }
6668    else
6669      ac_cv_sizeof_signed_char=0
6670    fi
6671 fi
6672 rm -rf conftest.dSYM
6673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6674 fi
6675 rm -f conftest.val
6676 fi
6677 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6678 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6679
6680
6681
6682 cat >>confdefs.h <<_ACEOF
6683 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6684 _ACEOF
6685
6686
6687 # The cast to long int works around a bug in the HP C Compiler
6688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6690 # This bug is HP SR number 8606223364.
6691 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6692 $as_echo_n "checking size of signed short... " >&6; }
6693 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6694   $as_echo_n "(cached) " >&6
6695 else
6696   if test "$cross_compiling" = yes; then
6697   # Depending upon the size, compute the lo and hi bounds.
6698 cat >conftest.$ac_ext <<_ACEOF
6699 /* confdefs.h.  */
6700 _ACEOF
6701 cat confdefs.h >>conftest.$ac_ext
6702 cat >>conftest.$ac_ext <<_ACEOF
6703 /* end confdefs.h.  */
6704 $ac_includes_default
6705 int
6706 main ()
6707 {
6708 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6709 test_array [0] = 0
6710
6711   ;
6712   return 0;
6713 }
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (ac_try="$ac_compile"
6717 case "(($ac_try" in
6718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719   *) ac_try_echo=$ac_try;;
6720 esac
6721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6722 $as_echo "$ac_try_echo") >&5
6723   (eval "$ac_compile") 2>conftest.er1
6724   ac_status=$?
6725   grep -v '^ *+' conftest.er1 >conftest.err
6726   rm -f conftest.er1
6727   cat conftest.err >&5
6728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729   (exit $ac_status); } && {
6730          test -z "$ac_c_werror_flag" ||
6731          test ! -s conftest.err
6732        } && test -s conftest.$ac_objext; then
6733   ac_lo=0 ac_mid=0
6734   while :; do
6735     cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h.  */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h.  */
6741 $ac_includes_default
6742 int
6743 main ()
6744 {
6745 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6746 test_array [0] = 0
6747
6748   ;
6749   return 0;
6750 }
6751 _ACEOF
6752 rm -f conftest.$ac_objext
6753 if { (ac_try="$ac_compile"
6754 case "(($ac_try" in
6755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6756   *) ac_try_echo=$ac_try;;
6757 esac
6758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6759 $as_echo "$ac_try_echo") >&5
6760   (eval "$ac_compile") 2>conftest.er1
6761   ac_status=$?
6762   grep -v '^ *+' conftest.er1 >conftest.err
6763   rm -f conftest.er1
6764   cat conftest.err >&5
6765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766   (exit $ac_status); } && {
6767          test -z "$ac_c_werror_flag" ||
6768          test ! -s conftest.err
6769        } && test -s conftest.$ac_objext; then
6770   ac_hi=$ac_mid; break
6771 else
6772   $as_echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6774
6775         ac_lo=`expr $ac_mid + 1`
6776                         if test $ac_lo -le $ac_mid; then
6777                           ac_lo= ac_hi=
6778                           break
6779                         fi
6780                         ac_mid=`expr 2 '*' $ac_mid + 1`
6781 fi
6782
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6784   done
6785 else
6786   $as_echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789         cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h.  */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h.  */
6795 $ac_includes_default
6796 int
6797 main ()
6798 {
6799 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6800 test_array [0] = 0
6801
6802   ;
6803   return 0;
6804 }
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (ac_try="$ac_compile"
6808 case "(($ac_try" in
6809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810   *) ac_try_echo=$ac_try;;
6811 esac
6812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6813 $as_echo "$ac_try_echo") >&5
6814   (eval "$ac_compile") 2>conftest.er1
6815   ac_status=$?
6816   grep -v '^ *+' conftest.er1 >conftest.err
6817   rm -f conftest.er1
6818   cat conftest.err >&5
6819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } && {
6821          test -z "$ac_c_werror_flag" ||
6822          test ! -s conftest.err
6823        } && test -s conftest.$ac_objext; then
6824   ac_hi=-1 ac_mid=-1
6825   while :; do
6826     cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h.  */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h.  */
6832 $ac_includes_default
6833 int
6834 main ()
6835 {
6836 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6837 test_array [0] = 0
6838
6839   ;
6840   return 0;
6841 }
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (ac_try="$ac_compile"
6845 case "(($ac_try" in
6846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847   *) ac_try_echo=$ac_try;;
6848 esac
6849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6850 $as_echo "$ac_try_echo") >&5
6851   (eval "$ac_compile") 2>conftest.er1
6852   ac_status=$?
6853   grep -v '^ *+' conftest.er1 >conftest.err
6854   rm -f conftest.er1
6855   cat conftest.err >&5
6856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857   (exit $ac_status); } && {
6858          test -z "$ac_c_werror_flag" ||
6859          test ! -s conftest.err
6860        } && test -s conftest.$ac_objext; then
6861   ac_lo=$ac_mid; break
6862 else
6863   $as_echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6865
6866         ac_hi=`expr '(' $ac_mid ')' - 1`
6867                         if test $ac_mid -le $ac_hi; then
6868                           ac_lo= ac_hi=
6869                           break
6870                         fi
6871                         ac_mid=`expr 2 '*' $ac_mid`
6872 fi
6873
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875   done
6876 else
6877   $as_echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6879
6880         ac_lo= ac_hi=
6881 fi
6882
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 fi
6885
6886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 # Binary search between lo and hi bounds.
6888 while test "x$ac_lo" != "x$ac_hi"; do
6889   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6890   cat >conftest.$ac_ext <<_ACEOF
6891 /* confdefs.h.  */
6892 _ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h.  */
6896 $ac_includes_default
6897 int
6898 main ()
6899 {
6900 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6901 test_array [0] = 0
6902
6903   ;
6904   return 0;
6905 }
6906 _ACEOF
6907 rm -f conftest.$ac_objext
6908 if { (ac_try="$ac_compile"
6909 case "(($ac_try" in
6910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911   *) ac_try_echo=$ac_try;;
6912 esac
6913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6914 $as_echo "$ac_try_echo") >&5
6915   (eval "$ac_compile") 2>conftest.er1
6916   ac_status=$?
6917   grep -v '^ *+' conftest.er1 >conftest.err
6918   rm -f conftest.er1
6919   cat conftest.err >&5
6920   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921   (exit $ac_status); } && {
6922          test -z "$ac_c_werror_flag" ||
6923          test ! -s conftest.err
6924        } && test -s conftest.$ac_objext; then
6925   ac_hi=$ac_mid
6926 else
6927   $as_echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6929
6930         ac_lo=`expr '(' $ac_mid ')' + 1`
6931 fi
6932
6933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 done
6935 case $ac_lo in
6936 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
6937 '') if test "$ac_cv_type_signed_short" = yes; then
6938      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6940 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6941 See \`config.log' for more details." >&5
6942 $as_echo "$as_me: error: cannot compute sizeof (signed short)
6943 See \`config.log' for more details." >&2;}
6944    { (exit 77); exit 77; }; }; }
6945    else
6946      ac_cv_sizeof_signed_short=0
6947    fi ;;
6948 esac
6949 else
6950   cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h.  */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h.  */
6956 $ac_includes_default
6957 static long int longval () { return (long int) (sizeof (signed short)); }
6958 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
6959 #include <stdio.h>
6960 #include <stdlib.h>
6961 int
6962 main ()
6963 {
6964
6965   FILE *f = fopen ("conftest.val", "w");
6966   if (! f)
6967     return 1;
6968   if (((long int) (sizeof (signed short))) < 0)
6969     {
6970       long int i = longval ();
6971       if (i != ((long int) (sizeof (signed short))))
6972         return 1;
6973       fprintf (f, "%ld", i);
6974     }
6975   else
6976     {
6977       unsigned long int i = ulongval ();
6978       if (i != ((long int) (sizeof (signed short))))
6979         return 1;
6980       fprintf (f, "%lu", i);
6981     }
6982   /* Do not output a trailing newline, as this causes \r\n confusion
6983      on some platforms.  */
6984   return ferror (f) || fclose (f) != 0;
6985
6986   ;
6987   return 0;
6988 }
6989 _ACEOF
6990 rm -f conftest$ac_exeext
6991 if { (ac_try="$ac_link"
6992 case "(($ac_try" in
6993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994   *) ac_try_echo=$ac_try;;
6995 esac
6996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6997 $as_echo "$ac_try_echo") >&5
6998   (eval "$ac_link") 2>&5
6999   ac_status=$?
7000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7002   { (case "(($ac_try" in
7003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7004   *) ac_try_echo=$ac_try;;
7005 esac
7006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7007 $as_echo "$ac_try_echo") >&5
7008   (eval "$ac_try") 2>&5
7009   ac_status=$?
7010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011   (exit $ac_status); }; }; then
7012   ac_cv_sizeof_signed_short=`cat conftest.val`
7013 else
7014   $as_echo "$as_me: program exited with status $ac_status" >&5
7015 $as_echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7017
7018 ( exit $ac_status )
7019 if test "$ac_cv_type_signed_short" = yes; then
7020      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7022 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7023 See \`config.log' for more details." >&5
7024 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7025 See \`config.log' for more details." >&2;}
7026    { (exit 77); exit 77; }; }; }
7027    else
7028      ac_cv_sizeof_signed_short=0
7029    fi
7030 fi
7031 rm -rf conftest.dSYM
7032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7033 fi
7034 rm -f conftest.val
7035 fi
7036 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
7037 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
7038
7039
7040
7041 cat >>confdefs.h <<_ACEOF
7042 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
7043 _ACEOF
7044
7045
7046 # The cast to long int works around a bug in the HP C Compiler
7047 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7048 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7049 # This bug is HP SR number 8606223364.
7050 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
7051 $as_echo_n "checking size of signed... " >&6; }
7052 if test "${ac_cv_sizeof_signed+set}" = set; then
7053   $as_echo_n "(cached) " >&6
7054 else
7055   if test "$cross_compiling" = yes; then
7056   # Depending upon the size, compute the lo and hi bounds.
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h.  */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h.  */
7063 $ac_includes_default
7064 int
7065 main ()
7066 {
7067 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
7068 test_array [0] = 0
7069
7070   ;
7071   return 0;
7072 }
7073 _ACEOF
7074 rm -f conftest.$ac_objext
7075 if { (ac_try="$ac_compile"
7076 case "(($ac_try" in
7077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7078   *) ac_try_echo=$ac_try;;
7079 esac
7080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7081 $as_echo "$ac_try_echo") >&5
7082   (eval "$ac_compile") 2>conftest.er1
7083   ac_status=$?
7084   grep -v '^ *+' conftest.er1 >conftest.err
7085   rm -f conftest.er1
7086   cat conftest.err >&5
7087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088   (exit $ac_status); } && {
7089          test -z "$ac_c_werror_flag" ||
7090          test ! -s conftest.err
7091        } && test -s conftest.$ac_objext; then
7092   ac_lo=0 ac_mid=0
7093   while :; do
7094     cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h.  */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h.  */
7100 $ac_includes_default
7101 int
7102 main ()
7103 {
7104 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7105 test_array [0] = 0
7106
7107   ;
7108   return 0;
7109 }
7110 _ACEOF
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7113 case "(($ac_try" in
7114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115   *) ac_try_echo=$ac_try;;
7116 esac
7117 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7118 $as_echo "$ac_try_echo") >&5
7119   (eval "$ac_compile") 2>conftest.er1
7120   ac_status=$?
7121   grep -v '^ *+' conftest.er1 >conftest.err
7122   rm -f conftest.er1
7123   cat conftest.err >&5
7124   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125   (exit $ac_status); } && {
7126          test -z "$ac_c_werror_flag" ||
7127          test ! -s conftest.err
7128        } && test -s conftest.$ac_objext; then
7129   ac_hi=$ac_mid; break
7130 else
7131   $as_echo "$as_me: failed program was:" >&5
7132 sed 's/^/| /' conftest.$ac_ext >&5
7133
7134         ac_lo=`expr $ac_mid + 1`
7135                         if test $ac_lo -le $ac_mid; then
7136                           ac_lo= ac_hi=
7137                           break
7138                         fi
7139                         ac_mid=`expr 2 '*' $ac_mid + 1`
7140 fi
7141
7142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7143   done
7144 else
7145   $as_echo "$as_me: failed program was:" >&5
7146 sed 's/^/| /' conftest.$ac_ext >&5
7147
7148         cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h.  */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h.  */
7154 $ac_includes_default
7155 int
7156 main ()
7157 {
7158 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7159 test_array [0] = 0
7160
7161   ;
7162   return 0;
7163 }
7164 _ACEOF
7165 rm -f conftest.$ac_objext
7166 if { (ac_try="$ac_compile"
7167 case "(($ac_try" in
7168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169   *) ac_try_echo=$ac_try;;
7170 esac
7171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7172 $as_echo "$ac_try_echo") >&5
7173   (eval "$ac_compile") 2>conftest.er1
7174   ac_status=$?
7175   grep -v '^ *+' conftest.er1 >conftest.err
7176   rm -f conftest.er1
7177   cat conftest.err >&5
7178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179   (exit $ac_status); } && {
7180          test -z "$ac_c_werror_flag" ||
7181          test ! -s conftest.err
7182        } && test -s conftest.$ac_objext; then
7183   ac_hi=-1 ac_mid=-1
7184   while :; do
7185     cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h.  */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h.  */
7191 $ac_includes_default
7192 int
7193 main ()
7194 {
7195 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7196 test_array [0] = 0
7197
7198   ;
7199   return 0;
7200 }
7201 _ACEOF
7202 rm -f conftest.$ac_objext
7203 if { (ac_try="$ac_compile"
7204 case "(($ac_try" in
7205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206   *) ac_try_echo=$ac_try;;
7207 esac
7208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7209 $as_echo "$ac_try_echo") >&5
7210   (eval "$ac_compile") 2>conftest.er1
7211   ac_status=$?
7212   grep -v '^ *+' conftest.er1 >conftest.err
7213   rm -f conftest.er1
7214   cat conftest.err >&5
7215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); } && {
7217          test -z "$ac_c_werror_flag" ||
7218          test ! -s conftest.err
7219        } && test -s conftest.$ac_objext; then
7220   ac_lo=$ac_mid; break
7221 else
7222   $as_echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7224
7225         ac_hi=`expr '(' $ac_mid ')' - 1`
7226                         if test $ac_mid -le $ac_hi; then
7227                           ac_lo= ac_hi=
7228                           break
7229                         fi
7230                         ac_mid=`expr 2 '*' $ac_mid`
7231 fi
7232
7233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234   done
7235 else
7236   $as_echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7238
7239         ac_lo= ac_hi=
7240 fi
7241
7242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 fi
7244
7245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 # Binary search between lo and hi bounds.
7247 while test "x$ac_lo" != "x$ac_hi"; do
7248   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7249   cat >conftest.$ac_ext <<_ACEOF
7250 /* confdefs.h.  */
7251 _ACEOF
7252 cat confdefs.h >>conftest.$ac_ext
7253 cat >>conftest.$ac_ext <<_ACEOF
7254 /* end confdefs.h.  */
7255 $ac_includes_default
7256 int
7257 main ()
7258 {
7259 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7260 test_array [0] = 0
7261
7262   ;
7263   return 0;
7264 }
7265 _ACEOF
7266 rm -f conftest.$ac_objext
7267 if { (ac_try="$ac_compile"
7268 case "(($ac_try" in
7269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270   *) ac_try_echo=$ac_try;;
7271 esac
7272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7273 $as_echo "$ac_try_echo") >&5
7274   (eval "$ac_compile") 2>conftest.er1
7275   ac_status=$?
7276   grep -v '^ *+' conftest.er1 >conftest.err
7277   rm -f conftest.er1
7278   cat conftest.err >&5
7279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280   (exit $ac_status); } && {
7281          test -z "$ac_c_werror_flag" ||
7282          test ! -s conftest.err
7283        } && test -s conftest.$ac_objext; then
7284   ac_hi=$ac_mid
7285 else
7286   $as_echo "$as_me: failed program was:" >&5
7287 sed 's/^/| /' conftest.$ac_ext >&5
7288
7289         ac_lo=`expr '(' $ac_mid ')' + 1`
7290 fi
7291
7292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7293 done
7294 case $ac_lo in
7295 ?*) ac_cv_sizeof_signed=$ac_lo;;
7296 '') if test "$ac_cv_type_signed" = yes; then
7297      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7299 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7300 See \`config.log' for more details." >&5
7301 $as_echo "$as_me: error: cannot compute sizeof (signed)
7302 See \`config.log' for more details." >&2;}
7303    { (exit 77); exit 77; }; }; }
7304    else
7305      ac_cv_sizeof_signed=0
7306    fi ;;
7307 esac
7308 else
7309   cat >conftest.$ac_ext <<_ACEOF
7310 /* confdefs.h.  */
7311 _ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h.  */
7315 $ac_includes_default
7316 static long int longval () { return (long int) (sizeof (signed)); }
7317 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7318 #include <stdio.h>
7319 #include <stdlib.h>
7320 int
7321 main ()
7322 {
7323
7324   FILE *f = fopen ("conftest.val", "w");
7325   if (! f)
7326     return 1;
7327   if (((long int) (sizeof (signed))) < 0)
7328     {
7329       long int i = longval ();
7330       if (i != ((long int) (sizeof (signed))))
7331         return 1;
7332       fprintf (f, "%ld", i);
7333     }
7334   else
7335     {
7336       unsigned long int i = ulongval ();
7337       if (i != ((long int) (sizeof (signed))))
7338         return 1;
7339       fprintf (f, "%lu", i);
7340     }
7341   /* Do not output a trailing newline, as this causes \r\n confusion
7342      on some platforms.  */
7343   return ferror (f) || fclose (f) != 0;
7344
7345   ;
7346   return 0;
7347 }
7348 _ACEOF
7349 rm -f conftest$ac_exeext
7350 if { (ac_try="$ac_link"
7351 case "(($ac_try" in
7352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7353   *) ac_try_echo=$ac_try;;
7354 esac
7355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7356 $as_echo "$ac_try_echo") >&5
7357   (eval "$ac_link") 2>&5
7358   ac_status=$?
7359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7360   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7361   { (case "(($ac_try" in
7362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7363   *) ac_try_echo=$ac_try;;
7364 esac
7365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7366 $as_echo "$ac_try_echo") >&5
7367   (eval "$ac_try") 2>&5
7368   ac_status=$?
7369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370   (exit $ac_status); }; }; then
7371   ac_cv_sizeof_signed=`cat conftest.val`
7372 else
7373   $as_echo "$as_me: program exited with status $ac_status" >&5
7374 $as_echo "$as_me: failed program was:" >&5
7375 sed 's/^/| /' conftest.$ac_ext >&5
7376
7377 ( exit $ac_status )
7378 if test "$ac_cv_type_signed" = yes; then
7379      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7381 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7382 See \`config.log' for more details." >&5
7383 $as_echo "$as_me: error: cannot compute sizeof (signed)
7384 See \`config.log' for more details." >&2;}
7385    { (exit 77); exit 77; }; }; }
7386    else
7387      ac_cv_sizeof_signed=0
7388    fi
7389 fi
7390 rm -rf conftest.dSYM
7391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7392 fi
7393 rm -f conftest.val
7394 fi
7395 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7396 $as_echo "$ac_cv_sizeof_signed" >&6; }
7397
7398
7399
7400 cat >>confdefs.h <<_ACEOF
7401 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7402 _ACEOF
7403
7404
7405 # The cast to long int works around a bug in the HP C Compiler
7406 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7407 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7408 # This bug is HP SR number 8606223364.
7409 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7410 $as_echo_n "checking size of signed long long... " >&6; }
7411 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7412   $as_echo_n "(cached) " >&6
7413 else
7414   if test "$cross_compiling" = yes; then
7415   # Depending upon the size, compute the lo and hi bounds.
7416 cat >conftest.$ac_ext <<_ACEOF
7417 /* confdefs.h.  */
7418 _ACEOF
7419 cat confdefs.h >>conftest.$ac_ext
7420 cat >>conftest.$ac_ext <<_ACEOF
7421 /* end confdefs.h.  */
7422 $ac_includes_default
7423 int
7424 main ()
7425 {
7426 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7427 test_array [0] = 0
7428
7429   ;
7430   return 0;
7431 }
7432 _ACEOF
7433 rm -f conftest.$ac_objext
7434 if { (ac_try="$ac_compile"
7435 case "(($ac_try" in
7436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437   *) ac_try_echo=$ac_try;;
7438 esac
7439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7440 $as_echo "$ac_try_echo") >&5
7441   (eval "$ac_compile") 2>conftest.er1
7442   ac_status=$?
7443   grep -v '^ *+' conftest.er1 >conftest.err
7444   rm -f conftest.er1
7445   cat conftest.err >&5
7446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447   (exit $ac_status); } && {
7448          test -z "$ac_c_werror_flag" ||
7449          test ! -s conftest.err
7450        } && test -s conftest.$ac_objext; then
7451   ac_lo=0 ac_mid=0
7452   while :; do
7453     cat >conftest.$ac_ext <<_ACEOF
7454 /* confdefs.h.  */
7455 _ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h.  */
7459 $ac_includes_default
7460 int
7461 main ()
7462 {
7463 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7464 test_array [0] = 0
7465
7466   ;
7467   return 0;
7468 }
7469 _ACEOF
7470 rm -f conftest.$ac_objext
7471 if { (ac_try="$ac_compile"
7472 case "(($ac_try" in
7473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7474   *) ac_try_echo=$ac_try;;
7475 esac
7476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7477 $as_echo "$ac_try_echo") >&5
7478   (eval "$ac_compile") 2>conftest.er1
7479   ac_status=$?
7480   grep -v '^ *+' conftest.er1 >conftest.err
7481   rm -f conftest.er1
7482   cat conftest.err >&5
7483   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484   (exit $ac_status); } && {
7485          test -z "$ac_c_werror_flag" ||
7486          test ! -s conftest.err
7487        } && test -s conftest.$ac_objext; then
7488   ac_hi=$ac_mid; break
7489 else
7490   $as_echo "$as_me: failed program was:" >&5
7491 sed 's/^/| /' conftest.$ac_ext >&5
7492
7493         ac_lo=`expr $ac_mid + 1`
7494                         if test $ac_lo -le $ac_mid; then
7495                           ac_lo= ac_hi=
7496                           break
7497                         fi
7498                         ac_mid=`expr 2 '*' $ac_mid + 1`
7499 fi
7500
7501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7502   done
7503 else
7504   $as_echo "$as_me: failed program was:" >&5
7505 sed 's/^/| /' conftest.$ac_ext >&5
7506
7507         cat >conftest.$ac_ext <<_ACEOF
7508 /* confdefs.h.  */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h.  */
7513 $ac_includes_default
7514 int
7515 main ()
7516 {
7517 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7518 test_array [0] = 0
7519
7520   ;
7521   return 0;
7522 }
7523 _ACEOF
7524 rm -f conftest.$ac_objext
7525 if { (ac_try="$ac_compile"
7526 case "(($ac_try" in
7527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528   *) ac_try_echo=$ac_try;;
7529 esac
7530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7531 $as_echo "$ac_try_echo") >&5
7532   (eval "$ac_compile") 2>conftest.er1
7533   ac_status=$?
7534   grep -v '^ *+' conftest.er1 >conftest.err
7535   rm -f conftest.er1
7536   cat conftest.err >&5
7537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538   (exit $ac_status); } && {
7539          test -z "$ac_c_werror_flag" ||
7540          test ! -s conftest.err
7541        } && test -s conftest.$ac_objext; then
7542   ac_hi=-1 ac_mid=-1
7543   while :; do
7544     cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h.  */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h.  */
7550 $ac_includes_default
7551 int
7552 main ()
7553 {
7554 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7555 test_array [0] = 0
7556
7557   ;
7558   return 0;
7559 }
7560 _ACEOF
7561 rm -f conftest.$ac_objext
7562 if { (ac_try="$ac_compile"
7563 case "(($ac_try" in
7564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565   *) ac_try_echo=$ac_try;;
7566 esac
7567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7568 $as_echo "$ac_try_echo") >&5
7569   (eval "$ac_compile") 2>conftest.er1
7570   ac_status=$?
7571   grep -v '^ *+' conftest.er1 >conftest.err
7572   rm -f conftest.er1
7573   cat conftest.err >&5
7574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575   (exit $ac_status); } && {
7576          test -z "$ac_c_werror_flag" ||
7577          test ! -s conftest.err
7578        } && test -s conftest.$ac_objext; then
7579   ac_lo=$ac_mid; break
7580 else
7581   $as_echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7583
7584         ac_hi=`expr '(' $ac_mid ')' - 1`
7585                         if test $ac_mid -le $ac_hi; then
7586                           ac_lo= ac_hi=
7587                           break
7588                         fi
7589                         ac_mid=`expr 2 '*' $ac_mid`
7590 fi
7591
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593   done
7594 else
7595   $as_echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7597
7598         ac_lo= ac_hi=
7599 fi
7600
7601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7602 fi
7603
7604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 # Binary search between lo and hi bounds.
7606 while test "x$ac_lo" != "x$ac_hi"; do
7607   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7608   cat >conftest.$ac_ext <<_ACEOF
7609 /* confdefs.h.  */
7610 _ACEOF
7611 cat confdefs.h >>conftest.$ac_ext
7612 cat >>conftest.$ac_ext <<_ACEOF
7613 /* end confdefs.h.  */
7614 $ac_includes_default
7615 int
7616 main ()
7617 {
7618 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7619 test_array [0] = 0
7620
7621   ;
7622   return 0;
7623 }
7624 _ACEOF
7625 rm -f conftest.$ac_objext
7626 if { (ac_try="$ac_compile"
7627 case "(($ac_try" in
7628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629   *) ac_try_echo=$ac_try;;
7630 esac
7631 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7632 $as_echo "$ac_try_echo") >&5
7633   (eval "$ac_compile") 2>conftest.er1
7634   ac_status=$?
7635   grep -v '^ *+' conftest.er1 >conftest.err
7636   rm -f conftest.er1
7637   cat conftest.err >&5
7638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639   (exit $ac_status); } && {
7640          test -z "$ac_c_werror_flag" ||
7641          test ! -s conftest.err
7642        } && test -s conftest.$ac_objext; then
7643   ac_hi=$ac_mid
7644 else
7645   $as_echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7647
7648         ac_lo=`expr '(' $ac_mid ')' + 1`
7649 fi
7650
7651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7652 done
7653 case $ac_lo in
7654 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7655 '') if test "$ac_cv_type_signed_long_long" = yes; then
7656      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7658 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7659 See \`config.log' for more details." >&5
7660 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7661 See \`config.log' for more details." >&2;}
7662    { (exit 77); exit 77; }; }; }
7663    else
7664      ac_cv_sizeof_signed_long_long=0
7665    fi ;;
7666 esac
7667 else
7668   cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h.  */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h.  */
7674 $ac_includes_default
7675 static long int longval () { return (long int) (sizeof (signed long long)); }
7676 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7677 #include <stdio.h>
7678 #include <stdlib.h>
7679 int
7680 main ()
7681 {
7682
7683   FILE *f = fopen ("conftest.val", "w");
7684   if (! f)
7685     return 1;
7686   if (((long int) (sizeof (signed long long))) < 0)
7687     {
7688       long int i = longval ();
7689       if (i != ((long int) (sizeof (signed long long))))
7690         return 1;
7691       fprintf (f, "%ld", i);
7692     }
7693   else
7694     {
7695       unsigned long int i = ulongval ();
7696       if (i != ((long int) (sizeof (signed long long))))
7697         return 1;
7698       fprintf (f, "%lu", i);
7699     }
7700   /* Do not output a trailing newline, as this causes \r\n confusion
7701      on some platforms.  */
7702   return ferror (f) || fclose (f) != 0;
7703
7704   ;
7705   return 0;
7706 }
7707 _ACEOF
7708 rm -f conftest$ac_exeext
7709 if { (ac_try="$ac_link"
7710 case "(($ac_try" in
7711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7712   *) ac_try_echo=$ac_try;;
7713 esac
7714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7715 $as_echo "$ac_try_echo") >&5
7716   (eval "$ac_link") 2>&5
7717   ac_status=$?
7718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7720   { (case "(($ac_try" in
7721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7722   *) ac_try_echo=$ac_try;;
7723 esac
7724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7725 $as_echo "$ac_try_echo") >&5
7726   (eval "$ac_try") 2>&5
7727   ac_status=$?
7728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729   (exit $ac_status); }; }; then
7730   ac_cv_sizeof_signed_long_long=`cat conftest.val`
7731 else
7732   $as_echo "$as_me: program exited with status $ac_status" >&5
7733 $as_echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7735
7736 ( exit $ac_status )
7737 if test "$ac_cv_type_signed_long_long" = yes; then
7738      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7740 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7741 See \`config.log' for more details." >&5
7742 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7743 See \`config.log' for more details." >&2;}
7744    { (exit 77); exit 77; }; }; }
7745    else
7746      ac_cv_sizeof_signed_long_long=0
7747    fi
7748 fi
7749 rm -rf conftest.dSYM
7750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7751 fi
7752 rm -f conftest.val
7753 fi
7754 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7755 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7756
7757
7758
7759 cat >>confdefs.h <<_ACEOF
7760 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7761 _ACEOF
7762
7763
7764 # The cast to long int works around a bug in the HP C Compiler
7765 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7766 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7767 # This bug is HP SR number 8606223364.
7768 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7769 $as_echo_n "checking size of void*... " >&6; }
7770 if test "${ac_cv_sizeof_voidp+set}" = set; then
7771   $as_echo_n "(cached) " >&6
7772 else
7773   if test "$cross_compiling" = yes; then
7774   # Depending upon the size, compute the lo and hi bounds.
7775 cat >conftest.$ac_ext <<_ACEOF
7776 /* confdefs.h.  */
7777 _ACEOF
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h.  */
7781 $ac_includes_default
7782 int
7783 main ()
7784 {
7785 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7786 test_array [0] = 0
7787
7788   ;
7789   return 0;
7790 }
7791 _ACEOF
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7794 case "(($ac_try" in
7795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796   *) ac_try_echo=$ac_try;;
7797 esac
7798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7799 $as_echo "$ac_try_echo") >&5
7800   (eval "$ac_compile") 2>conftest.er1
7801   ac_status=$?
7802   grep -v '^ *+' conftest.er1 >conftest.err
7803   rm -f conftest.er1
7804   cat conftest.err >&5
7805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806   (exit $ac_status); } && {
7807          test -z "$ac_c_werror_flag" ||
7808          test ! -s conftest.err
7809        } && test -s conftest.$ac_objext; then
7810   ac_lo=0 ac_mid=0
7811   while :; do
7812     cat >conftest.$ac_ext <<_ACEOF
7813 /* confdefs.h.  */
7814 _ACEOF
7815 cat confdefs.h >>conftest.$ac_ext
7816 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h.  */
7818 $ac_includes_default
7819 int
7820 main ()
7821 {
7822 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7823 test_array [0] = 0
7824
7825   ;
7826   return 0;
7827 }
7828 _ACEOF
7829 rm -f conftest.$ac_objext
7830 if { (ac_try="$ac_compile"
7831 case "(($ac_try" in
7832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7833   *) ac_try_echo=$ac_try;;
7834 esac
7835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7836 $as_echo "$ac_try_echo") >&5
7837   (eval "$ac_compile") 2>conftest.er1
7838   ac_status=$?
7839   grep -v '^ *+' conftest.er1 >conftest.err
7840   rm -f conftest.er1
7841   cat conftest.err >&5
7842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843   (exit $ac_status); } && {
7844          test -z "$ac_c_werror_flag" ||
7845          test ! -s conftest.err
7846        } && test -s conftest.$ac_objext; then
7847   ac_hi=$ac_mid; break
7848 else
7849   $as_echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7851
7852         ac_lo=`expr $ac_mid + 1`
7853                         if test $ac_lo -le $ac_mid; then
7854                           ac_lo= ac_hi=
7855                           break
7856                         fi
7857                         ac_mid=`expr 2 '*' $ac_mid + 1`
7858 fi
7859
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7861   done
7862 else
7863   $as_echo "$as_me: failed program was:" >&5
7864 sed 's/^/| /' conftest.$ac_ext >&5
7865
7866         cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h.  */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h.  */
7872 $ac_includes_default
7873 int
7874 main ()
7875 {
7876 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7877 test_array [0] = 0
7878
7879   ;
7880   return 0;
7881 }
7882 _ACEOF
7883 rm -f conftest.$ac_objext
7884 if { (ac_try="$ac_compile"
7885 case "(($ac_try" in
7886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887   *) ac_try_echo=$ac_try;;
7888 esac
7889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891   (eval "$ac_compile") 2>conftest.er1
7892   ac_status=$?
7893   grep -v '^ *+' conftest.er1 >conftest.err
7894   rm -f conftest.er1
7895   cat conftest.err >&5
7896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897   (exit $ac_status); } && {
7898          test -z "$ac_c_werror_flag" ||
7899          test ! -s conftest.err
7900        } && test -s conftest.$ac_objext; then
7901   ac_hi=-1 ac_mid=-1
7902   while :; do
7903     cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h.  */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h.  */
7909 $ac_includes_default
7910 int
7911 main ()
7912 {
7913 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
7914 test_array [0] = 0
7915
7916   ;
7917   return 0;
7918 }
7919 _ACEOF
7920 rm -f conftest.$ac_objext
7921 if { (ac_try="$ac_compile"
7922 case "(($ac_try" in
7923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924   *) ac_try_echo=$ac_try;;
7925 esac
7926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7927 $as_echo "$ac_try_echo") >&5
7928   (eval "$ac_compile") 2>conftest.er1
7929   ac_status=$?
7930   grep -v '^ *+' conftest.er1 >conftest.err
7931   rm -f conftest.er1
7932   cat conftest.err >&5
7933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934   (exit $ac_status); } && {
7935          test -z "$ac_c_werror_flag" ||
7936          test ! -s conftest.err
7937        } && test -s conftest.$ac_objext; then
7938   ac_lo=$ac_mid; break
7939 else
7940   $as_echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7942
7943         ac_hi=`expr '(' $ac_mid ')' - 1`
7944                         if test $ac_mid -le $ac_hi; then
7945                           ac_lo= ac_hi=
7946                           break
7947                         fi
7948                         ac_mid=`expr 2 '*' $ac_mid`
7949 fi
7950
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952   done
7953 else
7954   $as_echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7956
7957         ac_lo= ac_hi=
7958 fi
7959
7960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7961 fi
7962
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 # Binary search between lo and hi bounds.
7965 while test "x$ac_lo" != "x$ac_hi"; do
7966   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7967   cat >conftest.$ac_ext <<_ACEOF
7968 /* confdefs.h.  */
7969 _ACEOF
7970 cat confdefs.h >>conftest.$ac_ext
7971 cat >>conftest.$ac_ext <<_ACEOF
7972 /* end confdefs.h.  */
7973 $ac_includes_default
7974 int
7975 main ()
7976 {
7977 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7978 test_array [0] = 0
7979
7980   ;
7981   return 0;
7982 }
7983 _ACEOF
7984 rm -f conftest.$ac_objext
7985 if { (ac_try="$ac_compile"
7986 case "(($ac_try" in
7987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988   *) ac_try_echo=$ac_try;;
7989 esac
7990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7991 $as_echo "$ac_try_echo") >&5
7992   (eval "$ac_compile") 2>conftest.er1
7993   ac_status=$?
7994   grep -v '^ *+' conftest.er1 >conftest.err
7995   rm -f conftest.er1
7996   cat conftest.err >&5
7997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998   (exit $ac_status); } && {
7999          test -z "$ac_c_werror_flag" ||
8000          test ! -s conftest.err
8001        } && test -s conftest.$ac_objext; then
8002   ac_hi=$ac_mid
8003 else
8004   $as_echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8006
8007         ac_lo=`expr '(' $ac_mid ')' + 1`
8008 fi
8009
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 done
8012 case $ac_lo in
8013 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8014 '') if test "$ac_cv_type_voidp" = yes; then
8015      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8016 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8017 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8018 See \`config.log' for more details." >&5
8019 $as_echo "$as_me: error: cannot compute sizeof (void*)
8020 See \`config.log' for more details." >&2;}
8021    { (exit 77); exit 77; }; }; }
8022    else
8023      ac_cv_sizeof_voidp=0
8024    fi ;;
8025 esac
8026 else
8027   cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h.  */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h.  */
8033 $ac_includes_default
8034 static long int longval () { return (long int) (sizeof (void*)); }
8035 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
8036 #include <stdio.h>
8037 #include <stdlib.h>
8038 int
8039 main ()
8040 {
8041
8042   FILE *f = fopen ("conftest.val", "w");
8043   if (! f)
8044     return 1;
8045   if (((long int) (sizeof (void*))) < 0)
8046     {
8047       long int i = longval ();
8048       if (i != ((long int) (sizeof (void*))))
8049         return 1;
8050       fprintf (f, "%ld", i);
8051     }
8052   else
8053     {
8054       unsigned long int i = ulongval ();
8055       if (i != ((long int) (sizeof (void*))))
8056         return 1;
8057       fprintf (f, "%lu", i);
8058     }
8059   /* Do not output a trailing newline, as this causes \r\n confusion
8060      on some platforms.  */
8061   return ferror (f) || fclose (f) != 0;
8062
8063   ;
8064   return 0;
8065 }
8066 _ACEOF
8067 rm -f conftest$ac_exeext
8068 if { (ac_try="$ac_link"
8069 case "(($ac_try" in
8070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071   *) ac_try_echo=$ac_try;;
8072 esac
8073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8074 $as_echo "$ac_try_echo") >&5
8075   (eval "$ac_link") 2>&5
8076   ac_status=$?
8077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8079   { (case "(($ac_try" in
8080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081   *) ac_try_echo=$ac_try;;
8082 esac
8083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8084 $as_echo "$ac_try_echo") >&5
8085   (eval "$ac_try") 2>&5
8086   ac_status=$?
8087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); }; }; then
8089   ac_cv_sizeof_voidp=`cat conftest.val`
8090 else
8091   $as_echo "$as_me: program exited with status $ac_status" >&5
8092 $as_echo "$as_me: failed program was:" >&5
8093 sed 's/^/| /' conftest.$ac_ext >&5
8094
8095 ( exit $ac_status )
8096 if test "$ac_cv_type_voidp" = yes; then
8097      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8099 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8100 See \`config.log' for more details." >&5
8101 $as_echo "$as_me: error: cannot compute sizeof (void*)
8102 See \`config.log' for more details." >&2;}
8103    { (exit 77); exit 77; }; }; }
8104    else
8105      ac_cv_sizeof_voidp=0
8106    fi
8107 fi
8108 rm -rf conftest.dSYM
8109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8110 fi
8111 rm -f conftest.val
8112 fi
8113 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8114 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8115
8116
8117
8118 cat >>confdefs.h <<_ACEOF
8119 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8120 _ACEOF
8121
8122
8123
8124
8125
8126 # Extract the first word of "freetype-config", so it can be a program name with args.
8127 set dummy freetype-config; ac_word=$2
8128 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8129 $as_echo_n "checking for $ac_word... " >&6; }
8130 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8131   $as_echo_n "(cached) " >&6
8132 else
8133   case $FREETYPE_CONFIG in
8134   [\\/]* | ?:[\\/]*)
8135   ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8136   ;;
8137   *)
8138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8140 for as_dir in $as_dummy
8141 do
8142   IFS=$as_save_IFS
8143   test -z "$as_dir" && as_dir=.
8144   for ac_exec_ext in '' $ac_executable_extensions; do
8145   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8146     ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8147     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8148     break 2
8149   fi
8150 done
8151 done
8152 IFS=$as_save_IFS
8153
8154   ;;
8155 esac
8156 fi
8157 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8158 if test -n "$FREETYPE_CONFIG"; then
8159   { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8160 $as_echo "$FREETYPE_CONFIG" >&6; }
8161 else
8162   { $as_echo "$as_me:$LINENO: result: no" >&5
8163 $as_echo "no" >&6; }
8164 fi
8165
8166
8167
8168 OLDCPPFLAGS="${CPPFLAGS}"
8169 OLDLIBS="${LIBS}"
8170 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8171     CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8172 else if test -d /usr/include/freetype2; then
8173     CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8174 else if test -d /usr/local/include/freetype2; then
8175     CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8176 fi
8177 fi
8178 fi
8179
8180 if test "x${FREETYPE_CONFIG}" '=' "x";then
8181     # if we didn't find the freetype-config program, we won't
8182     # know where the libs are expected to be. So just blindly
8183     # try to link against them.
8184     { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8185 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8186 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8187   $as_echo_n "(cached) " >&6
8188 else
8189   ac_check_lib_save_LIBS=$LIBS
8190 LIBS="-lfreetype  $LIBS"
8191 cat >conftest.$ac_ext <<_ACEOF
8192 /* confdefs.h.  */
8193 _ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h.  */
8197
8198 /* Override any GCC internal prototype to avoid an error.
8199    Use char because int might match the return type of a GCC
8200    builtin and then its argument prototype would still apply.  */
8201 #ifdef __cplusplus
8202 extern "C"
8203 #endif
8204 char FT_Init_FreeType ();
8205 int
8206 main ()
8207 {
8208 return FT_Init_FreeType ();
8209   ;
8210   return 0;
8211 }
8212 _ACEOF
8213 rm -f conftest.$ac_objext conftest$ac_exeext
8214 if { (ac_try="$ac_link"
8215 case "(($ac_try" in
8216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217   *) ac_try_echo=$ac_try;;
8218 esac
8219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8220 $as_echo "$ac_try_echo") >&5
8221   (eval "$ac_link") 2>conftest.er1
8222   ac_status=$?
8223   grep -v '^ *+' conftest.er1 >conftest.err
8224   rm -f conftest.er1
8225   cat conftest.err >&5
8226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227   (exit $ac_status); } && {
8228          test -z "$ac_c_werror_flag" ||
8229          test ! -s conftest.err
8230        } && test -s conftest$ac_exeext && {
8231          test "$cross_compiling" = yes ||
8232          $as_test_x conftest$ac_exeext
8233        }; then
8234   ac_cv_lib_freetype_FT_Init_FreeType=yes
8235 else
8236   $as_echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8238
8239         ac_cv_lib_freetype_FT_Init_FreeType=no
8240 fi
8241
8242 rm -rf conftest.dSYM
8243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8244       conftest$ac_exeext conftest.$ac_ext
8245 LIBS=$ac_check_lib_save_LIBS
8246 fi
8247 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8248 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8249 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
8250   HAVE_LIB_FREETYPE=1
8251 fi
8252
8253 fi
8254
8255
8256 for ac_header in ft2build.h
8257 do
8258 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8260   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8261 $as_echo_n "checking for $ac_header... " >&6; }
8262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8263   $as_echo_n "(cached) " >&6
8264 fi
8265 ac_res=`eval 'as_val=${'$as_ac_Header'}
8266                  $as_echo "$as_val"'`
8267                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8268 $as_echo "$ac_res" >&6; }
8269 else
8270   # Is the header compilable?
8271 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8272 $as_echo_n "checking $ac_header usability... " >&6; }
8273 cat >conftest.$ac_ext <<_ACEOF
8274 /* confdefs.h.  */
8275 _ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h.  */
8279 $ac_includes_default
8280 #include <$ac_header>
8281 _ACEOF
8282 rm -f conftest.$ac_objext
8283 if { (ac_try="$ac_compile"
8284 case "(($ac_try" in
8285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286   *) ac_try_echo=$ac_try;;
8287 esac
8288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8289 $as_echo "$ac_try_echo") >&5
8290   (eval "$ac_compile") 2>conftest.er1
8291   ac_status=$?
8292   grep -v '^ *+' conftest.er1 >conftest.err
8293   rm -f conftest.er1
8294   cat conftest.err >&5
8295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8296   (exit $ac_status); } && {
8297          test -z "$ac_c_werror_flag" ||
8298          test ! -s conftest.err
8299        } && test -s conftest.$ac_objext; then
8300   ac_header_compiler=yes
8301 else
8302   $as_echo "$as_me: failed program was:" >&5
8303 sed 's/^/| /' conftest.$ac_ext >&5
8304
8305         ac_header_compiler=no
8306 fi
8307
8308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8309 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8310 $as_echo "$ac_header_compiler" >&6; }
8311
8312 # Is the header present?
8313 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8314 $as_echo_n "checking $ac_header presence... " >&6; }
8315 cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h.  */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h.  */
8321 #include <$ac_header>
8322 _ACEOF
8323 if { (ac_try="$ac_cpp conftest.$ac_ext"
8324 case "(($ac_try" in
8325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326   *) ac_try_echo=$ac_try;;
8327 esac
8328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8329 $as_echo "$ac_try_echo") >&5
8330   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8331   ac_status=$?
8332   grep -v '^ *+' conftest.er1 >conftest.err
8333   rm -f conftest.er1
8334   cat conftest.err >&5
8335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336   (exit $ac_status); } >/dev/null && {
8337          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8338          test ! -s conftest.err
8339        }; then
8340   ac_header_preproc=yes
8341 else
8342   $as_echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8344
8345   ac_header_preproc=no
8346 fi
8347
8348 rm -f conftest.err conftest.$ac_ext
8349 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8350 $as_echo "$ac_header_preproc" >&6; }
8351
8352 # So?  What about this header?
8353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8354   yes:no: )
8355     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8356 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8357     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8358 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8359     ac_header_preproc=yes
8360     ;;
8361   no:yes:* )
8362     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8363 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8364     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8365 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8366     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8367 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8368     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8369 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8370     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8371 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8372     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8373 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8374
8375     ;;
8376 esac
8377 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8378 $as_echo_n "checking for $ac_header... " >&6; }
8379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8380   $as_echo_n "(cached) " >&6
8381 else
8382   eval "$as_ac_Header=\$ac_header_preproc"
8383 fi
8384 ac_res=`eval 'as_val=${'$as_ac_Header'}
8385                  $as_echo "$as_val"'`
8386                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8387 $as_echo "$ac_res" >&6; }
8388
8389 fi
8390 as_val=`eval 'as_val=${'$as_ac_Header'}
8391                  $as_echo "$as_val"'`
8392    if test "x$as_val" = x""yes; then
8393   cat >>confdefs.h <<_ACEOF
8394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8395 _ACEOF
8396  HAVE_FT2BUILD_H=1
8397 fi
8398
8399 done
8400
8401 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8402
8403 for ac_header in freetype/freetype.h
8404 do
8405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8407   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8408 $as_echo_n "checking for $ac_header... " >&6; }
8409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8410   $as_echo_n "(cached) " >&6
8411 fi
8412 ac_res=`eval 'as_val=${'$as_ac_Header'}
8413                  $as_echo "$as_val"'`
8414                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8415 $as_echo "$ac_res" >&6; }
8416 else
8417   # Is the header compilable?
8418 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8419 $as_echo_n "checking $ac_header usability... " >&6; }
8420 cat >conftest.$ac_ext <<_ACEOF
8421 /* confdefs.h.  */
8422 _ACEOF
8423 cat confdefs.h >>conftest.$ac_ext
8424 cat >>conftest.$ac_ext <<_ACEOF
8425 /* end confdefs.h.  */
8426 $ac_includes_default
8427 #include <$ac_header>
8428 _ACEOF
8429 rm -f conftest.$ac_objext
8430 if { (ac_try="$ac_compile"
8431 case "(($ac_try" in
8432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8433   *) ac_try_echo=$ac_try;;
8434 esac
8435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8436 $as_echo "$ac_try_echo") >&5
8437   (eval "$ac_compile") 2>conftest.er1
8438   ac_status=$?
8439   grep -v '^ *+' conftest.er1 >conftest.err
8440   rm -f conftest.er1
8441   cat conftest.err >&5
8442   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8443   (exit $ac_status); } && {
8444          test -z "$ac_c_werror_flag" ||
8445          test ! -s conftest.err
8446        } && test -s conftest.$ac_objext; then
8447   ac_header_compiler=yes
8448 else
8449   $as_echo "$as_me: failed program was:" >&5
8450 sed 's/^/| /' conftest.$ac_ext >&5
8451
8452         ac_header_compiler=no
8453 fi
8454
8455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8456 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8457 $as_echo "$ac_header_compiler" >&6; }
8458
8459 # Is the header present?
8460 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8461 $as_echo_n "checking $ac_header presence... " >&6; }
8462 cat >conftest.$ac_ext <<_ACEOF
8463 /* confdefs.h.  */
8464 _ACEOF
8465 cat confdefs.h >>conftest.$ac_ext
8466 cat >>conftest.$ac_ext <<_ACEOF
8467 /* end confdefs.h.  */
8468 #include <$ac_header>
8469 _ACEOF
8470 if { (ac_try="$ac_cpp conftest.$ac_ext"
8471 case "(($ac_try" in
8472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473   *) ac_try_echo=$ac_try;;
8474 esac
8475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8476 $as_echo "$ac_try_echo") >&5
8477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8478   ac_status=$?
8479   grep -v '^ *+' conftest.er1 >conftest.err
8480   rm -f conftest.er1
8481   cat conftest.err >&5
8482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); } >/dev/null && {
8484          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8485          test ! -s conftest.err
8486        }; then
8487   ac_header_preproc=yes
8488 else
8489   $as_echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8491
8492   ac_header_preproc=no
8493 fi
8494
8495 rm -f conftest.err conftest.$ac_ext
8496 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8497 $as_echo "$ac_header_preproc" >&6; }
8498
8499 # So?  What about this header?
8500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8501   yes:no: )
8502     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8503 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8504     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8505 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8506     ac_header_preproc=yes
8507     ;;
8508   no:yes:* )
8509     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8510 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8511     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8512 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8513     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8514 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8515     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8516 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8517     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8518 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8519     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8520 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8521
8522     ;;
8523 esac
8524 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8525 $as_echo_n "checking for $ac_header... " >&6; }
8526 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8527   $as_echo_n "(cached) " >&6
8528 else
8529   eval "$as_ac_Header=\$ac_header_preproc"
8530 fi
8531 ac_res=`eval 'as_val=${'$as_ac_Header'}
8532                  $as_echo "$as_val"'`
8533                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8534 $as_echo "$ac_res" >&6; }
8535
8536 fi
8537 as_val=`eval 'as_val=${'$as_ac_Header'}
8538                  $as_echo "$as_val"'`
8539    if test "x$as_val" = x""yes; then
8540   cat >>confdefs.h <<_ACEOF
8541 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8542 _ACEOF
8543  HAVE_FREETYPE_FREETYPE_H=1
8544 fi
8545
8546 done
8547
8548 fi
8549
8550 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8551         "x${FREETYPE_CONFIG}" '!=' "x";then
8552     if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8553         HAVE_FREETYPE=1
8554     fi
8555     if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8556         HAVE_FREETYPE=1
8557     fi
8558 fi
8559
8560 if test "x${HAVE_FREETYPE}" = "x1"; then
8561     if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8562         LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8563     else
8564         LIBS="$LIBS -lfreetype"
8565     fi
8566
8567     if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8568         HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8569     fi
8570
8571     { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8572 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8573
8574     cat > conftest.c << EOF
8575 $HAVE_FT2BUILD_H_DEFINE
8576
8577 #ifdef HAVE_FT2BUILD_H
8578 #include <ft2build.h>
8579 #include FT_FREETYPE_H
8580 #include FT_GLYPH_H
8581 #include FT_SIZES_H
8582 #include FT_SFNT_NAMES_H
8583 #include FT_TRUETYPE_IDS_H
8584 #include FT_OUTLINE_H
8585 #else
8586 #include <freetype/freetype.h>
8587 #include <freetype/ftglyph.h>
8588 #include <freetype/ftsizes.h>
8589 #include <freetype/ftsnames.h>
8590 #include <freetype/ttnameid.h>
8591 #include <freetype/ftoutln.h>
8592 #endif
8593
8594 int main()
8595 {
8596     FT_Library ftlibrary;
8597     FT_Face face;
8598     FT_Error error;
8599     FT_ULong charcode;
8600     FT_UInt gindex;
8601     FT_Glyph glyph;
8602     FT_BBox bbox;
8603     FT_Matrix matrix;
8604     FT_UInt i;
8605     char* name = 0;
8606     char italic, bold;
8607
8608     FT_Init_FreeType(&ftlibrary);
8609     FT_New_Face(ftlibrary, "filename", 0, &face);
8610     i = face->num_glyphs - 1;
8611     italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8612     bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8613     FT_Get_Postscript_Name(face);
8614     FT_Get_Char_Index(face, 33);
8615     FT_Get_First_Char(face, &i);
8616     FT_Get_Next_Char(face, 33, &i);
8617     if(FT_HAS_GLYPH_NAMES(face)) {
8618         FT_Get_Glyph_Name(face, 33, name, 127);
8619     }
8620     FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8621     FT_Get_Glyph(face->glyph, &glyph);
8622     FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8623     FT_Done_Glyph(glyph);
8624     FT_Done_Face(face);
8625     FT_Done_FreeType(ftlibrary);
8626     return 0;
8627 }
8628 EOF
8629
8630     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8631     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8632         { $as_echo "$as_me:$LINENO: result: yes" >&5
8633 $as_echo "yes" >&6; }
8634
8635 cat >>confdefs.h <<\_ACEOF
8636 #define HAVE_FREETYPE 1
8637 _ACEOF
8638
8639
8640 cat >>confdefs.h <<\_ACEOF
8641 #define HAVE_FREETYPE_FREETYPE_H 1
8642 _ACEOF
8643
8644
8645 cat >>confdefs.h <<\_ACEOF
8646 #define USE_FREETYPE 1
8647 _ACEOF
8648   # for ttf2tp1
8649     else
8650         echo "configure: failed program was:" >&5
8651         cat conftest.c >&5
8652         HAVE_FREETYPE=0
8653         { $as_echo "$as_me:$LINENO: result: no" >&5
8654 $as_echo "no" >&6; }
8655     fi
8656     rm -f conftest*
8657 fi
8658
8659 # if the above didn't work out, reset all changes to the compiler variables.
8660 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8661     CPPFLAGS=$OLDCPPFLAGS
8662     LIBS=$OLDLIBS
8663 fi
8664
8665
8666
8667 OLDCPPFLAGS="${CPPFLAGS}"
8668 OLDLIBS="${LIBS}"
8669
8670 if test -d /usr/include/fontconfig; then
8671     CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8672 fi
8673
8674 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8675 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8676 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8677   $as_echo_n "(cached) " >&6
8678 else
8679   ac_check_lib_save_LIBS=$LIBS
8680 LIBS="-lfontconfig  $LIBS"
8681 cat >conftest.$ac_ext <<_ACEOF
8682 /* confdefs.h.  */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h.  */
8687
8688 /* Override any GCC internal prototype to avoid an error.
8689    Use char because int might match the return type of a GCC
8690    builtin and then its argument prototype would still apply.  */
8691 #ifdef __cplusplus
8692 extern "C"
8693 #endif
8694 char FcInit ();
8695 int
8696 main ()
8697 {
8698 return FcInit ();
8699   ;
8700   return 0;
8701 }
8702 _ACEOF
8703 rm -f conftest.$ac_objext conftest$ac_exeext
8704 if { (ac_try="$ac_link"
8705 case "(($ac_try" in
8706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707   *) ac_try_echo=$ac_try;;
8708 esac
8709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8710 $as_echo "$ac_try_echo") >&5
8711   (eval "$ac_link") 2>conftest.er1
8712   ac_status=$?
8713   grep -v '^ *+' conftest.er1 >conftest.err
8714   rm -f conftest.er1
8715   cat conftest.err >&5
8716   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8717   (exit $ac_status); } && {
8718          test -z "$ac_c_werror_flag" ||
8719          test ! -s conftest.err
8720        } && test -s conftest$ac_exeext && {
8721          test "$cross_compiling" = yes ||
8722          $as_test_x conftest$ac_exeext
8723        }; then
8724   ac_cv_lib_fontconfig_FcInit=yes
8725 else
8726   $as_echo "$as_me: failed program was:" >&5
8727 sed 's/^/| /' conftest.$ac_ext >&5
8728
8729         ac_cv_lib_fontconfig_FcInit=no
8730 fi
8731
8732 rm -rf conftest.dSYM
8733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8734       conftest$ac_exeext conftest.$ac_ext
8735 LIBS=$ac_check_lib_save_LIBS
8736 fi
8737 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8738 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8739 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then
8740   HAVE_LIB_FONTCONFIG=1
8741 fi
8742
8743
8744 for ac_header in fontconfig.h
8745 do
8746 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8748   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8749 $as_echo_n "checking for $ac_header... " >&6; }
8750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8751   $as_echo_n "(cached) " >&6
8752 fi
8753 ac_res=`eval 'as_val=${'$as_ac_Header'}
8754                  $as_echo "$as_val"'`
8755                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8756 $as_echo "$ac_res" >&6; }
8757 else
8758   # Is the header compilable?
8759 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8760 $as_echo_n "checking $ac_header usability... " >&6; }
8761 cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h.  */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h.  */
8767 $ac_includes_default
8768 #include <$ac_header>
8769 _ACEOF
8770 rm -f conftest.$ac_objext
8771 if { (ac_try="$ac_compile"
8772 case "(($ac_try" in
8773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8774   *) ac_try_echo=$ac_try;;
8775 esac
8776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8777 $as_echo "$ac_try_echo") >&5
8778   (eval "$ac_compile") 2>conftest.er1
8779   ac_status=$?
8780   grep -v '^ *+' conftest.er1 >conftest.err
8781   rm -f conftest.er1
8782   cat conftest.err >&5
8783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8784   (exit $ac_status); } && {
8785          test -z "$ac_c_werror_flag" ||
8786          test ! -s conftest.err
8787        } && test -s conftest.$ac_objext; then
8788   ac_header_compiler=yes
8789 else
8790   $as_echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8792
8793         ac_header_compiler=no
8794 fi
8795
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8798 $as_echo "$ac_header_compiler" >&6; }
8799
8800 # Is the header present?
8801 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8802 $as_echo_n "checking $ac_header presence... " >&6; }
8803 cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h.  */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h.  */
8809 #include <$ac_header>
8810 _ACEOF
8811 if { (ac_try="$ac_cpp conftest.$ac_ext"
8812 case "(($ac_try" in
8813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814   *) ac_try_echo=$ac_try;;
8815 esac
8816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8817 $as_echo "$ac_try_echo") >&5
8818   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8819   ac_status=$?
8820   grep -v '^ *+' conftest.er1 >conftest.err
8821   rm -f conftest.er1
8822   cat conftest.err >&5
8823   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824   (exit $ac_status); } >/dev/null && {
8825          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8826          test ! -s conftest.err
8827        }; then
8828   ac_header_preproc=yes
8829 else
8830   $as_echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8832
8833   ac_header_preproc=no
8834 fi
8835
8836 rm -f conftest.err conftest.$ac_ext
8837 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8838 $as_echo "$ac_header_preproc" >&6; }
8839
8840 # So?  What about this header?
8841 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8842   yes:no: )
8843     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8844 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8845     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8846 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8847     ac_header_preproc=yes
8848     ;;
8849   no:yes:* )
8850     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8851 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8852     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
8853 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
8854     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8855 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8856     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
8857 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
8858     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8859 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8860     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8861 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8862
8863     ;;
8864 esac
8865 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8866 $as_echo_n "checking for $ac_header... " >&6; }
8867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8868   $as_echo_n "(cached) " >&6
8869 else
8870   eval "$as_ac_Header=\$ac_header_preproc"
8871 fi
8872 ac_res=`eval 'as_val=${'$as_ac_Header'}
8873                  $as_echo "$as_val"'`
8874                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8875 $as_echo "$ac_res" >&6; }
8876
8877 fi
8878 as_val=`eval 'as_val=${'$as_ac_Header'}
8879                  $as_echo "$as_val"'`
8880    if test "x$as_val" = x""yes; then
8881   cat >>confdefs.h <<_ACEOF
8882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8883 _ACEOF
8884  HAVE_FONTCONFIG_H=1
8885 fi
8886
8887 done
8888
8889
8890 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8891 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8892     HAVE_FONTCONFIG=1
8893 fi
8894 fi
8895
8896 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8897     LIBS="$LIBS -lfontconfig"
8898 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8899 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8900
8901 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8902     #move freetype library to the end of libraries, otherwise fontconfig
8903     #won't compile.
8904     LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8905 fi
8906
8907 cat > conftest.c << EOF
8908 #include <string.h>
8909 #include <fontconfig.h>
8910
8911 int main()
8912 {
8913     FcPattern *pattern, *match;
8914     FcResult result;
8915     FcChar8 *v;
8916     char*s1="abc",*s2="ABC";
8917     strcasecmp(s1,s2);
8918     FcInit();
8919     pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8920     FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8921     FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8922
8923     FcConfig*c = FcConfigCreate();
8924     FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8925     FcConfigBuildFonts(c);
8926     FcConfigSetCurrent(c);
8927
8928     FcFontSet * set =  FcConfigGetFonts(c, FcSetSystem);
8929     FcFontSetDestroy(set);
8930
8931     FcConfigSubstitute(0, pattern, FcMatchPattern);
8932     FcDefaultSubstitute(pattern);
8933     match = FcFontMatch(0, pattern, &result);
8934     FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8935     FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8936     FcPatternPrint(pattern);
8937     FcPatternDestroy(pattern);
8938     FcPatternDestroy(match);
8939     FcFini();
8940     return 0;
8941 }
8942 EOF
8943
8944     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8945     if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8946         { $as_echo "$as_me:$LINENO: result: yes" >&5
8947 $as_echo "yes" >&6; }
8948
8949 cat >>confdefs.h <<\_ACEOF
8950 #define HAVE_FONTCONFIG 1
8951 _ACEOF
8952
8953     else
8954         echo "configure: failed program was:" >&5
8955         cat conftest.c >&5
8956         HAVE_FONTCONFIG=0
8957         { $as_echo "$as_me:$LINENO: result: no" >&5
8958 $as_echo "no" >&6; }
8959     fi
8960     rm -f conftest*
8961 fi
8962
8963 # if the above didn't work out, reset all changes to the compiler variables.
8964 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
8965     CPPFLAGS=$OLDCPPFLAGS
8966     LIBS=$OLDLIBS
8967 fi
8968
8969
8970
8971   OLDCPPFLAGS="${CPPFLAGS}"
8972   OLDLIBS="${LIBS}"
8973
8974   { $as_echo "$as_me:$LINENO: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
8975 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
8976 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then
8977   $as_echo_n "(cached) " >&6
8978 else
8979   ac_check_lib_save_LIBS=$LIBS
8980 LIBS="-lfftw3  $LIBS"
8981 cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h.  */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h.  */
8987
8988 /* Override any GCC internal prototype to avoid an error.
8989    Use char because int might match the return type of a GCC
8990    builtin and then its argument prototype would still apply.  */
8991 #ifdef __cplusplus
8992 extern "C"
8993 #endif
8994 char fftw_plan_dft_r2c_2d ();
8995 int
8996 main ()
8997 {
8998 return fftw_plan_dft_r2c_2d ();
8999   ;
9000   return 0;
9001 }
9002 _ACEOF
9003 rm -f conftest.$ac_objext conftest$ac_exeext
9004 if { (ac_try="$ac_link"
9005 case "(($ac_try" in
9006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9007   *) ac_try_echo=$ac_try;;
9008 esac
9009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9010 $as_echo "$ac_try_echo") >&5
9011   (eval "$ac_link") 2>conftest.er1
9012   ac_status=$?
9013   grep -v '^ *+' conftest.er1 >conftest.err
9014   rm -f conftest.er1
9015   cat conftest.err >&5
9016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017   (exit $ac_status); } && {
9018          test -z "$ac_c_werror_flag" ||
9019          test ! -s conftest.err
9020        } && test -s conftest$ac_exeext && {
9021          test "$cross_compiling" = yes ||
9022          $as_test_x conftest$ac_exeext
9023        }; then
9024   ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
9025 else
9026   $as_echo "$as_me: failed program was:" >&5
9027 sed 's/^/| /' conftest.$ac_ext >&5
9028
9029         ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
9030 fi
9031
9032 rm -rf conftest.dSYM
9033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9034       conftest$ac_exeext conftest.$ac_ext
9035 LIBS=$ac_check_lib_save_LIBS
9036 fi
9037 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
9038 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
9039 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then
9040   HAVE_LIBFFTW3=1
9041 fi
9042
9043
9044 for ac_header in fftw3.h
9045 do
9046 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9048   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9049 $as_echo_n "checking for $ac_header... " >&6; }
9050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9051   $as_echo_n "(cached) " >&6
9052 fi
9053 ac_res=`eval 'as_val=${'$as_ac_Header'}
9054                  $as_echo "$as_val"'`
9055                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9056 $as_echo "$ac_res" >&6; }
9057 else
9058   # Is the header compilable?
9059 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9060 $as_echo_n "checking $ac_header usability... " >&6; }
9061 cat >conftest.$ac_ext <<_ACEOF
9062 /* confdefs.h.  */
9063 _ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h.  */
9067 $ac_includes_default
9068 #include <$ac_header>
9069 _ACEOF
9070 rm -f conftest.$ac_objext
9071 if { (ac_try="$ac_compile"
9072 case "(($ac_try" in
9073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9074   *) ac_try_echo=$ac_try;;
9075 esac
9076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9077 $as_echo "$ac_try_echo") >&5
9078   (eval "$ac_compile") 2>conftest.er1
9079   ac_status=$?
9080   grep -v '^ *+' conftest.er1 >conftest.err
9081   rm -f conftest.er1
9082   cat conftest.err >&5
9083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9084   (exit $ac_status); } && {
9085          test -z "$ac_c_werror_flag" ||
9086          test ! -s conftest.err
9087        } && test -s conftest.$ac_objext; then
9088   ac_header_compiler=yes
9089 else
9090   $as_echo "$as_me: failed program was:" >&5
9091 sed 's/^/| /' conftest.$ac_ext >&5
9092
9093         ac_header_compiler=no
9094 fi
9095
9096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9098 $as_echo "$ac_header_compiler" >&6; }
9099
9100 # Is the header present?
9101 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9102 $as_echo_n "checking $ac_header presence... " >&6; }
9103 cat >conftest.$ac_ext <<_ACEOF
9104 /* confdefs.h.  */
9105 _ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h.  */
9109 #include <$ac_header>
9110 _ACEOF
9111 if { (ac_try="$ac_cpp conftest.$ac_ext"
9112 case "(($ac_try" in
9113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114   *) ac_try_echo=$ac_try;;
9115 esac
9116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9117 $as_echo "$ac_try_echo") >&5
9118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9119   ac_status=$?
9120   grep -v '^ *+' conftest.er1 >conftest.err
9121   rm -f conftest.er1
9122   cat conftest.err >&5
9123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9124   (exit $ac_status); } >/dev/null && {
9125          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9126          test ! -s conftest.err
9127        }; then
9128   ac_header_preproc=yes
9129 else
9130   $as_echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.$ac_ext >&5
9132
9133   ac_header_preproc=no
9134 fi
9135
9136 rm -f conftest.err conftest.$ac_ext
9137 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9138 $as_echo "$ac_header_preproc" >&6; }
9139
9140 # So?  What about this header?
9141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9142   yes:no: )
9143     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9144 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9145     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9146 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9147     ac_header_preproc=yes
9148     ;;
9149   no:yes:* )
9150     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9151 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9152     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9153 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9154     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9155 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9156     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9157 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9158     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9159 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9160     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9161 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9162
9163     ;;
9164 esac
9165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9166 $as_echo_n "checking for $ac_header... " >&6; }
9167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9168   $as_echo_n "(cached) " >&6
9169 else
9170   eval "$as_ac_Header=\$ac_header_preproc"
9171 fi
9172 ac_res=`eval 'as_val=${'$as_ac_Header'}
9173                  $as_echo "$as_val"'`
9174                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9175 $as_echo "$ac_res" >&6; }
9176
9177 fi
9178 as_val=`eval 'as_val=${'$as_ac_Header'}
9179                  $as_echo "$as_val"'`
9180    if test "x$as_val" = x""yes; then
9181   cat >>confdefs.h <<_ACEOF
9182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9183 _ACEOF
9184  HAVE_FFTW3_H=1
9185 fi
9186
9187 done
9188
9189
9190   if test "x${HAVE_LIBFFTW3}" != "x";then
9191     if test "x${HAVE_FFTW3_H}" != "x";then
9192       HAVE_FFTW3=1
9193     fi
9194   fi
9195
9196   if test "x${HAVE_FFTW3}" = "x1"; then
9197     LIBS="$LIBS -lfftw3"
9198     { $as_echo "$as_me:$LINENO: checking whether we can compile the fftw3 test program" >&5
9199 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
9200
9201     cat > conftest.c << EOF
9202     #include <fftw3.h>
9203
9204     int main()
9205     {
9206         char*data = 0;
9207         fftw_plan plan = fftw_plan_dft_2d(600, 800, (fftw_complex*)data, (fftw_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
9208         plan = fftw_plan_dft_r2c_2d(600, 800, (double*)data, (fftw_complex*)data, FFTW_ESTIMATE);
9209         plan = fftw_plan_dft_c2r_2d(600, 800, (fftw_complex*)data, (double*)data, FFTW_ESTIMATE);
9210         fftw_execute(plan);
9211         fftw_destroy_plan(plan);
9212     }
9213 EOF
9214
9215     ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9216     if { (eval echo fftw3.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9217       { $as_echo "$as_me:$LINENO: result: yes" >&5
9218 $as_echo "yes" >&6; }
9219
9220 cat >>confdefs.h <<\_ACEOF
9221 #define HAVE_FFTW3 1
9222 _ACEOF
9223
9224     else
9225       echo "configure: failed program was:" >&5
9226       cat conftest.c >&5
9227       HAVE_FFTW3=0
9228       { $as_echo "$as_me:$LINENO: result: no" >&5
9229 $as_echo "no" >&6; }
9230     fi
9231     rm -f conftest*
9232   fi
9233
9234   # if the above didn't work out, reset all changes to the compiler variables.
9235   if test "x${HAVE_FFTW3}" "!=" "x1"; then
9236       CPPFLAGS=$OLDCPPFLAGS
9237       LIBS=$OLDLIBS
9238   fi
9239
9240
9241 # RFX_CHECK_OPENGL
9242 # if test "$HAVE_OPENGL";then
9243 #     DEVICE_OPENGL='devices/opengl.$(O)'
9244 #     AC_SUBST(DEVICE_OPENGL)
9245 # fi
9246
9247
9248 lame_in_source=
9249 lame_makefile=
9250 if test "x${DISABLE_LAME}" = "xtrue"; then
9251     echo "*" Disabling lame support...
9252 else
9253     # old lame code at lib/lame
9254     if test -f lib/lame/Makefile.in; then
9255         lame_in_source='$(lame_objects)'
9256         lame_makefile="lib/lame/Makefile"
9257         CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9258
9259 cat >>confdefs.h <<\_ACEOF
9260 #define HAVE_LAME 1
9261 _ACEOF
9262
9263     else
9264         if test -d /usr/include/lame; then
9265             CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9266         else
9267             if test -d /usr/local/include/lame; then
9268                 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9269             fi
9270         fi
9271
9272 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9273 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9274 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9275   $as_echo_n "(cached) " >&6
9276 else
9277   ac_check_lib_save_LIBS=$LIBS
9278 LIBS="-lmp3lame  $LIBS"
9279 cat >conftest.$ac_ext <<_ACEOF
9280 /* confdefs.h.  */
9281 _ACEOF
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h.  */
9285
9286 /* Override any GCC internal prototype to avoid an error.
9287    Use char because int might match the return type of a GCC
9288    builtin and then its argument prototype would still apply.  */
9289 #ifdef __cplusplus
9290 extern "C"
9291 #endif
9292 char lame_init ();
9293 int
9294 main ()
9295 {
9296 return lame_init ();
9297   ;
9298   return 0;
9299 }
9300 _ACEOF
9301 rm -f conftest.$ac_objext conftest$ac_exeext
9302 if { (ac_try="$ac_link"
9303 case "(($ac_try" in
9304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9305   *) ac_try_echo=$ac_try;;
9306 esac
9307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9308 $as_echo "$ac_try_echo") >&5
9309   (eval "$ac_link") 2>conftest.er1
9310   ac_status=$?
9311   grep -v '^ *+' conftest.er1 >conftest.err
9312   rm -f conftest.er1
9313   cat conftest.err >&5
9314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315   (exit $ac_status); } && {
9316          test -z "$ac_c_werror_flag" ||
9317          test ! -s conftest.err
9318        } && test -s conftest$ac_exeext && {
9319          test "$cross_compiling" = yes ||
9320          $as_test_x conftest$ac_exeext
9321        }; then
9322   ac_cv_lib_mp3lame_lame_init=yes
9323 else
9324   $as_echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327         ac_cv_lib_mp3lame_lame_init=no
9328 fi
9329
9330 rm -rf conftest.dSYM
9331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9332       conftest$ac_exeext conftest.$ac_ext
9333 LIBS=$ac_check_lib_save_LIBS
9334 fi
9335 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9336 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9337 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then
9338   cat >>confdefs.h <<_ACEOF
9339 #define HAVE_LIBMP3LAME 1
9340 _ACEOF
9341
9342   LIBS="-lmp3lame $LIBS"
9343
9344 else
9345   NO_LIBMP3LAME=1
9346 fi
9347
9348         HASLAMEHEADER=
9349
9350 for ac_header in lame.h
9351 do
9352 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9354   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9355 $as_echo_n "checking for $ac_header... " >&6; }
9356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9357   $as_echo_n "(cached) " >&6
9358 fi
9359 ac_res=`eval 'as_val=${'$as_ac_Header'}
9360                  $as_echo "$as_val"'`
9361                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9362 $as_echo "$ac_res" >&6; }
9363 else
9364   # Is the header compilable?
9365 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9366 $as_echo_n "checking $ac_header usability... " >&6; }
9367 cat >conftest.$ac_ext <<_ACEOF
9368 /* confdefs.h.  */
9369 _ACEOF
9370 cat confdefs.h >>conftest.$ac_ext
9371 cat >>conftest.$ac_ext <<_ACEOF
9372 /* end confdefs.h.  */
9373 $ac_includes_default
9374 #include <$ac_header>
9375 _ACEOF
9376 rm -f conftest.$ac_objext
9377 if { (ac_try="$ac_compile"
9378 case "(($ac_try" in
9379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9380   *) ac_try_echo=$ac_try;;
9381 esac
9382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9383 $as_echo "$ac_try_echo") >&5
9384   (eval "$ac_compile") 2>conftest.er1
9385   ac_status=$?
9386   grep -v '^ *+' conftest.er1 >conftest.err
9387   rm -f conftest.er1
9388   cat conftest.err >&5
9389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9390   (exit $ac_status); } && {
9391          test -z "$ac_c_werror_flag" ||
9392          test ! -s conftest.err
9393        } && test -s conftest.$ac_objext; then
9394   ac_header_compiler=yes
9395 else
9396   $as_echo "$as_me: failed program was:" >&5
9397 sed 's/^/| /' conftest.$ac_ext >&5
9398
9399         ac_header_compiler=no
9400 fi
9401
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9404 $as_echo "$ac_header_compiler" >&6; }
9405
9406 # Is the header present?
9407 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9408 $as_echo_n "checking $ac_header presence... " >&6; }
9409 cat >conftest.$ac_ext <<_ACEOF
9410 /* confdefs.h.  */
9411 _ACEOF
9412 cat confdefs.h >>conftest.$ac_ext
9413 cat >>conftest.$ac_ext <<_ACEOF
9414 /* end confdefs.h.  */
9415 #include <$ac_header>
9416 _ACEOF
9417 if { (ac_try="$ac_cpp conftest.$ac_ext"
9418 case "(($ac_try" in
9419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420   *) ac_try_echo=$ac_try;;
9421 esac
9422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9423 $as_echo "$ac_try_echo") >&5
9424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9425   ac_status=$?
9426   grep -v '^ *+' conftest.er1 >conftest.err
9427   rm -f conftest.er1
9428   cat conftest.err >&5
9429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430   (exit $ac_status); } >/dev/null && {
9431          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9432          test ! -s conftest.err
9433        }; then
9434   ac_header_preproc=yes
9435 else
9436   $as_echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9438
9439   ac_header_preproc=no
9440 fi
9441
9442 rm -f conftest.err conftest.$ac_ext
9443 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9444 $as_echo "$ac_header_preproc" >&6; }
9445
9446 # So?  What about this header?
9447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9448   yes:no: )
9449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9450 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9452 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9453     ac_header_preproc=yes
9454     ;;
9455   no:yes:* )
9456     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9457 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9458     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9459 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9460     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9461 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9462     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9463 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9464     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9465 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9466     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9467 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9468
9469     ;;
9470 esac
9471 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9472 $as_echo_n "checking for $ac_header... " >&6; }
9473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9474   $as_echo_n "(cached) " >&6
9475 else
9476   eval "$as_ac_Header=\$ac_header_preproc"
9477 fi
9478 ac_res=`eval 'as_val=${'$as_ac_Header'}
9479                  $as_echo "$as_val"'`
9480                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9481 $as_echo "$ac_res" >&6; }
9482
9483 fi
9484 as_val=`eval 'as_val=${'$as_ac_Header'}
9485                  $as_echo "$as_val"'`
9486    if test "x$as_val" = x""yes; then
9487   cat >>confdefs.h <<_ACEOF
9488 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9489 _ACEOF
9490  HASLAMEHEADER=1
9491 fi
9492
9493 done
9494
9495         if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9496             cat >>confdefs.h <<\_ACEOF
9497 #define HAVE_LAME 1
9498 _ACEOF
9499
9500         fi
9501     fi
9502 fi
9503
9504
9505 splash_in_source='$(splash_objects)'
9506 xpdf_in_source='$(xpdf_objects)'
9507
9508
9509
9510
9511
9512 # ------------------------------------------------------------------
9513
9514
9515 { $as_echo "$as_me:$LINENO: checking whether the filesystem normalizes file names" >&5
9516 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
9517
9518 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
9519 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9520 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
9521     { $as_echo "$as_me:$LINENO: result: yes" >&5
9522 $as_echo "yes" >&6; }
9523
9524 cat >>confdefs.h <<\_ACEOF
9525 #define LOWERCASE_UPPERCASE 1
9526 _ACEOF
9527
9528 else
9529     { $as_echo "$as_me:$LINENO: result: no" >&5
9530 $as_echo "no" >&6; }
9531 fi
9532
9533 rm -f __abcdefghijklmnopqrstuvwxyz.txt
9534 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9535
9536
9537
9538 for ac_prog in avifile-config
9539 do
9540   # Extract the first word of "$ac_prog", so it can be a program name with args.
9541 set dummy $ac_prog; ac_word=$2
9542 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9543 $as_echo_n "checking for $ac_word... " >&6; }
9544 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9545   $as_echo_n "(cached) " >&6
9546 else
9547   if test -n "$AVIFILE_CONFIG"; then
9548   ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9549 else
9550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9551 for as_dir in $PATH
9552 do
9553   IFS=$as_save_IFS
9554   test -z "$as_dir" && as_dir=.
9555   for ac_exec_ext in '' $ac_executable_extensions; do
9556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9557     ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9558     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9559     break 2
9560   fi
9561 done
9562 done
9563 IFS=$as_save_IFS
9564
9565 fi
9566 fi
9567 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9568 if test -n "$AVIFILE_CONFIG"; then
9569   { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9570 $as_echo "$AVIFILE_CONFIG" >&6; }
9571 else
9572   { $as_echo "$as_me:$LINENO: result: no" >&5
9573 $as_echo "no" >&6; }
9574 fi
9575
9576
9577   test -n "$AVIFILE_CONFIG" && break
9578 done
9579
9580
9581 if test "x$AVIFILE_CONFIG" '!=' "x";then
9582     OLDCPPFLAGS="$CPPFLAGS"
9583     # temporarily add avifile paths to CPPFLAGS...
9584     CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9585
9586
9587 for ac_header in avifile/version.h version.h
9588 do
9589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9591   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 $as_echo_n "checking for $ac_header... " >&6; }
9593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594   $as_echo_n "(cached) " >&6
9595 fi
9596 ac_res=`eval 'as_val=${'$as_ac_Header'}
9597                  $as_echo "$as_val"'`
9598                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9599 $as_echo "$ac_res" >&6; }
9600 else
9601   # Is the header compilable?
9602 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9603 $as_echo_n "checking $ac_header usability... " >&6; }
9604 cat >conftest.$ac_ext <<_ACEOF
9605 /* confdefs.h.  */
9606 _ACEOF
9607 cat confdefs.h >>conftest.$ac_ext
9608 cat >>conftest.$ac_ext <<_ACEOF
9609 /* end confdefs.h.  */
9610 $ac_includes_default
9611 #include <$ac_header>
9612 _ACEOF
9613 rm -f conftest.$ac_objext
9614 if { (ac_try="$ac_compile"
9615 case "(($ac_try" in
9616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9617   *) ac_try_echo=$ac_try;;
9618 esac
9619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9620 $as_echo "$ac_try_echo") >&5
9621   (eval "$ac_compile") 2>conftest.er1
9622   ac_status=$?
9623   grep -v '^ *+' conftest.er1 >conftest.err
9624   rm -f conftest.er1
9625   cat conftest.err >&5
9626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9627   (exit $ac_status); } && {
9628          test -z "$ac_c_werror_flag" ||
9629          test ! -s conftest.err
9630        } && test -s conftest.$ac_objext; then
9631   ac_header_compiler=yes
9632 else
9633   $as_echo "$as_me: failed program was:" >&5
9634 sed 's/^/| /' conftest.$ac_ext >&5
9635
9636         ac_header_compiler=no
9637 fi
9638
9639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9640 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9641 $as_echo "$ac_header_compiler" >&6; }
9642
9643 # Is the header present?
9644 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9645 $as_echo_n "checking $ac_header presence... " >&6; }
9646 cat >conftest.$ac_ext <<_ACEOF
9647 /* confdefs.h.  */
9648 _ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h.  */
9652 #include <$ac_header>
9653 _ACEOF
9654 if { (ac_try="$ac_cpp conftest.$ac_ext"
9655 case "(($ac_try" in
9656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9657   *) ac_try_echo=$ac_try;;
9658 esac
9659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9660 $as_echo "$ac_try_echo") >&5
9661   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9662   ac_status=$?
9663   grep -v '^ *+' conftest.er1 >conftest.err
9664   rm -f conftest.er1
9665   cat conftest.err >&5
9666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667   (exit $ac_status); } >/dev/null && {
9668          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9669          test ! -s conftest.err
9670        }; then
9671   ac_header_preproc=yes
9672 else
9673   $as_echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9675
9676   ac_header_preproc=no
9677 fi
9678
9679 rm -f conftest.err conftest.$ac_ext
9680 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9681 $as_echo "$ac_header_preproc" >&6; }
9682
9683 # So?  What about this header?
9684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9685   yes:no: )
9686     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9687 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9688     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9689 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9690     ac_header_preproc=yes
9691     ;;
9692   no:yes:* )
9693     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9694 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9695     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9696 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9697     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9698 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9699     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9700 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9701     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9702 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9704 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9705
9706     ;;
9707 esac
9708 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9709 $as_echo_n "checking for $ac_header... " >&6; }
9710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9711   $as_echo_n "(cached) " >&6
9712 else
9713   eval "$as_ac_Header=\$ac_header_preproc"
9714 fi
9715 ac_res=`eval 'as_val=${'$as_ac_Header'}
9716                  $as_echo "$as_val"'`
9717                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9718 $as_echo "$ac_res" >&6; }
9719
9720 fi
9721 as_val=`eval 'as_val=${'$as_ac_Header'}
9722                  $as_echo "$as_val"'`
9723    if test "x$as_val" = x""yes; then
9724   cat >>confdefs.h <<_ACEOF
9725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9726 _ACEOF
9727
9728 fi
9729
9730 done
9731
9732     # ... and reset
9733     CPPFLAGS="$OLDCPPFLAGS"
9734 fi
9735
9736 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9737 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
9738
9739 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9740     HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9741 fi
9742 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9743     HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9744 fi
9745
9746 cat > conftest.cpp << EOF
9747
9748 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9749 // so we have to introduce them this way
9750 $HAVE_VERSION_H_DEFINE
9751 $HAVE_AVIFILE_VERSION_H_DEFINE
9752
9753 #ifdef HAVE_VERSION_H
9754   #include <version.h>
9755 #endif
9756 #ifdef HAVE_AVIFILE_VERSION_H
9757   #include <avifile/version.h>
9758 #endif
9759
9760 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9761    #include <avifile.h>
9762    #include <aviplay.h>
9763    #include <avm_fourcc.h>
9764    #include <avm_creators.h>
9765    #include <StreamInfo.h>
9766    #define VERSION6
9767 #else
9768    #include <avifile.h>
9769    #include <aviplay.h>
9770    #include <aviutil.h>
9771    #define Width width
9772    #define Height height
9773    #define Data data
9774    #define Bpp bpp
9775 #endif
9776
9777 void test()
9778 {
9779   IAviReadFile* player;
9780   IAviReadStream* astream;
9781   IAviReadStream* vstream;
9782   player = CreateIAviReadFile(0);
9783   astream = player->GetStream(0, AviStream::Audio);
9784   vstream = player->GetStream(0, AviStream::Video);
9785   vstream -> StartStreaming();
9786   astream -> StartStreaming();
9787 #ifndef VERSION6
9788   MainAVIHeader head;
9789   player->GetFileHeader(&head);
9790   head.dwMicroSecPerFrame;
9791   head.dwTotalFrames;
9792   head.dwStreams;
9793   head.dwWidth;
9794   head.dwHeight;
9795   head.dwMicroSecPerFrame;
9796   astream->GetEndPos(),
9797   astream->GetEndTime());
9798   player->StreamCount();
9799 #else
9800   StreamInfo*audioinfo;
9801   StreamInfo*videoinfo;
9802   audioinfo = astream->GetStreamInfo();
9803   videoinfo = vstream->GetStreamInfo();
9804   videoinfo->GetVideoWidth();
9805   videoinfo->GetVideoHeight();
9806   audioinfo->GetAudioSamplesPerSec();
9807   videoinfo->GetFps();
9808 #endif
9809   CImage*img = vstream->GetFrame();
9810   img->ToRGB();
9811   img->Data();
9812   img->Bpp();
9813   img->Width();
9814   img->Height();
9815   WAVEFORMATEX wave;
9816   astream->GetAudioFormatInfo(&wave,0);
9817   uint_t a,b;
9818   astream->ReadFrames(0,0,0,a,b);
9819 }
9820 int main (int argc, char*argv)
9821 {
9822     return 0;
9823 }
9824 EOF
9825
9826 if test "x$AVIFILE_CONFIG" '!=' "x";then
9827     AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9828     AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9829     avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9830     if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9831       { $as_echo "$as_me:$LINENO: result: yes" >&5
9832 $as_echo "yes" >&6; }
9833       AVIFILE=true
9834       export AVIFILE
9835
9836 cat >>confdefs.h <<\_ACEOF
9837 #define AVIFILE true
9838 _ACEOF
9839
9840     else
9841       echo "configure: failed program was:" >&5
9842       cat conftest.cpp >&5
9843       { $as_echo "$as_me:$LINENO: result: no" >&5
9844 $as_echo "no" >&6; }
9845     fi
9846 else
9847     { $as_echo "$as_me:$LINENO: result: no" >&5
9848 $as_echo "no" >&6; }
9849 fi
9850 rm -f conftest*
9851
9852 if test "x${AVIFILE}" = "xtrue"; then
9853     VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9854     VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9855
9856 cat >>confdefs.h <<\_ACEOF
9857 #define HAVE_AVIFILE 1
9858 _ACEOF
9859
9860 fi
9861
9862 if test "x${WIN32}" != "x"; then
9863     #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9864     #if test "x${AVIFIL32}" != "x"; then
9865     #  VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9866     #fi
9867     VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9868     AVIFIL32=true
9869 fi
9870
9871
9872
9873 # ------------------------------------------------------------------
9874
9875 if test "x${UNCOMPRESS}" = "xgzip"; then
9876
9877 cat >>confdefs.h <<\_ACEOF
9878 #define USE_GZIP 1
9879 _ACEOF
9880
9881 fi
9882
9883
9884 # ------------------------------------------------------------------
9885
9886
9887 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
9888 $as_echo_n "checking for Python.h... " >&6; }
9889
9890 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9891     PY_VERSION=unknown
9892 else
9893     if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9894         echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9895     fi
9896     # iterate through version 2.2 to 2.6
9897     for v in 2 3 4 5 6; do
9898         # Linux
9899         if test -f "/usr/include/python2.$v/Python.h";then
9900             PY_VERSION=2.$v
9901             PYTHON_LIB="-lpython$PY_VERSION"
9902             if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9903                 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9904                 HAVE_PYTHON_IMAGING_LIB=1
9905             else
9906                 PYTHON_LIB2="$PYTHON_LIB"
9907             fi
9908             PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9909         # Mac OS X
9910         elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9911             PY_VERSION=2.$v
9912             PYTHON_LIB="-framework Python"
9913             if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
9914                 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9915                 HAVE_PYTHON_IMAGING_LIB=1
9916             else
9917                 PYTHON_LIB2="$PYTHON_LIB"
9918             fi
9919             PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9920         # Mac OS X [Fink]:
9921         elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9922                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9923                    -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9924                   ")" \
9925                -a -f "/sw/include/python2.$v/Python.h"; then
9926             PY_VERSION=2.$v
9927             PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9928             if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9929                 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9930                 HAVE_PYTHON_IMAGING_LIB=1
9931             else
9932                 PYTHON_LIB2="$PYTHON_LIB"
9933             fi
9934             PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9935         fi
9936     done
9937 fi
9938
9939 if test "x$PY_VERSION" "!=" "x"; then
9940     { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9941 $as_echo "$PY_VERSION" >&6; }
9942     export PYTHON_INCLUDES PYTHON_LIB
9943
9944
9945     { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9946 $as_echo_n "checking whether we can compile the python test program... " >&6; }
9947
9948     cat > conftest.c << EOF
9949 #include <Python.h>
9950
9951 int main()
9952 {
9953     int ret;
9954     ret = Py_Main(0, 0);
9955     int x; // check also for gcc 2.95.x incompatibilities
9956     return ret;
9957 }
9958 EOF
9959
9960     ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9961     if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9962         { $as_echo "$as_me:$LINENO: result: yes" >&5
9963 $as_echo "yes" >&6; }
9964         PYTHON_OK=yes
9965     else
9966         echo "configure: failed program was:" >&5
9967         cat conftest.c >&5
9968         { $as_echo "$as_me:$LINENO: result: no" >&5
9969 $as_echo "no" >&6; }
9970     fi
9971     rm -f conftest*
9972     if test "x$PYTHON_OK" = "xyes";then
9973         { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
9974 $as_echo_n "checking for Python-Imaging... " >&6; }
9975     cat > conftest.c << EOF
9976 #include <Python.h>
9977 #include <Imaging.h>
9978
9979 int main()
9980 {
9981     Py_Main(0, 0);
9982     return 0;
9983 }
9984 EOF
9985         if test "$HAVE_PYTHON_IMAGING_LIB"; then
9986             ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9987             if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9988                 PYTHON_LIB="${PYTHON_LIB2}"
9989
9990 cat >>confdefs.h <<\_ACEOF
9991 #define HAVE_PYTHON_IMAGING 1
9992 _ACEOF
9993
9994                 HAVE_PYTHON_IMAGING=yes
9995                 export HAVE_PYTHON_IMAGING
9996
9997                 { $as_echo "$as_me:$LINENO: result: yes" >&5
9998 $as_echo "yes" >&6; }
9999             else
10000                 echo "configure: failed program was:" >&5
10001                 cat conftest.c >&5
10002                 { $as_echo "$as_me:$LINENO: result: no" >&5
10003 $as_echo "no" >&6; }
10004             fi
10005         else
10006             echo "(didn't find the Python-Imaging libraries)" >&5
10007             { $as_echo "$as_me:$LINENO: result: no" >&5
10008 $as_echo "no" >&6; }
10009         fi
10010     fi
10011     rm -f conftest*
10012 else
10013     { $as_echo "$as_me:$LINENO: result: nope" >&5
10014 $as_echo "nope" >&6; }
10015 fi
10016
10017
10018 if test "x$PYTHON_OK" '!=' "xyes";then
10019     echo all install uninstall clean: > lib/python/Makefile
10020     # fail silently- the most users won't have any need for the
10021     # python interface anyway
10022 else
10023     pythonrfxswf="lib/python/Makefile"
10024 fi
10025
10026 # ------------------------------------------------------------------
10027
10028 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
10029 $as_echo_n "checking for missing libraries... " >&6; }
10030
10031 if test "x$ZLIBMISSING" = "xtrue";then
10032     MISSINGLIBS="${MISSINGLIBS} zlib"
10033     DISABLEPNG2SWF=true
10034     PARTIAL=true
10035 fi
10036 if test "x$JPEGLIBMISSING" = "xtrue";then
10037     MISSINGLIBS="${MISSINGLIBS} jpeglib"
10038     DISABLEPDF2SWF=true
10039     DISABLEJPEG2SWF=true
10040     PARTIAL=true
10041 fi
10042 if test "x$PDFLIBMISSING" = "xtrue";then
10043     DISABLEPDF2PDF=true;
10044 fi
10045 #if test "x$T1LIBMISSING" = "xtrue";then
10046 #    MISSINGLIBS="${MISSINGLIBS} t1lib"
10047 #fi
10048 if test "x$UNGIFMISSING" = "xtrue";then
10049     DISABLEGIF2SWF=true
10050     MISSINGLIBS="${MISSINGLIBS} ungif"
10051     PARTIAL=true
10052 fi
10053
10054 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
10055     DISABLEPDF2PDF=true;
10056 fi
10057 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10058     DISABLEPDF2SWF=true;
10059     DISABLEJPEG2SWF=true;
10060     MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10061     PARTIAL=true
10062 fi
10063 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10064     DISABLEPDF2SWF=true;
10065     MISSINGLIBS="${MISSINGLIBS} freetype"
10066     PARTIAL=true
10067 fi
10068 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10069 #    MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10070 #fi
10071 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10072     DISABLEGIF2SWF=true
10073     MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10074     PARTIAL=true
10075 fi
10076 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10077     DISABLEPNG2SWF=true;
10078     MISSINGLIBS="${MISSINGLIBS} zlib.h"
10079     PARTIAL=true
10080 fi
10081 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10082 #    MISSINGLIBS="${MISSINGLIBS} avifile"
10083 #fi
10084
10085 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10086 $as_echo "${MISSINGLIBS}" >&6; }
10087
10088 # ------------------------------------------------------------------
10089
10090 if test "x${MISSINGLIBS}" '!=' "x"; then
10091   echo "***************************************************"
10092   echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10093 fi
10094
10095 avi2swf="avi2swf/Makefile"
10096 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10097  #don't whine, avi2swf is outdated anyway
10098  #echo "* Disabling avi2swf tool..."
10099  echo all install uninstall clean: > avi2swf/Makefile
10100  avi2swf=
10101 fi
10102
10103 pdf2swf_makefile="lib/pdf/Makefile"
10104 PDF2SWF='pdf2swf$(E)'
10105 LIBPDF='libpdf$(A)'
10106
10107 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10108   echo "* Disabling pdf2swf tool..."
10109   rm -f lib/pdf/Makefile
10110   echo all install uninstall clean libpdf: > lib/pdf/Makefile
10111   pdf2swf_makefile=""
10112   PDF2SWF=
10113   LIBPDF=
10114 fi
10115
10116
10117
10118 PDF2PDF='pdf2pdf$(E)'
10119 DEVICE_PDF='devices/pdf.$(O)'
10120 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
10121   #echo "* Disabling pdf2pdf tool..."
10122   PDF2PDF=
10123   DEVICE_PDF=
10124 fi
10125
10126
10127
10128 if test "x${ZLIBMISSING}" = "xtrue"; then
10129   echo
10130   echo "* Warning! Without zlib, you will not be able to read"
10131   echo "* or write compressed Flash MX files!"
10132 fi
10133
10134 JPEG2SWF='jpeg2swf$(E)'
10135 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10136   echo "* Disabling jpeg2swf tool..."
10137   JPEG2SWF=
10138 fi
10139 export JPEG2SWF
10140
10141
10142 GIF2SWF='gif2swf$(E)'
10143 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10144   echo "* Disabling gif2swf tool..."
10145   GIF2SWF=
10146 fi
10147 export GIF2SWF
10148
10149
10150 PNG2SWF='png2swf$(E)'
10151 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10152   echo "* Disabling png2swf tool..."
10153   PNG2SWF=
10154 fi
10155 export PNG2SWF
10156
10157
10158 if test "x${MISSINGLIBS}" '!=' "x"; then
10159   if test "x${PARTIAL}" '=' "x"; then
10160     echo "* (never mind)"
10161   fi
10162   echo "***************************************************"
10163 fi
10164
10165 # ------------------------------------------------------------------
10166
10167
10168
10169
10170
10171
10172
10173 if test -f "release.in"; then release_in="./release"; fi
10174 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10175 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"
10176 ac_config_files="$ac_config_files ${FILES}"
10177
10178 cat >confcache <<\_ACEOF
10179 # This file is a shell script that caches the results of configure
10180 # tests run on this system so they can be shared between configure
10181 # scripts and configure runs, see configure's option --config-cache.
10182 # It is not useful on other systems.  If it contains results you don't
10183 # want to keep, you may remove or edit it.
10184 #
10185 # config.status only pays attention to the cache file if you give it
10186 # the --recheck option to rerun configure.
10187 #
10188 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10189 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10190 # following values.
10191
10192 _ACEOF
10193
10194 # The following way of writing the cache mishandles newlines in values,
10195 # but we know of no workaround that is simple, portable, and efficient.
10196 # So, we kill variables containing newlines.
10197 # Ultrix sh set writes to stderr and can't be redirected directly,
10198 # and sets the high bit in the cache file unless we assign to the vars.
10199 (
10200   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10201     eval ac_val=\$$ac_var
10202     case $ac_val in #(
10203     *${as_nl}*)
10204       case $ac_var in #(
10205       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10206 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10207       esac
10208       case $ac_var in #(
10209       _ | IFS | as_nl) ;; #(
10210       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10211       *) $as_unset $ac_var ;;
10212       esac ;;
10213     esac
10214   done
10215
10216   (set) 2>&1 |
10217     case $as_nl`(ac_space=' '; set) 2>&1` in #(
10218     *${as_nl}ac_space=\ *)
10219       # `set' does not quote correctly, so add quotes (double-quote
10220       # substitution turns \\\\ into \\, and sed turns \\ into \).
10221       sed -n \
10222         "s/'/'\\\\''/g;
10223           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10224       ;; #(
10225     *)
10226       # `set' quotes correctly as required by POSIX, so do not add quotes.
10227       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10228       ;;
10229     esac |
10230     sort
10231 ) |
10232   sed '
10233      /^ac_cv_env_/b end
10234      t clear
10235      :clear
10236      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10237      t end
10238      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10239      :end' >>confcache
10240 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10241   if test -w "$cache_file"; then
10242     test "x$cache_file" != "x/dev/null" &&
10243       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10244 $as_echo "$as_me: updating cache $cache_file" >&6;}
10245     cat confcache >$cache_file
10246   else
10247     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10248 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10249   fi
10250 fi
10251 rm -f confcache
10252
10253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10254 # Let make expand exec_prefix.
10255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10256
10257 DEFS=-DHAVE_CONFIG_H
10258
10259 ac_libobjs=
10260 ac_ltlibobjs=
10261 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10262   # 1. Remove the extension, and $U if already installed.
10263   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10264   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10265   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
10266   #    will be set to the directory where LIBOBJS objects are built.
10267   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10268   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10269 done
10270 LIBOBJS=$ac_libobjs
10271
10272 LTLIBOBJS=$ac_ltlibobjs
10273
10274
10275
10276 : ${CONFIG_STATUS=./config.status}
10277 ac_write_fail=0
10278 ac_clean_files_save=$ac_clean_files
10279 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10280 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10281 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10282 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10283 #! $SHELL
10284 # Generated by $as_me.
10285 # Run this file to recreate the current configuration.
10286 # Compiler output produced by configure, useful for debugging
10287 # configure, is in config.log if it exists.
10288
10289 debug=false
10290 ac_cs_recheck=false
10291 ac_cs_silent=false
10292 SHELL=\${CONFIG_SHELL-$SHELL}
10293 _ACEOF
10294
10295 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10296 ## --------------------- ##
10297 ## M4sh Initialization.  ##
10298 ## --------------------- ##
10299
10300 # Be more Bourne compatible
10301 DUALCASE=1; export DUALCASE # for MKS sh
10302 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10303   emulate sh
10304   NULLCMD=:
10305   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10306   # is contrary to our usage.  Disable this feature.
10307   alias -g '${1+"$@"}'='"$@"'
10308   setopt NO_GLOB_SUBST
10309 else
10310   case `(set -o) 2>/dev/null` in
10311   *posix*) set -o posix ;;
10312 esac
10313
10314 fi
10315
10316
10317
10318
10319 # PATH needs CR
10320 # Avoid depending upon Character Ranges.
10321 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10322 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10323 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10324 as_cr_digits='0123456789'
10325 as_cr_alnum=$as_cr_Letters$as_cr_digits
10326
10327 as_nl='
10328 '
10329 export as_nl
10330 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10331 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10332 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10333 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10334 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10335   as_echo='printf %s\n'
10336   as_echo_n='printf %s'
10337 else
10338   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10339     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10340     as_echo_n='/usr/ucb/echo -n'
10341   else
10342     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10343     as_echo_n_body='eval
10344       arg=$1;
10345       case $arg in
10346       *"$as_nl"*)
10347         expr "X$arg" : "X\\(.*\\)$as_nl";
10348         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10349       esac;
10350       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10351     '
10352     export as_echo_n_body
10353     as_echo_n='sh -c $as_echo_n_body as_echo'
10354   fi
10355   export as_echo_body
10356   as_echo='sh -c $as_echo_body as_echo'
10357 fi
10358
10359 # The user is always right.
10360 if test "${PATH_SEPARATOR+set}" != set; then
10361   PATH_SEPARATOR=:
10362   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10363     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10364       PATH_SEPARATOR=';'
10365   }
10366 fi
10367
10368 # Support unset when possible.
10369 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10370   as_unset=unset
10371 else
10372   as_unset=false
10373 fi
10374
10375
10376 # IFS
10377 # We need space, tab and new line, in precisely that order.  Quoting is
10378 # there to prevent editors from complaining about space-tab.
10379 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10380 # splitting by setting IFS to empty value.)
10381 IFS=" ""        $as_nl"
10382
10383 # Find who we are.  Look in the path if we contain no directory separator.
10384 case $0 in
10385   *[\\/]* ) as_myself=$0 ;;
10386   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10387 for as_dir in $PATH
10388 do
10389   IFS=$as_save_IFS
10390   test -z "$as_dir" && as_dir=.
10391   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10392 done
10393 IFS=$as_save_IFS
10394
10395      ;;
10396 esac
10397 # We did not find ourselves, most probably we were run as `sh COMMAND'
10398 # in which case we are not to be found in the path.
10399 if test "x$as_myself" = x; then
10400   as_myself=$0
10401 fi
10402 if test ! -f "$as_myself"; then
10403   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10404   { (exit 1); exit 1; }
10405 fi
10406
10407 # Work around bugs in pre-3.0 UWIN ksh.
10408 for as_var in ENV MAIL MAILPATH
10409 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10410 done
10411 PS1='$ '
10412 PS2='> '
10413 PS4='+ '
10414
10415 # NLS nuisances.
10416 LC_ALL=C
10417 export LC_ALL
10418 LANGUAGE=C
10419 export LANGUAGE
10420
10421 # Required to use basename.
10422 if expr a : '\(a\)' >/dev/null 2>&1 &&
10423    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10424   as_expr=expr
10425 else
10426   as_expr=false
10427 fi
10428
10429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10430   as_basename=basename
10431 else
10432   as_basename=false
10433 fi
10434
10435
10436 # Name of the executable.
10437 as_me=`$as_basename -- "$0" ||
10438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10439          X"$0" : 'X\(//\)$' \| \
10440          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10441 $as_echo X/"$0" |
10442     sed '/^.*\/\([^/][^/]*\)\/*$/{
10443             s//\1/
10444             q
10445           }
10446           /^X\/\(\/\/\)$/{
10447             s//\1/
10448             q
10449           }
10450           /^X\/\(\/\).*/{
10451             s//\1/
10452             q
10453           }
10454           s/.*/./; q'`
10455
10456 # CDPATH.
10457 $as_unset CDPATH
10458
10459
10460
10461   as_lineno_1=$LINENO
10462   as_lineno_2=$LINENO
10463   test "x$as_lineno_1" != "x$as_lineno_2" &&
10464   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10465
10466   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10467   # uniformly replaced by the line number.  The first 'sed' inserts a
10468   # line-number line after each line using $LINENO; the second 'sed'
10469   # does the real work.  The second script uses 'N' to pair each
10470   # line-number line with the line containing $LINENO, and appends
10471   # trailing '-' during substitution so that $LINENO is not a special
10472   # case at line end.
10473   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10474   # scripts with optimization help from Paolo Bonzini.  Blame Lee
10475   # E. McMahon (1931-1989) for sed's syntax.  :-)
10476   sed -n '
10477     p
10478     /[$]LINENO/=
10479   ' <$as_myself |
10480     sed '
10481       s/[$]LINENO.*/&-/
10482       t lineno
10483       b
10484       :lineno
10485       N
10486       :loop
10487       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10488       t loop
10489       s/-\n.*//
10490     ' >$as_me.lineno &&
10491   chmod +x "$as_me.lineno" ||
10492     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10493    { (exit 1); exit 1; }; }
10494
10495   # Don't try to exec as it changes $[0], causing all sort of problems
10496   # (the dirname of $[0] is not the place where we might find the
10497   # original and so on.  Autoconf is especially sensitive to this).
10498   . "./$as_me.lineno"
10499   # Exit status is that of the last command.
10500   exit
10501 }
10502
10503
10504 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10505   as_dirname=dirname
10506 else
10507   as_dirname=false
10508 fi
10509
10510 ECHO_C= ECHO_N= ECHO_T=
10511 case `echo -n x` in
10512 -n*)
10513   case `echo 'x\c'` in
10514   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
10515   *)   ECHO_C='\c';;
10516   esac;;
10517 *)
10518   ECHO_N='-n';;
10519 esac
10520 if expr a : '\(a\)' >/dev/null 2>&1 &&
10521    test "X`expr 00001 : '.*\(...\)'`" = X001; then
10522   as_expr=expr
10523 else
10524   as_expr=false
10525 fi
10526
10527 rm -f conf$$ conf$$.exe conf$$.file
10528 if test -d conf$$.dir; then
10529   rm -f conf$$.dir/conf$$.file
10530 else
10531   rm -f conf$$.dir
10532   mkdir conf$$.dir 2>/dev/null
10533 fi
10534 if (echo >conf$$.file) 2>/dev/null; then
10535   if ln -s conf$$.file conf$$ 2>/dev/null; then
10536     as_ln_s='ln -s'
10537     # ... but there are two gotchas:
10538     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10539     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10540     # In both cases, we have to default to `cp -p'.
10541     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10542       as_ln_s='cp -p'
10543   elif ln conf$$.file conf$$ 2>/dev/null; then
10544     as_ln_s=ln
10545   else
10546     as_ln_s='cp -p'
10547   fi
10548 else
10549   as_ln_s='cp -p'
10550 fi
10551 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10552 rmdir conf$$.dir 2>/dev/null
10553
10554 if mkdir -p . 2>/dev/null; then
10555   as_mkdir_p=:
10556 else
10557   test -d ./-p && rmdir ./-p
10558   as_mkdir_p=false
10559 fi
10560
10561 if test -x / >/dev/null 2>&1; then
10562   as_test_x='test -x'
10563 else
10564   if ls -dL / >/dev/null 2>&1; then
10565     as_ls_L_option=L
10566   else
10567     as_ls_L_option=
10568   fi
10569   as_test_x='
10570     eval sh -c '\''
10571       if test -d "$1"; then
10572         test -d "$1/.";
10573       else
10574         case $1 in
10575         -*)set "./$1";;
10576         esac;
10577         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10578         ???[sx]*):;;*)false;;esac;fi
10579     '\'' sh
10580   '
10581 fi
10582 as_executable_p=$as_test_x
10583
10584 # Sed expression to map a string onto a valid CPP name.
10585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10586
10587 # Sed expression to map a string onto a valid variable name.
10588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10589
10590
10591 exec 6>&1
10592
10593 # Save the log message, to keep $[0] and so on meaningful, and to
10594 # report actual input values of CONFIG_FILES etc. instead of their
10595 # values after options handling.
10596 ac_log="
10597 This file was extended by $as_me, which was
10598 generated by GNU Autoconf 2.63.  Invocation command line was
10599
10600   CONFIG_FILES    = $CONFIG_FILES
10601   CONFIG_HEADERS  = $CONFIG_HEADERS
10602   CONFIG_LINKS    = $CONFIG_LINKS
10603   CONFIG_COMMANDS = $CONFIG_COMMANDS
10604   $ $0 $@
10605
10606 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10607 "
10608
10609 _ACEOF
10610
10611 case $ac_config_files in *"
10612 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10613 esac
10614
10615 case $ac_config_headers in *"
10616 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10617 esac
10618
10619
10620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10621 # Files that config.status was made for.
10622 config_files="$ac_config_files"
10623 config_headers="$ac_config_headers"
10624
10625 _ACEOF
10626
10627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10628 ac_cs_usage="\
10629 \`$as_me' instantiates files from templates according to the
10630 current configuration.
10631
10632 Usage: $0 [OPTION]... [FILE]...
10633
10634   -h, --help       print this help, then exit
10635   -V, --version    print version number and configuration settings, then exit
10636   -q, --quiet, --silent
10637                    do not print progress messages
10638   -d, --debug      don't remove temporary files
10639       --recheck    update $as_me by reconfiguring in the same conditions
10640       --file=FILE[:TEMPLATE]
10641                    instantiate the configuration file FILE
10642       --header=FILE[:TEMPLATE]
10643                    instantiate the configuration header FILE
10644
10645 Configuration files:
10646 $config_files
10647
10648 Configuration headers:
10649 $config_headers
10650
10651 Report bugs to <bug-autoconf@gnu.org>."
10652
10653 _ACEOF
10654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10655 ac_cs_version="\\
10656 config.status
10657 configured by $0, generated by GNU Autoconf 2.63,
10658   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10659
10660 Copyright (C) 2008 Free Software Foundation, Inc.
10661 This config.status script is free software; the Free Software Foundation
10662 gives unlimited permission to copy, distribute and modify it."
10663
10664 ac_pwd='$ac_pwd'
10665 srcdir='$srcdir'
10666 INSTALL='$INSTALL'
10667 test -n "\$AWK" || AWK=awk
10668 _ACEOF
10669
10670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10671 # The default lists apply if the user does not specify any file.
10672 ac_need_defaults=:
10673 while test $# != 0
10674 do
10675   case $1 in
10676   --*=*)
10677     ac_option=`expr "X$1" : 'X\([^=]*\)='`
10678     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10679     ac_shift=:
10680     ;;
10681   *)
10682     ac_option=$1
10683     ac_optarg=$2
10684     ac_shift=shift
10685     ;;
10686   esac
10687
10688   case $ac_option in
10689   # Handling of the options.
10690   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10691     ac_cs_recheck=: ;;
10692   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10693     $as_echo "$ac_cs_version"; exit ;;
10694   --debug | --debu | --deb | --de | --d | -d )
10695     debug=: ;;
10696   --file | --fil | --fi | --f )
10697     $ac_shift
10698     case $ac_optarg in
10699     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10700     esac
10701     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10702     ac_need_defaults=false;;
10703   --header | --heade | --head | --hea )
10704     $ac_shift
10705     case $ac_optarg in
10706     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10707     esac
10708     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10709     ac_need_defaults=false;;
10710   --he | --h)
10711     # Conflict between --help and --header
10712     { $as_echo "$as_me: error: ambiguous option: $1
10713 Try \`$0 --help' for more information." >&2
10714    { (exit 1); exit 1; }; };;
10715   --help | --hel | -h )
10716     $as_echo "$ac_cs_usage"; exit ;;
10717   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10718   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10719     ac_cs_silent=: ;;
10720
10721   # This is an error.
10722   -*) { $as_echo "$as_me: error: unrecognized option: $1
10723 Try \`$0 --help' for more information." >&2
10724    { (exit 1); exit 1; }; } ;;
10725
10726   *) ac_config_targets="$ac_config_targets $1"
10727      ac_need_defaults=false ;;
10728
10729   esac
10730   shift
10731 done
10732
10733 ac_configure_extra_args=
10734
10735 if $ac_cs_silent; then
10736   exec 6>/dev/null
10737   ac_configure_extra_args="$ac_configure_extra_args --silent"
10738 fi
10739
10740 _ACEOF
10741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10742 if \$ac_cs_recheck; then
10743   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10744   shift
10745   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10746   CONFIG_SHELL='$SHELL'
10747   export CONFIG_SHELL
10748   exec "\$@"
10749 fi
10750
10751 _ACEOF
10752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10753 exec 5>>config.log
10754 {
10755   echo
10756   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10757 ## Running $as_me. ##
10758 _ASBOX
10759   $as_echo "$ac_log"
10760 } >&5
10761
10762 _ACEOF
10763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10764 _ACEOF
10765
10766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10767
10768 # Handling of arguments.
10769 for ac_config_target in $ac_config_targets
10770 do
10771   case $ac_config_target in
10772     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10773     "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10774
10775   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10776 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10777    { (exit 1); exit 1; }; };;
10778   esac
10779 done
10780
10781
10782 # If the user did not use the arguments to specify the items to instantiate,
10783 # then the envvar interface is used.  Set only those that are not.
10784 # We use the long form for the default assignment because of an extremely
10785 # bizarre bug on SunOS 4.1.3.
10786 if $ac_need_defaults; then
10787   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10788   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10789 fi
10790
10791 # Have a temporary directory for convenience.  Make it in the build tree
10792 # simply because there is no reason against having it here, and in addition,
10793 # creating and moving files from /tmp can sometimes cause problems.
10794 # Hook for its removal unless debugging.
10795 # Note that there is a small window in which the directory will not be cleaned:
10796 # after its creation but before its name has been assigned to `$tmp'.
10797 $debug ||
10798 {
10799   tmp=
10800   trap 'exit_status=$?
10801   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10802 ' 0
10803   trap '{ (exit 1); exit 1; }' 1 2 13 15
10804 }
10805 # Create a (secure) tmp directory for tmp files.
10806
10807 {
10808   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10809   test -n "$tmp" && test -d "$tmp"
10810 }  ||
10811 {
10812   tmp=./conf$$-$RANDOM
10813   (umask 077 && mkdir "$tmp")
10814 } ||
10815 {
10816    $as_echo "$as_me: cannot create a temporary directory in ." >&2
10817    { (exit 1); exit 1; }
10818 }
10819
10820 # Set up the scripts for CONFIG_FILES section.
10821 # No need to generate them if there are no CONFIG_FILES.
10822 # This happens for instance with `./config.status config.h'.
10823 if test -n "$CONFIG_FILES"; then
10824
10825
10826 ac_cr='\r'
10827 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10828 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10829   ac_cs_awk_cr='\\r'
10830 else
10831   ac_cs_awk_cr=$ac_cr
10832 fi
10833
10834 echo 'BEGIN {' >"$tmp/subs1.awk" &&
10835 _ACEOF
10836
10837
10838 {
10839   echo "cat >conf$$subs.awk <<_ACEOF" &&
10840   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10841   echo "_ACEOF"
10842 } >conf$$subs.sh ||
10843   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10844 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10845    { (exit 1); exit 1; }; }
10846 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
10847 ac_delim='%!_!# '
10848 for ac_last_try in false false false false false :; do
10849   . ./conf$$subs.sh ||
10850     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10851 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10852    { (exit 1); exit 1; }; }
10853
10854   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10855   if test $ac_delim_n = $ac_delim_num; then
10856     break
10857   elif $ac_last_try; then
10858     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10859 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10860    { (exit 1); exit 1; }; }
10861   else
10862     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10863   fi
10864 done
10865 rm -f conf$$subs.sh
10866
10867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10868 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
10869 _ACEOF
10870 sed -n '
10871 h
10872 s/^/S["/; s/!.*/"]=/
10873 p
10874 g
10875 s/^[^!]*!//
10876 :repl
10877 t repl
10878 s/'"$ac_delim"'$//
10879 t delim
10880 :nl
10881 h
10882 s/\(.\{148\}\).*/\1/
10883 t more1
10884 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10885 p
10886 n
10887 b repl
10888 :more1
10889 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10890 p
10891 g
10892 s/.\{148\}//
10893 t nl
10894 :delim
10895 h
10896 s/\(.\{148\}\).*/\1/
10897 t more2
10898 s/["\\]/\\&/g; s/^/"/; s/$/"/
10899 p
10900 b
10901 :more2
10902 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10903 p
10904 g
10905 s/.\{148\}//
10906 t delim
10907 ' <conf$$subs.awk | sed '
10908 /^[^""]/{
10909   N
10910   s/\n//
10911 }
10912 ' >>$CONFIG_STATUS || ac_write_fail=1
10913 rm -f conf$$subs.awk
10914 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10915 _ACAWK
10916 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
10917   for (key in S) S_is_set[key] = 1
10918   FS = "\a"
10919
10920 }
10921 {
10922   line = $ 0
10923   nfields = split(line, field, "@")
10924   substed = 0
10925   len = length(field[1])
10926   for (i = 2; i < nfields; i++) {
10927     key = field[i]
10928     keylen = length(key)
10929     if (S_is_set[key]) {
10930       value = S[key]
10931       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10932       len += length(value) + length(field[++i])
10933       substed = 1
10934     } else
10935       len += 1 + keylen
10936   }
10937
10938   print line
10939 }
10940
10941 _ACAWK
10942 _ACEOF
10943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10944 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10945   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10946 else
10947   cat
10948 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
10949   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
10950 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
10951    { (exit 1); exit 1; }; }
10952 _ACEOF
10953
10954 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10955 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10956 # trailing colons and then remove the whole line if VPATH becomes empty
10957 # (actually we leave an empty line to preserve line numbers).
10958 if test "x$srcdir" = x.; then
10959   ac_vpsub='/^[  ]*VPATH[        ]*=/{
10960 s/:*\$(srcdir):*/:/
10961 s/:*\${srcdir}:*/:/
10962 s/:*@srcdir@:*/:/
10963 s/^\([^=]*=[     ]*\):*/\1/
10964 s/:*$//
10965 s/^[^=]*=[       ]*$//
10966 }'
10967 fi
10968
10969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10970 fi # test -n "$CONFIG_FILES"
10971
10972 # Set up the scripts for CONFIG_HEADERS section.
10973 # No need to generate them if there are no CONFIG_HEADERS.
10974 # This happens for instance with `./config.status Makefile'.
10975 if test -n "$CONFIG_HEADERS"; then
10976 cat >"$tmp/defines.awk" <<\_ACAWK ||
10977 BEGIN {
10978 _ACEOF
10979
10980 # Transform confdefs.h into an awk script `defines.awk', embedded as
10981 # here-document in config.status, that substitutes the proper values into
10982 # config.h.in to produce config.h.
10983
10984 # Create a delimiter string that does not exist in confdefs.h, to ease
10985 # handling of long lines.
10986 ac_delim='%!_!# '
10987 for ac_last_try in false false :; do
10988   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
10989   if test -z "$ac_t"; then
10990     break
10991   elif $ac_last_try; then
10992     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
10993 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
10994    { (exit 1); exit 1; }; }
10995   else
10996     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10997   fi
10998 done
10999
11000 # For the awk script, D is an array of macro values keyed by name,
11001 # likewise P contains macro parameters if any.  Preserve backslash
11002 # newline sequences.
11003
11004 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11005 sed -n '
11006 s/.\{148\}/&'"$ac_delim"'/g
11007 t rset
11008 :rset
11009 s/^[     ]*#[    ]*define[       ][      ]*/ /
11010 t def
11011 d
11012 :def
11013 s/\\$//
11014 t bsnl
11015 s/["\\]/\\&/g
11016 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11017 D["\1"]=" \3"/p
11018 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
11019 d
11020 :bsnl
11021 s/["\\]/\\&/g
11022 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11023 D["\1"]=" \3\\\\\\n"\\/p
11024 t cont
11025 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11026 t cont
11027 d
11028 :cont
11029 n
11030 s/.\{148\}/&'"$ac_delim"'/g
11031 t clear
11032 :clear
11033 s/\\$//
11034 t bsnlc
11035 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11036 d
11037 :bsnlc
11038 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11039 b cont
11040 ' <confdefs.h | sed '
11041 s/'"$ac_delim"'/"\\\
11042 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11043
11044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11045   for (key in D) D_is_set[key] = 1
11046   FS = "\a"
11047 }
11048 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11049   line = \$ 0
11050   split(line, arg, " ")
11051   if (arg[1] == "#") {
11052     defundef = arg[2]
11053     mac1 = arg[3]
11054   } else {
11055     defundef = substr(arg[1], 2)
11056     mac1 = arg[2]
11057   }
11058   split(mac1, mac2, "(") #)
11059   macro = mac2[1]
11060   prefix = substr(line, 1, index(line, defundef) - 1)
11061   if (D_is_set[macro]) {
11062     # Preserve the white space surrounding the "#".
11063     print prefix "define", macro P[macro] D[macro]
11064     next
11065   } else {
11066     # Replace #undef with comments.  This is necessary, for example,
11067     # in the case of _POSIX_SOURCE, which is predefined and required
11068     # on some systems where configure will not decide to define it.
11069     if (defundef == "undef") {
11070       print "/*", prefix defundef, macro, "*/"
11071       next
11072     }
11073   }
11074 }
11075 { print }
11076 _ACAWK
11077 _ACEOF
11078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11079   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11080 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11081    { (exit 1); exit 1; }; }
11082 fi # test -n "$CONFIG_HEADERS"
11083
11084
11085 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
11086 shift
11087 for ac_tag
11088 do
11089   case $ac_tag in
11090   :[FHLC]) ac_mode=$ac_tag; continue;;
11091   esac
11092   case $ac_mode$ac_tag in
11093   :[FHL]*:*);;
11094   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11095 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11096    { (exit 1); exit 1; }; };;
11097   :[FH]-) ac_tag=-:-;;
11098   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11099   esac
11100   ac_save_IFS=$IFS
11101   IFS=:
11102   set x $ac_tag
11103   IFS=$ac_save_IFS
11104   shift
11105   ac_file=$1
11106   shift
11107
11108   case $ac_mode in
11109   :L) ac_source=$1;;
11110   :[FH])
11111     ac_file_inputs=
11112     for ac_f
11113     do
11114       case $ac_f in
11115       -) ac_f="$tmp/stdin";;
11116       *) # Look for the file first in the build tree, then in the source tree
11117          # (if the path is not absolute).  The absolute path cannot be DOS-style,
11118          # because $ac_f cannot contain `:'.
11119          test -f "$ac_f" ||
11120            case $ac_f in
11121            [\\/$]*) false;;
11122            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11123            esac ||
11124            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11125 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11126    { (exit 1); exit 1; }; };;
11127       esac
11128       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11129       ac_file_inputs="$ac_file_inputs '$ac_f'"
11130     done
11131
11132     # Let's still pretend it is `configure' which instantiates (i.e., don't
11133     # use $as_me), people would be surprised to read:
11134     #    /* config.h.  Generated by config.status.  */
11135     configure_input='Generated from '`
11136           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11137         `' by configure.'
11138     if test x"$ac_file" != x-; then
11139       configure_input="$ac_file.  $configure_input"
11140       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11141 $as_echo "$as_me: creating $ac_file" >&6;}
11142     fi
11143     # Neutralize special characters interpreted by sed in replacement strings.
11144     case $configure_input in #(
11145     *\&* | *\|* | *\\* )
11146        ac_sed_conf_input=`$as_echo "$configure_input" |
11147        sed 's/[\\\\&|]/\\\\&/g'`;; #(
11148     *) ac_sed_conf_input=$configure_input;;
11149     esac
11150
11151     case $ac_tag in
11152     *:-:* | *:-) cat >"$tmp/stdin" \
11153       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11154 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11155    { (exit 1); exit 1; }; } ;;
11156     esac
11157     ;;
11158   esac
11159
11160   ac_dir=`$as_dirname -- "$ac_file" ||
11161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11162          X"$ac_file" : 'X\(//\)[^/]' \| \
11163          X"$ac_file" : 'X\(//\)$' \| \
11164          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11165 $as_echo X"$ac_file" |
11166     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11167             s//\1/
11168             q
11169           }
11170           /^X\(\/\/\)[^/].*/{
11171             s//\1/
11172             q
11173           }
11174           /^X\(\/\/\)$/{
11175             s//\1/
11176             q
11177           }
11178           /^X\(\/\).*/{
11179             s//\1/
11180             q
11181           }
11182           s/.*/./; q'`
11183   { as_dir="$ac_dir"
11184   case $as_dir in #(
11185   -*) as_dir=./$as_dir;;
11186   esac
11187   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11188     as_dirs=
11189     while :; do
11190       case $as_dir in #(
11191       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11192       *) as_qdir=$as_dir;;
11193       esac
11194       as_dirs="'$as_qdir' $as_dirs"
11195       as_dir=`$as_dirname -- "$as_dir" ||
11196 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11197          X"$as_dir" : 'X\(//\)[^/]' \| \
11198          X"$as_dir" : 'X\(//\)$' \| \
11199          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11200 $as_echo X"$as_dir" |
11201     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11202             s//\1/
11203             q
11204           }
11205           /^X\(\/\/\)[^/].*/{
11206             s//\1/
11207             q
11208           }
11209           /^X\(\/\/\)$/{
11210             s//\1/
11211             q
11212           }
11213           /^X\(\/\).*/{
11214             s//\1/
11215             q
11216           }
11217           s/.*/./; q'`
11218       test -d "$as_dir" && break
11219     done
11220     test -z "$as_dirs" || eval "mkdir $as_dirs"
11221   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11222 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11223    { (exit 1); exit 1; }; }; }
11224   ac_builddir=.
11225
11226 case "$ac_dir" in
11227 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11228 *)
11229   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11230   # A ".." for each directory in $ac_dir_suffix.
11231   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11232   case $ac_top_builddir_sub in
11233   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11234   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11235   esac ;;
11236 esac
11237 ac_abs_top_builddir=$ac_pwd
11238 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11239 # for backward compatibility:
11240 ac_top_builddir=$ac_top_build_prefix
11241
11242 case $srcdir in
11243   .)  # We are building in place.
11244     ac_srcdir=.
11245     ac_top_srcdir=$ac_top_builddir_sub
11246     ac_abs_top_srcdir=$ac_pwd ;;
11247   [\\/]* | ?:[\\/]* )  # Absolute name.
11248     ac_srcdir=$srcdir$ac_dir_suffix;
11249     ac_top_srcdir=$srcdir
11250     ac_abs_top_srcdir=$srcdir ;;
11251   *) # Relative name.
11252     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11253     ac_top_srcdir=$ac_top_build_prefix$srcdir
11254     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11255 esac
11256 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11257
11258
11259   case $ac_mode in
11260   :F)
11261   #
11262   # CONFIG_FILE
11263   #
11264
11265   case $INSTALL in
11266   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11267   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11268   esac
11269 _ACEOF
11270
11271 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11272 # If the template does not know about datarootdir, expand it.
11273 # FIXME: This hack should be removed a few years after 2.60.
11274 ac_datarootdir_hack=; ac_datarootdir_seen=
11275
11276 ac_sed_dataroot='
11277 /datarootdir/ {
11278   p
11279   q
11280 }
11281 /@datadir@/p
11282 /@docdir@/p
11283 /@infodir@/p
11284 /@localedir@/p
11285 /@mandir@/p
11286 '
11287 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11288 *datarootdir*) ac_datarootdir_seen=yes;;
11289 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11290   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11291 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11292 _ACEOF
11293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11294   ac_datarootdir_hack='
11295   s&@datadir@&$datadir&g
11296   s&@docdir@&$docdir&g
11297   s&@infodir@&$infodir&g
11298   s&@localedir@&$localedir&g
11299   s&@mandir@&$mandir&g
11300     s&\\\${datarootdir}&$datarootdir&g' ;;
11301 esac
11302 _ACEOF
11303
11304 # Neutralize VPATH when `$srcdir' = `.'.
11305 # Shell code in configure.ac might set extrasub.
11306 # FIXME: do we really want to maintain this feature?
11307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11308 ac_sed_extra="$ac_vpsub
11309 $extrasub
11310 _ACEOF
11311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11312 :t
11313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11314 s|@configure_input@|$ac_sed_conf_input|;t t
11315 s&@top_builddir@&$ac_top_builddir_sub&;t t
11316 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11317 s&@srcdir@&$ac_srcdir&;t t
11318 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11319 s&@top_srcdir@&$ac_top_srcdir&;t t
11320 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11321 s&@builddir@&$ac_builddir&;t t
11322 s&@abs_builddir@&$ac_abs_builddir&;t t
11323 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11324 s&@INSTALL@&$ac_INSTALL&;t t
11325 $ac_datarootdir_hack
11326 "
11327 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11328   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11329 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11330    { (exit 1); exit 1; }; }
11331
11332 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11333   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11334   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11335   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11336 which seems to be undefined.  Please make sure it is defined." >&5
11337 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11338 which seems to be undefined.  Please make sure it is defined." >&2;}
11339
11340   rm -f "$tmp/stdin"
11341   case $ac_file in
11342   -) cat "$tmp/out" && rm -f "$tmp/out";;
11343   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11344   esac \
11345   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11346 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11347    { (exit 1); exit 1; }; }
11348  ;;
11349   :H)
11350   #
11351   # CONFIG_HEADER
11352   #
11353   if test x"$ac_file" != x-; then
11354     {
11355       $as_echo "/* $configure_input  */" \
11356       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11357     } >"$tmp/config.h" \
11358       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11359 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11360    { (exit 1); exit 1; }; }
11361     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11362       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11363 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11364     else
11365       rm -f "$ac_file"
11366       mv "$tmp/config.h" "$ac_file" \
11367         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11368 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11369    { (exit 1); exit 1; }; }
11370     fi
11371   else
11372     $as_echo "/* $configure_input  */" \
11373       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11374       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11375 $as_echo "$as_me: error: could not create -" >&2;}
11376    { (exit 1); exit 1; }; }
11377   fi
11378  ;;
11379
11380
11381   esac
11382
11383 done # for ac_tag
11384
11385
11386 { (exit 0); exit 0; }
11387 _ACEOF
11388 chmod +x $CONFIG_STATUS
11389 ac_clean_files=$ac_clean_files_save
11390
11391 test $ac_write_fail = 0 ||
11392   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11393 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11394    { (exit 1); exit 1; }; }
11395
11396
11397 # configure is writing to config.log, and then calls config.status.
11398 # config.status does its own redirection, appending to config.log.
11399 # Unfortunately, on DOS this fails, as config.log is still kept open
11400 # by configure, so config.status won't be able to write to it; its
11401 # output is simply discarded.  So we exec the FD to /dev/null,
11402 # effectively closing config.log, so it can be properly (re)opened and
11403 # appended to by config.status.  When coming back to configure, we
11404 # need to make the FD available again.
11405 if test "$no_create" != yes; then
11406   ac_cs_success=:
11407   ac_config_status_args=
11408   test "$silent" = yes &&
11409     ac_config_status_args="$ac_config_status_args --quiet"
11410   exec 5>/dev/null
11411   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11412   exec 5>>config.log
11413   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11414   # would make configure fail if this is the last instruction.
11415   $ac_cs_success || { (exit 1); exit 1; }
11416 fi
11417 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11418   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11419 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11420 fi
11421
11422
11423
11424 #
11425 # On development trees, create snapshots of config.status
11426 #
11427 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11428     if test "x${MINGW}" = "xyes"; then
11429         echo cp config.status config.status.win32
11430         cp config.status config.status.win32
11431     else
11432         if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE"  '=' "x";then
11433             echo cp config.status config.status.linux
11434             cp config.status config.status.linux
11435         fi
11436         if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE"  '=' "x";then
11437             echo cp config.status config.status.debug
11438             cp config.status config.status.debug
11439         fi
11440         if test "x$DEBUG"    = "x" -a "x$OPTIMIZE" '!=' "x"; then
11441             echo cp config.status config.status.optimize
11442             cp config.status config.status.optimize
11443         fi
11444     fi
11445 fi