2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix=/usr/local
564 ac_config_libobj_dir=.
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file="src/"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
625 program_transform_name
723 ac_precious_vars='build_alias
743 # Initialize some variables set by options.
745 ac_init_version=false
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
755 program_transform_name=s,x,x,
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir='${exec_prefix}/bin'
770 sbindir='${exec_prefix}/sbin'
771 libexecdir='${exec_prefix}/libexec'
772 datarootdir='${prefix}/share'
773 datadir='${datarootdir}'
774 sysconfdir='${prefix}/etc'
775 sharedstatedir='${prefix}/com'
776 localstatedir='${prefix}/var'
777 includedir='${prefix}/include'
778 oldincludedir='/usr/include'
779 docdir='${datarootdir}/doc/${PACKAGE}'
780 infodir='${datarootdir}/info'
785 libdir='${exec_prefix}/lib'
786 localedir='${datarootdir}/locale'
787 mandir='${datarootdir}/man'
793 # If the previous option needs an argument, assign it.
794 if test -n "$ac_prev"; then
795 eval $ac_prev=\$ac_option
801 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
805 # Accept the important Cygnus configure options, so we can diagnose typos.
807 case $ac_dashdash$ac_option in
811 -bindir | --bindir | --bindi | --bind | --bin | --bi)
813 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 -build | --build | --buil | --bui | --bu)
817 ac_prev=build_alias ;;
818 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819 build_alias=$ac_optarg ;;
821 -cache-file | --cache-file | --cache-fil | --cache-fi \
822 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823 ac_prev=cache_file ;;
824 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826 cache_file=$ac_optarg ;;
829 cache_file=config.cache ;;
831 -datadir | --datadir | --datadi | --datad)
833 -datadir=* | --datadir=* | --datadi=* | --datad=*)
834 datadir=$ac_optarg ;;
836 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837 | --dataroo | --dataro | --datar)
838 ac_prev=datarootdir ;;
839 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841 datarootdir=$ac_optarg ;;
843 -disable-* | --disable-*)
844 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_$ac_feature=no ;;
852 -docdir | --docdir | --docdi | --doc | --do)
854 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
859 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 -enable-* | --enable-*)
863 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
866 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
867 { (exit 1); exit 1; }; }
868 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
869 eval enable_$ac_feature=\$ac_optarg ;;
871 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873 | --exec | --exe | --ex)
874 ac_prev=exec_prefix ;;
875 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877 | --exec=* | --exe=* | --ex=*)
878 exec_prefix=$ac_optarg ;;
880 -gas | --gas | --ga | --g)
881 # Obsolete; use --with-gas.
884 -help | --help | --hel | --he | -h)
886 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887 ac_init_help=recursive ;;
888 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889 ac_init_help=short ;;
891 -host | --host | --hos | --ho)
892 ac_prev=host_alias ;;
893 -host=* | --host=* | --hos=* | --ho=*)
894 host_alias=$ac_optarg ;;
896 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
898 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
900 htmldir=$ac_optarg ;;
902 -includedir | --includedir | --includedi | --included | --include \
903 | --includ | --inclu | --incl | --inc)
904 ac_prev=includedir ;;
905 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906 | --includ=* | --inclu=* | --incl=* | --inc=*)
907 includedir=$ac_optarg ;;
909 -infodir | --infodir | --infodi | --infod | --info | --inf)
911 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912 infodir=$ac_optarg ;;
914 -libdir | --libdir | --libdi | --libd)
916 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920 | --libexe | --libex | --libe)
921 ac_prev=libexecdir ;;
922 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923 | --libexe=* | --libex=* | --libe=*)
924 libexecdir=$ac_optarg ;;
926 -localedir | --localedir | --localedi | --localed | --locale)
928 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929 localedir=$ac_optarg ;;
931 -localstatedir | --localstatedir | --localstatedi | --localstated \
932 | --localstate | --localstat | --localsta | --localst | --locals)
933 ac_prev=localstatedir ;;
934 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
935 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
936 localstatedir=$ac_optarg ;;
938 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
940 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
944 # Obsolete; use --without-fp.
947 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948 | --no-cr | --no-c | -n)
951 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957 | --oldin | --oldi | --old | --ol | --o)
958 ac_prev=oldincludedir ;;
959 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962 oldincludedir=$ac_optarg ;;
964 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
966 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 -program-prefix | --program-prefix | --program-prefi | --program-pref \
970 | --program-pre | --program-pr | --program-p)
971 ac_prev=program_prefix ;;
972 -program-prefix=* | --program-prefix=* | --program-prefi=* \
973 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974 program_prefix=$ac_optarg ;;
976 -program-suffix | --program-suffix | --program-suffi | --program-suff \
977 | --program-suf | --program-su | --program-s)
978 ac_prev=program_suffix ;;
979 -program-suffix=* | --program-suffix=* | --program-suffi=* \
980 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981 program_suffix=$ac_optarg ;;
983 -program-transform-name | --program-transform-name \
984 | --program-transform-nam | --program-transform-na \
985 | --program-transform-n | --program-transform- \
986 | --program-transform | --program-transfor \
987 | --program-transfo | --program-transf \
988 | --program-trans | --program-tran \
989 | --progr-tra | --program-tr | --program-t)
990 ac_prev=program_transform_name ;;
991 -program-transform-name=* | --program-transform-name=* \
992 | --program-transform-nam=* | --program-transform-na=* \
993 | --program-transform-n=* | --program-transform-=* \
994 | --program-transform=* | --program-transfor=* \
995 | --program-transfo=* | --program-transf=* \
996 | --program-trans=* | --program-tran=* \
997 | --progr-tra=* | --program-tr=* | --program-t=*)
998 program_transform_name=$ac_optarg ;;
1000 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1002 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003 pdfdir=$ac_optarg ;;
1005 -psdir | --psdir | --psdi | --psd | --ps)
1007 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011 | -silent | --silent | --silen | --sile | --sil)
1014 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1016 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1018 sbindir=$ac_optarg ;;
1020 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022 | --sharedst | --shareds | --shared | --share | --shar \
1024 ac_prev=sharedstatedir ;;
1025 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1029 sharedstatedir=$ac_optarg ;;
1031 -site | --site | --sit)
1033 -site=* | --site=* | --sit=*)
1036 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1038 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039 srcdir=$ac_optarg ;;
1041 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042 | --syscon | --sysco | --sysc | --sys | --sy)
1043 ac_prev=sysconfdir ;;
1044 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046 sysconfdir=$ac_optarg ;;
1048 -target | --target | --targe | --targ | --tar | --ta | --t)
1049 ac_prev=target_alias ;;
1050 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051 target_alias=$ac_optarg ;;
1053 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 -version | --version | --versio | --versi | --vers | -V)
1057 ac_init_version=: ;;
1060 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1066 eval with_$ac_package=\$ac_optarg ;;
1068 -without-* | --without-*)
1069 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=no ;;
1078 # Obsolete; use --with-x.
1081 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082 | --x-incl | --x-inc | --x-in | --x-i)
1083 ac_prev=x_includes ;;
1084 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1086 x_includes=$ac_optarg ;;
1088 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090 ac_prev=x_libraries ;;
1091 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093 x_libraries=$ac_optarg ;;
1095 -*) { echo "$as_me: error: unrecognized option: $ac_option
1096 Try \`$0 --help' for more information." >&2
1097 { (exit 1); exit 1; }; }
1101 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105 { (exit 1); exit 1; }; }
1106 eval $ac_envvar=\$ac_optarg
1107 export $ac_envvar ;;
1110 # FIXME: should be removed in autoconf 3.0.
1111 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1120 if test -n "$ac_prev"; then
1121 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122 { echo "$as_me: error: missing argument to $ac_option" >&2
1123 { (exit 1); exit 1; }; }
1126 # Be sure to have absolute directory names.
1127 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128 datadir sysconfdir sharedstatedir localstatedir includedir \
1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130 libdir localedir mandir
1132 eval ac_val=\$$ac_var
1134 [\\/$]* | ?:[\\/]* ) continue;;
1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1137 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138 { (exit 1); exit 1; }; }
1141 # There might be people who depend on the old broken behavior: `$host'
1142 # used to hold the argument of --host etc.
1143 # FIXME: To remove some day.
1146 target=$target_alias
1148 # FIXME: To remove some day.
1149 if test "x$host_alias" != x; then
1150 if test "x$build_alias" = x; then
1151 cross_compiling=maybe
1152 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153 If a cross compiler is detected then cross compile mode will be used." >&2
1154 elif test "x$build_alias" != "x$host_alias"; then
1160 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1162 test "$silent" = yes && exec 6>/dev/null
1165 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166 ac_ls_di=`ls -di .` &&
1167 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168 { echo "$as_me: error: Working directory cannot be determined" >&2
1169 { (exit 1); exit 1; }; }
1170 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171 { echo "$as_me: error: pwd does not report name of working directory" >&2
1172 { (exit 1); exit 1; }; }
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177 ac_srcdir_defaulted=yes
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir=`$as_dirname -- "$0" ||
1180 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$0" : 'X\(//\)[^/]' \| \
1182 X"$0" : 'X\(//\)$' \| \
1183 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1207 ac_srcdir_defaulted=no
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212 { (exit 1); exit 1; }; }
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1216 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217 { (exit 1); exit 1; }; }
1219 # When building in place, set srcdir=.
1220 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 # Remove unnecessary trailing slashes from srcdir.
1224 # Double slashes in file names in object file debugging info
1225 # mess up M-x gdb in Emacs.
1227 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1229 for ac_var in $ac_precious_vars; do
1230 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_env_${ac_var}_value=\$${ac_var}
1232 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1237 # Report the --help message.
1239 if test "$ac_init_help" = "long"; then
1240 # Omit some internal or obsolete options to make the list less imposing.
1241 # This message is too long to be a string in the A/UX 3.1 sh.
1243 \`configure' configures this package to adapt to many kinds of systems.
1245 Usage: $0 [OPTION]... [VAR=VALUE]...
1247 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248 VAR=VALUE. See below for descriptions of some of the useful variables.
1250 Defaults for the options are specified in brackets.
1253 -h, --help display this help and exit
1254 --help=short display options specific to this package
1255 --help=recursive display the short help of all the included packages
1256 -V, --version display version information and exit
1257 -q, --quiet, --silent do not print \`checking...' messages
1258 --cache-file=FILE cache test results in FILE [disabled]
1259 -C, --config-cache alias for \`--cache-file=config.cache'
1260 -n, --no-create do not create output files
1261 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1263 Installation directories:
1264 --prefix=PREFIX install architecture-independent files in PREFIX
1265 [$ac_default_prefix]
1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 By default, \`make install' will install all the files in
1270 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272 for instance \`--prefix=\$HOME'.
1274 For better control, use the options below.
1276 Fine tuning of the installation directories:
1277 --bindir=DIR user executables [EPREFIX/bin]
1278 --sbindir=DIR system admin executables [EPREFIX/sbin]
1279 --libexecdir=DIR program executables [EPREFIX/libexec]
1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283 --libdir=DIR object code libraries [EPREFIX/lib]
1284 --includedir=DIR C header files [PREFIX/include]
1285 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288 --infodir=DIR info documentation [DATAROOTDIR/info]
1289 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290 --mandir=DIR man documentation [DATAROOTDIR/man]
1291 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1292 --htmldir=DIR html documentation [DOCDIR]
1293 --dvidir=DIR dvi documentation [DOCDIR]
1294 --pdfdir=DIR pdf documentation [DOCDIR]
1295 --psdir=DIR ps documentation [DOCDIR]
1301 --program-prefix=PREFIX prepend PREFIX to installed program names
1302 --program-suffix=SUFFIX append SUFFIX to installed program names
1303 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1306 --build=BUILD configure for building on BUILD [guessed]
1307 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1308 --target=TARGET configure for building compilers for TARGET [HOST]
1312 if test -n "$ac_init_help"; then
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-checkmem turn on ccmalloc debugging
1320 --enable-debug turn on debugging
1321 --enable-profiling turn on profiling
1322 --enable-warnings turn on compiler warnings
1323 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1324 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1327 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1328 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1329 --with-external-libart use external libart library (currently broken)
1330 --with-poppler use poppler instead of internal xpdf (currently broken)
1332 Some influential environment variables:
1333 CC C compiler command
1334 CFLAGS C compiler flags
1335 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1336 nonstandard directory <lib dir>
1337 LIBS libraries to pass to the linker, e.g. -l<library>
1338 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1339 you have headers in a nonstandard directory <include dir>
1340 CXX C++ compiler command
1341 CXXFLAGS C++ compiler flags
1343 PKG_CONFIG path to pkg-config utility
1345 C compiler flags for LIBART, overriding pkg-config
1346 LIBART_LIBS linker flags for LIBART, overriding pkg-config
1348 C compiler flags for POPPLER, overriding pkg-config
1350 linker flags for POPPLER, overriding pkg-config
1351 CXXCPP C++ preprocessor
1353 Use these variables to override the choices made by `configure' or to help
1354 it to find libraries and programs with nonstandard names/locations.
1360 if test "$ac_init_help" = "recursive"; then
1361 # If there are subdirs, report their specific --help.
1362 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1363 test -d "$ac_dir" || continue
1367 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1369 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1370 # A ".." for each directory in $ac_dir_suffix.
1371 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1372 case $ac_top_builddir_sub in
1373 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1377 ac_abs_top_builddir=$ac_pwd
1378 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1379 # for backward compatibility:
1380 ac_top_builddir=$ac_top_build_prefix
1383 .) # We are building in place.
1385 ac_top_srcdir=$ac_top_builddir_sub
1386 ac_abs_top_srcdir=$ac_pwd ;;
1387 [\\/]* | ?:[\\/]* ) # Absolute name.
1388 ac_srcdir=$srcdir$ac_dir_suffix;
1389 ac_top_srcdir=$srcdir
1390 ac_abs_top_srcdir=$srcdir ;;
1392 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1393 ac_top_srcdir=$ac_top_build_prefix$srcdir
1394 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1396 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1398 cd "$ac_dir" || { ac_status=$?; continue; }
1399 # Check for guested configure.
1400 if test -f "$ac_srcdir/configure.gnu"; then
1402 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1403 elif test -f "$ac_srcdir/configure"; then
1405 $SHELL "$ac_srcdir/configure" --help=recursive
1407 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1409 cd "$ac_pwd" || { ac_status=$?; break; }
1413 test -n "$ac_init_help" && exit $ac_status
1414 if $ac_init_version; then
1417 generated by GNU Autoconf 2.61
1419 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1420 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1421 This configure script is free software; the Free Software Foundation
1422 gives unlimited permission to copy, distribute and modify it.
1426 cat >config.log <<_ACEOF
1427 This file contains any messages produced by compilers while
1428 running configure, to aid debugging if configure makes a mistake.
1430 It was created by $as_me, which was
1431 generated by GNU Autoconf 2.61. Invocation command line was
1443 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1444 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1445 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1446 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1447 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1449 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1450 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1452 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1453 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1454 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1455 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1456 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1457 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1458 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1466 test -z "$as_dir" && as_dir=.
1467 echo "PATH: $as_dir"
1483 # Keep a trace of the command line.
1484 # Strip out --no-create and --no-recursion so they do not pile up.
1485 # Strip out --silent because we don't want to record it for future runs.
1486 # Also quote any args containing shell meta-characters.
1487 # Make two passes to allow for proper duplicate-argument suppression.
1491 ac_must_keep_next=false
1497 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1498 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1499 | -silent | --silent | --silen | --sile | --sil)
1502 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1505 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1507 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1508 if test $ac_must_keep_next = true; then
1509 ac_must_keep_next=false # Got value, back to normal.
1512 *=* | --config-cache | -C | -disable-* | --disable-* \
1513 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1514 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1515 | -with-* | --with-* | -without-* | --without-* | --x)
1516 case "$ac_configure_args0 " in
1517 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1520 -* ) ac_must_keep_next=true ;;
1523 ac_configure_args="$ac_configure_args '$ac_arg'"
1528 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1529 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1531 # When interrupted or exit'd, cleanup temporary files, and complete
1532 # config.log. We remove comments because anyway the quotes in there
1533 # would cause problems or look ugly.
1534 # WARNING: Use '\'' to represent an apostrophe within the trap.
1535 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1536 trap 'exit_status=$?
1537 # Save into config.log some information that might help in debugging.
1542 ## ---------------- ##
1543 ## Cache variables. ##
1544 ## ---------------- ##
1547 # The following way of writing the cache mishandles newlines in values,
1549 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1550 eval ac_val=\$$ac_var
1554 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1555 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1558 _ | IFS | as_nl) ;; #(
1559 *) $as_unset $ac_var ;;
1564 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1565 *${as_nl}ac_space=\ *)
1567 "s/'\''/'\''\\\\'\'''\''/g;
1568 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1571 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1579 ## ----------------- ##
1580 ## Output variables. ##
1581 ## ----------------- ##
1584 for ac_var in $ac_subst_vars
1586 eval ac_val=\$$ac_var
1588 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1590 echo "$ac_var='\''$ac_val'\''"
1594 if test -n "$ac_subst_files"; then
1596 ## ------------------- ##
1597 ## File substitutions. ##
1598 ## ------------------- ##
1601 for ac_var in $ac_subst_files
1603 eval ac_val=\$$ac_var
1605 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1607 echo "$ac_var='\''$ac_val'\''"
1612 if test -s confdefs.h; then
1622 test "$ac_signal" != 0 &&
1623 echo "$as_me: caught signal $ac_signal"
1624 echo "$as_me: exit $exit_status"
1626 rm -f core *.core core.conftest.* &&
1627 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1630 for ac_signal in 1 2 13 15; do
1631 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1635 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1636 rm -f -r conftest* confdefs.h
1638 # Predefined preprocessor variables.
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_NAME "$PACKAGE_NAME"
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_STRING "$PACKAGE_STRING"
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1665 # Let the site file select an alternate cache file if it wants to.
1666 # Prefer explicitly selected file to automatically selected ones.
1667 if test -n "$CONFIG_SITE"; then
1668 set x "$CONFIG_SITE"
1669 elif test "x$prefix" != xNONE; then
1670 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1672 set x "$ac_default_prefix/share/config.site" \
1673 "$ac_default_prefix/etc/config.site"
1678 if test -r "$ac_site_file"; then
1679 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1680 echo "$as_me: loading site script $ac_site_file" >&6;}
1681 sed 's/^/| /' "$ac_site_file" >&5
1686 if test -r "$cache_file"; then
1687 # Some versions of bash will fail to source /dev/null (special
1688 # files actually), so we avoid doing that.
1689 if test -f "$cache_file"; then
1690 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1691 echo "$as_me: loading cache $cache_file" >&6;}
1693 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1694 *) . "./$cache_file";;
1698 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1699 echo "$as_me: creating cache $cache_file" >&6;}
1703 # Check that the precious variables saved in the cache have kept the same
1705 ac_cache_corrupted=false
1706 for ac_var in $ac_precious_vars; do
1707 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1708 eval ac_new_set=\$ac_env_${ac_var}_set
1709 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1710 eval ac_new_val=\$ac_env_${ac_var}_value
1711 case $ac_old_set,$ac_new_set in
1713 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1714 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1715 ac_cache_corrupted=: ;;
1717 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1718 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1719 ac_cache_corrupted=: ;;
1722 if test "x$ac_old_val" != "x$ac_new_val"; then
1723 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1724 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1725 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1726 echo "$as_me: former value: $ac_old_val" >&2;}
1727 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1728 echo "$as_me: current value: $ac_new_val" >&2;}
1729 ac_cache_corrupted=:
1732 # Pass precious variables to config.status.
1733 if test "$ac_new_set" = set; then
1735 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1736 *) ac_arg=$ac_var=$ac_new_val ;;
1738 case " $ac_configure_args " in
1739 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1740 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1744 if $ac_cache_corrupted; then
1745 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1746 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1747 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1748 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1749 { (exit 1); exit 1; }; }
1769 ac_cpp='$CPP $CPPFLAGS'
1770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1777 # Check whether --enable-checkmem was given.
1778 if test "${enable_checkmem+set}" = set; then
1779 enableval=$enable_checkmem; CHECKMEM=true
1782 # Check whether --enable-debug was given.
1783 if test "${enable_debug+set}" = set; then
1784 enableval=$enable_debug; DEBUG=true
1787 # Check whether --enable-profiling was given.
1788 if test "${enable_profiling+set}" = set; then
1789 enableval=$enable_profiling; PROFILING=true
1792 # Check whether --enable-warnings was given.
1793 if test "${enable_warnings+set}" = set; then
1794 enableval=$enable_warnings; ENABLE_WARNINGS=true
1797 # Check whether --enable-optimizations was given.
1798 if test "${enable_optimizations+set}" = set; then
1799 enableval=$enable_optimizations; OPTIMIZE=true
1802 # Check whether --enable-lame was given.
1803 if test "${enable_lame+set}" = set; then
1804 enableval=$enable_lame; DISABLE_LAME=true
1808 # Check whether --with-external-libart was given.
1809 if test "${with_external_libart+set}" = set; then
1810 withval=$with_external_libart; EXTERNAL_LIBART=true
1814 # Check whether --with-poppler was given.
1815 if test "${with_poppler+set}" = set; then
1816 withval=$with_poppler; USE_POPPLER=true
1821 VERSION=2008-09-22-1956
1824 # ------------------------------------------------------------------
1826 if test "x${srcdir}" != "x."; then
1827 echo "--srcdir is not supported"
1831 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1832 if test "x$ENABLE_WARNINGS" '!=' "x";then
1833 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1836 if test "x$CHECKMEM" '!=' "x";then
1839 if test "x$PROFILING" '!=' "x";then
1842 if test "x$DEBUG" '!=' "x";then
1843 if test "x$PROFILING" = "x";then
1844 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1845 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1848 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1849 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1850 LDFLAGS="-g -pg $LIBS"
1852 else if test "x$OPTIMIZE" '!=' "x"; then
1853 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1854 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1856 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1857 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1861 CFLAGS="-fPIC $CFLAGS"
1862 CXXFLAGS="-fPIC $CFLAGS"
1865 #if test "x$OLDGCC" '!=' "x";then
1866 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1867 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1868 # CFLAGS="$CFLAGS -ansi -pendantic"
1869 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1872 export PACKAGE VERSION CFLAGS CXXFLAGS
1876 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1877 if test -f "$ac_dir/install-sh"; then
1879 ac_install_sh="$ac_aux_dir/install-sh -c"
1881 elif test -f "$ac_dir/install.sh"; then
1883 ac_install_sh="$ac_aux_dir/install.sh -c"
1885 elif test -f "$ac_dir/shtool"; then
1887 ac_install_sh="$ac_aux_dir/shtool install -c"
1891 if test -z "$ac_aux_dir"; then
1892 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1893 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1894 { (exit 1); exit 1; }; }
1897 # These three variables are undocumented and unsupported,
1898 # and are intended to be withdrawn in a future Autoconf release.
1899 # They can cause serious problems if a builder's source tree is in a directory
1900 # whose full name contains unusual characters.
1901 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1902 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1903 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1906 # Make sure we can run config.sub.
1907 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1908 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1909 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1910 { (exit 1); exit 1; }; }
1912 { echo "$as_me:$LINENO: checking build system type" >&5
1913 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1914 if test "${ac_cv_build+set}" = set; then
1915 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 ac_build_alias=$build_alias
1918 test "x$ac_build_alias" = x &&
1919 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1920 test "x$ac_build_alias" = x &&
1921 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1922 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1923 { (exit 1); exit 1; }; }
1924 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1925 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1926 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1927 { (exit 1); exit 1; }; }
1930 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1931 echo "${ECHO_T}$ac_cv_build" >&6; }
1932 case $ac_cv_build in
1934 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1935 echo "$as_me: error: invalid value of canonical build" >&2;}
1936 { (exit 1); exit 1; }; };;
1939 ac_save_IFS=$IFS; IFS='-'
1945 # Remember, the first character of IFS is used to create $*,
1946 # except with old shells:
1949 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1952 { echo "$as_me:$LINENO: checking host system type" >&5
1953 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1954 if test "${ac_cv_host+set}" = set; then
1955 echo $ECHO_N "(cached) $ECHO_C" >&6
1957 if test "x$host_alias" = x; then
1958 ac_cv_host=$ac_cv_build
1960 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1961 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1962 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1963 { (exit 1); exit 1; }; }
1967 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1968 echo "${ECHO_T}$ac_cv_host" >&6; }
1971 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1972 echo "$as_me: error: invalid value of canonical host" >&2;}
1973 { (exit 1); exit 1; }; };;
1976 ac_save_IFS=$IFS; IFS='-'
1982 # Remember, the first character of IFS is used to create $*,
1983 # except with old shells:
1986 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1996 CXXFLAGS="$CXXFLAGS -fno-rtti"
1998 # Use fink packages if available.
1999 #if test -d /sw/include && test -d /sw/lib; then
2000 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2001 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2009 ac_cpp='$CPP $CPPFLAGS'
2010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2013 if test -n "$ac_tool_prefix"; then
2014 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2015 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2018 if test "${ac_cv_prog_CC+set}" = set; then
2019 echo $ECHO_N "(cached) $ECHO_C" >&6
2021 if test -n "$CC"; then
2022 ac_cv_prog_CC="$CC" # Let the user override the test.
2024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2028 test -z "$as_dir" && as_dir=.
2029 for ac_exec_ext in '' $ac_executable_extensions; do
2030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2031 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042 if test -n "$CC"; then
2043 { echo "$as_me:$LINENO: result: $CC" >&5
2044 echo "${ECHO_T}$CC" >&6; }
2046 { echo "$as_me:$LINENO: result: no" >&5
2047 echo "${ECHO_T}no" >&6; }
2052 if test -z "$ac_cv_prog_CC"; then
2054 # Extract the first word of "gcc", so it can be a program name with args.
2055 set dummy gcc; ac_word=$2
2056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2058 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 if test -n "$ac_ct_CC"; then
2062 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2068 test -z "$as_dir" && as_dir=.
2069 for ac_exec_ext in '' $ac_executable_extensions; do
2070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2071 ac_cv_prog_ac_ct_CC="gcc"
2072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2081 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2082 if test -n "$ac_ct_CC"; then
2083 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2084 echo "${ECHO_T}$ac_ct_CC" >&6; }
2086 { echo "$as_me:$LINENO: result: no" >&5
2087 echo "${ECHO_T}no" >&6; }
2090 if test "x$ac_ct_CC" = x; then
2093 case $cross_compiling:$ac_tool_warned in
2095 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2096 whose name does not start with the host triplet. If you think this
2097 configuration is useful to you, please write to autoconf@gnu.org." >&5
2098 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2099 whose name does not start with the host triplet. If you think this
2100 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2101 ac_tool_warned=yes ;;
2109 if test -z "$CC"; then
2110 if test -n "$ac_tool_prefix"; then
2111 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2112 set dummy ${ac_tool_prefix}cc; ac_word=$2
2113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2115 if test "${ac_cv_prog_CC+set}" = set; then
2116 echo $ECHO_N "(cached) $ECHO_C" >&6
2118 if test -n "$CC"; then
2119 ac_cv_prog_CC="$CC" # Let the user override the test.
2121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 test -z "$as_dir" && as_dir=.
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2128 ac_cv_prog_CC="${ac_tool_prefix}cc"
2129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 if test -n "$CC"; then
2140 { echo "$as_me:$LINENO: result: $CC" >&5
2141 echo "${ECHO_T}$CC" >&6; }
2143 { echo "$as_me:$LINENO: result: no" >&5
2144 echo "${ECHO_T}no" >&6; }
2150 if test -z "$CC"; then
2151 # Extract the first word of "cc", so it can be a program name with args.
2152 set dummy cc; ac_word=$2
2153 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2155 if test "${ac_cv_prog_CC+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2158 if test -n "$CC"; then
2159 ac_cv_prog_CC="$CC" # Let the user override the test.
2162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166 test -z "$as_dir" && as_dir=.
2167 for ac_exec_ext in '' $ac_executable_extensions; do
2168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2169 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2170 ac_prog_rejected=yes
2174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 if test $ac_prog_rejected = yes; then
2182 # We found a bogon in the path, so make sure we never use it.
2183 set dummy $ac_cv_prog_CC
2185 if test $# != 0; then
2186 # We chose a different compiler from the bogus one.
2187 # However, it has the same basename, so the bogon will be chosen
2188 # first if we set CC to just the basename; use the full file name.
2190 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2196 if test -n "$CC"; then
2197 { echo "$as_me:$LINENO: result: $CC" >&5
2198 echo "${ECHO_T}$CC" >&6; }
2200 { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2206 if test -z "$CC"; then
2207 if test -n "$ac_tool_prefix"; then
2208 for ac_prog in cl.exe
2210 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2211 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2214 if test "${ac_cv_prog_CC+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 if test -n "$CC"; then
2218 ac_cv_prog_CC="$CC" # Let the user override the test.
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2227 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 if test -n "$CC"; then
2239 { echo "$as_me:$LINENO: result: $CC" >&5
2240 echo "${ECHO_T}$CC" >&6; }
2242 { echo "$as_me:$LINENO: result: no" >&5
2243 echo "${ECHO_T}no" >&6; }
2247 test -n "$CC" && break
2250 if test -z "$CC"; then
2252 for ac_prog in cl.exe
2254 # Extract the first word of "$ac_prog", so it can be a program name with args.
2255 set dummy $ac_prog; ac_word=$2
2256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2259 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 if test -n "$ac_ct_CC"; then
2262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268 test -z "$as_dir" && as_dir=.
2269 for ac_exec_ext in '' $ac_executable_extensions; do
2270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2271 ac_cv_prog_ac_ct_CC="$ac_prog"
2272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2282 if test -n "$ac_ct_CC"; then
2283 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2284 echo "${ECHO_T}$ac_ct_CC" >&6; }
2286 { echo "$as_me:$LINENO: result: no" >&5
2287 echo "${ECHO_T}no" >&6; }
2291 test -n "$ac_ct_CC" && break
2294 if test "x$ac_ct_CC" = x; then
2297 case $cross_compiling:$ac_tool_warned in
2299 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2300 whose name does not start with the host triplet. If you think this
2301 configuration is useful to you, please write to autoconf@gnu.org." >&5
2302 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2303 whose name does not start with the host triplet. If you think this
2304 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2305 ac_tool_warned=yes ;;
2314 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2315 See \`config.log' for more details." >&5
2316 echo "$as_me: error: no acceptable C compiler found in \$PATH
2317 See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2320 # Provide some information about the compiler.
2321 echo "$as_me:$LINENO: checking for C compiler version" >&5
2322 ac_compiler=`set X $ac_compile; echo $2`
2323 { (ac_try="$ac_compiler --version >&5"
2325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2326 *) ac_try_echo=$ac_try;;
2328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2329 (eval "$ac_compiler --version >&5") 2>&5
2331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332 (exit $ac_status); }
2333 { (ac_try="$ac_compiler -v >&5"
2335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2336 *) ac_try_echo=$ac_try;;
2338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2339 (eval "$ac_compiler -v >&5") 2>&5
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }
2343 { (ac_try="$ac_compiler -V >&5"
2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2346 *) ac_try_echo=$ac_try;;
2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2349 (eval "$ac_compiler -V >&5") 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }
2354 cat >conftest.$ac_ext <<_ACEOF
2357 cat confdefs.h >>conftest.$ac_ext
2358 cat >>conftest.$ac_ext <<_ACEOF
2359 /* end confdefs.h. */
2369 ac_clean_files_save=$ac_clean_files
2370 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2371 # Try to create an executable without -o first, disregard a.out.
2372 # It will help us diagnose broken compilers, and finding out an intuition
2374 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2375 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2376 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2378 # List of possible output files, starting from the most likely.
2379 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2380 # only as a last resort. b.out is created by i960 compilers.
2381 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2383 # The IRIX 6 linker writes into existing files which may not be
2384 # executable, retaining their permissions. Remove them first so a
2385 # subsequent execution test works.
2387 for ac_file in $ac_files
2390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2391 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2396 if { (ac_try="$ac_link_default"
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_link_default") 2>&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; then
2406 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2407 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2408 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2409 # so that the user can short-circuit this test for compilers unknown to
2411 for ac_file in $ac_files ''
2413 test -f "$ac_file" || continue
2415 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2418 # We found the default executable, but exeext='' is most
2422 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2424 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2426 # We set ac_cv_exeext here because the later test for it is not
2427 # safe: cross compilers may not add the suffix if given an `-o'
2428 # argument, so we may need to know it at that point already.
2429 # Even if this section looks crufty: it has the advantage of
2436 test "$ac_cv_exeext" = no && ac_cv_exeext=
2442 { echo "$as_me:$LINENO: result: $ac_file" >&5
2443 echo "${ECHO_T}$ac_file" >&6; }
2444 if test -z "$ac_file"; then
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2448 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2449 See \`config.log' for more details." >&5
2450 echo "$as_me: error: C compiler cannot create executables
2451 See \`config.log' for more details." >&2;}
2452 { (exit 77); exit 77; }; }
2455 ac_exeext=$ac_cv_exeext
2457 # Check that the compiler produces executables we can run. If not, either
2458 # the compiler is broken, or we cross compile.
2459 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2460 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2461 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2462 # If not cross compiling, check that we can run a simple program.
2463 if test "$cross_compiling" != yes; then
2464 if { ac_try='./$ac_file'
2465 { (case "(($ac_try" in
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2470 (eval "$ac_try") 2>&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); }; }; then
2476 if test "$cross_compiling" = maybe; then
2479 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2480 If you meant to cross compile, use \`--host'.
2481 See \`config.log' for more details." >&5
2482 echo "$as_me: error: cannot run C compiled programs.
2483 If you meant to cross compile, use \`--host'.
2484 See \`config.log' for more details." >&2;}
2485 { (exit 1); exit 1; }; }
2489 { echo "$as_me:$LINENO: result: yes" >&5
2490 echo "${ECHO_T}yes" >&6; }
2492 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2493 ac_clean_files=$ac_clean_files_save
2494 # Check that the compiler produces executables we can run. If not, either
2495 # the compiler is broken, or we cross compile.
2496 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2497 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2498 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2499 echo "${ECHO_T}$cross_compiling" >&6; }
2501 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2502 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2503 if { (ac_try="$ac_link"
2505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2506 *) ac_try_echo=$ac_try;;
2508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2509 (eval "$ac_link") 2>&5
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; then
2513 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2514 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2515 # work properly (i.e., refer to `conftest.exe'), while it won't with
2517 for ac_file in conftest.exe conftest conftest.*; do
2518 test -f "$ac_file" || continue
2520 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2521 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2527 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2528 See \`config.log' for more details." >&5
2529 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2530 See \`config.log' for more details." >&2;}
2531 { (exit 1); exit 1; }; }
2534 rm -f conftest$ac_cv_exeext
2535 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2536 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2538 rm -f conftest.$ac_ext
2539 EXEEXT=$ac_cv_exeext
2541 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2542 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2543 if test "${ac_cv_objext+set}" = set; then
2544 echo $ECHO_N "(cached) $ECHO_C" >&6
2546 cat >conftest.$ac_ext <<_ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h. */
2561 rm -f conftest.o conftest.obj
2562 if { (ac_try="$ac_compile"
2564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565 *) ac_try_echo=$ac_try;;
2567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568 (eval "$ac_compile") 2>&5
2570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571 (exit $ac_status); }; then
2572 for ac_file in conftest.o conftest.obj conftest.*; do
2573 test -f "$ac_file" || continue;
2575 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2576 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2584 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2587 See \`config.log' for more details." >&2;}
2588 { (exit 1); exit 1; }; }
2591 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2593 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2594 echo "${ECHO_T}$ac_cv_objext" >&6; }
2595 OBJEXT=$ac_cv_objext
2597 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2598 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2599 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2600 echo $ECHO_N "(cached) $ECHO_C" >&6
2602 cat >conftest.$ac_ext <<_ACEOF
2605 cat confdefs.h >>conftest.$ac_ext
2606 cat >>conftest.$ac_ext <<_ACEOF
2607 /* end confdefs.h. */
2620 rm -f conftest.$ac_objext
2621 if { (ac_try="$ac_compile"
2623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2624 *) ac_try_echo=$ac_try;;
2626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2627 (eval "$ac_compile") 2>conftest.er1
2629 grep -v '^ *+' conftest.er1 >conftest.err
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } && {
2634 test -z "$ac_c_werror_flag" ||
2635 test ! -s conftest.err
2636 } && test -s conftest.$ac_objext; then
2639 echo "$as_me: failed program was:" >&5
2640 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2649 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2650 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2651 GCC=`test $ac_compiler_gnu = yes && echo yes`
2652 ac_test_CFLAGS=${CFLAGS+set}
2653 ac_save_CFLAGS=$CFLAGS
2654 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2655 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2656 if test "${ac_cv_prog_cc_g+set}" = set; then
2657 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 ac_save_c_werror_flag=$ac_c_werror_flag
2660 ac_c_werror_flag=yes
2663 cat >conftest.$ac_ext <<_ACEOF
2666 cat confdefs.h >>conftest.$ac_ext
2667 cat >>conftest.$ac_ext <<_ACEOF
2668 /* end confdefs.h. */
2678 rm -f conftest.$ac_objext
2679 if { (ac_try="$ac_compile"
2681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682 *) ac_try_echo=$ac_try;;
2684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2685 (eval "$ac_compile") 2>conftest.er1
2687 grep -v '^ *+' conftest.er1 >conftest.err
2689 cat conftest.err >&5
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } && {
2692 test -z "$ac_c_werror_flag" ||
2693 test ! -s conftest.err
2694 } && test -s conftest.$ac_objext; then
2697 echo "$as_me: failed program was:" >&5
2698 sed 's/^/| /' conftest.$ac_ext >&5
2701 cat >conftest.$ac_ext <<_ACEOF
2704 cat confdefs.h >>conftest.$ac_ext
2705 cat >>conftest.$ac_ext <<_ACEOF
2706 /* end confdefs.h. */
2716 rm -f conftest.$ac_objext
2717 if { (ac_try="$ac_compile"
2719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2720 *) ac_try_echo=$ac_try;;
2722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2723 (eval "$ac_compile") 2>conftest.er1
2725 grep -v '^ *+' conftest.er1 >conftest.err
2727 cat conftest.err >&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); } && {
2730 test -z "$ac_c_werror_flag" ||
2731 test ! -s conftest.err
2732 } && test -s conftest.$ac_objext; then
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2738 ac_c_werror_flag=$ac_save_c_werror_flag
2740 cat >conftest.$ac_ext <<_ACEOF
2743 cat confdefs.h >>conftest.$ac_ext
2744 cat >>conftest.$ac_ext <<_ACEOF
2745 /* end confdefs.h. */
2755 rm -f conftest.$ac_objext
2756 if { (ac_try="$ac_compile"
2758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2759 *) ac_try_echo=$ac_try;;
2761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2762 (eval "$ac_compile") 2>conftest.er1
2764 grep -v '^ *+' conftest.er1 >conftest.err
2766 cat conftest.err >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); } && {
2769 test -z "$ac_c_werror_flag" ||
2770 test ! -s conftest.err
2771 } && test -s conftest.$ac_objext; then
2774 echo "$as_me: failed program was:" >&5
2775 sed 's/^/| /' conftest.$ac_ext >&5
2780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2787 ac_c_werror_flag=$ac_save_c_werror_flag
2789 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2790 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2791 if test "$ac_test_CFLAGS" = set; then
2792 CFLAGS=$ac_save_CFLAGS
2793 elif test $ac_cv_prog_cc_g = yes; then
2794 if test "$GCC" = yes; then
2800 if test "$GCC" = yes; then
2806 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2807 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2808 if test "${ac_cv_prog_cc_c89+set}" = set; then
2809 echo $ECHO_N "(cached) $ECHO_C" >&6
2811 ac_cv_prog_cc_c89=no
2813 cat >conftest.$ac_ext <<_ACEOF
2816 cat confdefs.h >>conftest.$ac_ext
2817 cat >>conftest.$ac_ext <<_ACEOF
2818 /* end confdefs.h. */
2821 #include <sys/types.h>
2822 #include <sys/stat.h>
2823 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2824 struct buf { int x; };
2825 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2826 static char *e (p, i)
2832 static char *f (char * (*g) (char **, int), char **p, ...)
2837 s = g (p, va_arg (v,int));
2842 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2843 function prototypes and stuff, but not '\xHH' hex character constants.
2844 These don't provoke an error unfortunately, instead are silently treated
2845 as 'x'. The following induces an error, until -std is added to get
2846 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2847 array size at least. It's necessary to write '\x00'==0 to get something
2848 that's true only with -std. */
2849 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2851 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2852 inside strings and character constants. */
2854 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2856 int test (int i, double x);
2857 struct s1 {int (*f) (int a);};
2858 struct s2 {int (*f) (double a);};
2859 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2865 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2870 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2871 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2873 CC="$ac_save_CC $ac_arg"
2874 rm -f conftest.$ac_objext
2875 if { (ac_try="$ac_compile"
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2881 (eval "$ac_compile") 2>conftest.er1
2883 grep -v '^ *+' conftest.er1 >conftest.err
2885 cat conftest.err >&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); } && {
2888 test -z "$ac_c_werror_flag" ||
2889 test ! -s conftest.err
2890 } && test -s conftest.$ac_objext; then
2891 ac_cv_prog_cc_c89=$ac_arg
2893 echo "$as_me: failed program was:" >&5
2894 sed 's/^/| /' conftest.$ac_ext >&5
2899 rm -f core conftest.err conftest.$ac_objext
2900 test "x$ac_cv_prog_cc_c89" != "xno" && break
2902 rm -f conftest.$ac_ext
2907 case "x$ac_cv_prog_cc_c89" in
2909 { echo "$as_me:$LINENO: result: none needed" >&5
2910 echo "${ECHO_T}none needed" >&6; } ;;
2912 { echo "$as_me:$LINENO: result: unsupported" >&5
2913 echo "${ECHO_T}unsupported" >&6; } ;;
2915 CC="$CC $ac_cv_prog_cc_c89"
2916 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2917 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2922 ac_cpp='$CPP $CPPFLAGS'
2923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2928 ac_cpp='$CXXCPP $CPPFLAGS'
2929 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2930 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2931 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2932 if test -z "$CXX"; then
2933 if test -n "$CCC"; then
2936 if test -n "$ac_tool_prefix"; then
2937 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2940 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2941 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2942 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2943 if test "${ac_cv_prog_CXX+set}" = set; then
2944 echo $ECHO_N "(cached) $ECHO_C" >&6
2946 if test -n "$CXX"; then
2947 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 test -z "$as_dir" && as_dir=.
2954 for ac_exec_ext in '' $ac_executable_extensions; do
2955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2956 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 if test -n "$CXX"; then
2968 { echo "$as_me:$LINENO: result: $CXX" >&5
2969 echo "${ECHO_T}$CXX" >&6; }
2971 { echo "$as_me:$LINENO: result: no" >&5
2972 echo "${ECHO_T}no" >&6; }
2976 test -n "$CXX" && break
2979 if test -z "$CXX"; then
2981 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2983 # Extract the first word of "$ac_prog", so it can be a program name with args.
2984 set dummy $ac_prog; ac_word=$2
2985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2987 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2988 echo $ECHO_N "(cached) $ECHO_C" >&6
2990 if test -n "$ac_ct_CXX"; then
2991 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2997 test -z "$as_dir" && as_dir=.
2998 for ac_exec_ext in '' $ac_executable_extensions; do
2999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3000 ac_cv_prog_ac_ct_CXX="$ac_prog"
3001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3011 if test -n "$ac_ct_CXX"; then
3012 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3013 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3015 { echo "$as_me:$LINENO: result: no" >&5
3016 echo "${ECHO_T}no" >&6; }
3020 test -n "$ac_ct_CXX" && break
3023 if test "x$ac_ct_CXX" = x; then
3026 case $cross_compiling:$ac_tool_warned in
3028 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3029 whose name does not start with the host triplet. If you think this
3030 configuration is useful to you, please write to autoconf@gnu.org." >&5
3031 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3032 whose name does not start with the host triplet. If you think this
3033 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3034 ac_tool_warned=yes ;;
3042 # Provide some information about the compiler.
3043 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3044 ac_compiler=`set X $ac_compile; echo $2`
3045 { (ac_try="$ac_compiler --version >&5"
3047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3048 *) ac_try_echo=$ac_try;;
3050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3051 (eval "$ac_compiler --version >&5") 2>&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }
3055 { (ac_try="$ac_compiler -v >&5"
3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3058 *) ac_try_echo=$ac_try;;
3060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3061 (eval "$ac_compiler -v >&5") 2>&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); }
3065 { (ac_try="$ac_compiler -V >&5"
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3071 (eval "$ac_compiler -V >&5") 2>&5
3073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3074 (exit $ac_status); }
3076 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3077 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3078 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3079 echo $ECHO_N "(cached) $ECHO_C" >&6
3081 cat >conftest.$ac_ext <<_ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3099 rm -f conftest.$ac_objext
3100 if { (ac_try="$ac_compile"
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3106 (eval "$ac_compile") 2>conftest.er1
3108 grep -v '^ *+' conftest.er1 >conftest.err
3110 cat conftest.err >&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); } && {
3113 test -z "$ac_cxx_werror_flag" ||
3114 test ! -s conftest.err
3115 } && test -s conftest.$ac_objext; then
3118 echo "$as_me: failed program was:" >&5
3119 sed 's/^/| /' conftest.$ac_ext >&5
3124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3125 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3128 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3129 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3130 GXX=`test $ac_compiler_gnu = yes && echo yes`
3131 ac_test_CXXFLAGS=${CXXFLAGS+set}
3132 ac_save_CXXFLAGS=$CXXFLAGS
3133 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3134 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3135 if test "${ac_cv_prog_cxx_g+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3139 ac_cxx_werror_flag=yes
3142 cat >conftest.$ac_ext <<_ACEOF
3145 cat confdefs.h >>conftest.$ac_ext
3146 cat >>conftest.$ac_ext <<_ACEOF
3147 /* end confdefs.h. */
3157 rm -f conftest.$ac_objext
3158 if { (ac_try="$ac_compile"
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3164 (eval "$ac_compile") 2>conftest.er1
3166 grep -v '^ *+' conftest.er1 >conftest.err
3168 cat conftest.err >&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); } && {
3171 test -z "$ac_cxx_werror_flag" ||
3172 test ! -s conftest.err
3173 } && test -s conftest.$ac_objext; then
3174 ac_cv_prog_cxx_g=yes
3176 echo "$as_me: failed program was:" >&5
3177 sed 's/^/| /' conftest.$ac_ext >&5
3180 cat >conftest.$ac_ext <<_ACEOF
3183 cat confdefs.h >>conftest.$ac_ext
3184 cat >>conftest.$ac_ext <<_ACEOF
3185 /* end confdefs.h. */
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3204 grep -v '^ *+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && {
3209 test -z "$ac_cxx_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.$ac_objext; then
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3217 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3219 cat >conftest.$ac_ext <<_ACEOF
3222 cat confdefs.h >>conftest.$ac_ext
3223 cat >>conftest.$ac_ext <<_ACEOF
3224 /* end confdefs.h. */
3234 rm -f conftest.$ac_objext
3235 if { (ac_try="$ac_compile"
3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238 *) ac_try_echo=$ac_try;;
3240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241 (eval "$ac_compile") 2>conftest.er1
3243 grep -v '^ *+' conftest.er1 >conftest.err
3245 cat conftest.err >&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); } && {
3248 test -z "$ac_cxx_werror_flag" ||
3249 test ! -s conftest.err
3250 } && test -s conftest.$ac_objext; then
3251 ac_cv_prog_cxx_g=yes
3253 echo "$as_me: failed program was:" >&5
3254 sed 's/^/| /' conftest.$ac_ext >&5
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3268 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3269 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3270 if test "$ac_test_CXXFLAGS" = set; then
3271 CXXFLAGS=$ac_save_CXXFLAGS
3272 elif test $ac_cv_prog_cxx_g = yes; then
3273 if test "$GXX" = yes; then
3279 if test "$GXX" = yes; then
3286 ac_cpp='$CPP $CPPFLAGS'
3287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3294 { echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3295 echo $ECHO_N "checking whether gcc supports lazy variable declaration... $ECHO_C" >&6; }
3297 cat > conftest.c << EOF
3301 int main (int argc, char*argv)
3311 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3312 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3313 { echo "$as_me:$LINENO: result: yes" >&5
3314 echo "${ECHO_T}yes" >&6; }
3318 echo "configure: failed program was:" >&5
3320 { echo "$as_me:$LINENO: result: no" >&5
3321 echo "${ECHO_T}no" >&6; }
3326 if test "x$GCC_IS_OK" '=' "x";then
3327 echo "***************************************************"
3328 echo "* Your gcc is too old to compile this!"
3330 echo "* The last version compilable by this compiler is "
3331 echo "* swftools 0.7.0, which you can download from "
3332 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3334 echo "* Newer versions require at least gcc 3.0.0 "
3335 echo "***************************************************"
3339 if test "x$CHECKMEM" '!=' "x";then
3343 #unset ac_cv_prog_CC
3344 #unset ac_cv_prog_CXX
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3354 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3355 # On Suns, sometimes $CPP names a directory.
3356 if test -n "$CPP" && test -d "$CPP"; then
3359 if test -z "$CPP"; then
3360 if test "${ac_cv_prog_CPP+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3363 # Double quotes because CPP needs to be expanded
3364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3367 for ac_c_preproc_warn_flag in '' yes
3369 # Use a header file that comes with gcc, so configuring glibc
3370 # with a fresh cross-compiler works.
3371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3372 # <limits.h> exists even on freestanding compilers.
3373 # On the NeXT, cc -E runs the code through the compiler's parser,
3374 # not just through cpp. "Syntax error" is here to catch this case.
3375 cat >conftest.$ac_ext <<_ACEOF
3378 cat confdefs.h >>conftest.$ac_ext
3379 cat >>conftest.$ac_ext <<_ACEOF
3380 /* end confdefs.h. */
3382 # include <limits.h>
3384 # include <assert.h>
3388 if { (ac_try="$ac_cpp conftest.$ac_ext"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1 >conftest.err
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3400 (exit $ac_status); } >/dev/null && {
3401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3406 echo "$as_me: failed program was:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3409 # Broken: fails on valid input.
3413 rm -f conftest.err conftest.$ac_ext
3415 # OK, works on sane cases. Now check whether nonexistent headers
3416 # can be detected and how.
3417 cat >conftest.$ac_ext <<_ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3423 #include <ac_nonexistent.h>
3425 if { (ac_try="$ac_cpp conftest.$ac_ext"
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3433 grep -v '^ *+' conftest.er1 >conftest.err
3435 cat conftest.err >&5
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); } >/dev/null && {
3438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3439 test ! -s conftest.err
3441 # Broken: success on invalid input.
3444 echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 # Passes both tests.
3452 rm -f conftest.err conftest.$ac_ext
3455 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3456 rm -f conftest.err conftest.$ac_ext
3457 if $ac_preproc_ok; then
3469 { echo "$as_me:$LINENO: result: $CPP" >&5
3470 echo "${ECHO_T}$CPP" >&6; }
3472 for ac_c_preproc_warn_flag in '' yes
3474 # Use a header file that comes with gcc, so configuring glibc
3475 # with a fresh cross-compiler works.
3476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3477 # <limits.h> exists even on freestanding compilers.
3478 # On the NeXT, cc -E runs the code through the compiler's parser,
3479 # not just through cpp. "Syntax error" is here to catch this case.
3480 cat >conftest.$ac_ext <<_ACEOF
3483 cat confdefs.h >>conftest.$ac_ext
3484 cat >>conftest.$ac_ext <<_ACEOF
3485 /* end confdefs.h. */
3487 # include <limits.h>
3489 # include <assert.h>
3493 if { (ac_try="$ac_cpp conftest.$ac_ext"
3495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3496 *) ac_try_echo=$ac_try;;
3498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3501 grep -v '^ *+' conftest.er1 >conftest.err
3503 cat conftest.err >&5
3504 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
3511 echo "$as_me: failed program was:" >&5
3512 sed 's/^/| /' conftest.$ac_ext >&5
3514 # Broken: fails on valid input.
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
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528 #include <ac_nonexistent.h>
3530 if { (ac_try="$ac_cpp conftest.$ac_ext"
3532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533 *) ac_try_echo=$ac_try;;
3535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3538 grep -v '^ *+' conftest.er1 >conftest.err
3540 cat conftest.err >&5
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } >/dev/null && {
3543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3544 test ! -s conftest.err
3546 # Broken: success on invalid input.
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 # Passes both tests.
3557 rm -f conftest.err conftest.$ac_ext
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then
3565 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3566 See \`config.log' for more details." >&5
3567 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3568 See \`config.log' for more details." >&2;}
3569 { (exit 1); exit 1; }; }
3573 ac_cpp='$CPP $CPPFLAGS'
3574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579 if test -n "$ac_tool_prefix"; then
3580 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3581 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3584 if test "${ac_cv_prog_RANLIB+set}" = set; then
3585 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 if test -n "$RANLIB"; then
3588 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3597 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3607 RANLIB=$ac_cv_prog_RANLIB
3608 if test -n "$RANLIB"; then
3609 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3610 echo "${ECHO_T}$RANLIB" >&6; }
3612 { echo "$as_me:$LINENO: result: no" >&5
3613 echo "${ECHO_T}no" >&6; }
3618 if test -z "$ac_cv_prog_RANLIB"; then
3619 ac_ct_RANLIB=$RANLIB
3620 # Extract the first word of "ranlib", so it can be a program name with args.
3621 set dummy ranlib; ac_word=$2
3622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3624 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 if test -n "$ac_ct_RANLIB"; then
3628 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637 ac_cv_prog_ac_ct_RANLIB="ranlib"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3647 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3648 if test -n "$ac_ct_RANLIB"; then
3649 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3650 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3652 { echo "$as_me:$LINENO: result: no" >&5
3653 echo "${ECHO_T}no" >&6; }
3656 if test "x$ac_ct_RANLIB" = x; then
3659 case $cross_compiling:$ac_tool_warned in
3661 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3662 whose name does not start with the host triplet. If you think this
3663 configuration is useful to you, please write to autoconf@gnu.org." >&5
3664 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3665 whose name does not start with the host triplet. If you think this
3666 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3667 ac_tool_warned=yes ;;
3669 RANLIB=$ac_ct_RANLIB
3672 RANLIB="$ac_cv_prog_RANLIB"
3675 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3676 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3677 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3678 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 cat >conftest.make <<\_ACEOF
3684 @echo '@@@%%%=$(MAKE)=@@@%%%'
3686 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3687 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3689 eval ac_cv_prog_make_${ac_make}_set=yes;;
3691 eval ac_cv_prog_make_${ac_make}_set=no;;
3695 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3696 { echo "$as_me:$LINENO: result: yes" >&5
3697 echo "${ECHO_T}yes" >&6; }
3700 { echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6; }
3702 SET_MAKE="MAKE=${MAKE-make}"
3705 # Find a good install program. We prefer a C program (faster),
3706 # so one script is as good as another. But avoid the broken or
3707 # incompatible versions:
3708 # SysV /etc/install, /usr/sbin/install
3709 # SunOS /usr/etc/install
3710 # IRIX /sbin/install
3712 # AmigaOS /C/install, which installs bootblocks on floppy discs
3713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3716 # OS/2's system install, which has a completely different semantic
3717 # ./install, which can be erroneously created by make from ./install.sh.
3718 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3719 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3720 if test -z "$INSTALL"; then
3721 if test "${ac_cv_path_install+set}" = set; then
3722 echo $ECHO_N "(cached) $ECHO_C" >&6
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 test -z "$as_dir" && as_dir=.
3729 # Account for people who put trailing slashes in PATH elements.
3731 ./ | .// | /cC/* | \
3732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3733 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3736 # OSF1 and SCO ODT 3.0 have their own names for install.
3737 # Don't use installbsd from OSF since it installs stuff as root
3739 for ac_prog in ginstall scoinst install; do
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3742 if test $ac_prog = install &&
3743 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3744 # AIX install. It has an incompatible calling convention.
3746 elif test $ac_prog = install &&
3747 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3748 # program-specific install script used by HP pwplus--don't use.
3751 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3764 if test "${ac_cv_path_install+set}" = set; then
3765 INSTALL=$ac_cv_path_install
3767 # As a last resort, use the slow shell script. Don't cache a
3768 # value for INSTALL within a source directory, because that will
3769 # break other packages using the cache if that directory is
3770 # removed, or if the value is a relative name.
3771 INSTALL=$ac_install_sh
3774 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3775 echo "${ECHO_T}$INSTALL" >&6; }
3777 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3778 # It thinks the first close brace ends the variable substitution.
3779 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3781 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3783 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3785 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3786 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3788 if test "$LN_S" = "ln -s"; then
3789 { echo "$as_me:$LINENO: result: yes" >&5
3790 echo "${ECHO_T}yes" >&6; }
3792 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3793 echo "${ECHO_T}no, using $LN_S" >&6; }
3796 for ac_prog in gzip uncompress compress
3798 # Extract the first word of "$ac_prog", so it can be a program name with args.
3799 set dummy $ac_prog; ac_word=$2
3800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3802 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 if test -n "$UNCOMPRESS"; then
3806 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3815 ac_cv_prog_UNCOMPRESS="$ac_prog"
3816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3826 if test -n "$UNCOMPRESS"; then
3827 { echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3828 echo "${ECHO_T}$UNCOMPRESS" >&6; }
3830 { echo "$as_me:$LINENO: result: no" >&5
3831 echo "${ECHO_T}no" >&6; }
3835 test -n "$UNCOMPRESS" && break
3841 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3842 if test -n "$ac_tool_prefix"; then
3843 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3844 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3847 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3862 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3874 if test -n "$PKG_CONFIG"; then
3875 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3876 echo "${ECHO_T}$PKG_CONFIG" >&6; }
3878 { echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6; }
3884 if test -z "$ac_cv_path_PKG_CONFIG"; then
3885 ac_pt_PKG_CONFIG=$PKG_CONFIG
3886 # Extract the first word of "pkg-config", so it can be a program name with args.
3887 set dummy pkg-config; ac_word=$2
3888 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3890 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3893 case $ac_pt_PKG_CONFIG in
3895 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3917 if test -n "$ac_pt_PKG_CONFIG"; then
3918 { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3919 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
3921 { echo "$as_me:$LINENO: result: no" >&5
3922 echo "${ECHO_T}no" >&6; }
3925 if test "x$ac_pt_PKG_CONFIG" = x; then
3928 case $cross_compiling:$ac_tool_warned in
3930 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3931 whose name does not start with the host triplet. If you think this
3932 configuration is useful to you, please write to autoconf@gnu.org." >&5
3933 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3934 whose name does not start with the host triplet. If you think this
3935 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3936 ac_tool_warned=yes ;;
3938 PKG_CONFIG=$ac_pt_PKG_CONFIG
3941 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3945 if test -n "$PKG_CONFIG"; then
3946 _pkg_min_version=0.9.0
3947 { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3948 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
3949 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3950 { echo "$as_me:$LINENO: result: yes" >&5
3951 echo "${ECHO_T}yes" >&6; }
3953 { echo "$as_me:$LINENO: result: no" >&5
3954 echo "${ECHO_T}no" >&6; }
3966 if test "x$EXEEXT" = "x.exe";then
3975 { echo "$as_me:$LINENO: checking host system type" >&5
3976 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3977 if test "${ac_cv_host+set}" = set; then
3978 echo $ECHO_N "(cached) $ECHO_C" >&6
3980 if test "x$host_alias" = x; then
3981 ac_cv_host=$ac_cv_build
3983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3984 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3985 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3986 { (exit 1); exit 1; }; }
3990 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3991 echo "${ECHO_T}$ac_cv_host" >&6; }
3994 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3995 echo "$as_me: error: invalid value of canonical host" >&2;}
3996 { (exit 1); exit 1; }; };;
3999 ac_save_IFS=$IFS; IFS='-'
4005 # Remember, the first character of IFS is used to create $*,
4006 # except with old shells:
4009 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4014 { echo "$as_me:$LINENO: checking for target system" >&5
4015 echo $ECHO_N "checking for target system... $ECHO_C" >&6; }
4019 *cygwin* ) CYGWIN=yes;;
4020 *mingw* ) MINGW=yes;;
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
4052 { echo "$as_me:$LINENO: result: cygwin" >&5
4053 echo "${ECHO_T}cygwin" >&6; }
4055 if test "x${MINGW}" = "xyes"; then
4057 cat >>confdefs.h <<\_ACEOF
4063 cat >>confdefs.h <<\_ACEOF
4067 LIBS="$LIBS -lws2_32 -lgdi32"
4068 { echo "$as_me:$LINENO: result: mingw" >&5
4069 echo "${ECHO_T}mingw" >&6; }
4074 cat >>confdefs.h <<\_ACEOF
4078 { echo "$as_me:$LINENO: result: " >&5
4079 echo "${ECHO_T}" >&6; }
4085 if test "x${MINGW}" != "xyes"; then
4088 cat >>confdefs.h <<\_ACEOF
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"
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
4118 LDFLAGS="$LDFLAGS -L${libdir}"
4119 CPPFLAGS="$CPPFLAGS -I${includedir}"
4120 # TODO- test whether gcc still works after this
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 STRIP="@echo debug enabled, not stripping "
4136 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
4137 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
4138 if test "${ac_cv_lib_m_sin+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4141 ac_check_lib_save_LIBS=$LIBS
4143 cat >conftest.$ac_ext <<_ACEOF
4146 cat confdefs.h >>conftest.$ac_ext
4147 cat >>conftest.$ac_ext <<_ACEOF
4148 /* end confdefs.h. */
4150 /* Override any GCC internal prototype to avoid an error.
4151 Use char because int might match the return type of a GCC
4152 builtin and then its argument prototype would still apply. */
4165 rm -f conftest.$ac_objext conftest$ac_exeext
4166 if { (ac_try="$ac_link"
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_link") 2>conftest.er1
4174 grep -v '^ *+' conftest.er1 >conftest.err
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } && {
4179 test -z "$ac_c_werror_flag" ||
4180 test ! -s conftest.err
4181 } && test -s conftest$ac_exeext &&
4182 $as_test_x conftest$ac_exeext; then
4185 echo "$as_me: failed program was:" >&5
4186 sed 's/^/| /' conftest.$ac_ext >&5
4191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4192 conftest$ac_exeext conftest.$ac_ext
4193 LIBS=$ac_check_lib_save_LIBS
4195 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4196 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
4197 if test $ac_cv_lib_m_sin = yes; then
4198 cat >>confdefs.h <<_ACEOF
4205 echo "Error: Math library not found.";
4211 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4212 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
4213 if test "${ac_cv_lib_z_deflate+set}" = set; then
4214 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 ac_check_lib_save_LIBS=$LIBS
4218 cat >conftest.$ac_ext <<_ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4225 /* Override any GCC internal prototype to avoid an error.
4226 Use char because int might match the return type of a GCC
4227 builtin and then its argument prototype would still apply. */
4240 rm -f conftest.$ac_objext conftest$ac_exeext
4241 if { (ac_try="$ac_link"
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_link") 2>conftest.er1
4249 grep -v '^ *+' conftest.er1 >conftest.err
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } && {
4254 test -z "$ac_c_werror_flag" ||
4255 test ! -s conftest.err
4256 } && test -s conftest$ac_exeext &&
4257 $as_test_x conftest$ac_exeext; then
4258 ac_cv_lib_z_deflate=yes
4260 echo "$as_me: failed program was:" >&5
4261 sed 's/^/| /' conftest.$ac_ext >&5
4263 ac_cv_lib_z_deflate=no
4266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4267 conftest$ac_exeext conftest.$ac_ext
4268 LIBS=$ac_check_lib_save_LIBS
4270 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4271 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
4272 if test $ac_cv_lib_z_deflate = yes; then
4273 cat >>confdefs.h <<_ACEOF
4284 if test "x$ZLIBMISSING" = "xtrue";then
4287 echo "You need zlib to compile swftools"
4293 { echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4294 echo $ECHO_N "checking for jpeg_write_raw_data in -ljpeg... $ECHO_C" >&6; }
4295 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
4298 ac_check_lib_save_LIBS=$LIBS
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4307 /* Override any GCC internal prototype to avoid an error.
4308 Use char because int might match the return type of a GCC
4309 builtin and then its argument prototype would still apply. */
4313 char jpeg_write_raw_data ();
4317 return jpeg_write_raw_data ();
4322 rm -f conftest.$ac_objext conftest$ac_exeext
4323 if { (ac_try="$ac_link"
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_link") 2>conftest.er1
4331 grep -v '^ *+' conftest.er1 >conftest.err
4333 cat conftest.err >&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); } && {
4336 test -z "$ac_c_werror_flag" ||
4337 test ! -s conftest.err
4338 } && test -s conftest$ac_exeext &&
4339 $as_test_x conftest$ac_exeext; then
4340 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4342 echo "$as_me: failed program was:" >&5
4343 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4349 conftest$ac_exeext conftest.$ac_ext
4350 LIBS=$ac_check_lib_save_LIBS
4352 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4353 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4354 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4355 cat >>confdefs.h <<_ACEOF
4356 #define HAVE_LIBJPEG 1
4366 { echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4367 echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6; }
4368 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 ac_check_lib_save_LIBS=$LIBS
4372 LIBS="-lungif $LIBS"
4373 cat >conftest.$ac_ext <<_ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4380 /* Override any GCC internal prototype to avoid an error.
4381 Use char because int might match the return type of a GCC
4382 builtin and then its argument prototype would still apply. */
4395 rm -f conftest.$ac_objext conftest$ac_exeext
4396 if { (ac_try="$ac_link"
4398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4402 (eval "$ac_link") 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } && {
4409 test -z "$ac_c_werror_flag" ||
4410 test ! -s conftest.err
4411 } && test -s conftest$ac_exeext &&
4412 $as_test_x conftest$ac_exeext; then
4413 ac_cv_lib_ungif_DGifOpen=yes
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4418 ac_cv_lib_ungif_DGifOpen=no
4421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4422 conftest$ac_exeext conftest.$ac_ext
4423 LIBS=$ac_check_lib_save_LIBS
4425 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4426 echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6; }
4427 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4428 cat >>confdefs.h <<_ACEOF
4429 #define HAVE_LIBUNGIF 1
4432 LIBS="-lungif $LIBS"
4438 if test "$UNGIFMISSING";then
4441 { echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4442 echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6; }
4443 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 ac_check_lib_save_LIBS=$LIBS
4448 cat >conftest.$ac_ext <<_ACEOF
4451 cat confdefs.h >>conftest.$ac_ext
4452 cat >>conftest.$ac_ext <<_ACEOF
4453 /* end confdefs.h. */
4455 /* Override any GCC internal prototype to avoid an error.
4456 Use char because int might match the return type of a GCC
4457 builtin and then its argument prototype would still apply. */
4470 rm -f conftest.$ac_objext conftest$ac_exeext
4471 if { (ac_try="$ac_link"
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_link") 2>conftest.er1
4479 grep -v '^ *+' conftest.er1 >conftest.err
4481 cat conftest.err >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); } && {
4484 test -z "$ac_c_werror_flag" ||
4485 test ! -s conftest.err
4486 } && test -s conftest$ac_exeext &&
4487 $as_test_x conftest$ac_exeext; then
4488 ac_cv_lib_gif_DGifOpen=yes
4490 echo "$as_me: failed program was:" >&5
4491 sed 's/^/| /' conftest.$ac_ext >&5
4493 ac_cv_lib_gif_DGifOpen=no
4496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4497 conftest$ac_exeext conftest.$ac_ext
4498 LIBS=$ac_check_lib_save_LIBS
4500 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4501 echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6; }
4502 if test $ac_cv_lib_gif_DGifOpen = yes; then
4503 cat >>confdefs.h <<_ACEOF
4504 #define HAVE_LIBGIF 1
4516 { echo "$as_me:$LINENO: checking for byte order" >&5
4517 echo $ECHO_N "checking for byte order... $ECHO_C" >&6; }
4518 if test "$cross_compiling" = yes; then
4521 cat >conftest.$ac_ext <<_ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h. */
4528 int main (int argc, char *argv[])
4535 rm -f conftest$ac_exeext
4536 if { (ac_try="$ac_link"
4538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_link") 2>&5
4544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4546 { (case "(($ac_try" in
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_try") 2>&5
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4557 echo "$as_me: program exited with status $ac_status" >&5
4558 echo "$as_me: failed program was:" >&5
4559 sed 's/^/| /' conftest.$ac_ext >&5
4564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4570 if test "x${CROSSCOMPILE}" = "x1"; then
4571 { echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4572 echo "${ECHO_T}we are cross compiling- trying to guess from system type" >&6; }
4573 { echo "$as_me:$LINENO: checking target system type" >&5
4574 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
4575 if test "${ac_cv_target+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 if test "x$target_alias" = x; then
4579 ac_cv_target=$ac_cv_host
4581 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4582 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4583 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4584 { (exit 1); exit 1; }; }
4588 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4589 echo "${ECHO_T}$ac_cv_target" >&6; }
4590 case $ac_cv_target in
4592 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4593 echo "$as_me: error: invalid value of canonical target" >&2;}
4594 { (exit 1); exit 1; }; };;
4596 target=$ac_cv_target
4597 ac_save_IFS=$IFS; IFS='-'
4603 # Remember, the first character of IFS is used to create $*,
4604 # except with old shells:
4607 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4610 # The aliases save the names the user supplied, while $host etc.
4611 # will get canonicalized.
4612 test -n "$target_alias" &&
4613 test "$program_prefix$program_suffix$program_transform_name" = \
4615 program_prefix=${target_alias}-
4616 { echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4617 echo $ECHO_N "checking for byte order, try 2... $ECHO_C" >&6; }
4622 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4629 if test "x${LITTLEENDIAN}" = "x1"; then
4630 { echo "$as_me:$LINENO: result: little endian" >&5
4631 echo "${ECHO_T}little endian" >&6; }
4635 if test "x${BIGENDIAN}" = "x1"; then
4636 { echo "$as_me:$LINENO: result: big endian" >&5
4637 echo "${ECHO_T}big endian" >&6; }
4640 export WORDS_BIGENDIAN
4642 cat >>confdefs.h <<\_ACEOF
4643 #define WORDS_BIGENDIAN 1
4647 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4648 { echo "$as_me:$LINENO: result: unknown" >&5
4649 echo "${ECHO_T}unknown" >&6; }
4650 echo Byte order could not determined.
4656 { echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4657 echo $ECHO_N "checking whether system() can handle command substitution... $ECHO_C" >&6; }
4658 if test "$cross_compiling" = yes; then
4661 cat >conftest.$ac_ext <<_ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4669 int main (int argc, char*argv[])
4671 return system("test `touch config.tmp2`");
4675 rm -f conftest$ac_exeext
4676 if { (ac_try="$ac_link"
4678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4682 (eval "$ac_link") 2>&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4686 { (case "(($ac_try" in
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4691 (eval "$ac_try") 2>&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; }; then
4697 echo "$as_me: program exited with status $ac_status" >&5
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4707 if test "x${OK}" = "xOK";then
4708 test -f config.tmp2 || OK=
4711 if test "x${CROSSCOMPILE}" = "x1";then
4714 if test "x${OK}" = "xOK";then
4716 { echo "$as_me:$LINENO: result: yes" >&5
4717 echo "${ECHO_T}yes" >&6; }
4719 export SYSTEM_BACKTICKS
4721 cat >>confdefs.h <<\_ACEOF
4722 #define SYSTEM_BACKTICKS 1
4726 { echo "$as_me:$LINENO: result: no" >&5
4727 echo "${ECHO_T}no" >&6; }
4732 test "$program_prefix" != NONE &&
4733 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4734 # Use a double $ so make ignores it.
4735 test "$program_suffix" != NONE &&
4736 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4737 # Double any \ or $. echo might interpret backslashes.
4738 # By default was `s,x,x', remove it if useless.
4739 cat <<\_ACEOF >conftest.sed
4740 s/[\\$]/&&/g;s/;s,x,x,$//
4742 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
4746 ac_config_headers="$ac_config_headers config.h"
4754 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4755 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4756 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4757 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
4758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 cat >conftest.$ac_ext <<_ACEOF
4764 cat confdefs.h >>conftest.$ac_ext
4765 cat >>conftest.$ac_ext <<_ACEOF
4766 /* end confdefs.h. */
4767 #include <sys/types.h>
4779 rm -f conftest.$ac_objext
4780 if { (ac_try="$ac_compile"
4782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4783 *) ac_try_echo=$ac_try;;
4785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4786 (eval "$ac_compile") 2>conftest.er1
4788 grep -v '^ *+' conftest.er1 >conftest.err
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } && {
4793 test -z "$ac_c_werror_flag" ||
4794 test ! -s conftest.err
4795 } && test -s conftest.$ac_objext; then
4796 eval "$as_ac_Header=yes"
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4801 eval "$as_ac_Header=no"
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 ac_res=`eval echo '${'$as_ac_Header'}'`
4807 { echo "$as_me:$LINENO: result: $ac_res" >&5
4808 echo "${ECHO_T}$ac_res" >&6; }
4809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4810 cat >>confdefs.h <<_ACEOF
4811 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4814 ac_header_dirent=$ac_hdr; break
4818 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4819 if test $ac_header_dirent = dirent.h; then
4820 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4821 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4822 if test "${ac_cv_search_opendir+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4825 ac_func_search_save_LIBS=$LIBS
4826 cat >conftest.$ac_ext <<_ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4833 /* Override any GCC internal prototype to avoid an error.
4834 Use char because int might match the return type of a GCC
4835 builtin and then its argument prototype would still apply. */
4848 for ac_lib in '' dir; do
4849 if test -z "$ac_lib"; then
4850 ac_res="none required"
4853 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4855 rm -f conftest.$ac_objext conftest$ac_exeext
4856 if { (ac_try="$ac_link"
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4862 (eval "$ac_link") 2>conftest.er1
4864 grep -v '^ *+' conftest.er1 >conftest.err
4866 cat conftest.err >&5
4867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest$ac_exeext &&
4872 $as_test_x conftest$ac_exeext; then
4873 ac_cv_search_opendir=$ac_res
4875 echo "$as_me: failed program was:" >&5
4876 sed 's/^/| /' conftest.$ac_ext >&5
4881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4883 if test "${ac_cv_search_opendir+set}" = set; then
4887 if test "${ac_cv_search_opendir+set}" = set; then
4890 ac_cv_search_opendir=no
4893 LIBS=$ac_func_search_save_LIBS
4895 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4896 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4897 ac_res=$ac_cv_search_opendir
4898 if test "$ac_res" != no; then
4899 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4904 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
4905 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
4906 if test "${ac_cv_search_opendir+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 ac_func_search_save_LIBS=$LIBS
4910 cat >conftest.$ac_ext <<_ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4917 /* Override any GCC internal prototype to avoid an error.
4918 Use char because int might match the return type of a GCC
4919 builtin and then its argument prototype would still apply. */
4932 for ac_lib in '' x; do
4933 if test -z "$ac_lib"; then
4934 ac_res="none required"
4937 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4939 rm -f conftest.$ac_objext conftest$ac_exeext
4940 if { (ac_try="$ac_link"
4942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4943 *) ac_try_echo=$ac_try;;
4945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4946 (eval "$ac_link") 2>conftest.er1
4948 grep -v '^ *+' conftest.er1 >conftest.err
4950 cat conftest.err >&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } && {
4953 test -z "$ac_c_werror_flag" ||
4954 test ! -s conftest.err
4955 } && test -s conftest$ac_exeext &&
4956 $as_test_x conftest$ac_exeext; then
4957 ac_cv_search_opendir=$ac_res
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4967 if test "${ac_cv_search_opendir+set}" = set; then
4971 if test "${ac_cv_search_opendir+set}" = set; then
4974 ac_cv_search_opendir=no
4977 LIBS=$ac_func_search_save_LIBS
4979 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4980 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
4981 ac_res=$ac_cv_search_opendir
4982 if test "$ac_res" != no; then
4983 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4990 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4991 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4992 if test "${ac_cv_path_GREP+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 # Extract the first word of "grep ggrep" to use in msg output
4996 if test -z "$GREP"; then
4997 set dummy grep ggrep; ac_prog_name=$2
4998 if test "${ac_cv_path_GREP+set}" = set; then
4999 echo $ECHO_N "(cached) $ECHO_C" >&6
5001 ac_path_GREP_found=false
5002 # Loop through the user's path and test for each of PROGNAME-LIST
5003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5004 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5007 test -z "$as_dir" && as_dir=.
5008 for ac_prog in grep ggrep; do
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5011 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5012 # Check for GNU ac_path_GREP and select it if it is found.
5013 # Check for GNU $ac_path_GREP
5014 case `"$ac_path_GREP" --version 2>&1` in
5016 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5019 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5022 cat "conftest.in" "conftest.in" >"conftest.tmp"
5023 mv "conftest.tmp" "conftest.in"
5024 cp "conftest.in" "conftest.nl"
5025 echo 'GREP' >> "conftest.nl"
5026 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5028 ac_count=`expr $ac_count + 1`
5029 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5030 # Best one so far, save it but keep looking for a better one
5031 ac_cv_path_GREP="$ac_path_GREP"
5032 ac_path_GREP_max=$ac_count
5034 # 10*(2^10) chars as input seems more than enough
5035 test $ac_count -gt 10 && break
5037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5041 $ac_path_GREP_found && break 3
5051 GREP="$ac_cv_path_GREP"
5052 if test -z "$GREP"; then
5053 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5054 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5055 { (exit 1); exit 1; }; }
5059 ac_cv_path_GREP=$GREP
5064 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5065 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5066 GREP="$ac_cv_path_GREP"
5069 { echo "$as_me:$LINENO: checking for egrep" >&5
5070 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5071 if test "${ac_cv_path_EGREP+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5074 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5075 then ac_cv_path_EGREP="$GREP -E"
5077 # Extract the first word of "egrep" to use in msg output
5078 if test -z "$EGREP"; then
5079 set dummy egrep; ac_prog_name=$2
5080 if test "${ac_cv_path_EGREP+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 ac_path_EGREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5089 test -z "$as_dir" && as_dir=.
5090 for ac_prog in egrep; do
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5093 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5094 # Check for GNU ac_path_EGREP and select it if it is found.
5095 # Check for GNU $ac_path_EGREP
5096 case `"$ac_path_EGREP" --version 2>&1` in
5098 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5101 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5104 cat "conftest.in" "conftest.in" >"conftest.tmp"
5105 mv "conftest.tmp" "conftest.in"
5106 cp "conftest.in" "conftest.nl"
5107 echo 'EGREP' >> "conftest.nl"
5108 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110 ac_count=`expr $ac_count + 1`
5111 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5112 # Best one so far, save it but keep looking for a better one
5113 ac_cv_path_EGREP="$ac_path_EGREP"
5114 ac_path_EGREP_max=$ac_count
5116 # 10*(2^10) chars as input seems more than enough
5117 test $ac_count -gt 10 && break
5119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5123 $ac_path_EGREP_found && break 3
5133 EGREP="$ac_cv_path_EGREP"
5134 if test -z "$EGREP"; then
5135 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5137 { (exit 1); exit 1; }; }
5141 ac_cv_path_EGREP=$EGREP
5147 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5148 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5149 EGREP="$ac_cv_path_EGREP"
5152 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5153 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5154 if test "${ac_cv_header_stdc+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 cat >conftest.$ac_ext <<_ACEOF
5160 cat confdefs.h >>conftest.$ac_ext
5161 cat >>conftest.$ac_ext <<_ACEOF
5162 /* end confdefs.h. */
5176 rm -f conftest.$ac_objext
5177 if { (ac_try="$ac_compile"
5179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5180 *) ac_try_echo=$ac_try;;
5182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5183 (eval "$ac_compile") 2>conftest.er1
5185 grep -v '^ *+' conftest.er1 >conftest.err
5187 cat conftest.err >&5
5188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5189 (exit $ac_status); } && {
5190 test -z "$ac_c_werror_flag" ||
5191 test ! -s conftest.err
5192 } && test -s conftest.$ac_objext; then
5193 ac_cv_header_stdc=yes
5195 echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5198 ac_cv_header_stdc=no
5201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5203 if test $ac_cv_header_stdc = yes; then
5204 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5205 cat >conftest.$ac_ext <<_ACEOF
5208 cat confdefs.h >>conftest.$ac_ext
5209 cat >>conftest.$ac_ext <<_ACEOF
5210 /* end confdefs.h. */
5214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5215 $EGREP "memchr" >/dev/null 2>&1; then
5218 ac_cv_header_stdc=no
5224 if test $ac_cv_header_stdc = yes; then
5225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5226 cat >conftest.$ac_ext <<_ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5236 $EGREP "free" >/dev/null 2>&1; then
5239 ac_cv_header_stdc=no
5245 if test $ac_cv_header_stdc = yes; then
5246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5247 if test "$cross_compiling" = yes; then
5250 cat >conftest.$ac_ext <<_ACEOF
5253 cat confdefs.h >>conftest.$ac_ext
5254 cat >>conftest.$ac_ext <<_ACEOF
5255 /* end confdefs.h. */
5258 #if ((' ' & 0x0FF) == 0x020)
5259 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5260 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5262 # define ISLOWER(c) \
5263 (('a' <= (c) && (c) <= 'i') \
5264 || ('j' <= (c) && (c) <= 'r') \
5265 || ('s' <= (c) && (c) <= 'z'))
5266 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5269 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5274 for (i = 0; i < 256; i++)
5275 if (XOR (islower (i), ISLOWER (i))
5276 || toupper (i) != TOUPPER (i))
5281 rm -f conftest$ac_exeext
5282 if { (ac_try="$ac_link"
5284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5285 *) ac_try_echo=$ac_try;;
5287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5288 (eval "$ac_link") 2>&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5292 { (case "(($ac_try" in
5293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294 *) ac_try_echo=$ac_try;;
5296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297 (eval "$ac_try") 2>&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); }; }; then
5303 echo "$as_me: program exited with status $ac_status" >&5
5304 echo "$as_me: failed program was:" >&5
5305 sed 's/^/| /' conftest.$ac_ext >&5
5308 ac_cv_header_stdc=no
5310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5316 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5317 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5318 if test $ac_cv_header_stdc = yes; then
5320 cat >>confdefs.h <<\_ACEOF
5321 #define STDC_HEADERS 1
5327 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5337 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5338 inttypes.h stdint.h unistd.h
5340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 cat >conftest.$ac_ext <<_ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5352 $ac_includes_default
5354 #include <$ac_header>
5356 rm -f conftest.$ac_objext
5357 if { (ac_try="$ac_compile"
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_compile") 2>conftest.er1
5365 grep -v '^ *+' conftest.er1 >conftest.err
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && {
5370 test -z "$ac_c_werror_flag" ||
5371 test ! -s conftest.err
5372 } && test -s conftest.$ac_objext; then
5373 eval "$as_ac_Header=yes"
5375 echo "$as_me: failed program was:" >&5
5376 sed 's/^/| /' conftest.$ac_ext >&5
5378 eval "$as_ac_Header=no"
5381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 ac_res=`eval echo '${'$as_ac_Header'}'`
5384 { echo "$as_me:$LINENO: result: $ac_res" >&5
5385 echo "${ECHO_T}$ac_res" >&6; }
5386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5387 cat >>confdefs.h <<_ACEOF
5388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5414 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/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h
5416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 ac_res=`eval echo '${'$as_ac_Header'}'`
5424 { echo "$as_me:$LINENO: result: $ac_res" >&5
5425 echo "${ECHO_T}$ac_res" >&6; }
5427 # Is the header compilable?
5428 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5429 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5430 cat >conftest.$ac_ext <<_ACEOF
5433 cat confdefs.h >>conftest.$ac_ext
5434 cat >>conftest.$ac_ext <<_ACEOF
5435 /* end confdefs.h. */
5436 $ac_includes_default
5437 #include <$ac_header>
5439 rm -f conftest.$ac_objext
5440 if { (ac_try="$ac_compile"
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_compile") 2>conftest.er1
5448 grep -v '^ *+' conftest.er1 >conftest.err
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && {
5453 test -z "$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 } && test -s conftest.$ac_objext; then
5456 ac_header_compiler=yes
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5461 ac_header_compiler=no
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5465 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5466 echo "${ECHO_T}$ac_header_compiler" >&6; }
5468 # Is the header present?
5469 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5470 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5471 cat >conftest.$ac_ext <<_ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5477 #include <$ac_header>
5479 if { (ac_try="$ac_cpp conftest.$ac_ext"
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5487 grep -v '^ *+' conftest.er1 >conftest.err
5489 cat conftest.err >&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } >/dev/null && {
5492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5493 test ! -s conftest.err
5495 ac_header_preproc=yes
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_header_preproc=no
5503 rm -f conftest.err conftest.$ac_ext
5504 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5505 echo "${ECHO_T}$ac_header_preproc" >&6; }
5507 # So? What about this header?
5508 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5510 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5511 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5513 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5514 ac_header_preproc=yes
5517 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5518 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5519 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5520 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5521 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5522 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5523 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5524 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5526 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5527 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5528 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5532 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5533 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 eval "$as_ac_Header=\$ac_header_preproc"
5539 ac_res=`eval echo '${'$as_ac_Header'}'`
5540 { echo "$as_me:$LINENO: result: $ac_res" >&5
5541 echo "${ECHO_T}$ac_res" >&6; }
5544 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5545 cat >>confdefs.h <<_ACEOF
5546 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5555 cat >>confdefs.h <<_ACEOF
5556 #define PACKAGE "$PACKAGE"
5560 cat >>confdefs.h <<_ACEOF
5561 #define VERSION "$VERSION"
5570 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5571 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
5572 if test "${ac_cv_c_const+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.$ac_ext <<_ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5585 /* FIXME: Include the comments suggested by Paul. */
5587 /* Ultrix mips cc rejects this. */
5588 typedef int charset[2];
5590 /* SunOS 4.1.1 cc rejects this. */
5591 char const *const *pcpcc;
5593 /* NEC SVR4.0.2 mips cc rejects this. */
5594 struct point {int x, y;};
5595 static struct point const zero = {0,0};
5596 /* AIX XL C 1.02.0.0 rejects this.
5597 It does not let you subtract one const X* pointer from another in
5598 an arm of an if-expression whose if-part is not a constant
5600 const char *g = "string";
5601 pcpcc = &g + (g ? g-g : 0);
5602 /* HPUX 7.0 cc rejects these. */
5604 ppc = (char**) pcpcc;
5605 pcpcc = (char const *const *) ppc;
5606 { /* SCO 3.2v4 cc rejects this. */
5608 char const *s = 0 ? (char *) 0 : (char const *) 0;
5613 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5615 const int *foo = &x[0];
5618 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5619 typedef const int *iptr;
5623 { /* AIX XL C 1.02.0.0 rejects this saying
5624 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5625 struct s { int j; const int *ap[3]; };
5626 struct s *b; b->j = 5;
5628 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5632 return !cs[0] && !zero.x;
5639 rm -f conftest.$ac_objext
5640 if { (ac_try="$ac_compile"
5642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5643 *) ac_try_echo=$ac_try;;
5645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5646 (eval "$ac_compile") 2>conftest.er1
5648 grep -v '^ *+' conftest.er1 >conftest.err
5650 cat conftest.err >&5
5651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652 (exit $ac_status); } && {
5653 test -z "$ac_c_werror_flag" ||
5654 test ! -s conftest.err
5655 } && test -s conftest.$ac_objext; then
5658 echo "$as_me: failed program was:" >&5
5659 sed 's/^/| /' conftest.$ac_ext >&5
5664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5666 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5667 echo "${ECHO_T}$ac_cv_c_const" >&6; }
5668 if test $ac_cv_c_const = no; then
5670 cat >>confdefs.h <<\_ACEOF
5676 { echo "$as_me:$LINENO: checking for inline" >&5
5677 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
5678 if test "${ac_cv_c_inline+set}" = set; then
5679 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 for ac_kw in inline __inline__ __inline; do
5683 cat >conftest.$ac_ext <<_ACEOF
5686 cat confdefs.h >>conftest.$ac_ext
5687 cat >>conftest.$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5691 static $ac_kw foo_t static_foo () {return 0; }
5692 $ac_kw foo_t foo () {return 0; }
5696 rm -f conftest.$ac_objext
5697 if { (ac_try="$ac_compile"
5699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5700 *) ac_try_echo=$ac_try;;
5702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5703 (eval "$ac_compile") 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } && {
5710 test -z "$ac_c_werror_flag" ||
5711 test ! -s conftest.err
5712 } && test -s conftest.$ac_objext; then
5713 ac_cv_c_inline=$ac_kw
5715 echo "$as_me: failed program was:" >&5
5716 sed 's/^/| /' conftest.$ac_ext >&5
5721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 test "$ac_cv_c_inline" != no && break
5726 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5727 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
5730 case $ac_cv_c_inline in
5733 case $ac_cv_c_inline in
5735 *) ac_val=$ac_cv_c_inline;;
5737 cat >>confdefs.h <<_ACEOF
5739 #define inline $ac_val
5745 { echo "$as_me:$LINENO: checking for off_t" >&5
5746 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
5747 if test "${ac_cv_type_off_t+set}" = set; then
5748 echo $ECHO_N "(cached) $ECHO_C" >&6
5750 cat >conftest.$ac_ext <<_ACEOF
5753 cat confdefs.h >>conftest.$ac_ext
5754 cat >>conftest.$ac_ext <<_ACEOF
5755 /* end confdefs.h. */
5756 $ac_includes_default
5757 typedef off_t ac__type_new_;
5761 if ((ac__type_new_ *) 0)
5763 if (sizeof (ac__type_new_))
5769 rm -f conftest.$ac_objext
5770 if { (ac_try="$ac_compile"
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compile") 2>conftest.er1
5778 grep -v '^ *+' conftest.er1 >conftest.err
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && {
5783 test -z "$ac_c_werror_flag" ||
5784 test ! -s conftest.err
5785 } && test -s conftest.$ac_objext; then
5786 ac_cv_type_off_t=yes
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5796 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5797 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
5798 if test $ac_cv_type_off_t = yes; then
5802 cat >>confdefs.h <<_ACEOF
5803 #define off_t long int
5808 { echo "$as_me:$LINENO: checking for size_t" >&5
5809 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
5810 if test "${ac_cv_type_size_t+set}" = set; then
5811 echo $ECHO_N "(cached) $ECHO_C" >&6
5813 cat >conftest.$ac_ext <<_ACEOF
5816 cat confdefs.h >>conftest.$ac_ext
5817 cat >>conftest.$ac_ext <<_ACEOF
5818 /* end confdefs.h. */
5819 $ac_includes_default
5820 typedef size_t ac__type_new_;
5824 if ((ac__type_new_ *) 0)
5826 if (sizeof (ac__type_new_))
5832 rm -f conftest.$ac_objext
5833 if { (ac_try="$ac_compile"
5835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5836 *) ac_try_echo=$ac_try;;
5838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5839 (eval "$ac_compile") 2>conftest.er1
5841 grep -v '^ *+' conftest.er1 >conftest.err
5843 cat conftest.err >&5
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); } && {
5846 test -z "$ac_c_werror_flag" ||
5847 test ! -s conftest.err
5848 } && test -s conftest.$ac_objext; then
5849 ac_cv_type_size_t=yes
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 ac_cv_type_size_t=no
5857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5860 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
5861 if test $ac_cv_type_size_t = yes; then
5865 cat >>confdefs.h <<_ACEOF
5866 #define size_t unsigned int
5871 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
5872 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
5873 if test "${ac_cv_struct_tm+set}" = set; then
5874 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 cat >conftest.$ac_ext <<_ACEOF
5879 cat confdefs.h >>conftest.$ac_ext
5880 cat >>conftest.$ac_ext <<_ACEOF
5881 /* end confdefs.h. */
5882 #include <sys/types.h>
5889 int *p = &tm.tm_sec;
5895 rm -f conftest.$ac_objext
5896 if { (ac_try="$ac_compile"
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_compile") 2>conftest.er1
5904 grep -v '^ *+' conftest.er1 >conftest.err
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } && {
5909 test -z "$ac_c_werror_flag" ||
5910 test ! -s conftest.err
5911 } && test -s conftest.$ac_objext; then
5912 ac_cv_struct_tm=time.h
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5917 ac_cv_struct_tm=sys/time.h
5920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5922 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
5923 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
5924 if test $ac_cv_struct_tm = sys/time.h; then
5926 cat >>confdefs.h <<\_ACEOF
5927 #define TM_IN_SYS_TIME 1
5932 { echo "$as_me:$LINENO: checking for boolean" >&5
5933 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
5934 if test "${ac_cv_type_boolean+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5937 cat >conftest.$ac_ext <<_ACEOF
5940 cat confdefs.h >>conftest.$ac_ext
5941 cat >>conftest.$ac_ext <<_ACEOF
5942 /* end confdefs.h. */
5943 $ac_includes_default
5944 typedef boolean ac__type_new_;
5948 if ((ac__type_new_ *) 0)
5950 if (sizeof (ac__type_new_))
5956 rm -f conftest.$ac_objext
5957 if { (ac_try="$ac_compile"
5959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5960 *) ac_try_echo=$ac_try;;
5962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5963 (eval "$ac_compile") 2>conftest.er1
5965 grep -v '^ *+' conftest.er1 >conftest.err
5967 cat conftest.err >&5
5968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969 (exit $ac_status); } && {
5970 test -z "$ac_c_werror_flag" ||
5971 test ! -s conftest.err
5972 } && test -s conftest.$ac_objext; then
5973 ac_cv_type_boolean=yes
5975 echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5978 ac_cv_type_boolean=no
5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5983 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
5984 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
5985 if test $ac_cv_type_boolean = yes; then
5989 cat >>confdefs.h <<_ACEOF
6009 for ac_func in popen wcschr wcsdup mkstemp stat lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6012 { echo "$as_me:$LINENO: checking for $ac_func" >&5
6013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6014 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 cat >conftest.$ac_ext <<_ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6025 #define $ac_func innocuous_$ac_func
6027 /* System header to define __stub macros and hopefully few prototypes,
6028 which can conflict with char $ac_func (); below.
6029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6030 <limits.h> exists even on freestanding compilers. */
6033 # include <limits.h>
6035 # include <assert.h>
6040 /* Override any GCC internal prototype to avoid an error.
6041 Use char because int might match the return type of a GCC
6042 builtin and then its argument prototype would still apply. */
6047 /* The GNU C library defines this for functions which it implements
6048 to always fail with ENOSYS. Some functions are actually named
6049 something starting with __ and the normal name is an alias. */
6050 #if defined __stub_$ac_func || defined __stub___$ac_func
6062 rm -f conftest.$ac_objext conftest$ac_exeext
6063 if { (ac_try="$ac_link"
6065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6066 *) ac_try_echo=$ac_try;;
6068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6069 (eval "$ac_link") 2>conftest.er1
6071 grep -v '^ *+' conftest.er1 >conftest.err
6073 cat conftest.err >&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); } && {
6076 test -z "$ac_c_werror_flag" ||
6077 test ! -s conftest.err
6078 } && test -s conftest$ac_exeext &&
6079 $as_test_x conftest$ac_exeext; then
6080 eval "$as_ac_var=yes"
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.$ac_ext >&5
6085 eval "$as_ac_var=no"
6088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6089 conftest$ac_exeext conftest.$ac_ext
6091 ac_res=`eval echo '${'$as_ac_var'}'`
6092 { echo "$as_me:$LINENO: result: $ac_res" >&5
6093 echo "${ECHO_T}$ac_res" >&6; }
6094 if test `eval echo '${'$as_ac_var'}'` = yes; then
6095 cat >>confdefs.h <<_ACEOF
6096 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6103 { echo "$as_me:$LINENO: checking for signed char" >&5
6104 echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
6105 if test "${ac_cv_type_signed_char+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 cat >conftest.$ac_ext <<_ACEOF
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 $ac_includes_default
6115 typedef signed char ac__type_new_;
6119 if ((ac__type_new_ *) 0)
6121 if (sizeof (ac__type_new_))
6127 rm -f conftest.$ac_objext
6128 if { (ac_try="$ac_compile"
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_compile") 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } && {
6141 test -z "$ac_c_werror_flag" ||
6142 test ! -s conftest.err
6143 } && test -s conftest.$ac_objext; then
6144 ac_cv_type_signed_char=yes
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6149 ac_cv_type_signed_char=no
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
6155 echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
6157 # The cast to long int works around a bug in the HP C Compiler
6158 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6159 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6160 # This bug is HP SR number 8606223364.
6161 { echo "$as_me:$LINENO: checking size of signed char" >&5
6162 echo $ECHO_N "checking size of signed char... $ECHO_C" >&6; }
6163 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6164 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 if test "$cross_compiling" = yes; then
6167 # Depending upon the size, compute the lo and hi bounds.
6168 cat >conftest.$ac_ext <<_ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 $ac_includes_default
6175 typedef signed char ac__type_sizeof_;
6179 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6186 rm -f conftest.$ac_objext
6187 if { (ac_try="$ac_compile"
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6193 (eval "$ac_compile") 2>conftest.er1
6195 grep -v '^ *+' conftest.er1 >conftest.err
6197 cat conftest.err >&5
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); } && {
6200 test -z "$ac_c_werror_flag" ||
6201 test ! -s conftest.err
6202 } && test -s conftest.$ac_objext; then
6205 cat >conftest.$ac_ext <<_ACEOF
6208 cat confdefs.h >>conftest.$ac_ext
6209 cat >>conftest.$ac_ext <<_ACEOF
6210 /* end confdefs.h. */
6211 $ac_includes_default
6212 typedef signed char ac__type_sizeof_;
6216 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6223 rm -f conftest.$ac_objext
6224 if { (ac_try="$ac_compile"
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6230 (eval "$ac_compile") 2>conftest.er1
6232 grep -v '^ *+' conftest.er1 >conftest.err
6234 cat conftest.err >&5
6235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } && {
6237 test -z "$ac_c_werror_flag" ||
6238 test ! -s conftest.err
6239 } && test -s conftest.$ac_objext; then
6240 ac_hi=$ac_mid; break
6242 echo "$as_me: failed program was:" >&5
6243 sed 's/^/| /' conftest.$ac_ext >&5
6245 ac_lo=`expr $ac_mid + 1`
6246 if test $ac_lo -le $ac_mid; then
6250 ac_mid=`expr 2 '*' $ac_mid + 1`
6253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 echo "$as_me: failed program was:" >&5
6257 sed 's/^/| /' conftest.$ac_ext >&5
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 $ac_includes_default
6266 typedef signed char ac__type_sizeof_;
6270 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6277 rm -f conftest.$ac_objext
6278 if { (ac_try="$ac_compile"
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6286 grep -v '^ *+' conftest.er1 >conftest.err
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.$ac_objext; then
6296 cat >conftest.$ac_ext <<_ACEOF
6299 cat confdefs.h >>conftest.$ac_ext
6300 cat >>conftest.$ac_ext <<_ACEOF
6301 /* end confdefs.h. */
6302 $ac_includes_default
6303 typedef signed char ac__type_sizeof_;
6307 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6314 rm -f conftest.$ac_objext
6315 if { (ac_try="$ac_compile"
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_compile") 2>conftest.er1
6323 grep -v '^ *+' conftest.er1 >conftest.err
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } && {
6328 test -z "$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 } && test -s conftest.$ac_objext; then
6331 ac_lo=$ac_mid; break
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 ac_hi=`expr '(' $ac_mid ')' - 1`
6337 if test $ac_mid -le $ac_hi; then
6341 ac_mid=`expr 2 '*' $ac_mid`
6344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 # Binary search between lo and hi bounds.
6358 while test "x$ac_lo" != "x$ac_hi"; do
6359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6360 cat >conftest.$ac_ext <<_ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6366 $ac_includes_default
6367 typedef signed char ac__type_sizeof_;
6371 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6387 grep -v '^ *+' conftest.er1 >conftest.err
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } && {
6392 test -z "$ac_c_werror_flag" ||
6393 test ! -s conftest.err
6394 } && test -s conftest.$ac_objext; then
6397 echo "$as_me: failed program was:" >&5
6398 sed 's/^/| /' conftest.$ac_ext >&5
6400 ac_lo=`expr '(' $ac_mid ')' + 1`
6403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6407 '') if test "$ac_cv_type_signed_char" = yes; then
6408 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6409 See \`config.log' for more details." >&5
6410 echo "$as_me: error: cannot compute sizeof (signed char)
6411 See \`config.log' for more details." >&2;}
6412 { (exit 77); exit 77; }; }
6414 ac_cv_sizeof_signed_char=0
6418 cat >conftest.$ac_ext <<_ACEOF
6421 cat confdefs.h >>conftest.$ac_ext
6422 cat >>conftest.$ac_ext <<_ACEOF
6423 /* end confdefs.h. */
6424 $ac_includes_default
6425 typedef signed char ac__type_sizeof_;
6426 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6427 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6434 FILE *f = fopen ("conftest.val", "w");
6437 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6439 long int i = longval ();
6440 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6442 fprintf (f, "%ld\n", i);
6446 unsigned long int i = ulongval ();
6447 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6449 fprintf (f, "%lu\n", i);
6451 return ferror (f) || fclose (f) != 0;
6457 rm -f conftest$ac_exeext
6458 if { (ac_try="$ac_link"
6460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_link") 2>&5
6466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6468 { (case "(($ac_try" in
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_try") 2>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; }; then
6477 ac_cv_sizeof_signed_char=`cat conftest.val`
6479 echo "$as_me: program exited with status $ac_status" >&5
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6484 if test "$ac_cv_type_signed_char" = yes; then
6485 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6486 See \`config.log' for more details." >&5
6487 echo "$as_me: error: cannot compute sizeof (signed char)
6488 See \`config.log' for more details." >&2;}
6489 { (exit 77); exit 77; }; }
6491 ac_cv_sizeof_signed_char=0
6494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6498 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6499 echo "${ECHO_T}$ac_cv_sizeof_signed_char" >&6; }
6503 cat >>confdefs.h <<_ACEOF
6504 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6508 { echo "$as_me:$LINENO: checking for signed short" >&5
6509 echo $ECHO_N "checking for signed short... $ECHO_C" >&6; }
6510 if test "${ac_cv_type_signed_short+set}" = set; then
6511 echo $ECHO_N "(cached) $ECHO_C" >&6
6513 cat >conftest.$ac_ext <<_ACEOF
6516 cat confdefs.h >>conftest.$ac_ext
6517 cat >>conftest.$ac_ext <<_ACEOF
6518 /* end confdefs.h. */
6519 $ac_includes_default
6520 typedef signed short ac__type_new_;
6524 if ((ac__type_new_ *) 0)
6526 if (sizeof (ac__type_new_))
6532 rm -f conftest.$ac_objext
6533 if { (ac_try="$ac_compile"
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_compile") 2>conftest.er1
6541 grep -v '^ *+' conftest.er1 >conftest.err
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } && {
6546 test -z "$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 } && test -s conftest.$ac_objext; then
6549 ac_cv_type_signed_short=yes
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6554 ac_cv_type_signed_short=no
6557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6559 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_short" >&5
6560 echo "${ECHO_T}$ac_cv_type_signed_short" >&6; }
6562 # The cast to long int works around a bug in the HP C Compiler
6563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6565 # This bug is HP SR number 8606223364.
6566 { echo "$as_me:$LINENO: checking size of signed short" >&5
6567 echo $ECHO_N "checking size of signed short... $ECHO_C" >&6; }
6568 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 if test "$cross_compiling" = yes; then
6572 # Depending upon the size, compute the lo and hi bounds.
6573 cat >conftest.$ac_ext <<_ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 $ac_includes_default
6580 typedef signed short ac__type_sizeof_;
6584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6591 rm -f conftest.$ac_objext
6592 if { (ac_try="$ac_compile"
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_compile") 2>conftest.er1
6600 grep -v '^ *+' conftest.er1 >conftest.err
6602 cat conftest.err >&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } && {
6605 test -z "$ac_c_werror_flag" ||
6606 test ! -s conftest.err
6607 } && test -s conftest.$ac_objext; then
6610 cat >conftest.$ac_ext <<_ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 $ac_includes_default
6617 typedef signed short ac__type_sizeof_;
6621 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6628 rm -f conftest.$ac_objext
6629 if { (ac_try="$ac_compile"
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6637 grep -v '^ *+' conftest.er1 >conftest.err
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && {
6642 test -z "$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 } && test -s conftest.$ac_objext; then
6645 ac_hi=$ac_mid; break
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6650 ac_lo=`expr $ac_mid + 1`
6651 if test $ac_lo -le $ac_mid; then
6655 ac_mid=`expr 2 '*' $ac_mid + 1`
6658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6664 cat >conftest.$ac_ext <<_ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6670 $ac_includes_default
6671 typedef signed short ac__type_sizeof_;
6675 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
6682 rm -f conftest.$ac_objext
6683 if { (ac_try="$ac_compile"
6685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6686 *) ac_try_echo=$ac_try;;
6688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6689 (eval "$ac_compile") 2>conftest.er1
6691 grep -v '^ *+' conftest.er1 >conftest.err
6693 cat conftest.err >&5
6694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695 (exit $ac_status); } && {
6696 test -z "$ac_c_werror_flag" ||
6697 test ! -s conftest.err
6698 } && test -s conftest.$ac_objext; then
6701 cat >conftest.$ac_ext <<_ACEOF
6704 cat confdefs.h >>conftest.$ac_ext
6705 cat >>conftest.$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 $ac_includes_default
6708 typedef signed short ac__type_sizeof_;
6712 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
6719 rm -f conftest.$ac_objext
6720 if { (ac_try="$ac_compile"
6722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6723 *) ac_try_echo=$ac_try;;
6725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6726 (eval "$ac_compile") 2>conftest.er1
6728 grep -v '^ *+' conftest.er1 >conftest.err
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && {
6733 test -z "$ac_c_werror_flag" ||
6734 test ! -s conftest.err
6735 } && test -s conftest.$ac_objext; then
6736 ac_lo=$ac_mid; break
6738 echo "$as_me: failed program was:" >&5
6739 sed 's/^/| /' conftest.$ac_ext >&5
6741 ac_hi=`expr '(' $ac_mid ')' - 1`
6742 if test $ac_mid -le $ac_hi; then
6746 ac_mid=`expr 2 '*' $ac_mid`
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 echo "$as_me: failed program was:" >&5
6753 sed 's/^/| /' conftest.$ac_ext >&5
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 # Binary search between lo and hi bounds.
6763 while test "x$ac_lo" != "x$ac_hi"; do
6764 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6765 cat >conftest.$ac_ext <<_ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 $ac_includes_default
6772 typedef signed short ac__type_sizeof_;
6776 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
6783 rm -f conftest.$ac_objext
6784 if { (ac_try="$ac_compile"
6786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787 *) ac_try_echo=$ac_try;;
6789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6790 (eval "$ac_compile") 2>conftest.er1
6792 grep -v '^ *+' conftest.er1 >conftest.err
6794 cat conftest.err >&5
6795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } && {
6797 test -z "$ac_c_werror_flag" ||
6798 test ! -s conftest.err
6799 } && test -s conftest.$ac_objext; then
6802 echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6805 ac_lo=`expr '(' $ac_mid ')' + 1`
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6811 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
6812 '') if test "$ac_cv_type_signed_short" = yes; then
6813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6814 See \`config.log' for more details." >&5
6815 echo "$as_me: error: cannot compute sizeof (signed short)
6816 See \`config.log' for more details." >&2;}
6817 { (exit 77); exit 77; }; }
6819 ac_cv_sizeof_signed_short=0
6823 cat >conftest.$ac_ext <<_ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 $ac_includes_default
6830 typedef signed short ac__type_sizeof_;
6831 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
6832 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
6839 FILE *f = fopen ("conftest.val", "w");
6842 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
6844 long int i = longval ();
6845 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6847 fprintf (f, "%ld\n", i);
6851 unsigned long int i = ulongval ();
6852 if (i != ((long int) (sizeof (ac__type_sizeof_))))
6854 fprintf (f, "%lu\n", i);
6856 return ferror (f) || fclose (f) != 0;
6862 rm -f conftest$ac_exeext
6863 if { (ac_try="$ac_link"
6865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6866 *) ac_try_echo=$ac_try;;
6868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6869 (eval "$ac_link") 2>&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6873 { (case "(($ac_try" in
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878 (eval "$ac_try") 2>&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
6882 ac_cv_sizeof_signed_short=`cat conftest.val`
6884 echo "$as_me: program exited with status $ac_status" >&5
6885 echo "$as_me: failed program was:" >&5
6886 sed 's/^/| /' conftest.$ac_ext >&5
6889 if test "$ac_cv_type_signed_short" = yes; then
6890 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6891 See \`config.log' for more details." >&5
6892 echo "$as_me: error: cannot compute sizeof (signed short)
6893 See \`config.log' for more details." >&2;}
6894 { (exit 77); exit 77; }; }
6896 ac_cv_sizeof_signed_short=0
6899 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6903 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
6904 echo "${ECHO_T}$ac_cv_sizeof_signed_short" >&6; }
6908 cat >>confdefs.h <<_ACEOF
6909 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
6913 { echo "$as_me:$LINENO: checking for signed" >&5
6914 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
6915 if test "${ac_cv_type_signed+set}" = set; then
6916 echo $ECHO_N "(cached) $ECHO_C" >&6
6918 cat >conftest.$ac_ext <<_ACEOF
6921 cat confdefs.h >>conftest.$ac_ext
6922 cat >>conftest.$ac_ext <<_ACEOF
6923 /* end confdefs.h. */
6924 $ac_includes_default
6925 typedef signed ac__type_new_;
6929 if ((ac__type_new_ *) 0)
6931 if (sizeof (ac__type_new_))
6937 rm -f conftest.$ac_objext
6938 if { (ac_try="$ac_compile"
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_compile") 2>conftest.er1
6946 grep -v '^ *+' conftest.er1 >conftest.err
6948 cat conftest.err >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } && {
6951 test -z "$ac_c_werror_flag" ||
6952 test ! -s conftest.err
6953 } && test -s conftest.$ac_objext; then
6954 ac_cv_type_signed=yes
6956 echo "$as_me: failed program was:" >&5
6957 sed 's/^/| /' conftest.$ac_ext >&5
6959 ac_cv_type_signed=no
6962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964 { echo "$as_me:$LINENO: result: $ac_cv_type_signed" >&5
6965 echo "${ECHO_T}$ac_cv_type_signed" >&6; }
6967 # The cast to long int works around a bug in the HP C Compiler
6968 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6969 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6970 # This bug is HP SR number 8606223364.
6971 { echo "$as_me:$LINENO: checking size of signed" >&5
6972 echo $ECHO_N "checking size of signed... $ECHO_C" >&6; }
6973 if test "${ac_cv_sizeof_signed+set}" = set; then
6974 echo $ECHO_N "(cached) $ECHO_C" >&6
6976 if test "$cross_compiling" = yes; then
6977 # Depending upon the size, compute the lo and hi bounds.
6978 cat >conftest.$ac_ext <<_ACEOF
6981 cat confdefs.h >>conftest.$ac_ext
6982 cat >>conftest.$ac_ext <<_ACEOF
6983 /* end confdefs.h. */
6984 $ac_includes_default
6985 typedef signed ac__type_sizeof_;
6989 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
6996 rm -f conftest.$ac_objext
6997 if { (ac_try="$ac_compile"
6999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000 *) ac_try_echo=$ac_try;;
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003 (eval "$ac_compile") 2>conftest.er1
7005 grep -v '^ *+' conftest.er1 >conftest.err
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } && {
7010 test -z "$ac_c_werror_flag" ||
7011 test ! -s conftest.err
7012 } && test -s conftest.$ac_objext; then
7015 cat >conftest.$ac_ext <<_ACEOF
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7021 $ac_includes_default
7022 typedef signed ac__type_sizeof_;
7026 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7033 rm -f conftest.$ac_objext
7034 if { (ac_try="$ac_compile"
7036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037 *) ac_try_echo=$ac_try;;
7039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040 (eval "$ac_compile") 2>conftest.er1
7042 grep -v '^ *+' conftest.er1 >conftest.err
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && {
7047 test -z "$ac_c_werror_flag" ||
7048 test ! -s conftest.err
7049 } && test -s conftest.$ac_objext; then
7050 ac_hi=$ac_mid; break
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7055 ac_lo=`expr $ac_mid + 1`
7056 if test $ac_lo -le $ac_mid; then
7060 ac_mid=`expr 2 '*' $ac_mid + 1`
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 cat >conftest.$ac_ext <<_ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 $ac_includes_default
7076 typedef signed ac__type_sizeof_;
7080 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7087 rm -f conftest.$ac_objext
7088 if { (ac_try="$ac_compile"
7090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7091 *) ac_try_echo=$ac_try;;
7093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7094 (eval "$ac_compile") 2>conftest.er1
7096 grep -v '^ *+' conftest.er1 >conftest.err
7098 cat conftest.err >&5
7099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100 (exit $ac_status); } && {
7101 test -z "$ac_c_werror_flag" ||
7102 test ! -s conftest.err
7103 } && test -s conftest.$ac_objext; then
7106 cat >conftest.$ac_ext <<_ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 $ac_includes_default
7113 typedef signed ac__type_sizeof_;
7117 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7124 rm -f conftest.$ac_objext
7125 if { (ac_try="$ac_compile"
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131 (eval "$ac_compile") 2>conftest.er1
7133 grep -v '^ *+' conftest.er1 >conftest.err
7135 cat conftest.err >&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } && {
7138 test -z "$ac_c_werror_flag" ||
7139 test ! -s conftest.err
7140 } && test -s conftest.$ac_objext; then
7141 ac_lo=$ac_mid; break
7143 echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.$ac_ext >&5
7146 ac_hi=`expr '(' $ac_mid ')' - 1`
7147 if test $ac_mid -le $ac_hi; then
7151 ac_mid=`expr 2 '*' $ac_mid`
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7157 echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 # Binary search between lo and hi bounds.
7168 while test "x$ac_lo" != "x$ac_hi"; do
7169 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7170 cat >conftest.$ac_ext <<_ACEOF
7173 cat confdefs.h >>conftest.$ac_ext
7174 cat >>conftest.$ac_ext <<_ACEOF
7175 /* end confdefs.h. */
7176 $ac_includes_default
7177 typedef signed ac__type_sizeof_;
7181 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7188 rm -f conftest.$ac_objext
7189 if { (ac_try="$ac_compile"
7191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 *) ac_try_echo=$ac_try;;
7194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195 (eval "$ac_compile") 2>conftest.er1
7197 grep -v '^ *+' conftest.er1 >conftest.err
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && {
7202 test -z "$ac_c_werror_flag" ||
7203 test ! -s conftest.err
7204 } && test -s conftest.$ac_objext; then
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 ac_lo=`expr '(' $ac_mid ')' + 1`
7213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 ?*) ac_cv_sizeof_signed=$ac_lo;;
7217 '') if test "$ac_cv_type_signed" = yes; then
7218 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7219 See \`config.log' for more details." >&5
7220 echo "$as_me: error: cannot compute sizeof (signed)
7221 See \`config.log' for more details." >&2;}
7222 { (exit 77); exit 77; }; }
7224 ac_cv_sizeof_signed=0
7228 cat >conftest.$ac_ext <<_ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h. */
7234 $ac_includes_default
7235 typedef signed ac__type_sizeof_;
7236 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7237 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7244 FILE *f = fopen ("conftest.val", "w");
7247 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7249 long int i = longval ();
7250 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7252 fprintf (f, "%ld\n", i);
7256 unsigned long int i = ulongval ();
7257 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7259 fprintf (f, "%lu\n", i);
7261 return ferror (f) || fclose (f) != 0;
7267 rm -f conftest$ac_exeext
7268 if { (ac_try="$ac_link"
7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271 *) ac_try_echo=$ac_try;;
7273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7274 (eval "$ac_link") 2>&5
7276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7277 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7278 { (case "(($ac_try" in
7279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280 *) ac_try_echo=$ac_try;;
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283 (eval "$ac_try") 2>&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; }; then
7287 ac_cv_sizeof_signed=`cat conftest.val`
7289 echo "$as_me: program exited with status $ac_status" >&5
7290 echo "$as_me: failed program was:" >&5
7291 sed 's/^/| /' conftest.$ac_ext >&5
7294 if test "$ac_cv_type_signed" = yes; then
7295 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7296 See \`config.log' for more details." >&5
7297 echo "$as_me: error: cannot compute sizeof (signed)
7298 See \`config.log' for more details." >&2;}
7299 { (exit 77); exit 77; }; }
7301 ac_cv_sizeof_signed=0
7304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7308 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7309 echo "${ECHO_T}$ac_cv_sizeof_signed" >&6; }
7313 cat >>confdefs.h <<_ACEOF
7314 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7318 { echo "$as_me:$LINENO: checking for signed long long" >&5
7319 echo $ECHO_N "checking for signed long long... $ECHO_C" >&6; }
7320 if test "${ac_cv_type_signed_long_long+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 cat >conftest.$ac_ext <<_ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 $ac_includes_default
7330 typedef signed long long ac__type_new_;
7334 if ((ac__type_new_ *) 0)
7336 if (sizeof (ac__type_new_))
7342 rm -f conftest.$ac_objext
7343 if { (ac_try="$ac_compile"
7345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346 *) ac_try_echo=$ac_try;;
7348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349 (eval "$ac_compile") 2>conftest.er1
7351 grep -v '^ *+' conftest.er1 >conftest.err
7353 cat conftest.err >&5
7354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355 (exit $ac_status); } && {
7356 test -z "$ac_c_werror_flag" ||
7357 test ! -s conftest.err
7358 } && test -s conftest.$ac_objext; then
7359 ac_cv_type_signed_long_long=yes
7361 echo "$as_me: failed program was:" >&5
7362 sed 's/^/| /' conftest.$ac_ext >&5
7364 ac_cv_type_signed_long_long=no
7367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7369 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_long_long" >&5
7370 echo "${ECHO_T}$ac_cv_type_signed_long_long" >&6; }
7372 # The cast to long int works around a bug in the HP C Compiler
7373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7375 # This bug is HP SR number 8606223364.
7376 { echo "$as_me:$LINENO: checking size of signed long long" >&5
7377 echo $ECHO_N "checking size of signed long long... $ECHO_C" >&6; }
7378 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7379 echo $ECHO_N "(cached) $ECHO_C" >&6
7381 if test "$cross_compiling" = yes; then
7382 # Depending upon the size, compute the lo and hi bounds.
7383 cat >conftest.$ac_ext <<_ACEOF
7386 cat confdefs.h >>conftest.$ac_ext
7387 cat >>conftest.$ac_ext <<_ACEOF
7388 /* end confdefs.h. */
7389 $ac_includes_default
7390 typedef signed long long ac__type_sizeof_;
7394 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7401 rm -f conftest.$ac_objext
7402 if { (ac_try="$ac_compile"
7404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7405 *) ac_try_echo=$ac_try;;
7407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7408 (eval "$ac_compile") 2>conftest.er1
7410 grep -v '^ *+' conftest.er1 >conftest.err
7412 cat conftest.err >&5
7413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7414 (exit $ac_status); } && {
7415 test -z "$ac_c_werror_flag" ||
7416 test ! -s conftest.err
7417 } && test -s conftest.$ac_objext; then
7420 cat >conftest.$ac_ext <<_ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 $ac_includes_default
7427 typedef signed long long ac__type_sizeof_;
7431 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7438 rm -f conftest.$ac_objext
7439 if { (ac_try="$ac_compile"
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7447 grep -v '^ *+' conftest.er1 >conftest.err
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.$ac_objext; then
7455 ac_hi=$ac_mid; break
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7460 ac_lo=`expr $ac_mid + 1`
7461 if test $ac_lo -le $ac_mid; then
7465 ac_mid=`expr 2 '*' $ac_mid + 1`
7468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7474 cat >conftest.$ac_ext <<_ACEOF
7477 cat confdefs.h >>conftest.$ac_ext
7478 cat >>conftest.$ac_ext <<_ACEOF
7479 /* end confdefs.h. */
7480 $ac_includes_default
7481 typedef signed long long ac__type_sizeof_;
7485 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7492 rm -f conftest.$ac_objext
7493 if { (ac_try="$ac_compile"
7495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7496 *) ac_try_echo=$ac_try;;
7498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7499 (eval "$ac_compile") 2>conftest.er1
7501 grep -v '^ *+' conftest.er1 >conftest.err
7503 cat conftest.err >&5
7504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7505 (exit $ac_status); } && {
7506 test -z "$ac_c_werror_flag" ||
7507 test ! -s conftest.err
7508 } && test -s conftest.$ac_objext; then
7511 cat >conftest.$ac_ext <<_ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 $ac_includes_default
7518 typedef signed long long ac__type_sizeof_;
7522 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7529 rm -f conftest.$ac_objext
7530 if { (ac_try="$ac_compile"
7532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7533 *) ac_try_echo=$ac_try;;
7535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7536 (eval "$ac_compile") 2>conftest.er1
7538 grep -v '^ *+' conftest.er1 >conftest.err
7540 cat conftest.err >&5
7541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7542 (exit $ac_status); } && {
7543 test -z "$ac_c_werror_flag" ||
7544 test ! -s conftest.err
7545 } && test -s conftest.$ac_objext; then
7546 ac_lo=$ac_mid; break
7548 echo "$as_me: failed program was:" >&5
7549 sed 's/^/| /' conftest.$ac_ext >&5
7551 ac_hi=`expr '(' $ac_mid ')' - 1`
7552 if test $ac_mid -le $ac_hi; then
7556 ac_mid=`expr 2 '*' $ac_mid`
7559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 echo "$as_me: failed program was:" >&5
7563 sed 's/^/| /' conftest.$ac_ext >&5
7568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7572 # Binary search between lo and hi bounds.
7573 while test "x$ac_lo" != "x$ac_hi"; do
7574 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7575 cat >conftest.$ac_ext <<_ACEOF
7578 cat confdefs.h >>conftest.$ac_ext
7579 cat >>conftest.$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 $ac_includes_default
7582 typedef signed long long ac__type_sizeof_;
7586 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7593 rm -f conftest.$ac_objext
7594 if { (ac_try="$ac_compile"
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_compile") 2>conftest.er1
7602 grep -v '^ *+' conftest.er1 >conftest.err
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } && {
7607 test -z "$ac_c_werror_flag" ||
7608 test ! -s conftest.err
7609 } && test -s conftest.$ac_objext; then
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 ac_lo=`expr '(' $ac_mid ')' + 1`
7618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7621 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7622 '') if test "$ac_cv_type_signed_long_long" = yes; then
7623 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7624 See \`config.log' for more details." >&5
7625 echo "$as_me: error: cannot compute sizeof (signed long long)
7626 See \`config.log' for more details." >&2;}
7627 { (exit 77); exit 77; }; }
7629 ac_cv_sizeof_signed_long_long=0
7633 cat >conftest.$ac_ext <<_ACEOF
7636 cat confdefs.h >>conftest.$ac_ext
7637 cat >>conftest.$ac_ext <<_ACEOF
7638 /* end confdefs.h. */
7639 $ac_includes_default
7640 typedef signed long long ac__type_sizeof_;
7641 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
7642 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
7649 FILE *f = fopen ("conftest.val", "w");
7652 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
7654 long int i = longval ();
7655 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7657 fprintf (f, "%ld\n", i);
7661 unsigned long int i = ulongval ();
7662 if (i != ((long int) (sizeof (ac__type_sizeof_))))
7664 fprintf (f, "%lu\n", i);
7666 return ferror (f) || fclose (f) != 0;
7672 rm -f conftest$ac_exeext
7673 if { (ac_try="$ac_link"
7675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679 (eval "$ac_link") 2>&5
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7683 { (case "(($ac_try" in
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7688 (eval "$ac_try") 2>&5
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; }; then
7692 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7694 echo "$as_me: program exited with status $ac_status" >&5
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7699 if test "$ac_cv_type_signed_long_long" = yes; then
7700 { { echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7701 See \`config.log' for more details." >&5
7702 echo "$as_me: error: cannot compute sizeof (signed long long)
7703 See \`config.log' for more details." >&2;}
7704 { (exit 77); exit 77; }; }
7706 ac_cv_sizeof_signed_long_long=0
7709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7713 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7714 echo "${ECHO_T}$ac_cv_sizeof_signed_long_long" >&6; }
7718 cat >>confdefs.h <<_ACEOF
7719 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7723 { echo "$as_me:$LINENO: checking for void*" >&5
7724 echo $ECHO_N "checking for void*... $ECHO_C" >&6; }
7725 if test "${ac_cv_type_voidp+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 cat >conftest.$ac_ext <<_ACEOF
7731 cat confdefs.h >>conftest.$ac_ext
7732 cat >>conftest.$ac_ext <<_ACEOF
7733 /* end confdefs.h. */
7734 $ac_includes_default
7735 typedef void* ac__type_new_;
7739 if ((ac__type_new_ *) 0)
7741 if (sizeof (ac__type_new_))
7747 rm -f conftest.$ac_objext
7748 if { (ac_try="$ac_compile"
7750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7751 *) ac_try_echo=$ac_try;;
7753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7754 (eval "$ac_compile") 2>conftest.er1
7756 grep -v '^ *+' conftest.er1 >conftest.err
7758 cat conftest.err >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } && {
7761 test -z "$ac_c_werror_flag" ||
7762 test ! -s conftest.err
7763 } && test -s conftest.$ac_objext; then
7764 ac_cv_type_voidp=yes
7766 echo "$as_me: failed program was:" >&5
7767 sed 's/^/| /' conftest.$ac_ext >&5
7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774 { echo "$as_me:$LINENO: result: $ac_cv_type_voidp" >&5
7775 echo "${ECHO_T}$ac_cv_type_voidp" >&6; }
7777 # The cast to long int works around a bug in the HP C Compiler
7778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7780 # This bug is HP SR number 8606223364.
7781 { echo "$as_me:$LINENO: checking size of void*" >&5
7782 echo $ECHO_N "checking size of void*... $ECHO_C" >&6; }
7783 if test "${ac_cv_sizeof_voidp+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 if test "$cross_compiling" = yes; then
7787 # Depending upon the size, compute the lo and hi bounds.
7788 cat >conftest.$ac_ext <<_ACEOF
7791 cat confdefs.h >>conftest.$ac_ext
7792 cat >>conftest.$ac_ext <<_ACEOF
7793 /* end confdefs.h. */
7794 $ac_includes_default
7795 typedef void* ac__type_sizeof_;
7799 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
7806 rm -f conftest.$ac_objext
7807 if { (ac_try="$ac_compile"
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && {
7820 test -z "$ac_c_werror_flag" ||
7821 test ! -s conftest.err
7822 } && test -s conftest.$ac_objext; then
7825 cat >conftest.$ac_ext <<_ACEOF
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7831 $ac_includes_default
7832 typedef void* ac__type_sizeof_;
7836 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7843 rm -f conftest.$ac_objext
7844 if { (ac_try="$ac_compile"
7846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7847 *) ac_try_echo=$ac_try;;
7849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7850 (eval "$ac_compile") 2>conftest.er1
7852 grep -v '^ *+' conftest.er1 >conftest.err
7854 cat conftest.err >&5
7855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7856 (exit $ac_status); } && {
7857 test -z "$ac_c_werror_flag" ||
7858 test ! -s conftest.err
7859 } && test -s conftest.$ac_objext; then
7860 ac_hi=$ac_mid; break
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7865 ac_lo=`expr $ac_mid + 1`
7866 if test $ac_lo -le $ac_mid; then
7870 ac_mid=`expr 2 '*' $ac_mid + 1`
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7879 cat >conftest.$ac_ext <<_ACEOF
7882 cat confdefs.h >>conftest.$ac_ext
7883 cat >>conftest.$ac_ext <<_ACEOF
7884 /* end confdefs.h. */
7885 $ac_includes_default
7886 typedef void* ac__type_sizeof_;
7890 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
7897 rm -f conftest.$ac_objext
7898 if { (ac_try="$ac_compile"
7900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7901 *) ac_try_echo=$ac_try;;
7903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7904 (eval "$ac_compile") 2>conftest.er1
7906 grep -v '^ *+' conftest.er1 >conftest.err
7908 cat conftest.err >&5
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); } && {
7911 test -z "$ac_c_werror_flag" ||
7912 test ! -s conftest.err
7913 } && test -s conftest.$ac_objext; then
7916 cat >conftest.$ac_ext <<_ACEOF
7919 cat confdefs.h >>conftest.$ac_ext
7920 cat >>conftest.$ac_ext <<_ACEOF
7921 /* end confdefs.h. */
7922 $ac_includes_default
7923 typedef void* ac__type_sizeof_;
7927 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
7934 rm -f conftest.$ac_objext
7935 if { (ac_try="$ac_compile"
7937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7938 *) ac_try_echo=$ac_try;;
7940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7941 (eval "$ac_compile") 2>conftest.er1
7943 grep -v '^ *+' conftest.er1 >conftest.err
7945 cat conftest.err >&5
7946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7947 (exit $ac_status); } && {
7948 test -z "$ac_c_werror_flag" ||
7949 test ! -s conftest.err
7950 } && test -s conftest.$ac_objext; then
7951 ac_lo=$ac_mid; break
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7956 ac_hi=`expr '(' $ac_mid ')' - 1`
7957 if test $ac_mid -le $ac_hi; then
7961 ac_mid=`expr 2 '*' $ac_mid`
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 # Binary search between lo and hi bounds.
7978 while test "x$ac_lo" != "x$ac_hi"; do
7979 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7980 cat >conftest.$ac_ext <<_ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 $ac_includes_default
7987 typedef void* ac__type_sizeof_;
7991 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
7998 rm -f conftest.$ac_objext
7999 if { (ac_try="$ac_compile"
8001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005 (eval "$ac_compile") 2>conftest.er1
8007 grep -v '^ *+' conftest.er1 >conftest.err
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } && {
8012 test -z "$ac_c_werror_flag" ||
8013 test ! -s conftest.err
8014 } && test -s conftest.$ac_objext; then
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8020 ac_lo=`expr '(' $ac_mid ')' + 1`
8023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8026 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8027 '') if test "$ac_cv_type_voidp" = yes; then
8028 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8029 See \`config.log' for more details." >&5
8030 echo "$as_me: error: cannot compute sizeof (void*)
8031 See \`config.log' for more details." >&2;}
8032 { (exit 77); exit 77; }; }
8034 ac_cv_sizeof_voidp=0
8038 cat >conftest.$ac_ext <<_ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h. */
8044 $ac_includes_default
8045 typedef void* ac__type_sizeof_;
8046 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8047 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8054 FILE *f = fopen ("conftest.val", "w");
8057 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8059 long int i = longval ();
8060 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8062 fprintf (f, "%ld\n", i);
8066 unsigned long int i = ulongval ();
8067 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8069 fprintf (f, "%lu\n", i);
8071 return ferror (f) || fclose (f) != 0;
8077 rm -f conftest$ac_exeext
8078 if { (ac_try="$ac_link"
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_link") 2>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8088 { (case "(($ac_try" in
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093 (eval "$ac_try") 2>&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); }; }; then
8097 ac_cv_sizeof_voidp=`cat conftest.val`
8099 echo "$as_me: program exited with status $ac_status" >&5
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8104 if test "$ac_cv_type_voidp" = yes; then
8105 { { echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8106 See \`config.log' for more details." >&5
8107 echo "$as_me: error: cannot compute sizeof (void*)
8108 See \`config.log' for more details." >&2;}
8109 { (exit 77); exit 77; }; }
8111 ac_cv_sizeof_voidp=0
8114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8118 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8119 echo "${ECHO_T}$ac_cv_sizeof_voidp" >&6; }
8123 cat >>confdefs.h <<_ACEOF
8124 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8131 # Extract the first word of "freetype-config", so it can be a program name with args.
8132 set dummy freetype-config; ac_word=$2
8133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8135 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 case $FREETYPE_CONFIG in
8140 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8144 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8145 for as_dir in $as_dummy
8148 test -z "$as_dir" && as_dir=.
8149 for ac_exec_ext in '' $ac_executable_extensions; do
8150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8151 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8162 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8163 if test -n "$FREETYPE_CONFIG"; then
8164 { echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8165 echo "${ECHO_T}$FREETYPE_CONFIG" >&6; }
8167 { echo "$as_me:$LINENO: result: no" >&5
8168 echo "${ECHO_T}no" >&6; }
8173 OLDCPPFLAGS="${CPPFLAGS}"
8175 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8176 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8177 else if test -d /usr/include/freetype2; then
8178 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8179 else if test -d /usr/local/include/freetype2; then
8180 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8185 if test "x${FREETYPE_CONFIG}" '=' "x";then
8186 # if we didn't find the freetype-config program, we won't
8187 # know where the libs are expected to be. So just blindly
8188 # try to link against them.
8189 { echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8190 echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6; }
8191 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 ac_check_lib_save_LIBS=$LIBS
8195 LIBS="-lfreetype $LIBS"
8196 cat >conftest.$ac_ext <<_ACEOF
8199 cat confdefs.h >>conftest.$ac_ext
8200 cat >>conftest.$ac_ext <<_ACEOF
8201 /* end confdefs.h. */
8203 /* Override any GCC internal prototype to avoid an error.
8204 Use char because int might match the return type of a GCC
8205 builtin and then its argument prototype would still apply. */
8209 char FT_Init_FreeType ();
8213 return FT_Init_FreeType ();
8218 rm -f conftest.$ac_objext conftest$ac_exeext
8219 if { (ac_try="$ac_link"
8221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8222 *) ac_try_echo=$ac_try;;
8224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8225 (eval "$ac_link") 2>conftest.er1
8227 grep -v '^ *+' conftest.er1 >conftest.err
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } && {
8232 test -z "$ac_c_werror_flag" ||
8233 test ! -s conftest.err
8234 } && test -s conftest$ac_exeext &&
8235 $as_test_x conftest$ac_exeext; then
8236 ac_cv_lib_freetype_FT_Init_FreeType=yes
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8241 ac_cv_lib_freetype_FT_Init_FreeType=no
8244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8245 conftest$ac_exeext conftest.$ac_ext
8246 LIBS=$ac_check_lib_save_LIBS
8248 { echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8249 echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8250 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8257 for ac_header in ft2build.h
8259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 ac_res=`eval echo '${'$as_ac_Header'}'`
8267 { echo "$as_me:$LINENO: result: $ac_res" >&5
8268 echo "${ECHO_T}$ac_res" >&6; }
8270 # Is the header compilable?
8271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8273 cat >conftest.$ac_ext <<_ACEOF
8276 cat confdefs.h >>conftest.$ac_ext
8277 cat >>conftest.$ac_ext <<_ACEOF
8278 /* end confdefs.h. */
8279 $ac_includes_default
8280 #include <$ac_header>
8282 rm -f conftest.$ac_objext
8283 if { (ac_try="$ac_compile"
8285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8286 *) ac_try_echo=$ac_try;;
8288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8289 (eval "$ac_compile") 2>conftest.er1
8291 grep -v '^ *+' conftest.er1 >conftest.err
8293 cat conftest.err >&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } && {
8296 test -z "$ac_c_werror_flag" ||
8297 test ! -s conftest.err
8298 } && test -s conftest.$ac_objext; then
8299 ac_header_compiler=yes
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ac_header_compiler=no
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8309 echo "${ECHO_T}$ac_header_compiler" >&6; }
8311 # Is the header present?
8312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8314 cat >conftest.$ac_ext <<_ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 #include <$ac_header>
8322 if { (ac_try="$ac_cpp conftest.$ac_ext"
8324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8325 *) ac_try_echo=$ac_try;;
8327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8330 grep -v '^ *+' conftest.er1 >conftest.err
8332 cat conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); } >/dev/null && {
8335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8336 test ! -s conftest.err
8338 ac_header_preproc=yes
8340 echo "$as_me: failed program was:" >&5
8341 sed 's/^/| /' conftest.$ac_ext >&5
8343 ac_header_preproc=no
8346 rm -f conftest.err conftest.$ac_ext
8347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8348 echo "${ECHO_T}$ac_header_preproc" >&6; }
8350 # So? What about this header?
8351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8357 ac_header_preproc=yes
8360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8378 echo $ECHO_N "(cached) $ECHO_C" >&6
8380 eval "$as_ac_Header=\$ac_header_preproc"
8382 ac_res=`eval echo '${'$as_ac_Header'}'`
8383 { echo "$as_me:$LINENO: result: $ac_res" >&5
8384 echo "${ECHO_T}$ac_res" >&6; }
8387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8388 cat >>confdefs.h <<_ACEOF
8389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8396 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8398 for ac_header in freetype/freetype.h
8400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8405 echo $ECHO_N "(cached) $ECHO_C" >&6
8407 ac_res=`eval echo '${'$as_ac_Header'}'`
8408 { echo "$as_me:$LINENO: result: $ac_res" >&5
8409 echo "${ECHO_T}$ac_res" >&6; }
8411 # Is the header compilable?
8412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8414 cat >conftest.$ac_ext <<_ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8420 $ac_includes_default
8421 #include <$ac_header>
8423 rm -f conftest.$ac_objext
8424 if { (ac_try="$ac_compile"
8426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8427 *) ac_try_echo=$ac_try;;
8429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8430 (eval "$ac_compile") 2>conftest.er1
8432 grep -v '^ *+' conftest.er1 >conftest.err
8434 cat conftest.err >&5
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); } && {
8437 test -z "$ac_c_werror_flag" ||
8438 test ! -s conftest.err
8439 } && test -s conftest.$ac_objext; then
8440 ac_header_compiler=yes
8442 echo "$as_me: failed program was:" >&5
8443 sed 's/^/| /' conftest.$ac_ext >&5
8445 ac_header_compiler=no
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8450 echo "${ECHO_T}$ac_header_compiler" >&6; }
8452 # Is the header present?
8453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8455 cat >conftest.$ac_ext <<_ACEOF
8458 cat confdefs.h >>conftest.$ac_ext
8459 cat >>conftest.$ac_ext <<_ACEOF
8460 /* end confdefs.h. */
8461 #include <$ac_header>
8463 if { (ac_try="$ac_cpp conftest.$ac_ext"
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8471 grep -v '^ *+' conftest.er1 >conftest.err
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } >/dev/null && {
8476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8479 ac_header_preproc=yes
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8484 ac_header_preproc=no
8487 rm -f conftest.err conftest.$ac_ext
8488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8489 echo "${ECHO_T}$ac_header_preproc" >&6; }
8491 # So? What about this header?
8492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8498 ac_header_preproc=yes
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8519 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 eval "$as_ac_Header=\$ac_header_preproc"
8523 ac_res=`eval echo '${'$as_ac_Header'}'`
8524 { echo "$as_me:$LINENO: result: $ac_res" >&5
8525 echo "${ECHO_T}$ac_res" >&6; }
8528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8529 cat >>confdefs.h <<_ACEOF
8530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8532 HAVE_FREETYPE_FREETYPE_H=1
8539 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8540 "x${FREETYPE_CONFIG}" '!=' "x";then
8541 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8544 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8549 if test "x${HAVE_FREETYPE}" = "x1"; then
8550 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8551 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8553 LIBS="$LIBS -lfreetype"
8556 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8557 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8560 { echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8561 echo $ECHO_N "checking whether we can compile the freetype test program... $ECHO_C" >&6; }
8563 cat > conftest.c << EOF
8564 $HAVE_FT2BUILD_H_DEFINE
8566 #ifdef HAVE_FT2BUILD_H
8567 #include <ft2build.h>
8568 #include FT_FREETYPE_H
8571 #include FT_SFNT_NAMES_H
8572 #include FT_TRUETYPE_IDS_H
8573 #include FT_OUTLINE_H
8575 #include <freetype/freetype.h>
8576 #include <freetype/ftglyph.h>
8577 #include <freetype/ftsizes.h>
8578 #include <freetype/ftsnames.h>
8579 #include <freetype/ttnameid.h>
8580 #include <freetype/ftoutln.h>
8585 FT_Library ftlibrary;
8597 FT_Init_FreeType(&ftlibrary);
8598 FT_New_Face(ftlibrary, "filename", 0, &face);
8599 i = face->num_glyphs - 1;
8600 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8601 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8602 FT_Get_Postscript_Name(face);
8603 FT_Get_Char_Index(face, 33);
8604 FT_Get_First_Char(face, &i);
8605 FT_Get_Next_Char(face, 33, &i);
8606 if(FT_HAS_GLYPH_NAMES(face)) {
8607 FT_Get_Glyph_Name(face, 33, name, 127);
8609 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8610 FT_Get_Glyph(face->glyph, &glyph);
8611 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8612 FT_Done_Glyph(glyph);
8614 FT_Done_FreeType(ftlibrary);
8619 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8620 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8621 { echo "$as_me:$LINENO: result: yes" >&5
8622 echo "${ECHO_T}yes" >&6; }
8624 cat >>confdefs.h <<\_ACEOF
8625 #define HAVE_FREETYPE 1
8629 cat >>confdefs.h <<\_ACEOF
8630 #define HAVE_FREETYPE_FREETYPE_H 1
8634 cat >>confdefs.h <<\_ACEOF
8635 #define USE_FREETYPE 1
8639 echo "configure: failed program was:" >&5
8642 { echo "$as_me:$LINENO: result: no" >&5
8643 echo "${ECHO_T}no" >&6; }
8648 # if the above didn't work out, reset all changes to the compiler variables.
8649 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8650 CPPFLAGS=$OLDCPPFLAGS
8656 OLDCPPFLAGS="${CPPFLAGS}"
8659 if test -d /usr/include/fontconfig; then
8660 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8663 { echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8664 echo $ECHO_N "checking for FcInit in -lfontconfig... $ECHO_C" >&6; }
8665 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 ac_check_lib_save_LIBS=$LIBS
8669 LIBS="-lfontconfig $LIBS"
8670 cat >conftest.$ac_ext <<_ACEOF
8673 cat confdefs.h >>conftest.$ac_ext
8674 cat >>conftest.$ac_ext <<_ACEOF
8675 /* end confdefs.h. */
8677 /* Override any GCC internal prototype to avoid an error.
8678 Use char because int might match the return type of a GCC
8679 builtin and then its argument prototype would still apply. */
8692 rm -f conftest.$ac_objext conftest$ac_exeext
8693 if { (ac_try="$ac_link"
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_link") 2>conftest.er1
8701 grep -v '^ *+' conftest.er1 >conftest.err
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } && {
8706 test -z "$ac_c_werror_flag" ||
8707 test ! -s conftest.err
8708 } && test -s conftest$ac_exeext &&
8709 $as_test_x conftest$ac_exeext; then
8710 ac_cv_lib_fontconfig_FcInit=yes
8712 echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8715 ac_cv_lib_fontconfig_FcInit=no
8718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8719 conftest$ac_exeext conftest.$ac_ext
8720 LIBS=$ac_check_lib_save_LIBS
8722 { echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8723 echo "${ECHO_T}$ac_cv_lib_fontconfig_FcInit" >&6; }
8724 if test $ac_cv_lib_fontconfig_FcInit = yes; then
8725 HAVE_LIB_FONTCONFIG=1
8729 for ac_header in fontconfig.h
8731 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 ac_res=`eval echo '${'$as_ac_Header'}'`
8739 { echo "$as_me:$LINENO: result: $ac_res" >&5
8740 echo "${ECHO_T}$ac_res" >&6; }
8742 # Is the header compilable?
8743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8745 cat >conftest.$ac_ext <<_ACEOF
8748 cat confdefs.h >>conftest.$ac_ext
8749 cat >>conftest.$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8751 $ac_includes_default
8752 #include <$ac_header>
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_compile") 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } && {
8768 test -z "$ac_c_werror_flag" ||
8769 test ! -s conftest.err
8770 } && test -s conftest.$ac_objext; then
8771 ac_header_compiler=yes
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ac_header_compiler=no
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8781 echo "${ECHO_T}$ac_header_compiler" >&6; }
8783 # Is the header present?
8784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8786 cat >conftest.$ac_ext <<_ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8792 #include <$ac_header>
8794 if { (ac_try="$ac_cpp conftest.$ac_ext"
8796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8802 grep -v '^ *+' conftest.er1 >conftest.err
8804 cat conftest.err >&5
8805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } >/dev/null && {
8807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8810 ac_header_preproc=yes
8812 echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8815 ac_header_preproc=no
8818 rm -f conftest.err conftest.$ac_ext
8819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8820 echo "${ECHO_T}$ac_header_preproc" >&6; }
8822 # So? What about this header?
8823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8829 ac_header_preproc=yes
8832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8849 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8850 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 eval "$as_ac_Header=\$ac_header_preproc"
8854 ac_res=`eval echo '${'$as_ac_Header'}'`
8855 { echo "$as_me:$LINENO: result: $ac_res" >&5
8856 echo "${ECHO_T}$ac_res" >&6; }
8859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8860 cat >>confdefs.h <<_ACEOF
8861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8869 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8870 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8875 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8876 LIBS="$LIBS -lfontconfig"
8877 { echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8878 echo $ECHO_N "checking whether we can compile the fontconfig test program... $ECHO_C" >&6; }
8880 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8881 #move freetype library to the end of libraries, otherwise fontconfig
8883 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8886 cat > conftest.c << EOF
8888 #include <fontconfig.h>
8892 FcPattern *pattern, *match;
8895 char*s1="abc",*s2="ABC";
8898 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8899 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8900 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8902 FcConfig*c = FcConfigCreate();
8903 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8904 FcConfigBuildFonts(c);
8905 FcConfigSetCurrent(c);
8907 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
8908 FcFontSetDestroy(set);
8910 FcConfigSubstitute(0, pattern, FcMatchPattern);
8911 FcDefaultSubstitute(pattern);
8912 match = FcFontMatch(0, pattern, &result);
8913 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8914 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8915 FcPatternPrint(pattern);
8916 FcPatternDestroy(pattern);
8917 FcPatternDestroy(match);
8923 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8924 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8925 { echo "$as_me:$LINENO: result: yes" >&5
8926 echo "${ECHO_T}yes" >&6; }
8928 cat >>confdefs.h <<\_ACEOF
8929 #define HAVE_FONTCONFIG 1
8933 echo "configure: failed program was:" >&5
8936 { echo "$as_me:$LINENO: result: no" >&5
8937 echo "${ECHO_T}no" >&6; }
8942 # if the above didn't work out, reset all changes to the compiler variables.
8943 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
8944 CPPFLAGS=$OLDCPPFLAGS
8950 OLDCPPFLAGS="${CPPFLAGS}"
8954 { echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
8955 echo $ECHO_N "checking for glBegin in -lGL... $ECHO_C" >&6; }
8956 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
8957 echo $ECHO_N "(cached) $ECHO_C" >&6
8959 ac_check_lib_save_LIBS=$LIBS
8961 cat >conftest.$ac_ext <<_ACEOF
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8968 /* Override any GCC internal prototype to avoid an error.
8969 Use char because int might match the return type of a GCC
8970 builtin and then its argument prototype would still apply. */
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (ac_try="$ac_link"
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_link") 2>conftest.er1
8992 grep -v '^ *+' conftest.er1 >conftest.err
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } && {
8997 test -z "$ac_c_werror_flag" ||
8998 test ! -s conftest.err
8999 } && test -s conftest$ac_exeext &&
9000 $as_test_x conftest$ac_exeext; then
9001 ac_cv_lib_GL_glBegin=yes
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9006 ac_cv_lib_GL_glBegin=no
9009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9010 conftest$ac_exeext conftest.$ac_ext
9011 LIBS=$ac_check_lib_save_LIBS
9013 { echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
9014 echo "${ECHO_T}$ac_cv_lib_GL_glBegin" >&6; }
9015 if test $ac_cv_lib_GL_glBegin = yes; then
9016 cat >>confdefs.h <<_ACEOF
9017 #define HAVE_LIBGL 1
9025 { echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
9026 echo $ECHO_N "checking for gluBeginSurface in -lGLU... $ECHO_C" >&6; }
9027 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 ac_check_lib_save_LIBS=$LIBS
9032 cat >conftest.$ac_ext <<_ACEOF
9035 cat confdefs.h >>conftest.$ac_ext
9036 cat >>conftest.$ac_ext <<_ACEOF
9037 /* end confdefs.h. */
9039 /* Override any GCC internal prototype to avoid an error.
9040 Use char because int might match the return type of a GCC
9041 builtin and then its argument prototype would still apply. */
9045 char gluBeginSurface ();
9049 return gluBeginSurface ();
9054 rm -f conftest.$ac_objext conftest$ac_exeext
9055 if { (ac_try="$ac_link"
9057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061 (eval "$ac_link") 2>conftest.er1
9063 grep -v '^ *+' conftest.er1 >conftest.err
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest$ac_exeext &&
9071 $as_test_x conftest$ac_exeext; then
9072 ac_cv_lib_GLU_gluBeginSurface=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 ac_cv_lib_GLU_gluBeginSurface=no
9080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9081 conftest$ac_exeext conftest.$ac_ext
9082 LIBS=$ac_check_lib_save_LIBS
9084 { echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
9085 echo "${ECHO_T}$ac_cv_lib_GLU_gluBeginSurface" >&6; }
9086 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
9087 cat >>confdefs.h <<_ACEOF
9088 #define HAVE_LIBGLU 1
9096 { echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
9097 echo $ECHO_N "checking for glutInit in -lglut... $ECHO_C" >&6; }
9098 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9101 ac_check_lib_save_LIBS=$LIBS
9103 cat >conftest.$ac_ext <<_ACEOF
9106 cat confdefs.h >>conftest.$ac_ext
9107 cat >>conftest.$ac_ext <<_ACEOF
9108 /* end confdefs.h. */
9110 /* Override any GCC internal prototype to avoid an error.
9111 Use char because int might match the return type of a GCC
9112 builtin and then its argument prototype would still apply. */
9125 rm -f conftest.$ac_objext conftest$ac_exeext
9126 if { (ac_try="$ac_link"
9128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9129 *) ac_try_echo=$ac_try;;
9131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9132 (eval "$ac_link") 2>conftest.er1
9134 grep -v '^ *+' conftest.er1 >conftest.err
9136 cat conftest.err >&5
9137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9138 (exit $ac_status); } && {
9139 test -z "$ac_c_werror_flag" ||
9140 test ! -s conftest.err
9141 } && test -s conftest$ac_exeext &&
9142 $as_test_x conftest$ac_exeext; then
9143 ac_cv_lib_glut_glutInit=yes
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9148 ac_cv_lib_glut_glutInit=no
9151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9152 conftest$ac_exeext conftest.$ac_ext
9153 LIBS=$ac_check_lib_save_LIBS
9155 { echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
9156 echo "${ECHO_T}$ac_cv_lib_glut_glutInit" >&6; }
9157 if test $ac_cv_lib_glut_glutInit = yes; then
9158 cat >>confdefs.h <<_ACEOF
9159 #define HAVE_LIBGLUT 1
9168 for ac_header in GL/gl.h GL/glut.h
9170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9175 echo $ECHO_N "(cached) $ECHO_C" >&6
9177 ac_res=`eval echo '${'$as_ac_Header'}'`
9178 { echo "$as_me:$LINENO: result: $ac_res" >&5
9179 echo "${ECHO_T}$ac_res" >&6; }
9181 # Is the header compilable?
9182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9184 cat >conftest.$ac_ext <<_ACEOF
9187 cat confdefs.h >>conftest.$ac_ext
9188 cat >>conftest.$ac_ext <<_ACEOF
9189 /* end confdefs.h. */
9190 $ac_includes_default
9191 #include <$ac_header>
9193 rm -f conftest.$ac_objext
9194 if { (ac_try="$ac_compile"
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_compile") 2>conftest.er1
9202 grep -v '^ *+' conftest.er1 >conftest.err
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } && {
9207 test -z "$ac_c_werror_flag" ||
9208 test ! -s conftest.err
9209 } && test -s conftest.$ac_objext; then
9210 ac_header_compiler=yes
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9215 ac_header_compiler=no
9218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9220 echo "${ECHO_T}$ac_header_compiler" >&6; }
9222 # Is the header present?
9223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9225 cat >conftest.$ac_ext <<_ACEOF
9228 cat confdefs.h >>conftest.$ac_ext
9229 cat >>conftest.$ac_ext <<_ACEOF
9230 /* end confdefs.h. */
9231 #include <$ac_header>
9233 if { (ac_try="$ac_cpp conftest.$ac_ext"
9235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9236 *) ac_try_echo=$ac_try;;
9238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9241 grep -v '^ *+' conftest.er1 >conftest.err
9243 cat conftest.err >&5
9244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9245 (exit $ac_status); } >/dev/null && {
9246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9247 test ! -s conftest.err
9249 ac_header_preproc=yes
9251 echo "$as_me: failed program was:" >&5
9252 sed 's/^/| /' conftest.$ac_ext >&5
9254 ac_header_preproc=no
9257 rm -f conftest.err conftest.$ac_ext
9258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9259 echo "${ECHO_T}$ac_header_preproc" >&6; }
9261 # So? What about this header?
9262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9268 ac_header_preproc=yes
9271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9289 echo $ECHO_N "(cached) $ECHO_C" >&6
9291 eval "$as_ac_Header=\$ac_header_preproc"
9293 ac_res=`eval echo '${'$as_ac_Header'}'`
9294 { echo "$as_me:$LINENO: result: $ac_res" >&5
9295 echo "${ECHO_T}$ac_res" >&6; }
9298 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9299 cat >>confdefs.h <<_ACEOF
9300 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9308 cat > conftest.c << EOF
9311 #include <GL/glut.h>
9313 int main(int argc, char*argv)
9315 glutInit(&argc, argv);
9316 glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
9317 glutInitWindowSize(320,200);
9318 glutInitWindowPosition(0,0);
9319 glutCreateWindow("main");
9320 glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
9321 glShadeModel(GL_SMOOTH);
9322 glEnable (GL_LINE_SMOOTH);
9323 glEnable (GL_POLYGON_SMOOTH);
9324 glEnable (GL_BLEND);
9325 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9326 glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
9327 glHint (GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
9331 { echo "$as_me:$LINENO: checking whether we can compile the opengl test program" >&5
9332 echo $ECHO_N "checking whether we can compile the opengl test program... $ECHO_C" >&6; }
9334 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9335 if { (eval echo opengl.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9336 { echo "$as_me:$LINENO: result: yes" >&5
9337 echo "${ECHO_T}yes" >&6; }
9340 cat >>confdefs.h <<\_ACEOF
9341 #define HAVE_OPENGL 1
9345 echo "configure: failed program was:" >&5
9348 { echo "$as_me:$LINENO: result: no" >&5
9349 echo "${ECHO_T}no" >&6; }
9353 # if the above didn't work out, reset all changes to the compiler variables.
9354 if test "x${HAVE_OPENGL}" "!=" "x1"; then
9355 CPPFLAGS=$OLDCPPFLAGS
9359 if test "$HAVE_OPENGL";then
9360 DEVICE_OPENGL='devices/opengl.$(O)'
9366 if test "x${DISABLE_LAME}" = "xtrue"; then
9367 echo "*" Disabling lame support...
9369 # old lame code at lib/lame
9370 if test -f lib/lame/Makefile.in; then
9371 lame_in_source='$(lame_objects)'
9372 lame_makefile="lib/lame/Makefile"
9373 CPPFLAGS="$CPPFLAGS -Ilame"
9375 cat >>confdefs.h <<\_ACEOF
9380 if test -d /usr/include/lame; then
9381 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9383 if test -d /usr/local/include/lame; then
9384 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9388 { echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9389 echo $ECHO_N "checking for lame_init in -lmp3lame... $ECHO_C" >&6; }
9390 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 ac_check_lib_save_LIBS=$LIBS
9394 LIBS="-lmp3lame $LIBS"
9395 cat >conftest.$ac_ext <<_ACEOF
9398 cat confdefs.h >>conftest.$ac_ext
9399 cat >>conftest.$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9402 /* Override any GCC internal prototype to avoid an error.
9403 Use char because int might match the return type of a GCC
9404 builtin and then its argument prototype would still apply. */
9412 return lame_init ();
9417 rm -f conftest.$ac_objext conftest$ac_exeext
9418 if { (ac_try="$ac_link"
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_link") 2>conftest.er1
9426 grep -v '^ *+' conftest.er1 >conftest.err
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } && {
9431 test -z "$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 } && test -s conftest$ac_exeext &&
9434 $as_test_x conftest$ac_exeext; then
9435 ac_cv_lib_mp3lame_lame_init=yes
9437 echo "$as_me: failed program was:" >&5
9438 sed 's/^/| /' conftest.$ac_ext >&5
9440 ac_cv_lib_mp3lame_lame_init=no
9443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9444 conftest$ac_exeext conftest.$ac_ext
9445 LIBS=$ac_check_lib_save_LIBS
9447 { echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9448 echo "${ECHO_T}$ac_cv_lib_mp3lame_lame_init" >&6; }
9449 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9450 cat >>confdefs.h <<_ACEOF
9451 #define HAVE_LIBMP3LAME 1
9454 LIBS="-lmp3lame $LIBS"
9461 for ac_header in lame.h
9463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9468 echo $ECHO_N "(cached) $ECHO_C" >&6
9470 ac_res=`eval echo '${'$as_ac_Header'}'`
9471 { echo "$as_me:$LINENO: result: $ac_res" >&5
9472 echo "${ECHO_T}$ac_res" >&6; }
9474 # Is the header compilable?
9475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9477 cat >conftest.$ac_ext <<_ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 $ac_includes_default
9484 #include <$ac_header>
9486 rm -f conftest.$ac_objext
9487 if { (ac_try="$ac_compile"
9489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9490 *) ac_try_echo=$ac_try;;
9492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9493 (eval "$ac_compile") 2>conftest.er1
9495 grep -v '^ *+' conftest.er1 >conftest.err
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } && {
9500 test -z "$ac_c_werror_flag" ||
9501 test ! -s conftest.err
9502 } && test -s conftest.$ac_objext; then
9503 ac_header_compiler=yes
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9508 ac_header_compiler=no
9511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9513 echo "${ECHO_T}$ac_header_compiler" >&6; }
9515 # Is the header present?
9516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9518 cat >conftest.$ac_ext <<_ACEOF
9521 cat confdefs.h >>conftest.$ac_ext
9522 cat >>conftest.$ac_ext <<_ACEOF
9523 /* end confdefs.h. */
9524 #include <$ac_header>
9526 if { (ac_try="$ac_cpp conftest.$ac_ext"
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9534 grep -v '^ *+' conftest.er1 >conftest.err
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } >/dev/null && {
9539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9542 ac_header_preproc=yes
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9547 ac_header_preproc=no
9550 rm -f conftest.err conftest.$ac_ext
9551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9552 echo "${ECHO_T}$ac_header_preproc" >&6; }
9554 # So? What about this header?
9555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9561 ac_header_preproc=yes
9564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9582 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 eval "$as_ac_Header=\$ac_header_preproc"
9586 ac_res=`eval echo '${'$as_ac_Header'}'`
9587 { echo "$as_me:$LINENO: result: $ac_res" >&5
9588 echo "${ECHO_T}$ac_res" >&6; }
9591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9592 cat >>confdefs.h <<_ACEOF
9593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9600 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$ac_cv_header_lame_h" "!=" "x";then
9601 cat >>confdefs.h <<\_ACEOF
9610 art_in_source='$(art_objects)'
9612 cat >>confdefs.h <<\_ACEOF
9613 #define INTERNAL_LIBART 1
9617 if test "x$EXTERNAL_LIBART" = "xtrue"; then
9621 { echo "$as_me:$LINENO: checking for LIBART" >&5
9622 echo $ECHO_N "checking for LIBART... $ECHO_C" >&6; }
9624 if test -n "$PKG_CONFIG"; then
9625 if test -n "$LIBART_CFLAGS"; then
9626 pkg_cv_LIBART_CFLAGS="$LIBART_CFLAGS"
9628 if test -n "$PKG_CONFIG" && \
9629 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libart-2.0\"") >&5
9630 ($PKG_CONFIG --exists --print-errors "libart-2.0") 2>&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 (exit $ac_status); }; then
9634 pkg_cv_LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0" 2>/dev/null`
9642 if test -n "$PKG_CONFIG"; then
9643 if test -n "$LIBART_LIBS"; then
9644 pkg_cv_LIBART_LIBS="$LIBART_LIBS"
9646 if test -n "$PKG_CONFIG" && \
9647 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libart-2.0\"") >&5
9648 ($PKG_CONFIG --exists --print-errors "libart-2.0") 2>&5
9650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9651 (exit $ac_status); }; then
9652 pkg_cv_LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0" 2>/dev/null`
9663 if test $pkg_failed = yes; then
9665 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9666 _pkg_short_errors_supported=yes
9668 _pkg_short_errors_supported=no
9670 if test $_pkg_short_errors_supported = yes; then
9671 LIBART_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libart-2.0"`
9673 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0"`
9675 # Put the nasty error message in config.log where it belongs
9676 echo "$LIBART_PKG_ERRORS" >&5
9678 { echo "$as_me:$LINENO: result: no" >&5
9679 echo "${ECHO_T}no" >&6; }
9680 libart_pkgconfig_libart=no
9681 elif test $pkg_failed = untried; then
9682 libart_pkgconfig_libart=no
9684 LIBART_CFLAGS=$pkg_cv_LIBART_CFLAGS
9685 LIBART_LIBS=$pkg_cv_LIBART_LIBS
9686 { echo "$as_me:$LINENO: result: yes" >&5
9687 echo "${ECHO_T}yes" >&6; }
9690 if test "x$libart_pkgconfig_libart" = "xno"; then
9692 for ac_header in libart_lgpl/libart.h
9694 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9696 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9699 echo $ECHO_N "(cached) $ECHO_C" >&6
9701 ac_res=`eval echo '${'$as_ac_Header'}'`
9702 { echo "$as_me:$LINENO: result: $ac_res" >&5
9703 echo "${ECHO_T}$ac_res" >&6; }
9705 # Is the header compilable?
9706 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9707 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9708 cat >conftest.$ac_ext <<_ACEOF
9711 cat confdefs.h >>conftest.$ac_ext
9712 cat >>conftest.$ac_ext <<_ACEOF
9713 /* end confdefs.h. */
9714 $ac_includes_default
9715 #include <$ac_header>
9717 rm -f conftest.$ac_objext
9718 if { (ac_try="$ac_compile"
9720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721 *) ac_try_echo=$ac_try;;
9723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9724 (eval "$ac_compile") 2>conftest.er1
9726 grep -v '^ *+' conftest.er1 >conftest.err
9728 cat conftest.err >&5
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } && {
9731 test -z "$ac_c_werror_flag" ||
9732 test ! -s conftest.err
9733 } && test -s conftest.$ac_objext; then
9734 ac_header_compiler=yes
9736 echo "$as_me: failed program was:" >&5
9737 sed 's/^/| /' conftest.$ac_ext >&5
9739 ac_header_compiler=no
9742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9744 echo "${ECHO_T}$ac_header_compiler" >&6; }
9746 # Is the header present?
9747 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9748 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9749 cat >conftest.$ac_ext <<_ACEOF
9752 cat confdefs.h >>conftest.$ac_ext
9753 cat >>conftest.$ac_ext <<_ACEOF
9754 /* end confdefs.h. */
9755 #include <$ac_header>
9757 if { (ac_try="$ac_cpp conftest.$ac_ext"
9759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9760 *) ac_try_echo=$ac_try;;
9762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9765 grep -v '^ *+' conftest.er1 >conftest.err
9767 cat conftest.err >&5
9768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } >/dev/null && {
9770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9771 test ! -s conftest.err
9773 ac_header_preproc=yes
9775 echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9778 ac_header_preproc=no
9781 rm -f conftest.err conftest.$ac_ext
9782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9783 echo "${ECHO_T}$ac_header_preproc" >&6; }
9785 # So? What about this header?
9786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9788 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9789 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9791 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9792 ac_header_preproc=yes
9795 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9796 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9798 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9800 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9802 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9804 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9805 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9806 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9810 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9811 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9813 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 eval "$as_ac_Header=\$ac_header_preproc"
9817 ac_res=`eval echo '${'$as_ac_Header'}'`
9818 { echo "$as_me:$LINENO: result: $ac_res" >&5
9819 echo "${ECHO_T}$ac_res" >&6; }
9822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9823 cat >>confdefs.h <<_ACEOF
9824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9828 { echo "$as_me:$LINENO: checking for art_new in -lart_lgpl_2" >&5
9829 echo $ECHO_N "checking for art_new in -lart_lgpl_2... $ECHO_C" >&6; }
9830 if test "${ac_cv_lib_art_lgpl_2_art_new+set}" = set; then
9831 echo $ECHO_N "(cached) $ECHO_C" >&6
9833 ac_check_lib_save_LIBS=$LIBS
9834 LIBS="-lart_lgpl_2 $LIBS"
9835 cat >conftest.$ac_ext <<_ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9842 /* Override any GCC internal prototype to avoid an error.
9843 Use char because int might match the return type of a GCC
9844 builtin and then its argument prototype would still apply. */
9857 rm -f conftest.$ac_objext conftest$ac_exeext
9858 if { (ac_try="$ac_link"
9860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9861 *) ac_try_echo=$ac_try;;
9863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9864 (eval "$ac_link") 2>conftest.er1
9866 grep -v '^ *+' conftest.er1 >conftest.err
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } && {
9871 test -z "$ac_c_werror_flag" ||
9872 test ! -s conftest.err
9873 } && test -s conftest$ac_exeext &&
9874 $as_test_x conftest$ac_exeext; then
9875 ac_cv_lib_art_lgpl_2_art_new=yes
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9880 ac_cv_lib_art_lgpl_2_art_new=no
9883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9884 conftest$ac_exeext conftest.$ac_ext
9885 LIBS=$ac_check_lib_save_LIBS
9887 { echo "$as_me:$LINENO: result: $ac_cv_lib_art_lgpl_2_art_new" >&5
9888 echo "${ECHO_T}$ac_cv_lib_art_lgpl_2_art_new" >&6; }
9889 if test $ac_cv_lib_art_lgpl_2_art_new = yes; then
9890 cat >>confdefs.h <<_ACEOF
9891 #define HAVE_LIBART_LGPL_2 1
9894 LIBS="-lart_lgpl_2 $LIBS"
9900 { { echo "$as_me:$LINENO: error: No libart library found. This library is required." >&5
9901 echo "$as_me: error: No libart library found. This library is required." >&2;}
9902 { (exit 1); exit 1; }; }
9908 CPPFLAGS="$CPPFLAGS $LIBART_CFLAGS"
9909 cat >>confdefs.h <<\_ACEOF
9910 #define INTERNAL_LIBART 0
9913 LIBS="$LIBS $LIBART_LIBS"
9918 xpdf_in_source='$(xpdf_objects)'
9919 splash_in_source='$(splash_objects)'
9921 if test "x$USE_POPPLER" = "xtrue"; then
9925 cat >>confdefs.h <<\_ACEOF
9926 #define HAVE_POPPLER 1
9931 { echo "$as_me:$LINENO: checking for POPPLER" >&5
9932 echo $ECHO_N "checking for POPPLER... $ECHO_C" >&6; }
9934 if test -n "$PKG_CONFIG"; then
9935 if test -n "$POPPLER_CFLAGS"; then
9936 pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
9938 if test -n "$PKG_CONFIG" && \
9939 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\"") >&5
9940 ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; then
9944 pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler poppler-splash" 2>/dev/null`
9952 if test -n "$PKG_CONFIG"; then
9953 if test -n "$POPPLER_LIBS"; then
9954 pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
9956 if test -n "$PKG_CONFIG" && \
9957 { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\"") >&5
9958 ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); }; then
9962 pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler poppler-splash" 2>/dev/null`
9973 if test $pkg_failed = yes; then
9975 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9976 _pkg_short_errors_supported=yes
9978 _pkg_short_errors_supported=no
9980 if test $_pkg_short_errors_supported = yes; then
9981 POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "poppler poppler-splash"`
9983 POPPLER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "poppler poppler-splash"`
9985 # Put the nasty error message in config.log where it belongs
9986 echo "$POPPLER_PKG_ERRORS" >&5
9988 { echo "$as_me:$LINENO: result: no" >&5
9989 echo "${ECHO_T}no" >&6; }
9990 poppler_pkgconfig=no
9991 elif test $pkg_failed = untried; then
9992 poppler_pkgconfig=no
9994 POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
9995 POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
9996 { echo "$as_me:$LINENO: result: yes" >&5
9997 echo "${ECHO_T}yes" >&6; }
10000 if test "x$poppler_pkgconfig" = "xno"; then
10002 ac_cpp='$CXXCPP $CPPFLAGS'
10003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10009 ac_cpp='$CXXCPP $CPPFLAGS'
10010 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10011 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10012 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10013 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10014 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
10015 if test -z "$CXXCPP"; then
10016 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 # Double quotes because CXXCPP needs to be expanded
10020 for CXXCPP in "$CXX -E" "/lib/cpp"
10022 ac_preproc_ok=false
10023 for ac_cxx_preproc_warn_flag in '' yes
10025 # Use a header file that comes with gcc, so configuring glibc
10026 # with a fresh cross-compiler works.
10027 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10028 # <limits.h> exists even on freestanding compilers.
10029 # On the NeXT, cc -E runs the code through the compiler's parser,
10030 # not just through cpp. "Syntax error" is here to catch this case.
10031 cat >conftest.$ac_ext <<_ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */
10038 # include <limits.h>
10040 # include <assert.h>
10044 if { (ac_try="$ac_cpp conftest.$ac_ext"
10045 case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10052 grep -v '^ *+' conftest.er1 >conftest.err
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } >/dev/null && {
10057 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10058 test ! -s conftest.err
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10065 # Broken: fails on valid input.
10069 rm -f conftest.err conftest.$ac_ext
10071 # OK, works on sane cases. Now check whether nonexistent headers
10072 # can be detected and how.
10073 cat >conftest.$ac_ext <<_ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10079 #include <ac_nonexistent.h>
10081 if { (ac_try="$ac_cpp conftest.$ac_ext"
10082 case "(($ac_try" in
10083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084 *) ac_try_echo=$ac_try;;
10086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10089 grep -v '^ *+' conftest.er1 >conftest.err
10091 cat conftest.err >&5
10092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093 (exit $ac_status); } >/dev/null && {
10094 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10095 test ! -s conftest.err
10097 # Broken: success on invalid input.
10100 echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10103 # Passes both tests.
10108 rm -f conftest.err conftest.$ac_ext
10111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10112 rm -f conftest.err conftest.$ac_ext
10113 if $ac_preproc_ok; then
10118 ac_cv_prog_CXXCPP=$CXXCPP
10121 CXXCPP=$ac_cv_prog_CXXCPP
10123 ac_cv_prog_CXXCPP=$CXXCPP
10125 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
10126 echo "${ECHO_T}$CXXCPP" >&6; }
10127 ac_preproc_ok=false
10128 for ac_cxx_preproc_warn_flag in '' yes
10130 # Use a header file that comes with gcc, so configuring glibc
10131 # with a fresh cross-compiler works.
10132 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10133 # <limits.h> exists even on freestanding compilers.
10134 # On the NeXT, cc -E runs the code through the compiler's parser,
10135 # not just through cpp. "Syntax error" is here to catch this case.
10136 cat >conftest.$ac_ext <<_ACEOF
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10143 # include <limits.h>
10145 # include <assert.h>
10149 if { (ac_try="$ac_cpp conftest.$ac_ext"
10150 case "(($ac_try" in
10151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10152 *) ac_try_echo=$ac_try;;
10154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10157 grep -v '^ *+' conftest.er1 >conftest.err
10159 cat conftest.err >&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } >/dev/null && {
10162 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10163 test ! -s conftest.err
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 # Broken: fails on valid input.
10174 rm -f conftest.err conftest.$ac_ext
10176 # OK, works on sane cases. Now check whether nonexistent headers
10177 # can be detected and how.
10178 cat >conftest.$ac_ext <<_ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10184 #include <ac_nonexistent.h>
10186 if { (ac_try="$ac_cpp conftest.$ac_ext"
10187 case "(($ac_try" in
10188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10189 *) ac_try_echo=$ac_try;;
10191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10194 grep -v '^ *+' conftest.er1 >conftest.err
10196 cat conftest.err >&5
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); } >/dev/null && {
10199 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10200 test ! -s conftest.err
10202 # Broken: success on invalid input.
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10208 # Passes both tests.
10213 rm -f conftest.err conftest.$ac_ext
10216 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10217 rm -f conftest.err conftest.$ac_ext
10218 if $ac_preproc_ok; then
10221 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10222 See \`config.log' for more details." >&5
10223 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10224 See \`config.log' for more details." >&2;}
10225 { (exit 1); exit 1; }; }
10229 ac_cpp='$CXXCPP $CPPFLAGS'
10230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10236 for ac_header in OutputDev.h
10238 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 ac_res=`eval echo '${'$as_ac_Header'}'`
10246 { echo "$as_me:$LINENO: result: $ac_res" >&5
10247 echo "${ECHO_T}$ac_res" >&6; }
10249 # Is the header compilable?
10250 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10251 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10252 cat >conftest.$ac_ext <<_ACEOF
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 $ac_includes_default
10259 #include <$ac_header>
10261 rm -f conftest.$ac_objext
10262 if { (ac_try="$ac_compile"
10263 case "(($ac_try" in
10264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10265 *) ac_try_echo=$ac_try;;
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_compile") 2>conftest.er1
10270 grep -v '^ *+' conftest.er1 >conftest.err
10272 cat conftest.err >&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && {
10275 test -z "$ac_cxx_werror_flag" ||
10276 test ! -s conftest.err
10277 } && test -s conftest.$ac_objext; then
10278 ac_header_compiler=yes
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10283 ac_header_compiler=no
10286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10287 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10288 echo "${ECHO_T}$ac_header_compiler" >&6; }
10290 # Is the header present?
10291 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10292 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10293 cat >conftest.$ac_ext <<_ACEOF
10296 cat confdefs.h >>conftest.$ac_ext
10297 cat >>conftest.$ac_ext <<_ACEOF
10298 /* end confdefs.h. */
10299 #include <$ac_header>
10301 if { (ac_try="$ac_cpp conftest.$ac_ext"
10302 case "(($ac_try" in
10303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10304 *) ac_try_echo=$ac_try;;
10306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10309 grep -v '^ *+' conftest.er1 >conftest.err
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } >/dev/null && {
10314 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10315 test ! -s conftest.err
10317 ac_header_preproc=yes
10319 echo "$as_me: failed program was:" >&5
10320 sed 's/^/| /' conftest.$ac_ext >&5
10322 ac_header_preproc=no
10325 rm -f conftest.err conftest.$ac_ext
10326 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10327 echo "${ECHO_T}$ac_header_preproc" >&6; }
10329 # So? What about this header?
10330 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10332 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10333 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10335 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10336 ac_header_preproc=yes
10339 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10340 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10341 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10342 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10343 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10344 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10345 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10346 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10348 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10349 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10350 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 eval "$as_ac_Header=\$ac_header_preproc"
10361 ac_res=`eval echo '${'$as_ac_Header'}'`
10362 { echo "$as_me:$LINENO: result: $ac_res" >&5
10363 echo "${ECHO_T}$ac_res" >&6; }
10366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10367 cat >>confdefs.h <<_ACEOF
10368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10372 { echo "$as_me:$LINENO: checking for main in -lpoppler" >&5
10373 echo $ECHO_N "checking for main in -lpoppler... $ECHO_C" >&6; }
10374 if test "${ac_cv_lib_poppler_main+set}" = set; then
10375 echo $ECHO_N "(cached) $ECHO_C" >&6
10377 ac_check_lib_save_LIBS=$LIBS
10378 LIBS="-lpoppler $LIBS"
10379 cat >conftest.$ac_ext <<_ACEOF
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_link") 2>conftest.er1
10404 grep -v '^ *+' conftest.er1 >conftest.err
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } && {
10409 test -z "$ac_cxx_werror_flag" ||
10410 test ! -s conftest.err
10411 } && test -s conftest$ac_exeext &&
10412 $as_test_x conftest$ac_exeext; then
10413 ac_cv_lib_poppler_main=yes
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10418 ac_cv_lib_poppler_main=no
10421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10425 { echo "$as_me:$LINENO: result: $ac_cv_lib_poppler_main" >&5
10426 echo "${ECHO_T}$ac_cv_lib_poppler_main" >&6; }
10427 if test $ac_cv_lib_poppler_main = yes; then
10428 cat >>confdefs.h <<_ACEOF
10429 #define HAVE_LIBPOPPLER 1
10432 LIBS="-lpoppler $LIBS"
10438 { { echo "$as_me:$LINENO: error: No poppler library found. This library is required." >&5
10439 echo "$as_me: error: No poppler library found. This library is required." >&2;}
10440 { (exit 1); exit 1; }; }
10446 ac_cpp='$CPP $CPPFLAGS'
10447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10452 CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
10453 cat >>confdefs.h <<\_ACEOF
10454 #define HAVE_POPPLER 1
10457 LIBS="$LIBS $POPPLER_LIBS"
10463 # ------------------------------------------------------------------
10467 for ac_prog in avifile-config
10469 # Extract the first word of "$ac_prog", so it can be a program name with args.
10470 set dummy $ac_prog; ac_word=$2
10471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10473 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10476 if test -n "$AVIFILE_CONFIG"; then
10477 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10480 for as_dir in $PATH
10483 test -z "$as_dir" && as_dir=.
10484 for ac_exec_ext in '' $ac_executable_extensions; do
10485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10486 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10496 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10497 if test -n "$AVIFILE_CONFIG"; then
10498 { echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10499 echo "${ECHO_T}$AVIFILE_CONFIG" >&6; }
10501 { echo "$as_me:$LINENO: result: no" >&5
10502 echo "${ECHO_T}no" >&6; }
10506 test -n "$AVIFILE_CONFIG" && break
10510 if test "x$AVIFILE_CONFIG" '!=' "x";then
10511 OLDCPPFLAGS="$CPPFLAGS"
10512 # temporarily add avifile paths to CPPFLAGS...
10513 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10516 for ac_header in avifile/version.h version.h
10518 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10520 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10521 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 ac_res=`eval echo '${'$as_ac_Header'}'`
10526 { echo "$as_me:$LINENO: result: $ac_res" >&5
10527 echo "${ECHO_T}$ac_res" >&6; }
10529 # Is the header compilable?
10530 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10532 cat >conftest.$ac_ext <<_ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10538 $ac_includes_default
10539 #include <$ac_header>
10541 rm -f conftest.$ac_objext
10542 if { (ac_try="$ac_compile"
10543 case "(($ac_try" in
10544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10545 *) ac_try_echo=$ac_try;;
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_compile") 2>conftest.er1
10550 grep -v '^ *+' conftest.er1 >conftest.err
10552 cat conftest.err >&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } && {
10555 test -z "$ac_c_werror_flag" ||
10556 test ! -s conftest.err
10557 } && test -s conftest.$ac_objext; then
10558 ac_header_compiler=yes
10560 echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10563 ac_header_compiler=no
10566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10567 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10568 echo "${ECHO_T}$ac_header_compiler" >&6; }
10570 # Is the header present?
10571 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10572 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10573 cat >conftest.$ac_ext <<_ACEOF
10576 cat confdefs.h >>conftest.$ac_ext
10577 cat >>conftest.$ac_ext <<_ACEOF
10578 /* end confdefs.h. */
10579 #include <$ac_header>
10581 if { (ac_try="$ac_cpp conftest.$ac_ext"
10582 case "(($ac_try" in
10583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10584 *) ac_try_echo=$ac_try;;
10586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10587 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10589 grep -v '^ *+' conftest.er1 >conftest.err
10591 cat conftest.err >&5
10592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593 (exit $ac_status); } >/dev/null && {
10594 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10595 test ! -s conftest.err
10597 ac_header_preproc=yes
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ac_header_preproc=no
10605 rm -f conftest.err conftest.$ac_ext
10606 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10607 echo "${ECHO_T}$ac_header_preproc" >&6; }
10609 # So? What about this header?
10610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10613 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10615 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10616 ac_header_preproc=yes
10619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10620 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10622 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10624 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10626 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10630 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10637 echo $ECHO_N "(cached) $ECHO_C" >&6
10639 eval "$as_ac_Header=\$ac_header_preproc"
10641 ac_res=`eval echo '${'$as_ac_Header'}'`
10642 { echo "$as_me:$LINENO: result: $ac_res" >&5
10643 echo "${ECHO_T}$ac_res" >&6; }
10646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10647 cat >>confdefs.h <<_ACEOF
10648 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10656 CPPFLAGS="$OLDCPPFLAGS"
10659 { echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10660 echo $ECHO_N "checking whether we can compile the avifile test program... $ECHO_C" >&6; }
10662 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10663 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10665 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10666 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10669 cat > conftest.cpp << EOF
10671 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10672 // so we have to introduce them this way
10673 $HAVE_VERSION_H_DEFINE
10674 $HAVE_AVIFILE_VERSION_H_DEFINE
10676 #ifdef HAVE_VERSION_H
10677 #include <version.h>
10679 #ifdef HAVE_AVIFILE_VERSION_H
10680 #include <avifile/version.h>
10683 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10684 #include <avifile.h>
10685 #include <aviplay.h>
10686 #include <avm_fourcc.h>
10687 #include <avm_creators.h>
10688 #include <StreamInfo.h>
10691 #include <avifile.h>
10692 #include <aviplay.h>
10693 #include <aviutil.h>
10694 #define Width width
10695 #define Height height
10702 IAviReadFile* player;
10703 IAviReadStream* astream;
10704 IAviReadStream* vstream;
10705 player = CreateIAviReadFile(0);
10706 astream = player->GetStream(0, AviStream::Audio);
10707 vstream = player->GetStream(0, AviStream::Video);
10708 vstream -> StartStreaming();
10709 astream -> StartStreaming();
10711 MainAVIHeader head;
10712 player->GetFileHeader(&head);
10713 head.dwMicroSecPerFrame;
10714 head.dwTotalFrames;
10718 head.dwMicroSecPerFrame;
10719 astream->GetEndPos(),
10720 astream->GetEndTime());
10721 player->StreamCount();
10723 StreamInfo*audioinfo;
10724 StreamInfo*videoinfo;
10725 audioinfo = astream->GetStreamInfo();
10726 videoinfo = vstream->GetStreamInfo();
10727 videoinfo->GetVideoWidth();
10728 videoinfo->GetVideoHeight();
10729 audioinfo->GetAudioSamplesPerSec();
10730 videoinfo->GetFps();
10732 CImage*img = vstream->GetFrame();
10739 astream->GetAudioFormatInfo(&wave,0);
10741 astream->ReadFrames(0,0,0,a,b);
10743 int main (int argc, char*argv)
10749 if test "x$AVIFILE_CONFIG" '!=' "x";then
10750 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
10751 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
10752 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
10753 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
10754 { echo "$as_me:$LINENO: result: yes" >&5
10755 echo "${ECHO_T}yes" >&6; }
10759 cat >>confdefs.h <<\_ACEOF
10760 #define AVIFILE true
10764 echo "configure: failed program was:" >&5
10765 cat conftest.cpp >&5
10766 { echo "$as_me:$LINENO: result: no" >&5
10767 echo "${ECHO_T}no" >&6; }
10770 { echo "$as_me:$LINENO: result: no" >&5
10771 echo "${ECHO_T}no" >&6; }
10775 if test "x${AVIFILE}" = "xtrue"; then
10776 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
10777 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
10779 cat >>confdefs.h <<\_ACEOF
10780 #define HAVE_AVIFILE 1
10785 if test "x${WIN32}" != "x"; then
10786 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
10787 #if test "x${AVIFIL32}" != "x"; then
10788 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
10790 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
10796 # ------------------------------------------------------------------
10798 if test "x${UNCOMPRESS}" = "xgzip"; then
10800 cat >>confdefs.h <<\_ACEOF
10807 # ------------------------------------------------------------------
10810 { echo "$as_me:$LINENO: checking for Python.h" >&5
10811 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6; }
10813 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
10816 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
10817 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
10819 # iterate through version 2.2 to 2.5
10820 for v in 2 3 4 5; do
10822 if test -f "/usr/include/python2.$v/Python.h";then
10824 PYTHON_LIB="-lpython$PY_VERSION"
10825 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
10826 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
10827 HAVE_PYTHON_IMAGING_LIB=1
10829 PYTHON_LIB2="$PYTHON_LIB"
10831 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
10833 elif test -f "/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
10834 #TODO: test for /System/Library/Frameworks/Python.framework/Versions/2.3/Python ?
10836 PYTHON_LIB="-framework Python"
10837 if test -f "/Library/Python/2.$v/PIL/_imaging.so";then
10838 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
10839 HAVE_PYTHON_IMAGING_LIB=1
10841 PYTHON_LIB2="$PYTHON_LIB"
10843 PYTHON_INCLUDES="-I/System/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
10845 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
10846 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
10847 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
10849 -a -f "/sw/include/python2.$v/Python.h"; then
10851 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10852 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
10853 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10854 HAVE_PYTHON_IMAGING_LIB=1
10856 PYTHON_LIB2="$PYTHON_LIB"
10858 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
10863 if test "x$PY_VERSION" "!=" "x"; then
10864 { echo "$as_me:$LINENO: result: $PY_VERSION" >&5
10865 echo "${ECHO_T}$PY_VERSION" >&6; }
10866 export PYTHON_INCLUDES PYTHON_LIB
10869 { echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
10870 echo $ECHO_N "checking whether we can compile the python test program... $ECHO_C" >&6; }
10872 cat > conftest.c << EOF
10873 #include <Python.h>
10878 ret = Py_Main(0, 0);
10879 int x; // check also for gcc 2.95.x incompatibilities
10884 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
10885 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10886 { echo "$as_me:$LINENO: result: yes" >&5
10887 echo "${ECHO_T}yes" >&6; }
10890 echo "configure: failed program was:" >&5
10892 { echo "$as_me:$LINENO: result: no" >&5
10893 echo "${ECHO_T}no" >&6; }
10896 if test "x$PYTHON_OK" = "xyes";then
10897 { echo "$as_me:$LINENO: checking for Python-Imaging" >&5
10898 echo $ECHO_N "checking for Python-Imaging... $ECHO_C" >&6; }
10899 cat > conftest.c << EOF
10900 #include <Python.h>
10901 #include <Imaging.h>
10909 if test "$HAVE_PYTHON_IMAGING_LIB"; then
10910 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
10911 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10912 PYTHON_LIB="${PYTHON_LIB2}"
10914 cat >>confdefs.h <<\_ACEOF
10915 #define HAVE_PYTHON_IMAGING 1
10918 HAVE_PYTHON_IMAGING=yes
10919 export HAVE_PYTHON_IMAGING
10921 { echo "$as_me:$LINENO: result: yes" >&5
10922 echo "${ECHO_T}yes" >&6; }
10924 echo "configure: failed program was:" >&5
10926 { echo "$as_me:$LINENO: result: no" >&5
10927 echo "${ECHO_T}no" >&6; }
10930 echo "(didn't find the Python-Imaging libraries)" >&5
10931 { echo "$as_me:$LINENO: result: no" >&5
10932 echo "${ECHO_T}no" >&6; }
10937 { echo "$as_me:$LINENO: result: nope" >&5
10938 echo "${ECHO_T}nope" >&6; }
10942 if test "x$PYTHON_OK" '!=' "xyes";then
10943 echo all install uninstall clean: > lib/python/Makefile
10944 # fail silently- the most users won't have any need for the
10945 # python interface anyway
10947 pythonrfxswf="lib/python/Makefile"
10950 # ------------------------------------------------------------------
10952 { echo "$as_me:$LINENO: checking for missing libraries" >&5
10953 echo $ECHO_N "checking for missing libraries... $ECHO_C" >&6; }
10955 if test "x$ZLIBMISSING" = "xtrue";then
10956 MISSINGLIBS="${MISSINGLIBS} zlib"
10957 DISABLEPNG2SWF=true
10960 if test "x$JPEGLIBMISSING" = "xtrue";then
10961 MISSINGLIBS="${MISSINGLIBS} jpeglib"
10962 DISABLEPDF2SWF=true
10963 DISABLEJPEG2SWF=true
10966 #if test "x$T1LIBMISSING" = "xtrue";then
10967 # MISSINGLIBS="${MISSINGLIBS} t1lib"
10969 if test "x$UNGIFMISSING" = "xtrue";then
10970 DISABLEGIF2SWF=true
10971 MISSINGLIBS="${MISSINGLIBS} ungif"
10975 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10976 DISABLEPDF2SWF=true;
10977 DISABLEJPEG2SWF=true;
10978 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10981 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10982 DISABLEPDF2SWF=true;
10983 MISSINGLIBS="${MISSINGLIBS} freetype"
10986 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10987 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10989 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10990 DISABLEGIF2SWF=true
10991 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10994 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10995 DISABLEPNG2SWF=true;
10996 MISSINGLIBS="${MISSINGLIBS} zlib.h"
10999 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11000 # MISSINGLIBS="${MISSINGLIBS} avifile"
11003 { echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11004 echo "${ECHO_T}${MISSINGLIBS}" >&6; }
11006 # ------------------------------------------------------------------
11008 if test "x${MISSINGLIBS}" '!=' "x"; then
11009 echo "***************************************************"
11010 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11013 avi2swf="avi2swf/Makefile"
11014 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11015 #don't whine, avi2swf is outdated anyway
11016 #echo "* Disabling avi2swf tool..."
11017 echo all install uninstall clean: > avi2swf/Makefile
11021 pdf2swf_makefile="lib/pdf/Makefile"
11022 PDF2SWF='pdf2swf$(E)'
11023 LIBPDF='libpdf$(A)'
11025 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11026 echo "* Disabling pdf2swf tool..."
11027 rm -f lib/pdf/Makefile
11028 echo all install uninstall clean libpdf: > lib/pdf/Makefile
11029 pdf2swf_makefile=""
11036 if test "x${ZLIBMISSING}" = "xtrue"; then
11038 echo "* Warning! Without zlib, you will not be able to read"
11039 echo "* or write compressed Flash MX files!"
11042 JPEG2SWF='jpeg2swf$(E)'
11043 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11044 echo "* Disabling jpeg2swf tool..."
11050 GIF2SWF='gif2swf$(E)'
11051 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
11052 echo "* Disabling gif2swf tool..."
11058 PNG2SWF='png2swf$(E)'
11059 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11060 echo "* Disabling png2swf tool..."
11066 if test "x${MISSINGLIBS}" '!=' "x"; then
11067 if test "x${PARTIAL}" '=' "x"; then
11068 echo "* (never mind)"
11070 echo "***************************************************"
11073 # ------------------------------------------------------------------
11082 if test -f "release.in"; then release_in="./release"; fi
11083 FILES="$release_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile pdf2swf/fonts/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
11084 ac_config_files="$ac_config_files ${FILES}"
11086 cat >confcache <<\_ACEOF
11087 # This file is a shell script that caches the results of configure
11088 # tests run on this system so they can be shared between configure
11089 # scripts and configure runs, see configure's option --config-cache.
11090 # It is not useful on other systems. If it contains results you don't
11091 # want to keep, you may remove or edit it.
11093 # config.status only pays attention to the cache file if you give it
11094 # the --recheck option to rerun configure.
11096 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11098 # following values.
11102 # The following way of writing the cache mishandles newlines in values,
11103 # but we know of no workaround that is simple, portable, and efficient.
11104 # So, we kill variables containing newlines.
11105 # Ultrix sh set writes to stderr and can't be redirected directly,
11106 # and sets the high bit in the cache file unless we assign to the vars.
11108 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11109 eval ac_val=\$$ac_var
11113 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11114 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11117 _ | IFS | as_nl) ;; #(
11118 *) $as_unset $ac_var ;;
11124 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11125 *${as_nl}ac_space=\ *)
11126 # `set' does not quote correctly, so add quotes (double-quote
11127 # substitution turns \\\\ into \\, and sed turns \\ into \).
11130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11133 # `set' quotes correctly as required by POSIX, so do not add quotes.
11134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11145 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11147 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11148 if test -w "$cache_file"; then
11149 test "x$cache_file" != "x/dev/null" &&
11150 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11151 echo "$as_me: updating cache $cache_file" >&6;}
11152 cat confcache >$cache_file
11154 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11155 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11160 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11161 # Let make expand exec_prefix.
11162 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11164 DEFS=-DHAVE_CONFIG_H
11168 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11169 # 1. Remove the extension, and $U if already installed.
11170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11171 ac_i=`echo "$ac_i" | sed "$ac_script"`
11172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11173 # will be set to the directory where LIBOBJS objects are built.
11174 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11175 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11177 LIBOBJS=$ac_libobjs
11179 LTLIBOBJS=$ac_ltlibobjs
11183 : ${CONFIG_STATUS=./config.status}
11184 ac_clean_files_save=$ac_clean_files
11185 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11186 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11187 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11188 cat >$CONFIG_STATUS <<_ACEOF
11190 # Generated by $as_me.
11191 # Run this file to recreate the current configuration.
11192 # Compiler output produced by configure, useful for debugging
11193 # configure, is in config.log if it exists.
11196 ac_cs_recheck=false
11198 SHELL=\${CONFIG_SHELL-$SHELL}
11201 cat >>$CONFIG_STATUS <<\_ACEOF
11202 ## --------------------- ##
11203 ## M4sh Initialization. ##
11204 ## --------------------- ##
11206 # Be more Bourne compatible
11207 DUALCASE=1; export DUALCASE # for MKS sh
11208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11212 # is contrary to our usage. Disable this feature.
11213 alias -g '${1+"$@"}'='"$@"'
11214 setopt NO_GLOB_SUBST
11216 case `(set -o) 2>/dev/null` in
11217 *posix*) set -o posix ;;
11226 # Avoid depending upon Character Ranges.
11227 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11228 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11229 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11230 as_cr_digits='0123456789'
11231 as_cr_alnum=$as_cr_Letters$as_cr_digits
11233 # The user is always right.
11234 if test "${PATH_SEPARATOR+set}" != set; then
11235 echo "#! /bin/sh" >conf$$.sh
11236 echo "exit 0" >>conf$$.sh
11238 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11246 # Support unset when possible.
11247 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11255 # We need space, tab and new line, in precisely that order. Quoting is
11256 # there to prevent editors from complaining about space-tab.
11257 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11258 # splitting by setting IFS to empty value.)
11263 # Find who we are. Look in the path if we contain no directory separator.
11265 *[\\/]* ) as_myself=$0 ;;
11266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11270 test -z "$as_dir" && as_dir=.
11271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11277 # We did not find ourselves, most probably we were run as `sh COMMAND'
11278 # in which case we are not to be found in the path.
11279 if test "x$as_myself" = x; then
11282 if test ! -f "$as_myself"; then
11283 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11284 { (exit 1); exit 1; }
11287 # Work around bugs in pre-3.0 UWIN ksh.
11288 for as_var in ENV MAIL MAILPATH
11289 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11297 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11298 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11299 LC_TELEPHONE LC_TIME
11301 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11302 eval $as_var=C; export $as_var
11304 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11308 # Required to use basename.
11309 if expr a : '\(a\)' >/dev/null 2>&1 &&
11310 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11316 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11317 as_basename=basename
11323 # Name of the executable.
11324 as_me=`$as_basename -- "$0" ||
11325 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11326 X"$0" : 'X\(//\)$' \| \
11327 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11329 sed '/^.*\/\([^/][^/]*\)\/*$/{
11348 as_lineno_1=$LINENO
11349 as_lineno_2=$LINENO
11350 test "x$as_lineno_1" != "x$as_lineno_2" &&
11351 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11353 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11354 # uniformly replaced by the line number. The first 'sed' inserts a
11355 # line-number line after each line using $LINENO; the second 'sed'
11356 # does the real work. The second script uses 'N' to pair each
11357 # line-number line with the line containing $LINENO, and appends
11358 # trailing '-' during substitution so that $LINENO is not a special
11359 # case at line end.
11360 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11361 # scripts with optimization help from Paolo Bonzini. Blame Lee
11362 # E. McMahon (1931-1989) for sed's syntax. :-)
11374 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11377 ' >$as_me.lineno &&
11378 chmod +x "$as_me.lineno" ||
11379 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11380 { (exit 1); exit 1; }; }
11382 # Don't try to exec as it changes $[0], causing all sort of problems
11383 # (the dirname of $[0] is not the place where we might find the
11384 # original and so on. Autoconf is especially sensitive to this).
11385 . "./$as_me.lineno"
11386 # Exit status is that of the last command.
11391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11397 ECHO_C= ECHO_N= ECHO_T=
11398 case `echo -n x` in
11400 case `echo 'x\c'` in
11401 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11408 if expr a : '\(a\)' >/dev/null 2>&1 &&
11409 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11415 rm -f conf$$ conf$$.exe conf$$.file
11416 if test -d conf$$.dir; then
11417 rm -f conf$$.dir/conf$$.file
11423 if ln -s conf$$.file conf$$ 2>/dev/null; then
11425 # ... but there are two gotchas:
11426 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11427 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11428 # In both cases, we have to default to `cp -p'.
11429 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11431 elif ln conf$$.file conf$$ 2>/dev/null; then
11436 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11437 rmdir conf$$.dir 2>/dev/null
11439 if mkdir -p . 2>/dev/null; then
11442 test -d ./-p && rmdir ./-p
11446 if test -x / >/dev/null 2>&1; then
11447 as_test_x='test -x'
11449 if ls -dL / >/dev/null 2>&1; then
11456 if test -d "$1"; then
11462 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11463 ???[sx]*):;;*)false;;esac;fi
11467 as_executable_p=$as_test_x
11469 # Sed expression to map a string onto a valid CPP name.
11470 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11472 # Sed expression to map a string onto a valid variable name.
11473 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11478 # Save the log message, to keep $[0] and so on meaningful, and to
11479 # report actual input values of CONFIG_FILES etc. instead of their
11480 # values after options handling.
11482 This file was extended by $as_me, which was
11483 generated by GNU Autoconf 2.61. Invocation command line was
11485 CONFIG_FILES = $CONFIG_FILES
11486 CONFIG_HEADERS = $CONFIG_HEADERS
11487 CONFIG_LINKS = $CONFIG_LINKS
11488 CONFIG_COMMANDS = $CONFIG_COMMANDS
11491 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11496 cat >>$CONFIG_STATUS <<_ACEOF
11497 # Files that config.status was made for.
11498 config_files="$ac_config_files"
11499 config_headers="$ac_config_headers"
11503 cat >>$CONFIG_STATUS <<\_ACEOF
11505 \`$as_me' instantiates files from templates according to the
11506 current configuration.
11508 Usage: $0 [OPTIONS] [FILE]...
11510 -h, --help print this help, then exit
11511 -V, --version print version number and configuration settings, then exit
11512 -q, --quiet do not print progress messages
11513 -d, --debug don't remove temporary files
11514 --recheck update $as_me by reconfiguring in the same conditions
11515 --file=FILE[:TEMPLATE]
11516 instantiate the configuration file FILE
11517 --header=FILE[:TEMPLATE]
11518 instantiate the configuration header FILE
11520 Configuration files:
11523 Configuration headers:
11526 Report bugs to <bug-autoconf@gnu.org>."
11529 cat >>$CONFIG_STATUS <<_ACEOF
11532 configured by $0, generated by GNU Autoconf 2.61,
11533 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11535 Copyright (C) 2006 Free Software Foundation, Inc.
11536 This config.status script is free software; the Free Software Foundation
11537 gives unlimited permission to copy, distribute and modify it."
11544 cat >>$CONFIG_STATUS <<\_ACEOF
11545 # If no file are specified by the user, then we need to provide default
11546 # value. By we need to know if files were specified by the user.
11552 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11553 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11564 # Handling of the options.
11565 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11567 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11568 echo "$ac_cs_version"; exit ;;
11569 --debug | --debu | --deb | --de | --d | -d )
11571 --file | --fil | --fi | --f )
11573 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11574 ac_need_defaults=false;;
11575 --header | --heade | --head | --hea )
11577 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11578 ac_need_defaults=false;;
11580 # Conflict between --help and --header
11581 { echo "$as_me: error: ambiguous option: $1
11582 Try \`$0 --help' for more information." >&2
11583 { (exit 1); exit 1; }; };;
11584 --help | --hel | -h )
11585 echo "$ac_cs_usage"; exit ;;
11586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11587 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11590 # This is an error.
11591 -*) { echo "$as_me: error: unrecognized option: $1
11592 Try \`$0 --help' for more information." >&2
11593 { (exit 1); exit 1; }; } ;;
11595 *) ac_config_targets="$ac_config_targets $1"
11596 ac_need_defaults=false ;;
11602 ac_configure_extra_args=
11604 if $ac_cs_silent; then
11606 ac_configure_extra_args="$ac_configure_extra_args --silent"
11610 cat >>$CONFIG_STATUS <<_ACEOF
11611 if \$ac_cs_recheck; then
11612 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11613 CONFIG_SHELL=$SHELL
11614 export CONFIG_SHELL
11615 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11619 cat >>$CONFIG_STATUS <<\_ACEOF
11623 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11624 ## Running $as_me. ##
11630 cat >>$CONFIG_STATUS <<_ACEOF
11633 cat >>$CONFIG_STATUS <<\_ACEOF
11635 # Handling of arguments.
11636 for ac_config_target in $ac_config_targets
11638 case $ac_config_target in
11639 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11640 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11642 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11643 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11644 { (exit 1); exit 1; }; };;
11649 # If the user did not use the arguments to specify the items to instantiate,
11650 # then the envvar interface is used. Set only those that are not.
11651 # We use the long form for the default assignment because of an extremely
11652 # bizarre bug on SunOS 4.1.3.
11653 if $ac_need_defaults; then
11654 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11655 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11658 # Have a temporary directory for convenience. Make it in the build tree
11659 # simply because there is no reason against having it here, and in addition,
11660 # creating and moving files from /tmp can sometimes cause problems.
11661 # Hook for its removal unless debugging.
11662 # Note that there is a small window in which the directory will not be cleaned:
11663 # after its creation but before its name has been assigned to `$tmp'.
11667 trap 'exit_status=$?
11668 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11670 trap '{ (exit 1); exit 1; }' 1 2 13 15
11672 # Create a (secure) tmp directory for tmp files.
11675 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11676 test -n "$tmp" && test -d "$tmp"
11679 tmp=./conf$$-$RANDOM
11680 (umask 077 && mkdir "$tmp")
11683 echo "$me: cannot create a temporary directory in ." >&2
11684 { (exit 1); exit 1; }
11688 # Set up the sed scripts for CONFIG_FILES section.
11691 # No need to generate the scripts if there are no CONFIG_FILES.
11692 # This happens for instance when ./config.status config.h
11693 if test -n "$CONFIG_FILES"; then
11700 for ac_last_try in false false false false false :; do
11701 cat >conf$$subs.sed <<_ACEOF
11702 SHELL!$SHELL$ac_delim
11703 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11704 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11705 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11706 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11707 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11708 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11709 exec_prefix!$exec_prefix$ac_delim
11710 prefix!$prefix$ac_delim
11711 program_transform_name!$program_transform_name$ac_delim
11712 bindir!$bindir$ac_delim
11713 sbindir!$sbindir$ac_delim
11714 libexecdir!$libexecdir$ac_delim
11715 datarootdir!$datarootdir$ac_delim
11716 datadir!$datadir$ac_delim
11717 sysconfdir!$sysconfdir$ac_delim
11718 sharedstatedir!$sharedstatedir$ac_delim
11719 localstatedir!$localstatedir$ac_delim
11720 includedir!$includedir$ac_delim
11721 oldincludedir!$oldincludedir$ac_delim
11722 docdir!$docdir$ac_delim
11723 infodir!$infodir$ac_delim
11724 htmldir!$htmldir$ac_delim
11725 dvidir!$dvidir$ac_delim
11726 pdfdir!$pdfdir$ac_delim
11727 psdir!$psdir$ac_delim
11728 libdir!$libdir$ac_delim
11729 localedir!$localedir$ac_delim
11730 mandir!$mandir$ac_delim
11731 DEFS!$DEFS$ac_delim
11732 ECHO_C!$ECHO_C$ac_delim
11733 ECHO_N!$ECHO_N$ac_delim
11734 ECHO_T!$ECHO_T$ac_delim
11735 LIBS!$LIBS$ac_delim
11736 build_alias!$build_alias$ac_delim
11737 host_alias!$host_alias$ac_delim
11738 target_alias!$target_alias$ac_delim
11739 build!$build$ac_delim
11740 build_cpu!$build_cpu$ac_delim
11741 build_vendor!$build_vendor$ac_delim
11742 build_os!$build_os$ac_delim
11743 host!$host$ac_delim
11744 host_cpu!$host_cpu$ac_delim
11745 host_vendor!$host_vendor$ac_delim
11746 host_os!$host_os$ac_delim
11747 SHARED!$SHARED$ac_delim
11749 CFLAGS!$CFLAGS$ac_delim
11750 LDFLAGS!$LDFLAGS$ac_delim
11751 CPPFLAGS!$CPPFLAGS$ac_delim
11752 ac_ct_CC!$ac_ct_CC$ac_delim
11753 EXEEXT!$EXEEXT$ac_delim
11754 OBJEXT!$OBJEXT$ac_delim
11756 CXXFLAGS!$CXXFLAGS$ac_delim
11757 ac_ct_CXX!$ac_ct_CXX$ac_delim
11759 RANLIB!$RANLIB$ac_delim
11760 SET_MAKE!$SET_MAKE$ac_delim
11761 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
11762 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
11763 INSTALL_DATA!$INSTALL_DATA$ac_delim
11764 LN_S!$LN_S$ac_delim
11765 UNCOMPRESS!$UNCOMPRESS$ac_delim
11766 PKG_CONFIG!$PKG_CONFIG$ac_delim
11767 AREXT!$AREXT$ac_delim
11769 SLEXT!$SLEXT$ac_delim
11770 CXXLIBS!$CXXLIBS$ac_delim
11771 STRIP!$STRIP$ac_delim
11772 target!$target$ac_delim
11773 target_cpu!$target_cpu$ac_delim
11774 target_vendor!$target_vendor$ac_delim
11775 target_os!$target_os$ac_delim
11776 WORDS_BIGENDIAN!$WORDS_BIGENDIAN$ac_delim
11777 SYSTEM_BACKTICKS!$SYSTEM_BACKTICKS$ac_delim
11778 GREP!$GREP$ac_delim
11779 EGREP!$EGREP$ac_delim
11780 PACKAGE!$PACKAGE$ac_delim
11781 VERSION!$VERSION$ac_delim
11782 HAVE_UNISTD_H!$HAVE_UNISTD_H$ac_delim
11783 FREETYPE_CONFIG!$FREETYPE_CONFIG$ac_delim
11784 DEVICE_OPENGL!$DEVICE_OPENGL$ac_delim
11785 lame_in_source!$lame_in_source$ac_delim
11786 LIBART_CFLAGS!$LIBART_CFLAGS$ac_delim
11787 LIBART_LIBS!$LIBART_LIBS$ac_delim
11788 art_in_source!$art_in_source$ac_delim
11789 POPPLER_CFLAGS!$POPPLER_CFLAGS$ac_delim
11790 POPPLER_LIBS!$POPPLER_LIBS$ac_delim
11791 CXXCPP!$CXXCPP$ac_delim
11792 xpdf_in_source!$xpdf_in_source$ac_delim
11793 splash_in_source!$splash_in_source$ac_delim
11794 AVIFILE_CONFIG!$AVIFILE_CONFIG$ac_delim
11795 VIDEO_LIBS!$VIDEO_LIBS$ac_delim
11796 VIDEO_CFLAGS!$VIDEO_CFLAGS$ac_delim
11797 USE_GZIP!$USE_GZIP$ac_delim
11798 PYTHON_LIB!$PYTHON_LIB$ac_delim
11801 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
11803 elif $ac_last_try; then
11804 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11805 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11806 { (exit 1); exit 1; }; }
11808 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11812 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11813 if test -n "$ac_eof"; then
11814 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11815 ac_eof=`expr $ac_eof + 1`
11818 cat >>$CONFIG_STATUS <<_ACEOF
11819 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
11820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11823 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11824 s/^/s,@/; s/!/@,|#_!!_#|/
11827 s/'"$ac_delim"'$/,g/; t
11829 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11830 ' >>$CONFIG_STATUS <conf$$subs.sed
11831 rm -f conf$$subs.sed
11832 cat >>$CONFIG_STATUS <<_ACEOF
11838 for ac_last_try in false false false false false :; do
11839 cat >conf$$subs.sed <<_ACEOF
11840 PYTHON_INCLUDES!$PYTHON_INCLUDES$ac_delim
11841 HAVE_PYTHON_IMAGING!$HAVE_PYTHON_IMAGING$ac_delim
11842 PDF2SWF!$PDF2SWF$ac_delim
11843 LIBPDF!$LIBPDF$ac_delim
11844 JPEG2SWF!$JPEG2SWF$ac_delim
11845 GIF2SWF!$GIF2SWF$ac_delim
11846 PNG2SWF!$PNG2SWF$ac_delim
11847 LIBOBJS!$LIBOBJS$ac_delim
11848 LTLIBOBJS!$LTLIBOBJS$ac_delim
11851 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
11853 elif $ac_last_try; then
11854 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11855 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11856 { (exit 1); exit 1; }; }
11858 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11862 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
11863 if test -n "$ac_eof"; then
11864 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
11865 ac_eof=`expr $ac_eof + 1`
11868 cat >>$CONFIG_STATUS <<_ACEOF
11869 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
11870 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
11873 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
11874 s/^/s,@/; s/!/@,|#_!!_#|/
11877 s/'"$ac_delim"'$/,g/; t
11879 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
11880 ' >>$CONFIG_STATUS <conf$$subs.sed
11881 rm -f conf$$subs.sed
11882 cat >>$CONFIG_STATUS <<_ACEOF
11889 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11890 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11891 # trailing colons and then remove the whole line if VPATH becomes empty
11892 # (actually we leave an empty line to preserve line numbers).
11893 if test "x$srcdir" = x.; then
11894 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11895 s/:*\$(srcdir):*/:/
11896 s/:*\${srcdir}:*/:/
11898 s/^\([^=]*=[ ]*\):*/\1/
11904 cat >>$CONFIG_STATUS <<\_ACEOF
11905 fi # test -n "$CONFIG_FILES"
11908 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
11911 :[FHLC]) ac_mode=$ac_tag; continue;;
11913 case $ac_mode$ac_tag in
11915 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
11916 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
11917 { (exit 1); exit 1; }; };;
11918 :[FH]-) ac_tag=-:-;;
11919 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11936 -) ac_f="$tmp/stdin";;
11937 *) # Look for the file first in the build tree, then in the source tree
11938 # (if the path is not absolute). The absolute path cannot be DOS-style,
11939 # because $ac_f cannot contain `:'.
11943 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11945 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11946 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11947 { (exit 1); exit 1; }; };;
11949 ac_file_inputs="$ac_file_inputs $ac_f"
11952 # Let's still pretend it is `configure' which instantiates (i.e., don't
11953 # use $as_me), people would be surprised to read:
11954 # /* config.h. Generated by config.status. */
11955 configure_input="Generated from "`IFS=:
11956 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
11957 if test x"$ac_file" != x-; then
11958 configure_input="$ac_file. $configure_input"
11959 { echo "$as_me:$LINENO: creating $ac_file" >&5
11960 echo "$as_me: creating $ac_file" >&6;}
11964 *:-:* | *:-) cat >"$tmp/stdin";;
11969 ac_dir=`$as_dirname -- "$ac_file" ||
11970 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11971 X"$ac_file" : 'X\(//\)[^/]' \| \
11972 X"$ac_file" : 'X\(//\)$' \| \
11973 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11979 /^X\(\/\/\)[^/].*/{
11994 -*) as_dir=./$as_dir;;
11996 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12000 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12001 *) as_qdir=$as_dir;;
12003 as_dirs="'$as_qdir' $as_dirs"
12004 as_dir=`$as_dirname -- "$as_dir" ||
12005 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12006 X"$as_dir" : 'X\(//\)[^/]' \| \
12007 X"$as_dir" : 'X\(//\)$' \| \
12008 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12014 /^X\(\/\/\)[^/].*/{
12027 test -d "$as_dir" && break
12029 test -z "$as_dirs" || eval "mkdir $as_dirs"
12030 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12031 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12032 { (exit 1); exit 1; }; }; }
12036 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12038 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12039 # A ".." for each directory in $ac_dir_suffix.
12040 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12041 case $ac_top_builddir_sub in
12042 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12043 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12046 ac_abs_top_builddir=$ac_pwd
12047 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12048 # for backward compatibility:
12049 ac_top_builddir=$ac_top_build_prefix
12052 .) # We are building in place.
12054 ac_top_srcdir=$ac_top_builddir_sub
12055 ac_abs_top_srcdir=$ac_pwd ;;
12056 [\\/]* | ?:[\\/]* ) # Absolute name.
12057 ac_srcdir=$srcdir$ac_dir_suffix;
12058 ac_top_srcdir=$srcdir
12059 ac_abs_top_srcdir=$srcdir ;;
12060 *) # Relative name.
12061 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12062 ac_top_srcdir=$ac_top_build_prefix$srcdir
12063 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12065 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12075 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12076 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12080 cat >>$CONFIG_STATUS <<\_ACEOF
12081 # If the template does not know about datarootdir, expand it.
12082 # FIXME: This hack should be removed a few years after 2.60.
12083 ac_datarootdir_hack=; ac_datarootdir_seen=
12085 case `sed -n '/datarootdir/ {
12094 ' $ac_file_inputs` in
12095 *datarootdir*) ac_datarootdir_seen=yes;;
12096 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12097 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12098 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12100 cat >>$CONFIG_STATUS <<_ACEOF
12101 ac_datarootdir_hack='
12102 s&@datadir@&$datadir&g
12103 s&@docdir@&$docdir&g
12104 s&@infodir@&$infodir&g
12105 s&@localedir@&$localedir&g
12106 s&@mandir@&$mandir&g
12107 s&\\\${datarootdir}&$datarootdir&g' ;;
12111 # Neutralize VPATH when `$srcdir' = `.'.
12112 # Shell code in configure.ac might set extrasub.
12113 # FIXME: do we really want to maintain this feature?
12114 cat >>$CONFIG_STATUS <<_ACEOF
12118 cat >>$CONFIG_STATUS <<\_ACEOF
12120 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12121 s&@configure_input@&$configure_input&;t t
12122 s&@top_builddir@&$ac_top_builddir_sub&;t t
12123 s&@srcdir@&$ac_srcdir&;t t
12124 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12125 s&@top_srcdir@&$ac_top_srcdir&;t t
12126 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12127 s&@builddir@&$ac_builddir&;t t
12128 s&@abs_builddir@&$ac_abs_builddir&;t t
12129 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12130 s&@INSTALL@&$ac_INSTALL&;t t
12131 $ac_datarootdir_hack
12132 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
12134 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12135 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12136 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12137 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12138 which seems to be undefined. Please make sure it is defined." >&5
12139 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12140 which seems to be undefined. Please make sure it is defined." >&2;}
12144 -) cat "$tmp/out"; rm -f "$tmp/out";;
12145 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12154 # Transform confdefs.h into a sed script `conftest.defines', that
12155 # substitutes the proper values into config.h.in to produce config.h.
12156 rm -f conftest.defines conftest.tail
12157 # First, append a space to every undef/define line, to ease matching.
12158 echo 's/$/ /' >conftest.defines
12159 # Then, protect against being on the right side of a sed subst, or in
12160 # an unquoted here document, in config.status. If some macros were
12161 # called several times there might be several #defines for the same
12162 # symbol, which is useless. But do not sort them, since the last
12163 # AC_DEFINE must be honored.
12164 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12165 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12166 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12167 # PARAMS is the parameter list in the macro definition--in most cases, it's
12168 # just an empty string.
12169 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12170 ac_dB='\\)[ (].*,\\1define\\2'
12178 s/^[ ]*#[ ]*define[ ][ ]*//
12183 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12184 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12185 ' >>conftest.defines
12187 # Remove the space that was appended to ease matching.
12188 # Then replace #undef with comments. This is necessary, for
12189 # example, in the case of _POSIX_SOURCE, which is predefined and required
12190 # on some systems where configure will not decide to define it.
12191 # (The regexp can be short, since the line contains either #define or #undef.)
12193 s,^[ #]*u.*,/* & */,' >>conftest.defines
12195 # Break up conftest.defines:
12196 ac_max_sed_lines=50
12198 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12199 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12200 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12202 ac_in='$ac_file_inputs'
12203 ac_out='"$tmp/out1"'
12204 ac_nxt='"$tmp/out2"'
12208 # Write a here document:
12209 cat >>$CONFIG_STATUS <<_ACEOF
12210 # First, check the format of the line:
12211 cat >"\$tmp/defines.sed" <<\\CEOF
12212 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12213 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12217 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12219 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12220 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12221 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12222 grep . conftest.tail >/dev/null || break
12223 rm -f conftest.defines
12224 mv conftest.tail conftest.defines
12226 rm -f conftest.defines conftest.tail
12228 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12229 cat >>$CONFIG_STATUS <<\_ACEOF
12230 if test x"$ac_file" != x-; then
12231 echo "/* $configure_input */" >"$tmp/config.h"
12232 cat "$ac_result" >>"$tmp/config.h"
12233 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12234 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12235 echo "$as_me: $ac_file is unchanged" >&6;}
12238 mv "$tmp/config.h" $ac_file
12241 echo "/* $configure_input */"
12253 { (exit 0); exit 0; }
12255 chmod +x $CONFIG_STATUS
12256 ac_clean_files=$ac_clean_files_save
12259 # configure is writing to config.log, and then calls config.status.
12260 # config.status does its own redirection, appending to config.log.
12261 # Unfortunately, on DOS this fails, as config.log is still kept open
12262 # by configure, so config.status won't be able to write to it; its
12263 # output is simply discarded. So we exec the FD to /dev/null,
12264 # effectively closing config.log, so it can be properly (re)opened and
12265 # appended to by config.status. When coming back to configure, we
12266 # need to make the FD available again.
12267 if test "$no_create" != yes; then
12269 ac_config_status_args=
12270 test "$silent" = yes &&
12271 ac_config_status_args="$ac_config_status_args --quiet"
12273 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12275 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12276 # would make configure fail if this is the last instruction.
12277 $ac_cs_success || { (exit 1); exit 1; }
12283 # On development trees, create snapshots of config.status
12285 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
12286 if test "x${MINGW}" = "xyes"; then
12287 echo cp config.status config.status.win32
12288 cp config.status config.status.win32
12290 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
12291 echo cp config.status config.status.linux
12292 cp config.status config.status.linux
12294 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
12295 echo cp config.status config.status.debug
12296 cp config.status config.status.debug
12298 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
12299 echo cp config.status config.status.optimize
12300 cp config.status config.status.optimize