2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
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>
638 ac_subst_vars='LTLIBOBJS
733 program_transform_name
745 enable_option_checking
753 ac_precious_vars='build_alias
767 # Initialize some variables set by options.
769 ac_init_version=false
770 ac_unrecognized_opts=
772 # The variables have the same names as the options, with
773 # dashes changed to underlines.
781 program_transform_name=s,x,x,
789 # Installation directory options.
790 # These are left unexpanded so users can "make install exec_prefix=/foo"
791 # and all the variables that are supposed to be based on exec_prefix
792 # by default will actually change.
793 # Use braces instead of parens because sh, perl, etc. also accept them.
794 # (The list follows the same order as the GNU Coding Standards.)
795 bindir='${exec_prefix}/bin'
796 sbindir='${exec_prefix}/sbin'
797 libexecdir='${exec_prefix}/libexec'
798 datarootdir='${prefix}/share'
799 datadir='${datarootdir}'
800 sysconfdir='${prefix}/etc'
801 sharedstatedir='${prefix}/com'
802 localstatedir='${prefix}/var'
803 includedir='${prefix}/include'
804 oldincludedir='/usr/include'
805 docdir='${datarootdir}/doc/${PACKAGE}'
806 infodir='${datarootdir}/info'
811 libdir='${exec_prefix}/lib'
812 localedir='${datarootdir}/locale'
813 mandir='${datarootdir}/man'
819 # If the previous option needs an argument, assign it.
820 if test -n "$ac_prev"; then
821 eval $ac_prev=\$ac_option
827 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
831 # Accept the important Cygnus configure options, so we can diagnose typos.
833 case $ac_dashdash$ac_option in
837 -bindir | --bindir | --bindi | --bind | --bin | --bi)
839 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
842 -build | --build | --buil | --bui | --bu)
843 ac_prev=build_alias ;;
844 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
845 build_alias=$ac_optarg ;;
847 -cache-file | --cache-file | --cache-fil | --cache-fi \
848 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
849 ac_prev=cache_file ;;
850 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
851 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
852 cache_file=$ac_optarg ;;
855 cache_file=config.cache ;;
857 -datadir | --datadir | --datadi | --datad)
859 -datadir=* | --datadir=* | --datadi=* | --datad=*)
860 datadir=$ac_optarg ;;
862 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
863 | --dataroo | --dataro | --datar)
864 ac_prev=datarootdir ;;
865 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
866 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
867 datarootdir=$ac_optarg ;;
869 -disable-* | --disable-*)
870 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
871 # Reject names that are not valid shell variable names.
872 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
873 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
874 { (exit 1); exit 1; }; }
875 ac_useropt_orig=$ac_useropt
876 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
877 case $ac_user_opts in
881 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
882 ac_unrecognized_sep=', ';;
884 eval enable_$ac_useropt=no ;;
886 -docdir | --docdir | --docdi | --doc | --do)
888 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
891 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
893 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
896 -enable-* | --enable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
901 { (exit 1); exit 1; }; }
902 ac_useropt_orig=$ac_useropt
903 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
904 case $ac_user_opts in
908 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
909 ac_unrecognized_sep=', ';;
911 eval enable_$ac_useropt=\$ac_optarg ;;
913 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
914 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
915 | --exec | --exe | --ex)
916 ac_prev=exec_prefix ;;
917 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
918 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
919 | --exec=* | --exe=* | --ex=*)
920 exec_prefix=$ac_optarg ;;
922 -gas | --gas | --ga | --g)
923 # Obsolete; use --with-gas.
926 -help | --help | --hel | --he | -h)
928 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
929 ac_init_help=recursive ;;
930 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
931 ac_init_help=short ;;
933 -host | --host | --hos | --ho)
934 ac_prev=host_alias ;;
935 -host=* | --host=* | --hos=* | --ho=*)
936 host_alias=$ac_optarg ;;
938 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
940 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
942 htmldir=$ac_optarg ;;
944 -includedir | --includedir | --includedi | --included | --include \
945 | --includ | --inclu | --incl | --inc)
946 ac_prev=includedir ;;
947 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
948 | --includ=* | --inclu=* | --incl=* | --inc=*)
949 includedir=$ac_optarg ;;
951 -infodir | --infodir | --infodi | --infod | --info | --inf)
953 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
954 infodir=$ac_optarg ;;
956 -libdir | --libdir | --libdi | --libd)
958 -libdir=* | --libdir=* | --libdi=* | --libd=*)
961 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
962 | --libexe | --libex | --libe)
963 ac_prev=libexecdir ;;
964 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
965 | --libexe=* | --libex=* | --libe=*)
966 libexecdir=$ac_optarg ;;
968 -localedir | --localedir | --localedi | --localed | --locale)
970 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
971 localedir=$ac_optarg ;;
973 -localstatedir | --localstatedir | --localstatedi | --localstated \
974 | --localstate | --localstat | --localsta | --localst | --locals)
975 ac_prev=localstatedir ;;
976 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
977 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
978 localstatedir=$ac_optarg ;;
980 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
982 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
986 # Obsolete; use --without-fp.
989 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
990 | --no-cr | --no-c | -n)
993 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
994 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
997 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
998 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
999 | --oldin | --oldi | --old | --ol | --o)
1000 ac_prev=oldincludedir ;;
1001 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1002 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1003 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1004 oldincludedir=$ac_optarg ;;
1006 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1008 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1009 prefix=$ac_optarg ;;
1011 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1012 | --program-pre | --program-pr | --program-p)
1013 ac_prev=program_prefix ;;
1014 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1015 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1016 program_prefix=$ac_optarg ;;
1018 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1019 | --program-suf | --program-su | --program-s)
1020 ac_prev=program_suffix ;;
1021 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1022 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1023 program_suffix=$ac_optarg ;;
1025 -program-transform-name | --program-transform-name \
1026 | --program-transform-nam | --program-transform-na \
1027 | --program-transform-n | --program-transform- \
1028 | --program-transform | --program-transfor \
1029 | --program-transfo | --program-transf \
1030 | --program-trans | --program-tran \
1031 | --progr-tra | --program-tr | --program-t)
1032 ac_prev=program_transform_name ;;
1033 -program-transform-name=* | --program-transform-name=* \
1034 | --program-transform-nam=* | --program-transform-na=* \
1035 | --program-transform-n=* | --program-transform-=* \
1036 | --program-transform=* | --program-transfor=* \
1037 | --program-transfo=* | --program-transf=* \
1038 | --program-trans=* | --program-tran=* \
1039 | --progr-tra=* | --program-tr=* | --program-t=*)
1040 program_transform_name=$ac_optarg ;;
1042 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1044 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1045 pdfdir=$ac_optarg ;;
1047 -psdir | --psdir | --psdi | --psd | --ps)
1049 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1052 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1053 | -silent | --silent | --silen | --sile | --sil)
1056 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1058 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1060 sbindir=$ac_optarg ;;
1062 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1063 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1064 | --sharedst | --shareds | --shared | --share | --shar \
1066 ac_prev=sharedstatedir ;;
1067 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1068 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1069 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1071 sharedstatedir=$ac_optarg ;;
1073 -site | --site | --sit)
1075 -site=* | --site=* | --sit=*)
1078 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1080 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1081 srcdir=$ac_optarg ;;
1083 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1084 | --syscon | --sysco | --sysc | --sys | --sy)
1085 ac_prev=sysconfdir ;;
1086 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1087 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1088 sysconfdir=$ac_optarg ;;
1090 -target | --target | --targe | --targ | --tar | --ta | --t)
1091 ac_prev=target_alias ;;
1092 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1093 target_alias=$ac_optarg ;;
1095 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1098 -version | --version | --versio | --versi | --vers | -V)
1099 ac_init_version=: ;;
1102 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1103 # Reject names that are not valid shell variable names.
1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1105 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1106 { (exit 1); exit 1; }; }
1107 ac_useropt_orig=$ac_useropt
1108 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1109 case $ac_user_opts in
1113 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1114 ac_unrecognized_sep=', ';;
1116 eval with_$ac_useropt=\$ac_optarg ;;
1118 -without-* | --without-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1123 { (exit 1); exit 1; }; }
1124 ac_useropt_orig=$ac_useropt
1125 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126 case $ac_user_opts in
1130 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1131 ac_unrecognized_sep=', ';;
1133 eval with_$ac_useropt=no ;;
1136 # Obsolete; use --with-x.
1139 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1140 | --x-incl | --x-inc | --x-in | --x-i)
1141 ac_prev=x_includes ;;
1142 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1143 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1144 x_includes=$ac_optarg ;;
1146 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1147 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1148 ac_prev=x_libraries ;;
1149 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1150 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1151 x_libraries=$ac_optarg ;;
1153 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1154 Try \`$0 --help' for more information." >&2
1155 { (exit 1); exit 1; }; }
1159 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1162 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1163 { (exit 1); exit 1; }; }
1164 eval $ac_envvar=\$ac_optarg
1165 export $ac_envvar ;;
1168 # FIXME: should be removed in autoconf 3.0.
1169 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1170 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1171 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1172 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1178 if test -n "$ac_prev"; then
1179 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1180 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1181 { (exit 1); exit 1; }; }
1184 if test -n "$ac_unrecognized_opts"; then
1185 case $enable_option_checking in
1187 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1188 { (exit 1); exit 1; }; } ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193 # Check all directory arguments for consistency.
1194 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1199 eval ac_val=\$$ac_var
1200 # Remove trailing slashes.
1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\$ac_val;;
1206 # Be sure to have absolute directory names.
1208 [\\/$]* | ?:[\\/]* ) continue;;
1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1212 { (exit 1); exit 1; }; }
1215 # There might be people who depend on the old broken behavior: `$host'
1216 # used to hold the argument of --host etc.
1217 # FIXME: To remove some day.
1220 target=$target_alias
1222 # FIXME: To remove some day.
1223 if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1227 If a cross compiler is detected then cross compile mode will be used." >&2
1228 elif test "x$build_alias" != "x$host_alias"; then
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1243 { (exit 1); exit 1; }; }
1244 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1245 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1246 { (exit 1); exit 1; }; }
1249 # Find the source files, if location was not specified.
1250 if test -z "$srcdir"; then
1251 ac_srcdir_defaulted=yes
1252 # Try the directory containing this script, then the parent directory.
1253 ac_confdir=`$as_dirname -- "$as_myself" ||
1254 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1255 X"$as_myself" : 'X\(//\)[^/]' \| \
1256 X"$as_myself" : 'X\(//\)$' \| \
1257 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1258 $as_echo X"$as_myself" |
1259 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 if test ! -r "$srcdir/$ac_unique_file"; then
1281 ac_srcdir_defaulted=no
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1285 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1286 { (exit 1); exit 1; }; }
1288 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1291 { (exit 1); exit 1; }; }
1293 # When building in place, set srcdir=.
1294 if test "$ac_abs_confdir" = "$ac_pwd"; then
1297 # Remove unnecessary trailing slashes from srcdir.
1298 # Double slashes in file names in object file debugging info
1299 # mess up M-x gdb in Emacs.
1301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 for ac_var in $ac_precious_vars; do
1304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1305 eval ac_env_${ac_var}_value=\$${ac_var}
1306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1311 # Report the --help message.
1313 if test "$ac_init_help" = "long"; then
1314 # Omit some internal or obsolete options to make the list less imposing.
1315 # This message is too long to be a string in the A/UX 3.1 sh.
1317 \`configure' configures this package to adapt to many kinds of systems.
1319 Usage: $0 [OPTION]... [VAR=VALUE]...
1321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1322 VAR=VALUE. See below for descriptions of some of the useful variables.
1324 Defaults for the options are specified in brackets.
1327 -h, --help display this help and exit
1328 --help=short display options specific to this package
1329 --help=recursive display the short help of all the included packages
1330 -V, --version display version information and exit
1331 -q, --quiet, --silent do not print \`checking...' messages
1332 --cache-file=FILE cache test results in FILE [disabled]
1333 -C, --config-cache alias for \`--cache-file=config.cache'
1334 -n, --no-create do not create output files
1335 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337 Installation directories:
1338 --prefix=PREFIX install architecture-independent files in PREFIX
1339 [$ac_default_prefix]
1340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1343 By default, \`make install' will install all the files in
1344 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1345 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1346 for instance \`--prefix=\$HOME'.
1348 For better control, use the options below.
1350 Fine tuning of the installation directories:
1351 --bindir=DIR user executables [EPREFIX/bin]
1352 --sbindir=DIR system admin executables [EPREFIX/sbin]
1353 --libexecdir=DIR program executables [EPREFIX/libexec]
1354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1357 --libdir=DIR object code libraries [EPREFIX/lib]
1358 --includedir=DIR C header files [PREFIX/include]
1359 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1360 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1361 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1362 --infodir=DIR info documentation [DATAROOTDIR/info]
1363 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1364 --mandir=DIR man documentation [DATAROOTDIR/man]
1365 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1366 --htmldir=DIR html documentation [DOCDIR]
1367 --dvidir=DIR dvi documentation [DOCDIR]
1368 --pdfdir=DIR pdf documentation [DOCDIR]
1369 --psdir=DIR ps documentation [DOCDIR]
1375 --program-prefix=PREFIX prepend PREFIX to installed program names
1376 --program-suffix=SUFFIX append SUFFIX to installed program names
1377 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1386 if test -n "$ac_init_help"; then
1391 --disable-option-checking ignore unrecognized --enable/--with options
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-checkmem turn on ccmalloc debugging
1395 --enable-debug turn on debugging
1396 --enable-profiling turn on profiling
1397 --enable-warnings turn on compiler warnings
1398 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1399 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1409 CXX C++ compiler command
1410 CXXFLAGS C++ compiler flags
1413 Use these variables to override the choices made by `configure' or to help
1414 it to find libraries and programs with nonstandard names/locations.
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" ||
1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1445 .) # We are building in place.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1479 generated by GNU Autoconf 2.63
1481 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1482 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1483 This configure script is free software; the Free Software Foundation
1484 gives unlimited permission to copy, distribute and modify it.
1488 cat >config.log <<_ACEOF
1489 This file contains any messages produced by compilers while
1490 running configure, to aid debugging if configure makes a mistake.
1492 It was created by $as_me, which was
1493 generated by GNU Autoconf 2.63. Invocation command line was
1505 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1506 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1507 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1508 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1509 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1511 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1512 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1514 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1515 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1516 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1517 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1518 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1519 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1520 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1528 test -z "$as_dir" && as_dir=.
1529 $as_echo "PATH: $as_dir"
1545 # Keep a trace of the command line.
1546 # Strip out --no-create and --no-recursion so they do not pile up.
1547 # Strip out --silent because we don't want to record it for future runs.
1548 # Also quote any args containing shell meta-characters.
1549 # Make two passes to allow for proper duplicate-argument suppression.
1553 ac_must_keep_next=false
1559 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1560 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1561 | -silent | --silent | --silen | --sile | --sil)
1564 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1567 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1569 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1570 if test $ac_must_keep_next = true; then
1571 ac_must_keep_next=false # Got value, back to normal.
1574 *=* | --config-cache | -C | -disable-* | --disable-* \
1575 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1576 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1577 | -with-* | --with-* | -without-* | --without-* | --x)
1578 case "$ac_configure_args0 " in
1579 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1582 -* ) ac_must_keep_next=true ;;
1585 ac_configure_args="$ac_configure_args '$ac_arg'"
1590 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1591 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1593 # When interrupted or exit'd, cleanup temporary files, and complete
1594 # config.log. We remove comments because anyway the quotes in there
1595 # would cause problems or look ugly.
1596 # WARNING: Use '\'' to represent an apostrophe within the trap.
1597 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1598 trap 'exit_status=$?
1599 # Save into config.log some information that might help in debugging.
1604 ## ---------------- ##
1605 ## Cache variables. ##
1606 ## ---------------- ##
1609 # The following way of writing the cache mishandles newlines in values,
1611 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1612 eval ac_val=\$$ac_var
1616 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1617 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1620 _ | IFS | as_nl) ;; #(
1621 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1622 *) $as_unset $ac_var ;;
1627 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1628 *${as_nl}ac_space=\ *)
1630 "s/'\''/'\''\\\\'\'''\''/g;
1631 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1634 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1642 ## ----------------- ##
1643 ## Output variables. ##
1644 ## ----------------- ##
1647 for ac_var in $ac_subst_vars
1649 eval ac_val=\$$ac_var
1651 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1653 $as_echo "$ac_var='\''$ac_val'\''"
1657 if test -n "$ac_subst_files"; then
1659 ## ------------------- ##
1660 ## File substitutions. ##
1661 ## ------------------- ##
1664 for ac_var in $ac_subst_files
1666 eval ac_val=\$$ac_var
1668 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1670 $as_echo "$ac_var='\''$ac_val'\''"
1675 if test -s confdefs.h; then
1685 test "$ac_signal" != 0 &&
1686 $as_echo "$as_me: caught signal $ac_signal"
1687 $as_echo "$as_me: exit $exit_status"
1689 rm -f core *.core core.conftest.* &&
1690 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1693 for ac_signal in 1 2 13 15; do
1694 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1698 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1699 rm -f -r conftest* confdefs.h
1701 # Predefined preprocessor variables.
1703 cat >>confdefs.h <<_ACEOF
1704 #define PACKAGE_NAME "$PACKAGE_NAME"
1708 cat >>confdefs.h <<_ACEOF
1709 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1713 cat >>confdefs.h <<_ACEOF
1714 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1718 cat >>confdefs.h <<_ACEOF
1719 #define PACKAGE_STRING "$PACKAGE_STRING"
1723 cat >>confdefs.h <<_ACEOF
1724 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1728 # Let the site file select an alternate cache file if it wants to.
1729 # Prefer an explicitly selected file to automatically selected ones.
1732 if test -n "$CONFIG_SITE"; then
1733 ac_site_file1=$CONFIG_SITE
1734 elif test "x$prefix" != xNONE; then
1735 ac_site_file1=$prefix/share/config.site
1736 ac_site_file2=$prefix/etc/config.site
1738 ac_site_file1=$ac_default_prefix/share/config.site
1739 ac_site_file2=$ac_default_prefix/etc/config.site
1741 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1743 test "x$ac_site_file" = xNONE && continue
1744 if test -r "$ac_site_file"; then
1745 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1746 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1747 sed 's/^/| /' "$ac_site_file" >&5
1752 if test -r "$cache_file"; then
1753 # Some versions of bash will fail to source /dev/null (special
1754 # files actually), so we avoid doing that.
1755 if test -f "$cache_file"; then
1756 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1757 $as_echo "$as_me: loading cache $cache_file" >&6;}
1759 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1760 *) . "./$cache_file";;
1764 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1765 $as_echo "$as_me: creating cache $cache_file" >&6;}
1769 # Check that the precious variables saved in the cache have kept the same
1771 ac_cache_corrupted=false
1772 for ac_var in $ac_precious_vars; do
1773 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1774 eval ac_new_set=\$ac_env_${ac_var}_set
1775 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1776 eval ac_new_val=\$ac_env_${ac_var}_value
1777 case $ac_old_set,$ac_new_set in
1779 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1780 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1781 ac_cache_corrupted=: ;;
1783 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1784 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1785 ac_cache_corrupted=: ;;
1788 if test "x$ac_old_val" != "x$ac_new_val"; then
1789 # differences in whitespace do not lead to failure.
1790 ac_old_val_w=`echo x $ac_old_val`
1791 ac_new_val_w=`echo x $ac_new_val`
1792 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1793 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1794 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1795 ac_cache_corrupted=:
1797 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1798 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1799 eval $ac_var=\$ac_old_val
1801 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1802 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1803 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1804 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1807 # Pass precious variables to config.status.
1808 if test "$ac_new_set" = set; then
1810 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1811 *) ac_arg=$ac_var=$ac_new_val ;;
1813 case " $ac_configure_args " in
1814 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1815 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1819 if $ac_cache_corrupted; then
1820 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1822 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1823 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1824 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1825 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1826 { (exit 1); exit 1; }; }
1846 ac_cpp='$CPP $CPPFLAGS'
1847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1854 # ------------------- option parsing -------------------------------
1863 # Check whether --enable-checkmem was given.
1864 if test "${enable_checkmem+set}" = set; then
1865 enableval=$enable_checkmem; CHECKMEM=true
1868 # Check whether --enable-debug was given.
1869 if test "${enable_debug+set}" = set; then
1870 enableval=$enable_debug; DEBUG=true
1873 # Check whether --enable-profiling was given.
1874 if test "${enable_profiling+set}" = set; then
1875 enableval=$enable_profiling; PROFILING=true
1878 # Check whether --enable-warnings was given.
1879 if test "${enable_warnings+set}" = set; then
1880 enableval=$enable_warnings; ENABLE_WARNINGS=true
1883 # Check whether --enable-optimizations was given.
1884 if test "${enable_optimizations+set}" = set; then
1885 enableval=$enable_optimizations; OPTIMIZE=true
1888 # Check whether --enable-lame was given.
1889 if test "${enable_lame+set}" = set; then
1890 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1899 VERSION=2010-02-06-1900
1901 # ------------------------------------------------------------------
1903 if test "x${srcdir}" != "x."; then
1904 echo "--srcdir is not supported"
1908 WARNINGS="-Wimplicit -Wreturn-type -Wno-write-strings -Wformat"
1909 if test "x$ENABLE_WARNINGS" '!=' "x";then
1910 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -Wno-write-strings -D_FORTIFY_SOURCE=2 "
1913 if test "x$CHECKMEM" '!=' "x";then
1916 if test "x$PROFILING" '!=' "x";then
1919 if test "x$DEBUG" '!=' "x";then
1920 if test "x$PROFILING" = "x";then
1921 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1922 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1923 LDFLAGS="-g $LDFLAGS"
1925 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1926 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1927 LDFLAGS="-g -pg $LDFLAGS"
1929 else if test "x$OPTIMIZE" '!=' "x"; then
1930 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1931 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1933 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1934 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1938 CFLAGS="-fPIC $CFLAGS"
1939 CXXFLAGS="-fPIC $CFLAGS"
1942 #if test "x$OLDGCC" '!=' "x";then
1943 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1944 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1945 # CFLAGS="$CFLAGS -ansi -pendantic"
1946 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1949 export PACKAGE VERSION CFLAGS CXXFLAGS
1953 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1954 if test -f "$ac_dir/install-sh"; then
1956 ac_install_sh="$ac_aux_dir/install-sh -c"
1958 elif test -f "$ac_dir/install.sh"; then
1960 ac_install_sh="$ac_aux_dir/install.sh -c"
1962 elif test -f "$ac_dir/shtool"; then
1964 ac_install_sh="$ac_aux_dir/shtool install -c"
1968 if test -z "$ac_aux_dir"; then
1969 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1970 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1971 { (exit 1); exit 1; }; }
1974 # These three variables are undocumented and unsupported,
1975 # and are intended to be withdrawn in a future Autoconf release.
1976 # They can cause serious problems if a builder's source tree is in a directory
1977 # whose full name contains unusual characters.
1978 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1979 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1980 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1983 # Make sure we can run config.sub.
1984 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1985 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1986 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1987 { (exit 1); exit 1; }; }
1989 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1990 $as_echo_n "checking build system type... " >&6; }
1991 if test "${ac_cv_build+set}" = set; then
1992 $as_echo_n "(cached) " >&6
1994 ac_build_alias=$build_alias
1995 test "x$ac_build_alias" = x &&
1996 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1997 test "x$ac_build_alias" = x &&
1998 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1999 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2000 { (exit 1); exit 1; }; }
2001 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2002 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2003 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2004 { (exit 1); exit 1; }; }
2007 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2008 $as_echo "$ac_cv_build" >&6; }
2009 case $ac_cv_build in
2011 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2012 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2013 { (exit 1); exit 1; }; };;
2016 ac_save_IFS=$IFS; IFS='-'
2022 # Remember, the first character of IFS is used to create $*,
2023 # except with old shells:
2026 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2029 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2030 $as_echo_n "checking host system type... " >&6; }
2031 if test "${ac_cv_host+set}" = set; then
2032 $as_echo_n "(cached) " >&6
2034 if test "x$host_alias" = x; then
2035 ac_cv_host=$ac_cv_build
2037 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2038 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2039 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2040 { (exit 1); exit 1; }; }
2044 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2045 $as_echo "$ac_cv_host" >&6; }
2048 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2049 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2050 { (exit 1); exit 1; }; };;
2053 ac_save_IFS=$IFS; IFS='-'
2059 # Remember, the first character of IFS is used to create $*,
2060 # except with old shells:
2063 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2073 CXXFLAGS="$CXXFLAGS -fno-rtti"
2075 if test -d /opt/local/include && test -d /opt/local/lib; then
2076 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2077 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2079 # Use fink packages if available.
2080 #if test -d /sw/include && test -d /sw/lib; then
2081 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2082 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2090 ac_cpp='$CPP $CPPFLAGS'
2091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2094 if test -n "$ac_tool_prefix"; then
2095 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2096 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2097 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2098 $as_echo_n "checking for $ac_word... " >&6; }
2099 if test "${ac_cv_prog_CC+set}" = set; then
2100 $as_echo_n "(cached) " >&6
2102 if test -n "$CC"; then
2103 ac_cv_prog_CC="$CC" # Let the user override the test.
2105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2109 test -z "$as_dir" && as_dir=.
2110 for ac_exec_ext in '' $ac_executable_extensions; do
2111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2112 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2113 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 if test -n "$CC"; then
2124 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2125 $as_echo "$CC" >&6; }
2127 { $as_echo "$as_me:$LINENO: result: no" >&5
2128 $as_echo "no" >&6; }
2133 if test -z "$ac_cv_prog_CC"; then
2135 # Extract the first word of "gcc", so it can be a program name with args.
2136 set dummy gcc; ac_word=$2
2137 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2138 $as_echo_n "checking for $ac_word... " >&6; }
2139 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2140 $as_echo_n "(cached) " >&6
2142 if test -n "$ac_ct_CC"; then
2143 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 test -z "$as_dir" && as_dir=.
2150 for ac_exec_ext in '' $ac_executable_extensions; do
2151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2152 ac_cv_prog_ac_ct_CC="gcc"
2153 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2162 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2163 if test -n "$ac_ct_CC"; then
2164 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2165 $as_echo "$ac_ct_CC" >&6; }
2167 { $as_echo "$as_me:$LINENO: result: no" >&5
2168 $as_echo "no" >&6; }
2171 if test "x$ac_ct_CC" = x; then
2174 case $cross_compiling:$ac_tool_warned in
2176 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2178 ac_tool_warned=yes ;;
2186 if test -z "$CC"; then
2187 if test -n "$ac_tool_prefix"; then
2188 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2189 set dummy ${ac_tool_prefix}cc; ac_word=$2
2190 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 $as_echo_n "checking for $ac_word... " >&6; }
2192 if test "${ac_cv_prog_CC+set}" = set; then
2193 $as_echo_n "(cached) " >&6
2195 if test -n "$CC"; then
2196 ac_cv_prog_CC="$CC" # Let the user override the test.
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 test -z "$as_dir" && as_dir=.
2203 for ac_exec_ext in '' $ac_executable_extensions; do
2204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2205 ac_cv_prog_CC="${ac_tool_prefix}cc"
2206 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2216 if test -n "$CC"; then
2217 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2218 $as_echo "$CC" >&6; }
2220 { $as_echo "$as_me:$LINENO: result: no" >&5
2221 $as_echo "no" >&6; }
2227 if test -z "$CC"; then
2228 # Extract the first word of "cc", so it can be a program name with args.
2229 set dummy cc; ac_word=$2
2230 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 $as_echo_n "checking for $ac_word... " >&6; }
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233 $as_echo_n "(cached) " >&6
2235 if test -n "$CC"; then
2236 ac_cv_prog_CC="$CC" # Let the user override the test.
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2246 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2247 ac_prog_rejected=yes
2251 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258 if test $ac_prog_rejected = yes; then
2259 # We found a bogon in the path, so make sure we never use it.
2260 set dummy $ac_cv_prog_CC
2262 if test $# != 0; then
2263 # We chose a different compiler from the bogus one.
2264 # However, it has the same basename, so the bogon will be chosen
2265 # first if we set CC to just the basename; use the full file name.
2267 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2273 if test -n "$CC"; then
2274 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2275 $as_echo "$CC" >&6; }
2277 { $as_echo "$as_me:$LINENO: result: no" >&5
2278 $as_echo "no" >&6; }
2283 if test -z "$CC"; then
2284 if test -n "$ac_tool_prefix"; then
2285 for ac_prog in cl.exe
2287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2288 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2289 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 $as_echo_n "checking for $ac_word... " >&6; }
2291 if test "${ac_cv_prog_CC+set}" = set; then
2292 $as_echo_n "(cached) " >&6
2294 if test -n "$CC"; then
2295 ac_cv_prog_CC="$CC" # Let the user override the test.
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 test -z "$as_dir" && as_dir=.
2302 for ac_exec_ext in '' $ac_executable_extensions; do
2303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2304 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2315 if test -n "$CC"; then
2316 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2317 $as_echo "$CC" >&6; }
2319 { $as_echo "$as_me:$LINENO: result: no" >&5
2320 $as_echo "no" >&6; }
2324 test -n "$CC" && break
2327 if test -z "$CC"; then
2329 for ac_prog in cl.exe
2331 # Extract the first word of "$ac_prog", so it can be a program name with args.
2332 set dummy $ac_prog; ac_word=$2
2333 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2334 $as_echo_n "checking for $ac_word... " >&6; }
2335 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2336 $as_echo_n "(cached) " >&6
2338 if test -n "$ac_ct_CC"; then
2339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 ac_cv_prog_ac_ct_CC="$ac_prog"
2349 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2359 if test -n "$ac_ct_CC"; then
2360 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2361 $as_echo "$ac_ct_CC" >&6; }
2363 { $as_echo "$as_me:$LINENO: result: no" >&5
2364 $as_echo "no" >&6; }
2368 test -n "$ac_ct_CC" && break
2371 if test "x$ac_ct_CC" = x; then
2374 case $cross_compiling:$ac_tool_warned in
2376 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2377 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2378 ac_tool_warned=yes ;;
2387 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2389 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2390 See \`config.log' for more details." >&5
2391 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2392 See \`config.log' for more details." >&2;}
2393 { (exit 1); exit 1; }; }; }
2395 # Provide some information about the compiler.
2396 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2399 { (ac_try="$ac_compiler --version >&5"
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2405 $as_echo "$ac_try_echo") >&5
2406 (eval "$ac_compiler --version >&5") 2>&5
2408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }
2410 { (ac_try="$ac_compiler -v >&5"
2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2413 *) ac_try_echo=$ac_try;;
2415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2416 $as_echo "$ac_try_echo") >&5
2417 (eval "$ac_compiler -v >&5") 2>&5
2419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }
2421 { (ac_try="$ac_compiler -V >&5"
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2427 $as_echo "$ac_try_echo") >&5
2428 (eval "$ac_compiler -V >&5") 2>&5
2430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431 (exit $ac_status); }
2433 cat >conftest.$ac_ext <<_ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2448 ac_clean_files_save=$ac_clean_files
2449 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2450 # Try to create an executable without -o first, disregard a.out.
2451 # It will help us diagnose broken compilers, and finding out an intuition
2453 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2454 $as_echo_n "checking for C compiler default output file name... " >&6; }
2455 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2457 # The possible output files:
2458 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2461 for ac_file in $ac_files
2464 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2465 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2470 if { (ac_try="$ac_link_default"
2472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2473 *) ac_try_echo=$ac_try;;
2475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2476 $as_echo "$ac_try_echo") >&5
2477 (eval "$ac_link_default") 2>&5
2479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; then
2481 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2482 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2483 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2484 # so that the user can short-circuit this test for compilers unknown to
2486 for ac_file in $ac_files ''
2488 test -f "$ac_file" || continue
2490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2493 # We found the default executable, but exeext='' is most
2497 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2499 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2501 # We set ac_cv_exeext here because the later test for it is not
2502 # safe: cross compilers may not add the suffix if given an `-o'
2503 # argument, so we may need to know it at that point already.
2504 # Even if this section looks crufty: it has the advantage of
2511 test "$ac_cv_exeext" = no && ac_cv_exeext=
2517 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2518 $as_echo "$ac_file" >&6; }
2519 if test -z "$ac_file"; then
2520 $as_echo "$as_me: failed program was:" >&5
2521 sed 's/^/| /' conftest.$ac_ext >&5
2523 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2526 See \`config.log' for more details." >&5
2527 $as_echo "$as_me: error: C compiler cannot create executables
2528 See \`config.log' for more details." >&2;}
2529 { (exit 77); exit 77; }; }; }
2532 ac_exeext=$ac_cv_exeext
2534 # Check that the compiler produces executables we can run. If not, either
2535 # the compiler is broken, or we cross compile.
2536 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2537 $as_echo_n "checking whether the C compiler works... " >&6; }
2538 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2539 # If not cross compiling, check that we can run a simple program.
2540 if test "$cross_compiling" != yes; then
2541 if { ac_try='./$ac_file'
2542 { (case "(($ac_try" in
2543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2544 *) ac_try_echo=$ac_try;;
2546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2547 $as_echo "$ac_try_echo") >&5
2548 (eval "$ac_try") 2>&5
2550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551 (exit $ac_status); }; }; then
2554 if test "$cross_compiling" = maybe; then
2557 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2558 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2559 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2560 If you meant to cross compile, use \`--host'.
2561 See \`config.log' for more details." >&5
2562 $as_echo "$as_me: error: cannot run C compiled programs.
2563 If you meant to cross compile, use \`--host'.
2564 See \`config.log' for more details." >&2;}
2565 { (exit 1); exit 1; }; }; }
2569 { $as_echo "$as_me:$LINENO: result: yes" >&5
2570 $as_echo "yes" >&6; }
2572 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2573 ac_clean_files=$ac_clean_files_save
2574 # Check that the compiler produces executables we can run. If not, either
2575 # the compiler is broken, or we cross compile.
2576 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2577 $as_echo_n "checking whether we are cross compiling... " >&6; }
2578 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2579 $as_echo "$cross_compiling" >&6; }
2581 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2582 $as_echo_n "checking for suffix of executables... " >&6; }
2583 if { (ac_try="$ac_link"
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2589 $as_echo "$ac_try_echo") >&5
2590 (eval "$ac_link") 2>&5
2592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); }; then
2594 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2595 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2596 # work properly (i.e., refer to `conftest.exe'), while it won't with
2598 for ac_file in conftest.exe conftest conftest.*; do
2599 test -f "$ac_file" || continue
2601 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2602 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2608 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2610 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2611 See \`config.log' for more details." >&5
2612 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2613 See \`config.log' for more details." >&2;}
2614 { (exit 1); exit 1; }; }; }
2617 rm -f conftest$ac_cv_exeext
2618 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2619 $as_echo "$ac_cv_exeext" >&6; }
2621 rm -f conftest.$ac_ext
2622 EXEEXT=$ac_cv_exeext
2624 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2625 $as_echo_n "checking for suffix of object files... " >&6; }
2626 if test "${ac_cv_objext+set}" = set; then
2627 $as_echo_n "(cached) " >&6
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.o conftest.obj
2645 if { (ac_try="$ac_compile"
2647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2648 *) ac_try_echo=$ac_try;;
2650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2651 $as_echo "$ac_try_echo") >&5
2652 (eval "$ac_compile") 2>&5
2654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655 (exit $ac_status); }; then
2656 for ac_file in conftest.o conftest.obj conftest.*; do
2657 test -f "$ac_file" || continue;
2659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2660 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2665 $as_echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2668 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2670 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2671 See \`config.log' for more details." >&5
2672 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2673 See \`config.log' for more details." >&2;}
2674 { (exit 1); exit 1; }; }; }
2677 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2679 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2680 $as_echo "$ac_cv_objext" >&6; }
2681 OBJEXT=$ac_cv_objext
2683 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2684 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2685 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2686 $as_echo_n "(cached) " >&6
2688 cat >conftest.$ac_ext <<_ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2706 rm -f conftest.$ac_objext
2707 if { (ac_try="$ac_compile"
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2713 $as_echo "$ac_try_echo") >&5
2714 (eval "$ac_compile") 2>conftest.er1
2716 grep -v '^ *+' conftest.er1 >conftest.err
2718 cat conftest.err >&5
2719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); } && {
2721 test -z "$ac_c_werror_flag" ||
2722 test ! -s conftest.err
2723 } && test -s conftest.$ac_objext; then
2726 $as_echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2733 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2736 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2737 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2738 if test $ac_compiler_gnu = yes; then
2743 ac_test_CFLAGS=${CFLAGS+set}
2744 ac_save_CFLAGS=$CFLAGS
2745 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2746 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2747 if test "${ac_cv_prog_cc_g+set}" = set; then
2748 $as_echo_n "(cached) " >&6
2750 ac_save_c_werror_flag=$ac_c_werror_flag
2751 ac_c_werror_flag=yes
2754 cat >conftest.$ac_ext <<_ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2769 rm -f conftest.$ac_objext
2770 if { (ac_try="$ac_compile"
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2776 $as_echo "$ac_try_echo") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2779 grep -v '^ *+' conftest.er1 >conftest.err
2781 cat conftest.err >&5
2782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); } && {
2784 test -z "$ac_c_werror_flag" ||
2785 test ! -s conftest.err
2786 } && test -s conftest.$ac_objext; then
2789 $as_echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2793 cat >conftest.$ac_ext <<_ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2808 rm -f conftest.$ac_objext
2809 if { (ac_try="$ac_compile"
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2815 $as_echo "$ac_try_echo") >&5
2816 (eval "$ac_compile") 2>conftest.er1
2818 grep -v '^ *+' conftest.er1 >conftest.err
2820 cat conftest.err >&5
2821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } && {
2823 test -z "$ac_c_werror_flag" ||
2824 test ! -s conftest.err
2825 } && test -s conftest.$ac_objext; then
2828 $as_echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2831 ac_c_werror_flag=$ac_save_c_werror_flag
2833 cat >conftest.$ac_ext <<_ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2848 rm -f conftest.$ac_objext
2849 if { (ac_try="$ac_compile"
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2855 $as_echo "$ac_try_echo") >&5
2856 (eval "$ac_compile") 2>conftest.er1
2858 grep -v '^ *+' conftest.er1 >conftest.err
2860 cat conftest.err >&5
2861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } && {
2863 test -z "$ac_c_werror_flag" ||
2864 test ! -s conftest.err
2865 } && test -s conftest.$ac_objext; then
2868 $as_echo "$as_me: failed program was:" >&5
2869 sed 's/^/| /' conftest.$ac_ext >&5
2874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881 ac_c_werror_flag=$ac_save_c_werror_flag
2883 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2884 $as_echo "$ac_cv_prog_cc_g" >&6; }
2885 if test "$ac_test_CFLAGS" = set; then
2886 CFLAGS=$ac_save_CFLAGS
2887 elif test $ac_cv_prog_cc_g = yes; then
2888 if test "$GCC" = yes; then
2894 if test "$GCC" = yes; then
2900 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2901 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2902 if test "${ac_cv_prog_cc_c89+set}" = set; then
2903 $as_echo_n "(cached) " >&6
2905 ac_cv_prog_cc_c89=no
2907 cat >conftest.$ac_ext <<_ACEOF
2910 cat confdefs.h >>conftest.$ac_ext
2911 cat >>conftest.$ac_ext <<_ACEOF
2912 /* end confdefs.h. */
2915 #include <sys/types.h>
2916 #include <sys/stat.h>
2917 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2918 struct buf { int x; };
2919 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2920 static char *e (p, i)
2926 static char *f (char * (*g) (char **, int), char **p, ...)
2931 s = g (p, va_arg (v,int));
2936 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2937 function prototypes and stuff, but not '\xHH' hex character constants.
2938 These don't provoke an error unfortunately, instead are silently treated
2939 as 'x'. The following induces an error, until -std is added to get
2940 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2941 array size at least. It's necessary to write '\x00'==0 to get something
2942 that's true only with -std. */
2943 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2945 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2946 inside strings and character constants. */
2948 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2950 int test (int i, double x);
2951 struct s1 {int (*f) (int a);};
2952 struct s2 {int (*f) (double a);};
2953 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2959 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2964 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2965 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2967 CC="$ac_save_CC $ac_arg"
2968 rm -f conftest.$ac_objext
2969 if { (ac_try="$ac_compile"
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2975 $as_echo "$ac_try_echo") >&5
2976 (eval "$ac_compile") 2>conftest.er1
2978 grep -v '^ *+' conftest.er1 >conftest.err
2980 cat conftest.err >&5
2981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); } && {
2983 test -z "$ac_c_werror_flag" ||
2984 test ! -s conftest.err
2985 } && test -s conftest.$ac_objext; then
2986 ac_cv_prog_cc_c89=$ac_arg
2988 $as_echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2994 rm -f core conftest.err conftest.$ac_objext
2995 test "x$ac_cv_prog_cc_c89" != "xno" && break
2997 rm -f conftest.$ac_ext
3002 case "x$ac_cv_prog_cc_c89" in
3004 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3005 $as_echo "none needed" >&6; } ;;
3007 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3008 $as_echo "unsupported" >&6; } ;;
3010 CC="$CC $ac_cv_prog_cc_c89"
3011 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3012 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3017 ac_cpp='$CPP $CPPFLAGS'
3018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023 ac_cpp='$CXXCPP $CPPFLAGS'
3024 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3027 if test -z "$CXX"; then
3028 if test -n "$CCC"; then
3031 if test -n "$ac_tool_prefix"; then
3032 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3036 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3037 $as_echo_n "checking for $ac_word... " >&6; }
3038 if test "${ac_cv_prog_CXX+set}" = set; then
3039 $as_echo_n "(cached) " >&6
3041 if test -n "$CXX"; then
3042 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 test -z "$as_dir" && as_dir=.
3049 for ac_exec_ext in '' $ac_executable_extensions; do
3050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3051 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3052 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3062 if test -n "$CXX"; then
3063 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3064 $as_echo "$CXX" >&6; }
3066 { $as_echo "$as_me:$LINENO: result: no" >&5
3067 $as_echo "no" >&6; }
3071 test -n "$CXX" && break
3074 if test -z "$CXX"; then
3076 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3078 # Extract the first word of "$ac_prog", so it can be a program name with args.
3079 set dummy $ac_prog; ac_word=$2
3080 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3081 $as_echo_n "checking for $ac_word... " >&6; }
3082 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3083 $as_echo_n "(cached) " >&6
3085 if test -n "$ac_ct_CXX"; then
3086 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir=.
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 ac_cv_prog_ac_ct_CXX="$ac_prog"
3096 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3106 if test -n "$ac_ct_CXX"; then
3107 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3108 $as_echo "$ac_ct_CXX" >&6; }
3110 { $as_echo "$as_me:$LINENO: result: no" >&5
3111 $as_echo "no" >&6; }
3115 test -n "$ac_ct_CXX" && break
3118 if test "x$ac_ct_CXX" = x; then
3121 case $cross_compiling:$ac_tool_warned in
3123 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3125 ac_tool_warned=yes ;;
3133 # Provide some information about the compiler.
3134 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3137 { (ac_try="$ac_compiler --version >&5"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3143 $as_echo "$ac_try_echo") >&5
3144 (eval "$ac_compiler --version >&5") 2>&5
3146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }
3148 { (ac_try="$ac_compiler -v >&5"
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3154 $as_echo "$ac_try_echo") >&5
3155 (eval "$ac_compiler -v >&5") 2>&5
3157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }
3159 { (ac_try="$ac_compiler -V >&5"
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166 (eval "$ac_compiler -V >&5") 2>&5
3168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }
3171 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3172 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3173 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3174 $as_echo_n "(cached) " >&6
3176 cat >conftest.$ac_ext <<_ACEOF
3179 cat confdefs.h >>conftest.$ac_ext
3180 cat >>conftest.$ac_ext <<_ACEOF
3181 /* end confdefs.h. */
3194 rm -f conftest.$ac_objext
3195 if { (ac_try="$ac_compile"
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3201 $as_echo "$ac_try_echo") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3204 grep -v '^ *+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && {
3209 test -z "$ac_cxx_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.$ac_objext; then
3214 $as_echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3224 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3225 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3226 if test $ac_compiler_gnu = yes; then
3231 ac_test_CXXFLAGS=${CXXFLAGS+set}
3232 ac_save_CXXFLAGS=$CXXFLAGS
3233 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3234 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3235 if test "${ac_cv_prog_cxx_g+set}" = set; then
3236 $as_echo_n "(cached) " >&6
3238 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3239 ac_cxx_werror_flag=yes
3242 cat >conftest.$ac_ext <<_ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3257 rm -f conftest.$ac_objext
3258 if { (ac_try="$ac_compile"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3264 $as_echo "$ac_try_echo") >&5
3265 (eval "$ac_compile") 2>conftest.er1
3267 grep -v '^ *+' conftest.er1 >conftest.err
3269 cat conftest.err >&5
3270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } && {
3272 test -z "$ac_cxx_werror_flag" ||
3273 test ! -s conftest.err
3274 } && test -s conftest.$ac_objext; then
3275 ac_cv_prog_cxx_g=yes
3277 $as_echo "$as_me: failed program was:" >&5
3278 sed 's/^/| /' conftest.$ac_ext >&5
3281 cat >conftest.$ac_ext <<_ACEOF
3284 cat confdefs.h >>conftest.$ac_ext
3285 cat >>conftest.$ac_ext <<_ACEOF
3286 /* end confdefs.h. */
3296 rm -f conftest.$ac_objext
3297 if { (ac_try="$ac_compile"
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3303 $as_echo "$ac_try_echo") >&5
3304 (eval "$ac_compile") 2>conftest.er1
3306 grep -v '^ *+' conftest.er1 >conftest.err
3308 cat conftest.err >&5
3309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); } && {
3311 test -z "$ac_cxx_werror_flag" ||
3312 test ! -s conftest.err
3313 } && test -s conftest.$ac_objext; then
3316 $as_echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3321 cat >conftest.$ac_ext <<_ACEOF
3324 cat confdefs.h >>conftest.$ac_ext
3325 cat >>conftest.$ac_ext <<_ACEOF
3326 /* end confdefs.h. */
3336 rm -f conftest.$ac_objext
3337 if { (ac_try="$ac_compile"
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343 $as_echo "$ac_try_echo") >&5
3344 (eval "$ac_compile") 2>conftest.er1
3346 grep -v '^ *+' conftest.er1 >conftest.err
3348 cat conftest.err >&5
3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } && {
3351 test -z "$ac_cxx_werror_flag" ||
3352 test ! -s conftest.err
3353 } && test -s conftest.$ac_objext; then
3354 ac_cv_prog_cxx_g=yes
3356 $as_echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3369 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3371 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3372 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3373 if test "$ac_test_CXXFLAGS" = set; then
3374 CXXFLAGS=$ac_save_CXXFLAGS
3375 elif test $ac_cv_prog_cxx_g = yes; then
3376 if test "$GXX" = yes; then
3382 if test "$GXX" = yes; then
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3397 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3398 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3400 cat > conftest.c << EOF
3404 int main (int argc, char*argv)
3414 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3415 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3416 { $as_echo "$as_me:$LINENO: result: yes" >&5
3417 $as_echo "yes" >&6; }
3421 echo "configure: failed program was:" >&5
3423 { $as_echo "$as_me:$LINENO: result: no" >&5
3424 $as_echo "no" >&6; }
3429 if test "x$GCC_IS_OK" '=' "x";then
3430 echo "***************************************************"
3431 echo "* Your gcc is too old to compile this!"
3433 echo "* The last version compileable by this compiler is "
3434 echo "* swftools 0.7.0, which you can download from "
3435 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3437 echo "* Newer versions require at least gcc 3.0.0 "
3438 echo "***************************************************"
3442 if test "x$CHECKMEM" '!=' "x";then
3446 #unset ac_cv_prog_CC
3447 #unset ac_cv_prog_CXX
3452 ac_cpp='$CPP $CPPFLAGS'
3453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3458 # On Suns, sometimes $CPP names a directory.
3459 if test -n "$CPP" && test -d "$CPP"; then
3462 if test -z "$CPP"; then
3463 if test "${ac_cv_prog_CPP+set}" = set; then
3464 $as_echo_n "(cached) " >&6
3466 # Double quotes because CPP needs to be expanded
3467 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3470 for ac_c_preproc_warn_flag in '' yes
3472 # Use a header file that comes with gcc, so configuring glibc
3473 # with a fresh cross-compiler works.
3474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3475 # <limits.h> exists even on freestanding compilers.
3476 # On the NeXT, cc -E runs the code through the compiler's parser,
3477 # not just through cpp. "Syntax error" is here to catch this case.
3478 cat >conftest.$ac_ext <<_ACEOF
3481 cat confdefs.h >>conftest.$ac_ext
3482 cat >>conftest.$ac_ext <<_ACEOF
3483 /* end confdefs.h. */
3485 # include <limits.h>
3487 # include <assert.h>
3491 if { (ac_try="$ac_cpp conftest.$ac_ext"
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3497 $as_echo "$ac_try_echo") >&5
3498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3500 grep -v '^ *+' conftest.er1 >conftest.err
3502 cat conftest.err >&5
3503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } >/dev/null && {
3505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3506 test ! -s conftest.err
3510 $as_echo "$as_me: failed program was:" >&5
3511 sed 's/^/| /' conftest.$ac_ext >&5
3513 # Broken: fails on valid input.
3517 rm -f conftest.err conftest.$ac_ext
3519 # OK, works on sane cases. Now check whether nonexistent headers
3520 # can be detected and how.
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3527 #include <ac_nonexistent.h>
3529 if { (ac_try="$ac_cpp conftest.$ac_ext"
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3535 $as_echo "$ac_try_echo") >&5
3536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3538 grep -v '^ *+' conftest.er1 >conftest.err
3540 cat conftest.err >&5
3541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); } >/dev/null && {
3543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3544 test ! -s conftest.err
3546 # Broken: success on invalid input.
3549 $as_echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3552 # Passes both tests.
3557 rm -f conftest.err conftest.$ac_ext
3560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561 rm -f conftest.err conftest.$ac_ext
3562 if $ac_preproc_ok; then
3574 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3575 $as_echo "$CPP" >&6; }
3577 for ac_c_preproc_warn_flag in '' yes
3579 # Use a header file that comes with gcc, so configuring glibc
3580 # with a fresh cross-compiler works.
3581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3582 # <limits.h> exists even on freestanding compilers.
3583 # On the NeXT, cc -E runs the code through the compiler's parser,
3584 # not just through cpp. "Syntax error" is here to catch this case.
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3592 # include <limits.h>
3594 # include <assert.h>
3598 if { (ac_try="$ac_cpp conftest.$ac_ext"
3600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3601 *) ac_try_echo=$ac_try;;
3603 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3604 $as_echo "$ac_try_echo") >&5
3605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3607 grep -v '^ *+' conftest.er1 >conftest.err
3609 cat conftest.err >&5
3610 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } >/dev/null && {
3612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3613 test ! -s conftest.err
3617 $as_echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Broken: fails on valid input.
3624 rm -f conftest.err conftest.$ac_ext
3626 # OK, works on sane cases. Now check whether nonexistent headers
3627 # can be detected and how.
3628 cat >conftest.$ac_ext <<_ACEOF
3631 cat confdefs.h >>conftest.$ac_ext
3632 cat >>conftest.$ac_ext <<_ACEOF
3633 /* end confdefs.h. */
3634 #include <ac_nonexistent.h>
3636 if { (ac_try="$ac_cpp conftest.$ac_ext"
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3642 $as_echo "$ac_try_echo") >&5
3643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3645 grep -v '^ *+' conftest.er1 >conftest.err
3647 cat conftest.err >&5
3648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } >/dev/null && {
3650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3651 test ! -s conftest.err
3653 # Broken: success on invalid input.
3656 $as_echo "$as_me: failed program was:" >&5
3657 sed 's/^/| /' conftest.$ac_ext >&5
3659 # Passes both tests.
3664 rm -f conftest.err conftest.$ac_ext
3667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3668 rm -f conftest.err conftest.$ac_ext
3669 if $ac_preproc_ok; then
3672 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3675 See \`config.log' for more details." >&5
3676 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3677 See \`config.log' for more details." >&2;}
3678 { (exit 1); exit 1; }; }; }
3682 ac_cpp='$CPP $CPPFLAGS'
3683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3688 if test -n "$ac_tool_prefix"; then
3689 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3690 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 $as_echo_n "checking for $ac_word... " >&6; }
3693 if test "${ac_cv_prog_RANLIB+set}" = set; then
3694 $as_echo_n "(cached) " >&6
3696 if test -n "$RANLIB"; then
3697 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 RANLIB=$ac_cv_prog_RANLIB
3717 if test -n "$RANLIB"; then
3718 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3719 $as_echo "$RANLIB" >&6; }
3721 { $as_echo "$as_me:$LINENO: result: no" >&5
3722 $as_echo "no" >&6; }
3727 if test -z "$ac_cv_prog_RANLIB"; then
3728 ac_ct_RANLIB=$RANLIB
3729 # Extract the first word of "ranlib", so it can be a program name with args.
3730 set dummy ranlib; ac_word=$2
3731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 $as_echo_n "checking for $ac_word... " >&6; }
3733 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3734 $as_echo_n "(cached) " >&6
3736 if test -n "$ac_ct_RANLIB"; then
3737 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3746 ac_cv_prog_ac_ct_RANLIB="ranlib"
3747 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3757 if test -n "$ac_ct_RANLIB"; then
3758 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3759 $as_echo "$ac_ct_RANLIB" >&6; }
3761 { $as_echo "$as_me:$LINENO: result: no" >&5
3762 $as_echo "no" >&6; }
3765 if test "x$ac_ct_RANLIB" = x; then
3768 case $cross_compiling:$ac_tool_warned in
3770 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3772 ac_tool_warned=yes ;;
3774 RANLIB=$ac_ct_RANLIB
3777 RANLIB="$ac_cv_prog_RANLIB"
3780 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3781 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3783 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3784 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3785 $as_echo_n "(cached) " >&6
3787 cat >conftest.make <<\_ACEOF
3790 @echo '@@@%%%=$(MAKE)=@@@%%%'
3792 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3793 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3795 eval ac_cv_prog_make_${ac_make}_set=yes;;
3797 eval ac_cv_prog_make_${ac_make}_set=no;;
3801 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3802 { $as_echo "$as_me:$LINENO: result: yes" >&5
3803 $as_echo "yes" >&6; }
3806 { $as_echo "$as_me:$LINENO: result: no" >&5
3807 $as_echo "no" >&6; }
3808 SET_MAKE="MAKE=${MAKE-make}"
3811 # Find a good install program. We prefer a C program (faster),
3812 # so one script is as good as another. But avoid the broken or
3813 # incompatible versions:
3814 # SysV /etc/install, /usr/sbin/install
3815 # SunOS /usr/etc/install
3816 # IRIX /sbin/install
3818 # AmigaOS /C/install, which installs bootblocks on floppy discs
3819 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3820 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3821 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3822 # OS/2's system install, which has a completely different semantic
3823 # ./install, which can be erroneously created by make from ./install.sh.
3824 # Reject install programs that cannot install multiple files.
3825 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3826 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3827 if test -z "$INSTALL"; then
3828 if test "${ac_cv_path_install+set}" = set; then
3829 $as_echo_n "(cached) " >&6
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 test -z "$as_dir" && as_dir=.
3836 # Account for people who put trailing slashes in PATH elements.
3838 ./ | .// | /cC/* | \
3839 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3840 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3843 # OSF1 and SCO ODT 3.0 have their own names for install.
3844 # Don't use installbsd from OSF since it installs stuff as root
3846 for ac_prog in ginstall scoinst install; do
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3849 if test $ac_prog = install &&
3850 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3851 # AIX install. It has an incompatible calling convention.
3853 elif test $ac_prog = install &&
3854 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3855 # program-specific install script used by HP pwplus--don't use.
3858 rm -rf conftest.one conftest.two conftest.dir
3859 echo one > conftest.one
3860 echo two > conftest.two
3862 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3863 test -s conftest.one && test -s conftest.two &&
3864 test -s conftest.dir/conftest.one &&
3865 test -s conftest.dir/conftest.two
3867 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3880 rm -rf conftest.one conftest.two conftest.dir
3883 if test "${ac_cv_path_install+set}" = set; then
3884 INSTALL=$ac_cv_path_install
3886 # As a last resort, use the slow shell script. Don't cache a
3887 # value for INSTALL within a source directory, because that will
3888 # break other packages using the cache if that directory is
3889 # removed, or if the value is a relative name.
3890 INSTALL=$ac_install_sh
3893 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3894 $as_echo "$INSTALL" >&6; }
3896 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3897 # It thinks the first close brace ends the variable substitution.
3898 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3900 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3902 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3904 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3905 $as_echo_n "checking whether ln -s works... " >&6; }
3907 if test "$LN_S" = "ln -s"; then
3908 { $as_echo "$as_me:$LINENO: result: yes" >&5
3909 $as_echo "yes" >&6; }
3911 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3912 $as_echo "no, using $LN_S" >&6; }
3915 for ac_prog in gzip uncompress compress
3917 # Extract the first word of "$ac_prog", so it can be a program name with args.
3918 set dummy $ac_prog; ac_word=$2
3919 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3922 $as_echo_n "(cached) " >&6
3924 if test -n "$UNCOMPRESS"; then
3925 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3931 test -z "$as_dir" && as_dir=.
3932 for ac_exec_ext in '' $ac_executable_extensions; do
3933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3934 ac_cv_prog_UNCOMPRESS="$ac_prog"
3935 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3945 if test -n "$UNCOMPRESS"; then
3946 { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3947 $as_echo "$UNCOMPRESS" >&6; }
3949 { $as_echo "$as_me:$LINENO: result: no" >&5
3950 $as_echo "no" >&6; }
3954 test -n "$UNCOMPRESS" && break
3965 if test "x$EXEEXT" = "x.exe";then
3974 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3975 $as_echo_n "checking host system type... " >&6; }
3976 if test "${ac_cv_host+set}" = set; then
3977 $as_echo_n "(cached) " >&6
3979 if test "x$host_alias" = x; then
3980 ac_cv_host=$ac_cv_build
3982 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3983 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3984 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3985 { (exit 1); exit 1; }; }
3989 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3990 $as_echo "$ac_cv_host" >&6; }
3993 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3994 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3995 { (exit 1); exit 1; }; };;
3998 ac_save_IFS=$IFS; IFS='-'
4004 # Remember, the first character of IFS is used to create $*,
4005 # except with old shells:
4008 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4013 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4014 $as_echo_n "checking for target system... " >&6; }
4018 *cygwin* ) CYGWIN=yes;;
4019 *mingw* ) MINGW=yes;;
4023 if test "x$MINGW" = "xyes"; then
4024 #fix for the debian distribution of mingw
4025 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4026 AR="/usr/i586-mingw32msvc/bin/ar"
4028 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4029 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4031 #fix for the gentoo distribution of mingw
4032 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4033 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4035 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4036 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4038 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4039 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4045 if test "x${CYGWIN}" = "xyes"; then
4047 cat >>confdefs.h <<\_ACEOF
4051 { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4052 $as_echo "cygwin" >&6; }
4054 if test "x${MINGW}" = "xyes"; then
4056 cat >>confdefs.h <<\_ACEOF
4062 cat >>confdefs.h <<\_ACEOF
4066 LIBS="$LIBS -lws2_32 -lgdi32"
4067 { $as_echo "$as_me:$LINENO: result: mingw" >&5
4068 $as_echo "mingw" >&6; }
4073 cat >>confdefs.h <<\_ACEOF
4077 { $as_echo "$as_me:$LINENO: result: " >&5
4084 if test "x${MINGW}" != "xyes"; then
4087 cat >>confdefs.h <<\_ACEOF
4100 # The following tries to make use of includes and libraries in
4101 # /usr/local, too. Notice: A -I/usr/local/include might break
4102 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4103 # especially on systems which link /usr/local to /usr, so it has yet
4104 # to be seen how useful this is.
4105 if test -d /usr/local/lib; then
4106 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4108 if test -d /usr/local/include; then
4109 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4110 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4113 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4114 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4115 # and $prefix/include, which should be included in our search paths for libraries
4117 LDFLAGS="$LDFLAGS -L${libdir}"
4118 CPPFLAGS="$CPPFLAGS -I${includedir}"
4119 # TODO- test whether gcc still works after this
4123 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4126 # this must be done after (I believe) AC_PROG_MAKE_SET
4127 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4128 if test "$MACOSX";then
4131 STRIP="@echo debug enabled, not stripping "
4139 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4140 $as_echo_n "checking for sin in -lm... " >&6; }
4141 if test "${ac_cv_lib_m_sin+set}" = set; then
4142 $as_echo_n "(cached) " >&6
4144 ac_check_lib_save_LIBS=$LIBS
4146 cat >conftest.$ac_ext <<_ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4153 /* Override any GCC internal prototype to avoid an error.
4154 Use char because int might match the return type of a GCC
4155 builtin and then its argument prototype would still apply. */
4168 rm -f conftest.$ac_objext conftest$ac_exeext
4169 if { (ac_try="$ac_link"
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4175 $as_echo "$ac_try_echo") >&5
4176 (eval "$ac_link") 2>conftest.er1
4178 grep -v '^ *+' conftest.er1 >conftest.err
4180 cat conftest.err >&5
4181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } && {
4183 test -z "$ac_c_werror_flag" ||
4184 test ! -s conftest.err
4185 } && test -s conftest$ac_exeext && {
4186 test "$cross_compiling" = yes ||
4187 $as_test_x conftest$ac_exeext
4191 $as_echo "$as_me: failed program was:" >&5
4192 sed 's/^/| /' conftest.$ac_ext >&5
4197 rm -rf conftest.dSYM
4198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4199 conftest$ac_exeext conftest.$ac_ext
4200 LIBS=$ac_check_lib_save_LIBS
4202 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4203 $as_echo "$ac_cv_lib_m_sin" >&6; }
4204 if test "x$ac_cv_lib_m_sin" = x""yes; then
4205 cat >>confdefs.h <<_ACEOF
4212 echo "Error: Math library not found.";
4218 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4219 $as_echo_n "checking for deflate in -lz... " >&6; }
4220 if test "${ac_cv_lib_z_deflate+set}" = set; then
4221 $as_echo_n "(cached) " >&6
4223 ac_check_lib_save_LIBS=$LIBS
4225 cat >conftest.$ac_ext <<_ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4232 /* Override any GCC internal prototype to avoid an error.
4233 Use char because int might match the return type of a GCC
4234 builtin and then its argument prototype would still apply. */
4247 rm -f conftest.$ac_objext conftest$ac_exeext
4248 if { (ac_try="$ac_link"
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4254 $as_echo "$ac_try_echo") >&5
4255 (eval "$ac_link") 2>conftest.er1
4257 grep -v '^ *+' conftest.er1 >conftest.err
4259 cat conftest.err >&5
4260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } && {
4262 test -z "$ac_c_werror_flag" ||
4263 test ! -s conftest.err
4264 } && test -s conftest$ac_exeext && {
4265 test "$cross_compiling" = yes ||
4266 $as_test_x conftest$ac_exeext
4268 ac_cv_lib_z_deflate=yes
4270 $as_echo "$as_me: failed program was:" >&5
4271 sed 's/^/| /' conftest.$ac_ext >&5
4273 ac_cv_lib_z_deflate=no
4276 rm -rf conftest.dSYM
4277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4278 conftest$ac_exeext conftest.$ac_ext
4279 LIBS=$ac_check_lib_save_LIBS
4281 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4282 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4283 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4284 cat >>confdefs.h <<_ACEOF
4295 if test "x$ZLIBMISSING" = "xtrue";then
4298 echo "You need zlib to compile swftools"
4304 { $as_echo "$as_me:$LINENO: checking for PDF_open_file in -lpdf" >&5
4305 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4306 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then
4307 $as_echo_n "(cached) " >&6
4309 ac_check_lib_save_LIBS=$LIBS
4311 cat >conftest.$ac_ext <<_ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4318 /* Override any GCC internal prototype to avoid an error.
4319 Use char because int might match the return type of a GCC
4320 builtin and then its argument prototype would still apply. */
4324 char PDF_open_file ();
4328 return PDF_open_file ();
4333 rm -f conftest.$ac_objext conftest$ac_exeext
4334 if { (ac_try="$ac_link"
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4340 $as_echo "$ac_try_echo") >&5
4341 (eval "$ac_link") 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } && {
4348 test -z "$ac_c_werror_flag" ||
4349 test ! -s conftest.err
4350 } && test -s conftest$ac_exeext && {
4351 test "$cross_compiling" = yes ||
4352 $as_test_x conftest$ac_exeext
4354 ac_cv_lib_pdf_PDF_open_file=yes
4356 $as_echo "$as_me: failed program was:" >&5
4357 sed 's/^/| /' conftest.$ac_ext >&5
4359 ac_cv_lib_pdf_PDF_open_file=no
4362 rm -rf conftest.dSYM
4363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4364 conftest$ac_exeext conftest.$ac_ext
4365 LIBS=$ac_check_lib_save_LIBS
4367 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4368 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4369 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then
4370 cat >>confdefs.h <<_ACEOF
4371 #define HAVE_LIBPDF 1
4381 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4382 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4383 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4384 $as_echo_n "(cached) " >&6
4386 ac_check_lib_save_LIBS=$LIBS
4388 cat >conftest.$ac_ext <<_ACEOF
4391 cat confdefs.h >>conftest.$ac_ext
4392 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */
4395 /* Override any GCC internal prototype to avoid an error.
4396 Use char because int might match the return type of a GCC
4397 builtin and then its argument prototype would still apply. */
4401 char jpeg_write_raw_data ();
4405 return jpeg_write_raw_data ();
4410 rm -f conftest.$ac_objext conftest$ac_exeext
4411 if { (ac_try="$ac_link"
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4417 $as_echo "$ac_try_echo") >&5
4418 (eval "$ac_link") 2>conftest.er1
4420 grep -v '^ *+' conftest.er1 >conftest.err
4422 cat conftest.err >&5
4423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4424 (exit $ac_status); } && {
4425 test -z "$ac_c_werror_flag" ||
4426 test ! -s conftest.err
4427 } && test -s conftest$ac_exeext && {
4428 test "$cross_compiling" = yes ||
4429 $as_test_x conftest$ac_exeext
4431 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4433 $as_echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4436 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4439 rm -rf conftest.dSYM
4440 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4441 conftest$ac_exeext conftest.$ac_ext
4442 LIBS=$ac_check_lib_save_LIBS
4444 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4445 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4446 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4447 cat >>confdefs.h <<_ACEOF
4448 #define HAVE_LIBJPEG 1
4458 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4459 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4460 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4461 $as_echo_n "(cached) " >&6
4463 ac_check_lib_save_LIBS=$LIBS
4464 LIBS="-lungif $LIBS"
4465 cat >conftest.$ac_ext <<_ACEOF
4468 cat confdefs.h >>conftest.$ac_ext
4469 cat >>conftest.$ac_ext <<_ACEOF
4470 /* end confdefs.h. */
4472 /* Override any GCC internal prototype to avoid an error.
4473 Use char because int might match the return type of a GCC
4474 builtin and then its argument prototype would still apply. */
4487 rm -f conftest.$ac_objext conftest$ac_exeext
4488 if { (ac_try="$ac_link"
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4494 $as_echo "$ac_try_echo") >&5
4495 (eval "$ac_link") 2>conftest.er1
4497 grep -v '^ *+' conftest.er1 >conftest.err
4499 cat conftest.err >&5
4500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501 (exit $ac_status); } && {
4502 test -z "$ac_c_werror_flag" ||
4503 test ! -s conftest.err
4504 } && test -s conftest$ac_exeext && {
4505 test "$cross_compiling" = yes ||
4506 $as_test_x conftest$ac_exeext
4508 ac_cv_lib_ungif_DGifOpen=yes
4510 $as_echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 ac_cv_lib_ungif_DGifOpen=no
4516 rm -rf conftest.dSYM
4517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4518 conftest$ac_exeext conftest.$ac_ext
4519 LIBS=$ac_check_lib_save_LIBS
4521 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4522 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4523 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4524 cat >>confdefs.h <<_ACEOF
4525 #define HAVE_LIBUNGIF 1
4528 LIBS="-lungif $LIBS"
4534 if test "$UNGIFMISSING";then
4537 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4538 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4539 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4540 $as_echo_n "(cached) " >&6
4542 ac_check_lib_save_LIBS=$LIBS
4544 cat >conftest.$ac_ext <<_ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4551 /* Override any GCC internal prototype to avoid an error.
4552 Use char because int might match the return type of a GCC
4553 builtin and then its argument prototype would still apply. */
4566 rm -f conftest.$ac_objext conftest$ac_exeext
4567 if { (ac_try="$ac_link"
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4573 $as_echo "$ac_try_echo") >&5
4574 (eval "$ac_link") 2>conftest.er1
4576 grep -v '^ *+' conftest.er1 >conftest.err
4578 cat conftest.err >&5
4579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4580 (exit $ac_status); } && {
4581 test -z "$ac_c_werror_flag" ||
4582 test ! -s conftest.err
4583 } && test -s conftest$ac_exeext && {
4584 test "$cross_compiling" = yes ||
4585 $as_test_x conftest$ac_exeext
4587 ac_cv_lib_gif_DGifOpen=yes
4589 $as_echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4592 ac_cv_lib_gif_DGifOpen=no
4595 rm -rf conftest.dSYM
4596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4597 conftest$ac_exeext conftest.$ac_ext
4598 LIBS=$ac_check_lib_save_LIBS
4600 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4601 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4602 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4603 cat >>confdefs.h <<_ACEOF
4604 #define HAVE_LIBGIF 1
4615 { $as_echo "$as_me:$LINENO: checking for zzip_file_open in -lzzip" >&5
4616 $as_echo_n "checking for zzip_file_open in -lzzip... " >&6; }
4617 if test "${ac_cv_lib_zzip_zzip_file_open+set}" = set; then
4618 $as_echo_n "(cached) " >&6
4620 ac_check_lib_save_LIBS=$LIBS
4622 cat >conftest.$ac_ext <<_ACEOF
4625 cat confdefs.h >>conftest.$ac_ext
4626 cat >>conftest.$ac_ext <<_ACEOF
4627 /* end confdefs.h. */
4629 /* Override any GCC internal prototype to avoid an error.
4630 Use char because int might match the return type of a GCC
4631 builtin and then its argument prototype would still apply. */
4635 char zzip_file_open ();
4639 return zzip_file_open ();
4644 rm -f conftest.$ac_objext conftest$ac_exeext
4645 if { (ac_try="$ac_link"
4647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4648 *) ac_try_echo=$ac_try;;
4650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4651 $as_echo "$ac_try_echo") >&5
4652 (eval "$ac_link") 2>conftest.er1
4654 grep -v '^ *+' conftest.er1 >conftest.err
4656 cat conftest.err >&5
4657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } && {
4659 test -z "$ac_c_werror_flag" ||
4660 test ! -s conftest.err
4661 } && test -s conftest$ac_exeext && {
4662 test "$cross_compiling" = yes ||
4663 $as_test_x conftest$ac_exeext
4665 ac_cv_lib_zzip_zzip_file_open=yes
4667 $as_echo "$as_me: failed program was:" >&5
4668 sed 's/^/| /' conftest.$ac_ext >&5
4670 ac_cv_lib_zzip_zzip_file_open=no
4673 rm -rf conftest.dSYM
4674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4675 conftest$ac_exeext conftest.$ac_ext
4676 LIBS=$ac_check_lib_save_LIBS
4678 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_zzip_zzip_file_open" >&5
4679 $as_echo "$ac_cv_lib_zzip_zzip_file_open" >&6; }
4680 if test "x$ac_cv_lib_zzip_zzip_file_open" = x""yes; then
4681 cat >>confdefs.h <<_ACEOF
4682 #define HAVE_LIBZZIP 1
4693 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4694 $as_echo_n "checking for byte order... " >&6; }
4695 if test "$cross_compiling" = yes; then
4698 cat >conftest.$ac_ext <<_ACEOF
4701 cat confdefs.h >>conftest.$ac_ext
4702 cat >>conftest.$ac_ext <<_ACEOF
4703 /* end confdefs.h. */
4705 int main (int argc, char *argv[])
4712 rm -f conftest$ac_exeext
4713 if { (ac_try="$ac_link"
4715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4716 *) ac_try_echo=$ac_try;;
4718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4719 $as_echo "$ac_try_echo") >&5
4720 (eval "$ac_link") 2>&5
4722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4724 { (case "(($ac_try" in
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4729 $as_echo "$ac_try_echo") >&5
4730 (eval "$ac_try") 2>&5
4732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); }; }; then
4736 $as_echo "$as_me: program exited with status $ac_status" >&5
4737 $as_echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4743 rm -rf conftest.dSYM
4744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4750 if test "x${CROSSCOMPILE}" = "x1"; then
4751 { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4752 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4753 { $as_echo "$as_me:$LINENO: checking target system type" >&5
4754 $as_echo_n "checking target system type... " >&6; }
4755 if test "${ac_cv_target+set}" = set; then
4756 $as_echo_n "(cached) " >&6
4758 if test "x$target_alias" = x; then
4759 ac_cv_target=$ac_cv_host
4761 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4762 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4763 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4764 { (exit 1); exit 1; }; }
4768 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4769 $as_echo "$ac_cv_target" >&6; }
4770 case $ac_cv_target in
4772 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4773 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4774 { (exit 1); exit 1; }; };;
4776 target=$ac_cv_target
4777 ac_save_IFS=$IFS; IFS='-'
4783 # Remember, the first character of IFS is used to create $*,
4784 # except with old shells:
4787 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4790 # The aliases save the names the user supplied, while $host etc.
4791 # will get canonicalized.
4792 test -n "$target_alias" &&
4793 test "$program_prefix$program_suffix$program_transform_name" = \
4795 program_prefix=${target_alias}-
4796 { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4797 $as_echo_n "checking for byte order, try 2... " >&6; }
4802 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4809 if test "x${LITTLEENDIAN}" = "x1"; then
4810 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4811 $as_echo "little endian" >&6; }
4815 if test "x${BIGENDIAN}" = "x1"; then
4816 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4817 $as_echo "big endian" >&6; }
4820 export WORDS_BIGENDIAN
4822 cat >>confdefs.h <<\_ACEOF
4823 #define WORDS_BIGENDIAN 1
4827 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4828 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4829 $as_echo "unknown" >&6; }
4830 echo Byte order could not determined.
4836 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4837 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4838 if test "$cross_compiling" = yes; then
4841 cat >conftest.$ac_ext <<_ACEOF
4844 cat confdefs.h >>conftest.$ac_ext
4845 cat >>conftest.$ac_ext <<_ACEOF
4846 /* end confdefs.h. */
4849 int main (int argc, char*argv[])
4851 return system("test `touch config.tmp2`");
4855 rm -f conftest$ac_exeext
4856 if { (ac_try="$ac_link"
4858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4859 *) ac_try_echo=$ac_try;;
4861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4862 $as_echo "$ac_try_echo") >&5
4863 (eval "$ac_link") 2>&5
4865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4867 { (case "(($ac_try" in
4868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4869 *) ac_try_echo=$ac_try;;
4871 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4872 $as_echo "$ac_try_echo") >&5
4873 (eval "$ac_try") 2>&5
4875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4879 $as_echo "$as_me: program exited with status $ac_status" >&5
4880 $as_echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4884 rm -rf conftest.dSYM
4885 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4890 if test "x${OK}" = "xOK";then
4891 test -f config.tmp2 || OK=
4894 if test "x${CROSSCOMPILE}" = "x1";then
4897 if test "x${OK}" = "xOK";then
4899 { $as_echo "$as_me:$LINENO: result: yes" >&5
4900 $as_echo "yes" >&6; }
4902 export SYSTEM_BACKTICKS
4904 cat >>confdefs.h <<\_ACEOF
4905 #define SYSTEM_BACKTICKS 1
4909 { $as_echo "$as_me:$LINENO: result: no" >&5
4910 $as_echo "no" >&6; }
4915 test "$program_prefix" != NONE &&
4916 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4917 # Use a double $ so make ignores it.
4918 test "$program_suffix" != NONE &&
4919 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4920 # Double any \ or $.
4921 # By default was `s,x,x', remove it if useless.
4922 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4923 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4926 ac_config_headers="$ac_config_headers config.h"
4934 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4935 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4936 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4937 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4939 $as_echo_n "(cached) " >&6
4941 cat >conftest.$ac_ext <<_ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4947 #include <sys/types.h>
4959 rm -f conftest.$ac_objext
4960 if { (ac_try="$ac_compile"
4962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4963 *) ac_try_echo=$ac_try;;
4965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4966 $as_echo "$ac_try_echo") >&5
4967 (eval "$ac_compile") 2>conftest.er1
4969 grep -v '^ *+' conftest.er1 >conftest.err
4971 cat conftest.err >&5
4972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } && {
4974 test -z "$ac_c_werror_flag" ||
4975 test ! -s conftest.err
4976 } && test -s conftest.$ac_objext; then
4977 eval "$as_ac_Header=yes"
4979 $as_echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4982 eval "$as_ac_Header=no"
4985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 ac_res=`eval 'as_val=${'$as_ac_Header'}
4988 $as_echo "$as_val"'`
4989 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4990 $as_echo "$ac_res" >&6; }
4991 as_val=`eval 'as_val=${'$as_ac_Header'}
4992 $as_echo "$as_val"'`
4993 if test "x$as_val" = x""yes; then
4994 cat >>confdefs.h <<_ACEOF
4995 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4998 ac_header_dirent=$ac_hdr; break
5002 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5003 if test $ac_header_dirent = dirent.h; then
5004 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5005 $as_echo_n "checking for library containing opendir... " >&6; }
5006 if test "${ac_cv_search_opendir+set}" = set; then
5007 $as_echo_n "(cached) " >&6
5009 ac_func_search_save_LIBS=$LIBS
5010 cat >conftest.$ac_ext <<_ACEOF
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5017 /* Override any GCC internal prototype to avoid an error.
5018 Use char because int might match the return type of a GCC
5019 builtin and then its argument prototype would still apply. */
5032 for ac_lib in '' dir; do
5033 if test -z "$ac_lib"; then
5034 ac_res="none required"
5037 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5039 rm -f conftest.$ac_objext conftest$ac_exeext
5040 if { (ac_try="$ac_link"
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5046 $as_echo "$ac_try_echo") >&5
5047 (eval "$ac_link") 2>conftest.er1
5049 grep -v '^ *+' conftest.er1 >conftest.err
5051 cat conftest.err >&5
5052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && {
5054 test -z "$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5056 } && test -s conftest$ac_exeext && {
5057 test "$cross_compiling" = yes ||
5058 $as_test_x conftest$ac_exeext
5060 ac_cv_search_opendir=$ac_res
5062 $as_echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5068 rm -rf conftest.dSYM
5069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5071 if test "${ac_cv_search_opendir+set}" = set; then
5075 if test "${ac_cv_search_opendir+set}" = set; then
5078 ac_cv_search_opendir=no
5081 LIBS=$ac_func_search_save_LIBS
5083 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5084 $as_echo "$ac_cv_search_opendir" >&6; }
5085 ac_res=$ac_cv_search_opendir
5086 if test "$ac_res" != no; then
5087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5092 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
5093 $as_echo_n "checking for library containing opendir... " >&6; }
5094 if test "${ac_cv_search_opendir+set}" = set; then
5095 $as_echo_n "(cached) " >&6
5097 ac_func_search_save_LIBS=$LIBS
5098 cat >conftest.$ac_ext <<_ACEOF
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5105 /* Override any GCC internal prototype to avoid an error.
5106 Use char because int might match the return type of a GCC
5107 builtin and then its argument prototype would still apply. */
5120 for ac_lib in '' x; do
5121 if test -z "$ac_lib"; then
5122 ac_res="none required"
5125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5127 rm -f conftest.$ac_objext conftest$ac_exeext
5128 if { (ac_try="$ac_link"
5130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5131 *) ac_try_echo=$ac_try;;
5133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5134 $as_echo "$ac_try_echo") >&5
5135 (eval "$ac_link") 2>conftest.er1
5137 grep -v '^ *+' conftest.er1 >conftest.err
5139 cat conftest.err >&5
5140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && {
5142 test -z "$ac_c_werror_flag" ||
5143 test ! -s conftest.err
5144 } && test -s conftest$ac_exeext && {
5145 test "$cross_compiling" = yes ||
5146 $as_test_x conftest$ac_exeext
5148 ac_cv_search_opendir=$ac_res
5150 $as_echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5156 rm -rf conftest.dSYM
5157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5159 if test "${ac_cv_search_opendir+set}" = set; then
5163 if test "${ac_cv_search_opendir+set}" = set; then
5166 ac_cv_search_opendir=no
5169 LIBS=$ac_func_search_save_LIBS
5171 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5172 $as_echo "$ac_cv_search_opendir" >&6; }
5173 ac_res=$ac_cv_search_opendir
5174 if test "$ac_res" != no; then
5175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5182 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5183 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5184 if test "${ac_cv_path_GREP+set}" = set; then
5185 $as_echo_n "(cached) " >&6
5187 if test -z "$GREP"; then
5188 ac_path_GREP_found=false
5189 # Loop through the user's path and test for each of PROGNAME-LIST
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5194 test -z "$as_dir" && as_dir=.
5195 for ac_prog in grep ggrep; do
5196 for ac_exec_ext in '' $ac_executable_extensions; do
5197 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5198 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5199 # Check for GNU ac_path_GREP and select it if it is found.
5200 # Check for GNU $ac_path_GREP
5201 case `"$ac_path_GREP" --version 2>&1` in
5203 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5206 $as_echo_n 0123456789 >"conftest.in"
5209 cat "conftest.in" "conftest.in" >"conftest.tmp"
5210 mv "conftest.tmp" "conftest.in"
5211 cp "conftest.in" "conftest.nl"
5212 $as_echo 'GREP' >> "conftest.nl"
5213 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5215 ac_count=`expr $ac_count + 1`
5216 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5217 # Best one so far, save it but keep looking for a better one
5218 ac_cv_path_GREP="$ac_path_GREP"
5219 ac_path_GREP_max=$ac_count
5221 # 10*(2^10) chars as input seems more than enough
5222 test $ac_count -gt 10 && break
5224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5227 $ac_path_GREP_found && break 3
5232 if test -z "$ac_cv_path_GREP"; then
5233 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5234 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5235 { (exit 1); exit 1; }; }
5238 ac_cv_path_GREP=$GREP
5242 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5243 $as_echo "$ac_cv_path_GREP" >&6; }
5244 GREP="$ac_cv_path_GREP"
5247 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5248 $as_echo_n "checking for egrep... " >&6; }
5249 if test "${ac_cv_path_EGREP+set}" = set; then
5250 $as_echo_n "(cached) " >&6
5252 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5253 then ac_cv_path_EGREP="$GREP -E"
5255 if test -z "$EGREP"; then
5256 ac_path_EGREP_found=false
5257 # Loop through the user's path and test for each of PROGNAME-LIST
5258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5259 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5262 test -z "$as_dir" && as_dir=.
5263 for ac_prog in egrep; do
5264 for ac_exec_ext in '' $ac_executable_extensions; do
5265 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5266 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5267 # Check for GNU ac_path_EGREP and select it if it is found.
5268 # Check for GNU $ac_path_EGREP
5269 case `"$ac_path_EGREP" --version 2>&1` in
5271 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5274 $as_echo_n 0123456789 >"conftest.in"
5277 cat "conftest.in" "conftest.in" >"conftest.tmp"
5278 mv "conftest.tmp" "conftest.in"
5279 cp "conftest.in" "conftest.nl"
5280 $as_echo 'EGREP' >> "conftest.nl"
5281 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5282 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5283 ac_count=`expr $ac_count + 1`
5284 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5285 # Best one so far, save it but keep looking for a better one
5286 ac_cv_path_EGREP="$ac_path_EGREP"
5287 ac_path_EGREP_max=$ac_count
5289 # 10*(2^10) chars as input seems more than enough
5290 test $ac_count -gt 10 && break
5292 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5295 $ac_path_EGREP_found && break 3
5300 if test -z "$ac_cv_path_EGREP"; then
5301 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5302 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5303 { (exit 1); exit 1; }; }
5306 ac_cv_path_EGREP=$EGREP
5311 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5312 $as_echo "$ac_cv_path_EGREP" >&6; }
5313 EGREP="$ac_cv_path_EGREP"
5316 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5317 $as_echo_n "checking for ANSI C header files... " >&6; }
5318 if test "${ac_cv_header_stdc+set}" = set; then
5319 $as_echo_n "(cached) " >&6
5321 cat >conftest.$ac_ext <<_ACEOF
5324 cat confdefs.h >>conftest.$ac_ext
5325 cat >>conftest.$ac_ext <<_ACEOF
5326 /* end confdefs.h. */
5340 rm -f conftest.$ac_objext
5341 if { (ac_try="$ac_compile"
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5347 $as_echo "$ac_try_echo") >&5
5348 (eval "$ac_compile") 2>conftest.er1
5350 grep -v '^ *+' conftest.er1 >conftest.err
5352 cat conftest.err >&5
5353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354 (exit $ac_status); } && {
5355 test -z "$ac_c_werror_flag" ||
5356 test ! -s conftest.err
5357 } && test -s conftest.$ac_objext; then
5358 ac_cv_header_stdc=yes
5360 $as_echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5363 ac_cv_header_stdc=no
5366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368 if test $ac_cv_header_stdc = yes; then
5369 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5370 cat >conftest.$ac_ext <<_ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h. */
5379 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5380 $EGREP "memchr" >/dev/null 2>&1; then
5383 ac_cv_header_stdc=no
5389 if test $ac_cv_header_stdc = yes; then
5390 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5391 cat >conftest.$ac_ext <<_ACEOF
5394 cat confdefs.h >>conftest.$ac_ext
5395 cat >>conftest.$ac_ext <<_ACEOF
5396 /* end confdefs.h. */
5400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5401 $EGREP "free" >/dev/null 2>&1; then
5404 ac_cv_header_stdc=no
5410 if test $ac_cv_header_stdc = yes; then
5411 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5412 if test "$cross_compiling" = yes; then
5415 cat >conftest.$ac_ext <<_ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5423 #if ((' ' & 0x0FF) == 0x020)
5424 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5425 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5427 # define ISLOWER(c) \
5428 (('a' <= (c) && (c) <= 'i') \
5429 || ('j' <= (c) && (c) <= 'r') \
5430 || ('s' <= (c) && (c) <= 'z'))
5431 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5434 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5439 for (i = 0; i < 256; i++)
5440 if (XOR (islower (i), ISLOWER (i))
5441 || toupper (i) != TOUPPER (i))
5446 rm -f conftest$ac_exeext
5447 if { (ac_try="$ac_link"
5449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5450 *) ac_try_echo=$ac_try;;
5452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5453 $as_echo "$ac_try_echo") >&5
5454 (eval "$ac_link") 2>&5
5456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5458 { (case "(($ac_try" in
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5463 $as_echo "$ac_try_echo") >&5
5464 (eval "$ac_try") 2>&5
5466 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; }; then
5470 $as_echo "$as_me: program exited with status $ac_status" >&5
5471 $as_echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5475 ac_cv_header_stdc=no
5477 rm -rf conftest.dSYM
5478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5484 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5485 $as_echo "$ac_cv_header_stdc" >&6; }
5486 if test $ac_cv_header_stdc = yes; then
5488 cat >>confdefs.h <<\_ACEOF
5489 #define STDC_HEADERS 1
5495 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5505 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5506 inttypes.h stdint.h unistd.h
5508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5509 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5510 $as_echo_n "checking for $ac_header... " >&6; }
5511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5512 $as_echo_n "(cached) " >&6
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5520 $ac_includes_default
5522 #include <$ac_header>
5524 rm -f conftest.$ac_objext
5525 if { (ac_try="$ac_compile"
5527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5528 *) ac_try_echo=$ac_try;;
5530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5531 $as_echo "$ac_try_echo") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } && {
5539 test -z "$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5541 } && test -s conftest.$ac_objext; then
5542 eval "$as_ac_Header=yes"
5544 $as_echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5547 eval "$as_ac_Header=no"
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 ac_res=`eval 'as_val=${'$as_ac_Header'}
5553 $as_echo "$as_val"'`
5554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5555 $as_echo "$ac_res" >&6; }
5556 as_val=`eval 'as_val=${'$as_ac_Header'}
5557 $as_echo "$as_val"'`
5558 if test "x$as_val" = x""yes; then
5559 cat >>confdefs.h <<_ACEOF
5560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5589 for ac_header in zlib.h gif_lib.h io.h wchar.h jpeglib.h assert.h signal.h pthread.h sys/stat.h sys/mman.h sys/types.h dirent.h sys/bsdtypes.h sys/ndir.h sys/dir.h ndir.h time.h sys/time.h sys/resource.h pdflib.h zzip/lib.h
5591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5593 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5594 $as_echo_n "checking for $ac_header... " >&6; }
5595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5596 $as_echo_n "(cached) " >&6
5598 ac_res=`eval 'as_val=${'$as_ac_Header'}
5599 $as_echo "$as_val"'`
5600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5601 $as_echo "$ac_res" >&6; }
5603 # Is the header compilable?
5604 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5605 $as_echo_n "checking $ac_header usability... " >&6; }
5606 cat >conftest.$ac_ext <<_ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5612 $ac_includes_default
5613 #include <$ac_header>
5615 rm -f conftest.$ac_objext
5616 if { (ac_try="$ac_compile"
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5621 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5622 $as_echo "$ac_try_echo") >&5
5623 (eval "$ac_compile") 2>conftest.er1
5625 grep -v '^ *+' conftest.er1 >conftest.err
5627 cat conftest.err >&5
5628 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); } && {
5630 test -z "$ac_c_werror_flag" ||
5631 test ! -s conftest.err
5632 } && test -s conftest.$ac_objext; then
5633 ac_header_compiler=yes
5635 $as_echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5638 ac_header_compiler=no
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5643 $as_echo "$ac_header_compiler" >&6; }
5645 # Is the header present?
5646 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5647 $as_echo_n "checking $ac_header presence... " >&6; }
5648 cat >conftest.$ac_ext <<_ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <$ac_header>
5656 if { (ac_try="$ac_cpp conftest.$ac_ext"
5658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659 *) ac_try_echo=$ac_try;;
5661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5662 $as_echo "$ac_try_echo") >&5
5663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5665 grep -v '^ *+' conftest.er1 >conftest.err
5667 cat conftest.err >&5
5668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } >/dev/null && {
5670 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5673 ac_header_preproc=yes
5675 $as_echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5678 ac_header_preproc=no
5681 rm -f conftest.err conftest.$ac_ext
5682 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5683 $as_echo "$ac_header_preproc" >&6; }
5685 # So? What about this header?
5686 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5689 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5691 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5692 ac_header_preproc=yes
5695 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5696 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5698 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5700 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5702 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5704 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5706 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5710 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5711 $as_echo_n "checking for $ac_header... " >&6; }
5712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5713 $as_echo_n "(cached) " >&6
5715 eval "$as_ac_Header=\$ac_header_preproc"
5717 ac_res=`eval 'as_val=${'$as_ac_Header'}
5718 $as_echo "$as_val"'`
5719 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5720 $as_echo "$ac_res" >&6; }
5723 as_val=`eval 'as_val=${'$as_ac_Header'}
5724 $as_echo "$as_val"'`
5725 if test "x$as_val" = x""yes; then
5726 cat >>confdefs.h <<_ACEOF
5727 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5736 cat >>confdefs.h <<_ACEOF
5737 #define PACKAGE "$PACKAGE"
5741 cat >>confdefs.h <<_ACEOF
5742 #define VERSION "$VERSION"
5751 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5752 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5753 if test "${ac_cv_c_const+set}" = set; then
5754 $as_echo_n "(cached) " >&6
5756 cat >conftest.$ac_ext <<_ACEOF
5759 cat confdefs.h >>conftest.$ac_ext
5760 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */
5766 /* FIXME: Include the comments suggested by Paul. */
5768 /* Ultrix mips cc rejects this. */
5769 typedef int charset[2];
5771 /* SunOS 4.1.1 cc rejects this. */
5772 char const *const *pcpcc;
5774 /* NEC SVR4.0.2 mips cc rejects this. */
5775 struct point {int x, y;};
5776 static struct point const zero = {0,0};
5777 /* AIX XL C 1.02.0.0 rejects this.
5778 It does not let you subtract one const X* pointer from another in
5779 an arm of an if-expression whose if-part is not a constant
5781 const char *g = "string";
5782 pcpcc = &g + (g ? g-g : 0);
5783 /* HPUX 7.0 cc rejects these. */
5785 ppc = (char**) pcpcc;
5786 pcpcc = (char const *const *) ppc;
5787 { /* SCO 3.2v4 cc rejects this. */
5789 char const *s = 0 ? (char *) 0 : (char const *) 0;
5794 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5796 const int *foo = &x[0];
5799 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5800 typedef const int *iptr;
5804 { /* AIX XL C 1.02.0.0 rejects this saying
5805 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5806 struct s { int j; const int *ap[3]; };
5807 struct s *b; b->j = 5;
5809 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5813 return !cs[0] && !zero.x;
5820 rm -f conftest.$ac_objext
5821 if { (ac_try="$ac_compile"
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5827 $as_echo "$ac_try_echo") >&5
5828 (eval "$ac_compile") 2>conftest.er1
5830 grep -v '^ *+' conftest.er1 >conftest.err
5832 cat conftest.err >&5
5833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } && {
5835 test -z "$ac_c_werror_flag" ||
5836 test ! -s conftest.err
5837 } && test -s conftest.$ac_objext; then
5840 $as_echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5848 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5849 $as_echo "$ac_cv_c_const" >&6; }
5850 if test $ac_cv_c_const = no; then
5852 cat >>confdefs.h <<\_ACEOF
5858 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5859 $as_echo_n "checking for inline... " >&6; }
5860 if test "${ac_cv_c_inline+set}" = set; then
5861 $as_echo_n "(cached) " >&6
5864 for ac_kw in inline __inline__ __inline; do
5865 cat >conftest.$ac_ext <<_ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5873 static $ac_kw foo_t static_foo () {return 0; }
5874 $ac_kw foo_t foo () {return 0; }
5878 rm -f conftest.$ac_objext
5879 if { (ac_try="$ac_compile"
5881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5882 *) ac_try_echo=$ac_try;;
5884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5885 $as_echo "$ac_try_echo") >&5
5886 (eval "$ac_compile") 2>conftest.er1
5888 grep -v '^ *+' conftest.er1 >conftest.err
5890 cat conftest.err >&5
5891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest.$ac_objext; then
5896 ac_cv_c_inline=$ac_kw
5898 $as_echo "$as_me: failed program was:" >&5
5899 sed 's/^/| /' conftest.$ac_ext >&5
5904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5905 test "$ac_cv_c_inline" != no && break
5909 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5910 $as_echo "$ac_cv_c_inline" >&6; }
5913 case $ac_cv_c_inline in
5916 case $ac_cv_c_inline in
5918 *) ac_val=$ac_cv_c_inline;;
5920 cat >>confdefs.h <<_ACEOF
5922 #define inline $ac_val
5928 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5929 $as_echo_n "checking for off_t... " >&6; }
5930 if test "${ac_cv_type_off_t+set}" = set; then
5931 $as_echo_n "(cached) " >&6
5934 cat >conftest.$ac_ext <<_ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 $ac_includes_default
5950 rm -f conftest.$ac_objext
5951 if { (ac_try="$ac_compile"
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5957 $as_echo "$ac_try_echo") >&5
5958 (eval "$ac_compile") 2>conftest.er1
5960 grep -v '^ *+' conftest.er1 >conftest.err
5962 cat conftest.err >&5
5963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } && {
5965 test -z "$ac_c_werror_flag" ||
5966 test ! -s conftest.err
5967 } && test -s conftest.$ac_objext; then
5968 cat >conftest.$ac_ext <<_ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974 $ac_includes_default
5978 if (sizeof ((off_t)))
5984 rm -f conftest.$ac_objext
5985 if { (ac_try="$ac_compile"
5987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5988 *) ac_try_echo=$ac_try;;
5990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5991 $as_echo "$ac_try_echo") >&5
5992 (eval "$ac_compile") 2>conftest.er1
5994 grep -v '^ *+' conftest.er1 >conftest.err
5996 cat conftest.err >&5
5997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5998 (exit $ac_status); } && {
5999 test -z "$ac_c_werror_flag" ||
6000 test ! -s conftest.err
6001 } && test -s conftest.$ac_objext; then
6004 $as_echo "$as_me: failed program was:" >&5
6005 sed 's/^/| /' conftest.$ac_ext >&5
6007 ac_cv_type_off_t=yes
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 $as_echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6020 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6021 $as_echo "$ac_cv_type_off_t" >&6; }
6022 if test "x$ac_cv_type_off_t" = x""yes; then
6026 cat >>confdefs.h <<_ACEOF
6027 #define off_t long int
6032 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
6033 $as_echo_n "checking for size_t... " >&6; }
6034 if test "${ac_cv_type_size_t+set}" = set; then
6035 $as_echo_n "(cached) " >&6
6037 ac_cv_type_size_t=no
6038 cat >conftest.$ac_ext <<_ACEOF
6041 cat confdefs.h >>conftest.$ac_ext
6042 cat >>conftest.$ac_ext <<_ACEOF
6043 /* end confdefs.h. */
6044 $ac_includes_default
6048 if (sizeof (size_t))
6054 rm -f conftest.$ac_objext
6055 if { (ac_try="$ac_compile"
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6061 $as_echo "$ac_try_echo") >&5
6062 (eval "$ac_compile") 2>conftest.er1
6064 grep -v '^ *+' conftest.er1 >conftest.err
6066 cat conftest.err >&5
6067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && {
6069 test -z "$ac_c_werror_flag" ||
6070 test ! -s conftest.err
6071 } && test -s conftest.$ac_objext; then
6072 cat >conftest.$ac_ext <<_ACEOF
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6078 $ac_includes_default
6082 if (sizeof ((size_t)))
6088 rm -f conftest.$ac_objext
6089 if { (ac_try="$ac_compile"
6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092 *) ac_try_echo=$ac_try;;
6094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6095 $as_echo "$ac_try_echo") >&5
6096 (eval "$ac_compile") 2>conftest.er1
6098 grep -v '^ *+' conftest.er1 >conftest.err
6100 cat conftest.err >&5
6101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } && {
6103 test -z "$ac_c_werror_flag" ||
6104 test ! -s conftest.err
6105 } && test -s conftest.$ac_objext; then
6108 $as_echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.$ac_ext >&5
6111 ac_cv_type_size_t=yes
6114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116 $as_echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6124 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6125 $as_echo "$ac_cv_type_size_t" >&6; }
6126 if test "x$ac_cv_type_size_t" = x""yes; then
6130 cat >>confdefs.h <<_ACEOF
6131 #define size_t unsigned int
6136 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6137 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6138 if test "${ac_cv_struct_tm+set}" = set; then
6139 $as_echo_n "(cached) " >&6
6141 cat >conftest.$ac_ext <<_ACEOF
6144 cat confdefs.h >>conftest.$ac_ext
6145 cat >>conftest.$ac_ext <<_ACEOF
6146 /* end confdefs.h. */
6147 #include <sys/types.h>
6154 int *p = &tm.tm_sec;
6160 rm -f conftest.$ac_objext
6161 if { (ac_try="$ac_compile"
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6167 $as_echo "$ac_try_echo") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6170 grep -v '^ *+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
6178 ac_cv_struct_tm=time.h
6180 $as_echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6183 ac_cv_struct_tm=sys/time.h
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6188 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6189 $as_echo "$ac_cv_struct_tm" >&6; }
6190 if test $ac_cv_struct_tm = sys/time.h; then
6192 cat >>confdefs.h <<\_ACEOF
6193 #define TM_IN_SYS_TIME 1
6198 { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6199 $as_echo_n "checking for boolean... " >&6; }
6200 if test "${ac_cv_type_boolean+set}" = set; then
6201 $as_echo_n "(cached) " >&6
6203 ac_cv_type_boolean=no
6204 cat >conftest.$ac_ext <<_ACEOF
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 $ac_includes_default
6214 if (sizeof (boolean))
6220 rm -f conftest.$ac_objext
6221 if { (ac_try="$ac_compile"
6223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6224 *) ac_try_echo=$ac_try;;
6226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6227 $as_echo "$ac_try_echo") >&5
6228 (eval "$ac_compile") 2>conftest.er1
6230 grep -v '^ *+' conftest.er1 >conftest.err
6232 cat conftest.err >&5
6233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6234 (exit $ac_status); } && {
6235 test -z "$ac_c_werror_flag" ||
6236 test ! -s conftest.err
6237 } && test -s conftest.$ac_objext; then
6238 cat >conftest.$ac_ext <<_ACEOF
6241 cat confdefs.h >>conftest.$ac_ext
6242 cat >>conftest.$ac_ext <<_ACEOF
6243 /* end confdefs.h. */
6244 $ac_includes_default
6248 if (sizeof ((boolean)))
6254 rm -f conftest.$ac_objext
6255 if { (ac_try="$ac_compile"
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6261 $as_echo "$ac_try_echo") >&5
6262 (eval "$ac_compile") 2>conftest.er1
6264 grep -v '^ *+' conftest.er1 >conftest.err
6266 cat conftest.err >&5
6267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } && {
6269 test -z "$ac_c_werror_flag" ||
6270 test ! -s conftest.err
6271 } && test -s conftest.$ac_objext; then
6274 $as_echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6277 ac_cv_type_boolean=yes
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 $as_echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6290 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6291 $as_echo "$ac_cv_type_boolean" >&6; }
6292 if test "x$ac_cv_type_boolean" = x""yes; then
6296 cat >>confdefs.h <<_ACEOF
6317 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6320 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6321 $as_echo_n "checking for $ac_func... " >&6; }
6322 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6323 $as_echo_n "(cached) " >&6
6325 cat >conftest.$ac_ext <<_ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6333 #define $ac_func innocuous_$ac_func
6335 /* System header to define __stub macros and hopefully few prototypes,
6336 which can conflict with char $ac_func (); below.
6337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6338 <limits.h> exists even on freestanding compilers. */
6341 # include <limits.h>
6343 # include <assert.h>
6348 /* Override any GCC internal prototype to avoid an error.
6349 Use char because int might match the return type of a GCC
6350 builtin and then its argument prototype would still apply. */
6355 /* The GNU C library defines this for functions which it implements
6356 to always fail with ENOSYS. Some functions are actually named
6357 something starting with __ and the normal name is an alias. */
6358 #if defined __stub_$ac_func || defined __stub___$ac_func
6370 rm -f conftest.$ac_objext conftest$ac_exeext
6371 if { (ac_try="$ac_link"
6373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6374 *) ac_try_echo=$ac_try;;
6376 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6377 $as_echo "$ac_try_echo") >&5
6378 (eval "$ac_link") 2>conftest.er1
6380 grep -v '^ *+' conftest.er1 >conftest.err
6382 cat conftest.err >&5
6383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } && {
6385 test -z "$ac_c_werror_flag" ||
6386 test ! -s conftest.err
6387 } && test -s conftest$ac_exeext && {
6388 test "$cross_compiling" = yes ||
6389 $as_test_x conftest$ac_exeext
6391 eval "$as_ac_var=yes"
6393 $as_echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6396 eval "$as_ac_var=no"
6399 rm -rf conftest.dSYM
6400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6401 conftest$ac_exeext conftest.$ac_ext
6403 ac_res=`eval 'as_val=${'$as_ac_var'}
6404 $as_echo "$as_val"'`
6405 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6406 $as_echo "$ac_res" >&6; }
6407 as_val=`eval 'as_val=${'$as_ac_var'}
6408 $as_echo "$as_val"'`
6409 if test "x$as_val" = x""yes; then
6410 cat >>confdefs.h <<_ACEOF
6411 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6418 # The cast to long int works around a bug in the HP C Compiler
6419 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6420 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6421 # This bug is HP SR number 8606223364.
6422 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6423 $as_echo_n "checking size of signed char... " >&6; }
6424 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6425 $as_echo_n "(cached) " >&6
6427 if test "$cross_compiling" = yes; then
6428 # Depending upon the size, compute the lo and hi bounds.
6429 cat >conftest.$ac_ext <<_ACEOF
6432 cat confdefs.h >>conftest.$ac_ext
6433 cat >>conftest.$ac_ext <<_ACEOF
6434 /* end confdefs.h. */
6435 $ac_includes_default
6439 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];
6446 rm -f conftest.$ac_objext
6447 if { (ac_try="$ac_compile"
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6453 $as_echo "$ac_try_echo") >&5
6454 (eval "$ac_compile") 2>conftest.er1
6456 grep -v '^ *+' conftest.er1 >conftest.err
6458 cat conftest.err >&5
6459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6460 (exit $ac_status); } && {
6461 test -z "$ac_c_werror_flag" ||
6462 test ! -s conftest.err
6463 } && test -s conftest.$ac_objext; then
6466 cat >conftest.$ac_ext <<_ACEOF
6469 cat confdefs.h >>conftest.$ac_ext
6470 cat >>conftest.$ac_ext <<_ACEOF
6471 /* end confdefs.h. */
6472 $ac_includes_default
6476 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6483 rm -f conftest.$ac_objext
6484 if { (ac_try="$ac_compile"
6486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6487 *) ac_try_echo=$ac_try;;
6489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6490 $as_echo "$ac_try_echo") >&5
6491 (eval "$ac_compile") 2>conftest.er1
6493 grep -v '^ *+' conftest.er1 >conftest.err
6495 cat conftest.err >&5
6496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); } && {
6498 test -z "$ac_c_werror_flag" ||
6499 test ! -s conftest.err
6500 } && test -s conftest.$ac_objext; then
6501 ac_hi=$ac_mid; break
6503 $as_echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6506 ac_lo=`expr $ac_mid + 1`
6507 if test $ac_lo -le $ac_mid; then
6511 ac_mid=`expr 2 '*' $ac_mid + 1`
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6517 $as_echo "$as_me: failed program was:" >&5
6518 sed 's/^/| /' conftest.$ac_ext >&5
6520 cat >conftest.$ac_ext <<_ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 $ac_includes_default
6530 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6544 $as_echo "$ac_try_echo") >&5
6545 (eval "$ac_compile") 2>conftest.er1
6547 grep -v '^ *+' conftest.er1 >conftest.err
6549 cat conftest.err >&5
6550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551 (exit $ac_status); } && {
6552 test -z "$ac_c_werror_flag" ||
6553 test ! -s conftest.err
6554 } && test -s conftest.$ac_objext; then
6557 cat >conftest.$ac_ext <<_ACEOF
6560 cat confdefs.h >>conftest.$ac_ext
6561 cat >>conftest.$ac_ext <<_ACEOF
6562 /* end confdefs.h. */
6563 $ac_includes_default
6567 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6574 rm -f conftest.$ac_objext
6575 if { (ac_try="$ac_compile"
6577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6578 *) ac_try_echo=$ac_try;;
6580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6581 $as_echo "$ac_try_echo") >&5
6582 (eval "$ac_compile") 2>conftest.er1
6584 grep -v '^ *+' conftest.er1 >conftest.err
6586 cat conftest.err >&5
6587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); } && {
6589 test -z "$ac_c_werror_flag" ||
6590 test ! -s conftest.err
6591 } && test -s conftest.$ac_objext; then
6592 ac_lo=$ac_mid; break
6594 $as_echo "$as_me: failed program was:" >&5
6595 sed 's/^/| /' conftest.$ac_ext >&5
6597 ac_hi=`expr '(' $ac_mid ')' - 1`
6598 if test $ac_mid -le $ac_hi; then
6602 ac_mid=`expr 2 '*' $ac_mid`
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 $as_echo "$as_me: failed program was:" >&5
6609 sed 's/^/| /' conftest.$ac_ext >&5
6614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6618 # Binary search between lo and hi bounds.
6619 while test "x$ac_lo" != "x$ac_hi"; do
6620 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6621 cat >conftest.$ac_ext <<_ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 $ac_includes_default
6631 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6638 rm -f conftest.$ac_objext
6639 if { (ac_try="$ac_compile"
6641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6642 *) ac_try_echo=$ac_try;;
6644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6645 $as_echo "$ac_try_echo") >&5
6646 (eval "$ac_compile") 2>conftest.er1
6648 grep -v '^ *+' conftest.er1 >conftest.err
6650 cat conftest.err >&5
6651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && {
6653 test -z "$ac_c_werror_flag" ||
6654 test ! -s conftest.err
6655 } && test -s conftest.$ac_objext; then
6658 $as_echo "$as_me: failed program was:" >&5
6659 sed 's/^/| /' conftest.$ac_ext >&5
6661 ac_lo=`expr '(' $ac_mid ')' + 1`
6664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6667 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6668 '') if test "$ac_cv_type_signed_char" = yes; then
6669 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6671 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6672 See \`config.log' for more details." >&5
6673 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6674 See \`config.log' for more details." >&2;}
6675 { (exit 77); exit 77; }; }; }
6677 ac_cv_sizeof_signed_char=0
6681 cat >conftest.$ac_ext <<_ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 $ac_includes_default
6688 static long int longval () { return (long int) (sizeof (signed char)); }
6689 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6696 FILE *f = fopen ("conftest.val", "w");
6699 if (((long int) (sizeof (signed char))) < 0)
6701 long int i = longval ();
6702 if (i != ((long int) (sizeof (signed char))))
6704 fprintf (f, "%ld", i);
6708 unsigned long int i = ulongval ();
6709 if (i != ((long int) (sizeof (signed char))))
6711 fprintf (f, "%lu", i);
6713 /* Do not output a trailing newline, as this causes \r\n confusion
6714 on some platforms. */
6715 return ferror (f) || fclose (f) != 0;
6721 rm -f conftest$ac_exeext
6722 if { (ac_try="$ac_link"
6724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6725 *) ac_try_echo=$ac_try;;
6727 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6728 $as_echo "$ac_try_echo") >&5
6729 (eval "$ac_link") 2>&5
6731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6733 { (case "(($ac_try" in
6734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6735 *) ac_try_echo=$ac_try;;
6737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6738 $as_echo "$ac_try_echo") >&5
6739 (eval "$ac_try") 2>&5
6741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); }; }; then
6743 ac_cv_sizeof_signed_char=`cat conftest.val`
6745 $as_echo "$as_me: program exited with status $ac_status" >&5
6746 $as_echo "$as_me: failed program was:" >&5
6747 sed 's/^/| /' conftest.$ac_ext >&5
6750 if test "$ac_cv_type_signed_char" = yes; then
6751 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6753 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6754 See \`config.log' for more details." >&5
6755 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6756 See \`config.log' for more details." >&2;}
6757 { (exit 77); exit 77; }; }; }
6759 ac_cv_sizeof_signed_char=0
6762 rm -rf conftest.dSYM
6763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6767 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6768 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6772 cat >>confdefs.h <<_ACEOF
6773 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6777 # The cast to long int works around a bug in the HP C Compiler
6778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6780 # This bug is HP SR number 8606223364.
6781 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6782 $as_echo_n "checking size of signed short... " >&6; }
6783 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6784 $as_echo_n "(cached) " >&6
6786 if test "$cross_compiling" = yes; then
6787 # Depending upon the size, compute the lo and hi bounds.
6788 cat >conftest.$ac_ext <<_ACEOF
6791 cat confdefs.h >>conftest.$ac_ext
6792 cat >>conftest.$ac_ext <<_ACEOF
6793 /* end confdefs.h. */
6794 $ac_includes_default
6798 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6805 rm -f conftest.$ac_objext
6806 if { (ac_try="$ac_compile"
6808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6809 *) ac_try_echo=$ac_try;;
6811 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6812 $as_echo "$ac_try_echo") >&5
6813 (eval "$ac_compile") 2>conftest.er1
6815 grep -v '^ *+' conftest.er1 >conftest.err
6817 cat conftest.err >&5
6818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6819 (exit $ac_status); } && {
6820 test -z "$ac_c_werror_flag" ||
6821 test ! -s conftest.err
6822 } && test -s conftest.$ac_objext; then
6825 cat >conftest.$ac_ext <<_ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 $ac_includes_default
6835 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6842 rm -f conftest.$ac_objext
6843 if { (ac_try="$ac_compile"
6845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6846 *) ac_try_echo=$ac_try;;
6848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6849 $as_echo "$ac_try_echo") >&5
6850 (eval "$ac_compile") 2>conftest.er1
6852 grep -v '^ *+' conftest.er1 >conftest.err
6854 cat conftest.err >&5
6855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest.$ac_objext; then
6860 ac_hi=$ac_mid; break
6862 $as_echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6865 ac_lo=`expr $ac_mid + 1`
6866 if test $ac_lo -le $ac_mid; then
6870 ac_mid=`expr 2 '*' $ac_mid + 1`
6873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6876 $as_echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6879 cat >conftest.$ac_ext <<_ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 $ac_includes_default
6889 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6896 rm -f conftest.$ac_objext
6897 if { (ac_try="$ac_compile"
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6903 $as_echo "$ac_try_echo") >&5
6904 (eval "$ac_compile") 2>conftest.er1
6906 grep -v '^ *+' conftest.er1 >conftest.err
6908 cat conftest.err >&5
6909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.$ac_objext; then
6916 cat >conftest.$ac_ext <<_ACEOF
6919 cat confdefs.h >>conftest.$ac_ext
6920 cat >>conftest.$ac_ext <<_ACEOF
6921 /* end confdefs.h. */
6922 $ac_includes_default
6926 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6933 rm -f conftest.$ac_objext
6934 if { (ac_try="$ac_compile"
6936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937 *) ac_try_echo=$ac_try;;
6939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6940 $as_echo "$ac_try_echo") >&5
6941 (eval "$ac_compile") 2>conftest.er1
6943 grep -v '^ *+' conftest.er1 >conftest.err
6945 cat conftest.err >&5
6946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && {
6948 test -z "$ac_c_werror_flag" ||
6949 test ! -s conftest.err
6950 } && test -s conftest.$ac_objext; then
6951 ac_lo=$ac_mid; break
6953 $as_echo "$as_me: failed program was:" >&5
6954 sed 's/^/| /' conftest.$ac_ext >&5
6956 ac_hi=`expr '(' $ac_mid ')' - 1`
6957 if test $ac_mid -le $ac_hi; then
6961 ac_mid=`expr 2 '*' $ac_mid`
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6967 $as_echo "$as_me: failed program was:" >&5
6968 sed 's/^/| /' conftest.$ac_ext >&5
6973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 # Binary search between lo and hi bounds.
6978 while test "x$ac_lo" != "x$ac_hi"; do
6979 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6980 cat >conftest.$ac_ext <<_ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6986 $ac_includes_default
6990 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6997 rm -f conftest.$ac_objext
6998 if { (ac_try="$ac_compile"
7000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7001 *) ac_try_echo=$ac_try;;
7003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7004 $as_echo "$ac_try_echo") >&5
7005 (eval "$ac_compile") 2>conftest.er1
7007 grep -v '^ *+' conftest.er1 >conftest.err
7009 cat conftest.err >&5
7010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011 (exit $ac_status); } && {
7012 test -z "$ac_c_werror_flag" ||
7013 test ! -s conftest.err
7014 } && test -s conftest.$ac_objext; then
7017 $as_echo "$as_me: failed program was:" >&5
7018 sed 's/^/| /' conftest.$ac_ext >&5
7020 ac_lo=`expr '(' $ac_mid ')' + 1`
7023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7026 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
7027 '') if test "$ac_cv_type_signed_short" = yes; then
7028 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7030 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7031 See \`config.log' for more details." >&5
7032 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7033 See \`config.log' for more details." >&2;}
7034 { (exit 77); exit 77; }; }; }
7036 ac_cv_sizeof_signed_short=0
7040 cat >conftest.$ac_ext <<_ACEOF
7043 cat confdefs.h >>conftest.$ac_ext
7044 cat >>conftest.$ac_ext <<_ACEOF
7045 /* end confdefs.h. */
7046 $ac_includes_default
7047 static long int longval () { return (long int) (sizeof (signed short)); }
7048 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
7055 FILE *f = fopen ("conftest.val", "w");
7058 if (((long int) (sizeof (signed short))) < 0)
7060 long int i = longval ();
7061 if (i != ((long int) (sizeof (signed short))))
7063 fprintf (f, "%ld", i);
7067 unsigned long int i = ulongval ();
7068 if (i != ((long int) (sizeof (signed short))))
7070 fprintf (f, "%lu", i);
7072 /* Do not output a trailing newline, as this causes \r\n confusion
7073 on some platforms. */
7074 return ferror (f) || fclose (f) != 0;
7080 rm -f conftest$ac_exeext
7081 if { (ac_try="$ac_link"
7083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7084 *) ac_try_echo=$ac_try;;
7086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7087 $as_echo "$ac_try_echo") >&5
7088 (eval "$ac_link") 2>&5
7090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7092 { (case "(($ac_try" in
7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7097 $as_echo "$ac_try_echo") >&5
7098 (eval "$ac_try") 2>&5
7100 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); }; }; then
7102 ac_cv_sizeof_signed_short=`cat conftest.val`
7104 $as_echo "$as_me: program exited with status $ac_status" >&5
7105 $as_echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7109 if test "$ac_cv_type_signed_short" = yes; then
7110 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7112 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7113 See \`config.log' for more details." >&5
7114 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7115 See \`config.log' for more details." >&2;}
7116 { (exit 77); exit 77; }; }; }
7118 ac_cv_sizeof_signed_short=0
7121 rm -rf conftest.dSYM
7122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7126 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
7127 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
7131 cat >>confdefs.h <<_ACEOF
7132 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
7136 # The cast to long int works around a bug in the HP C Compiler
7137 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7138 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7139 # This bug is HP SR number 8606223364.
7140 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
7141 $as_echo_n "checking size of signed... " >&6; }
7142 if test "${ac_cv_sizeof_signed+set}" = set; then
7143 $as_echo_n "(cached) " >&6
7145 if test "$cross_compiling" = yes; then
7146 # Depending upon the size, compute the lo and hi bounds.
7147 cat >conftest.$ac_ext <<_ACEOF
7150 cat confdefs.h >>conftest.$ac_ext
7151 cat >>conftest.$ac_ext <<_ACEOF
7152 /* end confdefs.h. */
7153 $ac_includes_default
7157 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7171 $as_echo "$ac_try_echo") >&5
7172 (eval "$ac_compile") 2>conftest.er1
7174 grep -v '^ *+' conftest.er1 >conftest.err
7176 cat conftest.err >&5
7177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest.$ac_objext; then
7184 cat >conftest.$ac_ext <<_ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 $ac_includes_default
7194 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7201 rm -f conftest.$ac_objext
7202 if { (ac_try="$ac_compile"
7204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7205 *) ac_try_echo=$ac_try;;
7207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7208 $as_echo "$ac_try_echo") >&5
7209 (eval "$ac_compile") 2>conftest.er1
7211 grep -v '^ *+' conftest.er1 >conftest.err
7213 cat conftest.err >&5
7214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7215 (exit $ac_status); } && {
7216 test -z "$ac_c_werror_flag" ||
7217 test ! -s conftest.err
7218 } && test -s conftest.$ac_objext; then
7219 ac_hi=$ac_mid; break
7221 $as_echo "$as_me: failed program was:" >&5
7222 sed 's/^/| /' conftest.$ac_ext >&5
7224 ac_lo=`expr $ac_mid + 1`
7225 if test $ac_lo -le $ac_mid; then
7229 ac_mid=`expr 2 '*' $ac_mid + 1`
7232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7235 $as_echo "$as_me: failed program was:" >&5
7236 sed 's/^/| /' conftest.$ac_ext >&5
7238 cat >conftest.$ac_ext <<_ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 $ac_includes_default
7248 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7255 rm -f conftest.$ac_objext
7256 if { (ac_try="$ac_compile"
7258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7259 *) ac_try_echo=$ac_try;;
7261 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7262 $as_echo "$ac_try_echo") >&5
7263 (eval "$ac_compile") 2>conftest.er1
7265 grep -v '^ *+' conftest.er1 >conftest.err
7267 cat conftest.err >&5
7268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7269 (exit $ac_status); } && {
7270 test -z "$ac_c_werror_flag" ||
7271 test ! -s conftest.err
7272 } && test -s conftest.$ac_objext; then
7275 cat >conftest.$ac_ext <<_ACEOF
7278 cat confdefs.h >>conftest.$ac_ext
7279 cat >>conftest.$ac_ext <<_ACEOF
7280 /* end confdefs.h. */
7281 $ac_includes_default
7285 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7292 rm -f conftest.$ac_objext
7293 if { (ac_try="$ac_compile"
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7299 $as_echo "$ac_try_echo") >&5
7300 (eval "$ac_compile") 2>conftest.er1
7302 grep -v '^ *+' conftest.er1 >conftest.err
7304 cat conftest.err >&5
7305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); } && {
7307 test -z "$ac_c_werror_flag" ||
7308 test ! -s conftest.err
7309 } && test -s conftest.$ac_objext; then
7310 ac_lo=$ac_mid; break
7312 $as_echo "$as_me: failed program was:" >&5
7313 sed 's/^/| /' conftest.$ac_ext >&5
7315 ac_hi=`expr '(' $ac_mid ')' - 1`
7316 if test $ac_mid -le $ac_hi; then
7320 ac_mid=`expr 2 '*' $ac_mid`
7323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 $as_echo "$as_me: failed program was:" >&5
7327 sed 's/^/| /' conftest.$ac_ext >&5
7332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7336 # Binary search between lo and hi bounds.
7337 while test "x$ac_lo" != "x$ac_hi"; do
7338 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7339 cat >conftest.$ac_ext <<_ACEOF
7342 cat confdefs.h >>conftest.$ac_ext
7343 cat >>conftest.$ac_ext <<_ACEOF
7344 /* end confdefs.h. */
7345 $ac_includes_default
7349 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7356 rm -f conftest.$ac_objext
7357 if { (ac_try="$ac_compile"
7359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7360 *) ac_try_echo=$ac_try;;
7362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7363 $as_echo "$ac_try_echo") >&5
7364 (eval "$ac_compile") 2>conftest.er1
7366 grep -v '^ *+' conftest.er1 >conftest.err
7368 cat conftest.err >&5
7369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && {
7371 test -z "$ac_c_werror_flag" ||
7372 test ! -s conftest.err
7373 } && test -s conftest.$ac_objext; then
7376 $as_echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7379 ac_lo=`expr '(' $ac_mid ')' + 1`
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7385 ?*) ac_cv_sizeof_signed=$ac_lo;;
7386 '') if test "$ac_cv_type_signed" = yes; then
7387 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7389 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7390 See \`config.log' for more details." >&5
7391 $as_echo "$as_me: error: cannot compute sizeof (signed)
7392 See \`config.log' for more details." >&2;}
7393 { (exit 77); exit 77; }; }; }
7395 ac_cv_sizeof_signed=0
7399 cat >conftest.$ac_ext <<_ACEOF
7402 cat confdefs.h >>conftest.$ac_ext
7403 cat >>conftest.$ac_ext <<_ACEOF
7404 /* end confdefs.h. */
7405 $ac_includes_default
7406 static long int longval () { return (long int) (sizeof (signed)); }
7407 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7414 FILE *f = fopen ("conftest.val", "w");
7417 if (((long int) (sizeof (signed))) < 0)
7419 long int i = longval ();
7420 if (i != ((long int) (sizeof (signed))))
7422 fprintf (f, "%ld", i);
7426 unsigned long int i = ulongval ();
7427 if (i != ((long int) (sizeof (signed))))
7429 fprintf (f, "%lu", i);
7431 /* Do not output a trailing newline, as this causes \r\n confusion
7432 on some platforms. */
7433 return ferror (f) || fclose (f) != 0;
7439 rm -f conftest$ac_exeext
7440 if { (ac_try="$ac_link"
7442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7443 *) ac_try_echo=$ac_try;;
7445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7446 $as_echo "$ac_try_echo") >&5
7447 (eval "$ac_link") 2>&5
7449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7451 { (case "(($ac_try" in
7452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7453 *) ac_try_echo=$ac_try;;
7455 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7456 $as_echo "$ac_try_echo") >&5
7457 (eval "$ac_try") 2>&5
7459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; }; then
7461 ac_cv_sizeof_signed=`cat conftest.val`
7463 $as_echo "$as_me: program exited with status $ac_status" >&5
7464 $as_echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7468 if test "$ac_cv_type_signed" = yes; then
7469 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7471 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7472 See \`config.log' for more details." >&5
7473 $as_echo "$as_me: error: cannot compute sizeof (signed)
7474 See \`config.log' for more details." >&2;}
7475 { (exit 77); exit 77; }; }; }
7477 ac_cv_sizeof_signed=0
7480 rm -rf conftest.dSYM
7481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7485 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7486 $as_echo "$ac_cv_sizeof_signed" >&6; }
7490 cat >>confdefs.h <<_ACEOF
7491 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7495 # The cast to long int works around a bug in the HP C Compiler
7496 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7497 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7498 # This bug is HP SR number 8606223364.
7499 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7500 $as_echo_n "checking size of signed long long... " >&6; }
7501 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7502 $as_echo_n "(cached) " >&6
7504 if test "$cross_compiling" = yes; then
7505 # Depending upon the size, compute the lo and hi bounds.
7506 cat >conftest.$ac_ext <<_ACEOF
7509 cat confdefs.h >>conftest.$ac_ext
7510 cat >>conftest.$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7512 $ac_includes_default
7516 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7523 rm -f conftest.$ac_objext
7524 if { (ac_try="$ac_compile"
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7530 $as_echo "$ac_try_echo") >&5
7531 (eval "$ac_compile") 2>conftest.er1
7533 grep -v '^ *+' conftest.er1 >conftest.err
7535 cat conftest.err >&5
7536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7537 (exit $ac_status); } && {
7538 test -z "$ac_c_werror_flag" ||
7539 test ! -s conftest.err
7540 } && test -s conftest.$ac_objext; then
7543 cat >conftest.$ac_ext <<_ACEOF
7546 cat confdefs.h >>conftest.$ac_ext
7547 cat >>conftest.$ac_ext <<_ACEOF
7548 /* end confdefs.h. */
7549 $ac_includes_default
7553 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7560 rm -f conftest.$ac_objext
7561 if { (ac_try="$ac_compile"
7563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7566 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7567 $as_echo "$ac_try_echo") >&5
7568 (eval "$ac_compile") 2>conftest.er1
7570 grep -v '^ *+' conftest.er1 >conftest.err
7572 cat conftest.err >&5
7573 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } && {
7575 test -z "$ac_c_werror_flag" ||
7576 test ! -s conftest.err
7577 } && test -s conftest.$ac_objext; then
7578 ac_hi=$ac_mid; break
7580 $as_echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7583 ac_lo=`expr $ac_mid + 1`
7584 if test $ac_lo -le $ac_mid; then
7588 ac_mid=`expr 2 '*' $ac_mid + 1`
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594 $as_echo "$as_me: failed program was:" >&5
7595 sed 's/^/| /' conftest.$ac_ext >&5
7597 cat >conftest.$ac_ext <<_ACEOF
7600 cat confdefs.h >>conftest.$ac_ext
7601 cat >>conftest.$ac_ext <<_ACEOF
7602 /* end confdefs.h. */
7603 $ac_includes_default
7607 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7614 rm -f conftest.$ac_objext
7615 if { (ac_try="$ac_compile"
7617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7621 $as_echo "$ac_try_echo") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7624 grep -v '^ *+' conftest.er1 >conftest.err
7626 cat conftest.err >&5
7627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.$ac_objext; then
7634 cat >conftest.$ac_ext <<_ACEOF
7637 cat confdefs.h >>conftest.$ac_ext
7638 cat >>conftest.$ac_ext <<_ACEOF
7639 /* end confdefs.h. */
7640 $ac_includes_default
7644 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7651 rm -f conftest.$ac_objext
7652 if { (ac_try="$ac_compile"
7654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7655 *) ac_try_echo=$ac_try;;
7657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7658 $as_echo "$ac_try_echo") >&5
7659 (eval "$ac_compile") 2>conftest.er1
7661 grep -v '^ *+' conftest.er1 >conftest.err
7663 cat conftest.err >&5
7664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } && {
7666 test -z "$ac_c_werror_flag" ||
7667 test ! -s conftest.err
7668 } && test -s conftest.$ac_objext; then
7669 ac_lo=$ac_mid; break
7671 $as_echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7674 ac_hi=`expr '(' $ac_mid ')' - 1`
7675 if test $ac_mid -le $ac_hi; then
7679 ac_mid=`expr 2 '*' $ac_mid`
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7685 $as_echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 # Binary search between lo and hi bounds.
7696 while test "x$ac_lo" != "x$ac_hi"; do
7697 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7698 cat >conftest.$ac_ext <<_ACEOF
7701 cat confdefs.h >>conftest.$ac_ext
7702 cat >>conftest.$ac_ext <<_ACEOF
7703 /* end confdefs.h. */
7704 $ac_includes_default
7708 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7715 rm -f conftest.$ac_objext
7716 if { (ac_try="$ac_compile"
7718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7719 *) ac_try_echo=$ac_try;;
7721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7722 $as_echo "$ac_try_echo") >&5
7723 (eval "$ac_compile") 2>conftest.er1
7725 grep -v '^ *+' conftest.er1 >conftest.err
7727 cat conftest.err >&5
7728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } && {
7730 test -z "$ac_c_werror_flag" ||
7731 test ! -s conftest.err
7732 } && test -s conftest.$ac_objext; then
7735 $as_echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.$ac_ext >&5
7738 ac_lo=`expr '(' $ac_mid ')' + 1`
7741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7744 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7745 '') if test "$ac_cv_type_signed_long_long" = yes; then
7746 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7748 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7749 See \`config.log' for more details." >&5
7750 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7751 See \`config.log' for more details." >&2;}
7752 { (exit 77); exit 77; }; }; }
7754 ac_cv_sizeof_signed_long_long=0
7758 cat >conftest.$ac_ext <<_ACEOF
7761 cat confdefs.h >>conftest.$ac_ext
7762 cat >>conftest.$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7764 $ac_includes_default
7765 static long int longval () { return (long int) (sizeof (signed long long)); }
7766 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7773 FILE *f = fopen ("conftest.val", "w");
7776 if (((long int) (sizeof (signed long long))) < 0)
7778 long int i = longval ();
7779 if (i != ((long int) (sizeof (signed long long))))
7781 fprintf (f, "%ld", i);
7785 unsigned long int i = ulongval ();
7786 if (i != ((long int) (sizeof (signed long long))))
7788 fprintf (f, "%lu", i);
7790 /* Do not output a trailing newline, as this causes \r\n confusion
7791 on some platforms. */
7792 return ferror (f) || fclose (f) != 0;
7798 rm -f conftest$ac_exeext
7799 if { (ac_try="$ac_link"
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7804 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7805 $as_echo "$ac_try_echo") >&5
7806 (eval "$ac_link") 2>&5
7808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7810 { (case "(($ac_try" in
7811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812 *) ac_try_echo=$ac_try;;
7814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7815 $as_echo "$ac_try_echo") >&5
7816 (eval "$ac_try") 2>&5
7818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); }; }; then
7820 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7822 $as_echo "$as_me: program exited with status $ac_status" >&5
7823 $as_echo "$as_me: failed program was:" >&5
7824 sed 's/^/| /' conftest.$ac_ext >&5
7827 if test "$ac_cv_type_signed_long_long" = yes; then
7828 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7830 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7831 See \`config.log' for more details." >&5
7832 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7833 See \`config.log' for more details." >&2;}
7834 { (exit 77); exit 77; }; }; }
7836 ac_cv_sizeof_signed_long_long=0
7839 rm -rf conftest.dSYM
7840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7844 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7845 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7849 cat >>confdefs.h <<_ACEOF
7850 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7854 # The cast to long int works around a bug in the HP C Compiler
7855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7857 # This bug is HP SR number 8606223364.
7858 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7859 $as_echo_n "checking size of void*... " >&6; }
7860 if test "${ac_cv_sizeof_voidp+set}" = set; then
7861 $as_echo_n "(cached) " >&6
7863 if test "$cross_compiling" = yes; then
7864 # Depending upon the size, compute the lo and hi bounds.
7865 cat >conftest.$ac_ext <<_ACEOF
7868 cat confdefs.h >>conftest.$ac_ext
7869 cat >>conftest.$ac_ext <<_ACEOF
7870 /* end confdefs.h. */
7871 $ac_includes_default
7875 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7882 rm -f conftest.$ac_objext
7883 if { (ac_try="$ac_compile"
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7889 $as_echo "$ac_try_echo") >&5
7890 (eval "$ac_compile") 2>conftest.er1
7892 grep -v '^ *+' conftest.er1 >conftest.err
7894 cat conftest.err >&5
7895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); } && {
7897 test -z "$ac_c_werror_flag" ||
7898 test ! -s conftest.err
7899 } && test -s conftest.$ac_objext; then
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7908 $ac_includes_default
7912 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7919 rm -f conftest.$ac_objext
7920 if { (ac_try="$ac_compile"
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7926 $as_echo "$ac_try_echo") >&5
7927 (eval "$ac_compile") 2>conftest.er1
7929 grep -v '^ *+' conftest.er1 >conftest.err
7931 cat conftest.err >&5
7932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } && {
7934 test -z "$ac_c_werror_flag" ||
7935 test ! -s conftest.err
7936 } && test -s conftest.$ac_objext; then
7937 ac_hi=$ac_mid; break
7939 $as_echo "$as_me: failed program was:" >&5
7940 sed 's/^/| /' conftest.$ac_ext >&5
7942 ac_lo=`expr $ac_mid + 1`
7943 if test $ac_lo -le $ac_mid; then
7947 ac_mid=`expr 2 '*' $ac_mid + 1`
7950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953 $as_echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7962 $ac_includes_default
7966 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7973 rm -f conftest.$ac_objext
7974 if { (ac_try="$ac_compile"
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7980 $as_echo "$ac_try_echo") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1 >conftest.err
7985 cat conftest.err >&5
7986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.$ac_objext; then
7993 cat >conftest.$ac_ext <<_ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 $ac_includes_default
8003 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
8010 rm -f conftest.$ac_objext
8011 if { (ac_try="$ac_compile"
8013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8014 *) ac_try_echo=$ac_try;;
8016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8017 $as_echo "$ac_try_echo") >&5
8018 (eval "$ac_compile") 2>conftest.er1
8020 grep -v '^ *+' conftest.er1 >conftest.err
8022 cat conftest.err >&5
8023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } && {
8025 test -z "$ac_c_werror_flag" ||
8026 test ! -s conftest.err
8027 } && test -s conftest.$ac_objext; then
8028 ac_lo=$ac_mid; break
8030 $as_echo "$as_me: failed program was:" >&5
8031 sed 's/^/| /' conftest.$ac_ext >&5
8033 ac_hi=`expr '(' $ac_mid ')' - 1`
8034 if test $ac_mid -le $ac_hi; then
8038 ac_mid=`expr 2 '*' $ac_mid`
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 $as_echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.$ac_ext >&5
8050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 # Binary search between lo and hi bounds.
8055 while test "x$ac_lo" != "x$ac_hi"; do
8056 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8057 cat >conftest.$ac_ext <<_ACEOF
8060 cat confdefs.h >>conftest.$ac_ext
8061 cat >>conftest.$ac_ext <<_ACEOF
8062 /* end confdefs.h. */
8063 $ac_includes_default
8067 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
8074 rm -f conftest.$ac_objext
8075 if { (ac_try="$ac_compile"
8077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078 *) ac_try_echo=$ac_try;;
8080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8081 $as_echo "$ac_try_echo") >&5
8082 (eval "$ac_compile") 2>conftest.er1
8084 grep -v '^ *+' conftest.er1 >conftest.err
8086 cat conftest.err >&5
8087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } && {
8089 test -z "$ac_c_werror_flag" ||
8090 test ! -s conftest.err
8091 } && test -s conftest.$ac_objext; then
8094 $as_echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8097 ac_lo=`expr '(' $ac_mid ')' + 1`
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8104 '') if test "$ac_cv_type_voidp" = yes; then
8105 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8106 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8107 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8108 See \`config.log' for more details." >&5
8109 $as_echo "$as_me: error: cannot compute sizeof (void*)
8110 See \`config.log' for more details." >&2;}
8111 { (exit 77); exit 77; }; }; }
8113 ac_cv_sizeof_voidp=0
8117 cat >conftest.$ac_ext <<_ACEOF
8120 cat confdefs.h >>conftest.$ac_ext
8121 cat >>conftest.$ac_ext <<_ACEOF
8122 /* end confdefs.h. */
8123 $ac_includes_default
8124 static long int longval () { return (long int) (sizeof (void*)); }
8125 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
8132 FILE *f = fopen ("conftest.val", "w");
8135 if (((long int) (sizeof (void*))) < 0)
8137 long int i = longval ();
8138 if (i != ((long int) (sizeof (void*))))
8140 fprintf (f, "%ld", i);
8144 unsigned long int i = ulongval ();
8145 if (i != ((long int) (sizeof (void*))))
8147 fprintf (f, "%lu", i);
8149 /* Do not output a trailing newline, as this causes \r\n confusion
8150 on some platforms. */
8151 return ferror (f) || fclose (f) != 0;
8157 rm -f conftest$ac_exeext
8158 if { (ac_try="$ac_link"
8160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8161 *) ac_try_echo=$ac_try;;
8163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8164 $as_echo "$ac_try_echo") >&5
8165 (eval "$ac_link") 2>&5
8167 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8169 { (case "(($ac_try" in
8170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8171 *) ac_try_echo=$ac_try;;
8173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8174 $as_echo "$ac_try_echo") >&5
8175 (eval "$ac_try") 2>&5
8177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 ac_cv_sizeof_voidp=`cat conftest.val`
8181 $as_echo "$as_me: program exited with status $ac_status" >&5
8182 $as_echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.$ac_ext >&5
8186 if test "$ac_cv_type_voidp" = yes; then
8187 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8188 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8189 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8190 See \`config.log' for more details." >&5
8191 $as_echo "$as_me: error: cannot compute sizeof (void*)
8192 See \`config.log' for more details." >&2;}
8193 { (exit 77); exit 77; }; }; }
8195 ac_cv_sizeof_voidp=0
8198 rm -rf conftest.dSYM
8199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8203 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8204 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8208 cat >>confdefs.h <<_ACEOF
8209 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8216 # Extract the first word of "freetype-config", so it can be a program name with args.
8217 set dummy freetype-config; ac_word=$2
8218 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8221 $as_echo_n "(cached) " >&6
8223 case $FREETYPE_CONFIG in
8225 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8229 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8230 for as_dir in $as_dummy
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8236 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8237 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8248 if test -n "$FREETYPE_CONFIG"; then
8249 { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8250 $as_echo "$FREETYPE_CONFIG" >&6; }
8252 { $as_echo "$as_me:$LINENO: result: no" >&5
8253 $as_echo "no" >&6; }
8258 OLDCPPFLAGS="${CPPFLAGS}"
8260 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8261 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8262 else if test -d /usr/include/freetype2; then
8263 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8264 else if test -d /usr/local/include/freetype2; then
8265 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8270 if test "x${FREETYPE_CONFIG}" '=' "x";then
8271 # if we didn't find the freetype-config program, we won't
8272 # know where the libs are expected to be. So just blindly
8273 # try to link against them.
8274 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8275 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8276 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8277 $as_echo_n "(cached) " >&6
8279 ac_check_lib_save_LIBS=$LIBS
8280 LIBS="-lfreetype $LIBS"
8281 cat >conftest.$ac_ext <<_ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8288 /* Override any GCC internal prototype to avoid an error.
8289 Use char because int might match the return type of a GCC
8290 builtin and then its argument prototype would still apply. */
8294 char FT_Init_FreeType ();
8298 return FT_Init_FreeType ();
8303 rm -f conftest.$ac_objext conftest$ac_exeext
8304 if { (ac_try="$ac_link"
8306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8307 *) ac_try_echo=$ac_try;;
8309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8310 $as_echo "$ac_try_echo") >&5
8311 (eval "$ac_link") 2>conftest.er1
8313 grep -v '^ *+' conftest.er1 >conftest.err
8315 cat conftest.err >&5
8316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } && {
8318 test -z "$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 } && test -s conftest$ac_exeext && {
8321 test "$cross_compiling" = yes ||
8322 $as_test_x conftest$ac_exeext
8324 ac_cv_lib_freetype_FT_Init_FreeType=yes
8326 $as_echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 ac_cv_lib_freetype_FT_Init_FreeType=no
8332 rm -rf conftest.dSYM
8333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8334 conftest$ac_exeext conftest.$ac_ext
8335 LIBS=$ac_check_lib_save_LIBS
8337 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8338 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8339 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
8346 for ac_header in ft2build.h
8348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8350 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8351 $as_echo_n "checking for $ac_header... " >&6; }
8352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8353 $as_echo_n "(cached) " >&6
8355 ac_res=`eval 'as_val=${'$as_ac_Header'}
8356 $as_echo "$as_val"'`
8357 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8358 $as_echo "$ac_res" >&6; }
8360 # Is the header compilable?
8361 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8362 $as_echo_n "checking $ac_header usability... " >&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 $ac_includes_default
8370 #include <$ac_header>
8372 rm -f conftest.$ac_objext
8373 if { (ac_try="$ac_compile"
8375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8376 *) ac_try_echo=$ac_try;;
8378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8379 $as_echo "$ac_try_echo") >&5
8380 (eval "$ac_compile") 2>conftest.er1
8382 grep -v '^ *+' conftest.er1 >conftest.err
8384 cat conftest.err >&5
8385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } && {
8387 test -z "$ac_c_werror_flag" ||
8388 test ! -s conftest.err
8389 } && test -s conftest.$ac_objext; then
8390 ac_header_compiler=yes
8392 $as_echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8395 ac_header_compiler=no
8398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8399 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8400 $as_echo "$ac_header_compiler" >&6; }
8402 # Is the header present?
8403 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8404 $as_echo_n "checking $ac_header presence... " >&6; }
8405 cat >conftest.$ac_ext <<_ACEOF
8408 cat confdefs.h >>conftest.$ac_ext
8409 cat >>conftest.$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 #include <$ac_header>
8413 if { (ac_try="$ac_cpp conftest.$ac_ext"
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8419 $as_echo "$ac_try_echo") >&5
8420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8422 grep -v '^ *+' conftest.er1 >conftest.err
8424 cat conftest.err >&5
8425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } >/dev/null && {
8427 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8428 test ! -s conftest.err
8430 ac_header_preproc=yes
8432 $as_echo "$as_me: failed program was:" >&5
8433 sed 's/^/| /' conftest.$ac_ext >&5
8435 ac_header_preproc=no
8438 rm -f conftest.err conftest.$ac_ext
8439 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8440 $as_echo "$ac_header_preproc" >&6; }
8442 # So? What about this header?
8443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8446 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8448 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8449 ac_header_preproc=yes
8452 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8453 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8454 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8455 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8456 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8457 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8459 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8461 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8463 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8467 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8468 $as_echo_n "checking for $ac_header... " >&6; }
8469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8470 $as_echo_n "(cached) " >&6
8472 eval "$as_ac_Header=\$ac_header_preproc"
8474 ac_res=`eval 'as_val=${'$as_ac_Header'}
8475 $as_echo "$as_val"'`
8476 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8477 $as_echo "$ac_res" >&6; }
8480 as_val=`eval 'as_val=${'$as_ac_Header'}
8481 $as_echo "$as_val"'`
8482 if test "x$as_val" = x""yes; then
8483 cat >>confdefs.h <<_ACEOF
8484 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8491 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8493 for ac_header in freetype/freetype.h
8495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8497 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8498 $as_echo_n "checking for $ac_header... " >&6; }
8499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8500 $as_echo_n "(cached) " >&6
8502 ac_res=`eval 'as_val=${'$as_ac_Header'}
8503 $as_echo "$as_val"'`
8504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8505 $as_echo "$ac_res" >&6; }
8507 # Is the header compilable?
8508 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8509 $as_echo_n "checking $ac_header usability... " >&6; }
8510 cat >conftest.$ac_ext <<_ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 $ac_includes_default
8517 #include <$ac_header>
8519 rm -f conftest.$ac_objext
8520 if { (ac_try="$ac_compile"
8522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8523 *) ac_try_echo=$ac_try;;
8525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8526 $as_echo "$ac_try_echo") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.$ac_objext; then
8537 ac_header_compiler=yes
8539 $as_echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8542 ac_header_compiler=no
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8546 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8547 $as_echo "$ac_header_compiler" >&6; }
8549 # Is the header present?
8550 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8551 $as_echo_n "checking $ac_header presence... " >&6; }
8552 cat >conftest.$ac_ext <<_ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8558 #include <$ac_header>
8560 if { (ac_try="$ac_cpp conftest.$ac_ext"
8562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8563 *) ac_try_echo=$ac_try;;
8565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8566 $as_echo "$ac_try_echo") >&5
8567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8569 grep -v '^ *+' conftest.er1 >conftest.err
8571 cat conftest.err >&5
8572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } >/dev/null && {
8574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8575 test ! -s conftest.err
8577 ac_header_preproc=yes
8579 $as_echo "$as_me: failed program was:" >&5
8580 sed 's/^/| /' conftest.$ac_ext >&5
8582 ac_header_preproc=no
8585 rm -f conftest.err conftest.$ac_ext
8586 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8587 $as_echo "$ac_header_preproc" >&6; }
8589 # So? What about this header?
8590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8593 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8595 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8596 ac_header_preproc=yes
8599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8600 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8602 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8604 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8606 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8608 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8610 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8615 $as_echo_n "checking for $ac_header... " >&6; }
8616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8617 $as_echo_n "(cached) " >&6
8619 eval "$as_ac_Header=\$ac_header_preproc"
8621 ac_res=`eval 'as_val=${'$as_ac_Header'}
8622 $as_echo "$as_val"'`
8623 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8624 $as_echo "$ac_res" >&6; }
8627 as_val=`eval 'as_val=${'$as_ac_Header'}
8628 $as_echo "$as_val"'`
8629 if test "x$as_val" = x""yes; then
8630 cat >>confdefs.h <<_ACEOF
8631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8633 HAVE_FREETYPE_FREETYPE_H=1
8640 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8641 "x${FREETYPE_CONFIG}" '!=' "x";then
8642 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8645 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8650 if test "x${HAVE_FREETYPE}" = "x1"; then
8651 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8652 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8654 LIBS="$LIBS -lfreetype"
8657 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8658 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8661 { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8662 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8664 cat > conftest.c << EOF
8665 $HAVE_FT2BUILD_H_DEFINE
8667 #ifdef HAVE_FT2BUILD_H
8668 #include <ft2build.h>
8669 #include FT_FREETYPE_H
8672 #include FT_SFNT_NAMES_H
8673 #include FT_TRUETYPE_IDS_H
8674 #include FT_OUTLINE_H
8676 #include <freetype/freetype.h>
8677 #include <freetype/ftglyph.h>
8678 #include <freetype/ftsizes.h>
8679 #include <freetype/ftsnames.h>
8680 #include <freetype/ttnameid.h>
8681 #include <freetype/ftoutln.h>
8686 FT_Library ftlibrary;
8698 FT_Init_FreeType(&ftlibrary);
8699 FT_New_Face(ftlibrary, "filename", 0, &face);
8700 i = face->num_glyphs - 1;
8701 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8702 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8703 FT_Get_Postscript_Name(face);
8704 FT_Get_Char_Index(face, 33);
8705 FT_Get_First_Char(face, &i);
8706 FT_Get_Next_Char(face, 33, &i);
8707 if(FT_HAS_GLYPH_NAMES(face)) {
8708 FT_Get_Glyph_Name(face, 33, name, 127);
8710 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8711 FT_Get_Glyph(face->glyph, &glyph);
8712 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8713 FT_Done_Glyph(glyph);
8715 FT_Done_FreeType(ftlibrary);
8720 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8721 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8722 { $as_echo "$as_me:$LINENO: result: yes" >&5
8723 $as_echo "yes" >&6; }
8725 cat >>confdefs.h <<\_ACEOF
8726 #define HAVE_FREETYPE 1
8730 cat >>confdefs.h <<\_ACEOF
8731 #define HAVE_FREETYPE_FREETYPE_H 1
8735 cat >>confdefs.h <<\_ACEOF
8736 #define USE_FREETYPE 1
8740 echo "configure: failed program was:" >&5
8743 { $as_echo "$as_me:$LINENO: result: no" >&5
8744 $as_echo "no" >&6; }
8749 # if the above didn't work out, reset all changes to the compiler variables.
8750 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8751 CPPFLAGS=$OLDCPPFLAGS
8757 OLDCPPFLAGS="${CPPFLAGS}"
8760 if test -d /usr/include/fontconfig; then
8761 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8764 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8765 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8766 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8767 $as_echo_n "(cached) " >&6
8769 ac_check_lib_save_LIBS=$LIBS
8770 LIBS="-lfontconfig $LIBS"
8771 cat >conftest.$ac_ext <<_ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8778 /* Override any GCC internal prototype to avoid an error.
8779 Use char because int might match the return type of a GCC
8780 builtin and then its argument prototype would still apply. */
8793 rm -f conftest.$ac_objext conftest$ac_exeext
8794 if { (ac_try="$ac_link"
8796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8797 *) ac_try_echo=$ac_try;;
8799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8800 $as_echo "$ac_try_echo") >&5
8801 (eval "$ac_link") 2>conftest.er1
8803 grep -v '^ *+' conftest.er1 >conftest.err
8805 cat conftest.err >&5
8806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); } && {
8808 test -z "$ac_c_werror_flag" ||
8809 test ! -s conftest.err
8810 } && test -s conftest$ac_exeext && {
8811 test "$cross_compiling" = yes ||
8812 $as_test_x conftest$ac_exeext
8814 ac_cv_lib_fontconfig_FcInit=yes
8816 $as_echo "$as_me: failed program was:" >&5
8817 sed 's/^/| /' conftest.$ac_ext >&5
8819 ac_cv_lib_fontconfig_FcInit=no
8822 rm -rf conftest.dSYM
8823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8824 conftest$ac_exeext conftest.$ac_ext
8825 LIBS=$ac_check_lib_save_LIBS
8827 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8828 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8829 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then
8830 HAVE_LIB_FONTCONFIG=1
8834 for ac_header in fontconfig.h
8836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8838 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8839 $as_echo_n "checking for $ac_header... " >&6; }
8840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8841 $as_echo_n "(cached) " >&6
8843 ac_res=`eval 'as_val=${'$as_ac_Header'}
8844 $as_echo "$as_val"'`
8845 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8846 $as_echo "$ac_res" >&6; }
8848 # Is the header compilable?
8849 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8850 $as_echo_n "checking $ac_header usability... " >&6; }
8851 cat >conftest.$ac_ext <<_ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8857 $ac_includes_default
8858 #include <$ac_header>
8860 rm -f conftest.$ac_objext
8861 if { (ac_try="$ac_compile"
8863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8864 *) ac_try_echo=$ac_try;;
8866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8867 $as_echo "$ac_try_echo") >&5
8868 (eval "$ac_compile") 2>conftest.er1
8870 grep -v '^ *+' conftest.er1 >conftest.err
8872 cat conftest.err >&5
8873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest.$ac_objext; then
8878 ac_header_compiler=yes
8880 $as_echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.$ac_ext >&5
8883 ac_header_compiler=no
8886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8888 $as_echo "$ac_header_compiler" >&6; }
8890 # Is the header present?
8891 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8892 $as_echo_n "checking $ac_header presence... " >&6; }
8893 cat >conftest.$ac_ext <<_ACEOF
8896 cat confdefs.h >>conftest.$ac_ext
8897 cat >>conftest.$ac_ext <<_ACEOF
8898 /* end confdefs.h. */
8899 #include <$ac_header>
8901 if { (ac_try="$ac_cpp conftest.$ac_ext"
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8907 $as_echo "$ac_try_echo") >&5
8908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8910 grep -v '^ *+' conftest.er1 >conftest.err
8912 cat conftest.err >&5
8913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } >/dev/null && {
8915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8916 test ! -s conftest.err
8918 ac_header_preproc=yes
8920 $as_echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8923 ac_header_preproc=no
8926 rm -f conftest.err conftest.$ac_ext
8927 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8928 $as_echo "$ac_header_preproc" >&6; }
8930 # So? What about this header?
8931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8933 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8934 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8935 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8936 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8937 ac_header_preproc=yes
8940 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8941 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8942 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8943 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8944 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8945 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8946 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8947 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8948 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8949 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8950 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8951 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8955 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8956 $as_echo_n "checking for $ac_header... " >&6; }
8957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8958 $as_echo_n "(cached) " >&6
8960 eval "$as_ac_Header=\$ac_header_preproc"
8962 ac_res=`eval 'as_val=${'$as_ac_Header'}
8963 $as_echo "$as_val"'`
8964 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8965 $as_echo "$ac_res" >&6; }
8968 as_val=`eval 'as_val=${'$as_ac_Header'}
8969 $as_echo "$as_val"'`
8970 if test "x$as_val" = x""yes; then
8971 cat >>confdefs.h <<_ACEOF
8972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8980 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8981 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8986 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8987 LIBS="$LIBS -lfontconfig"
8988 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8989 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8991 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8992 #move freetype library to the end of libraries, otherwise fontconfig
8994 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8997 cat > conftest.c << EOF
8999 #include <fontconfig.h>
9003 FcPattern *pattern, *match;
9006 char*s1="abc",*s2="ABC";
9009 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
9010 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
9011 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
9013 FcConfig*c = FcConfigCreate();
9014 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
9015 FcConfigBuildFonts(c);
9016 FcConfigSetCurrent(c);
9018 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
9019 FcFontSetDestroy(set);
9021 FcConfigSubstitute(0, pattern, FcMatchPattern);
9022 FcDefaultSubstitute(pattern);
9023 match = FcFontMatch(0, pattern, &result);
9024 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
9025 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
9026 FcPatternPrint(pattern);
9027 FcPatternDestroy(pattern);
9028 FcPatternDestroy(match);
9034 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9035 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9036 { $as_echo "$as_me:$LINENO: result: yes" >&5
9037 $as_echo "yes" >&6; }
9039 cat >>confdefs.h <<\_ACEOF
9040 #define HAVE_FONTCONFIG 1
9044 echo "configure: failed program was:" >&5
9047 { $as_echo "$as_me:$LINENO: result: no" >&5
9048 $as_echo "no" >&6; }
9053 # if the above didn't work out, reset all changes to the compiler variables.
9054 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
9055 CPPFLAGS=$OLDCPPFLAGS
9061 OLDCPPFLAGS="${CPPFLAGS}"
9064 { $as_echo "$as_me:$LINENO: checking for fftw_plan_dft_r2c_2d in -lfftw3" >&5
9065 $as_echo_n "checking for fftw_plan_dft_r2c_2d in -lfftw3... " >&6; }
9066 if test "${ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d+set}" = set; then
9067 $as_echo_n "(cached) " >&6
9069 ac_check_lib_save_LIBS=$LIBS
9070 LIBS="-lfftw3 $LIBS"
9071 cat >conftest.$ac_ext <<_ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9078 /* Override any GCC internal prototype to avoid an error.
9079 Use char because int might match the return type of a GCC
9080 builtin and then its argument prototype would still apply. */
9084 char fftw_plan_dft_r2c_2d ();
9088 return fftw_plan_dft_r2c_2d ();
9093 rm -f conftest.$ac_objext conftest$ac_exeext
9094 if { (ac_try="$ac_link"
9096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9099 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9100 $as_echo "$ac_try_echo") >&5
9101 (eval "$ac_link") 2>conftest.er1
9103 grep -v '^ *+' conftest.er1 >conftest.err
9105 cat conftest.err >&5
9106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } && {
9108 test -z "$ac_c_werror_flag" ||
9109 test ! -s conftest.err
9110 } && test -s conftest$ac_exeext && {
9111 test "$cross_compiling" = yes ||
9112 $as_test_x conftest$ac_exeext
9114 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=yes
9116 $as_echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9119 ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d=no
9122 rm -rf conftest.dSYM
9123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9124 conftest$ac_exeext conftest.$ac_ext
9125 LIBS=$ac_check_lib_save_LIBS
9127 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&5
9128 $as_echo "$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" >&6; }
9129 if test "x$ac_cv_lib_fftw3_fftw_plan_dft_r2c_2d" = x""yes; then
9134 for ac_header in fftw3.h
9136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9137 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9138 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9139 $as_echo_n "checking for $ac_header... " >&6; }
9140 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9141 $as_echo_n "(cached) " >&6
9143 ac_res=`eval 'as_val=${'$as_ac_Header'}
9144 $as_echo "$as_val"'`
9145 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9146 $as_echo "$ac_res" >&6; }
9148 # Is the header compilable?
9149 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9150 $as_echo_n "checking $ac_header usability... " >&6; }
9151 cat >conftest.$ac_ext <<_ACEOF
9154 cat confdefs.h >>conftest.$ac_ext
9155 cat >>conftest.$ac_ext <<_ACEOF
9156 /* end confdefs.h. */
9157 $ac_includes_default
9158 #include <$ac_header>
9160 rm -f conftest.$ac_objext
9161 if { (ac_try="$ac_compile"
9163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9164 *) ac_try_echo=$ac_try;;
9166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9167 $as_echo "$ac_try_echo") >&5
9168 (eval "$ac_compile") 2>conftest.er1
9170 grep -v '^ *+' conftest.er1 >conftest.err
9172 cat conftest.err >&5
9173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } && {
9175 test -z "$ac_c_werror_flag" ||
9176 test ! -s conftest.err
9177 } && test -s conftest.$ac_objext; then
9178 ac_header_compiler=yes
9180 $as_echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9183 ac_header_compiler=no
9186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9187 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9188 $as_echo "$ac_header_compiler" >&6; }
9190 # Is the header present?
9191 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9192 $as_echo_n "checking $ac_header presence... " >&6; }
9193 cat >conftest.$ac_ext <<_ACEOF
9196 cat confdefs.h >>conftest.$ac_ext
9197 cat >>conftest.$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 #include <$ac_header>
9201 if { (ac_try="$ac_cpp conftest.$ac_ext"
9203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9207 $as_echo "$ac_try_echo") >&5
9208 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9210 grep -v '^ *+' conftest.er1 >conftest.err
9212 cat conftest.err >&5
9213 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); } >/dev/null && {
9215 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9216 test ! -s conftest.err
9218 ac_header_preproc=yes
9220 $as_echo "$as_me: failed program was:" >&5
9221 sed 's/^/| /' conftest.$ac_ext >&5
9223 ac_header_preproc=no
9226 rm -f conftest.err conftest.$ac_ext
9227 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9228 $as_echo "$ac_header_preproc" >&6; }
9230 # So? What about this header?
9231 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9233 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9234 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9235 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9236 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9237 ac_header_preproc=yes
9240 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9241 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9243 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9245 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9246 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9247 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9248 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9249 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9250 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9251 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9255 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9256 $as_echo_n "checking for $ac_header... " >&6; }
9257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9258 $as_echo_n "(cached) " >&6
9260 eval "$as_ac_Header=\$ac_header_preproc"
9262 ac_res=`eval 'as_val=${'$as_ac_Header'}
9263 $as_echo "$as_val"'`
9264 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9265 $as_echo "$ac_res" >&6; }
9268 as_val=`eval 'as_val=${'$as_ac_Header'}
9269 $as_echo "$as_val"'`
9270 if test "x$as_val" = x""yes; then
9271 cat >>confdefs.h <<_ACEOF
9272 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9280 if test "x${HAVE_LIBFFTW3}" != "x";then
9281 if test "x${HAVE_FFTW3_H}" != "x";then
9286 if test "x${HAVE_FFTW3}" = "x1"; then
9287 LIBS="$LIBS -lfftw3"
9288 { $as_echo "$as_me:$LINENO: checking whether we can compile the fftw3 test program" >&5
9289 $as_echo_n "checking whether we can compile the fftw3 test program... " >&6; }
9291 cat > conftest.c << EOF
9297 fftw_plan plan = fftw_plan_dft_2d(600, 800, (fftw_complex*)data, (fftw_complex*)data, FFTW_FORWARD, FFTW_ESTIMATE);
9298 plan = fftw_plan_dft_r2c_2d(600, 800, (double*)data, (fftw_complex*)data, FFTW_ESTIMATE);
9299 plan = fftw_plan_dft_c2r_2d(600, 800, (fftw_complex*)data, (double*)data, FFTW_ESTIMATE);
9301 fftw_destroy_plan(plan);
9305 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9306 if { (eval echo fftw3.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9307 { $as_echo "$as_me:$LINENO: result: yes" >&5
9308 $as_echo "yes" >&6; }
9310 cat >>confdefs.h <<\_ACEOF
9311 #define HAVE_FFTW3 1
9315 echo "configure: failed program was:" >&5
9318 { $as_echo "$as_me:$LINENO: result: no" >&5
9319 $as_echo "no" >&6; }
9324 # if the above didn't work out, reset all changes to the compiler variables.
9325 if test "x${HAVE_FFTW3}" "!=" "x1"; then
9326 CPPFLAGS=$OLDCPPFLAGS
9332 # if test "$HAVE_OPENGL";then
9333 # DEVICE_OPENGL='devices/opengl.$(O)'
9334 # AC_SUBST(DEVICE_OPENGL)
9340 if test "x${DISABLE_LAME}" = "xtrue"; then
9341 echo "*" Disabling lame support...
9343 # old lame code at lib/lame
9344 if test -f lib/lame/Makefile.in; then
9345 lame_in_source='$(lame_objects)'
9346 lame_makefile="lib/lame/Makefile"
9347 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9349 cat >>confdefs.h <<\_ACEOF
9354 if test -d /usr/include/lame; then
9355 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9357 if test -d /usr/local/include/lame; then
9358 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9362 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9363 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9364 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9365 $as_echo_n "(cached) " >&6
9367 ac_check_lib_save_LIBS=$LIBS
9368 LIBS="-lmp3lame $LIBS"
9369 cat >conftest.$ac_ext <<_ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9376 /* Override any GCC internal prototype to avoid an error.
9377 Use char because int might match the return type of a GCC
9378 builtin and then its argument prototype would still apply. */
9386 return lame_init ();
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (ac_try="$ac_link"
9394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9395 *) ac_try_echo=$ac_try;;
9397 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9398 $as_echo "$ac_try_echo") >&5
9399 (eval "$ac_link") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1 >conftest.err
9403 cat conftest.err >&5
9404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest$ac_exeext && {
9409 test "$cross_compiling" = yes ||
9410 $as_test_x conftest$ac_exeext
9412 ac_cv_lib_mp3lame_lame_init=yes
9414 $as_echo "$as_me: failed program was:" >&5
9415 sed 's/^/| /' conftest.$ac_ext >&5
9417 ac_cv_lib_mp3lame_lame_init=no
9420 rm -rf conftest.dSYM
9421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9422 conftest$ac_exeext conftest.$ac_ext
9423 LIBS=$ac_check_lib_save_LIBS
9425 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9426 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9427 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then
9428 cat >>confdefs.h <<_ACEOF
9429 #define HAVE_LIBMP3LAME 1
9432 LIBS="-lmp3lame $LIBS"
9440 for ac_header in lame.h
9442 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9444 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9445 $as_echo_n "checking for $ac_header... " >&6; }
9446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9447 $as_echo_n "(cached) " >&6
9449 ac_res=`eval 'as_val=${'$as_ac_Header'}
9450 $as_echo "$as_val"'`
9451 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9452 $as_echo "$ac_res" >&6; }
9454 # Is the header compilable?
9455 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9456 $as_echo_n "checking $ac_header usability... " >&6; }
9457 cat >conftest.$ac_ext <<_ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9463 $ac_includes_default
9464 #include <$ac_header>
9466 rm -f conftest.$ac_objext
9467 if { (ac_try="$ac_compile"
9469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 *) ac_try_echo=$ac_try;;
9472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9473 $as_echo "$ac_try_echo") >&5
9474 (eval "$ac_compile") 2>conftest.er1
9476 grep -v '^ *+' conftest.er1 >conftest.err
9478 cat conftest.err >&5
9479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); } && {
9481 test -z "$ac_c_werror_flag" ||
9482 test ! -s conftest.err
9483 } && test -s conftest.$ac_objext; then
9484 ac_header_compiler=yes
9486 $as_echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9489 ac_header_compiler=no
9492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9493 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9494 $as_echo "$ac_header_compiler" >&6; }
9496 # Is the header present?
9497 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9498 $as_echo_n "checking $ac_header presence... " >&6; }
9499 cat >conftest.$ac_ext <<_ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h. */
9505 #include <$ac_header>
9507 if { (ac_try="$ac_cpp conftest.$ac_ext"
9509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9510 *) ac_try_echo=$ac_try;;
9512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9513 $as_echo "$ac_try_echo") >&5
9514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9516 grep -v '^ *+' conftest.er1 >conftest.err
9518 cat conftest.err >&5
9519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } >/dev/null && {
9521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9522 test ! -s conftest.err
9524 ac_header_preproc=yes
9526 $as_echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9529 ac_header_preproc=no
9532 rm -f conftest.err conftest.$ac_ext
9533 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9534 $as_echo "$ac_header_preproc" >&6; }
9536 # So? What about this header?
9537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9540 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9541 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9542 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9543 ac_header_preproc=yes
9546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9547 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9549 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9551 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9553 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9555 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9556 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9557 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9562 $as_echo_n "checking for $ac_header... " >&6; }
9563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9564 $as_echo_n "(cached) " >&6
9566 eval "$as_ac_Header=\$ac_header_preproc"
9568 ac_res=`eval 'as_val=${'$as_ac_Header'}
9569 $as_echo "$as_val"'`
9570 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9571 $as_echo "$ac_res" >&6; }
9574 as_val=`eval 'as_val=${'$as_ac_Header'}
9575 $as_echo "$as_val"'`
9576 if test "x$as_val" = x""yes; then
9577 cat >>confdefs.h <<_ACEOF
9578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9585 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9586 cat >>confdefs.h <<\_ACEOF
9595 splash_in_source='$(splash_objects)'
9596 xpdf_in_source='$(xpdf_objects)'
9602 # ------------------------------------------------------------------
9605 { $as_echo "$as_me:$LINENO: checking whether the filesystem normalizes file names" >&5
9606 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
9608 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
9609 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9610 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
9611 { $as_echo "$as_me:$LINENO: result: yes" >&5
9612 $as_echo "yes" >&6; }
9614 cat >>confdefs.h <<\_ACEOF
9615 #define LOWERCASE_UPPERCASE 1
9619 { $as_echo "$as_me:$LINENO: result: no" >&5
9620 $as_echo "no" >&6; }
9623 rm -f __abcdefghijklmnopqrstuvwxyz.txt
9624 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9628 for ac_prog in avifile-config
9630 # Extract the first word of "$ac_prog", so it can be a program name with args.
9631 set dummy $ac_prog; ac_word=$2
9632 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9635 $as_echo_n "(cached) " >&6
9637 if test -n "$AVIFILE_CONFIG"; then
9638 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 test -z "$as_dir" && as_dir=.
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9647 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9648 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9657 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9658 if test -n "$AVIFILE_CONFIG"; then
9659 { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9660 $as_echo "$AVIFILE_CONFIG" >&6; }
9662 { $as_echo "$as_me:$LINENO: result: no" >&5
9663 $as_echo "no" >&6; }
9667 test -n "$AVIFILE_CONFIG" && break
9671 if test "x$AVIFILE_CONFIG" '!=' "x";then
9672 OLDCPPFLAGS="$CPPFLAGS"
9673 # temporarily add avifile paths to CPPFLAGS...
9674 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9677 for ac_header in avifile/version.h version.h
9679 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9681 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9682 $as_echo_n "checking for $ac_header... " >&6; }
9683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9684 $as_echo_n "(cached) " >&6
9686 ac_res=`eval 'as_val=${'$as_ac_Header'}
9687 $as_echo "$as_val"'`
9688 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9689 $as_echo "$ac_res" >&6; }
9691 # Is the header compilable?
9692 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9693 $as_echo_n "checking $ac_header usability... " >&6; }
9694 cat >conftest.$ac_ext <<_ACEOF
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 $ac_includes_default
9701 #include <$ac_header>
9703 rm -f conftest.$ac_objext
9704 if { (ac_try="$ac_compile"
9706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9707 *) ac_try_echo=$ac_try;;
9709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9710 $as_echo "$ac_try_echo") >&5
9711 (eval "$ac_compile") 2>conftest.er1
9713 grep -v '^ *+' conftest.er1 >conftest.err
9715 cat conftest.err >&5
9716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } && {
9718 test -z "$ac_c_werror_flag" ||
9719 test ! -s conftest.err
9720 } && test -s conftest.$ac_objext; then
9721 ac_header_compiler=yes
9723 $as_echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.$ac_ext >&5
9726 ac_header_compiler=no
9729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9731 $as_echo "$ac_header_compiler" >&6; }
9733 # Is the header present?
9734 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9735 $as_echo_n "checking $ac_header presence... " >&6; }
9736 cat >conftest.$ac_ext <<_ACEOF
9739 cat confdefs.h >>conftest.$ac_ext
9740 cat >>conftest.$ac_ext <<_ACEOF
9741 /* end confdefs.h. */
9742 #include <$ac_header>
9744 if { (ac_try="$ac_cpp conftest.$ac_ext"
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9750 $as_echo "$ac_try_echo") >&5
9751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9753 grep -v '^ *+' conftest.er1 >conftest.err
9755 cat conftest.err >&5
9756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); } >/dev/null && {
9758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9759 test ! -s conftest.err
9761 ac_header_preproc=yes
9763 $as_echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9766 ac_header_preproc=no
9769 rm -f conftest.err conftest.$ac_ext
9770 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9771 $as_echo "$ac_header_preproc" >&6; }
9773 # So? What about this header?
9774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9777 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9780 ac_header_preproc=yes
9783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9784 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9786 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9788 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9789 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9790 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9791 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9792 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9793 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9794 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9798 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9799 $as_echo_n "checking for $ac_header... " >&6; }
9800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9801 $as_echo_n "(cached) " >&6
9803 eval "$as_ac_Header=\$ac_header_preproc"
9805 ac_res=`eval 'as_val=${'$as_ac_Header'}
9806 $as_echo "$as_val"'`
9807 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9808 $as_echo "$ac_res" >&6; }
9811 as_val=`eval 'as_val=${'$as_ac_Header'}
9812 $as_echo "$as_val"'`
9813 if test "x$as_val" = x""yes; then
9814 cat >>confdefs.h <<_ACEOF
9815 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9823 CPPFLAGS="$OLDCPPFLAGS"
9826 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9827 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
9829 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9830 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9832 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9833 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9836 cat > conftest.cpp << EOF
9838 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9839 // so we have to introduce them this way
9840 $HAVE_VERSION_H_DEFINE
9841 $HAVE_AVIFILE_VERSION_H_DEFINE
9843 #ifdef HAVE_VERSION_H
9844 #include <version.h>
9846 #ifdef HAVE_AVIFILE_VERSION_H
9847 #include <avifile/version.h>
9850 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9851 #include <avifile.h>
9852 #include <aviplay.h>
9853 #include <avm_fourcc.h>
9854 #include <avm_creators.h>
9855 #include <StreamInfo.h>
9858 #include <avifile.h>
9859 #include <aviplay.h>
9860 #include <aviutil.h>
9862 #define Height height
9869 IAviReadFile* player;
9870 IAviReadStream* astream;
9871 IAviReadStream* vstream;
9872 player = CreateIAviReadFile(0);
9873 astream = player->GetStream(0, AviStream::Audio);
9874 vstream = player->GetStream(0, AviStream::Video);
9875 vstream -> StartStreaming();
9876 astream -> StartStreaming();
9879 player->GetFileHeader(&head);
9880 head.dwMicroSecPerFrame;
9885 head.dwMicroSecPerFrame;
9886 astream->GetEndPos(),
9887 astream->GetEndTime());
9888 player->StreamCount();
9890 StreamInfo*audioinfo;
9891 StreamInfo*videoinfo;
9892 audioinfo = astream->GetStreamInfo();
9893 videoinfo = vstream->GetStreamInfo();
9894 videoinfo->GetVideoWidth();
9895 videoinfo->GetVideoHeight();
9896 audioinfo->GetAudioSamplesPerSec();
9897 videoinfo->GetFps();
9899 CImage*img = vstream->GetFrame();
9906 astream->GetAudioFormatInfo(&wave,0);
9908 astream->ReadFrames(0,0,0,a,b);
9910 int main (int argc, char*argv)
9916 if test "x$AVIFILE_CONFIG" '!=' "x";then
9917 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9918 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9919 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9920 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9921 { $as_echo "$as_me:$LINENO: result: yes" >&5
9922 $as_echo "yes" >&6; }
9926 cat >>confdefs.h <<\_ACEOF
9927 #define AVIFILE true
9931 echo "configure: failed program was:" >&5
9932 cat conftest.cpp >&5
9933 { $as_echo "$as_me:$LINENO: result: no" >&5
9934 $as_echo "no" >&6; }
9937 { $as_echo "$as_me:$LINENO: result: no" >&5
9938 $as_echo "no" >&6; }
9942 if test "x${AVIFILE}" = "xtrue"; then
9943 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
9944 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
9946 cat >>confdefs.h <<\_ACEOF
9947 #define HAVE_AVIFILE 1
9952 if test "x${WIN32}" != "x"; then
9953 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
9954 #if test "x${AVIFIL32}" != "x"; then
9955 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9957 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
9963 # ------------------------------------------------------------------
9965 if test "x${UNCOMPRESS}" = "xgzip"; then
9967 cat >>confdefs.h <<\_ACEOF
9974 # ------------------------------------------------------------------
9977 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
9978 $as_echo_n "checking for Python.h... " >&6; }
9980 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
9983 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
9984 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
9986 # iterate through version 2.2 to 2.6
9987 for v in 2 3 4 5 6; do
9989 if test -f "/usr/include/python2.$v/Python.h";then
9991 PYTHON_LIB="-lpython$PY_VERSION"
9992 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
9993 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
9994 HAVE_PYTHON_IMAGING_LIB=1
9996 PYTHON_LIB2="$PYTHON_LIB"
9998 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
10000 elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
10002 PYTHON_LIB="-framework Python"
10003 if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
10004 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
10005 HAVE_PYTHON_IMAGING_LIB=1
10007 PYTHON_LIB2="$PYTHON_LIB"
10009 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
10011 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
10012 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
10013 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
10015 -a -f "/sw/include/python2.$v/Python.h"; then
10017 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10018 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
10019 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10020 HAVE_PYTHON_IMAGING_LIB=1
10022 PYTHON_LIB2="$PYTHON_LIB"
10024 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
10029 if test "x$PY_VERSION" "!=" "x"; then
10030 { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
10031 $as_echo "$PY_VERSION" >&6; }
10032 export PYTHON_INCLUDES PYTHON_LIB
10035 { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
10036 $as_echo_n "checking whether we can compile the python test program... " >&6; }
10038 cat > conftest.c << EOF
10039 #include <Python.h>
10044 ret = Py_Main(0, 0);
10045 int x; // check also for gcc 2.95.x incompatibilities
10050 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
10051 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10052 { $as_echo "$as_me:$LINENO: result: yes" >&5
10053 $as_echo "yes" >&6; }
10056 echo "configure: failed program was:" >&5
10058 { $as_echo "$as_me:$LINENO: result: no" >&5
10059 $as_echo "no" >&6; }
10062 if test "x$PYTHON_OK" = "xyes";then
10063 { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
10064 $as_echo_n "checking for Python-Imaging... " >&6; }
10065 cat > conftest.c << EOF
10066 #include <Python.h>
10067 #include <Imaging.h>
10075 if test "$HAVE_PYTHON_IMAGING_LIB"; then
10076 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
10077 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10078 PYTHON_LIB="${PYTHON_LIB2}"
10080 cat >>confdefs.h <<\_ACEOF
10081 #define HAVE_PYTHON_IMAGING 1
10084 HAVE_PYTHON_IMAGING=yes
10085 export HAVE_PYTHON_IMAGING
10087 { $as_echo "$as_me:$LINENO: result: yes" >&5
10088 $as_echo "yes" >&6; }
10090 echo "configure: failed program was:" >&5
10092 { $as_echo "$as_me:$LINENO: result: no" >&5
10093 $as_echo "no" >&6; }
10096 echo "(didn't find the Python-Imaging libraries)" >&5
10097 { $as_echo "$as_me:$LINENO: result: no" >&5
10098 $as_echo "no" >&6; }
10103 { $as_echo "$as_me:$LINENO: result: nope" >&5
10104 $as_echo "nope" >&6; }
10108 if test "x$PYTHON_OK" '!=' "xyes";then
10109 echo all install uninstall clean: > lib/python/Makefile
10110 # fail silently- the most users won't have any need for the
10111 # python interface anyway
10113 pythongfx="lib/python/Makefile"
10116 # ------------------------------------------------------------------
10119 # Extract the first word of "ruby", so it can be a program name with args.
10120 set dummy ruby; ac_word=$2
10121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10122 $as_echo_n "checking for $ac_word... " >&6; }
10123 if test "${ac_cv_path_RUBY+set}" = set; then
10124 $as_echo_n "(cached) " >&6
10128 ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
10131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10132 for as_dir in $PATH
10135 test -z "$as_dir" && as_dir=.
10136 for ac_exec_ext in '' $ac_executable_extensions; do
10137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10138 ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
10139 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 RUBY=$ac_cv_path_RUBY
10150 if test -n "$RUBY"; then
10151 { $as_echo "$as_me:$LINENO: result: $RUBY" >&5
10152 $as_echo "$RUBY" >&6; }
10154 { $as_echo "$as_me:$LINENO: result: no" >&5
10155 $as_echo "no" >&6; }
10166 { $as_echo "$as_me:$LINENO: checking for ruby's include directory" >&5
10167 $as_echo_n "checking for ruby's include directory... " >&6; }
10168 if test "x$RUBY" '!=' "x";then
10169 rubyinc=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "archdir"))' 2>/dev/null`
10170 if test -d $rubyinc;then
10171 { $as_echo "$as_me:$LINENO: result: $rubyinc" >&5
10172 $as_echo "$rubyinc" >&6; }
10174 # If we got a sensible archdir, we also ask ruby to supply us with CPPFLAGS
10176 { $as_echo "$as_me:$LINENO: checking for ruby's cpp flags" >&5
10177 $as_echo_n "checking for ruby's cpp flags... " >&6; }
10178 rubycpp=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "CPPFLAGS"))' 2>/dev/null`
10179 { $as_echo "$as_me:$LINENO: result: $rubycpp" >&5
10180 $as_echo "$rubycpp" >&6; }
10182 { $as_echo "$as_me:$LINENO: checking for ruby's ld flags" >&5
10183 $as_echo_n "checking for ruby's ld flags... " >&6; }
10184 rubyld=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "LIBRUBYARG_SHARED"))' 2>/dev/null`
10185 { $as_echo "$as_me:$LINENO: result: $rubyld" >&5
10186 $as_echo "$rubyld" >&6; }
10188 { $as_echo "$as_me:$LINENO: checking for ruby library name" >&5
10189 $as_echo_n "checking for ruby library name... " >&6; }
10190 rubylib=`$RUBY -e 'require "rbconfig";puts Config::expand(Config::CONFIG.send("\x5b\x5d", "RUBY_SO_NAME"))' 2>/dev/null`
10191 { $as_echo "$as_me:$LINENO: result: $rubylib" >&5
10192 $as_echo "$rubylib" >&6; }
10194 RUBY_CPPFLAGS="$rubycpp -I$rubyinc $RUBY_CPPFLAGS"
10195 RUBY_LDFLAGS="$rubyld $RUBY_LDFLAGS"
10197 { $as_echo "$as_me:$LINENO: result: 'unknown'" >&5
10198 $as_echo "'unknown'" >&6; }
10201 { $as_echo "$as_me:$LINENO: result: 'unknown'" >&5
10202 $as_echo "'unknown'" >&6; }
10205 #OLDLDFLAGS="$LDFLAGS"
10206 #LDFLAGS="$LDFLAGS $RUBY_LDFLAGS"
10207 #AC_CHECK_LIB($rubylib, rb_define_method, HAVE_RUBY_LIB=1,)
10208 #LDFLAGS="$OLDLDFLAGS"
10210 OLDCPPFLAGS="$CPPFLAGS"
10211 CPPFLAGS="$CPPFLAGS $RUBY_CPPFLAGS"
10213 for ac_header in ruby.h
10215 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10217 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10218 $as_echo_n "checking for $ac_header... " >&6; }
10219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10220 $as_echo_n "(cached) " >&6
10222 ac_res=`eval 'as_val=${'$as_ac_Header'}
10223 $as_echo "$as_val"'`
10224 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10225 $as_echo "$ac_res" >&6; }
10227 # Is the header compilable?
10228 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10229 $as_echo_n "checking $ac_header usability... " >&6; }
10230 cat >conftest.$ac_ext <<_ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10236 $ac_includes_default
10237 #include <$ac_header>
10239 rm -f conftest.$ac_objext
10240 if { (ac_try="$ac_compile"
10241 case "(($ac_try" in
10242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10243 *) ac_try_echo=$ac_try;;
10245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10246 $as_echo "$ac_try_echo") >&5
10247 (eval "$ac_compile") 2>conftest.er1
10249 grep -v '^ *+' conftest.er1 >conftest.err
10251 cat conftest.err >&5
10252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); } && {
10254 test -z "$ac_c_werror_flag" ||
10255 test ! -s conftest.err
10256 } && test -s conftest.$ac_objext; then
10257 ac_header_compiler=yes
10259 $as_echo "$as_me: failed program was:" >&5
10260 sed 's/^/| /' conftest.$ac_ext >&5
10262 ac_header_compiler=no
10265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10266 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10267 $as_echo "$ac_header_compiler" >&6; }
10269 # Is the header present?
10270 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10271 $as_echo_n "checking $ac_header presence... " >&6; }
10272 cat >conftest.$ac_ext <<_ACEOF
10275 cat confdefs.h >>conftest.$ac_ext
10276 cat >>conftest.$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10278 #include <$ac_header>
10280 if { (ac_try="$ac_cpp conftest.$ac_ext"
10281 case "(($ac_try" in
10282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10283 *) ac_try_echo=$ac_try;;
10285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10286 $as_echo "$ac_try_echo") >&5
10287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10289 grep -v '^ *+' conftest.er1 >conftest.err
10291 cat conftest.err >&5
10292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } >/dev/null && {
10294 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10295 test ! -s conftest.err
10297 ac_header_preproc=yes
10299 $as_echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10302 ac_header_preproc=no
10305 rm -f conftest.err conftest.$ac_ext
10306 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10307 $as_echo "$ac_header_preproc" >&6; }
10309 # So? What about this header?
10310 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10313 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10315 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10316 ac_header_preproc=yes
10319 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10320 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10321 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10322 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10324 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10326 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10328 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10330 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10334 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10335 $as_echo_n "checking for $ac_header... " >&6; }
10336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10337 $as_echo_n "(cached) " >&6
10339 eval "$as_ac_Header=\$ac_header_preproc"
10341 ac_res=`eval 'as_val=${'$as_ac_Header'}
10342 $as_echo "$as_val"'`
10343 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10344 $as_echo "$ac_res" >&6; }
10347 as_val=`eval 'as_val=${'$as_ac_Header'}
10348 $as_echo "$as_val"'`
10349 if test "x$as_val" = x""yes; then
10350 cat >>confdefs.h <<_ACEOF
10351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10358 CPPFLAGS="$OLDCPPFLAGS"
10360 { $as_echo "$as_me:$LINENO: checking whether we should compile the ruby module" >&5
10361 $as_echo_n "checking whether we should compile the ruby module... " >&6; }
10362 if test "x${HAVE_RUBY_H}" '!=' "x";then
10363 #RUBY_LIBS="$RUBY_LIBS -l$rubylib"
10365 cat > conftest.c << EOF
10367 static VALUE foobar;
10368 VALUE foobar_set_foo(VALUE module, VALUE _key, VALUE _value)
10374 foobar = rb_define_module("foobar");
10375 rb_define_module_function(foobar, "set_foo", foobar_set_foo, 2);
10377 int main() {return 0;}
10379 ac_link='$CC $SHARED $CPPFLAGS $RUBY_CPPFLAGS $CFLAGS conftest.c $LDFLAGS $RUBY_LDFLAGS $LIBS $RUBY_LIBS -o conftest${ac_exeext}'
10380 if { (eval echo ruby.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10383 echo "configure: failed program was:" >&5
10389 if test "x${RUBY_OK}" '=' "xyes"; then
10390 { $as_echo "$as_me:$LINENO: result: yes" >&5
10391 $as_echo "yes" >&6; }
10396 { $as_echo "$as_me:$LINENO: result: no" >&5
10397 $as_echo "no" >&6; }
10404 if test "x$RUBY_OK" '!=' "xyes";then
10405 echo all install uninstall clean: > lib/ruby/Makefile
10406 # fail silently- the most users won't have any need for the
10407 # ruby interface anyway
10409 rubygfx="lib/python/Makefile"
10412 # ------------------------------------------------------------------
10414 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
10415 $as_echo_n "checking for missing libraries... " >&6; }
10417 if test "x$ZLIBMISSING" = "xtrue";then
10418 MISSINGLIBS="${MISSINGLIBS} zlib"
10419 DISABLEPNG2SWF=true
10422 if test "x$JPEGLIBMISSING" = "xtrue";then
10423 MISSINGLIBS="${MISSINGLIBS} jpeglib"
10424 DISABLEPDF2SWF=true
10425 DISABLEJPEG2SWF=true
10428 if test "x$PDFLIBMISSING" = "xtrue";then
10429 DISABLEPDF2PDF=true;
10431 #if test "x$T1LIBMISSING" = "xtrue";then
10432 # MISSINGLIBS="${MISSINGLIBS} t1lib"
10434 if test "x$UNGIFMISSING" = "xtrue";then
10435 DISABLEGIF2SWF=true
10436 MISSINGLIBS="${MISSINGLIBS} ungif"
10440 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
10441 DISABLEPDF2PDF=true;
10443 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10444 DISABLEPDF2SWF=true;
10445 DISABLEJPEG2SWF=true;
10446 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10449 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10450 DISABLEPDF2SWF=true;
10451 MISSINGLIBS="${MISSINGLIBS} freetype"
10454 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10455 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10457 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10458 DISABLEGIF2SWF=true
10459 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10462 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10463 DISABLEPNG2SWF=true;
10464 MISSINGLIBS="${MISSINGLIBS} zlib.h"
10467 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10468 # MISSINGLIBS="${MISSINGLIBS} avifile"
10471 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10472 $as_echo "${MISSINGLIBS}" >&6; }
10474 # ------------------------------------------------------------------
10476 if test "x${MISSINGLIBS}" '!=' "x"; then
10477 echo "***************************************************"
10478 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10481 avi2swf="avi2swf/Makefile"
10482 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10483 #don't whine, avi2swf is outdated anyway
10484 #echo "* Disabling avi2swf tool..."
10485 echo all install uninstall clean: > avi2swf/Makefile
10489 pdf2swf_makefile="lib/pdf/Makefile"
10490 PDF2SWF='pdf2swf$(E)'
10491 LIBPDF='libpdf$(A)'
10493 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10494 echo "* Disabling pdf2swf tool..."
10495 rm -f lib/pdf/Makefile
10496 echo all install uninstall clean libpdf libgfxpdf: > lib/pdf/Makefile
10497 pdf2swf_makefile=""
10504 PDF2PDF='pdf2pdf$(E)'
10505 DEVICE_PDF='devices/pdf.$(O)'
10506 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
10507 #echo "* Disabling pdf2pdf tool..."
10514 if test "x${ZLIBMISSING}" = "xtrue"; then
10516 echo "* Warning! Without zlib, you will not be able to read"
10517 echo "* or write compressed Flash MX files!"
10520 JPEG2SWF='jpeg2swf$(E)'
10521 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10522 echo "* Disabling jpeg2swf tool..."
10528 GIF2SWF='gif2swf$(E)'
10529 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10530 echo "* Disabling gif2swf tool..."
10536 PNG2SWF='png2swf$(E)'
10537 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10538 echo "* Disabling png2swf tool..."
10544 if test "x${MISSINGLIBS}" '!=' "x"; then
10545 if test "x${PARTIAL}" '=' "x"; then
10546 echo "* (never mind)"
10548 echo "***************************************************"
10551 # ------------------------------------------------------------------
10559 if test -f "release.in"; then release_in="./release"; fi
10560 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10561 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythongfx} ${lame_makefile} lib/readers/Makefile"
10562 ac_config_files="$ac_config_files ${FILES}"
10564 cat >confcache <<\_ACEOF
10565 # This file is a shell script that caches the results of configure
10566 # tests run on this system so they can be shared between configure
10567 # scripts and configure runs, see configure's option --config-cache.
10568 # It is not useful on other systems. If it contains results you don't
10569 # want to keep, you may remove or edit it.
10571 # config.status only pays attention to the cache file if you give it
10572 # the --recheck option to rerun configure.
10574 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10575 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10576 # following values.
10580 # The following way of writing the cache mishandles newlines in values,
10581 # but we know of no workaround that is simple, portable, and efficient.
10582 # So, we kill variables containing newlines.
10583 # Ultrix sh set writes to stderr and can't be redirected directly,
10584 # and sets the high bit in the cache file unless we assign to the vars.
10586 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10587 eval ac_val=\$$ac_var
10591 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10592 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10595 _ | IFS | as_nl) ;; #(
10596 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10597 *) $as_unset $ac_var ;;
10603 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10604 *${as_nl}ac_space=\ *)
10605 # `set' does not quote correctly, so add quotes (double-quote
10606 # substitution turns \\\\ into \\, and sed turns \\ into \).
10609 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10612 # `set' quotes correctly as required by POSIX, so do not add quotes.
10613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10622 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10624 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10626 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10627 if test -w "$cache_file"; then
10628 test "x$cache_file" != "x/dev/null" &&
10629 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10630 $as_echo "$as_me: updating cache $cache_file" >&6;}
10631 cat confcache >$cache_file
10633 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10634 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10639 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10640 # Let make expand exec_prefix.
10641 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10643 DEFS=-DHAVE_CONFIG_H
10647 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10648 # 1. Remove the extension, and $U if already installed.
10649 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10650 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10651 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10652 # will be set to the directory where LIBOBJS objects are built.
10653 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10654 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10656 LIBOBJS=$ac_libobjs
10658 LTLIBOBJS=$ac_ltlibobjs
10662 : ${CONFIG_STATUS=./config.status}
10664 ac_clean_files_save=$ac_clean_files
10665 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10666 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10667 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10668 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10670 # Generated by $as_me.
10671 # Run this file to recreate the current configuration.
10672 # Compiler output produced by configure, useful for debugging
10673 # configure, is in config.log if it exists.
10676 ac_cs_recheck=false
10678 SHELL=\${CONFIG_SHELL-$SHELL}
10681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10682 ## --------------------- ##
10683 ## M4sh Initialization. ##
10684 ## --------------------- ##
10686 # Be more Bourne compatible
10687 DUALCASE=1; export DUALCASE # for MKS sh
10688 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10691 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10692 # is contrary to our usage. Disable this feature.
10693 alias -g '${1+"$@"}'='"$@"'
10694 setopt NO_GLOB_SUBST
10696 case `(set -o) 2>/dev/null` in
10697 *posix*) set -o posix ;;
10706 # Avoid depending upon Character Ranges.
10707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10710 as_cr_digits='0123456789'
10711 as_cr_alnum=$as_cr_Letters$as_cr_digits
10716 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10717 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10718 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10719 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10720 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10721 as_echo='printf %s\n'
10722 as_echo_n='printf %s'
10724 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10725 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10726 as_echo_n='/usr/ucb/echo -n'
10728 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10729 as_echo_n_body='eval
10733 expr "X$arg" : "X\\(.*\\)$as_nl";
10734 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10736 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10738 export as_echo_n_body
10739 as_echo_n='sh -c $as_echo_n_body as_echo'
10741 export as_echo_body
10742 as_echo='sh -c $as_echo_body as_echo'
10745 # The user is always right.
10746 if test "${PATH_SEPARATOR+set}" != set; then
10748 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10749 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10754 # Support unset when possible.
10755 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10763 # We need space, tab and new line, in precisely that order. Quoting is
10764 # there to prevent editors from complaining about space-tab.
10765 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10766 # splitting by setting IFS to empty value.)
10769 # Find who we are. Look in the path if we contain no directory separator.
10771 *[\\/]* ) as_myself=$0 ;;
10772 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10773 for as_dir in $PATH
10776 test -z "$as_dir" && as_dir=.
10777 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10783 # We did not find ourselves, most probably we were run as `sh COMMAND'
10784 # in which case we are not to be found in the path.
10785 if test "x$as_myself" = x; then
10788 if test ! -f "$as_myself"; then
10789 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10790 { (exit 1); exit 1; }
10793 # Work around bugs in pre-3.0 UWIN ksh.
10794 for as_var in ENV MAIL MAILPATH
10795 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10807 # Required to use basename.
10808 if expr a : '\(a\)' >/dev/null 2>&1 &&
10809 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10815 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10816 as_basename=basename
10822 # Name of the executable.
10823 as_me=`$as_basename -- "$0" ||
10824 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10825 X"$0" : 'X\(//\)$' \| \
10826 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10828 sed '/^.*\/\([^/][^/]*\)\/*$/{
10847 as_lineno_1=$LINENO
10848 as_lineno_2=$LINENO
10849 test "x$as_lineno_1" != "x$as_lineno_2" &&
10850 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10852 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10853 # uniformly replaced by the line number. The first 'sed' inserts a
10854 # line-number line after each line using $LINENO; the second 'sed'
10855 # does the real work. The second script uses 'N' to pair each
10856 # line-number line with the line containing $LINENO, and appends
10857 # trailing '-' during substitution so that $LINENO is not a special
10858 # case at line end.
10859 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10860 # scripts with optimization help from Paolo Bonzini. Blame Lee
10861 # E. McMahon (1931-1989) for sed's syntax. :-)
10873 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10876 ' >$as_me.lineno &&
10877 chmod +x "$as_me.lineno" ||
10878 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10879 { (exit 1); exit 1; }; }
10881 # Don't try to exec as it changes $[0], causing all sort of problems
10882 # (the dirname of $[0] is not the place where we might find the
10883 # original and so on. Autoconf is especially sensitive to this).
10884 . "./$as_me.lineno"
10885 # Exit status is that of the last command.
10890 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10896 ECHO_C= ECHO_N= ECHO_T=
10897 case `echo -n x` in
10899 case `echo 'x\c'` in
10900 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10906 if expr a : '\(a\)' >/dev/null 2>&1 &&
10907 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10913 rm -f conf$$ conf$$.exe conf$$.file
10914 if test -d conf$$.dir; then
10915 rm -f conf$$.dir/conf$$.file
10918 mkdir conf$$.dir 2>/dev/null
10920 if (echo >conf$$.file) 2>/dev/null; then
10921 if ln -s conf$$.file conf$$ 2>/dev/null; then
10923 # ... but there are two gotchas:
10924 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10925 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10926 # In both cases, we have to default to `cp -p'.
10927 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10929 elif ln conf$$.file conf$$ 2>/dev/null; then
10937 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10938 rmdir conf$$.dir 2>/dev/null
10940 if mkdir -p . 2>/dev/null; then
10943 test -d ./-p && rmdir ./-p
10947 if test -x / >/dev/null 2>&1; then
10948 as_test_x='test -x'
10950 if ls -dL / >/dev/null 2>&1; then
10957 if test -d "$1"; then
10963 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10964 ???[sx]*):;;*)false;;esac;fi
10968 as_executable_p=$as_test_x
10970 # Sed expression to map a string onto a valid CPP name.
10971 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10973 # Sed expression to map a string onto a valid variable name.
10974 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10979 # Save the log message, to keep $[0] and so on meaningful, and to
10980 # report actual input values of CONFIG_FILES etc. instead of their
10981 # values after options handling.
10983 This file was extended by $as_me, which was
10984 generated by GNU Autoconf 2.63. Invocation command line was
10986 CONFIG_FILES = $CONFIG_FILES
10987 CONFIG_HEADERS = $CONFIG_HEADERS
10988 CONFIG_LINKS = $CONFIG_LINKS
10989 CONFIG_COMMANDS = $CONFIG_COMMANDS
10992 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10997 case $ac_config_files in *"
10998 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11001 case $ac_config_headers in *"
11002 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11007 # Files that config.status was made for.
11008 config_files="$ac_config_files"
11009 config_headers="$ac_config_headers"
11013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11015 \`$as_me' instantiates files from templates according to the
11016 current configuration.
11018 Usage: $0 [OPTION]... [FILE]...
11020 -h, --help print this help, then exit
11021 -V, --version print version number and configuration settings, then exit
11022 -q, --quiet, --silent
11023 do not print progress messages
11024 -d, --debug don't remove temporary files
11025 --recheck update $as_me by reconfiguring in the same conditions
11026 --file=FILE[:TEMPLATE]
11027 instantiate the configuration file FILE
11028 --header=FILE[:TEMPLATE]
11029 instantiate the configuration header FILE
11031 Configuration files:
11034 Configuration headers:
11037 Report bugs to <bug-autoconf@gnu.org>."
11040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11043 configured by $0, generated by GNU Autoconf 2.63,
11044 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11046 Copyright (C) 2008 Free Software Foundation, Inc.
11047 This config.status script is free software; the Free Software Foundation
11048 gives unlimited permission to copy, distribute and modify it."
11053 test -n "\$AWK" || AWK=awk
11056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11057 # The default lists apply if the user does not specify any file.
11063 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11064 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11075 # Handling of the options.
11076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11078 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11079 $as_echo "$ac_cs_version"; exit ;;
11080 --debug | --debu | --deb | --de | --d | -d )
11082 --file | --fil | --fi | --f )
11085 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11087 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11088 ac_need_defaults=false;;
11089 --header | --heade | --head | --hea )
11092 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11094 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11095 ac_need_defaults=false;;
11097 # Conflict between --help and --header
11098 { $as_echo "$as_me: error: ambiguous option: $1
11099 Try \`$0 --help' for more information." >&2
11100 { (exit 1); exit 1; }; };;
11101 --help | --hel | -h )
11102 $as_echo "$ac_cs_usage"; exit ;;
11103 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11104 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11107 # This is an error.
11108 -*) { $as_echo "$as_me: error: unrecognized option: $1
11109 Try \`$0 --help' for more information." >&2
11110 { (exit 1); exit 1; }; } ;;
11112 *) ac_config_targets="$ac_config_targets $1"
11113 ac_need_defaults=false ;;
11119 ac_configure_extra_args=
11121 if $ac_cs_silent; then
11123 ac_configure_extra_args="$ac_configure_extra_args --silent"
11127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11128 if \$ac_cs_recheck; then
11129 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11131 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11132 CONFIG_SHELL='$SHELL'
11133 export CONFIG_SHELL
11138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11142 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11143 ## Running $as_me. ##
11149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11154 # Handling of arguments.
11155 for ac_config_target in $ac_config_targets
11157 case $ac_config_target in
11158 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11159 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
11161 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11162 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11163 { (exit 1); exit 1; }; };;
11168 # If the user did not use the arguments to specify the items to instantiate,
11169 # then the envvar interface is used. Set only those that are not.
11170 # We use the long form for the default assignment because of an extremely
11171 # bizarre bug on SunOS 4.1.3.
11172 if $ac_need_defaults; then
11173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11174 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11177 # Have a temporary directory for convenience. Make it in the build tree
11178 # simply because there is no reason against having it here, and in addition,
11179 # creating and moving files from /tmp can sometimes cause problems.
11180 # Hook for its removal unless debugging.
11181 # Note that there is a small window in which the directory will not be cleaned:
11182 # after its creation but before its name has been assigned to `$tmp'.
11186 trap 'exit_status=$?
11187 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11189 trap '{ (exit 1); exit 1; }' 1 2 13 15
11191 # Create a (secure) tmp directory for tmp files.
11194 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11195 test -n "$tmp" && test -d "$tmp"
11198 tmp=./conf$$-$RANDOM
11199 (umask 077 && mkdir "$tmp")
11202 $as_echo "$as_me: cannot create a temporary directory in ." >&2
11203 { (exit 1); exit 1; }
11206 # Set up the scripts for CONFIG_FILES section.
11207 # No need to generate them if there are no CONFIG_FILES.
11208 # This happens for instance with `./config.status config.h'.
11209 if test -n "$CONFIG_FILES"; then
11213 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11214 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11217 ac_cs_awk_cr=$ac_cr
11220 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11225 echo "cat >conf$$subs.awk <<_ACEOF" &&
11226 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11228 } >conf$$subs.sh ||
11229 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11230 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11231 { (exit 1); exit 1; }; }
11232 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11234 for ac_last_try in false false false false false :; do
11235 . ./conf$$subs.sh ||
11236 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11237 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11238 { (exit 1); exit 1; }; }
11240 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11241 if test $ac_delim_n = $ac_delim_num; then
11243 elif $ac_last_try; then
11244 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11245 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11246 { (exit 1); exit 1; }; }
11248 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11251 rm -f conf$$subs.sh
11253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11254 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11258 s/^/S["/; s/!.*/"]=/
11268 s/\(.\{148\}\).*/\1/
11270 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11275 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11282 s/\(.\{148\}\).*/\1/
11284 s/["\\]/\\&/g; s/^/"/; s/$/"/
11288 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11293 ' <conf$$subs.awk | sed '
11298 ' >>$CONFIG_STATUS || ac_write_fail=1
11299 rm -f conf$$subs.awk
11300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11302 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11303 for (key in S) S_is_set[key] = 1
11309 nfields = split(line, field, "@")
11311 len = length(field[1])
11312 for (i = 2; i < nfields; i++) {
11314 keylen = length(key)
11315 if (S_is_set[key]) {
11317 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11318 len += length(value) + length(field[++i])
11329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11330 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11331 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11334 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11335 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11336 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11337 { (exit 1); exit 1; }; }
11340 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11341 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11342 # trailing colons and then remove the whole line if VPATH becomes empty
11343 # (actually we leave an empty line to preserve line numbers).
11344 if test "x$srcdir" = x.; then
11345 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11346 s/:*\$(srcdir):*/:/
11347 s/:*\${srcdir}:*/:/
11349 s/^\([^=]*=[ ]*\):*/\1/
11355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11356 fi # test -n "$CONFIG_FILES"
11358 # Set up the scripts for CONFIG_HEADERS section.
11359 # No need to generate them if there are no CONFIG_HEADERS.
11360 # This happens for instance with `./config.status Makefile'.
11361 if test -n "$CONFIG_HEADERS"; then
11362 cat >"$tmp/defines.awk" <<\_ACAWK ||
11366 # Transform confdefs.h into an awk script `defines.awk', embedded as
11367 # here-document in config.status, that substitutes the proper values into
11368 # config.h.in to produce config.h.
11370 # Create a delimiter string that does not exist in confdefs.h, to ease
11371 # handling of long lines.
11373 for ac_last_try in false false :; do
11374 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11375 if test -z "$ac_t"; then
11377 elif $ac_last_try; then
11378 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11379 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11380 { (exit 1); exit 1; }; }
11382 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11386 # For the awk script, D is an array of macro values keyed by name,
11387 # likewise P contains macro parameters if any. Preserve backslash
11388 # newline sequences.
11390 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11392 s/.\{148\}/&'"$ac_delim"'/g
11395 s/^[ ]*#[ ]*define[ ][ ]*/ /
11402 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11404 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11408 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11409 D["\1"]=" \3\\\\\\n"\\/p
11411 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11416 s/.\{148\}/&'"$ac_delim"'/g
11421 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11424 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11426 ' <confdefs.h | sed '
11427 s/'"$ac_delim"'/"\\\
11428 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11431 for (key in D) D_is_set[key] = 1
11434 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11436 split(line, arg, " ")
11437 if (arg[1] == "#") {
11441 defundef = substr(arg[1], 2)
11444 split(mac1, mac2, "(") #)
11446 prefix = substr(line, 1, index(line, defundef) - 1)
11447 if (D_is_set[macro]) {
11448 # Preserve the white space surrounding the "#".
11449 print prefix "define", macro P[macro] D[macro]
11452 # Replace #undef with comments. This is necessary, for example,
11453 # in the case of _POSIX_SOURCE, which is predefined and required
11454 # on some systems where configure will not decide to define it.
11455 if (defundef == "undef") {
11456 print "/*", prefix defundef, macro, "*/"
11464 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11465 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11466 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11467 { (exit 1); exit 1; }; }
11468 fi # test -n "$CONFIG_HEADERS"
11471 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11476 :[FHLC]) ac_mode=$ac_tag; continue;;
11478 case $ac_mode$ac_tag in
11480 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11481 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11482 { (exit 1); exit 1; }; };;
11483 :[FH]-) ac_tag=-:-;;
11484 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11501 -) ac_f="$tmp/stdin";;
11502 *) # Look for the file first in the build tree, then in the source tree
11503 # (if the path is not absolute). The absolute path cannot be DOS-style,
11504 # because $ac_f cannot contain `:'.
11508 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11510 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11511 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11512 { (exit 1); exit 1; }; };;
11514 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11515 ac_file_inputs="$ac_file_inputs '$ac_f'"
11518 # Let's still pretend it is `configure' which instantiates (i.e., don't
11519 # use $as_me), people would be surprised to read:
11520 # /* config.h. Generated by config.status. */
11521 configure_input='Generated from '`
11522 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11524 if test x"$ac_file" != x-; then
11525 configure_input="$ac_file. $configure_input"
11526 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11527 $as_echo "$as_me: creating $ac_file" >&6;}
11529 # Neutralize special characters interpreted by sed in replacement strings.
11530 case $configure_input in #(
11531 *\&* | *\|* | *\\* )
11532 ac_sed_conf_input=`$as_echo "$configure_input" |
11533 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11534 *) ac_sed_conf_input=$configure_input;;
11538 *:-:* | *:-) cat >"$tmp/stdin" \
11539 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11540 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11541 { (exit 1); exit 1; }; } ;;
11546 ac_dir=`$as_dirname -- "$ac_file" ||
11547 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11548 X"$ac_file" : 'X\(//\)[^/]' \| \
11549 X"$ac_file" : 'X\(//\)$' \| \
11550 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11551 $as_echo X"$ac_file" |
11552 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11556 /^X\(\/\/\)[^/].*/{
11571 -*) as_dir=./$as_dir;;
11573 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11577 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11578 *) as_qdir=$as_dir;;
11580 as_dirs="'$as_qdir' $as_dirs"
11581 as_dir=`$as_dirname -- "$as_dir" ||
11582 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11583 X"$as_dir" : 'X\(//\)[^/]' \| \
11584 X"$as_dir" : 'X\(//\)$' \| \
11585 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11586 $as_echo X"$as_dir" |
11587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11591 /^X\(\/\/\)[^/].*/{
11604 test -d "$as_dir" && break
11606 test -z "$as_dirs" || eval "mkdir $as_dirs"
11607 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11608 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11609 { (exit 1); exit 1; }; }; }
11613 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11615 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11616 # A ".." for each directory in $ac_dir_suffix.
11617 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11618 case $ac_top_builddir_sub in
11619 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11620 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11623 ac_abs_top_builddir=$ac_pwd
11624 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11625 # for backward compatibility:
11626 ac_top_builddir=$ac_top_build_prefix
11629 .) # We are building in place.
11631 ac_top_srcdir=$ac_top_builddir_sub
11632 ac_abs_top_srcdir=$ac_pwd ;;
11633 [\\/]* | ?:[\\/]* ) # Absolute name.
11634 ac_srcdir=$srcdir$ac_dir_suffix;
11635 ac_top_srcdir=$srcdir
11636 ac_abs_top_srcdir=$srcdir ;;
11637 *) # Relative name.
11638 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11639 ac_top_srcdir=$ac_top_build_prefix$srcdir
11640 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11642 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11652 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11653 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11657 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11658 # If the template does not know about datarootdir, expand it.
11659 # FIXME: This hack should be removed a few years after 2.60.
11660 ac_datarootdir_hack=; ac_datarootdir_seen=
11673 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11674 *datarootdir*) ac_datarootdir_seen=yes;;
11675 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11676 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11677 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11680 ac_datarootdir_hack='
11681 s&@datadir@&$datadir&g
11682 s&@docdir@&$docdir&g
11683 s&@infodir@&$infodir&g
11684 s&@localedir@&$localedir&g
11685 s&@mandir@&$mandir&g
11686 s&\\\${datarootdir}&$datarootdir&g' ;;
11690 # Neutralize VPATH when `$srcdir' = `.'.
11691 # Shell code in configure.ac might set extrasub.
11692 # FIXME: do we really want to maintain this feature?
11693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11694 ac_sed_extra="$ac_vpsub
11697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11699 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11700 s|@configure_input@|$ac_sed_conf_input|;t t
11701 s&@top_builddir@&$ac_top_builddir_sub&;t t
11702 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11703 s&@srcdir@&$ac_srcdir&;t t
11704 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11705 s&@top_srcdir@&$ac_top_srcdir&;t t
11706 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11707 s&@builddir@&$ac_builddir&;t t
11708 s&@abs_builddir@&$ac_abs_builddir&;t t
11709 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11710 s&@INSTALL@&$ac_INSTALL&;t t
11711 $ac_datarootdir_hack
11713 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11714 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11715 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11716 { (exit 1); exit 1; }; }
11718 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11719 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11720 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11721 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11722 which seems to be undefined. Please make sure it is defined." >&5
11723 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11724 which seems to be undefined. Please make sure it is defined." >&2;}
11728 -) cat "$tmp/out" && rm -f "$tmp/out";;
11729 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11731 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11732 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11733 { (exit 1); exit 1; }; }
11739 if test x"$ac_file" != x-; then
11741 $as_echo "/* $configure_input */" \
11742 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11743 } >"$tmp/config.h" \
11744 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11745 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11746 { (exit 1); exit 1; }; }
11747 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11748 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11749 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11752 mv "$tmp/config.h" "$ac_file" \
11753 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11754 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11755 { (exit 1); exit 1; }; }
11758 $as_echo "/* $configure_input */" \
11759 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11760 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11761 $as_echo "$as_me: error: could not create -" >&2;}
11762 { (exit 1); exit 1; }; }
11772 { (exit 0); exit 0; }
11774 chmod +x $CONFIG_STATUS
11775 ac_clean_files=$ac_clean_files_save
11777 test $ac_write_fail = 0 ||
11778 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11779 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11780 { (exit 1); exit 1; }; }
11783 # configure is writing to config.log, and then calls config.status.
11784 # config.status does its own redirection, appending to config.log.
11785 # Unfortunately, on DOS this fails, as config.log is still kept open
11786 # by configure, so config.status won't be able to write to it; its
11787 # output is simply discarded. So we exec the FD to /dev/null,
11788 # effectively closing config.log, so it can be properly (re)opened and
11789 # appended to by config.status. When coming back to configure, we
11790 # need to make the FD available again.
11791 if test "$no_create" != yes; then
11793 ac_config_status_args=
11794 test "$silent" = yes &&
11795 ac_config_status_args="$ac_config_status_args --quiet"
11797 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11799 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11800 # would make configure fail if this is the last instruction.
11801 $ac_cs_success || { (exit 1); exit 1; }
11803 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11804 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11805 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11811 # On development trees, create snapshots of config.status
11813 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11814 if test "x${MINGW}" = "xyes"; then
11815 echo cp config.status config.status.win32
11816 cp config.status config.status.win32
11818 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
11819 echo cp config.status config.status.linux
11820 cp config.status config.status.linux
11822 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
11823 echo cp config.status config.status.debug
11824 cp config.status config.status.debug
11826 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
11827 echo cp config.status config.status.optimize
11828 cp config.status config.status.optimize