Generated from configure.in
[swftools.git] / configure
blob98394ca35538db6a199e3e63107c0fbb242b16ab
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
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
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="src/"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
661 SHARED
663 CFLAGS
664 LDFLAGS
665 CPPFLAGS
666 ac_ct_CC
667 EXEEXT
668 OBJEXT
670 CXXFLAGS
671 ac_ct_CXX
673 RANLIB
674 SET_MAKE
675 INSTALL_PROGRAM
676 INSTALL_SCRIPT
677 INSTALL_DATA
678 LN_S
679 UNCOMPRESS
680 AREXT
682 SLEXT
683 CXXLIBS
684 STRIP
685 target
686 target_cpu
687 target_vendor
688 target_os
689 WORDS_BIGENDIAN
690 SYSTEM_BACKTICKS
691 GREP
692 EGREP
693 PACKAGE
694 VERSION
695 HAVE_UNISTD_H
696 FREETYPE_CONFIG
697 lame_objects
698 AVIFILE_CONFIG
699 VIDEO_LIBS
700 VIDEO_CFLAGS
701 USE_GZIP
702 PYTHON_LIB
703 PYTHON_INCLUDES
704 PDF2SWF
705 LIBPDF
706 JPEG2SWF
707 GIF2SWF
708 PNG2SWF
709 LIBOBJS
710 LTLIBOBJS'
711 ac_subst_files=''
712 ac_precious_vars='build_alias
713 host_alias
714 target_alias
716 CFLAGS
717 LDFLAGS
718 LIBS
719 CPPFLAGS
721 CXXFLAGS
723 CPP'
726 # Initialize some variables set by options.
727 ac_init_help=
728 ac_init_version=false
729 # The variables have the same names as the options, with
730 # dashes changed to underlines.
731 cache_file=/dev/null
732 exec_prefix=NONE
733 no_create=
734 no_recursion=
735 prefix=NONE
736 program_prefix=NONE
737 program_suffix=NONE
738 program_transform_name=s,x,x,
739 silent=
740 site=
741 srcdir=
742 verbose=
743 x_includes=NONE
744 x_libraries=NONE
746 # Installation directory options.
747 # These are left unexpanded so users can "make install exec_prefix=/foo"
748 # and all the variables that are supposed to be based on exec_prefix
749 # by default will actually change.
750 # Use braces instead of parens because sh, perl, etc. also accept them.
751 # (The list follows the same order as the GNU Coding Standards.)
752 bindir='${exec_prefix}/bin'
753 sbindir='${exec_prefix}/sbin'
754 libexecdir='${exec_prefix}/libexec'
755 datarootdir='${prefix}/share'
756 datadir='${datarootdir}'
757 sysconfdir='${prefix}/etc'
758 sharedstatedir='${prefix}/com'
759 localstatedir='${prefix}/var'
760 includedir='${prefix}/include'
761 oldincludedir='/usr/include'
762 docdir='${datarootdir}/doc/${PACKAGE}'
763 infodir='${datarootdir}/info'
764 htmldir='${docdir}'
765 dvidir='${docdir}'
766 pdfdir='${docdir}'
767 psdir='${docdir}'
768 libdir='${exec_prefix}/lib'
769 localedir='${datarootdir}/locale'
770 mandir='${datarootdir}/man'
772 ac_prev=
773 ac_dashdash=
774 for ac_option
776 # If the previous option needs an argument, assign it.
777 if test -n "$ac_prev"; then
778 eval $ac_prev=\$ac_option
779 ac_prev=
780 continue
783 case $ac_option in
784 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
785 *) ac_optarg=yes ;;
786 esac
788 # Accept the important Cygnus configure options, so we can diagnose typos.
790 case $ac_dashdash$ac_option in
792 ac_dashdash=yes ;;
794 -bindir | --bindir | --bindi | --bind | --bin | --bi)
795 ac_prev=bindir ;;
796 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
797 bindir=$ac_optarg ;;
799 -build | --build | --buil | --bui | --bu)
800 ac_prev=build_alias ;;
801 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
802 build_alias=$ac_optarg ;;
804 -cache-file | --cache-file | --cache-fil | --cache-fi \
805 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
806 ac_prev=cache_file ;;
807 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
808 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
809 cache_file=$ac_optarg ;;
811 --config-cache | -C)
812 cache_file=config.cache ;;
814 -datadir | --datadir | --datadi | --datad)
815 ac_prev=datadir ;;
816 -datadir=* | --datadir=* | --datadi=* | --datad=*)
817 datadir=$ac_optarg ;;
819 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
820 | --dataroo | --dataro | --datar)
821 ac_prev=datarootdir ;;
822 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
823 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
824 datarootdir=$ac_optarg ;;
826 -disable-* | --disable-*)
827 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
828 # Reject names that are not valid shell variable names.
829 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
830 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
831 { (exit 1); exit 1; }; }
832 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
833 eval enable_$ac_feature=no ;;
835 -docdir | --docdir | --docdi | --doc | --do)
836 ac_prev=docdir ;;
837 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
838 docdir=$ac_optarg ;;
840 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
841 ac_prev=dvidir ;;
842 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
843 dvidir=$ac_optarg ;;
845 -enable-* | --enable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=\$ac_optarg ;;
854 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
855 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
856 | --exec | --exe | --ex)
857 ac_prev=exec_prefix ;;
858 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
859 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
860 | --exec=* | --exe=* | --ex=*)
861 exec_prefix=$ac_optarg ;;
863 -gas | --gas | --ga | --g)
864 # Obsolete; use --with-gas.
865 with_gas=yes ;;
867 -help | --help | --hel | --he | -h)
868 ac_init_help=long ;;
869 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
870 ac_init_help=recursive ;;
871 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
872 ac_init_help=short ;;
874 -host | --host | --hos | --ho)
875 ac_prev=host_alias ;;
876 -host=* | --host=* | --hos=* | --ho=*)
877 host_alias=$ac_optarg ;;
879 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
880 ac_prev=htmldir ;;
881 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
882 | --ht=*)
883 htmldir=$ac_optarg ;;
885 -includedir | --includedir | --includedi | --included | --include \
886 | --includ | --inclu | --incl | --inc)
887 ac_prev=includedir ;;
888 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
889 | --includ=* | --inclu=* | --incl=* | --inc=*)
890 includedir=$ac_optarg ;;
892 -infodir | --infodir | --infodi | --infod | --info | --inf)
893 ac_prev=infodir ;;
894 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
895 infodir=$ac_optarg ;;
897 -libdir | --libdir | --libdi | --libd)
898 ac_prev=libdir ;;
899 -libdir=* | --libdir=* | --libdi=* | --libd=*)
900 libdir=$ac_optarg ;;
902 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
903 | --libexe | --libex | --libe)
904 ac_prev=libexecdir ;;
905 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
906 | --libexe=* | --libex=* | --libe=*)
907 libexecdir=$ac_optarg ;;
909 -localedir | --localedir | --localedi | --localed | --locale)
910 ac_prev=localedir ;;
911 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
912 localedir=$ac_optarg ;;
914 -localstatedir | --localstatedir | --localstatedi | --localstated \
915 | --localstate | --localstat | --localsta | --localst | --locals)
916 ac_prev=localstatedir ;;
917 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
918 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
919 localstatedir=$ac_optarg ;;
921 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
922 ac_prev=mandir ;;
923 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
924 mandir=$ac_optarg ;;
926 -nfp | --nfp | --nf)
927 # Obsolete; use --without-fp.
928 with_fp=no ;;
930 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
931 | --no-cr | --no-c | -n)
932 no_create=yes ;;
934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
936 no_recursion=yes ;;
938 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
939 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
940 | --oldin | --oldi | --old | --ol | --o)
941 ac_prev=oldincludedir ;;
942 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
943 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
944 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
945 oldincludedir=$ac_optarg ;;
947 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
948 ac_prev=prefix ;;
949 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
950 prefix=$ac_optarg ;;
952 -program-prefix | --program-prefix | --program-prefi | --program-pref \
953 | --program-pre | --program-pr | --program-p)
954 ac_prev=program_prefix ;;
955 -program-prefix=* | --program-prefix=* | --program-prefi=* \
956 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
957 program_prefix=$ac_optarg ;;
959 -program-suffix | --program-suffix | --program-suffi | --program-suff \
960 | --program-suf | --program-su | --program-s)
961 ac_prev=program_suffix ;;
962 -program-suffix=* | --program-suffix=* | --program-suffi=* \
963 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
964 program_suffix=$ac_optarg ;;
966 -program-transform-name | --program-transform-name \
967 | --program-transform-nam | --program-transform-na \
968 | --program-transform-n | --program-transform- \
969 | --program-transform | --program-transfor \
970 | --program-transfo | --program-transf \
971 | --program-trans | --program-tran \
972 | --progr-tra | --program-tr | --program-t)
973 ac_prev=program_transform_name ;;
974 -program-transform-name=* | --program-transform-name=* \
975 | --program-transform-nam=* | --program-transform-na=* \
976 | --program-transform-n=* | --program-transform-=* \
977 | --program-transform=* | --program-transfor=* \
978 | --program-transfo=* | --program-transf=* \
979 | --program-trans=* | --program-tran=* \
980 | --progr-tra=* | --program-tr=* | --program-t=*)
981 program_transform_name=$ac_optarg ;;
983 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
984 ac_prev=pdfdir ;;
985 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
986 pdfdir=$ac_optarg ;;
988 -psdir | --psdir | --psdi | --psd | --ps)
989 ac_prev=psdir ;;
990 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
991 psdir=$ac_optarg ;;
993 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
994 | -silent | --silent | --silen | --sile | --sil)
995 silent=yes ;;
997 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
998 ac_prev=sbindir ;;
999 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1000 | --sbi=* | --sb=*)
1001 sbindir=$ac_optarg ;;
1003 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1004 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1005 | --sharedst | --shareds | --shared | --share | --shar \
1006 | --sha | --sh)
1007 ac_prev=sharedstatedir ;;
1008 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1009 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1010 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1011 | --sha=* | --sh=*)
1012 sharedstatedir=$ac_optarg ;;
1014 -site | --site | --sit)
1015 ac_prev=site ;;
1016 -site=* | --site=* | --sit=*)
1017 site=$ac_optarg ;;
1019 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1020 ac_prev=srcdir ;;
1021 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1022 srcdir=$ac_optarg ;;
1024 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1025 | --syscon | --sysco | --sysc | --sys | --sy)
1026 ac_prev=sysconfdir ;;
1027 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1028 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1029 sysconfdir=$ac_optarg ;;
1031 -target | --target | --targe | --targ | --tar | --ta | --t)
1032 ac_prev=target_alias ;;
1033 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1034 target_alias=$ac_optarg ;;
1036 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1037 verbose=yes ;;
1039 -version | --version | --versio | --versi | --vers | -V)
1040 ac_init_version=: ;;
1042 -with-* | --with-*)
1043 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1049 eval with_$ac_package=\$ac_optarg ;;
1051 -without-* | --without-*)
1052 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid package name: $ac_package" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058 eval with_$ac_package=no ;;
1060 --x)
1061 # Obsolete; use --with-x.
1062 with_x=yes ;;
1064 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1065 | --x-incl | --x-inc | --x-in | --x-i)
1066 ac_prev=x_includes ;;
1067 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1068 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1069 x_includes=$ac_optarg ;;
1071 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1072 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1073 ac_prev=x_libraries ;;
1074 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1075 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1076 x_libraries=$ac_optarg ;;
1078 -*) { echo "$as_me: error: unrecognized option: $ac_option
1079 Try \`$0 --help' for more information." >&2
1080 { (exit 1); exit 1; }; }
1083 *=*)
1084 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1087 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1088 { (exit 1); exit 1; }; }
1089 eval $ac_envvar=\$ac_optarg
1090 export $ac_envvar ;;
1093 # FIXME: should be removed in autoconf 3.0.
1094 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1095 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1097 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1100 esac
1101 done
1103 if test -n "$ac_prev"; then
1104 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1105 { echo "$as_me: error: missing argument to $ac_option" >&2
1106 { (exit 1); exit 1; }; }
1109 # Be sure to have absolute directory names.
1110 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1111 datadir sysconfdir sharedstatedir localstatedir includedir \
1112 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1113 libdir localedir mandir
1115 eval ac_val=\$$ac_var
1116 case $ac_val in
1117 [\\/$]* | ?:[\\/]* ) continue;;
1118 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1119 esac
1120 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1121 { (exit 1); exit 1; }; }
1122 done
1124 # There might be people who depend on the old broken behavior: `$host'
1125 # used to hold the argument of --host etc.
1126 # FIXME: To remove some day.
1127 build=$build_alias
1128 host=$host_alias
1129 target=$target_alias
1131 # FIXME: To remove some day.
1132 if test "x$host_alias" != x; then
1133 if test "x$build_alias" = x; then
1134 cross_compiling=maybe
1135 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1136 If a cross compiler is detected then cross compile mode will be used." >&2
1137 elif test "x$build_alias" != "x$host_alias"; then
1138 cross_compiling=yes
1142 ac_tool_prefix=
1143 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1145 test "$silent" = yes && exec 6>/dev/null
1148 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1149 ac_ls_di=`ls -di .` &&
1150 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1151 { echo "$as_me: error: Working directory cannot be determined" >&2
1152 { (exit 1); exit 1; }; }
1153 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1154 { echo "$as_me: error: pwd does not report name of working directory" >&2
1155 { (exit 1); exit 1; }; }
1158 # Find the source files, if location was not specified.
1159 if test -z "$srcdir"; then
1160 ac_srcdir_defaulted=yes
1161 # Try the directory containing this script, then the parent directory.
1162 ac_confdir=`$as_dirname -- "$0" ||
1163 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1164 X"$0" : 'X\(//\)[^/]' \| \
1165 X"$0" : 'X\(//\)$' \| \
1166 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1167 echo X"$0" |
1168 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1169 s//\1/
1172 /^X\(\/\/\)[^/].*/{
1173 s//\1/
1176 /^X\(\/\/\)$/{
1177 s//\1/
1180 /^X\(\/\).*/{
1181 s//\1/
1184 s/.*/./; q'`
1185 srcdir=$ac_confdir
1186 if test ! -r "$srcdir/$ac_unique_file"; then
1187 srcdir=..
1189 else
1190 ac_srcdir_defaulted=no
1192 if test ! -r "$srcdir/$ac_unique_file"; then
1193 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1194 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1195 { (exit 1); exit 1; }; }
1197 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1198 ac_abs_confdir=`(
1199 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1200 { (exit 1); exit 1; }; }
1201 pwd)`
1202 # When building in place, set srcdir=.
1203 if test "$ac_abs_confdir" = "$ac_pwd"; then
1204 srcdir=.
1206 # Remove unnecessary trailing slashes from srcdir.
1207 # Double slashes in file names in object file debugging info
1208 # mess up M-x gdb in Emacs.
1209 case $srcdir in
1210 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1211 esac
1212 for ac_var in $ac_precious_vars; do
1213 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1214 eval ac_env_${ac_var}_value=\$${ac_var}
1215 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1216 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1217 done
1220 # Report the --help message.
1222 if test "$ac_init_help" = "long"; then
1223 # Omit some internal or obsolete options to make the list less imposing.
1224 # This message is too long to be a string in the A/UX 3.1 sh.
1225 cat <<_ACEOF
1226 \`configure' configures this package to adapt to many kinds of systems.
1228 Usage: $0 [OPTION]... [VAR=VALUE]...
1230 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1231 VAR=VALUE. See below for descriptions of some of the useful variables.
1233 Defaults for the options are specified in brackets.
1235 Configuration:
1236 -h, --help display this help and exit
1237 --help=short display options specific to this package
1238 --help=recursive display the short help of all the included packages
1239 -V, --version display version information and exit
1240 -q, --quiet, --silent do not print \`checking...' messages
1241 --cache-file=FILE cache test results in FILE [disabled]
1242 -C, --config-cache alias for \`--cache-file=config.cache'
1243 -n, --no-create do not create output files
1244 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1246 Installation directories:
1247 --prefix=PREFIX install architecture-independent files in PREFIX
1248 [$ac_default_prefix]
1249 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1250 [PREFIX]
1252 By default, \`make install' will install all the files in
1253 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1254 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1255 for instance \`--prefix=\$HOME'.
1257 For better control, use the options below.
1259 Fine tuning of the installation directories:
1260 --bindir=DIR user executables [EPREFIX/bin]
1261 --sbindir=DIR system admin executables [EPREFIX/sbin]
1262 --libexecdir=DIR program executables [EPREFIX/libexec]
1263 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1264 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1265 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1266 --libdir=DIR object code libraries [EPREFIX/lib]
1267 --includedir=DIR C header files [PREFIX/include]
1268 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1269 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1270 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1271 --infodir=DIR info documentation [DATAROOTDIR/info]
1272 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1273 --mandir=DIR man documentation [DATAROOTDIR/man]
1274 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1275 --htmldir=DIR html documentation [DOCDIR]
1276 --dvidir=DIR dvi documentation [DOCDIR]
1277 --pdfdir=DIR pdf documentation [DOCDIR]
1278 --psdir=DIR ps documentation [DOCDIR]
1279 _ACEOF
1281 cat <<\_ACEOF
1283 Program names:
1284 --program-prefix=PREFIX prepend PREFIX to installed program names
1285 --program-suffix=SUFFIX append SUFFIX to installed program names
1286 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1288 System types:
1289 --build=BUILD configure for building on BUILD [guessed]
1290 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1291 --target=TARGET configure for building compilers for TARGET [HOST]
1292 _ACEOF
1295 if test -n "$ac_init_help"; then
1297 cat <<\_ACEOF
1299 Optional Features:
1300 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1301 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1302 --enable-checkmem turn on ccmalloc debugging
1303 --enable-debug turn on debugging
1304 --enable-profiling turn on profiling
1305 --enable-warnings turn on compiler warnings
1306 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1307 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1309 Some influential environment variables:
1310 CC C compiler command
1311 CFLAGS C compiler flags
1312 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1313 nonstandard directory <lib dir>
1314 LIBS libraries to pass to the linker, e.g. -l<library>
1315 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1316 you have headers in a nonstandard directory <include dir>
1317 CXX C++ compiler command
1318 CXXFLAGS C++ compiler flags
1319 CPP C preprocessor
1321 Use these variables to override the choices made by `configure' or to help
1322 it to find libraries and programs with nonstandard names/locations.
1324 _ACEOF
1325 ac_status=$?
1328 if test "$ac_init_help" = "recursive"; then
1329 # If there are subdirs, report their specific --help.
1330 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1331 test -d "$ac_dir" || continue
1332 ac_builddir=.
1334 case "$ac_dir" in
1335 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1337 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1338 # A ".." for each directory in $ac_dir_suffix.
1339 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1340 case $ac_top_builddir_sub in
1341 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1342 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1343 esac ;;
1344 esac
1345 ac_abs_top_builddir=$ac_pwd
1346 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1347 # for backward compatibility:
1348 ac_top_builddir=$ac_top_build_prefix
1350 case $srcdir in
1351 .) # We are building in place.
1352 ac_srcdir=.
1353 ac_top_srcdir=$ac_top_builddir_sub
1354 ac_abs_top_srcdir=$ac_pwd ;;
1355 [\\/]* | ?:[\\/]* ) # Absolute name.
1356 ac_srcdir=$srcdir$ac_dir_suffix;
1357 ac_top_srcdir=$srcdir
1358 ac_abs_top_srcdir=$srcdir ;;
1359 *) # Relative name.
1360 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1361 ac_top_srcdir=$ac_top_build_prefix$srcdir
1362 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1363 esac
1364 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1366 cd "$ac_dir" || { ac_status=$?; continue; }
1367 # Check for guested configure.
1368 if test -f "$ac_srcdir/configure.gnu"; then
1369 echo &&
1370 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1371 elif test -f "$ac_srcdir/configure"; then
1372 echo &&
1373 $SHELL "$ac_srcdir/configure" --help=recursive
1374 else
1375 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1376 fi || ac_status=$?
1377 cd "$ac_pwd" || { ac_status=$?; break; }
1378 done
1381 test -n "$ac_init_help" && exit $ac_status
1382 if $ac_init_version; then
1383 cat <<\_ACEOF
1384 configure
1385 generated by GNU Autoconf 2.61
1387 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1388 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1389 This configure script is free software; the Free Software Foundation
1390 gives unlimited permission to copy, distribute and modify it.
1391 _ACEOF
1392 exit
1394 cat >config.log <<_ACEOF
1395 This file contains any messages produced by compilers while
1396 running configure, to aid debugging if configure makes a mistake.
1398 It was created by $as_me, which was
1399 generated by GNU Autoconf 2.61. Invocation command line was
1401 $ $0 $@
1403 _ACEOF
1404 exec 5>>config.log
1406 cat <<_ASUNAME
1407 ## --------- ##
1408 ## Platform. ##
1409 ## --------- ##
1411 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1412 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1413 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1414 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1415 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1417 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1418 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1420 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1421 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1422 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1423 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1424 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1425 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1426 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1428 _ASUNAME
1430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431 for as_dir in $PATH
1433 IFS=$as_save_IFS
1434 test -z "$as_dir" && as_dir=.
1435 echo "PATH: $as_dir"
1436 done
1437 IFS=$as_save_IFS
1439 } >&5
1441 cat >&5 <<_ACEOF
1444 ## ----------- ##
1445 ## Core tests. ##
1446 ## ----------- ##
1448 _ACEOF
1451 # Keep a trace of the command line.
1452 # Strip out --no-create and --no-recursion so they do not pile up.
1453 # Strip out --silent because we don't want to record it for future runs.
1454 # Also quote any args containing shell meta-characters.
1455 # Make two passes to allow for proper duplicate-argument suppression.
1456 ac_configure_args=
1457 ac_configure_args0=
1458 ac_configure_args1=
1459 ac_must_keep_next=false
1460 for ac_pass in 1 2
1462 for ac_arg
1464 case $ac_arg in
1465 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1466 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1467 | -silent | --silent | --silen | --sile | --sil)
1468 continue ;;
1469 *\'*)
1470 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1471 esac
1472 case $ac_pass in
1473 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1475 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1476 if test $ac_must_keep_next = true; then
1477 ac_must_keep_next=false # Got value, back to normal.
1478 else
1479 case $ac_arg in
1480 *=* | --config-cache | -C | -disable-* | --disable-* \
1481 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1482 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1483 | -with-* | --with-* | -without-* | --without-* | --x)
1484 case "$ac_configure_args0 " in
1485 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1486 esac
1488 -* ) ac_must_keep_next=true ;;
1489 esac
1491 ac_configure_args="$ac_configure_args '$ac_arg'"
1493 esac
1494 done
1495 done
1496 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1497 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1499 # When interrupted or exit'd, cleanup temporary files, and complete
1500 # config.log. We remove comments because anyway the quotes in there
1501 # would cause problems or look ugly.
1502 # WARNING: Use '\'' to represent an apostrophe within the trap.
1503 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1504 trap 'exit_status=$?
1505 # Save into config.log some information that might help in debugging.
1507 echo
1509 cat <<\_ASBOX
1510 ## ---------------- ##
1511 ## Cache variables. ##
1512 ## ---------------- ##
1513 _ASBOX
1514 echo
1515 # The following way of writing the cache mishandles newlines in values,
1517 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1518 eval ac_val=\$$ac_var
1519 case $ac_val in #(
1520 *${as_nl}*)
1521 case $ac_var in #(
1522 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1523 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1524 esac
1525 case $ac_var in #(
1526 _ | IFS | as_nl) ;; #(
1527 *) $as_unset $ac_var ;;
1528 esac ;;
1529 esac
1530 done
1531 (set) 2>&1 |
1532 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1533 *${as_nl}ac_space=\ *)
1534 sed -n \
1535 "s/'\''/'\''\\\\'\'''\''/g;
1536 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1537 ;; #(
1539 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1541 esac |
1542 sort
1544 echo
1546 cat <<\_ASBOX
1547 ## ----------------- ##
1548 ## Output variables. ##
1549 ## ----------------- ##
1550 _ASBOX
1551 echo
1552 for ac_var in $ac_subst_vars
1554 eval ac_val=\$$ac_var
1555 case $ac_val in
1556 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1557 esac
1558 echo "$ac_var='\''$ac_val'\''"
1559 done | sort
1560 echo
1562 if test -n "$ac_subst_files"; then
1563 cat <<\_ASBOX
1564 ## ------------------- ##
1565 ## File substitutions. ##
1566 ## ------------------- ##
1567 _ASBOX
1568 echo
1569 for ac_var in $ac_subst_files
1571 eval ac_val=\$$ac_var
1572 case $ac_val in
1573 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1574 esac
1575 echo "$ac_var='\''$ac_val'\''"
1576 done | sort
1577 echo
1580 if test -s confdefs.h; then
1581 cat <<\_ASBOX
1582 ## ----------- ##
1583 ## confdefs.h. ##
1584 ## ----------- ##
1585 _ASBOX
1586 echo
1587 cat confdefs.h
1588 echo
1590 test "$ac_signal" != 0 &&
1591 echo "$as_me: caught signal $ac_signal"
1592 echo "$as_me: exit $exit_status"
1593 } >&5
1594 rm -f core *.core core.conftest.* &&
1595 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1596 exit $exit_status
1598 for ac_signal in 1 2 13 15; do
1599 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1600 done
1601 ac_signal=0
1603 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1604 rm -f -r conftest* confdefs.h
1606 # Predefined preprocessor variables.
1608 cat >>confdefs.h <<_ACEOF
1609 #define PACKAGE_NAME "$PACKAGE_NAME"
1610 _ACEOF
1613 cat >>confdefs.h <<_ACEOF
1614 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1615 _ACEOF
1618 cat >>confdefs.h <<_ACEOF
1619 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1620 _ACEOF
1623 cat >>confdefs.h <<_ACEOF
1624 #define PACKAGE_STRING "$PACKAGE_STRING"
1625 _ACEOF
1628 cat >>confdefs.h <<_ACEOF
1629 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1630 _ACEOF
1633 # Let the site file select an alternate cache file if it wants to.
1634 # Prefer explicitly selected file to automatically selected ones.
1635 if test -n "$CONFIG_SITE"; then
1636 set x "$CONFIG_SITE"
1637 elif test "x$prefix" != xNONE; then
1638 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1639 else
1640 set x "$ac_default_prefix/share/config.site" \
1641 "$ac_default_prefix/etc/config.site"
1643 shift
1644 for ac_site_file
1646 if test -r "$ac_site_file"; then
1647 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1648 echo "$as_me: loading site script $ac_site_file" >&6;}
1649 sed 's/^/| /' "$ac_site_file" >&5
1650 . "$ac_site_file"
1652 done
1654 if test -r "$cache_file"; then
1655 # Some versions of bash will fail to source /dev/null (special
1656 # files actually), so we avoid doing that.
1657 if test -f "$cache_file"; then
1658 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1659 echo "$as_me: loading cache $cache_file" >&6;}
1660 case $cache_file in
1661 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1662 *) . "./$cache_file";;
1663 esac
1665 else
1666 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1667 echo "$as_me: creating cache $cache_file" >&6;}
1668 >$cache_file
1671 # Check that the precious variables saved in the cache have kept the same
1672 # value.
1673 ac_cache_corrupted=false
1674 for ac_var in $ac_precious_vars; do
1675 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1676 eval ac_new_set=\$ac_env_${ac_var}_set
1677 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1678 eval ac_new_val=\$ac_env_${ac_var}_value
1679 case $ac_old_set,$ac_new_set in
1680 set,)
1681 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1682 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1683 ac_cache_corrupted=: ;;
1684 ,set)
1685 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1686 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1687 ac_cache_corrupted=: ;;
1688 ,);;
1690 if test "x$ac_old_val" != "x$ac_new_val"; then
1691 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1692 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1693 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1694 echo "$as_me: former value: $ac_old_val" >&2;}
1695 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1696 echo "$as_me: current value: $ac_new_val" >&2;}
1697 ac_cache_corrupted=:
1698 fi;;
1699 esac
1700 # Pass precious variables to config.status.
1701 if test "$ac_new_set" = set; then
1702 case $ac_new_val in
1703 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1704 *) ac_arg=$ac_var=$ac_new_val ;;
1705 esac
1706 case " $ac_configure_args " in
1707 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1708 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1709 esac
1711 done
1712 if $ac_cache_corrupted; then
1713 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1714 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1715 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1716 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1717 { (exit 1); exit 1; }; }
1736 ac_ext=c
1737 ac_cpp='$CPP $CPPFLAGS'
1738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1745 # Check whether --enable-checkmem was given.
1746 if test "${enable_checkmem+set}" = set; then
1747 enableval=$enable_checkmem; CHECKMEM=true
1750 # Check whether --enable-debug was given.
1751 if test "${enable_debug+set}" = set; then
1752 enableval=$enable_debug; DEBUG=true
1755 # Check whether --enable-profiling was given.
1756 if test "${enable_profiling+set}" = set; then
1757 enableval=$enable_profiling; PROFILING=true
1760 # Check whether --enable-warnings was given.
1761 if test "${enable_warnings+set}" = set; then
1762 enableval=$enable_warnings; ENABLE_WARNINGS=true
1765 # Check whether --enable-optimizations was given.
1766 if test "${enable_optimizations+set}" = set; then
1767 enableval=$enable_optimizations; OPTIMIZE=true
1770 # Check whether --enable-lame was given.
1771 if test "${enable_lame+set}" = set; then
1772 enableval=$enable_lame; DISABLE_LAME=true
1776 PACKAGE=swftools
1777 VERSION=0.8.0
1780 # ------------------------------------------------------------------
1782 if test "x${srcdir}" != "x."; then
1783 echo "--srcdir is not supported"
1784 exit 1
1787 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1788 if test "x$ENABLE_WARNINGS" '!=' "x";then
1789 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1792 if test "x$CHECKMEM" '!=' "x";then
1793 DEBUG=yes
1795 if test "x$PROFILING" '!=' "x";then
1796 DEBUG=yes
1798 if test "x$DEBUG" '!=' "x";then
1799 if test "x$PROFILING" = "x";then
1800 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1801 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1802 LDFLAGS="-g $LIBS"
1803 else
1804 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1805 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1806 LDFLAGS="-g -pg $LIBS"
1808 else if test "x$OPTIMIZE" '!=' "x"; then
1809 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1810 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1811 else
1812 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1813 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1816 #OLDGCC=1
1817 #if test "x$OLDGCC" '!=' "x";then
1818 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1819 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1820 # CFLAGS="$CFLAGS -ansi -pendantic"
1821 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1824 export PACKAGE VERSION CFLAGS CXXFLAGS
1827 ac_aux_dir=
1828 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1829 if test -f "$ac_dir/install-sh"; then
1830 ac_aux_dir=$ac_dir
1831 ac_install_sh="$ac_aux_dir/install-sh -c"
1832 break
1833 elif test -f "$ac_dir/install.sh"; then
1834 ac_aux_dir=$ac_dir
1835 ac_install_sh="$ac_aux_dir/install.sh -c"
1836 break
1837 elif test -f "$ac_dir/shtool"; then
1838 ac_aux_dir=$ac_dir
1839 ac_install_sh="$ac_aux_dir/shtool install -c"
1840 break
1842 done
1843 if test -z "$ac_aux_dir"; then
1844 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1845 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1846 { (exit 1); exit 1; }; }
1849 # These three variables are undocumented and unsupported,
1850 # and are intended to be withdrawn in a future Autoconf release.
1851 # They can cause serious problems if a builder's source tree is in a directory
1852 # whose full name contains unusual characters.
1853 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1854 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1855 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1858 # Make sure we can run config.sub.
1859 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1860 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1861 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1862 { (exit 1); exit 1; }; }
1864 { echo "$as_me:$LINENO: checking build system type" >&5
1865 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1866 if test "${ac_cv_build+set}" = set; then
1867 echo $ECHO_N "(cached) $ECHO_C" >&6
1868 else
1869 ac_build_alias=$build_alias
1870 test "x$ac_build_alias" = x &&
1871 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1872 test "x$ac_build_alias" = x &&
1873 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1874 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1875 { (exit 1); exit 1; }; }
1876 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1877 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1878 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1879 { (exit 1); exit 1; }; }
1882 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1883 echo "${ECHO_T}$ac_cv_build" >&6; }
1884 case $ac_cv_build in
1885 *-*-*) ;;
1886 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1887 echo "$as_me: error: invalid value of canonical build" >&2;}
1888 { (exit 1); exit 1; }; };;
1889 esac
1890 build=$ac_cv_build
1891 ac_save_IFS=$IFS; IFS='-'
1892 set x $ac_cv_build
1893 shift
1894 build_cpu=$1
1895 build_vendor=$2
1896 shift; shift
1897 # Remember, the first character of IFS is used to create $*,
1898 # except with old shells:
1899 build_os=$*
1900 IFS=$ac_save_IFS
1901 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1904 { echo "$as_me:$LINENO: checking host system type" >&5
1905 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1906 if test "${ac_cv_host+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 if test "x$host_alias" = x; then
1910 ac_cv_host=$ac_cv_build
1911 else
1912 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1913 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1914 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1915 { (exit 1); exit 1; }; }
1919 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1920 echo "${ECHO_T}$ac_cv_host" >&6; }
1921 case $ac_cv_host in
1922 *-*-*) ;;
1923 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1924 echo "$as_me: error: invalid value of canonical host" >&2;}
1925 { (exit 1); exit 1; }; };;
1926 esac
1927 host=$ac_cv_host
1928 ac_save_IFS=$IFS; IFS='-'
1929 set x $ac_cv_host
1930 shift
1931 host_cpu=$1
1932 host_vendor=$2
1933 shift; shift
1934 # Remember, the first character of IFS is used to create $*,
1935 # except with old shells:
1936 host_os=$*
1937 IFS=$ac_save_IFS
1938 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1942 SHARED="-shared"
1943 MACOSX=
1944 case $host_os in
1945 *darwin* )
1946 MACOSX=yes
1947 CFLAGS="$CFLAGS"
1948 CXXFLAGS="$CXXFLAGS -fno-rtti"
1949 SHARED="-bundle"
1950 # Use fink packages if available.
1951 #if test -d /sw/include && test -d /sw/lib; then
1952 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
1953 # LDFLAGS="${LDFLAGS} -L/sw/lib"
1956 esac
1960 ac_ext=c
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1965 if test -n "$ac_tool_prefix"; then
1966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1967 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1970 if test "${ac_cv_prog_CC+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973 if test -n "$CC"; then
1974 ac_cv_prog_CC="$CC" # Let the user override the test.
1975 else
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1979 IFS=$as_save_IFS
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1983 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1987 done
1988 done
1989 IFS=$as_save_IFS
1993 CC=$ac_cv_prog_CC
1994 if test -n "$CC"; then
1995 { echo "$as_me:$LINENO: result: $CC" >&5
1996 echo "${ECHO_T}$CC" >&6; }
1997 else
1998 { echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6; }
2004 if test -z "$ac_cv_prog_CC"; then
2005 ac_ct_CC=$CC
2006 # Extract the first word of "gcc", so it can be a program name with args.
2007 set dummy gcc; ac_word=$2
2008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2010 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 else
2013 if test -n "$ac_ct_CC"; then
2014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015 else
2016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017 for as_dir in $PATH
2019 IFS=$as_save_IFS
2020 test -z "$as_dir" && as_dir=.
2021 for ac_exec_ext in '' $ac_executable_extensions; do
2022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2023 ac_cv_prog_ac_ct_CC="gcc"
2024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 break 2
2027 done
2028 done
2029 IFS=$as_save_IFS
2033 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2034 if test -n "$ac_ct_CC"; then
2035 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2036 echo "${ECHO_T}$ac_ct_CC" >&6; }
2037 else
2038 { echo "$as_me:$LINENO: result: no" >&5
2039 echo "${ECHO_T}no" >&6; }
2042 if test "x$ac_ct_CC" = x; then
2043 CC=""
2044 else
2045 case $cross_compiling:$ac_tool_warned in
2046 yes:)
2047 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2048 whose name does not start with the host triplet. If you think this
2049 configuration is useful to you, please write to autoconf@gnu.org." >&5
2050 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2051 whose name does not start with the host triplet. If you think this
2052 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2053 ac_tool_warned=yes ;;
2054 esac
2055 CC=$ac_ct_CC
2057 else
2058 CC="$ac_cv_prog_CC"
2061 if test -z "$CC"; then
2062 if test -n "$ac_tool_prefix"; then
2063 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2064 set dummy ${ac_tool_prefix}cc; ac_word=$2
2065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2067 if test "${ac_cv_prog_CC+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070 if test -n "$CC"; then
2071 ac_cv_prog_CC="$CC" # Let the user override the test.
2072 else
2073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074 for as_dir in $PATH
2076 IFS=$as_save_IFS
2077 test -z "$as_dir" && as_dir=.
2078 for ac_exec_ext in '' $ac_executable_extensions; do
2079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2080 ac_cv_prog_CC="${ac_tool_prefix}cc"
2081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 break 2
2084 done
2085 done
2086 IFS=$as_save_IFS
2090 CC=$ac_cv_prog_CC
2091 if test -n "$CC"; then
2092 { echo "$as_me:$LINENO: result: $CC" >&5
2093 echo "${ECHO_T}$CC" >&6; }
2094 else
2095 { echo "$as_me:$LINENO: result: no" >&5
2096 echo "${ECHO_T}no" >&6; }
2102 if test -z "$CC"; then
2103 # Extract the first word of "cc", so it can be a program name with args.
2104 set dummy cc; ac_word=$2
2105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2107 if test "${ac_cv_prog_CC+set}" = set; then
2108 echo $ECHO_N "(cached) $ECHO_C" >&6
2109 else
2110 if test -n "$CC"; then
2111 ac_cv_prog_CC="$CC" # Let the user override the test.
2112 else
2113 ac_prog_rejected=no
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2121 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2122 ac_prog_rejected=yes
2123 continue
2125 ac_cv_prog_CC="cc"
2126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127 break 2
2129 done
2130 done
2131 IFS=$as_save_IFS
2133 if test $ac_prog_rejected = yes; then
2134 # We found a bogon in the path, so make sure we never use it.
2135 set dummy $ac_cv_prog_CC
2136 shift
2137 if test $# != 0; then
2138 # We chose a different compiler from the bogus one.
2139 # However, it has the same basename, so the bogon will be chosen
2140 # first if we set CC to just the basename; use the full file name.
2141 shift
2142 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2147 CC=$ac_cv_prog_CC
2148 if test -n "$CC"; then
2149 { echo "$as_me:$LINENO: result: $CC" >&5
2150 echo "${ECHO_T}$CC" >&6; }
2151 else
2152 { echo "$as_me:$LINENO: result: no" >&5
2153 echo "${ECHO_T}no" >&6; }
2158 if test -z "$CC"; then
2159 if test -n "$ac_tool_prefix"; then
2160 for ac_prog in cl.exe
2162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2166 if test "${ac_cv_prog_CC+set}" = set; then
2167 echo $ECHO_N "(cached) $ECHO_C" >&6
2168 else
2169 if test -n "$CC"; then
2170 ac_cv_prog_CC="$CC" # Let the user override the test.
2171 else
2172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2173 for as_dir in $PATH
2175 IFS=$as_save_IFS
2176 test -z "$as_dir" && as_dir=.
2177 for ac_exec_ext in '' $ac_executable_extensions; do
2178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2179 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 break 2
2183 done
2184 done
2185 IFS=$as_save_IFS
2189 CC=$ac_cv_prog_CC
2190 if test -n "$CC"; then
2191 { echo "$as_me:$LINENO: result: $CC" >&5
2192 echo "${ECHO_T}$CC" >&6; }
2193 else
2194 { echo "$as_me:$LINENO: result: no" >&5
2195 echo "${ECHO_T}no" >&6; }
2199 test -n "$CC" && break
2200 done
2202 if test -z "$CC"; then
2203 ac_ct_CC=$CC
2204 for ac_prog in cl.exe
2206 # Extract the first word of "$ac_prog", so it can be a program name with args.
2207 set dummy $ac_prog; ac_word=$2
2208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2210 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2211 echo $ECHO_N "(cached) $ECHO_C" >&6
2212 else
2213 if test -n "$ac_ct_CC"; then
2214 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2215 else
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2217 for as_dir in $PATH
2219 IFS=$as_save_IFS
2220 test -z "$as_dir" && as_dir=.
2221 for ac_exec_ext in '' $ac_executable_extensions; do
2222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2223 ac_cv_prog_ac_ct_CC="$ac_prog"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2227 done
2228 done
2229 IFS=$as_save_IFS
2233 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2234 if test -n "$ac_ct_CC"; then
2235 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2236 echo "${ECHO_T}$ac_ct_CC" >&6; }
2237 else
2238 { echo "$as_me:$LINENO: result: no" >&5
2239 echo "${ECHO_T}no" >&6; }
2243 test -n "$ac_ct_CC" && break
2244 done
2246 if test "x$ac_ct_CC" = x; then
2247 CC=""
2248 else
2249 case $cross_compiling:$ac_tool_warned in
2250 yes:)
2251 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2252 whose name does not start with the host triplet. If you think this
2253 configuration is useful to you, please write to autoconf@gnu.org." >&5
2254 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2255 whose name does not start with the host triplet. If you think this
2256 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2257 ac_tool_warned=yes ;;
2258 esac
2259 CC=$ac_ct_CC
2266 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2267 See \`config.log' for more details." >&5
2268 echo "$as_me: error: no acceptable C compiler found in \$PATH
2269 See \`config.log' for more details." >&2;}
2270 { (exit 1); exit 1; }; }
2272 # Provide some information about the compiler.
2273 echo "$as_me:$LINENO: checking for C compiler version" >&5
2274 ac_compiler=`set X $ac_compile; echo $2`
2275 { (ac_try="$ac_compiler --version >&5"
2276 case "(($ac_try" in
2277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2278 *) ac_try_echo=$ac_try;;
2279 esac
2280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2281 (eval "$ac_compiler --version >&5") 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }
2285 { (ac_try="$ac_compiler -v >&5"
2286 case "(($ac_try" in
2287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2288 *) ac_try_echo=$ac_try;;
2289 esac
2290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2291 (eval "$ac_compiler -v >&5") 2>&5
2292 ac_status=$?
2293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); }
2295 { (ac_try="$ac_compiler -V >&5"
2296 case "(($ac_try" in
2297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2298 *) ac_try_echo=$ac_try;;
2299 esac
2300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2301 (eval "$ac_compiler -V >&5") 2>&5
2302 ac_status=$?
2303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2304 (exit $ac_status); }
2306 cat >conftest.$ac_ext <<_ACEOF
2307 /* confdefs.h. */
2308 _ACEOF
2309 cat confdefs.h >>conftest.$ac_ext
2310 cat >>conftest.$ac_ext <<_ACEOF
2311 /* end confdefs.h. */
2314 main ()
2318 return 0;
2320 _ACEOF
2321 ac_clean_files_save=$ac_clean_files
2322 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2323 # Try to create an executable without -o first, disregard a.out.
2324 # It will help us diagnose broken compilers, and finding out an intuition
2325 # of exeext.
2326 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2327 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2328 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2330 # List of possible output files, starting from the most likely.
2331 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2332 # only as a last resort. b.out is created by i960 compilers.
2333 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2335 # The IRIX 6 linker writes into existing files which may not be
2336 # executable, retaining their permissions. Remove them first so a
2337 # subsequent execution test works.
2338 ac_rmfiles=
2339 for ac_file in $ac_files
2341 case $ac_file in
2342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2343 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2344 esac
2345 done
2346 rm -f $ac_rmfiles
2348 if { (ac_try="$ac_link_default"
2349 case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352 esac
2353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_link_default") 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; then
2358 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2359 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2360 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2361 # so that the user can short-circuit this test for compilers unknown to
2362 # Autoconf.
2363 for ac_file in $ac_files ''
2365 test -f "$ac_file" || continue
2366 case $ac_file in
2367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2369 [ab].out )
2370 # We found the default executable, but exeext='' is most
2371 # certainly right.
2372 break;;
2373 *.* )
2374 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2375 then :; else
2376 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2378 # We set ac_cv_exeext here because the later test for it is not
2379 # safe: cross compilers may not add the suffix if given an `-o'
2380 # argument, so we may need to know it at that point already.
2381 # Even if this section looks crufty: it has the advantage of
2382 # actually working.
2383 break;;
2385 break;;
2386 esac
2387 done
2388 test "$ac_cv_exeext" = no && ac_cv_exeext=
2390 else
2391 ac_file=''
2394 { echo "$as_me:$LINENO: result: $ac_file" >&5
2395 echo "${ECHO_T}$ac_file" >&6; }
2396 if test -z "$ac_file"; then
2397 echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2400 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2401 See \`config.log' for more details." >&5
2402 echo "$as_me: error: C compiler cannot create executables
2403 See \`config.log' for more details." >&2;}
2404 { (exit 77); exit 77; }; }
2407 ac_exeext=$ac_cv_exeext
2409 # Check that the compiler produces executables we can run. If not, either
2410 # the compiler is broken, or we cross compile.
2411 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2412 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2413 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2414 # If not cross compiling, check that we can run a simple program.
2415 if test "$cross_compiling" != yes; then
2416 if { ac_try='./$ac_file'
2417 { (case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2420 esac
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_try") 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2426 cross_compiling=no
2427 else
2428 if test "$cross_compiling" = maybe; then
2429 cross_compiling=yes
2430 else
2431 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2432 If you meant to cross compile, use \`--host'.
2433 See \`config.log' for more details." >&5
2434 echo "$as_me: error: cannot run C compiled programs.
2435 If you meant to cross compile, use \`--host'.
2436 See \`config.log' for more details." >&2;}
2437 { (exit 1); exit 1; }; }
2441 { echo "$as_me:$LINENO: result: yes" >&5
2442 echo "${ECHO_T}yes" >&6; }
2444 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2445 ac_clean_files=$ac_clean_files_save
2446 # Check that the compiler produces executables we can run. If not, either
2447 # the compiler is broken, or we cross compile.
2448 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2449 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2450 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2451 echo "${ECHO_T}$cross_compiling" >&6; }
2453 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2454 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2455 if { (ac_try="$ac_link"
2456 case "(($ac_try" in
2457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2458 *) ac_try_echo=$ac_try;;
2459 esac
2460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2461 (eval "$ac_link") 2>&5
2462 ac_status=$?
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); }; then
2465 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2466 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2467 # work properly (i.e., refer to `conftest.exe'), while it won't with
2468 # `rm'.
2469 for ac_file in conftest.exe conftest conftest.*; do
2470 test -f "$ac_file" || continue
2471 case $ac_file in
2472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2473 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2474 break;;
2475 * ) break;;
2476 esac
2477 done
2478 else
2479 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2480 See \`config.log' for more details." >&5
2481 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2482 See \`config.log' for more details." >&2;}
2483 { (exit 1); exit 1; }; }
2486 rm -f conftest$ac_cv_exeext
2487 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2488 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2490 rm -f conftest.$ac_ext
2491 EXEEXT=$ac_cv_exeext
2492 ac_exeext=$EXEEXT
2493 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2494 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2495 if test "${ac_cv_objext+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 else
2498 cat >conftest.$ac_ext <<_ACEOF
2499 /* confdefs.h. */
2500 _ACEOF
2501 cat confdefs.h >>conftest.$ac_ext
2502 cat >>conftest.$ac_ext <<_ACEOF
2503 /* end confdefs.h. */
2506 main ()
2510 return 0;
2512 _ACEOF
2513 rm -f conftest.o conftest.obj
2514 if { (ac_try="$ac_compile"
2515 case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compile") 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; then
2524 for ac_file in conftest.o conftest.obj conftest.*; do
2525 test -f "$ac_file" || continue;
2526 case $ac_file in
2527 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2528 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2529 break;;
2530 esac
2531 done
2532 else
2533 echo "$as_me: failed program was:" >&5
2534 sed 's/^/| /' conftest.$ac_ext >&5
2536 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2537 See \`config.log' for more details." >&5
2538 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2539 See \`config.log' for more details." >&2;}
2540 { (exit 1); exit 1; }; }
2543 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2545 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2546 echo "${ECHO_T}$ac_cv_objext" >&6; }
2547 OBJEXT=$ac_cv_objext
2548 ac_objext=$OBJEXT
2549 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2550 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2551 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2552 echo $ECHO_N "(cached) $ECHO_C" >&6
2553 else
2554 cat >conftest.$ac_ext <<_ACEOF
2555 /* confdefs.h. */
2556 _ACEOF
2557 cat confdefs.h >>conftest.$ac_ext
2558 cat >>conftest.$ac_ext <<_ACEOF
2559 /* end confdefs.h. */
2562 main ()
2564 #ifndef __GNUC__
2565 choke me
2566 #endif
2569 return 0;
2571 _ACEOF
2572 rm -f conftest.$ac_objext
2573 if { (ac_try="$ac_compile"
2574 case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2577 esac
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_compile") 2>conftest.er1
2580 ac_status=$?
2581 grep -v '^ *+' conftest.er1 >conftest.err
2582 rm -f conftest.er1
2583 cat conftest.err >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); } && {
2586 test -z "$ac_c_werror_flag" ||
2587 test ! -s conftest.err
2588 } && test -s conftest.$ac_objext; then
2589 ac_compiler_gnu=yes
2590 else
2591 echo "$as_me: failed program was:" >&5
2592 sed 's/^/| /' conftest.$ac_ext >&5
2594 ac_compiler_gnu=no
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2598 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2601 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2602 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2603 GCC=`test $ac_compiler_gnu = yes && echo yes`
2604 ac_test_CFLAGS=${CFLAGS+set}
2605 ac_save_CFLAGS=$CFLAGS
2606 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2607 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2608 if test "${ac_cv_prog_cc_g+set}" = set; then
2609 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 else
2611 ac_save_c_werror_flag=$ac_c_werror_flag
2612 ac_c_werror_flag=yes
2613 ac_cv_prog_cc_g=no
2614 CFLAGS="-g"
2615 cat >conftest.$ac_ext <<_ACEOF
2616 /* confdefs.h. */
2617 _ACEOF
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2623 main ()
2627 return 0;
2629 _ACEOF
2630 rm -f conftest.$ac_objext
2631 if { (ac_try="$ac_compile"
2632 case "(($ac_try" in
2633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2634 *) ac_try_echo=$ac_try;;
2635 esac
2636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2637 (eval "$ac_compile") 2>conftest.er1
2638 ac_status=$?
2639 grep -v '^ *+' conftest.er1 >conftest.err
2640 rm -f conftest.er1
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } && {
2644 test -z "$ac_c_werror_flag" ||
2645 test ! -s conftest.err
2646 } && test -s conftest.$ac_objext; then
2647 ac_cv_prog_cc_g=yes
2648 else
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2652 CFLAGS=""
2653 cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h. */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h. */
2661 main ()
2665 return 0;
2667 _ACEOF
2668 rm -f conftest.$ac_objext
2669 if { (ac_try="$ac_compile"
2670 case "(($ac_try" in
2671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2672 *) ac_try_echo=$ac_try;;
2673 esac
2674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2675 (eval "$ac_compile") 2>conftest.er1
2676 ac_status=$?
2677 grep -v '^ *+' conftest.er1 >conftest.err
2678 rm -f conftest.er1
2679 cat conftest.err >&5
2680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); } && {
2682 test -z "$ac_c_werror_flag" ||
2683 test ! -s conftest.err
2684 } && test -s conftest.$ac_objext; then
2686 else
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2690 ac_c_werror_flag=$ac_save_c_werror_flag
2691 CFLAGS="-g"
2692 cat >conftest.$ac_ext <<_ACEOF
2693 /* confdefs.h. */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2700 main ()
2704 return 0;
2706 _ACEOF
2707 rm -f conftest.$ac_objext
2708 if { (ac_try="$ac_compile"
2709 case "(($ac_try" in
2710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2711 *) ac_try_echo=$ac_try;;
2712 esac
2713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2714 (eval "$ac_compile") 2>conftest.er1
2715 ac_status=$?
2716 grep -v '^ *+' conftest.er1 >conftest.err
2717 rm -f conftest.er1
2718 cat conftest.err >&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } && {
2721 test -z "$ac_c_werror_flag" ||
2722 test ! -s conftest.err
2723 } && test -s conftest.$ac_objext; then
2724 ac_cv_prog_cc_g=yes
2725 else
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_c_werror_flag=$ac_save_c_werror_flag
2741 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2742 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2743 if test "$ac_test_CFLAGS" = set; then
2744 CFLAGS=$ac_save_CFLAGS
2745 elif test $ac_cv_prog_cc_g = yes; then
2746 if test "$GCC" = yes; then
2747 CFLAGS="-g -O2"
2748 else
2749 CFLAGS="-g"
2751 else
2752 if test "$GCC" = yes; then
2753 CFLAGS="-O2"
2754 else
2755 CFLAGS=
2758 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2759 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_cc_c89+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763 ac_cv_prog_cc_c89=no
2764 ac_save_CC=$CC
2765 cat >conftest.$ac_ext <<_ACEOF
2766 /* confdefs.h. */
2767 _ACEOF
2768 cat confdefs.h >>conftest.$ac_ext
2769 cat >>conftest.$ac_ext <<_ACEOF
2770 /* end confdefs.h. */
2771 #include <stdarg.h>
2772 #include <stdio.h>
2773 #include <sys/types.h>
2774 #include <sys/stat.h>
2775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2776 struct buf { int x; };
2777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2778 static char *e (p, i)
2779 char **p;
2780 int i;
2782 return p[i];
2784 static char *f (char * (*g) (char **, int), char **p, ...)
2786 char *s;
2787 va_list v;
2788 va_start (v,p);
2789 s = g (p, va_arg (v,int));
2790 va_end (v);
2791 return s;
2794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2795 function prototypes and stuff, but not '\xHH' hex character constants.
2796 These don't provoke an error unfortunately, instead are silently treated
2797 as 'x'. The following induces an error, until -std is added to get
2798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2799 array size at least. It's necessary to write '\x00'==0 to get something
2800 that's true only with -std. */
2801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2804 inside strings and character constants. */
2805 #define FOO(x) 'x'
2806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2808 int test (int i, double x);
2809 struct s1 {int (*f) (int a);};
2810 struct s2 {int (*f) (double a);};
2811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2812 int argc;
2813 char **argv;
2815 main ()
2817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2819 return 0;
2821 _ACEOF
2822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2825 CC="$ac_save_CC $ac_arg"
2826 rm -f conftest.$ac_objext
2827 if { (ac_try="$ac_compile"
2828 case "(($ac_try" in
2829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2830 *) ac_try_echo=$ac_try;;
2831 esac
2832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2833 (eval "$ac_compile") 2>conftest.er1
2834 ac_status=$?
2835 grep -v '^ *+' conftest.er1 >conftest.err
2836 rm -f conftest.er1
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } && {
2840 test -z "$ac_c_werror_flag" ||
2841 test ! -s conftest.err
2842 } && test -s conftest.$ac_objext; then
2843 ac_cv_prog_cc_c89=$ac_arg
2844 else
2845 echo "$as_me: failed program was:" >&5
2846 sed 's/^/| /' conftest.$ac_ext >&5
2851 rm -f core conftest.err conftest.$ac_objext
2852 test "x$ac_cv_prog_cc_c89" != "xno" && break
2853 done
2854 rm -f conftest.$ac_ext
2855 CC=$ac_save_CC
2858 # AC_CACHE_VAL
2859 case "x$ac_cv_prog_cc_c89" in
2861 { echo "$as_me:$LINENO: result: none needed" >&5
2862 echo "${ECHO_T}none needed" >&6; } ;;
2863 xno)
2864 { echo "$as_me:$LINENO: result: unsupported" >&5
2865 echo "${ECHO_T}unsupported" >&6; } ;;
2867 CC="$CC $ac_cv_prog_cc_c89"
2868 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2869 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2870 esac
2873 ac_ext=c
2874 ac_cpp='$CPP $CPPFLAGS'
2875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2879 ac_ext=cpp
2880 ac_cpp='$CXXCPP $CPPFLAGS'
2881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2884 if test -z "$CXX"; then
2885 if test -n "$CCC"; then
2886 CXX=$CCC
2887 else
2888 if test -n "$ac_tool_prefix"; then
2889 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2892 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2895 if test "${ac_cv_prog_CXX+set}" = set; then
2896 echo $ECHO_N "(cached) $ECHO_C" >&6
2897 else
2898 if test -n "$CXX"; then
2899 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 for ac_exec_ext in '' $ac_executable_extensions; do
2907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2908 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 break 2
2912 done
2913 done
2914 IFS=$as_save_IFS
2918 CXX=$ac_cv_prog_CXX
2919 if test -n "$CXX"; then
2920 { echo "$as_me:$LINENO: result: $CXX" >&5
2921 echo "${ECHO_T}$CXX" >&6; }
2922 else
2923 { echo "$as_me:$LINENO: result: no" >&5
2924 echo "${ECHO_T}no" >&6; }
2928 test -n "$CXX" && break
2929 done
2931 if test -z "$CXX"; then
2932 ac_ct_CXX=$CXX
2933 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2935 # Extract the first word of "$ac_prog", so it can be a program name with args.
2936 set dummy $ac_prog; ac_word=$2
2937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2939 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2940 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 else
2942 if test -n "$ac_ct_CXX"; then
2943 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_ac_ct_CXX="$ac_prog"
2953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2956 done
2957 done
2958 IFS=$as_save_IFS
2962 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2963 if test -n "$ac_ct_CXX"; then
2964 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2965 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2966 else
2967 { echo "$as_me:$LINENO: result: no" >&5
2968 echo "${ECHO_T}no" >&6; }
2972 test -n "$ac_ct_CXX" && break
2973 done
2975 if test "x$ac_ct_CXX" = x; then
2976 CXX="g++"
2977 else
2978 case $cross_compiling:$ac_tool_warned in
2979 yes:)
2980 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2981 whose name does not start with the host triplet. If you think this
2982 configuration is useful to you, please write to autoconf@gnu.org." >&5
2983 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2984 whose name does not start with the host triplet. If you think this
2985 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2986 ac_tool_warned=yes ;;
2987 esac
2988 CXX=$ac_ct_CXX
2994 # Provide some information about the compiler.
2995 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2996 ac_compiler=`set X $ac_compile; echo $2`
2997 { (ac_try="$ac_compiler --version >&5"
2998 case "(($ac_try" in
2999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3000 *) ac_try_echo=$ac_try;;
3001 esac
3002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3003 (eval "$ac_compiler --version >&5") 2>&5
3004 ac_status=$?
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); }
3007 { (ac_try="$ac_compiler -v >&5"
3008 case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3011 esac
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_compiler -v >&5") 2>&5
3014 ac_status=$?
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }
3017 { (ac_try="$ac_compiler -V >&5"
3018 case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3021 esac
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compiler -V >&5") 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }
3028 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3029 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3030 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3031 echo $ECHO_N "(cached) $ECHO_C" >&6
3032 else
3033 cat >conftest.$ac_ext <<_ACEOF
3034 /* confdefs.h. */
3035 _ACEOF
3036 cat confdefs.h >>conftest.$ac_ext
3037 cat >>conftest.$ac_ext <<_ACEOF
3038 /* end confdefs.h. */
3041 main ()
3043 #ifndef __GNUC__
3044 choke me
3045 #endif
3048 return 0;
3050 _ACEOF
3051 rm -f conftest.$ac_objext
3052 if { (ac_try="$ac_compile"
3053 case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compile") 2>conftest.er1
3059 ac_status=$?
3060 grep -v '^ *+' conftest.er1 >conftest.err
3061 rm -f conftest.er1
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } && {
3065 test -z "$ac_cxx_werror_flag" ||
3066 test ! -s conftest.err
3067 } && test -s conftest.$ac_objext; then
3068 ac_compiler_gnu=yes
3069 else
3070 echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3073 ac_compiler_gnu=no
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3080 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3081 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3082 GXX=`test $ac_compiler_gnu = yes && echo yes`
3083 ac_test_CXXFLAGS=${CXXFLAGS+set}
3084 ac_save_CXXFLAGS=$CXXFLAGS
3085 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3086 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3087 if test "${ac_cv_prog_cxx_g+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 else
3090 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3091 ac_cxx_werror_flag=yes
3092 ac_cv_prog_cxx_g=no
3093 CXXFLAGS="-g"
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3102 main ()
3106 return 0;
3108 _ACEOF
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3117 ac_status=$?
3118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } && {
3123 test -z "$ac_cxx_werror_flag" ||
3124 test ! -s conftest.err
3125 } && test -s conftest.$ac_objext; then
3126 ac_cv_prog_cxx_g=yes
3127 else
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3131 CXXFLAGS=""
3132 cat >conftest.$ac_ext <<_ACEOF
3133 /* confdefs.h. */
3134 _ACEOF
3135 cat confdefs.h >>conftest.$ac_ext
3136 cat >>conftest.$ac_ext <<_ACEOF
3137 /* end confdefs.h. */
3140 main ()
3144 return 0;
3146 _ACEOF
3147 rm -f conftest.$ac_objext
3148 if { (ac_try="$ac_compile"
3149 case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_compile") 2>conftest.er1
3155 ac_status=$?
3156 grep -v '^ *+' conftest.er1 >conftest.err
3157 rm -f conftest.er1
3158 cat conftest.err >&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); } && {
3161 test -z "$ac_cxx_werror_flag" ||
3162 test ! -s conftest.err
3163 } && test -s conftest.$ac_objext; then
3165 else
3166 echo "$as_me: failed program was:" >&5
3167 sed 's/^/| /' conftest.$ac_ext >&5
3169 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3170 CXXFLAGS="-g"
3171 cat >conftest.$ac_ext <<_ACEOF
3172 /* confdefs.h. */
3173 _ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3179 main ()
3183 return 0;
3185 _ACEOF
3186 rm -f conftest.$ac_objext
3187 if { (ac_try="$ac_compile"
3188 case "(($ac_try" in
3189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3190 *) ac_try_echo=$ac_try;;
3191 esac
3192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3193 (eval "$ac_compile") 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } && {
3200 test -z "$ac_cxx_werror_flag" ||
3201 test ! -s conftest.err
3202 } && test -s conftest.$ac_objext; then
3203 ac_cv_prog_cxx_g=yes
3204 else
3205 echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3218 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3220 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3221 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3222 if test "$ac_test_CXXFLAGS" = set; then
3223 CXXFLAGS=$ac_save_CXXFLAGS
3224 elif test $ac_cv_prog_cxx_g = yes; then
3225 if test "$GXX" = yes; then
3226 CXXFLAGS="-g -O2"
3227 else
3228 CXXFLAGS="-g"
3230 else
3231 if test "$GXX" = yes; then
3232 CXXFLAGS="-O2"
3233 else
3234 CXXFLAGS=
3237 ac_ext=c
3238 ac_cpp='$CPP $CPPFLAGS'
3239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3247 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3249 cat > conftest.c << EOF
3250 #include <stdlib.h>
3251 #include <stdio.h>
3253 int main (int argc, char*argv)
3255 int a,b;
3256 b=3;
3257 int c;
3258 c=4;
3259 return 0;
3263 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3264 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3265 { echo "$as_me:$LINENO: result: yes" >&5
3266 echo "${ECHO_T}yes" >&6; }
3267 GCC_IS_OK=true
3268 export GCC_IS_OK
3269 else
3270 echo "configure: failed program was:" >&5
3271 cat conftest.c >&5
3272 { echo "$as_me:$LINENO: result: no" >&5
3273 echo "${ECHO_T}no" >&6; }
3275 rm -f conftest*
3278 if test "x$GCC_IS_OK" '=' "x";then
3279 echo "***************************************************"
3280 echo "* Your gcc is too old to compile this!"
3281 echo "* "
3282 echo "* The last version compilable by this compiler is "
3283 echo "* swftools 0.7.0, which you can download from "
3284 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3285 echo "* ."
3286 echo "* Newer versions require at least gcc 3.0.0 "
3287 echo "***************************************************"
3288 exit 1
3291 if test "x$CHECKMEM" '!=' "x";then
3292 CC="ccmalloc $CC"
3293 CXX="ccmalloc $CXX"
3294 #echo running again
3295 #unset ac_cv_prog_CC
3296 #unset ac_cv_prog_CXX
3297 #AC_PROG_CC
3298 #AC_PROG_CXX
3300 ac_ext=c
3301 ac_cpp='$CPP $CPPFLAGS'
3302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3306 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3307 # On Suns, sometimes $CPP names a directory.
3308 if test -n "$CPP" && test -d "$CPP"; then
3309 CPP=
3311 if test -z "$CPP"; then
3312 if test "${ac_cv_prog_CPP+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 else
3315 # Double quotes because CPP needs to be expanded
3316 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3318 ac_preproc_ok=false
3319 for ac_c_preproc_warn_flag in '' yes
3321 # Use a header file that comes with gcc, so configuring glibc
3322 # with a fresh cross-compiler works.
3323 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3324 # <limits.h> exists even on freestanding compilers.
3325 # On the NeXT, cc -E runs the code through the compiler's parser,
3326 # not just through cpp. "Syntax error" is here to catch this case.
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333 #ifdef __STDC__
3334 # include <limits.h>
3335 #else
3336 # include <assert.h>
3337 #endif
3338 Syntax error
3339 _ACEOF
3340 if { (ac_try="$ac_cpp conftest.$ac_ext"
3341 case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3347 ac_status=$?
3348 grep -v '^ *+' conftest.er1 >conftest.err
3349 rm -f conftest.er1
3350 cat conftest.err >&5
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); } >/dev/null && {
3353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3354 test ! -s conftest.err
3355 }; then
3357 else
3358 echo "$as_me: failed program was:" >&5
3359 sed 's/^/| /' conftest.$ac_ext >&5
3361 # Broken: fails on valid input.
3362 continue
3365 rm -f conftest.err conftest.$ac_ext
3367 # OK, works on sane cases. Now check whether nonexistent headers
3368 # can be detected and how.
3369 cat >conftest.$ac_ext <<_ACEOF
3370 /* confdefs.h. */
3371 _ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3375 #include <ac_nonexistent.h>
3376 _ACEOF
3377 if { (ac_try="$ac_cpp conftest.$ac_ext"
3378 case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381 esac
3382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3384 ac_status=$?
3385 grep -v '^ *+' conftest.er1 >conftest.err
3386 rm -f conftest.er1
3387 cat conftest.err >&5
3388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389 (exit $ac_status); } >/dev/null && {
3390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3391 test ! -s conftest.err
3392 }; then
3393 # Broken: success on invalid input.
3394 continue
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3399 # Passes both tests.
3400 ac_preproc_ok=:
3401 break
3404 rm -f conftest.err conftest.$ac_ext
3406 done
3407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3408 rm -f conftest.err conftest.$ac_ext
3409 if $ac_preproc_ok; then
3410 break
3413 done
3414 ac_cv_prog_CPP=$CPP
3417 CPP=$ac_cv_prog_CPP
3418 else
3419 ac_cv_prog_CPP=$CPP
3421 { echo "$as_me:$LINENO: result: $CPP" >&5
3422 echo "${ECHO_T}$CPP" >&6; }
3423 ac_preproc_ok=false
3424 for ac_c_preproc_warn_flag in '' yes
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 #ifdef __STDC__
3439 # include <limits.h>
3440 #else
3441 # include <assert.h>
3442 #endif
3443 Syntax error
3444 _ACEOF
3445 if { (ac_try="$ac_cpp conftest.$ac_ext"
3446 case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3449 esac
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3452 ac_status=$?
3453 grep -v '^ *+' conftest.er1 >conftest.err
3454 rm -f conftest.er1
3455 cat conftest.err >&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); } >/dev/null && {
3458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3459 test ! -s conftest.err
3460 }; then
3462 else
3463 echo "$as_me: failed program was:" >&5
3464 sed 's/^/| /' conftest.$ac_ext >&5
3466 # Broken: fails on valid input.
3467 continue
3470 rm -f conftest.err conftest.$ac_ext
3472 # OK, works on sane cases. Now check whether nonexistent headers
3473 # can be detected and how.
3474 cat >conftest.$ac_ext <<_ACEOF
3475 /* confdefs.h. */
3476 _ACEOF
3477 cat confdefs.h >>conftest.$ac_ext
3478 cat >>conftest.$ac_ext <<_ACEOF
3479 /* end confdefs.h. */
3480 #include <ac_nonexistent.h>
3481 _ACEOF
3482 if { (ac_try="$ac_cpp conftest.$ac_ext"
3483 case "(($ac_try" in
3484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485 *) ac_try_echo=$ac_try;;
3486 esac
3487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3489 ac_status=$?
3490 grep -v '^ *+' conftest.er1 >conftest.err
3491 rm -f conftest.er1
3492 cat conftest.err >&5
3493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3494 (exit $ac_status); } >/dev/null && {
3495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3496 test ! -s conftest.err
3497 }; then
3498 # Broken: success on invalid input.
3499 continue
3500 else
3501 echo "$as_me: failed program was:" >&5
3502 sed 's/^/| /' conftest.$ac_ext >&5
3504 # Passes both tests.
3505 ac_preproc_ok=:
3506 break
3509 rm -f conftest.err conftest.$ac_ext
3511 done
3512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3513 rm -f conftest.err conftest.$ac_ext
3514 if $ac_preproc_ok; then
3516 else
3517 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3518 See \`config.log' for more details." >&5
3519 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3520 See \`config.log' for more details." >&2;}
3521 { (exit 1); exit 1; }; }
3524 ac_ext=c
3525 ac_cpp='$CPP $CPPFLAGS'
3526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531 if test -n "$ac_tool_prefix"; then
3532 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3533 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3536 if test "${ac_cv_prog_RANLIB+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539 if test -n "$RANLIB"; then
3540 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3553 done
3554 done
3555 IFS=$as_save_IFS
3559 RANLIB=$ac_cv_prog_RANLIB
3560 if test -n "$RANLIB"; then
3561 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3562 echo "${ECHO_T}$RANLIB" >&6; }
3563 else
3564 { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3570 if test -z "$ac_cv_prog_RANLIB"; then
3571 ac_ct_RANLIB=$RANLIB
3572 # Extract the first word of "ranlib", so it can be a program name with args.
3573 set dummy ranlib; ac_word=$2
3574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3576 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579 if test -n "$ac_ct_RANLIB"; then
3580 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3589 ac_cv_prog_ac_ct_RANLIB="ranlib"
3590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 break 2
3593 done
3594 done
3595 IFS=$as_save_IFS
3599 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3600 if test -n "$ac_ct_RANLIB"; then
3601 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3602 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3603 else
3604 { echo "$as_me:$LINENO: result: no" >&5
3605 echo "${ECHO_T}no" >&6; }
3608 if test "x$ac_ct_RANLIB" = x; then
3609 RANLIB=":"
3610 else
3611 case $cross_compiling:$ac_tool_warned in
3612 yes:)
3613 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3614 whose name does not start with the host triplet. If you think this
3615 configuration is useful to you, please write to autoconf@gnu.org." >&5
3616 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3617 whose name does not start with the host triplet. If you think this
3618 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3619 ac_tool_warned=yes ;;
3620 esac
3621 RANLIB=$ac_ct_RANLIB
3623 else
3624 RANLIB="$ac_cv_prog_RANLIB"
3627 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3628 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3629 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3630 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3632 else
3633 cat >conftest.make <<\_ACEOF
3634 SHELL = /bin/sh
3635 all:
3636 @echo '@@@%%%=$(MAKE)=@@@%%%'
3637 _ACEOF
3638 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3639 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3640 *@@@%%%=?*=@@@%%%*)
3641 eval ac_cv_prog_make_${ac_make}_set=yes;;
3643 eval ac_cv_prog_make_${ac_make}_set=no;;
3644 esac
3645 rm -f conftest.make
3647 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3648 { echo "$as_me:$LINENO: result: yes" >&5
3649 echo "${ECHO_T}yes" >&6; }
3650 SET_MAKE=
3651 else
3652 { echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6; }
3654 SET_MAKE="MAKE=${MAKE-make}"
3657 # Find a good install program. We prefer a C program (faster),
3658 # so one script is as good as another. But avoid the broken or
3659 # incompatible versions:
3660 # SysV /etc/install, /usr/sbin/install
3661 # SunOS /usr/etc/install
3662 # IRIX /sbin/install
3663 # AIX /bin/install
3664 # AmigaOS /C/install, which installs bootblocks on floppy discs
3665 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3666 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3667 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3668 # OS/2's system install, which has a completely different semantic
3669 # ./install, which can be erroneously created by make from ./install.sh.
3670 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3671 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3672 if test -z "$INSTALL"; then
3673 if test "${ac_cv_path_install+set}" = set; then
3674 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 else
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3677 for as_dir in $PATH
3679 IFS=$as_save_IFS
3680 test -z "$as_dir" && as_dir=.
3681 # Account for people who put trailing slashes in PATH elements.
3682 case $as_dir/ in
3683 ./ | .// | /cC/* | \
3684 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3685 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3686 /usr/ucb/* ) ;;
3688 # OSF1 and SCO ODT 3.0 have their own names for install.
3689 # Don't use installbsd from OSF since it installs stuff as root
3690 # by default.
3691 for ac_prog in ginstall scoinst install; do
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3694 if test $ac_prog = install &&
3695 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3696 # AIX install. It has an incompatible calling convention.
3698 elif test $ac_prog = install &&
3699 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3700 # program-specific install script used by HP pwplus--don't use.
3702 else
3703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3704 break 3
3707 done
3708 done
3710 esac
3711 done
3712 IFS=$as_save_IFS
3716 if test "${ac_cv_path_install+set}" = set; then
3717 INSTALL=$ac_cv_path_install
3718 else
3719 # As a last resort, use the slow shell script. Don't cache a
3720 # value for INSTALL within a source directory, because that will
3721 # break other packages using the cache if that directory is
3722 # removed, or if the value is a relative name.
3723 INSTALL=$ac_install_sh
3726 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3727 echo "${ECHO_T}$INSTALL" >&6; }
3729 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3730 # It thinks the first close brace ends the variable substitution.
3731 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3733 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3735 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3737 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3738 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3739 LN_S=$as_ln_s
3740 if test "$LN_S" = "ln -s"; then
3741 { echo "$as_me:$LINENO: result: yes" >&5
3742 echo "${ECHO_T}yes" >&6; }
3743 else
3744 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3745 echo "${ECHO_T}no, using $LN_S" >&6; }
3748 for ac_prog in gzip uncompress compress
3750 # Extract the first word of "$ac_prog", so it can be a program name with args.
3751 set dummy $ac_prog; ac_word=$2
3752 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3754 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 else
3757 if test -n "$UNCOMPRESS"; then
3758 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3759 else
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 for as_dir in $PATH
3763 IFS=$as_save_IFS
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3767 ac_cv_prog_UNCOMPRESS="$ac_prog"
3768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 break 2
3771 done
3772 done
3773 IFS=$as_save_IFS
3777 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3778 if test -n "$UNCOMPRESS"; then
3779 { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3780 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3781 else
3782 { echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6; }
3787 test -n "$UNCOMPRESS" && break
3788 done
3791 OBJEXT="o"
3792 AREXT=".a"
3793 CXXLIBS="-lstdc++"
3797 if test "x$EXEEXT" = "x.exe";then
3798 OBJEXT="obj"
3799 AREXT=".lib"
3800 CXXLIBS=""
3806 { echo "$as_me:$LINENO: checking host system type" >&5
3807 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3808 if test "${ac_cv_host+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 if test "x$host_alias" = x; then
3812 ac_cv_host=$ac_cv_build
3813 else
3814 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3815 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3816 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3817 { (exit 1); exit 1; }; }
3821 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3822 echo "${ECHO_T}$ac_cv_host" >&6; }
3823 case $ac_cv_host in
3824 *-*-*) ;;
3825 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3826 echo "$as_me: error: invalid value of canonical host" >&2;}
3827 { (exit 1); exit 1; }; };;
3828 esac
3829 host=$ac_cv_host
3830 ac_save_IFS=$IFS; IFS='-'
3831 set x $ac_cv_host
3832 shift
3833 host_cpu=$1
3834 host_vendor=$2
3835 shift; shift
3836 # Remember, the first character of IFS is used to create $*,
3837 # except with old shells:
3838 host_os=$*
3839 IFS=$ac_save_IFS
3840 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3845 { echo "$as_me:$LINENO: checking for target system" >&5
3846 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
3847 CYGWIN=
3848 MINGW=
3849 case $host_os in
3850 *cygwin* ) CYGWIN=yes;;
3851 *mingw* ) MINGW=yes;;
3852 esac
3854 AR=ar
3855 if test "x$MINGW" = "xyes"; then
3856 #fix for the debian distribution of mingw
3857 if test -x "/usr/i586-mingw32msvc/bin/ar";then
3858 AR="/usr/i586-mingw32msvc/bin/ar"
3860 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
3861 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
3863 #fix for the gentoo distribution of mingw
3864 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
3865 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
3867 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
3868 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
3870 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
3871 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
3877 if test "x${CYGWIN}" = "xyes"; then
3878 cat >>confdefs.h <<_ACEOF
3879 #define CYGWIN 1
3880 _ACEOF
3882 { echo "$as_me:$LINENO: result: cygwin" >&5
3883 echo "${ECHO_T}cygwin" >&6; }
3884 else
3885 if test "x${MINGW}" = "xyes"; then
3886 cat >>confdefs.h <<_ACEOF
3887 #define MINGW 1
3888 _ACEOF
3890 WIN32=1
3891 cat >>confdefs.h <<_ACEOF
3892 #define WIN32 1
3893 _ACEOF
3895 LIBS="$LIBS -lws2_32 -lgdi32"
3896 { echo "$as_me:$LINENO: result: mingw" >&5
3897 echo "${ECHO_T}mingw" >&6; }
3898 else
3899 LINUX=1
3900 export LINUX
3901 cat >>confdefs.h <<_ACEOF
3902 #define LINUX 1
3903 _ACEOF
3905 { echo "$as_me:$LINENO: result: " >&5
3906 echo "${ECHO_T}" >&6; }
3911 SLEXT="so"
3912 if test "x${MINGW}" != "xyes"; then
3913 # no mingW
3914 cat >>confdefs.h <<_ACEOF
3915 #define O_BINARY 0
3916 _ACEOF
3918 else
3919 # mingW
3920 SLEXT="dll"
3921 CXXLIBS=""
3923 export SLEXT
3927 # The following tries to make use of includes and libraries in
3928 # /usr/local, too. Notice: A -I/usr/local/include might break
3929 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
3930 # especially on systems which link /usr/local to /usr, so it has yet
3931 # to be seen how useful this is.
3932 if test -d /usr/local/lib; then
3933 LDFLAGS="$LDFLAGS -L/usr/local/lib"
3935 if test -d /usr/local/include; then
3936 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
3937 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
3938 echo > /dev/null
3940 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
3941 # if the user has a special prefix (like /opt), there might also be $prefix/lib
3942 # and $prefix/include, which should be included in our search paths for libraries
3943 # and includes.
3944 LDFLAGS="$LDFLAGS -L${libdir}"
3945 CPPFLAGS="$CPPFLAGS -I${includedir}"
3946 # TODO- test whether gcc still works after this
3949 #Mac OS:
3950 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
3953 # this must be done after (I believe) AC_PROG_MAKE_SET
3954 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
3955 STRIP="@echo debug enabled, not stripping "
3956 export STRIP
3962 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
3963 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
3964 if test "${ac_cv_lib_m_sin+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 else
3967 ac_check_lib_save_LIBS=$LIBS
3968 LIBS="-lm $LIBS"
3969 cat >conftest.$ac_ext <<_ACEOF
3970 /* confdefs.h. */
3971 _ACEOF
3972 cat confdefs.h >>conftest.$ac_ext
3973 cat >>conftest.$ac_ext <<_ACEOF
3974 /* end confdefs.h. */
3976 /* Override any GCC internal prototype to avoid an error.
3977 Use char because int might match the return type of a GCC
3978 builtin and then its argument prototype would still apply. */
3979 #ifdef __cplusplus
3980 extern "C"
3981 #endif
3982 char sin ();
3984 main ()
3986 return sin ();
3988 return 0;
3990 _ACEOF
3991 rm -f conftest.$ac_objext conftest$ac_exeext
3992 if { (ac_try="$ac_link"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_link") 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest$ac_exeext &&
4008 $as_test_x conftest$ac_exeext; then
4009 ac_cv_lib_m_sin=yes
4010 else
4011 echo "$as_me: failed program was:" >&5
4012 sed 's/^/| /' conftest.$ac_ext >&5
4014 ac_cv_lib_m_sin=no
4017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4018 conftest$ac_exeext conftest.$ac_ext
4019 LIBS=$ac_check_lib_save_LIBS
4021 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4022 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4023 if test $ac_cv_lib_m_sin = yes; then
4024 cat >>confdefs.h <<_ACEOF
4025 #define HAVE_LIBM 1
4026 _ACEOF
4028 LIBS="-lm $LIBS"
4030 else
4031 echo "Error: Math library not found.";
4032 exit;
4037 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4038 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4039 if test "${ac_cv_lib_z_deflate+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042 ac_check_lib_save_LIBS=$LIBS
4043 LIBS="-lz $LIBS"
4044 cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h. */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h. */
4051 /* Override any GCC internal prototype to avoid an error.
4052 Use char because int might match the return type of a GCC
4053 builtin and then its argument prototype would still apply. */
4054 #ifdef __cplusplus
4055 extern "C"
4056 #endif
4057 char deflate ();
4059 main ()
4061 return deflate ();
4063 return 0;
4065 _ACEOF
4066 rm -f conftest.$ac_objext conftest$ac_exeext
4067 if { (ac_try="$ac_link"
4068 case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4073 (eval "$ac_link") 2>conftest.er1
4074 ac_status=$?
4075 grep -v '^ *+' conftest.er1 >conftest.err
4076 rm -f conftest.er1
4077 cat conftest.err >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); } && {
4080 test -z "$ac_c_werror_flag" ||
4081 test ! -s conftest.err
4082 } && test -s conftest$ac_exeext &&
4083 $as_test_x conftest$ac_exeext; then
4084 ac_cv_lib_z_deflate=yes
4085 else
4086 echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4089 ac_cv_lib_z_deflate=no
4092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4093 conftest$ac_exeext conftest.$ac_ext
4094 LIBS=$ac_check_lib_save_LIBS
4096 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4097 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4098 if test $ac_cv_lib_z_deflate = yes; then
4099 cat >>confdefs.h <<_ACEOF
4100 #define HAVE_LIBZ 1
4101 _ACEOF
4103 LIBS="-lz $LIBS"
4105 else
4106 ZLIBMISSING=true
4110 if test "x$ZLIBMISSING" = "xtrue";then
4111 echo
4112 echo "ERROR:"
4113 echo "You need zlib to compile swftools"
4114 echo
4115 exit
4119 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4120 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4121 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 else
4124 ac_check_lib_save_LIBS=$LIBS
4125 LIBS="-ljpeg $LIBS"
4126 cat >conftest.$ac_ext <<_ACEOF
4127 /* confdefs.h. */
4128 _ACEOF
4129 cat confdefs.h >>conftest.$ac_ext
4130 cat >>conftest.$ac_ext <<_ACEOF
4131 /* end confdefs.h. */
4133 /* Override any GCC internal prototype to avoid an error.
4134 Use char because int might match the return type of a GCC
4135 builtin and then its argument prototype would still apply. */
4136 #ifdef __cplusplus
4137 extern "C"
4138 #endif
4139 char jpeg_write_raw_data ();
4141 main ()
4143 return jpeg_write_raw_data ();
4145 return 0;
4147 _ACEOF
4148 rm -f conftest.$ac_objext conftest$ac_exeext
4149 if { (ac_try="$ac_link"
4150 case "(($ac_try" in
4151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4152 *) ac_try_echo=$ac_try;;
4153 esac
4154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4155 (eval "$ac_link") 2>conftest.er1
4156 ac_status=$?
4157 grep -v '^ *+' conftest.er1 >conftest.err
4158 rm -f conftest.er1
4159 cat conftest.err >&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); } && {
4162 test -z "$ac_c_werror_flag" ||
4163 test ! -s conftest.err
4164 } && test -s conftest$ac_exeext &&
4165 $as_test_x conftest$ac_exeext; then
4166 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4167 else
4168 echo "$as_me: failed program was:" >&5
4169 sed 's/^/| /' conftest.$ac_ext >&5
4171 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4175 conftest$ac_exeext conftest.$ac_ext
4176 LIBS=$ac_check_lib_save_LIBS
4178 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4179 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4180 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4181 cat >>confdefs.h <<_ACEOF
4182 #define HAVE_LIBJPEG 1
4183 _ACEOF
4185 LIBS="-ljpeg $LIBS"
4187 else
4188 JPEGLIBMISSING=true
4192 { echo "$as_me:$LINENO: checking for T1_LoadFont in -lt1" >&5
4193 echo $ECHO_N "checking for T1_LoadFont in -lt1... $ECHO_C" >&6; }
4194 if test "${ac_cv_lib_t1_T1_LoadFont+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4196 else
4197 ac_check_lib_save_LIBS=$LIBS
4198 LIBS="-lt1 $LIBS"
4199 cat >conftest.$ac_ext <<_ACEOF
4200 /* confdefs.h. */
4201 _ACEOF
4202 cat confdefs.h >>conftest.$ac_ext
4203 cat >>conftest.$ac_ext <<_ACEOF
4204 /* end confdefs.h. */
4206 /* Override any GCC internal prototype to avoid an error.
4207 Use char because int might match the return type of a GCC
4208 builtin and then its argument prototype would still apply. */
4209 #ifdef __cplusplus
4210 extern "C"
4211 #endif
4212 char T1_LoadFont ();
4214 main ()
4216 return T1_LoadFont ();
4218 return 0;
4220 _ACEOF
4221 rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (ac_try="$ac_link"
4223 case "(($ac_try" in
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4226 esac
4227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_link") 2>conftest.er1
4229 ac_status=$?
4230 grep -v '^ *+' conftest.er1 >conftest.err
4231 rm -f conftest.er1
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234 (exit $ac_status); } && {
4235 test -z "$ac_c_werror_flag" ||
4236 test ! -s conftest.err
4237 } && test -s conftest$ac_exeext &&
4238 $as_test_x conftest$ac_exeext; then
4239 ac_cv_lib_t1_T1_LoadFont=yes
4240 else
4241 echo "$as_me: failed program was:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 ac_cv_lib_t1_T1_LoadFont=no
4247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4248 conftest$ac_exeext conftest.$ac_ext
4249 LIBS=$ac_check_lib_save_LIBS
4251 { echo "$as_me:$LINENO: result: $ac_cv_lib_t1_T1_LoadFont" >&5
4252 echo "${ECHO_T}$ac_cv_lib_t1_T1_LoadFont" >&6; }
4253 if test $ac_cv_lib_t1_T1_LoadFont = yes; then
4254 cat >>confdefs.h <<_ACEOF
4255 #define HAVE_LIBT1 1
4256 _ACEOF
4258 LIBS="-lt1 $LIBS"
4260 else
4261 T1LIBMISSING=true
4265 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4266 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4267 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270 ac_check_lib_save_LIBS=$LIBS
4271 LIBS="-lungif $LIBS"
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4279 /* Override any GCC internal prototype to avoid an error.
4280 Use char because int might match the return type of a GCC
4281 builtin and then its argument prototype would still apply. */
4282 #ifdef __cplusplus
4283 extern "C"
4284 #endif
4285 char DGifOpen ();
4287 main ()
4289 return DGifOpen ();
4291 return 0;
4293 _ACEOF
4294 rm -f conftest.$ac_objext conftest$ac_exeext
4295 if { (ac_try="$ac_link"
4296 case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_link") 2>conftest.er1
4302 ac_status=$?
4303 grep -v '^ *+' conftest.er1 >conftest.err
4304 rm -f conftest.er1
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } && {
4308 test -z "$ac_c_werror_flag" ||
4309 test ! -s conftest.err
4310 } && test -s conftest$ac_exeext &&
4311 $as_test_x conftest$ac_exeext; then
4312 ac_cv_lib_ungif_DGifOpen=yes
4313 else
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4317 ac_cv_lib_ungif_DGifOpen=no
4320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4321 conftest$ac_exeext conftest.$ac_ext
4322 LIBS=$ac_check_lib_save_LIBS
4324 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4325 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4326 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4327 cat >>confdefs.h <<_ACEOF
4328 #define HAVE_LIBUNGIF 1
4329 _ACEOF
4331 LIBS="-lungif $LIBS"
4333 else
4334 UNGIFMISSING=true
4337 if test "$UNGIFMISSING";then
4338 UNGIFMISSING=
4340 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4341 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4342 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345 ac_check_lib_save_LIBS=$LIBS
4346 LIBS="-lgif $LIBS"
4347 cat >conftest.$ac_ext <<_ACEOF
4348 /* confdefs.h. */
4349 _ACEOF
4350 cat confdefs.h >>conftest.$ac_ext
4351 cat >>conftest.$ac_ext <<_ACEOF
4352 /* end confdefs.h. */
4354 /* Override any GCC internal prototype to avoid an error.
4355 Use char because int might match the return type of a GCC
4356 builtin and then its argument prototype would still apply. */
4357 #ifdef __cplusplus
4358 extern "C"
4359 #endif
4360 char DGifOpen ();
4362 main ()
4364 return DGifOpen ();
4366 return 0;
4368 _ACEOF
4369 rm -f conftest.$ac_objext conftest$ac_exeext
4370 if { (ac_try="$ac_link"
4371 case "(($ac_try" in
4372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4373 *) ac_try_echo=$ac_try;;
4374 esac
4375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4376 (eval "$ac_link") 2>conftest.er1
4377 ac_status=$?
4378 grep -v '^ *+' conftest.er1 >conftest.err
4379 rm -f conftest.er1
4380 cat conftest.err >&5
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } && {
4383 test -z "$ac_c_werror_flag" ||
4384 test ! -s conftest.err
4385 } && test -s conftest$ac_exeext &&
4386 $as_test_x conftest$ac_exeext; then
4387 ac_cv_lib_gif_DGifOpen=yes
4388 else
4389 echo "$as_me: failed program was:" >&5
4390 sed 's/^/| /' conftest.$ac_ext >&5
4392 ac_cv_lib_gif_DGifOpen=no
4395 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4396 conftest$ac_exeext conftest.$ac_ext
4397 LIBS=$ac_check_lib_save_LIBS
4399 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4400 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4401 if test $ac_cv_lib_gif_DGifOpen = yes; then
4402 cat >>confdefs.h <<_ACEOF
4403 #define HAVE_LIBGIF 1
4404 _ACEOF
4406 LIBS="-lgif $LIBS"
4408 else
4409 UNGIFMISSING=true
4415 { echo "$as_me:$LINENO: checking for byte order" >&5
4416 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4417 if test "$cross_compiling" = yes; then
4418 CROSSCOMPILE=1
4419 else
4420 cat >conftest.$ac_ext <<_ACEOF
4421 /* confdefs.h. */
4422 _ACEOF
4423 cat confdefs.h >>conftest.$ac_ext
4424 cat >>conftest.$ac_ext <<_ACEOF
4425 /* end confdefs.h. */
4427 int main (int argc, char *argv[])
4429 int i = 1;
4430 return *(char*)&i;
4433 _ACEOF
4434 rm -f conftest$ac_exeext
4435 if { (ac_try="$ac_link"
4436 case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439 esac
4440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4441 (eval "$ac_link") 2>&5
4442 ac_status=$?
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4445 { (case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448 esac
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_try") 2>&5
4451 ac_status=$?
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; }; then
4454 BIGENDIAN=1
4455 else
4456 echo "$as_me: program exited with status $ac_status" >&5
4457 echo "$as_me: failed program was:" >&5
4458 sed 's/^/| /' conftest.$ac_ext >&5
4460 ( exit $ac_status )
4461 LITTLEENDIAN=1
4463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4467 export CROSSCOMPILE
4469 if test "x${CROSSCOMPILE}" = "x1"; then
4470 { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4471 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4472 { echo "$as_me:$LINENO: checking target system type" >&5
4473 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4474 if test "${ac_cv_target+set}" = set; then
4475 echo $ECHO_N "(cached) $ECHO_C" >&6
4476 else
4477 if test "x$target_alias" = x; then
4478 ac_cv_target=$ac_cv_host
4479 else
4480 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4481 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4482 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4483 { (exit 1); exit 1; }; }
4487 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4488 echo "${ECHO_T}$ac_cv_target" >&6; }
4489 case $ac_cv_target in
4490 *-*-*) ;;
4491 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4492 echo "$as_me: error: invalid value of canonical target" >&2;}
4493 { (exit 1); exit 1; }; };;
4494 esac
4495 target=$ac_cv_target
4496 ac_save_IFS=$IFS; IFS='-'
4497 set x $ac_cv_target
4498 shift
4499 target_cpu=$1
4500 target_vendor=$2
4501 shift; shift
4502 # Remember, the first character of IFS is used to create $*,
4503 # except with old shells:
4504 target_os=$*
4505 IFS=$ac_save_IFS
4506 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4509 # The aliases save the names the user supplied, while $host etc.
4510 # will get canonicalized.
4511 test -n "$target_alias" &&
4512 test "$program_prefix$program_suffix$program_transform_name" = \
4513 NONENONEs,x,x, &&
4514 program_prefix=${target_alias}-
4515 { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4516 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4517 case "${target}" in
4518 *86* | *-pc-* )
4519 LITTLEENDIAN=1
4521 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4522 BIGENDIAN=1
4524 esac
4527 export LITTLEENDIAN
4528 if test "x${LITTLEENDIAN}" = "x1"; then
4529 { echo "$as_me:$LINENO: result: little endian" >&5
4530 echo "${ECHO_T}little endian" >&6; }
4531 BYTEORDERCHECKOK=1
4533 export BIGENDIAN
4534 if test "x${BIGENDIAN}" = "x1"; then
4535 { echo "$as_me:$LINENO: result: big endian" >&5
4536 echo "${ECHO_T}big endian" >&6; }
4537 BYTEORDERCHECKOK=1
4538 WORDS_BIGENDIAN=1
4539 export WORDS_BIGENDIAN
4540 cat >>confdefs.h <<_ACEOF
4541 #define WORDS_BIGENDIAN 1
4542 _ACEOF
4545 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4546 { echo "$as_me:$LINENO: result: unknown" >&5
4547 echo "${ECHO_T}unknown" >&6; }
4548 echo Byte order could not determined.
4549 exit 1
4554 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4555 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4556 if test "$cross_compiling" = yes; then
4557 CROSSCOMPILE=1
4558 else
4559 cat >conftest.$ac_ext <<_ACEOF
4560 /* confdefs.h. */
4561 _ACEOF
4562 cat confdefs.h >>conftest.$ac_ext
4563 cat >>conftest.$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4566 #include "stdlib.h"
4567 int main (int argc, char*argv[])
4569 return system("test `touch config.tmp2`");
4572 _ACEOF
4573 rm -f conftest$ac_exeext
4574 if { (ac_try="$ac_link"
4575 case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_link") 2>&5
4581 ac_status=$?
4582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4584 { (case "(($ac_try" in
4585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4586 *) ac_try_echo=$ac_try;;
4587 esac
4588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4589 (eval "$ac_try") 2>&5
4590 ac_status=$?
4591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); }; }; then
4593 OK=OK
4594 else
4595 echo "$as_me: program exited with status $ac_status" >&5
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4605 if test "x${OK}" = "xOK";then
4606 test -f config.tmp2 || OK=
4609 if test "x${CROSSCOMPILE}" = "x1";then
4610 OK=no;
4612 if test "x${OK}" = "xOK";then
4613 rm -f config.tmp2
4614 { echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6; }
4616 SYSTEM_BACKTICKS=1
4617 export SYSTEM_BACKTICKS
4618 cat >>confdefs.h <<_ACEOF
4619 #define SYSTEM_BACKTICKS 1
4620 _ACEOF
4622 else
4623 { echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6; }
4629 test "$program_prefix" != NONE &&
4630 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4631 # Use a double $ so make ignores it.
4632 test "$program_suffix" != NONE &&
4633 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4634 # Double any \ or $. echo might interpret backslashes.
4635 # By default was `s,x,x', remove it if useless.
4636 cat <<\_ACEOF >conftest.sed
4637 s/[\\$]/&&/g;s/;s,x,x,$//
4638 _ACEOF
4639 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4640 rm -f conftest.sed
4643 ac_config_headers="$ac_config_headers config.h"
4650 ac_header_dirent=no
4651 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4652 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4653 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4654 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4656 echo $ECHO_N "(cached) $ECHO_C" >&6
4657 else
4658 cat >conftest.$ac_ext <<_ACEOF
4659 /* confdefs.h. */
4660 _ACEOF
4661 cat confdefs.h >>conftest.$ac_ext
4662 cat >>conftest.$ac_ext <<_ACEOF
4663 /* end confdefs.h. */
4664 #include <sys/types.h>
4665 #include <$ac_hdr>
4668 main ()
4670 if ((DIR *) 0)
4671 return 0;
4673 return 0;
4675 _ACEOF
4676 rm -f conftest.$ac_objext
4677 if { (ac_try="$ac_compile"
4678 case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681 esac
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_compile") 2>conftest.er1
4684 ac_status=$?
4685 grep -v '^ *+' conftest.er1 >conftest.err
4686 rm -f conftest.er1
4687 cat conftest.err >&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } && {
4690 test -z "$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4692 } && test -s conftest.$ac_objext; then
4693 eval "$as_ac_Header=yes"
4694 else
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.$ac_ext >&5
4698 eval "$as_ac_Header=no"
4701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703 ac_res=`eval echo '${'$as_ac_Header'}'`
4704 { echo "$as_me:$LINENO: result: $ac_res" >&5
4705 echo "${ECHO_T}$ac_res" >&6; }
4706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4707 cat >>confdefs.h <<_ACEOF
4708 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4709 _ACEOF
4711 ac_header_dirent=$ac_hdr; break
4714 done
4715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4716 if test $ac_header_dirent = dirent.h; then
4717 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4718 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4719 if test "${ac_cv_search_opendir+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 ac_func_search_save_LIBS=$LIBS
4723 cat >conftest.$ac_ext <<_ACEOF
4724 /* confdefs.h. */
4725 _ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4730 /* Override any GCC internal prototype to avoid an error.
4731 Use char because int might match the return type of a GCC
4732 builtin and then its argument prototype would still apply. */
4733 #ifdef __cplusplus
4734 extern "C"
4735 #endif
4736 char opendir ();
4738 main ()
4740 return opendir ();
4742 return 0;
4744 _ACEOF
4745 for ac_lib in '' dir; do
4746 if test -z "$ac_lib"; then
4747 ac_res="none required"
4748 else
4749 ac_res=-l$ac_lib
4750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4752 rm -f conftest.$ac_objext conftest$ac_exeext
4753 if { (ac_try="$ac_link"
4754 case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4757 esac
4758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4759 (eval "$ac_link") 2>conftest.er1
4760 ac_status=$?
4761 grep -v '^ *+' conftest.er1 >conftest.err
4762 rm -f conftest.er1
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } && {
4766 test -z "$ac_c_werror_flag" ||
4767 test ! -s conftest.err
4768 } && test -s conftest$ac_exeext &&
4769 $as_test_x conftest$ac_exeext; then
4770 ac_cv_search_opendir=$ac_res
4771 else
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4779 conftest$ac_exeext
4780 if test "${ac_cv_search_opendir+set}" = set; then
4781 break
4783 done
4784 if test "${ac_cv_search_opendir+set}" = set; then
4786 else
4787 ac_cv_search_opendir=no
4789 rm conftest.$ac_ext
4790 LIBS=$ac_func_search_save_LIBS
4792 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4793 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4794 ac_res=$ac_cv_search_opendir
4795 if test "$ac_res" != no; then
4796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4800 else
4801 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4802 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4803 if test "${ac_cv_search_opendir+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806 ac_func_search_save_LIBS=$LIBS
4807 cat >conftest.$ac_ext <<_ACEOF
4808 /* confdefs.h. */
4809 _ACEOF
4810 cat confdefs.h >>conftest.$ac_ext
4811 cat >>conftest.$ac_ext <<_ACEOF
4812 /* end confdefs.h. */
4814 /* Override any GCC internal prototype to avoid an error.
4815 Use char because int might match the return type of a GCC
4816 builtin and then its argument prototype would still apply. */
4817 #ifdef __cplusplus
4818 extern "C"
4819 #endif
4820 char opendir ();
4822 main ()
4824 return opendir ();
4826 return 0;
4828 _ACEOF
4829 for ac_lib in '' x; do
4830 if test -z "$ac_lib"; then
4831 ac_res="none required"
4832 else
4833 ac_res=-l$ac_lib
4834 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4836 rm -f conftest.$ac_objext conftest$ac_exeext
4837 if { (ac_try="$ac_link"
4838 case "(($ac_try" in
4839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4840 *) ac_try_echo=$ac_try;;
4841 esac
4842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4843 (eval "$ac_link") 2>conftest.er1
4844 ac_status=$?
4845 grep -v '^ *+' conftest.er1 >conftest.err
4846 rm -f conftest.er1
4847 cat conftest.err >&5
4848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849 (exit $ac_status); } && {
4850 test -z "$ac_c_werror_flag" ||
4851 test ! -s conftest.err
4852 } && test -s conftest$ac_exeext &&
4853 $as_test_x conftest$ac_exeext; then
4854 ac_cv_search_opendir=$ac_res
4855 else
4856 echo "$as_me: failed program was:" >&5
4857 sed 's/^/| /' conftest.$ac_ext >&5
4862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4863 conftest$ac_exeext
4864 if test "${ac_cv_search_opendir+set}" = set; then
4865 break
4867 done
4868 if test "${ac_cv_search_opendir+set}" = set; then
4870 else
4871 ac_cv_search_opendir=no
4873 rm conftest.$ac_ext
4874 LIBS=$ac_func_search_save_LIBS
4876 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4877 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4878 ac_res=$ac_cv_search_opendir
4879 if test "$ac_res" != no; then
4880 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4887 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4888 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4889 if test "${ac_cv_path_GREP+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892 # Extract the first word of "grep ggrep" to use in msg output
4893 if test -z "$GREP"; then
4894 set dummy grep ggrep; ac_prog_name=$2
4895 if test "${ac_cv_path_GREP+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4897 else
4898 ac_path_GREP_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4903 IFS=$as_save_IFS
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in grep ggrep; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4908 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4909 # Check for GNU ac_path_GREP and select it if it is found.
4910 # Check for GNU $ac_path_GREP
4911 case `"$ac_path_GREP" --version 2>&1` in
4912 *GNU*)
4913 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4915 ac_count=0
4916 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4917 while :
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 echo 'GREP' >> "conftest.nl"
4923 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 ac_count=`expr $ac_count + 1`
4926 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_GREP="$ac_path_GREP"
4929 ac_path_GREP_max=$ac_count
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4933 done
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4935 esac
4938 $ac_path_GREP_found && break 3
4939 done
4940 done
4942 done
4943 IFS=$as_save_IFS
4948 GREP="$ac_cv_path_GREP"
4949 if test -z "$GREP"; then
4950 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4951 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4952 { (exit 1); exit 1; }; }
4955 else
4956 ac_cv_path_GREP=$GREP
4961 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4962 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4963 GREP="$ac_cv_path_GREP"
4966 { echo "$as_me:$LINENO: checking for egrep" >&5
4967 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4968 if test "${ac_cv_path_EGREP+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 else
4971 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4972 then ac_cv_path_EGREP="$GREP -E"
4973 else
4974 # Extract the first word of "egrep" to use in msg output
4975 if test -z "$EGREP"; then
4976 set dummy egrep; ac_prog_name=$2
4977 if test "${ac_cv_path_EGREP+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 ac_path_EGREP_found=false
4981 # Loop through the user's path and test for each of PROGNAME-LIST
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4985 IFS=$as_save_IFS
4986 test -z "$as_dir" && as_dir=.
4987 for ac_prog in egrep; do
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4990 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4991 # Check for GNU ac_path_EGREP and select it if it is found.
4992 # Check for GNU $ac_path_EGREP
4993 case `"$ac_path_EGREP" --version 2>&1` in
4994 *GNU*)
4995 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4997 ac_count=0
4998 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4999 while :
5001 cat "conftest.in" "conftest.in" >"conftest.tmp"
5002 mv "conftest.tmp" "conftest.in"
5003 cp "conftest.in" "conftest.nl"
5004 echo 'EGREP' >> "conftest.nl"
5005 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007 ac_count=`expr $ac_count + 1`
5008 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5009 # Best one so far, save it but keep looking for a better one
5010 ac_cv_path_EGREP="$ac_path_EGREP"
5011 ac_path_EGREP_max=$ac_count
5013 # 10*(2^10) chars as input seems more than enough
5014 test $ac_count -gt 10 && break
5015 done
5016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5017 esac
5020 $ac_path_EGREP_found && break 3
5021 done
5022 done
5024 done
5025 IFS=$as_save_IFS
5030 EGREP="$ac_cv_path_EGREP"
5031 if test -z "$EGREP"; then
5032 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5033 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5034 { (exit 1); exit 1; }; }
5037 else
5038 ac_cv_path_EGREP=$EGREP
5044 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5045 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5046 EGREP="$ac_cv_path_EGREP"
5049 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5050 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5051 if test "${ac_cv_header_stdc+set}" = set; then
5052 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 else
5054 cat >conftest.$ac_ext <<_ACEOF
5055 /* confdefs.h. */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h. */
5060 #include <stdlib.h>
5061 #include <stdarg.h>
5062 #include <string.h>
5063 #include <float.h>
5066 main ()
5070 return 0;
5072 _ACEOF
5073 rm -f conftest.$ac_objext
5074 if { (ac_try="$ac_compile"
5075 case "(($ac_try" in
5076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5077 *) ac_try_echo=$ac_try;;
5078 esac
5079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5080 (eval "$ac_compile") 2>conftest.er1
5081 ac_status=$?
5082 grep -v '^ *+' conftest.er1 >conftest.err
5083 rm -f conftest.er1
5084 cat conftest.err >&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } && {
5087 test -z "$ac_c_werror_flag" ||
5088 test ! -s conftest.err
5089 } && test -s conftest.$ac_objext; then
5090 ac_cv_header_stdc=yes
5091 else
5092 echo "$as_me: failed program was:" >&5
5093 sed 's/^/| /' conftest.$ac_ext >&5
5095 ac_cv_header_stdc=no
5098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100 if test $ac_cv_header_stdc = yes; then
5101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5102 cat >conftest.$ac_ext <<_ACEOF
5103 /* confdefs.h. */
5104 _ACEOF
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 #include <string.h>
5110 _ACEOF
5111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5112 $EGREP "memchr" >/dev/null 2>&1; then
5114 else
5115 ac_cv_header_stdc=no
5117 rm -f conftest*
5121 if test $ac_cv_header_stdc = yes; then
5122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5123 cat >conftest.$ac_ext <<_ACEOF
5124 /* confdefs.h. */
5125 _ACEOF
5126 cat confdefs.h >>conftest.$ac_ext
5127 cat >>conftest.$ac_ext <<_ACEOF
5128 /* end confdefs.h. */
5129 #include <stdlib.h>
5131 _ACEOF
5132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5133 $EGREP "free" >/dev/null 2>&1; then
5135 else
5136 ac_cv_header_stdc=no
5138 rm -f conftest*
5142 if test $ac_cv_header_stdc = yes; then
5143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5144 if test "$cross_compiling" = yes; then
5146 else
5147 cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h. */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h. */
5153 #include <ctype.h>
5154 #include <stdlib.h>
5155 #if ((' ' & 0x0FF) == 0x020)
5156 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5157 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5158 #else
5159 # define ISLOWER(c) \
5160 (('a' <= (c) && (c) <= 'i') \
5161 || ('j' <= (c) && (c) <= 'r') \
5162 || ('s' <= (c) && (c) <= 'z'))
5163 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5164 #endif
5166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5168 main ()
5170 int i;
5171 for (i = 0; i < 256; i++)
5172 if (XOR (islower (i), ISLOWER (i))
5173 || toupper (i) != TOUPPER (i))
5174 return 2;
5175 return 0;
5177 _ACEOF
5178 rm -f conftest$ac_exeext
5179 if { (ac_try="$ac_link"
5180 case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183 esac
5184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5185 (eval "$ac_link") 2>&5
5186 ac_status=$?
5187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5189 { (case "(($ac_try" in
5190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191 *) ac_try_echo=$ac_try;;
5192 esac
5193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5194 (eval "$ac_try") 2>&5
5195 ac_status=$?
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); }; }; then
5199 else
5200 echo "$as_me: program exited with status $ac_status" >&5
5201 echo "$as_me: failed program was:" >&5
5202 sed 's/^/| /' conftest.$ac_ext >&5
5204 ( exit $ac_status )
5205 ac_cv_header_stdc=no
5207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5213 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5214 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5215 if test $ac_cv_header_stdc = yes; then
5217 cat >>confdefs.h <<\_ACEOF
5218 #define STDC_HEADERS 1
5219 _ACEOF
5223 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5233 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5234 inttypes.h stdint.h unistd.h
5236 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5240 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 else
5242 cat >conftest.$ac_ext <<_ACEOF
5243 /* confdefs.h. */
5244 _ACEOF
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 $ac_includes_default
5250 #include <$ac_header>
5251 _ACEOF
5252 rm -f conftest.$ac_objext
5253 if { (ac_try="$ac_compile"
5254 case "(($ac_try" in
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5257 esac
5258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5259 (eval "$ac_compile") 2>conftest.er1
5260 ac_status=$?
5261 grep -v '^ *+' conftest.er1 >conftest.err
5262 rm -f conftest.er1
5263 cat conftest.err >&5
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); } && {
5266 test -z "$ac_c_werror_flag" ||
5267 test ! -s conftest.err
5268 } && test -s conftest.$ac_objext; then
5269 eval "$as_ac_Header=yes"
5270 else
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5274 eval "$as_ac_Header=no"
5277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5279 ac_res=`eval echo '${'$as_ac_Header'}'`
5280 { echo "$as_me:$LINENO: result: $ac_res" >&5
5281 echo "${ECHO_T}$ac_res" >&6; }
5282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5283 cat >>confdefs.h <<_ACEOF
5284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5285 _ACEOF
5289 done
5307 for ac_header in zlib.h gif_lib.h jpeglib.h t1lib.h assert.h signal.h pthread.h sys/stat.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h
5309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 ac_res=`eval echo '${'$as_ac_Header'}'`
5317 { echo "$as_me:$LINENO: result: $ac_res" >&5
5318 echo "${ECHO_T}$ac_res" >&6; }
5319 else
5320 # Is the header compilable?
5321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5323 cat >conftest.$ac_ext <<_ACEOF
5324 /* confdefs.h. */
5325 _ACEOF
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 #include <$ac_header>
5331 _ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (ac_try="$ac_compile"
5334 case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337 esac
5338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5339 (eval "$ac_compile") 2>conftest.er1
5340 ac_status=$?
5341 grep -v '^ *+' conftest.er1 >conftest.err
5342 rm -f conftest.er1
5343 cat conftest.err >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); } && {
5346 test -z "$ac_c_werror_flag" ||
5347 test ! -s conftest.err
5348 } && test -s conftest.$ac_objext; then
5349 ac_header_compiler=yes
5350 else
5351 echo "$as_me: failed program was:" >&5
5352 sed 's/^/| /' conftest.$ac_ext >&5
5354 ac_header_compiler=no
5357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5359 echo "${ECHO_T}$ac_header_compiler" >&6; }
5361 # Is the header present?
5362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5364 cat >conftest.$ac_ext <<_ACEOF
5365 /* confdefs.h. */
5366 _ACEOF
5367 cat confdefs.h >>conftest.$ac_ext
5368 cat >>conftest.$ac_ext <<_ACEOF
5369 /* end confdefs.h. */
5370 #include <$ac_header>
5371 _ACEOF
5372 if { (ac_try="$ac_cpp conftest.$ac_ext"
5373 case "(($ac_try" in
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5376 esac
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5379 ac_status=$?
5380 grep -v '^ *+' conftest.er1 >conftest.err
5381 rm -f conftest.er1
5382 cat conftest.err >&5
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); } >/dev/null && {
5385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5386 test ! -s conftest.err
5387 }; then
5388 ac_header_preproc=yes
5389 else
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 ac_header_preproc=no
5396 rm -f conftest.err conftest.$ac_ext
5397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5398 echo "${ECHO_T}$ac_header_preproc" >&6; }
5400 # So? What about this header?
5401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5402 yes:no: )
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5407 ac_header_preproc=yes
5409 no:yes:* )
5410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5424 esac
5425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 else
5430 eval "$as_ac_Header=\$ac_header_preproc"
5432 ac_res=`eval echo '${'$as_ac_Header'}'`
5433 { echo "$as_me:$LINENO: result: $ac_res" >&5
5434 echo "${ECHO_T}$ac_res" >&6; }
5437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5438 cat >>confdefs.h <<_ACEOF
5439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5440 _ACEOF
5444 done
5447 cat >>confdefs.h <<_ACEOF
5448 #define PACKAGE "$PACKAGE"
5449 _ACEOF
5451 cat >>confdefs.h <<_ACEOF
5452 #define VERSION "$VERSION"
5453 _ACEOF
5461 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5462 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5463 if test "${ac_cv_c_const+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 else
5466 cat >conftest.$ac_ext <<_ACEOF
5467 /* confdefs.h. */
5468 _ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5474 main ()
5476 /* FIXME: Include the comments suggested by Paul. */
5477 #ifndef __cplusplus
5478 /* Ultrix mips cc rejects this. */
5479 typedef int charset[2];
5480 const charset cs;
5481 /* SunOS 4.1.1 cc rejects this. */
5482 char const *const *pcpcc;
5483 char **ppc;
5484 /* NEC SVR4.0.2 mips cc rejects this. */
5485 struct point {int x, y;};
5486 static struct point const zero = {0,0};
5487 /* AIX XL C 1.02.0.0 rejects this.
5488 It does not let you subtract one const X* pointer from another in
5489 an arm of an if-expression whose if-part is not a constant
5490 expression */
5491 const char *g = "string";
5492 pcpcc = &g + (g ? g-g : 0);
5493 /* HPUX 7.0 cc rejects these. */
5494 ++pcpcc;
5495 ppc = (char**) pcpcc;
5496 pcpcc = (char const *const *) ppc;
5497 { /* SCO 3.2v4 cc rejects this. */
5498 char *t;
5499 char const *s = 0 ? (char *) 0 : (char const *) 0;
5501 *t++ = 0;
5502 if (s) return 0;
5504 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5505 int x[] = {25, 17};
5506 const int *foo = &x[0];
5507 ++foo;
5509 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5510 typedef const int *iptr;
5511 iptr p = 0;
5512 ++p;
5514 { /* AIX XL C 1.02.0.0 rejects this saying
5515 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5516 struct s { int j; const int *ap[3]; };
5517 struct s *b; b->j = 5;
5519 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5520 const int foo = 10;
5521 if (!foo) return 0;
5523 return !cs[0] && !zero.x;
5524 #endif
5527 return 0;
5529 _ACEOF
5530 rm -f conftest.$ac_objext
5531 if { (ac_try="$ac_compile"
5532 case "(($ac_try" in
5533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5534 *) ac_try_echo=$ac_try;;
5535 esac
5536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5537 (eval "$ac_compile") 2>conftest.er1
5538 ac_status=$?
5539 grep -v '^ *+' conftest.er1 >conftest.err
5540 rm -f conftest.er1
5541 cat conftest.err >&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); } && {
5544 test -z "$ac_c_werror_flag" ||
5545 test ! -s conftest.err
5546 } && test -s conftest.$ac_objext; then
5547 ac_cv_c_const=yes
5548 else
5549 echo "$as_me: failed program was:" >&5
5550 sed 's/^/| /' conftest.$ac_ext >&5
5552 ac_cv_c_const=no
5555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5557 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5558 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5559 if test $ac_cv_c_const = no; then
5561 cat >>confdefs.h <<\_ACEOF
5562 #define const
5563 _ACEOF
5567 { echo "$as_me:$LINENO: checking for inline" >&5
5568 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5569 if test "${ac_cv_c_inline+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 else
5572 ac_cv_c_inline=no
5573 for ac_kw in inline __inline__ __inline; do
5574 cat >conftest.$ac_ext <<_ACEOF
5575 /* confdefs.h. */
5576 _ACEOF
5577 cat confdefs.h >>conftest.$ac_ext
5578 cat >>conftest.$ac_ext <<_ACEOF
5579 /* end confdefs.h. */
5580 #ifndef __cplusplus
5581 typedef int foo_t;
5582 static $ac_kw foo_t static_foo () {return 0; }
5583 $ac_kw foo_t foo () {return 0; }
5584 #endif
5586 _ACEOF
5587 rm -f conftest.$ac_objext
5588 if { (ac_try="$ac_compile"
5589 case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592 esac
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_compile") 2>conftest.er1
5595 ac_status=$?
5596 grep -v '^ *+' conftest.er1 >conftest.err
5597 rm -f conftest.er1
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_c_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest.$ac_objext; then
5604 ac_cv_c_inline=$ac_kw
5605 else
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 test "$ac_cv_c_inline" != no && break
5614 done
5617 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5618 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5621 case $ac_cv_c_inline in
5622 inline | yes) ;;
5624 case $ac_cv_c_inline in
5625 no) ac_val=;;
5626 *) ac_val=$ac_cv_c_inline;;
5627 esac
5628 cat >>confdefs.h <<_ACEOF
5629 #ifndef __cplusplus
5630 #define inline $ac_val
5631 #endif
5632 _ACEOF
5634 esac
5636 { echo "$as_me:$LINENO: checking for off_t" >&5
5637 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5638 if test "${ac_cv_type_off_t+set}" = set; then
5639 echo $ECHO_N "(cached) $ECHO_C" >&6
5640 else
5641 cat >conftest.$ac_ext <<_ACEOF
5642 /* confdefs.h. */
5643 _ACEOF
5644 cat confdefs.h >>conftest.$ac_ext
5645 cat >>conftest.$ac_ext <<_ACEOF
5646 /* end confdefs.h. */
5647 $ac_includes_default
5648 typedef off_t ac__type_new_;
5650 main ()
5652 if ((ac__type_new_ *) 0)
5653 return 0;
5654 if (sizeof (ac__type_new_))
5655 return 0;
5657 return 0;
5659 _ACEOF
5660 rm -f conftest.$ac_objext
5661 if { (ac_try="$ac_compile"
5662 case "(($ac_try" in
5663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5664 *) ac_try_echo=$ac_try;;
5665 esac
5666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5667 (eval "$ac_compile") 2>conftest.er1
5668 ac_status=$?
5669 grep -v '^ *+' conftest.er1 >conftest.err
5670 rm -f conftest.er1
5671 cat conftest.err >&5
5672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5673 (exit $ac_status); } && {
5674 test -z "$ac_c_werror_flag" ||
5675 test ! -s conftest.err
5676 } && test -s conftest.$ac_objext; then
5677 ac_cv_type_off_t=yes
5678 else
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5682 ac_cv_type_off_t=no
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5688 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5689 if test $ac_cv_type_off_t = yes; then
5691 else
5693 cat >>confdefs.h <<_ACEOF
5694 #define off_t long int
5695 _ACEOF
5699 { echo "$as_me:$LINENO: checking for size_t" >&5
5700 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5701 if test "${ac_cv_type_size_t+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703 else
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 $ac_includes_default
5711 typedef size_t ac__type_new_;
5713 main ()
5715 if ((ac__type_new_ *) 0)
5716 return 0;
5717 if (sizeof (ac__type_new_))
5718 return 0;
5720 return 0;
5722 _ACEOF
5723 rm -f conftest.$ac_objext
5724 if { (ac_try="$ac_compile"
5725 case "(($ac_try" in
5726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5727 *) ac_try_echo=$ac_try;;
5728 esac
5729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5730 (eval "$ac_compile") 2>conftest.er1
5731 ac_status=$?
5732 grep -v '^ *+' conftest.er1 >conftest.err
5733 rm -f conftest.er1
5734 cat conftest.err >&5
5735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736 (exit $ac_status); } && {
5737 test -z "$ac_c_werror_flag" ||
5738 test ! -s conftest.err
5739 } && test -s conftest.$ac_objext; then
5740 ac_cv_type_size_t=yes
5741 else
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.$ac_ext >&5
5745 ac_cv_type_size_t=no
5748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5751 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5752 if test $ac_cv_type_size_t = yes; then
5754 else
5756 cat >>confdefs.h <<_ACEOF
5757 #define size_t unsigned int
5758 _ACEOF
5762 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5763 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5764 if test "${ac_cv_struct_tm+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767 cat >conftest.$ac_ext <<_ACEOF
5768 /* confdefs.h. */
5769 _ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 #include <sys/types.h>
5774 #include <time.h>
5777 main ()
5779 struct tm tm;
5780 int *p = &tm.tm_sec;
5781 return !p;
5783 return 0;
5785 _ACEOF
5786 rm -f conftest.$ac_objext
5787 if { (ac_try="$ac_compile"
5788 case "(($ac_try" in
5789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790 *) ac_try_echo=$ac_try;;
5791 esac
5792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793 (eval "$ac_compile") 2>conftest.er1
5794 ac_status=$?
5795 grep -v '^ *+' conftest.er1 >conftest.err
5796 rm -f conftest.er1
5797 cat conftest.err >&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } && {
5800 test -z "$ac_c_werror_flag" ||
5801 test ! -s conftest.err
5802 } && test -s conftest.$ac_objext; then
5803 ac_cv_struct_tm=time.h
5804 else
5805 echo "$as_me: failed program was:" >&5
5806 sed 's/^/| /' conftest.$ac_ext >&5
5808 ac_cv_struct_tm=sys/time.h
5811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5813 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5814 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5815 if test $ac_cv_struct_tm = sys/time.h; then
5817 cat >>confdefs.h <<\_ACEOF
5818 #define TM_IN_SYS_TIME 1
5819 _ACEOF
5823 { echo "$as_me:$LINENO: checking for boolean" >&5
5824 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5825 if test "${ac_cv_type_boolean+set}" = set; then
5826 echo $ECHO_N "(cached) $ECHO_C" >&6
5827 else
5828 cat >conftest.$ac_ext <<_ACEOF
5829 /* confdefs.h. */
5830 _ACEOF
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 $ac_includes_default
5835 typedef boolean ac__type_new_;
5837 main ()
5839 if ((ac__type_new_ *) 0)
5840 return 0;
5841 if (sizeof (ac__type_new_))
5842 return 0;
5844 return 0;
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (ac_try="$ac_compile"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_compile") 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && {
5861 test -z "$ac_c_werror_flag" ||
5862 test ! -s conftest.err
5863 } && test -s conftest.$ac_objext; then
5864 ac_cv_type_boolean=yes
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 ac_cv_type_boolean=no
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5875 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5876 if test $ac_cv_type_boolean = yes; then
5878 else
5880 cat >>confdefs.h <<_ACEOF
5881 #define boolean int
5882 _ACEOF
5885 #needed for jpeglib
5896 for ac_func in popen mkstemp stat lrand48 rand srand48 srand bcopy bzero time
5898 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
5900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5912 #define $ac_func innocuous_$ac_func
5914 /* System header to define __stub macros and hopefully few prototypes,
5915 which can conflict with char $ac_func (); below.
5916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5917 <limits.h> exists even on freestanding compilers. */
5919 #ifdef __STDC__
5920 # include <limits.h>
5921 #else
5922 # include <assert.h>
5923 #endif
5925 #undef $ac_func
5927 /* Override any GCC internal prototype to avoid an error.
5928 Use char because int might match the return type of a GCC
5929 builtin and then its argument prototype would still apply. */
5930 #ifdef __cplusplus
5931 extern "C"
5932 #endif
5933 char $ac_func ();
5934 /* The GNU C library defines this for functions which it implements
5935 to always fail with ENOSYS. Some functions are actually named
5936 something starting with __ and the normal name is an alias. */
5937 #if defined __stub_$ac_func || defined __stub___$ac_func
5938 choke me
5939 #endif
5942 main ()
5944 return $ac_func ();
5946 return 0;
5948 _ACEOF
5949 rm -f conftest.$ac_objext conftest$ac_exeext
5950 if { (ac_try="$ac_link"
5951 case "(($ac_try" in
5952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5953 *) ac_try_echo=$ac_try;;
5954 esac
5955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5956 (eval "$ac_link") 2>conftest.er1
5957 ac_status=$?
5958 grep -v '^ *+' conftest.er1 >conftest.err
5959 rm -f conftest.er1
5960 cat conftest.err >&5
5961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962 (exit $ac_status); } && {
5963 test -z "$ac_c_werror_flag" ||
5964 test ! -s conftest.err
5965 } && test -s conftest$ac_exeext &&
5966 $as_test_x conftest$ac_exeext; then
5967 eval "$as_ac_var=yes"
5968 else
5969 echo "$as_me: failed program was:" >&5
5970 sed 's/^/| /' conftest.$ac_ext >&5
5972 eval "$as_ac_var=no"
5975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5976 conftest$ac_exeext conftest.$ac_ext
5978 ac_res=`eval echo '${'$as_ac_var'}'`
5979 { echo "$as_me:$LINENO: result: $ac_res" >&5
5980 echo "${ECHO_T}$ac_res" >&6; }
5981 if test `eval echo '${'$as_ac_var'}'` = yes; then
5982 cat >>confdefs.h <<_ACEOF
5983 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5984 _ACEOF
5987 done
5990 { echo "$as_me:$LINENO: checking for signed" >&5
5991 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
5992 if test "${ac_cv_type_signed+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 else
5995 cat >conftest.$ac_ext <<_ACEOF
5996 /* confdefs.h. */
5997 _ACEOF
5998 cat confdefs.h >>conftest.$ac_ext
5999 cat >>conftest.$ac_ext <<_ACEOF
6000 /* end confdefs.h. */
6001 $ac_includes_default
6002 typedef signed ac__type_new_;
6004 main ()
6006 if ((ac__type_new_ *) 0)
6007 return 0;
6008 if (sizeof (ac__type_new_))
6009 return 0;
6011 return 0;
6013 _ACEOF
6014 rm -f conftest.$ac_objext
6015 if { (ac_try="$ac_compile"
6016 case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019 esac
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_compile") 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && {
6028 test -z "$ac_c_werror_flag" ||
6029 test ! -s conftest.err
6030 } && test -s conftest.$ac_objext; then
6031 ac_cv_type_signed=yes
6032 else
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_cv_type_signed=no
6039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
6042 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
6044 # The cast to long int works around a bug in the HP C Compiler
6045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6047 # This bug is HP SR number 8606223364.
6048 { echo "$as_me:$LINENO: checking size of signed" >&5
6049 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
6050 if test "${ac_cv_sizeof_signed+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 else
6053 if test "$cross_compiling" = yes; then
6054 # Depending upon the size, compute the lo and hi bounds.
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 $ac_includes_default
6062 typedef signed ac__type_sizeof_;
6064 main ()
6066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6067 test_array [0] = 0
6070 return 0;
6072 _ACEOF
6073 rm -f conftest.$ac_objext
6074 if { (ac_try="$ac_compile"
6075 case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078 esac
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_compile") 2>conftest.er1
6081 ac_status=$?
6082 grep -v '^ *+' conftest.er1 >conftest.err
6083 rm -f conftest.er1
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } && {
6087 test -z "$ac_c_werror_flag" ||
6088 test ! -s conftest.err
6089 } && test -s conftest.$ac_objext; then
6090 ac_lo=0 ac_mid=0
6091 while :; do
6092 cat >conftest.$ac_ext <<_ACEOF
6093 /* confdefs.h. */
6094 _ACEOF
6095 cat confdefs.h >>conftest.$ac_ext
6096 cat >>conftest.$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6098 $ac_includes_default
6099 typedef signed ac__type_sizeof_;
6101 main ()
6103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6104 test_array [0] = 0
6107 return 0;
6109 _ACEOF
6110 rm -f conftest.$ac_objext
6111 if { (ac_try="$ac_compile"
6112 case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115 esac
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_compile") 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } && {
6124 test -z "$ac_c_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest.$ac_objext; then
6127 ac_hi=$ac_mid; break
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 ac_lo=`expr $ac_mid + 1`
6133 if test $ac_lo -le $ac_mid; then
6134 ac_lo= ac_hi=
6135 break
6137 ac_mid=`expr 2 '*' $ac_mid + 1`
6140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6141 done
6142 else
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 cat >conftest.$ac_ext <<_ACEOF
6147 /* confdefs.h. */
6148 _ACEOF
6149 cat confdefs.h >>conftest.$ac_ext
6150 cat >>conftest.$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 $ac_includes_default
6153 typedef signed ac__type_sizeof_;
6155 main ()
6157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6158 test_array [0] = 0
6161 return 0;
6163 _ACEOF
6164 rm -f conftest.$ac_objext
6165 if { (ac_try="$ac_compile"
6166 case "(($ac_try" in
6167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6169 esac
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_compile") 2>conftest.er1
6172 ac_status=$?
6173 grep -v '^ *+' conftest.er1 >conftest.err
6174 rm -f conftest.er1
6175 cat conftest.err >&5
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && {
6178 test -z "$ac_c_werror_flag" ||
6179 test ! -s conftest.err
6180 } && test -s conftest.$ac_objext; then
6181 ac_hi=-1 ac_mid=-1
6182 while :; do
6183 cat >conftest.$ac_ext <<_ACEOF
6184 /* confdefs.h. */
6185 _ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 $ac_includes_default
6190 typedef signed ac__type_sizeof_;
6192 main ()
6194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6195 test_array [0] = 0
6198 return 0;
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6203 case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206 esac
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compile") 2>conftest.er1
6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
6218 ac_lo=$ac_mid; break
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 ac_hi=`expr '(' $ac_mid ')' - 1`
6224 if test $ac_mid -le $ac_hi; then
6225 ac_lo= ac_hi=
6226 break
6228 ac_mid=`expr 2 '*' $ac_mid`
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 done
6233 else
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6237 ac_lo= ac_hi=
6240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6244 # Binary search between lo and hi bounds.
6245 while test "x$ac_lo" != "x$ac_hi"; do
6246 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6247 cat >conftest.$ac_ext <<_ACEOF
6248 /* confdefs.h. */
6249 _ACEOF
6250 cat confdefs.h >>conftest.$ac_ext
6251 cat >>conftest.$ac_ext <<_ACEOF
6252 /* end confdefs.h. */
6253 $ac_includes_default
6254 typedef signed ac__type_sizeof_;
6256 main ()
6258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6259 test_array [0] = 0
6262 return 0;
6264 _ACEOF
6265 rm -f conftest.$ac_objext
6266 if { (ac_try="$ac_compile"
6267 case "(($ac_try" in
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6270 esac
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_compile") 2>conftest.er1
6273 ac_status=$?
6274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } && {
6279 test -z "$ac_c_werror_flag" ||
6280 test ! -s conftest.err
6281 } && test -s conftest.$ac_objext; then
6282 ac_hi=$ac_mid
6283 else
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.$ac_ext >&5
6287 ac_lo=`expr '(' $ac_mid ')' + 1`
6290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 done
6292 case $ac_lo in
6293 ?*) ac_cv_sizeof_signed=$ac_lo;;
6294 '') if test "$ac_cv_type_signed" = yes; then
6295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6296 See \`config.log' for more details." >&5
6297 echo "$as_me: error: cannot compute sizeof (signed)
6298 See \`config.log' for more details." >&2;}
6299 { (exit 77); exit 77; }; }
6300 else
6301 ac_cv_sizeof_signed=0
6302 fi ;;
6303 esac
6304 else
6305 cat >conftest.$ac_ext <<_ACEOF
6306 /* confdefs.h. */
6307 _ACEOF
6308 cat confdefs.h >>conftest.$ac_ext
6309 cat >>conftest.$ac_ext <<_ACEOF
6310 /* end confdefs.h. */
6311 $ac_includes_default
6312 typedef signed ac__type_sizeof_;
6313 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6314 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6315 #include <stdio.h>
6316 #include <stdlib.h>
6318 main ()
6321 FILE *f = fopen ("conftest.val", "w");
6322 if (! f)
6323 return 1;
6324 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6326 long int i = longval ();
6327 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6328 return 1;
6329 fprintf (f, "%ld\n", i);
6331 else
6333 unsigned long int i = ulongval ();
6334 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6335 return 1;
6336 fprintf (f, "%lu\n", i);
6338 return ferror (f) || fclose (f) != 0;
6341 return 0;
6343 _ACEOF
6344 rm -f conftest$ac_exeext
6345 if { (ac_try="$ac_link"
6346 case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_link") 2>&5
6352 ac_status=$?
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6355 { (case "(($ac_try" in
6356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6357 *) ac_try_echo=$ac_try;;
6358 esac
6359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6360 (eval "$ac_try") 2>&5
6361 ac_status=$?
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); }; }; then
6364 ac_cv_sizeof_signed=`cat conftest.val`
6365 else
6366 echo "$as_me: program exited with status $ac_status" >&5
6367 echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6370 ( exit $ac_status )
6371 if test "$ac_cv_type_signed" = yes; then
6372 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
6373 See \`config.log' for more details." >&5
6374 echo "$as_me: error: cannot compute sizeof (signed)
6375 See \`config.log' for more details." >&2;}
6376 { (exit 77); exit 77; }; }
6377 else
6378 ac_cv_sizeof_signed=0
6381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6383 rm -f conftest.val
6385 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
6386 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
6390 cat >>confdefs.h <<_ACEOF
6391 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
6392 _ACEOF
6395 { echo "$as_me:$LINENO: checking for unsigned" >&5
6396 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6; }
6397 if test "${ac_cv_type_unsigned+set}" = set; then
6398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 else
6400 cat >conftest.$ac_ext <<_ACEOF
6401 /* confdefs.h. */
6402 _ACEOF
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 $ac_includes_default
6407 typedef unsigned ac__type_new_;
6409 main ()
6411 if ((ac__type_new_ *) 0)
6412 return 0;
6413 if (sizeof (ac__type_new_))
6414 return 0;
6416 return 0;
6418 _ACEOF
6419 rm -f conftest.$ac_objext
6420 if { (ac_try="$ac_compile"
6421 case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424 esac
6425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_compile") 2>conftest.er1
6427 ac_status=$?
6428 grep -v '^ *+' conftest.er1 >conftest.err
6429 rm -f conftest.er1
6430 cat conftest.err >&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } && {
6433 test -z "$ac_c_werror_flag" ||
6434 test ! -s conftest.err
6435 } && test -s conftest.$ac_objext; then
6436 ac_cv_type_unsigned=yes
6437 else
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6441 ac_cv_type_unsigned=no
6444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6446 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
6447 echo "${ECHO_T}$ac_cv_type_unsigned" >&6; }
6449 # The cast to long int works around a bug in the HP C Compiler
6450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6452 # This bug is HP SR number 8606223364.
6453 { echo "$as_me:$LINENO: checking size of unsigned" >&5
6454 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6; }
6455 if test "${ac_cv_sizeof_unsigned+set}" = set; then
6456 echo $ECHO_N "(cached) $ECHO_C" >&6
6457 else
6458 if test "$cross_compiling" = yes; then
6459 # Depending upon the size, compute the lo and hi bounds.
6460 cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h. */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 $ac_includes_default
6467 typedef unsigned ac__type_sizeof_;
6469 main ()
6471 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6472 test_array [0] = 0
6475 return 0;
6477 _ACEOF
6478 rm -f conftest.$ac_objext
6479 if { (ac_try="$ac_compile"
6480 case "(($ac_try" in
6481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6482 *) ac_try_echo=$ac_try;;
6483 esac
6484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6485 (eval "$ac_compile") 2>conftest.er1
6486 ac_status=$?
6487 grep -v '^ *+' conftest.er1 >conftest.err
6488 rm -f conftest.er1
6489 cat conftest.err >&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); } && {
6492 test -z "$ac_c_werror_flag" ||
6493 test ! -s conftest.err
6494 } && test -s conftest.$ac_objext; then
6495 ac_lo=0 ac_mid=0
6496 while :; do
6497 cat >conftest.$ac_ext <<_ACEOF
6498 /* confdefs.h. */
6499 _ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6503 $ac_includes_default
6504 typedef unsigned ac__type_sizeof_;
6506 main ()
6508 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6509 test_array [0] = 0
6512 return 0;
6514 _ACEOF
6515 rm -f conftest.$ac_objext
6516 if { (ac_try="$ac_compile"
6517 case "(($ac_try" in
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6520 esac
6521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6522 (eval "$ac_compile") 2>conftest.er1
6523 ac_status=$?
6524 grep -v '^ *+' conftest.er1 >conftest.err
6525 rm -f conftest.er1
6526 cat conftest.err >&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } && {
6529 test -z "$ac_c_werror_flag" ||
6530 test ! -s conftest.err
6531 } && test -s conftest.$ac_objext; then
6532 ac_hi=$ac_mid; break
6533 else
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.$ac_ext >&5
6537 ac_lo=`expr $ac_mid + 1`
6538 if test $ac_lo -le $ac_mid; then
6539 ac_lo= ac_hi=
6540 break
6542 ac_mid=`expr 2 '*' $ac_mid + 1`
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 done
6547 else
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.$ac_ext >&5
6551 cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h. */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 $ac_includes_default
6558 typedef unsigned ac__type_sizeof_;
6560 main ()
6562 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6563 test_array [0] = 0
6566 return 0;
6568 _ACEOF
6569 rm -f conftest.$ac_objext
6570 if { (ac_try="$ac_compile"
6571 case "(($ac_try" in
6572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6573 *) ac_try_echo=$ac_try;;
6574 esac
6575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6576 (eval "$ac_compile") 2>conftest.er1
6577 ac_status=$?
6578 grep -v '^ *+' conftest.er1 >conftest.err
6579 rm -f conftest.er1
6580 cat conftest.err >&5
6581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6582 (exit $ac_status); } && {
6583 test -z "$ac_c_werror_flag" ||
6584 test ! -s conftest.err
6585 } && test -s conftest.$ac_objext; then
6586 ac_hi=-1 ac_mid=-1
6587 while :; do
6588 cat >conftest.$ac_ext <<_ACEOF
6589 /* confdefs.h. */
6590 _ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 $ac_includes_default
6595 typedef unsigned ac__type_sizeof_;
6597 main ()
6599 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6600 test_array [0] = 0
6603 return 0;
6605 _ACEOF
6606 rm -f conftest.$ac_objext
6607 if { (ac_try="$ac_compile"
6608 case "(($ac_try" in
6609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610 *) ac_try_echo=$ac_try;;
6611 esac
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613 (eval "$ac_compile") 2>conftest.er1
6614 ac_status=$?
6615 grep -v '^ *+' conftest.er1 >conftest.err
6616 rm -f conftest.er1
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } && {
6620 test -z "$ac_c_werror_flag" ||
6621 test ! -s conftest.err
6622 } && test -s conftest.$ac_objext; then
6623 ac_lo=$ac_mid; break
6624 else
6625 echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6628 ac_hi=`expr '(' $ac_mid ')' - 1`
6629 if test $ac_mid -le $ac_hi; then
6630 ac_lo= ac_hi=
6631 break
6633 ac_mid=`expr 2 '*' $ac_mid`
6636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637 done
6638 else
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6642 ac_lo= ac_hi=
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6649 # Binary search between lo and hi bounds.
6650 while test "x$ac_lo" != "x$ac_hi"; do
6651 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6652 cat >conftest.$ac_ext <<_ACEOF
6653 /* confdefs.h. */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6658 $ac_includes_default
6659 typedef unsigned ac__type_sizeof_;
6661 main ()
6663 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6664 test_array [0] = 0
6667 return 0;
6669 _ACEOF
6670 rm -f conftest.$ac_objext
6671 if { (ac_try="$ac_compile"
6672 case "(($ac_try" in
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6675 esac
6676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6677 (eval "$ac_compile") 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest.$ac_objext; then
6687 ac_hi=$ac_mid
6688 else
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 ac_lo=`expr '(' $ac_mid ')' + 1`
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696 done
6697 case $ac_lo in
6698 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
6699 '') if test "$ac_cv_type_unsigned" = yes; then
6700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6701 See \`config.log' for more details." >&5
6702 echo "$as_me: error: cannot compute sizeof (unsigned)
6703 See \`config.log' for more details." >&2;}
6704 { (exit 77); exit 77; }; }
6705 else
6706 ac_cv_sizeof_unsigned=0
6707 fi ;;
6708 esac
6709 else
6710 cat >conftest.$ac_ext <<_ACEOF
6711 /* confdefs.h. */
6712 _ACEOF
6713 cat confdefs.h >>conftest.$ac_ext
6714 cat >>conftest.$ac_ext <<_ACEOF
6715 /* end confdefs.h. */
6716 $ac_includes_default
6717 typedef unsigned ac__type_sizeof_;
6718 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6719 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6720 #include <stdio.h>
6721 #include <stdlib.h>
6723 main ()
6726 FILE *f = fopen ("conftest.val", "w");
6727 if (! f)
6728 return 1;
6729 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6731 long int i = longval ();
6732 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6733 return 1;
6734 fprintf (f, "%ld\n", i);
6736 else
6738 unsigned long int i = ulongval ();
6739 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6740 return 1;
6741 fprintf (f, "%lu\n", i);
6743 return ferror (f) || fclose (f) != 0;
6746 return 0;
6748 _ACEOF
6749 rm -f conftest$ac_exeext
6750 if { (ac_try="$ac_link"
6751 case "(($ac_try" in
6752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6753 *) ac_try_echo=$ac_try;;
6754 esac
6755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6756 (eval "$ac_link") 2>&5
6757 ac_status=$?
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6760 { (case "(($ac_try" in
6761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6762 *) ac_try_echo=$ac_try;;
6763 esac
6764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6765 (eval "$ac_try") 2>&5
6766 ac_status=$?
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); }; }; then
6769 ac_cv_sizeof_unsigned=`cat conftest.val`
6770 else
6771 echo "$as_me: program exited with status $ac_status" >&5
6772 echo "$as_me: failed program was:" >&5
6773 sed 's/^/| /' conftest.$ac_ext >&5
6775 ( exit $ac_status )
6776 if test "$ac_cv_type_unsigned" = yes; then
6777 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned)
6778 See \`config.log' for more details." >&5
6779 echo "$as_me: error: cannot compute sizeof (unsigned)
6780 See \`config.log' for more details." >&2;}
6781 { (exit 77); exit 77; }; }
6782 else
6783 ac_cv_sizeof_unsigned=0
6786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6788 rm -f conftest.val
6790 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
6791 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6; }
6795 cat >>confdefs.h <<_ACEOF
6796 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
6797 _ACEOF
6800 { echo "$as_me:$LINENO: checking for signed long" >&5
6801 echo $ECHO_N "checking for signed long... $ECHO_C" >&6; }
6802 if test "${ac_cv_type_signed_long+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h. */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 $ac_includes_default
6812 typedef signed long ac__type_new_;
6814 main ()
6816 if ((ac__type_new_ *) 0)
6817 return 0;
6818 if (sizeof (ac__type_new_))
6819 return 0;
6821 return 0;
6823 _ACEOF
6824 rm -f conftest.$ac_objext
6825 if { (ac_try="$ac_compile"
6826 case "(($ac_try" in
6827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6828 *) ac_try_echo=$ac_try;;
6829 esac
6830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6831 (eval "$ac_compile") 2>conftest.er1
6832 ac_status=$?
6833 grep -v '^ *+' conftest.er1 >conftest.err
6834 rm -f conftest.er1
6835 cat conftest.err >&5
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); } && {
6838 test -z "$ac_c_werror_flag" ||
6839 test ! -s conftest.err
6840 } && test -s conftest.$ac_objext; then
6841 ac_cv_type_signed_long=yes
6842 else
6843 echo "$as_me: failed program was:" >&5
6844 sed 's/^/| /' conftest.$ac_ext >&5
6846 ac_cv_type_signed_long=no
6849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6851 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long" >&5
6852 echo "${ECHO_T}$ac_cv_type_signed_long" >&6; }
6854 # The cast to long int works around a bug in the HP C Compiler
6855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6857 # This bug is HP SR number 8606223364.
6858 { echo "$as_me:$LINENO: checking size of signed long" >&5
6859 echo $ECHO_N "checking size of signed long... $ECHO_C" >&6; }
6860 if test "${ac_cv_sizeof_signed_long+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863 if test "$cross_compiling" = yes; then
6864 # Depending upon the size, compute the lo and hi bounds.
6865 cat >conftest.$ac_ext <<_ACEOF
6866 /* confdefs.h. */
6867 _ACEOF
6868 cat confdefs.h >>conftest.$ac_ext
6869 cat >>conftest.$ac_ext <<_ACEOF
6870 /* end confdefs.h. */
6871 $ac_includes_default
6872 typedef signed long ac__type_sizeof_;
6874 main ()
6876 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6877 test_array [0] = 0
6880 return 0;
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6885 case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888 esac
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6900 ac_lo=0 ac_mid=0
6901 while :; do
6902 cat >conftest.$ac_ext <<_ACEOF
6903 /* confdefs.h. */
6904 _ACEOF
6905 cat confdefs.h >>conftest.$ac_ext
6906 cat >>conftest.$ac_ext <<_ACEOF
6907 /* end confdefs.h. */
6908 $ac_includes_default
6909 typedef signed long ac__type_sizeof_;
6911 main ()
6913 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6914 test_array [0] = 0
6917 return 0;
6919 _ACEOF
6920 rm -f conftest.$ac_objext
6921 if { (ac_try="$ac_compile"
6922 case "(($ac_try" in
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6925 esac
6926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6927 (eval "$ac_compile") 2>conftest.er1
6928 ac_status=$?
6929 grep -v '^ *+' conftest.er1 >conftest.err
6930 rm -f conftest.er1
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } && {
6934 test -z "$ac_c_werror_flag" ||
6935 test ! -s conftest.err
6936 } && test -s conftest.$ac_objext; then
6937 ac_hi=$ac_mid; break
6938 else
6939 echo "$as_me: failed program was:" >&5
6940 sed 's/^/| /' conftest.$ac_ext >&5
6942 ac_lo=`expr $ac_mid + 1`
6943 if test $ac_lo -le $ac_mid; then
6944 ac_lo= ac_hi=
6945 break
6947 ac_mid=`expr 2 '*' $ac_mid + 1`
6950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6951 done
6952 else
6953 echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h. */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 $ac_includes_default
6963 typedef signed long ac__type_sizeof_;
6965 main ()
6967 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6968 test_array [0] = 0
6971 return 0;
6973 _ACEOF
6974 rm -f conftest.$ac_objext
6975 if { (ac_try="$ac_compile"
6976 case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979 esac
6980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.$ac_objext; then
6991 ac_hi=-1 ac_mid=-1
6992 while :; do
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h. */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 $ac_includes_default
7000 typedef signed long ac__type_sizeof_;
7002 main ()
7004 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7005 test_array [0] = 0
7008 return 0;
7010 _ACEOF
7011 rm -f conftest.$ac_objext
7012 if { (ac_try="$ac_compile"
7013 case "(($ac_try" in
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7016 esac
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_compile") 2>conftest.er1
7019 ac_status=$?
7020 grep -v '^ *+' conftest.er1 >conftest.err
7021 rm -f conftest.er1
7022 cat conftest.err >&5
7023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7024 (exit $ac_status); } && {
7025 test -z "$ac_c_werror_flag" ||
7026 test ! -s conftest.err
7027 } && test -s conftest.$ac_objext; then
7028 ac_lo=$ac_mid; break
7029 else
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7033 ac_hi=`expr '(' $ac_mid ')' - 1`
7034 if test $ac_mid -le $ac_hi; then
7035 ac_lo= ac_hi=
7036 break
7038 ac_mid=`expr 2 '*' $ac_mid`
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7042 done
7043 else
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7047 ac_lo= ac_hi=
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7054 # Binary search between lo and hi bounds.
7055 while test "x$ac_lo" != "x$ac_hi"; do
7056 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7057 cat >conftest.$ac_ext <<_ACEOF
7058 /* confdefs.h. */
7059 _ACEOF
7060 cat confdefs.h >>conftest.$ac_ext
7061 cat >>conftest.$ac_ext <<_ACEOF
7062 /* end confdefs.h. */
7063 $ac_includes_default
7064 typedef signed long ac__type_sizeof_;
7066 main ()
7068 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7069 test_array [0] = 0
7072 return 0;
7074 _ACEOF
7075 rm -f conftest.$ac_objext
7076 if { (ac_try="$ac_compile"
7077 case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7080 esac
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_compile") 2>conftest.er1
7083 ac_status=$?
7084 grep -v '^ *+' conftest.er1 >conftest.err
7085 rm -f conftest.er1
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest.$ac_objext; then
7092 ac_hi=$ac_mid
7093 else
7094 echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7097 ac_lo=`expr '(' $ac_mid ')' + 1`
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7101 done
7102 case $ac_lo in
7103 ?*) ac_cv_sizeof_signed_long=$ac_lo;;
7104 '') if test "$ac_cv_type_signed_long" = yes; then
7105 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7106 See \`config.log' for more details." >&5
7107 echo "$as_me: error: cannot compute sizeof (signed long)
7108 See \`config.log' for more details." >&2;}
7109 { (exit 77); exit 77; }; }
7110 else
7111 ac_cv_sizeof_signed_long=0
7112 fi ;;
7113 esac
7114 else
7115 cat >conftest.$ac_ext <<_ACEOF
7116 /* confdefs.h. */
7117 _ACEOF
7118 cat confdefs.h >>conftest.$ac_ext
7119 cat >>conftest.$ac_ext <<_ACEOF
7120 /* end confdefs.h. */
7121 $ac_includes_default
7122 typedef signed long ac__type_sizeof_;
7123 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7124 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7125 #include <stdio.h>
7126 #include <stdlib.h>
7128 main ()
7131 FILE *f = fopen ("conftest.val", "w");
7132 if (! f)
7133 return 1;
7134 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7136 long int i = longval ();
7137 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7138 return 1;
7139 fprintf (f, "%ld\n", i);
7141 else
7143 unsigned long int i = ulongval ();
7144 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7145 return 1;
7146 fprintf (f, "%lu\n", i);
7148 return ferror (f) || fclose (f) != 0;
7151 return 0;
7153 _ACEOF
7154 rm -f conftest$ac_exeext
7155 if { (ac_try="$ac_link"
7156 case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7159 esac
7160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7161 (eval "$ac_link") 2>&5
7162 ac_status=$?
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7165 { (case "(($ac_try" in
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7168 esac
7169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7170 (eval "$ac_try") 2>&5
7171 ac_status=$?
7172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7173 (exit $ac_status); }; }; then
7174 ac_cv_sizeof_signed_long=`cat conftest.val`
7175 else
7176 echo "$as_me: program exited with status $ac_status" >&5
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7180 ( exit $ac_status )
7181 if test "$ac_cv_type_signed_long" = yes; then
7182 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
7183 See \`config.log' for more details." >&5
7184 echo "$as_me: error: cannot compute sizeof (signed long)
7185 See \`config.log' for more details." >&2;}
7186 { (exit 77); exit 77; }; }
7187 else
7188 ac_cv_sizeof_signed_long=0
7191 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7193 rm -f conftest.val
7195 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
7196 echo "${ECHO_T}$ac_cv_sizeof_signed_long" >&6; }
7200 cat >>confdefs.h <<_ACEOF
7201 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
7202 _ACEOF
7205 { echo "$as_me:$LINENO: checking for unsigned long" >&5
7206 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
7207 if test "${ac_cv_type_unsigned_long+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 else
7210 cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h. */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7216 $ac_includes_default
7217 typedef unsigned long ac__type_new_;
7219 main ()
7221 if ((ac__type_new_ *) 0)
7222 return 0;
7223 if (sizeof (ac__type_new_))
7224 return 0;
7226 return 0;
7228 _ACEOF
7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7231 case "(($ac_try" in
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7234 esac
7235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_compile") 2>conftest.er1
7237 ac_status=$?
7238 grep -v '^ *+' conftest.er1 >conftest.err
7239 rm -f conftest.er1
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } && {
7243 test -z "$ac_c_werror_flag" ||
7244 test ! -s conftest.err
7245 } && test -s conftest.$ac_objext; then
7246 ac_cv_type_unsigned_long=yes
7247 else
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.$ac_ext >&5
7251 ac_cv_type_unsigned_long=no
7254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7256 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
7257 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
7259 # The cast to long int works around a bug in the HP C Compiler
7260 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7261 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7262 # This bug is HP SR number 8606223364.
7263 { echo "$as_me:$LINENO: checking size of unsigned long" >&5
7264 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
7265 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7267 else
7268 if test "$cross_compiling" = yes; then
7269 # Depending upon the size, compute the lo and hi bounds.
7270 cat >conftest.$ac_ext <<_ACEOF
7271 /* confdefs.h. */
7272 _ACEOF
7273 cat confdefs.h >>conftest.$ac_ext
7274 cat >>conftest.$ac_ext <<_ACEOF
7275 /* end confdefs.h. */
7276 $ac_includes_default
7277 typedef unsigned long ac__type_sizeof_;
7279 main ()
7281 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7282 test_array [0] = 0
7285 return 0;
7287 _ACEOF
7288 rm -f conftest.$ac_objext
7289 if { (ac_try="$ac_compile"
7290 case "(($ac_try" in
7291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7293 esac
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7296 ac_status=$?
7297 grep -v '^ *+' conftest.er1 >conftest.err
7298 rm -f conftest.er1
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7305 ac_lo=0 ac_mid=0
7306 while :; do
7307 cat >conftest.$ac_ext <<_ACEOF
7308 /* confdefs.h. */
7309 _ACEOF
7310 cat confdefs.h >>conftest.$ac_ext
7311 cat >>conftest.$ac_ext <<_ACEOF
7312 /* end confdefs.h. */
7313 $ac_includes_default
7314 typedef unsigned long ac__type_sizeof_;
7316 main ()
7318 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7319 test_array [0] = 0
7322 return 0;
7324 _ACEOF
7325 rm -f conftest.$ac_objext
7326 if { (ac_try="$ac_compile"
7327 case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7330 esac
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_compile") 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_c_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest.$ac_objext; then
7342 ac_hi=$ac_mid; break
7343 else
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7347 ac_lo=`expr $ac_mid + 1`
7348 if test $ac_lo -le $ac_mid; then
7349 ac_lo= ac_hi=
7350 break
7352 ac_mid=`expr 2 '*' $ac_mid + 1`
7355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7356 done
7357 else
7358 echo "$as_me: failed program was:" >&5
7359 sed 's/^/| /' conftest.$ac_ext >&5
7361 cat >conftest.$ac_ext <<_ACEOF
7362 /* confdefs.h. */
7363 _ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 $ac_includes_default
7368 typedef unsigned long ac__type_sizeof_;
7370 main ()
7372 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7373 test_array [0] = 0
7376 return 0;
7378 _ACEOF
7379 rm -f conftest.$ac_objext
7380 if { (ac_try="$ac_compile"
7381 case "(($ac_try" in
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7384 esac
7385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386 (eval "$ac_compile") 2>conftest.er1
7387 ac_status=$?
7388 grep -v '^ *+' conftest.er1 >conftest.err
7389 rm -f conftest.er1
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest.$ac_objext; then
7396 ac_hi=-1 ac_mid=-1
7397 while :; do
7398 cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h. */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 $ac_includes_default
7405 typedef unsigned long ac__type_sizeof_;
7407 main ()
7409 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7410 test_array [0] = 0
7413 return 0;
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (ac_try="$ac_compile"
7418 case "(($ac_try" in
7419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420 *) ac_try_echo=$ac_try;;
7421 esac
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423 (eval "$ac_compile") 2>conftest.er1
7424 ac_status=$?
7425 grep -v '^ *+' conftest.er1 >conftest.err
7426 rm -f conftest.er1
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } && {
7430 test -z "$ac_c_werror_flag" ||
7431 test ! -s conftest.err
7432 } && test -s conftest.$ac_objext; then
7433 ac_lo=$ac_mid; break
7434 else
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7438 ac_hi=`expr '(' $ac_mid ')' - 1`
7439 if test $ac_mid -le $ac_hi; then
7440 ac_lo= ac_hi=
7441 break
7443 ac_mid=`expr 2 '*' $ac_mid`
7446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7447 done
7448 else
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7452 ac_lo= ac_hi=
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 # Binary search between lo and hi bounds.
7460 while test "x$ac_lo" != "x$ac_hi"; do
7461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h. */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 $ac_includes_default
7469 typedef unsigned long ac__type_sizeof_;
7471 main ()
7473 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7474 test_array [0] = 0
7477 return 0;
7479 _ACEOF
7480 rm -f conftest.$ac_objext
7481 if { (ac_try="$ac_compile"
7482 case "(($ac_try" in
7483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7484 *) ac_try_echo=$ac_try;;
7485 esac
7486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7487 (eval "$ac_compile") 2>conftest.er1
7488 ac_status=$?
7489 grep -v '^ *+' conftest.er1 >conftest.err
7490 rm -f conftest.er1
7491 cat conftest.err >&5
7492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7493 (exit $ac_status); } && {
7494 test -z "$ac_c_werror_flag" ||
7495 test ! -s conftest.err
7496 } && test -s conftest.$ac_objext; then
7497 ac_hi=$ac_mid
7498 else
7499 echo "$as_me: failed program was:" >&5
7500 sed 's/^/| /' conftest.$ac_ext >&5
7502 ac_lo=`expr '(' $ac_mid ')' + 1`
7505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7506 done
7507 case $ac_lo in
7508 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
7509 '') if test "$ac_cv_type_unsigned_long" = yes; then
7510 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7511 See \`config.log' for more details." >&5
7512 echo "$as_me: error: cannot compute sizeof (unsigned long)
7513 See \`config.log' for more details." >&2;}
7514 { (exit 77); exit 77; }; }
7515 else
7516 ac_cv_sizeof_unsigned_long=0
7517 fi ;;
7518 esac
7519 else
7520 cat >conftest.$ac_ext <<_ACEOF
7521 /* confdefs.h. */
7522 _ACEOF
7523 cat confdefs.h >>conftest.$ac_ext
7524 cat >>conftest.$ac_ext <<_ACEOF
7525 /* end confdefs.h. */
7526 $ac_includes_default
7527 typedef unsigned long ac__type_sizeof_;
7528 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7529 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7530 #include <stdio.h>
7531 #include <stdlib.h>
7533 main ()
7536 FILE *f = fopen ("conftest.val", "w");
7537 if (! f)
7538 return 1;
7539 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7541 long int i = longval ();
7542 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7543 return 1;
7544 fprintf (f, "%ld\n", i);
7546 else
7548 unsigned long int i = ulongval ();
7549 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7550 return 1;
7551 fprintf (f, "%lu\n", i);
7553 return ferror (f) || fclose (f) != 0;
7556 return 0;
7558 _ACEOF
7559 rm -f conftest$ac_exeext
7560 if { (ac_try="$ac_link"
7561 case "(($ac_try" in
7562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563 *) ac_try_echo=$ac_try;;
7564 esac
7565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7566 (eval "$ac_link") 2>&5
7567 ac_status=$?
7568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7570 { (case "(($ac_try" in
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7573 esac
7574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7575 (eval "$ac_try") 2>&5
7576 ac_status=$?
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); }; }; then
7579 ac_cv_sizeof_unsigned_long=`cat conftest.val`
7580 else
7581 echo "$as_me: program exited with status $ac_status" >&5
7582 echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7585 ( exit $ac_status )
7586 if test "$ac_cv_type_unsigned_long" = yes; then
7587 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
7588 See \`config.log' for more details." >&5
7589 echo "$as_me: error: cannot compute sizeof (unsigned long)
7590 See \`config.log' for more details." >&2;}
7591 { (exit 77); exit 77; }; }
7592 else
7593 ac_cv_sizeof_unsigned_long=0
7596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7598 rm -f conftest.val
7600 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
7601 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
7605 cat >>confdefs.h <<_ACEOF
7606 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
7607 _ACEOF
7610 { echo "$as_me:$LINENO: checking for signed long long" >&5
7611 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7612 if test "${ac_cv_type_signed_long_long+set}" = set; then
7613 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615 cat >conftest.$ac_ext <<_ACEOF
7616 /* confdefs.h. */
7617 _ACEOF
7618 cat confdefs.h >>conftest.$ac_ext
7619 cat >>conftest.$ac_ext <<_ACEOF
7620 /* end confdefs.h. */
7621 $ac_includes_default
7622 typedef signed long long ac__type_new_;
7624 main ()
7626 if ((ac__type_new_ *) 0)
7627 return 0;
7628 if (sizeof (ac__type_new_))
7629 return 0;
7631 return 0;
7633 _ACEOF
7634 rm -f conftest.$ac_objext
7635 if { (ac_try="$ac_compile"
7636 case "(($ac_try" in
7637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7638 *) ac_try_echo=$ac_try;;
7639 esac
7640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7641 (eval "$ac_compile") 2>conftest.er1
7642 ac_status=$?
7643 grep -v '^ *+' conftest.er1 >conftest.err
7644 rm -f conftest.er1
7645 cat conftest.err >&5
7646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647 (exit $ac_status); } && {
7648 test -z "$ac_c_werror_flag" ||
7649 test ! -s conftest.err
7650 } && test -s conftest.$ac_objext; then
7651 ac_cv_type_signed_long_long=yes
7652 else
7653 echo "$as_me: failed program was:" >&5
7654 sed 's/^/| /' conftest.$ac_ext >&5
7656 ac_cv_type_signed_long_long=no
7659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7662 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7664 # The cast to long int works around a bug in the HP C Compiler
7665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7667 # This bug is HP SR number 8606223364.
7668 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7669 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7670 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7671 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673 if test "$cross_compiling" = yes; then
7674 # Depending upon the size, compute the lo and hi bounds.
7675 cat >conftest.$ac_ext <<_ACEOF
7676 /* confdefs.h. */
7677 _ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h. */
7681 $ac_includes_default
7682 typedef signed long long ac__type_sizeof_;
7684 main ()
7686 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7687 test_array [0] = 0
7690 return 0;
7692 _ACEOF
7693 rm -f conftest.$ac_objext
7694 if { (ac_try="$ac_compile"
7695 case "(($ac_try" in
7696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7697 *) ac_try_echo=$ac_try;;
7698 esac
7699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7700 (eval "$ac_compile") 2>conftest.er1
7701 ac_status=$?
7702 grep -v '^ *+' conftest.er1 >conftest.err
7703 rm -f conftest.er1
7704 cat conftest.err >&5
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } && {
7707 test -z "$ac_c_werror_flag" ||
7708 test ! -s conftest.err
7709 } && test -s conftest.$ac_objext; then
7710 ac_lo=0 ac_mid=0
7711 while :; do
7712 cat >conftest.$ac_ext <<_ACEOF
7713 /* confdefs.h. */
7714 _ACEOF
7715 cat confdefs.h >>conftest.$ac_ext
7716 cat >>conftest.$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7718 $ac_includes_default
7719 typedef signed long long ac__type_sizeof_;
7721 main ()
7723 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7724 test_array [0] = 0
7727 return 0;
7729 _ACEOF
7730 rm -f conftest.$ac_objext
7731 if { (ac_try="$ac_compile"
7732 case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7735 esac
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_compile") 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest.$ac_objext; then
7747 ac_hi=$ac_mid; break
7748 else
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7752 ac_lo=`expr $ac_mid + 1`
7753 if test $ac_lo -le $ac_mid; then
7754 ac_lo= ac_hi=
7755 break
7757 ac_mid=`expr 2 '*' $ac_mid + 1`
7760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7761 done
7762 else
7763 echo "$as_me: failed program was:" >&5
7764 sed 's/^/| /' conftest.$ac_ext >&5
7766 cat >conftest.$ac_ext <<_ACEOF
7767 /* confdefs.h. */
7768 _ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7772 $ac_includes_default
7773 typedef signed long long ac__type_sizeof_;
7775 main ()
7777 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7778 test_array [0] = 0
7781 return 0;
7783 _ACEOF
7784 rm -f conftest.$ac_objext
7785 if { (ac_try="$ac_compile"
7786 case "(($ac_try" in
7787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7788 *) ac_try_echo=$ac_try;;
7789 esac
7790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7791 (eval "$ac_compile") 2>conftest.er1
7792 ac_status=$?
7793 grep -v '^ *+' conftest.er1 >conftest.err
7794 rm -f conftest.er1
7795 cat conftest.err >&5
7796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7797 (exit $ac_status); } && {
7798 test -z "$ac_c_werror_flag" ||
7799 test ! -s conftest.err
7800 } && test -s conftest.$ac_objext; then
7801 ac_hi=-1 ac_mid=-1
7802 while :; do
7803 cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h. */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809 $ac_includes_default
7810 typedef signed long long ac__type_sizeof_;
7812 main ()
7814 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7815 test_array [0] = 0
7818 return 0;
7820 _ACEOF
7821 rm -f conftest.$ac_objext
7822 if { (ac_try="$ac_compile"
7823 case "(($ac_try" in
7824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7825 *) ac_try_echo=$ac_try;;
7826 esac
7827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7828 (eval "$ac_compile") 2>conftest.er1
7829 ac_status=$?
7830 grep -v '^ *+' conftest.er1 >conftest.err
7831 rm -f conftest.er1
7832 cat conftest.err >&5
7833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7834 (exit $ac_status); } && {
7835 test -z "$ac_c_werror_flag" ||
7836 test ! -s conftest.err
7837 } && test -s conftest.$ac_objext; then
7838 ac_lo=$ac_mid; break
7839 else
7840 echo "$as_me: failed program was:" >&5
7841 sed 's/^/| /' conftest.$ac_ext >&5
7843 ac_hi=`expr '(' $ac_mid ')' - 1`
7844 if test $ac_mid -le $ac_hi; then
7845 ac_lo= ac_hi=
7846 break
7848 ac_mid=`expr 2 '*' $ac_mid`
7851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7852 done
7853 else
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 ac_lo= ac_hi=
7860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864 # Binary search between lo and hi bounds.
7865 while test "x$ac_lo" != "x$ac_hi"; do
7866 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7867 cat >conftest.$ac_ext <<_ACEOF
7868 /* confdefs.h. */
7869 _ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7873 $ac_includes_default
7874 typedef signed long long ac__type_sizeof_;
7876 main ()
7878 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7879 test_array [0] = 0
7882 return 0;
7884 _ACEOF
7885 rm -f conftest.$ac_objext
7886 if { (ac_try="$ac_compile"
7887 case "(($ac_try" in
7888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7889 *) ac_try_echo=$ac_try;;
7890 esac
7891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7892 (eval "$ac_compile") 2>conftest.er1
7893 ac_status=$?
7894 grep -v '^ *+' conftest.er1 >conftest.err
7895 rm -f conftest.er1
7896 cat conftest.err >&5
7897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } && {
7899 test -z "$ac_c_werror_flag" ||
7900 test ! -s conftest.err
7901 } && test -s conftest.$ac_objext; then
7902 ac_hi=$ac_mid
7903 else
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7907 ac_lo=`expr '(' $ac_mid ')' + 1`
7910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911 done
7912 case $ac_lo in
7913 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7914 '') if test "$ac_cv_type_signed_long_long" = yes; then
7915 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7916 See \`config.log' for more details." >&5
7917 echo "$as_me: error: cannot compute sizeof (signed long long)
7918 See \`config.log' for more details." >&2;}
7919 { (exit 77); exit 77; }; }
7920 else
7921 ac_cv_sizeof_signed_long_long=0
7922 fi ;;
7923 esac
7924 else
7925 cat >conftest.$ac_ext <<_ACEOF
7926 /* confdefs.h. */
7927 _ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7931 $ac_includes_default
7932 typedef signed long long ac__type_sizeof_;
7933 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7934 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7935 #include <stdio.h>
7936 #include <stdlib.h>
7938 main ()
7941 FILE *f = fopen ("conftest.val", "w");
7942 if (! f)
7943 return 1;
7944 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7946 long int i = longval ();
7947 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7948 return 1;
7949 fprintf (f, "%ld\n", i);
7951 else
7953 unsigned long int i = ulongval ();
7954 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7955 return 1;
7956 fprintf (f, "%lu\n", i);
7958 return ferror (f) || fclose (f) != 0;
7961 return 0;
7963 _ACEOF
7964 rm -f conftest$ac_exeext
7965 if { (ac_try="$ac_link"
7966 case "(($ac_try" in
7967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7968 *) ac_try_echo=$ac_try;;
7969 esac
7970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7971 (eval "$ac_link") 2>&5
7972 ac_status=$?
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7975 { (case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7978 esac
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_try") 2>&5
7981 ac_status=$?
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; }; then
7984 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7985 else
7986 echo "$as_me: program exited with status $ac_status" >&5
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 ( exit $ac_status )
7991 if test "$ac_cv_type_signed_long_long" = yes; then
7992 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7993 See \`config.log' for more details." >&5
7994 echo "$as_me: error: cannot compute sizeof (signed long long)
7995 See \`config.log' for more details." >&2;}
7996 { (exit 77); exit 77; }; }
7997 else
7998 ac_cv_sizeof_signed_long_long=0
8001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8003 rm -f conftest.val
8005 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
8006 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
8010 cat >>confdefs.h <<_ACEOF
8011 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
8012 _ACEOF
8015 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
8016 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
8017 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 else
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 typedef unsigned long long ac__type_new_;
8029 main ()
8031 if ((ac__type_new_ *) 0)
8032 return 0;
8033 if (sizeof (ac__type_new_))
8034 return 0;
8036 return 0;
8038 _ACEOF
8039 rm -f conftest.$ac_objext
8040 if { (ac_try="$ac_compile"
8041 case "(($ac_try" in
8042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8043 *) ac_try_echo=$ac_try;;
8044 esac
8045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8047 ac_status=$?
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest.$ac_objext; then
8056 ac_cv_type_unsigned_long_long=yes
8057 else
8058 echo "$as_me: failed program was:" >&5
8059 sed 's/^/| /' conftest.$ac_ext >&5
8061 ac_cv_type_unsigned_long_long=no
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8067 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
8069 # The cast to long int works around a bug in the HP C Compiler
8070 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8071 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8072 # This bug is HP SR number 8606223364.
8073 { echo "$as_me:$LINENO: checking size of unsigned long long" >&5
8074 echo $ECHO_N "checking size of unsigned long long... $ECHO_C" >&6; }
8075 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8077 else
8078 if test "$cross_compiling" = yes; then
8079 # Depending upon the size, compute the lo and hi bounds.
8080 cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h. */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 $ac_includes_default
8087 typedef unsigned long long ac__type_sizeof_;
8089 main ()
8091 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8092 test_array [0] = 0
8095 return 0;
8097 _ACEOF
8098 rm -f conftest.$ac_objext
8099 if { (ac_try="$ac_compile"
8100 case "(($ac_try" in
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8103 esac
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
8106 ac_status=$?
8107 grep -v '^ *+' conftest.er1 >conftest.err
8108 rm -f conftest.er1
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } && {
8112 test -z "$ac_c_werror_flag" ||
8113 test ! -s conftest.err
8114 } && test -s conftest.$ac_objext; then
8115 ac_lo=0 ac_mid=0
8116 while :; do
8117 cat >conftest.$ac_ext <<_ACEOF
8118 /* confdefs.h. */
8119 _ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 $ac_includes_default
8124 typedef unsigned long long ac__type_sizeof_;
8126 main ()
8128 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8129 test_array [0] = 0
8132 return 0;
8134 _ACEOF
8135 rm -f conftest.$ac_objext
8136 if { (ac_try="$ac_compile"
8137 case "(($ac_try" in
8138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8139 *) ac_try_echo=$ac_try;;
8140 esac
8141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8142 (eval "$ac_compile") 2>conftest.er1
8143 ac_status=$?
8144 grep -v '^ *+' conftest.er1 >conftest.err
8145 rm -f conftest.er1
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } && {
8149 test -z "$ac_c_werror_flag" ||
8150 test ! -s conftest.err
8151 } && test -s conftest.$ac_objext; then
8152 ac_hi=$ac_mid; break
8153 else
8154 echo "$as_me: failed program was:" >&5
8155 sed 's/^/| /' conftest.$ac_ext >&5
8157 ac_lo=`expr $ac_mid + 1`
8158 if test $ac_lo -le $ac_mid; then
8159 ac_lo= ac_hi=
8160 break
8162 ac_mid=`expr 2 '*' $ac_mid + 1`
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 done
8167 else
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 cat >conftest.$ac_ext <<_ACEOF
8172 /* confdefs.h. */
8173 _ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8178 typedef unsigned long long ac__type_sizeof_;
8180 main ()
8182 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8183 test_array [0] = 0
8186 return 0;
8188 _ACEOF
8189 rm -f conftest.$ac_objext
8190 if { (ac_try="$ac_compile"
8191 case "(($ac_try" in
8192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8193 *) ac_try_echo=$ac_try;;
8194 esac
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_compile") 2>conftest.er1
8197 ac_status=$?
8198 grep -v '^ *+' conftest.er1 >conftest.err
8199 rm -f conftest.er1
8200 cat conftest.err >&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } && {
8203 test -z "$ac_c_werror_flag" ||
8204 test ! -s conftest.err
8205 } && test -s conftest.$ac_objext; then
8206 ac_hi=-1 ac_mid=-1
8207 while :; do
8208 cat >conftest.$ac_ext <<_ACEOF
8209 /* confdefs.h. */
8210 _ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 $ac_includes_default
8215 typedef unsigned long long ac__type_sizeof_;
8217 main ()
8219 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8220 test_array [0] = 0
8223 return 0;
8225 _ACEOF
8226 rm -f conftest.$ac_objext
8227 if { (ac_try="$ac_compile"
8228 case "(($ac_try" in
8229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8230 *) ac_try_echo=$ac_try;;
8231 esac
8232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8233 (eval "$ac_compile") 2>conftest.er1
8234 ac_status=$?
8235 grep -v '^ *+' conftest.er1 >conftest.err
8236 rm -f conftest.er1
8237 cat conftest.err >&5
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); } && {
8240 test -z "$ac_c_werror_flag" ||
8241 test ! -s conftest.err
8242 } && test -s conftest.$ac_objext; then
8243 ac_lo=$ac_mid; break
8244 else
8245 echo "$as_me: failed program was:" >&5
8246 sed 's/^/| /' conftest.$ac_ext >&5
8248 ac_hi=`expr '(' $ac_mid ')' - 1`
8249 if test $ac_mid -le $ac_hi; then
8250 ac_lo= ac_hi=
8251 break
8253 ac_mid=`expr 2 '*' $ac_mid`
8256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8257 done
8258 else
8259 echo "$as_me: failed program was:" >&5
8260 sed 's/^/| /' conftest.$ac_ext >&5
8262 ac_lo= ac_hi=
8265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8269 # Binary search between lo and hi bounds.
8270 while test "x$ac_lo" != "x$ac_hi"; do
8271 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8272 cat >conftest.$ac_ext <<_ACEOF
8273 /* confdefs.h. */
8274 _ACEOF
8275 cat confdefs.h >>conftest.$ac_ext
8276 cat >>conftest.$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 $ac_includes_default
8279 typedef unsigned long long ac__type_sizeof_;
8281 main ()
8283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8284 test_array [0] = 0
8287 return 0;
8289 _ACEOF
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8292 case "(($ac_try" in
8293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8294 *) ac_try_echo=$ac_try;;
8295 esac
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8298 ac_status=$?
8299 grep -v '^ *+' conftest.er1 >conftest.err
8300 rm -f conftest.er1
8301 cat conftest.err >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.$ac_objext; then
8307 ac_hi=$ac_mid
8308 else
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.$ac_ext >&5
8312 ac_lo=`expr '(' $ac_mid ')' + 1`
8315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8316 done
8317 case $ac_lo in
8318 ?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
8319 '') if test "$ac_cv_type_unsigned_long_long" = yes; then
8320 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8321 See \`config.log' for more details." >&5
8322 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8323 See \`config.log' for more details." >&2;}
8324 { (exit 77); exit 77; }; }
8325 else
8326 ac_cv_sizeof_unsigned_long_long=0
8327 fi ;;
8328 esac
8329 else
8330 cat >conftest.$ac_ext <<_ACEOF
8331 /* confdefs.h. */
8332 _ACEOF
8333 cat confdefs.h >>conftest.$ac_ext
8334 cat >>conftest.$ac_ext <<_ACEOF
8335 /* end confdefs.h. */
8336 $ac_includes_default
8337 typedef unsigned long long ac__type_sizeof_;
8338 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8339 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8340 #include <stdio.h>
8341 #include <stdlib.h>
8343 main ()
8346 FILE *f = fopen ("conftest.val", "w");
8347 if (! f)
8348 return 1;
8349 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8351 long int i = longval ();
8352 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8353 return 1;
8354 fprintf (f, "%ld\n", i);
8356 else
8358 unsigned long int i = ulongval ();
8359 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8360 return 1;
8361 fprintf (f, "%lu\n", i);
8363 return ferror (f) || fclose (f) != 0;
8366 return 0;
8368 _ACEOF
8369 rm -f conftest$ac_exeext
8370 if { (ac_try="$ac_link"
8371 case "(($ac_try" in
8372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8373 *) ac_try_echo=$ac_try;;
8374 esac
8375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8376 (eval "$ac_link") 2>&5
8377 ac_status=$?
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8380 { (case "(($ac_try" in
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8383 esac
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_try") 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
8390 else
8391 echo "$as_me: program exited with status $ac_status" >&5
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8395 ( exit $ac_status )
8396 if test "$ac_cv_type_unsigned_long_long" = yes; then
8397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
8398 See \`config.log' for more details." >&5
8399 echo "$as_me: error: cannot compute sizeof (unsigned long long)
8400 See \`config.log' for more details." >&2;}
8401 { (exit 77); exit 77; }; }
8402 else
8403 ac_cv_sizeof_unsigned_long_long=0
8406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8408 rm -f conftest.val
8410 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
8411 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long" >&6; }
8415 cat >>confdefs.h <<_ACEOF
8416 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
8417 _ACEOF
8423 # Extract the first word of "freetype-config", so it can be a program name with args.
8424 set dummy freetype-config; ac_word=$2
8425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8427 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8428 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 else
8430 case $FREETYPE_CONFIG in
8431 [\\/]* | ?:[\\/]*)
8432 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8437 for as_dir in $as_dummy
8439 IFS=$as_save_IFS
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8445 break 2
8447 done
8448 done
8449 IFS=$as_save_IFS
8452 esac
8454 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8455 if test -n "$FREETYPE_CONFIG"; then
8456 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8457 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8458 else
8459 { echo "$as_me:$LINENO: result: no" >&5
8460 echo "${ECHO_T}no" >&6; }
8465 OLDCPPFLAGS="${CPPFLAGS}"
8466 OLDLIBS="${LIBS}"
8467 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8468 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8469 else if test -d /usr/include/freetype2; then
8470 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8471 else if test -d /usr/local/include/freetype2; then
8472 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8477 if test "x${FREETYPE_CONFIG}" '=' "x";then
8478 # if we didn't find the freetype-config program, we won't
8479 # know where the libs are expected to be. So just blindly
8480 # try to link against them.
8481 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8482 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8483 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8485 else
8486 ac_check_lib_save_LIBS=$LIBS
8487 LIBS="-lfreetype $LIBS"
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h. */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8495 /* Override any GCC internal prototype to avoid an error.
8496 Use char because int might match the return type of a GCC
8497 builtin and then its argument prototype would still apply. */
8498 #ifdef __cplusplus
8499 extern "C"
8500 #endif
8501 char FT_Init_FreeType ();
8503 main ()
8505 return FT_Init_FreeType ();
8507 return 0;
8509 _ACEOF
8510 rm -f conftest.$ac_objext conftest$ac_exeext
8511 if { (ac_try="$ac_link"
8512 case "(($ac_try" in
8513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8514 *) ac_try_echo=$ac_try;;
8515 esac
8516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8517 (eval "$ac_link") 2>conftest.er1
8518 ac_status=$?
8519 grep -v '^ *+' conftest.er1 >conftest.err
8520 rm -f conftest.er1
8521 cat conftest.err >&5
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); } && {
8524 test -z "$ac_c_werror_flag" ||
8525 test ! -s conftest.err
8526 } && test -s conftest$ac_exeext &&
8527 $as_test_x conftest$ac_exeext; then
8528 ac_cv_lib_freetype_FT_Init_FreeType=yes
8529 else
8530 echo "$as_me: failed program was:" >&5
8531 sed 's/^/| /' conftest.$ac_ext >&5
8533 ac_cv_lib_freetype_FT_Init_FreeType=no
8536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8537 conftest$ac_exeext conftest.$ac_ext
8538 LIBS=$ac_check_lib_save_LIBS
8540 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8541 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8542 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8543 HAVE_LIB_FREETYPE=1
8549 for ac_header in ft2build.h
8551 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8556 echo $ECHO_N "(cached) $ECHO_C" >&6
8558 ac_res=`eval echo '${'$as_ac_Header'}'`
8559 { echo "$as_me:$LINENO: result: $ac_res" >&5
8560 echo "${ECHO_T}$ac_res" >&6; }
8561 else
8562 # Is the header compilable?
8563 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8564 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8565 cat >conftest.$ac_ext <<_ACEOF
8566 /* confdefs.h. */
8567 _ACEOF
8568 cat confdefs.h >>conftest.$ac_ext
8569 cat >>conftest.$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 $ac_includes_default
8572 #include <$ac_header>
8573 _ACEOF
8574 rm -f conftest.$ac_objext
8575 if { (ac_try="$ac_compile"
8576 case "(($ac_try" in
8577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8578 *) ac_try_echo=$ac_try;;
8579 esac
8580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8581 (eval "$ac_compile") 2>conftest.er1
8582 ac_status=$?
8583 grep -v '^ *+' conftest.er1 >conftest.err
8584 rm -f conftest.er1
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } && {
8588 test -z "$ac_c_werror_flag" ||
8589 test ! -s conftest.err
8590 } && test -s conftest.$ac_objext; then
8591 ac_header_compiler=yes
8592 else
8593 echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8596 ac_header_compiler=no
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8601 echo "${ECHO_T}$ac_header_compiler" >&6; }
8603 # Is the header present?
8604 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8605 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8606 cat >conftest.$ac_ext <<_ACEOF
8607 /* confdefs.h. */
8608 _ACEOF
8609 cat confdefs.h >>conftest.$ac_ext
8610 cat >>conftest.$ac_ext <<_ACEOF
8611 /* end confdefs.h. */
8612 #include <$ac_header>
8613 _ACEOF
8614 if { (ac_try="$ac_cpp conftest.$ac_ext"
8615 case "(($ac_try" in
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8618 esac
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8621 ac_status=$?
8622 grep -v '^ *+' conftest.er1 >conftest.err
8623 rm -f conftest.er1
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } >/dev/null && {
8627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8628 test ! -s conftest.err
8629 }; then
8630 ac_header_preproc=yes
8631 else
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8635 ac_header_preproc=no
8638 rm -f conftest.err conftest.$ac_ext
8639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8640 echo "${ECHO_T}$ac_header_preproc" >&6; }
8642 # So? What about this header?
8643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8644 yes:no: )
8645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8649 ac_header_preproc=yes
8651 no:yes:* )
8652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8666 esac
8667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8671 else
8672 eval "$as_ac_Header=\$ac_header_preproc"
8674 ac_res=`eval echo '${'$as_ac_Header'}'`
8675 { echo "$as_me:$LINENO: result: $ac_res" >&5
8676 echo "${ECHO_T}$ac_res" >&6; }
8679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8680 cat >>confdefs.h <<_ACEOF
8681 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8682 _ACEOF
8683 HAVE_FT2BUILD_H=1
8686 done
8688 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8690 for ac_header in freetype/freetype.h
8692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8697 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 ac_res=`eval echo '${'$as_ac_Header'}'`
8700 { echo "$as_me:$LINENO: result: $ac_res" >&5
8701 echo "${ECHO_T}$ac_res" >&6; }
8702 else
8703 # Is the header compilable?
8704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8706 cat >conftest.$ac_ext <<_ACEOF
8707 /* confdefs.h. */
8708 _ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8712 $ac_includes_default
8713 #include <$ac_header>
8714 _ACEOF
8715 rm -f conftest.$ac_objext
8716 if { (ac_try="$ac_compile"
8717 case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720 esac
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_compile") 2>conftest.er1
8723 ac_status=$?
8724 grep -v '^ *+' conftest.er1 >conftest.err
8725 rm -f conftest.er1
8726 cat conftest.err >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && {
8729 test -z "$ac_c_werror_flag" ||
8730 test ! -s conftest.err
8731 } && test -s conftest.$ac_objext; then
8732 ac_header_compiler=yes
8733 else
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.$ac_ext >&5
8737 ac_header_compiler=no
8740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8742 echo "${ECHO_T}$ac_header_compiler" >&6; }
8744 # Is the header present?
8745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h. */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753 #include <$ac_header>
8754 _ACEOF
8755 if { (ac_try="$ac_cpp conftest.$ac_ext"
8756 case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8759 esac
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8762 ac_status=$?
8763 grep -v '^ *+' conftest.er1 >conftest.err
8764 rm -f conftest.er1
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } >/dev/null && {
8768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 }; then
8771 ac_header_preproc=yes
8772 else
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ac_header_preproc=no
8779 rm -f conftest.err conftest.$ac_ext
8780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8781 echo "${ECHO_T}$ac_header_preproc" >&6; }
8783 # So? What about this header?
8784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8785 yes:no: )
8786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8790 ac_header_preproc=yes
8792 no:yes:* )
8793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8807 esac
8808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813 eval "$as_ac_Header=\$ac_header_preproc"
8815 ac_res=`eval echo '${'$as_ac_Header'}'`
8816 { echo "$as_me:$LINENO: result: $ac_res" >&5
8817 echo "${ECHO_T}$ac_res" >&6; }
8820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8821 cat >>confdefs.h <<_ACEOF
8822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8823 _ACEOF
8824 HAVE_FREETYPE_FREETYPE_H=1
8827 done
8831 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8832 "x${FREETYPE_CONFIG}" '!=' "x";then
8833 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8834 HAVE_FREETYPE=1
8836 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8837 HAVE_FREETYPE=1
8841 if test "x${HAVE_FREETYPE}" = "x1"; then
8842 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8843 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8844 else
8845 LIBS="$LIBS -lfreetype"
8848 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8849 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8852 { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8853 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8855 cat > conftest.c << EOF
8856 $HAVE_FT2BUILD_H_DEFINE
8858 #ifdef HAVE_FT2BUILD_H
8859 #include <ft2build.h>
8860 #include FT_FREETYPE_H
8861 #include FT_GLYPH_H
8862 #include FT_SIZES_H
8863 #include FT_SFNT_NAMES_H
8864 #include FT_TRUETYPE_IDS_H
8865 #include FT_OUTLINE_H
8866 #else
8867 #include <freetype/freetype.h>
8868 #include <freetype/ftglyph.h>
8869 #include <freetype/ftsizes.h>
8870 #include <freetype/ftsnames.h>
8871 #include <freetype/ttnameid.h>
8872 #include <freetype/ftoutln.h>
8873 #endif
8875 int main()
8877 FT_Library ftlibrary;
8878 FT_Face face;
8879 FT_Error error;
8880 FT_ULong charcode;
8881 FT_UInt gindex;
8882 FT_Glyph glyph;
8883 FT_BBox bbox;
8884 FT_Matrix matrix;
8885 FT_UInt i;
8886 char* name = 0;
8887 char italic, bold;
8889 FT_Init_FreeType(&ftlibrary);
8890 FT_New_Face(ftlibrary, "filename", 0, &face);
8891 i = face->num_glyphs - 1;
8892 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8893 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8894 FT_Get_Postscript_Name(face);
8895 FT_Get_Char_Index(face, 33);
8896 FT_Get_First_Char(face, &i);
8897 FT_Get_Next_Char(face, 33, &i);
8898 if(FT_HAS_GLYPH_NAMES(face)) {
8899 FT_Get_Glyph_Name(face, 33, name, 127);
8901 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8902 FT_Get_Glyph(face->glyph, &glyph);
8903 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8904 FT_Done_Glyph(glyph);
8905 FT_Done_Face(face);
8906 FT_Done_FreeType(ftlibrary);
8907 return 0;
8911 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8912 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8913 { echo "$as_me:$LINENO: result: yes" >&5
8914 echo "${ECHO_T}yes" >&6; }
8915 cat >>confdefs.h <<_ACEOF
8916 #define HAVE_FREETYPE 1
8917 _ACEOF
8919 cat >>confdefs.h <<_ACEOF
8920 #define HAVE_FREETYPE_FREETYPE_H 1
8921 _ACEOF
8923 cat >>confdefs.h <<_ACEOF
8924 #define USE_FREETYPE 1
8925 _ACEOF
8926 # for ttf2tp1
8927 else
8928 echo "configure: failed program was:" >&5
8929 cat conftest.c >&5
8930 HAVE_FREETYPE=0
8931 { echo "$as_me:$LINENO: result: no" >&5
8932 echo "${ECHO_T}no" >&6; }
8934 rm -f conftest*
8937 # if the above didn't work out, reset all changes to the compiler variables.
8938 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8939 CPPFLAGS=$OLDCPPFLAGS
8940 LIBS=$OLDLIBS
8944 #RFX_CHECK_FONTCONFIG
8946 lame_objects=
8947 lame_makefile=
8948 if test "x${DISABLE_LAME}" = "xtrue"; then
8949 echo "*" Disabling lame support...
8950 else
8951 # old lame code at lib/lame
8952 if test -f lib/lame/Makefile.in; then
8953 lame_objects="lame/psymodel.\$(O) lame/fft.\$(O) lame/newmdct.\$(O) lame/quantize.\$(O) lame/takehiro.\$(O) lame/reservoir.\$(O) lame/quantize_pvt.\$(O) lame/vbrquantize.\$(O) lame/encoder.\$(O) lame/id3tag.\$(O) lame/version.\$(O) lame/tables.\$(O) lame/util.\$(O) lame/bitstream.\$(O) lame/set_get.\$(O) lame/VbrTag.\$(O) lame/lame.\$(O)"
8954 lame_makefile="lib/lame/Makefile"
8955 CPPFLAGS="$CPPFLAGS -Ilame"
8956 cat >>confdefs.h <<_ACEOF
8957 #define HAVE_LAME 1
8958 _ACEOF
8960 else
8961 if test -d /usr/include/lame; then
8962 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
8963 else
8964 if test -d /usr/local/include/lame; then
8965 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
8969 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
8970 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
8971 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
8972 echo $ECHO_N "(cached) $ECHO_C" >&6
8973 else
8974 ac_check_lib_save_LIBS=$LIBS
8975 LIBS="-lmp3lame $LIBS"
8976 cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h. */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8983 /* Override any GCC internal prototype to avoid an error.
8984 Use char because int might match the return type of a GCC
8985 builtin and then its argument prototype would still apply. */
8986 #ifdef __cplusplus
8987 extern "C"
8988 #endif
8989 char lame_init ();
8991 main ()
8993 return lame_init ();
8995 return 0;
8997 _ACEOF
8998 rm -f conftest.$ac_objext conftest$ac_exeext
8999 if { (ac_try="$ac_link"
9000 case "(($ac_try" in
9001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9002 *) ac_try_echo=$ac_try;;
9003 esac
9004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9005 (eval "$ac_link") 2>conftest.er1
9006 ac_status=$?
9007 grep -v '^ *+' conftest.er1 >conftest.err
9008 rm -f conftest.er1
9009 cat conftest.err >&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); } && {
9012 test -z "$ac_c_werror_flag" ||
9013 test ! -s conftest.err
9014 } && test -s conftest$ac_exeext &&
9015 $as_test_x conftest$ac_exeext; then
9016 ac_cv_lib_mp3lame_lame_init=yes
9017 else
9018 echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.$ac_ext >&5
9021 ac_cv_lib_mp3lame_lame_init=no
9024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9025 conftest$ac_exeext conftest.$ac_ext
9026 LIBS=$ac_check_lib_save_LIBS
9028 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9029 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
9030 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9031 cat >>confdefs.h <<_ACEOF
9032 #define HAVE_LIBMP3LAME 1
9033 _ACEOF
9035 LIBS="-lmp3lame $LIBS"
9037 else
9038 NO_LIBMP3LAME=1
9042 for ac_header in lame.h
9044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 ac_res=`eval echo '${'$as_ac_Header'}'`
9052 { echo "$as_me:$LINENO: result: $ac_res" >&5
9053 echo "${ECHO_T}$ac_res" >&6; }
9054 else
9055 # Is the header compilable?
9056 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9058 cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h. */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 $ac_includes_default
9065 #include <$ac_header>
9066 _ACEOF
9067 rm -f conftest.$ac_objext
9068 if { (ac_try="$ac_compile"
9069 case "(($ac_try" in
9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9072 esac
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 (eval "$ac_compile") 2>conftest.er1
9075 ac_status=$?
9076 grep -v '^ *+' conftest.er1 >conftest.err
9077 rm -f conftest.er1
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } && {
9081 test -z "$ac_c_werror_flag" ||
9082 test ! -s conftest.err
9083 } && test -s conftest.$ac_objext; then
9084 ac_header_compiler=yes
9085 else
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ac_header_compiler=no
9092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9094 echo "${ECHO_T}$ac_header_compiler" >&6; }
9096 # Is the header present?
9097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 #include <$ac_header>
9106 _ACEOF
9107 if { (ac_try="$ac_cpp conftest.$ac_ext"
9108 case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111 esac
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } >/dev/null && {
9120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 }; then
9123 ac_header_preproc=yes
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 ac_header_preproc=no
9131 rm -f conftest.err conftest.$ac_ext
9132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6; }
9135 # So? What about this header?
9136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9137 yes:no: )
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9142 ac_header_preproc=yes
9144 no:yes:* )
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9159 esac
9160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165 eval "$as_ac_Header=\$ac_header_preproc"
9167 ac_res=`eval echo '${'$as_ac_Header'}'`
9168 { echo "$as_me:$LINENO: result: $ac_res" >&5
9169 echo "${ECHO_T}$ac_res" >&6; }
9172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9173 cat >>confdefs.h <<_ACEOF
9174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9175 _ACEOF
9179 done
9181 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
9182 cat >>confdefs.h <<_ACEOF
9183 #define HAVE_LAME 1
9184 _ACEOF
9191 # ------------------------------------------------------------------
9195 for ac_prog in avifile-config
9197 # Extract the first word of "$ac_prog", so it can be a program name with args.
9198 set dummy $ac_prog; ac_word=$2
9199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9201 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204 if test -n "$AVIFILE_CONFIG"; then
9205 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9206 else
9207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9208 for as_dir in $PATH
9210 IFS=$as_save_IFS
9211 test -z "$as_dir" && as_dir=.
9212 for ac_exec_ext in '' $ac_executable_extensions; do
9213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9214 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9216 break 2
9218 done
9219 done
9220 IFS=$as_save_IFS
9224 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9225 if test -n "$AVIFILE_CONFIG"; then
9226 { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9227 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
9228 else
9229 { echo "$as_me:$LINENO: result: no" >&5
9230 echo "${ECHO_T}no" >&6; }
9234 test -n "$AVIFILE_CONFIG" && break
9235 done
9238 if test "x$AVIFILE_CONFIG" '!=' "x";then
9239 OLDCPPFLAGS="$CPPFLAGS"
9240 # temporarily add avifile paths to CPPFLAGS...
9241 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9244 for ac_header in avifile/version.h version.h
9246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9250 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9251 echo $ECHO_N "(cached) $ECHO_C" >&6
9253 ac_res=`eval echo '${'$as_ac_Header'}'`
9254 { echo "$as_me:$LINENO: result: $ac_res" >&5
9255 echo "${ECHO_T}$ac_res" >&6; }
9256 else
9257 # Is the header compilable?
9258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9260 cat >conftest.$ac_ext <<_ACEOF
9261 /* confdefs.h. */
9262 _ACEOF
9263 cat confdefs.h >>conftest.$ac_ext
9264 cat >>conftest.$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266 $ac_includes_default
9267 #include <$ac_header>
9268 _ACEOF
9269 rm -f conftest.$ac_objext
9270 if { (ac_try="$ac_compile"
9271 case "(($ac_try" in
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9274 esac
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_compile") 2>conftest.er1
9277 ac_status=$?
9278 grep -v '^ *+' conftest.er1 >conftest.err
9279 rm -f conftest.er1
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } && {
9283 test -z "$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9285 } && test -s conftest.$ac_objext; then
9286 ac_header_compiler=yes
9287 else
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_header_compiler=no
9294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9296 echo "${ECHO_T}$ac_header_compiler" >&6; }
9298 # Is the header present?
9299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9301 cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h. */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 #include <$ac_header>
9308 _ACEOF
9309 if { (ac_try="$ac_cpp conftest.$ac_ext"
9310 case "(($ac_try" in
9311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9312 *) ac_try_echo=$ac_try;;
9313 esac
9314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9316 ac_status=$?
9317 grep -v '^ *+' conftest.er1 >conftest.err
9318 rm -f conftest.er1
9319 cat conftest.err >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); } >/dev/null && {
9322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9323 test ! -s conftest.err
9324 }; then
9325 ac_header_preproc=yes
9326 else
9327 echo "$as_me: failed program was:" >&5
9328 sed 's/^/| /' conftest.$ac_ext >&5
9330 ac_header_preproc=no
9333 rm -f conftest.err conftest.$ac_ext
9334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9335 echo "${ECHO_T}$ac_header_preproc" >&6; }
9337 # So? What about this header?
9338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9339 yes:no: )
9340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9344 ac_header_preproc=yes
9346 no:yes:* )
9347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9361 esac
9362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9364 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9365 echo $ECHO_N "(cached) $ECHO_C" >&6
9366 else
9367 eval "$as_ac_Header=\$ac_header_preproc"
9369 ac_res=`eval echo '${'$as_ac_Header'}'`
9370 { echo "$as_me:$LINENO: result: $ac_res" >&5
9371 echo "${ECHO_T}$ac_res" >&6; }
9374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9375 cat >>confdefs.h <<_ACEOF
9376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9377 _ACEOF
9381 done
9383 # ... and reset
9384 CPPFLAGS="$OLDCPPFLAGS"
9387 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9388 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
9390 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9391 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9393 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9394 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9397 cat > conftest.cpp << EOF
9399 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9400 // so we have to introduce them this way
9401 $HAVE_VERSION_H_DEFINE
9402 $HAVE_AVIFILE_VERSION_H_DEFINE
9404 #ifdef HAVE_VERSION_H
9405 #include <version.h>
9406 #endif
9407 #ifdef HAVE_AVIFILE_VERSION_H
9408 #include <avifile/version.h>
9409 #endif
9411 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9412 #include <avifile.h>
9413 #include <aviplay.h>
9414 #include <avm_fourcc.h>
9415 #include <avm_creators.h>
9416 #include <StreamInfo.h>
9417 #define VERSION6
9418 #else
9419 #include <avifile.h>
9420 #include <aviplay.h>
9421 #include <aviutil.h>
9422 #define Width width
9423 #define Height height
9424 #define Data data
9425 #define Bpp bpp
9426 #endif
9428 void test()
9430 IAviReadFile* player;
9431 IAviReadStream* astream;
9432 IAviReadStream* vstream;
9433 player = CreateIAviReadFile(0);
9434 astream = player->GetStream(0, AviStream::Audio);
9435 vstream = player->GetStream(0, AviStream::Video);
9436 vstream -> StartStreaming();
9437 astream -> StartStreaming();
9438 #ifndef VERSION6
9439 MainAVIHeader head;
9440 player->GetFileHeader(&head);
9441 head.dwMicroSecPerFrame;
9442 head.dwTotalFrames;
9443 head.dwStreams;
9444 head.dwWidth;
9445 head.dwHeight;
9446 head.dwMicroSecPerFrame;
9447 astream->GetEndPos(),
9448 astream->GetEndTime());
9449 player->StreamCount();
9450 #else
9451 StreamInfo*audioinfo;
9452 StreamInfo*videoinfo;
9453 audioinfo = astream->GetStreamInfo();
9454 videoinfo = vstream->GetStreamInfo();
9455 videoinfo->GetVideoWidth();
9456 videoinfo->GetVideoHeight();
9457 audioinfo->GetAudioSamplesPerSec();
9458 videoinfo->GetFps();
9459 #endif
9460 CImage*img = vstream->GetFrame();
9461 img->ToRGB();
9462 img->Data();
9463 img->Bpp();
9464 img->Width();
9465 img->Height();
9466 WAVEFORMATEX wave;
9467 astream->GetAudioFormatInfo(&wave,0);
9468 uint_t a,b;
9469 astream->ReadFrames(0,0,0,a,b);
9471 int main (int argc, char*argv)
9473 return 0;
9477 if test "x$AVIFILE_CONFIG" '!=' "x";then
9478 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9479 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9480 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9481 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9482 { echo "$as_me:$LINENO: result: yes" >&5
9483 echo "${ECHO_T}yes" >&6; }
9484 AVIFILE=true
9485 export AVIFILE
9486 cat >>confdefs.h <<_ACEOF
9487 #define AVIFILE true
9488 _ACEOF
9490 else
9491 echo "configure: failed program was:" >&5
9492 cat conftest.cpp >&5
9493 { echo "$as_me:$LINENO: result: no" >&5
9494 echo "${ECHO_T}no" >&6; }
9496 else
9497 { echo "$as_me:$LINENO: result: no" >&5
9498 echo "${ECHO_T}no" >&6; }
9500 rm -f conftest*
9502 if test "x${AVIFILE}" = "xtrue"; then
9503 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9504 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9505 cat >>confdefs.h <<_ACEOF
9506 #define HAVE_AVIFILE 1
9507 _ACEOF
9511 if test "x${WIN32}" != "x"; then
9512 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9513 #if test "x${AVIFIL32}" != "x"; then
9514 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9516 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9517 AVIFIL32=true
9522 # ------------------------------------------------------------------
9524 if test "x${UNCOMPRESS}" = "xgzip"; then
9525 cat >>confdefs.h <<_ACEOF
9526 #define USE_GZIP 1
9527 _ACEOF
9532 # ------------------------------------------------------------------
9535 { echo "$as_me:$LINENO: checking for Python.h and PIL" >&5
9536 echo $ECHO_N "checking for Python.h and PIL... $ECHO_C" >&6; }
9538 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9539 PY_VERSION=unknown
9540 else
9541 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9542 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9544 # iterate through version 2.2 to 2.4
9545 for v in 2 3 4; do
9546 # Linux
9547 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so" -a -f "/usr/include/python2.$v/Python.h";then
9548 PY_VERSION=2.$v
9549 PYTHON_LIB="-lpython$PY_VERSION /usr/lib/python$PY_VERSION/site-packages/PIL/_imaging.so"
9550 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
9551 # Mac OS X
9552 elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
9553 #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
9554 PY_VERSION=2.$v
9555 PYTHON_LIB="-framework Python"
9556 if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
9557 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
9558 else
9559 PYTHON_LIB2="$PYTHON_LIB"
9561 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
9562 # Mac OS X [Fink]:
9563 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
9564 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
9565 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
9566 ")" \
9567 -a -f "/sw/include/python2.$v/Python.h" \
9568 -a -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
9569 PY_VERSION=2.$v
9570 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
9571 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
9573 done
9576 if test "x$PY_VERSION" "!=" "x"; then
9577 { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
9578 echo "${ECHO_T}$PY_VERSION" >&6; }
9579 export PYTHON_INCLUDES PYTHON_LIB
9582 { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
9583 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
9585 cat > conftest.c << EOF
9586 #include <Python.h>
9587 #include <Imaging.h>
9589 int main()
9591 int ret;
9592 ret = Py_Main(0, 0);
9593 int x; // check also for gcc 2.95.x incompatibilities
9594 return ret;
9597 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
9598 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9599 { echo "$as_me:$LINENO: result: yes" >&5
9600 echo "${ECHO_T}yes" >&6; }
9601 PYTHON_OK=yes
9602 else
9603 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
9604 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9605 { echo "$as_me:$LINENO: result: yes" >&5
9606 echo "${ECHO_T}yes" >&6; }
9607 PYTHON_LIB="${PYTHON_LIB2}"
9608 PYTHON_OK=yes
9609 else
9610 echo "configure: failed program was:" >&5
9611 cat conftest.c >&5
9612 { echo "$as_me:$LINENO: result: no" >&5
9613 echo "${ECHO_T}no" >&6; }
9616 rm -f conftest*
9617 else
9618 { echo "$as_me:$LINENO: result: nope" >&5
9619 echo "${ECHO_T}nope" >&6; }
9623 if test "x$PYTHON_OK" '!=' "xyes";then
9624 echo all install uninstall clean: > lib/python/Makefile
9625 # fail silently- the most users won't have any need for the
9626 # python interface anyway
9627 else
9628 pythonrfxswf="lib/python/Makefile"
9631 # ------------------------------------------------------------------
9633 { echo "$as_me:$LINENO: checking for missing libraries" >&5
9634 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
9636 if test "x$ZLIBMISSING" = "xtrue";then
9637 MISSINGLIBS="${MISSINGLIBS} zlib"
9638 DISABLEPNG2SWF=true
9639 PARTIAL=true
9641 if test "x$JPEGLIBMISSING" = "xtrue";then
9642 MISSINGLIBS="${MISSINGLIBS} jpeglib"
9643 DISABLEPDF2SWF=true
9644 DISABLEJPEG2SWF=true
9645 PARTIAL=true
9647 if test "x$T1LIBMISSING" = "xtrue";then
9648 MISSINGLIBS="${MISSINGLIBS} t1lib"
9650 if test "x$UNGIFMISSING" = "xtrue";then
9651 DISABLEGIF2SWF=true
9652 MISSINGLIBS="${MISSINGLIBS} ungif"
9653 PARTIAL=true
9656 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
9657 DISABLEPDF2SWF=true;
9658 DISABLEJPEG2SWF=true;
9659 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
9660 PARTIAL=true
9662 if test "x$HAVE_FREETYPE" '!=' "x1"; then
9663 DISABLEPDF2SWF=true;
9664 MISSINGLIBS="${MISSINGLIBS} freetype"
9665 PARTIAL=true
9667 if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
9668 MISSINGLIBS="${MISSINGLIBS} t1lib.h"
9670 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
9671 DISABLEGIF2SWF=true
9672 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
9673 PARTIAL=true
9675 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
9676 DISABLEPNG2SWF=true;
9677 MISSINGLIBS="${MISSINGLIBS} zlib.h"
9678 PARTIAL=true
9680 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9681 # MISSINGLIBS="${MISSINGLIBS} avifile"
9684 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
9685 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
9687 # ------------------------------------------------------------------
9689 if test "x${MISSINGLIBS}" '!=' "x"; then
9690 echo "***************************************************"
9691 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
9694 avi2swf="avi2swf/Makefile"
9695 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
9696 #don't whine, avi2swf is outdated anyway
9697 #echo "* Disabling avi2swf tool..."
9698 echo all install uninstall clean: > avi2swf/Makefile
9699 avi2swf=
9702 pdf2swf_makefile="lib/pdf/Makefile"
9703 PDF2SWF='pdf2swf$(E)'
9704 LIBPDF='libpdf$(A)'
9706 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
9707 echo "* Disabling pdf2swf tool..."
9708 rm -f lib/pdf/Makefile
9709 echo all install uninstall clean: > lib/pdf/Makefile
9710 pdf2swf_makefile=""
9711 PDF2SWF=
9712 LIBPDF=
9717 if test "x${ZLIBMISSING}" = "xtrue"; then
9718 echo
9719 echo "* Warning! Without zlib, you will not be able to read"
9720 echo "* or write compressed Flash MX files!"
9723 JPEG2SWF='jpeg2swf$(E)'
9724 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
9725 echo "* Disabling jpeg2swf tool..."
9726 JPEG2SWF=
9728 export JPEG2SWF
9731 GIF2SWF='gif2swf$(E)'
9732 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
9733 echo "* Disabling gif2swf tool..."
9734 GIF2SWF=
9736 export GIF2SWF
9739 PNG2SWF='png2swf$(E)'
9740 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
9741 echo "* Disabling png2swf tool..."
9742 PNG2SWF=
9744 export PNG2SWF
9747 if test "x${MISSINGLIBS}" '!=' "x"; then
9748 if test "x${PARTIAL}" '=' "x"; then
9749 echo "* (never mind)"
9751 echo "***************************************************"
9754 # ------------------------------------------------------------------
9756 if test -f "release.in"; then release_in="./release"; fi
9757 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile"
9759 ac_config_files="$ac_config_files ${FILES}"
9761 cat >confcache <<\_ACEOF
9762 # This file is a shell script that caches the results of configure
9763 # tests run on this system so they can be shared between configure
9764 # scripts and configure runs, see configure's option --config-cache.
9765 # It is not useful on other systems. If it contains results you don't
9766 # want to keep, you may remove or edit it.
9768 # config.status only pays attention to the cache file if you give it
9769 # the --recheck option to rerun configure.
9771 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9772 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9773 # following values.
9775 _ACEOF
9777 # The following way of writing the cache mishandles newlines in values,
9778 # but we know of no workaround that is simple, portable, and efficient.
9779 # So, we kill variables containing newlines.
9780 # Ultrix sh set writes to stderr and can't be redirected directly,
9781 # and sets the high bit in the cache file unless we assign to the vars.
9783 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9784 eval ac_val=\$$ac_var
9785 case $ac_val in #(
9786 *${as_nl}*)
9787 case $ac_var in #(
9788 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
9789 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
9790 esac
9791 case $ac_var in #(
9792 _ | IFS | as_nl) ;; #(
9793 *) $as_unset $ac_var ;;
9794 esac ;;
9795 esac
9796 done
9798 (set) 2>&1 |
9799 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9800 *${as_nl}ac_space=\ *)
9801 # `set' does not quote correctly, so add quotes (double-quote
9802 # substitution turns \\\\ into \\, and sed turns \\ into \).
9803 sed -n \
9804 "s/'/'\\\\''/g;
9805 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9806 ;; #(
9808 # `set' quotes correctly as required by POSIX, so do not add quotes.
9809 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9811 esac |
9812 sort
9814 sed '
9815 /^ac_cv_env_/b end
9816 t clear
9817 :clear
9818 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9819 t end
9820 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9821 :end' >>confcache
9822 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9823 if test -w "$cache_file"; then
9824 test "x$cache_file" != "x/dev/null" &&
9825 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
9826 echo "$as_me: updating cache $cache_file" >&6;}
9827 cat confcache >$cache_file
9828 else
9829 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
9830 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9833 rm -f confcache
9835 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9836 # Let make expand exec_prefix.
9837 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9839 DEFS=-DHAVE_CONFIG_H
9841 ac_libobjs=
9842 ac_ltlibobjs=
9843 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9844 # 1. Remove the extension, and $U if already installed.
9845 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
9846 ac_i=`echo "$ac_i" | sed "$ac_script"`
9847 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9848 # will be set to the directory where LIBOBJS objects are built.
9849 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9850 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
9851 done
9852 LIBOBJS=$ac_libobjs
9854 LTLIBOBJS=$ac_ltlibobjs
9858 : ${CONFIG_STATUS=./config.status}
9859 ac_clean_files_save=$ac_clean_files
9860 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9861 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9862 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9863 cat >$CONFIG_STATUS <<_ACEOF
9864 #! $SHELL
9865 # Generated by $as_me.
9866 # Run this file to recreate the current configuration.
9867 # Compiler output produced by configure, useful for debugging
9868 # configure, is in config.log if it exists.
9870 debug=false
9871 ac_cs_recheck=false
9872 ac_cs_silent=false
9873 SHELL=\${CONFIG_SHELL-$SHELL}
9874 _ACEOF
9876 cat >>$CONFIG_STATUS <<\_ACEOF
9877 ## --------------------- ##
9878 ## M4sh Initialization. ##
9879 ## --------------------- ##
9881 # Be more Bourne compatible
9882 DUALCASE=1; export DUALCASE # for MKS sh
9883 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9884 emulate sh
9885 NULLCMD=:
9886 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9887 # is contrary to our usage. Disable this feature.
9888 alias -g '${1+"$@"}'='"$@"'
9889 setopt NO_GLOB_SUBST
9890 else
9891 case `(set -o) 2>/dev/null` in
9892 *posix*) set -o posix ;;
9893 esac
9900 # PATH needs CR
9901 # Avoid depending upon Character Ranges.
9902 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9903 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9904 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9905 as_cr_digits='0123456789'
9906 as_cr_alnum=$as_cr_Letters$as_cr_digits
9908 # The user is always right.
9909 if test "${PATH_SEPARATOR+set}" != set; then
9910 echo "#! /bin/sh" >conf$$.sh
9911 echo "exit 0" >>conf$$.sh
9912 chmod +x conf$$.sh
9913 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9914 PATH_SEPARATOR=';'
9915 else
9916 PATH_SEPARATOR=:
9918 rm -f conf$$.sh
9921 # Support unset when possible.
9922 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9923 as_unset=unset
9924 else
9925 as_unset=false
9929 # IFS
9930 # We need space, tab and new line, in precisely that order. Quoting is
9931 # there to prevent editors from complaining about space-tab.
9932 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9933 # splitting by setting IFS to empty value.)
9934 as_nl='
9936 IFS=" "" $as_nl"
9938 # Find who we are. Look in the path if we contain no directory separator.
9939 case $0 in
9940 *[\\/]* ) as_myself=$0 ;;
9941 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9942 for as_dir in $PATH
9944 IFS=$as_save_IFS
9945 test -z "$as_dir" && as_dir=.
9946 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9947 done
9948 IFS=$as_save_IFS
9951 esac
9952 # We did not find ourselves, most probably we were run as `sh COMMAND'
9953 # in which case we are not to be found in the path.
9954 if test "x$as_myself" = x; then
9955 as_myself=$0
9957 if test ! -f "$as_myself"; then
9958 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9959 { (exit 1); exit 1; }
9962 # Work around bugs in pre-3.0 UWIN ksh.
9963 for as_var in ENV MAIL MAILPATH
9964 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9965 done
9966 PS1='$ '
9967 PS2='> '
9968 PS4='+ '
9970 # NLS nuisances.
9971 for as_var in \
9972 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9973 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9974 LC_TELEPHONE LC_TIME
9976 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9977 eval $as_var=C; export $as_var
9978 else
9979 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9981 done
9983 # Required to use basename.
9984 if expr a : '\(a\)' >/dev/null 2>&1 &&
9985 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9986 as_expr=expr
9987 else
9988 as_expr=false
9991 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9992 as_basename=basename
9993 else
9994 as_basename=false
9998 # Name of the executable.
9999 as_me=`$as_basename -- "$0" ||
10000 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10001 X"$0" : 'X\(//\)$' \| \
10002 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10003 echo X/"$0" |
10004 sed '/^.*\/\([^/][^/]*\)\/*$/{
10005 s//\1/
10008 /^X\/\(\/\/\)$/{
10009 s//\1/
10012 /^X\/\(\/\).*/{
10013 s//\1/
10016 s/.*/./; q'`
10018 # CDPATH.
10019 $as_unset CDPATH
10023 as_lineno_1=$LINENO
10024 as_lineno_2=$LINENO
10025 test "x$as_lineno_1" != "x$as_lineno_2" &&
10026 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10028 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10029 # uniformly replaced by the line number. The first 'sed' inserts a
10030 # line-number line after each line using $LINENO; the second 'sed'
10031 # does the real work. The second script uses 'N' to pair each
10032 # line-number line with the line containing $LINENO, and appends
10033 # trailing '-' during substitution so that $LINENO is not a special
10034 # case at line end.
10035 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10036 # scripts with optimization help from Paolo Bonzini. Blame Lee
10037 # E. McMahon (1931-1989) for sed's syntax. :-)
10038 sed -n '
10040 /[$]LINENO/=
10041 ' <$as_myself |
10042 sed '
10043 s/[$]LINENO.*/&-/
10044 t lineno
10046 :lineno
10048 :loop
10049 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10050 t loop
10051 s/-\n.*//
10052 ' >$as_me.lineno &&
10053 chmod +x "$as_me.lineno" ||
10054 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10055 { (exit 1); exit 1; }; }
10057 # Don't try to exec as it changes $[0], causing all sort of problems
10058 # (the dirname of $[0] is not the place where we might find the
10059 # original and so on. Autoconf is especially sensitive to this).
10060 . "./$as_me.lineno"
10061 # Exit status is that of the last command.
10062 exit
10066 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10067 as_dirname=dirname
10068 else
10069 as_dirname=false
10072 ECHO_C= ECHO_N= ECHO_T=
10073 case `echo -n x` in
10074 -n*)
10075 case `echo 'x\c'` in
10076 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10077 *) ECHO_C='\c';;
10078 esac;;
10080 ECHO_N='-n';;
10081 esac
10083 if expr a : '\(a\)' >/dev/null 2>&1 &&
10084 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10085 as_expr=expr
10086 else
10087 as_expr=false
10090 rm -f conf$$ conf$$.exe conf$$.file
10091 if test -d conf$$.dir; then
10092 rm -f conf$$.dir/conf$$.file
10093 else
10094 rm -f conf$$.dir
10095 mkdir conf$$.dir
10097 echo >conf$$.file
10098 if ln -s conf$$.file conf$$ 2>/dev/null; then
10099 as_ln_s='ln -s'
10100 # ... but there are two gotchas:
10101 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10102 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10103 # In both cases, we have to default to `cp -p'.
10104 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10105 as_ln_s='cp -p'
10106 elif ln conf$$.file conf$$ 2>/dev/null; then
10107 as_ln_s=ln
10108 else
10109 as_ln_s='cp -p'
10111 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10112 rmdir conf$$.dir 2>/dev/null
10114 if mkdir -p . 2>/dev/null; then
10115 as_mkdir_p=:
10116 else
10117 test -d ./-p && rmdir ./-p
10118 as_mkdir_p=false
10121 if test -x / >/dev/null 2>&1; then
10122 as_test_x='test -x'
10123 else
10124 if ls -dL / >/dev/null 2>&1; then
10125 as_ls_L_option=L
10126 else
10127 as_ls_L_option=
10129 as_test_x='
10130 eval sh -c '\''
10131 if test -d "$1"; then
10132 test -d "$1/.";
10133 else
10134 case $1 in
10135 -*)set "./$1";;
10136 esac;
10137 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10138 ???[sx]*):;;*)false;;esac;fi
10139 '\'' sh
10142 as_executable_p=$as_test_x
10144 # Sed expression to map a string onto a valid CPP name.
10145 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10147 # Sed expression to map a string onto a valid variable name.
10148 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10151 exec 6>&1
10153 # Save the log message, to keep $[0] and so on meaningful, and to
10154 # report actual input values of CONFIG_FILES etc. instead of their
10155 # values after options handling.
10156 ac_log="
10157 This file was extended by $as_me, which was
10158 generated by GNU Autoconf 2.61. Invocation command line was
10160 CONFIG_FILES = $CONFIG_FILES
10161 CONFIG_HEADERS = $CONFIG_HEADERS
10162 CONFIG_LINKS = $CONFIG_LINKS
10163 CONFIG_COMMANDS = $CONFIG_COMMANDS
10164 $ $0 $@
10166 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10169 _ACEOF
10171 cat >>$CONFIG_STATUS <<_ACEOF
10172 # Files that config.status was made for.
10173 config_files="$ac_config_files"
10174 config_headers="$ac_config_headers"
10176 _ACEOF
10178 cat >>$CONFIG_STATUS <<\_ACEOF
10179 ac_cs_usage="\
10180 \`$as_me' instantiates files from templates according to the
10181 current configuration.
10183 Usage: $0 [OPTIONS] [FILE]...
10185 -h, --help print this help, then exit
10186 -V, --version print version number and configuration settings, then exit
10187 -q, --quiet do not print progress messages
10188 -d, --debug don't remove temporary files
10189 --recheck update $as_me by reconfiguring in the same conditions
10190 --file=FILE[:TEMPLATE]
10191 instantiate the configuration file FILE
10192 --header=FILE[:TEMPLATE]
10193 instantiate the configuration header FILE
10195 Configuration files:
10196 $config_files
10198 Configuration headers:
10199 $config_headers
10201 Report bugs to <bug-autoconf@gnu.org>."
10203 _ACEOF
10204 cat >>$CONFIG_STATUS <<_ACEOF
10205 ac_cs_version="\\
10206 config.status
10207 configured by $0, generated by GNU Autoconf 2.61,
10208 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10210 Copyright (C) 2006 Free Software Foundation, Inc.
10211 This config.status script is free software; the Free Software Foundation
10212 gives unlimited permission to copy, distribute and modify it."
10214 ac_pwd='$ac_pwd'
10215 srcdir='$srcdir'
10216 INSTALL='$INSTALL'
10217 _ACEOF
10219 cat >>$CONFIG_STATUS <<\_ACEOF
10220 # If no file are specified by the user, then we need to provide default
10221 # value. By we need to know if files were specified by the user.
10222 ac_need_defaults=:
10223 while test $# != 0
10225 case $1 in
10226 --*=*)
10227 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10228 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10229 ac_shift=:
10232 ac_option=$1
10233 ac_optarg=$2
10234 ac_shift=shift
10236 esac
10238 case $ac_option in
10239 # Handling of the options.
10240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10241 ac_cs_recheck=: ;;
10242 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10243 echo "$ac_cs_version"; exit ;;
10244 --debug | --debu | --deb | --de | --d | -d )
10245 debug=: ;;
10246 --file | --fil | --fi | --f )
10247 $ac_shift
10248 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10249 ac_need_defaults=false;;
10250 --header | --heade | --head | --hea )
10251 $ac_shift
10252 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10253 ac_need_defaults=false;;
10254 --he | --h)
10255 # Conflict between --help and --header
10256 { echo "$as_me: error: ambiguous option: $1
10257 Try \`$0 --help' for more information." >&2
10258 { (exit 1); exit 1; }; };;
10259 --help | --hel | -h )
10260 echo "$ac_cs_usage"; exit ;;
10261 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10262 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10263 ac_cs_silent=: ;;
10265 # This is an error.
10266 -*) { echo "$as_me: error: unrecognized option: $1
10267 Try \`$0 --help' for more information." >&2
10268 { (exit 1); exit 1; }; } ;;
10270 *) ac_config_targets="$ac_config_targets $1"
10271 ac_need_defaults=false ;;
10273 esac
10274 shift
10275 done
10277 ac_configure_extra_args=
10279 if $ac_cs_silent; then
10280 exec 6>/dev/null
10281 ac_configure_extra_args="$ac_configure_extra_args --silent"
10284 _ACEOF
10285 cat >>$CONFIG_STATUS <<_ACEOF
10286 if \$ac_cs_recheck; then
10287 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10288 CONFIG_SHELL=$SHELL
10289 export CONFIG_SHELL
10290 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10293 _ACEOF
10294 cat >>$CONFIG_STATUS <<\_ACEOF
10295 exec 5>>config.log
10297 echo
10298 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10299 ## Running $as_me. ##
10300 _ASBOX
10301 echo "$ac_log"
10302 } >&5
10304 _ACEOF
10305 cat >>$CONFIG_STATUS <<_ACEOF
10306 _ACEOF
10308 cat >>$CONFIG_STATUS <<\_ACEOF
10310 # Handling of arguments.
10311 for ac_config_target in $ac_config_targets
10313 case $ac_config_target in
10314 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10315 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10317 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10318 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10319 { (exit 1); exit 1; }; };;
10320 esac
10321 done
10324 # If the user did not use the arguments to specify the items to instantiate,
10325 # then the envvar interface is used. Set only those that are not.
10326 # We use the long form for the default assignment because of an extremely
10327 # bizarre bug on SunOS 4.1.3.
10328 if $ac_need_defaults; then
10329 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10330 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10333 # Have a temporary directory for convenience. Make it in the build tree
10334 # simply because there is no reason against having it here, and in addition,
10335 # creating and moving files from /tmp can sometimes cause problems.
10336 # Hook for its removal unless debugging.
10337 # Note that there is a small window in which the directory will not be cleaned:
10338 # after its creation but before its name has been assigned to `$tmp'.
10339 $debug ||
10341 tmp=
10342 trap 'exit_status=$?
10343 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10345 trap '{ (exit 1); exit 1; }' 1 2 13 15
10347 # Create a (secure) tmp directory for tmp files.
10350 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10351 test -n "$tmp" && test -d "$tmp"
10352 } ||
10354 tmp=./conf$$-$RANDOM
10355 (umask 077 && mkdir "$tmp")
10356 } ||
10358 echo "$me: cannot create a temporary directory in ." >&2
10359 { (exit 1); exit 1; }
10363 # Set up the sed scripts for CONFIG_FILES section.
10366 # No need to generate the scripts if there are no CONFIG_FILES.
10367 # This happens for instance when ./config.status config.h
10368 if test -n "$CONFIG_FILES"; then
10370 _ACEOF
10374 ac_delim='%!_!# '
10375 for ac_last_try in false false false false false :; do
10376 cat >conf$$subs.sed <<_ACEOF
10377 SHELL!$SHELL$ac_delim
10378 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
10379 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
10380 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
10381 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
10382 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
10383 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
10384 exec_prefix!$exec_prefix$ac_delim
10385 prefix!$prefix$ac_delim
10386 program_transform_name!$program_transform_name$ac_delim
10387 bindir!$bindir$ac_delim
10388 sbindir!$sbindir$ac_delim
10389 libexecdir!$libexecdir$ac_delim
10390 datarootdir!$datarootdir$ac_delim
10391 datadir!$datadir$ac_delim
10392 sysconfdir!$sysconfdir$ac_delim
10393 sharedstatedir!$sharedstatedir$ac_delim
10394 localstatedir!$localstatedir$ac_delim
10395 includedir!$includedir$ac_delim
10396 oldincludedir!$oldincludedir$ac_delim
10397 docdir!$docdir$ac_delim
10398 infodir!$infodir$ac_delim
10399 htmldir!$htmldir$ac_delim
10400 dvidir!$dvidir$ac_delim
10401 pdfdir!$pdfdir$ac_delim
10402 psdir!$psdir$ac_delim
10403 libdir!$libdir$ac_delim
10404 localedir!$localedir$ac_delim
10405 mandir!$mandir$ac_delim
10406 DEFS!$DEFS$ac_delim
10407 ECHO_C!$ECHO_C$ac_delim
10408 ECHO_N!$ECHO_N$ac_delim
10409 ECHO_T!$ECHO_T$ac_delim
10410 LIBS!$LIBS$ac_delim
10411 build_alias!$build_alias$ac_delim
10412 host_alias!$host_alias$ac_delim
10413 target_alias!$target_alias$ac_delim
10414 build!$build$ac_delim
10415 build_cpu!$build_cpu$ac_delim
10416 build_vendor!$build_vendor$ac_delim
10417 build_os!$build_os$ac_delim
10418 host!$host$ac_delim
10419 host_cpu!$host_cpu$ac_delim
10420 host_vendor!$host_vendor$ac_delim
10421 host_os!$host_os$ac_delim
10422 SHARED!$SHARED$ac_delim
10423 CC!$CC$ac_delim
10424 CFLAGS!$CFLAGS$ac_delim
10425 LDFLAGS!$LDFLAGS$ac_delim
10426 CPPFLAGS!$CPPFLAGS$ac_delim
10427 ac_ct_CC!$ac_ct_CC$ac_delim
10428 EXEEXT!$EXEEXT$ac_delim
10429 OBJEXT!$OBJEXT$ac_delim
10430 CXX!$CXX$ac_delim
10431 CXXFLAGS!$CXXFLAGS$ac_delim
10432 ac_ct_CXX!$ac_ct_CXX$ac_delim
10433 CPP!$CPP$ac_delim
10434 RANLIB!$RANLIB$ac_delim
10435 SET_MAKE!$SET_MAKE$ac_delim
10436 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
10437 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
10438 INSTALL_DATA!$INSTALL_DATA$ac_delim
10439 LN_S!$LN_S$ac_delim
10440 UNCOMPRESS!$UNCOMPRESS$ac_delim
10441 AREXT!$AREXT$ac_delim
10442 AR!$AR$ac_delim
10443 SLEXT!$SLEXT$ac_delim
10444 CXXLIBS!$CXXLIBS$ac_delim
10445 STRIP!$STRIP$ac_delim
10446 target!$target$ac_delim
10447 target_cpu!$target_cpu$ac_delim
10448 target_vendor!$target_vendor$ac_delim
10449 target_os!$target_os$ac_delim
10450 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
10451 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
10452 GREP!$GREP$ac_delim
10453 EGREP!$EGREP$ac_delim
10454 PACKAGE!$PACKAGE$ac_delim
10455 VERSION!$VERSION$ac_delim
10456 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
10457 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
10458 lame_objects!$lame_objects$ac_delim
10459 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
10460 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
10461 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
10462 USE_GZIP!$USE_GZIP$ac_delim
10463 PYTHON_LIB!$PYTHON_LIB$ac_delim
10464 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
10465 PDF2SWF!$PDF2SWF$ac_delim
10466 LIBPDF!$LIBPDF$ac_delim
10467 JPEG2SWF!$JPEG2SWF$ac_delim
10468 GIF2SWF!$GIF2SWF$ac_delim
10469 PNG2SWF!$PNG2SWF$ac_delim
10470 LIBOBJS!$LIBOBJS$ac_delim
10471 LTLIBOBJS!$LTLIBOBJS$ac_delim
10472 _ACEOF
10474 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 95; then
10475 break
10476 elif $ac_last_try; then
10477 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
10478 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
10479 { (exit 1); exit 1; }; }
10480 else
10481 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10483 done
10485 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
10486 if test -n "$ac_eof"; then
10487 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
10488 ac_eof=`expr $ac_eof + 1`
10491 cat >>$CONFIG_STATUS <<_ACEOF
10492 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
10493 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
10494 _ACEOF
10495 sed '
10496 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
10497 s/^/s,@/; s/!/@,|#_!!_#|/
10500 s/'"$ac_delim"'$/,g/; t
10501 s/$/\\/; p
10502 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
10503 ' >>$CONFIG_STATUS <conf$$subs.sed
10504 rm -f conf$$subs.sed
10505 cat >>$CONFIG_STATUS <<_ACEOF
10506 :end
10507 s/|#_!!_#|//g
10508 CEOF$ac_eof
10509 _ACEOF
10512 # VPATH may cause trouble with some makes, so we remove $(srcdir),
10513 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
10514 # trailing colons and then remove the whole line if VPATH becomes empty
10515 # (actually we leave an empty line to preserve line numbers).
10516 if test "x$srcdir" = x.; then
10517 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10518 s/:*\$(srcdir):*/:/
10519 s/:*\${srcdir}:*/:/
10520 s/:*@srcdir@:*/:/
10521 s/^\([^=]*=[ ]*\):*/\1/
10522 s/:*$//
10523 s/^[^=]*=[ ]*$//
10527 cat >>$CONFIG_STATUS <<\_ACEOF
10528 fi # test -n "$CONFIG_FILES"
10531 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
10533 case $ac_tag in
10534 :[FHLC]) ac_mode=$ac_tag; continue;;
10535 esac
10536 case $ac_mode$ac_tag in
10537 :[FHL]*:*);;
10538 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
10539 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
10540 { (exit 1); exit 1; }; };;
10541 :[FH]-) ac_tag=-:-;;
10542 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10543 esac
10544 ac_save_IFS=$IFS
10545 IFS=:
10546 set x $ac_tag
10547 IFS=$ac_save_IFS
10548 shift
10549 ac_file=$1
10550 shift
10552 case $ac_mode in
10553 :L) ac_source=$1;;
10554 :[FH])
10555 ac_file_inputs=
10556 for ac_f
10558 case $ac_f in
10559 -) ac_f="$tmp/stdin";;
10560 *) # Look for the file first in the build tree, then in the source tree
10561 # (if the path is not absolute). The absolute path cannot be DOS-style,
10562 # because $ac_f cannot contain `:'.
10563 test -f "$ac_f" ||
10564 case $ac_f in
10565 [\\/$]*) false;;
10566 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
10567 esac ||
10568 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
10569 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
10570 { (exit 1); exit 1; }; };;
10571 esac
10572 ac_file_inputs="$ac_file_inputs $ac_f"
10573 done
10575 # Let's still pretend it is `configure' which instantiates (i.e., don't
10576 # use $as_me), people would be surprised to read:
10577 # /* config.h. Generated by config.status. */
10578 configure_input="Generated from "`IFS=:
10579 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
10580 if test x"$ac_file" != x-; then
10581 configure_input="$ac_file. $configure_input"
10582 { echo "$as_me:$LINENO: creating $ac_file" >&5
10583 echo "$as_me: creating $ac_file" >&6;}
10586 case $ac_tag in
10587 *:-:* | *:-) cat >"$tmp/stdin";;
10588 esac
10590 esac
10592 ac_dir=`$as_dirname -- "$ac_file" ||
10593 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10594 X"$ac_file" : 'X\(//\)[^/]' \| \
10595 X"$ac_file" : 'X\(//\)$' \| \
10596 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10597 echo X"$ac_file" |
10598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10599 s//\1/
10602 /^X\(\/\/\)[^/].*/{
10603 s//\1/
10606 /^X\(\/\/\)$/{
10607 s//\1/
10610 /^X\(\/\).*/{
10611 s//\1/
10614 s/.*/./; q'`
10615 { as_dir="$ac_dir"
10616 case $as_dir in #(
10617 -*) as_dir=./$as_dir;;
10618 esac
10619 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10620 as_dirs=
10621 while :; do
10622 case $as_dir in #(
10623 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10624 *) as_qdir=$as_dir;;
10625 esac
10626 as_dirs="'$as_qdir' $as_dirs"
10627 as_dir=`$as_dirname -- "$as_dir" ||
10628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10629 X"$as_dir" : 'X\(//\)[^/]' \| \
10630 X"$as_dir" : 'X\(//\)$' \| \
10631 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10632 echo X"$as_dir" |
10633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10634 s//\1/
10637 /^X\(\/\/\)[^/].*/{
10638 s//\1/
10641 /^X\(\/\/\)$/{
10642 s//\1/
10645 /^X\(\/\).*/{
10646 s//\1/
10649 s/.*/./; q'`
10650 test -d "$as_dir" && break
10651 done
10652 test -z "$as_dirs" || eval "mkdir $as_dirs"
10653 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10654 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10655 { (exit 1); exit 1; }; }; }
10656 ac_builddir=.
10658 case "$ac_dir" in
10659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
10661 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10662 # A ".." for each directory in $ac_dir_suffix.
10663 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
10664 case $ac_top_builddir_sub in
10665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
10666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
10667 esac ;;
10668 esac
10669 ac_abs_top_builddir=$ac_pwd
10670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
10671 # for backward compatibility:
10672 ac_top_builddir=$ac_top_build_prefix
10674 case $srcdir in
10675 .) # We are building in place.
10676 ac_srcdir=.
10677 ac_top_srcdir=$ac_top_builddir_sub
10678 ac_abs_top_srcdir=$ac_pwd ;;
10679 [\\/]* | ?:[\\/]* ) # Absolute name.
10680 ac_srcdir=$srcdir$ac_dir_suffix;
10681 ac_top_srcdir=$srcdir
10682 ac_abs_top_srcdir=$srcdir ;;
10683 *) # Relative name.
10684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
10685 ac_top_srcdir=$ac_top_build_prefix$srcdir
10686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
10687 esac
10688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
10691 case $ac_mode in
10694 # CONFIG_FILE
10697 case $INSTALL in
10698 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10699 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
10700 esac
10701 _ACEOF
10703 cat >>$CONFIG_STATUS <<\_ACEOF
10704 # If the template does not know about datarootdir, expand it.
10705 # FIXME: This hack should be removed a few years after 2.60.
10706 ac_datarootdir_hack=; ac_datarootdir_seen=
10708 case `sed -n '/datarootdir/ {
10712 /@datadir@/p
10713 /@docdir@/p
10714 /@infodir@/p
10715 /@localedir@/p
10716 /@mandir@/p
10717 ' $ac_file_inputs` in
10718 *datarootdir*) ac_datarootdir_seen=yes;;
10719 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10720 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10721 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10722 _ACEOF
10723 cat >>$CONFIG_STATUS <<_ACEOF
10724 ac_datarootdir_hack='
10725 s&@datadir@&$datadir&g
10726 s&@docdir@&$docdir&g
10727 s&@infodir@&$infodir&g
10728 s&@localedir@&$localedir&g
10729 s&@mandir@&$mandir&g
10730 s&\\\${datarootdir}&$datarootdir&g' ;;
10731 esac
10732 _ACEOF
10734 # Neutralize VPATH when `$srcdir' = `.'.
10735 # Shell code in configure.ac might set extrasub.
10736 # FIXME: do we really want to maintain this feature?
10737 cat >>$CONFIG_STATUS <<_ACEOF
10738 sed "$ac_vpsub
10739 $extrasub
10740 _ACEOF
10741 cat >>$CONFIG_STATUS <<\_ACEOF
10743 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10744 s&@configure_input@&$configure_input&;t t
10745 s&@top_builddir@&$ac_top_builddir_sub&;t t
10746 s&@srcdir@&$ac_srcdir&;t t
10747 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10748 s&@top_srcdir@&$ac_top_srcdir&;t t
10749 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10750 s&@builddir@&$ac_builddir&;t t
10751 s&@abs_builddir@&$ac_abs_builddir&;t t
10752 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10753 s&@INSTALL@&$ac_INSTALL&;t t
10754 $ac_datarootdir_hack
10755 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
10757 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10758 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
10759 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
10760 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10761 which seems to be undefined. Please make sure it is defined." >&5
10762 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10763 which seems to be undefined. Please make sure it is defined." >&2;}
10765 rm -f "$tmp/stdin"
10766 case $ac_file in
10767 -) cat "$tmp/out"; rm -f "$tmp/out";;
10768 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
10769 esac
10773 # CONFIG_HEADER
10775 _ACEOF
10777 # Transform confdefs.h into a sed script `conftest.defines', that
10778 # substitutes the proper values into config.h.in to produce config.h.
10779 rm -f conftest.defines conftest.tail
10780 # First, append a space to every undef/define line, to ease matching.
10781 echo 's/$/ /' >conftest.defines
10782 # Then, protect against being on the right side of a sed subst, or in
10783 # an unquoted here document, in config.status. If some macros were
10784 # called several times there might be several #defines for the same
10785 # symbol, which is useless. But do not sort them, since the last
10786 # AC_DEFINE must be honored.
10787 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10788 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
10789 # NAME is the cpp macro being defined, VALUE is the value it is being given.
10790 # PARAMS is the parameter list in the macro definition--in most cases, it's
10791 # just an empty string.
10792 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
10793 ac_dB='\\)[ (].*,\\1define\\2'
10794 ac_dC=' '
10795 ac_dD=' ,'
10797 uniq confdefs.h |
10798 sed -n '
10799 t rset
10800 :rset
10801 s/^[ ]*#[ ]*define[ ][ ]*//
10802 t ok
10805 s/[\\&,]/\\&/g
10806 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
10807 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
10808 ' >>conftest.defines
10810 # Remove the space that was appended to ease matching.
10811 # Then replace #undef with comments. This is necessary, for
10812 # example, in the case of _POSIX_SOURCE, which is predefined and required
10813 # on some systems where configure will not decide to define it.
10814 # (The regexp can be short, since the line contains either #define or #undef.)
10815 echo 's/ $//
10816 s,^[ #]*u.*,/* & */,' >>conftest.defines
10818 # Break up conftest.defines:
10819 ac_max_sed_lines=50
10821 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
10822 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
10823 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
10824 # et cetera.
10825 ac_in='$ac_file_inputs'
10826 ac_out='"$tmp/out1"'
10827 ac_nxt='"$tmp/out2"'
10829 while :
10831 # Write a here document:
10832 cat >>$CONFIG_STATUS <<_ACEOF
10833 # First, check the format of the line:
10834 cat >"\$tmp/defines.sed" <<\\CEOF
10835 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
10836 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
10838 :def
10839 _ACEOF
10840 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
10841 echo 'CEOF
10842 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
10843 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
10844 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
10845 grep . conftest.tail >/dev/null || break
10846 rm -f conftest.defines
10847 mv conftest.tail conftest.defines
10848 done
10849 rm -f conftest.defines conftest.tail
10851 echo "ac_result=$ac_in" >>$CONFIG_STATUS
10852 cat >>$CONFIG_STATUS <<\_ACEOF
10853 if test x"$ac_file" != x-; then
10854 echo "/* $configure_input */" >"$tmp/config.h"
10855 cat "$ac_result" >>"$tmp/config.h"
10856 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
10857 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10858 echo "$as_me: $ac_file is unchanged" >&6;}
10859 else
10860 rm -f $ac_file
10861 mv "$tmp/config.h" $ac_file
10863 else
10864 echo "/* $configure_input */"
10865 cat "$ac_result"
10867 rm -f "$tmp/out12"
10871 esac
10873 done # for ac_tag
10876 { (exit 0); exit 0; }
10877 _ACEOF
10878 chmod +x $CONFIG_STATUS
10879 ac_clean_files=$ac_clean_files_save
10882 # configure is writing to config.log, and then calls config.status.
10883 # config.status does its own redirection, appending to config.log.
10884 # Unfortunately, on DOS this fails, as config.log is still kept open
10885 # by configure, so config.status won't be able to write to it; its
10886 # output is simply discarded. So we exec the FD to /dev/null,
10887 # effectively closing config.log, so it can be properly (re)opened and
10888 # appended to by config.status. When coming back to configure, we
10889 # need to make the FD available again.
10890 if test "$no_create" != yes; then
10891 ac_cs_success=:
10892 ac_config_status_args=
10893 test "$silent" = yes &&
10894 ac_config_status_args="$ac_config_status_args --quiet"
10895 exec 5>/dev/null
10896 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10897 exec 5>>config.log
10898 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10899 # would make configure fail if this is the last instruction.
10900 $ac_cs_success || { (exit 1); exit 1; }
10906 # On development trees, create snapshots of config.status
10908 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
10909 if test "x${MINGW}" = "xyes"; then
10910 echo cp config.status config.status.win32
10911 cp config.status config.status.win32
10912 else
10913 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
10914 echo cp config.status config.status.linux
10915 cp config.status config.status.linux
10917 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
10918 echo cp config.status config.status.debug
10919 cp config.status config.status.debug
10921 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
10922 echo cp config.status config.status.optimize
10923 cp config.status config.status.optimize