changed an error to a warning
[swftools.git] / configure
blob7e03d9c711a7930dbdab77b622ae47039e56dc05
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
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 as_nl='
42 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
89 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl"
96 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH
102 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done
106 IFS=$as_save_IFS
109 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
113 as_myself=$0
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138 else
139 as_expr=false
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144 else
145 as_basename=false
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
159 /^X\/\(\/\/\)$/{
160 s//\1/
163 /^X\/\(\/\).*/{
164 s//\1/
167 s/.*/./; q'`
169 # CDPATH.
170 $as_unset CDPATH
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
175 as_have_required=yes
176 else
177 as_have_required=no
180 if test $as_have_required = yes && (eval ":
181 (as_func_return () {
182 (exit \$1)
184 as_func_success () {
185 as_func_return 0
187 as_func_failure () {
188 as_func_return 1
190 as_func_ret_success () {
191 return 0
193 as_func_ret_failure () {
194 return 1
197 exitcode=0
198 if as_func_success; then
200 else
201 exitcode=1
202 echo as_func_success failed.
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 else
225 exitcode=1
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
296 (as_func_return () {
297 (exit $1)
299 as_func_success () {
300 as_func_return 0
302 as_func_failure () {
303 as_func_return 1
305 as_func_ret_success () {
306 return 0
308 as_func_ret_failure () {
309 return 1
312 exitcode=0
313 if as_func_success; then
315 else
316 exitcode=1
317 echo as_func_success failed.
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 else
340 exitcode=1
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352 _ASEOF
353 }; then
354 break
359 done
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
386 (exit \$1)
388 as_func_success () {
389 as_func_return 0
391 as_func_failure () {
392 as_func_return 1
394 as_func_ret_success () {
395 return 0
397 as_func_ret_failure () {
398 return 1
401 exitcode=0
402 if as_func_success; then
404 else
405 exitcode=1
406 echo as_func_success failed.
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 else
429 exitcode=1
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n '
460 /[$]LINENO/=
461 ' <$as_myself |
462 sed '
463 s/[$]LINENO.*/&-/
464 t lineno
466 :lineno
468 :loop
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop
471 s/-\n.*//
472 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno"
481 # Exit status is that of the last command.
482 exit
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
492 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in
494 -n*)
495 case `echo 'x\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';;
498 esac;;
500 ECHO_N='-n';;
501 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
512 else
513 rm -f conf$$.dir
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
518 as_ln_s='ln -s'
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
524 as_ln_s='cp -p'
525 elif ln conf$$.file conf$$ 2>/dev/null; then
526 as_ln_s=ln
527 else
528 as_ln_s='cp -p'
530 else
531 as_ln_s='cp -p'
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=:
538 else
539 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false
543 if test -x / >/dev/null 2>&1; then
544 as_test_x='test -x'
545 else
546 if ls -dL / >/dev/null 2>&1; then
547 as_ls_L_option=L
548 else
549 as_ls_L_option=
551 as_test_x='
552 eval sh -c '\''
553 if test -d "$1"; then
554 test -d "$1/.";
555 else
556 case $1 in
557 -*)set "./$1";;
558 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
576 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582 # Initializations.
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
595 PACKAGE_NAME=
596 PACKAGE_TARNAME=
597 PACKAGE_VERSION=
598 PACKAGE_STRING=
599 PACKAGE_BUGREPORT=
601 ac_unique_file="src/"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
638 ac_subst_vars='LTLIBOBJS
639 LIBOBJS
640 PNG2SWF
641 GIF2SWF
642 JPEG2SWF
643 PDF2PDF
644 DEVICE_PDF
645 LIBPDF
646 PDF2SWF
647 RUBY_INSTALLDIR
648 RUBY_LDFLAGS
649 RUBY_CPPFLAGS
650 RUBY_LIBS
651 RUBY
652 HAVE_PYTHON_IMAGING
653 PYTHON_INCLUDES
654 PYTHON_LIB
655 USE_GZIP
656 VIDEO_CFLAGS
657 VIDEO_LIBS
658 AVIFILE_CONFIG
659 splash_in_source
660 xpdf_in_source
661 lame_in_source
662 DEVICE_OPENGL
663 FREETYPE_CONFIG
664 HAVE_UNISTD_H
665 VERSION
666 PACKAGE
667 EGREP
668 GREP
669 SYSTEM_BACKTICKS
670 WORDS_BIGENDIAN
671 target_os
672 target_vendor
673 target_cpu
674 target
675 STRIP
676 CXXLIBS
677 SLEXT
679 AREXT
680 UNCOMPRESS
681 LN_S
682 INSTALL_DATA
683 INSTALL_SCRIPT
684 INSTALL_PROGRAM
685 SET_MAKE
686 RANLIB
688 ac_ct_CXX
689 CXXFLAGS
691 OBJEXT
692 EXEEXT
693 ac_ct_CC
694 CPPFLAGS
695 LDFLAGS
696 CFLAGS
698 SHARED
699 host_os
700 host_vendor
701 host_cpu
702 host
703 build_os
704 build_vendor
705 build_cpu
706 build
707 target_alias
708 host_alias
709 build_alias
710 LIBS
711 ECHO_T
712 ECHO_N
713 ECHO_C
714 DEFS
715 mandir
716 localedir
717 libdir
718 psdir
719 pdfdir
720 dvidir
721 htmldir
722 infodir
723 docdir
724 oldincludedir
725 includedir
726 localstatedir
727 sharedstatedir
728 sysconfdir
729 datadir
730 datarootdir
731 libexecdir
732 sbindir
733 bindir
734 program_transform_name
735 prefix
736 exec_prefix
737 PACKAGE_BUGREPORT
738 PACKAGE_STRING
739 PACKAGE_VERSION
740 PACKAGE_TARNAME
741 PACKAGE_NAME
742 PATH_SEPARATOR
743 SHELL'
744 ac_subst_files=''
745 ac_user_opts='
746 enable_option_checking
747 enable_checkmem
748 enable_debug
749 enable_profiling
750 enable_warnings
751 enable_optimizations
752 enable_lame
754 ac_precious_vars='build_alias
755 host_alias
756 target_alias
758 CFLAGS
759 LDFLAGS
760 LIBS
761 CPPFLAGS
763 CXXFLAGS
765 CPP'
768 # Initialize some variables set by options.
769 ac_init_help=
770 ac_init_version=false
771 ac_unrecognized_opts=
772 ac_unrecognized_sep=
773 # The variables have the same names as the options, with
774 # dashes changed to underlines.
775 cache_file=/dev/null
776 exec_prefix=NONE
777 no_create=
778 no_recursion=
779 prefix=NONE
780 program_prefix=NONE
781 program_suffix=NONE
782 program_transform_name=s,x,x,
783 silent=
784 site=
785 srcdir=
786 verbose=
787 x_includes=NONE
788 x_libraries=NONE
790 # Installation directory options.
791 # These are left unexpanded so users can "make install exec_prefix=/foo"
792 # and all the variables that are supposed to be based on exec_prefix
793 # by default will actually change.
794 # Use braces instead of parens because sh, perl, etc. also accept them.
795 # (The list follows the same order as the GNU Coding Standards.)
796 bindir='${exec_prefix}/bin'
797 sbindir='${exec_prefix}/sbin'
798 libexecdir='${exec_prefix}/libexec'
799 datarootdir='${prefix}/share'
800 datadir='${datarootdir}'
801 sysconfdir='${prefix}/etc'
802 sharedstatedir='${prefix}/com'
803 localstatedir='${prefix}/var'
804 includedir='${prefix}/include'
805 oldincludedir='/usr/include'
806 docdir='${datarootdir}/doc/${PACKAGE}'
807 infodir='${datarootdir}/info'
808 htmldir='${docdir}'
809 dvidir='${docdir}'
810 pdfdir='${docdir}'
811 psdir='${docdir}'
812 libdir='${exec_prefix}/lib'
813 localedir='${datarootdir}/locale'
814 mandir='${datarootdir}/man'
816 ac_prev=
817 ac_dashdash=
818 for ac_option
820 # If the previous option needs an argument, assign it.
821 if test -n "$ac_prev"; then
822 eval $ac_prev=\$ac_option
823 ac_prev=
824 continue
827 case $ac_option in
828 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
829 *) ac_optarg=yes ;;
830 esac
832 # Accept the important Cygnus configure options, so we can diagnose typos.
834 case $ac_dashdash$ac_option in
836 ac_dashdash=yes ;;
838 -bindir | --bindir | --bindi | --bind | --bin | --bi)
839 ac_prev=bindir ;;
840 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
841 bindir=$ac_optarg ;;
843 -build | --build | --buil | --bui | --bu)
844 ac_prev=build_alias ;;
845 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
846 build_alias=$ac_optarg ;;
848 -cache-file | --cache-file | --cache-fil | --cache-fi \
849 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
850 ac_prev=cache_file ;;
851 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
852 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
853 cache_file=$ac_optarg ;;
855 --config-cache | -C)
856 cache_file=config.cache ;;
858 -datadir | --datadir | --datadi | --datad)
859 ac_prev=datadir ;;
860 -datadir=* | --datadir=* | --datadi=* | --datad=*)
861 datadir=$ac_optarg ;;
863 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
864 | --dataroo | --dataro | --datar)
865 ac_prev=datarootdir ;;
866 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
867 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
868 datarootdir=$ac_optarg ;;
870 -disable-* | --disable-*)
871 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
874 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
875 { (exit 1); exit 1; }; }
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
880 "enable_$ac_useropt"
881 "*) ;;
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
884 esac
885 eval enable_$ac_useropt=no ;;
887 -docdir | --docdir | --docdi | --doc | --do)
888 ac_prev=docdir ;;
889 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
890 docdir=$ac_optarg ;;
892 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 ac_prev=dvidir ;;
894 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
895 dvidir=$ac_optarg ;;
897 -enable-* | --enable-*)
898 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
899 # Reject names that are not valid shell variable names.
900 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
901 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
902 { (exit 1); exit 1; }; }
903 ac_useropt_orig=$ac_useropt
904 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
905 case $ac_user_opts in
907 "enable_$ac_useropt"
908 "*) ;;
909 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
910 ac_unrecognized_sep=', ';;
911 esac
912 eval enable_$ac_useropt=\$ac_optarg ;;
914 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
915 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
916 | --exec | --exe | --ex)
917 ac_prev=exec_prefix ;;
918 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
919 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
920 | --exec=* | --exe=* | --ex=*)
921 exec_prefix=$ac_optarg ;;
923 -gas | --gas | --ga | --g)
924 # Obsolete; use --with-gas.
925 with_gas=yes ;;
927 -help | --help | --hel | --he | -h)
928 ac_init_help=long ;;
929 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
930 ac_init_help=recursive ;;
931 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
932 ac_init_help=short ;;
934 -host | --host | --hos | --ho)
935 ac_prev=host_alias ;;
936 -host=* | --host=* | --hos=* | --ho=*)
937 host_alias=$ac_optarg ;;
939 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940 ac_prev=htmldir ;;
941 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942 | --ht=*)
943 htmldir=$ac_optarg ;;
945 -includedir | --includedir | --includedi | --included | --include \
946 | --includ | --inclu | --incl | --inc)
947 ac_prev=includedir ;;
948 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
949 | --includ=* | --inclu=* | --incl=* | --inc=*)
950 includedir=$ac_optarg ;;
952 -infodir | --infodir | --infodi | --infod | --info | --inf)
953 ac_prev=infodir ;;
954 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
955 infodir=$ac_optarg ;;
957 -libdir | --libdir | --libdi | --libd)
958 ac_prev=libdir ;;
959 -libdir=* | --libdir=* | --libdi=* | --libd=*)
960 libdir=$ac_optarg ;;
962 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
963 | --libexe | --libex | --libe)
964 ac_prev=libexecdir ;;
965 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
966 | --libexe=* | --libex=* | --libe=*)
967 libexecdir=$ac_optarg ;;
969 -localedir | --localedir | --localedi | --localed | --locale)
970 ac_prev=localedir ;;
971 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
972 localedir=$ac_optarg ;;
974 -localstatedir | --localstatedir | --localstatedi | --localstated \
975 | --localstate | --localstat | --localsta | --localst | --locals)
976 ac_prev=localstatedir ;;
977 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
978 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
979 localstatedir=$ac_optarg ;;
981 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982 ac_prev=mandir ;;
983 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
984 mandir=$ac_optarg ;;
986 -nfp | --nfp | --nf)
987 # Obsolete; use --without-fp.
988 with_fp=no ;;
990 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
991 | --no-cr | --no-c | -n)
992 no_create=yes ;;
994 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
995 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
996 no_recursion=yes ;;
998 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
999 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1000 | --oldin | --oldi | --old | --ol | --o)
1001 ac_prev=oldincludedir ;;
1002 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1003 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1004 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1005 oldincludedir=$ac_optarg ;;
1007 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008 ac_prev=prefix ;;
1009 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1010 prefix=$ac_optarg ;;
1012 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1013 | --program-pre | --program-pr | --program-p)
1014 ac_prev=program_prefix ;;
1015 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1016 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1017 program_prefix=$ac_optarg ;;
1019 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1020 | --program-suf | --program-su | --program-s)
1021 ac_prev=program_suffix ;;
1022 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1023 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1024 program_suffix=$ac_optarg ;;
1026 -program-transform-name | --program-transform-name \
1027 | --program-transform-nam | --program-transform-na \
1028 | --program-transform-n | --program-transform- \
1029 | --program-transform | --program-transfor \
1030 | --program-transfo | --program-transf \
1031 | --program-trans | --program-tran \
1032 | --progr-tra | --program-tr | --program-t)
1033 ac_prev=program_transform_name ;;
1034 -program-transform-name=* | --program-transform-name=* \
1035 | --program-transform-nam=* | --program-transform-na=* \
1036 | --program-transform-n=* | --program-transform-=* \
1037 | --program-transform=* | --program-transfor=* \
1038 | --program-transfo=* | --program-transf=* \
1039 | --program-trans=* | --program-tran=* \
1040 | --progr-tra=* | --program-tr=* | --program-t=*)
1041 program_transform_name=$ac_optarg ;;
1043 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044 ac_prev=pdfdir ;;
1045 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1046 pdfdir=$ac_optarg ;;
1048 -psdir | --psdir | --psdi | --psd | --ps)
1049 ac_prev=psdir ;;
1050 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1051 psdir=$ac_optarg ;;
1053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1054 | -silent | --silent | --silen | --sile | --sil)
1055 silent=yes ;;
1057 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058 ac_prev=sbindir ;;
1059 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060 | --sbi=* | --sb=*)
1061 sbindir=$ac_optarg ;;
1063 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1064 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1065 | --sharedst | --shareds | --shared | --share | --shar \
1066 | --sha | --sh)
1067 ac_prev=sharedstatedir ;;
1068 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1069 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1070 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071 | --sha=* | --sh=*)
1072 sharedstatedir=$ac_optarg ;;
1074 -site | --site | --sit)
1075 ac_prev=site ;;
1076 -site=* | --site=* | --sit=*)
1077 site=$ac_optarg ;;
1079 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080 ac_prev=srcdir ;;
1081 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1082 srcdir=$ac_optarg ;;
1084 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1085 | --syscon | --sysco | --sysc | --sys | --sy)
1086 ac_prev=sysconfdir ;;
1087 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1088 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1089 sysconfdir=$ac_optarg ;;
1091 -target | --target | --targe | --targ | --tar | --ta | --t)
1092 ac_prev=target_alias ;;
1093 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1094 target_alias=$ac_optarg ;;
1096 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1097 verbose=yes ;;
1099 -version | --version | --versio | --versi | --vers | -V)
1100 ac_init_version=: ;;
1102 -with-* | --with-*)
1103 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1106 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1107 { (exit 1); exit 1; }; }
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1112 "with_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval with_$ac_useropt=\$ac_optarg ;;
1119 -without-* | --without-*)
1120 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1121 # Reject names that are not valid shell variable names.
1122 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1124 { (exit 1); exit 1; }; }
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=no ;;
1136 --x)
1137 # Obsolete; use --with-x.
1138 with_x=yes ;;
1140 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1141 | --x-incl | --x-inc | --x-in | --x-i)
1142 ac_prev=x_includes ;;
1143 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1144 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1145 x_includes=$ac_optarg ;;
1147 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1148 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1149 ac_prev=x_libraries ;;
1150 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1151 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1152 x_libraries=$ac_optarg ;;
1154 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1155 Try \`$0 --help' for more information." >&2
1156 { (exit 1); exit 1; }; }
1159 *=*)
1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1163 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1164 { (exit 1); exit 1; }; }
1165 eval $ac_envvar=\$ac_optarg
1166 export $ac_envvar ;;
1169 # FIXME: should be removed in autoconf 3.0.
1170 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1171 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1173 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1176 esac
1177 done
1179 if test -n "$ac_prev"; then
1180 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1181 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1182 { (exit 1); exit 1; }; }
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1187 no) ;;
1188 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1189 { (exit 1); exit 1; }; } ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 esac
1194 # Check all directory arguments for consistency.
1195 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1200 eval ac_val=\$$ac_var
1201 # Remove trailing slashes.
1202 case $ac_val in
1203 */ )
1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\$ac_val;;
1206 esac
1207 # Be sure to have absolute directory names.
1208 case $ac_val in
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 esac
1212 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1213 { (exit 1); exit 1; }; }
1214 done
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1219 build=$build_alias
1220 host=$host_alias
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1228 If a cross compiler is detected then cross compile mode will be used." >&2
1229 elif test "x$build_alias" != "x$host_alias"; then
1230 cross_compiling=yes
1234 ac_tool_prefix=
1235 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1237 test "$silent" = yes && exec 6>/dev/null
1240 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1241 ac_ls_di=`ls -di .` &&
1242 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1243 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1244 { (exit 1); exit 1; }; }
1245 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1246 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1247 { (exit 1); exit 1; }; }
1250 # Find the source files, if location was not specified.
1251 if test -z "$srcdir"; then
1252 ac_srcdir_defaulted=yes
1253 # Try the directory containing this script, then the parent directory.
1254 ac_confdir=`$as_dirname -- "$as_myself" ||
1255 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1256 X"$as_myself" : 'X\(//\)[^/]' \| \
1257 X"$as_myself" : 'X\(//\)$' \| \
1258 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1259 $as_echo X"$as_myself" |
1260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1261 s//\1/
1264 /^X\(\/\/\)[^/].*/{
1265 s//\1/
1268 /^X\(\/\/\)$/{
1269 s//\1/
1272 /^X\(\/\).*/{
1273 s//\1/
1276 s/.*/./; q'`
1277 srcdir=$ac_confdir
1278 if test ! -r "$srcdir/$ac_unique_file"; then
1279 srcdir=..
1281 else
1282 ac_srcdir_defaulted=no
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1286 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1287 { (exit 1); exit 1; }; }
1289 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1292 { (exit 1); exit 1; }; }
1293 pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1312 # Report the --help message.
1314 if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
1318 \`configure' configures this package to adapt to many kinds of systems.
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE. See below for descriptions of some of the useful variables.
1325 Defaults for the options are specified in brackets.
1327 Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
1332 -q, --quiet, --silent do not print \`checking...' messages
1333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1338 Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
1340 [$ac_default_prefix]
1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 [PREFIX]
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1349 For better control, use the options below.
1351 Fine tuning of the installation directories:
1352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
1371 _ACEOF
1373 cat <<\_ACEOF
1375 Program names:
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1380 System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1384 _ACEOF
1387 if test -n "$ac_init_help"; then
1389 cat <<\_ACEOF
1391 Optional Features:
1392 --disable-option-checking ignore unrecognized --enable/--with options
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-checkmem turn on ccmalloc debugging
1396 --enable-debug turn on debugging
1397 --enable-profiling turn on profiling
1398 --enable-warnings turn on compiler warnings
1399 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1400 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1410 CXX C++ compiler command
1411 CXXFLAGS C++ compiler flags
1412 CPP C preprocessor
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1417 _ACEOF
1418 ac_status=$?
1421 if test "$ac_init_help" = "recursive"; then
1422 # If there are subdirs, report their specific --help.
1423 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1424 test -d "$ac_dir" ||
1425 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 continue
1427 ac_builddir=.
1429 case "$ac_dir" in
1430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1432 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1433 # A ".." for each directory in $ac_dir_suffix.
1434 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1435 case $ac_top_builddir_sub in
1436 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1438 esac ;;
1439 esac
1440 ac_abs_top_builddir=$ac_pwd
1441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1442 # for backward compatibility:
1443 ac_top_builddir=$ac_top_build_prefix
1445 case $srcdir in
1446 .) # We are building in place.
1447 ac_srcdir=.
1448 ac_top_srcdir=$ac_top_builddir_sub
1449 ac_abs_top_srcdir=$ac_pwd ;;
1450 [\\/]* | ?:[\\/]* ) # Absolute name.
1451 ac_srcdir=$srcdir$ac_dir_suffix;
1452 ac_top_srcdir=$srcdir
1453 ac_abs_top_srcdir=$srcdir ;;
1454 *) # Relative name.
1455 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1456 ac_top_srcdir=$ac_top_build_prefix$srcdir
1457 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 esac
1459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1461 cd "$ac_dir" || { ac_status=$?; continue; }
1462 # Check for guested configure.
1463 if test -f "$ac_srcdir/configure.gnu"; then
1464 echo &&
1465 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1466 elif test -f "$ac_srcdir/configure"; then
1467 echo &&
1468 $SHELL "$ac_srcdir/configure" --help=recursive
1469 else
1470 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 fi || ac_status=$?
1472 cd "$ac_pwd" || { ac_status=$?; break; }
1473 done
1476 test -n "$ac_init_help" && exit $ac_status
1477 if $ac_init_version; then
1478 cat <<\_ACEOF
1479 configure
1480 generated by GNU Autoconf 2.63
1482 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1483 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1484 This configure script is free software; the Free Software Foundation
1485 gives unlimited permission to copy, distribute and modify it.
1486 _ACEOF
1487 exit
1489 cat >config.log <<_ACEOF
1490 This file contains any messages produced by compilers while
1491 running configure, to aid debugging if configure makes a mistake.
1493 It was created by $as_me, which was
1494 generated by GNU Autoconf 2.63. Invocation command line was
1496 $ $0 $@
1498 _ACEOF
1499 exec 5>>config.log
1501 cat <<_ASUNAME
1502 ## --------- ##
1503 ## Platform. ##
1504 ## --------- ##
1506 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1507 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1508 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1509 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1510 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1512 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1513 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1515 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1516 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1517 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1518 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1519 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1520 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1521 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1523 _ASUNAME
1525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1526 for as_dir in $PATH
1528 IFS=$as_save_IFS
1529 test -z "$as_dir" && as_dir=.
1530 $as_echo "PATH: $as_dir"
1531 done
1532 IFS=$as_save_IFS
1534 } >&5
1536 cat >&5 <<_ACEOF
1539 ## ----------- ##
1540 ## Core tests. ##
1541 ## ----------- ##
1543 _ACEOF
1546 # Keep a trace of the command line.
1547 # Strip out --no-create and --no-recursion so they do not pile up.
1548 # Strip out --silent because we don't want to record it for future runs.
1549 # Also quote any args containing shell meta-characters.
1550 # Make two passes to allow for proper duplicate-argument suppression.
1551 ac_configure_args=
1552 ac_configure_args0=
1553 ac_configure_args1=
1554 ac_must_keep_next=false
1555 for ac_pass in 1 2
1557 for ac_arg
1559 case $ac_arg in
1560 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1562 | -silent | --silent | --silen | --sile | --sil)
1563 continue ;;
1564 *\'*)
1565 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1566 esac
1567 case $ac_pass in
1568 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1570 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1571 if test $ac_must_keep_next = true; then
1572 ac_must_keep_next=false # Got value, back to normal.
1573 else
1574 case $ac_arg in
1575 *=* | --config-cache | -C | -disable-* | --disable-* \
1576 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1577 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1578 | -with-* | --with-* | -without-* | --without-* | --x)
1579 case "$ac_configure_args0 " in
1580 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1581 esac
1583 -* ) ac_must_keep_next=true ;;
1584 esac
1586 ac_configure_args="$ac_configure_args '$ac_arg'"
1588 esac
1589 done
1590 done
1591 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1592 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1594 # When interrupted or exit'd, cleanup temporary files, and complete
1595 # config.log. We remove comments because anyway the quotes in there
1596 # would cause problems or look ugly.
1597 # WARNING: Use '\'' to represent an apostrophe within the trap.
1598 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1599 trap 'exit_status=$?
1600 # Save into config.log some information that might help in debugging.
1602 echo
1604 cat <<\_ASBOX
1605 ## ---------------- ##
1606 ## Cache variables. ##
1607 ## ---------------- ##
1608 _ASBOX
1609 echo
1610 # The following way of writing the cache mishandles newlines in values,
1612 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1613 eval ac_val=\$$ac_var
1614 case $ac_val in #(
1615 *${as_nl}*)
1616 case $ac_var in #(
1617 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1618 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1619 esac
1620 case $ac_var in #(
1621 _ | IFS | as_nl) ;; #(
1622 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1623 *) $as_unset $ac_var ;;
1624 esac ;;
1625 esac
1626 done
1627 (set) 2>&1 |
1628 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1629 *${as_nl}ac_space=\ *)
1630 sed -n \
1631 "s/'\''/'\''\\\\'\'''\''/g;
1632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1633 ;; #(
1635 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1637 esac |
1638 sort
1640 echo
1642 cat <<\_ASBOX
1643 ## ----------------- ##
1644 ## Output variables. ##
1645 ## ----------------- ##
1646 _ASBOX
1647 echo
1648 for ac_var in $ac_subst_vars
1650 eval ac_val=\$$ac_var
1651 case $ac_val in
1652 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1653 esac
1654 $as_echo "$ac_var='\''$ac_val'\''"
1655 done | sort
1656 echo
1658 if test -n "$ac_subst_files"; then
1659 cat <<\_ASBOX
1660 ## ------------------- ##
1661 ## File substitutions. ##
1662 ## ------------------- ##
1663 _ASBOX
1664 echo
1665 for ac_var in $ac_subst_files
1667 eval ac_val=\$$ac_var
1668 case $ac_val in
1669 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1670 esac
1671 $as_echo "$ac_var='\''$ac_val'\''"
1672 done | sort
1673 echo
1676 if test -s confdefs.h; then
1677 cat <<\_ASBOX
1678 ## ----------- ##
1679 ## confdefs.h. ##
1680 ## ----------- ##
1681 _ASBOX
1682 echo
1683 cat confdefs.h
1684 echo
1686 test "$ac_signal" != 0 &&
1687 $as_echo "$as_me: caught signal $ac_signal"
1688 $as_echo "$as_me: exit $exit_status"
1689 } >&5
1690 rm -f core *.core core.conftest.* &&
1691 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1692 exit $exit_status
1694 for ac_signal in 1 2 13 15; do
1695 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1696 done
1697 ac_signal=0
1699 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1700 rm -f -r conftest* confdefs.h
1702 # Predefined preprocessor variables.
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_NAME "$PACKAGE_NAME"
1706 _ACEOF
1709 cat >>confdefs.h <<_ACEOF
1710 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1711 _ACEOF
1714 cat >>confdefs.h <<_ACEOF
1715 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1716 _ACEOF
1719 cat >>confdefs.h <<_ACEOF
1720 #define PACKAGE_STRING "$PACKAGE_STRING"
1721 _ACEOF
1724 cat >>confdefs.h <<_ACEOF
1725 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1726 _ACEOF
1729 # Let the site file select an alternate cache file if it wants to.
1730 # Prefer an explicitly selected file to automatically selected ones.
1731 ac_site_file1=NONE
1732 ac_site_file2=NONE
1733 if test -n "$CONFIG_SITE"; then
1734 ac_site_file1=$CONFIG_SITE
1735 elif test "x$prefix" != xNONE; then
1736 ac_site_file1=$prefix/share/config.site
1737 ac_site_file2=$prefix/etc/config.site
1738 else
1739 ac_site_file1=$ac_default_prefix/share/config.site
1740 ac_site_file2=$ac_default_prefix/etc/config.site
1742 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1744 test "x$ac_site_file" = xNONE && continue
1745 if test -r "$ac_site_file"; then
1746 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1747 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1748 sed 's/^/| /' "$ac_site_file" >&5
1749 . "$ac_site_file"
1751 done
1753 if test -r "$cache_file"; then
1754 # Some versions of bash will fail to source /dev/null (special
1755 # files actually), so we avoid doing that.
1756 if test -f "$cache_file"; then
1757 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1758 $as_echo "$as_me: loading cache $cache_file" >&6;}
1759 case $cache_file in
1760 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1761 *) . "./$cache_file";;
1762 esac
1764 else
1765 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1766 $as_echo "$as_me: creating cache $cache_file" >&6;}
1767 >$cache_file
1770 # Check that the precious variables saved in the cache have kept the same
1771 # value.
1772 ac_cache_corrupted=false
1773 for ac_var in $ac_precious_vars; do
1774 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1775 eval ac_new_set=\$ac_env_${ac_var}_set
1776 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1777 eval ac_new_val=\$ac_env_${ac_var}_value
1778 case $ac_old_set,$ac_new_set in
1779 set,)
1780 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1781 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1782 ac_cache_corrupted=: ;;
1783 ,set)
1784 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1785 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1786 ac_cache_corrupted=: ;;
1787 ,);;
1789 if test "x$ac_old_val" != "x$ac_new_val"; then
1790 # differences in whitespace do not lead to failure.
1791 ac_old_val_w=`echo x $ac_old_val`
1792 ac_new_val_w=`echo x $ac_new_val`
1793 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1794 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1795 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1796 ac_cache_corrupted=:
1797 else
1798 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1799 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1800 eval $ac_var=\$ac_old_val
1802 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1803 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1804 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1805 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1806 fi;;
1807 esac
1808 # Pass precious variables to config.status.
1809 if test "$ac_new_set" = set; then
1810 case $ac_new_val in
1811 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1812 *) ac_arg=$ac_var=$ac_new_val ;;
1813 esac
1814 case " $ac_configure_args " in
1815 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1816 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1817 esac
1819 done
1820 if $ac_cache_corrupted; then
1821 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1823 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1824 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1825 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1826 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1827 { (exit 1); exit 1; }; }
1846 ac_ext=c
1847 ac_cpp='$CPP $CPPFLAGS'
1848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1855 # ------------------- option parsing -------------------------------
1857 DEBUG=
1858 CHECKMEM=
1859 PROFILING=
1860 ENABLE_WARNINGS=
1861 OPTIMIZE=
1862 DISABLE_LAME=
1864 # Check whether --enable-checkmem was given.
1865 if test "${enable_checkmem+set}" = set; then
1866 enableval=$enable_checkmem; CHECKMEM=true
1869 # Check whether --enable-debug was given.
1870 if test "${enable_debug+set}" = set; then
1871 enableval=$enable_debug; DEBUG=true
1874 # Check whether --enable-profiling was given.
1875 if test "${enable_profiling+set}" = set; then
1876 enableval=$enable_profiling; PROFILING=true
1879 # Check whether --enable-warnings was given.
1880 if test "${enable_warnings+set}" = set; then
1881 enableval=$enable_warnings; ENABLE_WARNINGS=true
1884 # Check whether --enable-optimizations was given.
1885 if test "${enable_optimizations+set}" = set; then
1886 enableval=$enable_optimizations; OPTIMIZE=true
1889 # Check whether --enable-lame was given.
1890 if test "${enable_lame+set}" = set; then
1891 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1892 DISABLE_LAME=yes
1894 else
1895 DISABLE_LAME=
1899 PACKAGE=swftools
1900 VERSION=2010-02-06-1900
1902 # ------------------------------------------------------------------
1904 if test "x${srcdir}" != "x."; then
1905 echo "--srcdir is not supported"
1906 exit 1
1909 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings -Wformat"
1910 if test "x$ENABLE_WARNINGS" '!=' "x";then
1911 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
1914 if test "x$CHECKMEM" '!=' "x";then
1915 DEBUG=yes
1917 if test "x$PROFILING" '!=' "x";then
1918 DEBUG=yes
1920 if test "x$DEBUG" '!=' "x";then
1921 if test "x$PROFILING" = "x";then
1922 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1923 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1924 LDFLAGS="-g $LDFLAGS"
1925 else
1926 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1927 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1928 LDFLAGS="-g -pg $LDFLAGS"
1930 else if test "x$OPTIMIZE" '!=' "x"; then
1931 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1932 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1933 else
1934 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1935 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1939 CFLAGS="-fPIC $CFLAGS"
1940 CXXFLAGS="-fPIC $CFLAGS"
1942 #OLDGCC=1
1943 #if test "x$OLDGCC" '!=' "x";then
1944 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1945 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1946 # CFLAGS="$CFLAGS -ansi -pendantic"
1947 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1950 export PACKAGE VERSION CFLAGS CXXFLAGS
1953 ac_aux_dir=
1954 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1955 if test -f "$ac_dir/install-sh"; then
1956 ac_aux_dir=$ac_dir
1957 ac_install_sh="$ac_aux_dir/install-sh -c"
1958 break
1959 elif test -f "$ac_dir/install.sh"; then
1960 ac_aux_dir=$ac_dir
1961 ac_install_sh="$ac_aux_dir/install.sh -c"
1962 break
1963 elif test -f "$ac_dir/shtool"; then
1964 ac_aux_dir=$ac_dir
1965 ac_install_sh="$ac_aux_dir/shtool install -c"
1966 break
1968 done
1969 if test -z "$ac_aux_dir"; then
1970 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1971 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1972 { (exit 1); exit 1; }; }
1975 # These three variables are undocumented and unsupported,
1976 # and are intended to be withdrawn in a future Autoconf release.
1977 # They can cause serious problems if a builder's source tree is in a directory
1978 # whose full name contains unusual characters.
1979 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1980 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1981 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1984 # Make sure we can run config.sub.
1985 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1986 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1987 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1988 { (exit 1); exit 1; }; }
1990 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1991 $as_echo_n "checking build system type... " >&6; }
1992 if test "${ac_cv_build+set}" = set; then
1993 $as_echo_n "(cached) " >&6
1994 else
1995 ac_build_alias=$build_alias
1996 test "x$ac_build_alias" = x &&
1997 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1998 test "x$ac_build_alias" = x &&
1999 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2000 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2001 { (exit 1); exit 1; }; }
2002 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2003 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2004 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2005 { (exit 1); exit 1; }; }
2008 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2009 $as_echo "$ac_cv_build" >&6; }
2010 case $ac_cv_build in
2011 *-*-*) ;;
2012 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2013 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2014 { (exit 1); exit 1; }; };;
2015 esac
2016 build=$ac_cv_build
2017 ac_save_IFS=$IFS; IFS='-'
2018 set x $ac_cv_build
2019 shift
2020 build_cpu=$1
2021 build_vendor=$2
2022 shift; shift
2023 # Remember, the first character of IFS is used to create $*,
2024 # except with old shells:
2025 build_os=$*
2026 IFS=$ac_save_IFS
2027 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2030 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2031 $as_echo_n "checking host system type... " >&6; }
2032 if test "${ac_cv_host+set}" = set; then
2033 $as_echo_n "(cached) " >&6
2034 else
2035 if test "x$host_alias" = x; then
2036 ac_cv_host=$ac_cv_build
2037 else
2038 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2039 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2040 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2041 { (exit 1); exit 1; }; }
2045 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2046 $as_echo "$ac_cv_host" >&6; }
2047 case $ac_cv_host in
2048 *-*-*) ;;
2049 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2050 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2051 { (exit 1); exit 1; }; };;
2052 esac
2053 host=$ac_cv_host
2054 ac_save_IFS=$IFS; IFS='-'
2055 set x $ac_cv_host
2056 shift
2057 host_cpu=$1
2058 host_vendor=$2
2059 shift; shift
2060 # Remember, the first character of IFS is used to create $*,
2061 # except with old shells:
2062 host_os=$*
2063 IFS=$ac_save_IFS
2064 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2068 SHARED="-shared"
2069 MACOSX=
2070 case $host_os in
2071 *darwin* )
2072 MACOSX=yes
2073 CFLAGS="$CFLAGS"
2074 CXXFLAGS="$CXXFLAGS -fno-rtti"
2075 SHARED="-bundle"
2076 if test -d /opt/local/include && test -d /opt/local/lib; then
2077 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2078 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2080 # Use fink packages if available.
2081 #if test -d /sw/include && test -d /sw/lib; then
2082 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2083 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2086 esac
2090 ac_ext=c
2091 ac_cpp='$CPP $CPPFLAGS'
2092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2095 if test -n "$ac_tool_prefix"; then
2096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2098 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2099 $as_echo_n "checking for $ac_word... " >&6; }
2100 if test "${ac_cv_prog_CC+set}" = set; then
2101 $as_echo_n "(cached) " >&6
2102 else
2103 if test -n "$CC"; then
2104 ac_cv_prog_CC="$CC" # Let the user override the test.
2105 else
2106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107 for as_dir in $PATH
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
2111 for ac_exec_ext in '' $ac_executable_extensions; do
2112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2114 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115 break 2
2117 done
2118 done
2119 IFS=$as_save_IFS
2123 CC=$ac_cv_prog_CC
2124 if test -n "$CC"; then
2125 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2126 $as_echo "$CC" >&6; }
2127 else
2128 { $as_echo "$as_me:$LINENO: result: no" >&5
2129 $as_echo "no" >&6; }
2134 if test -z "$ac_cv_prog_CC"; then
2135 ac_ct_CC=$CC
2136 # Extract the first word of "gcc", so it can be a program name with args.
2137 set dummy gcc; ac_word=$2
2138 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2139 $as_echo_n "checking for $ac_word... " >&6; }
2140 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2141 $as_echo_n "(cached) " >&6
2142 else
2143 if test -n "$ac_ct_CC"; then
2144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2145 else
2146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2147 for as_dir in $PATH
2149 IFS=$as_save_IFS
2150 test -z "$as_dir" && as_dir=.
2151 for ac_exec_ext in '' $ac_executable_extensions; do
2152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2153 ac_cv_prog_ac_ct_CC="gcc"
2154 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155 break 2
2157 done
2158 done
2159 IFS=$as_save_IFS
2163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2164 if test -n "$ac_ct_CC"; then
2165 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2166 $as_echo "$ac_ct_CC" >&6; }
2167 else
2168 { $as_echo "$as_me:$LINENO: result: no" >&5
2169 $as_echo "no" >&6; }
2172 if test "x$ac_ct_CC" = x; then
2173 CC=""
2174 else
2175 case $cross_compiling:$ac_tool_warned in
2176 yes:)
2177 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2179 ac_tool_warned=yes ;;
2180 esac
2181 CC=$ac_ct_CC
2183 else
2184 CC="$ac_cv_prog_CC"
2187 if test -z "$CC"; then
2188 if test -n "$ac_tool_prefix"; then
2189 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2190 set dummy ${ac_tool_prefix}cc; ac_word=$2
2191 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2192 $as_echo_n "checking for $ac_word... " >&6; }
2193 if test "${ac_cv_prog_CC+set}" = set; then
2194 $as_echo_n "(cached) " >&6
2195 else
2196 if test -n "$CC"; then
2197 ac_cv_prog_CC="$CC" # Let the user override the test.
2198 else
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2202 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206 ac_cv_prog_CC="${ac_tool_prefix}cc"
2207 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 break 2
2210 done
2211 done
2212 IFS=$as_save_IFS
2216 CC=$ac_cv_prog_CC
2217 if test -n "$CC"; then
2218 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2219 $as_echo "$CC" >&6; }
2220 else
2221 { $as_echo "$as_me:$LINENO: result: no" >&5
2222 $as_echo "no" >&6; }
2228 if test -z "$CC"; then
2229 # Extract the first word of "cc", so it can be a program name with args.
2230 set dummy cc; ac_word=$2
2231 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2232 $as_echo_n "checking for $ac_word... " >&6; }
2233 if test "${ac_cv_prog_CC+set}" = set; then
2234 $as_echo_n "(cached) " >&6
2235 else
2236 if test -n "$CC"; then
2237 ac_cv_prog_CC="$CC" # Let the user override the test.
2238 else
2239 ac_prog_rejected=no
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2241 for as_dir in $PATH
2243 IFS=$as_save_IFS
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2247 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2248 ac_prog_rejected=yes
2249 continue
2251 ac_cv_prog_CC="cc"
2252 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2253 break 2
2255 done
2256 done
2257 IFS=$as_save_IFS
2259 if test $ac_prog_rejected = yes; then
2260 # We found a bogon in the path, so make sure we never use it.
2261 set dummy $ac_cv_prog_CC
2262 shift
2263 if test $# != 0; then
2264 # We chose a different compiler from the bogus one.
2265 # However, it has the same basename, so the bogon will be chosen
2266 # first if we set CC to just the basename; use the full file name.
2267 shift
2268 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2273 CC=$ac_cv_prog_CC
2274 if test -n "$CC"; then
2275 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2276 $as_echo "$CC" >&6; }
2277 else
2278 { $as_echo "$as_me:$LINENO: result: no" >&5
2279 $as_echo "no" >&6; }
2284 if test -z "$CC"; then
2285 if test -n "$ac_tool_prefix"; then
2286 for ac_prog in cl.exe
2288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2290 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2291 $as_echo_n "checking for $ac_word... " >&6; }
2292 if test "${ac_cv_prog_CC+set}" = set; then
2293 $as_echo_n "(cached) " >&6
2294 else
2295 if test -n "$CC"; then
2296 ac_cv_prog_CC="$CC" # Let the user override the test.
2297 else
2298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2299 for as_dir in $PATH
2301 IFS=$as_save_IFS
2302 test -z "$as_dir" && as_dir=.
2303 for ac_exec_ext in '' $ac_executable_extensions; do
2304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2305 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2306 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 break 2
2309 done
2310 done
2311 IFS=$as_save_IFS
2315 CC=$ac_cv_prog_CC
2316 if test -n "$CC"; then
2317 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2318 $as_echo "$CC" >&6; }
2319 else
2320 { $as_echo "$as_me:$LINENO: result: no" >&5
2321 $as_echo "no" >&6; }
2325 test -n "$CC" && break
2326 done
2328 if test -z "$CC"; then
2329 ac_ct_CC=$CC
2330 for ac_prog in cl.exe
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy $ac_prog; ac_word=$2
2334 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 $as_echo_n "checking for $ac_word... " >&6; }
2336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2337 $as_echo_n "(cached) " >&6
2338 else
2339 if test -n "$ac_ct_CC"; then
2340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2341 else
2342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 for as_dir in $PATH
2345 IFS=$as_save_IFS
2346 test -z "$as_dir" && as_dir=.
2347 for ac_exec_ext in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_ac_ct_CC="$ac_prog"
2350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 break 2
2353 done
2354 done
2355 IFS=$as_save_IFS
2359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2360 if test -n "$ac_ct_CC"; then
2361 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2362 $as_echo "$ac_ct_CC" >&6; }
2363 else
2364 { $as_echo "$as_me:$LINENO: result: no" >&5
2365 $as_echo "no" >&6; }
2369 test -n "$ac_ct_CC" && break
2370 done
2372 if test "x$ac_ct_CC" = x; then
2373 CC=""
2374 else
2375 case $cross_compiling:$ac_tool_warned in
2376 yes:)
2377 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2379 ac_tool_warned=yes ;;
2380 esac
2381 CC=$ac_ct_CC
2388 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2390 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2391 See \`config.log' for more details." >&5
2392 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2393 See \`config.log' for more details." >&2;}
2394 { (exit 1); exit 1; }; }; }
2396 # Provide some information about the compiler.
2397 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2398 set X $ac_compile
2399 ac_compiler=$2
2400 { (ac_try="$ac_compiler --version >&5"
2401 case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2404 esac
2405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2406 $as_echo "$ac_try_echo") >&5
2407 (eval "$ac_compiler --version >&5") 2>&5
2408 ac_status=$?
2409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }
2411 { (ac_try="$ac_compiler -v >&5"
2412 case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415 esac
2416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2417 $as_echo "$ac_try_echo") >&5
2418 (eval "$ac_compiler -v >&5") 2>&5
2419 ac_status=$?
2420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }
2422 { (ac_try="$ac_compiler -V >&5"
2423 case "(($ac_try" in
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2426 esac
2427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2428 $as_echo "$ac_try_echo") >&5
2429 (eval "$ac_compiler -V >&5") 2>&5
2430 ac_status=$?
2431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h. */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2442 main ()
2446 return 0;
2448 _ACEOF
2449 ac_clean_files_save=$ac_clean_files
2450 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2451 # Try to create an executable without -o first, disregard a.out.
2452 # It will help us diagnose broken compilers, and finding out an intuition
2453 # of exeext.
2454 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2455 $as_echo_n "checking for C compiler default output file name... " >&6; }
2456 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2458 # The possible output files:
2459 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2461 ac_rmfiles=
2462 for ac_file in $ac_files
2464 case $ac_file in
2465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2466 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2467 esac
2468 done
2469 rm -f $ac_rmfiles
2471 if { (ac_try="$ac_link_default"
2472 case "(($ac_try" in
2473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2474 *) ac_try_echo=$ac_try;;
2475 esac
2476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2477 $as_echo "$ac_try_echo") >&5
2478 (eval "$ac_link_default") 2>&5
2479 ac_status=$?
2480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; then
2482 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2483 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2484 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2485 # so that the user can short-circuit this test for compilers unknown to
2486 # Autoconf.
2487 for ac_file in $ac_files ''
2489 test -f "$ac_file" || continue
2490 case $ac_file in
2491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2493 [ab].out )
2494 # We found the default executable, but exeext='' is most
2495 # certainly right.
2496 break;;
2497 *.* )
2498 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2499 then :; else
2500 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2502 # We set ac_cv_exeext here because the later test for it is not
2503 # safe: cross compilers may not add the suffix if given an `-o'
2504 # argument, so we may need to know it at that point already.
2505 # Even if this section looks crufty: it has the advantage of
2506 # actually working.
2507 break;;
2509 break;;
2510 esac
2511 done
2512 test "$ac_cv_exeext" = no && ac_cv_exeext=
2514 else
2515 ac_file=''
2518 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2519 $as_echo "$ac_file" >&6; }
2520 if test -z "$ac_file"; then
2521 $as_echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2526 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2527 See \`config.log' for more details." >&5
2528 $as_echo "$as_me: error: C compiler cannot create executables
2529 See \`config.log' for more details." >&2;}
2530 { (exit 77); exit 77; }; }; }
2533 ac_exeext=$ac_cv_exeext
2535 # Check that the compiler produces executables we can run. If not, either
2536 # the compiler is broken, or we cross compile.
2537 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2538 $as_echo_n "checking whether the C compiler works... " >&6; }
2539 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2540 # If not cross compiling, check that we can run a simple program.
2541 if test "$cross_compiling" != yes; then
2542 if { ac_try='./$ac_file'
2543 { (case "(($ac_try" in
2544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545 *) ac_try_echo=$ac_try;;
2546 esac
2547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2548 $as_echo "$ac_try_echo") >&5
2549 (eval "$ac_try") 2>&5
2550 ac_status=$?
2551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552 (exit $ac_status); }; }; then
2553 cross_compiling=no
2554 else
2555 if test "$cross_compiling" = maybe; then
2556 cross_compiling=yes
2557 else
2558 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2560 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2561 If you meant to cross compile, use \`--host'.
2562 See \`config.log' for more details." >&5
2563 $as_echo "$as_me: error: cannot run C compiled programs.
2564 If you meant to cross compile, use \`--host'.
2565 See \`config.log' for more details." >&2;}
2566 { (exit 1); exit 1; }; }; }
2570 { $as_echo "$as_me:$LINENO: result: yes" >&5
2571 $as_echo "yes" >&6; }
2573 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2574 ac_clean_files=$ac_clean_files_save
2575 # Check that the compiler produces executables we can run. If not, either
2576 # the compiler is broken, or we cross compile.
2577 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2578 $as_echo_n "checking whether we are cross compiling... " >&6; }
2579 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2580 $as_echo "$cross_compiling" >&6; }
2582 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2583 $as_echo_n "checking for suffix of executables... " >&6; }
2584 if { (ac_try="$ac_link"
2585 case "(($ac_try" in
2586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2587 *) ac_try_echo=$ac_try;;
2588 esac
2589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2590 $as_echo "$ac_try_echo") >&5
2591 (eval "$ac_link") 2>&5
2592 ac_status=$?
2593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; then
2595 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2596 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2597 # work properly (i.e., refer to `conftest.exe'), while it won't with
2598 # `rm'.
2599 for ac_file in conftest.exe conftest conftest.*; do
2600 test -f "$ac_file" || continue
2601 case $ac_file in
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2603 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2604 break;;
2605 * ) break;;
2606 esac
2607 done
2608 else
2609 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2611 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2612 See \`config.log' for more details." >&5
2613 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2614 See \`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }; }
2618 rm -f conftest$ac_cv_exeext
2619 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2620 $as_echo "$ac_cv_exeext" >&6; }
2622 rm -f conftest.$ac_ext
2623 EXEEXT=$ac_cv_exeext
2624 ac_exeext=$EXEEXT
2625 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2626 $as_echo_n "checking for suffix of object files... " >&6; }
2627 if test "${ac_cv_objext+set}" = set; then
2628 $as_echo_n "(cached) " >&6
2629 else
2630 cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h. */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2638 main ()
2642 return 0;
2644 _ACEOF
2645 rm -f conftest.o conftest.obj
2646 if { (ac_try="$ac_compile"
2647 case "(($ac_try" in
2648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2649 *) ac_try_echo=$ac_try;;
2650 esac
2651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2652 $as_echo "$ac_try_echo") >&5
2653 (eval "$ac_compile") 2>&5
2654 ac_status=$?
2655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); }; then
2657 for ac_file in conftest.o conftest.obj conftest.*; do
2658 test -f "$ac_file" || continue;
2659 case $ac_file in
2660 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2661 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2662 break;;
2663 esac
2664 done
2665 else
2666 $as_echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2671 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2672 See \`config.log' for more details." >&5
2673 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2674 See \`config.log' for more details." >&2;}
2675 { (exit 1); exit 1; }; }; }
2678 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2680 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2681 $as_echo "$ac_cv_objext" >&6; }
2682 OBJEXT=$ac_cv_objext
2683 ac_objext=$OBJEXT
2684 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2685 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2686 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2687 $as_echo_n "(cached) " >&6
2688 else
2689 cat >conftest.$ac_ext <<_ACEOF
2690 /* confdefs.h. */
2691 _ACEOF
2692 cat confdefs.h >>conftest.$ac_ext
2693 cat >>conftest.$ac_ext <<_ACEOF
2694 /* end confdefs.h. */
2697 main ()
2699 #ifndef __GNUC__
2700 choke me
2701 #endif
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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2714 $as_echo "$ac_try_echo") >&5
2715 (eval "$ac_compile") 2>conftest.er1
2716 ac_status=$?
2717 grep -v '^ *+' conftest.er1 >conftest.err
2718 rm -f conftest.er1
2719 cat conftest.err >&5
2720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); } && {
2722 test -z "$ac_c_werror_flag" ||
2723 test ! -s conftest.err
2724 } && test -s conftest.$ac_objext; then
2725 ac_compiler_gnu=yes
2726 else
2727 $as_echo "$as_me: failed program was:" >&5
2728 sed 's/^/| /' conftest.$ac_ext >&5
2730 ac_compiler_gnu=no
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2737 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2738 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2739 if test $ac_compiler_gnu = yes; then
2740 GCC=yes
2741 else
2742 GCC=
2744 ac_test_CFLAGS=${CFLAGS+set}
2745 ac_save_CFLAGS=$CFLAGS
2746 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2747 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2748 if test "${ac_cv_prog_cc_g+set}" = set; then
2749 $as_echo_n "(cached) " >&6
2750 else
2751 ac_save_c_werror_flag=$ac_c_werror_flag
2752 ac_c_werror_flag=yes
2753 ac_cv_prog_cc_g=no
2754 CFLAGS="-g"
2755 cat >conftest.$ac_ext <<_ACEOF
2756 /* confdefs.h. */
2757 _ACEOF
2758 cat confdefs.h >>conftest.$ac_ext
2759 cat >>conftest.$ac_ext <<_ACEOF
2760 /* end confdefs.h. */
2763 main ()
2767 return 0;
2769 _ACEOF
2770 rm -f conftest.$ac_objext
2771 if { (ac_try="$ac_compile"
2772 case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775 esac
2776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2777 $as_echo "$ac_try_echo") >&5
2778 (eval "$ac_compile") 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } && {
2785 test -z "$ac_c_werror_flag" ||
2786 test ! -s conftest.err
2787 } && test -s conftest.$ac_objext; then
2788 ac_cv_prog_cc_g=yes
2789 else
2790 $as_echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2793 CFLAGS=""
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h. */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2802 main ()
2806 return 0;
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (ac_try="$ac_compile"
2811 case "(($ac_try" in
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2814 esac
2815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2816 $as_echo "$ac_try_echo") >&5
2817 (eval "$ac_compile") 2>conftest.er1
2818 ac_status=$?
2819 grep -v '^ *+' conftest.er1 >conftest.err
2820 rm -f conftest.er1
2821 cat conftest.err >&5
2822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } && {
2824 test -z "$ac_c_werror_flag" ||
2825 test ! -s conftest.err
2826 } && test -s conftest.$ac_objext; then
2828 else
2829 $as_echo "$as_me: failed program was:" >&5
2830 sed 's/^/| /' conftest.$ac_ext >&5
2832 ac_c_werror_flag=$ac_save_c_werror_flag
2833 CFLAGS="-g"
2834 cat >conftest.$ac_ext <<_ACEOF
2835 /* confdefs.h. */
2836 _ACEOF
2837 cat confdefs.h >>conftest.$ac_ext
2838 cat >>conftest.$ac_ext <<_ACEOF
2839 /* end confdefs.h. */
2842 main ()
2846 return 0;
2848 _ACEOF
2849 rm -f conftest.$ac_objext
2850 if { (ac_try="$ac_compile"
2851 case "(($ac_try" in
2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2853 *) ac_try_echo=$ac_try;;
2854 esac
2855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2856 $as_echo "$ac_try_echo") >&5
2857 (eval "$ac_compile") 2>conftest.er1
2858 ac_status=$?
2859 grep -v '^ *+' conftest.er1 >conftest.err
2860 rm -f conftest.er1
2861 cat conftest.err >&5
2862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } && {
2864 test -z "$ac_c_werror_flag" ||
2865 test ! -s conftest.err
2866 } && test -s conftest.$ac_objext; then
2867 ac_cv_prog_cc_g=yes
2868 else
2869 $as_echo "$as_me: failed program was:" >&5
2870 sed 's/^/| /' conftest.$ac_ext >&5
2875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2882 ac_c_werror_flag=$ac_save_c_werror_flag
2884 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2885 $as_echo "$ac_cv_prog_cc_g" >&6; }
2886 if test "$ac_test_CFLAGS" = set; then
2887 CFLAGS=$ac_save_CFLAGS
2888 elif test $ac_cv_prog_cc_g = yes; then
2889 if test "$GCC" = yes; then
2890 CFLAGS="-g -O2"
2891 else
2892 CFLAGS="-g"
2894 else
2895 if test "$GCC" = yes; then
2896 CFLAGS="-O2"
2897 else
2898 CFLAGS=
2901 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2902 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2903 if test "${ac_cv_prog_cc_c89+set}" = set; then
2904 $as_echo_n "(cached) " >&6
2905 else
2906 ac_cv_prog_cc_c89=no
2907 ac_save_CC=$CC
2908 cat >conftest.$ac_ext <<_ACEOF
2909 /* confdefs.h. */
2910 _ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2914 #include <stdarg.h>
2915 #include <stdio.h>
2916 #include <sys/types.h>
2917 #include <sys/stat.h>
2918 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2919 struct buf { int x; };
2920 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2921 static char *e (p, i)
2922 char **p;
2923 int i;
2925 return p[i];
2927 static char *f (char * (*g) (char **, int), char **p, ...)
2929 char *s;
2930 va_list v;
2931 va_start (v,p);
2932 s = g (p, va_arg (v,int));
2933 va_end (v);
2934 return s;
2937 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2938 function prototypes and stuff, but not '\xHH' hex character constants.
2939 These don't provoke an error unfortunately, instead are silently treated
2940 as 'x'. The following induces an error, until -std is added to get
2941 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2942 array size at least. It's necessary to write '\x00'==0 to get something
2943 that's true only with -std. */
2944 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2946 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2947 inside strings and character constants. */
2948 #define FOO(x) 'x'
2949 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2951 int test (int i, double x);
2952 struct s1 {int (*f) (int a);};
2953 struct s2 {int (*f) (double a);};
2954 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2955 int argc;
2956 char **argv;
2958 main ()
2960 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2962 return 0;
2964 _ACEOF
2965 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2966 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2968 CC="$ac_save_CC $ac_arg"
2969 rm -f conftest.$ac_objext
2970 if { (ac_try="$ac_compile"
2971 case "(($ac_try" in
2972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2973 *) ac_try_echo=$ac_try;;
2974 esac
2975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2976 $as_echo "$ac_try_echo") >&5
2977 (eval "$ac_compile") 2>conftest.er1
2978 ac_status=$?
2979 grep -v '^ *+' conftest.er1 >conftest.err
2980 rm -f conftest.er1
2981 cat conftest.err >&5
2982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } && {
2984 test -z "$ac_c_werror_flag" ||
2985 test ! -s conftest.err
2986 } && test -s conftest.$ac_objext; then
2987 ac_cv_prog_cc_c89=$ac_arg
2988 else
2989 $as_echo "$as_me: failed program was:" >&5
2990 sed 's/^/| /' conftest.$ac_ext >&5
2995 rm -f core conftest.err conftest.$ac_objext
2996 test "x$ac_cv_prog_cc_c89" != "xno" && break
2997 done
2998 rm -f conftest.$ac_ext
2999 CC=$ac_save_CC
3002 # AC_CACHE_VAL
3003 case "x$ac_cv_prog_cc_c89" in
3005 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3006 $as_echo "none needed" >&6; } ;;
3007 xno)
3008 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3009 $as_echo "unsupported" >&6; } ;;
3011 CC="$CC $ac_cv_prog_cc_c89"
3012 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3013 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3014 esac
3017 ac_ext=c
3018 ac_cpp='$CPP $CPPFLAGS'
3019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 ac_ext=cpp
3024 ac_cpp='$CXXCPP $CPPFLAGS'
3025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3028 if test -z "$CXX"; then
3029 if test -n "$CCC"; then
3030 CXX=$CCC
3031 else
3032 if test -n "$ac_tool_prefix"; then
3033 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3037 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if test "${ac_cv_prog_CXX+set}" = set; then
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test -n "$CXX"; then
3043 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3052 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3056 done
3057 done
3058 IFS=$as_save_IFS
3062 CXX=$ac_cv_prog_CXX
3063 if test -n "$CXX"; then
3064 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3065 $as_echo "$CXX" >&6; }
3066 else
3067 { $as_echo "$as_me:$LINENO: result: no" >&5
3068 $as_echo "no" >&6; }
3072 test -n "$CXX" && break
3073 done
3075 if test -z "$CXX"; then
3076 ac_ct_CXX=$CXX
3077 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3079 # Extract the first word of "$ac_prog", so it can be a program name with args.
3080 set dummy $ac_prog; ac_word=$2
3081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 $as_echo_n "checking for $ac_word... " >&6; }
3083 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3084 $as_echo_n "(cached) " >&6
3085 else
3086 if test -n "$ac_ct_CXX"; then
3087 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3088 else
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090 for as_dir in $PATH
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 ac_cv_prog_ac_ct_CXX="$ac_prog"
3097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3100 done
3101 done
3102 IFS=$as_save_IFS
3106 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3107 if test -n "$ac_ct_CXX"; then
3108 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3109 $as_echo "$ac_ct_CXX" >&6; }
3110 else
3111 { $as_echo "$as_me:$LINENO: result: no" >&5
3112 $as_echo "no" >&6; }
3116 test -n "$ac_ct_CXX" && break
3117 done
3119 if test "x$ac_ct_CXX" = x; then
3120 CXX="g++"
3121 else
3122 case $cross_compiling:$ac_tool_warned in
3123 yes:)
3124 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3126 ac_tool_warned=yes ;;
3127 esac
3128 CXX=$ac_ct_CXX
3134 # Provide some information about the compiler.
3135 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3136 set X $ac_compile
3137 ac_compiler=$2
3138 { (ac_try="$ac_compiler --version >&5"
3139 case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142 esac
3143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3144 $as_echo "$ac_try_echo") >&5
3145 (eval "$ac_compiler --version >&5") 2>&5
3146 ac_status=$?
3147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); }
3149 { (ac_try="$ac_compiler -v >&5"
3150 case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3155 $as_echo "$ac_try_echo") >&5
3156 (eval "$ac_compiler -v >&5") 2>&5
3157 ac_status=$?
3158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }
3160 { (ac_try="$ac_compiler -V >&5"
3161 case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164 esac
3165 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3166 $as_echo "$ac_try_echo") >&5
3167 (eval "$ac_compiler -V >&5") 2>&5
3168 ac_status=$?
3169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }
3172 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3173 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3174 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3175 $as_echo_n "(cached) " >&6
3176 else
3177 cat >conftest.$ac_ext <<_ACEOF
3178 /* confdefs.h. */
3179 _ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3185 main ()
3187 #ifndef __GNUC__
3188 choke me
3189 #endif
3192 return 0;
3194 _ACEOF
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3202 $as_echo "$ac_try_echo") >&5
3203 (eval "$ac_compile") 2>conftest.er1
3204 ac_status=$?
3205 grep -v '^ *+' conftest.er1 >conftest.err
3206 rm -f conftest.er1
3207 cat conftest.err >&5
3208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } && {
3210 test -z "$ac_cxx_werror_flag" ||
3211 test ! -s conftest.err
3212 } && test -s conftest.$ac_objext; then
3213 ac_compiler_gnu=yes
3214 else
3215 $as_echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3218 ac_compiler_gnu=no
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3222 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3225 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3226 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3227 if test $ac_compiler_gnu = yes; then
3228 GXX=yes
3229 else
3230 GXX=
3232 ac_test_CXXFLAGS=${CXXFLAGS+set}
3233 ac_save_CXXFLAGS=$CXXFLAGS
3234 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3235 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3236 if test "${ac_cv_prog_cxx_g+set}" = set; then
3237 $as_echo_n "(cached) " >&6
3238 else
3239 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3240 ac_cxx_werror_flag=yes
3241 ac_cv_prog_cxx_g=no
3242 CXXFLAGS="-g"
3243 cat >conftest.$ac_ext <<_ACEOF
3244 /* confdefs.h. */
3245 _ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3251 main ()
3255 return 0;
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (ac_try="$ac_compile"
3260 case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263 esac
3264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3265 $as_echo "$ac_try_echo") >&5
3266 (eval "$ac_compile") 2>conftest.er1
3267 ac_status=$?
3268 grep -v '^ *+' conftest.er1 >conftest.err
3269 rm -f conftest.er1
3270 cat conftest.err >&5
3271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } && {
3273 test -z "$ac_cxx_werror_flag" ||
3274 test ! -s conftest.err
3275 } && test -s conftest.$ac_objext; then
3276 ac_cv_prog_cxx_g=yes
3277 else
3278 $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 CXXFLAGS=""
3282 cat >conftest.$ac_ext <<_ACEOF
3283 /* confdefs.h. */
3284 _ACEOF
3285 cat confdefs.h >>conftest.$ac_ext
3286 cat >>conftest.$ac_ext <<_ACEOF
3287 /* end confdefs.h. */
3290 main ()
3294 return 0;
3296 _ACEOF
3297 rm -f conftest.$ac_objext
3298 if { (ac_try="$ac_compile"
3299 case "(($ac_try" in
3300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3301 *) ac_try_echo=$ac_try;;
3302 esac
3303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3304 $as_echo "$ac_try_echo") >&5
3305 (eval "$ac_compile") 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } && {
3312 test -z "$ac_cxx_werror_flag" ||
3313 test ! -s conftest.err
3314 } && test -s conftest.$ac_objext; then
3316 else
3317 $as_echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3320 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3321 CXXFLAGS="-g"
3322 cat >conftest.$ac_ext <<_ACEOF
3323 /* confdefs.h. */
3324 _ACEOF
3325 cat confdefs.h >>conftest.$ac_ext
3326 cat >>conftest.$ac_ext <<_ACEOF
3327 /* end confdefs.h. */
3330 main ()
3334 return 0;
3336 _ACEOF
3337 rm -f conftest.$ac_objext
3338 if { (ac_try="$ac_compile"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3344 $as_echo "$ac_try_echo") >&5
3345 (eval "$ac_compile") 2>conftest.er1
3346 ac_status=$?
3347 grep -v '^ *+' conftest.er1 >conftest.err
3348 rm -f conftest.er1
3349 cat conftest.err >&5
3350 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351 (exit $ac_status); } && {
3352 test -z "$ac_cxx_werror_flag" ||
3353 test ! -s conftest.err
3354 } && test -s conftest.$ac_objext; then
3355 ac_cv_prog_cxx_g=yes
3356 else
3357 $as_echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3372 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3373 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3374 if test "$ac_test_CXXFLAGS" = set; then
3375 CXXFLAGS=$ac_save_CXXFLAGS
3376 elif test $ac_cv_prog_cxx_g = yes; then
3377 if test "$GXX" = yes; then
3378 CXXFLAGS="-g -O2"
3379 else
3380 CXXFLAGS="-g"
3382 else
3383 if test "$GXX" = yes; then
3384 CXXFLAGS="-O2"
3385 else
3386 CXXFLAGS=
3389 ac_ext=c
3390 ac_cpp='$CPP $CPPFLAGS'
3391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3399 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3401 cat > conftest.c << EOF
3402 #include <stdlib.h>
3403 #include <stdio.h>
3405 int main (int argc, char*argv)
3407 int a,b;
3408 b=3;
3409 int c;
3410 c=4;
3411 return 0;
3415 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3416 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3417 { $as_echo "$as_me:$LINENO: result: yes" >&5
3418 $as_echo "yes" >&6; }
3419 GCC_IS_OK=true
3420 export GCC_IS_OK
3421 else
3422 echo "configure: failed program was:" >&5
3423 cat conftest.c >&5
3424 { $as_echo "$as_me:$LINENO: result: no" >&5
3425 $as_echo "no" >&6; }
3427 rm -f conftest*
3430 if test "x$GCC_IS_OK" '=' "x";then
3431 echo "***************************************************"
3432 echo "* Your gcc is too old to compile this!"
3433 echo "* "
3434 echo "* The last version compileable by this compiler is "
3435 echo "* swftools 0.7.0, which you can download from "
3436 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3437 echo "* ."
3438 echo "* Newer versions require at least gcc 3.0.0 "
3439 echo "***************************************************"
3440 exit 1
3443 if test "x$CHECKMEM" '!=' "x";then
3444 CC="ccmalloc $CC"
3445 CXX="ccmalloc $CXX"
3446 #echo running again
3447 #unset ac_cv_prog_CC
3448 #unset ac_cv_prog_CXX
3449 #AC_PROG_CC
3450 #AC_PROG_CXX
3452 ac_ext=c
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3457 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3458 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3459 # On Suns, sometimes $CPP names a directory.
3460 if test -n "$CPP" && test -d "$CPP"; then
3461 CPP=
3463 if test -z "$CPP"; then
3464 if test "${ac_cv_prog_CPP+set}" = set; then
3465 $as_echo_n "(cached) " >&6
3466 else
3467 # Double quotes because CPP needs to be expanded
3468 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3470 ac_preproc_ok=false
3471 for ac_c_preproc_warn_flag in '' yes
3473 # Use a header file that comes with gcc, so configuring glibc
3474 # with a fresh cross-compiler works.
3475 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3476 # <limits.h> exists even on freestanding compilers.
3477 # On the NeXT, cc -E runs the code through the compiler's parser,
3478 # not just through cpp. "Syntax error" is here to catch this case.
3479 cat >conftest.$ac_ext <<_ACEOF
3480 /* confdefs.h. */
3481 _ACEOF
3482 cat confdefs.h >>conftest.$ac_ext
3483 cat >>conftest.$ac_ext <<_ACEOF
3484 /* end confdefs.h. */
3485 #ifdef __STDC__
3486 # include <limits.h>
3487 #else
3488 # include <assert.h>
3489 #endif
3490 Syntax error
3491 _ACEOF
3492 if { (ac_try="$ac_cpp conftest.$ac_ext"
3493 case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3498 $as_echo "$ac_try_echo") >&5
3499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3500 ac_status=$?
3501 grep -v '^ *+' conftest.er1 >conftest.err
3502 rm -f conftest.er1
3503 cat conftest.err >&5
3504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); } >/dev/null && {
3506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3507 test ! -s conftest.err
3508 }; then
3510 else
3511 $as_echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3514 # Broken: fails on valid input.
3515 continue
3518 rm -f conftest.err conftest.$ac_ext
3520 # OK, works on sane cases. Now check whether nonexistent headers
3521 # can be detected and how.
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #include <ac_nonexistent.h>
3529 _ACEOF
3530 if { (ac_try="$ac_cpp conftest.$ac_ext"
3531 case "(($ac_try" in
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3534 esac
3535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3536 $as_echo "$ac_try_echo") >&5
3537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } >/dev/null && {
3544 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3545 test ! -s conftest.err
3546 }; then
3547 # Broken: success on invalid input.
3548 continue
3549 else
3550 $as_echo "$as_me: failed program was:" >&5
3551 sed 's/^/| /' conftest.$ac_ext >&5
3553 # Passes both tests.
3554 ac_preproc_ok=:
3555 break
3558 rm -f conftest.err conftest.$ac_ext
3560 done
3561 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3562 rm -f conftest.err conftest.$ac_ext
3563 if $ac_preproc_ok; then
3564 break
3567 done
3568 ac_cv_prog_CPP=$CPP
3571 CPP=$ac_cv_prog_CPP
3572 else
3573 ac_cv_prog_CPP=$CPP
3575 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3576 $as_echo "$CPP" >&6; }
3577 ac_preproc_ok=false
3578 for ac_c_preproc_warn_flag in '' yes
3580 # Use a header file that comes with gcc, so configuring glibc
3581 # with a fresh cross-compiler works.
3582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3583 # <limits.h> exists even on freestanding compilers.
3584 # On the NeXT, cc -E runs the code through the compiler's parser,
3585 # not just through cpp. "Syntax error" is here to catch this case.
3586 cat >conftest.$ac_ext <<_ACEOF
3587 /* confdefs.h. */
3588 _ACEOF
3589 cat confdefs.h >>conftest.$ac_ext
3590 cat >>conftest.$ac_ext <<_ACEOF
3591 /* end confdefs.h. */
3592 #ifdef __STDC__
3593 # include <limits.h>
3594 #else
3595 # include <assert.h>
3596 #endif
3597 Syntax error
3598 _ACEOF
3599 if { (ac_try="$ac_cpp conftest.$ac_ext"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3605 $as_echo "$ac_try_echo") >&5
3606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3607 ac_status=$?
3608 grep -v '^ *+' conftest.er1 >conftest.err
3609 rm -f conftest.er1
3610 cat conftest.err >&5
3611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); } >/dev/null && {
3613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3614 test ! -s conftest.err
3615 }; then
3617 else
3618 $as_echo "$as_me: failed program was:" >&5
3619 sed 's/^/| /' conftest.$ac_ext >&5
3621 # Broken: fails on valid input.
3622 continue
3625 rm -f conftest.err conftest.$ac_ext
3627 # OK, works on sane cases. Now check whether nonexistent headers
3628 # can be detected and how.
3629 cat >conftest.$ac_ext <<_ACEOF
3630 /* confdefs.h. */
3631 _ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3635 #include <ac_nonexistent.h>
3636 _ACEOF
3637 if { (ac_try="$ac_cpp conftest.$ac_ext"
3638 case "(($ac_try" in
3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3640 *) ac_try_echo=$ac_try;;
3641 esac
3642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3643 $as_echo "$ac_try_echo") >&5
3644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3645 ac_status=$?
3646 grep -v '^ *+' conftest.er1 >conftest.err
3647 rm -f conftest.er1
3648 cat conftest.err >&5
3649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650 (exit $ac_status); } >/dev/null && {
3651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3652 test ! -s conftest.err
3653 }; then
3654 # Broken: success on invalid input.
3655 continue
3656 else
3657 $as_echo "$as_me: failed program was:" >&5
3658 sed 's/^/| /' conftest.$ac_ext >&5
3660 # Passes both tests.
3661 ac_preproc_ok=:
3662 break
3665 rm -f conftest.err conftest.$ac_ext
3667 done
3668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3669 rm -f conftest.err conftest.$ac_ext
3670 if $ac_preproc_ok; then
3672 else
3673 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3675 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3676 See \`config.log' for more details." >&5
3677 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3678 See \`config.log' for more details." >&2;}
3679 { (exit 1); exit 1; }; }; }
3682 ac_ext=c
3683 ac_cpp='$CPP $CPPFLAGS'
3684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689 if test -n "$ac_tool_prefix"; then
3690 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3691 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3692 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_RANLIB+set}" = set; then
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -n "$RANLIB"; then
3698 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3699 else
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3708 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3713 IFS=$as_save_IFS
3717 RANLIB=$ac_cv_prog_RANLIB
3718 if test -n "$RANLIB"; then
3719 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3720 $as_echo "$RANLIB" >&6; }
3721 else
3722 { $as_echo "$as_me:$LINENO: result: no" >&5
3723 $as_echo "no" >&6; }
3728 if test -z "$ac_cv_prog_RANLIB"; then
3729 ac_ct_RANLIB=$RANLIB
3730 # Extract the first word of "ranlib", so it can be a program name with args.
3731 set dummy ranlib; ac_word=$2
3732 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -n "$ac_ct_RANLIB"; then
3738 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_prog_ac_ct_RANLIB="ranlib"
3748 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3751 done
3752 done
3753 IFS=$as_save_IFS
3757 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3758 if test -n "$ac_ct_RANLIB"; then
3759 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3760 $as_echo "$ac_ct_RANLIB" >&6; }
3761 else
3762 { $as_echo "$as_me:$LINENO: result: no" >&5
3763 $as_echo "no" >&6; }
3766 if test "x$ac_ct_RANLIB" = x; then
3767 RANLIB=":"
3768 else
3769 case $cross_compiling:$ac_tool_warned in
3770 yes:)
3771 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3773 ac_tool_warned=yes ;;
3774 esac
3775 RANLIB=$ac_ct_RANLIB
3777 else
3778 RANLIB="$ac_cv_prog_RANLIB"
3781 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3782 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3783 set x ${MAKE-make}
3784 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3785 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3786 $as_echo_n "(cached) " >&6
3787 else
3788 cat >conftest.make <<\_ACEOF
3789 SHELL = /bin/sh
3790 all:
3791 @echo '@@@%%%=$(MAKE)=@@@%%%'
3792 _ACEOF
3793 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3794 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3795 *@@@%%%=?*=@@@%%%*)
3796 eval ac_cv_prog_make_${ac_make}_set=yes;;
3798 eval ac_cv_prog_make_${ac_make}_set=no;;
3799 esac
3800 rm -f conftest.make
3802 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3803 { $as_echo "$as_me:$LINENO: result: yes" >&5
3804 $as_echo "yes" >&6; }
3805 SET_MAKE=
3806 else
3807 { $as_echo "$as_me:$LINENO: result: no" >&5
3808 $as_echo "no" >&6; }
3809 SET_MAKE="MAKE=${MAKE-make}"
3812 # Find a good install program. We prefer a C program (faster),
3813 # so one script is as good as another. But avoid the broken or
3814 # incompatible versions:
3815 # SysV /etc/install, /usr/sbin/install
3816 # SunOS /usr/etc/install
3817 # IRIX /sbin/install
3818 # AIX /bin/install
3819 # AmigaOS /C/install, which installs bootblocks on floppy discs
3820 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3821 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3822 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3823 # OS/2's system install, which has a completely different semantic
3824 # ./install, which can be erroneously created by make from ./install.sh.
3825 # Reject install programs that cannot install multiple files.
3826 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3827 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3828 if test -z "$INSTALL"; then
3829 if test "${ac_cv_path_install+set}" = set; then
3830 $as_echo_n "(cached) " >&6
3831 else
3832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833 for as_dir in $PATH
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
3837 # Account for people who put trailing slashes in PATH elements.
3838 case $as_dir/ in
3839 ./ | .// | /cC/* | \
3840 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3841 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3842 /usr/ucb/* ) ;;
3844 # OSF1 and SCO ODT 3.0 have their own names for install.
3845 # Don't use installbsd from OSF since it installs stuff as root
3846 # by default.
3847 for ac_prog in ginstall scoinst install; do
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3850 if test $ac_prog = install &&
3851 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3852 # AIX install. It has an incompatible calling convention.
3854 elif test $ac_prog = install &&
3855 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3856 # program-specific install script used by HP pwplus--don't use.
3858 else
3859 rm -rf conftest.one conftest.two conftest.dir
3860 echo one > conftest.one
3861 echo two > conftest.two
3862 mkdir conftest.dir
3863 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3864 test -s conftest.one && test -s conftest.two &&
3865 test -s conftest.dir/conftest.one &&
3866 test -s conftest.dir/conftest.two
3867 then
3868 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3869 break 3
3873 done
3874 done
3876 esac
3878 done
3879 IFS=$as_save_IFS
3881 rm -rf conftest.one conftest.two conftest.dir
3884 if test "${ac_cv_path_install+set}" = set; then
3885 INSTALL=$ac_cv_path_install
3886 else
3887 # As a last resort, use the slow shell script. Don't cache a
3888 # value for INSTALL within a source directory, because that will
3889 # break other packages using the cache if that directory is
3890 # removed, or if the value is a relative name.
3891 INSTALL=$ac_install_sh
3894 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3895 $as_echo "$INSTALL" >&6; }
3897 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3898 # It thinks the first close brace ends the variable substitution.
3899 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3901 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3903 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3905 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3906 $as_echo_n "checking whether ln -s works... " >&6; }
3907 LN_S=$as_ln_s
3908 if test "$LN_S" = "ln -s"; then
3909 { $as_echo "$as_me:$LINENO: result: yes" >&5
3910 $as_echo "yes" >&6; }
3911 else
3912 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3913 $as_echo "no, using $LN_S" >&6; }
3916 for ac_prog in gzip uncompress compress
3918 # Extract the first word of "$ac_prog", so it can be a program name with args.
3919 set dummy $ac_prog; ac_word=$2
3920 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3921 $as_echo_n "checking for $ac_word... " >&6; }
3922 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3923 $as_echo_n "(cached) " >&6
3924 else
3925 if test -n "$UNCOMPRESS"; then
3926 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3927 else
3928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 for as_dir in $PATH
3931 IFS=$as_save_IFS
3932 test -z "$as_dir" && as_dir=.
3933 for ac_exec_ext in '' $ac_executable_extensions; do
3934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3935 ac_cv_prog_UNCOMPRESS="$ac_prog"
3936 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3937 break 2
3939 done
3940 done
3941 IFS=$as_save_IFS
3945 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3946 if test -n "$UNCOMPRESS"; then
3947 { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3948 $as_echo "$UNCOMPRESS" >&6; }
3949 else
3950 { $as_echo "$as_me:$LINENO: result: no" >&5
3951 $as_echo "no" >&6; }
3955 test -n "$UNCOMPRESS" && break
3956 done
3960 OBJEXT="o"
3961 AREXT=".a"
3962 CXXLIBS="-lstdc++"
3966 if test "x$EXEEXT" = "x.exe";then
3967 OBJEXT="obj"
3968 AREXT=".lib"
3969 CXXLIBS=""
3975 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3976 $as_echo_n "checking host system type... " >&6; }
3977 if test "${ac_cv_host+set}" = set; then
3978 $as_echo_n "(cached) " >&6
3979 else
3980 if test "x$host_alias" = x; then
3981 ac_cv_host=$ac_cv_build
3982 else
3983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3984 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3985 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3986 { (exit 1); exit 1; }; }
3990 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3991 $as_echo "$ac_cv_host" >&6; }
3992 case $ac_cv_host in
3993 *-*-*) ;;
3994 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3995 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3996 { (exit 1); exit 1; }; };;
3997 esac
3998 host=$ac_cv_host
3999 ac_save_IFS=$IFS; IFS='-'
4000 set x $ac_cv_host
4001 shift
4002 host_cpu=$1
4003 host_vendor=$2
4004 shift; shift
4005 # Remember, the first character of IFS is used to create $*,
4006 # except with old shells:
4007 host_os=$*
4008 IFS=$ac_save_IFS
4009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4014 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4015 $as_echo_n "checking for target system... " >&6; }
4016 CYGWIN=
4017 MINGW=
4018 case $host_os in
4019 *cygwin* ) CYGWIN=yes;;
4020 *mingw* ) MINGW=yes;;
4021 esac
4023 AR=ar
4024 if test "x$MINGW" = "xyes"; then
4025 #fix for the debian distribution of mingw
4026 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4027 AR="/usr/i586-mingw32msvc/bin/ar"
4029 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4030 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4032 #fix for the gentoo distribution of mingw
4033 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4034 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4036 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4037 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4039 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4040 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4046 if test "x${CYGWIN}" = "xyes"; then
4048 cat >>confdefs.h <<\_ACEOF
4049 #define CYGWIN 1
4050 _ACEOF
4052 { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4053 $as_echo "cygwin" >&6; }
4054 else
4055 if test "x${MINGW}" = "xyes"; then
4057 cat >>confdefs.h <<\_ACEOF
4058 #define MINGW 1
4059 _ACEOF
4061 WIN32=1
4063 cat >>confdefs.h <<\_ACEOF
4064 #define WIN32 1
4065 _ACEOF
4067 LIBS="$LIBS -lws2_32 -lgdi32"
4068 { $as_echo "$as_me:$LINENO: result: mingw" >&5
4069 $as_echo "mingw" >&6; }
4070 else
4071 LINUX=1
4072 export LINUX
4074 cat >>confdefs.h <<\_ACEOF
4075 #define LINUX 1
4076 _ACEOF
4078 { $as_echo "$as_me:$LINENO: result: " >&5
4079 $as_echo "" >&6; }
4084 SLEXT="so"
4085 if test "x${MINGW}" != "xyes"; then
4086 # no mingW
4088 cat >>confdefs.h <<\_ACEOF
4089 #define O_BINARY 0
4090 _ACEOF
4092 else
4093 # mingW
4094 SLEXT="dll"
4095 CXXLIBS=""
4097 export SLEXT
4101 # The following tries to make use of includes and libraries in
4102 # /usr/local, too. Notice: A -I/usr/local/include might break
4103 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4104 # especially on systems which link /usr/local to /usr, so it has yet
4105 # to be seen how useful this is.
4106 if test -d /usr/local/lib; then
4107 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4109 if test -d /usr/local/include; then
4110 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4111 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4112 echo > /dev/null
4114 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4115 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4116 # and $prefix/include, which should be included in our search paths for libraries
4117 # and includes.
4118 LDFLAGS="$LDFLAGS -L${libdir}"
4119 CPPFLAGS="$CPPFLAGS -I${includedir}"
4120 # TODO- test whether gcc still works after this
4123 #Mac OS:
4124 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4127 # this must be done after (I believe) AC_PROG_MAKE_SET
4128 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4129 if test "$MACOSX";then
4130 STRIP=dsymutil
4131 else
4132 STRIP="@echo debug enabled, not stripping "
4134 export STRIP
4140 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4141 $as_echo_n "checking for sin in -lm... " >&6; }
4142 if test "${ac_cv_lib_m_sin+set}" = set; then
4143 $as_echo_n "(cached) " >&6
4144 else
4145 ac_check_lib_save_LIBS=$LIBS
4146 LIBS="-lm $LIBS"
4147 cat >conftest.$ac_ext <<_ACEOF
4148 /* confdefs.h. */
4149 _ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4154 /* Override any GCC internal prototype to avoid an error.
4155 Use char because int might match the return type of a GCC
4156 builtin and then its argument prototype would still apply. */
4157 #ifdef __cplusplus
4158 extern "C"
4159 #endif
4160 char sin ();
4162 main ()
4164 return sin ();
4166 return 0;
4168 _ACEOF
4169 rm -f conftest.$ac_objext conftest$ac_exeext
4170 if { (ac_try="$ac_link"
4171 case "(($ac_try" in
4172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173 *) ac_try_echo=$ac_try;;
4174 esac
4175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4176 $as_echo "$ac_try_echo") >&5
4177 (eval "$ac_link") 2>conftest.er1
4178 ac_status=$?
4179 grep -v '^ *+' conftest.er1 >conftest.err
4180 rm -f conftest.er1
4181 cat conftest.err >&5
4182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } && {
4184 test -z "$ac_c_werror_flag" ||
4185 test ! -s conftest.err
4186 } && test -s conftest$ac_exeext && {
4187 test "$cross_compiling" = yes ||
4188 $as_test_x conftest$ac_exeext
4189 }; then
4190 ac_cv_lib_m_sin=yes
4191 else
4192 $as_echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ac_cv_lib_m_sin=no
4198 rm -rf conftest.dSYM
4199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4200 conftest$ac_exeext conftest.$ac_ext
4201 LIBS=$ac_check_lib_save_LIBS
4203 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4204 $as_echo "$ac_cv_lib_m_sin" >&6; }
4205 if test "x$ac_cv_lib_m_sin" = x""yes; then
4206 cat >>confdefs.h <<_ACEOF
4207 #define HAVE_LIBM 1
4208 _ACEOF
4210 LIBS="-lm $LIBS"
4212 else
4213 echo "Error: Math library not found.";
4214 exit;
4219 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4220 $as_echo_n "checking for deflate in -lz... " >&6; }
4221 if test "${ac_cv_lib_z_deflate+set}" = set; then
4222 $as_echo_n "(cached) " >&6
4223 else
4224 ac_check_lib_save_LIBS=$LIBS
4225 LIBS="-lz $LIBS"
4226 cat >conftest.$ac_ext <<_ACEOF
4227 /* confdefs.h. */
4228 _ACEOF
4229 cat confdefs.h >>conftest.$ac_ext
4230 cat >>conftest.$ac_ext <<_ACEOF
4231 /* end confdefs.h. */
4233 /* Override any GCC internal prototype to avoid an error.
4234 Use char because int might match the return type of a GCC
4235 builtin and then its argument prototype would still apply. */
4236 #ifdef __cplusplus
4237 extern "C"
4238 #endif
4239 char deflate ();
4241 main ()
4243 return deflate ();
4245 return 0;
4247 _ACEOF
4248 rm -f conftest.$ac_objext conftest$ac_exeext
4249 if { (ac_try="$ac_link"
4250 case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4253 esac
4254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4255 $as_echo "$ac_try_echo") >&5
4256 (eval "$ac_link") 2>conftest.er1
4257 ac_status=$?
4258 grep -v '^ *+' conftest.er1 >conftest.err
4259 rm -f conftest.er1
4260 cat conftest.err >&5
4261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4262 (exit $ac_status); } && {
4263 test -z "$ac_c_werror_flag" ||
4264 test ! -s conftest.err
4265 } && test -s conftest$ac_exeext && {
4266 test "$cross_compiling" = yes ||
4267 $as_test_x conftest$ac_exeext
4268 }; then
4269 ac_cv_lib_z_deflate=yes
4270 else
4271 $as_echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4274 ac_cv_lib_z_deflate=no
4277 rm -rf conftest.dSYM
4278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4279 conftest$ac_exeext conftest.$ac_ext
4280 LIBS=$ac_check_lib_save_LIBS
4282 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4283 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4284 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4285 cat >>confdefs.h <<_ACEOF
4286 #define HAVE_LIBZ 1
4287 _ACEOF
4289 LIBS="-lz $LIBS"
4291 else
4292 ZLIBMISSING=true
4296 if test "x$ZLIBMISSING" = "xtrue";then
4297 echo
4298 echo "ERROR:"
4299 echo "You need zlib to compile swftools"
4300 echo
4301 exit
4305 { $as_echo "$as_me:$LINENO: checking for PDF_open_file in -lpdf" >&5
4306 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4307 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then
4308 $as_echo_n "(cached) " >&6
4309 else
4310 ac_check_lib_save_LIBS=$LIBS
4311 LIBS="-lpdf $LIBS"
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h. */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4319 /* Override any GCC internal prototype to avoid an error.
4320 Use char because int might match the return type of a GCC
4321 builtin and then its argument prototype would still apply. */
4322 #ifdef __cplusplus
4323 extern "C"
4324 #endif
4325 char PDF_open_file ();
4327 main ()
4329 return PDF_open_file ();
4331 return 0;
4333 _ACEOF
4334 rm -f conftest.$ac_objext conftest$ac_exeext
4335 if { (ac_try="$ac_link"
4336 case "(($ac_try" in
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4339 esac
4340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4341 $as_echo "$ac_try_echo") >&5
4342 (eval "$ac_link") 2>conftest.er1
4343 ac_status=$?
4344 grep -v '^ *+' conftest.er1 >conftest.err
4345 rm -f conftest.er1
4346 cat conftest.err >&5
4347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } && {
4349 test -z "$ac_c_werror_flag" ||
4350 test ! -s conftest.err
4351 } && test -s conftest$ac_exeext && {
4352 test "$cross_compiling" = yes ||
4353 $as_test_x conftest$ac_exeext
4354 }; then
4355 ac_cv_lib_pdf_PDF_open_file=yes
4356 else
4357 $as_echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4360 ac_cv_lib_pdf_PDF_open_file=no
4363 rm -rf conftest.dSYM
4364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4365 conftest$ac_exeext conftest.$ac_ext
4366 LIBS=$ac_check_lib_save_LIBS
4368 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4369 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4370 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then
4371 cat >>confdefs.h <<_ACEOF
4372 #define HAVE_LIBPDF 1
4373 _ACEOF
4375 LIBS="-lpdf $LIBS"
4377 else
4378 PDFLIBMISSING=true
4382 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4383 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4384 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4385 $as_echo_n "(cached) " >&6
4386 else
4387 ac_check_lib_save_LIBS=$LIBS
4388 LIBS="-ljpeg $LIBS"
4389 cat >conftest.$ac_ext <<_ACEOF
4390 /* confdefs.h. */
4391 _ACEOF
4392 cat confdefs.h >>conftest.$ac_ext
4393 cat >>conftest.$ac_ext <<_ACEOF
4394 /* end confdefs.h. */
4396 /* Override any GCC internal prototype to avoid an error.
4397 Use char because int might match the return type of a GCC
4398 builtin and then its argument prototype would still apply. */
4399 #ifdef __cplusplus
4400 extern "C"
4401 #endif
4402 char jpeg_write_raw_data ();
4404 main ()
4406 return jpeg_write_raw_data ();
4408 return 0;
4410 _ACEOF
4411 rm -f conftest.$ac_objext conftest$ac_exeext
4412 if { (ac_try="$ac_link"
4413 case "(($ac_try" in
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4416 esac
4417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4418 $as_echo "$ac_try_echo") >&5
4419 (eval "$ac_link") 2>conftest.er1
4420 ac_status=$?
4421 grep -v '^ *+' conftest.er1 >conftest.err
4422 rm -f conftest.er1
4423 cat conftest.err >&5
4424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } && {
4426 test -z "$ac_c_werror_flag" ||
4427 test ! -s conftest.err
4428 } && test -s conftest$ac_exeext && {
4429 test "$cross_compiling" = yes ||
4430 $as_test_x conftest$ac_exeext
4431 }; then
4432 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4433 else
4434 $as_echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4437 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4440 rm -rf conftest.dSYM
4441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4442 conftest$ac_exeext conftest.$ac_ext
4443 LIBS=$ac_check_lib_save_LIBS
4445 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4446 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4447 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4448 cat >>confdefs.h <<_ACEOF
4449 #define HAVE_LIBJPEG 1
4450 _ACEOF
4452 LIBS="-ljpeg $LIBS"
4454 else
4455 JPEGLIBMISSING=true
4459 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4460 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4461 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4462 $as_echo_n "(cached) " >&6
4463 else
4464 ac_check_lib_save_LIBS=$LIBS
4465 LIBS="-lungif $LIBS"
4466 cat >conftest.$ac_ext <<_ACEOF
4467 /* confdefs.h. */
4468 _ACEOF
4469 cat confdefs.h >>conftest.$ac_ext
4470 cat >>conftest.$ac_ext <<_ACEOF
4471 /* end confdefs.h. */
4473 /* Override any GCC internal prototype to avoid an error.
4474 Use char because int might match the return type of a GCC
4475 builtin and then its argument prototype would still apply. */
4476 #ifdef __cplusplus
4477 extern "C"
4478 #endif
4479 char DGifOpen ();
4481 main ()
4483 return DGifOpen ();
4485 return 0;
4487 _ACEOF
4488 rm -f conftest.$ac_objext conftest$ac_exeext
4489 if { (ac_try="$ac_link"
4490 case "(($ac_try" in
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4493 esac
4494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4495 $as_echo "$ac_try_echo") >&5
4496 (eval "$ac_link") 2>conftest.er1
4497 ac_status=$?
4498 grep -v '^ *+' conftest.er1 >conftest.err
4499 rm -f conftest.er1
4500 cat conftest.err >&5
4501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4502 (exit $ac_status); } && {
4503 test -z "$ac_c_werror_flag" ||
4504 test ! -s conftest.err
4505 } && test -s conftest$ac_exeext && {
4506 test "$cross_compiling" = yes ||
4507 $as_test_x conftest$ac_exeext
4508 }; then
4509 ac_cv_lib_ungif_DGifOpen=yes
4510 else
4511 $as_echo "$as_me: failed program was:" >&5
4512 sed 's/^/| /' conftest.$ac_ext >&5
4514 ac_cv_lib_ungif_DGifOpen=no
4517 rm -rf conftest.dSYM
4518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4519 conftest$ac_exeext conftest.$ac_ext
4520 LIBS=$ac_check_lib_save_LIBS
4522 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4523 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4524 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4525 cat >>confdefs.h <<_ACEOF
4526 #define HAVE_LIBUNGIF 1
4527 _ACEOF
4529 LIBS="-lungif $LIBS"
4531 else
4532 UNGIFMISSING=true
4535 if test "$UNGIFMISSING";then
4536 UNGIFMISSING=
4538 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4539 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4540 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4541 $as_echo_n "(cached) " >&6
4542 else
4543 ac_check_lib_save_LIBS=$LIBS
4544 LIBS="-lgif $LIBS"
4545 cat >conftest.$ac_ext <<_ACEOF
4546 /* confdefs.h. */
4547 _ACEOF
4548 cat confdefs.h >>conftest.$ac_ext
4549 cat >>conftest.$ac_ext <<_ACEOF
4550 /* end confdefs.h. */
4552 /* Override any GCC internal prototype to avoid an error.
4553 Use char because int might match the return type of a GCC
4554 builtin and then its argument prototype would still apply. */
4555 #ifdef __cplusplus
4556 extern "C"
4557 #endif
4558 char DGifOpen ();
4560 main ()
4562 return DGifOpen ();
4564 return 0;
4566 _ACEOF
4567 rm -f conftest.$ac_objext conftest$ac_exeext
4568 if { (ac_try="$ac_link"
4569 case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572 esac
4573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574 $as_echo "$ac_try_echo") >&5
4575 (eval "$ac_link") 2>conftest.er1
4576 ac_status=$?
4577 grep -v '^ *+' conftest.er1 >conftest.err
4578 rm -f conftest.er1
4579 cat conftest.err >&5
4580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } && {
4582 test -z "$ac_c_werror_flag" ||
4583 test ! -s conftest.err
4584 } && test -s conftest$ac_exeext && {
4585 test "$cross_compiling" = yes ||
4586 $as_test_x conftest$ac_exeext
4587 }; then
4588 ac_cv_lib_gif_DGifOpen=yes
4589 else
4590 $as_echo "$as_me: failed program was:" >&5
4591 sed 's/^/| /' conftest.$ac_ext >&5
4593 ac_cv_lib_gif_DGifOpen=no
4596 rm -rf conftest.dSYM
4597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4598 conftest$ac_exeext conftest.$ac_ext
4599 LIBS=$ac_check_lib_save_LIBS
4601 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4602 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4603 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4604 cat >>confdefs.h <<_ACEOF
4605 #define HAVE_LIBGIF 1
4606 _ACEOF
4608 LIBS="-lgif $LIBS"
4610 else
4611 UNGIFMISSING=true
4616 { $as_echo "$as_me:$LINENO: checking for zzip_file_open in -lzzip" >&5
4617 $as_echo_n "checking for zzip_file_open in -lzzip... " >&6; }
4618 if test "${ac_cv_lib_zzip_zzip_file_open+set}" = set; then
4619 $as_echo_n "(cached) " >&6
4620 else
4621 ac_check_lib_save_LIBS=$LIBS
4622 LIBS="-lzzip $LIBS"
4623 cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4630 /* Override any GCC internal prototype to avoid an error.
4631 Use char because int might match the return type of a GCC
4632 builtin and then its argument prototype would still apply. */
4633 #ifdef __cplusplus
4634 extern "C"
4635 #endif
4636 char zzip_file_open ();
4638 main ()
4640 return zzip_file_open ();
4642 return 0;
4644 _ACEOF
4645 rm -f conftest.$ac_objext conftest$ac_exeext
4646 if { (ac_try="$ac_link"
4647 case "(($ac_try" in
4648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649 *) ac_try_echo=$ac_try;;
4650 esac
4651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652 $as_echo "$ac_try_echo") >&5
4653 (eval "$ac_link") 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } && {
4660 test -z "$ac_c_werror_flag" ||
4661 test ! -s conftest.err
4662 } && test -s conftest$ac_exeext && {
4663 test "$cross_compiling" = yes ||
4664 $as_test_x conftest$ac_exeext
4665 }; then
4666 ac_cv_lib_zzip_zzip_file_open=yes
4667 else
4668 $as_echo "$as_me: failed program was:" >&5
4669 sed 's/^/| /' conftest.$ac_ext >&5
4671 ac_cv_lib_zzip_zzip_file_open=no
4674 rm -rf conftest.dSYM
4675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4676 conftest$ac_exeext conftest.$ac_ext
4677 LIBS=$ac_check_lib_save_LIBS
4679 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_zzip_zzip_file_open" >&5
4680 $as_echo "$ac_cv_lib_zzip_zzip_file_open" >&6; }
4681 if test "x$ac_cv_lib_zzip_zzip_file_open" = x""yes; then
4682 cat >>confdefs.h <<_ACEOF
4683 #define HAVE_LIBZZIP 1
4684 _ACEOF
4686 LIBS="-lzzip $LIBS"
4688 else
4689 ZZIPMISSING=true
4694 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4695 $as_echo_n "checking for byte order... " >&6; }
4696 if test "$cross_compiling" = yes; then
4697 CROSSCOMPILE=1
4698 else
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4706 int main (int argc, char *argv[])
4708 int i = 1;
4709 return *(char*)&i;
4712 _ACEOF
4713 rm -f conftest$ac_exeext
4714 if { (ac_try="$ac_link"
4715 case "(($ac_try" in
4716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4718 esac
4719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4720 $as_echo "$ac_try_echo") >&5
4721 (eval "$ac_link") 2>&5
4722 ac_status=$?
4723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4724 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4725 { (case "(($ac_try" in
4726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4727 *) ac_try_echo=$ac_try;;
4728 esac
4729 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4730 $as_echo "$ac_try_echo") >&5
4731 (eval "$ac_try") 2>&5
4732 ac_status=$?
4733 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734 (exit $ac_status); }; }; then
4735 BIGENDIAN=1
4736 else
4737 $as_echo "$as_me: program exited with status $ac_status" >&5
4738 $as_echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4741 ( exit $ac_status )
4742 LITTLEENDIAN=1
4744 rm -rf conftest.dSYM
4745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4749 export CROSSCOMPILE
4751 if test "x${CROSSCOMPILE}" = "x1"; then
4752 { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4753 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4754 { $as_echo "$as_me:$LINENO: checking target system type" >&5
4755 $as_echo_n "checking target system type... " >&6; }
4756 if test "${ac_cv_target+set}" = set; then
4757 $as_echo_n "(cached) " >&6
4758 else
4759 if test "x$target_alias" = x; then
4760 ac_cv_target=$ac_cv_host
4761 else
4762 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4763 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4764 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4765 { (exit 1); exit 1; }; }
4769 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4770 $as_echo "$ac_cv_target" >&6; }
4771 case $ac_cv_target in
4772 *-*-*) ;;
4773 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4774 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4775 { (exit 1); exit 1; }; };;
4776 esac
4777 target=$ac_cv_target
4778 ac_save_IFS=$IFS; IFS='-'
4779 set x $ac_cv_target
4780 shift
4781 target_cpu=$1
4782 target_vendor=$2
4783 shift; shift
4784 # Remember, the first character of IFS is used to create $*,
4785 # except with old shells:
4786 target_os=$*
4787 IFS=$ac_save_IFS
4788 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4791 # The aliases save the names the user supplied, while $host etc.
4792 # will get canonicalized.
4793 test -n "$target_alias" &&
4794 test "$program_prefix$program_suffix$program_transform_name" = \
4795 NONENONEs,x,x, &&
4796 program_prefix=${target_alias}-
4797 { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4798 $as_echo_n "checking for byte order, try 2... " >&6; }
4799 case "${target}" in
4800 *86* | *-pc-* )
4801 LITTLEENDIAN=1
4803 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4804 BIGENDIAN=1
4806 esac
4809 export LITTLEENDIAN
4810 if test "x${LITTLEENDIAN}" = "x1"; then
4811 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4812 $as_echo "little endian" >&6; }
4813 BYTEORDERCHECKOK=1
4815 export BIGENDIAN
4816 if test "x${BIGENDIAN}" = "x1"; then
4817 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4818 $as_echo "big endian" >&6; }
4819 BYTEORDERCHECKOK=1
4820 WORDS_BIGENDIAN=1
4821 export WORDS_BIGENDIAN
4823 cat >>confdefs.h <<\_ACEOF
4824 #define WORDS_BIGENDIAN 1
4825 _ACEOF
4828 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4829 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4830 $as_echo "unknown" >&6; }
4831 echo Byte order could not determined.
4832 exit 1
4837 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4838 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4839 if test "$cross_compiling" = yes; then
4840 CROSSCOMPILE=1
4841 else
4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4847 /* end confdefs.h. */
4849 #include "stdlib.h"
4850 int main (int argc, char*argv[])
4852 return system("test `touch config.tmp2`");
4855 _ACEOF
4856 rm -f conftest$ac_exeext
4857 if { (ac_try="$ac_link"
4858 case "(($ac_try" in
4859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860 *) ac_try_echo=$ac_try;;
4861 esac
4862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4863 $as_echo "$ac_try_echo") >&5
4864 (eval "$ac_link") 2>&5
4865 ac_status=$?
4866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4868 { (case "(($ac_try" in
4869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4870 *) ac_try_echo=$ac_try;;
4871 esac
4872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4873 $as_echo "$ac_try_echo") >&5
4874 (eval "$ac_try") 2>&5
4875 ac_status=$?
4876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); }; }; then
4878 OK=OK
4879 else
4880 $as_echo "$as_me: program exited with status $ac_status" >&5
4881 $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4885 rm -rf conftest.dSYM
4886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4891 if test "x${OK}" = "xOK";then
4892 test -f config.tmp2 || OK=
4895 if test "x${CROSSCOMPILE}" = "x1";then
4896 OK=no;
4898 if test "x${OK}" = "xOK";then
4899 rm -f config.tmp2
4900 { $as_echo "$as_me:$LINENO: result: yes" >&5
4901 $as_echo "yes" >&6; }
4902 SYSTEM_BACKTICKS=1
4903 export SYSTEM_BACKTICKS
4905 cat >>confdefs.h <<\_ACEOF
4906 #define SYSTEM_BACKTICKS 1
4907 _ACEOF
4909 else
4910 { $as_echo "$as_me:$LINENO: result: no" >&5
4911 $as_echo "no" >&6; }
4916 test "$program_prefix" != NONE &&
4917 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4918 # Use a double $ so make ignores it.
4919 test "$program_suffix" != NONE &&
4920 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4921 # Double any \ or $.
4922 # By default was `s,x,x', remove it if useless.
4923 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4924 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4927 ac_config_headers="$ac_config_headers config.h"
4934 ac_header_dirent=no
4935 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4936 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4937 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4938 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4940 $as_echo_n "(cached) " >&6
4941 else
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4948 #include <sys/types.h>
4949 #include <$ac_hdr>
4952 main ()
4954 if ((DIR *) 0)
4955 return 0;
4957 return 0;
4959 _ACEOF
4960 rm -f conftest.$ac_objext
4961 if { (ac_try="$ac_compile"
4962 case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965 esac
4966 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4967 $as_echo "$ac_try_echo") >&5
4968 (eval "$ac_compile") 2>conftest.er1
4969 ac_status=$?
4970 grep -v '^ *+' conftest.er1 >conftest.err
4971 rm -f conftest.er1
4972 cat conftest.err >&5
4973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } && {
4975 test -z "$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4977 } && test -s conftest.$ac_objext; then
4978 eval "$as_ac_Header=yes"
4979 else
4980 $as_echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4983 eval "$as_ac_Header=no"
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988 ac_res=`eval 'as_val=${'$as_ac_Header'}
4989 $as_echo "$as_val"'`
4990 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4991 $as_echo "$ac_res" >&6; }
4992 as_val=`eval 'as_val=${'$as_ac_Header'}
4993 $as_echo "$as_val"'`
4994 if test "x$as_val" = x""yes; then
4995 cat >>confdefs.h <<_ACEOF
4996 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4997 _ACEOF
4999 ac_header_dirent=$ac_hdr; break
5002 done
5003 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5004 if test $ac_header_dirent = dirent.h; then
5005 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5006 $as_echo_n "checking for library containing opendir... " >&6; }
5007 if test "${ac_cv_search_opendir+set}" = set; then
5008 $as_echo_n "(cached) " >&6
5009 else
5010 ac_func_search_save_LIBS=$LIBS
5011 cat >conftest.$ac_ext <<_ACEOF
5012 /* confdefs.h. */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h. */
5018 /* Override any GCC internal prototype to avoid an error.
5019 Use char because int might match the return type of a GCC
5020 builtin and then its argument prototype would still apply. */
5021 #ifdef __cplusplus
5022 extern "C"
5023 #endif
5024 char opendir ();
5026 main ()
5028 return opendir ();
5030 return 0;
5032 _ACEOF
5033 for ac_lib in '' dir; do
5034 if test -z "$ac_lib"; then
5035 ac_res="none required"
5036 else
5037 ac_res=-l$ac_lib
5038 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5040 rm -f conftest.$ac_objext conftest$ac_exeext
5041 if { (ac_try="$ac_link"
5042 case "(($ac_try" in
5043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5045 esac
5046 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5047 $as_echo "$ac_try_echo") >&5
5048 (eval "$ac_link") 2>conftest.er1
5049 ac_status=$?
5050 grep -v '^ *+' conftest.er1 >conftest.err
5051 rm -f conftest.er1
5052 cat conftest.err >&5
5053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest$ac_exeext && {
5058 test "$cross_compiling" = yes ||
5059 $as_test_x conftest$ac_exeext
5060 }; then
5061 ac_cv_search_opendir=$ac_res
5062 else
5063 $as_echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5069 rm -rf conftest.dSYM
5070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5071 conftest$ac_exeext
5072 if test "${ac_cv_search_opendir+set}" = set; then
5073 break
5075 done
5076 if test "${ac_cv_search_opendir+set}" = set; then
5078 else
5079 ac_cv_search_opendir=no
5081 rm conftest.$ac_ext
5082 LIBS=$ac_func_search_save_LIBS
5084 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5085 $as_echo "$ac_cv_search_opendir" >&6; }
5086 ac_res=$ac_cv_search_opendir
5087 if test "$ac_res" != no; then
5088 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5092 else
5093 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5094 $as_echo_n "checking for library containing opendir... " >&6; }
5095 if test "${ac_cv_search_opendir+set}" = set; then
5096 $as_echo_n "(cached) " >&6
5097 else
5098 ac_func_search_save_LIBS=$LIBS
5099 cat >conftest.$ac_ext <<_ACEOF
5100 /* confdefs.h. */
5101 _ACEOF
5102 cat confdefs.h >>conftest.$ac_ext
5103 cat >>conftest.$ac_ext <<_ACEOF
5104 /* end confdefs.h. */
5106 /* Override any GCC internal prototype to avoid an error.
5107 Use char because int might match the return type of a GCC
5108 builtin and then its argument prototype would still apply. */
5109 #ifdef __cplusplus
5110 extern "C"
5111 #endif
5112 char opendir ();
5114 main ()
5116 return opendir ();
5118 return 0;
5120 _ACEOF
5121 for ac_lib in '' x; do
5122 if test -z "$ac_lib"; then
5123 ac_res="none required"
5124 else
5125 ac_res=-l$ac_lib
5126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5128 rm -f conftest.$ac_objext conftest$ac_exeext
5129 if { (ac_try="$ac_link"
5130 case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5135 $as_echo "$ac_try_echo") >&5
5136 (eval "$ac_link") 2>conftest.er1
5137 ac_status=$?
5138 grep -v '^ *+' conftest.er1 >conftest.err
5139 rm -f conftest.er1
5140 cat conftest.err >&5
5141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5142 (exit $ac_status); } && {
5143 test -z "$ac_c_werror_flag" ||
5144 test ! -s conftest.err
5145 } && test -s conftest$ac_exeext && {
5146 test "$cross_compiling" = yes ||
5147 $as_test_x conftest$ac_exeext
5148 }; then
5149 ac_cv_search_opendir=$ac_res
5150 else
5151 $as_echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5157 rm -rf conftest.dSYM
5158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5159 conftest$ac_exeext
5160 if test "${ac_cv_search_opendir+set}" = set; then
5161 break
5163 done
5164 if test "${ac_cv_search_opendir+set}" = set; then
5166 else
5167 ac_cv_search_opendir=no
5169 rm conftest.$ac_ext
5170 LIBS=$ac_func_search_save_LIBS
5172 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5173 $as_echo "$ac_cv_search_opendir" >&6; }
5174 ac_res=$ac_cv_search_opendir
5175 if test "$ac_res" != no; then
5176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5183 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5184 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5185 if test "${ac_cv_path_GREP+set}" = set; then
5186 $as_echo_n "(cached) " >&6
5187 else
5188 if test -z "$GREP"; then
5189 ac_path_GREP_found=false
5190 # Loop through the user's path and test for each of PROGNAME-LIST
5191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5192 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5194 IFS=$as_save_IFS
5195 test -z "$as_dir" && as_dir=.
5196 for ac_prog in grep ggrep; do
5197 for ac_exec_ext in '' $ac_executable_extensions; do
5198 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5199 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5200 # Check for GNU ac_path_GREP and select it if it is found.
5201 # Check for GNU $ac_path_GREP
5202 case `"$ac_path_GREP" --version 2>&1` in
5203 *GNU*)
5204 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5206 ac_count=0
5207 $as_echo_n 0123456789 >"conftest.in"
5208 while :
5210 cat "conftest.in" "conftest.in" >"conftest.tmp"
5211 mv "conftest.tmp" "conftest.in"
5212 cp "conftest.in" "conftest.nl"
5213 $as_echo 'GREP' >> "conftest.nl"
5214 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5216 ac_count=`expr $ac_count + 1`
5217 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5218 # Best one so far, save it but keep looking for a better one
5219 ac_cv_path_GREP="$ac_path_GREP"
5220 ac_path_GREP_max=$ac_count
5222 # 10*(2^10) chars as input seems more than enough
5223 test $ac_count -gt 10 && break
5224 done
5225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5226 esac
5228 $ac_path_GREP_found && break 3
5229 done
5230 done
5231 done
5232 IFS=$as_save_IFS
5233 if test -z "$ac_cv_path_GREP"; then
5234 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5235 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5236 { (exit 1); exit 1; }; }
5238 else
5239 ac_cv_path_GREP=$GREP
5243 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5244 $as_echo "$ac_cv_path_GREP" >&6; }
5245 GREP="$ac_cv_path_GREP"
5248 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5249 $as_echo_n "checking for egrep... " >&6; }
5250 if test "${ac_cv_path_EGREP+set}" = set; then
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5254 then ac_cv_path_EGREP="$GREP -E"
5255 else
5256 if test -z "$EGREP"; then
5257 ac_path_EGREP_found=false
5258 # Loop through the user's path and test for each of PROGNAME-LIST
5259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5262 IFS=$as_save_IFS
5263 test -z "$as_dir" && as_dir=.
5264 for ac_prog in egrep; do
5265 for ac_exec_ext in '' $ac_executable_extensions; do
5266 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5267 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5268 # Check for GNU ac_path_EGREP and select it if it is found.
5269 # Check for GNU $ac_path_EGREP
5270 case `"$ac_path_EGREP" --version 2>&1` in
5271 *GNU*)
5272 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5274 ac_count=0
5275 $as_echo_n 0123456789 >"conftest.in"
5276 while :
5278 cat "conftest.in" "conftest.in" >"conftest.tmp"
5279 mv "conftest.tmp" "conftest.in"
5280 cp "conftest.in" "conftest.nl"
5281 $as_echo 'EGREP' >> "conftest.nl"
5282 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5283 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5284 ac_count=`expr $ac_count + 1`
5285 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5286 # Best one so far, save it but keep looking for a better one
5287 ac_cv_path_EGREP="$ac_path_EGREP"
5288 ac_path_EGREP_max=$ac_count
5290 # 10*(2^10) chars as input seems more than enough
5291 test $ac_count -gt 10 && break
5292 done
5293 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5294 esac
5296 $ac_path_EGREP_found && break 3
5297 done
5298 done
5299 done
5300 IFS=$as_save_IFS
5301 if test -z "$ac_cv_path_EGREP"; then
5302 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5303 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5304 { (exit 1); exit 1; }; }
5306 else
5307 ac_cv_path_EGREP=$EGREP
5312 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5313 $as_echo "$ac_cv_path_EGREP" >&6; }
5314 EGREP="$ac_cv_path_EGREP"
5317 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5318 $as_echo_n "checking for ANSI C header files... " >&6; }
5319 if test "${ac_cv_header_stdc+set}" = set; then
5320 $as_echo_n "(cached) " >&6
5321 else
5322 cat >conftest.$ac_ext <<_ACEOF
5323 /* confdefs.h. */
5324 _ACEOF
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 #include <stdlib.h>
5329 #include <stdarg.h>
5330 #include <string.h>
5331 #include <float.h>
5334 main ()
5338 return 0;
5340 _ACEOF
5341 rm -f conftest.$ac_objext
5342 if { (ac_try="$ac_compile"
5343 case "(($ac_try" in
5344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5345 *) ac_try_echo=$ac_try;;
5346 esac
5347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5348 $as_echo "$ac_try_echo") >&5
5349 (eval "$ac_compile") 2>conftest.er1
5350 ac_status=$?
5351 grep -v '^ *+' conftest.er1 >conftest.err
5352 rm -f conftest.er1
5353 cat conftest.err >&5
5354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.$ac_objext; then
5359 ac_cv_header_stdc=yes
5360 else
5361 $as_echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5364 ac_cv_header_stdc=no
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5369 if test $ac_cv_header_stdc = yes; then
5370 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5371 cat >conftest.$ac_ext <<_ACEOF
5372 /* confdefs.h. */
5373 _ACEOF
5374 cat confdefs.h >>conftest.$ac_ext
5375 cat >>conftest.$ac_ext <<_ACEOF
5376 /* end confdefs.h. */
5377 #include <string.h>
5379 _ACEOF
5380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5381 $EGREP "memchr" >/dev/null 2>&1; then
5383 else
5384 ac_cv_header_stdc=no
5386 rm -f conftest*
5390 if test $ac_cv_header_stdc = yes; then
5391 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5392 cat >conftest.$ac_ext <<_ACEOF
5393 /* confdefs.h. */
5394 _ACEOF
5395 cat confdefs.h >>conftest.$ac_ext
5396 cat >>conftest.$ac_ext <<_ACEOF
5397 /* end confdefs.h. */
5398 #include <stdlib.h>
5400 _ACEOF
5401 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5402 $EGREP "free" >/dev/null 2>&1; then
5404 else
5405 ac_cv_header_stdc=no
5407 rm -f conftest*
5411 if test $ac_cv_header_stdc = yes; then
5412 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5413 if test "$cross_compiling" = yes; then
5415 else
5416 cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h. */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 #include <ctype.h>
5423 #include <stdlib.h>
5424 #if ((' ' & 0x0FF) == 0x020)
5425 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5426 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5427 #else
5428 # define ISLOWER(c) \
5429 (('a' <= (c) && (c) <= 'i') \
5430 || ('j' <= (c) && (c) <= 'r') \
5431 || ('s' <= (c) && (c) <= 'z'))
5432 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5433 #endif
5435 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5437 main ()
5439 int i;
5440 for (i = 0; i < 256; i++)
5441 if (XOR (islower (i), ISLOWER (i))
5442 || toupper (i) != TOUPPER (i))
5443 return 2;
5444 return 0;
5446 _ACEOF
5447 rm -f conftest$ac_exeext
5448 if { (ac_try="$ac_link"
5449 case "(($ac_try" in
5450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5451 *) ac_try_echo=$ac_try;;
5452 esac
5453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5454 $as_echo "$ac_try_echo") >&5
5455 (eval "$ac_link") 2>&5
5456 ac_status=$?
5457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5459 { (case "(($ac_try" in
5460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5461 *) ac_try_echo=$ac_try;;
5462 esac
5463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5464 $as_echo "$ac_try_echo") >&5
5465 (eval "$ac_try") 2>&5
5466 ac_status=$?
5467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); }; }; then
5470 else
5471 $as_echo "$as_me: program exited with status $ac_status" >&5
5472 $as_echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5475 ( exit $ac_status )
5476 ac_cv_header_stdc=no
5478 rm -rf conftest.dSYM
5479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5485 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5486 $as_echo "$ac_cv_header_stdc" >&6; }
5487 if test $ac_cv_header_stdc = yes; then
5489 cat >>confdefs.h <<\_ACEOF
5490 #define STDC_HEADERS 1
5491 _ACEOF
5496 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5506 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5507 inttypes.h stdint.h unistd.h
5509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5510 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5511 $as_echo_n "checking for $ac_header... " >&6; }
5512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5513 $as_echo_n "(cached) " >&6
5514 else
5515 cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h. */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 $ac_includes_default
5523 #include <$ac_header>
5524 _ACEOF
5525 rm -f conftest.$ac_objext
5526 if { (ac_try="$ac_compile"
5527 case "(($ac_try" in
5528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5530 esac
5531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5532 $as_echo "$ac_try_echo") >&5
5533 (eval "$ac_compile") 2>conftest.er1
5534 ac_status=$?
5535 grep -v '^ *+' conftest.er1 >conftest.err
5536 rm -f conftest.er1
5537 cat conftest.err >&5
5538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_c_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest.$ac_objext; then
5543 eval "$as_ac_Header=yes"
5544 else
5545 $as_echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5548 eval "$as_ac_Header=no"
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 ac_res=`eval 'as_val=${'$as_ac_Header'}
5554 $as_echo "$as_val"'`
5555 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5556 $as_echo "$ac_res" >&6; }
5557 as_val=`eval 'as_val=${'$as_ac_Header'}
5558 $as_echo "$as_val"'`
5559 if test "x$as_val" = x""yes; then
5560 cat >>confdefs.h <<_ACEOF
5561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5562 _ACEOF
5566 done
5590 for ac_header in zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/mman.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h pdflib.h zzip/lib.h
5592 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5594 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5595 $as_echo_n "checking for $ac_header... " >&6; }
5596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5597 $as_echo_n "(cached) " >&6
5599 ac_res=`eval 'as_val=${'$as_ac_Header'}
5600 $as_echo "$as_val"'`
5601 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5602 $as_echo "$ac_res" >&6; }
5603 else
5604 # Is the header compilable?
5605 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5606 $as_echo_n "checking $ac_header usability... " >&6; }
5607 cat >conftest.$ac_ext <<_ACEOF
5608 /* confdefs.h. */
5609 _ACEOF
5610 cat confdefs.h >>conftest.$ac_ext
5611 cat >>conftest.$ac_ext <<_ACEOF
5612 /* end confdefs.h. */
5613 $ac_includes_default
5614 #include <$ac_header>
5615 _ACEOF
5616 rm -f conftest.$ac_objext
5617 if { (ac_try="$ac_compile"
5618 case "(($ac_try" in
5619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5620 *) ac_try_echo=$ac_try;;
5621 esac
5622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5623 $as_echo "$ac_try_echo") >&5
5624 (eval "$ac_compile") 2>conftest.er1
5625 ac_status=$?
5626 grep -v '^ *+' conftest.er1 >conftest.err
5627 rm -f conftest.er1
5628 cat conftest.err >&5
5629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } && {
5631 test -z "$ac_c_werror_flag" ||
5632 test ! -s conftest.err
5633 } && test -s conftest.$ac_objext; then
5634 ac_header_compiler=yes
5635 else
5636 $as_echo "$as_me: failed program was:" >&5
5637 sed 's/^/| /' conftest.$ac_ext >&5
5639 ac_header_compiler=no
5642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5644 $as_echo "$ac_header_compiler" >&6; }
5646 # Is the header present?
5647 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5648 $as_echo_n "checking $ac_header presence... " >&6; }
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #include <$ac_header>
5656 _ACEOF
5657 if { (ac_try="$ac_cpp conftest.$ac_ext"
5658 case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5663 $as_echo "$ac_try_echo") >&5
5664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5665 ac_status=$?
5666 grep -v '^ *+' conftest.er1 >conftest.err
5667 rm -f conftest.er1
5668 cat conftest.err >&5
5669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } >/dev/null && {
5671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5672 test ! -s conftest.err
5673 }; then
5674 ac_header_preproc=yes
5675 else
5676 $as_echo "$as_me: failed program was:" >&5
5677 sed 's/^/| /' conftest.$ac_ext >&5
5679 ac_header_preproc=no
5682 rm -f conftest.err conftest.$ac_ext
5683 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5684 $as_echo "$ac_header_preproc" >&6; }
5686 # So? What about this header?
5687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5688 yes:no: )
5689 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5690 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5691 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5692 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5693 ac_header_preproc=yes
5695 no:yes:* )
5696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5697 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5699 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5700 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5701 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5702 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5703 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5705 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5707 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5710 esac
5711 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5712 $as_echo_n "checking for $ac_header... " >&6; }
5713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5714 $as_echo_n "(cached) " >&6
5715 else
5716 eval "$as_ac_Header=\$ac_header_preproc"
5718 ac_res=`eval 'as_val=${'$as_ac_Header'}
5719 $as_echo "$as_val"'`
5720 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5721 $as_echo "$ac_res" >&6; }
5724 as_val=`eval 'as_val=${'$as_ac_Header'}
5725 $as_echo "$as_val"'`
5726 if test "x$as_val" = x""yes; then
5727 cat >>confdefs.h <<_ACEOF
5728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5729 _ACEOF
5733 done
5737 cat >>confdefs.h <<_ACEOF
5738 #define PACKAGE "$PACKAGE"
5739 _ACEOF
5742 cat >>confdefs.h <<_ACEOF
5743 #define VERSION "$VERSION"
5744 _ACEOF
5752 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5753 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5754 if test "${ac_cv_c_const+set}" = set; then
5755 $as_echo_n "(cached) " >&6
5756 else
5757 cat >conftest.$ac_ext <<_ACEOF
5758 /* confdefs.h. */
5759 _ACEOF
5760 cat confdefs.h >>conftest.$ac_ext
5761 cat >>conftest.$ac_ext <<_ACEOF
5762 /* end confdefs.h. */
5765 main ()
5767 /* FIXME: Include the comments suggested by Paul. */
5768 #ifndef __cplusplus
5769 /* Ultrix mips cc rejects this. */
5770 typedef int charset[2];
5771 const charset cs;
5772 /* SunOS 4.1.1 cc rejects this. */
5773 char const *const *pcpcc;
5774 char **ppc;
5775 /* NEC SVR4.0.2 mips cc rejects this. */
5776 struct point {int x, y;};
5777 static struct point const zero = {0,0};
5778 /* AIX XL C 1.02.0.0 rejects this.
5779 It does not let you subtract one const X* pointer from another in
5780 an arm of an if-expression whose if-part is not a constant
5781 expression */
5782 const char *g = "string";
5783 pcpcc = &g + (g ? g-g : 0);
5784 /* HPUX 7.0 cc rejects these. */
5785 ++pcpcc;
5786 ppc = (char**) pcpcc;
5787 pcpcc = (char const *const *) ppc;
5788 { /* SCO 3.2v4 cc rejects this. */
5789 char *t;
5790 char const *s = 0 ? (char *) 0 : (char const *) 0;
5792 *t++ = 0;
5793 if (s) return 0;
5795 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5796 int x[] = {25, 17};
5797 const int *foo = &x[0];
5798 ++foo;
5800 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5801 typedef const int *iptr;
5802 iptr p = 0;
5803 ++p;
5805 { /* AIX XL C 1.02.0.0 rejects this saying
5806 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5807 struct s { int j; const int *ap[3]; };
5808 struct s *b; b->j = 5;
5810 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5811 const int foo = 10;
5812 if (!foo) return 0;
5814 return !cs[0] && !zero.x;
5815 #endif
5818 return 0;
5820 _ACEOF
5821 rm -f conftest.$ac_objext
5822 if { (ac_try="$ac_compile"
5823 case "(($ac_try" in
5824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5825 *) ac_try_echo=$ac_try;;
5826 esac
5827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5828 $as_echo "$ac_try_echo") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5830 ac_status=$?
5831 grep -v '^ *+' conftest.er1 >conftest.err
5832 rm -f conftest.er1
5833 cat conftest.err >&5
5834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && {
5836 test -z "$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest.$ac_objext; then
5839 ac_cv_c_const=yes
5840 else
5841 $as_echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.$ac_ext >&5
5844 ac_cv_c_const=no
5847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5850 $as_echo "$ac_cv_c_const" >&6; }
5851 if test $ac_cv_c_const = no; then
5853 cat >>confdefs.h <<\_ACEOF
5854 #define const /**/
5855 _ACEOF
5859 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5860 $as_echo_n "checking for inline... " >&6; }
5861 if test "${ac_cv_c_inline+set}" = set; then
5862 $as_echo_n "(cached) " >&6
5863 else
5864 ac_cv_c_inline=no
5865 for ac_kw in inline __inline__ __inline; do
5866 cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h. */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 #ifndef __cplusplus
5873 typedef int foo_t;
5874 static $ac_kw foo_t static_foo () {return 0; }
5875 $ac_kw foo_t foo () {return 0; }
5876 #endif
5878 _ACEOF
5879 rm -f conftest.$ac_objext
5880 if { (ac_try="$ac_compile"
5881 case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884 esac
5885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5886 $as_echo "$ac_try_echo") >&5
5887 (eval "$ac_compile") 2>conftest.er1
5888 ac_status=$?
5889 grep -v '^ *+' conftest.er1 >conftest.err
5890 rm -f conftest.er1
5891 cat conftest.err >&5
5892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && {
5894 test -z "$ac_c_werror_flag" ||
5895 test ! -s conftest.err
5896 } && test -s conftest.$ac_objext; then
5897 ac_cv_c_inline=$ac_kw
5898 else
5899 $as_echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 test "$ac_cv_c_inline" != no && break
5907 done
5910 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5911 $as_echo "$ac_cv_c_inline" >&6; }
5914 case $ac_cv_c_inline in
5915 inline | yes) ;;
5917 case $ac_cv_c_inline in
5918 no) ac_val=;;
5919 *) ac_val=$ac_cv_c_inline;;
5920 esac
5921 cat >>confdefs.h <<_ACEOF
5922 #ifndef __cplusplus
5923 #define inline $ac_val
5924 #endif
5925 _ACEOF
5927 esac
5929 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5930 $as_echo_n "checking for off_t... " >&6; }
5931 if test "${ac_cv_type_off_t+set}" = set; then
5932 $as_echo_n "(cached) " >&6
5933 else
5934 ac_cv_type_off_t=no
5935 cat >conftest.$ac_ext <<_ACEOF
5936 /* confdefs.h. */
5937 _ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 $ac_includes_default
5943 main ()
5945 if (sizeof (off_t))
5946 return 0;
5948 return 0;
5950 _ACEOF
5951 rm -f conftest.$ac_objext
5952 if { (ac_try="$ac_compile"
5953 case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956 esac
5957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5958 $as_echo "$ac_try_echo") >&5
5959 (eval "$ac_compile") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_c_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest.$ac_objext; then
5969 cat >conftest.$ac_ext <<_ACEOF
5970 /* confdefs.h. */
5971 _ACEOF
5972 cat confdefs.h >>conftest.$ac_ext
5973 cat >>conftest.$ac_ext <<_ACEOF
5974 /* end confdefs.h. */
5975 $ac_includes_default
5977 main ()
5979 if (sizeof ((off_t)))
5980 return 0;
5982 return 0;
5984 _ACEOF
5985 rm -f conftest.$ac_objext
5986 if { (ac_try="$ac_compile"
5987 case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990 esac
5991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5992 $as_echo "$ac_try_echo") >&5
5993 (eval "$ac_compile") 2>conftest.er1
5994 ac_status=$?
5995 grep -v '^ *+' conftest.er1 >conftest.err
5996 rm -f conftest.er1
5997 cat conftest.err >&5
5998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5999 (exit $ac_status); } && {
6000 test -z "$ac_c_werror_flag" ||
6001 test ! -s conftest.err
6002 } && test -s conftest.$ac_objext; then
6004 else
6005 $as_echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6008 ac_cv_type_off_t=yes
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 else
6013 $as_echo "$as_me: failed program was:" >&5
6014 sed 's/^/| /' conftest.$ac_ext >&5
6019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6021 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6022 $as_echo "$ac_cv_type_off_t" >&6; }
6023 if test "x$ac_cv_type_off_t" = x""yes; then
6025 else
6027 cat >>confdefs.h <<_ACEOF
6028 #define off_t long int
6029 _ACEOF
6033 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6034 $as_echo_n "checking for size_t... " >&6; }
6035 if test "${ac_cv_type_size_t+set}" = set; then
6036 $as_echo_n "(cached) " >&6
6037 else
6038 ac_cv_type_size_t=no
6039 cat >conftest.$ac_ext <<_ACEOF
6040 /* confdefs.h. */
6041 _ACEOF
6042 cat confdefs.h >>conftest.$ac_ext
6043 cat >>conftest.$ac_ext <<_ACEOF
6044 /* end confdefs.h. */
6045 $ac_includes_default
6047 main ()
6049 if (sizeof (size_t))
6050 return 0;
6052 return 0;
6054 _ACEOF
6055 rm -f conftest.$ac_objext
6056 if { (ac_try="$ac_compile"
6057 case "(($ac_try" in
6058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6059 *) ac_try_echo=$ac_try;;
6060 esac
6061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6062 $as_echo "$ac_try_echo") >&5
6063 (eval "$ac_compile") 2>conftest.er1
6064 ac_status=$?
6065 grep -v '^ *+' conftest.er1 >conftest.err
6066 rm -f conftest.er1
6067 cat conftest.err >&5
6068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } && {
6070 test -z "$ac_c_werror_flag" ||
6071 test ! -s conftest.err
6072 } && test -s conftest.$ac_objext; then
6073 cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h. */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6079 $ac_includes_default
6081 main ()
6083 if (sizeof ((size_t)))
6084 return 0;
6086 return 0;
6088 _ACEOF
6089 rm -f conftest.$ac_objext
6090 if { (ac_try="$ac_compile"
6091 case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094 esac
6095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6096 $as_echo "$ac_try_echo") >&5
6097 (eval "$ac_compile") 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } && {
6104 test -z "$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 } && test -s conftest.$ac_objext; then
6108 else
6109 $as_echo "$as_me: failed program was:" >&5
6110 sed 's/^/| /' conftest.$ac_ext >&5
6112 ac_cv_type_size_t=yes
6115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 else
6117 $as_echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6125 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6126 $as_echo "$ac_cv_type_size_t" >&6; }
6127 if test "x$ac_cv_type_size_t" = x""yes; then
6129 else
6131 cat >>confdefs.h <<_ACEOF
6132 #define size_t unsigned int
6133 _ACEOF
6137 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6138 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6139 if test "${ac_cv_struct_tm+set}" = set; then
6140 $as_echo_n "(cached) " >&6
6141 else
6142 cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h. */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 #include <sys/types.h>
6149 #include <time.h>
6152 main ()
6154 struct tm tm;
6155 int *p = &tm.tm_sec;
6156 return !p;
6158 return 0;
6160 _ACEOF
6161 rm -f conftest.$ac_objext
6162 if { (ac_try="$ac_compile"
6163 case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166 esac
6167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6168 $as_echo "$ac_try_echo") >&5
6169 (eval "$ac_compile") 2>conftest.er1
6170 ac_status=$?
6171 grep -v '^ *+' conftest.er1 >conftest.err
6172 rm -f conftest.er1
6173 cat conftest.err >&5
6174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } && {
6176 test -z "$ac_c_werror_flag" ||
6177 test ! -s conftest.err
6178 } && test -s conftest.$ac_objext; then
6179 ac_cv_struct_tm=time.h
6180 else
6181 $as_echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6184 ac_cv_struct_tm=sys/time.h
6187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6190 $as_echo "$ac_cv_struct_tm" >&6; }
6191 if test $ac_cv_struct_tm = sys/time.h; then
6193 cat >>confdefs.h <<\_ACEOF
6194 #define TM_IN_SYS_TIME 1
6195 _ACEOF
6199 { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6200 $as_echo_n "checking for boolean... " >&6; }
6201 if test "${ac_cv_type_boolean+set}" = set; then
6202 $as_echo_n "(cached) " >&6
6203 else
6204 ac_cv_type_boolean=no
6205 cat >conftest.$ac_ext <<_ACEOF
6206 /* confdefs.h. */
6207 _ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6213 main ()
6215 if (sizeof (boolean))
6216 return 0;
6218 return 0;
6220 _ACEOF
6221 rm -f conftest.$ac_objext
6222 if { (ac_try="$ac_compile"
6223 case "(($ac_try" in
6224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6225 *) ac_try_echo=$ac_try;;
6226 esac
6227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6228 $as_echo "$ac_try_echo") >&5
6229 (eval "$ac_compile") 2>conftest.er1
6230 ac_status=$?
6231 grep -v '^ *+' conftest.er1 >conftest.err
6232 rm -f conftest.er1
6233 cat conftest.err >&5
6234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); } && {
6236 test -z "$ac_c_werror_flag" ||
6237 test ! -s conftest.err
6238 } && test -s conftest.$ac_objext; then
6239 cat >conftest.$ac_ext <<_ACEOF
6240 /* confdefs.h. */
6241 _ACEOF
6242 cat confdefs.h >>conftest.$ac_ext
6243 cat >>conftest.$ac_ext <<_ACEOF
6244 /* end confdefs.h. */
6245 $ac_includes_default
6247 main ()
6249 if (sizeof ((boolean)))
6250 return 0;
6252 return 0;
6254 _ACEOF
6255 rm -f conftest.$ac_objext
6256 if { (ac_try="$ac_compile"
6257 case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260 esac
6261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6262 $as_echo "$ac_try_echo") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest.$ac_objext; then
6274 else
6275 $as_echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 ac_cv_type_boolean=yes
6281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 else
6283 $as_echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6292 $as_echo "$ac_cv_type_boolean" >&6; }
6293 if test "x$ac_cv_type_boolean" = x""yes; then
6295 else
6297 cat >>confdefs.h <<_ACEOF
6298 #define boolean int
6299 _ACEOF
6302 #needed for jpeglib
6318 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6320 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6321 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6322 $as_echo_n "checking for $ac_func... " >&6; }
6323 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6324 $as_echo_n "(cached) " >&6
6325 else
6326 cat >conftest.$ac_ext <<_ACEOF
6327 /* confdefs.h. */
6328 _ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6334 #define $ac_func innocuous_$ac_func
6336 /* System header to define __stub macros and hopefully few prototypes,
6337 which can conflict with char $ac_func (); below.
6338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6339 <limits.h> exists even on freestanding compilers. */
6341 #ifdef __STDC__
6342 # include <limits.h>
6343 #else
6344 # include <assert.h>
6345 #endif
6347 #undef $ac_func
6349 /* Override any GCC internal prototype to avoid an error.
6350 Use char because int might match the return type of a GCC
6351 builtin and then its argument prototype would still apply. */
6352 #ifdef __cplusplus
6353 extern "C"
6354 #endif
6355 char $ac_func ();
6356 /* The GNU C library defines this for functions which it implements
6357 to always fail with ENOSYS. Some functions are actually named
6358 something starting with __ and the normal name is an alias. */
6359 #if defined __stub_$ac_func || defined __stub___$ac_func
6360 choke me
6361 #endif
6364 main ()
6366 return $ac_func ();
6368 return 0;
6370 _ACEOF
6371 rm -f conftest.$ac_objext conftest$ac_exeext
6372 if { (ac_try="$ac_link"
6373 case "(($ac_try" in
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6376 esac
6377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6378 $as_echo "$ac_try_echo") >&5
6379 (eval "$ac_link") 2>conftest.er1
6380 ac_status=$?
6381 grep -v '^ *+' conftest.er1 >conftest.err
6382 rm -f conftest.er1
6383 cat conftest.err >&5
6384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); } && {
6386 test -z "$ac_c_werror_flag" ||
6387 test ! -s conftest.err
6388 } && test -s conftest$ac_exeext && {
6389 test "$cross_compiling" = yes ||
6390 $as_test_x conftest$ac_exeext
6391 }; then
6392 eval "$as_ac_var=yes"
6393 else
6394 $as_echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 eval "$as_ac_var=no"
6400 rm -rf conftest.dSYM
6401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6402 conftest$ac_exeext conftest.$ac_ext
6404 ac_res=`eval 'as_val=${'$as_ac_var'}
6405 $as_echo "$as_val"'`
6406 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6407 $as_echo "$ac_res" >&6; }
6408 as_val=`eval 'as_val=${'$as_ac_var'}
6409 $as_echo "$as_val"'`
6410 if test "x$as_val" = x""yes; then
6411 cat >>confdefs.h <<_ACEOF
6412 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6413 _ACEOF
6416 done
6419 # The cast to long int works around a bug in the HP C Compiler
6420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6422 # This bug is HP SR number 8606223364.
6423 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6424 $as_echo_n "checking size of signed char... " >&6; }
6425 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6426 $as_echo_n "(cached) " >&6
6427 else
6428 if test "$cross_compiling" = yes; then
6429 # Depending upon the size, compute the lo and hi bounds.
6430 cat >conftest.$ac_ext <<_ACEOF
6431 /* confdefs.h. */
6432 _ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 $ac_includes_default
6438 main ()
6440 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];
6441 test_array [0] = 0
6444 return 0;
6446 _ACEOF
6447 rm -f conftest.$ac_objext
6448 if { (ac_try="$ac_compile"
6449 case "(($ac_try" in
6450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6451 *) ac_try_echo=$ac_try;;
6452 esac
6453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6454 $as_echo "$ac_try_echo") >&5
6455 (eval "$ac_compile") 2>conftest.er1
6456 ac_status=$?
6457 grep -v '^ *+' conftest.er1 >conftest.err
6458 rm -f conftest.er1
6459 cat conftest.err >&5
6460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } && {
6462 test -z "$ac_c_werror_flag" ||
6463 test ! -s conftest.err
6464 } && test -s conftest.$ac_objext; then
6465 ac_lo=0 ac_mid=0
6466 while :; do
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 $ac_includes_default
6475 main ()
6477 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6478 test_array [0] = 0
6481 return 0;
6483 _ACEOF
6484 rm -f conftest.$ac_objext
6485 if { (ac_try="$ac_compile"
6486 case "(($ac_try" in
6487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6488 *) ac_try_echo=$ac_try;;
6489 esac
6490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6491 $as_echo "$ac_try_echo") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest.$ac_objext; then
6502 ac_hi=$ac_mid; break
6503 else
6504 $as_echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6507 ac_lo=`expr $ac_mid + 1`
6508 if test $ac_lo -le $ac_mid; then
6509 ac_lo= ac_hi=
6510 break
6512 ac_mid=`expr 2 '*' $ac_mid + 1`
6515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 done
6517 else
6518 $as_echo "$as_me: failed program was:" >&5
6519 sed 's/^/| /' conftest.$ac_ext >&5
6521 cat >conftest.$ac_ext <<_ACEOF
6522 /* confdefs.h. */
6523 _ACEOF
6524 cat confdefs.h >>conftest.$ac_ext
6525 cat >>conftest.$ac_ext <<_ACEOF
6526 /* end confdefs.h. */
6527 $ac_includes_default
6529 main ()
6531 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6532 test_array [0] = 0
6535 return 0;
6537 _ACEOF
6538 rm -f conftest.$ac_objext
6539 if { (ac_try="$ac_compile"
6540 case "(($ac_try" in
6541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6542 *) ac_try_echo=$ac_try;;
6543 esac
6544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6545 $as_echo "$ac_try_echo") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest.$ac_objext; then
6556 ac_hi=-1 ac_mid=-1
6557 while :; do
6558 cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h. */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6564 $ac_includes_default
6566 main ()
6568 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6569 test_array [0] = 0
6572 return 0;
6574 _ACEOF
6575 rm -f conftest.$ac_objext
6576 if { (ac_try="$ac_compile"
6577 case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6580 esac
6581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6582 $as_echo "$ac_try_echo") >&5
6583 (eval "$ac_compile") 2>conftest.er1
6584 ac_status=$?
6585 grep -v '^ *+' conftest.er1 >conftest.err
6586 rm -f conftest.er1
6587 cat conftest.err >&5
6588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } && {
6590 test -z "$ac_c_werror_flag" ||
6591 test ! -s conftest.err
6592 } && test -s conftest.$ac_objext; then
6593 ac_lo=$ac_mid; break
6594 else
6595 $as_echo "$as_me: failed program was:" >&5
6596 sed 's/^/| /' conftest.$ac_ext >&5
6598 ac_hi=`expr '(' $ac_mid ')' - 1`
6599 if test $ac_mid -le $ac_hi; then
6600 ac_lo= ac_hi=
6601 break
6603 ac_mid=`expr 2 '*' $ac_mid`
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 done
6608 else
6609 $as_echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6612 ac_lo= ac_hi=
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 # Binary search between lo and hi bounds.
6620 while test "x$ac_lo" != "x$ac_hi"; do
6621 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6622 cat >conftest.$ac_ext <<_ACEOF
6623 /* confdefs.h. */
6624 _ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 $ac_includes_default
6630 main ()
6632 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6633 test_array [0] = 0
6636 return 0;
6638 _ACEOF
6639 rm -f conftest.$ac_objext
6640 if { (ac_try="$ac_compile"
6641 case "(($ac_try" in
6642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6643 *) ac_try_echo=$ac_try;;
6644 esac
6645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6646 $as_echo "$ac_try_echo") >&5
6647 (eval "$ac_compile") 2>conftest.er1
6648 ac_status=$?
6649 grep -v '^ *+' conftest.er1 >conftest.err
6650 rm -f conftest.er1
6651 cat conftest.err >&5
6652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && {
6654 test -z "$ac_c_werror_flag" ||
6655 test ! -s conftest.err
6656 } && test -s conftest.$ac_objext; then
6657 ac_hi=$ac_mid
6658 else
6659 $as_echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6662 ac_lo=`expr '(' $ac_mid ')' + 1`
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 done
6667 case $ac_lo in
6668 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6669 '') if test "$ac_cv_type_signed_char" = yes; then
6670 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6672 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6673 See \`config.log' for more details." >&5
6674 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6675 See \`config.log' for more details." >&2;}
6676 { (exit 77); exit 77; }; }; }
6677 else
6678 ac_cv_sizeof_signed_char=0
6679 fi ;;
6680 esac
6681 else
6682 cat >conftest.$ac_ext <<_ACEOF
6683 /* confdefs.h. */
6684 _ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 $ac_includes_default
6689 static long int longval () { return (long int) (sizeof (signed char)); }
6690 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6691 #include <stdio.h>
6692 #include <stdlib.h>
6694 main ()
6697 FILE *f = fopen ("conftest.val", "w");
6698 if (! f)
6699 return 1;
6700 if (((long int) (sizeof (signed char))) < 0)
6702 long int i = longval ();
6703 if (i != ((long int) (sizeof (signed char))))
6704 return 1;
6705 fprintf (f, "%ld", i);
6707 else
6709 unsigned long int i = ulongval ();
6710 if (i != ((long int) (sizeof (signed char))))
6711 return 1;
6712 fprintf (f, "%lu", i);
6714 /* Do not output a trailing newline, as this causes \r\n confusion
6715 on some platforms. */
6716 return ferror (f) || fclose (f) != 0;
6719 return 0;
6721 _ACEOF
6722 rm -f conftest$ac_exeext
6723 if { (ac_try="$ac_link"
6724 case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6727 esac
6728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6729 $as_echo "$ac_try_echo") >&5
6730 (eval "$ac_link") 2>&5
6731 ac_status=$?
6732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6734 { (case "(($ac_try" in
6735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6736 *) ac_try_echo=$ac_try;;
6737 esac
6738 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6739 $as_echo "$ac_try_echo") >&5
6740 (eval "$ac_try") 2>&5
6741 ac_status=$?
6742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); }; }; then
6744 ac_cv_sizeof_signed_char=`cat conftest.val`
6745 else
6746 $as_echo "$as_me: program exited with status $ac_status" >&5
6747 $as_echo "$as_me: failed program was:" >&5
6748 sed 's/^/| /' conftest.$ac_ext >&5
6750 ( exit $ac_status )
6751 if test "$ac_cv_type_signed_char" = yes; then
6752 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6754 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6755 See \`config.log' for more details." >&5
6756 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6757 See \`config.log' for more details." >&2;}
6758 { (exit 77); exit 77; }; }; }
6759 else
6760 ac_cv_sizeof_signed_char=0
6763 rm -rf conftest.dSYM
6764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6766 rm -f conftest.val
6768 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6769 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6773 cat >>confdefs.h <<_ACEOF
6774 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6775 _ACEOF
6778 # The cast to long int works around a bug in the HP C Compiler
6779 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6780 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6781 # This bug is HP SR number 8606223364.
6782 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6783 $as_echo_n "checking size of signed short... " >&6; }
6784 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6785 $as_echo_n "(cached) " >&6
6786 else
6787 if test "$cross_compiling" = yes; then
6788 # Depending upon the size, compute the lo and hi bounds.
6789 cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h. */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 $ac_includes_default
6797 main ()
6799 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6800 test_array [0] = 0
6803 return 0;
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (ac_try="$ac_compile"
6808 case "(($ac_try" in
6809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810 *) ac_try_echo=$ac_try;;
6811 esac
6812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6813 $as_echo "$ac_try_echo") >&5
6814 (eval "$ac_compile") 2>conftest.er1
6815 ac_status=$?
6816 grep -v '^ *+' conftest.er1 >conftest.err
6817 rm -f conftest.er1
6818 cat conftest.err >&5
6819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && {
6821 test -z "$ac_c_werror_flag" ||
6822 test ! -s conftest.err
6823 } && test -s conftest.$ac_objext; then
6824 ac_lo=0 ac_mid=0
6825 while :; do
6826 cat >conftest.$ac_ext <<_ACEOF
6827 /* confdefs.h. */
6828 _ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6832 $ac_includes_default
6834 main ()
6836 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6837 test_array [0] = 0
6840 return 0;
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (ac_try="$ac_compile"
6845 case "(($ac_try" in
6846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847 *) ac_try_echo=$ac_try;;
6848 esac
6849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6850 $as_echo "$ac_try_echo") >&5
6851 (eval "$ac_compile") 2>conftest.er1
6852 ac_status=$?
6853 grep -v '^ *+' conftest.er1 >conftest.err
6854 rm -f conftest.er1
6855 cat conftest.err >&5
6856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } && {
6858 test -z "$ac_c_werror_flag" ||
6859 test ! -s conftest.err
6860 } && test -s conftest.$ac_objext; then
6861 ac_hi=$ac_mid; break
6862 else
6863 $as_echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6866 ac_lo=`expr $ac_mid + 1`
6867 if test $ac_lo -le $ac_mid; then
6868 ac_lo= ac_hi=
6869 break
6871 ac_mid=`expr 2 '*' $ac_mid + 1`
6874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6875 done
6876 else
6877 $as_echo "$as_me: failed program was:" >&5
6878 sed 's/^/| /' conftest.$ac_ext >&5
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 $ac_includes_default
6888 main ()
6890 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6891 test_array [0] = 0
6894 return 0;
6896 _ACEOF
6897 rm -f conftest.$ac_objext
6898 if { (ac_try="$ac_compile"
6899 case "(($ac_try" in
6900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6902 esac
6903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6904 $as_echo "$ac_try_echo") >&5
6905 (eval "$ac_compile") 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && {
6912 test -z "$ac_c_werror_flag" ||
6913 test ! -s conftest.err
6914 } && test -s conftest.$ac_objext; then
6915 ac_hi=-1 ac_mid=-1
6916 while :; do
6917 cat >conftest.$ac_ext <<_ACEOF
6918 /* confdefs.h. */
6919 _ACEOF
6920 cat confdefs.h >>conftest.$ac_ext
6921 cat >>conftest.$ac_ext <<_ACEOF
6922 /* end confdefs.h. */
6923 $ac_includes_default
6925 main ()
6927 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6928 test_array [0] = 0
6931 return 0;
6933 _ACEOF
6934 rm -f conftest.$ac_objext
6935 if { (ac_try="$ac_compile"
6936 case "(($ac_try" in
6937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6938 *) ac_try_echo=$ac_try;;
6939 esac
6940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6941 $as_echo "$ac_try_echo") >&5
6942 (eval "$ac_compile") 2>conftest.er1
6943 ac_status=$?
6944 grep -v '^ *+' conftest.er1 >conftest.err
6945 rm -f conftest.er1
6946 cat conftest.err >&5
6947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6948 (exit $ac_status); } && {
6949 test -z "$ac_c_werror_flag" ||
6950 test ! -s conftest.err
6951 } && test -s conftest.$ac_objext; then
6952 ac_lo=$ac_mid; break
6953 else
6954 $as_echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6957 ac_hi=`expr '(' $ac_mid ')' - 1`
6958 if test $ac_mid -le $ac_hi; then
6959 ac_lo= ac_hi=
6960 break
6962 ac_mid=`expr 2 '*' $ac_mid`
6965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 done
6967 else
6968 $as_echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6971 ac_lo= ac_hi=
6974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6978 # Binary search between lo and hi bounds.
6979 while test "x$ac_lo" != "x$ac_hi"; do
6980 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6981 cat >conftest.$ac_ext <<_ACEOF
6982 /* confdefs.h. */
6983 _ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 $ac_includes_default
6989 main ()
6991 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6992 test_array [0] = 0
6995 return 0;
6997 _ACEOF
6998 rm -f conftest.$ac_objext
6999 if { (ac_try="$ac_compile"
7000 case "(($ac_try" in
7001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002 *) ac_try_echo=$ac_try;;
7003 esac
7004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7005 $as_echo "$ac_try_echo") >&5
7006 (eval "$ac_compile") 2>conftest.er1
7007 ac_status=$?
7008 grep -v '^ *+' conftest.er1 >conftest.err
7009 rm -f conftest.er1
7010 cat conftest.err >&5
7011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } && {
7013 test -z "$ac_c_werror_flag" ||
7014 test ! -s conftest.err
7015 } && test -s conftest.$ac_objext; then
7016 ac_hi=$ac_mid
7017 else
7018 $as_echo "$as_me: failed program was:" >&5
7019 sed 's/^/| /' conftest.$ac_ext >&5
7021 ac_lo=`expr '(' $ac_mid ')' + 1`
7024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7025 done
7026 case $ac_lo in
7027 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
7028 '') if test "$ac_cv_type_signed_short" = yes; then
7029 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7031 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7032 See \`config.log' for more details." >&5
7033 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7034 See \`config.log' for more details." >&2;}
7035 { (exit 77); exit 77; }; }; }
7036 else
7037 ac_cv_sizeof_signed_short=0
7038 fi ;;
7039 esac
7040 else
7041 cat >conftest.$ac_ext <<_ACEOF
7042 /* confdefs.h. */
7043 _ACEOF
7044 cat confdefs.h >>conftest.$ac_ext
7045 cat >>conftest.$ac_ext <<_ACEOF
7046 /* end confdefs.h. */
7047 $ac_includes_default
7048 static long int longval () { return (long int) (sizeof (signed short)); }
7049 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
7050 #include <stdio.h>
7051 #include <stdlib.h>
7053 main ()
7056 FILE *f = fopen ("conftest.val", "w");
7057 if (! f)
7058 return 1;
7059 if (((long int) (sizeof (signed short))) < 0)
7061 long int i = longval ();
7062 if (i != ((long int) (sizeof (signed short))))
7063 return 1;
7064 fprintf (f, "%ld", i);
7066 else
7068 unsigned long int i = ulongval ();
7069 if (i != ((long int) (sizeof (signed short))))
7070 return 1;
7071 fprintf (f, "%lu", i);
7073 /* Do not output a trailing newline, as this causes \r\n confusion
7074 on some platforms. */
7075 return ferror (f) || fclose (f) != 0;
7078 return 0;
7080 _ACEOF
7081 rm -f conftest$ac_exeext
7082 if { (ac_try="$ac_link"
7083 case "(($ac_try" in
7084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7085 *) ac_try_echo=$ac_try;;
7086 esac
7087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7088 $as_echo "$ac_try_echo") >&5
7089 (eval "$ac_link") 2>&5
7090 ac_status=$?
7091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7093 { (case "(($ac_try" in
7094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7095 *) ac_try_echo=$ac_try;;
7096 esac
7097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7098 $as_echo "$ac_try_echo") >&5
7099 (eval "$ac_try") 2>&5
7100 ac_status=$?
7101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7103 ac_cv_sizeof_signed_short=`cat conftest.val`
7104 else
7105 $as_echo "$as_me: program exited with status $ac_status" >&5
7106 $as_echo "$as_me: failed program was:" >&5
7107 sed 's/^/| /' conftest.$ac_ext >&5
7109 ( exit $ac_status )
7110 if test "$ac_cv_type_signed_short" = yes; then
7111 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7112 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7113 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7114 See \`config.log' for more details." >&5
7115 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7116 See \`config.log' for more details." >&2;}
7117 { (exit 77); exit 77; }; }; }
7118 else
7119 ac_cv_sizeof_signed_short=0
7122 rm -rf conftest.dSYM
7123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7125 rm -f conftest.val
7127 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
7128 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
7132 cat >>confdefs.h <<_ACEOF
7133 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
7134 _ACEOF
7137 # The cast to long int works around a bug in the HP C Compiler
7138 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7139 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7140 # This bug is HP SR number 8606223364.
7141 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
7142 $as_echo_n "checking size of signed... " >&6; }
7143 if test "${ac_cv_sizeof_signed+set}" = set; then
7144 $as_echo_n "(cached) " >&6
7145 else
7146 if test "$cross_compiling" = yes; then
7147 # Depending upon the size, compute the lo and hi bounds.
7148 cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h. */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7154 $ac_includes_default
7156 main ()
7158 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
7159 test_array [0] = 0
7162 return 0;
7164 _ACEOF
7165 rm -f conftest.$ac_objext
7166 if { (ac_try="$ac_compile"
7167 case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170 esac
7171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7172 $as_echo "$ac_try_echo") >&5
7173 (eval "$ac_compile") 2>conftest.er1
7174 ac_status=$?
7175 grep -v '^ *+' conftest.er1 >conftest.err
7176 rm -f conftest.er1
7177 cat conftest.err >&5
7178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7179 (exit $ac_status); } && {
7180 test -z "$ac_c_werror_flag" ||
7181 test ! -s conftest.err
7182 } && test -s conftest.$ac_objext; then
7183 ac_lo=0 ac_mid=0
7184 while :; do
7185 cat >conftest.$ac_ext <<_ACEOF
7186 /* confdefs.h. */
7187 _ACEOF
7188 cat confdefs.h >>conftest.$ac_ext
7189 cat >>conftest.$ac_ext <<_ACEOF
7190 /* end confdefs.h. */
7191 $ac_includes_default
7193 main ()
7195 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7196 test_array [0] = 0
7199 return 0;
7201 _ACEOF
7202 rm -f conftest.$ac_objext
7203 if { (ac_try="$ac_compile"
7204 case "(($ac_try" in
7205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206 *) ac_try_echo=$ac_try;;
7207 esac
7208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7209 $as_echo "$ac_try_echo") >&5
7210 (eval "$ac_compile") 2>conftest.er1
7211 ac_status=$?
7212 grep -v '^ *+' conftest.er1 >conftest.err
7213 rm -f conftest.er1
7214 cat conftest.err >&5
7215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); } && {
7217 test -z "$ac_c_werror_flag" ||
7218 test ! -s conftest.err
7219 } && test -s conftest.$ac_objext; then
7220 ac_hi=$ac_mid; break
7221 else
7222 $as_echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7225 ac_lo=`expr $ac_mid + 1`
7226 if test $ac_lo -le $ac_mid; then
7227 ac_lo= ac_hi=
7228 break
7230 ac_mid=`expr 2 '*' $ac_mid + 1`
7233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7234 done
7235 else
7236 $as_echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 $ac_includes_default
7247 main ()
7249 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7250 test_array [0] = 0
7253 return 0;
7255 _ACEOF
7256 rm -f conftest.$ac_objext
7257 if { (ac_try="$ac_compile"
7258 case "(($ac_try" in
7259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7260 *) ac_try_echo=$ac_try;;
7261 esac
7262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7263 $as_echo "$ac_try_echo") >&5
7264 (eval "$ac_compile") 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest.$ac_objext; then
7274 ac_hi=-1 ac_mid=-1
7275 while :; do
7276 cat >conftest.$ac_ext <<_ACEOF
7277 /* confdefs.h. */
7278 _ACEOF
7279 cat confdefs.h >>conftest.$ac_ext
7280 cat >>conftest.$ac_ext <<_ACEOF
7281 /* end confdefs.h. */
7282 $ac_includes_default
7284 main ()
7286 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7287 test_array [0] = 0
7290 return 0;
7292 _ACEOF
7293 rm -f conftest.$ac_objext
7294 if { (ac_try="$ac_compile"
7295 case "(($ac_try" in
7296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7297 *) ac_try_echo=$ac_try;;
7298 esac
7299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7300 $as_echo "$ac_try_echo") >&5
7301 (eval "$ac_compile") 2>conftest.er1
7302 ac_status=$?
7303 grep -v '^ *+' conftest.er1 >conftest.err
7304 rm -f conftest.er1
7305 cat conftest.err >&5
7306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); } && {
7308 test -z "$ac_c_werror_flag" ||
7309 test ! -s conftest.err
7310 } && test -s conftest.$ac_objext; then
7311 ac_lo=$ac_mid; break
7312 else
7313 $as_echo "$as_me: failed program was:" >&5
7314 sed 's/^/| /' conftest.$ac_ext >&5
7316 ac_hi=`expr '(' $ac_mid ')' - 1`
7317 if test $ac_mid -le $ac_hi; then
7318 ac_lo= ac_hi=
7319 break
7321 ac_mid=`expr 2 '*' $ac_mid`
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 done
7326 else
7327 $as_echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7330 ac_lo= ac_hi=
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 # Binary search between lo and hi bounds.
7338 while test "x$ac_lo" != "x$ac_hi"; do
7339 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7340 cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h. */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 $ac_includes_default
7348 main ()
7350 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7351 test_array [0] = 0
7354 return 0;
7356 _ACEOF
7357 rm -f conftest.$ac_objext
7358 if { (ac_try="$ac_compile"
7359 case "(($ac_try" in
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7362 esac
7363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7364 $as_echo "$ac_try_echo") >&5
7365 (eval "$ac_compile") 2>conftest.er1
7366 ac_status=$?
7367 grep -v '^ *+' conftest.er1 >conftest.err
7368 rm -f conftest.er1
7369 cat conftest.err >&5
7370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); } && {
7372 test -z "$ac_c_werror_flag" ||
7373 test ! -s conftest.err
7374 } && test -s conftest.$ac_objext; then
7375 ac_hi=$ac_mid
7376 else
7377 $as_echo "$as_me: failed program was:" >&5
7378 sed 's/^/| /' conftest.$ac_ext >&5
7380 ac_lo=`expr '(' $ac_mid ')' + 1`
7383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7384 done
7385 case $ac_lo in
7386 ?*) ac_cv_sizeof_signed=$ac_lo;;
7387 '') if test "$ac_cv_type_signed" = yes; then
7388 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7390 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7391 See \`config.log' for more details." >&5
7392 $as_echo "$as_me: error: cannot compute sizeof (signed)
7393 See \`config.log' for more details." >&2;}
7394 { (exit 77); exit 77; }; }; }
7395 else
7396 ac_cv_sizeof_signed=0
7397 fi ;;
7398 esac
7399 else
7400 cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h. */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7406 $ac_includes_default
7407 static long int longval () { return (long int) (sizeof (signed)); }
7408 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7409 #include <stdio.h>
7410 #include <stdlib.h>
7412 main ()
7415 FILE *f = fopen ("conftest.val", "w");
7416 if (! f)
7417 return 1;
7418 if (((long int) (sizeof (signed))) < 0)
7420 long int i = longval ();
7421 if (i != ((long int) (sizeof (signed))))
7422 return 1;
7423 fprintf (f, "%ld", i);
7425 else
7427 unsigned long int i = ulongval ();
7428 if (i != ((long int) (sizeof (signed))))
7429 return 1;
7430 fprintf (f, "%lu", i);
7432 /* Do not output a trailing newline, as this causes \r\n confusion
7433 on some platforms. */
7434 return ferror (f) || fclose (f) != 0;
7437 return 0;
7439 _ACEOF
7440 rm -f conftest$ac_exeext
7441 if { (ac_try="$ac_link"
7442 case "(($ac_try" in
7443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444 *) ac_try_echo=$ac_try;;
7445 esac
7446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7447 $as_echo "$ac_try_echo") >&5
7448 (eval "$ac_link") 2>&5
7449 ac_status=$?
7450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7452 { (case "(($ac_try" in
7453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454 *) ac_try_echo=$ac_try;;
7455 esac
7456 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7457 $as_echo "$ac_try_echo") >&5
7458 (eval "$ac_try") 2>&5
7459 ac_status=$?
7460 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7462 ac_cv_sizeof_signed=`cat conftest.val`
7463 else
7464 $as_echo "$as_me: program exited with status $ac_status" >&5
7465 $as_echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ( exit $ac_status )
7469 if test "$ac_cv_type_signed" = yes; then
7470 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7472 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7473 See \`config.log' for more details." >&5
7474 $as_echo "$as_me: error: cannot compute sizeof (signed)
7475 See \`config.log' for more details." >&2;}
7476 { (exit 77); exit 77; }; }; }
7477 else
7478 ac_cv_sizeof_signed=0
7481 rm -rf conftest.dSYM
7482 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7484 rm -f conftest.val
7486 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7487 $as_echo "$ac_cv_sizeof_signed" >&6; }
7491 cat >>confdefs.h <<_ACEOF
7492 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7493 _ACEOF
7496 # The cast to long int works around a bug in the HP C Compiler
7497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7499 # This bug is HP SR number 8606223364.
7500 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7501 $as_echo_n "checking size of signed long long... " >&6; }
7502 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7503 $as_echo_n "(cached) " >&6
7504 else
7505 if test "$cross_compiling" = yes; then
7506 # Depending upon the size, compute the lo and hi bounds.
7507 cat >conftest.$ac_ext <<_ACEOF
7508 /* confdefs.h. */
7509 _ACEOF
7510 cat confdefs.h >>conftest.$ac_ext
7511 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 $ac_includes_default
7515 main ()
7517 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7518 test_array [0] = 0
7521 return 0;
7523 _ACEOF
7524 rm -f conftest.$ac_objext
7525 if { (ac_try="$ac_compile"
7526 case "(($ac_try" in
7527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7528 *) ac_try_echo=$ac_try;;
7529 esac
7530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7531 $as_echo "$ac_try_echo") >&5
7532 (eval "$ac_compile") 2>conftest.er1
7533 ac_status=$?
7534 grep -v '^ *+' conftest.er1 >conftest.err
7535 rm -f conftest.er1
7536 cat conftest.err >&5
7537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } && {
7539 test -z "$ac_c_werror_flag" ||
7540 test ! -s conftest.err
7541 } && test -s conftest.$ac_objext; then
7542 ac_lo=0 ac_mid=0
7543 while :; do
7544 cat >conftest.$ac_ext <<_ACEOF
7545 /* confdefs.h. */
7546 _ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 $ac_includes_default
7552 main ()
7554 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7555 test_array [0] = 0
7558 return 0;
7560 _ACEOF
7561 rm -f conftest.$ac_objext
7562 if { (ac_try="$ac_compile"
7563 case "(($ac_try" in
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7566 esac
7567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7568 $as_echo "$ac_try_echo") >&5
7569 (eval "$ac_compile") 2>conftest.er1
7570 ac_status=$?
7571 grep -v '^ *+' conftest.er1 >conftest.err
7572 rm -f conftest.er1
7573 cat conftest.err >&5
7574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7575 (exit $ac_status); } && {
7576 test -z "$ac_c_werror_flag" ||
7577 test ! -s conftest.err
7578 } && test -s conftest.$ac_objext; then
7579 ac_hi=$ac_mid; break
7580 else
7581 $as_echo "$as_me: failed program was:" >&5
7582 sed 's/^/| /' conftest.$ac_ext >&5
7584 ac_lo=`expr $ac_mid + 1`
7585 if test $ac_lo -le $ac_mid; then
7586 ac_lo= ac_hi=
7587 break
7589 ac_mid=`expr 2 '*' $ac_mid + 1`
7592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 done
7594 else
7595 $as_echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7598 cat >conftest.$ac_ext <<_ACEOF
7599 /* confdefs.h. */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7604 $ac_includes_default
7606 main ()
7608 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7609 test_array [0] = 0
7612 return 0;
7614 _ACEOF
7615 rm -f conftest.$ac_objext
7616 if { (ac_try="$ac_compile"
7617 case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7620 esac
7621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7622 $as_echo "$ac_try_echo") >&5
7623 (eval "$ac_compile") 2>conftest.er1
7624 ac_status=$?
7625 grep -v '^ *+' conftest.er1 >conftest.err
7626 rm -f conftest.er1
7627 cat conftest.err >&5
7628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } && {
7630 test -z "$ac_c_werror_flag" ||
7631 test ! -s conftest.err
7632 } && test -s conftest.$ac_objext; then
7633 ac_hi=-1 ac_mid=-1
7634 while :; do
7635 cat >conftest.$ac_ext <<_ACEOF
7636 /* confdefs.h. */
7637 _ACEOF
7638 cat confdefs.h >>conftest.$ac_ext
7639 cat >>conftest.$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7641 $ac_includes_default
7643 main ()
7645 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7646 test_array [0] = 0
7649 return 0;
7651 _ACEOF
7652 rm -f conftest.$ac_objext
7653 if { (ac_try="$ac_compile"
7654 case "(($ac_try" in
7655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7657 esac
7658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7659 $as_echo "$ac_try_echo") >&5
7660 (eval "$ac_compile") 2>conftest.er1
7661 ac_status=$?
7662 grep -v '^ *+' conftest.er1 >conftest.err
7663 rm -f conftest.er1
7664 cat conftest.err >&5
7665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); } && {
7667 test -z "$ac_c_werror_flag" ||
7668 test ! -s conftest.err
7669 } && test -s conftest.$ac_objext; then
7670 ac_lo=$ac_mid; break
7671 else
7672 $as_echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7675 ac_hi=`expr '(' $ac_mid ')' - 1`
7676 if test $ac_mid -le $ac_hi; then
7677 ac_lo= ac_hi=
7678 break
7680 ac_mid=`expr 2 '*' $ac_mid`
7683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7684 done
7685 else
7686 $as_echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7689 ac_lo= ac_hi=
7692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7696 # Binary search between lo and hi bounds.
7697 while test "x$ac_lo" != "x$ac_hi"; do
7698 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7699 cat >conftest.$ac_ext <<_ACEOF
7700 /* confdefs.h. */
7701 _ACEOF
7702 cat confdefs.h >>conftest.$ac_ext
7703 cat >>conftest.$ac_ext <<_ACEOF
7704 /* end confdefs.h. */
7705 $ac_includes_default
7707 main ()
7709 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7710 test_array [0] = 0
7713 return 0;
7715 _ACEOF
7716 rm -f conftest.$ac_objext
7717 if { (ac_try="$ac_compile"
7718 case "(($ac_try" in
7719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720 *) ac_try_echo=$ac_try;;
7721 esac
7722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7723 $as_echo "$ac_try_echo") >&5
7724 (eval "$ac_compile") 2>conftest.er1
7725 ac_status=$?
7726 grep -v '^ *+' conftest.er1 >conftest.err
7727 rm -f conftest.er1
7728 cat conftest.err >&5
7729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } && {
7731 test -z "$ac_c_werror_flag" ||
7732 test ! -s conftest.err
7733 } && test -s conftest.$ac_objext; then
7734 ac_hi=$ac_mid
7735 else
7736 $as_echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7739 ac_lo=`expr '(' $ac_mid ')' + 1`
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 done
7744 case $ac_lo in
7745 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7746 '') if test "$ac_cv_type_signed_long_long" = yes; then
7747 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7749 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7750 See \`config.log' for more details." >&5
7751 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7752 See \`config.log' for more details." >&2;}
7753 { (exit 77); exit 77; }; }; }
7754 else
7755 ac_cv_sizeof_signed_long_long=0
7756 fi ;;
7757 esac
7758 else
7759 cat >conftest.$ac_ext <<_ACEOF
7760 /* confdefs.h. */
7761 _ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h. */
7765 $ac_includes_default
7766 static long int longval () { return (long int) (sizeof (signed long long)); }
7767 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7768 #include <stdio.h>
7769 #include <stdlib.h>
7771 main ()
7774 FILE *f = fopen ("conftest.val", "w");
7775 if (! f)
7776 return 1;
7777 if (((long int) (sizeof (signed long long))) < 0)
7779 long int i = longval ();
7780 if (i != ((long int) (sizeof (signed long long))))
7781 return 1;
7782 fprintf (f, "%ld", i);
7784 else
7786 unsigned long int i = ulongval ();
7787 if (i != ((long int) (sizeof (signed long long))))
7788 return 1;
7789 fprintf (f, "%lu", i);
7791 /* Do not output a trailing newline, as this causes \r\n confusion
7792 on some platforms. */
7793 return ferror (f) || fclose (f) != 0;
7796 return 0;
7798 _ACEOF
7799 rm -f conftest$ac_exeext
7800 if { (ac_try="$ac_link"
7801 case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804 esac
7805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7806 $as_echo "$ac_try_echo") >&5
7807 (eval "$ac_link") 2>&5
7808 ac_status=$?
7809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7811 { (case "(($ac_try" in
7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7814 esac
7815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7816 $as_echo "$ac_try_echo") >&5
7817 (eval "$ac_try") 2>&5
7818 ac_status=$?
7819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); }; }; then
7821 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7822 else
7823 $as_echo "$as_me: program exited with status $ac_status" >&5
7824 $as_echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7827 ( exit $ac_status )
7828 if test "$ac_cv_type_signed_long_long" = yes; then
7829 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7830 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7831 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7832 See \`config.log' for more details." >&5
7833 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7834 See \`config.log' for more details." >&2;}
7835 { (exit 77); exit 77; }; }; }
7836 else
7837 ac_cv_sizeof_signed_long_long=0
7840 rm -rf conftest.dSYM
7841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7843 rm -f conftest.val
7845 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7846 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7850 cat >>confdefs.h <<_ACEOF
7851 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7852 _ACEOF
7855 # The cast to long int works around a bug in the HP C Compiler
7856 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7857 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7858 # This bug is HP SR number 8606223364.
7859 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7860 $as_echo_n "checking size of void*... " >&6; }
7861 if test "${ac_cv_sizeof_voidp+set}" = set; then
7862 $as_echo_n "(cached) " >&6
7863 else
7864 if test "$cross_compiling" = yes; then
7865 # Depending upon the size, compute the lo and hi bounds.
7866 cat >conftest.$ac_ext <<_ACEOF
7867 /* confdefs.h. */
7868 _ACEOF
7869 cat confdefs.h >>conftest.$ac_ext
7870 cat >>conftest.$ac_ext <<_ACEOF
7871 /* end confdefs.h. */
7872 $ac_includes_default
7874 main ()
7876 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7877 test_array [0] = 0
7880 return 0;
7882 _ACEOF
7883 rm -f conftest.$ac_objext
7884 if { (ac_try="$ac_compile"
7885 case "(($ac_try" in
7886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7887 *) ac_try_echo=$ac_try;;
7888 esac
7889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7890 $as_echo "$ac_try_echo") >&5
7891 (eval "$ac_compile") 2>conftest.er1
7892 ac_status=$?
7893 grep -v '^ *+' conftest.er1 >conftest.err
7894 rm -f conftest.er1
7895 cat conftest.err >&5
7896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7897 (exit $ac_status); } && {
7898 test -z "$ac_c_werror_flag" ||
7899 test ! -s conftest.err
7900 } && test -s conftest.$ac_objext; then
7901 ac_lo=0 ac_mid=0
7902 while :; do
7903 cat >conftest.$ac_ext <<_ACEOF
7904 /* confdefs.h. */
7905 _ACEOF
7906 cat confdefs.h >>conftest.$ac_ext
7907 cat >>conftest.$ac_ext <<_ACEOF
7908 /* end confdefs.h. */
7909 $ac_includes_default
7911 main ()
7913 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7914 test_array [0] = 0
7917 return 0;
7919 _ACEOF
7920 rm -f conftest.$ac_objext
7921 if { (ac_try="$ac_compile"
7922 case "(($ac_try" in
7923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7924 *) ac_try_echo=$ac_try;;
7925 esac
7926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7927 $as_echo "$ac_try_echo") >&5
7928 (eval "$ac_compile") 2>conftest.er1
7929 ac_status=$?
7930 grep -v '^ *+' conftest.er1 >conftest.err
7931 rm -f conftest.er1
7932 cat conftest.err >&5
7933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest.$ac_objext; then
7938 ac_hi=$ac_mid; break
7939 else
7940 $as_echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 ac_lo=`expr $ac_mid + 1`
7944 if test $ac_lo -le $ac_mid; then
7945 ac_lo= ac_hi=
7946 break
7948 ac_mid=`expr 2 '*' $ac_mid + 1`
7951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7952 done
7953 else
7954 $as_echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7957 cat >conftest.$ac_ext <<_ACEOF
7958 /* confdefs.h. */
7959 _ACEOF
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7963 $ac_includes_default
7965 main ()
7967 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7968 test_array [0] = 0
7971 return 0;
7973 _ACEOF
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7976 case "(($ac_try" in
7977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7978 *) ac_try_echo=$ac_try;;
7979 esac
7980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7981 $as_echo "$ac_try_echo") >&5
7982 (eval "$ac_compile") 2>conftest.er1
7983 ac_status=$?
7984 grep -v '^ *+' conftest.er1 >conftest.err
7985 rm -f conftest.er1
7986 cat conftest.err >&5
7987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } && {
7989 test -z "$ac_c_werror_flag" ||
7990 test ! -s conftest.err
7991 } && test -s conftest.$ac_objext; then
7992 ac_hi=-1 ac_mid=-1
7993 while :; do
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h. */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000 $ac_includes_default
8002 main ()
8004 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
8005 test_array [0] = 0
8008 return 0;
8010 _ACEOF
8011 rm -f conftest.$ac_objext
8012 if { (ac_try="$ac_compile"
8013 case "(($ac_try" in
8014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8015 *) ac_try_echo=$ac_try;;
8016 esac
8017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8018 $as_echo "$ac_try_echo") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 ac_lo=$ac_mid; break
8030 else
8031 $as_echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 ac_hi=`expr '(' $ac_mid ')' - 1`
8035 if test $ac_mid -le $ac_hi; then
8036 ac_lo= ac_hi=
8037 break
8039 ac_mid=`expr 2 '*' $ac_mid`
8042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8043 done
8044 else
8045 $as_echo "$as_me: failed program was:" >&5
8046 sed 's/^/| /' conftest.$ac_ext >&5
8048 ac_lo= ac_hi=
8051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055 # Binary search between lo and hi bounds.
8056 while test "x$ac_lo" != "x$ac_hi"; do
8057 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8058 cat >conftest.$ac_ext <<_ACEOF
8059 /* confdefs.h. */
8060 _ACEOF
8061 cat confdefs.h >>conftest.$ac_ext
8062 cat >>conftest.$ac_ext <<_ACEOF
8063 /* end confdefs.h. */
8064 $ac_includes_default
8066 main ()
8068 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
8069 test_array [0] = 0
8072 return 0;
8074 _ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (ac_try="$ac_compile"
8077 case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8080 esac
8081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8082 $as_echo "$ac_try_echo") >&5
8083 (eval "$ac_compile") 2>conftest.er1
8084 ac_status=$?
8085 grep -v '^ *+' conftest.er1 >conftest.err
8086 rm -f conftest.er1
8087 cat conftest.err >&5
8088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); } && {
8090 test -z "$ac_c_werror_flag" ||
8091 test ! -s conftest.err
8092 } && test -s conftest.$ac_objext; then
8093 ac_hi=$ac_mid
8094 else
8095 $as_echo "$as_me: failed program was:" >&5
8096 sed 's/^/| /' conftest.$ac_ext >&5
8098 ac_lo=`expr '(' $ac_mid ')' + 1`
8101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8102 done
8103 case $ac_lo in
8104 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8105 '') if test "$ac_cv_type_voidp" = yes; then
8106 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8108 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8109 See \`config.log' for more details." >&5
8110 $as_echo "$as_me: error: cannot compute sizeof (void*)
8111 See \`config.log' for more details." >&2;}
8112 { (exit 77); exit 77; }; }; }
8113 else
8114 ac_cv_sizeof_voidp=0
8115 fi ;;
8116 esac
8117 else
8118 cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h. */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8124 $ac_includes_default
8125 static long int longval () { return (long int) (sizeof (void*)); }
8126 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
8127 #include <stdio.h>
8128 #include <stdlib.h>
8130 main ()
8133 FILE *f = fopen ("conftest.val", "w");
8134 if (! f)
8135 return 1;
8136 if (((long int) (sizeof (void*))) < 0)
8138 long int i = longval ();
8139 if (i != ((long int) (sizeof (void*))))
8140 return 1;
8141 fprintf (f, "%ld", i);
8143 else
8145 unsigned long int i = ulongval ();
8146 if (i != ((long int) (sizeof (void*))))
8147 return 1;
8148 fprintf (f, "%lu", i);
8150 /* Do not output a trailing newline, as this causes \r\n confusion
8151 on some platforms. */
8152 return ferror (f) || fclose (f) != 0;
8155 return 0;
8157 _ACEOF
8158 rm -f conftest$ac_exeext
8159 if { (ac_try="$ac_link"
8160 case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163 esac
8164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8165 $as_echo "$ac_try_echo") >&5
8166 (eval "$ac_link") 2>&5
8167 ac_status=$?
8168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8170 { (case "(($ac_try" in
8171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8172 *) ac_try_echo=$ac_try;;
8173 esac
8174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8175 $as_echo "$ac_try_echo") >&5
8176 (eval "$ac_try") 2>&5
8177 ac_status=$?
8178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); }; }; then
8180 ac_cv_sizeof_voidp=`cat conftest.val`
8181 else
8182 $as_echo "$as_me: program exited with status $ac_status" >&5
8183 $as_echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8186 ( exit $ac_status )
8187 if test "$ac_cv_type_voidp" = yes; then
8188 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8190 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8191 See \`config.log' for more details." >&5
8192 $as_echo "$as_me: error: cannot compute sizeof (void*)
8193 See \`config.log' for more details." >&2;}
8194 { (exit 77); exit 77; }; }; }
8195 else
8196 ac_cv_sizeof_voidp=0
8199 rm -rf conftest.dSYM
8200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8202 rm -f conftest.val
8204 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8205 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8209 cat >>confdefs.h <<_ACEOF
8210 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8211 _ACEOF
8217 # Extract the first word of "freetype-config", so it can be a program name with args.
8218 set dummy freetype-config; ac_word=$2
8219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8220 $as_echo_n "checking for $ac_word... " >&6; }
8221 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8222 $as_echo_n "(cached) " >&6
8223 else
8224 case $FREETYPE_CONFIG in
8225 [\\/]* | ?:[\\/]*)
8226 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8231 for as_dir in $as_dummy
8233 IFS=$as_save_IFS
8234 test -z "$as_dir" && as_dir=.
8235 for ac_exec_ext in '' $ac_executable_extensions; do
8236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8237 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8238 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 break 2
8241 done
8242 done
8243 IFS=$as_save_IFS
8246 esac
8248 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8249 if test -n "$FREETYPE_CONFIG"; then
8250 { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8251 $as_echo "$FREETYPE_CONFIG" >&6; }
8252 else
8253 { $as_echo "$as_me:$LINENO: result: no" >&5
8254 $as_echo "no" >&6; }
8259 OLDCPPFLAGS="${CPPFLAGS}"
8260 OLDLIBS="${LIBS}"
8261 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8262 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8263 else if test -d /usr/include/freetype2; then
8264 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8265 else if test -d /usr/local/include/freetype2; then
8266 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8271 if test "x${FREETYPE_CONFIG}" '=' "x";then
8272 # if we didn't find the freetype-config program, we won't
8273 # know where the libs are expected to be. So just blindly
8274 # try to link against them.
8275 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8276 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8277 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8278 $as_echo_n "(cached) " >&6
8279 else
8280 ac_check_lib_save_LIBS=$LIBS
8281 LIBS="-lfreetype $LIBS"
8282 cat >conftest.$ac_ext <<_ACEOF
8283 /* confdefs.h. */
8284 _ACEOF
8285 cat confdefs.h >>conftest.$ac_ext
8286 cat >>conftest.$ac_ext <<_ACEOF
8287 /* end confdefs.h. */
8289 /* Override any GCC internal prototype to avoid an error.
8290 Use char because int might match the return type of a GCC
8291 builtin and then its argument prototype would still apply. */
8292 #ifdef __cplusplus
8293 extern "C"
8294 #endif
8295 char FT_Init_FreeType ();
8297 main ()
8299 return FT_Init_FreeType ();
8301 return 0;
8303 _ACEOF
8304 rm -f conftest.$ac_objext conftest$ac_exeext
8305 if { (ac_try="$ac_link"
8306 case "(($ac_try" in
8307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8308 *) ac_try_echo=$ac_try;;
8309 esac
8310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8311 $as_echo "$ac_try_echo") >&5
8312 (eval "$ac_link") 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } && {
8319 test -z "$ac_c_werror_flag" ||
8320 test ! -s conftest.err
8321 } && test -s conftest$ac_exeext && {
8322 test "$cross_compiling" = yes ||
8323 $as_test_x conftest$ac_exeext
8324 }; then
8325 ac_cv_lib_freetype_FT_Init_FreeType=yes
8326 else
8327 $as_echo "$as_me: failed program was:" >&5
8328 sed 's/^/| /' conftest.$ac_ext >&5
8330 ac_cv_lib_freetype_FT_Init_FreeType=no
8333 rm -rf conftest.dSYM
8334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8335 conftest$ac_exeext conftest.$ac_ext
8336 LIBS=$ac_check_lib_save_LIBS
8338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8339 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8340 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
8341 HAVE_LIB_FREETYPE=1
8347 for ac_header in ft2build.h
8349 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8351 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8352 $as_echo_n "checking for $ac_header... " >&6; }
8353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8354 $as_echo_n "(cached) " >&6
8356 ac_res=`eval 'as_val=${'$as_ac_Header'}
8357 $as_echo "$as_val"'`
8358 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8359 $as_echo "$ac_res" >&6; }
8360 else
8361 # Is the header compilable?
8362 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8363 $as_echo_n "checking $ac_header usability... " >&6; }
8364 cat >conftest.$ac_ext <<_ACEOF
8365 /* confdefs.h. */
8366 _ACEOF
8367 cat confdefs.h >>conftest.$ac_ext
8368 cat >>conftest.$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 $ac_includes_default
8371 #include <$ac_header>
8372 _ACEOF
8373 rm -f conftest.$ac_objext
8374 if { (ac_try="$ac_compile"
8375 case "(($ac_try" in
8376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8378 esac
8379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8380 $as_echo "$ac_try_echo") >&5
8381 (eval "$ac_compile") 2>conftest.er1
8382 ac_status=$?
8383 grep -v '^ *+' conftest.er1 >conftest.err
8384 rm -f conftest.er1
8385 cat conftest.err >&5
8386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } && {
8388 test -z "$ac_c_werror_flag" ||
8389 test ! -s conftest.err
8390 } && test -s conftest.$ac_objext; then
8391 ac_header_compiler=yes
8392 else
8393 $as_echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8396 ac_header_compiler=no
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8401 $as_echo "$ac_header_compiler" >&6; }
8403 # Is the header present?
8404 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8405 $as_echo_n "checking $ac_header presence... " >&6; }
8406 cat >conftest.$ac_ext <<_ACEOF
8407 /* confdefs.h. */
8408 _ACEOF
8409 cat confdefs.h >>conftest.$ac_ext
8410 cat >>conftest.$ac_ext <<_ACEOF
8411 /* end confdefs.h. */
8412 #include <$ac_header>
8413 _ACEOF
8414 if { (ac_try="$ac_cpp conftest.$ac_ext"
8415 case "(($ac_try" in
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8418 esac
8419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8420 $as_echo "$ac_try_echo") >&5
8421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8422 ac_status=$?
8423 grep -v '^ *+' conftest.er1 >conftest.err
8424 rm -f conftest.er1
8425 cat conftest.err >&5
8426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } >/dev/null && {
8428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8429 test ! -s conftest.err
8430 }; then
8431 ac_header_preproc=yes
8432 else
8433 $as_echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8436 ac_header_preproc=no
8439 rm -f conftest.err conftest.$ac_ext
8440 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8441 $as_echo "$ac_header_preproc" >&6; }
8443 # So? What about this header?
8444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8445 yes:no: )
8446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8447 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8449 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8450 ac_header_preproc=yes
8452 no:yes:* )
8453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8454 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8455 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8456 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8457 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8458 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8459 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8460 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8461 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8462 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8463 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8464 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8467 esac
8468 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8469 $as_echo_n "checking for $ac_header... " >&6; }
8470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8471 $as_echo_n "(cached) " >&6
8472 else
8473 eval "$as_ac_Header=\$ac_header_preproc"
8475 ac_res=`eval 'as_val=${'$as_ac_Header'}
8476 $as_echo "$as_val"'`
8477 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8478 $as_echo "$ac_res" >&6; }
8481 as_val=`eval 'as_val=${'$as_ac_Header'}
8482 $as_echo "$as_val"'`
8483 if test "x$as_val" = x""yes; then
8484 cat >>confdefs.h <<_ACEOF
8485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8486 _ACEOF
8487 HAVE_FT2BUILD_H=1
8490 done
8492 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8494 for ac_header in freetype/freetype.h
8496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8498 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8499 $as_echo_n "checking for $ac_header... " >&6; }
8500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8501 $as_echo_n "(cached) " >&6
8503 ac_res=`eval 'as_val=${'$as_ac_Header'}
8504 $as_echo "$as_val"'`
8505 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8506 $as_echo "$ac_res" >&6; }
8507 else
8508 # Is the header compilable?
8509 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8510 $as_echo_n "checking $ac_header usability... " >&6; }
8511 cat >conftest.$ac_ext <<_ACEOF
8512 /* confdefs.h. */
8513 _ACEOF
8514 cat confdefs.h >>conftest.$ac_ext
8515 cat >>conftest.$ac_ext <<_ACEOF
8516 /* end confdefs.h. */
8517 $ac_includes_default
8518 #include <$ac_header>
8519 _ACEOF
8520 rm -f conftest.$ac_objext
8521 if { (ac_try="$ac_compile"
8522 case "(($ac_try" in
8523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8525 esac
8526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8527 $as_echo "$ac_try_echo") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8529 ac_status=$?
8530 grep -v '^ *+' conftest.er1 >conftest.err
8531 rm -f conftest.er1
8532 cat conftest.err >&5
8533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8538 ac_header_compiler=yes
8539 else
8540 $as_echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8543 ac_header_compiler=no
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8548 $as_echo "$ac_header_compiler" >&6; }
8550 # Is the header present?
8551 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8552 $as_echo_n "checking $ac_header presence... " >&6; }
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h. */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 #include <$ac_header>
8560 _ACEOF
8561 if { (ac_try="$ac_cpp conftest.$ac_ext"
8562 case "(($ac_try" in
8563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8564 *) ac_try_echo=$ac_try;;
8565 esac
8566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8567 $as_echo "$ac_try_echo") >&5
8568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8569 ac_status=$?
8570 grep -v '^ *+' conftest.er1 >conftest.err
8571 rm -f conftest.er1
8572 cat conftest.err >&5
8573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } >/dev/null && {
8575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 }; then
8578 ac_header_preproc=yes
8579 else
8580 $as_echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8583 ac_header_preproc=no
8586 rm -f conftest.err conftest.$ac_ext
8587 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8588 $as_echo "$ac_header_preproc" >&6; }
8590 # So? What about this header?
8591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8592 yes:no: )
8593 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8594 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8596 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8597 ac_header_preproc=yes
8599 no:yes:* )
8600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8601 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8603 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8605 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8607 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8609 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8611 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8614 esac
8615 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8616 $as_echo_n "checking for $ac_header... " >&6; }
8617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8618 $as_echo_n "(cached) " >&6
8619 else
8620 eval "$as_ac_Header=\$ac_header_preproc"
8622 ac_res=`eval 'as_val=${'$as_ac_Header'}
8623 $as_echo "$as_val"'`
8624 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8625 $as_echo "$ac_res" >&6; }
8628 as_val=`eval 'as_val=${'$as_ac_Header'}
8629 $as_echo "$as_val"'`
8630 if test "x$as_val" = x""yes; then
8631 cat >>confdefs.h <<_ACEOF
8632 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8633 _ACEOF
8634 HAVE_FREETYPE_FREETYPE_H=1
8637 done
8641 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8642 "x${FREETYPE_CONFIG}" '!=' "x";then
8643 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8644 HAVE_FREETYPE=1
8646 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8647 HAVE_FREETYPE=1
8651 if test "x${HAVE_FREETYPE}" = "x1"; then
8652 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8653 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8654 else
8655 LIBS="$LIBS -lfreetype"
8658 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8659 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8662 { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8663 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8665 cat > conftest.c << EOF
8666 $HAVE_FT2BUILD_H_DEFINE
8668 #ifdef HAVE_FT2BUILD_H
8669 #include <ft2build.h>
8670 #include FT_FREETYPE_H
8671 #include FT_GLYPH_H
8672 #include FT_SIZES_H
8673 #include FT_SFNT_NAMES_H
8674 #include FT_TRUETYPE_IDS_H
8675 #include FT_OUTLINE_H
8676 #else
8677 #include <freetype/freetype.h>
8678 #include <freetype/ftglyph.h>
8679 #include <freetype/ftsizes.h>
8680 #include <freetype/ftsnames.h>
8681 #include <freetype/ttnameid.h>
8682 #include <freetype/ftoutln.h>
8683 #endif
8685 int main()
8687 FT_Library ftlibrary;
8688 FT_Face face;
8689 FT_Error error;
8690 FT_ULong charcode;
8691 FT_UInt gindex;
8692 FT_Glyph glyph;
8693 FT_BBox bbox;
8694 FT_Matrix matrix;
8695 FT_UInt i;
8696 char* name = 0;
8697 char italic, bold;
8699 FT_Init_FreeType(&ftlibrary);
8700 FT_New_Face(ftlibrary, "filename", 0, &face);
8701 i = face->num_glyphs - 1;
8702 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8703 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8704 FT_Get_Postscript_Name(face);
8705 FT_Get_Char_Index(face, 33);
8706 FT_Get_First_Char(face, &i);
8707 FT_Get_Next_Char(face, 33, &i);
8708 if(FT_HAS_GLYPH_NAMES(face)) {
8709 FT_Get_Glyph_Name(face, 33, name, 127);
8711 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8712 FT_Get_Glyph(face->glyph, &glyph);
8713 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8714 FT_Done_Glyph(glyph);
8715 FT_Done_Face(face);
8716 FT_Done_FreeType(ftlibrary);
8717 return 0;
8721 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8722 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8723 { $as_echo "$as_me:$LINENO: result: yes" >&5
8724 $as_echo "yes" >&6; }
8726 cat >>confdefs.h <<\_ACEOF
8727 #define HAVE_FREETYPE 1
8728 _ACEOF
8731 cat >>confdefs.h <<\_ACEOF
8732 #define HAVE_FREETYPE_FREETYPE_H 1
8733 _ACEOF
8736 cat >>confdefs.h <<\_ACEOF
8737 #define USE_FREETYPE 1
8738 _ACEOF
8739 # for ttf2tp1
8740 else
8741 echo "configure: failed program was:" >&5
8742 cat conftest.c >&5
8743 HAVE_FREETYPE=0
8744 { $as_echo "$as_me:$LINENO: result: no" >&5
8745 $as_echo "no" >&6; }
8747 rm -f conftest*
8750 # if the above didn't work out, reset all changes to the compiler variables.
8751 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8752 CPPFLAGS=$OLDCPPFLAGS
8753 LIBS=$OLDLIBS
8758 OLDCPPFLAGS="${CPPFLAGS}"
8759 OLDLIBS="${LIBS}"
8761 if test -d /usr/include/fontconfig; then
8762 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8765 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8766 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8767 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8768 $as_echo_n "(cached) " >&6
8769 else
8770 ac_check_lib_save_LIBS=$LIBS
8771 LIBS="-lfontconfig $LIBS"
8772 cat >conftest.$ac_ext <<_ACEOF
8773 /* confdefs.h. */
8774 _ACEOF
8775 cat confdefs.h >>conftest.$ac_ext
8776 cat >>conftest.$ac_ext <<_ACEOF
8777 /* end confdefs.h. */
8779 /* Override any GCC internal prototype to avoid an error.
8780 Use char because int might match the return type of a GCC
8781 builtin and then its argument prototype would still apply. */
8782 #ifdef __cplusplus
8783 extern "C"
8784 #endif
8785 char FcInit ();
8787 main ()
8789 return FcInit ();
8791 return 0;
8793 _ACEOF
8794 rm -f conftest.$ac_objext conftest$ac_exeext
8795 if { (ac_try="$ac_link"
8796 case "(($ac_try" in
8797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8798 *) ac_try_echo=$ac_try;;
8799 esac
8800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8801 $as_echo "$ac_try_echo") >&5
8802 (eval "$ac_link") 2>conftest.er1
8803 ac_status=$?
8804 grep -v '^ *+' conftest.er1 >conftest.err
8805 rm -f conftest.er1
8806 cat conftest.err >&5
8807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); } && {
8809 test -z "$ac_c_werror_flag" ||
8810 test ! -s conftest.err
8811 } && test -s conftest$ac_exeext && {
8812 test "$cross_compiling" = yes ||
8813 $as_test_x conftest$ac_exeext
8814 }; then
8815 ac_cv_lib_fontconfig_FcInit=yes
8816 else
8817 $as_echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 ac_cv_lib_fontconfig_FcInit=no
8823 rm -rf conftest.dSYM
8824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8825 conftest$ac_exeext conftest.$ac_ext
8826 LIBS=$ac_check_lib_save_LIBS
8828 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8829 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8830 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then
8831 HAVE_LIB_FONTCONFIG=1
8835 for ac_header in fontconfig.h
8837 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8839 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8840 $as_echo_n "checking for $ac_header... " >&6; }
8841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8842 $as_echo_n "(cached) " >&6
8844 ac_res=`eval 'as_val=${'$as_ac_Header'}
8845 $as_echo "$as_val"'`
8846 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8847 $as_echo "$ac_res" >&6; }
8848 else
8849 # Is the header compilable?
8850 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8851 $as_echo_n "checking $ac_header usability... " >&6; }
8852 cat >conftest.$ac_ext <<_ACEOF
8853 /* confdefs.h. */
8854 _ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858 $ac_includes_default
8859 #include <$ac_header>
8860 _ACEOF
8861 rm -f conftest.$ac_objext
8862 if { (ac_try="$ac_compile"
8863 case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8866 esac
8867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8868 $as_echo "$ac_try_echo") >&5
8869 (eval "$ac_compile") 2>conftest.er1
8870 ac_status=$?
8871 grep -v '^ *+' conftest.er1 >conftest.err
8872 rm -f conftest.er1
8873 cat conftest.err >&5
8874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); } && {
8876 test -z "$ac_c_werror_flag" ||
8877 test ! -s conftest.err
8878 } && test -s conftest.$ac_objext; then
8879 ac_header_compiler=yes
8880 else
8881 $as_echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 ac_header_compiler=no
8887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8888 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8889 $as_echo "$ac_header_compiler" >&6; }
8891 # Is the header present?
8892 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8893 $as_echo_n "checking $ac_header presence... " >&6; }
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h. */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 #include <$ac_header>
8901 _ACEOF
8902 if { (ac_try="$ac_cpp conftest.$ac_ext"
8903 case "(($ac_try" in
8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905 *) ac_try_echo=$ac_try;;
8906 esac
8907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8908 $as_echo "$ac_try_echo") >&5
8909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8910 ac_status=$?
8911 grep -v '^ *+' conftest.er1 >conftest.err
8912 rm -f conftest.er1
8913 cat conftest.err >&5
8914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } >/dev/null && {
8916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8917 test ! -s conftest.err
8918 }; then
8919 ac_header_preproc=yes
8920 else
8921 $as_echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8924 ac_header_preproc=no
8927 rm -f conftest.err conftest.$ac_ext
8928 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8929 $as_echo "$ac_header_preproc" >&6; }
8931 # So? What about this header?
8932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8933 yes:no: )
8934 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8935 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8936 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8937 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8938 ac_header_preproc=yes
8940 no:yes:* )
8941 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8942 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8943 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8944 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8945 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8946 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8947 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8948 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8949 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8950 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8951 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8952 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8955 esac
8956 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8957 $as_echo_n "checking for $ac_header... " >&6; }
8958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8959 $as_echo_n "(cached) " >&6
8960 else
8961 eval "$as_ac_Header=\$ac_header_preproc"
8963 ac_res=`eval 'as_val=${'$as_ac_Header'}
8964 $as_echo "$as_val"'`
8965 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8966 $as_echo "$ac_res" >&6; }
8969 as_val=`eval 'as_val=${'$as_ac_Header'}
8970 $as_echo "$as_val"'`
8971 if test "x$as_val" = x""yes; then
8972 cat >>confdefs.h <<_ACEOF
8973 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8974 _ACEOF
8975 HAVE_FONTCONFIG_H=1
8978 done
8981 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8982 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8983 HAVE_FONTCONFIG=1
8987 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8988 LIBS="$LIBS -lfontconfig"
8989 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8990 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8992 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8993 #move freetype library to the end of libraries, otherwise fontconfig
8994 #won't compile.
8995 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8998 cat > conftest.c << EOF
8999 #include <string.h>
9000 #include <fontconfig.h>
9002 int main()
9004 FcPattern *pattern, *match;
9005 FcResult result;
9006 FcChar8 *v;
9007 char*s1="abc",*s2="ABC";
9008 strcasecmp(s1,s2);
9009 FcInit();
9010 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
9011 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
9012 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
9014 FcConfig*c = FcConfigCreate();
9015 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
9016 FcConfigBuildFonts(c);
9017 FcConfigSetCurrent(c);
9019 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
9020 FcFontSetDestroy(set);
9022 FcConfigSubstitute(0, pattern, FcMatchPattern);
9023 FcDefaultSubstitute(pattern);
9024 match = FcFontMatch(0, pattern, &result);
9025 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
9026 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
9027 FcPatternPrint(pattern);
9028 FcPatternDestroy(pattern);
9029 FcPatternDestroy(match);
9030 FcFini();
9031 return 0;
9035 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9036 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9037 { $as_echo "$as_me:$LINENO: result: yes" >&5
9038 $as_echo "yes" >&6; }
9040 cat >>confdefs.h <<\_ACEOF
9041 #define HAVE_FONTCONFIG 1
9042 _ACEOF
9044 else
9045 echo "configure: failed program was:" >&5
9046 cat conftest.c >&5
9047 HAVE_FONTCONFIG=0
9048 { $as_echo "$as_me:$LINENO: result: no" >&5
9049 $as_echo "no" >&6; }
9051 rm -f conftest*
9054 # if the above didn't work out, reset all changes to the compiler variables.
9055 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
9056 CPPFLAGS=$OLDCPPFLAGS
9057 LIBS=$OLDLIBS
9062 OLDCPPFLAGS="${CPPFLAGS}"
9063 OLDLIBS="${LIBS}"
9065 { $as_echo "$as_me:$LINENO: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
9066 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
9067 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then
9068 $as_echo_n "(cached) " >&6
9069 else
9070 ac_check_lib_save_LIBS=$LIBS
9071 LIBS="-lfftw3 $LIBS"
9072 cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h. */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9079 /* Override any GCC internal prototype to avoid an error.
9080 Use char because int might match the return type of a GCC
9081 builtin and then its argument prototype would still apply. */
9082 #ifdef __cplusplus
9083 extern "C"
9084 #endif
9085 char fftw_plan_dft_r2c_2d ();
9087 main ()
9089 return fftw_plan_dft_r2c_2d ();
9091 return 0;
9093 _ACEOF
9094 rm -f conftest.$ac_objext conftest$ac_exeext
9095 if { (ac_try="$ac_link"
9096 case "(($ac_try" in
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9099 esac
9100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9101 $as_echo "$ac_try_echo") >&5
9102 (eval "$ac_link") 2>conftest.er1
9103 ac_status=$?
9104 grep -v '^ *+' conftest.er1 >conftest.err
9105 rm -f conftest.er1
9106 cat conftest.err >&5
9107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108 (exit $ac_status); } && {
9109 test -z "$ac_c_werror_flag" ||
9110 test ! -s conftest.err
9111 } && test -s conftest$ac_exeext && {
9112 test "$cross_compiling" = yes ||
9113 $as_test_x conftest$ac_exeext
9114 }; then
9115 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
9116 else
9117 $as_echo "$as_me: failed program was:" >&5
9118 sed 's/^/| /' conftest.$ac_ext >&5
9120 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
9123 rm -rf conftest.dSYM
9124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9125 conftest$ac_exeext conftest.$ac_ext
9126 LIBS=$ac_check_lib_save_LIBS
9128 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
9129 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
9130 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then
9131 HAVE_LIBFFTW3=1
9135 for ac_header in fftw3.h
9137 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9139 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9140 $as_echo_n "checking for $ac_header... " >&6; }
9141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9142 $as_echo_n "(cached) " >&6
9144 ac_res=`eval 'as_val=${'$as_ac_Header'}
9145 $as_echo "$as_val"'`
9146 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9147 $as_echo "$ac_res" >&6; }
9148 else
9149 # Is the header compilable?
9150 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9151 $as_echo_n "checking $ac_header usability... " >&6; }
9152 cat >conftest.$ac_ext <<_ACEOF
9153 /* confdefs.h. */
9154 _ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 $ac_includes_default
9159 #include <$ac_header>
9160 _ACEOF
9161 rm -f conftest.$ac_objext
9162 if { (ac_try="$ac_compile"
9163 case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166 esac
9167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9168 $as_echo "$ac_try_echo") >&5
9169 (eval "$ac_compile") 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && {
9176 test -z "$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 } && test -s conftest.$ac_objext; then
9179 ac_header_compiler=yes
9180 else
9181 $as_echo "$as_me: failed program was:" >&5
9182 sed 's/^/| /' conftest.$ac_ext >&5
9184 ac_header_compiler=no
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9189 $as_echo "$ac_header_compiler" >&6; }
9191 # Is the header present?
9192 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9193 $as_echo_n "checking $ac_header presence... " >&6; }
9194 cat >conftest.$ac_ext <<_ACEOF
9195 /* confdefs.h. */
9196 _ACEOF
9197 cat confdefs.h >>conftest.$ac_ext
9198 cat >>conftest.$ac_ext <<_ACEOF
9199 /* end confdefs.h. */
9200 #include <$ac_header>
9201 _ACEOF
9202 if { (ac_try="$ac_cpp conftest.$ac_ext"
9203 case "(($ac_try" in
9204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9205 *) ac_try_echo=$ac_try;;
9206 esac
9207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9208 $as_echo "$ac_try_echo") >&5
9209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9210 ac_status=$?
9211 grep -v '^ *+' conftest.er1 >conftest.err
9212 rm -f conftest.er1
9213 cat conftest.err >&5
9214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9215 (exit $ac_status); } >/dev/null && {
9216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9217 test ! -s conftest.err
9218 }; then
9219 ac_header_preproc=yes
9220 else
9221 $as_echo "$as_me: failed program was:" >&5
9222 sed 's/^/| /' conftest.$ac_ext >&5
9224 ac_header_preproc=no
9227 rm -f conftest.err conftest.$ac_ext
9228 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9229 $as_echo "$ac_header_preproc" >&6; }
9231 # So? What about this header?
9232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9233 yes:no: )
9234 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9235 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9236 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9237 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9238 ac_header_preproc=yes
9240 no:yes:* )
9241 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9242 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9243 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9244 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9245 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9246 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9247 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9248 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9250 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9252 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9255 esac
9256 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9257 $as_echo_n "checking for $ac_header... " >&6; }
9258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9259 $as_echo_n "(cached) " >&6
9260 else
9261 eval "$as_ac_Header=\$ac_header_preproc"
9263 ac_res=`eval 'as_val=${'$as_ac_Header'}
9264 $as_echo "$as_val"'`
9265 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9266 $as_echo "$ac_res" >&6; }
9269 as_val=`eval 'as_val=${'$as_ac_Header'}
9270 $as_echo "$as_val"'`
9271 if test "x$as_val" = x""yes; then
9272 cat >>confdefs.h <<_ACEOF
9273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9274 _ACEOF
9275 HAVE_FFTW3_H=1
9278 done
9281 if test "x${HAVE_LIBFFTW3}" != "x";then
9282 if test "x${HAVE_FFTW3_H}" != "x";then
9283 HAVE_FFTW3=1
9287 if test "x${HAVE_FFTW3}" = "x1"; then
9288 LIBS="$LIBS -lfftw3"
9289 { $as_echo "$as_me:$LINENO: checking whether we can compile the fftw3 test program" >&5
9290 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
9292 cat > conftest.c << EOF
9293 #include <fftw3.h>
9295 int main()
9297 char*data = 0;
9298 fftw_plan plan = fftw_plan_dft_2d(600, 800, (fftw_complex*)data, (fftw_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
9299 plan = fftw_plan_dft_r2c_2d(600, 800, (double*)data, (fftw_complex*)data, FFTW_ESTIMATE);
9300 plan = fftw_plan_dft_c2r_2d(600, 800, (fftw_complex*)data, (double*)data, FFTW_ESTIMATE);
9301 fftw_execute(plan);
9302 fftw_destroy_plan(plan);
9306 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9307 if { (eval echo fftw3.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9308 { $as_echo "$as_me:$LINENO: result: yes" >&5
9309 $as_echo "yes" >&6; }
9311 cat >>confdefs.h <<\_ACEOF
9312 #define HAVE_FFTW3 1
9313 _ACEOF
9315 else
9316 echo "configure: failed program was:" >&5
9317 cat conftest.c >&5
9318 HAVE_FFTW3=0
9319 { $as_echo "$as_me:$LINENO: result: no" >&5
9320 $as_echo "no" >&6; }
9322 rm -f conftest*
9325 # if the above didn't work out, reset all changes to the compiler variables.
9326 if test "x${HAVE_FFTW3}" "!=" "x1"; then
9327 CPPFLAGS=$OLDCPPFLAGS
9328 LIBS=$OLDLIBS
9332 # RFX_CHECK_OPENGL
9333 # if test "$HAVE_OPENGL";then
9334 # DEVICE_OPENGL='devices/opengl.$(O)'
9335 # AC_SUBST(DEVICE_OPENGL)
9336 # fi
9339 lame_in_source=
9340 lame_makefile=
9341 if test "x${DISABLE_LAME}" = "xtrue"; then
9342 echo "*" Disabling lame support...
9343 else
9344 # old lame code at lib/lame
9345 if test -f lib/lame/Makefile.in; then
9346 lame_in_source='$(lame_objects)'
9347 lame_makefile="lib/lame/Makefile"
9348 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9350 cat >>confdefs.h <<\_ACEOF
9351 #define HAVE_LAME 1
9352 _ACEOF
9354 else
9355 if test -d /usr/include/lame; then
9356 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9357 else
9358 if test -d /usr/local/include/lame; then
9359 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9363 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9364 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9365 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9366 $as_echo_n "(cached) " >&6
9367 else
9368 ac_check_lib_save_LIBS=$LIBS
9369 LIBS="-lmp3lame $LIBS"
9370 cat >conftest.$ac_ext <<_ACEOF
9371 /* confdefs.h. */
9372 _ACEOF
9373 cat confdefs.h >>conftest.$ac_ext
9374 cat >>conftest.$ac_ext <<_ACEOF
9375 /* end confdefs.h. */
9377 /* Override any GCC internal prototype to avoid an error.
9378 Use char because int might match the return type of a GCC
9379 builtin and then its argument prototype would still apply. */
9380 #ifdef __cplusplus
9381 extern "C"
9382 #endif
9383 char lame_init ();
9385 main ()
9387 return lame_init ();
9389 return 0;
9391 _ACEOF
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (ac_try="$ac_link"
9394 case "(($ac_try" in
9395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9396 *) ac_try_echo=$ac_try;;
9397 esac
9398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9399 $as_echo "$ac_try_echo") >&5
9400 (eval "$ac_link") 2>conftest.er1
9401 ac_status=$?
9402 grep -v '^ *+' conftest.er1 >conftest.err
9403 rm -f conftest.er1
9404 cat conftest.err >&5
9405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406 (exit $ac_status); } && {
9407 test -z "$ac_c_werror_flag" ||
9408 test ! -s conftest.err
9409 } && test -s conftest$ac_exeext && {
9410 test "$cross_compiling" = yes ||
9411 $as_test_x conftest$ac_exeext
9412 }; then
9413 ac_cv_lib_mp3lame_lame_init=yes
9414 else
9415 $as_echo "$as_me: failed program was:" >&5
9416 sed 's/^/| /' conftest.$ac_ext >&5
9418 ac_cv_lib_mp3lame_lame_init=no
9421 rm -rf conftest.dSYM
9422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9423 conftest$ac_exeext conftest.$ac_ext
9424 LIBS=$ac_check_lib_save_LIBS
9426 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9427 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9428 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then
9429 cat >>confdefs.h <<_ACEOF
9430 #define HAVE_LIBMP3LAME 1
9431 _ACEOF
9433 LIBS="-lmp3lame $LIBS"
9435 else
9436 NO_LIBMP3LAME=1
9439 HASLAMEHEADER=
9441 for ac_header in lame.h
9443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9445 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9446 $as_echo_n "checking for $ac_header... " >&6; }
9447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9448 $as_echo_n "(cached) " >&6
9450 ac_res=`eval 'as_val=${'$as_ac_Header'}
9451 $as_echo "$as_val"'`
9452 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9453 $as_echo "$ac_res" >&6; }
9454 else
9455 # Is the header compilable?
9456 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9457 $as_echo_n "checking $ac_header usability... " >&6; }
9458 cat >conftest.$ac_ext <<_ACEOF
9459 /* confdefs.h. */
9460 _ACEOF
9461 cat confdefs.h >>conftest.$ac_ext
9462 cat >>conftest.$ac_ext <<_ACEOF
9463 /* end confdefs.h. */
9464 $ac_includes_default
9465 #include <$ac_header>
9466 _ACEOF
9467 rm -f conftest.$ac_objext
9468 if { (ac_try="$ac_compile"
9469 case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472 esac
9473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9474 $as_echo "$ac_try_echo") >&5
9475 (eval "$ac_compile") 2>conftest.er1
9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } && {
9482 test -z "$ac_c_werror_flag" ||
9483 test ! -s conftest.err
9484 } && test -s conftest.$ac_objext; then
9485 ac_header_compiler=yes
9486 else
9487 $as_echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9490 ac_header_compiler=no
9493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9494 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9495 $as_echo "$ac_header_compiler" >&6; }
9497 # Is the header present?
9498 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9499 $as_echo_n "checking $ac_header presence... " >&6; }
9500 cat >conftest.$ac_ext <<_ACEOF
9501 /* confdefs.h. */
9502 _ACEOF
9503 cat confdefs.h >>conftest.$ac_ext
9504 cat >>conftest.$ac_ext <<_ACEOF
9505 /* end confdefs.h. */
9506 #include <$ac_header>
9507 _ACEOF
9508 if { (ac_try="$ac_cpp conftest.$ac_ext"
9509 case "(($ac_try" in
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9512 esac
9513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9514 $as_echo "$ac_try_echo") >&5
9515 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } >/dev/null && {
9522 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9523 test ! -s conftest.err
9524 }; then
9525 ac_header_preproc=yes
9526 else
9527 $as_echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9530 ac_header_preproc=no
9533 rm -f conftest.err conftest.$ac_ext
9534 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9535 $as_echo "$ac_header_preproc" >&6; }
9537 # So? What about this header?
9538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9539 yes:no: )
9540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9541 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9543 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9544 ac_header_preproc=yes
9546 no:yes:* )
9547 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9548 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9550 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9552 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9554 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9556 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9558 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9561 esac
9562 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9563 $as_echo_n "checking for $ac_header... " >&6; }
9564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9565 $as_echo_n "(cached) " >&6
9566 else
9567 eval "$as_ac_Header=\$ac_header_preproc"
9569 ac_res=`eval 'as_val=${'$as_ac_Header'}
9570 $as_echo "$as_val"'`
9571 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9572 $as_echo "$ac_res" >&6; }
9575 as_val=`eval 'as_val=${'$as_ac_Header'}
9576 $as_echo "$as_val"'`
9577 if test "x$as_val" = x""yes; then
9578 cat >>confdefs.h <<_ACEOF
9579 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9580 _ACEOF
9581 HASLAMEHEADER=1
9584 done
9586 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9587 cat >>confdefs.h <<\_ACEOF
9588 #define HAVE_LAME 1
9589 _ACEOF
9596 splash_in_source='$(splash_objects)'
9597 xpdf_in_source='$(xpdf_objects)'
9603 # ------------------------------------------------------------------
9606 { $as_echo "$as_me:$LINENO: checking whether the filesystem normalizes file names" >&5
9607 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
9609 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
9610 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9611 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
9612 { $as_echo "$as_me:$LINENO: result: yes" >&5
9613 $as_echo "yes" >&6; }
9615 cat >>confdefs.h <<\_ACEOF
9616 #define LOWERCASE_UPPERCASE 1
9617 _ACEOF
9619 else
9620 { $as_echo "$as_me:$LINENO: result: no" >&5
9621 $as_echo "no" >&6; }
9624 rm -f __abcdefghijklmnopqrstuvwxyz.txt
9625 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9629 for ac_prog in avifile-config
9631 # Extract the first word of "$ac_prog", so it can be a program name with args.
9632 set dummy $ac_prog; ac_word=$2
9633 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9634 $as_echo_n "checking for $ac_word... " >&6; }
9635 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9636 $as_echo_n "(cached) " >&6
9637 else
9638 if test -n "$AVIFILE_CONFIG"; then
9639 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9640 else
9641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9642 for as_dir in $PATH
9644 IFS=$as_save_IFS
9645 test -z "$as_dir" && as_dir=.
9646 for ac_exec_ext in '' $ac_executable_extensions; do
9647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9648 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9649 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9650 break 2
9652 done
9653 done
9654 IFS=$as_save_IFS
9658 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9659 if test -n "$AVIFILE_CONFIG"; then
9660 { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9661 $as_echo "$AVIFILE_CONFIG" >&6; }
9662 else
9663 { $as_echo "$as_me:$LINENO: result: no" >&5
9664 $as_echo "no" >&6; }
9668 test -n "$AVIFILE_CONFIG" && break
9669 done
9672 if test "x$AVIFILE_CONFIG" '!=' "x";then
9673 OLDCPPFLAGS="$CPPFLAGS"
9674 # temporarily add avifile paths to CPPFLAGS...
9675 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9678 for ac_header in avifile/version.h version.h
9680 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9682 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9683 $as_echo_n "checking for $ac_header... " >&6; }
9684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9685 $as_echo_n "(cached) " >&6
9687 ac_res=`eval 'as_val=${'$as_ac_Header'}
9688 $as_echo "$as_val"'`
9689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9690 $as_echo "$ac_res" >&6; }
9691 else
9692 # Is the header compilable?
9693 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9694 $as_echo_n "checking $ac_header usability... " >&6; }
9695 cat >conftest.$ac_ext <<_ACEOF
9696 /* confdefs.h. */
9697 _ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 $ac_includes_default
9702 #include <$ac_header>
9703 _ACEOF
9704 rm -f conftest.$ac_objext
9705 if { (ac_try="$ac_compile"
9706 case "(($ac_try" in
9707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9708 *) ac_try_echo=$ac_try;;
9709 esac
9710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9711 $as_echo "$ac_try_echo") >&5
9712 (eval "$ac_compile") 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } && {
9719 test -z "$ac_c_werror_flag" ||
9720 test ! -s conftest.err
9721 } && test -s conftest.$ac_objext; then
9722 ac_header_compiler=yes
9723 else
9724 $as_echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9727 ac_header_compiler=no
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9731 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9732 $as_echo "$ac_header_compiler" >&6; }
9734 # Is the header present?
9735 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9736 $as_echo_n "checking $ac_header presence... " >&6; }
9737 cat >conftest.$ac_ext <<_ACEOF
9738 /* confdefs.h. */
9739 _ACEOF
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 #include <$ac_header>
9744 _ACEOF
9745 if { (ac_try="$ac_cpp conftest.$ac_ext"
9746 case "(($ac_try" in
9747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9748 *) ac_try_echo=$ac_try;;
9749 esac
9750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9751 $as_echo "$ac_try_echo") >&5
9752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9753 ac_status=$?
9754 grep -v '^ *+' conftest.er1 >conftest.err
9755 rm -f conftest.er1
9756 cat conftest.err >&5
9757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); } >/dev/null && {
9759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9760 test ! -s conftest.err
9761 }; then
9762 ac_header_preproc=yes
9763 else
9764 $as_echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9767 ac_header_preproc=no
9770 rm -f conftest.err conftest.$ac_ext
9771 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9772 $as_echo "$ac_header_preproc" >&6; }
9774 # So? What about this header?
9775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9776 yes:no: )
9777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9778 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9780 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9781 ac_header_preproc=yes
9783 no:yes:* )
9784 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9785 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9786 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9787 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9788 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9789 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9790 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9791 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9792 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9793 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9794 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9795 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9798 esac
9799 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9800 $as_echo_n "checking for $ac_header... " >&6; }
9801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9802 $as_echo_n "(cached) " >&6
9803 else
9804 eval "$as_ac_Header=\$ac_header_preproc"
9806 ac_res=`eval 'as_val=${'$as_ac_Header'}
9807 $as_echo "$as_val"'`
9808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9809 $as_echo "$ac_res" >&6; }
9812 as_val=`eval 'as_val=${'$as_ac_Header'}
9813 $as_echo "$as_val"'`
9814 if test "x$as_val" = x""yes; then
9815 cat >>confdefs.h <<_ACEOF
9816 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9817 _ACEOF
9821 done
9823 # ... and reset
9824 CPPFLAGS="$OLDCPPFLAGS"
9827 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9828 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
9830 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9831 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9833 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9834 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9837 cat > conftest.cpp << EOF
9839 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9840 // so we have to introduce them this way
9841 $HAVE_VERSION_H_DEFINE
9842 $HAVE_AVIFILE_VERSION_H_DEFINE
9844 #ifdef HAVE_VERSION_H
9845 #include <version.h>
9846 #endif
9847 #ifdef HAVE_AVIFILE_VERSION_H
9848 #include <avifile/version.h>
9849 #endif
9851 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9852 #include <avifile.h>
9853 #include <aviplay.h>
9854 #include <avm_fourcc.h>
9855 #include <avm_creators.h>
9856 #include <StreamInfo.h>
9857 #define VERSION6
9858 #else
9859 #include <avifile.h>
9860 #include <aviplay.h>
9861 #include <aviutil.h>
9862 #define Width width
9863 #define Height height
9864 #define Data data
9865 #define Bpp bpp
9866 #endif
9868 void test()
9870 IAviReadFile* player;
9871 IAviReadStream* astream;
9872 IAviReadStream* vstream;
9873 player = CreateIAviReadFile(0);
9874 astream = player->GetStream(0, AviStream::Audio);
9875 vstream = player->GetStream(0, AviStream::Video);
9876 vstream -> StartStreaming();
9877 astream -> StartStreaming();
9878 #ifndef VERSION6
9879 MainAVIHeader head;
9880 player->GetFileHeader(&head);
9881 head.dwMicroSecPerFrame;
9882 head.dwTotalFrames;
9883 head.dwStreams;
9884 head.dwWidth;
9885 head.dwHeight;
9886 head.dwMicroSecPerFrame;
9887 astream->GetEndPos(),
9888 astream->GetEndTime());
9889 player->StreamCount();
9890 #else
9891 StreamInfo*audioinfo;
9892 StreamInfo*videoinfo;
9893 audioinfo = astream->GetStreamInfo();
9894 videoinfo = vstream->GetStreamInfo();
9895 videoinfo->GetVideoWidth();
9896 videoinfo->GetVideoHeight();
9897 audioinfo->GetAudioSamplesPerSec();
9898 videoinfo->GetFps();
9899 #endif
9900 CImage*img = vstream->GetFrame();
9901 img->ToRGB();
9902 img->Data();
9903 img->Bpp();
9904 img->Width();
9905 img->Height();
9906 WAVEFORMATEX wave;
9907 astream->GetAudioFormatInfo(&wave,0);
9908 uint_t a,b;
9909 astream->ReadFrames(0,0,0,a,b);
9911 int main (int argc, char*argv)
9913 return 0;
9917 if test "x$AVIFILE_CONFIG" '!=' "x";then
9918 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9919 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9920 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9921 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9922 { $as_echo "$as_me:$LINENO: result: yes" >&5
9923 $as_echo "yes" >&6; }
9924 AVIFILE=true
9925 export AVIFILE
9927 cat >>confdefs.h <<\_ACEOF
9928 #define AVIFILE true
9929 _ACEOF
9931 else
9932 echo "configure: failed program was:" >&5
9933 cat conftest.cpp >&5
9934 { $as_echo "$as_me:$LINENO: result: no" >&5
9935 $as_echo "no" >&6; }
9937 else
9938 { $as_echo "$as_me:$LINENO: result: no" >&5
9939 $as_echo "no" >&6; }
9941 rm -f conftest*
9943 if test "x${AVIFILE}" = "xtrue"; then
9944 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9945 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9947 cat >>confdefs.h <<\_ACEOF
9948 #define HAVE_AVIFILE 1
9949 _ACEOF
9953 if test "x${WIN32}" != "x"; then
9954 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9955 #if test "x${AVIFIL32}" != "x"; then
9956 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9958 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9959 AVIFIL32=true
9964 # ------------------------------------------------------------------
9966 if test "x${UNCOMPRESS}" = "xgzip"; then
9968 cat >>confdefs.h <<\_ACEOF
9969 #define USE_GZIP 1
9970 _ACEOF
9975 # ------------------------------------------------------------------
9978 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
9979 $as_echo_n "checking for Python.h... " >&6; }
9981 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9982 PY_VERSION=unknown
9983 else
9984 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9985 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9987 # iterate through version 2.2 to 2.6
9988 for v in 2 3 4 5 6; do
9989 # Linux
9990 if test -f "/usr/include/python2.$v/Python.h";then
9991 PY_VERSION=2.$v
9992 PYTHON_LIB="-lpython$PY_VERSION"
9993 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9994 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9995 HAVE_PYTHON_IMAGING_LIB=1
9996 else
9997 PYTHON_LIB2="$PYTHON_LIB"
9999 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
10000 # Mac OS X
10001 elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
10002 PY_VERSION=2.$v
10003 PYTHON_LIB="-framework Python"
10004 if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
10005 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
10006 HAVE_PYTHON_IMAGING_LIB=1
10007 else
10008 PYTHON_LIB2="$PYTHON_LIB"
10010 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
10011 # Mac OS X [Fink]:
10012 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
10013 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
10014 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
10015 ")" \
10016 -a -f "/sw/include/python2.$v/Python.h"; then
10017 PY_VERSION=2.$v
10018 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10019 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
10020 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10021 HAVE_PYTHON_IMAGING_LIB=1
10022 else
10023 PYTHON_LIB2="$PYTHON_LIB"
10025 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
10027 done
10030 if test "x$PY_VERSION" "!=" "x"; then
10031 { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
10032 $as_echo "$PY_VERSION" >&6; }
10033 export PYTHON_INCLUDES PYTHON_LIB
10036 { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
10037 $as_echo_n "checking whether we can compile the python test program... " >&6; }
10039 cat > conftest.c << EOF
10040 #include <Python.h>
10042 int main()
10044 int ret;
10045 ret = Py_Main(0, 0);
10046 int x; // check also for gcc 2.95.x incompatibilities
10047 return ret;
10051 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
10052 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10053 { $as_echo "$as_me:$LINENO: result: yes" >&5
10054 $as_echo "yes" >&6; }
10055 PYTHON_OK=yes
10056 else
10057 echo "configure: failed program was:" >&5
10058 cat conftest.c >&5
10059 { $as_echo "$as_me:$LINENO: result: no" >&5
10060 $as_echo "no" >&6; }
10062 rm -f conftest*
10063 if test "x$PYTHON_OK" = "xyes";then
10064 { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
10065 $as_echo_n "checking for Python-Imaging... " >&6; }
10066 cat > conftest.c << EOF
10067 #include <Python.h>
10068 #include <Imaging.h>
10070 int main()
10072 Py_Main(0, 0);
10073 return 0;
10076 if test "$HAVE_PYTHON_IMAGING_LIB"; then
10077 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
10078 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10079 PYTHON_LIB="${PYTHON_LIB2}"
10081 cat >>confdefs.h <<\_ACEOF
10082 #define HAVE_PYTHON_IMAGING 1
10083 _ACEOF
10085 HAVE_PYTHON_IMAGING=yes
10086 export HAVE_PYTHON_IMAGING
10088 { $as_echo "$as_me:$LINENO: result: yes" >&5
10089 $as_echo "yes" >&6; }
10090 else
10091 echo "configure: failed program was:" >&5
10092 cat conftest.c >&5
10093 { $as_echo "$as_me:$LINENO: result: no" >&5
10094 $as_echo "no" >&6; }
10096 else
10097 echo "(didn't find the Python-Imaging libraries)" >&5
10098 { $as_echo "$as_me:$LINENO: result: no" >&5
10099 $as_echo "no" >&6; }
10102 rm -f conftest*
10103 else
10104 { $as_echo "$as_me:$LINENO: result: nope" >&5
10105 $as_echo "nope" >&6; }
10109 if test "x$PYTHON_OK" '!=' "xyes";then
10110 echo all install uninstall clean: > lib/python/Makefile
10111 # fail silently- the most users won't have any need for the
10112 # python interface anyway
10113 else
10114 pythongfx="lib/python/Makefile"
10117 # ------------------------------------------------------------------
10120 # Extract the first word of "ruby", so it can be a program name with args.
10121 set dummy ruby; ac_word=$2
10122 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10123 $as_echo_n "checking for $ac_word... " >&6; }
10124 if test "${ac_cv_path_RUBY+set}" = set; then
10125 $as_echo_n "(cached) " >&6
10126 else
10127 case $RUBY in
10128 [\\/]* | ?:[\\/]*)
10129 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
10132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10133 for as_dir in $PATH
10135 IFS=$as_save_IFS
10136 test -z "$as_dir" && as_dir=.
10137 for ac_exec_ext in '' $ac_executable_extensions; do
10138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10139 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
10140 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10141 break 2
10143 done
10144 done
10145 IFS=$as_save_IFS
10148 esac
10150 RUBY=$ac_cv_path_RUBY
10151 if test -n "$RUBY"; then
10152 { $as_echo "$as_me:$LINENO: result: $RUBY" >&5
10153 $as_echo "$RUBY" >&6; }
10154 else
10155 { $as_echo "$as_me:$LINENO: result: no" >&5
10156 $as_echo "no" >&6; }
10161 RUBY_CPPFLAGS=""
10162 RUBY_LDFLAGS=""
10163 RUBY_LIBS=""
10165 rubylib=ruby18
10167 { $as_echo "$as_me:$LINENO: checking for ruby's include directory" >&5
10168 $as_echo_n "checking for ruby's include directory... " >&6; }
10169 if test "x$RUBY" '!=' "x";then
10170 rubyinc=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "archdir"))' 2>/dev/null`
10171 if test -d $rubyinc;then
10172 { $as_echo "$as_me:$LINENO: result: $rubyinc" >&5
10173 $as_echo "$rubyinc" >&6; }
10175 # If we got a sensible archdir, we also ask ruby to supply us with CPPFLAGS
10176 # and LDFLAGS.
10177 { $as_echo "$as_me:$LINENO: checking for ruby's cpp flags" >&5
10178 $as_echo_n "checking for ruby's cpp flags... " >&6; }
10179 rubycpp=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "CPPFLAGS"))' 2>/dev/null`
10180 { $as_echo "$as_me:$LINENO: result: $rubycpp" >&5
10181 $as_echo "$rubycpp" >&6; }
10183 { $as_echo "$as_me:$LINENO: checking for ruby's ld flags" >&5
10184 $as_echo_n "checking for ruby's ld flags... " >&6; }
10185 rubyld=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBYARG_SHARED"))' 2>/dev/null`
10186 { $as_echo "$as_me:$LINENO: result: $rubyld" >&5
10187 $as_echo "$rubyld" >&6; }
10189 { $as_echo "$as_me:$LINENO: checking for ruby library name" >&5
10190 $as_echo_n "checking for ruby library name... " >&6; }
10191 rubylib=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "RUBY_SO_NAME"))' 2>/dev/null`
10192 { $as_echo "$as_me:$LINENO: result: $rubylib" >&5
10193 $as_echo "$rubylib" >&6; }
10195 RUBY_CPPFLAGS="$rubycpp -I$rubyinc $RUBY_CPPFLAGS"
10196 RUBY_LDFLAGS="$rubyld $RUBY_LDFLAGS"
10197 RUBY_INSTALLDIR="$rubyinc"
10198 else
10199 { $as_echo "$as_me:$LINENO: result: 'unknown'" >&5
10200 $as_echo "'unknown'" >&6; }
10202 else
10203 { $as_echo "$as_me:$LINENO: result: 'unknown'" >&5
10204 $as_echo "'unknown'" >&6; }
10207 #OLDLDFLAGS="$LDFLAGS"
10208 #LDFLAGS="$LDFLAGS $RUBY_LDFLAGS"
10209 #AC_CHECK_LIB($rubylib, rb_define_method, HAVE_RUBY_LIB=1,)
10210 #LDFLAGS="$OLDLDFLAGS"
10212 OLDCPPFLAGS="$CPPFLAGS"
10213 CPPFLAGS="$CPPFLAGS $RUBY_CPPFLAGS"
10215 for ac_header in ruby.h
10217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10219 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10220 $as_echo_n "checking for $ac_header... " >&6; }
10221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10222 $as_echo_n "(cached) " >&6
10224 ac_res=`eval 'as_val=${'$as_ac_Header'}
10225 $as_echo "$as_val"'`
10226 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10227 $as_echo "$ac_res" >&6; }
10228 else
10229 # Is the header compilable?
10230 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10231 $as_echo_n "checking $ac_header usability... " >&6; }
10232 cat >conftest.$ac_ext <<_ACEOF
10233 /* confdefs.h. */
10234 _ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 $ac_includes_default
10239 #include <$ac_header>
10240 _ACEOF
10241 rm -f conftest.$ac_objext
10242 if { (ac_try="$ac_compile"
10243 case "(($ac_try" in
10244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10245 *) ac_try_echo=$ac_try;;
10246 esac
10247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10248 $as_echo "$ac_try_echo") >&5
10249 (eval "$ac_compile") 2>conftest.er1
10250 ac_status=$?
10251 grep -v '^ *+' conftest.er1 >conftest.err
10252 rm -f conftest.er1
10253 cat conftest.err >&5
10254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } && {
10256 test -z "$ac_c_werror_flag" ||
10257 test ! -s conftest.err
10258 } && test -s conftest.$ac_objext; then
10259 ac_header_compiler=yes
10260 else
10261 $as_echo "$as_me: failed program was:" >&5
10262 sed 's/^/| /' conftest.$ac_ext >&5
10264 ac_header_compiler=no
10267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10268 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10269 $as_echo "$ac_header_compiler" >&6; }
10271 # Is the header present?
10272 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10273 $as_echo_n "checking $ac_header presence... " >&6; }
10274 cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h. */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 #include <$ac_header>
10281 _ACEOF
10282 if { (ac_try="$ac_cpp conftest.$ac_ext"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286 esac
10287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10288 $as_echo "$ac_try_echo") >&5
10289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10290 ac_status=$?
10291 grep -v '^ *+' conftest.er1 >conftest.err
10292 rm -f conftest.er1
10293 cat conftest.err >&5
10294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } >/dev/null && {
10296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10297 test ! -s conftest.err
10298 }; then
10299 ac_header_preproc=yes
10300 else
10301 $as_echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10304 ac_header_preproc=no
10307 rm -f conftest.err conftest.$ac_ext
10308 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10309 $as_echo "$ac_header_preproc" >&6; }
10311 # So? What about this header?
10312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10313 yes:no: )
10314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10315 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10318 ac_header_preproc=yes
10320 no:yes:* )
10321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10322 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10324 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10326 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10328 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10330 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10332 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10335 esac
10336 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10337 $as_echo_n "checking for $ac_header... " >&6; }
10338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10339 $as_echo_n "(cached) " >&6
10340 else
10341 eval "$as_ac_Header=\$ac_header_preproc"
10343 ac_res=`eval 'as_val=${'$as_ac_Header'}
10344 $as_echo "$as_val"'`
10345 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10346 $as_echo "$ac_res" >&6; }
10349 as_val=`eval 'as_val=${'$as_ac_Header'}
10350 $as_echo "$as_val"'`
10351 if test "x$as_val" = x""yes; then
10352 cat >>confdefs.h <<_ACEOF
10353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10354 _ACEOF
10355 HAVE_RUBY_H=1
10358 done
10360 CPPFLAGS="$OLDCPPFLAGS"
10362 { $as_echo "$as_me:$LINENO: checking whether we should compile the ruby module" >&5
10363 $as_echo_n "checking whether we should compile the ruby module... " >&6; }
10364 if test "x${HAVE_RUBY_H}" '!=' "x";then
10365 #RUBY_LIBS="$RUBY_LIBS -l$rubylib"
10367 cat > conftest.c << EOF
10368 #include <ruby.h>
10369 static VALUE foobar;
10370 VALUE foobar_set_foo(VALUE module, VALUE _key, VALUE _value)
10372 return Qnil;
10374 int Init_foobar()
10376 foobar = rb_define_module("foobar");
10377 rb_define_module_function(foobar, "set_foo", foobar_set_foo, 2);
10379 int main() {return 0;}
10381 ac_link='$CC $SHARED $CPPFLAGS $RUBY_CPPFLAGS $CFLAGS conftest.c $LDFLAGS $RUBY_LDFLAGS $LIBS $RUBY_LIBS -o conftest${ac_exeext}'
10382 if { (eval echo ruby.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10383 RUBY_OK=yes
10384 else
10385 echo "configure: failed program was:" >&5
10386 cat conftest.c >&5
10388 rm -f conftest*
10391 if test "x${RUBY_OK}" '=' "xyes"; then
10392 { $as_echo "$as_me:$LINENO: result: yes" >&5
10393 $as_echo "yes" >&6; }
10398 else
10399 { $as_echo "$as_me:$LINENO: result: no" >&5
10400 $as_echo "no" >&6; }
10401 RUBY_CPPFLAGS=""
10402 RUBY_LDFLAGS=""
10403 RUBY_LIBS=""
10404 RUBY_INSTALLDIR=""
10408 if test "x$RUBY_OK" '!=' "xyes";then
10409 echo all install uninstall clean: > lib/ruby/Makefile
10410 # fail silently- the most users won't have any need for the
10411 # ruby interface anyway
10412 else
10413 rubygfx="lib/ruby/Makefile"
10416 # ------------------------------------------------------------------
10418 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
10419 $as_echo_n "checking for missing libraries... " >&6; }
10421 if test "x$ZLIBMISSING" = "xtrue";then
10422 MISSINGLIBS="${MISSINGLIBS} zlib"
10423 DISABLEPNG2SWF=true
10424 PARTIAL=true
10426 if test "x$JPEGLIBMISSING" = "xtrue";then
10427 MISSINGLIBS="${MISSINGLIBS} jpeglib"
10428 DISABLEPDF2SWF=true
10429 DISABLEJPEG2SWF=true
10430 PARTIAL=true
10432 if test "x$PDFLIBMISSING" = "xtrue";then
10433 DISABLEPDF2PDF=true;
10435 #if test "x$T1LIBMISSING" = "xtrue";then
10436 # MISSINGLIBS="${MISSINGLIBS} t1lib"
10438 if test "x$UNGIFMISSING" = "xtrue";then
10439 DISABLEGIF2SWF=true
10440 MISSINGLIBS="${MISSINGLIBS} ungif"
10441 PARTIAL=true
10444 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
10445 DISABLEPDF2PDF=true;
10447 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10448 DISABLEPDF2SWF=true;
10449 DISABLEJPEG2SWF=true;
10450 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10451 PARTIAL=true
10453 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10454 DISABLEPDF2SWF=true;
10455 MISSINGLIBS="${MISSINGLIBS} freetype"
10456 PARTIAL=true
10458 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10459 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10461 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10462 DISABLEGIF2SWF=true
10463 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10464 PARTIAL=true
10466 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10467 DISABLEPNG2SWF=true;
10468 MISSINGLIBS="${MISSINGLIBS} zlib.h"
10469 PARTIAL=true
10471 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10472 # MISSINGLIBS="${MISSINGLIBS} avifile"
10475 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10476 $as_echo "${MISSINGLIBS}" >&6; }
10478 # ------------------------------------------------------------------
10480 if test "x${MISSINGLIBS}" '!=' "x"; then
10481 echo "***************************************************"
10482 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10485 avi2swf="avi2swf/Makefile"
10486 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10487 #don't whine, avi2swf is outdated anyway
10488 #echo "* Disabling avi2swf tool..."
10489 echo all install uninstall clean: > avi2swf/Makefile
10490 avi2swf=
10493 pdf2swf_makefile="lib/pdf/Makefile"
10494 PDF2SWF='pdf2swf$(E)'
10495 LIBPDF='libpdf$(A)'
10497 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10498 echo "* Disabling pdf2swf tool..."
10499 rm -f lib/pdf/Makefile
10500 echo all install uninstall clean libpdf libgfxpdf: > lib/pdf/Makefile
10501 pdf2swf_makefile=""
10502 PDF2SWF=
10503 LIBPDF=
10508 PDF2PDF='pdf2pdf$(E)'
10509 DEVICE_PDF='devices/pdf.$(O)'
10510 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
10511 #echo "* Disabling pdf2pdf tool..."
10512 PDF2PDF=
10513 DEVICE_PDF=
10518 if test "x${ZLIBMISSING}" = "xtrue"; then
10519 echo
10520 echo "* Warning! Without zlib, you will not be able to read"
10521 echo "* or write compressed Flash MX files!"
10524 JPEG2SWF='jpeg2swf$(E)'
10525 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10526 echo "* Disabling jpeg2swf tool..."
10527 JPEG2SWF=
10529 export JPEG2SWF
10532 GIF2SWF='gif2swf$(E)'
10533 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10534 echo "* Disabling gif2swf tool..."
10535 GIF2SWF=
10537 export GIF2SWF
10540 PNG2SWF='png2swf$(E)'
10541 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10542 echo "* Disabling png2swf tool..."
10543 PNG2SWF=
10545 export PNG2SWF
10548 if test "x${MISSINGLIBS}" '!=' "x"; then
10549 if test "x${PARTIAL}" '=' "x"; then
10550 echo "* (never mind)"
10552 echo "***************************************************"
10555 # ------------------------------------------------------------------
10563 if test -f "release.in"; then release_in="./release"; fi
10564 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10565 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythongfx} ${rubygfx} ${lame_makefile} lib/readers/Makefile"
10566 ac_config_files="$ac_config_files ${FILES}"
10568 cat >confcache <<\_ACEOF
10569 # This file is a shell script that caches the results of configure
10570 # tests run on this system so they can be shared between configure
10571 # scripts and configure runs, see configure's option --config-cache.
10572 # It is not useful on other systems. If it contains results you don't
10573 # want to keep, you may remove or edit it.
10575 # config.status only pays attention to the cache file if you give it
10576 # the --recheck option to rerun configure.
10578 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10579 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10580 # following values.
10582 _ACEOF
10584 # The following way of writing the cache mishandles newlines in values,
10585 # but we know of no workaround that is simple, portable, and efficient.
10586 # So, we kill variables containing newlines.
10587 # Ultrix sh set writes to stderr and can't be redirected directly,
10588 # and sets the high bit in the cache file unless we assign to the vars.
10590 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10591 eval ac_val=\$$ac_var
10592 case $ac_val in #(
10593 *${as_nl}*)
10594 case $ac_var in #(
10595 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10596 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10597 esac
10598 case $ac_var in #(
10599 _ | IFS | as_nl) ;; #(
10600 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10601 *) $as_unset $ac_var ;;
10602 esac ;;
10603 esac
10604 done
10606 (set) 2>&1 |
10607 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10608 *${as_nl}ac_space=\ *)
10609 # `set' does not quote correctly, so add quotes (double-quote
10610 # substitution turns \\\\ into \\, and sed turns \\ into \).
10611 sed -n \
10612 "s/'/'\\\\''/g;
10613 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10614 ;; #(
10616 # `set' quotes correctly as required by POSIX, so do not add quotes.
10617 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10619 esac |
10620 sort
10622 sed '
10623 /^ac_cv_env_/b end
10624 t clear
10625 :clear
10626 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10627 t end
10628 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10629 :end' >>confcache
10630 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10631 if test -w "$cache_file"; then
10632 test "x$cache_file" != "x/dev/null" &&
10633 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10634 $as_echo "$as_me: updating cache $cache_file" >&6;}
10635 cat confcache >$cache_file
10636 else
10637 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10638 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10641 rm -f confcache
10643 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10644 # Let make expand exec_prefix.
10645 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10647 DEFS=-DHAVE_CONFIG_H
10649 ac_libobjs=
10650 ac_ltlibobjs=
10651 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10652 # 1. Remove the extension, and $U if already installed.
10653 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10654 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10656 # will be set to the directory where LIBOBJS objects are built.
10657 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10658 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10659 done
10660 LIBOBJS=$ac_libobjs
10662 LTLIBOBJS=$ac_ltlibobjs
10666 : ${CONFIG_STATUS=./config.status}
10667 ac_write_fail=0
10668 ac_clean_files_save=$ac_clean_files
10669 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10670 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10671 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10672 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10673 #! $SHELL
10674 # Generated by $as_me.
10675 # Run this file to recreate the current configuration.
10676 # Compiler output produced by configure, useful for debugging
10677 # configure, is in config.log if it exists.
10679 debug=false
10680 ac_cs_recheck=false
10681 ac_cs_silent=false
10682 SHELL=\${CONFIG_SHELL-$SHELL}
10683 _ACEOF
10685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10686 ## --------------------- ##
10687 ## M4sh Initialization. ##
10688 ## --------------------- ##
10690 # Be more Bourne compatible
10691 DUALCASE=1; export DUALCASE # for MKS sh
10692 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10693 emulate sh
10694 NULLCMD=:
10695 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10696 # is contrary to our usage. Disable this feature.
10697 alias -g '${1+"$@"}'='"$@"'
10698 setopt NO_GLOB_SUBST
10699 else
10700 case `(set -o) 2>/dev/null` in
10701 *posix*) set -o posix ;;
10702 esac
10709 # PATH needs CR
10710 # Avoid depending upon Character Ranges.
10711 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10712 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10713 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10714 as_cr_digits='0123456789'
10715 as_cr_alnum=$as_cr_Letters$as_cr_digits
10717 as_nl='
10719 export as_nl
10720 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10721 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10722 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10723 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10724 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10725 as_echo='printf %s\n'
10726 as_echo_n='printf %s'
10727 else
10728 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10729 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10730 as_echo_n='/usr/ucb/echo -n'
10731 else
10732 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10733 as_echo_n_body='eval
10734 arg=$1;
10735 case $arg in
10736 *"$as_nl"*)
10737 expr "X$arg" : "X\\(.*\\)$as_nl";
10738 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10739 esac;
10740 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10742 export as_echo_n_body
10743 as_echo_n='sh -c $as_echo_n_body as_echo'
10745 export as_echo_body
10746 as_echo='sh -c $as_echo_body as_echo'
10749 # The user is always right.
10750 if test "${PATH_SEPARATOR+set}" != set; then
10751 PATH_SEPARATOR=:
10752 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10753 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10754 PATH_SEPARATOR=';'
10758 # Support unset when possible.
10759 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10760 as_unset=unset
10761 else
10762 as_unset=false
10766 # IFS
10767 # We need space, tab and new line, in precisely that order. Quoting is
10768 # there to prevent editors from complaining about space-tab.
10769 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10770 # splitting by setting IFS to empty value.)
10771 IFS=" "" $as_nl"
10773 # Find who we are. Look in the path if we contain no directory separator.
10774 case $0 in
10775 *[\\/]* ) as_myself=$0 ;;
10776 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10777 for as_dir in $PATH
10779 IFS=$as_save_IFS
10780 test -z "$as_dir" && as_dir=.
10781 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10782 done
10783 IFS=$as_save_IFS
10786 esac
10787 # We did not find ourselves, most probably we were run as `sh COMMAND'
10788 # in which case we are not to be found in the path.
10789 if test "x$as_myself" = x; then
10790 as_myself=$0
10792 if test ! -f "$as_myself"; then
10793 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10794 { (exit 1); exit 1; }
10797 # Work around bugs in pre-3.0 UWIN ksh.
10798 for as_var in ENV MAIL MAILPATH
10799 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10800 done
10801 PS1='$ '
10802 PS2='> '
10803 PS4='+ '
10805 # NLS nuisances.
10806 LC_ALL=C
10807 export LC_ALL
10808 LANGUAGE=C
10809 export LANGUAGE
10811 # Required to use basename.
10812 if expr a : '\(a\)' >/dev/null 2>&1 &&
10813 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10814 as_expr=expr
10815 else
10816 as_expr=false
10819 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10820 as_basename=basename
10821 else
10822 as_basename=false
10826 # Name of the executable.
10827 as_me=`$as_basename -- "$0" ||
10828 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10829 X"$0" : 'X\(//\)$' \| \
10830 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10831 $as_echo X/"$0" |
10832 sed '/^.*\/\([^/][^/]*\)\/*$/{
10833 s//\1/
10836 /^X\/\(\/\/\)$/{
10837 s//\1/
10840 /^X\/\(\/\).*/{
10841 s//\1/
10844 s/.*/./; q'`
10846 # CDPATH.
10847 $as_unset CDPATH
10851 as_lineno_1=$LINENO
10852 as_lineno_2=$LINENO
10853 test "x$as_lineno_1" != "x$as_lineno_2" &&
10854 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10856 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10857 # uniformly replaced by the line number. The first 'sed' inserts a
10858 # line-number line after each line using $LINENO; the second 'sed'
10859 # does the real work. The second script uses 'N' to pair each
10860 # line-number line with the line containing $LINENO, and appends
10861 # trailing '-' during substitution so that $LINENO is not a special
10862 # case at line end.
10863 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10864 # scripts with optimization help from Paolo Bonzini. Blame Lee
10865 # E. McMahon (1931-1989) for sed's syntax. :-)
10866 sed -n '
10868 /[$]LINENO/=
10869 ' <$as_myself |
10870 sed '
10871 s/[$]LINENO.*/&-/
10872 t lineno
10874 :lineno
10876 :loop
10877 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10878 t loop
10879 s/-\n.*//
10880 ' >$as_me.lineno &&
10881 chmod +x "$as_me.lineno" ||
10882 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10883 { (exit 1); exit 1; }; }
10885 # Don't try to exec as it changes $[0], causing all sort of problems
10886 # (the dirname of $[0] is not the place where we might find the
10887 # original and so on. Autoconf is especially sensitive to this).
10888 . "./$as_me.lineno"
10889 # Exit status is that of the last command.
10890 exit
10894 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10895 as_dirname=dirname
10896 else
10897 as_dirname=false
10900 ECHO_C= ECHO_N= ECHO_T=
10901 case `echo -n x` in
10902 -n*)
10903 case `echo 'x\c'` in
10904 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10905 *) ECHO_C='\c';;
10906 esac;;
10908 ECHO_N='-n';;
10909 esac
10910 if expr a : '\(a\)' >/dev/null 2>&1 &&
10911 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10912 as_expr=expr
10913 else
10914 as_expr=false
10917 rm -f conf$$ conf$$.exe conf$$.file
10918 if test -d conf$$.dir; then
10919 rm -f conf$$.dir/conf$$.file
10920 else
10921 rm -f conf$$.dir
10922 mkdir conf$$.dir 2>/dev/null
10924 if (echo >conf$$.file) 2>/dev/null; then
10925 if ln -s conf$$.file conf$$ 2>/dev/null; then
10926 as_ln_s='ln -s'
10927 # ... but there are two gotchas:
10928 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10929 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10930 # In both cases, we have to default to `cp -p'.
10931 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10932 as_ln_s='cp -p'
10933 elif ln conf$$.file conf$$ 2>/dev/null; then
10934 as_ln_s=ln
10935 else
10936 as_ln_s='cp -p'
10938 else
10939 as_ln_s='cp -p'
10941 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10942 rmdir conf$$.dir 2>/dev/null
10944 if mkdir -p . 2>/dev/null; then
10945 as_mkdir_p=:
10946 else
10947 test -d ./-p && rmdir ./-p
10948 as_mkdir_p=false
10951 if test -x / >/dev/null 2>&1; then
10952 as_test_x='test -x'
10953 else
10954 if ls -dL / >/dev/null 2>&1; then
10955 as_ls_L_option=L
10956 else
10957 as_ls_L_option=
10959 as_test_x='
10960 eval sh -c '\''
10961 if test -d "$1"; then
10962 test -d "$1/.";
10963 else
10964 case $1 in
10965 -*)set "./$1";;
10966 esac;
10967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10968 ???[sx]*):;;*)false;;esac;fi
10969 '\'' sh
10972 as_executable_p=$as_test_x
10974 # Sed expression to map a string onto a valid CPP name.
10975 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10977 # Sed expression to map a string onto a valid variable name.
10978 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10981 exec 6>&1
10983 # Save the log message, to keep $[0] and so on meaningful, and to
10984 # report actual input values of CONFIG_FILES etc. instead of their
10985 # values after options handling.
10986 ac_log="
10987 This file was extended by $as_me, which was
10988 generated by GNU Autoconf 2.63. Invocation command line was
10990 CONFIG_FILES = $CONFIG_FILES
10991 CONFIG_HEADERS = $CONFIG_HEADERS
10992 CONFIG_LINKS = $CONFIG_LINKS
10993 CONFIG_COMMANDS = $CONFIG_COMMANDS
10994 $ $0 $@
10996 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10999 _ACEOF
11001 case $ac_config_files in *"
11002 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11003 esac
11005 case $ac_config_headers in *"
11006 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11007 esac
11010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11011 # Files that config.status was made for.
11012 config_files="$ac_config_files"
11013 config_headers="$ac_config_headers"
11015 _ACEOF
11017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11018 ac_cs_usage="\
11019 \`$as_me' instantiates files from templates according to the
11020 current configuration.
11022 Usage: $0 [OPTION]... [FILE]...
11024 -h, --help print this help, then exit
11025 -V, --version print version number and configuration settings, then exit
11026 -q, --quiet, --silent
11027 do not print progress messages
11028 -d, --debug don't remove temporary files
11029 --recheck update $as_me by reconfiguring in the same conditions
11030 --file=FILE[:TEMPLATE]
11031 instantiate the configuration file FILE
11032 --header=FILE[:TEMPLATE]
11033 instantiate the configuration header FILE
11035 Configuration files:
11036 $config_files
11038 Configuration headers:
11039 $config_headers
11041 Report bugs to <bug-autoconf@gnu.org>."
11043 _ACEOF
11044 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11045 ac_cs_version="\\
11046 config.status
11047 configured by $0, generated by GNU Autoconf 2.63,
11048 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11050 Copyright (C) 2008 Free Software Foundation, Inc.
11051 This config.status script is free software; the Free Software Foundation
11052 gives unlimited permission to copy, distribute and modify it."
11054 ac_pwd='$ac_pwd'
11055 srcdir='$srcdir'
11056 INSTALL='$INSTALL'
11057 test -n "\$AWK" || AWK=awk
11058 _ACEOF
11060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11061 # The default lists apply if the user does not specify any file.
11062 ac_need_defaults=:
11063 while test $# != 0
11065 case $1 in
11066 --*=*)
11067 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11068 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11069 ac_shift=:
11072 ac_option=$1
11073 ac_optarg=$2
11074 ac_shift=shift
11076 esac
11078 case $ac_option in
11079 # Handling of the options.
11080 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11081 ac_cs_recheck=: ;;
11082 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11083 $as_echo "$ac_cs_version"; exit ;;
11084 --debug | --debu | --deb | --de | --d | -d )
11085 debug=: ;;
11086 --file | --fil | --fi | --f )
11087 $ac_shift
11088 case $ac_optarg in
11089 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11090 esac
11091 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11092 ac_need_defaults=false;;
11093 --header | --heade | --head | --hea )
11094 $ac_shift
11095 case $ac_optarg in
11096 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11097 esac
11098 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11099 ac_need_defaults=false;;
11100 --he | --h)
11101 # Conflict between --help and --header
11102 { $as_echo "$as_me: error: ambiguous option: $1
11103 Try \`$0 --help' for more information." >&2
11104 { (exit 1); exit 1; }; };;
11105 --help | --hel | -h )
11106 $as_echo "$ac_cs_usage"; exit ;;
11107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11108 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11109 ac_cs_silent=: ;;
11111 # This is an error.
11112 -*) { $as_echo "$as_me: error: unrecognized option: $1
11113 Try \`$0 --help' for more information." >&2
11114 { (exit 1); exit 1; }; } ;;
11116 *) ac_config_targets="$ac_config_targets $1"
11117 ac_need_defaults=false ;;
11119 esac
11120 shift
11121 done
11123 ac_configure_extra_args=
11125 if $ac_cs_silent; then
11126 exec 6>/dev/null
11127 ac_configure_extra_args="$ac_configure_extra_args --silent"
11130 _ACEOF
11131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11132 if \$ac_cs_recheck; then
11133 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11134 shift
11135 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11136 CONFIG_SHELL='$SHELL'
11137 export CONFIG_SHELL
11138 exec "\$@"
11141 _ACEOF
11142 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11143 exec 5>>config.log
11145 echo
11146 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11147 ## Running $as_me. ##
11148 _ASBOX
11149 $as_echo "$ac_log"
11150 } >&5
11152 _ACEOF
11153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11154 _ACEOF
11156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11158 # Handling of arguments.
11159 for ac_config_target in $ac_config_targets
11161 case $ac_config_target in
11162 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11163 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11165 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11166 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11167 { (exit 1); exit 1; }; };;
11168 esac
11169 done
11172 # If the user did not use the arguments to specify the items to instantiate,
11173 # then the envvar interface is used. Set only those that are not.
11174 # We use the long form for the default assignment because of an extremely
11175 # bizarre bug on SunOS 4.1.3.
11176 if $ac_need_defaults; then
11177 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11178 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11181 # Have a temporary directory for convenience. Make it in the build tree
11182 # simply because there is no reason against having it here, and in addition,
11183 # creating and moving files from /tmp can sometimes cause problems.
11184 # Hook for its removal unless debugging.
11185 # Note that there is a small window in which the directory will not be cleaned:
11186 # after its creation but before its name has been assigned to `$tmp'.
11187 $debug ||
11189 tmp=
11190 trap 'exit_status=$?
11191 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11193 trap '{ (exit 1); exit 1; }' 1 2 13 15
11195 # Create a (secure) tmp directory for tmp files.
11198 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11199 test -n "$tmp" && test -d "$tmp"
11200 } ||
11202 tmp=./conf$$-$RANDOM
11203 (umask 077 && mkdir "$tmp")
11204 } ||
11206 $as_echo "$as_me: cannot create a temporary directory in ." >&2
11207 { (exit 1); exit 1; }
11210 # Set up the scripts for CONFIG_FILES section.
11211 # No need to generate them if there are no CONFIG_FILES.
11212 # This happens for instance with `./config.status config.h'.
11213 if test -n "$CONFIG_FILES"; then
11216 ac_cr=' '
11217 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11218 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11219 ac_cs_awk_cr='\\r'
11220 else
11221 ac_cs_awk_cr=$ac_cr
11224 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11225 _ACEOF
11229 echo "cat >conf$$subs.awk <<_ACEOF" &&
11230 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11231 echo "_ACEOF"
11232 } >conf$$subs.sh ||
11233 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11234 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11235 { (exit 1); exit 1; }; }
11236 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11237 ac_delim='%!_!# '
11238 for ac_last_try in false false false false false :; do
11239 . ./conf$$subs.sh ||
11240 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11241 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11242 { (exit 1); exit 1; }; }
11244 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11245 if test $ac_delim_n = $ac_delim_num; then
11246 break
11247 elif $ac_last_try; then
11248 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11249 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11250 { (exit 1); exit 1; }; }
11251 else
11252 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11254 done
11255 rm -f conf$$subs.sh
11257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11258 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11259 _ACEOF
11260 sed -n '
11262 s/^/S["/; s/!.*/"]=/
11265 s/^[^!]*!//
11266 :repl
11267 t repl
11268 s/'"$ac_delim"'$//
11269 t delim
11272 s/\(.\{148\}\).*/\1/
11273 t more1
11274 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11277 b repl
11278 :more1
11279 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11282 s/.\{148\}//
11283 t nl
11284 :delim
11286 s/\(.\{148\}\).*/\1/
11287 t more2
11288 s/["\\]/\\&/g; s/^/"/; s/$/"/
11291 :more2
11292 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11295 s/.\{148\}//
11296 t delim
11297 ' <conf$$subs.awk | sed '
11298 /^[^""]/{
11300 s/\n//
11302 ' >>$CONFIG_STATUS || ac_write_fail=1
11303 rm -f conf$$subs.awk
11304 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11305 _ACAWK
11306 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11307 for (key in S) S_is_set[key] = 1
11308 FS = "\a"
11312 line = $ 0
11313 nfields = split(line, field, "@")
11314 substed = 0
11315 len = length(field[1])
11316 for (i = 2; i < nfields; i++) {
11317 key = field[i]
11318 keylen = length(key)
11319 if (S_is_set[key]) {
11320 value = S[key]
11321 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11322 len += length(value) + length(field[++i])
11323 substed = 1
11324 } else
11325 len += 1 + keylen
11328 print line
11331 _ACAWK
11332 _ACEOF
11333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11334 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11335 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11336 else
11338 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11339 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11340 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11341 { (exit 1); exit 1; }; }
11342 _ACEOF
11344 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11345 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11346 # trailing colons and then remove the whole line if VPATH becomes empty
11347 # (actually we leave an empty line to preserve line numbers).
11348 if test "x$srcdir" = x.; then
11349 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11350 s/:*\$(srcdir):*/:/
11351 s/:*\${srcdir}:*/:/
11352 s/:*@srcdir@:*/:/
11353 s/^\([^=]*=[ ]*\):*/\1/
11354 s/:*$//
11355 s/^[^=]*=[ ]*$//
11359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11360 fi # test -n "$CONFIG_FILES"
11362 # Set up the scripts for CONFIG_HEADERS section.
11363 # No need to generate them if there are no CONFIG_HEADERS.
11364 # This happens for instance with `./config.status Makefile'.
11365 if test -n "$CONFIG_HEADERS"; then
11366 cat >"$tmp/defines.awk" <<\_ACAWK ||
11367 BEGIN {
11368 _ACEOF
11370 # Transform confdefs.h into an awk script `defines.awk', embedded as
11371 # here-document in config.status, that substitutes the proper values into
11372 # config.h.in to produce config.h.
11374 # Create a delimiter string that does not exist in confdefs.h, to ease
11375 # handling of long lines.
11376 ac_delim='%!_!# '
11377 for ac_last_try in false false :; do
11378 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11379 if test -z "$ac_t"; then
11380 break
11381 elif $ac_last_try; then
11382 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11383 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11384 { (exit 1); exit 1; }; }
11385 else
11386 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11388 done
11390 # For the awk script, D is an array of macro values keyed by name,
11391 # likewise P contains macro parameters if any. Preserve backslash
11392 # newline sequences.
11394 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11395 sed -n '
11396 s/.\{148\}/&'"$ac_delim"'/g
11397 t rset
11398 :rset
11399 s/^[ ]*#[ ]*define[ ][ ]*/ /
11400 t def
11402 :def
11403 s/\\$//
11404 t bsnl
11405 s/["\\]/\\&/g
11406 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11407 D["\1"]=" \3"/p
11408 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11410 :bsnl
11411 s/["\\]/\\&/g
11412 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11413 D["\1"]=" \3\\\\\\n"\\/p
11414 t cont
11415 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11416 t cont
11418 :cont
11420 s/.\{148\}/&'"$ac_delim"'/g
11421 t clear
11422 :clear
11423 s/\\$//
11424 t bsnlc
11425 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11427 :bsnlc
11428 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11429 b cont
11430 ' <confdefs.h | sed '
11431 s/'"$ac_delim"'/"\\\
11432 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11435 for (key in D) D_is_set[key] = 1
11436 FS = "\a"
11438 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11439 line = \$ 0
11440 split(line, arg, " ")
11441 if (arg[1] == "#") {
11442 defundef = arg[2]
11443 mac1 = arg[3]
11444 } else {
11445 defundef = substr(arg[1], 2)
11446 mac1 = arg[2]
11448 split(mac1, mac2, "(") #)
11449 macro = mac2[1]
11450 prefix = substr(line, 1, index(line, defundef) - 1)
11451 if (D_is_set[macro]) {
11452 # Preserve the white space surrounding the "#".
11453 print prefix "define", macro P[macro] D[macro]
11454 next
11455 } else {
11456 # Replace #undef with comments. This is necessary, for example,
11457 # in the case of _POSIX_SOURCE, which is predefined and required
11458 # on some systems where configure will not decide to define it.
11459 if (defundef == "undef") {
11460 print "/*", prefix defundef, macro, "*/"
11461 next
11465 { print }
11466 _ACAWK
11467 _ACEOF
11468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11469 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11470 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11471 { (exit 1); exit 1; }; }
11472 fi # test -n "$CONFIG_HEADERS"
11475 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11476 shift
11477 for ac_tag
11479 case $ac_tag in
11480 :[FHLC]) ac_mode=$ac_tag; continue;;
11481 esac
11482 case $ac_mode$ac_tag in
11483 :[FHL]*:*);;
11484 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11485 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11486 { (exit 1); exit 1; }; };;
11487 :[FH]-) ac_tag=-:-;;
11488 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11489 esac
11490 ac_save_IFS=$IFS
11491 IFS=:
11492 set x $ac_tag
11493 IFS=$ac_save_IFS
11494 shift
11495 ac_file=$1
11496 shift
11498 case $ac_mode in
11499 :L) ac_source=$1;;
11500 :[FH])
11501 ac_file_inputs=
11502 for ac_f
11504 case $ac_f in
11505 -) ac_f="$tmp/stdin";;
11506 *) # Look for the file first in the build tree, then in the source tree
11507 # (if the path is not absolute). The absolute path cannot be DOS-style,
11508 # because $ac_f cannot contain `:'.
11509 test -f "$ac_f" ||
11510 case $ac_f in
11511 [\\/$]*) false;;
11512 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11513 esac ||
11514 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11515 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11516 { (exit 1); exit 1; }; };;
11517 esac
11518 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11519 ac_file_inputs="$ac_file_inputs '$ac_f'"
11520 done
11522 # Let's still pretend it is `configure' which instantiates (i.e., don't
11523 # use $as_me), people would be surprised to read:
11524 # /* config.h. Generated by config.status. */
11525 configure_input='Generated from '`
11526 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11527 `' by configure.'
11528 if test x"$ac_file" != x-; then
11529 configure_input="$ac_file. $configure_input"
11530 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11531 $as_echo "$as_me: creating $ac_file" >&6;}
11533 # Neutralize special characters interpreted by sed in replacement strings.
11534 case $configure_input in #(
11535 *\&* | *\|* | *\\* )
11536 ac_sed_conf_input=`$as_echo "$configure_input" |
11537 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11538 *) ac_sed_conf_input=$configure_input;;
11539 esac
11541 case $ac_tag in
11542 *:-:* | *:-) cat >"$tmp/stdin" \
11543 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11544 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11545 { (exit 1); exit 1; }; } ;;
11546 esac
11548 esac
11550 ac_dir=`$as_dirname -- "$ac_file" ||
11551 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11552 X"$ac_file" : 'X\(//\)[^/]' \| \
11553 X"$ac_file" : 'X\(//\)$' \| \
11554 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11555 $as_echo X"$ac_file" |
11556 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11557 s//\1/
11560 /^X\(\/\/\)[^/].*/{
11561 s//\1/
11564 /^X\(\/\/\)$/{
11565 s//\1/
11568 /^X\(\/\).*/{
11569 s//\1/
11572 s/.*/./; q'`
11573 { as_dir="$ac_dir"
11574 case $as_dir in #(
11575 -*) as_dir=./$as_dir;;
11576 esac
11577 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11578 as_dirs=
11579 while :; do
11580 case $as_dir in #(
11581 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11582 *) as_qdir=$as_dir;;
11583 esac
11584 as_dirs="'$as_qdir' $as_dirs"
11585 as_dir=`$as_dirname -- "$as_dir" ||
11586 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11587 X"$as_dir" : 'X\(//\)[^/]' \| \
11588 X"$as_dir" : 'X\(//\)$' \| \
11589 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11590 $as_echo X"$as_dir" |
11591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11592 s//\1/
11595 /^X\(\/\/\)[^/].*/{
11596 s//\1/
11599 /^X\(\/\/\)$/{
11600 s//\1/
11603 /^X\(\/\).*/{
11604 s//\1/
11607 s/.*/./; q'`
11608 test -d "$as_dir" && break
11609 done
11610 test -z "$as_dirs" || eval "mkdir $as_dirs"
11611 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11612 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11613 { (exit 1); exit 1; }; }; }
11614 ac_builddir=.
11616 case "$ac_dir" in
11617 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11619 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11620 # A ".." for each directory in $ac_dir_suffix.
11621 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11622 case $ac_top_builddir_sub in
11623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11625 esac ;;
11626 esac
11627 ac_abs_top_builddir=$ac_pwd
11628 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11629 # for backward compatibility:
11630 ac_top_builddir=$ac_top_build_prefix
11632 case $srcdir in
11633 .) # We are building in place.
11634 ac_srcdir=.
11635 ac_top_srcdir=$ac_top_builddir_sub
11636 ac_abs_top_srcdir=$ac_pwd ;;
11637 [\\/]* | ?:[\\/]* ) # Absolute name.
11638 ac_srcdir=$srcdir$ac_dir_suffix;
11639 ac_top_srcdir=$srcdir
11640 ac_abs_top_srcdir=$srcdir ;;
11641 *) # Relative name.
11642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11643 ac_top_srcdir=$ac_top_build_prefix$srcdir
11644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11645 esac
11646 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11649 case $ac_mode in
11652 # CONFIG_FILE
11655 case $INSTALL in
11656 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11657 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11658 esac
11659 _ACEOF
11661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11662 # If the template does not know about datarootdir, expand it.
11663 # FIXME: This hack should be removed a few years after 2.60.
11664 ac_datarootdir_hack=; ac_datarootdir_seen=
11666 ac_sed_dataroot='
11667 /datarootdir/ {
11671 /@datadir@/p
11672 /@docdir@/p
11673 /@infodir@/p
11674 /@localedir@/p
11675 /@mandir@/p
11677 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11678 *datarootdir*) ac_datarootdir_seen=yes;;
11679 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11680 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11681 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11682 _ACEOF
11683 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11684 ac_datarootdir_hack='
11685 s&@datadir@&$datadir&g
11686 s&@docdir@&$docdir&g
11687 s&@infodir@&$infodir&g
11688 s&@localedir@&$localedir&g
11689 s&@mandir@&$mandir&g
11690 s&\\\${datarootdir}&$datarootdir&g' ;;
11691 esac
11692 _ACEOF
11694 # Neutralize VPATH when `$srcdir' = `.'.
11695 # Shell code in configure.ac might set extrasub.
11696 # FIXME: do we really want to maintain this feature?
11697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11698 ac_sed_extra="$ac_vpsub
11699 $extrasub
11700 _ACEOF
11701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11703 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11704 s|@configure_input@|$ac_sed_conf_input|;t t
11705 s&@top_builddir@&$ac_top_builddir_sub&;t t
11706 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11707 s&@srcdir@&$ac_srcdir&;t t
11708 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11709 s&@top_srcdir@&$ac_top_srcdir&;t t
11710 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11711 s&@builddir@&$ac_builddir&;t t
11712 s&@abs_builddir@&$ac_abs_builddir&;t t
11713 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11714 s&@INSTALL@&$ac_INSTALL&;t t
11715 $ac_datarootdir_hack
11717 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11718 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11719 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11720 { (exit 1); exit 1; }; }
11722 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11723 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11724 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11725 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11726 which seems to be undefined. Please make sure it is defined." >&5
11727 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11728 which seems to be undefined. Please make sure it is defined." >&2;}
11730 rm -f "$tmp/stdin"
11731 case $ac_file in
11732 -) cat "$tmp/out" && rm -f "$tmp/out";;
11733 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11734 esac \
11735 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11736 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11737 { (exit 1); exit 1; }; }
11741 # CONFIG_HEADER
11743 if test x"$ac_file" != x-; then
11745 $as_echo "/* $configure_input */" \
11746 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11747 } >"$tmp/config.h" \
11748 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11749 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11750 { (exit 1); exit 1; }; }
11751 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11752 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11753 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11754 else
11755 rm -f "$ac_file"
11756 mv "$tmp/config.h" "$ac_file" \
11757 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11758 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11759 { (exit 1); exit 1; }; }
11761 else
11762 $as_echo "/* $configure_input */" \
11763 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11764 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11765 $as_echo "$as_me: error: could not create -" >&2;}
11766 { (exit 1); exit 1; }; }
11771 esac
11773 done # for ac_tag
11776 { (exit 0); exit 0; }
11777 _ACEOF
11778 chmod +x $CONFIG_STATUS
11779 ac_clean_files=$ac_clean_files_save
11781 test $ac_write_fail = 0 ||
11782 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11783 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11784 { (exit 1); exit 1; }; }
11787 # configure is writing to config.log, and then calls config.status.
11788 # config.status does its own redirection, appending to config.log.
11789 # Unfortunately, on DOS this fails, as config.log is still kept open
11790 # by configure, so config.status won't be able to write to it; its
11791 # output is simply discarded. So we exec the FD to /dev/null,
11792 # effectively closing config.log, so it can be properly (re)opened and
11793 # appended to by config.status. When coming back to configure, we
11794 # need to make the FD available again.
11795 if test "$no_create" != yes; then
11796 ac_cs_success=:
11797 ac_config_status_args=
11798 test "$silent" = yes &&
11799 ac_config_status_args="$ac_config_status_args --quiet"
11800 exec 5>/dev/null
11801 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11802 exec 5>>config.log
11803 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11804 # would make configure fail if this is the last instruction.
11805 $ac_cs_success || { (exit 1); exit 1; }
11807 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11808 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11809 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11815 # On development trees, create snapshots of config.status
11817 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11818 if test "x${MINGW}" = "xyes"; then
11819 echo cp config.status config.status.win32
11820 cp config.status config.status.win32
11821 else
11822 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
11823 echo cp config.status config.status.linux
11824 cp config.status config.status.linux
11826 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
11827 echo cp config.status config.status.debug
11828 cp config.status config.status.debug
11830 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
11831 echo cp config.status config.status.optimize
11832 cp config.status config.status.optimize