7e03d9c711a7930dbdab77b622ae47039e56dc05
[swftools.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 as_nl='
41 '
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83   as_unset=unset
84 else
85   as_unset=false
86 fi
87
88
89 # IFS
90 # We need space, tab and new line, in precisely that order.  Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" ""        $as_nl"
95
96 # Find who we are.  Look in the path if we contain no directory separator.
97 case $0 in
98   *[\\/]* ) as_myself=$0 ;;
99   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
101 do
102   IFS=$as_save_IFS
103   test -z "$as_dir" && as_dir=.
104   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
107
108      ;;
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113   as_myself=$0
114 fi
115 if test ! -f "$as_myself"; then
116   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117   { (exit 1); exit 1; }
118 fi
119
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136    test "X`expr 00001 : '.*\(...\)'`" = X001; then
137   as_expr=expr
138 else
139   as_expr=false
140 fi
141
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143   as_basename=basename
144 else
145   as_basename=false
146 fi
147
148
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152          X"$0" : 'X\(//\)$' \| \
153          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155     sed '/^.*\/\([^/][^/]*\)\/*$/{
156             s//\1/
157             q
158           }
159           /^X\/\(\/\/\)$/{
160             s//\1/
161             q
162           }
163           /^X\/\(\/\).*/{
164             s//\1/
165             q
166           }
167           s/.*/./; q'`
168
169 # CDPATH.
170 $as_unset CDPATH
171
172
173 if test "x$CONFIG_SHELL" = x; then
174   if (eval ":") 2>/dev/null; then
175   as_have_required=yes
176 else
177   as_have_required=no
178 fi
179
180   if test $as_have_required = yes &&     (eval ":
181 (as_func_return () {
182   (exit \$1)
183 }
184 as_func_success () {
185   as_func_return 0
186 }
187 as_func_failure () {
188   as_func_return 1
189 }
190 as_func_ret_success () {
191   return 0
192 }
193 as_func_ret_failure () {
194   return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199   :
200 else
201   exitcode=1
202   echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206   exitcode=1
207   echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211   :
212 else
213   exitcode=1
214   echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218   exitcode=1
219   echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223   :
224 else
225   exitcode=1
226   echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232   as_lineno_1=\$LINENO
233   as_lineno_2=\$LINENO
234   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237   :
238 else
239   as_candidate_shells=
240     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243   IFS=$as_save_IFS
244   test -z "$as_dir" && as_dir=.
245   case $as_dir in
246          /*)
247            for as_base in sh bash ksh sh5; do
248              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249            done;;
250        esac
251 done
252 IFS=$as_save_IFS
253
254
255       for as_shell in $as_candidate_shells $SHELL; do
256          # Try only shells that exist, to save several forks.
257          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258                 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260   emulate sh
261   NULLCMD=:
262   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263   # is contrary to our usage.  Disable this feature.
264   alias -g '${1+"$@"}'='"$@"'
265   setopt NO_GLOB_SUBST
266 else
267   case `(set -o) 2>/dev/null` in
268   *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277   CONFIG_SHELL=$as_shell
278                as_have_required=yes
279                if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281   emulate sh
282   NULLCMD=:
283   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284   # is contrary to our usage.  Disable this feature.
285   alias -g '${1+"$@"}'='"$@"'
286   setopt NO_GLOB_SUBST
287 else
288   case `(set -o) 2>/dev/null` in
289   *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297   (exit $1)
298 }
299 as_func_success () {
300   as_func_return 0
301 }
302 as_func_failure () {
303   as_func_return 1
304 }
305 as_func_ret_success () {
306   return 0
307 }
308 as_func_ret_failure () {
309   return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314   :
315 else
316   exitcode=1
317   echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321   exitcode=1
322   echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326   :
327 else
328   exitcode=1
329   echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333   exitcode=1
334   echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338   :
339 else
340   exitcode=1
341   echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347   as_lineno_1=$LINENO
348   as_lineno_2=$LINENO
349   test "x$as_lineno_1" != "x$as_lineno_2" &&
350   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354   break
355 fi
356
357 fi
358
359       done
360
361       if test "x$CONFIG_SHELL" != x; then
362   for as_var in BASH_ENV ENV
363         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364         done
365         export CONFIG_SHELL
366         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370     if test $as_have_required = no; then
371   echo This script requires a shell more modern than all the
372       echo shells that I found on your system.  Please install a
373       echo modern shell, or manually run the script under such a
374       echo shell if you do have one.
375       { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386   (exit \$1)
387 }
388 as_func_success () {
389   as_func_return 0
390 }
391 as_func_failure () {
392   as_func_return 1
393 }
394 as_func_ret_success () {
395   return 0
396 }
397 as_func_ret_failure () {
398   return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403   :
404 else
405   exitcode=1
406   echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410   exitcode=1
411   echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415   :
416 else
417   exitcode=1
418   echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422   exitcode=1
423   echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427   :
428 else
429   exitcode=1
430   echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434   echo No shell found that supports shell functions.
435   echo Please tell bug-autoconf@gnu.org about your system,
436   echo including any error possibly output before this message.
437   echo This can help us improve future autoconf versions.
438   echo Configuration will now proceed without shell functions.
439 }
440
441
442
443   as_lineno_1=$LINENO
444   as_lineno_2=$LINENO
445   test "x$as_lineno_1" != "x$as_lineno_2" &&
446   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449   # uniformly replaced by the line number.  The first 'sed' inserts a
450   # line-number line after each line using $LINENO; the second 'sed'
451   # does the real work.  The second script uses 'N' to pair each
452   # line-number line with the line containing $LINENO, and appends
453   # trailing '-' during substitution so that $LINENO is not a special
454   # case at line end.
455   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456   # scripts with optimization help from Paolo Bonzini.  Blame Lee
457   # E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475    { (exit 1); exit 1; }; }
476
477   # Don't try to exec as it changes $[0], causing all sort of problems
478   # (the dirname of $[0] is not the place where we might find the
479   # original and so on.  Autoconf is especially sensitive to this).
480   . "./$as_me.lineno"
481   # Exit status is that of the last command.
482   exit
483 }
484
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487   as_dirname=dirname
488 else
489   as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495   case `echo 'x\c'` in
496   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
497   *)   ECHO_C='\c';;
498   esac;;
499 *)
500   ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
504   as_expr=expr
505 else
506   as_expr=false
507 fi
508
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511   rm -f conf$$.dir/conf$$.file
512 else
513   rm -f conf$$.dir
514   mkdir conf$$.dir 2>/dev/null
515 fi
516 if (echo >conf$$.file) 2>/dev/null; then
517   if ln -s conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s='ln -s'
519     # ... but there are two gotchas:
520     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522     # In both cases, we have to default to `cp -p'.
523     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524       as_ln_s='cp -p'
525   elif ln conf$$.file conf$$ 2>/dev/null; then
526     as_ln_s=ln
527   else
528     as_ln_s='cp -p'
529   fi
530 else
531   as_ln_s='cp -p'
532 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
535
536 if mkdir -p . 2>/dev/null; then
537   as_mkdir_p=:
538 else
539   test -d ./-p && rmdir ./-p
540   as_mkdir_p=false
541 fi
542
543 if test -x / >/dev/null 2>&1; then
544   as_test_x='test -x'
545 else
546   if ls -dL / >/dev/null 2>&1; then
547     as_ls_L_option=L
548   else
549     as_ls_L_option=
550   fi
551   as_test_x='
552     eval sh -c '\''
553       if test -d "$1"; then
554         test -d "$1/.";
555       else
556         case $1 in
557         -*)set "./$1";;
558         esac;
559         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560         ???[sx]*):;;*)false;;esac;fi
561     '\'' sh
562   '
563 fi
564 as_executable_p=$as_test_x
565
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
568
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571
572
573
574 exec 7<&0 </dev/null 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
600
601 ac_unique_file="src/"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 #  include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #  include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 PNG2SWF
641 GIF2SWF
642 JPEG2SWF
643 PDF2PDF
644 DEVICE_PDF
645 LIBPDF
646 PDF2SWF
647 RUBY_INSTALLDIR
648 RUBY_LDFLAGS
649 RUBY_CPPFLAGS
650 RUBY_LIBS
651 RUBY
652 HAVE_PYTHON_IMAGING
653 PYTHON_INCLUDES
654 PYTHON_LIB
655 USE_GZIP
656 VIDEO_CFLAGS
657 VIDEO_LIBS
658 AVIFILE_CONFIG
659 splash_in_source
660 xpdf_in_source
661 lame_in_source
662 DEVICE_OPENGL
663 FREETYPE_CONFIG
664 HAVE_UNISTD_H
665 VERSION
666 PACKAGE
667 EGREP
668 GREP
669 SYSTEM_BACKTICKS
670 WORDS_BIGENDIAN
671 target_os
672 target_vendor
673 target_cpu
674 target
675 STRIP
676 CXXLIBS
677 SLEXT
678 AR
679 AREXT
680 UNCOMPRESS
681 LN_S
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 SET_MAKE
686 RANLIB
687 CPP
688 ac_ct_CXX
689 CXXFLAGS
690 CXX
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
697 CC
698 SHARED
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 localstatedir
727 sharedstatedir
728 sysconfdir
729 datadir
730 datarootdir
731 libexecdir
732 sbindir
733 bindir
734 program_transform_name
735 prefix
736 exec_prefix
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files=''
745 ac_user_opts='
746 enable_option_checking
747 enable_checkmem
748 enable_debug
749 enable_profiling
750 enable_warnings
751 enable_optimizations
752 enable_lame
753 '
754       ac_precious_vars='build_alias
755 host_alias
756 target_alias
757 CC
758 CFLAGS
759 LDFLAGS
760 LIBS
761 CPPFLAGS
762 CXX
763 CXXFLAGS
764 CCC
765 CPP'
766
767
768 # Initialize some variables set by options.
769 ac_init_help=
770 ac_init_version=false
771 ac_unrecognized_opts=
772 ac_unrecognized_sep=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
775 cache_file=/dev/null
776 exec_prefix=NONE
777 no_create=
778 no_recursion=
779 prefix=NONE
780 program_prefix=NONE
781 program_suffix=NONE
782 program_transform_name=s,x,x,
783 silent=
784 site=
785 srcdir=
786 verbose=
787 x_includes=NONE
788 x_libraries=NONE
789
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
815
816 ac_prev=
817 ac_dashdash=
818 for ac_option
819 do
820   # If the previous option needs an argument, assign it.
821   if test -n "$ac_prev"; then
822     eval $ac_prev=\$ac_option
823     ac_prev=
824     continue
825   fi
826
827   case $ac_option in
828   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829   *)    ac_optarg=yes ;;
830   esac
831
832   # Accept the important Cygnus configure options, so we can diagnose typos.
833
834   case $ac_dashdash$ac_option in
835   --)
836     ac_dashdash=yes ;;
837
838   -bindir | --bindir | --bindi | --bind | --bin | --bi)
839     ac_prev=bindir ;;
840   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841     bindir=$ac_optarg ;;
842
843   -build | --build | --buil | --bui | --bu)
844     ac_prev=build_alias ;;
845   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846     build_alias=$ac_optarg ;;
847
848   -cache-file | --cache-file | --cache-fil | --cache-fi \
849   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850     ac_prev=cache_file ;;
851   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853     cache_file=$ac_optarg ;;
854
855   --config-cache | -C)
856     cache_file=config.cache ;;
857
858   -datadir | --datadir | --datadi | --datad)
859     ac_prev=datadir ;;
860   -datadir=* | --datadir=* | --datadi=* | --datad=*)
861     datadir=$ac_optarg ;;
862
863   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864   | --dataroo | --dataro | --datar)
865     ac_prev=datarootdir ;;
866   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868     datarootdir=$ac_optarg ;;
869
870   -disable-* | --disable-*)
871     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872     # Reject names that are not valid shell variable names.
873     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
875    { (exit 1); exit 1; }; }
876     ac_useropt_orig=$ac_useropt
877     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878     case $ac_user_opts in
879       *"
880 "enable_$ac_useropt"
881 "*) ;;
882       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883          ac_unrecognized_sep=', ';;
884     esac
885     eval enable_$ac_useropt=no ;;
886
887   -docdir | --docdir | --docdi | --doc | --do)
888     ac_prev=docdir ;;
889   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890     docdir=$ac_optarg ;;
891
892   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893     ac_prev=dvidir ;;
894   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895     dvidir=$ac_optarg ;;
896
897   -enable-* | --enable-*)
898     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899     # Reject names that are not valid shell variable names.
900     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
902    { (exit 1); exit 1; }; }
903     ac_useropt_orig=$ac_useropt
904     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905     case $ac_user_opts in
906       *"
907 "enable_$ac_useropt"
908 "*) ;;
909       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910          ac_unrecognized_sep=', ';;
911     esac
912     eval enable_$ac_useropt=\$ac_optarg ;;
913
914   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916   | --exec | --exe | --ex)
917     ac_prev=exec_prefix ;;
918   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920   | --exec=* | --exe=* | --ex=*)
921     exec_prefix=$ac_optarg ;;
922
923   -gas | --gas | --ga | --g)
924     # Obsolete; use --with-gas.
925     with_gas=yes ;;
926
927   -help | --help | --hel | --he | -h)
928     ac_init_help=long ;;
929   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930     ac_init_help=recursive ;;
931   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932     ac_init_help=short ;;
933
934   -host | --host | --hos | --ho)
935     ac_prev=host_alias ;;
936   -host=* | --host=* | --hos=* | --ho=*)
937     host_alias=$ac_optarg ;;
938
939   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940     ac_prev=htmldir ;;
941   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942   | --ht=*)
943     htmldir=$ac_optarg ;;
944
945   -includedir | --includedir | --includedi | --included | --include \
946   | --includ | --inclu | --incl | --inc)
947     ac_prev=includedir ;;
948   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949   | --includ=* | --inclu=* | --incl=* | --inc=*)
950     includedir=$ac_optarg ;;
951
952   -infodir | --infodir | --infodi | --infod | --info | --inf)
953     ac_prev=infodir ;;
954   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955     infodir=$ac_optarg ;;
956
957   -libdir | --libdir | --libdi | --libd)
958     ac_prev=libdir ;;
959   -libdir=* | --libdir=* | --libdi=* | --libd=*)
960     libdir=$ac_optarg ;;
961
962   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963   | --libexe | --libex | --libe)
964     ac_prev=libexecdir ;;
965   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966   | --libexe=* | --libex=* | --libe=*)
967     libexecdir=$ac_optarg ;;
968
969   -localedir | --localedir | --localedi | --localed | --locale)
970     ac_prev=localedir ;;
971   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972     localedir=$ac_optarg ;;
973
974   -localstatedir | --localstatedir | --localstatedi | --localstated \
975   | --localstate | --localstat | --localsta | --localst | --locals)
976     ac_prev=localstatedir ;;
977   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979     localstatedir=$ac_optarg ;;
980
981   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982     ac_prev=mandir ;;
983   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984     mandir=$ac_optarg ;;
985
986   -nfp | --nfp | --nf)
987     # Obsolete; use --without-fp.
988     with_fp=no ;;
989
990   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991   | --no-cr | --no-c | -n)
992     no_create=yes ;;
993
994   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996     no_recursion=yes ;;
997
998   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000   | --oldin | --oldi | --old | --ol | --o)
1001     ac_prev=oldincludedir ;;
1002   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005     oldincludedir=$ac_optarg ;;
1006
1007   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008     ac_prev=prefix ;;
1009   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010     prefix=$ac_optarg ;;
1011
1012   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013   | --program-pre | --program-pr | --program-p)
1014     ac_prev=program_prefix ;;
1015   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017     program_prefix=$ac_optarg ;;
1018
1019   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020   | --program-suf | --program-su | --program-s)
1021     ac_prev=program_suffix ;;
1022   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024     program_suffix=$ac_optarg ;;
1025
1026   -program-transform-name | --program-transform-name \
1027   | --program-transform-nam | --program-transform-na \
1028   | --program-transform-n | --program-transform- \
1029   | --program-transform | --program-transfor \
1030   | --program-transfo | --program-transf \
1031   | --program-trans | --program-tran \
1032   | --progr-tra | --program-tr | --program-t)
1033     ac_prev=program_transform_name ;;
1034   -program-transform-name=* | --program-transform-name=* \
1035   | --program-transform-nam=* | --program-transform-na=* \
1036   | --program-transform-n=* | --program-transform-=* \
1037   | --program-transform=* | --program-transfor=* \
1038   | --program-transfo=* | --program-transf=* \
1039   | --program-trans=* | --program-tran=* \
1040   | --progr-tra=* | --program-tr=* | --program-t=*)
1041     program_transform_name=$ac_optarg ;;
1042
1043   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044     ac_prev=pdfdir ;;
1045   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046     pdfdir=$ac_optarg ;;
1047
1048   -psdir | --psdir | --psdi | --psd | --ps)
1049     ac_prev=psdir ;;
1050   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051     psdir=$ac_optarg ;;
1052
1053   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054   | -silent | --silent | --silen | --sile | --sil)
1055     silent=yes ;;
1056
1057   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058     ac_prev=sbindir ;;
1059   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060   | --sbi=* | --sb=*)
1061     sbindir=$ac_optarg ;;
1062
1063   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065   | --sharedst | --shareds | --shared | --share | --shar \
1066   | --sha | --sh)
1067     ac_prev=sharedstatedir ;;
1068   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071   | --sha=* | --sh=*)
1072     sharedstatedir=$ac_optarg ;;
1073
1074   -site | --site | --sit)
1075     ac_prev=site ;;
1076   -site=* | --site=* | --sit=*)
1077     site=$ac_optarg ;;
1078
1079   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080     ac_prev=srcdir ;;
1081   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082     srcdir=$ac_optarg ;;
1083
1084   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085   | --syscon | --sysco | --sysc | --sys | --sy)
1086     ac_prev=sysconfdir ;;
1087   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089     sysconfdir=$ac_optarg ;;
1090
1091   -target | --target | --targe | --targ | --tar | --ta | --t)
1092     ac_prev=target_alias ;;
1093   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094     target_alias=$ac_optarg ;;
1095
1096   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097     verbose=yes ;;
1098
1099   -version | --version | --versio | --versi | --vers | -V)
1100     ac_init_version=: ;;
1101
1102   -with-* | --with-*)
1103     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104     # Reject names that are not valid shell variable names.
1105     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1107    { (exit 1); exit 1; }; }
1108     ac_useropt_orig=$ac_useropt
1109     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110     case $ac_user_opts in
1111       *"
1112 "with_$ac_useropt"
1113 "*) ;;
1114       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115          ac_unrecognized_sep=', ';;
1116     esac
1117     eval with_$ac_useropt=\$ac_optarg ;;
1118
1119   -without-* | --without-*)
1120     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121     # Reject names that are not valid shell variable names.
1122     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1124    { (exit 1); exit 1; }; }
1125     ac_useropt_orig=$ac_useropt
1126     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127     case $ac_user_opts in
1128       *"
1129 "with_$ac_useropt"
1130 "*) ;;
1131       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132          ac_unrecognized_sep=', ';;
1133     esac
1134     eval with_$ac_useropt=no ;;
1135
1136   --x)
1137     # Obsolete; use --with-x.
1138     with_x=yes ;;
1139
1140   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141   | --x-incl | --x-inc | --x-in | --x-i)
1142     ac_prev=x_includes ;;
1143   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145     x_includes=$ac_optarg ;;
1146
1147   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149     ac_prev=x_libraries ;;
1150   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152     x_libraries=$ac_optarg ;;
1153
1154   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1155 Try \`$0 --help' for more information." >&2
1156    { (exit 1); exit 1; }; }
1157     ;;
1158
1159   *=*)
1160     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1163       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1164    { (exit 1); exit 1; }; }
1165     eval $ac_envvar=\$ac_optarg
1166     export $ac_envvar ;;
1167
1168   *)
1169     # FIXME: should be removed in autoconf 3.0.
1170     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1174     ;;
1175
1176   esac
1177 done
1178
1179 if test -n "$ac_prev"; then
1180   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1182    { (exit 1); exit 1; }; }
1183 fi
1184
1185 if test -n "$ac_unrecognized_opts"; then
1186   case $enable_option_checking in
1187     no) ;;
1188     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1189    { (exit 1); exit 1; }; } ;;
1190     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191   esac
1192 fi
1193
1194 # Check all directory arguments for consistency.
1195 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196                 datadir sysconfdir sharedstatedir localstatedir includedir \
1197                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198                 libdir localedir mandir
1199 do
1200   eval ac_val=\$$ac_var
1201   # Remove trailing slashes.
1202   case $ac_val in
1203     */ )
1204       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205       eval $ac_var=\$ac_val;;
1206   esac
1207   # Be sure to have absolute directory names.
1208   case $ac_val in
1209     [\\/$]* | ?:[\\/]* )  continue;;
1210     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211   esac
1212   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213    { (exit 1); exit 1; }; }
1214 done
1215
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1222
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225   if test "x$build_alias" = x; then
1226     cross_compiling=maybe
1227     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228     If a cross compiler is detected then cross compile mode will be used." >&2
1229   elif test "x$build_alias" != "x$host_alias"; then
1230     cross_compiling=yes
1231   fi
1232 fi
1233
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236
1237 test "$silent" = yes && exec 6>/dev/null
1238
1239
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1244    { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1247    { (exit 1); exit 1; }; }
1248
1249
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252   ac_srcdir_defaulted=yes
1253   # Try the directory containing this script, then the parent directory.
1254   ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256          X"$as_myself" : 'X\(//\)[^/]' \| \
1257          X"$as_myself" : 'X\(//\)$' \| \
1258          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261             s//\1/
1262             q
1263           }
1264           /^X\(\/\/\)[^/].*/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)$/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\).*/{
1273             s//\1/
1274             q
1275           }
1276           s/.*/./; q'`
1277   srcdir=$ac_confdir
1278   if test ! -r "$srcdir/$ac_unique_file"; then
1279     srcdir=..
1280   fi
1281 else
1282   ac_srcdir_defaulted=no
1283 fi
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287    { (exit 1); exit 1; }; }
1288 fi
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1292    { (exit 1); exit 1; }; }
1293         pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296   srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_env_${ac_var}_value=\$${ac_var}
1307   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315   # Omit some internal or obsolete options to make the list less imposing.
1316   # This message is too long to be a string in the A/UX 3.1 sh.
1317   cat <<_ACEOF
1318 \`configure' configures this package to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE.  See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328   -h, --help              display this help and exit
1329       --help=short        display options specific to this package
1330       --help=recursive    display the short help of all the included packages
1331   -V, --version           display version information and exit
1332   -q, --quiet, --silent   do not print \`checking...' messages
1333       --cache-file=FILE   cache test results in FILE [disabled]
1334   -C, --config-cache      alias for \`--cache-file=config.cache'
1335   -n, --no-create         do not create output files
1336       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339   --prefix=PREFIX         install architecture-independent files in PREFIX
1340                           [$ac_default_prefix]
1341   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1342                           [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352   --bindir=DIR            user executables [EPREFIX/bin]
1353   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1354   --libexecdir=DIR        program executables [EPREFIX/libexec]
1355   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1356   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1357   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1358   --libdir=DIR            object code libraries [EPREFIX/lib]
1359   --includedir=DIR        C header files [PREFIX/include]
1360   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1361   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1362   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1363   --infodir=DIR           info documentation [DATAROOTDIR/info]
1364   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1365   --mandir=DIR            man documentation [DATAROOTDIR/man]
1366   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1367   --htmldir=DIR           html documentation [DOCDIR]
1368   --dvidir=DIR            dvi documentation [DOCDIR]
1369   --pdfdir=DIR            pdf documentation [DOCDIR]
1370   --psdir=DIR             ps documentation [DOCDIR]
1371 _ACEOF
1372
1373   cat <<\_ACEOF
1374
1375 Program names:
1376   --program-prefix=PREFIX            prepend PREFIX to installed program names
1377   --program-suffix=SUFFIX            append SUFFIX to installed program names
1378   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1379
1380 System types:
1381   --build=BUILD     configure for building on BUILD [guessed]
1382   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1383   --target=TARGET   configure for building compilers for TARGET [HOST]
1384 _ACEOF
1385 fi
1386
1387 if test -n "$ac_init_help"; then
1388
1389   cat <<\_ACEOF
1390
1391 Optional Features:
1392   --disable-option-checking  ignore unrecognized --enable/--with options
1393   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395   --enable-checkmem       turn on ccmalloc debugging
1396   --enable-debug          turn on debugging
1397   --enable-profiling      turn on profiling
1398   --enable-warnings        turn on compiler warnings
1399   --enable-optimizations  turn on compiler optimizations (recommended for avi2swf)
1400   --disable-lame          don't compile any L.A.M.E. mp3 encoding code in
1401
1402 Some influential environment variables:
1403   CC          C compiler command
1404   CFLAGS      C compiler flags
1405   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1406               nonstandard directory <lib dir>
1407   LIBS        libraries to pass to the linker, e.g. -l<library>
1408   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409               you have headers in a nonstandard directory <include dir>
1410   CXX         C++ compiler command
1411   CXXFLAGS    C++ compiler flags
1412   CPP         C preprocessor
1413
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1416
1417 _ACEOF
1418 ac_status=$?
1419 fi
1420
1421 if test "$ac_init_help" = "recursive"; then
1422   # If there are subdirs, report their specific --help.
1423   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424     test -d "$ac_dir" ||
1425       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426       continue
1427     ac_builddir=.
1428
1429 case "$ac_dir" in
1430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 *)
1432   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433   # A ".." for each directory in $ac_dir_suffix.
1434   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435   case $ac_top_builddir_sub in
1436   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438   esac ;;
1439 esac
1440 ac_abs_top_builddir=$ac_pwd
1441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442 # for backward compatibility:
1443 ac_top_builddir=$ac_top_build_prefix
1444
1445 case $srcdir in
1446   .)  # We are building in place.
1447     ac_srcdir=.
1448     ac_top_srcdir=$ac_top_builddir_sub
1449     ac_abs_top_srcdir=$ac_pwd ;;
1450   [\\/]* | ?:[\\/]* )  # Absolute name.
1451     ac_srcdir=$srcdir$ac_dir_suffix;
1452     ac_top_srcdir=$srcdir
1453     ac_abs_top_srcdir=$srcdir ;;
1454   *) # Relative name.
1455     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456     ac_top_srcdir=$ac_top_build_prefix$srcdir
1457     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 esac
1459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460
1461     cd "$ac_dir" || { ac_status=$?; continue; }
1462     # Check for guested configure.
1463     if test -f "$ac_srcdir/configure.gnu"; then
1464       echo &&
1465       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466     elif test -f "$ac_srcdir/configure"; then
1467       echo &&
1468       $SHELL "$ac_srcdir/configure" --help=recursive
1469     else
1470       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471     fi || ac_status=$?
1472     cd "$ac_pwd" || { ac_status=$?; break; }
1473   done
1474 fi
1475
1476 test -n "$ac_init_help" && exit $ac_status
1477 if $ac_init_version; then
1478   cat <<\_ACEOF
1479 configure
1480 generated by GNU Autoconf 2.63
1481
1482 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1483 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1484 This configure script is free software; the Free Software Foundation
1485 gives unlimited permission to copy, distribute and modify it.
1486 _ACEOF
1487   exit
1488 fi
1489 cat >config.log <<_ACEOF
1490 This file contains any messages produced by compilers while
1491 running configure, to aid debugging if configure makes a mistake.
1492
1493 It was created by $as_me, which was
1494 generated by GNU Autoconf 2.63.  Invocation command line was
1495
1496   $ $0 $@
1497
1498 _ACEOF
1499 exec 5>>config.log
1500 {
1501 cat <<_ASUNAME
1502 ## --------- ##
1503 ## Platform. ##
1504 ## --------- ##
1505
1506 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1507 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1508 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1509 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1510 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1511
1512 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1513 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1514
1515 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1516 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1517 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1518 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1519 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1520 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1521 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1522
1523 _ASUNAME
1524
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1527 do
1528   IFS=$as_save_IFS
1529   test -z "$as_dir" && as_dir=.
1530   $as_echo "PATH: $as_dir"
1531 done
1532 IFS=$as_save_IFS
1533
1534 } >&5
1535
1536 cat >&5 <<_ACEOF
1537
1538
1539 ## ----------- ##
1540 ## Core tests. ##
1541 ## ----------- ##
1542
1543 _ACEOF
1544
1545
1546 # Keep a trace of the command line.
1547 # Strip out --no-create and --no-recursion so they do not pile up.
1548 # Strip out --silent because we don't want to record it for future runs.
1549 # Also quote any args containing shell meta-characters.
1550 # Make two passes to allow for proper duplicate-argument suppression.
1551 ac_configure_args=
1552 ac_configure_args0=
1553 ac_configure_args1=
1554 ac_must_keep_next=false
1555 for ac_pass in 1 2
1556 do
1557   for ac_arg
1558   do
1559     case $ac_arg in
1560     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1561     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1562     | -silent | --silent | --silen | --sile | --sil)
1563       continue ;;
1564     *\'*)
1565       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1566     esac
1567     case $ac_pass in
1568     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1569     2)
1570       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1571       if test $ac_must_keep_next = true; then
1572         ac_must_keep_next=false # Got value, back to normal.
1573       else
1574         case $ac_arg in
1575           *=* | --config-cache | -C | -disable-* | --disable-* \
1576           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1577           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1578           | -with-* | --with-* | -without-* | --without-* | --x)
1579             case "$ac_configure_args0 " in
1580               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1581             esac
1582             ;;
1583           -* ) ac_must_keep_next=true ;;
1584         esac
1585       fi
1586       ac_configure_args="$ac_configure_args '$ac_arg'"
1587       ;;
1588     esac
1589   done
1590 done
1591 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1592 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1593
1594 # When interrupted or exit'd, cleanup temporary files, and complete
1595 # config.log.  We remove comments because anyway the quotes in there
1596 # would cause problems or look ugly.
1597 # WARNING: Use '\'' to represent an apostrophe within the trap.
1598 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1599 trap 'exit_status=$?
1600   # Save into config.log some information that might help in debugging.
1601   {
1602     echo
1603
1604     cat <<\_ASBOX
1605 ## ---------------- ##
1606 ## Cache variables. ##
1607 ## ---------------- ##
1608 _ASBOX
1609     echo
1610     # The following way of writing the cache mishandles newlines in values,
1611 (
1612   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1613     eval ac_val=\$$ac_var
1614     case $ac_val in #(
1615     *${as_nl}*)
1616       case $ac_var in #(
1617       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1618 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1619       esac
1620       case $ac_var in #(
1621       _ | IFS | as_nl) ;; #(
1622       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1623       *) $as_unset $ac_var ;;
1624       esac ;;
1625     esac
1626   done
1627   (set) 2>&1 |
1628     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1629     *${as_nl}ac_space=\ *)
1630       sed -n \
1631         "s/'\''/'\''\\\\'\'''\''/g;
1632           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1633       ;; #(
1634     *)
1635       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1636       ;;
1637     esac |
1638     sort
1639 )
1640     echo
1641
1642     cat <<\_ASBOX
1643 ## ----------------- ##
1644 ## Output variables. ##
1645 ## ----------------- ##
1646 _ASBOX
1647     echo
1648     for ac_var in $ac_subst_vars
1649     do
1650       eval ac_val=\$$ac_var
1651       case $ac_val in
1652       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1653       esac
1654       $as_echo "$ac_var='\''$ac_val'\''"
1655     done | sort
1656     echo
1657
1658     if test -n "$ac_subst_files"; then
1659       cat <<\_ASBOX
1660 ## ------------------- ##
1661 ## File substitutions. ##
1662 ## ------------------- ##
1663 _ASBOX
1664       echo
1665       for ac_var in $ac_subst_files
1666       do
1667         eval ac_val=\$$ac_var
1668         case $ac_val in
1669         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1670         esac
1671         $as_echo "$ac_var='\''$ac_val'\''"
1672       done | sort
1673       echo
1674     fi
1675
1676     if test -s confdefs.h; then
1677       cat <<\_ASBOX
1678 ## ----------- ##
1679 ## confdefs.h. ##
1680 ## ----------- ##
1681 _ASBOX
1682       echo
1683       cat confdefs.h
1684       echo
1685     fi
1686     test "$ac_signal" != 0 &&
1687       $as_echo "$as_me: caught signal $ac_signal"
1688     $as_echo "$as_me: exit $exit_status"
1689   } >&5
1690   rm -f core *.core core.conftest.* &&
1691     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1692     exit $exit_status
1693 ' 0
1694 for ac_signal in 1 2 13 15; do
1695   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1696 done
1697 ac_signal=0
1698
1699 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1700 rm -f -r conftest* confdefs.h
1701
1702 # Predefined preprocessor variables.
1703
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_NAME "$PACKAGE_NAME"
1706 _ACEOF
1707
1708
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1711 _ACEOF
1712
1713
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1716 _ACEOF
1717
1718
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_STRING "$PACKAGE_STRING"
1721 _ACEOF
1722
1723
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1726 _ACEOF
1727
1728
1729 # Let the site file select an alternate cache file if it wants to.
1730 # Prefer an explicitly selected file to automatically selected ones.
1731 ac_site_file1=NONE
1732 ac_site_file2=NONE
1733 if test -n "$CONFIG_SITE"; then
1734   ac_site_file1=$CONFIG_SITE
1735 elif test "x$prefix" != xNONE; then
1736   ac_site_file1=$prefix/share/config.site
1737   ac_site_file2=$prefix/etc/config.site
1738 else
1739   ac_site_file1=$ac_default_prefix/share/config.site
1740   ac_site_file2=$ac_default_prefix/etc/config.site
1741 fi
1742 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1743 do
1744   test "x$ac_site_file" = xNONE && continue
1745   if test -r "$ac_site_file"; then
1746     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1747 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1748     sed 's/^/| /' "$ac_site_file" >&5
1749     . "$ac_site_file"
1750   fi
1751 done
1752
1753 if test -r "$cache_file"; then
1754   # Some versions of bash will fail to source /dev/null (special
1755   # files actually), so we avoid doing that.
1756   if test -f "$cache_file"; then
1757     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1758 $as_echo "$as_me: loading cache $cache_file" >&6;}
1759     case $cache_file in
1760       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1761       *)                      . "./$cache_file";;
1762     esac
1763   fi
1764 else
1765   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1766 $as_echo "$as_me: creating cache $cache_file" >&6;}
1767   >$cache_file
1768 fi
1769
1770 # Check that the precious variables saved in the cache have kept the same
1771 # value.
1772 ac_cache_corrupted=false
1773 for ac_var in $ac_precious_vars; do
1774   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1775   eval ac_new_set=\$ac_env_${ac_var}_set
1776   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1777   eval ac_new_val=\$ac_env_${ac_var}_value
1778   case $ac_old_set,$ac_new_set in
1779     set,)
1780       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1781 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1782       ac_cache_corrupted=: ;;
1783     ,set)
1784       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1785 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1786       ac_cache_corrupted=: ;;
1787     ,);;
1788     *)
1789       if test "x$ac_old_val" != "x$ac_new_val"; then
1790         # differences in whitespace do not lead to failure.
1791         ac_old_val_w=`echo x $ac_old_val`
1792         ac_new_val_w=`echo x $ac_new_val`
1793         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1794           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1795 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1796           ac_cache_corrupted=:
1797         else
1798           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1799 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1800           eval $ac_var=\$ac_old_val
1801         fi
1802         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1803 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1804         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1805 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1806       fi;;
1807   esac
1808   # Pass precious variables to config.status.
1809   if test "$ac_new_set" = set; then
1810     case $ac_new_val in
1811     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1812     *) ac_arg=$ac_var=$ac_new_val ;;
1813     esac
1814     case " $ac_configure_args " in
1815       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1816       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1817     esac
1818   fi
1819 done
1820 if $ac_cache_corrupted; then
1821   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1823   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1824 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1825   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1826 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1827    { (exit 1); exit 1; }; }
1828 fi
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846 ac_ext=c
1847 ac_cpp='$CPP $CPPFLAGS'
1848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1851
1852
1853
1854
1855 # ------------------- option parsing -------------------------------
1856
1857 DEBUG=
1858 CHECKMEM=
1859 PROFILING=
1860 ENABLE_WARNINGS=
1861 OPTIMIZE=
1862 DISABLE_LAME=
1863
1864 # Check whether --enable-checkmem was given.
1865 if test "${enable_checkmem+set}" = set; then
1866   enableval=$enable_checkmem; CHECKMEM=true
1867 fi
1868
1869 # Check whether --enable-debug was given.
1870 if test "${enable_debug+set}" = set; then
1871   enableval=$enable_debug; DEBUG=true
1872 fi
1873
1874 # Check whether --enable-profiling was given.
1875 if test "${enable_profiling+set}" = set; then
1876   enableval=$enable_profiling; PROFILING=true
1877 fi
1878
1879 # Check whether --enable-warnings was given.
1880 if test "${enable_warnings+set}" = set; then
1881   enableval=$enable_warnings; ENABLE_WARNINGS=true
1882 fi
1883
1884 # Check whether --enable-optimizations was given.
1885 if test "${enable_optimizations+set}" = set; then
1886   enableval=$enable_optimizations; OPTIMIZE=true
1887 fi
1888
1889 # Check whether --enable-lame was given.
1890 if test "${enable_lame+set}" = set; then
1891   enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1892     DISABLE_LAME=yes
1893 fi
1894 else
1895   DISABLE_LAME=
1896 fi
1897
1898
1899 PACKAGE=swftools
1900 VERSION=2010-02-06-1900
1901
1902 # ------------------------------------------------------------------
1903
1904 if test "x${srcdir}" != "x."; then
1905     echo "--srcdir is not supported"
1906     exit 1
1907 fi
1908
1909 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings -Wformat"
1910 if test "x$ENABLE_WARNINGS" '!=' "x";then
1911     WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
1912 fi
1913
1914 if test "x$CHECKMEM" '!=' "x";then
1915     DEBUG=yes
1916 fi
1917 if test "x$PROFILING" '!=' "x";then
1918     DEBUG=yes
1919 fi
1920 if test "x$DEBUG" '!=' "x";then
1921     if test "x$PROFILING" = "x";then
1922         CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1923         CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1924         LDFLAGS="-g $LDFLAGS"
1925     else
1926         CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1927         CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1928         LDFLAGS="-g -pg $LDFLAGS"
1929     fi
1930 else if test "x$OPTIMIZE" '!=' "x"; then
1931     CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1932     CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1933 else
1934     CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1935     CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1936 fi
1937 fi
1938
1939 CFLAGS="-fPIC $CFLAGS"
1940 CXXFLAGS="-fPIC $CFLAGS"
1941
1942 #OLDGCC=1
1943 #if test "x$OLDGCC" '!=' "x";then
1944 #     #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1945 #     #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1946 #     CFLAGS="$CFLAGS -ansi -pendantic"
1947 #     CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1948 #fi
1949
1950 export PACKAGE VERSION CFLAGS CXXFLAGS
1951
1952
1953 ac_aux_dir=
1954 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1955   if test -f "$ac_dir/install-sh"; then
1956     ac_aux_dir=$ac_dir
1957     ac_install_sh="$ac_aux_dir/install-sh -c"
1958     break
1959   elif test -f "$ac_dir/install.sh"; then
1960     ac_aux_dir=$ac_dir
1961     ac_install_sh="$ac_aux_dir/install.sh -c"
1962     break
1963   elif test -f "$ac_dir/shtool"; then
1964     ac_aux_dir=$ac_dir
1965     ac_install_sh="$ac_aux_dir/shtool install -c"
1966     break
1967   fi
1968 done
1969 if test -z "$ac_aux_dir"; then
1970   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1971 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1972    { (exit 1); exit 1; }; }
1973 fi
1974
1975 # These three variables are undocumented and unsupported,
1976 # and are intended to be withdrawn in a future Autoconf release.
1977 # They can cause serious problems if a builder's source tree is in a directory
1978 # whose full name contains unusual characters.
1979 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1980 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1981 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1982
1983
1984 # Make sure we can run config.sub.
1985 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1986   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1987 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1988    { (exit 1); exit 1; }; }
1989
1990 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1991 $as_echo_n "checking build system type... " >&6; }
1992 if test "${ac_cv_build+set}" = set; then
1993   $as_echo_n "(cached) " >&6
1994 else
1995   ac_build_alias=$build_alias
1996 test "x$ac_build_alias" = x &&
1997   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1998 test "x$ac_build_alias" = x &&
1999   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2000 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2001    { (exit 1); exit 1; }; }
2002 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2003   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2004 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2005    { (exit 1); exit 1; }; }
2006
2007 fi
2008 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2009 $as_echo "$ac_cv_build" >&6; }
2010 case $ac_cv_build in
2011 *-*-*) ;;
2012 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2013 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2014    { (exit 1); exit 1; }; };;
2015 esac
2016 build=$ac_cv_build
2017 ac_save_IFS=$IFS; IFS='-'
2018 set x $ac_cv_build
2019 shift
2020 build_cpu=$1
2021 build_vendor=$2
2022 shift; shift
2023 # Remember, the first character of IFS is used to create $*,
2024 # except with old shells:
2025 build_os=$*
2026 IFS=$ac_save_IFS
2027 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2028
2029
2030 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2031 $as_echo_n "checking host system type... " >&6; }
2032 if test "${ac_cv_host+set}" = set; then
2033   $as_echo_n "(cached) " >&6
2034 else
2035   if test "x$host_alias" = x; then
2036   ac_cv_host=$ac_cv_build
2037 else
2038   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2039     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2040 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2041    { (exit 1); exit 1; }; }
2042 fi
2043
2044 fi
2045 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2046 $as_echo "$ac_cv_host" >&6; }
2047 case $ac_cv_host in
2048 *-*-*) ;;
2049 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2050 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2051    { (exit 1); exit 1; }; };;
2052 esac
2053 host=$ac_cv_host
2054 ac_save_IFS=$IFS; IFS='-'
2055 set x $ac_cv_host
2056 shift
2057 host_cpu=$1
2058 host_vendor=$2
2059 shift; shift
2060 # Remember, the first character of IFS is used to create $*,
2061 # except with old shells:
2062 host_os=$*
2063 IFS=$ac_save_IFS
2064 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2065
2066
2067
2068 SHARED="-shared"
2069 MACOSX=
2070 case $host_os in
2071     *darwin* )
2072         MACOSX=yes
2073         CFLAGS="$CFLAGS"
2074         CXXFLAGS="$CXXFLAGS -fno-rtti"
2075         SHARED="-bundle"
2076         if test -d /opt/local/include && test -d /opt/local/lib; then
2077             CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2078             LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2079         fi
2080         # Use fink packages if available.
2081         #if test -d /sw/include && test -d /sw/lib; then
2082         #    CPPFLAGS="${CPPFLAGS} -I/sw/include"
2083         #    LDFLAGS="${LDFLAGS} -L/sw/lib"
2084         #fi
2085         ;;
2086 esac
2087
2088
2089
2090  ac_ext=c
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 if test -n "$ac_tool_prefix"; then
2096   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 $as_echo_n "checking for $ac_word... " >&6; }
2100 if test "${ac_cv_prog_CC+set}" = set; then
2101   $as_echo_n "(cached) " >&6
2102 else
2103   if test -n "$CC"; then
2104   ac_cv_prog_CC="$CC" # Let the user override the test.
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2108 do
2109   IFS=$as_save_IFS
2110   test -z "$as_dir" && as_dir=.
2111   for ac_exec_ext in '' $ac_executable_extensions; do
2112   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2113     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2114     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115     break 2
2116   fi
2117 done
2118 done
2119 IFS=$as_save_IFS
2120
2121 fi
2122 fi
2123 CC=$ac_cv_prog_CC
2124 if test -n "$CC"; then
2125   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2126 $as_echo "$CC" >&6; }
2127 else
2128   { $as_echo "$as_me:$LINENO: result: no" >&5
2129 $as_echo "no" >&6; }
2130 fi
2131
2132
2133 fi
2134 if test -z "$ac_cv_prog_CC"; then
2135   ac_ct_CC=$CC
2136   # Extract the first word of "gcc", so it can be a program name with args.
2137 set dummy gcc; ac_word=$2
2138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 $as_echo_n "checking for $ac_word... " >&6; }
2140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2141   $as_echo_n "(cached) " >&6
2142 else
2143   if test -n "$ac_ct_CC"; then
2144   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2145 else
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2148 do
2149   IFS=$as_save_IFS
2150   test -z "$as_dir" && as_dir=.
2151   for ac_exec_ext in '' $ac_executable_extensions; do
2152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2153     ac_cv_prog_ac_ct_CC="gcc"
2154     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155     break 2
2156   fi
2157 done
2158 done
2159 IFS=$as_save_IFS
2160
2161 fi
2162 fi
2163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2164 if test -n "$ac_ct_CC"; then
2165   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2166 $as_echo "$ac_ct_CC" >&6; }
2167 else
2168   { $as_echo "$as_me:$LINENO: result: no" >&5
2169 $as_echo "no" >&6; }
2170 fi
2171
2172   if test "x$ac_ct_CC" = x; then
2173     CC=""
2174   else
2175     case $cross_compiling:$ac_tool_warned in
2176 yes:)
2177 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2179 ac_tool_warned=yes ;;
2180 esac
2181     CC=$ac_ct_CC
2182   fi
2183 else
2184   CC="$ac_cv_prog_CC"
2185 fi
2186
2187 if test -z "$CC"; then
2188           if test -n "$ac_tool_prefix"; then
2189     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2190 set dummy ${ac_tool_prefix}cc; ac_word=$2
2191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 $as_echo_n "checking for $ac_word... " >&6; }
2193 if test "${ac_cv_prog_CC+set}" = set; then
2194   $as_echo_n "(cached) " >&6
2195 else
2196   if test -n "$CC"; then
2197   ac_cv_prog_CC="$CC" # Let the user override the test.
2198 else
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2201 do
2202   IFS=$as_save_IFS
2203   test -z "$as_dir" && as_dir=.
2204   for ac_exec_ext in '' $ac_executable_extensions; do
2205   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206     ac_cv_prog_CC="${ac_tool_prefix}cc"
2207     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208     break 2
2209   fi
2210 done
2211 done
2212 IFS=$as_save_IFS
2213
2214 fi
2215 fi
2216 CC=$ac_cv_prog_CC
2217 if test -n "$CC"; then
2218   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2219 $as_echo "$CC" >&6; }
2220 else
2221   { $as_echo "$as_me:$LINENO: result: no" >&5
2222 $as_echo "no" >&6; }
2223 fi
2224
2225
2226   fi
2227 fi
2228 if test -z "$CC"; then
2229   # Extract the first word of "cc", so it can be a program name with args.
2230 set dummy cc; ac_word=$2
2231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 $as_echo_n "checking for $ac_word... " >&6; }
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234   $as_echo_n "(cached) " >&6
2235 else
2236   if test -n "$CC"; then
2237   ac_cv_prog_CC="$CC" # Let the user override the test.
2238 else
2239   ac_prog_rejected=no
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2242 do
2243   IFS=$as_save_IFS
2244   test -z "$as_dir" && as_dir=.
2245   for ac_exec_ext in '' $ac_executable_extensions; do
2246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2248        ac_prog_rejected=yes
2249        continue
2250      fi
2251     ac_cv_prog_CC="cc"
2252     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253     break 2
2254   fi
2255 done
2256 done
2257 IFS=$as_save_IFS
2258
2259 if test $ac_prog_rejected = yes; then
2260   # We found a bogon in the path, so make sure we never use it.
2261   set dummy $ac_cv_prog_CC
2262   shift
2263   if test $# != 0; then
2264     # We chose a different compiler from the bogus one.
2265     # However, it has the same basename, so the bogon will be chosen
2266     # first if we set CC to just the basename; use the full file name.
2267     shift
2268     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2269   fi
2270 fi
2271 fi
2272 fi
2273 CC=$ac_cv_prog_CC
2274 if test -n "$CC"; then
2275   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2276 $as_echo "$CC" >&6; }
2277 else
2278   { $as_echo "$as_me:$LINENO: result: no" >&5
2279 $as_echo "no" >&6; }
2280 fi
2281
2282
2283 fi
2284 if test -z "$CC"; then
2285   if test -n "$ac_tool_prefix"; then
2286   for ac_prog in cl.exe
2287   do
2288     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 $as_echo_n "checking for $ac_word... " >&6; }
2292 if test "${ac_cv_prog_CC+set}" = set; then
2293   $as_echo_n "(cached) " >&6
2294 else
2295   if test -n "$CC"; then
2296   ac_cv_prog_CC="$CC" # Let the user override the test.
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2300 do
2301   IFS=$as_save_IFS
2302   test -z "$as_dir" && as_dir=.
2303   for ac_exec_ext in '' $ac_executable_extensions; do
2304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2306     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307     break 2
2308   fi
2309 done
2310 done
2311 IFS=$as_save_IFS
2312
2313 fi
2314 fi
2315 CC=$ac_cv_prog_CC
2316 if test -n "$CC"; then
2317   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2318 $as_echo "$CC" >&6; }
2319 else
2320   { $as_echo "$as_me:$LINENO: result: no" >&5
2321 $as_echo "no" >&6; }
2322 fi
2323
2324
2325     test -n "$CC" && break
2326   done
2327 fi
2328 if test -z "$CC"; then
2329   ac_ct_CC=$CC
2330   for ac_prog in cl.exe
2331 do
2332   # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 $as_echo_n "checking for $ac_word... " >&6; }
2336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2337   $as_echo_n "(cached) " >&6
2338 else
2339   if test -n "$ac_ct_CC"; then
2340   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2344 do
2345   IFS=$as_save_IFS
2346   test -z "$as_dir" && as_dir=.
2347   for ac_exec_ext in '' $ac_executable_extensions; do
2348   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349     ac_cv_prog_ac_ct_CC="$ac_prog"
2350     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351     break 2
2352   fi
2353 done
2354 done
2355 IFS=$as_save_IFS
2356
2357 fi
2358 fi
2359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2360 if test -n "$ac_ct_CC"; then
2361   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2362 $as_echo "$ac_ct_CC" >&6; }
2363 else
2364   { $as_echo "$as_me:$LINENO: result: no" >&5
2365 $as_echo "no" >&6; }
2366 fi
2367
2368
2369   test -n "$ac_ct_CC" && break
2370 done
2371
2372   if test "x$ac_ct_CC" = x; then
2373     CC=""
2374   else
2375     case $cross_compiling:$ac_tool_warned in
2376 yes:)
2377 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2379 ac_tool_warned=yes ;;
2380 esac
2381     CC=$ac_ct_CC
2382   fi
2383 fi
2384
2385 fi
2386
2387
2388 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2391 See \`config.log' for more details." >&5
2392 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2393 See \`config.log' for more details." >&2;}
2394    { (exit 1); exit 1; }; }; }
2395
2396 # Provide some information about the compiler.
2397 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2398 set X $ac_compile
2399 ac_compiler=$2
2400 { (ac_try="$ac_compiler --version >&5"
2401 case "(($ac_try" in
2402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403   *) ac_try_echo=$ac_try;;
2404 esac
2405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2406 $as_echo "$ac_try_echo") >&5
2407   (eval "$ac_compiler --version >&5") 2>&5
2408   ac_status=$?
2409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410   (exit $ac_status); }
2411 { (ac_try="$ac_compiler -v >&5"
2412 case "(($ac_try" in
2413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414   *) ac_try_echo=$ac_try;;
2415 esac
2416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2417 $as_echo "$ac_try_echo") >&5
2418   (eval "$ac_compiler -v >&5") 2>&5
2419   ac_status=$?
2420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421   (exit $ac_status); }
2422 { (ac_try="$ac_compiler -V >&5"
2423 case "(($ac_try" in
2424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425   *) ac_try_echo=$ac_try;;
2426 esac
2427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2428 $as_echo "$ac_try_echo") >&5
2429   (eval "$ac_compiler -V >&5") 2>&5
2430   ac_status=$?
2431   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432   (exit $ac_status); }
2433
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h.  */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h.  */
2440
2441 int
2442 main ()
2443 {
2444
2445   ;
2446   return 0;
2447 }
2448 _ACEOF
2449 ac_clean_files_save=$ac_clean_files
2450 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2451 # Try to create an executable without -o first, disregard a.out.
2452 # It will help us diagnose broken compilers, and finding out an intuition
2453 # of exeext.
2454 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2455 $as_echo_n "checking for C compiler default output file name... " >&6; }
2456 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2457
2458 # The possible output files:
2459 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2460
2461 ac_rmfiles=
2462 for ac_file in $ac_files
2463 do
2464   case $ac_file in
2465     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2466     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2467   esac
2468 done
2469 rm -f $ac_rmfiles
2470
2471 if { (ac_try="$ac_link_default"
2472 case "(($ac_try" in
2473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474   *) ac_try_echo=$ac_try;;
2475 esac
2476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2477 $as_echo "$ac_try_echo") >&5
2478   (eval "$ac_link_default") 2>&5
2479   ac_status=$?
2480   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481   (exit $ac_status); }; then
2482   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2483 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2484 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2485 # so that the user can short-circuit this test for compilers unknown to
2486 # Autoconf.
2487 for ac_file in $ac_files ''
2488 do
2489   test -f "$ac_file" || continue
2490   case $ac_file in
2491     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2492         ;;
2493     [ab].out )
2494         # We found the default executable, but exeext='' is most
2495         # certainly right.
2496         break;;
2497     *.* )
2498         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2499         then :; else
2500            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2501         fi
2502         # We set ac_cv_exeext here because the later test for it is not
2503         # safe: cross compilers may not add the suffix if given an `-o'
2504         # argument, so we may need to know it at that point already.
2505         # Even if this section looks crufty: it has the advantage of
2506         # actually working.
2507         break;;
2508     * )
2509         break;;
2510   esac
2511 done
2512 test "$ac_cv_exeext" = no && ac_cv_exeext=
2513
2514 else
2515   ac_file=''
2516 fi
2517
2518 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2519 $as_echo "$ac_file" >&6; }
2520 if test -z "$ac_file"; then
2521   $as_echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2523
2524 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2527 See \`config.log' for more details." >&5
2528 $as_echo "$as_me: error: C compiler cannot create executables
2529 See \`config.log' for more details." >&2;}
2530    { (exit 77); exit 77; }; }; }
2531 fi
2532
2533 ac_exeext=$ac_cv_exeext
2534
2535 # Check that the compiler produces executables we can run.  If not, either
2536 # the compiler is broken, or we cross compile.
2537 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2538 $as_echo_n "checking whether the C compiler works... " >&6; }
2539 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2540 # If not cross compiling, check that we can run a simple program.
2541 if test "$cross_compiling" != yes; then
2542   if { ac_try='./$ac_file'
2543   { (case "(($ac_try" in
2544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545   *) ac_try_echo=$ac_try;;
2546 esac
2547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2548 $as_echo "$ac_try_echo") >&5
2549   (eval "$ac_try") 2>&5
2550   ac_status=$?
2551   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552   (exit $ac_status); }; }; then
2553     cross_compiling=no
2554   else
2555     if test "$cross_compiling" = maybe; then
2556         cross_compiling=yes
2557     else
2558         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2561 If you meant to cross compile, use \`--host'.
2562 See \`config.log' for more details." >&5
2563 $as_echo "$as_me: error: cannot run C compiled programs.
2564 If you meant to cross compile, use \`--host'.
2565 See \`config.log' for more details." >&2;}
2566    { (exit 1); exit 1; }; }; }
2567     fi
2568   fi
2569 fi
2570 { $as_echo "$as_me:$LINENO: result: yes" >&5
2571 $as_echo "yes" >&6; }
2572
2573 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2574 ac_clean_files=$ac_clean_files_save
2575 # Check that the compiler produces executables we can run.  If not, either
2576 # the compiler is broken, or we cross compile.
2577 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2578 $as_echo_n "checking whether we are cross compiling... " >&6; }
2579 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2580 $as_echo "$cross_compiling" >&6; }
2581
2582 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2583 $as_echo_n "checking for suffix of executables... " >&6; }
2584 if { (ac_try="$ac_link"
2585 case "(($ac_try" in
2586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587   *) ac_try_echo=$ac_try;;
2588 esac
2589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2590 $as_echo "$ac_try_echo") >&5
2591   (eval "$ac_link") 2>&5
2592   ac_status=$?
2593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594   (exit $ac_status); }; then
2595   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2596 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2597 # work properly (i.e., refer to `conftest.exe'), while it won't with
2598 # `rm'.
2599 for ac_file in conftest.exe conftest conftest.*; do
2600   test -f "$ac_file" || continue
2601   case $ac_file in
2602     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2603     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2604           break;;
2605     * ) break;;
2606   esac
2607 done
2608 else
2609   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2611 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2612 See \`config.log' for more details." >&5
2613 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details." >&2;}
2615    { (exit 1); exit 1; }; }; }
2616 fi
2617
2618 rm -f conftest$ac_cv_exeext
2619 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2620 $as_echo "$ac_cv_exeext" >&6; }
2621
2622 rm -f conftest.$ac_ext
2623 EXEEXT=$ac_cv_exeext
2624 ac_exeext=$EXEEXT
2625 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2626 $as_echo_n "checking for suffix of object files... " >&6; }
2627 if test "${ac_cv_objext+set}" = set; then
2628   $as_echo_n "(cached) " >&6
2629 else
2630   cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h.  */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h.  */
2636
2637 int
2638 main ()
2639 {
2640
2641   ;
2642   return 0;
2643 }
2644 _ACEOF
2645 rm -f conftest.o conftest.obj
2646 if { (ac_try="$ac_compile"
2647 case "(($ac_try" in
2648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649   *) ac_try_echo=$ac_try;;
2650 esac
2651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2652 $as_echo "$ac_try_echo") >&5
2653   (eval "$ac_compile") 2>&5
2654   ac_status=$?
2655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; then
2657   for ac_file in conftest.o conftest.obj conftest.*; do
2658   test -f "$ac_file" || continue;
2659   case $ac_file in
2660     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2661     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2662        break;;
2663   esac
2664 done
2665 else
2666   $as_echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2668
2669 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2672 See \`config.log' for more details." >&5
2673 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2674 See \`config.log' for more details." >&2;}
2675    { (exit 1); exit 1; }; }; }
2676 fi
2677
2678 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2679 fi
2680 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2681 $as_echo "$ac_cv_objext" >&6; }
2682 OBJEXT=$ac_cv_objext
2683 ac_objext=$OBJEXT
2684 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2685 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2686 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2687   $as_echo_n "(cached) " >&6
2688 else
2689   cat >conftest.$ac_ext <<_ACEOF
2690 /* confdefs.h.  */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h.  */
2695
2696 int
2697 main ()
2698 {
2699 #ifndef __GNUC__
2700        choke me
2701 #endif
2702
2703   ;
2704   return 0;
2705 }
2706 _ACEOF
2707 rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2709 case "(($ac_try" in
2710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711   *) ac_try_echo=$ac_try;;
2712 esac
2713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2714 $as_echo "$ac_try_echo") >&5
2715   (eval "$ac_compile") 2>conftest.er1
2716   ac_status=$?
2717   grep -v '^ *+' conftest.er1 >conftest.err
2718   rm -f conftest.er1
2719   cat conftest.err >&5
2720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); } && {
2722          test -z "$ac_c_werror_flag" ||
2723          test ! -s conftest.err
2724        } && test -s conftest.$ac_objext; then
2725   ac_compiler_gnu=yes
2726 else
2727   $as_echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2729
2730         ac_compiler_gnu=no
2731 fi
2732
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2735
2736 fi
2737 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2738 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2739 if test $ac_compiler_gnu = yes; then
2740   GCC=yes
2741 else
2742   GCC=
2743 fi
2744 ac_test_CFLAGS=${CFLAGS+set}
2745 ac_save_CFLAGS=$CFLAGS
2746 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2747 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2748 if test "${ac_cv_prog_cc_g+set}" = set; then
2749   $as_echo_n "(cached) " >&6
2750 else
2751   ac_save_c_werror_flag=$ac_c_werror_flag
2752    ac_c_werror_flag=yes
2753    ac_cv_prog_cc_g=no
2754    CFLAGS="-g"
2755    cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h.  */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h.  */
2761
2762 int
2763 main ()
2764 {
2765
2766   ;
2767   return 0;
2768 }
2769 _ACEOF
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2772 case "(($ac_try" in
2773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774   *) ac_try_echo=$ac_try;;
2775 esac
2776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2777 $as_echo "$ac_try_echo") >&5
2778   (eval "$ac_compile") 2>conftest.er1
2779   ac_status=$?
2780   grep -v '^ *+' conftest.er1 >conftest.err
2781   rm -f conftest.er1
2782   cat conftest.err >&5
2783   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784   (exit $ac_status); } && {
2785          test -z "$ac_c_werror_flag" ||
2786          test ! -s conftest.err
2787        } && test -s conftest.$ac_objext; then
2788   ac_cv_prog_cc_g=yes
2789 else
2790   $as_echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2792
2793         CFLAGS=""
2794       cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h.  */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h.  */
2800
2801 int
2802 main ()
2803 {
2804
2805   ;
2806   return 0;
2807 }
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (ac_try="$ac_compile"
2811 case "(($ac_try" in
2812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813   *) ac_try_echo=$ac_try;;
2814 esac
2815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2816 $as_echo "$ac_try_echo") >&5
2817   (eval "$ac_compile") 2>conftest.er1
2818   ac_status=$?
2819   grep -v '^ *+' conftest.er1 >conftest.err
2820   rm -f conftest.er1
2821   cat conftest.err >&5
2822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823   (exit $ac_status); } && {
2824          test -z "$ac_c_werror_flag" ||
2825          test ! -s conftest.err
2826        } && test -s conftest.$ac_objext; then
2827   :
2828 else
2829   $as_echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2831
2832         ac_c_werror_flag=$ac_save_c_werror_flag
2833          CFLAGS="-g"
2834          cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h.  */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h.  */
2840
2841 int
2842 main ()
2843 {
2844
2845   ;
2846   return 0;
2847 }
2848 _ACEOF
2849 rm -f conftest.$ac_objext
2850 if { (ac_try="$ac_compile"
2851 case "(($ac_try" in
2852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853   *) ac_try_echo=$ac_try;;
2854 esac
2855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2856 $as_echo "$ac_try_echo") >&5
2857   (eval "$ac_compile") 2>conftest.er1
2858   ac_status=$?
2859   grep -v '^ *+' conftest.er1 >conftest.err
2860   rm -f conftest.er1
2861   cat conftest.err >&5
2862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863   (exit $ac_status); } && {
2864          test -z "$ac_c_werror_flag" ||
2865          test ! -s conftest.err
2866        } && test -s conftest.$ac_objext; then
2867   ac_cv_prog_cc_g=yes
2868 else
2869   $as_echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2871
2872
2873 fi
2874
2875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876 fi
2877
2878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2879 fi
2880
2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882    ac_c_werror_flag=$ac_save_c_werror_flag
2883 fi
2884 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2885 $as_echo "$ac_cv_prog_cc_g" >&6; }
2886 if test "$ac_test_CFLAGS" = set; then
2887   CFLAGS=$ac_save_CFLAGS
2888 elif test $ac_cv_prog_cc_g = yes; then
2889   if test "$GCC" = yes; then
2890     CFLAGS="-g -O2"
2891   else
2892     CFLAGS="-g"
2893   fi
2894 else
2895   if test "$GCC" = yes; then
2896     CFLAGS="-O2"
2897   else
2898     CFLAGS=
2899   fi
2900 fi
2901 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2902 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2903 if test "${ac_cv_prog_cc_c89+set}" = set; then
2904   $as_echo_n "(cached) " >&6
2905 else
2906   ac_cv_prog_cc_c89=no
2907 ac_save_CC=$CC
2908 cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h.  */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h.  */
2914 #include <stdarg.h>
2915 #include <stdio.h>
2916 #include <sys/types.h>
2917 #include <sys/stat.h>
2918 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2919 struct buf { int x; };
2920 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2921 static char *e (p, i)
2922      char **p;
2923      int i;
2924 {
2925   return p[i];
2926 }
2927 static char *f (char * (*g) (char **, int), char **p, ...)
2928 {
2929   char *s;
2930   va_list v;
2931   va_start (v,p);
2932   s = g (p, va_arg (v,int));
2933   va_end (v);
2934   return s;
2935 }
2936
2937 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2938    function prototypes and stuff, but not '\xHH' hex character constants.
2939    These don't provoke an error unfortunately, instead are silently treated
2940    as 'x'.  The following induces an error, until -std is added to get
2941    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2942    array size at least.  It's necessary to write '\x00'==0 to get something
2943    that's true only with -std.  */
2944 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2945
2946 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2947    inside strings and character constants.  */
2948 #define FOO(x) 'x'
2949 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2950
2951 int test (int i, double x);
2952 struct s1 {int (*f) (int a);};
2953 struct s2 {int (*f) (double a);};
2954 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2955 int argc;
2956 char **argv;
2957 int
2958 main ()
2959 {
2960 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2961   ;
2962   return 0;
2963 }
2964 _ACEOF
2965 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2966         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2967 do
2968   CC="$ac_save_CC $ac_arg"
2969   rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973   *) ac_try_echo=$ac_try;;
2974 esac
2975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976 $as_echo "$ac_try_echo") >&5
2977   (eval "$ac_compile") 2>conftest.er1
2978   ac_status=$?
2979   grep -v '^ *+' conftest.er1 >conftest.err
2980   rm -f conftest.er1
2981   cat conftest.err >&5
2982   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983   (exit $ac_status); } && {
2984          test -z "$ac_c_werror_flag" ||
2985          test ! -s conftest.err
2986        } && test -s conftest.$ac_objext; then
2987   ac_cv_prog_cc_c89=$ac_arg
2988 else
2989   $as_echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2991
2992
2993 fi
2994
2995 rm -f core conftest.err conftest.$ac_objext
2996   test "x$ac_cv_prog_cc_c89" != "xno" && break
2997 done
2998 rm -f conftest.$ac_ext
2999 CC=$ac_save_CC
3000
3001 fi
3002 # AC_CACHE_VAL
3003 case "x$ac_cv_prog_cc_c89" in
3004   x)
3005     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3006 $as_echo "none needed" >&6; } ;;
3007   xno)
3008     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3009 $as_echo "unsupported" >&6; } ;;
3010   *)
3011     CC="$CC $ac_cv_prog_cc_c89"
3012     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3013 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3014 esac
3015
3016
3017 ac_ext=c
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022
3023  ac_ext=cpp
3024 ac_cpp='$CXXCPP $CPPFLAGS'
3025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3028 if test -z "$CXX"; then
3029   if test -n "$CCC"; then
3030     CXX=$CCC
3031   else
3032     if test -n "$ac_tool_prefix"; then
3033   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3034   do
3035     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3037 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if test "${ac_cv_prog_CXX+set}" = set; then
3040   $as_echo_n "(cached) " >&6
3041 else
3042   if test -n "$CXX"; then
3043   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048   IFS=$as_save_IFS
3049   test -z "$as_dir" && as_dir=.
3050   for ac_exec_ext in '' $ac_executable_extensions; do
3051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3053     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054     break 2
3055   fi
3056 done
3057 done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 CXX=$ac_cv_prog_CXX
3063 if test -n "$CXX"; then
3064   { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3065 $as_echo "$CXX" >&6; }
3066 else
3067   { $as_echo "$as_me:$LINENO: result: no" >&5
3068 $as_echo "no" >&6; }
3069 fi
3070
3071
3072     test -n "$CXX" && break
3073   done
3074 fi
3075 if test -z "$CXX"; then
3076   ac_ct_CXX=$CXX
3077   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3078 do
3079   # Extract the first word of "$ac_prog", so it can be a program name with args.
3080 set dummy $ac_prog; ac_word=$2
3081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3084   $as_echo_n "(cached) " >&6
3085 else
3086   if test -n "$ac_ct_CXX"; then
3087   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3091 do
3092   IFS=$as_save_IFS
3093   test -z "$as_dir" && as_dir=.
3094   for ac_exec_ext in '' $ac_executable_extensions; do
3095   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096     ac_cv_prog_ac_ct_CXX="$ac_prog"
3097     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098     break 2
3099   fi
3100 done
3101 done
3102 IFS=$as_save_IFS
3103
3104 fi
3105 fi
3106 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3107 if test -n "$ac_ct_CXX"; then
3108   { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3109 $as_echo "$ac_ct_CXX" >&6; }
3110 else
3111   { $as_echo "$as_me:$LINENO: result: no" >&5
3112 $as_echo "no" >&6; }
3113 fi
3114
3115
3116   test -n "$ac_ct_CXX" && break
3117 done
3118
3119   if test "x$ac_ct_CXX" = x; then
3120     CXX="g++"
3121   else
3122     case $cross_compiling:$ac_tool_warned in
3123 yes:)
3124 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3126 ac_tool_warned=yes ;;
3127 esac
3128     CXX=$ac_ct_CXX
3129   fi
3130 fi
3131
3132   fi
3133 fi
3134 # Provide some information about the compiler.
3135 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3136 set X $ac_compile
3137 ac_compiler=$2
3138 { (ac_try="$ac_compiler --version >&5"
3139 case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3144 $as_echo "$ac_try_echo") >&5
3145   (eval "$ac_compiler --version >&5") 2>&5
3146   ac_status=$?
3147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148   (exit $ac_status); }
3149 { (ac_try="$ac_compiler -v >&5"
3150 case "(($ac_try" in
3151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152   *) ac_try_echo=$ac_try;;
3153 esac
3154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3155 $as_echo "$ac_try_echo") >&5
3156   (eval "$ac_compiler -v >&5") 2>&5
3157   ac_status=$?
3158   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159   (exit $ac_status); }
3160 { (ac_try="$ac_compiler -V >&5"
3161 case "(($ac_try" in
3162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163   *) ac_try_echo=$ac_try;;
3164 esac
3165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3166 $as_echo "$ac_try_echo") >&5
3167   (eval "$ac_compiler -V >&5") 2>&5
3168   ac_status=$?
3169   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170   (exit $ac_status); }
3171
3172 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3173 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3174 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3175   $as_echo_n "(cached) " >&6
3176 else
3177   cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h.  */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h.  */
3183
3184 int
3185 main ()
3186 {
3187 #ifndef __GNUC__
3188        choke me
3189 #endif
3190
3191   ;
3192   return 0;
3193 }
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199   *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203   (eval "$ac_compile") 2>conftest.er1
3204   ac_status=$?
3205   grep -v '^ *+' conftest.er1 >conftest.err
3206   rm -f conftest.er1
3207   cat conftest.err >&5
3208   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); } && {
3210          test -z "$ac_cxx_werror_flag" ||
3211          test ! -s conftest.err
3212        } && test -s conftest.$ac_objext; then
3213   ac_compiler_gnu=yes
3214 else
3215   $as_echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3217
3218         ac_compiler_gnu=no
3219 fi
3220
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3223
3224 fi
3225 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3226 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3227 if test $ac_compiler_gnu = yes; then
3228   GXX=yes
3229 else
3230   GXX=
3231 fi
3232 ac_test_CXXFLAGS=${CXXFLAGS+set}
3233 ac_save_CXXFLAGS=$CXXFLAGS
3234 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3235 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3236 if test "${ac_cv_prog_cxx_g+set}" = set; then
3237   $as_echo_n "(cached) " >&6
3238 else
3239   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3240    ac_cxx_werror_flag=yes
3241    ac_cv_prog_cxx_g=no
3242    CXXFLAGS="-g"
3243    cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h.  */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h.  */
3249
3250 int
3251 main ()
3252 {
3253
3254   ;
3255   return 0;
3256 }
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (ac_try="$ac_compile"
3260 case "(($ac_try" in
3261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262   *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266   (eval "$ac_compile") 2>conftest.er1
3267   ac_status=$?
3268   grep -v '^ *+' conftest.er1 >conftest.err
3269   rm -f conftest.er1
3270   cat conftest.err >&5
3271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272   (exit $ac_status); } && {
3273          test -z "$ac_cxx_werror_flag" ||
3274          test ! -s conftest.err
3275        } && test -s conftest.$ac_objext; then
3276   ac_cv_prog_cxx_g=yes
3277 else
3278   $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281         CXXFLAGS=""
3282       cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h.  */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h.  */
3288
3289 int
3290 main ()
3291 {
3292
3293   ;
3294   return 0;
3295 }
3296 _ACEOF
3297 rm -f conftest.$ac_objext
3298 if { (ac_try="$ac_compile"
3299 case "(($ac_try" in
3300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301   *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305   (eval "$ac_compile") 2>conftest.er1
3306   ac_status=$?
3307   grep -v '^ *+' conftest.er1 >conftest.err
3308   rm -f conftest.er1
3309   cat conftest.err >&5
3310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311   (exit $ac_status); } && {
3312          test -z "$ac_cxx_werror_flag" ||
3313          test ! -s conftest.err
3314        } && test -s conftest.$ac_objext; then
3315   :
3316 else
3317   $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3321          CXXFLAGS="-g"
3322          cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h.  */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h.  */
3328
3329 int
3330 main ()
3331 {
3332
3333   ;
3334   return 0;
3335 }
3336 _ACEOF
3337 rm -f conftest.$ac_objext
3338 if { (ac_try="$ac_compile"
3339 case "(($ac_try" in
3340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341   *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345   (eval "$ac_compile") 2>conftest.er1
3346   ac_status=$?
3347   grep -v '^ *+' conftest.er1 >conftest.err
3348   rm -f conftest.er1
3349   cat conftest.err >&5
3350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351   (exit $ac_status); } && {
3352          test -z "$ac_cxx_werror_flag" ||
3353          test ! -s conftest.err
3354        } && test -s conftest.$ac_objext; then
3355   ac_cv_prog_cxx_g=yes
3356 else
3357   $as_echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360
3361 fi
3362
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3364 fi
3365
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 fi
3368
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3371 fi
3372 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3373 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3374 if test "$ac_test_CXXFLAGS" = set; then
3375   CXXFLAGS=$ac_save_CXXFLAGS
3376 elif test $ac_cv_prog_cxx_g = yes; then
3377   if test "$GXX" = yes; then
3378     CXXFLAGS="-g -O2"
3379   else
3380     CXXFLAGS="-g"
3381   fi
3382 else
3383   if test "$GXX" = yes; then
3384     CXXFLAGS="-O2"
3385   else
3386     CXXFLAGS=
3387   fi
3388 fi
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3394
3395
3396
3397
3398 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3399 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3400
3401 cat > conftest.c << EOF
3402 #include <stdlib.h>
3403 #include <stdio.h>
3404
3405 int main (int argc, char*argv)
3406 {
3407     int a,b;
3408     b=3;
3409     int c;
3410     c=4;
3411     return 0;
3412 }
3413 EOF
3414
3415 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3416 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3417   { $as_echo "$as_me:$LINENO: result: yes" >&5
3418 $as_echo "yes" >&6; }
3419   GCC_IS_OK=true
3420   export GCC_IS_OK
3421 else
3422   echo "configure: failed program was:" >&5
3423   cat conftest.c >&5
3424   { $as_echo "$as_me:$LINENO: result: no" >&5
3425 $as_echo "no" >&6; }
3426 fi
3427 rm -f conftest*
3428
3429
3430 if test "x$GCC_IS_OK" '=' "x";then
3431     echo "***************************************************"
3432     echo "* Your gcc is too old to compile this!"
3433     echo "* "
3434     echo "* The last version compileable by this compiler is "
3435     echo "* swftools 0.7.0, which you can download from "
3436     echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3437     echo "* ."
3438     echo "* Newer versions require at least gcc 3.0.0 "
3439     echo "***************************************************"
3440     exit 1
3441 fi
3442
3443 if test "x$CHECKMEM" '!=' "x";then
3444     CC="ccmalloc $CC"
3445     CXX="ccmalloc $CXX"
3446     #echo running again
3447     #unset ac_cv_prog_CC
3448     #unset ac_cv_prog_CXX
3449     #AC_PROG_CC
3450     #AC_PROG_CXX
3451 fi
3452  ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3458 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3459 # On Suns, sometimes $CPP names a directory.
3460 if test -n "$CPP" && test -d "$CPP"; then
3461   CPP=
3462 fi
3463 if test -z "$CPP"; then
3464   if test "${ac_cv_prog_CPP+set}" = set; then
3465   $as_echo_n "(cached) " >&6
3466 else
3467       # Double quotes because CPP needs to be expanded
3468     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3469     do
3470       ac_preproc_ok=false
3471 for ac_c_preproc_warn_flag in '' yes
3472 do
3473   # Use a header file that comes with gcc, so configuring glibc
3474   # with a fresh cross-compiler works.
3475   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3476   # <limits.h> exists even on freestanding compilers.
3477   # On the NeXT, cc -E runs the code through the compiler's parser,
3478   # not just through cpp. "Syntax error" is here to catch this case.
3479   cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h.  */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h.  */
3485 #ifdef __STDC__
3486 # include <limits.h>
3487 #else
3488 # include <assert.h>
3489 #endif
3490                      Syntax error
3491 _ACEOF
3492 if { (ac_try="$ac_cpp conftest.$ac_ext"
3493 case "(($ac_try" in
3494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495   *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3498 $as_echo "$ac_try_echo") >&5
3499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3500   ac_status=$?
3501   grep -v '^ *+' conftest.er1 >conftest.err
3502   rm -f conftest.er1
3503   cat conftest.err >&5
3504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505   (exit $ac_status); } >/dev/null && {
3506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3507          test ! -s conftest.err
3508        }; then
3509   :
3510 else
3511   $as_echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3513
3514   # Broken: fails on valid input.
3515 continue
3516 fi
3517
3518 rm -f conftest.err conftest.$ac_ext
3519
3520   # OK, works on sane cases.  Now check whether nonexistent headers
3521   # can be detected and how.
3522   cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h.  */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h.  */
3528 #include <ac_nonexistent.h>
3529 _ACEOF
3530 if { (ac_try="$ac_cpp conftest.$ac_ext"
3531 case "(($ac_try" in
3532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533   *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3536 $as_echo "$ac_try_echo") >&5
3537   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3538   ac_status=$?
3539   grep -v '^ *+' conftest.er1 >conftest.err
3540   rm -f conftest.er1
3541   cat conftest.err >&5
3542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543   (exit $ac_status); } >/dev/null && {
3544          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3545          test ! -s conftest.err
3546        }; then
3547   # Broken: success on invalid input.
3548 continue
3549 else
3550   $as_echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3552
3553   # Passes both tests.
3554 ac_preproc_ok=:
3555 break
3556 fi
3557
3558 rm -f conftest.err conftest.$ac_ext
3559
3560 done
3561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3562 rm -f conftest.err conftest.$ac_ext
3563 if $ac_preproc_ok; then
3564   break
3565 fi
3566
3567     done
3568     ac_cv_prog_CPP=$CPP
3569
3570 fi
3571   CPP=$ac_cv_prog_CPP
3572 else
3573   ac_cv_prog_CPP=$CPP
3574 fi
3575 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3576 $as_echo "$CPP" >&6; }
3577 ac_preproc_ok=false
3578 for ac_c_preproc_warn_flag in '' yes
3579 do
3580   # Use a header file that comes with gcc, so configuring glibc
3581   # with a fresh cross-compiler works.
3582   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3583   # <limits.h> exists even on freestanding compilers.
3584   # On the NeXT, cc -E runs the code through the compiler's parser,
3585   # not just through cpp. "Syntax error" is here to catch this case.
3586   cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h.  */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h.  */
3592 #ifdef __STDC__
3593 # include <limits.h>
3594 #else
3595 # include <assert.h>
3596 #endif
3597                      Syntax error
3598 _ACEOF
3599 if { (ac_try="$ac_cpp conftest.$ac_ext"
3600 case "(($ac_try" in
3601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602   *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3605 $as_echo "$ac_try_echo") >&5
3606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3607   ac_status=$?
3608   grep -v '^ *+' conftest.er1 >conftest.err
3609   rm -f conftest.er1
3610   cat conftest.err >&5
3611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612   (exit $ac_status); } >/dev/null && {
3613          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3614          test ! -s conftest.err
3615        }; then
3616   :
3617 else
3618   $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3620
3621   # Broken: fails on valid input.
3622 continue
3623 fi
3624
3625 rm -f conftest.err conftest.$ac_ext
3626
3627   # OK, works on sane cases.  Now check whether nonexistent headers
3628   # can be detected and how.
3629   cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h.  */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h.  */
3635 #include <ac_nonexistent.h>
3636 _ACEOF
3637 if { (ac_try="$ac_cpp conftest.$ac_ext"
3638 case "(($ac_try" in
3639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640   *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3643 $as_echo "$ac_try_echo") >&5
3644   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3645   ac_status=$?
3646   grep -v '^ *+' conftest.er1 >conftest.err
3647   rm -f conftest.er1
3648   cat conftest.err >&5
3649   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650   (exit $ac_status); } >/dev/null && {
3651          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3652          test ! -s conftest.err
3653        }; then
3654   # Broken: success on invalid input.
3655 continue
3656 else
3657   $as_echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3659
3660   # Passes both tests.
3661 ac_preproc_ok=:
3662 break
3663 fi
3664
3665 rm -f conftest.err conftest.$ac_ext
3666
3667 done
3668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3669 rm -f conftest.err conftest.$ac_ext
3670 if $ac_preproc_ok; then
3671   :
3672 else
3673   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3676 See \`config.log' for more details." >&5
3677 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3678 See \`config.log' for more details." >&2;}
3679    { (exit 1); exit 1; }; }; }
3680 fi
3681
3682 ac_ext=c
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
3688
3689  if test -n "$ac_tool_prefix"; then
3690   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3691 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_RANLIB+set}" = set; then
3695   $as_echo_n "(cached) " >&6
3696 else
3697   if test -n "$RANLIB"; then
3698   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3702 do
3703   IFS=$as_save_IFS
3704   test -z "$as_dir" && as_dir=.
3705   for ac_exec_ext in '' $ac_executable_extensions; do
3706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3708     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709     break 2
3710   fi
3711 done
3712 done
3713 IFS=$as_save_IFS
3714
3715 fi
3716 fi
3717 RANLIB=$ac_cv_prog_RANLIB
3718 if test -n "$RANLIB"; then
3719   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3720 $as_echo "$RANLIB" >&6; }
3721 else
3722   { $as_echo "$as_me:$LINENO: result: no" >&5
3723 $as_echo "no" >&6; }
3724 fi
3725
3726
3727 fi
3728 if test -z "$ac_cv_prog_RANLIB"; then
3729   ac_ct_RANLIB=$RANLIB
3730   # Extract the first word of "ranlib", so it can be a program name with args.
3731 set dummy ranlib; ac_word=$2
3732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3735   $as_echo_n "(cached) " >&6
3736 else
3737   if test -n "$ac_ct_RANLIB"; then
3738   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743   IFS=$as_save_IFS
3744   test -z "$as_dir" && as_dir=.
3745   for ac_exec_ext in '' $ac_executable_extensions; do
3746   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747     ac_cv_prog_ac_ct_RANLIB="ranlib"
3748     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749     break 2
3750   fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3754
3755 fi
3756 fi
3757 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3758 if test -n "$ac_ct_RANLIB"; then
3759   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3760 $as_echo "$ac_ct_RANLIB" >&6; }
3761 else
3762   { $as_echo "$as_me:$LINENO: result: no" >&5
3763 $as_echo "no" >&6; }
3764 fi
3765
3766   if test "x$ac_ct_RANLIB" = x; then
3767     RANLIB=":"
3768   else
3769     case $cross_compiling:$ac_tool_warned in
3770 yes:)
3771 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3774 esac
3775     RANLIB=$ac_ct_RANLIB
3776   fi
3777 else
3778   RANLIB="$ac_cv_prog_RANLIB"
3779 fi
3780
3781  { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3782 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3783 set x ${MAKE-make}
3784 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3785 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3786   $as_echo_n "(cached) " >&6
3787 else
3788   cat >conftest.make <<\_ACEOF
3789 SHELL = /bin/sh
3790 all:
3791         @echo '@@@%%%=$(MAKE)=@@@%%%'
3792 _ACEOF
3793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3794 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3795   *@@@%%%=?*=@@@%%%*)
3796     eval ac_cv_prog_make_${ac_make}_set=yes;;
3797   *)
3798     eval ac_cv_prog_make_${ac_make}_set=no;;
3799 esac
3800 rm -f conftest.make
3801 fi
3802 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3803   { $as_echo "$as_me:$LINENO: result: yes" >&5
3804 $as_echo "yes" >&6; }
3805   SET_MAKE=
3806 else
3807   { $as_echo "$as_me:$LINENO: result: no" >&5
3808 $as_echo "no" >&6; }
3809   SET_MAKE="MAKE=${MAKE-make}"
3810 fi
3811
3812  # Find a good install program.  We prefer a C program (faster),
3813 # so one script is as good as another.  But avoid the broken or
3814 # incompatible versions:
3815 # SysV /etc/install, /usr/sbin/install
3816 # SunOS /usr/etc/install
3817 # IRIX /sbin/install
3818 # AIX /bin/install
3819 # AmigaOS /C/install, which installs bootblocks on floppy discs
3820 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3821 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3822 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3823 # OS/2's system install, which has a completely different semantic
3824 # ./install, which can be erroneously created by make from ./install.sh.
3825 # Reject install programs that cannot install multiple files.
3826 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3827 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3828 if test -z "$INSTALL"; then
3829 if test "${ac_cv_path_install+set}" = set; then
3830   $as_echo_n "(cached) " >&6
3831 else
3832   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3834 do
3835   IFS=$as_save_IFS
3836   test -z "$as_dir" && as_dir=.
3837   # Account for people who put trailing slashes in PATH elements.
3838 case $as_dir/ in
3839   ./ | .// | /cC/* | \
3840   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3841   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3842   /usr/ucb/* ) ;;
3843   *)
3844     # OSF1 and SCO ODT 3.0 have their own names for install.
3845     # Don't use installbsd from OSF since it installs stuff as root
3846     # by default.
3847     for ac_prog in ginstall scoinst install; do
3848       for ac_exec_ext in '' $ac_executable_extensions; do
3849         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3850           if test $ac_prog = install &&
3851             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3852             # AIX install.  It has an incompatible calling convention.
3853             :
3854           elif test $ac_prog = install &&
3855             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3856             # program-specific install script used by HP pwplus--don't use.
3857             :
3858           else
3859             rm -rf conftest.one conftest.two conftest.dir
3860             echo one > conftest.one
3861             echo two > conftest.two
3862             mkdir conftest.dir
3863             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3864               test -s conftest.one && test -s conftest.two &&
3865               test -s conftest.dir/conftest.one &&
3866               test -s conftest.dir/conftest.two
3867             then
3868               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3869               break 3
3870             fi
3871           fi
3872         fi
3873       done
3874     done
3875     ;;
3876 esac
3877
3878 done
3879 IFS=$as_save_IFS
3880
3881 rm -rf conftest.one conftest.two conftest.dir
3882
3883 fi
3884   if test "${ac_cv_path_install+set}" = set; then
3885     INSTALL=$ac_cv_path_install
3886   else
3887     # As a last resort, use the slow shell script.  Don't cache a
3888     # value for INSTALL within a source directory, because that will
3889     # break other packages using the cache if that directory is
3890     # removed, or if the value is a relative name.
3891     INSTALL=$ac_install_sh
3892   fi
3893 fi
3894 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3895 $as_echo "$INSTALL" >&6; }
3896
3897 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3898 # It thinks the first close brace ends the variable substitution.
3899 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3900
3901 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3902
3903 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3904
3905  { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3906 $as_echo_n "checking whether ln -s works... " >&6; }
3907 LN_S=$as_ln_s
3908 if test "$LN_S" = "ln -s"; then
3909   { $as_echo "$as_me:$LINENO: result: yes" >&5
3910 $as_echo "yes" >&6; }
3911 else
3912   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3913 $as_echo "no, using $LN_S" >&6; }
3914 fi
3915
3916  for ac_prog in gzip uncompress compress
3917 do
3918   # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3923   $as_echo_n "(cached) " >&6
3924 else
3925   if test -n "$UNCOMPRESS"; then
3926   ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3930 do
3931   IFS=$as_save_IFS
3932   test -z "$as_dir" && as_dir=.
3933   for ac_exec_ext in '' $ac_executable_extensions; do
3934   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3935     ac_cv_prog_UNCOMPRESS="$ac_prog"
3936     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937     break 2
3938   fi
3939 done
3940 done
3941 IFS=$as_save_IFS
3942
3943 fi
3944 fi
3945 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3946 if test -n "$UNCOMPRESS"; then
3947   { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3948 $as_echo "$UNCOMPRESS" >&6; }
3949 else
3950   { $as_echo "$as_me:$LINENO: result: no" >&5
3951 $as_echo "no" >&6; }
3952 fi
3953
3954
3955   test -n "$UNCOMPRESS" && break
3956 done
3957
3958
3959
3960 OBJEXT="o"
3961 AREXT=".a"
3962 CXXLIBS="-lstdc++"
3963
3964
3965
3966 if test "x$EXEEXT" = "x.exe";then
3967     OBJEXT="obj"
3968     AREXT=".lib"
3969     CXXLIBS=""
3970 fi
3971
3972
3973
3974
3975 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3976 $as_echo_n "checking host system type... " >&6; }
3977 if test "${ac_cv_host+set}" = set; then
3978   $as_echo_n "(cached) " >&6
3979 else
3980   if test "x$host_alias" = x; then
3981   ac_cv_host=$ac_cv_build
3982 else
3983   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3984     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3985 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3986    { (exit 1); exit 1; }; }
3987 fi
3988
3989 fi
3990 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3991 $as_echo "$ac_cv_host" >&6; }
3992 case $ac_cv_host in
3993 *-*-*) ;;
3994 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3995 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3996    { (exit 1); exit 1; }; };;
3997 esac
3998 host=$ac_cv_host
3999 ac_save_IFS=$IFS; IFS='-'
4000 set x $ac_cv_host
4001 shift
4002 host_cpu=$1
4003 host_vendor=$2
4004 shift; shift
4005 # Remember, the first character of IFS is used to create $*,
4006 # except with old shells:
4007 host_os=$*
4008 IFS=$ac_save_IFS
4009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4010
4011
4012
4013
4014 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4015 $as_echo_n "checking for target system... " >&6; }
4016 CYGWIN=
4017 MINGW=
4018 case $host_os in
4019     *cygwin* ) CYGWIN=yes;;
4020     *mingw* ) MINGW=yes;;
4021 esac
4022
4023 AR=ar
4024 if test "x$MINGW" = "xyes"; then
4025     #fix for the debian distribution of mingw
4026     if test -x "/usr/i586-mingw32msvc/bin/ar";then
4027         AR="/usr/i586-mingw32msvc/bin/ar"
4028     fi
4029     if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4030         RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4031     fi
4032     #fix for the gentoo distribution of mingw
4033     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4034         AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4035     fi
4036     if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4037         RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4038     fi
4039     if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4040         STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4041     fi
4042 fi
4043
4044
4045
4046 if test "x${CYGWIN}" = "xyes"; then
4047
4048 cat >>confdefs.h <<\_ACEOF
4049 #define CYGWIN 1
4050 _ACEOF
4051
4052     { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4053 $as_echo "cygwin" >&6; }
4054 else
4055     if test "x${MINGW}" = "xyes"; then
4056
4057 cat >>confdefs.h <<\_ACEOF
4058 #define MINGW 1
4059 _ACEOF
4060
4061         WIN32=1
4062
4063 cat >>confdefs.h <<\_ACEOF
4064 #define WIN32 1
4065 _ACEOF
4066
4067         LIBS="$LIBS -lws2_32 -lgdi32"
4068         { $as_echo "$as_me:$LINENO: result: mingw" >&5
4069 $as_echo "mingw" >&6; }
4070     else
4071         LINUX=1
4072         export LINUX
4073
4074 cat >>confdefs.h <<\_ACEOF
4075 #define LINUX 1
4076 _ACEOF
4077
4078         { $as_echo "$as_me:$LINENO: result: " >&5
4079 $as_echo "" >&6; }
4080     fi
4081 fi
4082
4083
4084 SLEXT="so"
4085 if test "x${MINGW}" != "xyes"; then
4086     # no mingW
4087
4088 cat >>confdefs.h <<\_ACEOF
4089 #define O_BINARY 0
4090 _ACEOF
4091
4092 else
4093     # mingW
4094     SLEXT="dll"
4095     CXXLIBS=""
4096 fi
4097 export SLEXT
4098
4099
4100
4101 # The following tries to make use of includes and libraries in
4102 # /usr/local, too. Notice: A -I/usr/local/include might break
4103 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4104 # especially on systems which link /usr/local to /usr, so it has yet
4105 # to be seen how useful this is.
4106 if test -d /usr/local/lib; then
4107     LDFLAGS="$LDFLAGS -L/usr/local/lib"
4108 fi
4109 if test -d /usr/local/include; then
4110 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4111 #   CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4112     echo > /dev/null
4113 fi
4114 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4115     # if the user has a special prefix (like /opt), there might also be $prefix/lib
4116     # and $prefix/include, which should be included in our search paths for libraries
4117     # and includes.
4118     LDFLAGS="$LDFLAGS -L${libdir}"
4119     CPPFLAGS="$CPPFLAGS -I${includedir}"
4120     # TODO- test whether gcc still works after this
4121 fi
4122
4123 #Mac OS:
4124 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4125
4126
4127 # this must be done after (I believe) AC_PROG_MAKE_SET
4128 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4129     if test "$MACOSX";then
4130         STRIP=dsymutil
4131     else
4132         STRIP="@echo debug enabled, not stripping "
4133     fi
4134     export STRIP
4135
4136 fi
4137
4138
4139
4140 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4141 $as_echo_n "checking for sin in -lm... " >&6; }
4142 if test "${ac_cv_lib_m_sin+set}" = set; then
4143   $as_echo_n "(cached) " >&6
4144 else
4145   ac_check_lib_save_LIBS=$LIBS
4146 LIBS="-lm  $LIBS"
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h.  */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h.  */
4153
4154 /* Override any GCC internal prototype to avoid an error.
4155    Use char because int might match the return type of a GCC
4156    builtin and then its argument prototype would still apply.  */
4157 #ifdef __cplusplus
4158 extern "C"
4159 #endif
4160 char sin ();
4161 int
4162 main ()
4163 {
4164 return sin ();
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (ac_try="$ac_link"
4171 case "(($ac_try" in
4172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173   *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4176 $as_echo "$ac_try_echo") >&5
4177   (eval "$ac_link") 2>conftest.er1
4178   ac_status=$?
4179   grep -v '^ *+' conftest.er1 >conftest.err
4180   rm -f conftest.er1
4181   cat conftest.err >&5
4182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183   (exit $ac_status); } && {
4184          test -z "$ac_c_werror_flag" ||
4185          test ! -s conftest.err
4186        } && test -s conftest$ac_exeext && {
4187          test "$cross_compiling" = yes ||
4188          $as_test_x conftest$ac_exeext
4189        }; then
4190   ac_cv_lib_m_sin=yes
4191 else
4192   $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4194
4195         ac_cv_lib_m_sin=no
4196 fi
4197
4198 rm -rf conftest.dSYM
4199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4200       conftest$ac_exeext conftest.$ac_ext
4201 LIBS=$ac_check_lib_save_LIBS
4202 fi
4203 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4204 $as_echo "$ac_cv_lib_m_sin" >&6; }
4205 if test "x$ac_cv_lib_m_sin" = x""yes; then
4206   cat >>confdefs.h <<_ACEOF
4207 #define HAVE_LIBM 1
4208 _ACEOF
4209
4210   LIBS="-lm $LIBS"
4211
4212 else
4213   echo "Error: Math library not found.";
4214  exit;
4215
4216 fi
4217
4218
4219 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4220 $as_echo_n "checking for deflate in -lz... " >&6; }
4221 if test "${ac_cv_lib_z_deflate+set}" = set; then
4222   $as_echo_n "(cached) " >&6
4223 else
4224   ac_check_lib_save_LIBS=$LIBS
4225 LIBS="-lz  $LIBS"
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h.  */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h.  */
4232
4233 /* Override any GCC internal prototype to avoid an error.
4234    Use char because int might match the return type of a GCC
4235    builtin and then its argument prototype would still apply.  */
4236 #ifdef __cplusplus
4237 extern "C"
4238 #endif
4239 char deflate ();
4240 int
4241 main ()
4242 {
4243 return deflate ();
4244   ;
4245   return 0;
4246 }
4247 _ACEOF
4248 rm -f conftest.$ac_objext conftest$ac_exeext
4249 if { (ac_try="$ac_link"
4250 case "(($ac_try" in
4251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252   *) ac_try_echo=$ac_try;;
4253 esac
4254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4255 $as_echo "$ac_try_echo") >&5
4256   (eval "$ac_link") 2>conftest.er1
4257   ac_status=$?
4258   grep -v '^ *+' conftest.er1 >conftest.err
4259   rm -f conftest.er1
4260   cat conftest.err >&5
4261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262   (exit $ac_status); } && {
4263          test -z "$ac_c_werror_flag" ||
4264          test ! -s conftest.err
4265        } && test -s conftest$ac_exeext && {
4266          test "$cross_compiling" = yes ||
4267          $as_test_x conftest$ac_exeext
4268        }; then
4269   ac_cv_lib_z_deflate=yes
4270 else
4271   $as_echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4273
4274         ac_cv_lib_z_deflate=no
4275 fi
4276
4277 rm -rf conftest.dSYM
4278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4279       conftest$ac_exeext conftest.$ac_ext
4280 LIBS=$ac_check_lib_save_LIBS
4281 fi
4282 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4283 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4284 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4285   cat >>confdefs.h <<_ACEOF
4286 #define HAVE_LIBZ 1
4287 _ACEOF
4288
4289   LIBS="-lz $LIBS"
4290
4291 else
4292   ZLIBMISSING=true
4293 fi
4294
4295
4296 if test "x$ZLIBMISSING" = "xtrue";then
4297     echo
4298     echo "ERROR:"
4299     echo "You need zlib to compile swftools"
4300     echo
4301     exit
4302 fi
4303
4304
4305 { $as_echo "$as_me:$LINENO: checking for PDF_open_file in -lpdf" >&5
4306 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4307 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then
4308   $as_echo_n "(cached) " >&6
4309 else
4310   ac_check_lib_save_LIBS=$LIBS
4311 LIBS="-lpdf  $LIBS"
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h.  */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h.  */
4318
4319 /* Override any GCC internal prototype to avoid an error.
4320    Use char because int might match the return type of a GCC
4321    builtin and then its argument prototype would still apply.  */
4322 #ifdef __cplusplus
4323 extern "C"
4324 #endif
4325 char PDF_open_file ();
4326 int
4327 main ()
4328 {
4329 return PDF_open_file ();
4330   ;
4331   return 0;
4332 }
4333 _ACEOF
4334 rm -f conftest.$ac_objext conftest$ac_exeext
4335 if { (ac_try="$ac_link"
4336 case "(($ac_try" in
4337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338   *) ac_try_echo=$ac_try;;
4339 esac
4340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4341 $as_echo "$ac_try_echo") >&5
4342   (eval "$ac_link") 2>conftest.er1
4343   ac_status=$?
4344   grep -v '^ *+' conftest.er1 >conftest.err
4345   rm -f conftest.er1
4346   cat conftest.err >&5
4347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348   (exit $ac_status); } && {
4349          test -z "$ac_c_werror_flag" ||
4350          test ! -s conftest.err
4351        } && test -s conftest$ac_exeext && {
4352          test "$cross_compiling" = yes ||
4353          $as_test_x conftest$ac_exeext
4354        }; then
4355   ac_cv_lib_pdf_PDF_open_file=yes
4356 else
4357   $as_echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360         ac_cv_lib_pdf_PDF_open_file=no
4361 fi
4362
4363 rm -rf conftest.dSYM
4364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4365       conftest$ac_exeext conftest.$ac_ext
4366 LIBS=$ac_check_lib_save_LIBS
4367 fi
4368 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4369 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4370 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then
4371   cat >>confdefs.h <<_ACEOF
4372 #define HAVE_LIBPDF 1
4373 _ACEOF
4374
4375   LIBS="-lpdf $LIBS"
4376
4377 else
4378   PDFLIBMISSING=true
4379 fi
4380
4381
4382 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4383 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4384 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4385   $as_echo_n "(cached) " >&6
4386 else
4387   ac_check_lib_save_LIBS=$LIBS
4388 LIBS="-ljpeg  $LIBS"
4389 cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h.  */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h.  */
4395
4396 /* Override any GCC internal prototype to avoid an error.
4397    Use char because int might match the return type of a GCC
4398    builtin and then its argument prototype would still apply.  */
4399 #ifdef __cplusplus
4400 extern "C"
4401 #endif
4402 char jpeg_write_raw_data ();
4403 int
4404 main ()
4405 {
4406 return jpeg_write_raw_data ();
4407   ;
4408   return 0;
4409 }
4410 _ACEOF
4411 rm -f conftest.$ac_objext conftest$ac_exeext
4412 if { (ac_try="$ac_link"
4413 case "(($ac_try" in
4414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415   *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4418 $as_echo "$ac_try_echo") >&5
4419   (eval "$ac_link") 2>conftest.er1
4420   ac_status=$?
4421   grep -v '^ *+' conftest.er1 >conftest.err
4422   rm -f conftest.er1
4423   cat conftest.err >&5
4424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425   (exit $ac_status); } && {
4426          test -z "$ac_c_werror_flag" ||
4427          test ! -s conftest.err
4428        } && test -s conftest$ac_exeext && {
4429          test "$cross_compiling" = yes ||
4430          $as_test_x conftest$ac_exeext
4431        }; then
4432   ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4433 else
4434   $as_echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4436
4437         ac_cv_lib_jpeg_jpeg_write_raw_data=no
4438 fi
4439
4440 rm -rf conftest.dSYM
4441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4442       conftest$ac_exeext conftest.$ac_ext
4443 LIBS=$ac_check_lib_save_LIBS
4444 fi
4445 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4446 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4447 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4448   cat >>confdefs.h <<_ACEOF
4449 #define HAVE_LIBJPEG 1
4450 _ACEOF
4451
4452   LIBS="-ljpeg $LIBS"
4453
4454 else
4455   JPEGLIBMISSING=true
4456 fi
4457
4458
4459 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4460 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4461 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4462   $as_echo_n "(cached) " >&6
4463 else
4464   ac_check_lib_save_LIBS=$LIBS
4465 LIBS="-lungif  $LIBS"
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h.  */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h.  */
4472
4473 /* Override any GCC internal prototype to avoid an error.
4474    Use char because int might match the return type of a GCC
4475    builtin and then its argument prototype would still apply.  */
4476 #ifdef __cplusplus
4477 extern "C"
4478 #endif
4479 char DGifOpen ();
4480 int
4481 main ()
4482 {
4483 return DGifOpen ();
4484   ;
4485   return 0;
4486 }
4487 _ACEOF
4488 rm -f conftest.$ac_objext conftest$ac_exeext
4489 if { (ac_try="$ac_link"
4490 case "(($ac_try" in
4491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492   *) ac_try_echo=$ac_try;;
4493 esac
4494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4495 $as_echo "$ac_try_echo") >&5
4496   (eval "$ac_link") 2>conftest.er1
4497   ac_status=$?
4498   grep -v '^ *+' conftest.er1 >conftest.err
4499   rm -f conftest.er1
4500   cat conftest.err >&5
4501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502   (exit $ac_status); } && {
4503          test -z "$ac_c_werror_flag" ||
4504          test ! -s conftest.err
4505        } && test -s conftest$ac_exeext && {
4506          test "$cross_compiling" = yes ||
4507          $as_test_x conftest$ac_exeext
4508        }; then
4509   ac_cv_lib_ungif_DGifOpen=yes
4510 else
4511   $as_echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4513
4514         ac_cv_lib_ungif_DGifOpen=no
4515 fi
4516
4517 rm -rf conftest.dSYM
4518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4519       conftest$ac_exeext conftest.$ac_ext
4520 LIBS=$ac_check_lib_save_LIBS
4521 fi
4522 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4523 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4524 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4525   cat >>confdefs.h <<_ACEOF
4526 #define HAVE_LIBUNGIF 1
4527 _ACEOF
4528
4529   LIBS="-lungif $LIBS"
4530
4531 else
4532   UNGIFMISSING=true
4533 fi
4534
4535 if test "$UNGIFMISSING";then
4536     UNGIFMISSING=
4537
4538 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4539 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4540 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4541   $as_echo_n "(cached) " >&6
4542 else
4543   ac_check_lib_save_LIBS=$LIBS
4544 LIBS="-lgif  $LIBS"
4545 cat >conftest.$ac_ext <<_ACEOF
4546 /* confdefs.h.  */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h.  */
4551
4552 /* Override any GCC internal prototype to avoid an error.
4553    Use char because int might match the return type of a GCC
4554    builtin and then its argument prototype would still apply.  */
4555 #ifdef __cplusplus
4556 extern "C"
4557 #endif
4558 char DGifOpen ();
4559 int
4560 main ()
4561 {
4562 return DGifOpen ();
4563   ;
4564   return 0;
4565 }
4566 _ACEOF
4567 rm -f conftest.$ac_objext conftest$ac_exeext
4568 if { (ac_try="$ac_link"
4569 case "(($ac_try" in
4570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571   *) ac_try_echo=$ac_try;;
4572 esac
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575   (eval "$ac_link") 2>conftest.er1
4576   ac_status=$?
4577   grep -v '^ *+' conftest.er1 >conftest.err
4578   rm -f conftest.er1
4579   cat conftest.err >&5
4580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581   (exit $ac_status); } && {
4582          test -z "$ac_c_werror_flag" ||
4583          test ! -s conftest.err
4584        } && test -s conftest$ac_exeext && {
4585          test "$cross_compiling" = yes ||
4586          $as_test_x conftest$ac_exeext
4587        }; then
4588   ac_cv_lib_gif_DGifOpen=yes
4589 else
4590   $as_echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4592
4593         ac_cv_lib_gif_DGifOpen=no
4594 fi
4595
4596 rm -rf conftest.dSYM
4597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4598       conftest$ac_exeext conftest.$ac_ext
4599 LIBS=$ac_check_lib_save_LIBS
4600 fi
4601 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4602 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4603 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4604   cat >>confdefs.h <<_ACEOF
4605 #define HAVE_LIBGIF 1
4606 _ACEOF
4607
4608   LIBS="-lgif $LIBS"
4609
4610 else
4611   UNGIFMISSING=true
4612 fi
4613
4614 fi
4615
4616 { $as_echo "$as_me:$LINENO: checking for zzip_file_open in -lzzip" >&5
4617 $as_echo_n "checking for zzip_file_open in -lzzip... " >&6; }
4618 if test "${ac_cv_lib_zzip_zzip_file_open+set}" = set; then
4619   $as_echo_n "(cached) " >&6
4620 else
4621   ac_check_lib_save_LIBS=$LIBS
4622 LIBS="-lzzip  $LIBS"
4623 cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h.  */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h.  */
4629
4630 /* Override any GCC internal prototype to avoid an error.
4631    Use char because int might match the return type of a GCC
4632    builtin and then its argument prototype would still apply.  */
4633 #ifdef __cplusplus
4634 extern "C"
4635 #endif
4636 char zzip_file_open ();
4637 int
4638 main ()
4639 {
4640 return zzip_file_open ();
4641   ;
4642   return 0;
4643 }
4644 _ACEOF
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (ac_try="$ac_link"
4647 case "(($ac_try" in
4648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649   *) ac_try_echo=$ac_try;;
4650 esac
4651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652 $as_echo "$ac_try_echo") >&5
4653   (eval "$ac_link") 2>conftest.er1
4654   ac_status=$?
4655   grep -v '^ *+' conftest.er1 >conftest.err
4656   rm -f conftest.er1
4657   cat conftest.err >&5
4658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); } && {
4660          test -z "$ac_c_werror_flag" ||
4661          test ! -s conftest.err
4662        } && test -s conftest$ac_exeext && {
4663          test "$cross_compiling" = yes ||
4664          $as_test_x conftest$ac_exeext
4665        }; then
4666   ac_cv_lib_zzip_zzip_file_open=yes
4667 else
4668   $as_echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4670
4671         ac_cv_lib_zzip_zzip_file_open=no
4672 fi
4673
4674 rm -rf conftest.dSYM
4675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4676       conftest$ac_exeext conftest.$ac_ext
4677 LIBS=$ac_check_lib_save_LIBS
4678 fi
4679 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_zzip_zzip_file_open" >&5
4680 $as_echo "$ac_cv_lib_zzip_zzip_file_open" >&6; }
4681 if test "x$ac_cv_lib_zzip_zzip_file_open" = x""yes; then
4682   cat >>confdefs.h <<_ACEOF
4683 #define HAVE_LIBZZIP 1
4684 _ACEOF
4685
4686   LIBS="-lzzip $LIBS"
4687
4688 else
4689   ZZIPMISSING=true
4690 fi
4691
4692
4693
4694 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4695 $as_echo_n "checking for byte order... " >&6; }
4696 if test "$cross_compiling" = yes; then
4697   CROSSCOMPILE=1
4698 else
4699   cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h.  */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h.  */
4705
4706 int main (int argc, char *argv[])
4707 {
4708     int i = 1;
4709     return *(char*)&i;
4710 }
4711
4712 _ACEOF
4713 rm -f conftest$ac_exeext
4714 if { (ac_try="$ac_link"
4715 case "(($ac_try" in
4716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717   *) ac_try_echo=$ac_try;;
4718 esac
4719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4720 $as_echo "$ac_try_echo") >&5
4721   (eval "$ac_link") 2>&5
4722   ac_status=$?
4723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4725   { (case "(($ac_try" in
4726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727   *) ac_try_echo=$ac_try;;
4728 esac
4729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4730 $as_echo "$ac_try_echo") >&5
4731   (eval "$ac_try") 2>&5
4732   ac_status=$?
4733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; }; then
4735   BIGENDIAN=1
4736 else
4737   $as_echo "$as_me: program exited with status $ac_status" >&5
4738 $as_echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4740
4741 ( exit $ac_status )
4742 LITTLEENDIAN=1
4743 fi
4744 rm -rf conftest.dSYM
4745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4746 fi
4747
4748
4749 export CROSSCOMPILE
4750
4751 if test "x${CROSSCOMPILE}" = "x1"; then
4752  { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4753 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4754  { $as_echo "$as_me:$LINENO: checking target system type" >&5
4755 $as_echo_n "checking target system type... " >&6; }
4756 if test "${ac_cv_target+set}" = set; then
4757   $as_echo_n "(cached) " >&6
4758 else
4759   if test "x$target_alias" = x; then
4760   ac_cv_target=$ac_cv_host
4761 else
4762   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4763     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4764 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4765    { (exit 1); exit 1; }; }
4766 fi
4767
4768 fi
4769 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4770 $as_echo "$ac_cv_target" >&6; }
4771 case $ac_cv_target in
4772 *-*-*) ;;
4773 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4774 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4775    { (exit 1); exit 1; }; };;
4776 esac
4777 target=$ac_cv_target
4778 ac_save_IFS=$IFS; IFS='-'
4779 set x $ac_cv_target
4780 shift
4781 target_cpu=$1
4782 target_vendor=$2
4783 shift; shift
4784 # Remember, the first character of IFS is used to create $*,
4785 # except with old shells:
4786 target_os=$*
4787 IFS=$ac_save_IFS
4788 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4789
4790
4791 # The aliases save the names the user supplied, while $host etc.
4792 # will get canonicalized.
4793 test -n "$target_alias" &&
4794   test "$program_prefix$program_suffix$program_transform_name" = \
4795     NONENONEs,x,x, &&
4796   program_prefix=${target_alias}-
4797  { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4798 $as_echo_n "checking for byte order, try 2... " >&6; }
4799  case "${target}" in
4800   *86* | *-pc-* )
4801      LITTLEENDIAN=1
4802      ;;
4803   *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4804      BIGENDIAN=1
4805      ;;
4806  esac
4807 fi
4808
4809 export LITTLEENDIAN
4810 if test "x${LITTLEENDIAN}" = "x1"; then
4811 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4812 $as_echo "little endian" >&6; }
4813 BYTEORDERCHECKOK=1
4814 fi
4815 export BIGENDIAN
4816 if test "x${BIGENDIAN}" = "x1"; then
4817 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4818 $as_echo "big endian" >&6; }
4819 BYTEORDERCHECKOK=1
4820 WORDS_BIGENDIAN=1
4821 export WORDS_BIGENDIAN
4822
4823 cat >>confdefs.h <<\_ACEOF
4824 #define WORDS_BIGENDIAN 1
4825 _ACEOF
4826
4827 fi
4828 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4829 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4830 $as_echo "unknown" >&6; }
4831 echo Byte order could not determined.
4832 exit 1
4833 fi
4834
4835
4836
4837 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4838 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4839 if test "$cross_compiling" = yes; then
4840   CROSSCOMPILE=1
4841 else
4842   cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h.  */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h.  */
4848
4849 #include "stdlib.h"
4850 int main (int argc, char*argv[])
4851 {
4852     return system("test `touch config.tmp2`");
4853 }
4854
4855 _ACEOF
4856 rm -f conftest$ac_exeext
4857 if { (ac_try="$ac_link"
4858 case "(($ac_try" in
4859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860   *) ac_try_echo=$ac_try;;
4861 esac
4862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4863 $as_echo "$ac_try_echo") >&5
4864   (eval "$ac_link") 2>&5
4865   ac_status=$?
4866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4868   { (case "(($ac_try" in
4869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870   *) ac_try_echo=$ac_try;;
4871 esac
4872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4873 $as_echo "$ac_try_echo") >&5
4874   (eval "$ac_try") 2>&5
4875   ac_status=$?
4876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877   (exit $ac_status); }; }; then
4878   OK=OK
4879 else
4880   $as_echo "$as_me: program exited with status $ac_status" >&5
4881 $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884 fi
4885 rm -rf conftest.dSYM
4886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4887 fi
4888
4889
4890
4891 if test "x${OK}" = "xOK";then
4892     test -f config.tmp2 || OK=
4893 fi
4894
4895 if test "x${CROSSCOMPILE}" = "x1";then
4896     OK=no;
4897 fi
4898 if test "x${OK}" = "xOK";then
4899 rm -f config.tmp2
4900 { $as_echo "$as_me:$LINENO: result: yes" >&5
4901 $as_echo "yes" >&6; }
4902 SYSTEM_BACKTICKS=1
4903 export SYSTEM_BACKTICKS
4904
4905 cat >>confdefs.h <<\_ACEOF
4906 #define SYSTEM_BACKTICKS 1
4907 _ACEOF
4908
4909 else
4910 { $as_echo "$as_me:$LINENO: result: no" >&5
4911 $as_echo "no" >&6; }
4912 fi
4913
4914
4915
4916 test "$program_prefix" != NONE &&
4917   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4918 # Use a double $ so make ignores it.
4919 test "$program_suffix" != NONE &&
4920   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4921 # Double any \ or $.
4922 # By default was `s,x,x', remove it if useless.
4923 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4924 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4925
4926
4927  ac_config_headers="$ac_config_headers config.h"
4928
4929
4930
4931
4932
4933
4934 ac_header_dirent=no
4935 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4936   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4937 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4938 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4940   $as_echo_n "(cached) " >&6
4941 else
4942   cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h.  */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h.  */
4948 #include <sys/types.h>
4949 #include <$ac_hdr>
4950
4951 int
4952 main ()
4953 {
4954 if ((DIR *) 0)
4955 return 0;
4956   ;
4957   return 0;
4958 }
4959 _ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (ac_try="$ac_compile"
4962 case "(($ac_try" in
4963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964   *) ac_try_echo=$ac_try;;
4965 esac
4966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4967 $as_echo "$ac_try_echo") >&5
4968   (eval "$ac_compile") 2>conftest.er1
4969   ac_status=$?
4970   grep -v '^ *+' conftest.er1 >conftest.err
4971   rm -f conftest.er1
4972   cat conftest.err >&5
4973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974   (exit $ac_status); } && {
4975          test -z "$ac_c_werror_flag" ||
4976          test ! -s conftest.err
4977        } && test -s conftest.$ac_objext; then
4978   eval "$as_ac_Header=yes"
4979 else
4980   $as_echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4982
4983         eval "$as_ac_Header=no"
4984 fi
4985
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 fi
4988 ac_res=`eval 'as_val=${'$as_ac_Header'}
4989                  $as_echo "$as_val"'`
4990                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4991 $as_echo "$ac_res" >&6; }
4992 as_val=`eval 'as_val=${'$as_ac_Header'}
4993                  $as_echo "$as_val"'`
4994    if test "x$as_val" = x""yes; then
4995   cat >>confdefs.h <<_ACEOF
4996 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4997 _ACEOF
4998
4999 ac_header_dirent=$ac_hdr; break
5000 fi
5001
5002 done
5003 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5004 if test $ac_header_dirent = dirent.h; then
5005   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5006 $as_echo_n "checking for library containing opendir... " >&6; }
5007 if test "${ac_cv_search_opendir+set}" = set; then
5008   $as_echo_n "(cached) " >&6
5009 else
5010   ac_func_search_save_LIBS=$LIBS
5011 cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h.  */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h.  */
5017
5018 /* Override any GCC internal prototype to avoid an error.
5019    Use char because int might match the return type of a GCC
5020    builtin and then its argument prototype would still apply.  */
5021 #ifdef __cplusplus
5022 extern "C"
5023 #endif
5024 char opendir ();
5025 int
5026 main ()
5027 {
5028 return opendir ();
5029   ;
5030   return 0;
5031 }
5032 _ACEOF
5033 for ac_lib in '' dir; do
5034   if test -z "$ac_lib"; then
5035     ac_res="none required"
5036   else
5037     ac_res=-l$ac_lib
5038     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5039   fi
5040   rm -f conftest.$ac_objext conftest$ac_exeext
5041 if { (ac_try="$ac_link"
5042 case "(($ac_try" in
5043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044   *) ac_try_echo=$ac_try;;
5045 esac
5046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5047 $as_echo "$ac_try_echo") >&5
5048   (eval "$ac_link") 2>conftest.er1
5049   ac_status=$?
5050   grep -v '^ *+' conftest.er1 >conftest.err
5051   rm -f conftest.er1
5052   cat conftest.err >&5
5053   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054   (exit $ac_status); } && {
5055          test -z "$ac_c_werror_flag" ||
5056          test ! -s conftest.err
5057        } && test -s conftest$ac_exeext && {
5058          test "$cross_compiling" = yes ||
5059          $as_test_x conftest$ac_exeext
5060        }; then
5061   ac_cv_search_opendir=$ac_res
5062 else
5063   $as_echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066
5067 fi
5068
5069 rm -rf conftest.dSYM
5070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5071       conftest$ac_exeext
5072   if test "${ac_cv_search_opendir+set}" = set; then
5073   break
5074 fi
5075 done
5076 if test "${ac_cv_search_opendir+set}" = set; then
5077   :
5078 else
5079   ac_cv_search_opendir=no
5080 fi
5081 rm conftest.$ac_ext
5082 LIBS=$ac_func_search_save_LIBS
5083 fi
5084 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5085 $as_echo "$ac_cv_search_opendir" >&6; }
5086 ac_res=$ac_cv_search_opendir
5087 if test "$ac_res" != no; then
5088   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"