2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
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
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.)
96 # Find who we are. Look in the path if we contain no directory separator.
98 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110 # We did not find ourselves, most probably we were run as `sh COMMAND'
111 # in which case we are not to be found in the path.
112 if test "x$as_myself" = x; then
115 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; }
120 # Work around bugs in pre-3.0 UWIN ksh.
121 for as_var in ENV MAIL MAILPATH
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134 # Required to use basename.
135 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
142 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149 # Name of the executable.
150 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
173 if test "x$CONFIG_SHELL" = x; then
174 if (eval ":") 2>/dev/null; then
180 if test $as_have_required = yes && (eval ":
190 as_func_ret_success () {
193 as_func_ret_failure () {
198 if as_func_success; then
202 echo as_func_success failed.
205 if as_func_failure; then
207 echo as_func_failure succeeded.
210 if as_func_ret_success; then
214 echo as_func_ret_success failed.
217 if as_func_ret_failure; then
219 echo as_func_ret_failure succeeded.
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226 echo positional parameters were not saved.
229 test \$exitcode = 0) || { (exit 1); exit 1; }
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 test -z "$as_dir" && as_dir=.
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
277 CONFIG_SHELL=$as_shell
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
305 as_func_ret_success () {
308 as_func_ret_failure () {
313 if as_func_success; then
317 echo as_func_success failed.
320 if as_func_failure; then
322 echo as_func_failure succeeded.
325 if as_func_ret_success; then
329 echo as_func_ret_success failed.
332 if as_func_ret_failure; then
334 echo as_func_ret_failure succeeded.
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
341 echo positional parameters were not saved.
344 test $exitcode = 0) || { (exit 1); exit 1; }
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
385 (eval "as_func_return () {
394 as_func_ret_success () {
397 as_func_ret_failure () {
402 if as_func_success; then
406 echo as_func_success failed.
409 if as_func_failure; then
411 echo as_func_failure succeeded.
414 if as_func_ret_success; then
418 echo as_func_ret_success failed.
421 if as_func_ret_failure; then
423 echo as_func_ret_failure succeeded.
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430 echo positional parameters were not saved.
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
477 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this).
481 # Exit status is that of the last command.
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492 ECHO_C= ECHO_N= ECHO_T=
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
509 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file
514 mkdir conf$$.dir 2>/dev/null
516 if (echo >conf$$.file) 2>/dev/null; then
517 if ln -s conf$$.file conf$$ 2>/dev/null; then
519 # ... but there are two gotchas:
520 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522 # In both cases, we have to default to `cp -p'.
523 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525 elif ln conf$$.file conf$$ 2>/dev/null; then
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null
536 if mkdir -p . 2>/dev/null; then
539 test -d ./-p && rmdir ./-p
543 if test -x / >/dev/null 2>&1; then
546 if ls -dL / >/dev/null 2>&1; then
553 if test -d "$1"; then
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560 ???[sx]*):;;*)false;;esac;fi
564 as_executable_p=$as_test_x
566 # Sed expression to map a string onto a valid CPP name.
567 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574 exec 7<&0 </dev/null 6>&1
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
584 ac_default_prefix=/usr/local
586 ac_config_libobj_dir=.
592 SHELL=${CONFIG_SHELL-/bin/sh}
594 # Identity of this package.
601 ac_unique_file="src/"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
615 # ifdef HAVE_STDLIB_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
647 program_transform_name
746 enable_option_checking
756 ac_precious_vars='build_alias
776 # Initialize some variables set by options.
778 ac_init_version=false
779 ac_unrecognized_opts=
781 # The variables have the same names as the options, with
782 # dashes changed to underlines.
790 program_transform_name=s,x,x,
798 # Installation directory options.
799 # These are left unexpanded so users can "make install exec_prefix=/foo"
800 # and all the variables that are supposed to be based on exec_prefix
801 # by default will actually change.
802 # Use braces instead of parens because sh, perl, etc. also accept them.
803 # (The list follows the same order as the GNU Coding Standards.)
804 bindir='${exec_prefix}/bin'
805 sbindir='${exec_prefix}/sbin'
806 libexecdir='${exec_prefix}/libexec'
807 datarootdir='${prefix}/share'
808 datadir='${datarootdir}'
809 sysconfdir='${prefix}/etc'
810 sharedstatedir='${prefix}/com'
811 localstatedir='${prefix}/var'
812 includedir='${prefix}/include'
813 oldincludedir='/usr/include'
814 docdir='${datarootdir}/doc/${PACKAGE}'
815 infodir='${datarootdir}/info'
820 libdir='${exec_prefix}/lib'
821 localedir='${datarootdir}/locale'
822 mandir='${datarootdir}/man'
828 # If the previous option needs an argument, assign it.
829 if test -n "$ac_prev"; then
830 eval $ac_prev=\$ac_option
836 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 # Accept the important Cygnus configure options, so we can diagnose typos.
842 case $ac_dashdash$ac_option in
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 -build | --build | --buil | --bui | --bu)
852 ac_prev=build_alias ;;
853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854 build_alias=$ac_optarg ;;
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861 cache_file=$ac_optarg ;;
864 cache_file=config.cache ;;
866 -datadir | --datadir | --datadi | --datad)
868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
869 datadir=$ac_optarg ;;
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
878 -disable-* | --disable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
883 { (exit 1); exit 1; }; }
884 ac_useropt_orig=$ac_useropt
885 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
886 case $ac_user_opts in
890 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
891 ac_unrecognized_sep=', ';;
893 eval enable_$ac_useropt=no ;;
895 -docdir | --docdir | --docdi | --doc | --do)
897 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
902 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 -enable-* | --enable-*)
906 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
907 # Reject names that are not valid shell variable names.
908 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
909 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
910 { (exit 1); exit 1; }; }
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
920 eval enable_$ac_useropt=\$ac_optarg ;;
922 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
923 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
924 | --exec | --exe | --ex)
925 ac_prev=exec_prefix ;;
926 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
927 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
928 | --exec=* | --exe=* | --ex=*)
929 exec_prefix=$ac_optarg ;;
931 -gas | --gas | --ga | --g)
932 # Obsolete; use --with-gas.
935 -help | --help | --hel | --he | -h)
937 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
938 ac_init_help=recursive ;;
939 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
940 ac_init_help=short ;;
942 -host | --host | --hos | --ho)
943 ac_prev=host_alias ;;
944 -host=* | --host=* | --hos=* | --ho=*)
945 host_alias=$ac_optarg ;;
947 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
949 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
951 htmldir=$ac_optarg ;;
953 -includedir | --includedir | --includedi | --included | --include \
954 | --includ | --inclu | --incl | --inc)
955 ac_prev=includedir ;;
956 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
957 | --includ=* | --inclu=* | --incl=* | --inc=*)
958 includedir=$ac_optarg ;;
960 -infodir | --infodir | --infodi | --infod | --info | --inf)
962 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
963 infodir=$ac_optarg ;;
965 -libdir | --libdir | --libdi | --libd)
967 -libdir=* | --libdir=* | --libdi=* | --libd=*)
970 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
971 | --libexe | --libex | --libe)
972 ac_prev=libexecdir ;;
973 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
974 | --libexe=* | --libex=* | --libe=*)
975 libexecdir=$ac_optarg ;;
977 -localedir | --localedir | --localedi | --localed | --locale)
979 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
980 localedir=$ac_optarg ;;
982 -localstatedir | --localstatedir | --localstatedi | --localstated \
983 | --localstate | --localstat | --localsta | --localst | --locals)
984 ac_prev=localstatedir ;;
985 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
986 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
987 localstatedir=$ac_optarg ;;
989 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
991 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 # Obsolete; use --without-fp.
998 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
999 | --no-cr | --no-c | -n)
1002 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1003 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1006 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1007 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1008 | --oldin | --oldi | --old | --ol | --o)
1009 ac_prev=oldincludedir ;;
1010 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1011 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1012 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1013 oldincludedir=$ac_optarg ;;
1015 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1017 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1018 prefix=$ac_optarg ;;
1020 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1021 | --program-pre | --program-pr | --program-p)
1022 ac_prev=program_prefix ;;
1023 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1024 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1025 program_prefix=$ac_optarg ;;
1027 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1028 | --program-suf | --program-su | --program-s)
1029 ac_prev=program_suffix ;;
1030 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1031 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1032 program_suffix=$ac_optarg ;;
1034 -program-transform-name | --program-transform-name \
1035 | --program-transform-nam | --program-transform-na \
1036 | --program-transform-n | --program-transform- \
1037 | --program-transform | --program-transfor \
1038 | --program-transfo | --program-transf \
1039 | --program-trans | --program-tran \
1040 | --progr-tra | --program-tr | --program-t)
1041 ac_prev=program_transform_name ;;
1042 -program-transform-name=* | --program-transform-name=* \
1043 | --program-transform-nam=* | --program-transform-na=* \
1044 | --program-transform-n=* | --program-transform-=* \
1045 | --program-transform=* | --program-transfor=* \
1046 | --program-transfo=* | --program-transf=* \
1047 | --program-trans=* | --program-tran=* \
1048 | --progr-tra=* | --program-tr=* | --program-t=*)
1049 program_transform_name=$ac_optarg ;;
1051 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1053 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1054 pdfdir=$ac_optarg ;;
1056 -psdir | --psdir | --psdi | --psd | --ps)
1058 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1061 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1062 | -silent | --silent | --silen | --sile | --sil)
1065 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1067 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1069 sbindir=$ac_optarg ;;
1071 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1072 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1073 | --sharedst | --shareds | --shared | --share | --shar \
1075 ac_prev=sharedstatedir ;;
1076 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1077 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1078 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1080 sharedstatedir=$ac_optarg ;;
1082 -site | --site | --sit)
1084 -site=* | --site=* | --sit=*)
1087 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1089 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1090 srcdir=$ac_optarg ;;
1092 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1093 | --syscon | --sysco | --sysc | --sys | --sy)
1094 ac_prev=sysconfdir ;;
1095 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1096 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1097 sysconfdir=$ac_optarg ;;
1099 -target | --target | --targe | --targ | --tar | --ta | --t)
1100 ac_prev=target_alias ;;
1101 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1102 target_alias=$ac_optarg ;;
1104 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1107 -version | --version | --versio | --versi | --vers | -V)
1108 ac_init_version=: ;;
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1115 { (exit 1); exit 1; }; }
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1125 eval with_$ac_useropt=\$ac_optarg ;;
1127 -without-* | --without-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1132 { (exit 1); exit 1; }; }
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1142 eval with_$ac_useropt=no ;;
1145 # Obsolete; use --with-x.
1148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1149 | --x-incl | --x-inc | --x-in | --x-i)
1150 ac_prev=x_includes ;;
1151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1153 x_includes=$ac_optarg ;;
1155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1157 ac_prev=x_libraries ;;
1158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1160 x_libraries=$ac_optarg ;;
1162 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1163 Try \`$0 --help' for more information." >&2
1164 { (exit 1); exit 1; }; }
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1171 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1172 { (exit 1); exit 1; }; }
1173 eval $ac_envvar=\$ac_optarg
1174 export $ac_envvar ;;
1177 # FIXME: should be removed in autoconf 3.0.
1178 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1180 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1181 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1187 if test -n "$ac_prev"; then
1188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1189 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1190 { (exit 1); exit 1; }; }
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1196 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1197 { (exit 1); exit 1; }; } ;;
1198 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1202 # Check all directory arguments for consistency.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1209 # Remove trailing slashes.
1212 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1213 eval $ac_var=\$ac_val;;
1215 # Be sure to have absolute directory names.
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1221 { (exit 1); exit 1; }; }
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1229 target=$target_alias
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1236 If a cross compiler is detected then cross compile mode will be used." >&2
1237 elif test "x$build_alias" != "x$host_alias"; then
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245 test "$silent" = yes && exec 6>/dev/null
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1252 { (exit 1); exit 1; }; }
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1255 { (exit 1); exit 1; }; }
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$as_myself" ||
1263 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$as_myself" : 'X\(//\)[^/]' \| \
1265 X"$as_myself" : 'X\(//\)$' \| \
1266 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1267 $as_echo X"$as_myself" |
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1290 ac_srcdir_defaulted=no
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1295 { (exit 1); exit 1; }; }
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1300 { (exit 1); exit 1; }; }
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1326 \`configure' configures this package to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1384 --program-prefix=PREFIX prepend PREFIX to installed program names
1385 --program-suffix=SUFFIX append SUFFIX to installed program names
1386 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389 --build=BUILD configure for building on BUILD [guessed]
1390 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1391 --target=TARGET configure for building compilers for TARGET [HOST]
1395 if test -n "$ac_init_help"; then
1400 --disable-option-checking ignore unrecognized --enable/--with options
1401 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1402 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1403 --enable-checkmem turn on ccmalloc debugging
1404 --enable-debug turn on debugging
1405 --enable-profiling turn on profiling
1406 --enable-warnings turn on compiler warnings
1407 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1408 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1411 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1412 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1413 --with-external-libart use external libart library (currently broken)
1414 --with-poppler use poppler instead of internal xpdf (currently broken)
1416 Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
1421 LIBS libraries to pass to the linker, e.g. -l<library>
1422 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1423 you have headers in a nonstandard directory <include dir>
1424 CXX C++ compiler command
1425 CXXFLAGS C++ compiler flags
1427 PKG_CONFIG path to pkg-config utility
1429 C compiler flags for LIBART, overriding pkg-config
1430 LIBART_LIBS linker flags for LIBART, overriding pkg-config
1432 C compiler flags for POPPLER, overriding pkg-config
1434 linker flags for POPPLER, overriding pkg-config
1435 CXXCPP C++ preprocessor
1437 Use these variables to override the choices made by `configure' or to help
1438 it to find libraries and programs with nonstandard names/locations.
1444 if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447 test -d "$ac_dir" ||
1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1469 .) # We are building in place.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1503 generated by GNU Autoconf 2.62
1505 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1506 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1507 This configure script is free software; the Free Software Foundation
1508 gives unlimited permission to copy, distribute and modify it.
1512 cat >config.log <<_ACEOF
1513 This file contains any messages produced by compilers while
1514 running configure, to aid debugging if configure makes a mistake.
1516 It was created by $as_me, which was
1517 generated by GNU Autoconf 2.62. Invocation command line was
1529 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1530 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1531 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1532 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1533 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1535 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1536 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1538 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1539 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1540 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1541 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1542 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1543 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1544 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1552 test -z "$as_dir" && as_dir=.
1553 $as_echo "PATH: $as_dir"
1569 # Keep a trace of the command line.
1570 # Strip out --no-create and --no-recursion so they do not pile up.
1571 # Strip out --silent because we don't want to record it for future runs.
1572 # Also quote any args containing shell meta-characters.
1573 # Make two passes to allow for proper duplicate-argument suppression.
1577 ac_must_keep_next=false
1583 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1585 | -silent | --silent | --silen | --sile | --sil)
1588 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1591 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1593 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1594 if test $ac_must_keep_next = true; then
1595 ac_must_keep_next=false # Got value, back to normal.
1598 *=* | --config-cache | -C | -disable-* | --disable-* \
1599 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1600 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1601 | -with-* | --with-* | -without-* | --without-* | --x)
1602 case "$ac_configure_args0 " in
1603 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1606 -* ) ac_must_keep_next=true ;;
1609 ac_configure_args="$ac_configure_args '$ac_arg'"
1614 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1615 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1617 # When interrupted or exit'd, cleanup temporary files, and complete
1618 # config.log. We remove comments because anyway the quotes in there
1619 # would cause problems or look ugly.
1620 # WARNING: Use '\'' to represent an apostrophe within the trap.
1621 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1622 trap 'exit_status=$?
1623 # Save into config.log some information that might help in debugging.
1628 ## ---------------- ##
1629 ## Cache variables. ##
1630 ## ---------------- ##
1633 # The following way of writing the cache mishandles newlines in values,
1635 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1636 eval ac_val=\$$ac_var
1640 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1641 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1644 _ | IFS | as_nl) ;; #(
1645 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1646 *) $as_unset $ac_var ;;
1651 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1652 *${as_nl}ac_space=\ *)
1654 "s/'\''/'\''\\\\'\'''\''/g;
1655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1658 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1666 ## ----------------- ##
1667 ## Output variables. ##
1668 ## ----------------- ##
1671 for ac_var in $ac_subst_vars
1673 eval ac_val=\$$ac_var
1675 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1677 $as_echo "$ac_var='\''$ac_val'\''"
1681 if test -n "$ac_subst_files"; then
1683 ## ------------------- ##
1684 ## File substitutions. ##
1685 ## ------------------- ##
1688 for ac_var in $ac_subst_files
1690 eval ac_val=\$$ac_var
1692 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1694 $as_echo "$ac_var='\''$ac_val'\''"
1699 if test -s confdefs.h; then
1709 test "$ac_signal" != 0 &&
1710 $as_echo "$as_me: caught signal $ac_signal"
1711 $as_echo "$as_me: exit $exit_status"
1713 rm -f core *.core core.conftest.* &&
1714 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1717 for ac_signal in 1 2 13 15; do
1718 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1722 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1723 rm -f -r conftest* confdefs.h
1725 # Predefined preprocessor variables.
1727 cat >>confdefs.h <<_ACEOF
1728 #define PACKAGE_NAME "$PACKAGE_NAME"
1732 cat >>confdefs.h <<_ACEOF
1733 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1737 cat >>confdefs.h <<_ACEOF
1738 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1742 cat >>confdefs.h <<_ACEOF
1743 #define PACKAGE_STRING "$PACKAGE_STRING"
1747 cat >>confdefs.h <<_ACEOF
1748 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1752 # Let the site file select an alternate cache file if it wants to.
1753 # Prefer an explicitly selected file to automatically selected ones.
1756 if test -n "$CONFIG_SITE"; then
1757 ac_site_file1=$CONFIG_SITE
1758 elif test "x$prefix" != xNONE; then
1759 ac_site_file1=$prefix/share/config.site
1760 ac_site_file2=$prefix/etc/config.site
1762 ac_site_file1=$ac_default_prefix/share/config.site
1763 ac_site_file2=$ac_default_prefix/etc/config.site
1765 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1767 test "x$ac_site_file" = xNONE && continue
1768 if test -r "$ac_site_file"; then
1769 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1770 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1771 sed 's/^/| /' "$ac_site_file" >&5
1776 if test -r "$cache_file"; then
1777 # Some versions of bash will fail to source /dev/null (special
1778 # files actually), so we avoid doing that.
1779 if test -f "$cache_file"; then
1780 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1781 $as_echo "$as_me: loading cache $cache_file" >&6;}
1783 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1784 *) . "./$cache_file";;
1788 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1789 $as_echo "$as_me: creating cache $cache_file" >&6;}
1793 # Check that the precious variables saved in the cache have kept the same
1795 ac_cache_corrupted=false
1796 for ac_var in $ac_precious_vars; do
1797 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1798 eval ac_new_set=\$ac_env_${ac_var}_set
1799 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1800 eval ac_new_val=\$ac_env_${ac_var}_value
1801 case $ac_old_set,$ac_new_set in
1803 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1804 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1805 ac_cache_corrupted=: ;;
1807 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1808 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1809 ac_cache_corrupted=: ;;
1812 if test "x$ac_old_val" != "x$ac_new_val"; then
1813 # differences in whitespace do not lead to failure.
1814 ac_old_val_w=`echo x $ac_old_val`
1815 ac_new_val_w=`echo x $ac_new_val`
1816 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1817 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1818 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1819 ac_cache_corrupted=:
1821 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1822 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1823 eval $ac_var=\$ac_old_val
1825 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1826 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1827 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1828 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1831 # Pass precious variables to config.status.
1832 if test "$ac_new_set" = set; then
1834 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1835 *) ac_arg=$ac_var=$ac_new_val ;;
1837 case " $ac_configure_args " in
1838 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1839 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1843 if $ac_cache_corrupted; then
1844 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1845 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1846 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1847 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1848 { (exit 1); exit 1; }; }
1868 ac_cpp='$CPP $CPPFLAGS'
1869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876 # Check whether --enable-checkmem was given.
1877 if test "${enable_checkmem+set}" = set; then
1878 enableval=$enable_checkmem; CHECKMEM=true
1881 # Check whether --enable-debug was given.
1882 if test "${enable_debug+set}" = set; then
1883 enableval=$enable_debug; DEBUG=true
1886 # Check whether --enable-profiling was given.
1887 if test "${enable_profiling+set}" = set; then
1888 enableval=$enable_profiling; PROFILING=true
1891 # Check whether --enable-warnings was given.
1892 if test "${enable_warnings+set}" = set; then
1893 enableval=$enable_warnings; ENABLE_WARNINGS=true
1896 # Check whether --enable-optimizations was given.
1897 if test "${enable_optimizations+set}" = set; then
1898 enableval=$enable_optimizations; OPTIMIZE=true
1901 # Check whether --enable-lame was given.
1902 if test "${enable_lame+set}" = set; then
1903 enableval=$enable_lame; DISABLE_LAME=true
1907 # Check whether --with-external-libart was given.
1908 if test "${with_external_libart+set}" = set; then
1909 withval=$with_external_libart; EXTERNAL_LIBART=true
1913 # Check whether --with-poppler was given.
1914 if test "${with_poppler+set}" = set; then
1915 withval=$with_poppler; USE_POPPLER=true
1920 VERSION=2008-09-22-1956
1923 # ------------------------------------------------------------------
1925 if test "x${srcdir}" != "x."; then
1926 echo "--srcdir is not supported"
1930 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1931 if test "x$ENABLE_WARNINGS" '!=' "x";then
1932 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1935 if test "x$CHECKMEM" '!=' "x";then
1938 if test "x$PROFILING" '!=' "x";then
1941 if test "x$DEBUG" '!=' "x";then
1942 if test "x$PROFILING" = "x";then
1943 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1944 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1947 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1948 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1949 LDFLAGS="-g -pg $LIBS"
1951 else if test "x$OPTIMIZE" '!=' "x"; then
1952 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1953 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1955 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1956 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1960 CFLAGS="-fPIC $CFLAGS"
1961 CXXFLAGS="-fPIC $CFLAGS"
1964 #if test "x$OLDGCC" '!=' "x";then
1965 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1966 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1967 # CFLAGS="$CFLAGS -ansi -pendantic"
1968 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1971 export PACKAGE VERSION CFLAGS CXXFLAGS
1975 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1976 if test -f "$ac_dir/install-sh"; then
1978 ac_install_sh="$ac_aux_dir/install-sh -c"
1980 elif test -f "$ac_dir/install.sh"; then
1982 ac_install_sh="$ac_aux_dir/install.sh -c"
1984 elif test -f "$ac_dir/shtool"; then
1986 ac_install_sh="$ac_aux_dir/shtool install -c"
1990 if test -z "$ac_aux_dir"; then
1991 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1992 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1993 { (exit 1); exit 1; }; }
1996 # These three variables are undocumented and unsupported,
1997 # and are intended to be withdrawn in a future Autoconf release.
1998 # They can cause serious problems if a builder's source tree is in a directory
1999 # whose full name contains unusual characters.
2000 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2001 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2002 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2005 # Make sure we can run config.sub.
2006 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2007 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2008 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2009 { (exit 1); exit 1; }; }
2011 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2012 $as_echo_n "checking build system type... " >&6; }
2013 if test "${ac_cv_build+set}" = set; then
2014 $as_echo_n "(cached) " >&6
2016 ac_build_alias=$build_alias
2017 test "x$ac_build_alias" = x &&
2018 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2019 test "x$ac_build_alias" = x &&
2020 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2021 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2022 { (exit 1); exit 1; }; }
2023 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2024 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2025 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2026 { (exit 1); exit 1; }; }
2029 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2030 $as_echo "$ac_cv_build" >&6; }
2031 case $ac_cv_build in
2033 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2034 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2035 { (exit 1); exit 1; }; };;
2038 ac_save_IFS=$IFS; IFS='-'
2044 # Remember, the first character of IFS is used to create $*,
2045 # except with old shells:
2048 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2051 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2052 $as_echo_n "checking host system type... " >&6; }
2053 if test "${ac_cv_host+set}" = set; then
2054 $as_echo_n "(cached) " >&6
2056 if test "x$host_alias" = x; then
2057 ac_cv_host=$ac_cv_build
2059 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2060 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2061 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2062 { (exit 1); exit 1; }; }
2066 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2067 $as_echo "$ac_cv_host" >&6; }
2070 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2071 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2072 { (exit 1); exit 1; }; };;
2075 ac_save_IFS=$IFS; IFS='-'
2081 # Remember, the first character of IFS is used to create $*,
2082 # except with old shells:
2085 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2095 CXXFLAGS="$CXXFLAGS -fno-rtti"
2097 # Use fink packages if available.
2098 #if test -d /sw/include && test -d /sw/lib; then
2099 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2100 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2108 ac_cpp='$CPP $CPPFLAGS'
2109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2112 if test -n "$ac_tool_prefix"; then
2113 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2114 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 $as_echo_n "checking for $ac_word... " >&6; }
2117 if test "${ac_cv_prog_CC+set}" = set; then
2118 $as_echo_n "(cached) " >&6
2120 if test -n "$CC"; then
2121 ac_cv_prog_CC="$CC" # Let the user override the test.
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2130 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2141 if test -n "$CC"; then
2142 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2143 $as_echo "$CC" >&6; }
2145 { $as_echo "$as_me:$LINENO: result: no" >&5
2146 $as_echo "no" >&6; }
2151 if test -z "$ac_cv_prog_CC"; then
2153 # Extract the first word of "gcc", so it can be a program name with args.
2154 set dummy gcc; ac_word=$2
2155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2156 $as_echo_n "checking for $ac_word... " >&6; }
2157 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2158 $as_echo_n "(cached) " >&6
2160 if test -n "$ac_ct_CC"; then
2161 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167 test -z "$as_dir" && as_dir=.
2168 for ac_exec_ext in '' $ac_executable_extensions; do
2169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2170 ac_cv_prog_ac_ct_CC="gcc"
2171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2181 if test -n "$ac_ct_CC"; then
2182 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2183 $as_echo "$ac_ct_CC" >&6; }
2185 { $as_echo "$as_me:$LINENO: result: no" >&5
2186 $as_echo "no" >&6; }
2189 if test "x$ac_ct_CC" = x; then
2192 case $cross_compiling:$ac_tool_warned in
2194 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2195 whose name does not start with the host triplet. If you think this
2196 configuration is useful to you, please write to autoconf@gnu.org." >&5
2197 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2198 whose name does not start with the host triplet. If you think this
2199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2200 ac_tool_warned=yes ;;
2208 if test -z "$CC"; then
2209 if test -n "$ac_tool_prefix"; then
2210 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2211 set dummy ${ac_tool_prefix}cc; ac_word=$2
2212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 $as_echo_n "checking for $ac_word... " >&6; }
2214 if test "${ac_cv_prog_CC+set}" = set; then
2215 $as_echo_n "(cached) " >&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}cc"
2228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238 if test -n "$CC"; then
2239 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2240 $as_echo "$CC" >&6; }
2242 { $as_echo "$as_me:$LINENO: result: no" >&5
2243 $as_echo "no" >&6; }
2249 if test -z "$CC"; then
2250 # Extract the first word of "cc", so it can be a program name with args.
2251 set dummy cc; ac_word=$2
2252 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 $as_echo_n "checking for $ac_word... " >&6; }
2254 if test "${ac_cv_prog_CC+set}" = set; then
2255 $as_echo_n "(cached) " >&6
2257 if test -n "$CC"; then
2258 ac_cv_prog_CC="$CC" # Let the user override the test.
2261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2265 test -z "$as_dir" && as_dir=.
2266 for ac_exec_ext in '' $ac_executable_extensions; do
2267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2268 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2269 ac_prog_rejected=yes
2273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280 if test $ac_prog_rejected = yes; then
2281 # We found a bogon in the path, so make sure we never use it.
2282 set dummy $ac_cv_prog_CC
2284 if test $# != 0; then
2285 # We chose a different compiler from the bogus one.
2286 # However, it has the same basename, so the bogon will be chosen
2287 # first if we set CC to just the basename; use the full file name.
2289 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2295 if test -n "$CC"; then
2296 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2297 $as_echo "$CC" >&6; }
2299 { $as_echo "$as_me:$LINENO: result: no" >&5
2300 $as_echo "no" >&6; }
2305 if test -z "$CC"; then
2306 if test -n "$ac_tool_prefix"; then
2307 for ac_prog in cl.exe
2309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2311 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2312 $as_echo_n "checking for $ac_word... " >&6; }
2313 if test "${ac_cv_prog_CC+set}" = set; then
2314 $as_echo_n "(cached) " >&6
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2326 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2327 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337 if test -n "$CC"; then
2338 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2339 $as_echo "$CC" >&6; }
2341 { $as_echo "$as_me:$LINENO: result: no" >&5
2342 $as_echo "no" >&6; }
2346 test -n "$CC" && break
2349 if test -z "$CC"; then
2351 for ac_prog in cl.exe
2353 # Extract the first word of "$ac_prog", so it can be a program name with args.
2354 set dummy $ac_prog; ac_word=$2
2355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 $as_echo_n "checking for $ac_word... " >&6; }
2357 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2358 $as_echo_n "(cached) " >&6
2360 if test -n "$ac_ct_CC"; then
2361 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2370 ac_cv_prog_ac_ct_CC="$ac_prog"
2371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2380 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2381 if test -n "$ac_ct_CC"; then
2382 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2383 $as_echo "$ac_ct_CC" >&6; }
2385 { $as_echo "$as_me:$LINENO: result: no" >&5
2386 $as_echo "no" >&6; }
2390 test -n "$ac_ct_CC" && break
2393 if test "x$ac_ct_CC" = x; then
2396 case $cross_compiling:$ac_tool_warned in
2398 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2399 whose name does not start with the host triplet. If you think this
2400 configuration is useful to you, please write to autoconf@gnu.org." >&5
2401 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2402 whose name does not start with the host triplet. If you think this
2403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2404 ac_tool_warned=yes ;;
2413 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2414 See \`config.log' for more details." >&5
2415 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2416 See \`config.log' for more details." >&2;}
2417 { (exit 1); exit 1; }; }
2419 # Provide some information about the compiler.
2420 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2423 { (ac_try="$ac_compiler --version >&5"
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2429 $as_echo "$ac_try_echo") >&5
2430 (eval "$ac_compiler --version >&5") 2>&5
2432 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }
2434 { (ac_try="$ac_compiler -v >&5"
2436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437 *) ac_try_echo=$ac_try;;
2439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2440 $as_echo "$ac_try_echo") >&5
2441 (eval "$ac_compiler -v >&5") 2>&5
2443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }
2445 { (ac_try="$ac_compiler -V >&5"
2447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2448 *) ac_try_echo=$ac_try;;
2450 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2451 $as_echo "$ac_try_echo") >&5
2452 (eval "$ac_compiler -V >&5") 2>&5
2454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }
2457 cat >conftest.$ac_ext <<_ACEOF
2460 cat confdefs.h >>conftest.$ac_ext
2461 cat >>conftest.$ac_ext <<_ACEOF
2462 /* end confdefs.h. */
2472 ac_clean_files_save=$ac_clean_files
2473 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2474 # Try to create an executable without -o first, disregard a.out.
2475 # It will help us diagnose broken compilers, and finding out an intuition
2477 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2478 $as_echo_n "checking for C compiler default output file name... " >&6; }
2479 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2481 # The possible output files:
2482 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2485 for ac_file in $ac_files
2488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2489 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2494 if { (ac_try="$ac_link_default"
2496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2497 *) ac_try_echo=$ac_try;;
2499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2500 $as_echo "$ac_try_echo") >&5
2501 (eval "$ac_link_default") 2>&5
2503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504 (exit $ac_status); }; then
2505 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2506 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2507 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2508 # so that the user can short-circuit this test for compilers unknown to
2510 for ac_file in $ac_files ''
2512 test -f "$ac_file" || continue
2514 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2517 # We found the default executable, but exeext='' is most
2521 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2523 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2525 # We set ac_cv_exeext here because the later test for it is not
2526 # safe: cross compilers may not add the suffix if given an `-o'
2527 # argument, so we may need to know it at that point already.
2528 # Even if this section looks crufty: it has the advantage of
2535 test "$ac_cv_exeext" = no && ac_cv_exeext=
2541 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2542 $as_echo "$ac_file" >&6; }
2543 if test -z "$ac_file"; then
2544 $as_echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2547 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2548 See \`config.log' for more details." >&5
2549 $as_echo "$as_me: error: C compiler cannot create executables
2550 See \`config.log' for more details." >&2;}
2551 { (exit 77); exit 77; }; }
2554 ac_exeext=$ac_cv_exeext
2556 # Check that the compiler produces executables we can run. If not, either
2557 # the compiler is broken, or we cross compile.
2558 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2559 $as_echo_n "checking whether the C compiler works... " >&6; }
2560 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2561 # If not cross compiling, check that we can run a simple program.
2562 if test "$cross_compiling" != yes; then
2563 if { ac_try='./$ac_file'
2564 { (case "(($ac_try" in
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2569 $as_echo "$ac_try_echo") >&5
2570 (eval "$ac_try") 2>&5
2572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2576 if test "$cross_compiling" = maybe; then
2579 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2580 If you meant to cross compile, use \`--host'.
2581 See \`config.log' for more details." >&5
2582 $as_echo "$as_me: error: cannot run C compiled programs.
2583 If you meant to cross compile, use \`--host'.
2584 See \`config.log' for more details." >&2;}
2585 { (exit 1); exit 1; }; }
2589 { $as_echo "$as_me:$LINENO: result: yes" >&5
2590 $as_echo "yes" >&6; }
2592 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2593 ac_clean_files=$ac_clean_files_save
2594 # Check that the compiler produces executables we can run. If not, either
2595 # the compiler is broken, or we cross compile.
2596 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2597 $as_echo_n "checking whether we are cross compiling... " >&6; }
2598 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2599 $as_echo "$cross_compiling" >&6; }
2601 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2602 $as_echo_n "checking for suffix of executables... " >&6; }
2603 if { (ac_try="$ac_link"
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2608 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2609 $as_echo "$ac_try_echo") >&5
2610 (eval "$ac_link") 2>&5
2612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; then
2614 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2615 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2616 # work properly (i.e., refer to `conftest.exe'), while it won't with
2618 for ac_file in conftest.exe conftest conftest.*; do
2619 test -f "$ac_file" || continue
2621 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2622 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2628 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2629 See \`config.log' for more details." >&5
2630 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2631 See \`config.log' for more details." >&2;}
2632 { (exit 1); exit 1; }; }
2635 rm -f conftest$ac_cv_exeext
2636 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2637 $as_echo "$ac_cv_exeext" >&6; }
2639 rm -f conftest.$ac_ext
2640 EXEEXT=$ac_cv_exeext
2642 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2643 $as_echo_n "checking for suffix of object files... " >&6; }
2644 if test "${ac_cv_objext+set}" = set; then
2645 $as_echo_n "(cached) " >&6
2647 cat >conftest.$ac_ext <<_ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h. */
2662 rm -f conftest.o conftest.obj
2663 if { (ac_try="$ac_compile"
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2669 $as_echo "$ac_try_echo") >&5
2670 (eval "$ac_compile") 2>&5
2672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673 (exit $ac_status); }; then
2674 for ac_file in conftest.o conftest.obj conftest.*; do
2675 test -f "$ac_file" || continue;
2677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2678 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2683 $as_echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2686 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details." >&5
2688 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2689 See \`config.log' for more details." >&2;}
2690 { (exit 1); exit 1; }; }
2693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2695 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2696 $as_echo "$ac_cv_objext" >&6; }
2697 OBJEXT=$ac_cv_objext
2699 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2700 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2701 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2702 $as_echo_n "(cached) " >&6
2704 cat >conftest.$ac_ext <<_ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2722 rm -f conftest.$ac_objext
2723 if { (ac_try="$ac_compile"
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2729 $as_echo "$ac_try_echo") >&5
2730 (eval "$ac_compile") 2>conftest.er1
2732 grep -v '^ *+' conftest.er1 >conftest.err
2734 cat conftest.err >&5
2735 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } && {
2737 test -z "$ac_c_werror_flag" ||
2738 test ! -s conftest.err
2739 } && test -s conftest.$ac_objext; then
2742 $as_echo "$as_me: failed program was:" >&5
2743 sed 's/^/| /' conftest.$ac_ext >&5
2748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2749 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2752 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2753 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2754 if test $ac_compiler_gnu = yes; then
2759 ac_test_CFLAGS=${CFLAGS+set}
2760 ac_save_CFLAGS=$CFLAGS
2761 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2762 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2763 if test "${ac_cv_prog_cc_g+set}" = set; then
2764 $as_echo_n "(cached) " >&6
2766 ac_save_c_werror_flag=$ac_c_werror_flag
2767 ac_c_werror_flag=yes
2770 cat >conftest.$ac_ext <<_ACEOF
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2785 rm -f conftest.$ac_objext
2786 if { (ac_try="$ac_compile"
2788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789 *) ac_try_echo=$ac_try;;
2791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2792 $as_echo "$ac_try_echo") >&5
2793 (eval "$ac_compile") 2>conftest.er1
2795 grep -v '^ *+' conftest.er1 >conftest.err
2797 cat conftest.err >&5
2798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } && {
2800 test -z "$ac_c_werror_flag" ||
2801 test ! -s conftest.err
2802 } && test -s conftest.$ac_objext; then
2805 $as_echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2809 cat >conftest.$ac_ext <<_ACEOF
2812 cat confdefs.h >>conftest.$ac_ext
2813 cat >>conftest.$ac_ext <<_ACEOF
2814 /* end confdefs.h. */
2824 rm -f conftest.$ac_objext
2825 if { (ac_try="$ac_compile"
2827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2828 *) ac_try_echo=$ac_try;;
2830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2831 $as_echo "$ac_try_echo") >&5
2832 (eval "$ac_compile") 2>conftest.er1
2834 grep -v '^ *+' conftest.er1 >conftest.err
2836 cat conftest.err >&5
2837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); } && {
2839 test -z "$ac_c_werror_flag" ||
2840 test ! -s conftest.err
2841 } && test -s conftest.$ac_objext; then
2844 $as_echo "$as_me: failed program was:" >&5
2845 sed 's/^/| /' conftest.$ac_ext >&5
2847 ac_c_werror_flag=$ac_save_c_werror_flag
2849 cat >conftest.$ac_ext <<_ACEOF
2852 cat confdefs.h >>conftest.$ac_ext
2853 cat >>conftest.$ac_ext <<_ACEOF
2854 /* end confdefs.h. */
2864 rm -f conftest.$ac_objext
2865 if { (ac_try="$ac_compile"
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2871 $as_echo "$ac_try_echo") >&5
2872 (eval "$ac_compile") 2>conftest.er1
2874 grep -v '^ *+' conftest.er1 >conftest.err
2876 cat conftest.err >&5
2877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2878 (exit $ac_status); } && {
2879 test -z "$ac_c_werror_flag" ||
2880 test ! -s conftest.err
2881 } && test -s conftest.$ac_objext; then
2884 $as_echo "$as_me: failed program was:" >&5
2885 sed 's/^/| /' conftest.$ac_ext >&5
2890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2897 ac_c_werror_flag=$ac_save_c_werror_flag
2899 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2900 $as_echo "$ac_cv_prog_cc_g" >&6; }
2901 if test "$ac_test_CFLAGS" = set; then
2902 CFLAGS=$ac_save_CFLAGS
2903 elif test $ac_cv_prog_cc_g = yes; then
2904 if test "$GCC" = yes; then
2910 if test "$GCC" = yes; then
2916 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2917 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2918 if test "${ac_cv_prog_cc_c89+set}" = set; then
2919 $as_echo_n "(cached) " >&6
2921 ac_cv_prog_cc_c89=no
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2931 #include <sys/types.h>
2932 #include <sys/stat.h>
2933 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2934 struct buf { int x; };
2935 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2936 static char *e (p, i)
2942 static char *f (char * (*g) (char **, int), char **p, ...)
2947 s = g (p, va_arg (v,int));
2952 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2953 function prototypes and stuff, but not '\xHH' hex character constants.
2954 These don't provoke an error unfortunately, instead are silently treated
2955 as 'x'. The following induces an error, until -std is added to get
2956 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2957 array size at least. It's necessary to write '\x00'==0 to get something
2958 that's true only with -std. */
2959 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2961 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2962 inside strings and character constants. */
2964 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2966 int test (int i, double x);
2967 struct s1 {int (*f) (int a);};
2968 struct s2 {int (*f) (double a);};
2969 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2975 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2980 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2981 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2983 CC="$ac_save_CC $ac_arg"
2984 rm -f conftest.$ac_objext
2985 if { (ac_try="$ac_compile"
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2991 $as_echo "$ac_try_echo") >&5
2992 (eval "$ac_compile") 2>conftest.er1
2994 grep -v '^ *+' conftest.er1 >conftest.err
2996 cat conftest.err >&5
2997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998 (exit $ac_status); } && {
2999 test -z "$ac_c_werror_flag" ||
3000 test ! -s conftest.err
3001 } && test -s conftest.$ac_objext; then
3002 ac_cv_prog_cc_c89=$ac_arg
3004 $as_echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3010 rm -f core conftest.err conftest.$ac_objext
3011 test "x$ac_cv_prog_cc_c89" != "xno" && break
3013 rm -f conftest.$ac_ext
3018 case "x$ac_cv_prog_cc_c89" in
3020 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3021 $as_echo "none needed" >&6; } ;;
3023 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3024 $as_echo "unsupported" >&6; } ;;
3026 CC="$CC $ac_cv_prog_cc_c89"
3027 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3028 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3033 ac_cpp='$CPP $CPPFLAGS'
3034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3039 ac_cpp='$CXXCPP $CPPFLAGS'
3040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3043 if test -z "$CXX"; then
3044 if test -n "$CCC"; then
3047 if test -n "$ac_tool_prefix"; then
3048 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3050 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3051 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3052 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if test "${ac_cv_prog_CXX+set}" = set; then
3055 $as_echo_n "(cached) " >&6
3057 if test -n "$CXX"; then
3058 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3067 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3068 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3078 if test -n "$CXX"; then
3079 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3080 $as_echo "$CXX" >&6; }
3082 { $as_echo "$as_me:$LINENO: result: no" >&5
3083 $as_echo "no" >&6; }
3087 test -n "$CXX" && break
3090 if test -z "$CXX"; then
3092 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3094 # Extract the first word of "$ac_prog", so it can be a program name with args.
3095 set dummy $ac_prog; ac_word=$2
3096 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 $as_echo_n "checking for $ac_word... " >&6; }
3098 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3099 $as_echo_n "(cached) " >&6
3101 if test -n "$ac_ct_CXX"; then
3102 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 test -z "$as_dir" && as_dir=.
3109 for ac_exec_ext in '' $ac_executable_extensions; do
3110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3111 ac_cv_prog_ac_ct_CXX="$ac_prog"
3112 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3122 if test -n "$ac_ct_CXX"; then
3123 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3124 $as_echo "$ac_ct_CXX" >&6; }
3126 { $as_echo "$as_me:$LINENO: result: no" >&5
3127 $as_echo "no" >&6; }
3131 test -n "$ac_ct_CXX" && break
3134 if test "x$ac_ct_CXX" = x; then
3137 case $cross_compiling:$ac_tool_warned in
3139 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3140 whose name does not start with the host triplet. If you think this
3141 configuration is useful to you, please write to autoconf@gnu.org." >&5
3142 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3143 whose name does not start with the host triplet. If you think this
3144 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3145 ac_tool_warned=yes ;;
3153 # Provide some information about the compiler.
3154 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3157 { (ac_try="$ac_compiler --version >&5"
3159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3160 *) ac_try_echo=$ac_try;;
3162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3163 $as_echo "$ac_try_echo") >&5
3164 (eval "$ac_compiler --version >&5") 2>&5
3166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3167 (exit $ac_status); }
3168 { (ac_try="$ac_compiler -v >&5"
3170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3171 *) ac_try_echo=$ac_try;;
3173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3174 $as_echo "$ac_try_echo") >&5
3175 (eval "$ac_compiler -v >&5") 2>&5
3177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }
3179 { (ac_try="$ac_compiler -V >&5"
3181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3182 *) ac_try_echo=$ac_try;;
3184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3185 $as_echo "$ac_try_echo") >&5
3186 (eval "$ac_compiler -V >&5") 2>&5
3188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }
3191 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3192 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3193 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3194 $as_echo_n "(cached) " >&6
3196 cat >conftest.$ac_ext <<_ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3221 $as_echo "$ac_try_echo") >&5
3222 (eval "$ac_compile") 2>conftest.er1
3224 grep -v '^ *+' conftest.er1 >conftest.err
3226 cat conftest.err >&5
3227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } && {
3229 test -z "$ac_cxx_werror_flag" ||
3230 test ! -s conftest.err
3231 } && test -s conftest.$ac_objext; then
3234 $as_echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3244 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3245 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3246 if test $ac_compiler_gnu = yes; then
3251 ac_test_CXXFLAGS=${CXXFLAGS+set}
3252 ac_save_CXXFLAGS=$CXXFLAGS
3253 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3254 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3255 if test "${ac_cv_prog_cxx_g+set}" = set; then
3256 $as_echo_n "(cached) " >&6
3258 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3259 ac_cxx_werror_flag=yes
3262 cat >conftest.$ac_ext <<_ACEOF
3265 cat confdefs.h >>conftest.$ac_ext
3266 cat >>conftest.$ac_ext <<_ACEOF
3267 /* end confdefs.h. */
3277 rm -f conftest.$ac_objext
3278 if { (ac_try="$ac_compile"
3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3281 *) ac_try_echo=$ac_try;;
3283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3284 $as_echo "$ac_try_echo") >&5
3285 (eval "$ac_compile") 2>conftest.er1
3287 grep -v '^ *+' conftest.er1 >conftest.err
3289 cat conftest.err >&5
3290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } && {
3292 test -z "$ac_cxx_werror_flag" ||
3293 test ! -s conftest.err
3294 } && test -s conftest.$ac_objext; then
3295 ac_cv_prog_cxx_g=yes
3297 $as_echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3323 $as_echo "$ac_try_echo") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3326 grep -v '^ *+' conftest.er1 >conftest.err
3328 cat conftest.err >&5
3329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330 (exit $ac_status); } && {
3331 test -z "$ac_cxx_werror_flag" ||
3332 test ! -s conftest.err
3333 } && test -s conftest.$ac_objext; then
3336 $as_echo "$as_me: failed program was:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3339 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3341 cat >conftest.$ac_ext <<_ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3356 rm -f conftest.$ac_objext
3357 if { (ac_try="$ac_compile"
3359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3360 *) ac_try_echo=$ac_try;;
3362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3363 $as_echo "$ac_try_echo") >&5
3364 (eval "$ac_compile") 2>conftest.er1
3366 grep -v '^ *+' conftest.er1 >conftest.err
3368 cat conftest.err >&5
3369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); } && {
3371 test -z "$ac_cxx_werror_flag" ||
3372 test ! -s conftest.err
3373 } && test -s conftest.$ac_objext; then
3374 ac_cv_prog_cxx_g=yes
3376 $as_echo "$as_me: failed program was:" >&5
3377 sed 's/^/| /' conftest.$ac_ext >&5
3382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3391 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3392 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3393 if test "$ac_test_CXXFLAGS" = set; then
3394 CXXFLAGS=$ac_save_CXXFLAGS
3395 elif test $ac_cv_prog_cxx_g = yes; then
3396 if test "$GXX" = yes; then
3402 if test "$GXX" = yes; then
3409 ac_cpp='$CPP $CPPFLAGS'
3410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3417 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3418 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3420 cat > conftest.c << EOF
3424 int main (int argc, char*argv)
3434 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3435 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3436 { $as_echo "$as_me:$LINENO: result: yes" >&5
3437 $as_echo "yes" >&6; }
3441 echo "configure: failed program was:" >&5
3443 { $as_echo "$as_me:$LINENO: result: no" >&5
3444 $as_echo "no" >&6; }
3449 if test "x$GCC_IS_OK" '=' "x";then
3450 echo "***************************************************"
3451 echo "* Your gcc is too old to compile this!"
3453 echo "* The last version compilable by this compiler is "
3454 echo "* swftools 0.7.0, which you can download from "
3455 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3457 echo "* Newer versions require at least gcc 3.0.0 "
3458 echo "***************************************************"
3462 if test "x$CHECKMEM" '!=' "x";then
3466 #unset ac_cv_prog_CC
3467 #unset ac_cv_prog_CXX
3472 ac_cpp='$CPP $CPPFLAGS'
3473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3477 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3478 # On Suns, sometimes $CPP names a directory.
3479 if test -n "$CPP" && test -d "$CPP"; then
3482 if test -z "$CPP"; then
3483 if test "${ac_cv_prog_CPP+set}" = set; then
3484 $as_echo_n "(cached) " >&6
3486 # Double quotes because CPP needs to be expanded
3487 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3490 for ac_c_preproc_warn_flag in '' yes
3492 # Use a header file that comes with gcc, so configuring glibc
3493 # with a fresh cross-compiler works.
3494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3495 # <limits.h> exists even on freestanding compilers.
3496 # On the NeXT, cc -E runs the code through the compiler's parser,
3497 # not just through cpp. "Syntax error" is here to catch this case.
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3505 # include <limits.h>
3507 # include <assert.h>
3511 if { (ac_try="$ac_cpp conftest.$ac_ext"
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3517 $as_echo "$ac_try_echo") >&5
3518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3520 grep -v '^ *+' conftest.er1 >conftest.err
3522 cat conftest.err >&5
3523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524 (exit $ac_status); } >/dev/null && {
3525 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3526 test ! -s conftest.err
3530 $as_echo "$as_me: failed program was:" >&5
3531 sed 's/^/| /' conftest.$ac_ext >&5
3533 # Broken: fails on valid input.
3537 rm -f conftest.err conftest.$ac_ext
3539 # OK, works on sane cases. Now check whether nonexistent headers
3540 # can be detected and how.
3541 cat >conftest.$ac_ext <<_ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h. */
3547 #include <ac_nonexistent.h>
3549 if { (ac_try="$ac_cpp conftest.$ac_ext"
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3555 $as_echo "$ac_try_echo") >&5
3556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3558 grep -v '^ *+' conftest.er1 >conftest.err
3560 cat conftest.err >&5
3561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); } >/dev/null && {
3563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3564 test ! -s conftest.err
3566 # Broken: success on invalid input.
3569 $as_echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3572 # Passes both tests.
3577 rm -f conftest.err conftest.$ac_ext
3580 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3581 rm -f conftest.err conftest.$ac_ext
3582 if $ac_preproc_ok; then
3594 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3595 $as_echo "$CPP" >&6; }
3597 for ac_c_preproc_warn_flag in '' yes
3599 # Use a header file that comes with gcc, so configuring glibc
3600 # with a fresh cross-compiler works.
3601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3602 # <limits.h> exists even on freestanding compilers.
3603 # On the NeXT, cc -E runs the code through the compiler's parser,
3604 # not just through cpp. "Syntax error" is here to catch this case.
3605 cat >conftest.$ac_ext <<_ACEOF
3608 cat confdefs.h >>conftest.$ac_ext
3609 cat >>conftest.$ac_ext <<_ACEOF
3610 /* end confdefs.h. */
3612 # include <limits.h>
3614 # include <assert.h>
3618 if { (ac_try="$ac_cpp conftest.$ac_ext"
3620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3621 *) ac_try_echo=$ac_try;;
3623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3624 $as_echo "$ac_try_echo") >&5
3625 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3627 grep -v '^ *+' conftest.er1 >conftest.err
3629 cat conftest.err >&5
3630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); } >/dev/null && {
3632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3633 test ! -s conftest.err
3637 $as_echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3640 # Broken: fails on valid input.
3644 rm -f conftest.err conftest.$ac_ext
3646 # OK, works on sane cases. Now check whether nonexistent headers
3647 # can be detected and how.
3648 cat >conftest.$ac_ext <<_ACEOF
3651 cat confdefs.h >>conftest.$ac_ext
3652 cat >>conftest.$ac_ext <<_ACEOF
3653 /* end confdefs.h. */
3654 #include <ac_nonexistent.h>
3656 if { (ac_try="$ac_cpp conftest.$ac_ext"
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3662 $as_echo "$ac_try_echo") >&5
3663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } >/dev/null && {
3670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3671 test ! -s conftest.err
3673 # Broken: success on invalid input.
3676 $as_echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 # Passes both tests.
3684 rm -f conftest.err conftest.$ac_ext
3687 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3688 rm -f conftest.err conftest.$ac_ext
3689 if $ac_preproc_ok; then
3692 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3693 See \`config.log' for more details." >&5
3694 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3695 See \`config.log' for more details." >&2;}
3696 { (exit 1); exit 1; }; }
3700 ac_cpp='$CPP $CPPFLAGS'
3701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3706 if test -n "$ac_tool_prefix"; then
3707 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3708 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3709 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if test "${ac_cv_prog_RANLIB+set}" = set; then
3712 $as_echo_n "(cached) " >&6
3714 if test -n "$RANLIB"; then
3715 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3724 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3725 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 RANLIB=$ac_cv_prog_RANLIB
3735 if test -n "$RANLIB"; then
3736 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3737 $as_echo "$RANLIB" >&6; }
3739 { $as_echo "$as_me:$LINENO: result: no" >&5
3740 $as_echo "no" >&6; }
3745 if test -z "$ac_cv_prog_RANLIB"; then
3746 ac_ct_RANLIB=$RANLIB
3747 # Extract the first word of "ranlib", so it can be a program name with args.
3748 set dummy ranlib; ac_word=$2
3749 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3750 $as_echo_n "checking for $ac_word... " >&6; }
3751 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3752 $as_echo_n "(cached) " >&6
3754 if test -n "$ac_ct_RANLIB"; then
3755 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3764 ac_cv_prog_ac_ct_RANLIB="ranlib"
3765 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3775 if test -n "$ac_ct_RANLIB"; then
3776 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3777 $as_echo "$ac_ct_RANLIB" >&6; }
3779 { $as_echo "$as_me:$LINENO: result: no" >&5
3780 $as_echo "no" >&6; }
3783 if test "x$ac_ct_RANLIB" = x; then
3786 case $cross_compiling:$ac_tool_warned in
3788 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3789 whose name does not start with the host triplet. If you think this
3790 configuration is useful to you, please write to autoconf@gnu.org." >&5
3791 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3792 whose name does not start with the host triplet. If you think this
3793 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3794 ac_tool_warned=yes ;;
3796 RANLIB=$ac_ct_RANLIB
3799 RANLIB="$ac_cv_prog_RANLIB"
3802 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3803 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3805 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3806 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3807 $as_echo_n "(cached) " >&6
3809 cat >conftest.make <<\_ACEOF
3812 @echo '@@@%%%=$(MAKE)=@@@%%%'
3814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3815 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3817 eval ac_cv_prog_make_${ac_make}_set=yes;;
3819 eval ac_cv_prog_make_${ac_make}_set=no;;
3823 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3824 { $as_echo "$as_me:$LINENO: result: yes" >&5
3825 $as_echo "yes" >&6; }
3828 { $as_echo "$as_me:$LINENO: result: no" >&5
3829 $as_echo "no" >&6; }
3830 SET_MAKE="MAKE=${MAKE-make}"
3833 # Find a good install program. We prefer a C program (faster),
3834 # so one script is as good as another. But avoid the broken or
3835 # incompatible versions:
3836 # SysV /etc/install, /usr/sbin/install
3837 # SunOS /usr/etc/install
3838 # IRIX /sbin/install
3840 # AmigaOS /C/install, which installs bootblocks on floppy discs
3841 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3842 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3843 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3844 # OS/2's system install, which has a completely different semantic
3845 # ./install, which can be erroneously created by make from ./install.sh.
3846 # Reject install programs that cannot install multiple files.
3847 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3848 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3849 if test -z "$INSTALL"; then
3850 if test "${ac_cv_path_install+set}" = set; then
3851 $as_echo_n "(cached) " >&6
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 # Account for people who put trailing slashes in PATH elements.
3860 ./ | .// | /cC/* | \
3861 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3862 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3865 # OSF1 and SCO ODT 3.0 have their own names for install.
3866 # Don't use installbsd from OSF since it installs stuff as root
3868 for ac_prog in ginstall scoinst install; do
3869 for ac_exec_ext in '' $ac_executable_extensions; do
3870 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3871 if test $ac_prog = install &&
3872 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3873 # AIX install. It has an incompatible calling convention.
3875 elif test $ac_prog = install &&
3876 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3877 # program-specific install script used by HP pwplus--don't use.
3880 rm -rf conftest.one conftest.two conftest.dir
3881 echo one > conftest.one
3882 echo two > conftest.two
3884 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3885 test -s conftest.one && test -s conftest.two &&
3886 test -s conftest.dir/conftest.one &&
3887 test -s conftest.dir/conftest.two
3889 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3902 rm -rf conftest.one conftest.two conftest.dir
3905 if test "${ac_cv_path_install+set}" = set; then
3906 INSTALL=$ac_cv_path_install
3908 # As a last resort, use the slow shell script. Don't cache a
3909 # value for INSTALL within a source directory, because that will
3910 # break other packages using the cache if that directory is
3911 # removed, or if the value is a relative name.
3912 INSTALL=$ac_install_sh
3915 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3916 $as_echo "$INSTALL" >&6; }
3918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3919 # It thinks the first close brace ends the variable substitution.
3920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3924 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3926 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3927 $as_echo_n "checking whether ln -s works... " >&6; }
3929 if test "$LN_S" = "ln -s"; then
3930 { $as_echo "$as_me:$LINENO: result: yes" >&5
3931 $as_echo "yes" >&6; }
3933 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3934 $as_echo "no, using $LN_S" >&6; }
3937 for ac_prog in gzip uncompress compress
3939 # Extract the first word of "$ac_prog", so it can be a program name with args.
3940 set dummy $ac_prog; ac_word=$2
3941 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3944 $as_echo_n "(cached) " >&6
3946 if test -n "$UNCOMPRESS"; then
3947 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 test -z "$as_dir" && as_dir=.
3954 for ac_exec_ext in '' $ac_executable_extensions; do
3955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3956 ac_cv_prog_UNCOMPRESS="$ac_prog"
3957 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3967 if test -n "$UNCOMPRESS"; then
3968 { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3969 $as_echo "$UNCOMPRESS" >&6; }
3971 { $as_echo "$as_me:$LINENO: result: no" >&5
3972 $as_echo "no" >&6; }
3976 test -n "$UNCOMPRESS" && break
3982 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3983 if test -n "$ac_tool_prefix"; then
3984 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3985 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3986 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3987 $as_echo_n "checking for $ac_word... " >&6; }
3988 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3989 $as_echo_n "(cached) " >&6
3993 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 test -z "$as_dir" && as_dir=.
4001 for ac_exec_ext in '' $ac_executable_extensions; do
4002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4003 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4004 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4015 if test -n "$PKG_CONFIG"; then
4016 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4017 $as_echo "$PKG_CONFIG" >&6; }
4019 { $as_echo "$as_me:$LINENO: result: no" >&5
4020 $as_echo "no" >&6; }
4025 if test -z "$ac_cv_path_PKG_CONFIG"; then
4026 ac_pt_PKG_CONFIG=$PKG_CONFIG
4027 # Extract the first word of "pkg-config", so it can be a program name with args.
4028 set dummy pkg-config; ac_word=$2
4029 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4032 $as_echo_n "(cached) " >&6
4034 case $ac_pt_PKG_CONFIG in
4036 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4046 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4057 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4058 if test -n "$ac_pt_PKG_CONFIG"; then
4059 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4060 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4062 { $as_echo "$as_me:$LINENO: result: no" >&5
4063 $as_echo "no" >&6; }
4066 if test "x$ac_pt_PKG_CONFIG" = x; then
4069 case $cross_compiling:$ac_tool_warned in
4071 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4072 whose name does not start with the host triplet. If you think this
4073 configuration is useful to you, please write to autoconf@gnu.org." >&5
4074 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4075 whose name does not start with the host triplet. If you think this
4076 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4077 ac_tool_warned=yes ;;
4079 PKG_CONFIG=$ac_pt_PKG_CONFIG
4082 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4086 if test -n "$PKG_CONFIG"; then
4087 _pkg_min_version=0.9.0
4088 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4089 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4090 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4091 { $as_echo "$as_me:$LINENO: result: yes" >&5
4092 $as_echo "yes" >&6; }
4094 { $as_echo "$as_me:$LINENO: result: no" >&5
4095 $as_echo "no" >&6; }
4107 if test "x$EXEEXT" = "x.exe";then
4116 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4117 $as_echo_n "checking host system type... " >&6; }
4118 if test "${ac_cv_host+set}" = set; then
4119 $as_echo_n "(cached) " >&6
4121 if test "x$host_alias" = x; then
4122 ac_cv_host=$ac_cv_build
4124 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4125 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4126 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4127 { (exit 1); exit 1; }; }
4131 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4132 $as_echo "$ac_cv_host" >&6; }
4135 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4136 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4137 { (exit 1); exit 1; }; };;
4140 ac_save_IFS=$IFS; IFS='-'
4146 # Remember, the first character of IFS is used to create $*,
4147 # except with old shells:
4150 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4155 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4156 $as_echo_n "checking for target system... " >&6; }
4160 *cygwin* ) CYGWIN=yes;;
4161 *mingw* ) MINGW=yes;;
4165 if test "x$MINGW" = "xyes"; then
4166 #fix for the debian distribution of mingw
4167 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4168 AR="/usr/i586-mingw32msvc/bin/ar"
4170 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4171 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4173 #fix for the gentoo distribution of mingw
4174 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4175 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4177 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4178 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4180 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4181 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4187 if test "x${CYGWIN}" = "xyes"; then
4189 cat >>confdefs.h <<\_ACEOF
4193 { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4194 $as_echo "cygwin" >&6; }
4196 if test "x${MINGW}" = "xyes"; then
4198 cat >>confdefs.h <<\_ACEOF
4204 cat >>confdefs.h <<\_ACEOF
4208 LIBS="$LIBS -lws2_32 -lgdi32"
4209 { $as_echo "$as_me:$LINENO: result: mingw" >&5
4210 $as_echo "mingw" >&6; }
4215 cat >>confdefs.h <<\_ACEOF
4219 { $as_echo "$as_me:$LINENO: result: " >&5
4226 if test "x${MINGW}" != "xyes"; then
4229 cat >>confdefs.h <<\_ACEOF
4242 # The following tries to make use of includes and libraries in
4243 # /usr/local, too. Notice: A -I/usr/local/include might break
4244 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4245 # especially on systems which link /usr/local to /usr, so it has yet
4246 # to be seen how useful this is.
4247 if test -d /usr/local/lib; then
4248 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4250 if test -d /usr/local/include; then
4251 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4252 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4255 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4256 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4257 # and $prefix/include, which should be included in our search paths for libraries
4259 LDFLAGS="$LDFLAGS -L${libdir}"
4260 CPPFLAGS="$CPPFLAGS -I${includedir}"
4261 # TODO- test whether gcc still works after this
4265 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4268 # this must be done after (I believe) AC_PROG_MAKE_SET
4269 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4270 STRIP="@echo debug enabled, not stripping "
4277 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4278 $as_echo_n "checking for sin in -lm... " >&6; }
4279 if test "${ac_cv_lib_m_sin+set}" = set; then
4280 $as_echo_n "(cached) " >&6
4282 ac_check_lib_save_LIBS=$LIBS
4284 cat >conftest.$ac_ext <<_ACEOF
4287 cat confdefs.h >>conftest.$ac_ext
4288 cat >>conftest.$ac_ext <<_ACEOF
4289 /* end confdefs.h. */
4291 /* Override any GCC internal prototype to avoid an error.
4292 Use char because int might match the return type of a GCC
4293 builtin and then its argument prototype would still apply. */
4306 rm -f conftest.$ac_objext conftest$ac_exeext
4307 if { (ac_try="$ac_link"
4309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4310 *) ac_try_echo=$ac_try;;
4312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4313 $as_echo "$ac_try_echo") >&5
4314 (eval "$ac_link") 2>conftest.er1
4316 grep -v '^ *+' conftest.er1 >conftest.err
4318 cat conftest.err >&5
4319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4320 (exit $ac_status); } && {
4321 test -z "$ac_c_werror_flag" ||
4322 test ! -s conftest.err
4323 } && test -s conftest$ac_exeext && {
4324 test "$cross_compiling" = yes ||
4325 $as_test_x conftest$ac_exeext
4329 $as_echo "$as_me: failed program was:" >&5
4330 sed 's/^/| /' conftest.$ac_ext >&5
4335 rm -rf conftest.dSYM
4336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4337 conftest$ac_exeext conftest.$ac_ext
4338 LIBS=$ac_check_lib_save_LIBS
4340 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4341 $as_echo "$ac_cv_lib_m_sin" >&6; }
4342 if test $ac_cv_lib_m_sin = yes; then
4343 cat >>confdefs.h <<_ACEOF
4350 echo "Error: Math library not found.";
4356 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4357 $as_echo_n "checking for deflate in -lz... " >&6; }
4358 if test "${ac_cv_lib_z_deflate+set}" = set; then
4359 $as_echo_n "(cached) " >&6
4361 ac_check_lib_save_LIBS=$LIBS
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4370 /* Override any GCC internal prototype to avoid an error.
4371 Use char because int might match the return type of a GCC
4372 builtin and then its argument prototype would still apply. */
4385 rm -f conftest.$ac_objext conftest$ac_exeext
4386 if { (ac_try="$ac_link"
4388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389 *) ac_try_echo=$ac_try;;
4391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4392 $as_echo "$ac_try_echo") >&5
4393 (eval "$ac_link") 2>conftest.er1
4395 grep -v '^ *+' conftest.er1 >conftest.err
4397 cat conftest.err >&5
4398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4399 (exit $ac_status); } && {
4400 test -z "$ac_c_werror_flag" ||
4401 test ! -s conftest.err
4402 } && test -s conftest$ac_exeext && {
4403 test "$cross_compiling" = yes ||
4404 $as_test_x conftest$ac_exeext
4406 ac_cv_lib_z_deflate=yes
4408 $as_echo "$as_me: failed program was:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 ac_cv_lib_z_deflate=no
4414 rm -rf conftest.dSYM
4415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4416 conftest$ac_exeext conftest.$ac_ext
4417 LIBS=$ac_check_lib_save_LIBS
4419 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4420 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4421 if test $ac_cv_lib_z_deflate = yes; then
4422 cat >>confdefs.h <<_ACEOF
4433 if test "x$ZLIBMISSING" = "xtrue";then
4436 echo "You need zlib to compile swftools"
4442 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4443 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4444 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4445 $as_echo_n "(cached) " >&6
4447 ac_check_lib_save_LIBS=$LIBS
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4456 /* Override any GCC internal prototype to avoid an error.
4457 Use char because int might match the return type of a GCC
4458 builtin and then its argument prototype would still apply. */
4462 char jpeg_write_raw_data ();
4466 return jpeg_write_raw_data ();
4471 rm -f conftest.$ac_objext conftest$ac_exeext
4472 if { (ac_try="$ac_link"
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4478 $as_echo "$ac_try_echo") >&5
4479 (eval "$ac_link") 2>conftest.er1
4481 grep -v '^ *+' conftest.er1 >conftest.err
4483 cat conftest.err >&5
4484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } && {
4486 test -z "$ac_c_werror_flag" ||
4487 test ! -s conftest.err
4488 } && test -s conftest$ac_exeext && {
4489 test "$cross_compiling" = yes ||
4490 $as_test_x conftest$ac_exeext
4492 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4494 $as_echo "$as_me: failed program was:" >&5
4495 sed 's/^/| /' conftest.$ac_ext >&5
4497 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4500 rm -rf conftest.dSYM
4501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4502 conftest$ac_exeext conftest.$ac_ext
4503 LIBS=$ac_check_lib_save_LIBS
4505 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4506 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4507 if test $ac_cv_lib_jpeg_jpeg_write_raw_data = yes; then
4508 cat >>confdefs.h <<_ACEOF
4509 #define HAVE_LIBJPEG 1
4519 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4520 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4521 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4522 $as_echo_n "(cached) " >&6
4524 ac_check_lib_save_LIBS=$LIBS
4525 LIBS="-lungif $LIBS"
4526 cat >conftest.$ac_ext <<_ACEOF
4529 cat confdefs.h >>conftest.$ac_ext
4530 cat >>conftest.$ac_ext <<_ACEOF
4531 /* end confdefs.h. */
4533 /* Override any GCC internal prototype to avoid an error.
4534 Use char because int might match the return type of a GCC
4535 builtin and then its argument prototype would still apply. */
4548 rm -f conftest.$ac_objext conftest$ac_exeext
4549 if { (ac_try="$ac_link"
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4555 $as_echo "$ac_try_echo") >&5
4556 (eval "$ac_link") 2>conftest.er1
4558 grep -v '^ *+' conftest.er1 >conftest.err
4560 cat conftest.err >&5
4561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } && {
4563 test -z "$ac_c_werror_flag" ||
4564 test ! -s conftest.err
4565 } && test -s conftest$ac_exeext && {
4566 test "$cross_compiling" = yes ||
4567 $as_test_x conftest$ac_exeext
4569 ac_cv_lib_ungif_DGifOpen=yes
4571 $as_echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.$ac_ext >&5
4574 ac_cv_lib_ungif_DGifOpen=no
4577 rm -rf conftest.dSYM
4578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4579 conftest$ac_exeext conftest.$ac_ext
4580 LIBS=$ac_check_lib_save_LIBS
4582 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4583 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4584 if test $ac_cv_lib_ungif_DGifOpen = yes; then
4585 cat >>confdefs.h <<_ACEOF
4586 #define HAVE_LIBUNGIF 1
4589 LIBS="-lungif $LIBS"
4595 if test "$UNGIFMISSING";then
4598 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4599 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4600 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4601 $as_echo_n "(cached) " >&6
4603 ac_check_lib_save_LIBS=$LIBS
4605 cat >conftest.$ac_ext <<_ACEOF
4608 cat confdefs.h >>conftest.$ac_ext
4609 cat >>conftest.$ac_ext <<_ACEOF
4610 /* end confdefs.h. */
4612 /* Override any GCC internal prototype to avoid an error.
4613 Use char because int might match the return type of a GCC
4614 builtin and then its argument prototype would still apply. */
4627 rm -f conftest.$ac_objext conftest$ac_exeext
4628 if { (ac_try="$ac_link"
4630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4631 *) ac_try_echo=$ac_try;;
4633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4634 $as_echo "$ac_try_echo") >&5
4635 (eval "$ac_link") 2>conftest.er1
4637 grep -v '^ *+' conftest.er1 >conftest.err
4639 cat conftest.err >&5
4640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); } && {
4642 test -z "$ac_c_werror_flag" ||
4643 test ! -s conftest.err
4644 } && test -s conftest$ac_exeext && {
4645 test "$cross_compiling" = yes ||
4646 $as_test_x conftest$ac_exeext
4648 ac_cv_lib_gif_DGifOpen=yes
4650 $as_echo "$as_me: failed program was:" >&5
4651 sed 's/^/| /' conftest.$ac_ext >&5
4653 ac_cv_lib_gif_DGifOpen=no
4656 rm -rf conftest.dSYM
4657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4658 conftest$ac_exeext conftest.$ac_ext
4659 LIBS=$ac_check_lib_save_LIBS
4661 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4662 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4663 if test $ac_cv_lib_gif_DGifOpen = yes; then
4664 cat >>confdefs.h <<_ACEOF
4665 #define HAVE_LIBGIF 1
4677 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4678 $as_echo_n "checking for byte order... " >&6; }
4679 if test "$cross_compiling" = yes; then
4682 cat >conftest.$ac_ext <<_ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4689 int main (int argc, char *argv[])
4696 rm -f conftest$ac_exeext
4697 if { (ac_try="$ac_link"
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4703 $as_echo "$ac_try_echo") >&5
4704 (eval "$ac_link") 2>&5
4706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4708 { (case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4713 $as_echo "$ac_try_echo") >&5
4714 (eval "$ac_try") 2>&5
4716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4717 (exit $ac_status); }; }; then
4720 $as_echo "$as_me: program exited with status $ac_status" >&5
4721 $as_echo "$as_me: failed program was:" >&5
4722 sed 's/^/| /' conftest.$ac_ext >&5
4727 rm -rf conftest.dSYM
4728 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4734 if test "x${CROSSCOMPILE}" = "x1"; then
4735 { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4736 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4737 { $as_echo "$as_me:$LINENO: checking target system type" >&5
4738 $as_echo_n "checking target system type... " >&6; }
4739 if test "${ac_cv_target+set}" = set; then
4740 $as_echo_n "(cached) " >&6
4742 if test "x$target_alias" = x; then
4743 ac_cv_target=$ac_cv_host
4745 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4746 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4747 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4748 { (exit 1); exit 1; }; }
4752 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4753 $as_echo "$ac_cv_target" >&6; }
4754 case $ac_cv_target in
4756 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4757 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4758 { (exit 1); exit 1; }; };;
4760 target=$ac_cv_target
4761 ac_save_IFS=$IFS; IFS='-'
4767 # Remember, the first character of IFS is used to create $*,
4768 # except with old shells:
4771 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4774 # The aliases save the names the user supplied, while $host etc.
4775 # will get canonicalized.
4776 test -n "$target_alias" &&
4777 test "$program_prefix$program_suffix$program_transform_name" = \
4779 program_prefix=${target_alias}-
4780 { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4781 $as_echo_n "checking for byte order, try 2... " >&6; }
4786 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4793 if test "x${LITTLEENDIAN}" = "x1"; then
4794 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4795 $as_echo "little endian" >&6; }
4799 if test "x${BIGENDIAN}" = "x1"; then
4800 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4801 $as_echo "big endian" >&6; }
4804 export WORDS_BIGENDIAN
4806 cat >>confdefs.h <<\_ACEOF
4807 #define WORDS_BIGENDIAN 1
4811 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4812 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4813 $as_echo "unknown" >&6; }
4814 echo Byte order could not determined.
4820 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4821 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4822 if test "$cross_compiling" = yes; then
4825 cat >conftest.$ac_ext <<_ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4833 int main (int argc, char*argv[])
4835 return system("test `touch config.tmp2`");
4839 rm -f conftest$ac_exeext
4840 if { (ac_try="$ac_link"
4842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4843 *) ac_try_echo=$ac_try;;
4845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4846 $as_echo "$ac_try_echo") >&5
4847 (eval "$ac_link") 2>&5
4849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4851 { (case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4856 $as_echo "$ac_try_echo") >&5
4857 (eval "$ac_try") 2>&5
4859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4863 $as_echo "$as_me: program exited with status $ac_status" >&5
4864 $as_echo "$as_me: failed program was:" >&5
4865 sed 's/^/| /' conftest.$ac_ext >&5
4868 rm -rf conftest.dSYM
4869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4874 if test "x${OK}" = "xOK";then
4875 test -f config.tmp2 || OK=
4878 if test "x${CROSSCOMPILE}" = "x1";then
4881 if test "x${OK}" = "xOK";then
4883 { $as_echo "$as_me:$LINENO: result: yes" >&5
4884 $as_echo "yes" >&6; }
4886 export SYSTEM_BACKTICKS
4888 cat >>confdefs.h <<\_ACEOF
4889 #define SYSTEM_BACKTICKS 1
4893 { $as_echo "$as_me:$LINENO: result: no" >&5
4894 $as_echo "no" >&6; }
4899 test "$program_prefix" != NONE &&
4900 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4901 # Use a double $ so make ignores it.
4902 test "$program_suffix" != NONE &&
4903 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4904 # Double any \ or $.
4905 # By default was `s,x,x', remove it if useless.
4906 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4907 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4910 ac_config_headers="$ac_config_headers config.h"
4918 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4919 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4920 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4921 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4923 $as_echo_n "(cached) " >&6
4925 cat >conftest.$ac_ext <<_ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 #include <sys/types.h>
4943 rm -f conftest.$ac_objext
4944 if { (ac_try="$ac_compile"
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4950 $as_echo "$ac_try_echo") >&5
4951 (eval "$ac_compile") 2>conftest.er1
4953 grep -v '^ *+' conftest.er1 >conftest.err
4955 cat conftest.err >&5
4956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } && {
4958 test -z "$ac_c_werror_flag" ||
4959 test ! -s conftest.err
4960 } && test -s conftest.$ac_objext; then
4961 eval "$as_ac_Header=yes"
4963 $as_echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4966 eval "$as_ac_Header=no"
4969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971 ac_res=`eval 'as_val=${'$as_ac_Header'}
4972 $as_echo "$as_val"'`
4973 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4974 $as_echo "$ac_res" >&6; }
4975 if test `eval 'as_val=${'$as_ac_Header'}
4976 $as_echo "$as_val"'` = yes; then
4977 cat >>confdefs.h <<_ACEOF
4978 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4981 ac_header_dirent=$ac_hdr; break
4985 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4986 if test $ac_header_dirent = dirent.h; then
4987 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4988 $as_echo_n "checking for library containing opendir... " >&6; }
4989 if test "${ac_cv_search_opendir+set}" = set; then
4990 $as_echo_n "(cached) " >&6
4992 ac_func_search_save_LIBS=$LIBS
4993 cat >conftest.$ac_ext <<_ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
5000 /* Override any GCC internal prototype to avoid an error.
5001 Use char because int might match the return type of a GCC
5002 builtin and then its argument prototype would still apply. */
5015 for ac_lib in '' dir; do
5016 if test -z "$ac_lib"; then
5017 ac_res="none required"
5020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5022 rm -f conftest.$ac_objext conftest$ac_exeext
5023 if { (ac_try="$ac_link"
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5029 $as_echo "$ac_try_echo") >&5
5030 (eval "$ac_link") 2>conftest.er1
5032 grep -v '^ *+' conftest.er1 >conftest.err
5034 cat conftest.err >&5
5035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5036 (exit $ac_status); } && {
5037 test -z "$ac_c_werror_flag" ||
5038 test ! -s conftest.err
5039 } && test -s conftest$ac_exeext && {
5040 test "$cross_compiling" = yes ||
5041 $as_test_x conftest$ac_exeext
5043 ac_cv_search_opendir=$ac_res
5045 $as_echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5051 rm -rf conftest.dSYM
5052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5054 if test "${ac_cv_search_opendir+set}" = set; then
5058 if test "${ac_cv_search_opendir+set}" = set; then
5061 ac_cv_search_opendir=no
5064 LIBS=$ac_func_search_save_LIBS
5066 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5067 $as_echo "$ac_cv_search_opendir" >&6; }
5068 ac_res=$ac_cv_search_opendir
5069 if test "$ac_res" != no; then
5070 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5075 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5076 $as_echo_n "checking for library containing opendir... " >&6; }
5077 if test "${ac_cv_search_opendir+set}" = set; then
5078 $as_echo_n "(cached) " >&6
5080 ac_func_search_save_LIBS=$LIBS
5081 cat >conftest.$ac_ext <<_ACEOF
5084 cat confdefs.h >>conftest.$ac_ext
5085 cat >>conftest.$ac_ext <<_ACEOF
5086 /* end confdefs.h. */
5088 /* Override any GCC internal prototype to avoid an error.
5089 Use char because int might match the return type of a GCC
5090 builtin and then its argument prototype would still apply. */
5103 for ac_lib in '' x; do
5104 if test -z "$ac_lib"; then
5105 ac_res="none required"
5108 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5110 rm -f conftest.$ac_objext conftest$ac_exeext
5111 if { (ac_try="$ac_link"
5113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5114 *) ac_try_echo=$ac_try;;
5116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5117 $as_echo "$ac_try_echo") >&5
5118 (eval "$ac_link") 2>conftest.er1
5120 grep -v '^ *+' conftest.er1 >conftest.err
5122 cat conftest.err >&5
5123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5124 (exit $ac_status); } && {
5125 test -z "$ac_c_werror_flag" ||
5126 test ! -s conftest.err
5127 } && test -s conftest$ac_exeext && {
5128 test "$cross_compiling" = yes ||
5129 $as_test_x conftest$ac_exeext
5131 ac_cv_search_opendir=$ac_res
5133 $as_echo "$as_me: failed program was:" >&5
5134 sed 's/^/| /' conftest.$ac_ext >&5
5139 rm -rf conftest.dSYM
5140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5142 if test "${ac_cv_search_opendir+set}" = set; then
5146 if test "${ac_cv_search_opendir+set}" = set; then
5149 ac_cv_search_opendir=no
5152 LIBS=$ac_func_search_save_LIBS
5154 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5155 $as_echo "$ac_cv_search_opendir" >&6; }
5156 ac_res=$ac_cv_search_opendir
5157 if test "$ac_res" != no; then
5158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5165 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5166 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5167 if test "${ac_cv_path_GREP+set}" = set; then
5168 $as_echo_n "(cached) " >&6
5170 if test -z "$GREP"; then
5171 ac_path_GREP_found=false
5172 # Loop through the user's path and test for each of PROGNAME-LIST
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5177 test -z "$as_dir" && as_dir=.
5178 for ac_prog in grep ggrep; do
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5181 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5182 # Check for GNU ac_path_GREP and select it if it is found.
5183 # Check for GNU $ac_path_GREP
5184 case `"$ac_path_GREP" --version 2>&1` in
5186 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5189 $as_echo_n 0123456789 >"conftest.in"
5192 cat "conftest.in" "conftest.in" >"conftest.tmp"
5193 mv "conftest.tmp" "conftest.in"
5194 cp "conftest.in" "conftest.nl"
5195 $as_echo 'GREP' >> "conftest.nl"
5196 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5198 ac_count=`expr $ac_count + 1`
5199 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5200 # Best one so far, save it but keep looking for a better one
5201 ac_cv_path_GREP="$ac_path_GREP"
5202 ac_path_GREP_max=$ac_count
5204 # 10*(2^10) chars as input seems more than enough
5205 test $ac_count -gt 10 && break
5207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210 $ac_path_GREP_found && break 3
5215 if test -z "$ac_cv_path_GREP"; then
5216 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5217 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5218 { (exit 1); exit 1; }; }
5221 ac_cv_path_GREP=$GREP
5225 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5226 $as_echo "$ac_cv_path_GREP" >&6; }
5227 GREP="$ac_cv_path_GREP"
5230 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5231 $as_echo_n "checking for egrep... " >&6; }
5232 if test "${ac_cv_path_EGREP+set}" = set; then
5233 $as_echo_n "(cached) " >&6
5235 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5236 then ac_cv_path_EGREP="$GREP -E"
5238 if test -z "$EGREP"; then
5239 ac_path_EGREP_found=false
5240 # Loop through the user's path and test for each of PROGNAME-LIST
5241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5242 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5245 test -z "$as_dir" && as_dir=.
5246 for ac_prog in egrep; do
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5249 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5250 # Check for GNU ac_path_EGREP and select it if it is found.
5251 # Check for GNU $ac_path_EGREP
5252 case `"$ac_path_EGREP" --version 2>&1` in
5254 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5257 $as_echo_n 0123456789 >"conftest.in"
5260 cat "conftest.in" "conftest.in" >"conftest.tmp"
5261 mv "conftest.tmp" "conftest.in"
5262 cp "conftest.in" "conftest.nl"
5263 $as_echo 'EGREP' >> "conftest.nl"
5264 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5265 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5266 ac_count=`expr $ac_count + 1`
5267 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5268 # Best one so far, save it but keep looking for a better one
5269 ac_cv_path_EGREP="$ac_path_EGREP"
5270 ac_path_EGREP_max=$ac_count
5272 # 10*(2^10) chars as input seems more than enough
5273 test $ac_count -gt 10 && break
5275 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5278 $ac_path_EGREP_found && break 3
5283 if test -z "$ac_cv_path_EGREP"; then
5284 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5285 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5286 { (exit 1); exit 1; }; }
5289 ac_cv_path_EGREP=$EGREP
5294 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5295 $as_echo "$ac_cv_path_EGREP" >&6; }
5296 EGREP="$ac_cv_path_EGREP"
5299 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5300 $as_echo_n "checking for ANSI C header files... " >&6; }
5301 if test "${ac_cv_header_stdc+set}" = set; then
5302 $as_echo_n "(cached) " >&6
5304 cat >conftest.$ac_ext <<_ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5323 rm -f conftest.$ac_objext
5324 if { (ac_try="$ac_compile"
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5330 $as_echo "$ac_try_echo") >&5
5331 (eval "$ac_compile") 2>conftest.er1
5333 grep -v '^ *+' conftest.er1 >conftest.err
5335 cat conftest.err >&5
5336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } && {
5338 test -z "$ac_c_werror_flag" ||
5339 test ! -s conftest.err
5340 } && test -s conftest.$ac_objext; then
5341 ac_cv_header_stdc=yes
5343 $as_echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5346 ac_cv_header_stdc=no
5349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5351 if test $ac_cv_header_stdc = yes; then
5352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5353 cat >conftest.$ac_ext <<_ACEOF
5356 cat confdefs.h >>conftest.$ac_ext
5357 cat >>conftest.$ac_ext <<_ACEOF
5358 /* end confdefs.h. */
5362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5363 $EGREP "memchr" >/dev/null 2>&1; then
5366 ac_cv_header_stdc=no
5372 if test $ac_cv_header_stdc = yes; then
5373 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5374 cat >conftest.$ac_ext <<_ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h. */
5383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5384 $EGREP "free" >/dev/null 2>&1; then
5387 ac_cv_header_stdc=no
5393 if test $ac_cv_header_stdc = yes; then
5394 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5395 if test "$cross_compiling" = yes; then
5398 cat >conftest.$ac_ext <<_ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5406 #if ((' ' & 0x0FF) == 0x020)
5407 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5408 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5410 # define ISLOWER(c) \
5411 (('a' <= (c) && (c) <= 'i') \
5412 || ('j' <= (c) && (c) <= 'r') \
5413 || ('s' <= (c) && (c) <= 'z'))
5414 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5417 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5422 for (i = 0; i < 256; i++)
5423 if (XOR (islower (i), ISLOWER (i))
5424 || toupper (i) != TOUPPER (i))
5429 rm -f conftest$ac_exeext
5430 if { (ac_try="$ac_link"
5432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5433 *) ac_try_echo=$ac_try;;
5435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5436 $as_echo "$ac_try_echo") >&5
5437 (eval "$ac_link") 2>&5
5439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5441 { (case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5446 $as_echo "$ac_try_echo") >&5
5447 (eval "$ac_try") 2>&5
5449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); }; }; then
5453 $as_echo "$as_me: program exited with status $ac_status" >&5
5454 $as_echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5458 ac_cv_header_stdc=no
5460 rm -rf conftest.dSYM
5461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5467 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5468 $as_echo "$ac_cv_header_stdc" >&6; }
5469 if test $ac_cv_header_stdc = yes; then
5471 cat >>confdefs.h <<\_ACEOF
5472 #define STDC_HEADERS 1
5478 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5488 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5489 inttypes.h stdint.h unistd.h
5491 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5492 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5493 $as_echo_n "checking for $ac_header... " >&6; }
5494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5495 $as_echo_n "(cached) " >&6
5497 cat >conftest.$ac_ext <<_ACEOF
5500 cat confdefs.h >>conftest.$ac_ext
5501 cat >>conftest.$ac_ext <<_ACEOF
5502 /* end confdefs.h. */
5503 $ac_includes_default
5505 #include <$ac_header>
5507 rm -f conftest.$ac_objext
5508 if { (ac_try="$ac_compile"
5510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5511 *) ac_try_echo=$ac_try;;
5513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5514 $as_echo "$ac_try_echo") >&5
5515 (eval "$ac_compile") 2>conftest.er1
5517 grep -v '^ *+' conftest.er1 >conftest.err
5519 cat conftest.err >&5
5520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5521 (exit $ac_status); } && {
5522 test -z "$ac_c_werror_flag" ||
5523 test ! -s conftest.err
5524 } && test -s conftest.$ac_objext; then
5525 eval "$as_ac_Header=yes"
5527 $as_echo "$as_me: failed program was:" >&5
5528 sed 's/^/| /' conftest.$ac_ext >&5
5530 eval "$as_ac_Header=no"
5533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5535 ac_res=`eval 'as_val=${'$as_ac_Header'}
5536 $as_echo "$as_val"'`
5537 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5538 $as_echo "$ac_res" >&6; }
5539 if test `eval 'as_val=${'$as_ac_Header'}
5540 $as_echo "$as_val"'` = yes; then
5541 cat >>confdefs.h <<_ACEOF
5542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5569 for ac_header in zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/mman.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h
5571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5573 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5574 $as_echo_n "checking for $ac_header... " >&6; }
5575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5576 $as_echo_n "(cached) " >&6
5578 ac_res=`eval 'as_val=${'$as_ac_Header'}
5579 $as_echo "$as_val"'`
5580 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5581 $as_echo "$ac_res" >&6; }
5583 # Is the header compilable?
5584 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5585 $as_echo_n "checking $ac_header usability... " >&6; }
5586 cat >conftest.$ac_ext <<_ACEOF
5589 cat confdefs.h >>conftest.$ac_ext
5590 cat >>conftest.$ac_ext <<_ACEOF
5591 /* end confdefs.h. */
5592 $ac_includes_default
5593 #include <$ac_header>
5595 rm -f conftest.$ac_objext
5596 if { (ac_try="$ac_compile"
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5602 $as_echo "$ac_try_echo") >&5
5603 (eval "$ac_compile") 2>conftest.er1
5605 grep -v '^ *+' conftest.er1 >conftest.err
5607 cat conftest.err >&5
5608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } && {
5610 test -z "$ac_c_werror_flag" ||
5611 test ! -s conftest.err
5612 } && test -s conftest.$ac_objext; then
5613 ac_header_compiler=yes
5615 $as_echo "$as_me: failed program was:" >&5
5616 sed 's/^/| /' conftest.$ac_ext >&5
5618 ac_header_compiler=no
5621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5623 $as_echo "$ac_header_compiler" >&6; }
5625 # Is the header present?
5626 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5627 $as_echo_n "checking $ac_header presence... " >&6; }
5628 cat >conftest.$ac_ext <<_ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634 #include <$ac_header>
5636 if { (ac_try="$ac_cpp conftest.$ac_ext"
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5642 $as_echo "$ac_try_echo") >&5
5643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5645 grep -v '^ *+' conftest.er1 >conftest.err
5647 cat conftest.err >&5
5648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649 (exit $ac_status); } >/dev/null && {
5650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5651 test ! -s conftest.err
5653 ac_header_preproc=yes
5655 $as_echo "$as_me: failed program was:" >&5
5656 sed 's/^/| /' conftest.$ac_ext >&5
5658 ac_header_preproc=no
5661 rm -f conftest.err conftest.$ac_ext
5662 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5663 $as_echo "$ac_header_preproc" >&6; }
5665 # So? What about this header?
5666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5668 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5669 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5670 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5671 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5672 ac_header_preproc=yes
5675 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5676 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5677 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5678 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5679 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5680 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5682 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5684 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5685 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5686 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5690 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5691 $as_echo_n "checking for $ac_header... " >&6; }
5692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5693 $as_echo_n "(cached) " >&6
5695 eval "$as_ac_Header=\$ac_header_preproc"
5697 ac_res=`eval 'as_val=${'$as_ac_Header'}
5698 $as_echo "$as_val"'`
5699 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5700 $as_echo "$ac_res" >&6; }
5703 if test `eval 'as_val=${'$as_ac_Header'}
5704 $as_echo "$as_val"'` = yes; then
5705 cat >>confdefs.h <<_ACEOF
5706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5715 cat >>confdefs.h <<_ACEOF
5716 #define PACKAGE "$PACKAGE"
5720 cat >>confdefs.h <<_ACEOF
5721 #define VERSION "$VERSION"
5730 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5731 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5732 if test "${ac_cv_c_const+set}" = set; then
5733 $as_echo_n "(cached) " >&6
5735 cat >conftest.$ac_ext <<_ACEOF
5738 cat confdefs.h >>conftest.$ac_ext
5739 cat >>conftest.$ac_ext <<_ACEOF
5740 /* end confdefs.h. */
5745 /* FIXME: Include the comments suggested by Paul. */
5747 /* Ultrix mips cc rejects this. */
5748 typedef int charset[2];
5750 /* SunOS 4.1.1 cc rejects this. */
5751 char const *const *pcpcc;
5753 /* NEC SVR4.0.2 mips cc rejects this. */
5754 struct point {int x, y;};
5755 static struct point const zero = {0,0};
5756 /* AIX XL C 1.02.0.0 rejects this.
5757 It does not let you subtract one const X* pointer from another in
5758 an arm of an if-expression whose if-part is not a constant
5760 const char *g = "string";
5761 pcpcc = &g + (g ? g-g : 0);
5762 /* HPUX 7.0 cc rejects these. */
5764 ppc = (char**) pcpcc;
5765 pcpcc = (char const *const *) ppc;
5766 { /* SCO 3.2v4 cc rejects this. */
5768 char const *s = 0 ? (char *) 0 : (char const *) 0;
5773 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5775 const int *foo = &x[0];
5778 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5779 typedef const int *iptr;
5783 { /* AIX XL C 1.02.0.0 rejects this saying
5784 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5785 struct s { int j; const int *ap[3]; };
5786 struct s *b; b->j = 5;
5788 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5792 return !cs[0] && !zero.x;
5799 rm -f conftest.$ac_objext
5800 if { (ac_try="$ac_compile"
5802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5803 *) ac_try_echo=$ac_try;;
5805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5806 $as_echo "$ac_try_echo") >&5
5807 (eval "$ac_compile") 2>conftest.er1
5809 grep -v '^ *+' conftest.er1 >conftest.err
5811 cat conftest.err >&5
5812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest.$ac_objext; then
5819 $as_echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5827 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5828 $as_echo "$ac_cv_c_const" >&6; }
5829 if test $ac_cv_c_const = no; then
5831 cat >>confdefs.h <<\_ACEOF
5837 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5838 $as_echo_n "checking for inline... " >&6; }
5839 if test "${ac_cv_c_inline+set}" = set; then
5840 $as_echo_n "(cached) " >&6
5843 for ac_kw in inline __inline__ __inline; do
5844 cat >conftest.$ac_ext <<_ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5852 static $ac_kw foo_t static_foo () {return 0; }
5853 $ac_kw foo_t foo () {return 0; }
5857 rm -f conftest.$ac_objext
5858 if { (ac_try="$ac_compile"
5860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5861 *) ac_try_echo=$ac_try;;
5863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5864 $as_echo "$ac_try_echo") >&5
5865 (eval "$ac_compile") 2>conftest.er1
5867 grep -v '^ *+' conftest.er1 >conftest.err
5869 cat conftest.err >&5
5870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } && {
5872 test -z "$ac_c_werror_flag" ||
5873 test ! -s conftest.err
5874 } && test -s conftest.$ac_objext; then
5875 ac_cv_c_inline=$ac_kw
5877 $as_echo "$as_me: failed program was:" >&5
5878 sed 's/^/| /' conftest.$ac_ext >&5
5883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5884 test "$ac_cv_c_inline" != no && break
5888 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5889 $as_echo "$ac_cv_c_inline" >&6; }
5892 case $ac_cv_c_inline in
5895 case $ac_cv_c_inline in
5897 *) ac_val=$ac_cv_c_inline;;
5899 cat >>confdefs.h <<_ACEOF
5901 #define inline $ac_val
5907 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5908 $as_echo_n "checking for off_t... " >&6; }
5909 if test "${ac_cv_type_off_t+set}" = set; then
5910 $as_echo_n "(cached) " >&6
5913 cat >conftest.$ac_ext <<_ACEOF
5916 cat confdefs.h >>conftest.$ac_ext
5917 cat >>conftest.$ac_ext <<_ACEOF
5918 /* end confdefs.h. */
5919 $ac_includes_default
5929 rm -f conftest.$ac_objext
5930 if { (ac_try="$ac_compile"
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5936 $as_echo "$ac_try_echo") >&5
5937 (eval "$ac_compile") 2>conftest.er1
5939 grep -v '^ *+' conftest.er1 >conftest.err
5941 cat conftest.err >&5
5942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest.$ac_objext; then
5947 cat >conftest.$ac_ext <<_ACEOF
5950 cat confdefs.h >>conftest.$ac_ext
5951 cat >>conftest.$ac_ext <<_ACEOF
5952 /* end confdefs.h. */
5953 $ac_includes_default
5957 if (sizeof ((off_t)))
5963 rm -f conftest.$ac_objext
5964 if { (ac_try="$ac_compile"
5966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5967 *) ac_try_echo=$ac_try;;
5969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5970 $as_echo "$ac_try_echo") >&5
5971 (eval "$ac_compile") 2>conftest.er1
5973 grep -v '^ *+' conftest.er1 >conftest.err
5975 cat conftest.err >&5
5976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } && {
5978 test -z "$ac_c_werror_flag" ||
5979 test ! -s conftest.err
5980 } && test -s conftest.$ac_objext; then
5983 $as_echo "$as_me: failed program was:" >&5
5984 sed 's/^/| /' conftest.$ac_ext >&5
5986 ac_cv_type_off_t=yes
5989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 $as_echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5999 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6000 $as_echo "$ac_cv_type_off_t" >&6; }
6001 if test $ac_cv_type_off_t = yes; then
6005 cat >>confdefs.h <<_ACEOF
6006 #define off_t long int
6011 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6012 $as_echo_n "checking for size_t... " >&6; }
6013 if test "${ac_cv_type_size_t+set}" = set; then
6014 $as_echo_n "(cached) " >&6
6016 ac_cv_type_size_t=no
6017 cat >conftest.$ac_ext <<_ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6023 $ac_includes_default
6027 if (sizeof (size_t))
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6040 $as_echo "$ac_try_echo") >&5
6041 (eval "$ac_compile") 2>conftest.er1
6043 grep -v '^ *+' conftest.er1 >conftest.err
6045 cat conftest.err >&5
6046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6047 (exit $ac_status); } && {
6048 test -z "$ac_c_werror_flag" ||
6049 test ! -s conftest.err
6050 } && test -s conftest.$ac_objext; then
6051 cat >conftest.$ac_ext <<_ACEOF
6054 cat confdefs.h >>conftest.$ac_ext
6055 cat >>conftest.$ac_ext <<_ACEOF
6056 /* end confdefs.h. */
6057 $ac_includes_default
6061 if (sizeof ((size_t)))
6067 rm -f conftest.$ac_objext
6068 if { (ac_try="$ac_compile"
6070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6073 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6074 $as_echo "$ac_try_echo") >&5
6075 (eval "$ac_compile") 2>conftest.er1
6077 grep -v '^ *+' conftest.er1 >conftest.err
6079 cat conftest.err >&5
6080 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); } && {
6082 test -z "$ac_c_werror_flag" ||
6083 test ! -s conftest.err
6084 } && test -s conftest.$ac_objext; then
6087 $as_echo "$as_me: failed program was:" >&5
6088 sed 's/^/| /' conftest.$ac_ext >&5
6090 ac_cv_type_size_t=yes
6093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6095 $as_echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6103 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6104 $as_echo "$ac_cv_type_size_t" >&6; }
6105 if test $ac_cv_type_size_t = yes; then
6109 cat >>confdefs.h <<_ACEOF
6110 #define size_t unsigned int
6115 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6116 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6117 if test "${ac_cv_struct_tm+set}" = set; then
6118 $as_echo_n "(cached) " >&6
6120 cat >conftest.$ac_ext <<_ACEOF
6123 cat confdefs.h >>conftest.$ac_ext
6124 cat >>conftest.$ac_ext <<_ACEOF
6125 /* end confdefs.h. */
6126 #include <sys/types.h>
6133 int *p = &tm.tm_sec;
6139 rm -f conftest.$ac_objext
6140 if { (ac_try="$ac_compile"
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6146 $as_echo "$ac_try_echo") >&5
6147 (eval "$ac_compile") 2>conftest.er1
6149 grep -v '^ *+' conftest.er1 >conftest.err
6151 cat conftest.err >&5
6152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } && {
6154 test -z "$ac_c_werror_flag" ||
6155 test ! -s conftest.err
6156 } && test -s conftest.$ac_objext; then
6157 ac_cv_struct_tm=time.h
6159 $as_echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6162 ac_cv_struct_tm=sys/time.h
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6168 $as_echo "$ac_cv_struct_tm" >&6; }
6169 if test $ac_cv_struct_tm = sys/time.h; then
6171 cat >>confdefs.h <<\_ACEOF
6172 #define TM_IN_SYS_TIME 1
6177 { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6178 $as_echo_n "checking for boolean... " >&6; }
6179 if test "${ac_cv_type_boolean+set}" = set; then
6180 $as_echo_n "(cached) " >&6
6182 ac_cv_type_boolean=no
6183 cat >conftest.$ac_ext <<_ACEOF
6186 cat confdefs.h >>conftest.$ac_ext
6187 cat >>conftest.$ac_ext <<_ACEOF
6188 /* end confdefs.h. */
6189 $ac_includes_default
6193 if (sizeof (boolean))
6199 rm -f conftest.$ac_objext
6200 if { (ac_try="$ac_compile"
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6206 $as_echo "$ac_try_echo") >&5
6207 (eval "$ac_compile") 2>conftest.er1
6209 grep -v '^ *+' conftest.er1 >conftest.err
6211 cat conftest.err >&5
6212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6213 (exit $ac_status); } && {
6214 test -z "$ac_c_werror_flag" ||
6215 test ! -s conftest.err
6216 } && test -s conftest.$ac_objext; then
6217 cat >conftest.$ac_ext <<_ACEOF
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 $ac_includes_default
6227 if (sizeof ((boolean)))
6233 rm -f conftest.$ac_objext
6234 if { (ac_try="$ac_compile"
6236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6237 *) ac_try_echo=$ac_try;;
6239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6240 $as_echo "$ac_try_echo") >&5
6241 (eval "$ac_compile") 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } && {
6248 test -z "$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 } && test -s conftest.$ac_objext; then
6253 $as_echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 ac_cv_type_boolean=yes
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6261 $as_echo "$as_me: failed program was:" >&5
6262 sed 's/^/| /' conftest.$ac_ext >&5
6267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6269 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6270 $as_echo "$ac_cv_type_boolean" >&6; }
6271 if test $ac_cv_type_boolean = yes; then
6275 cat >>confdefs.h <<_ACEOF
6296 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6299 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6300 $as_echo_n "checking for $ac_func... " >&6; }
6301 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6302 $as_echo_n "(cached) " >&6
6304 cat >conftest.$ac_ext <<_ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6312 #define $ac_func innocuous_$ac_func
6314 /* System header to define __stub macros and hopefully few prototypes,
6315 which can conflict with char $ac_func (); below.
6316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6317 <limits.h> exists even on freestanding compilers. */
6320 # include <limits.h>
6322 # include <assert.h>
6327 /* Override any GCC internal prototype to avoid an error.
6328 Use char because int might match the return type of a GCC
6329 builtin and then its argument prototype would still apply. */
6334 /* The GNU C library defines this for functions which it implements
6335 to always fail with ENOSYS. Some functions are actually named
6336 something starting with __ and the normal name is an alias. */
6337 #if defined __stub_$ac_func || defined __stub___$ac_func
6349 rm -f conftest.$ac_objext conftest$ac_exeext
6350 if { (ac_try="$ac_link"
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6356 $as_echo "$ac_try_echo") >&5
6357 (eval "$ac_link") 2>conftest.er1
6359 grep -v '^ *+' conftest.er1 >conftest.err
6361 cat conftest.err >&5
6362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } && {
6364 test -z "$ac_c_werror_flag" ||
6365 test ! -s conftest.err
6366 } && test -s conftest$ac_exeext && {
6367 test "$cross_compiling" = yes ||
6368 $as_test_x conftest$ac_exeext
6370 eval "$as_ac_var=yes"
6372 $as_echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 eval "$as_ac_var=no"
6378 rm -rf conftest.dSYM
6379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6380 conftest$ac_exeext conftest.$ac_ext
6382 ac_res=`eval 'as_val=${'$as_ac_var'}
6383 $as_echo "$as_val"'`
6384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6385 $as_echo "$ac_res" >&6; }
6386 if test `eval 'as_val=${'$as_ac_var'}
6387 $as_echo "$as_val"'` = yes; then
6388 cat >>confdefs.h <<_ACEOF
6389 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6396 # The cast to long int works around a bug in the HP C Compiler
6397 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6398 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6399 # This bug is HP SR number 8606223364.
6400 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6401 $as_echo_n "checking size of signed char... " >&6; }
6402 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6403 $as_echo_n "(cached) " >&6
6405 if test "$cross_compiling" = yes; then
6406 # Depending upon the size, compute the lo and hi bounds.
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 $ac_includes_default
6417 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];
6424 rm -f conftest.$ac_objext
6425 if { (ac_try="$ac_compile"
6427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428 *) ac_try_echo=$ac_try;;
6430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6431 $as_echo "$ac_try_echo") >&5
6432 (eval "$ac_compile") 2>conftest.er1
6434 grep -v '^ *+' conftest.er1 >conftest.err
6436 cat conftest.err >&5
6437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } && {
6439 test -z "$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6441 } && test -s conftest.$ac_objext; then
6444 cat >conftest.$ac_ext <<_ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 $ac_includes_default
6454 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6461 rm -f conftest.$ac_objext
6462 if { (ac_try="$ac_compile"
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6468 $as_echo "$ac_try_echo") >&5
6469 (eval "$ac_compile") 2>conftest.er1
6471 grep -v '^ *+' conftest.er1 >conftest.err
6473 cat conftest.err >&5
6474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); } && {
6476 test -z "$ac_c_werror_flag" ||
6477 test ! -s conftest.err
6478 } && test -s conftest.$ac_objext; then
6479 ac_hi=$ac_mid; break
6481 $as_echo "$as_me: failed program was:" >&5
6482 sed 's/^/| /' conftest.$ac_ext >&5
6484 ac_lo=`expr $ac_mid + 1`
6485 if test $ac_lo -le $ac_mid; then
6489 ac_mid=`expr 2 '*' $ac_mid + 1`
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495 $as_echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 cat >conftest.$ac_ext <<_ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504 $ac_includes_default
6508 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6515 rm -f conftest.$ac_objext
6516 if { (ac_try="$ac_compile"
6518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6519 *) ac_try_echo=$ac_try;;
6521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6522 $as_echo "$ac_try_echo") >&5
6523 (eval "$ac_compile") 2>conftest.er1
6525 grep -v '^ *+' conftest.er1 >conftest.err
6527 cat conftest.err >&5
6528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } && {
6530 test -z "$ac_c_werror_flag" ||
6531 test ! -s conftest.err
6532 } && test -s conftest.$ac_objext; then
6535 cat >conftest.$ac_ext <<_ACEOF
6538 cat confdefs.h >>conftest.$ac_ext
6539 cat >>conftest.$ac_ext <<_ACEOF
6540 /* end confdefs.h. */
6541 $ac_includes_default
6545 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6559 $as_echo "$ac_try_echo") >&5
6560 (eval "$ac_compile") 2>conftest.er1
6562 grep -v '^ *+' conftest.er1 >conftest.err
6564 cat conftest.err >&5
6565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6566 (exit $ac_status); } && {
6567 test -z "$ac_c_werror_flag" ||
6568 test ! -s conftest.err
6569 } && test -s conftest.$ac_objext; then
6570 ac_lo=$ac_mid; break
6572 $as_echo "$as_me: failed program was:" >&5
6573 sed 's/^/| /' conftest.$ac_ext >&5
6575 ac_hi=`expr '(' $ac_mid ')' - 1`
6576 if test $ac_mid -le $ac_hi; then
6580 ac_mid=`expr 2 '*' $ac_mid`
6583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6586 $as_echo "$as_me: failed program was:" >&5
6587 sed 's/^/| /' conftest.$ac_ext >&5
6592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 # Binary search between lo and hi bounds.
6597 while test "x$ac_lo" != "x$ac_hi"; do
6598 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6599 cat >conftest.$ac_ext <<_ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 $ac_includes_default
6609 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6616 rm -f conftest.$ac_objext
6617 if { (ac_try="$ac_compile"
6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6622 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6623 $as_echo "$ac_try_echo") >&5
6624 (eval "$ac_compile") 2>conftest.er1
6626 grep -v '^ *+' conftest.er1 >conftest.err
6628 cat conftest.err >&5
6629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && {
6631 test -z "$ac_c_werror_flag" ||
6632 test ! -s conftest.err
6633 } && test -s conftest.$ac_objext; then
6636 $as_echo "$as_me: failed program was:" >&5
6637 sed 's/^/| /' conftest.$ac_ext >&5
6639 ac_lo=`expr '(' $ac_mid ')' + 1`
6642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6646 '') if test "$ac_cv_type_signed_char" = yes; then
6647 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6648 See \`config.log' for more details." >&5
6649 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6650 See \`config.log' for more details." >&2;}
6651 { (exit 77); exit 77; }; }
6653 ac_cv_sizeof_signed_char=0
6657 cat >conftest.$ac_ext <<_ACEOF
6660 cat confdefs.h >>conftest.$ac_ext
6661 cat >>conftest.$ac_ext <<_ACEOF
6662 /* end confdefs.h. */
6663 $ac_includes_default
6664 static long int longval () { return (long int) (sizeof (signed char)); }
6665 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6672 FILE *f = fopen ("conftest.val", "w");
6675 if (((long int) (sizeof (signed char))) < 0)
6677 long int i = longval ();
6678 if (i != ((long int) (sizeof (signed char))))
6680 fprintf (f, "%ld", i);
6684 unsigned long int i = ulongval ();
6685 if (i != ((long int) (sizeof (signed char))))
6687 fprintf (f, "%lu", i);
6689 /* Do not output a trailing newline, as this causes \r\n confusion
6690 on some platforms. */
6691 return ferror (f) || fclose (f) != 0;
6697 rm -f conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6701 *) ac_try_echo=$ac_try;;
6703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6704 $as_echo "$ac_try_echo") >&5
6705 (eval "$ac_link") 2>&5
6707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6709 { (case "(($ac_try" in
6710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6714 $as_echo "$ac_try_echo") >&5
6715 (eval "$ac_try") 2>&5
6717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 ac_cv_sizeof_signed_char=`cat conftest.val`
6721 $as_echo "$as_me: program exited with status $ac_status" >&5
6722 $as_echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6726 if test "$ac_cv_type_signed_char" = yes; then
6727 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6728 See \`config.log' for more details." >&5
6729 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6730 See \`config.log' for more details." >&2;}
6731 { (exit 77); exit 77; }; }
6733 ac_cv_sizeof_signed_char=0
6736 rm -rf conftest.dSYM
6737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6741 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6742 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6746 cat >>confdefs.h <<_ACEOF
6747 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6751 # The cast to long int works around a bug in the HP C Compiler
6752 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6753 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6754 # This bug is HP SR number 8606223364.
6755 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6756 $as_echo_n "checking size of signed short... " >&6; }
6757 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6758 $as_echo_n "(cached) " >&6
6760 if test "$cross_compiling" = yes; then
6761 # Depending upon the size, compute the lo and hi bounds.
6762 cat >conftest.$ac_ext <<_ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 $ac_includes_default
6772 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6779 rm -f conftest.$ac_objext
6780 if { (ac_try="$ac_compile"
6782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6783 *) ac_try_echo=$ac_try;;
6785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6786 $as_echo "$ac_try_echo") >&5
6787 (eval "$ac_compile") 2>conftest.er1
6789 grep -v '^ *+' conftest.er1 >conftest.err
6791 cat conftest.err >&5
6792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6793 (exit $ac_status); } && {
6794 test -z "$ac_c_werror_flag" ||
6795 test ! -s conftest.err
6796 } && test -s conftest.$ac_objext; then
6799 cat >conftest.$ac_ext <<_ACEOF
6802 cat confdefs.h >>conftest.$ac_ext
6803 cat >>conftest.$ac_ext <<_ACEOF
6804 /* end confdefs.h. */
6805 $ac_includes_default
6809 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6816 rm -f conftest.$ac_objext
6817 if { (ac_try="$ac_compile"
6819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6820 *) ac_try_echo=$ac_try;;
6822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6823 $as_echo "$ac_try_echo") >&5
6824 (eval "$ac_compile") 2>conftest.er1
6826 grep -v '^ *+' conftest.er1 >conftest.err
6828 cat conftest.err >&5
6829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); } && {
6831 test -z "$ac_c_werror_flag" ||
6832 test ! -s conftest.err
6833 } && test -s conftest.$ac_objext; then
6834 ac_hi=$ac_mid; break
6836 $as_echo "$as_me: failed program was:" >&5
6837 sed 's/^/| /' conftest.$ac_ext >&5
6839 ac_lo=`expr $ac_mid + 1`
6840 if test $ac_lo -le $ac_mid; then
6844 ac_mid=`expr 2 '*' $ac_mid + 1`
6847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6850 $as_echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6853 cat >conftest.$ac_ext <<_ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6859 $ac_includes_default
6863 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6870 rm -f conftest.$ac_objext
6871 if { (ac_try="$ac_compile"
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6877 $as_echo "$ac_try_echo") >&5
6878 (eval "$ac_compile") 2>conftest.er1
6880 grep -v '^ *+' conftest.er1 >conftest.err
6882 cat conftest.err >&5
6883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && {
6885 test -z "$ac_c_werror_flag" ||
6886 test ! -s conftest.err
6887 } && test -s conftest.$ac_objext; then
6890 cat >conftest.$ac_ext <<_ACEOF
6893 cat confdefs.h >>conftest.$ac_ext
6894 cat >>conftest.$ac_ext <<_ACEOF
6895 /* end confdefs.h. */
6896 $ac_includes_default
6900 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6907 rm -f conftest.$ac_objext
6908 if { (ac_try="$ac_compile"
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6913 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6914 $as_echo "$ac_try_echo") >&5
6915 (eval "$ac_compile") 2>conftest.er1
6917 grep -v '^ *+' conftest.er1 >conftest.err
6919 cat conftest.err >&5
6920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6921 (exit $ac_status); } && {
6922 test -z "$ac_c_werror_flag" ||
6923 test ! -s conftest.err
6924 } && test -s conftest.$ac_objext; then
6925 ac_lo=$ac_mid; break
6927 $as_echo "$as_me: failed program was:" >&5
6928 sed 's/^/| /' conftest.$ac_ext >&5
6930 ac_hi=`expr '(' $ac_mid ')' - 1`
6931 if test $ac_mid -le $ac_hi; then
6935 ac_mid=`expr 2 '*' $ac_mid`
6938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941 $as_echo "$as_me: failed program was:" >&5
6942 sed 's/^/| /' conftest.$ac_ext >&5
6947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6951 # Binary search between lo and hi bounds.
6952 while test "x$ac_lo" != "x$ac_hi"; do
6953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6954 cat >conftest.$ac_ext <<_ACEOF
6957 cat confdefs.h >>conftest.$ac_ext
6958 cat >>conftest.$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 $ac_includes_default
6964 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6971 rm -f conftest.$ac_objext
6972 if { (ac_try="$ac_compile"
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6978 $as_echo "$ac_try_echo") >&5
6979 (eval "$ac_compile") 2>conftest.er1
6981 grep -v '^ *+' conftest.er1 >conftest.err
6983 cat conftest.err >&5
6984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && {
6986 test -z "$ac_c_werror_flag" ||
6987 test ! -s conftest.err
6988 } && test -s conftest.$ac_objext; then
6991 $as_echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6994 ac_lo=`expr '(' $ac_mid ')' + 1`
6997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
7001 '') if test "$ac_cv_type_signed_short" = yes; then
7002 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7003 See \`config.log' for more details." >&5
7004 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7005 See \`config.log' for more details." >&2;}
7006 { (exit 77); exit 77; }; }
7008 ac_cv_sizeof_signed_short=0
7012 cat >conftest.$ac_ext <<_ACEOF
7015 cat confdefs.h >>conftest.$ac_ext
7016 cat >>conftest.$ac_ext <<_ACEOF
7017 /* end confdefs.h. */
7018 $ac_includes_default
7019 static long int longval () { return (long int) (sizeof (signed short)); }
7020 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
7027 FILE *f = fopen ("conftest.val", "w");
7030 if (((long int) (sizeof (signed short))) < 0)
7032 long int i = longval ();
7033 if (i != ((long int) (sizeof (signed short))))
7035 fprintf (f, "%ld", i);
7039 unsigned long int i = ulongval ();
7040 if (i != ((long int) (sizeof (signed short))))
7042 fprintf (f, "%lu", i);
7044 /* Do not output a trailing newline, as this causes \r\n confusion
7045 on some platforms. */
7046 return ferror (f) || fclose (f) != 0;
7052 rm -f conftest$ac_exeext
7053 if { (ac_try="$ac_link"
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7059 $as_echo "$ac_try_echo") >&5
7060 (eval "$ac_link") 2>&5
7062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7064 { (case "(($ac_try" in
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7069 $as_echo "$ac_try_echo") >&5
7070 (eval "$ac_try") 2>&5
7072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); }; }; then
7074 ac_cv_sizeof_signed_short=`cat conftest.val`
7076 $as_echo "$as_me: program exited with status $ac_status" >&5
7077 $as_echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7081 if test "$ac_cv_type_signed_short" = yes; then
7082 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7083 See \`config.log' for more details." >&5
7084 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7085 See \`config.log' for more details." >&2;}
7086 { (exit 77); exit 77; }; }
7088 ac_cv_sizeof_signed_short=0
7091 rm -rf conftest.dSYM
7092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7096 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
7097 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
7101 cat >>confdefs.h <<_ACEOF
7102 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
7106 # The cast to long int works around a bug in the HP C Compiler
7107 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7108 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7109 # This bug is HP SR number 8606223364.
7110 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
7111 $as_echo_n "checking size of signed... " >&6; }
7112 if test "${ac_cv_sizeof_signed+set}" = set; then
7113 $as_echo_n "(cached) " >&6
7115 if test "$cross_compiling" = yes; then
7116 # Depending upon the size, compute the lo and hi bounds.
7117 cat >conftest.$ac_ext <<_ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 $ac_includes_default
7127 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
7134 rm -f conftest.$ac_objext
7135 if { (ac_try="$ac_compile"
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7141 $as_echo "$ac_try_echo") >&5
7142 (eval "$ac_compile") 2>conftest.er1
7144 grep -v '^ *+' conftest.er1 >conftest.err
7146 cat conftest.err >&5
7147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.$ac_objext; then
7154 cat >conftest.$ac_ext <<_ACEOF
7157 cat confdefs.h >>conftest.$ac_ext
7158 cat >>conftest.$ac_ext <<_ACEOF
7159 /* end confdefs.h. */
7160 $ac_includes_default
7164 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175 *) ac_try_echo=$ac_try;;
7177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7178 $as_echo "$ac_try_echo") >&5
7179 (eval "$ac_compile") 2>conftest.er1
7181 grep -v '^ *+' conftest.er1 >conftest.err
7183 cat conftest.err >&5
7184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } && {
7186 test -z "$ac_c_werror_flag" ||
7187 test ! -s conftest.err
7188 } && test -s conftest.$ac_objext; then
7189 ac_hi=$ac_mid; break
7191 $as_echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7194 ac_lo=`expr $ac_mid + 1`
7195 if test $ac_lo -le $ac_mid; then
7199 ac_mid=`expr 2 '*' $ac_mid + 1`
7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7205 $as_echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 cat >conftest.$ac_ext <<_ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h. */
7214 $ac_includes_default
7218 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7225 rm -f conftest.$ac_objext
7226 if { (ac_try="$ac_compile"
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7232 $as_echo "$ac_try_echo") >&5
7233 (eval "$ac_compile") 2>conftest.er1
7235 grep -v '^ *+' conftest.er1 >conftest.err
7237 cat conftest.err >&5
7238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_c_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest.$ac_objext; then
7245 cat >conftest.$ac_ext <<_ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h. */
7251 $ac_includes_default
7255 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7262 rm -f conftest.$ac_objext
7263 if { (ac_try="$ac_compile"
7265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7266 *) ac_try_echo=$ac_try;;
7268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7269 $as_echo "$ac_try_echo") >&5
7270 (eval "$ac_compile") 2>conftest.er1
7272 grep -v '^ *+' conftest.er1 >conftest.err
7274 cat conftest.err >&5
7275 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } && {
7277 test -z "$ac_c_werror_flag" ||
7278 test ! -s conftest.err
7279 } && test -s conftest.$ac_objext; then
7280 ac_lo=$ac_mid; break
7282 $as_echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 ac_hi=`expr '(' $ac_mid ')' - 1`
7286 if test $ac_mid -le $ac_hi; then
7290 ac_mid=`expr 2 '*' $ac_mid`
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 $as_echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7306 # Binary search between lo and hi bounds.
7307 while test "x$ac_lo" != "x$ac_hi"; do
7308 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7309 cat >conftest.$ac_ext <<_ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 $ac_includes_default
7319 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7326 rm -f conftest.$ac_objext
7327 if { (ac_try="$ac_compile"
7329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7330 *) ac_try_echo=$ac_try;;
7332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7333 $as_echo "$ac_try_echo") >&5
7334 (eval "$ac_compile") 2>conftest.er1
7336 grep -v '^ *+' conftest.er1 >conftest.err
7338 cat conftest.err >&5
7339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } && {
7341 test -z "$ac_c_werror_flag" ||
7342 test ! -s conftest.err
7343 } && test -s conftest.$ac_objext; then
7346 $as_echo "$as_me: failed program was:" >&5
7347 sed 's/^/| /' conftest.$ac_ext >&5
7349 ac_lo=`expr '(' $ac_mid ')' + 1`
7352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355 ?*) ac_cv_sizeof_signed=$ac_lo;;
7356 '') if test "$ac_cv_type_signed" = yes; then
7357 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7358 See \`config.log' for more details." >&5
7359 $as_echo "$as_me: error: cannot compute sizeof (signed)
7360 See \`config.log' for more details." >&2;}
7361 { (exit 77); exit 77; }; }
7363 ac_cv_sizeof_signed=0
7367 cat >conftest.$ac_ext <<_ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 $ac_includes_default
7374 static long int longval () { return (long int) (sizeof (signed)); }
7375 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7382 FILE *f = fopen ("conftest.val", "w");
7385 if (((long int) (sizeof (signed))) < 0)
7387 long int i = longval ();
7388 if (i != ((long int) (sizeof (signed))))
7390 fprintf (f, "%ld", i);
7394 unsigned long int i = ulongval ();
7395 if (i != ((long int) (sizeof (signed))))
7397 fprintf (f, "%lu", i);
7399 /* Do not output a trailing newline, as this causes \r\n confusion
7400 on some platforms. */
7401 return ferror (f) || fclose (f) != 0;
7407 rm -f conftest$ac_exeext
7408 if { (ac_try="$ac_link"
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7414 $as_echo "$ac_try_echo") >&5
7415 (eval "$ac_link") 2>&5
7417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7419 { (case "(($ac_try" in
7420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7421 *) ac_try_echo=$ac_try;;
7423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7424 $as_echo "$ac_try_echo") >&5
7425 (eval "$ac_try") 2>&5
7427 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7428 (exit $ac_status); }; }; then
7429 ac_cv_sizeof_signed=`cat conftest.val`
7431 $as_echo "$as_me: program exited with status $ac_status" >&5
7432 $as_echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7436 if test "$ac_cv_type_signed" = yes; then
7437 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7438 See \`config.log' for more details." >&5
7439 $as_echo "$as_me: error: cannot compute sizeof (signed)
7440 See \`config.log' for more details." >&2;}
7441 { (exit 77); exit 77; }; }
7443 ac_cv_sizeof_signed=0
7446 rm -rf conftest.dSYM
7447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7451 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7452 $as_echo "$ac_cv_sizeof_signed" >&6; }
7456 cat >>confdefs.h <<_ACEOF
7457 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7461 # The cast to long int works around a bug in the HP C Compiler
7462 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7463 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7464 # This bug is HP SR number 8606223364.
7465 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7466 $as_echo_n "checking size of signed long long... " >&6; }
7467 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7468 $as_echo_n "(cached) " >&6
7470 if test "$cross_compiling" = yes; then
7471 # Depending upon the size, compute the lo and hi bounds.
7472 cat >conftest.$ac_ext <<_ACEOF
7475 cat confdefs.h >>conftest.$ac_ext
7476 cat >>conftest.$ac_ext <<_ACEOF
7477 /* end confdefs.h. */
7478 $ac_includes_default
7482 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7489 rm -f conftest.$ac_objext
7490 if { (ac_try="$ac_compile"
7492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493 *) ac_try_echo=$ac_try;;
7495 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7496 $as_echo "$ac_try_echo") >&5
7497 (eval "$ac_compile") 2>conftest.er1
7499 grep -v '^ *+' conftest.er1 >conftest.err
7501 cat conftest.err >&5
7502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } && {
7504 test -z "$ac_c_werror_flag" ||
7505 test ! -s conftest.err
7506 } && test -s conftest.$ac_objext; then
7509 cat >conftest.$ac_ext <<_ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h. */
7515 $ac_includes_default
7519 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7526 rm -f conftest.$ac_objext
7527 if { (ac_try="$ac_compile"
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7533 $as_echo "$ac_try_echo") >&5
7534 (eval "$ac_compile") 2>conftest.er1
7536 grep -v '^ *+' conftest.er1 >conftest.err
7538 cat conftest.err >&5
7539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); } && {
7541 test -z "$ac_c_werror_flag" ||
7542 test ! -s conftest.err
7543 } && test -s conftest.$ac_objext; then
7544 ac_hi=$ac_mid; break
7546 $as_echo "$as_me: failed program was:" >&5
7547 sed 's/^/| /' conftest.$ac_ext >&5
7549 ac_lo=`expr $ac_mid + 1`
7550 if test $ac_lo -le $ac_mid; then
7554 ac_mid=`expr 2 '*' $ac_mid + 1`
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7560 $as_echo "$as_me: failed program was:" >&5
7561 sed 's/^/| /' conftest.$ac_ext >&5
7563 cat >conftest.$ac_ext <<_ACEOF
7566 cat confdefs.h >>conftest.$ac_ext
7567 cat >>conftest.$ac_ext <<_ACEOF
7568 /* end confdefs.h. */
7569 $ac_includes_default
7573 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7580 rm -f conftest.$ac_objext
7581 if { (ac_try="$ac_compile"
7583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7584 *) ac_try_echo=$ac_try;;
7586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7587 $as_echo "$ac_try_echo") >&5
7588 (eval "$ac_compile") 2>conftest.er1
7590 grep -v '^ *+' conftest.er1 >conftest.err
7592 cat conftest.err >&5
7593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && {
7595 test -z "$ac_c_werror_flag" ||
7596 test ! -s conftest.err
7597 } && test -s conftest.$ac_objext; then
7600 cat >conftest.$ac_ext <<_ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 $ac_includes_default
7610 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7617 rm -f conftest.$ac_objext
7618 if { (ac_try="$ac_compile"
7620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7621 *) ac_try_echo=$ac_try;;
7623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7624 $as_echo "$ac_try_echo") >&5
7625 (eval "$ac_compile") 2>conftest.er1
7627 grep -v '^ *+' conftest.er1 >conftest.err
7629 cat conftest.err >&5
7630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631 (exit $ac_status); } && {
7632 test -z "$ac_c_werror_flag" ||
7633 test ! -s conftest.err
7634 } && test -s conftest.$ac_objext; then
7635 ac_lo=$ac_mid; break
7637 $as_echo "$as_me: failed program was:" >&5
7638 sed 's/^/| /' conftest.$ac_ext >&5
7640 ac_hi=`expr '(' $ac_mid ')' - 1`
7641 if test $ac_mid -le $ac_hi; then
7645 ac_mid=`expr 2 '*' $ac_mid`
7648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7651 $as_echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 # Binary search between lo and hi bounds.
7662 while test "x$ac_lo" != "x$ac_hi"; do
7663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7664 cat >conftest.$ac_ext <<_ACEOF
7667 cat confdefs.h >>conftest.$ac_ext
7668 cat >>conftest.$ac_ext <<_ACEOF
7669 /* end confdefs.h. */
7670 $ac_includes_default
7674 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7681 rm -f conftest.$ac_objext
7682 if { (ac_try="$ac_compile"
7684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7685 *) ac_try_echo=$ac_try;;
7687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7688 $as_echo "$ac_try_echo") >&5
7689 (eval "$ac_compile") 2>conftest.er1
7691 grep -v '^ *+' conftest.er1 >conftest.err
7693 cat conftest.err >&5
7694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); } && {
7696 test -z "$ac_c_werror_flag" ||
7697 test ! -s conftest.err
7698 } && test -s conftest.$ac_objext; then
7701 $as_echo "$as_me: failed program was:" >&5
7702 sed 's/^/| /' conftest.$ac_ext >&5
7704 ac_lo=`expr '(' $ac_mid ')' + 1`
7707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7710 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7711 '') if test "$ac_cv_type_signed_long_long" = yes; then
7712 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7713 See \`config.log' for more details." >&5
7714 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7715 See \`config.log' for more details." >&2;}
7716 { (exit 77); exit 77; }; }
7718 ac_cv_sizeof_signed_long_long=0
7722 cat >conftest.$ac_ext <<_ACEOF
7725 cat confdefs.h >>conftest.$ac_ext
7726 cat >>conftest.$ac_ext <<_ACEOF
7727 /* end confdefs.h. */
7728 $ac_includes_default
7729 static long int longval () { return (long int) (sizeof (signed long long)); }
7730 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7737 FILE *f = fopen ("conftest.val", "w");
7740 if (((long int) (sizeof (signed long long))) < 0)
7742 long int i = longval ();
7743 if (i != ((long int) (sizeof (signed long long))))
7745 fprintf (f, "%ld", i);
7749 unsigned long int i = ulongval ();
7750 if (i != ((long int) (sizeof (signed long long))))
7752 fprintf (f, "%lu", i);
7754 /* Do not output a trailing newline, as this causes \r\n confusion
7755 on some platforms. */
7756 return ferror (f) || fclose (f) != 0;
7762 rm -f conftest$ac_exeext
7763 if { (ac_try="$ac_link"
7765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766 *) ac_try_echo=$ac_try;;
7768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7769 $as_echo "$ac_try_echo") >&5
7770 (eval "$ac_link") 2>&5
7772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7774 { (case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7779 $as_echo "$ac_try_echo") >&5
7780 (eval "$ac_try") 2>&5
7782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; }; then
7784 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7786 $as_echo "$as_me: program exited with status $ac_status" >&5
7787 $as_echo "$as_me: failed program was:" >&5
7788 sed 's/^/| /' conftest.$ac_ext >&5
7791 if test "$ac_cv_type_signed_long_long" = yes; then
7792 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7793 See \`config.log' for more details." >&5
7794 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7795 See \`config.log' for more details." >&2;}
7796 { (exit 77); exit 77; }; }
7798 ac_cv_sizeof_signed_long_long=0
7801 rm -rf conftest.dSYM
7802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7806 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7807 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7811 cat >>confdefs.h <<_ACEOF
7812 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7816 # The cast to long int works around a bug in the HP C Compiler
7817 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7818 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7819 # This bug is HP SR number 8606223364.
7820 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7821 $as_echo_n "checking size of void*... " >&6; }
7822 if test "${ac_cv_sizeof_voidp+set}" = set; then
7823 $as_echo_n "(cached) " >&6
7825 if test "$cross_compiling" = yes; then
7826 # Depending upon the size, compute the lo and hi bounds.
7827 cat >conftest.$ac_ext <<_ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 $ac_includes_default
7837 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7844 rm -f conftest.$ac_objext
7845 if { (ac_try="$ac_compile"
7847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7848 *) ac_try_echo=$ac_try;;
7850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7851 $as_echo "$ac_try_echo") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7854 grep -v '^ *+' conftest.er1 >conftest.err
7856 cat conftest.err >&5
7857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7864 cat >conftest.$ac_ext <<_ACEOF
7867 cat confdefs.h >>conftest.$ac_ext
7868 cat >>conftest.$ac_ext <<_ACEOF
7869 /* end confdefs.h. */
7870 $ac_includes_default
7874 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7881 rm -f conftest.$ac_objext
7882 if { (ac_try="$ac_compile"
7884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7885 *) ac_try_echo=$ac_try;;
7887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7888 $as_echo "$ac_try_echo") >&5
7889 (eval "$ac_compile") 2>conftest.er1
7891 grep -v '^ *+' conftest.er1 >conftest.err
7893 cat conftest.err >&5
7894 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7895 (exit $ac_status); } && {
7896 test -z "$ac_c_werror_flag" ||
7897 test ! -s conftest.err
7898 } && test -s conftest.$ac_objext; then
7899 ac_hi=$ac_mid; break
7901 $as_echo "$as_me: failed program was:" >&5
7902 sed 's/^/| /' conftest.$ac_ext >&5
7904 ac_lo=`expr $ac_mid + 1`
7905 if test $ac_lo -le $ac_mid; then
7909 ac_mid=`expr 2 '*' $ac_mid + 1`
7912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915 $as_echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.$ac_ext >&5
7918 cat >conftest.$ac_ext <<_ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7924 $ac_includes_default
7928 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7935 rm -f conftest.$ac_objext
7936 if { (ac_try="$ac_compile"
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942 $as_echo "$ac_try_echo") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7945 grep -v '^ *+' conftest.er1 >conftest.err
7947 cat conftest.err >&5
7948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
7955 cat >conftest.$ac_ext <<_ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7961 $ac_includes_default
7965 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
7972 rm -f conftest.$ac_objext
7973 if { (ac_try="$ac_compile"
7975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7976 *) ac_try_echo=$ac_try;;
7978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7979 $as_echo "$ac_try_echo") >&5
7980 (eval "$ac_compile") 2>conftest.er1
7982 grep -v '^ *+' conftest.er1 >conftest.err
7984 cat conftest.err >&5
7985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } && {
7987 test -z "$ac_c_werror_flag" ||
7988 test ! -s conftest.err
7989 } && test -s conftest.$ac_objext; then
7990 ac_lo=$ac_mid; break
7992 $as_echo "$as_me: failed program was:" >&5
7993 sed 's/^/| /' conftest.$ac_ext >&5
7995 ac_hi=`expr '(' $ac_mid ')' - 1`
7996 if test $ac_mid -le $ac_hi; then
8000 ac_mid=`expr 2 '*' $ac_mid`
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8006 $as_echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8016 # Binary search between lo and hi bounds.
8017 while test "x$ac_lo" != "x$ac_hi"; do
8018 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8019 cat >conftest.$ac_ext <<_ACEOF
8022 cat confdefs.h >>conftest.$ac_ext
8023 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 $ac_includes_default
8029 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
8036 rm -f conftest.$ac_objext
8037 if { (ac_try="$ac_compile"
8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8043 $as_echo "$ac_try_echo") >&5
8044 (eval "$ac_compile") 2>conftest.er1
8046 grep -v '^ *+' conftest.er1 >conftest.err
8048 cat conftest.err >&5
8049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest.$ac_objext; then
8056 $as_echo "$as_me: failed program was:" >&5
8057 sed 's/^/| /' conftest.$ac_ext >&5
8059 ac_lo=`expr '(' $ac_mid ')' + 1`
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8066 '') if test "$ac_cv_type_voidp" = yes; then
8067 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8068 See \`config.log' for more details." >&5
8069 $as_echo "$as_me: error: cannot compute sizeof (void*)
8070 See \`config.log' for more details." >&2;}
8071 { (exit 77); exit 77; }; }
8073 ac_cv_sizeof_voidp=0
8077 cat >conftest.$ac_ext <<_ACEOF
8080 cat confdefs.h >>conftest.$ac_ext
8081 cat >>conftest.$ac_ext <<_ACEOF
8082 /* end confdefs.h. */
8083 $ac_includes_default
8084 static long int longval () { return (long int) (sizeof (void*)); }
8085 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
8092 FILE *f = fopen ("conftest.val", "w");
8095 if (((long int) (sizeof (void*))) < 0)
8097 long int i = longval ();
8098 if (i != ((long int) (sizeof (void*))))
8100 fprintf (f, "%ld", i);
8104 unsigned long int i = ulongval ();
8105 if (i != ((long int) (sizeof (void*))))
8107 fprintf (f, "%lu", i);
8109 /* Do not output a trailing newline, as this causes \r\n confusion
8110 on some platforms. */
8111 return ferror (f) || fclose (f) != 0;
8117 rm -f conftest$ac_exeext
8118 if { (ac_try="$ac_link"
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8124 $as_echo "$ac_try_echo") >&5
8125 (eval "$ac_link") 2>&5
8127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8134 $as_echo "$ac_try_echo") >&5
8135 (eval "$ac_try") 2>&5
8137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_cv_sizeof_voidp=`cat conftest.val`
8141 $as_echo "$as_me: program exited with status $ac_status" >&5
8142 $as_echo "$as_me: failed program was:" >&5
8143 sed 's/^/| /' conftest.$ac_ext >&5
8146 if test "$ac_cv_type_voidp" = yes; then
8147 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8148 See \`config.log' for more details." >&5
8149 $as_echo "$as_me: error: cannot compute sizeof (void*)
8150 See \`config.log' for more details." >&2;}
8151 { (exit 77); exit 77; }; }
8153 ac_cv_sizeof_voidp=0
8156 rm -rf conftest.dSYM
8157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8161 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8162 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8166 cat >>confdefs.h <<_ACEOF
8167 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8174 # Extract the first word of "freetype-config", so it can be a program name with args.
8175 set dummy freetype-config; ac_word=$2
8176 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8177 $as_echo_n "checking for $ac_word... " >&6; }
8178 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8179 $as_echo_n "(cached) " >&6
8181 case $FREETYPE_CONFIG in
8183 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8188 for as_dir in $as_dummy
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8194 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8205 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8206 if test -n "$FREETYPE_CONFIG"; then
8207 { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8208 $as_echo "$FREETYPE_CONFIG" >&6; }
8210 { $as_echo "$as_me:$LINENO: result: no" >&5
8211 $as_echo "no" >&6; }
8216 OLDCPPFLAGS="${CPPFLAGS}"
8218 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8219 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8220 else if test -d /usr/include/freetype2; then
8221 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8222 else if test -d /usr/local/include/freetype2; then
8223 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8228 if test "x${FREETYPE_CONFIG}" '=' "x";then
8229 # if we didn't find the freetype-config program, we won't
8230 # know where the libs are expected to be. So just blindly
8231 # try to link against them.
8232 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8233 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8234 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8235 $as_echo_n "(cached) " >&6
8237 ac_check_lib_save_LIBS=$LIBS
8238 LIBS="-lfreetype $LIBS"
8239 cat >conftest.$ac_ext <<_ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8246 /* Override any GCC internal prototype to avoid an error.
8247 Use char because int might match the return type of a GCC
8248 builtin and then its argument prototype would still apply. */
8252 char FT_Init_FreeType ();
8256 return FT_Init_FreeType ();
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (ac_try="$ac_link"
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8268 $as_echo "$ac_try_echo") >&5
8269 (eval "$ac_link") 2>conftest.er1
8271 grep -v '^ *+' conftest.er1 >conftest.err
8273 cat conftest.err >&5
8274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } && {
8276 test -z "$ac_c_werror_flag" ||
8277 test ! -s conftest.err
8278 } && test -s conftest$ac_exeext && {
8279 test "$cross_compiling" = yes ||
8280 $as_test_x conftest$ac_exeext
8282 ac_cv_lib_freetype_FT_Init_FreeType=yes
8284 $as_echo "$as_me: failed program was:" >&5
8285 sed 's/^/| /' conftest.$ac_ext >&5
8287 ac_cv_lib_freetype_FT_Init_FreeType=no
8290 rm -rf conftest.dSYM
8291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8292 conftest$ac_exeext conftest.$ac_ext
8293 LIBS=$ac_check_lib_save_LIBS
8295 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8296 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8297 if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
8304 for ac_header in ft2build.h
8306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8309 $as_echo_n "checking for $ac_header... " >&6; }
8310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8311 $as_echo_n "(cached) " >&6
8313 ac_res=`eval 'as_val=${'$as_ac_Header'}
8314 $as_echo "$as_val"'`
8315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8316 $as_echo "$ac_res" >&6; }
8318 # Is the header compilable?
8319 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8320 $as_echo_n "checking $ac_header usability... " >&6; }
8321 cat >conftest.$ac_ext <<_ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 $ac_includes_default
8328 #include <$ac_header>
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8337 $as_echo "$ac_try_echo") >&5
8338 (eval "$ac_compile") 2>conftest.er1
8340 grep -v '^ *+' conftest.er1 >conftest.err
8342 cat conftest.err >&5
8343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8344 (exit $ac_status); } && {
8345 test -z "$ac_c_werror_flag" ||
8346 test ! -s conftest.err
8347 } && test -s conftest.$ac_objext; then
8348 ac_header_compiler=yes
8350 $as_echo "$as_me: failed program was:" >&5
8351 sed 's/^/| /' conftest.$ac_ext >&5
8353 ac_header_compiler=no
8356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8357 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8358 $as_echo "$ac_header_compiler" >&6; }
8360 # Is the header present?
8361 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8362 $as_echo_n "checking $ac_header presence... " >&6; }
8363 cat >conftest.$ac_ext <<_ACEOF
8366 cat confdefs.h >>conftest.$ac_ext
8367 cat >>conftest.$ac_ext <<_ACEOF
8368 /* end confdefs.h. */
8369 #include <$ac_header>
8371 if { (ac_try="$ac_cpp conftest.$ac_ext"
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8377 $as_echo "$ac_try_echo") >&5
8378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8380 grep -v '^ *+' conftest.er1 >conftest.err
8382 cat conftest.err >&5
8383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8384 (exit $ac_status); } >/dev/null && {
8385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8386 test ! -s conftest.err
8388 ac_header_preproc=yes
8390 $as_echo "$as_me: failed program was:" >&5
8391 sed 's/^/| /' conftest.$ac_ext >&5
8393 ac_header_preproc=no
8396 rm -f conftest.err conftest.$ac_ext
8397 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8398 $as_echo "$ac_header_preproc" >&6; }
8400 # So? What about this header?
8401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8404 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8405 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8406 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8407 ac_header_preproc=yes
8410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8411 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8413 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8415 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8417 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8419 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8421 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8425 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8426 $as_echo_n "checking for $ac_header... " >&6; }
8427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8428 $as_echo_n "(cached) " >&6
8430 eval "$as_ac_Header=\$ac_header_preproc"
8432 ac_res=`eval 'as_val=${'$as_ac_Header'}
8433 $as_echo "$as_val"'`
8434 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8435 $as_echo "$ac_res" >&6; }
8438 if test `eval 'as_val=${'$as_ac_Header'}
8439 $as_echo "$as_val"'` = yes; then
8440 cat >>confdefs.h <<_ACEOF
8441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8448 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8450 for ac_header in freetype/freetype.h
8452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8454 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8455 $as_echo_n "checking for $ac_header... " >&6; }
8456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8457 $as_echo_n "(cached) " >&6
8459 ac_res=`eval 'as_val=${'$as_ac_Header'}
8460 $as_echo "$as_val"'`
8461 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8462 $as_echo "$ac_res" >&6; }
8464 # Is the header compilable?
8465 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8466 $as_echo_n "checking $ac_header usability... " >&6; }
8467 cat >conftest.$ac_ext <<_ACEOF
8470 cat confdefs.h >>conftest.$ac_ext
8471 cat >>conftest.$ac_ext <<_ACEOF
8472 /* end confdefs.h. */
8473 $ac_includes_default
8474 #include <$ac_header>
8476 rm -f conftest.$ac_objext
8477 if { (ac_try="$ac_compile"
8479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8480 *) ac_try_echo=$ac_try;;
8482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8483 $as_echo "$ac_try_echo") >&5
8484 (eval "$ac_compile") 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } && {
8491 test -z "$ac_c_werror_flag" ||
8492 test ! -s conftest.err
8493 } && test -s conftest.$ac_objext; then
8494 ac_header_compiler=yes
8496 $as_echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8499 ac_header_compiler=no
8502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8504 $as_echo "$ac_header_compiler" >&6; }
8506 # Is the header present?
8507 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8508 $as_echo_n "checking $ac_header presence... " >&6; }
8509 cat >conftest.$ac_ext <<_ACEOF
8512 cat confdefs.h >>conftest.$ac_ext
8513 cat >>conftest.$ac_ext <<_ACEOF
8514 /* end confdefs.h. */
8515 #include <$ac_header>
8517 if { (ac_try="$ac_cpp conftest.$ac_ext"
8519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8523 $as_echo "$ac_try_echo") >&5
8524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8526 grep -v '^ *+' conftest.er1 >conftest.err
8528 cat conftest.err >&5
8529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8530 (exit $ac_status); } >/dev/null && {
8531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8532 test ! -s conftest.err
8534 ac_header_preproc=yes
8536 $as_echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_header_preproc=no
8542 rm -f conftest.err conftest.$ac_ext
8543 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8544 $as_echo "$ac_header_preproc" >&6; }
8546 # So? What about this header?
8547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8549 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8550 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8552 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8553 ac_header_preproc=yes
8556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8557 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8558 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8559 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8560 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8561 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8563 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8565 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8567 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8571 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8572 $as_echo_n "checking for $ac_header... " >&6; }
8573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8574 $as_echo_n "(cached) " >&6
8576 eval "$as_ac_Header=\$ac_header_preproc"
8578 ac_res=`eval 'as_val=${'$as_ac_Header'}
8579 $as_echo "$as_val"'`
8580 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8581 $as_echo "$ac_res" >&6; }
8584 if test `eval 'as_val=${'$as_ac_Header'}
8585 $as_echo "$as_val"'` = yes; then
8586 cat >>confdefs.h <<_ACEOF
8587 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8589 HAVE_FREETYPE_FREETYPE_H=1
8596 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8597 "x${FREETYPE_CONFIG}" '!=' "x";then
8598 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8601 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8606 if test "x${HAVE_FREETYPE}" = "x1"; then
8607 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8608 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8610 LIBS="$LIBS -lfreetype"
8613 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8614 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8617 { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8618 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8620 cat > conftest.c << EOF
8621 $HAVE_FT2BUILD_H_DEFINE
8623 #ifdef HAVE_FT2BUILD_H
8624 #include <ft2build.h>
8625 #include FT_FREETYPE_H
8628 #include FT_SFNT_NAMES_H
8629 #include FT_TRUETYPE_IDS_H
8630 #include FT_OUTLINE_H
8632 #include <freetype/freetype.h>
8633 #include <freetype/ftglyph.h>
8634 #include <freetype/ftsizes.h>
8635 #include <freetype/ftsnames.h>
8636 #include <freetype/ttnameid.h>
8637 #include <freetype/ftoutln.h>
8642 FT_Library ftlibrary;
8654 FT_Init_FreeType(&ftlibrary);
8655 FT_New_Face(ftlibrary, "filename", 0, &face);
8656 i = face->num_glyphs - 1;
8657 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8658 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8659 FT_Get_Postscript_Name(face);
8660 FT_Get_Char_Index(face, 33);
8661 FT_Get_First_Char(face, &i);
8662 FT_Get_Next_Char(face, 33, &i);
8663 if(FT_HAS_GLYPH_NAMES(face)) {
8664 FT_Get_Glyph_Name(face, 33, name, 127);
8666 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8667 FT_Get_Glyph(face->glyph, &glyph);
8668 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8669 FT_Done_Glyph(glyph);
8671 FT_Done_FreeType(ftlibrary);
8676 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8677 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8678 { $as_echo "$as_me:$LINENO: result: yes" >&5
8679 $as_echo "yes" >&6; }
8681 cat >>confdefs.h <<\_ACEOF
8682 #define HAVE_FREETYPE 1
8686 cat >>confdefs.h <<\_ACEOF
8687 #define HAVE_FREETYPE_FREETYPE_H 1
8691 cat >>confdefs.h <<\_ACEOF
8692 #define USE_FREETYPE 1
8696 echo "configure: failed program was:" >&5
8699 { $as_echo "$as_me:$LINENO: result: no" >&5
8700 $as_echo "no" >&6; }
8705 # if the above didn't work out, reset all changes to the compiler variables.
8706 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8707 CPPFLAGS=$OLDCPPFLAGS
8713 OLDCPPFLAGS="${CPPFLAGS}"
8716 if test -d /usr/include/fontconfig; then
8717 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8720 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8721 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8722 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8723 $as_echo_n "(cached) " >&6
8725 ac_check_lib_save_LIBS=$LIBS
8726 LIBS="-lfontconfig $LIBS"
8727 cat >conftest.$ac_ext <<_ACEOF
8730 cat confdefs.h >>conftest.$ac_ext
8731 cat >>conftest.$ac_ext <<_ACEOF
8732 /* end confdefs.h. */
8734 /* Override any GCC internal prototype to avoid an error.
8735 Use char because int might match the return type of a GCC
8736 builtin and then its argument prototype would still apply. */
8749 rm -f conftest.$ac_objext conftest$ac_exeext
8750 if { (ac_try="$ac_link"
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8756 $as_echo "$ac_try_echo") >&5
8757 (eval "$ac_link") 2>conftest.er1
8759 grep -v '^ *+' conftest.er1 >conftest.err
8761 cat conftest.err >&5
8762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } && {
8764 test -z "$ac_c_werror_flag" ||
8765 test ! -s conftest.err
8766 } && test -s conftest$ac_exeext && {
8767 test "$cross_compiling" = yes ||
8768 $as_test_x conftest$ac_exeext
8770 ac_cv_lib_fontconfig_FcInit=yes
8772 $as_echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 ac_cv_lib_fontconfig_FcInit=no
8778 rm -rf conftest.dSYM
8779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8780 conftest$ac_exeext conftest.$ac_ext
8781 LIBS=$ac_check_lib_save_LIBS
8783 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8784 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8785 if test $ac_cv_lib_fontconfig_FcInit = yes; then
8786 HAVE_LIB_FONTCONFIG=1
8790 for ac_header in fontconfig.h
8792 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8794 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8795 $as_echo_n "checking for $ac_header... " >&6; }
8796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8797 $as_echo_n "(cached) " >&6
8799 ac_res=`eval 'as_val=${'$as_ac_Header'}
8800 $as_echo "$as_val"'`
8801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8802 $as_echo "$ac_res" >&6; }
8804 # Is the header compilable?
8805 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8806 $as_echo_n "checking $ac_header usability... " >&6; }
8807 cat >conftest.$ac_ext <<_ACEOF
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8813 $ac_includes_default
8814 #include <$ac_header>
8816 rm -f conftest.$ac_objext
8817 if { (ac_try="$ac_compile"
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8823 $as_echo "$ac_try_echo") >&5
8824 (eval "$ac_compile") 2>conftest.er1
8826 grep -v '^ *+' conftest.er1 >conftest.err
8828 cat conftest.err >&5
8829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } && {
8831 test -z "$ac_c_werror_flag" ||
8832 test ! -s conftest.err
8833 } && test -s conftest.$ac_objext; then
8834 ac_header_compiler=yes
8836 $as_echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8839 ac_header_compiler=no
8842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8843 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8844 $as_echo "$ac_header_compiler" >&6; }
8846 # Is the header present?
8847 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8848 $as_echo_n "checking $ac_header presence... " >&6; }
8849 cat >conftest.$ac_ext <<_ACEOF
8852 cat confdefs.h >>conftest.$ac_ext
8853 cat >>conftest.$ac_ext <<_ACEOF
8854 /* end confdefs.h. */
8855 #include <$ac_header>
8857 if { (ac_try="$ac_cpp conftest.$ac_ext"
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8863 $as_echo "$ac_try_echo") >&5
8864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8866 grep -v '^ *+' conftest.er1 >conftest.err
8868 cat conftest.err >&5
8869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } >/dev/null && {
8871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8872 test ! -s conftest.err
8874 ac_header_preproc=yes
8876 $as_echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_header_preproc=no
8882 rm -f conftest.err conftest.$ac_ext
8883 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8884 $as_echo "$ac_header_preproc" >&6; }
8886 # So? What about this header?
8887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8890 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8892 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8893 ac_header_preproc=yes
8896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8897 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8899 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8901 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8903 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8905 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8907 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8911 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8912 $as_echo_n "checking for $ac_header... " >&6; }
8913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8914 $as_echo_n "(cached) " >&6
8916 eval "$as_ac_Header=\$ac_header_preproc"
8918 ac_res=`eval 'as_val=${'$as_ac_Header'}
8919 $as_echo "$as_val"'`
8920 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8921 $as_echo "$ac_res" >&6; }
8924 if test `eval 'as_val=${'$as_ac_Header'}
8925 $as_echo "$as_val"'` = yes; then
8926 cat >>confdefs.h <<_ACEOF
8927 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8935 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8936 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8941 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8942 LIBS="$LIBS -lfontconfig"
8943 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8944 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8946 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8947 #move freetype library to the end of libraries, otherwise fontconfig
8949 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8952 cat > conftest.c << EOF
8954 #include <fontconfig.h>
8958 FcPattern *pattern, *match;
8961 char*s1="abc",*s2="ABC";
8964 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8965 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8966 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8968 FcConfig*c = FcConfigCreate();
8969 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8970 FcConfigBuildFonts(c);
8971 FcConfigSetCurrent(c);
8973 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
8974 FcFontSetDestroy(set);
8976 FcConfigSubstitute(0, pattern, FcMatchPattern);
8977 FcDefaultSubstitute(pattern);
8978 match = FcFontMatch(0, pattern, &result);
8979 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8980 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8981 FcPatternPrint(pattern);
8982 FcPatternDestroy(pattern);
8983 FcPatternDestroy(match);
8989 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8990 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8991 { $as_echo "$as_me:$LINENO: result: yes" >&5
8992 $as_echo "yes" >&6; }
8994 cat >>confdefs.h <<\_ACEOF
8995 #define HAVE_FONTCONFIG 1
8999 echo "configure: failed program was:" >&5
9002 { $as_echo "$as_me:$LINENO: result: no" >&5
9003 $as_echo "no" >&6; }
9008 # if the above didn't work out, reset all changes to the compiler variables.
9009 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
9010 CPPFLAGS=$OLDCPPFLAGS
9016 OLDCPPFLAGS="${CPPFLAGS}"
9020 { $as_echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
9021 $as_echo_n "checking for glBegin in -lGL... " >&6; }
9022 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
9023 $as_echo_n "(cached) " >&6
9025 ac_check_lib_save_LIBS=$LIBS
9027 cat >conftest.$ac_ext <<_ACEOF
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9034 /* Override any GCC internal prototype to avoid an error.
9035 Use char because int might match the return type of a GCC
9036 builtin and then its argument prototype would still apply. */
9049 rm -f conftest.$ac_objext conftest$ac_exeext
9050 if { (ac_try="$ac_link"
9052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9053 *) ac_try_echo=$ac_try;;
9055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9056 $as_echo "$ac_try_echo") >&5
9057 (eval "$ac_link") 2>conftest.er1
9059 grep -v '^ *+' conftest.er1 >conftest.err
9061 cat conftest.err >&5
9062 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063 (exit $ac_status); } && {
9064 test -z "$ac_c_werror_flag" ||
9065 test ! -s conftest.err
9066 } && test -s conftest$ac_exeext && {
9067 test "$cross_compiling" = yes ||
9068 $as_test_x conftest$ac_exeext
9070 ac_cv_lib_GL_glBegin=yes
9072 $as_echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9075 ac_cv_lib_GL_glBegin=no
9078 rm -rf conftest.dSYM
9079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9080 conftest$ac_exeext conftest.$ac_ext
9081 LIBS=$ac_check_lib_save_LIBS
9083 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
9084 $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
9085 if test $ac_cv_lib_GL_glBegin = yes; then
9086 cat >>confdefs.h <<_ACEOF
9087 #define HAVE_LIBGL 1
9095 { $as_echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
9096 $as_echo_n "checking for gluBeginSurface in -lGLU... " >&6; }
9097 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
9098 $as_echo_n "(cached) " >&6
9100 ac_check_lib_save_LIBS=$LIBS
9102 cat >conftest.$ac_ext <<_ACEOF
9105 cat confdefs.h >>conftest.$ac_ext
9106 cat >>conftest.$ac_ext <<_ACEOF
9107 /* end confdefs.h. */
9109 /* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
9115 char gluBeginSurface ();
9119 return gluBeginSurface ();
9124 rm -f conftest.$ac_objext conftest$ac_exeext
9125 if { (ac_try="$ac_link"
9127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9128 *) ac_try_echo=$ac_try;;
9130 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9131 $as_echo "$ac_try_echo") >&5
9132 (eval "$ac_link") 2>conftest.er1
9134 grep -v '^ *+' conftest.er1 >conftest.err
9136 cat conftest.err >&5
9137 $as_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 test "$cross_compiling" = yes ||
9143 $as_test_x conftest$ac_exeext
9145 ac_cv_lib_GLU_gluBeginSurface=yes
9147 $as_echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 ac_cv_lib_GLU_gluBeginSurface=no
9153 rm -rf conftest.dSYM
9154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9155 conftest$ac_exeext conftest.$ac_ext
9156 LIBS=$ac_check_lib_save_LIBS
9158 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
9159 $as_echo "$ac_cv_lib_GLU_gluBeginSurface" >&6; }
9160 if test $ac_cv_lib_GLU_gluBeginSurface = yes; then
9161 cat >>confdefs.h <<_ACEOF
9162 #define HAVE_LIBGLU 1
9170 { $as_echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
9171 $as_echo_n "checking for glutInit in -lglut... " >&6; }
9172 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
9173 $as_echo_n "(cached) " >&6
9175 ac_check_lib_save_LIBS=$LIBS
9177 cat >conftest.$ac_ext <<_ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9184 /* Override any GCC internal prototype to avoid an error.
9185 Use char because int might match the return type of a GCC
9186 builtin and then its argument prototype would still apply. */
9199 rm -f conftest.$ac_objext conftest$ac_exeext
9200 if { (ac_try="$ac_link"
9202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9203 *) ac_try_echo=$ac_try;;
9205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9206 $as_echo "$ac_try_echo") >&5
9207 (eval "$ac_link") 2>conftest.er1
9209 grep -v '^ *+' conftest.er1 >conftest.err
9211 cat conftest.err >&5
9212 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } && {
9214 test -z "$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9216 } && test -s conftest$ac_exeext && {
9217 test "$cross_compiling" = yes ||
9218 $as_test_x conftest$ac_exeext
9220 ac_cv_lib_glut_glutInit=yes
9222 $as_echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9225 ac_cv_lib_glut_glutInit=no
9228 rm -rf conftest.dSYM
9229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9230 conftest$ac_exeext conftest.$ac_ext
9231 LIBS=$ac_check_lib_save_LIBS
9233 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
9234 $as_echo "$ac_cv_lib_glut_glutInit" >&6; }
9235 if test $ac_cv_lib_glut_glutInit = yes; then
9236 cat >>confdefs.h <<_ACEOF
9237 #define HAVE_LIBGLUT 1
9246 for ac_header in GL/gl.h GL/glut.h
9248 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9249 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9250 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9251 $as_echo_n "checking for $ac_header... " >&6; }
9252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9253 $as_echo_n "(cached) " >&6
9255 ac_res=`eval 'as_val=${'$as_ac_Header'}
9256 $as_echo "$as_val"'`
9257 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9258 $as_echo "$ac_res" >&6; }
9260 # Is the header compilable?
9261 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9262 $as_echo_n "checking $ac_header usability... " >&6; }
9263 cat >conftest.$ac_ext <<_ACEOF
9266 cat confdefs.h >>conftest.$ac_ext
9267 cat >>conftest.$ac_ext <<_ACEOF
9268 /* end confdefs.h. */
9269 $ac_includes_default
9270 #include <$ac_header>
9272 rm -f conftest.$ac_objext
9273 if { (ac_try="$ac_compile"
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9279 $as_echo "$ac_try_echo") >&5
9280 (eval "$ac_compile") 2>conftest.er1
9282 grep -v '^ *+' conftest.er1 >conftest.err
9284 cat conftest.err >&5
9285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9286 (exit $ac_status); } && {
9287 test -z "$ac_c_werror_flag" ||
9288 test ! -s conftest.err
9289 } && test -s conftest.$ac_objext; then
9290 ac_header_compiler=yes
9292 $as_echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9295 ac_header_compiler=no
9298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9299 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9300 $as_echo "$ac_header_compiler" >&6; }
9302 # Is the header present?
9303 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9304 $as_echo_n "checking $ac_header presence... " >&6; }
9305 cat >conftest.$ac_ext <<_ACEOF
9308 cat confdefs.h >>conftest.$ac_ext
9309 cat >>conftest.$ac_ext <<_ACEOF
9310 /* end confdefs.h. */
9311 #include <$ac_header>
9313 if { (ac_try="$ac_cpp conftest.$ac_ext"
9315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9316 *) ac_try_echo=$ac_try;;
9318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9319 $as_echo "$ac_try_echo") >&5
9320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9322 grep -v '^ *+' conftest.er1 >conftest.err
9324 cat conftest.err >&5
9325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } >/dev/null && {
9327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9328 test ! -s conftest.err
9330 ac_header_preproc=yes
9332 $as_echo "$as_me: failed program was:" >&5
9333 sed 's/^/| /' conftest.$ac_ext >&5
9335 ac_header_preproc=no
9338 rm -f conftest.err conftest.$ac_ext
9339 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9340 $as_echo "$ac_header_preproc" >&6; }
9342 # So? What about this header?
9343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9345 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9346 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9348 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9349 ac_header_preproc=yes
9352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9353 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9355 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9357 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9359 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9361 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9363 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9368 $as_echo_n "checking for $ac_header... " >&6; }
9369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9370 $as_echo_n "(cached) " >&6
9372 eval "$as_ac_Header=\$ac_header_preproc"
9374 ac_res=`eval 'as_val=${'$as_ac_Header'}
9375 $as_echo "$as_val"'`
9376 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9377 $as_echo "$ac_res" >&6; }
9380 if test `eval 'as_val=${'$as_ac_Header'}
9381 $as_echo "$as_val"'` = yes; then
9382 cat >>confdefs.h <<_ACEOF
9383 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9391 cat > conftest.c << EOF
9394 #include <GL/glut.h>
9396 int main(int argc, char*argv)
9398 glutInit(&argc, argv);
9399 glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
9400 glutInitWindowSize(320,200);
9401 glutInitWindowPosition(0,0);
9402 glutCreateWindow("main");
9403 glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
9404 glShadeModel(GL_SMOOTH);
9405 glEnable (GL_LINE_SMOOTH);
9406 glEnable (GL_POLYGON_SMOOTH);
9407 glEnable (GL_BLEND);
9408 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9409 glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
9410 glHint (GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
9414 { $as_echo "$as_me:$LINENO: checking whether we can compile the opengl test program" >&5
9415 $as_echo_n "checking whether we can compile the opengl test program... " >&6; }
9417 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9418 if { (eval echo opengl.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9419 { $as_echo "$as_me:$LINENO: result: yes" >&5
9420 $as_echo "yes" >&6; }
9423 cat >>confdefs.h <<\_ACEOF
9424 #define HAVE_OPENGL 1
9428 echo "configure: failed program was:" >&5
9431 { $as_echo "$as_me:$LINENO: result: no" >&5
9432 $as_echo "no" >&6; }
9436 # if the above didn't work out, reset all changes to the compiler variables.
9437 if test "x${HAVE_OPENGL}" "!=" "x1"; then
9438 CPPFLAGS=$OLDCPPFLAGS
9442 if test "$HAVE_OPENGL";then
9443 DEVICE_OPENGL='devices/opengl.$(O)'
9449 if test "x${DISABLE_LAME}" = "xtrue"; then
9450 echo "*" Disabling lame support...
9452 # old lame code at lib/lame
9453 if test -f lib/lame/Makefile.in; then
9454 lame_in_source='$(lame_objects)'
9455 lame_makefile="lib/lame/Makefile"
9456 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9458 cat >>confdefs.h <<\_ACEOF
9463 if test -d /usr/include/lame; then
9464 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9466 if test -d /usr/local/include/lame; then
9467 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9471 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9472 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9473 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9474 $as_echo_n "(cached) " >&6
9476 ac_check_lib_save_LIBS=$LIBS
9477 LIBS="-lmp3lame $LIBS"
9478 cat >conftest.$ac_ext <<_ACEOF
9481 cat confdefs.h >>conftest.$ac_ext
9482 cat >>conftest.$ac_ext <<_ACEOF
9483 /* end confdefs.h. */
9485 /* Override any GCC internal prototype to avoid an error.
9486 Use char because int might match the return type of a GCC
9487 builtin and then its argument prototype would still apply. */
9495 return lame_init ();
9500 rm -f conftest.$ac_objext conftest$ac_exeext
9501 if { (ac_try="$ac_link"
9503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9504 *) ac_try_echo=$ac_try;;
9506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9507 $as_echo "$ac_try_echo") >&5
9508 (eval "$ac_link") 2>conftest.er1
9510 grep -v '^ *+' conftest.er1 >conftest.err
9512 cat conftest.err >&5
9513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && {
9515 test -z "$ac_c_werror_flag" ||
9516 test ! -s conftest.err
9517 } && test -s conftest$ac_exeext && {
9518 test "$cross_compiling" = yes ||
9519 $as_test_x conftest$ac_exeext
9521 ac_cv_lib_mp3lame_lame_init=yes
9523 $as_echo "$as_me: failed program was:" >&5
9524 sed 's/^/| /' conftest.$ac_ext >&5
9526 ac_cv_lib_mp3lame_lame_init=no
9529 rm -rf conftest.dSYM
9530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9531 conftest$ac_exeext conftest.$ac_ext
9532 LIBS=$ac_check_lib_save_LIBS
9534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9535 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9536 if test $ac_cv_lib_mp3lame_lame_init = yes; then
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_LIBMP3LAME 1
9541 LIBS="-lmp3lame $LIBS"
9549 for ac_header in lame.h
9551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9553 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9554 $as_echo_n "checking for $ac_header... " >&6; }
9555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9556 $as_echo_n "(cached) " >&6
9558 ac_res=`eval 'as_val=${'$as_ac_Header'}
9559 $as_echo "$as_val"'`
9560 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9561 $as_echo "$ac_res" >&6; }
9563 # Is the header compilable?
9564 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9565 $as_echo_n "checking $ac_header usability... " >&6; }
9566 cat >conftest.$ac_ext <<_ACEOF
9569 cat confdefs.h >>conftest.$ac_ext
9570 cat >>conftest.$ac_ext <<_ACEOF
9571 /* end confdefs.h. */
9572 $ac_includes_default
9573 #include <$ac_header>
9575 rm -f conftest.$ac_objext
9576 if { (ac_try="$ac_compile"
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9582 $as_echo "$ac_try_echo") >&5
9583 (eval "$ac_compile") 2>conftest.er1
9585 grep -v '^ *+' conftest.er1 >conftest.err
9587 cat conftest.err >&5
9588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } && {
9590 test -z "$ac_c_werror_flag" ||
9591 test ! -s conftest.err
9592 } && test -s conftest.$ac_objext; then
9593 ac_header_compiler=yes
9595 $as_echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 ac_header_compiler=no
9601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9602 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9603 $as_echo "$ac_header_compiler" >&6; }
9605 # Is the header present?
9606 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9607 $as_echo_n "checking $ac_header presence... " >&6; }
9608 cat >conftest.$ac_ext <<_ACEOF
9611 cat confdefs.h >>conftest.$ac_ext
9612 cat >>conftest.$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9614 #include <$ac_header>
9616 if { (ac_try="$ac_cpp conftest.$ac_ext"
9618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9619 *) ac_try_echo=$ac_try;;
9621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9622 $as_echo "$ac_try_echo") >&5
9623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9625 grep -v '^ *+' conftest.er1 >conftest.err
9627 cat conftest.err >&5
9628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9629 (exit $ac_status); } >/dev/null && {
9630 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9631 test ! -s conftest.err
9633 ac_header_preproc=yes
9635 $as_echo "$as_me: failed program was:" >&5
9636 sed 's/^/| /' conftest.$ac_ext >&5
9638 ac_header_preproc=no
9641 rm -f conftest.err conftest.$ac_ext
9642 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9643 $as_echo "$ac_header_preproc" >&6; }
9645 # So? What about this header?
9646 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9648 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9649 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9650 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9651 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9652 ac_header_preproc=yes
9655 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9656 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9657 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9658 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9659 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9660 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9661 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9662 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9664 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9666 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9670 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9671 $as_echo_n "checking for $ac_header... " >&6; }
9672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9673 $as_echo_n "(cached) " >&6
9675 eval "$as_ac_Header=\$ac_header_preproc"
9677 ac_res=`eval 'as_val=${'$as_ac_Header'}
9678 $as_echo "$as_val"'`
9679 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9680 $as_echo "$ac_res" >&6; }
9683 if test `eval 'as_val=${'$as_ac_Header'}
9684 $as_echo "$as_val"'` = yes; then
9685 cat >>confdefs.h <<_ACEOF
9686 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9693 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9694 cat >>confdefs.h <<\_ACEOF
9703 art_in_source='$(art_objects)'
9705 cat >>confdefs.h <<\_ACEOF
9706 #define INTERNAL_LIBART 1
9710 if test "x$EXTERNAL_LIBART" = "xtrue"; then
9714 { $as_echo "$as_me:$LINENO: checking for LIBART" >&5
9715 $as_echo_n "checking for LIBART... " >&6; }
9717 if test -n "$LIBART_CFLAGS"; then
9718 pkg_cv_LIBART_CFLAGS="$LIBART_CFLAGS"
9719 elif test -n "$PKG_CONFIG"; then
9720 if test -n "$PKG_CONFIG" && \
9721 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libart-2.0\"") >&5
9722 ($PKG_CONFIG --exists --print-errors "libart-2.0") 2>&5
9724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9725 (exit $ac_status); }; then
9726 pkg_cv_LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0" 2>/dev/null`
9733 if test -n "$LIBART_LIBS"; then
9734 pkg_cv_LIBART_LIBS="$LIBART_LIBS"
9735 elif test -n "$PKG_CONFIG"; then
9736 if test -n "$PKG_CONFIG" && \
9737 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libart-2.0\"") >&5
9738 ($PKG_CONFIG --exists --print-errors "libart-2.0") 2>&5
9740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9741 (exit $ac_status); }; then
9742 pkg_cv_LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0" 2>/dev/null`
9752 if test $pkg_failed = yes; then
9754 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9755 _pkg_short_errors_supported=yes
9757 _pkg_short_errors_supported=no
9759 if test $_pkg_short_errors_supported = yes; then
9760 LIBART_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libart-2.0" 2>&1`
9762 LIBART_PKG_ERRORS=`$PKG_CONFIG --print-errors "libart-2.0" 2>&1`
9764 # Put the nasty error message in config.log where it belongs
9765 echo "$LIBART_PKG_ERRORS" >&5
9767 { $as_echo "$as_me:$LINENO: result: no" >&5
9768 $as_echo "no" >&6; }
9769 libart_pkgconfig_libart=no
9770 elif test $pkg_failed = untried; then
9771 libart_pkgconfig_libart=no
9773 LIBART_CFLAGS=$pkg_cv_LIBART_CFLAGS
9774 LIBART_LIBS=$pkg_cv_LIBART_LIBS
9775 { $as_echo "$as_me:$LINENO: result: yes" >&5
9776 $as_echo "yes" >&6; }
9779 if test "x$libart_pkgconfig_libart" = "xno"; then
9781 for ac_header in libart_lgpl/libart.h
9783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9786 $as_echo_n "checking for $ac_header... " >&6; }
9787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9788 $as_echo_n "(cached) " >&6
9790 ac_res=`eval 'as_val=${'$as_ac_Header'}
9791 $as_echo "$as_val"'`
9792 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9793 $as_echo "$ac_res" >&6; }
9795 # Is the header compilable?
9796 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9797 $as_echo_n "checking $ac_header usability... " >&6; }
9798 cat >conftest.$ac_ext <<_ACEOF
9801 cat confdefs.h >>conftest.$ac_ext
9802 cat >>conftest.$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 $ac_includes_default
9805 #include <$ac_header>
9807 rm -f conftest.$ac_objext
9808 if { (ac_try="$ac_compile"
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9814 $as_echo "$ac_try_echo") >&5
9815 (eval "$ac_compile") 2>conftest.er1
9817 grep -v '^ *+' conftest.er1 >conftest.err
9819 cat conftest.err >&5
9820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } && {
9822 test -z "$ac_c_werror_flag" ||
9823 test ! -s conftest.err
9824 } && test -s conftest.$ac_objext; then
9825 ac_header_compiler=yes
9827 $as_echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9830 ac_header_compiler=no
9833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9835 $as_echo "$ac_header_compiler" >&6; }
9837 # Is the header present?
9838 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9839 $as_echo_n "checking $ac_header presence... " >&6; }
9840 cat >conftest.$ac_ext <<_ACEOF
9843 cat confdefs.h >>conftest.$ac_ext
9844 cat >>conftest.$ac_ext <<_ACEOF
9845 /* end confdefs.h. */
9846 #include <$ac_header>
9848 if { (ac_try="$ac_cpp conftest.$ac_ext"
9850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9851 *) ac_try_echo=$ac_try;;
9853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9854 $as_echo "$ac_try_echo") >&5
9855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } >/dev/null && {
9862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9863 test ! -s conftest.err
9865 ac_header_preproc=yes
9867 $as_echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9870 ac_header_preproc=no
9873 rm -f conftest.err conftest.$ac_ext
9874 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9875 $as_echo "$ac_header_preproc" >&6; }
9877 # So? What about this header?
9878 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9881 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9883 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9884 ac_header_preproc=yes
9887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9888 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9889 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9890 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9891 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9892 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9893 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9894 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9895 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9896 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9898 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9902 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9903 $as_echo_n "checking for $ac_header... " >&6; }
9904 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9905 $as_echo_n "(cached) " >&6
9907 eval "$as_ac_Header=\$ac_header_preproc"
9909 ac_res=`eval 'as_val=${'$as_ac_Header'}
9910 $as_echo "$as_val"'`
9911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9912 $as_echo "$ac_res" >&6; }
9915 if test `eval 'as_val=${'$as_ac_Header'}
9916 $as_echo "$as_val"'` = yes; then
9917 cat >>confdefs.h <<_ACEOF
9918 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9922 { $as_echo "$as_me:$LINENO: checking for art_new in -lart_lgpl_2" >&5
9923 $as_echo_n "checking for art_new in -lart_lgpl_2... " >&6; }
9924 if test "${ac_cv_lib_art_lgpl_2_art_new+set}" = set; then
9925 $as_echo_n "(cached) " >&6
9927 ac_check_lib_save_LIBS=$LIBS
9928 LIBS="-lart_lgpl_2 $LIBS"
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9936 /* Override any GCC internal prototype to avoid an error.
9937 Use char because int might match the return type of a GCC
9938 builtin and then its argument prototype would still apply. */
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9958 $as_echo "$ac_try_echo") >&5
9959 (eval "$ac_link") 2>conftest.er1
9961 grep -v '^ *+' conftest.er1 >conftest.err
9963 cat conftest.err >&5
9964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } && {
9966 test -z "$ac_c_werror_flag" ||
9967 test ! -s conftest.err
9968 } && test -s conftest$ac_exeext && {
9969 test "$cross_compiling" = yes ||
9970 $as_test_x conftest$ac_exeext
9972 ac_cv_lib_art_lgpl_2_art_new=yes
9974 $as_echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9977 ac_cv_lib_art_lgpl_2_art_new=no
9980 rm -rf conftest.dSYM
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982 conftest$ac_exeext conftest.$ac_ext
9983 LIBS=$ac_check_lib_save_LIBS
9985 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_art_lgpl_2_art_new" >&5
9986 $as_echo "$ac_cv_lib_art_lgpl_2_art_new" >&6; }
9987 if test $ac_cv_lib_art_lgpl_2_art_new = yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define HAVE_LIBART_LGPL_2 1
9992 LIBS="-lart_lgpl_2 $LIBS"
9998 { { $as_echo "$as_me:$LINENO: error: No libart library found. This library is required." >&5
9999 $as_echo "$as_me: error: No libart library found. This library is required." >&2;}
10000 { (exit 1); exit 1; }; }
10006 CPPFLAGS="$CPPFLAGS $LIBART_CFLAGS"
10007 cat >>confdefs.h <<\_ACEOF
10008 #define INTERNAL_LIBART 0
10011 LIBS="$LIBS $LIBART_LIBS"
10016 xpdf_in_source='$(xpdf_objects)'
10017 splash_in_source='$(splash_objects)'
10019 if test "x$USE_POPPLER" = "xtrue"; then
10023 cat >>confdefs.h <<\_ACEOF
10024 #define HAVE_POPPLER 1
10029 { $as_echo "$as_me:$LINENO: checking for POPPLER" >&5
10030 $as_echo_n "checking for POPPLER... " >&6; }
10032 if test -n "$POPPLER_CFLAGS"; then
10033 pkg_cv_POPPLER_CFLAGS="$POPPLER_CFLAGS"
10034 elif test -n "$PKG_CONFIG"; then
10035 if test -n "$PKG_CONFIG" && \
10036 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\"") >&5
10037 ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
10039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040 (exit $ac_status); }; then
10041 pkg_cv_POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler poppler-splash" 2>/dev/null`
10048 if test -n "$POPPLER_LIBS"; then
10049 pkg_cv_POPPLER_LIBS="$POPPLER_LIBS"
10050 elif test -n "$PKG_CONFIG"; then
10051 if test -n "$PKG_CONFIG" && \
10052 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"poppler poppler-splash\"") >&5
10053 ($PKG_CONFIG --exists --print-errors "poppler poppler-splash") 2>&5
10055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; then
10057 pkg_cv_POPPLER_LIBS=`$PKG_CONFIG --libs "poppler poppler-splash" 2>/dev/null`
10067 if test $pkg_failed = yes; then
10069 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10070 _pkg_short_errors_supported=yes
10072 _pkg_short_errors_supported=no
10074 if test $_pkg_short_errors_supported = yes; then
10075 POPPLER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "poppler poppler-splash" 2>&1`
10077 POPPLER_PKG_ERRORS=`$PKG_CONFIG --print-errors "poppler poppler-splash" 2>&1`
10079 # Put the nasty error message in config.log where it belongs
10080 echo "$POPPLER_PKG_ERRORS" >&5
10082 { $as_echo "$as_me:$LINENO: result: no" >&5
10083 $as_echo "no" >&6; }
10084 poppler_pkgconfig=no
10085 elif test $pkg_failed = untried; then
10086 poppler_pkgconfig=no
10088 POPPLER_CFLAGS=$pkg_cv_POPPLER_CFLAGS
10089 POPPLER_LIBS=$pkg_cv_POPPLER_LIBS
10090 { $as_echo "$as_me:$LINENO: result: yes" >&5
10091 $as_echo "yes" >&6; }
10094 if test "x$poppler_pkgconfig" = "xno"; then
10096 ac_cpp='$CXXCPP $CPPFLAGS'
10097 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10098 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10099 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10103 ac_cpp='$CXXCPP $CPPFLAGS'
10104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10107 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10108 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10109 if test -z "$CXXCPP"; then
10110 if test "${ac_cv_prog_CXXCPP+set}" = set; then
10111 $as_echo_n "(cached) " >&6
10113 # Double quotes because CXXCPP needs to be expanded
10114 for CXXCPP in "$CXX -E" "/lib/cpp"
10116 ac_preproc_ok=false
10117 for ac_cxx_preproc_warn_flag in '' yes
10119 # Use a header file that comes with gcc, so configuring glibc
10120 # with a fresh cross-compiler works.
10121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10122 # <limits.h> exists even on freestanding compilers.
10123 # On the NeXT, cc -E runs the code through the compiler's parser,
10124 # not just through cpp. "Syntax error" is here to catch this case.
10125 cat >conftest.$ac_ext <<_ACEOF
10128 cat confdefs.h >>conftest.$ac_ext
10129 cat >>conftest.$ac_ext <<_ACEOF
10130 /* end confdefs.h. */
10132 # include <limits.h>
10134 # include <assert.h>
10138 if { (ac_try="$ac_cpp conftest.$ac_ext"
10139 case "(($ac_try" in
10140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10141 *) ac_try_echo=$ac_try;;
10143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10144 $as_echo "$ac_try_echo") >&5
10145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10147 grep -v '^ *+' conftest.er1 >conftest.err
10149 cat conftest.err >&5
10150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151 (exit $ac_status); } >/dev/null && {
10152 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10153 test ! -s conftest.err
10157 $as_echo "$as_me: failed program was:" >&5
10158 sed 's/^/| /' conftest.$ac_ext >&5
10160 # Broken: fails on valid input.
10164 rm -f conftest.err conftest.$ac_ext
10166 # OK, works on sane cases. Now check whether nonexistent headers
10167 # can be detected and how.
10168 cat >conftest.$ac_ext <<_ACEOF
10171 cat confdefs.h >>conftest.$ac_ext
10172 cat >>conftest.$ac_ext <<_ACEOF
10173 /* end confdefs.h. */
10174 #include <ac_nonexistent.h>
10176 if { (ac_try="$ac_cpp conftest.$ac_ext"
10177 case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10182 $as_echo "$ac_try_echo") >&5
10183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10185 grep -v '^ *+' conftest.er1 >conftest.err
10187 cat conftest.err >&5
10188 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } >/dev/null && {
10190 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10191 test ! -s conftest.err
10193 # Broken: success on invalid input.
10196 $as_echo "$as_me: failed program was:" >&5
10197 sed 's/^/| /' conftest.$ac_ext >&5
10199 # Passes both tests.
10204 rm -f conftest.err conftest.$ac_ext
10207 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10208 rm -f conftest.err conftest.$ac_ext
10209 if $ac_preproc_ok; then
10214 ac_cv_prog_CXXCPP=$CXXCPP
10217 CXXCPP=$ac_cv_prog_CXXCPP
10219 ac_cv_prog_CXXCPP=$CXXCPP
10221 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
10222 $as_echo "$CXXCPP" >&6; }
10223 ac_preproc_ok=false
10224 for ac_cxx_preproc_warn_flag in '' yes
10226 # Use a header file that comes with gcc, so configuring glibc
10227 # with a fresh cross-compiler works.
10228 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10229 # <limits.h> exists even on freestanding compilers.
10230 # On the NeXT, cc -E runs the code through the compiler's parser,
10231 # not just through cpp. "Syntax error" is here to catch this case.
10232 cat >conftest.$ac_ext <<_ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10239 # include <limits.h>
10241 # include <assert.h>
10245 if { (ac_try="$ac_cpp conftest.$ac_ext"
10246 case "(($ac_try" in
10247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10248 *) ac_try_echo=$ac_try;;
10250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10251 $as_echo "$ac_try_echo") >&5
10252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10254 grep -v '^ *+' conftest.er1 >conftest.err
10256 cat conftest.err >&5
10257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } >/dev/null && {
10259 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10260 test ! -s conftest.err
10264 $as_echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 # Broken: fails on valid input.
10271 rm -f conftest.err conftest.$ac_ext
10273 # OK, works on sane cases. Now check whether nonexistent headers
10274 # can be detected and how.
10275 cat >conftest.$ac_ext <<_ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 #include <ac_nonexistent.h>
10283 if { (ac_try="$ac_cpp conftest.$ac_ext"
10284 case "(($ac_try" in
10285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10289 $as_echo "$ac_try_echo") >&5
10290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10292 grep -v '^ *+' conftest.er1 >conftest.err
10294 cat conftest.err >&5
10295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } >/dev/null && {
10297 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10298 test ! -s conftest.err
10300 # Broken: success on invalid input.
10303 $as_echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.$ac_ext >&5
10306 # Passes both tests.
10311 rm -f conftest.err conftest.$ac_ext
10314 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10315 rm -f conftest.err conftest.$ac_ext
10316 if $ac_preproc_ok; then
10319 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10320 See \`config.log' for more details." >&5
10321 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10322 See \`config.log' for more details." >&2;}
10323 { (exit 1); exit 1; }; }
10327 ac_cpp='$CXXCPP $CPPFLAGS'
10328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10334 for ac_header in OutputDev.h
10336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10338 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10339 $as_echo_n "checking for $ac_header... " >&6; }
10340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10341 $as_echo_n "(cached) " >&6
10343 ac_res=`eval 'as_val=${'$as_ac_Header'}
10344 $as_echo "$as_val"'`
10345 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10346 $as_echo "$ac_res" >&6; }
10348 # Is the header compilable?
10349 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10350 $as_echo_n "checking $ac_header usability... " >&6; }
10351 cat >conftest.$ac_ext <<_ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 $ac_includes_default
10358 #include <$ac_header>
10360 rm -f conftest.$ac_objext
10361 if { (ac_try="$ac_compile"
10362 case "(($ac_try" in
10363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10364 *) ac_try_echo=$ac_try;;
10366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10367 $as_echo "$ac_try_echo") >&5
10368 (eval "$ac_compile") 2>conftest.er1
10370 grep -v '^ *+' conftest.er1 >conftest.err
10372 cat conftest.err >&5
10373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } && {
10375 test -z "$ac_cxx_werror_flag" ||
10376 test ! -s conftest.err
10377 } && test -s conftest.$ac_objext; then
10378 ac_header_compiler=yes
10380 $as_echo "$as_me: failed program was:" >&5
10381 sed 's/^/| /' conftest.$ac_ext >&5
10383 ac_header_compiler=no
10386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10387 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10388 $as_echo "$ac_header_compiler" >&6; }
10390 # Is the header present?
10391 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10392 $as_echo_n "checking $ac_header presence... " >&6; }
10393 cat >conftest.$ac_ext <<_ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10399 #include <$ac_header>
10401 if { (ac_try="$ac_cpp conftest.$ac_ext"
10402 case "(($ac_try" in
10403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10404 *) ac_try_echo=$ac_try;;
10406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10407 $as_echo "$ac_try_echo") >&5
10408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10410 grep -v '^ *+' conftest.er1 >conftest.err
10412 cat conftest.err >&5
10413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } >/dev/null && {
10415 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10416 test ! -s conftest.err
10418 ac_header_preproc=yes
10420 $as_echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 ac_header_preproc=no
10426 rm -f conftest.err conftest.$ac_ext
10427 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10428 $as_echo "$ac_header_preproc" >&6; }
10430 # So? What about this header?
10431 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10433 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10434 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10435 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10436 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10437 ac_header_preproc=yes
10440 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10441 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10442 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10443 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10444 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10445 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10446 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10447 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10448 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10449 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10450 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10451 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10455 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10456 $as_echo_n "checking for $ac_header... " >&6; }
10457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10458 $as_echo_n "(cached) " >&6
10460 eval "$as_ac_Header=\$ac_header_preproc"
10462 ac_res=`eval 'as_val=${'$as_ac_Header'}
10463 $as_echo "$as_val"'`
10464 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10465 $as_echo "$ac_res" >&6; }
10468 if test `eval 'as_val=${'$as_ac_Header'}
10469 $as_echo "$as_val"'` = yes; then
10470 cat >>confdefs.h <<_ACEOF
10471 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10475 { $as_echo "$as_me:$LINENO: checking for main in -lpoppler" >&5
10476 $as_echo_n "checking for main in -lpoppler... " >&6; }
10477 if test "${ac_cv_lib_poppler_main+set}" = set; then
10478 $as_echo_n "(cached) " >&6
10480 ac_check_lib_save_LIBS=$LIBS
10481 LIBS="-lpoppler $LIBS"
10482 cat >conftest.$ac_ext <<_ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10498 rm -f conftest.$ac_objext conftest$ac_exeext
10499 if { (ac_try="$ac_link"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506 (eval "$ac_link") 2>conftest.er1
10508 grep -v '^ *+' conftest.er1 >conftest.err
10510 cat conftest.err >&5
10511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } && {
10513 test -z "$ac_cxx_werror_flag" ||
10514 test ! -s conftest.err
10515 } && test -s conftest$ac_exeext && {
10516 test "$cross_compiling" = yes ||
10517 $as_test_x conftest$ac_exeext
10519 ac_cv_lib_poppler_main=yes
10521 $as_echo "$as_me: failed program was:" >&5
10522 sed 's/^/| /' conftest.$ac_ext >&5
10524 ac_cv_lib_poppler_main=no
10527 rm -rf conftest.dSYM
10528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10529 conftest$ac_exeext conftest.$ac_ext
10530 LIBS=$ac_check_lib_save_LIBS
10532 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_poppler_main" >&5
10533 $as_echo "$ac_cv_lib_poppler_main" >&6; }
10534 if test $ac_cv_lib_poppler_main = yes; then
10535 cat >>confdefs.h <<_ACEOF
10536 #define HAVE_LIBPOPPLER 1
10539 LIBS="-lpoppler $LIBS"
10545 { { $as_echo "$as_me:$LINENO: error: No poppler library found. This library is required." >&5
10546 $as_echo "$as_me: error: No poppler library found. This library is required." >&2;}
10547 { (exit 1); exit 1; }; }
10553 ac_cpp='$CPP $CPPFLAGS'
10554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10559 CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
10560 cat >>confdefs.h <<\_ACEOF
10561 #define HAVE_POPPLER 1
10564 LIBS="$LIBS $POPPLER_LIBS"
10570 # ------------------------------------------------------------------
10574 for ac_prog in avifile-config
10576 # Extract the first word of "$ac_prog", so it can be a program name with args.
10577 set dummy $ac_prog; ac_word=$2
10578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10579 $as_echo_n "checking for $ac_word... " >&6; }
10580 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
10581 $as_echo_n "(cached) " >&6
10583 if test -n "$AVIFILE_CONFIG"; then
10584 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10593 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
10594 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10603 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
10604 if test -n "$AVIFILE_CONFIG"; then
10605 { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
10606 $as_echo "$AVIFILE_CONFIG" >&6; }
10608 { $as_echo "$as_me:$LINENO: result: no" >&5
10609 $as_echo "no" >&6; }
10613 test -n "$AVIFILE_CONFIG" && break
10617 if test "x$AVIFILE_CONFIG" '!=' "x";then
10618 OLDCPPFLAGS="$CPPFLAGS"
10619 # temporarily add avifile paths to CPPFLAGS...
10620 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
10623 for ac_header in avifile/version.h version.h
10625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10627 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10628 $as_echo_n "checking for $ac_header... " >&6; }
10629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10630 $as_echo_n "(cached) " >&6
10632 ac_res=`eval 'as_val=${'$as_ac_Header'}
10633 $as_echo "$as_val"'`
10634 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10635 $as_echo "$ac_res" >&6; }
10637 # Is the header compilable?
10638 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10639 $as_echo_n "checking $ac_header usability... " >&6; }
10640 cat >conftest.$ac_ext <<_ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h. */
10646 $ac_includes_default
10647 #include <$ac_header>
10649 rm -f conftest.$ac_objext
10650 if { (ac_try="$ac_compile"
10651 case "(($ac_try" in
10652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10653 *) ac_try_echo=$ac_try;;
10655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10656 $as_echo "$ac_try_echo") >&5
10657 (eval "$ac_compile") 2>conftest.er1
10659 grep -v '^ *+' conftest.er1 >conftest.err
10661 cat conftest.err >&5
10662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); } && {
10664 test -z "$ac_c_werror_flag" ||
10665 test ! -s conftest.err
10666 } && test -s conftest.$ac_objext; then
10667 ac_header_compiler=yes
10669 $as_echo "$as_me: failed program was:" >&5
10670 sed 's/^/| /' conftest.$ac_ext >&5
10672 ac_header_compiler=no
10675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10676 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10677 $as_echo "$ac_header_compiler" >&6; }
10679 # Is the header present?
10680 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10681 $as_echo_n "checking $ac_header presence... " >&6; }
10682 cat >conftest.$ac_ext <<_ACEOF
10685 cat confdefs.h >>conftest.$ac_ext
10686 cat >>conftest.$ac_ext <<_ACEOF
10687 /* end confdefs.h. */
10688 #include <$ac_header>
10690 if { (ac_try="$ac_cpp conftest.$ac_ext"
10691 case "(($ac_try" in
10692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10693 *) ac_try_echo=$ac_try;;
10695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10696 $as_echo "$ac_try_echo") >&5
10697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10699 grep -v '^ *+' conftest.er1 >conftest.err
10701 cat conftest.err >&5
10702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } >/dev/null && {
10704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10707 ac_header_preproc=yes
10709 $as_echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 ac_header_preproc=no
10715 rm -f conftest.err conftest.$ac_ext
10716 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10717 $as_echo "$ac_header_preproc" >&6; }
10719 # So? What about this header?
10720 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10722 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10723 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10724 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10725 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10726 ac_header_preproc=yes
10729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10730 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10732 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10734 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10736 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10738 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10740 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10744 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10745 $as_echo_n "checking for $ac_header... " >&6; }
10746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10747 $as_echo_n "(cached) " >&6
10749 eval "$as_ac_Header=\$ac_header_preproc"
10751 ac_res=`eval 'as_val=${'$as_ac_Header'}
10752 $as_echo "$as_val"'`
10753 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10754 $as_echo "$ac_res" >&6; }
10757 if test `eval 'as_val=${'$as_ac_Header'}
10758 $as_echo "$as_val"'` = yes; then
10759 cat >>confdefs.h <<_ACEOF
10760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10768 CPPFLAGS="$OLDCPPFLAGS"
10771 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
10772 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
10774 if test "x${ac_cv_header_version_h}" '=' "xyes";then
10775 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
10777 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
10778 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
10781 cat > conftest.cpp << EOF
10783 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
10784 // so we have to introduce them this way
10785 $HAVE_VERSION_H_DEFINE
10786 $HAVE_AVIFILE_VERSION_H_DEFINE
10788 #ifdef HAVE_VERSION_H
10789 #include <version.h>
10791 #ifdef HAVE_AVIFILE_VERSION_H
10792 #include <avifile/version.h>
10795 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
10796 #include <avifile.h>
10797 #include <aviplay.h>
10798 #include <avm_fourcc.h>
10799 #include <avm_creators.h>
10800 #include <StreamInfo.h>
10803 #include <avifile.h>
10804 #include <aviplay.h>
10805 #include <aviutil.h>
10806 #define Width width
10807 #define Height height
10814 IAviReadFile* player;
10815 IAviReadStream* astream;
10816 IAviReadStream* vstream;
10817 player = CreateIAviReadFile(0);
10818 astream = player->GetStream(0, AviStream::Audio);
10819 vstream = player->GetStream(0, AviStream::Video);
10820 vstream -> StartStreaming();
10821 astream -> StartStreaming();
10823 MainAVIHeader head;
10824 player->GetFileHeader(&head);
10825 head.dwMicroSecPerFrame;
10826 head.dwTotalFrames;
10830 head.dwMicroSecPerFrame;
10831 astream->GetEndPos(),
10832 astream->GetEndTime());
10833 player->StreamCount();
10835 StreamInfo*audioinfo;
10836 StreamInfo*videoinfo;
10837 audioinfo = astream->GetStreamInfo();
10838 videoinfo = vstream->GetStreamInfo();
10839 videoinfo->GetVideoWidth();
10840 videoinfo->GetVideoHeight();
10841 audioinfo->GetAudioSamplesPerSec();
10842 videoinfo->GetFps();
10844 CImage*img = vstream->GetFrame();
10851 astream->GetAudioFormatInfo(&wave,0);
10853 astream->ReadFrames(0,0,0,a,b);
10855 int main (int argc, char*argv)
10861 if test "x$AVIFILE_CONFIG" '!=' "x";then
10862 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
10863 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
10864 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
10865 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
10866 { $as_echo "$as_me:$LINENO: result: yes" >&5
10867 $as_echo "yes" >&6; }
10871 cat >>confdefs.h <<\_ACEOF
10872 #define AVIFILE true
10876 echo "configure: failed program was:" >&5
10877 cat conftest.cpp >&5
10878 { $as_echo "$as_me:$LINENO: result: no" >&5
10879 $as_echo "no" >&6; }
10882 { $as_echo "$as_me:$LINENO: result: no" >&5
10883 $as_echo "no" >&6; }
10887 if test "x${AVIFILE}" = "xtrue"; then
10888 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
10889 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
10891 cat >>confdefs.h <<\_ACEOF
10892 #define HAVE_AVIFILE 1
10897 if test "x${WIN32}" != "x"; then
10898 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
10899 #if test "x${AVIFIL32}" != "x"; then
10900 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
10902 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
10908 # ------------------------------------------------------------------
10910 if test "x${UNCOMPRESS}" = "xgzip"; then
10912 cat >>confdefs.h <<\_ACEOF
10919 # ------------------------------------------------------------------
10922 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
10923 $as_echo_n "checking for Python.h... " >&6; }
10925 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
10928 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
10929 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
10931 # iterate through version 2.2 to 2.6
10932 for v in 2 3 4 5 6; do
10934 if test -f "/usr/include/python2.$v/Python.h";then
10936 PYTHON_LIB="-lpython$PY_VERSION"
10937 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
10938 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
10939 HAVE_PYTHON_IMAGING_LIB=1
10941 PYTHON_LIB2="$PYTHON_LIB"
10943 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
10945 elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
10947 PYTHON_LIB="-framework Python"
10948 if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
10949 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
10950 HAVE_PYTHON_IMAGING_LIB=1
10952 PYTHON_LIB2="$PYTHON_LIB"
10954 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
10956 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
10957 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
10958 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
10960 -a -f "/sw/include/python2.$v/Python.h"; then
10962 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10963 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
10964 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10965 HAVE_PYTHON_IMAGING_LIB=1
10967 PYTHON_LIB2="$PYTHON_LIB"
10969 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
10974 if test "x$PY_VERSION" "!=" "x"; then
10975 { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
10976 $as_echo "$PY_VERSION" >&6; }
10977 export PYTHON_INCLUDES PYTHON_LIB
10980 { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
10981 $as_echo_n "checking whether we can compile the python test program... " >&6; }
10983 cat > conftest.c << EOF
10984 #include <Python.h>
10989 ret = Py_Main(0, 0);
10990 int x; // check also for gcc 2.95.x incompatibilities
10995 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
10996 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10997 { $as_echo "$as_me:$LINENO: result: yes" >&5
10998 $as_echo "yes" >&6; }
11001 echo "configure: failed program was:" >&5
11003 { $as_echo "$as_me:$LINENO: result: no" >&5
11004 $as_echo "no" >&6; }
11007 if test "x$PYTHON_OK" = "xyes";then
11008 { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
11009 $as_echo_n "checking for Python-Imaging... " >&6; }
11010 cat > conftest.c << EOF
11011 #include <Python.h>
11012 #include <Imaging.h>
11020 if test "$HAVE_PYTHON_IMAGING_LIB"; then
11021 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
11022 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11023 PYTHON_LIB="${PYTHON_LIB2}"
11025 cat >>confdefs.h <<\_ACEOF
11026 #define HAVE_PYTHON_IMAGING 1
11029 HAVE_PYTHON_IMAGING=yes
11030 export HAVE_PYTHON_IMAGING
11032 { $as_echo "$as_me:$LINENO: result: yes" >&5
11033 $as_echo "yes" >&6; }
11035 echo "configure: failed program was:" >&5
11037 { $as_echo "$as_me:$LINENO: result: no" >&5
11038 $as_echo "no" >&6; }
11041 echo "(didn't find the Python-Imaging libraries)" >&5
11042 { $as_echo "$as_me:$LINENO: result: no" >&5
11043 $as_echo "no" >&6; }
11048 { $as_echo "$as_me:$LINENO: result: nope" >&5
11049 $as_echo "nope" >&6; }
11053 if test "x$PYTHON_OK" '!=' "xyes";then
11054 echo all install uninstall clean: > lib/python/Makefile
11055 # fail silently- the most users won't have any need for the
11056 # python interface anyway
11058 pythonrfxswf="lib/python/Makefile"
11061 # ------------------------------------------------------------------
11063 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
11064 $as_echo_n "checking for missing libraries... " >&6; }
11066 if test "x$ZLIBMISSING" = "xtrue";then
11067 MISSINGLIBS="${MISSINGLIBS} zlib"
11068 DISABLEPNG2SWF=true
11071 if test "x$JPEGLIBMISSING" = "xtrue";then
11072 MISSINGLIBS="${MISSINGLIBS} jpeglib"
11073 DISABLEPDF2SWF=true
11074 DISABLEJPEG2SWF=true
11077 #if test "x$T1LIBMISSING" = "xtrue";then
11078 # MISSINGLIBS="${MISSINGLIBS} t1lib"
11080 if test "x$UNGIFMISSING" = "xtrue";then
11081 DISABLEGIF2SWF=true
11082 MISSINGLIBS="${MISSINGLIBS} ungif"
11086 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
11087 DISABLEPDF2SWF=true;
11088 DISABLEJPEG2SWF=true;
11089 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
11092 if test "x$HAVE_FREETYPE" '!=' "x1"; then
11093 DISABLEPDF2SWF=true;
11094 MISSINGLIBS="${MISSINGLIBS} freetype"
11097 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
11098 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
11100 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
11101 DISABLEGIF2SWF=true
11102 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
11105 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
11106 DISABLEPNG2SWF=true;
11107 MISSINGLIBS="${MISSINGLIBS} zlib.h"
11110 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11111 # MISSINGLIBS="${MISSINGLIBS} avifile"
11114 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
11115 $as_echo "${MISSINGLIBS}" >&6; }
11117 # ------------------------------------------------------------------
11119 if test "x${MISSINGLIBS}" '!=' "x"; then
11120 echo "***************************************************"
11121 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
11124 avi2swf="avi2swf/Makefile"
11125 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
11126 #don't whine, avi2swf is outdated anyway
11127 #echo "* Disabling avi2swf tool..."
11128 echo all install uninstall clean: > avi2swf/Makefile
11132 pdf2swf_makefile="lib/pdf/Makefile"
11133 PDF2SWF='pdf2swf$(E)'
11134 LIBPDF='libpdf$(A)'
11136 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
11137 echo "* Disabling pdf2swf tool..."
11138 rm -f lib/pdf/Makefile
11139 echo all install uninstall clean libpdf: > lib/pdf/Makefile
11140 pdf2swf_makefile=""
11147 if test "x${ZLIBMISSING}" = "xtrue"; then
11149 echo "* Warning! Without zlib, you will not be able to read"
11150 echo "* or write compressed Flash MX files!"
11153 JPEG2SWF='jpeg2swf$(E)'
11154 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
11155 echo "* Disabling jpeg2swf tool..."
11161 GIF2SWF='gif2swf$(E)'
11162 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
11163 echo "* Disabling gif2swf tool..."
11169 PNG2SWF='png2swf$(E)'
11170 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
11171 echo "* Disabling png2swf tool..."
11177 if test "x${MISSINGLIBS}" '!=' "x"; then
11178 if test "x${PARTIAL}" '=' "x"; then
11179 echo "* (never mind)"
11181 echo "***************************************************"
11184 # ------------------------------------------------------------------
11192 if test -f "release.in"; then release_in="./release"; fi
11193 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
11194 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
11195 ac_config_files="$ac_config_files ${FILES}"
11197 cat >confcache <<\_ACEOF
11198 # This file is a shell script that caches the results of configure
11199 # tests run on this system so they can be shared between configure
11200 # scripts and configure runs, see configure's option --config-cache.
11201 # It is not useful on other systems. If it contains results you don't
11202 # want to keep, you may remove or edit it.
11204 # config.status only pays attention to the cache file if you give it
11205 # the --recheck option to rerun configure.
11207 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11208 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11209 # following values.
11213 # The following way of writing the cache mishandles newlines in values,
11214 # but we know of no workaround that is simple, portable, and efficient.
11215 # So, we kill variables containing newlines.
11216 # Ultrix sh set writes to stderr and can't be redirected directly,
11217 # and sets the high bit in the cache file unless we assign to the vars.
11219 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11220 eval ac_val=\$$ac_var
11224 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11225 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11228 _ | IFS | as_nl) ;; #(
11229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11230 *) $as_unset $ac_var ;;
11236 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11237 *${as_nl}ac_space=\ *)
11238 # `set' does not quote correctly, so add quotes (double-quote
11239 # substitution turns \\\\ into \\, and sed turns \\ into \).
11242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11245 # `set' quotes correctly as required by POSIX, so do not add quotes.
11246 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11255 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11257 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11259 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11260 if test -w "$cache_file"; then
11261 test "x$cache_file" != "x/dev/null" &&
11262 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11263 $as_echo "$as_me: updating cache $cache_file" >&6;}
11264 cat confcache >$cache_file
11266 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11267 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11272 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11273 # Let make expand exec_prefix.
11274 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11276 DEFS=-DHAVE_CONFIG_H
11280 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11281 # 1. Remove the extension, and $U if already installed.
11282 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11283 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11284 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11285 # will be set to the directory where LIBOBJS objects are built.
11286 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11287 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11289 LIBOBJS=$ac_libobjs
11291 LTLIBOBJS=$ac_ltlibobjs
11295 : ${CONFIG_STATUS=./config.status}
11297 ac_clean_files_save=$ac_clean_files
11298 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11299 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11300 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11301 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11303 # Generated by $as_me.
11304 # Run this file to recreate the current configuration.
11305 # Compiler output produced by configure, useful for debugging
11306 # configure, is in config.log if it exists.
11309 ac_cs_recheck=false
11311 SHELL=\${CONFIG_SHELL-$SHELL}
11314 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11315 ## --------------------- ##
11316 ## M4sh Initialization. ##
11317 ## --------------------- ##
11319 # Be more Bourne compatible
11320 DUALCASE=1; export DUALCASE # for MKS sh
11321 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11324 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11325 # is contrary to our usage. Disable this feature.
11326 alias -g '${1+"$@"}'='"$@"'
11327 setopt NO_GLOB_SUBST
11329 case `(set -o) 2>/dev/null` in
11330 *posix*) set -o posix ;;
11339 # Avoid depending upon Character Ranges.
11340 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11341 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11342 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11343 as_cr_digits='0123456789'
11344 as_cr_alnum=$as_cr_Letters$as_cr_digits
11349 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11350 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11351 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11352 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11353 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11354 as_echo='printf %s\n'
11355 as_echo_n='printf %s'
11357 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11358 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11359 as_echo_n='/usr/ucb/echo -n'
11361 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11362 as_echo_n_body='eval
11366 expr "X$arg" : "X\\(.*\\)$as_nl";
11367 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11369 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11371 export as_echo_n_body
11372 as_echo_n='sh -c $as_echo_n_body as_echo'
11374 export as_echo_body
11375 as_echo='sh -c $as_echo_body as_echo'
11378 # The user is always right.
11379 if test "${PATH_SEPARATOR+set}" != set; then
11381 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11382 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11387 # Support unset when possible.
11388 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11396 # We need space, tab and new line, in precisely that order. Quoting is
11397 # there to prevent editors from complaining about space-tab.
11398 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11399 # splitting by setting IFS to empty value.)
11402 # Find who we are. Look in the path if we contain no directory separator.
11404 *[\\/]* ) as_myself=$0 ;;
11405 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11409 test -z "$as_dir" && as_dir=.
11410 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11416 # We did not find ourselves, most probably we were run as `sh COMMAND'
11417 # in which case we are not to be found in the path.
11418 if test "x$as_myself" = x; then
11421 if test ! -f "$as_myself"; then
11422 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11423 { (exit 1); exit 1; }
11426 # Work around bugs in pre-3.0 UWIN ksh.
11427 for as_var in ENV MAIL MAILPATH
11428 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11440 # Required to use basename.
11441 if expr a : '\(a\)' >/dev/null 2>&1 &&
11442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11449 as_basename=basename
11455 # Name of the executable.
11456 as_me=`$as_basename -- "$0" ||
11457 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11458 X"$0" : 'X\(//\)$' \| \
11459 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11461 sed '/^.*\/\([^/][^/]*\)\/*$/{
11480 as_lineno_1=$LINENO
11481 as_lineno_2=$LINENO
11482 test "x$as_lineno_1" != "x$as_lineno_2" &&
11483 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11485 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11486 # uniformly replaced by the line number. The first 'sed' inserts a
11487 # line-number line after each line using $LINENO; the second 'sed'
11488 # does the real work. The second script uses 'N' to pair each
11489 # line-number line with the line containing $LINENO, and appends
11490 # trailing '-' during substitution so that $LINENO is not a special
11491 # case at line end.
11492 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11493 # scripts with optimization help from Paolo Bonzini. Blame Lee
11494 # E. McMahon (1931-1989) for sed's syntax. :-)
11506 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11509 ' >$as_me.lineno &&
11510 chmod +x "$as_me.lineno" ||
11511 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11512 { (exit 1); exit 1; }; }
11514 # Don't try to exec as it changes $[0], causing all sort of problems
11515 # (the dirname of $[0] is not the place where we might find the
11516 # original and so on. Autoconf is especially sensitive to this).
11517 . "./$as_me.lineno"
11518 # Exit status is that of the last command.
11523 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11529 ECHO_C= ECHO_N= ECHO_T=
11530 case `echo -n x` in
11532 case `echo 'x\c'` in
11533 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11539 if expr a : '\(a\)' >/dev/null 2>&1 &&
11540 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11546 rm -f conf$$ conf$$.exe conf$$.file
11547 if test -d conf$$.dir; then
11548 rm -f conf$$.dir/conf$$.file
11551 mkdir conf$$.dir 2>/dev/null
11553 if (echo >conf$$.file) 2>/dev/null; then
11554 if ln -s conf$$.file conf$$ 2>/dev/null; then
11556 # ... but there are two gotchas:
11557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11559 # In both cases, we have to default to `cp -p'.
11560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11562 elif ln conf$$.file conf$$ 2>/dev/null; then
11570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11571 rmdir conf$$.dir 2>/dev/null
11573 if mkdir -p . 2>/dev/null; then
11576 test -d ./-p && rmdir ./-p
11580 if test -x / >/dev/null 2>&1; then
11581 as_test_x='test -x'
11583 if ls -dL / >/dev/null 2>&1; then
11590 if test -d "$1"; then
11596 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11597 ???[sx]*):;;*)false;;esac;fi
11601 as_executable_p=$as_test_x
11603 # Sed expression to map a string onto a valid CPP name.
11604 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11606 # Sed expression to map a string onto a valid variable name.
11607 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11612 # Save the log message, to keep $[0] and so on meaningful, and to
11613 # report actual input values of CONFIG_FILES etc. instead of their
11614 # values after options handling.
11616 This file was extended by $as_me, which was
11617 generated by GNU Autoconf 2.62. Invocation command line was
11619 CONFIG_FILES = $CONFIG_FILES
11620 CONFIG_HEADERS = $CONFIG_HEADERS
11621 CONFIG_LINKS = $CONFIG_LINKS
11622 CONFIG_COMMANDS = $CONFIG_COMMANDS
11625 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11631 # Files that config.status was made for.
11632 config_files="$ac_config_files"
11633 config_headers="$ac_config_headers"
11637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11639 \`$as_me' instantiates files from templates according to the
11640 current configuration.
11642 Usage: $0 [OPTIONS] [FILE]...
11644 -h, --help print this help, then exit
11645 -V, --version print version number and configuration settings, then exit
11646 -q, --quiet do not print progress messages
11647 -d, --debug don't remove temporary files
11648 --recheck update $as_me by reconfiguring in the same conditions
11649 --file=FILE[:TEMPLATE]
11650 instantiate the configuration file FILE
11651 --header=FILE[:TEMPLATE]
11652 instantiate the configuration header FILE
11654 Configuration files:
11657 Configuration headers:
11660 Report bugs to <bug-autoconf@gnu.org>."
11663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11666 configured by $0, generated by GNU Autoconf 2.62,
11667 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11669 Copyright (C) 2008 Free Software Foundation, Inc.
11670 This config.status script is free software; the Free Software Foundation
11671 gives unlimited permission to copy, distribute and modify it."
11676 test -n "\$AWK" || AWK=awk
11679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11680 # The default lists apply if the user does not specify any file.
11686 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11687 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11698 # Handling of the options.
11699 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11701 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11702 $as_echo "$ac_cs_version"; exit ;;
11703 --debug | --debu | --deb | --de | --d | -d )
11705 --file | --fil | --fi | --f )
11708 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11710 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11711 ac_need_defaults=false;;
11712 --header | --heade | --head | --hea )
11715 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11717 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11718 ac_need_defaults=false;;
11720 # Conflict between --help and --header
11721 { $as_echo "$as_me: error: ambiguous option: $1
11722 Try \`$0 --help' for more information." >&2
11723 { (exit 1); exit 1; }; };;
11724 --help | --hel | -h )
11725 $as_echo "$ac_cs_usage"; exit ;;
11726 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11727 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11730 # This is an error.
11731 -*) { $as_echo "$as_me: error: unrecognized option: $1
11732 Try \`$0 --help' for more information." >&2
11733 { (exit 1); exit 1; }; } ;;
11735 *) ac_config_targets="$ac_config_targets $1"
11736 ac_need_defaults=false ;;
11742 ac_configure_extra_args=
11744 if $ac_cs_silent; then
11746 ac_configure_extra_args="$ac_configure_extra_args --silent"
11750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11751 if \$ac_cs_recheck; then
11752 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11754 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11755 CONFIG_SHELL='$SHELL'
11756 export CONFIG_SHELL
11761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11765 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11766 ## Running $as_me. ##
11772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11777 # Handling of arguments.
11778 for ac_config_target in $ac_config_targets
11780 case $ac_config_target in
11781 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11782 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11784 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11785 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11786 { (exit 1); exit 1; }; };;
11791 # If the user did not use the arguments to specify the items to instantiate,
11792 # then the envvar interface is used. Set only those that are not.
11793 # We use the long form for the default assignment because of an extremely
11794 # bizarre bug on SunOS 4.1.3.
11795 if $ac_need_defaults; then
11796 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11797 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11800 # Have a temporary directory for convenience. Make it in the build tree
11801 # simply because there is no reason against having it here, and in addition,
11802 # creating and moving files from /tmp can sometimes cause problems.
11803 # Hook for its removal unless debugging.
11804 # Note that there is a small window in which the directory will not be cleaned:
11805 # after its creation but before its name has been assigned to `$tmp'.
11809 trap 'exit_status=$?
11810 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11812 trap '{ (exit 1); exit 1; }' 1 2 13 15
11814 # Create a (secure) tmp directory for tmp files.
11817 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11818 test -n "$tmp" && test -d "$tmp"
11821 tmp=./conf$$-$RANDOM
11822 (umask 077 && mkdir "$tmp")
11825 $as_echo "$as_me: cannot create a temporary directory in ." >&2
11826 { (exit 1); exit 1; }
11829 # Set up the scripts for CONFIG_FILES section.
11830 # No need to generate them if there are no CONFIG_FILES.
11831 # This happens for instance with `./config.status config.h'.
11832 if test -n "$CONFIG_FILES"; then
11836 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11837 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11840 ac_cs_awk_cr=$ac_cr
11843 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11848 echo "cat >conf$$subs.awk <<_ACEOF" &&
11849 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11851 } >conf$$subs.sh ||
11852 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11853 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11854 { (exit 1); exit 1; }; }
11855 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11857 for ac_last_try in false false false false false :; do
11858 . ./conf$$subs.sh ||
11859 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11860 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11861 { (exit 1); exit 1; }; }
11863 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
11865 elif $ac_last_try; then
11866 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11867 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11868 { (exit 1); exit 1; }; }
11870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11873 rm -f conf$$subs.sh
11875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11876 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11880 s/^/S["/; s/!.*/"]=/
11890 s/\(.\{148\}\).*/\1/
11892 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11897 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11904 s/\(.\{148\}\).*/\1/
11906 s/["\\]/\\&/g; s/^/"/; s/$/"/
11910 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11915 ' <conf$$subs.awk | sed '
11920 ' >>$CONFIG_STATUS || ac_write_fail=1
11921 rm -f conf$$subs.awk
11922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11924 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11925 for (key in S) S_is_set[key] = 1
11931 nfields = split(line, field, "@")
11933 len = length(field[1])
11934 for (i = 2; i < nfields; i++) {
11936 keylen = length(key)
11937 if (S_is_set[key]) {
11939 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11940 len += length(value) + length(field[++i])
11951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11952 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11953 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11956 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11957 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11958 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11959 { (exit 1); exit 1; }; }
11962 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11963 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11964 # trailing colons and then remove the whole line if VPATH becomes empty
11965 # (actually we leave an empty line to preserve line numbers).
11966 if test "x$srcdir" = x.; then
11967 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11968 s/:*\$(srcdir):*/:/
11969 s/:*\${srcdir}:*/:/
11971 s/^\([^=]*=[ ]*\):*/\1/
11977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11978 fi # test -n "$CONFIG_FILES"
11980 # Set up the scripts for CONFIG_HEADERS section.
11981 # No need to generate them if there are no CONFIG_HEADERS.
11982 # This happens for instance with `./config.status Makefile'.
11983 if test -n "$CONFIG_HEADERS"; then
11984 cat >"$tmp/defines.awk" <<\_ACAWK ||
11988 # Transform confdefs.h into an awk script `defines.awk', embedded as
11989 # here-document in config.status, that substitutes the proper values into
11990 # config.h.in to produce config.h.
11992 # Create a delimiter string that does not exist in confdefs.h, to ease
11993 # handling of long lines.
11995 for ac_last_try in false false :; do
11996 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11997 if test -z "$ac_t"; then
11999 elif $ac_last_try; then
12000 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
12001 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
12002 { (exit 1); exit 1; }; }
12004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12008 # For the awk script, D is an array of macro values keyed by name,
12009 # likewise P contains macro parameters if any. Preserve backslash
12010 # newline sequences.
12012 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12014 s/.\{148\}/&'"$ac_delim"'/g
12017 s/^[ ]*#[ ]*define[ ][ ]*/ /
12024 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12026 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12031 D["\1"]=" \3\\\\\\n"\\/p
12033 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12038 s/.\{148\}/&'"$ac_delim"'/g
12043 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12046 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12048 ' <confdefs.h | sed '
12049 s/'"$ac_delim"'/"\\\
12050 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12053 for (key in D) D_is_set[key] = 1
12056 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12058 split(line, arg, " ")
12059 if (arg[1] == "#") {
12063 defundef = substr(arg[1], 2)
12066 split(mac1, mac2, "(") #)
12068 if (D_is_set[macro]) {
12069 # Preserve the white space surrounding the "#".
12070 prefix = substr(line, 1, index(line, defundef) - 1)
12071 print prefix "define", macro P[macro] D[macro]
12074 # Replace #undef with comments. This is necessary, for example,
12075 # in the case of _POSIX_SOURCE, which is predefined and required
12076 # on some systems where configure will not decide to define it.
12077 if (defundef == "undef") {
12078 print "/*", line, "*/"
12086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12087 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12088 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12089 { (exit 1); exit 1; }; }
12090 fi # test -n "$CONFIG_HEADERS"
12093 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
12098 :[FHLC]) ac_mode=$ac_tag; continue;;
12100 case $ac_mode$ac_tag in
12102 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12103 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12104 { (exit 1); exit 1; }; };;
12105 :[FH]-) ac_tag=-:-;;
12106 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12123 -) ac_f="$tmp/stdin";;
12124 *) # Look for the file first in the build tree, then in the source tree
12125 # (if the path is not absolute). The absolute path cannot be DOS-style,
12126 # because $ac_f cannot contain `:'.
12130 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12132 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12133 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12134 { (exit 1); exit 1; }; };;
12136 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12137 ac_file_inputs="$ac_file_inputs '$ac_f'"
12140 # Let's still pretend it is `configure' which instantiates (i.e., don't
12141 # use $as_me), people would be surprised to read:
12142 # /* config.h. Generated by config.status. */
12143 configure_input='Generated from '`
12144 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12146 if test x"$ac_file" != x-; then
12147 configure_input="$ac_file. $configure_input"
12148 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12149 $as_echo "$as_me: creating $ac_file" >&6;}
12151 # Neutralize special characters interpreted by sed in replacement strings.
12152 case $configure_input in #(
12153 *\&* | *\|* | *\\* )
12154 ac_sed_conf_input=`$as_echo "$configure_input" |
12155 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12156 *) ac_sed_conf_input=$configure_input;;
12160 *:-:* | *:-) cat >"$tmp/stdin" \
12161 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12162 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12163 { (exit 1); exit 1; }; } ;;
12168 ac_dir=`$as_dirname -- "$ac_file" ||
12169 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12170 X"$ac_file" : 'X\(//\)[^/]' \| \
12171 X"$ac_file" : 'X\(//\)$' \| \
12172 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12173 $as_echo X"$ac_file" |
12174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12178 /^X\(\/\/\)[^/].*/{
12193 -*) as_dir=./$as_dir;;
12195 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12199 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12200 *) as_qdir=$as_dir;;
12202 as_dirs="'$as_qdir' $as_dirs"
12203 as_dir=`$as_dirname -- "$as_dir" ||
12204 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12205 X"$as_dir" : 'X\(//\)[^/]' \| \
12206 X"$as_dir" : 'X\(//\)$' \| \
12207 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12208 $as_echo X"$as_dir" |
12209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12213 /^X\(\/\/\)[^/].*/{
12226 test -d "$as_dir" && break
12228 test -z "$as_dirs" || eval "mkdir $as_dirs"
12229 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12230 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12231 { (exit 1); exit 1; }; }; }
12235 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12237 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12238 # A ".." for each directory in $ac_dir_suffix.
12239 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12240 case $ac_top_builddir_sub in
12241 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12242 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12245 ac_abs_top_builddir=$ac_pwd
12246 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12247 # for backward compatibility:
12248 ac_top_builddir=$ac_top_build_prefix
12251 .) # We are building in place.
12253 ac_top_srcdir=$ac_top_builddir_sub
12254 ac_abs_top_srcdir=$ac_pwd ;;
12255 [\\/]* | ?:[\\/]* ) # Absolute name.
12256 ac_srcdir=$srcdir$ac_dir_suffix;
12257 ac_top_srcdir=$srcdir
12258 ac_abs_top_srcdir=$srcdir ;;
12259 *) # Relative name.
12260 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12261 ac_top_srcdir=$ac_top_build_prefix$srcdir
12262 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12264 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12274 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12275 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12280 # If the template does not know about datarootdir, expand it.
12281 # FIXME: This hack should be removed a few years after 2.60.
12282 ac_datarootdir_hack=; ac_datarootdir_seen=
12295 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12296 *datarootdir*) ac_datarootdir_seen=yes;;
12297 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12298 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12299 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12302 ac_datarootdir_hack='
12303 s&@datadir@&$datadir&g
12304 s&@docdir@&$docdir&g
12305 s&@infodir@&$infodir&g
12306 s&@localedir@&$localedir&g
12307 s&@mandir@&$mandir&g
12308 s&\\\${datarootdir}&$datarootdir&g' ;;
12312 # Neutralize VPATH when `$srcdir' = `.'.
12313 # Shell code in configure.ac might set extrasub.
12314 # FIXME: do we really want to maintain this feature?
12315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12316 ac_sed_extra="$ac_vpsub
12319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12322 s|@configure_input@|$ac_sed_conf_input|;t t
12323 s&@top_builddir@&$ac_top_builddir_sub&;t t
12324 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12325 s&@srcdir@&$ac_srcdir&;t t
12326 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12327 s&@top_srcdir@&$ac_top_srcdir&;t t
12328 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12329 s&@builddir@&$ac_builddir&;t t
12330 s&@abs_builddir@&$ac_abs_builddir&;t t
12331 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12332 s&@INSTALL@&$ac_INSTALL&;t t
12333 $ac_datarootdir_hack
12335 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12336 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12337 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12338 { (exit 1); exit 1; }; }
12340 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12341 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12342 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12343 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12344 which seems to be undefined. Please make sure it is defined." >&5
12345 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12346 which seems to be undefined. Please make sure it is defined." >&2;}
12350 -) cat "$tmp/out" && rm -f "$tmp/out";;
12351 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12353 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12354 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12355 { (exit 1); exit 1; }; }
12361 if test x"$ac_file" != x-; then
12363 $as_echo "/* $configure_input */" \
12364 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12365 } >"$tmp/config.h" \
12366 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12367 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12368 { (exit 1); exit 1; }; }
12369 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12370 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12371 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12374 mv "$tmp/config.h" "$ac_file" \
12375 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12376 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12377 { (exit 1); exit 1; }; }
12380 $as_echo "/* $configure_input */" \
12381 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12382 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12383 $as_echo "$as_me: error: could not create -" >&2;}
12384 { (exit 1); exit 1; }; }
12394 { (exit 0); exit 0; }
12396 chmod +x $CONFIG_STATUS
12397 ac_clean_files=$ac_clean_files_save
12399 test $ac_write_fail = 0 ||
12400 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
12401 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
12402 { (exit 1); exit 1; }; }
12405 # configure is writing to config.log, and then calls config.status.
12406 # config.status does its own redirection, appending to config.log.
12407 # Unfortunately, on DOS this fails, as config.log is still kept open
12408 # by configure, so config.status won't be able to write to it; its
12409 # output is simply discarded. So we exec the FD to /dev/null,
12410 # effectively closing config.log, so it can be properly (re)opened and
12411 # appended to by config.status. When coming back to configure, we
12412 # need to make the FD available again.
12413 if test "$no_create" != yes; then
12415 ac_config_status_args=
12416 test "$silent" = yes &&
12417 ac_config_status_args="$ac_config_status_args --quiet"
12419 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12421 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12422 # would make configure fail if this is the last instruction.
12423 $ac_cs_success || { (exit 1); exit 1; }
12425 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12426 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
12427 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
12433 # On development trees, create snapshots of config.status
12435 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
12436 if test "x${MINGW}" = "xyes"; then
12437 echo cp config.status config.status.win32
12438 cp config.status config.status.win32
12440 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
12441 echo cp config.status config.status.linux
12442 cp config.status config.status.linux
12444 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
12445 echo cp config.status config.status.debug
12446 cp config.status config.status.debug
12448 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
12449 echo cp config.status config.status.optimize
12450 cp config.status config.status.optimize