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
730 program_transform_name
742 enable_option_checking
750 ac_precious_vars='build_alias
764 # Initialize some variables set by options.
766 ac_init_version=false
767 ac_unrecognized_opts=
769 # The variables have the same names as the options, with
770 # dashes changed to underlines.
778 program_transform_name=s,x,x,
786 # Installation directory options.
787 # These are left unexpanded so users can "make install exec_prefix=/foo"
788 # and all the variables that are supposed to be based on exec_prefix
789 # by default will actually change.
790 # Use braces instead of parens because sh, perl, etc. also accept them.
791 # (The list follows the same order as the GNU Coding Standards.)
792 bindir='${exec_prefix}/bin'
793 sbindir='${exec_prefix}/sbin'
794 libexecdir='${exec_prefix}/libexec'
795 datarootdir='${prefix}/share'
796 datadir='${datarootdir}'
797 sysconfdir='${prefix}/etc'
798 sharedstatedir='${prefix}/com'
799 localstatedir='${prefix}/var'
800 includedir='${prefix}/include'
801 oldincludedir='/usr/include'
802 docdir='${datarootdir}/doc/${PACKAGE}'
803 infodir='${datarootdir}/info'
808 libdir='${exec_prefix}/lib'
809 localedir='${datarootdir}/locale'
810 mandir='${datarootdir}/man'
816 # If the previous option needs an argument, assign it.
817 if test -n "$ac_prev"; then
818 eval $ac_prev=\$ac_option
824 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
828 # Accept the important Cygnus configure options, so we can diagnose typos.
830 case $ac_dashdash$ac_option in
834 -bindir | --bindir | --bindi | --bind | --bin | --bi)
836 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
839 -build | --build | --buil | --bui | --bu)
840 ac_prev=build_alias ;;
841 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
842 build_alias=$ac_optarg ;;
844 -cache-file | --cache-file | --cache-fil | --cache-fi \
845 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
846 ac_prev=cache_file ;;
847 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
848 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
849 cache_file=$ac_optarg ;;
852 cache_file=config.cache ;;
854 -datadir | --datadir | --datadi | --datad)
856 -datadir=* | --datadir=* | --datadi=* | --datad=*)
857 datadir=$ac_optarg ;;
859 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
860 | --dataroo | --dataro | --datar)
861 ac_prev=datarootdir ;;
862 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
863 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
864 datarootdir=$ac_optarg ;;
866 -disable-* | --disable-*)
867 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
868 # Reject names that are not valid shell variable names.
869 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
870 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
871 { (exit 1); exit 1; }; }
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
881 eval enable_$ac_useropt=no ;;
883 -docdir | --docdir | --docdi | --doc | --do)
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
898 { (exit 1); exit 1; }; }
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
908 eval enable_$ac_useropt=\$ac_optarg ;;
910 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
911 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
912 | --exec | --exe | --ex)
913 ac_prev=exec_prefix ;;
914 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
915 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
916 | --exec=* | --exe=* | --ex=*)
917 exec_prefix=$ac_optarg ;;
919 -gas | --gas | --ga | --g)
920 # Obsolete; use --with-gas.
923 -help | --help | --hel | --he | -h)
925 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
926 ac_init_help=recursive ;;
927 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
928 ac_init_help=short ;;
930 -host | --host | --hos | --ho)
931 ac_prev=host_alias ;;
932 -host=* | --host=* | --hos=* | --ho=*)
933 host_alias=$ac_optarg ;;
935 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
937 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
939 htmldir=$ac_optarg ;;
941 -includedir | --includedir | --includedi | --included | --include \
942 | --includ | --inclu | --incl | --inc)
943 ac_prev=includedir ;;
944 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
945 | --includ=* | --inclu=* | --incl=* | --inc=*)
946 includedir=$ac_optarg ;;
948 -infodir | --infodir | --infodi | --infod | --info | --inf)
950 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
951 infodir=$ac_optarg ;;
953 -libdir | --libdir | --libdi | --libd)
955 -libdir=* | --libdir=* | --libdi=* | --libd=*)
958 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
959 | --libexe | --libex | --libe)
960 ac_prev=libexecdir ;;
961 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
962 | --libexe=* | --libex=* | --libe=*)
963 libexecdir=$ac_optarg ;;
965 -localedir | --localedir | --localedi | --localed | --locale)
967 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
968 localedir=$ac_optarg ;;
970 -localstatedir | --localstatedir | --localstatedi | --localstated \
971 | --localstate | --localstat | --localsta | --localst | --locals)
972 ac_prev=localstatedir ;;
973 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
974 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
975 localstatedir=$ac_optarg ;;
977 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
979 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
983 # Obsolete; use --without-fp.
986 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
987 | --no-cr | --no-c | -n)
990 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
991 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
994 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
995 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
996 | --oldin | --oldi | --old | --ol | --o)
997 ac_prev=oldincludedir ;;
998 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
999 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1000 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1001 oldincludedir=$ac_optarg ;;
1003 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1005 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1006 prefix=$ac_optarg ;;
1008 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1009 | --program-pre | --program-pr | --program-p)
1010 ac_prev=program_prefix ;;
1011 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1012 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1013 program_prefix=$ac_optarg ;;
1015 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1016 | --program-suf | --program-su | --program-s)
1017 ac_prev=program_suffix ;;
1018 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1019 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1020 program_suffix=$ac_optarg ;;
1022 -program-transform-name | --program-transform-name \
1023 | --program-transform-nam | --program-transform-na \
1024 | --program-transform-n | --program-transform- \
1025 | --program-transform | --program-transfor \
1026 | --program-transfo | --program-transf \
1027 | --program-trans | --program-tran \
1028 | --progr-tra | --program-tr | --program-t)
1029 ac_prev=program_transform_name ;;
1030 -program-transform-name=* | --program-transform-name=* \
1031 | --program-transform-nam=* | --program-transform-na=* \
1032 | --program-transform-n=* | --program-transform-=* \
1033 | --program-transform=* | --program-transfor=* \
1034 | --program-transfo=* | --program-transf=* \
1035 | --program-trans=* | --program-tran=* \
1036 | --progr-tra=* | --program-tr=* | --program-t=*)
1037 program_transform_name=$ac_optarg ;;
1039 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1041 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1042 pdfdir=$ac_optarg ;;
1044 -psdir | --psdir | --psdi | --psd | --ps)
1046 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1049 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1050 | -silent | --silent | --silen | --sile | --sil)
1053 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1055 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1057 sbindir=$ac_optarg ;;
1059 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1060 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1061 | --sharedst | --shareds | --shared | --share | --shar \
1063 ac_prev=sharedstatedir ;;
1064 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1065 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1066 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1068 sharedstatedir=$ac_optarg ;;
1070 -site | --site | --sit)
1072 -site=* | --site=* | --sit=*)
1075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1078 srcdir=$ac_optarg ;;
1080 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1081 | --syscon | --sysco | --sysc | --sys | --sy)
1082 ac_prev=sysconfdir ;;
1083 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1084 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1085 sysconfdir=$ac_optarg ;;
1087 -target | --target | --targe | --targ | --tar | --ta | --t)
1088 ac_prev=target_alias ;;
1089 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1090 target_alias=$ac_optarg ;;
1092 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1095 -version | --version | --versio | --versi | --vers | -V)
1096 ac_init_version=: ;;
1099 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1103 { (exit 1); exit 1; }; }
1104 ac_useropt_orig=$ac_useropt
1105 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106 case $ac_user_opts in
1110 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1111 ac_unrecognized_sep=', ';;
1113 eval with_$ac_useropt=\$ac_optarg ;;
1115 -without-* | --without-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1120 { (exit 1); exit 1; }; }
1121 ac_useropt_orig=$ac_useropt
1122 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1123 case $ac_user_opts in
1127 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1128 ac_unrecognized_sep=', ';;
1130 eval with_$ac_useropt=no ;;
1133 # Obsolete; use --with-x.
1136 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1137 | --x-incl | --x-inc | --x-in | --x-i)
1138 ac_prev=x_includes ;;
1139 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1140 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1141 x_includes=$ac_optarg ;;
1143 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1144 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1145 ac_prev=x_libraries ;;
1146 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1147 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1148 x_libraries=$ac_optarg ;;
1150 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1151 Try \`$0 --help' for more information." >&2
1152 { (exit 1); exit 1; }; }
1156 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1159 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1160 { (exit 1); exit 1; }; }
1161 eval $ac_envvar=\$ac_optarg
1162 export $ac_envvar ;;
1165 # FIXME: should be removed in autoconf 3.0.
1166 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1167 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1169 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1175 if test -n "$ac_prev"; then
1176 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1177 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1178 { (exit 1); exit 1; }; }
1181 if test -n "$ac_unrecognized_opts"; then
1182 case $enable_option_checking in
1184 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1185 { (exit 1); exit 1; }; } ;;
1186 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1190 # Check all directory arguments for consistency.
1191 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1192 datadir sysconfdir sharedstatedir localstatedir includedir \
1193 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1194 libdir localedir mandir
1196 eval ac_val=\$$ac_var
1197 # Remove trailing slashes.
1200 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1201 eval $ac_var=\$ac_val;;
1203 # Be sure to have absolute directory names.
1205 [\\/$]* | ?:[\\/]* ) continue;;
1206 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1208 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1209 { (exit 1); exit 1; }; }
1212 # There might be people who depend on the old broken behavior: `$host'
1213 # used to hold the argument of --host etc.
1214 # FIXME: To remove some day.
1217 target=$target_alias
1219 # FIXME: To remove some day.
1220 if test "x$host_alias" != x; then
1221 if test "x$build_alias" = x; then
1222 cross_compiling=maybe
1223 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1224 If a cross compiler is detected then cross compile mode will be used." >&2
1225 elif test "x$build_alias" != "x$host_alias"; then
1231 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233 test "$silent" = yes && exec 6>/dev/null
1236 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1237 ac_ls_di=`ls -di .` &&
1238 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1239 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1240 { (exit 1); exit 1; }; }
1241 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1243 { (exit 1); exit 1; }; }
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1278 ac_srcdir_defaulted=no
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1283 { (exit 1); exit 1; }; }
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1288 { (exit 1); exit 1; }; }
1290 # When building in place, set srcdir=.
1291 if test "$ac_abs_confdir" = "$ac_pwd"; then
1294 # Remove unnecessary trailing slashes from srcdir.
1295 # Double slashes in file names in object file debugging info
1296 # mess up M-x gdb in Emacs.
1298 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1300 for ac_var in $ac_precious_vars; do
1301 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_env_${ac_var}_value=\$${ac_var}
1303 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1308 # Report the --help message.
1310 if test "$ac_init_help" = "long"; then
1311 # Omit some internal or obsolete options to make the list less imposing.
1312 # This message is too long to be a string in the A/UX 3.1 sh.
1314 \`configure' configures this package to adapt to many kinds of systems.
1316 Usage: $0 [OPTION]... [VAR=VALUE]...
1318 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1319 VAR=VALUE. See below for descriptions of some of the useful variables.
1321 Defaults for the options are specified in brackets.
1324 -h, --help display this help and exit
1325 --help=short display options specific to this package
1326 --help=recursive display the short help of all the included packages
1327 -V, --version display version information and exit
1328 -q, --quiet, --silent do not print \`checking...' messages
1329 --cache-file=FILE cache test results in FILE [disabled]
1330 -C, --config-cache alias for \`--cache-file=config.cache'
1331 -n, --no-create do not create output files
1332 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1334 Installation directories:
1335 --prefix=PREFIX install architecture-independent files in PREFIX
1336 [$ac_default_prefix]
1337 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1340 By default, \`make install' will install all the files in
1341 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1342 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1343 for instance \`--prefix=\$HOME'.
1345 For better control, use the options below.
1347 Fine tuning of the installation directories:
1348 --bindir=DIR user executables [EPREFIX/bin]
1349 --sbindir=DIR system admin executables [EPREFIX/sbin]
1350 --libexecdir=DIR program executables [EPREFIX/libexec]
1351 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1352 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1353 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1354 --libdir=DIR object code libraries [EPREFIX/lib]
1355 --includedir=DIR C header files [PREFIX/include]
1356 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1357 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1358 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1359 --infodir=DIR info documentation [DATAROOTDIR/info]
1360 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1361 --mandir=DIR man documentation [DATAROOTDIR/man]
1362 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1363 --htmldir=DIR html documentation [DOCDIR]
1364 --dvidir=DIR dvi documentation [DOCDIR]
1365 --pdfdir=DIR pdf documentation [DOCDIR]
1366 --psdir=DIR ps documentation [DOCDIR]
1372 --program-prefix=PREFIX prepend PREFIX to installed program names
1373 --program-suffix=SUFFIX append SUFFIX to installed program names
1374 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1383 if test -n "$ac_init_help"; then
1388 --disable-option-checking ignore unrecognized --enable/--with options
1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1391 --enable-checkmem turn on ccmalloc debugging
1392 --enable-debug turn on debugging
1393 --enable-profiling turn on profiling
1394 --enable-warnings turn on compiler warnings
1395 --enable-optimizations turn on compiler optimizations (recommended for avi2swf)
1396 --disable-lame don't compile any L.A.M.E. mp3 encoding code in
1398 Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
1403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
1406 CXX C++ compiler command
1407 CXXFLAGS C++ compiler flags
1410 Use these variables to override the choices made by `configure' or to help
1411 it to find libraries and programs with nonstandard names/locations.
1417 if test "$ac_init_help" = "recursive"; then
1418 # If there are subdirs, report their specific --help.
1419 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1420 test -d "$ac_dir" ||
1421 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1426 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1428 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1429 # A ".." for each directory in $ac_dir_suffix.
1430 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1431 case $ac_top_builddir_sub in
1432 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 ac_abs_top_builddir=$ac_pwd
1437 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1438 # for backward compatibility:
1439 ac_top_builddir=$ac_top_build_prefix
1442 .) # We are building in place.
1444 ac_top_srcdir=$ac_top_builddir_sub
1445 ac_abs_top_srcdir=$ac_pwd ;;
1446 [\\/]* | ?:[\\/]* ) # Absolute name.
1447 ac_srcdir=$srcdir$ac_dir_suffix;
1448 ac_top_srcdir=$srcdir
1449 ac_abs_top_srcdir=$srcdir ;;
1451 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1452 ac_top_srcdir=$ac_top_build_prefix$srcdir
1453 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1455 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1457 cd "$ac_dir" || { ac_status=$?; continue; }
1458 # Check for guested configure.
1459 if test -f "$ac_srcdir/configure.gnu"; then
1461 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1462 elif test -f "$ac_srcdir/configure"; then
1464 $SHELL "$ac_srcdir/configure" --help=recursive
1466 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1468 cd "$ac_pwd" || { ac_status=$?; break; }
1472 test -n "$ac_init_help" && exit $ac_status
1473 if $ac_init_version; then
1476 generated by GNU Autoconf 2.63
1478 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1479 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1480 This configure script is free software; the Free Software Foundation
1481 gives unlimited permission to copy, distribute and modify it.
1485 cat >config.log <<_ACEOF
1486 This file contains any messages produced by compilers while
1487 running configure, to aid debugging if configure makes a mistake.
1489 It was created by $as_me, which was
1490 generated by GNU Autoconf 2.63. Invocation command line was
1502 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1503 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1504 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1505 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1506 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1508 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1509 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1511 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1512 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1513 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1514 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1515 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1516 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1517 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1525 test -z "$as_dir" && as_dir=.
1526 $as_echo "PATH: $as_dir"
1542 # Keep a trace of the command line.
1543 # Strip out --no-create and --no-recursion so they do not pile up.
1544 # Strip out --silent because we don't want to record it for future runs.
1545 # Also quote any args containing shell meta-characters.
1546 # Make two passes to allow for proper duplicate-argument suppression.
1550 ac_must_keep_next=false
1556 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1558 | -silent | --silent | --silen | --sile | --sil)
1561 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1564 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1566 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1567 if test $ac_must_keep_next = true; then
1568 ac_must_keep_next=false # Got value, back to normal.
1571 *=* | --config-cache | -C | -disable-* | --disable-* \
1572 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1573 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1574 | -with-* | --with-* | -without-* | --without-* | --x)
1575 case "$ac_configure_args0 " in
1576 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1579 -* ) ac_must_keep_next=true ;;
1582 ac_configure_args="$ac_configure_args '$ac_arg'"
1587 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1588 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1590 # When interrupted or exit'd, cleanup temporary files, and complete
1591 # config.log. We remove comments because anyway the quotes in there
1592 # would cause problems or look ugly.
1593 # WARNING: Use '\'' to represent an apostrophe within the trap.
1594 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1595 trap 'exit_status=$?
1596 # Save into config.log some information that might help in debugging.
1601 ## ---------------- ##
1602 ## Cache variables. ##
1603 ## ---------------- ##
1606 # The following way of writing the cache mishandles newlines in values,
1608 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1609 eval ac_val=\$$ac_var
1613 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1614 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1617 _ | IFS | as_nl) ;; #(
1618 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1619 *) $as_unset $ac_var ;;
1624 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1625 *${as_nl}ac_space=\ *)
1627 "s/'\''/'\''\\\\'\'''\''/g;
1628 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1631 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1639 ## ----------------- ##
1640 ## Output variables. ##
1641 ## ----------------- ##
1644 for ac_var in $ac_subst_vars
1646 eval ac_val=\$$ac_var
1648 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1650 $as_echo "$ac_var='\''$ac_val'\''"
1654 if test -n "$ac_subst_files"; then
1656 ## ------------------- ##
1657 ## File substitutions. ##
1658 ## ------------------- ##
1661 for ac_var in $ac_subst_files
1663 eval ac_val=\$$ac_var
1665 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1667 $as_echo "$ac_var='\''$ac_val'\''"
1672 if test -s confdefs.h; then
1682 test "$ac_signal" != 0 &&
1683 $as_echo "$as_me: caught signal $ac_signal"
1684 $as_echo "$as_me: exit $exit_status"
1686 rm -f core *.core core.conftest.* &&
1687 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1690 for ac_signal in 1 2 13 15; do
1691 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1695 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1696 rm -f -r conftest* confdefs.h
1698 # Predefined preprocessor variables.
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_NAME "$PACKAGE_NAME"
1705 cat >>confdefs.h <<_ACEOF
1706 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1710 cat >>confdefs.h <<_ACEOF
1711 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1715 cat >>confdefs.h <<_ACEOF
1716 #define PACKAGE_STRING "$PACKAGE_STRING"
1720 cat >>confdefs.h <<_ACEOF
1721 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1725 # Let the site file select an alternate cache file if it wants to.
1726 # Prefer an explicitly selected file to automatically selected ones.
1729 if test -n "$CONFIG_SITE"; then
1730 ac_site_file1=$CONFIG_SITE
1731 elif test "x$prefix" != xNONE; then
1732 ac_site_file1=$prefix/share/config.site
1733 ac_site_file2=$prefix/etc/config.site
1735 ac_site_file1=$ac_default_prefix/share/config.site
1736 ac_site_file2=$ac_default_prefix/etc/config.site
1738 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1740 test "x$ac_site_file" = xNONE && continue
1741 if test -r "$ac_site_file"; then
1742 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1743 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1744 sed 's/^/| /' "$ac_site_file" >&5
1749 if test -r "$cache_file"; then
1750 # Some versions of bash will fail to source /dev/null (special
1751 # files actually), so we avoid doing that.
1752 if test -f "$cache_file"; then
1753 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1754 $as_echo "$as_me: loading cache $cache_file" >&6;}
1756 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1757 *) . "./$cache_file";;
1761 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1762 $as_echo "$as_me: creating cache $cache_file" >&6;}
1766 # Check that the precious variables saved in the cache have kept the same
1768 ac_cache_corrupted=false
1769 for ac_var in $ac_precious_vars; do
1770 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1771 eval ac_new_set=\$ac_env_${ac_var}_set
1772 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1773 eval ac_new_val=\$ac_env_${ac_var}_value
1774 case $ac_old_set,$ac_new_set in
1776 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1777 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1778 ac_cache_corrupted=: ;;
1780 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1781 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1782 ac_cache_corrupted=: ;;
1785 if test "x$ac_old_val" != "x$ac_new_val"; then
1786 # differences in whitespace do not lead to failure.
1787 ac_old_val_w=`echo x $ac_old_val`
1788 ac_new_val_w=`echo x $ac_new_val`
1789 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1790 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1791 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1792 ac_cache_corrupted=:
1794 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1795 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1796 eval $ac_var=\$ac_old_val
1798 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1799 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1800 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1801 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1804 # Pass precious variables to config.status.
1805 if test "$ac_new_set" = set; then
1807 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1808 *) ac_arg=$ac_var=$ac_new_val ;;
1810 case " $ac_configure_args " in
1811 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1812 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1816 if $ac_cache_corrupted; then
1817 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1819 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1820 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1821 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1822 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1823 { (exit 1); exit 1; }; }
1843 ac_cpp='$CPP $CPPFLAGS'
1844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1851 # Check whether --enable-checkmem was given.
1852 if test "${enable_checkmem+set}" = set; then
1853 enableval=$enable_checkmem; CHECKMEM=true
1856 # Check whether --enable-debug was given.
1857 if test "${enable_debug+set}" = set; then
1858 enableval=$enable_debug; DEBUG=true
1861 # Check whether --enable-profiling was given.
1862 if test "${enable_profiling+set}" = set; then
1863 enableval=$enable_profiling; PROFILING=true
1866 # Check whether --enable-warnings was given.
1867 if test "${enable_warnings+set}" = set; then
1868 enableval=$enable_warnings; ENABLE_WARNINGS=true
1871 # Check whether --enable-optimizations was given.
1872 if test "${enable_optimizations+set}" = set; then
1873 enableval=$enable_optimizations; OPTIMIZE=true
1876 # Check whether --enable-lame was given.
1877 if test "${enable_lame+set}" = set; then
1878 enableval=$enable_lame; if test "x$enable_lame" = "xno";then
1887 VERSION=2009-08-12-1514
1890 # ------------------------------------------------------------------
1892 if test "x${srcdir}" != "x."; then
1893 echo "--srcdir is not supported"
1897 WARNINGS="-Wparentheses -Wimplicit -Wreturn-type"
1898 if test "x$ENABLE_WARNINGS" '!=' "x";then
1899 WARNINGS="-Wall -Wno-unused -Wno-format -Wno-redundant-decls -D_FORTIFY_SOURCE=2 "
1902 if test "x$CHECKMEM" '!=' "x";then
1905 if test "x$PROFILING" '!=' "x";then
1908 if test "x$DEBUG" '!=' "x";then
1909 if test "x$PROFILING" = "x";then
1910 CFLAGS="$WARNINGS -O2 -g $CFLAGS"
1911 CXXFLAGS="$WARNINGS -O2 -g $CXXFLAGS"
1914 CFLAGS="$WARNINGS -O2 -g -pg $CFLAGS"
1915 CXXFLAGS="$WARNINGS -O2 -g -pg $CXXFLAGS"
1916 LDFLAGS="-g -pg $LIBS"
1918 else if test "x$OPTIMIZE" '!=' "x"; then
1919 CFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CFLAGS"
1920 CXXFLAGS="$WARNINGS -O3 -fomit-frame-pointer -Winline $CXXFLAGS"
1922 CFLAGS="$WARNINGS -O -fomit-frame-pointer $CFLAGS"
1923 CXXFLAGS="$WARNINGS -O -fomit-frame-pointer $CXXFLAGS"
1927 CFLAGS="-fPIC $CFLAGS"
1928 CXXFLAGS="-fPIC $CFLAGS"
1931 #if test "x$OLDGCC" '!=' "x";then
1932 # #CFLAGS="$CFLAGS --std=c89 -ansi -pendantic"
1933 # #CXXFLAGS="$CXXFLAGS --std=c89 -ansi -pendantic"
1934 # CFLAGS="$CFLAGS -ansi -pendantic"
1935 # CXXFLAGS="$CXXFLAGS -ansi -pendantic"
1938 export PACKAGE VERSION CFLAGS CXXFLAGS
1942 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1943 if test -f "$ac_dir/install-sh"; then
1945 ac_install_sh="$ac_aux_dir/install-sh -c"
1947 elif test -f "$ac_dir/install.sh"; then
1949 ac_install_sh="$ac_aux_dir/install.sh -c"
1951 elif test -f "$ac_dir/shtool"; then
1953 ac_install_sh="$ac_aux_dir/shtool install -c"
1957 if test -z "$ac_aux_dir"; then
1958 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1959 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1960 { (exit 1); exit 1; }; }
1963 # These three variables are undocumented and unsupported,
1964 # and are intended to be withdrawn in a future Autoconf release.
1965 # They can cause serious problems if a builder's source tree is in a directory
1966 # whose full name contains unusual characters.
1967 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1968 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1969 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1972 # Make sure we can run config.sub.
1973 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1974 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1975 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1976 { (exit 1); exit 1; }; }
1978 { $as_echo "$as_me:$LINENO: checking build system type" >&5
1979 $as_echo_n "checking build system type... " >&6; }
1980 if test "${ac_cv_build+set}" = set; then
1981 $as_echo_n "(cached) " >&6
1983 ac_build_alias=$build_alias
1984 test "x$ac_build_alias" = x &&
1985 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1986 test "x$ac_build_alias" = x &&
1987 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1988 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1989 { (exit 1); exit 1; }; }
1990 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1991 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1992 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1993 { (exit 1); exit 1; }; }
1996 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1997 $as_echo "$ac_cv_build" >&6; }
1998 case $ac_cv_build in
2000 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2001 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2002 { (exit 1); exit 1; }; };;
2005 ac_save_IFS=$IFS; IFS='-'
2011 # Remember, the first character of IFS is used to create $*,
2012 # except with old shells:
2015 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2018 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2019 $as_echo_n "checking host system type... " >&6; }
2020 if test "${ac_cv_host+set}" = set; then
2021 $as_echo_n "(cached) " >&6
2023 if test "x$host_alias" = x; then
2024 ac_cv_host=$ac_cv_build
2026 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2027 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2028 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2029 { (exit 1); exit 1; }; }
2033 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2034 $as_echo "$ac_cv_host" >&6; }
2037 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2038 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2039 { (exit 1); exit 1; }; };;
2042 ac_save_IFS=$IFS; IFS='-'
2048 # Remember, the first character of IFS is used to create $*,
2049 # except with old shells:
2052 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2062 CXXFLAGS="$CXXFLAGS -fno-rtti"
2064 if test -d /opt/local/include && test -d /opt/local/lib; then
2065 CPPFLAGS="${CPPFLAGS} -I/opt/local/include"
2066 LDFLAGS="${LDFLAGS} -L/opt/local/lib"
2068 # Use fink packages if available.
2069 #if test -d /sw/include && test -d /sw/lib; then
2070 # CPPFLAGS="${CPPFLAGS} -I/sw/include"
2071 # LDFLAGS="${LDFLAGS} -L/sw/lib"
2079 ac_cpp='$CPP $CPPFLAGS'
2080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2083 if test -n "$ac_tool_prefix"; then
2084 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2085 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2086 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2087 $as_echo_n "checking for $ac_word... " >&6; }
2088 if test "${ac_cv_prog_CC+set}" = set; then
2089 $as_echo_n "(cached) " >&6
2091 if test -n "$CC"; then
2092 ac_cv_prog_CC="$CC" # Let the user override the test.
2094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 test -z "$as_dir" && as_dir=.
2099 for ac_exec_ext in '' $ac_executable_extensions; do
2100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2101 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2102 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2112 if test -n "$CC"; then
2113 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2114 $as_echo "$CC" >&6; }
2116 { $as_echo "$as_me:$LINENO: result: no" >&5
2117 $as_echo "no" >&6; }
2122 if test -z "$ac_cv_prog_CC"; then
2124 # Extract the first word of "gcc", so it can be a program name with args.
2125 set dummy gcc; ac_word=$2
2126 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2127 $as_echo_n "checking for $ac_word... " >&6; }
2128 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2129 $as_echo_n "(cached) " >&6
2131 if test -n "$ac_ct_CC"; then
2132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2138 test -z "$as_dir" && as_dir=.
2139 for ac_exec_ext in '' $ac_executable_extensions; do
2140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2141 ac_cv_prog_ac_ct_CC="gcc"
2142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2151 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2152 if test -n "$ac_ct_CC"; then
2153 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2154 $as_echo "$ac_ct_CC" >&6; }
2156 { $as_echo "$as_me:$LINENO: result: no" >&5
2157 $as_echo "no" >&6; }
2160 if test "x$ac_ct_CC" = x; then
2163 case $cross_compiling:$ac_tool_warned in
2165 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2167 ac_tool_warned=yes ;;
2175 if test -z "$CC"; then
2176 if test -n "$ac_tool_prefix"; then
2177 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2178 set dummy ${ac_tool_prefix}cc; ac_word=$2
2179 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2180 $as_echo_n "checking for $ac_word... " >&6; }
2181 if test "${ac_cv_prog_CC+set}" = set; then
2182 $as_echo_n "(cached) " >&6
2184 if test -n "$CC"; then
2185 ac_cv_prog_CC="$CC" # Let the user override the test.
2187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 test -z "$as_dir" && as_dir=.
2192 for ac_exec_ext in '' $ac_executable_extensions; do
2193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2194 ac_cv_prog_CC="${ac_tool_prefix}cc"
2195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205 if test -n "$CC"; then
2206 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2207 $as_echo "$CC" >&6; }
2209 { $as_echo "$as_me:$LINENO: result: no" >&5
2210 $as_echo "no" >&6; }
2216 if test -z "$CC"; then
2217 # Extract the first word of "cc", so it can be a program name with args.
2218 set dummy cc; ac_word=$2
2219 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2220 $as_echo_n "checking for $ac_word... " >&6; }
2221 if test "${ac_cv_prog_CC+set}" = set; then
2222 $as_echo_n "(cached) " >&6
2224 if test -n "$CC"; then
2225 ac_cv_prog_CC="$CC" # Let the user override the test.
2228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2232 test -z "$as_dir" && as_dir=.
2233 for ac_exec_ext in '' $ac_executable_extensions; do
2234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2235 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2236 ac_prog_rejected=yes
2240 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2247 if test $ac_prog_rejected = yes; then
2248 # We found a bogon in the path, so make sure we never use it.
2249 set dummy $ac_cv_prog_CC
2251 if test $# != 0; then
2252 # We chose a different compiler from the bogus one.
2253 # However, it has the same basename, so the bogon will be chosen
2254 # first if we set CC to just the basename; use the full file name.
2256 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2262 if test -n "$CC"; then
2263 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2264 $as_echo "$CC" >&6; }
2266 { $as_echo "$as_me:$LINENO: result: no" >&5
2267 $as_echo "no" >&6; }
2272 if test -z "$CC"; then
2273 if test -n "$ac_tool_prefix"; then
2274 for ac_prog in cl.exe
2276 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2277 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2278 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 $as_echo_n "checking for $ac_word... " >&6; }
2280 if test "${ac_cv_prog_CC+set}" = set; then
2281 $as_echo_n "(cached) " >&6
2283 if test -n "$CC"; then
2284 ac_cv_prog_CC="$CC" # Let the user override the test.
2286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2290 test -z "$as_dir" && as_dir=.
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2293 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2294 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304 if test -n "$CC"; then
2305 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2306 $as_echo "$CC" >&6; }
2308 { $as_echo "$as_me:$LINENO: result: no" >&5
2309 $as_echo "no" >&6; }
2313 test -n "$CC" && break
2316 if test -z "$CC"; then
2318 for ac_prog in cl.exe
2320 # Extract the first word of "$ac_prog", so it can be a program name with args.
2321 set dummy $ac_prog; ac_word=$2
2322 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 $as_echo_n "checking for $ac_word... " >&6; }
2324 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2325 $as_echo_n "(cached) " >&6
2327 if test -n "$ac_ct_CC"; then
2328 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2337 ac_cv_prog_ac_ct_CC="$ac_prog"
2338 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2348 if test -n "$ac_ct_CC"; then
2349 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2350 $as_echo "$ac_ct_CC" >&6; }
2352 { $as_echo "$as_me:$LINENO: result: no" >&5
2353 $as_echo "no" >&6; }
2357 test -n "$ac_ct_CC" && break
2360 if test "x$ac_ct_CC" = x; then
2363 case $cross_compiling:$ac_tool_warned in
2365 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2366 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2367 ac_tool_warned=yes ;;
2376 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2377 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2378 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2379 See \`config.log' for more details." >&5
2380 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2381 See \`config.log' for more details." >&2;}
2382 { (exit 1); exit 1; }; }; }
2384 # Provide some information about the compiler.
2385 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2388 { (ac_try="$ac_compiler --version >&5"
2390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2391 *) ac_try_echo=$ac_try;;
2393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2394 $as_echo "$ac_try_echo") >&5
2395 (eval "$ac_compiler --version >&5") 2>&5
2397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2398 (exit $ac_status); }
2399 { (ac_try="$ac_compiler -v >&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 -v >&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); }
2422 cat >conftest.$ac_ext <<_ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2437 ac_clean_files_save=$ac_clean_files
2438 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2439 # Try to create an executable without -o first, disregard a.out.
2440 # It will help us diagnose broken compilers, and finding out an intuition
2442 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2443 $as_echo_n "checking for C compiler default output file name... " >&6; }
2444 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2446 # The possible output files:
2447 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2450 for ac_file in $ac_files
2453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2454 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2459 if { (ac_try="$ac_link_default"
2461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2462 *) ac_try_echo=$ac_try;;
2464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2465 $as_echo "$ac_try_echo") >&5
2466 (eval "$ac_link_default") 2>&5
2468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2469 (exit $ac_status); }; then
2470 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2471 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2472 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2473 # so that the user can short-circuit this test for compilers unknown to
2475 for ac_file in $ac_files ''
2477 test -f "$ac_file" || continue
2479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2482 # We found the default executable, but exeext='' is most
2486 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2488 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2490 # We set ac_cv_exeext here because the later test for it is not
2491 # safe: cross compilers may not add the suffix if given an `-o'
2492 # argument, so we may need to know it at that point already.
2493 # Even if this section looks crufty: it has the advantage of
2500 test "$ac_cv_exeext" = no && ac_cv_exeext=
2506 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2507 $as_echo "$ac_file" >&6; }
2508 if test -z "$ac_file"; then
2509 $as_echo "$as_me: failed program was:" >&5
2510 sed 's/^/| /' conftest.$ac_ext >&5
2512 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2513 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2514 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2515 See \`config.log' for more details." >&5
2516 $as_echo "$as_me: error: C compiler cannot create executables
2517 See \`config.log' for more details." >&2;}
2518 { (exit 77); exit 77; }; }; }
2521 ac_exeext=$ac_cv_exeext
2523 # Check that the compiler produces executables we can run. If not, either
2524 # the compiler is broken, or we cross compile.
2525 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2526 $as_echo_n "checking whether the C compiler works... " >&6; }
2527 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2528 # If not cross compiling, check that we can run a simple program.
2529 if test "$cross_compiling" != yes; then
2530 if { ac_try='./$ac_file'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2536 $as_echo "$ac_try_echo") >&5
2537 (eval "$ac_try") 2>&5
2539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2543 if test "$cross_compiling" = maybe; then
2546 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2548 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2549 If you meant to cross compile, use \`--host'.
2550 See \`config.log' for more details." >&5
2551 $as_echo "$as_me: error: cannot run C compiled programs.
2552 If you meant to cross compile, use \`--host'.
2553 See \`config.log' for more details." >&2;}
2554 { (exit 1); exit 1; }; }; }
2558 { $as_echo "$as_me:$LINENO: result: yes" >&5
2559 $as_echo "yes" >&6; }
2561 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2562 ac_clean_files=$ac_clean_files_save
2563 # Check that the compiler produces executables we can run. If not, either
2564 # the compiler is broken, or we cross compile.
2565 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2566 $as_echo_n "checking whether we are cross compiling... " >&6; }
2567 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2568 $as_echo "$cross_compiling" >&6; }
2570 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2571 $as_echo_n "checking for suffix of executables... " >&6; }
2572 if { (ac_try="$ac_link"
2574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2575 *) ac_try_echo=$ac_try;;
2577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2578 $as_echo "$ac_try_echo") >&5
2579 (eval "$ac_link") 2>&5
2581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; then
2583 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2584 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2585 # work properly (i.e., refer to `conftest.exe'), while it won't with
2587 for ac_file in conftest.exe conftest conftest.*; do
2588 test -f "$ac_file" || continue
2590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2591 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2597 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2598 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2599 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2600 See \`config.log' for more details." >&5
2601 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2602 See \`config.log' for more details." >&2;}
2603 { (exit 1); exit 1; }; }; }
2606 rm -f conftest$ac_cv_exeext
2607 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2608 $as_echo "$ac_cv_exeext" >&6; }
2610 rm -f conftest.$ac_ext
2611 EXEEXT=$ac_cv_exeext
2613 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2614 $as_echo_n "checking for suffix of object files... " >&6; }
2615 if test "${ac_cv_objext+set}" = set; then
2616 $as_echo_n "(cached) " >&6
2618 cat >conftest.$ac_ext <<_ACEOF
2621 cat confdefs.h >>conftest.$ac_ext
2622 cat >>conftest.$ac_ext <<_ACEOF
2623 /* end confdefs.h. */
2633 rm -f conftest.o conftest.obj
2634 if { (ac_try="$ac_compile"
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2640 $as_echo "$ac_try_echo") >&5
2641 (eval "$ac_compile") 2>&5
2643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); }; then
2645 for ac_file in conftest.o conftest.obj conftest.*; do
2646 test -f "$ac_file" || continue;
2648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2649 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2654 $as_echo "$as_me: failed program was:" >&5
2655 sed 's/^/| /' conftest.$ac_ext >&5
2657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2659 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2660 See \`config.log' for more details." >&5
2661 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2662 See \`config.log' for more details." >&2;}
2663 { (exit 1); exit 1; }; }; }
2666 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2668 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2669 $as_echo "$ac_cv_objext" >&6; }
2670 OBJEXT=$ac_cv_objext
2672 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2673 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2674 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2675 $as_echo_n "(cached) " >&6
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2702 $as_echo "$ac_try_echo") >&5
2703 (eval "$ac_compile") 2>conftest.er1
2705 grep -v '^ *+' conftest.er1 >conftest.err
2707 cat conftest.err >&5
2708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); } && {
2710 test -z "$ac_c_werror_flag" ||
2711 test ! -s conftest.err
2712 } && test -s conftest.$ac_objext; then
2715 $as_echo "$as_me: failed program was:" >&5
2716 sed 's/^/| /' conftest.$ac_ext >&5
2721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2725 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2726 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2727 if test $ac_compiler_gnu = yes; then
2732 ac_test_CFLAGS=${CFLAGS+set}
2733 ac_save_CFLAGS=$CFLAGS
2734 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2735 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2736 if test "${ac_cv_prog_cc_g+set}" = set; then
2737 $as_echo_n "(cached) " >&6
2739 ac_save_c_werror_flag=$ac_c_werror_flag
2740 ac_c_werror_flag=yes
2743 cat >conftest.$ac_ext <<_ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2758 rm -f conftest.$ac_objext
2759 if { (ac_try="$ac_compile"
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2765 $as_echo "$ac_try_echo") >&5
2766 (eval "$ac_compile") 2>conftest.er1
2768 grep -v '^ *+' conftest.er1 >conftest.err
2770 cat conftest.err >&5
2771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); } && {
2773 test -z "$ac_c_werror_flag" ||
2774 test ! -s conftest.err
2775 } && test -s conftest.$ac_objext; then
2778 $as_echo "$as_me: failed program was:" >&5
2779 sed 's/^/| /' conftest.$ac_ext >&5
2782 cat >conftest.$ac_ext <<_ACEOF
2785 cat confdefs.h >>conftest.$ac_ext
2786 cat >>conftest.$ac_ext <<_ACEOF
2787 /* end confdefs.h. */
2797 rm -f conftest.$ac_objext
2798 if { (ac_try="$ac_compile"
2800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2801 *) ac_try_echo=$ac_try;;
2803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2804 $as_echo "$ac_try_echo") >&5
2805 (eval "$ac_compile") 2>conftest.er1
2807 grep -v '^ *+' conftest.er1 >conftest.err
2809 cat conftest.err >&5
2810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } && {
2812 test -z "$ac_c_werror_flag" ||
2813 test ! -s conftest.err
2814 } && test -s conftest.$ac_objext; then
2817 $as_echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 ac_c_werror_flag=$ac_save_c_werror_flag
2822 cat >conftest.$ac_ext <<_ACEOF
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2837 rm -f conftest.$ac_objext
2838 if { (ac_try="$ac_compile"
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2844 $as_echo "$ac_try_echo") >&5
2845 (eval "$ac_compile") 2>conftest.er1
2847 grep -v '^ *+' conftest.er1 >conftest.err
2849 cat conftest.err >&5
2850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); } && {
2852 test -z "$ac_c_werror_flag" ||
2853 test ! -s conftest.err
2854 } && test -s conftest.$ac_objext; then
2857 $as_echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2870 ac_c_werror_flag=$ac_save_c_werror_flag
2872 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2873 $as_echo "$ac_cv_prog_cc_g" >&6; }
2874 if test "$ac_test_CFLAGS" = set; then
2875 CFLAGS=$ac_save_CFLAGS
2876 elif test $ac_cv_prog_cc_g = yes; then
2877 if test "$GCC" = yes; then
2883 if test "$GCC" = yes; then
2889 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2891 if test "${ac_cv_prog_cc_c89+set}" = set; then
2892 $as_echo_n "(cached) " >&6
2894 ac_cv_prog_cc_c89=no
2896 cat >conftest.$ac_ext <<_ACEOF
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2904 #include <sys/types.h>
2905 #include <sys/stat.h>
2906 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2907 struct buf { int x; };
2908 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2909 static char *e (p, i)
2915 static char *f (char * (*g) (char **, int), char **p, ...)
2920 s = g (p, va_arg (v,int));
2925 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2926 function prototypes and stuff, but not '\xHH' hex character constants.
2927 These don't provoke an error unfortunately, instead are silently treated
2928 as 'x'. The following induces an error, until -std is added to get
2929 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2930 array size at least. It's necessary to write '\x00'==0 to get something
2931 that's true only with -std. */
2932 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2934 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2935 inside strings and character constants. */
2937 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2939 int test (int i, double x);
2940 struct s1 {int (*f) (int a);};
2941 struct s2 {int (*f) (double a);};
2942 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2948 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2953 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2954 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2956 CC="$ac_save_CC $ac_arg"
2957 rm -f conftest.$ac_objext
2958 if { (ac_try="$ac_compile"
2960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961 *) ac_try_echo=$ac_try;;
2963 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2964 $as_echo "$ac_try_echo") >&5
2965 (eval "$ac_compile") 2>conftest.er1
2967 grep -v '^ *+' conftest.er1 >conftest.err
2969 cat conftest.err >&5
2970 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); } && {
2972 test -z "$ac_c_werror_flag" ||
2973 test ! -s conftest.err
2974 } && test -s conftest.$ac_objext; then
2975 ac_cv_prog_cc_c89=$ac_arg
2977 $as_echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2983 rm -f core conftest.err conftest.$ac_objext
2984 test "x$ac_cv_prog_cc_c89" != "xno" && break
2986 rm -f conftest.$ac_ext
2991 case "x$ac_cv_prog_cc_c89" in
2993 { $as_echo "$as_me:$LINENO: result: none needed" >&5
2994 $as_echo "none needed" >&6; } ;;
2996 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2997 $as_echo "unsupported" >&6; } ;;
2999 CC="$CC $ac_cv_prog_cc_c89"
3000 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3001 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012 ac_cpp='$CXXCPP $CPPFLAGS'
3013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3016 if test -z "$CXX"; then
3017 if test -n "$CCC"; then
3020 if test -n "$ac_tool_prefix"; then
3021 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3025 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3026 $as_echo_n "checking for $ac_word... " >&6; }
3027 if test "${ac_cv_prog_CXX+set}" = set; then
3028 $as_echo_n "(cached) " >&6
3030 if test -n "$CXX"; then
3031 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3037 test -z "$as_dir" && as_dir=.
3038 for ac_exec_ext in '' $ac_executable_extensions; do
3039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3040 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3041 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 if test -n "$CXX"; then
3052 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3053 $as_echo "$CXX" >&6; }
3055 { $as_echo "$as_me:$LINENO: result: no" >&5
3056 $as_echo "no" >&6; }
3060 test -n "$CXX" && break
3063 if test -z "$CXX"; then
3065 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3067 # Extract the first word of "$ac_prog", so it can be a program name with args.
3068 set dummy $ac_prog; ac_word=$2
3069 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3072 $as_echo_n "(cached) " >&6
3074 if test -n "$ac_ct_CXX"; then
3075 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_ac_ct_CXX="$ac_prog"
3085 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3095 if test -n "$ac_ct_CXX"; then
3096 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3097 $as_echo "$ac_ct_CXX" >&6; }
3099 { $as_echo "$as_me:$LINENO: result: no" >&5
3100 $as_echo "no" >&6; }
3104 test -n "$ac_ct_CXX" && break
3107 if test "x$ac_ct_CXX" = x; then
3110 case $cross_compiling:$ac_tool_warned in
3112 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3114 ac_tool_warned=yes ;;
3122 # Provide some information about the compiler.
3123 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3126 { (ac_try="$ac_compiler --version >&5"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3132 $as_echo "$ac_try_echo") >&5
3133 (eval "$ac_compiler --version >&5") 2>&5
3135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); }
3137 { (ac_try="$ac_compiler -v >&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 -v >&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); }
3160 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3161 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3162 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3163 $as_echo_n "(cached) " >&6
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3190 $as_echo "$ac_try_echo") >&5
3191 (eval "$ac_compile") 2>conftest.er1
3193 grep -v '^ *+' conftest.er1 >conftest.err
3195 cat conftest.err >&5
3196 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197 (exit $ac_status); } && {
3198 test -z "$ac_cxx_werror_flag" ||
3199 test ! -s conftest.err
3200 } && test -s conftest.$ac_objext; then
3203 $as_echo "$as_me: failed program was:" >&5
3204 sed 's/^/| /' conftest.$ac_ext >&5
3209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3210 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3213 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3214 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3215 if test $ac_compiler_gnu = yes; then
3220 ac_test_CXXFLAGS=${CXXFLAGS+set}
3221 ac_save_CXXFLAGS=$CXXFLAGS
3222 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3223 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3224 if test "${ac_cv_prog_cxx_g+set}" = set; then
3225 $as_echo_n "(cached) " >&6
3227 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3228 ac_cxx_werror_flag=yes
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3246 rm -f conftest.$ac_objext
3247 if { (ac_try="$ac_compile"
3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3250 *) ac_try_echo=$ac_try;;
3252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3253 $as_echo "$ac_try_echo") >&5
3254 (eval "$ac_compile") 2>conftest.er1
3256 grep -v '^ *+' conftest.er1 >conftest.err
3258 cat conftest.err >&5
3259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } && {
3261 test -z "$ac_cxx_werror_flag" ||
3262 test ! -s conftest.err
3263 } && test -s conftest.$ac_objext; then
3264 ac_cv_prog_cxx_g=yes
3266 $as_echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3270 cat >conftest.$ac_ext <<_ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3292 $as_echo "$ac_try_echo") >&5
3293 (eval "$ac_compile") 2>conftest.er1
3295 grep -v '^ *+' conftest.er1 >conftest.err
3297 cat conftest.err >&5
3298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } && {
3300 test -z "$ac_cxx_werror_flag" ||
3301 test ! -s conftest.err
3302 } && test -s conftest.$ac_objext; then
3305 $as_echo "$as_me: failed program was:" >&5
3306 sed 's/^/| /' conftest.$ac_ext >&5
3308 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3310 cat >conftest.$ac_ext <<_ACEOF
3313 cat confdefs.h >>conftest.$ac_ext
3314 cat >>conftest.$ac_ext <<_ACEOF
3315 /* end confdefs.h. */
3325 rm -f conftest.$ac_objext
3326 if { (ac_try="$ac_compile"
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3332 $as_echo "$ac_try_echo") >&5
3333 (eval "$ac_compile") 2>conftest.er1
3335 grep -v '^ *+' conftest.er1 >conftest.err
3337 cat conftest.err >&5
3338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); } && {
3340 test -z "$ac_cxx_werror_flag" ||
3341 test ! -s conftest.err
3342 } && test -s conftest.$ac_objext; then
3343 ac_cv_prog_cxx_g=yes
3345 $as_echo "$as_me: failed program was:" >&5
3346 sed 's/^/| /' conftest.$ac_ext >&5
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3360 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3361 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3362 if test "$ac_test_CXXFLAGS" = set; then
3363 CXXFLAGS=$ac_save_CXXFLAGS
3364 elif test $ac_cv_prog_cxx_g = yes; then
3365 if test "$GXX" = yes; then
3371 if test "$GXX" = yes; then
3378 ac_cpp='$CPP $CPPFLAGS'
3379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3386 { $as_echo "$as_me:$LINENO: checking whether gcc supports lazy variable declaration" >&5
3387 $as_echo_n "checking whether gcc supports lazy variable declaration... " >&6; }
3389 cat > conftest.c << EOF
3393 int main (int argc, char*argv)
3403 testprog_link='$CC $CPPFLAGS $CFLAGS conftest.c -o conftest${ac_exeext}'
3404 if { (eval echo gcc.2.95.m4:19: \"$testprog_link\") 1>&5; (eval $testprog_link) 2>&5; } && test -s conftest${ac_exeext}; then
3405 { $as_echo "$as_me:$LINENO: result: yes" >&5
3406 $as_echo "yes" >&6; }
3410 echo "configure: failed program was:" >&5
3412 { $as_echo "$as_me:$LINENO: result: no" >&5
3413 $as_echo "no" >&6; }
3418 if test "x$GCC_IS_OK" '=' "x";then
3419 echo "***************************************************"
3420 echo "* Your gcc is too old to compile this!"
3422 echo "* The last version compileable by this compiler is "
3423 echo "* swftools 0.7.0, which you can download from "
3424 echo "* http://www.swftools.org/swftools-0.7.0.tar.gz "
3426 echo "* Newer versions require at least gcc 3.0.0 "
3427 echo "***************************************************"
3431 if test "x$CHECKMEM" '!=' "x";then
3435 #unset ac_cv_prog_CC
3436 #unset ac_cv_prog_CXX
3441 ac_cpp='$CPP $CPPFLAGS'
3442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3446 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3447 # On Suns, sometimes $CPP names a directory.
3448 if test -n "$CPP" && test -d "$CPP"; then
3451 if test -z "$CPP"; then
3452 if test "${ac_cv_prog_CPP+set}" = set; then
3453 $as_echo_n "(cached) " >&6
3455 # Double quotes because CPP needs to be expanded
3456 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3459 for ac_c_preproc_warn_flag in '' yes
3461 # Use a header file that comes with gcc, so configuring glibc
3462 # with a fresh cross-compiler works.
3463 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3464 # <limits.h> exists even on freestanding compilers.
3465 # On the NeXT, cc -E runs the code through the compiler's parser,
3466 # not just through cpp. "Syntax error" is here to catch this case.
3467 cat >conftest.$ac_ext <<_ACEOF
3470 cat confdefs.h >>conftest.$ac_ext
3471 cat >>conftest.$ac_ext <<_ACEOF
3472 /* end confdefs.h. */
3474 # include <limits.h>
3476 # include <assert.h>
3480 if { (ac_try="$ac_cpp conftest.$ac_ext"
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3486 $as_echo "$ac_try_echo") >&5
3487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3489 grep -v '^ *+' conftest.er1 >conftest.err
3491 cat conftest.err >&5
3492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); } >/dev/null && {
3494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3495 test ! -s conftest.err
3499 $as_echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3502 # Broken: fails on valid input.
3506 rm -f conftest.err conftest.$ac_ext
3508 # OK, works on sane cases. Now check whether nonexistent headers
3509 # can be detected and how.
3510 cat >conftest.$ac_ext <<_ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3516 #include <ac_nonexistent.h>
3518 if { (ac_try="$ac_cpp conftest.$ac_ext"
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3524 $as_echo "$ac_try_echo") >&5
3525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } >/dev/null && {
3532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3533 test ! -s conftest.err
3535 # Broken: success on invalid input.
3538 $as_echo "$as_me: failed program was:" >&5
3539 sed 's/^/| /' conftest.$ac_ext >&5
3541 # Passes both tests.
3546 rm -f conftest.err conftest.$ac_ext
3549 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550 rm -f conftest.err conftest.$ac_ext
3551 if $ac_preproc_ok; then
3563 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3564 $as_echo "$CPP" >&6; }
3566 for ac_c_preproc_warn_flag in '' yes
3568 # Use a header file that comes with gcc, so configuring glibc
3569 # with a fresh cross-compiler works.
3570 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3571 # <limits.h> exists even on freestanding compilers.
3572 # On the NeXT, cc -E runs the code through the compiler's parser,
3573 # not just through cpp. "Syntax error" is here to catch this case.
3574 cat >conftest.$ac_ext <<_ACEOF
3577 cat confdefs.h >>conftest.$ac_ext
3578 cat >>conftest.$ac_ext <<_ACEOF
3579 /* end confdefs.h. */
3581 # include <limits.h>
3583 # include <assert.h>
3587 if { (ac_try="$ac_cpp conftest.$ac_ext"
3589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3590 *) ac_try_echo=$ac_try;;
3592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3593 $as_echo "$ac_try_echo") >&5
3594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3596 grep -v '^ *+' conftest.er1 >conftest.err
3598 cat conftest.err >&5
3599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); } >/dev/null && {
3601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3602 test ! -s conftest.err
3606 $as_echo "$as_me: failed program was:" >&5
3607 sed 's/^/| /' conftest.$ac_ext >&5
3609 # Broken: fails on valid input.
3613 rm -f conftest.err conftest.$ac_ext
3615 # OK, works on sane cases. Now check whether nonexistent headers
3616 # can be detected and how.
3617 cat >conftest.$ac_ext <<_ACEOF
3620 cat confdefs.h >>conftest.$ac_ext
3621 cat >>conftest.$ac_ext <<_ACEOF
3622 /* end confdefs.h. */
3623 #include <ac_nonexistent.h>
3625 if { (ac_try="$ac_cpp conftest.$ac_ext"
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3631 $as_echo "$ac_try_echo") >&5
3632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3634 grep -v '^ *+' conftest.er1 >conftest.err
3636 cat conftest.err >&5
3637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); } >/dev/null && {
3639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3640 test ! -s conftest.err
3642 # Broken: success on invalid input.
3645 $as_echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 # Passes both tests.
3653 rm -f conftest.err conftest.$ac_ext
3656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3657 rm -f conftest.err conftest.$ac_ext
3658 if $ac_preproc_ok; then
3661 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3664 See \`config.log' for more details." >&5
3665 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3666 See \`config.log' for more details." >&2;}
3667 { (exit 1); exit 1; }; }; }
3671 ac_cpp='$CPP $CPPFLAGS'
3672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3677 if test -n "$ac_tool_prefix"; then
3678 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3679 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3680 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3681 $as_echo_n "checking for $ac_word... " >&6; }
3682 if test "${ac_cv_prog_RANLIB+set}" = set; then
3683 $as_echo_n "(cached) " >&6
3685 if test -n "$RANLIB"; then
3686 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3692 test -z "$as_dir" && as_dir=.
3693 for ac_exec_ext in '' $ac_executable_extensions; do
3694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3695 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3696 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3705 RANLIB=$ac_cv_prog_RANLIB
3706 if test -n "$RANLIB"; then
3707 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
3708 $as_echo "$RANLIB" >&6; }
3710 { $as_echo "$as_me:$LINENO: result: no" >&5
3711 $as_echo "no" >&6; }
3716 if test -z "$ac_cv_prog_RANLIB"; then
3717 ac_ct_RANLIB=$RANLIB
3718 # Extract the first word of "ranlib", so it can be a program name with args.
3719 set dummy ranlib; ac_word=$2
3720 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3723 $as_echo_n "(cached) " >&6
3725 if test -n "$ac_ct_RANLIB"; then
3726 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3735 ac_cv_prog_ac_ct_RANLIB="ranlib"
3736 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3746 if test -n "$ac_ct_RANLIB"; then
3747 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3748 $as_echo "$ac_ct_RANLIB" >&6; }
3750 { $as_echo "$as_me:$LINENO: result: no" >&5
3751 $as_echo "no" >&6; }
3754 if test "x$ac_ct_RANLIB" = x; then
3757 case $cross_compiling:$ac_tool_warned in
3759 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3761 ac_tool_warned=yes ;;
3763 RANLIB=$ac_ct_RANLIB
3766 RANLIB="$ac_cv_prog_RANLIB"
3769 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3770 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3772 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3773 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3774 $as_echo_n "(cached) " >&6
3776 cat >conftest.make <<\_ACEOF
3779 @echo '@@@%%%=$(MAKE)=@@@%%%'
3781 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3782 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3784 eval ac_cv_prog_make_${ac_make}_set=yes;;
3786 eval ac_cv_prog_make_${ac_make}_set=no;;
3790 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3791 { $as_echo "$as_me:$LINENO: result: yes" >&5
3792 $as_echo "yes" >&6; }
3795 { $as_echo "$as_me:$LINENO: result: no" >&5
3796 $as_echo "no" >&6; }
3797 SET_MAKE="MAKE=${MAKE-make}"
3800 # Find a good install program. We prefer a C program (faster),
3801 # so one script is as good as another. But avoid the broken or
3802 # incompatible versions:
3803 # SysV /etc/install, /usr/sbin/install
3804 # SunOS /usr/etc/install
3805 # IRIX /sbin/install
3807 # AmigaOS /C/install, which installs bootblocks on floppy discs
3808 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3809 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3810 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3811 # OS/2's system install, which has a completely different semantic
3812 # ./install, which can be erroneously created by make from ./install.sh.
3813 # Reject install programs that cannot install multiple files.
3814 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3815 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3816 if test -z "$INSTALL"; then
3817 if test "${ac_cv_path_install+set}" = set; then
3818 $as_echo_n "(cached) " >&6
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3824 test -z "$as_dir" && as_dir=.
3825 # Account for people who put trailing slashes in PATH elements.
3827 ./ | .// | /cC/* | \
3828 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3829 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3832 # OSF1 and SCO ODT 3.0 have their own names for install.
3833 # Don't use installbsd from OSF since it installs stuff as root
3835 for ac_prog in ginstall scoinst install; do
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3838 if test $ac_prog = install &&
3839 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3840 # AIX install. It has an incompatible calling convention.
3842 elif test $ac_prog = install &&
3843 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3844 # program-specific install script used by HP pwplus--don't use.
3847 rm -rf conftest.one conftest.two conftest.dir
3848 echo one > conftest.one
3849 echo two > conftest.two
3851 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3852 test -s conftest.one && test -s conftest.two &&
3853 test -s conftest.dir/conftest.one &&
3854 test -s conftest.dir/conftest.two
3856 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3869 rm -rf conftest.one conftest.two conftest.dir
3872 if test "${ac_cv_path_install+set}" = set; then
3873 INSTALL=$ac_cv_path_install
3875 # As a last resort, use the slow shell script. Don't cache a
3876 # value for INSTALL within a source directory, because that will
3877 # break other packages using the cache if that directory is
3878 # removed, or if the value is a relative name.
3879 INSTALL=$ac_install_sh
3882 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3883 $as_echo "$INSTALL" >&6; }
3885 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3886 # It thinks the first close brace ends the variable substitution.
3887 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3889 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3891 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3893 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3894 $as_echo_n "checking whether ln -s works... " >&6; }
3896 if test "$LN_S" = "ln -s"; then
3897 { $as_echo "$as_me:$LINENO: result: yes" >&5
3898 $as_echo "yes" >&6; }
3900 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3901 $as_echo "no, using $LN_S" >&6; }
3904 for ac_prog in gzip uncompress compress
3906 # Extract the first word of "$ac_prog", so it can be a program name with args.
3907 set dummy $ac_prog; ac_word=$2
3908 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3909 $as_echo_n "checking for $ac_word... " >&6; }
3910 if test "${ac_cv_prog_UNCOMPRESS+set}" = set; then
3911 $as_echo_n "(cached) " >&6
3913 if test -n "$UNCOMPRESS"; then
3914 ac_cv_prog_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test.
3916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 test -z "$as_dir" && as_dir=.
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3923 ac_cv_prog_UNCOMPRESS="$ac_prog"
3924 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3933 UNCOMPRESS=$ac_cv_prog_UNCOMPRESS
3934 if test -n "$UNCOMPRESS"; then
3935 { $as_echo "$as_me:$LINENO: result: $UNCOMPRESS" >&5
3936 $as_echo "$UNCOMPRESS" >&6; }
3938 { $as_echo "$as_me:$LINENO: result: no" >&5
3939 $as_echo "no" >&6; }
3943 test -n "$UNCOMPRESS" && break
3954 if test "x$EXEEXT" = "x.exe";then
3963 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3964 $as_echo_n "checking host system type... " >&6; }
3965 if test "${ac_cv_host+set}" = set; then
3966 $as_echo_n "(cached) " >&6
3968 if test "x$host_alias" = x; then
3969 ac_cv_host=$ac_cv_build
3971 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3972 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3973 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3974 { (exit 1); exit 1; }; }
3978 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3979 $as_echo "$ac_cv_host" >&6; }
3982 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3983 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3984 { (exit 1); exit 1; }; };;
3987 ac_save_IFS=$IFS; IFS='-'
3993 # Remember, the first character of IFS is used to create $*,
3994 # except with old shells:
3997 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4002 { $as_echo "$as_me:$LINENO: checking for target system" >&5
4003 $as_echo_n "checking for target system... " >&6; }
4007 *cygwin* ) CYGWIN=yes;;
4008 *mingw* ) MINGW=yes;;
4012 if test "x$MINGW" = "xyes"; then
4013 #fix for the debian distribution of mingw
4014 if test -x "/usr/i586-mingw32msvc/bin/ar";then
4015 AR="/usr/i586-mingw32msvc/bin/ar"
4017 if test -x "/usr/i586-mingw32msvc/bin/ranlib";then
4018 RANLIB="/usr/i586-mingw32msvc/bin/ranlib"
4020 #fix for the gentoo distribution of mingw
4021 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ar";then
4022 AR="/opt/xmingw/bin/i386-mingw32msvc-ar"
4024 if test -x "/opt/xmingw/bin/i386-mingw32msvc-ranlib";then
4025 RANLIB="/opt/xmingw/bin/i386-mingw32msvc-ranlib"
4027 if test -x "/opt/xmingw/bin/i386-mingw32msvc-strip";then
4028 STRIP="/opt/xmingw/bin/i386-mingw32msvc-strip"
4034 if test "x${CYGWIN}" = "xyes"; then
4036 cat >>confdefs.h <<\_ACEOF
4040 { $as_echo "$as_me:$LINENO: result: cygwin" >&5
4041 $as_echo "cygwin" >&6; }
4043 if test "x${MINGW}" = "xyes"; then
4045 cat >>confdefs.h <<\_ACEOF
4051 cat >>confdefs.h <<\_ACEOF
4055 LIBS="$LIBS -lws2_32 -lgdi32"
4056 { $as_echo "$as_me:$LINENO: result: mingw" >&5
4057 $as_echo "mingw" >&6; }
4062 cat >>confdefs.h <<\_ACEOF
4066 { $as_echo "$as_me:$LINENO: result: " >&5
4073 if test "x${MINGW}" != "xyes"; then
4076 cat >>confdefs.h <<\_ACEOF
4089 # The following tries to make use of includes and libraries in
4090 # /usr/local, too. Notice: A -I/usr/local/include might break
4091 # things (MingW, cross-compiling etc.) in the same way as -I/usr/include,
4092 # especially on systems which link /usr/local to /usr, so it has yet
4093 # to be seen how useful this is.
4094 if test -d /usr/local/lib; then
4095 LDFLAGS="$LDFLAGS -L/usr/local/lib"
4097 if test -d /usr/local/include; then
4098 # Leave that alone. It's causing trouble e.g. with gcc 3.2 on gentoo.
4099 # CPPFLAGS="$CPPFLAGS -I/usr/local/include"
4102 if test "$prefix" != "NONE" -a "$prefix" != "/usr/local" -a "$prefix" != "/usr/local/"; then
4103 # if the user has a special prefix (like /opt), there might also be $prefix/lib
4104 # and $prefix/include, which should be included in our search paths for libraries
4106 LDFLAGS="$LDFLAGS -L${libdir}"
4107 CPPFLAGS="$CPPFLAGS -I${includedir}"
4108 # TODO- test whether gcc still works after this
4112 #LDFLAGS "-L/sw/lib" ; CPPFLAGS "-I/sw/include -I/sw/include/lame"
4115 # this must be done after (I believe) AC_PROG_MAKE_SET
4116 if test "x$DEBUG" '!=' "x" -o "x$STRIP" = "x";then
4117 if test "$MACOSX";then
4120 STRIP="@echo debug enabled, not stripping "
4128 { $as_echo "$as_me:$LINENO: checking for sin in -lm" >&5
4129 $as_echo_n "checking for sin in -lm... " >&6; }
4130 if test "${ac_cv_lib_m_sin+set}" = set; then
4131 $as_echo_n "(cached) " >&6
4133 ac_check_lib_save_LIBS=$LIBS
4135 cat >conftest.$ac_ext <<_ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4142 /* Override any GCC internal prototype to avoid an error.
4143 Use char because int might match the return type of a GCC
4144 builtin and then its argument prototype would still apply. */
4157 rm -f conftest.$ac_objext conftest$ac_exeext
4158 if { (ac_try="$ac_link"
4160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4161 *) ac_try_echo=$ac_try;;
4163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4164 $as_echo "$ac_try_echo") >&5
4165 (eval "$ac_link") 2>conftest.er1
4167 grep -v '^ *+' conftest.er1 >conftest.err
4169 cat conftest.err >&5
4170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); } && {
4172 test -z "$ac_c_werror_flag" ||
4173 test ! -s conftest.err
4174 } && test -s conftest$ac_exeext && {
4175 test "$cross_compiling" = yes ||
4176 $as_test_x conftest$ac_exeext
4180 $as_echo "$as_me: failed program was:" >&5
4181 sed 's/^/| /' conftest.$ac_ext >&5
4186 rm -rf conftest.dSYM
4187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4188 conftest$ac_exeext conftest.$ac_ext
4189 LIBS=$ac_check_lib_save_LIBS
4191 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
4192 $as_echo "$ac_cv_lib_m_sin" >&6; }
4193 if test "x$ac_cv_lib_m_sin" = x""yes; then
4194 cat >>confdefs.h <<_ACEOF
4201 echo "Error: Math library not found.";
4207 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
4208 $as_echo_n "checking for deflate in -lz... " >&6; }
4209 if test "${ac_cv_lib_z_deflate+set}" = set; then
4210 $as_echo_n "(cached) " >&6
4212 ac_check_lib_save_LIBS=$LIBS
4214 cat >conftest.$ac_ext <<_ACEOF
4217 cat confdefs.h >>conftest.$ac_ext
4218 cat >>conftest.$ac_ext <<_ACEOF
4219 /* end confdefs.h. */
4221 /* Override any GCC internal prototype to avoid an error.
4222 Use char because int might match the return type of a GCC
4223 builtin and then its argument prototype would still apply. */
4236 rm -f conftest.$ac_objext conftest$ac_exeext
4237 if { (ac_try="$ac_link"
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4243 $as_echo "$ac_try_echo") >&5
4244 (eval "$ac_link") 2>conftest.er1
4246 grep -v '^ *+' conftest.er1 >conftest.err
4248 cat conftest.err >&5
4249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } && {
4251 test -z "$ac_c_werror_flag" ||
4252 test ! -s conftest.err
4253 } && test -s conftest$ac_exeext && {
4254 test "$cross_compiling" = yes ||
4255 $as_test_x conftest$ac_exeext
4257 ac_cv_lib_z_deflate=yes
4259 $as_echo "$as_me: failed program was:" >&5
4260 sed 's/^/| /' conftest.$ac_ext >&5
4262 ac_cv_lib_z_deflate=no
4265 rm -rf conftest.dSYM
4266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4267 conftest$ac_exeext conftest.$ac_ext
4268 LIBS=$ac_check_lib_save_LIBS
4270 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
4271 $as_echo "$ac_cv_lib_z_deflate" >&6; }
4272 if test "x$ac_cv_lib_z_deflate" = x""yes; then
4273 cat >>confdefs.h <<_ACEOF
4284 if test "x$ZLIBMISSING" = "xtrue";then
4287 echo "You need zlib to compile swftools"
4293 { $as_echo "$as_me:$LINENO: checking for PDF_open_file in -lpdf" >&5
4294 $as_echo_n "checking for PDF_open_file in -lpdf... " >&6; }
4295 if test "${ac_cv_lib_pdf_PDF_open_file+set}" = set; then
4296 $as_echo_n "(cached) " >&6
4298 ac_check_lib_save_LIBS=$LIBS
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4307 /* Override any GCC internal prototype to avoid an error.
4308 Use char because int might match the return type of a GCC
4309 builtin and then its argument prototype would still apply. */
4313 char PDF_open_file ();
4317 return PDF_open_file ();
4322 rm -f conftest.$ac_objext conftest$ac_exeext
4323 if { (ac_try="$ac_link"
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4329 $as_echo "$ac_try_echo") >&5
4330 (eval "$ac_link") 2>conftest.er1
4332 grep -v '^ *+' conftest.er1 >conftest.err
4334 cat conftest.err >&5
4335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); } && {
4337 test -z "$ac_c_werror_flag" ||
4338 test ! -s conftest.err
4339 } && test -s conftest$ac_exeext && {
4340 test "$cross_compiling" = yes ||
4341 $as_test_x conftest$ac_exeext
4343 ac_cv_lib_pdf_PDF_open_file=yes
4345 $as_echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4348 ac_cv_lib_pdf_PDF_open_file=no
4351 rm -rf conftest.dSYM
4352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4353 conftest$ac_exeext conftest.$ac_ext
4354 LIBS=$ac_check_lib_save_LIBS
4356 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pdf_PDF_open_file" >&5
4357 $as_echo "$ac_cv_lib_pdf_PDF_open_file" >&6; }
4358 if test "x$ac_cv_lib_pdf_PDF_open_file" = x""yes; then
4359 cat >>confdefs.h <<_ACEOF
4360 #define HAVE_LIBPDF 1
4370 { $as_echo "$as_me:$LINENO: checking for jpeg_write_raw_data in -ljpeg" >&5
4371 $as_echo_n "checking for jpeg_write_raw_data in -ljpeg... " >&6; }
4372 if test "${ac_cv_lib_jpeg_jpeg_write_raw_data+set}" = set; then
4373 $as_echo_n "(cached) " >&6
4375 ac_check_lib_save_LIBS=$LIBS
4377 cat >conftest.$ac_ext <<_ACEOF
4380 cat confdefs.h >>conftest.$ac_ext
4381 cat >>conftest.$ac_ext <<_ACEOF
4382 /* end confdefs.h. */
4384 /* Override any GCC internal prototype to avoid an error.
4385 Use char because int might match the return type of a GCC
4386 builtin and then its argument prototype would still apply. */
4390 char jpeg_write_raw_data ();
4394 return jpeg_write_raw_data ();
4399 rm -f conftest.$ac_objext conftest$ac_exeext
4400 if { (ac_try="$ac_link"
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4406 $as_echo "$ac_try_echo") >&5
4407 (eval "$ac_link") 2>conftest.er1
4409 grep -v '^ *+' conftest.er1 >conftest.err
4411 cat conftest.err >&5
4412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } && {
4414 test -z "$ac_c_werror_flag" ||
4415 test ! -s conftest.err
4416 } && test -s conftest$ac_exeext && {
4417 test "$cross_compiling" = yes ||
4418 $as_test_x conftest$ac_exeext
4420 ac_cv_lib_jpeg_jpeg_write_raw_data=yes
4422 $as_echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4425 ac_cv_lib_jpeg_jpeg_write_raw_data=no
4428 rm -rf conftest.dSYM
4429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4430 conftest$ac_exeext conftest.$ac_ext
4431 LIBS=$ac_check_lib_save_LIBS
4433 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_write_raw_data" >&5
4434 $as_echo "$ac_cv_lib_jpeg_jpeg_write_raw_data" >&6; }
4435 if test "x$ac_cv_lib_jpeg_jpeg_write_raw_data" = x""yes; then
4436 cat >>confdefs.h <<_ACEOF
4437 #define HAVE_LIBJPEG 1
4447 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
4448 $as_echo_n "checking for DGifOpen in -lungif... " >&6; }
4449 if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
4450 $as_echo_n "(cached) " >&6
4452 ac_check_lib_save_LIBS=$LIBS
4453 LIBS="-lungif $LIBS"
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4461 /* Override any GCC internal prototype to avoid an error.
4462 Use char because int might match the return type of a GCC
4463 builtin and then its argument prototype would still apply. */
4476 rm -f conftest.$ac_objext conftest$ac_exeext
4477 if { (ac_try="$ac_link"
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4483 $as_echo "$ac_try_echo") >&5
4484 (eval "$ac_link") 2>conftest.er1
4486 grep -v '^ *+' conftest.er1 >conftest.err
4488 cat conftest.err >&5
4489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && {
4491 test -z "$ac_c_werror_flag" ||
4492 test ! -s conftest.err
4493 } && test -s conftest$ac_exeext && {
4494 test "$cross_compiling" = yes ||
4495 $as_test_x conftest$ac_exeext
4497 ac_cv_lib_ungif_DGifOpen=yes
4499 $as_echo "$as_me: failed program was:" >&5
4500 sed 's/^/| /' conftest.$ac_ext >&5
4502 ac_cv_lib_ungif_DGifOpen=no
4505 rm -rf conftest.dSYM
4506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4507 conftest$ac_exeext conftest.$ac_ext
4508 LIBS=$ac_check_lib_save_LIBS
4510 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
4511 $as_echo "$ac_cv_lib_ungif_DGifOpen" >&6; }
4512 if test "x$ac_cv_lib_ungif_DGifOpen" = x""yes; then
4513 cat >>confdefs.h <<_ACEOF
4514 #define HAVE_LIBUNGIF 1
4517 LIBS="-lungif $LIBS"
4523 if test "$UNGIFMISSING";then
4526 { $as_echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
4527 $as_echo_n "checking for DGifOpen in -lgif... " >&6; }
4528 if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
4529 $as_echo_n "(cached) " >&6
4531 ac_check_lib_save_LIBS=$LIBS
4533 cat >conftest.$ac_ext <<_ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4540 /* Override any GCC internal prototype to avoid an error.
4541 Use char because int might match the return type of a GCC
4542 builtin and then its argument prototype would still apply. */
4555 rm -f conftest.$ac_objext conftest$ac_exeext
4556 if { (ac_try="$ac_link"
4558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4559 *) ac_try_echo=$ac_try;;
4561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4562 $as_echo "$ac_try_echo") >&5
4563 (eval "$ac_link") 2>conftest.er1
4565 grep -v '^ *+' conftest.er1 >conftest.err
4567 cat conftest.err >&5
4568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } && {
4570 test -z "$ac_c_werror_flag" ||
4571 test ! -s conftest.err
4572 } && test -s conftest$ac_exeext && {
4573 test "$cross_compiling" = yes ||
4574 $as_test_x conftest$ac_exeext
4576 ac_cv_lib_gif_DGifOpen=yes
4578 $as_echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 ac_cv_lib_gif_DGifOpen=no
4584 rm -rf conftest.dSYM
4585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4586 conftest$ac_exeext conftest.$ac_ext
4587 LIBS=$ac_check_lib_save_LIBS
4589 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
4590 $as_echo "$ac_cv_lib_gif_DGifOpen" >&6; }
4591 if test "x$ac_cv_lib_gif_DGifOpen" = x""yes; then
4592 cat >>confdefs.h <<_ACEOF
4593 #define HAVE_LIBGIF 1
4605 { $as_echo "$as_me:$LINENO: checking for byte order" >&5
4606 $as_echo_n "checking for byte order... " >&6; }
4607 if test "$cross_compiling" = yes; then
4610 cat >conftest.$ac_ext <<_ACEOF
4613 cat confdefs.h >>conftest.$ac_ext
4614 cat >>conftest.$ac_ext <<_ACEOF
4615 /* end confdefs.h. */
4617 int main (int argc, char *argv[])
4624 rm -f conftest$ac_exeext
4625 if { (ac_try="$ac_link"
4627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628 *) ac_try_echo=$ac_try;;
4630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4631 $as_echo "$ac_try_echo") >&5
4632 (eval "$ac_link") 2>&5
4634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4636 { (case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4641 $as_echo "$ac_try_echo") >&5
4642 (eval "$ac_try") 2>&5
4644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4645 (exit $ac_status); }; }; then
4648 $as_echo "$as_me: program exited with status $ac_status" >&5
4649 $as_echo "$as_me: failed program was:" >&5
4650 sed 's/^/| /' conftest.$ac_ext >&5
4655 rm -rf conftest.dSYM
4656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4662 if test "x${CROSSCOMPILE}" = "x1"; then
4663 { $as_echo "$as_me:$LINENO: result: we are cross compiling- trying to guess from system type" >&5
4664 $as_echo "we are cross compiling- trying to guess from system type" >&6; }
4665 { $as_echo "$as_me:$LINENO: checking target system type" >&5
4666 $as_echo_n "checking target system type... " >&6; }
4667 if test "${ac_cv_target+set}" = set; then
4668 $as_echo_n "(cached) " >&6
4670 if test "x$target_alias" = x; then
4671 ac_cv_target=$ac_cv_host
4673 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4674 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
4675 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
4676 { (exit 1); exit 1; }; }
4680 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
4681 $as_echo "$ac_cv_target" >&6; }
4682 case $ac_cv_target in
4684 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
4685 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
4686 { (exit 1); exit 1; }; };;
4688 target=$ac_cv_target
4689 ac_save_IFS=$IFS; IFS='-'
4695 # Remember, the first character of IFS is used to create $*,
4696 # except with old shells:
4699 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4702 # The aliases save the names the user supplied, while $host etc.
4703 # will get canonicalized.
4704 test -n "$target_alias" &&
4705 test "$program_prefix$program_suffix$program_transform_name" = \
4707 program_prefix=${target_alias}-
4708 { $as_echo "$as_me:$LINENO: checking for byte order, try 2" >&5
4709 $as_echo_n "checking for byte order, try 2... " >&6; }
4714 *sparc* | *68* | *88k* | *mac* | *Mac* | *sun* | *Sun* | *Amiga* | *amiga* )
4721 if test "x${LITTLEENDIAN}" = "x1"; then
4722 { $as_echo "$as_me:$LINENO: result: little endian" >&5
4723 $as_echo "little endian" >&6; }
4727 if test "x${BIGENDIAN}" = "x1"; then
4728 { $as_echo "$as_me:$LINENO: result: big endian" >&5
4729 $as_echo "big endian" >&6; }
4732 export WORDS_BIGENDIAN
4734 cat >>confdefs.h <<\_ACEOF
4735 #define WORDS_BIGENDIAN 1
4739 if test "x${BYTEORDERCHECKOK}" != "x1"; then
4740 { $as_echo "$as_me:$LINENO: result: unknown" >&5
4741 $as_echo "unknown" >&6; }
4742 echo Byte order could not determined.
4748 { $as_echo "$as_me:$LINENO: checking whether system() can handle command substitution" >&5
4749 $as_echo_n "checking whether system() can handle command substitution... " >&6; }
4750 if test "$cross_compiling" = yes; then
4753 cat >conftest.$ac_ext <<_ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4761 int main (int argc, char*argv[])
4763 return system("test `touch config.tmp2`");
4767 rm -f conftest$ac_exeext
4768 if { (ac_try="$ac_link"
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4774 $as_echo "$ac_try_echo") >&5
4775 (eval "$ac_link") 2>&5
4777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4779 { (case "(($ac_try" in
4780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4781 *) ac_try_echo=$ac_try;;
4783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4784 $as_echo "$ac_try_echo") >&5
4785 (eval "$ac_try") 2>&5
4787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788 (exit $ac_status); }; }; then
4791 $as_echo "$as_me: program exited with status $ac_status" >&5
4792 $as_echo "$as_me: failed program was:" >&5
4793 sed 's/^/| /' conftest.$ac_ext >&5
4796 rm -rf conftest.dSYM
4797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4802 if test "x${OK}" = "xOK";then
4803 test -f config.tmp2 || OK=
4806 if test "x${CROSSCOMPILE}" = "x1";then
4809 if test "x${OK}" = "xOK";then
4811 { $as_echo "$as_me:$LINENO: result: yes" >&5
4812 $as_echo "yes" >&6; }
4814 export SYSTEM_BACKTICKS
4816 cat >>confdefs.h <<\_ACEOF
4817 #define SYSTEM_BACKTICKS 1
4821 { $as_echo "$as_me:$LINENO: result: no" >&5
4822 $as_echo "no" >&6; }
4827 test "$program_prefix" != NONE &&
4828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4829 # Use a double $ so make ignores it.
4830 test "$program_suffix" != NONE &&
4831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4832 # Double any \ or $.
4833 # By default was `s,x,x', remove it if useless.
4834 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4835 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4838 ac_config_headers="$ac_config_headers config.h"
4846 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4847 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4848 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
4849 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4851 $as_echo_n "(cached) " >&6
4853 cat >conftest.$ac_ext <<_ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 #include <sys/types.h>
4871 rm -f conftest.$ac_objext
4872 if { (ac_try="$ac_compile"
4874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4875 *) ac_try_echo=$ac_try;;
4877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4878 $as_echo "$ac_try_echo") >&5
4879 (eval "$ac_compile") 2>conftest.er1
4881 grep -v '^ *+' conftest.er1 >conftest.err
4883 cat conftest.err >&5
4884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } && {
4886 test -z "$ac_c_werror_flag" ||
4887 test ! -s conftest.err
4888 } && test -s conftest.$ac_objext; then
4889 eval "$as_ac_Header=yes"
4891 $as_echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.$ac_ext >&5
4894 eval "$as_ac_Header=no"
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4899 ac_res=`eval 'as_val=${'$as_ac_Header'}
4900 $as_echo "$as_val"'`
4901 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4902 $as_echo "$ac_res" >&6; }
4903 as_val=`eval 'as_val=${'$as_ac_Header'}
4904 $as_echo "$as_val"'`
4905 if test "x$as_val" = x""yes; then
4906 cat >>confdefs.h <<_ACEOF
4907 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4910 ac_header_dirent=$ac_hdr; break
4914 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4915 if test $ac_header_dirent = dirent.h; then
4916 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
4917 $as_echo_n "checking for library containing opendir... " >&6; }
4918 if test "${ac_cv_search_opendir+set}" = set; then
4919 $as_echo_n "(cached) " >&6
4921 ac_func_search_save_LIBS=$LIBS
4922 cat >conftest.$ac_ext <<_ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4929 /* Override any GCC internal prototype to avoid an error.
4930 Use char because int might match the return type of a GCC
4931 builtin and then its argument prototype would still apply. */
4944 for ac_lib in '' dir; do
4945 if test -z "$ac_lib"; then
4946 ac_res="none required"
4949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4951 rm -f conftest.$ac_objext conftest$ac_exeext
4952 if { (ac_try="$ac_link"
4954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4955 *) ac_try_echo=$ac_try;;
4957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4958 $as_echo "$ac_try_echo") >&5
4959 (eval "$ac_link") 2>conftest.er1
4961 grep -v '^ *+' conftest.er1 >conftest.err
4963 cat conftest.err >&5
4964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965 (exit $ac_status); } && {
4966 test -z "$ac_c_werror_flag" ||
4967 test ! -s conftest.err
4968 } && test -s conftest$ac_exeext && {
4969 test "$cross_compiling" = yes ||
4970 $as_test_x conftest$ac_exeext
4972 ac_cv_search_opendir=$ac_res
4974 $as_echo "$as_me: failed program was:" >&5
4975 sed 's/^/| /' conftest.$ac_ext >&5
4980 rm -rf conftest.dSYM
4981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4983 if test "${ac_cv_search_opendir+set}" = set; then
4987 if test "${ac_cv_search_opendir+set}" = set; then
4990 ac_cv_search_opendir=no
4993 LIBS=$ac_func_search_save_LIBS
4995 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
4996 $as_echo "$ac_cv_search_opendir" >&6; }
4997 ac_res=$ac_cv_search_opendir
4998 if test "$ac_res" != no; then
4999 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
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 '' x; 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"
5094 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5095 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5096 if test "${ac_cv_path_GREP+set}" = set; then
5097 $as_echo_n "(cached) " >&6
5099 if test -z "$GREP"; then
5100 ac_path_GREP_found=false
5101 # Loop through the user's path and test for each of PROGNAME-LIST
5102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5106 test -z "$as_dir" && as_dir=.
5107 for ac_prog in grep ggrep; do
5108 for ac_exec_ext in '' $ac_executable_extensions; do
5109 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5110 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5111 # Check for GNU ac_path_GREP and select it if it is found.
5112 # Check for GNU $ac_path_GREP
5113 case `"$ac_path_GREP" --version 2>&1` in
5115 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5118 $as_echo_n 0123456789 >"conftest.in"
5121 cat "conftest.in" "conftest.in" >"conftest.tmp"
5122 mv "conftest.tmp" "conftest.in"
5123 cp "conftest.in" "conftest.nl"
5124 $as_echo 'GREP' >> "conftest.nl"
5125 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5127 ac_count=`expr $ac_count + 1`
5128 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5129 # Best one so far, save it but keep looking for a better one
5130 ac_cv_path_GREP="$ac_path_GREP"
5131 ac_path_GREP_max=$ac_count
5133 # 10*(2^10) chars as input seems more than enough
5134 test $ac_count -gt 10 && break
5136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5139 $ac_path_GREP_found && break 3
5144 if test -z "$ac_cv_path_GREP"; then
5145 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5146 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5147 { (exit 1); exit 1; }; }
5150 ac_cv_path_GREP=$GREP
5154 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5155 $as_echo "$ac_cv_path_GREP" >&6; }
5156 GREP="$ac_cv_path_GREP"
5159 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5160 $as_echo_n "checking for egrep... " >&6; }
5161 if test "${ac_cv_path_EGREP+set}" = set; then
5162 $as_echo_n "(cached) " >&6
5164 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5165 then ac_cv_path_EGREP="$GREP -E"
5167 if test -z "$EGREP"; then
5168 ac_path_EGREP_found=false
5169 # Loop through the user's path and test for each of PROGNAME-LIST
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5174 test -z "$as_dir" && as_dir=.
5175 for ac_prog in egrep; do
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5178 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5179 # Check for GNU ac_path_EGREP and select it if it is found.
5180 # Check for GNU $ac_path_EGREP
5181 case `"$ac_path_EGREP" --version 2>&1` in
5183 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5186 $as_echo_n 0123456789 >"conftest.in"
5189 cat "conftest.in" "conftest.in" >"conftest.tmp"
5190 mv "conftest.tmp" "conftest.in"
5191 cp "conftest.in" "conftest.nl"
5192 $as_echo 'EGREP' >> "conftest.nl"
5193 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5195 ac_count=`expr $ac_count + 1`
5196 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5197 # Best one so far, save it but keep looking for a better one
5198 ac_cv_path_EGREP="$ac_path_EGREP"
5199 ac_path_EGREP_max=$ac_count
5201 # 10*(2^10) chars as input seems more than enough
5202 test $ac_count -gt 10 && break
5204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5207 $ac_path_EGREP_found && break 3
5212 if test -z "$ac_cv_path_EGREP"; then
5213 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5214 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5215 { (exit 1); exit 1; }; }
5218 ac_cv_path_EGREP=$EGREP
5223 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5224 $as_echo "$ac_cv_path_EGREP" >&6; }
5225 EGREP="$ac_cv_path_EGREP"
5228 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5229 $as_echo_n "checking for ANSI C header files... " >&6; }
5230 if test "${ac_cv_header_stdc+set}" = set; then
5231 $as_echo_n "(cached) " >&6
5233 cat >conftest.$ac_ext <<_ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5252 rm -f conftest.$ac_objext
5253 if { (ac_try="$ac_compile"
5255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5256 *) ac_try_echo=$ac_try;;
5258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5259 $as_echo "$ac_try_echo") >&5
5260 (eval "$ac_compile") 2>conftest.er1
5262 grep -v '^ *+' conftest.er1 >conftest.err
5264 cat conftest.err >&5
5265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266 (exit $ac_status); } && {
5267 test -z "$ac_c_werror_flag" ||
5268 test ! -s conftest.err
5269 } && test -s conftest.$ac_objext; then
5270 ac_cv_header_stdc=yes
5272 $as_echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 ac_cv_header_stdc=no
5278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5280 if test $ac_cv_header_stdc = yes; then
5281 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5282 cat >conftest.$ac_ext <<_ACEOF
5285 cat confdefs.h >>conftest.$ac_ext
5286 cat >>conftest.$ac_ext <<_ACEOF
5287 /* end confdefs.h. */
5291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5292 $EGREP "memchr" >/dev/null 2>&1; then
5295 ac_cv_header_stdc=no
5301 if test $ac_cv_header_stdc = yes; then
5302 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5303 cat >conftest.$ac_ext <<_ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5312 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5313 $EGREP "free" >/dev/null 2>&1; then
5316 ac_cv_header_stdc=no
5322 if test $ac_cv_header_stdc = yes; then
5323 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5324 if test "$cross_compiling" = yes; then
5327 cat >conftest.$ac_ext <<_ACEOF
5330 cat confdefs.h >>conftest.$ac_ext
5331 cat >>conftest.$ac_ext <<_ACEOF
5332 /* end confdefs.h. */
5335 #if ((' ' & 0x0FF) == 0x020)
5336 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5337 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5339 # define ISLOWER(c) \
5340 (('a' <= (c) && (c) <= 'i') \
5341 || ('j' <= (c) && (c) <= 'r') \
5342 || ('s' <= (c) && (c) <= 'z'))
5343 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5346 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5351 for (i = 0; i < 256; i++)
5352 if (XOR (islower (i), ISLOWER (i))
5353 || toupper (i) != TOUPPER (i))
5358 rm -f conftest$ac_exeext
5359 if { (ac_try="$ac_link"
5361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5362 *) ac_try_echo=$ac_try;;
5364 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5365 $as_echo "$ac_try_echo") >&5
5366 (eval "$ac_link") 2>&5
5368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5370 { (case "(($ac_try" in
5371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5372 *) ac_try_echo=$ac_try;;
5374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5375 $as_echo "$ac_try_echo") >&5
5376 (eval "$ac_try") 2>&5
5378 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; }; then
5382 $as_echo "$as_me: program exited with status $ac_status" >&5
5383 $as_echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5387 ac_cv_header_stdc=no
5389 rm -rf conftest.dSYM
5390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5396 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5397 $as_echo "$ac_cv_header_stdc" >&6; }
5398 if test $ac_cv_header_stdc = yes; then
5400 cat >>confdefs.h <<\_ACEOF
5401 #define STDC_HEADERS 1
5407 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5417 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5418 inttypes.h stdint.h unistd.h
5420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5421 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5422 $as_echo_n "checking for $ac_header... " >&6; }
5423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5424 $as_echo_n "(cached) " >&6
5426 cat >conftest.$ac_ext <<_ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 $ac_includes_default
5434 #include <$ac_header>
5436 rm -f conftest.$ac_objext
5437 if { (ac_try="$ac_compile"
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5443 $as_echo "$ac_try_echo") >&5
5444 (eval "$ac_compile") 2>conftest.er1
5446 grep -v '^ *+' conftest.er1 >conftest.err
5448 cat conftest.err >&5
5449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && {
5451 test -z "$ac_c_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest.$ac_objext; then
5454 eval "$as_ac_Header=yes"
5456 $as_echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5459 eval "$as_ac_Header=no"
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 ac_res=`eval 'as_val=${'$as_ac_Header'}
5465 $as_echo "$as_val"'`
5466 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5467 $as_echo "$ac_res" >&6; }
5468 as_val=`eval 'as_val=${'$as_ac_Header'}
5469 $as_echo "$as_val"'`
5470 if test "x$as_val" = x""yes; then
5471 cat >>confdefs.h <<_ACEOF
5472 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5500 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
5502 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5504 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5505 $as_echo_n "checking for $ac_header... " >&6; }
5506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5507 $as_echo_n "(cached) " >&6
5509 ac_res=`eval 'as_val=${'$as_ac_Header'}
5510 $as_echo "$as_val"'`
5511 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5512 $as_echo "$ac_res" >&6; }
5514 # Is the header compilable?
5515 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5516 $as_echo_n "checking $ac_header usability... " >&6; }
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523 $ac_includes_default
5524 #include <$ac_header>
5526 rm -f conftest.$ac_objext
5527 if { (ac_try="$ac_compile"
5529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5533 $as_echo "$ac_try_echo") >&5
5534 (eval "$ac_compile") 2>conftest.er1
5536 grep -v '^ *+' conftest.er1 >conftest.err
5538 cat conftest.err >&5
5539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } && {
5541 test -z "$ac_c_werror_flag" ||
5542 test ! -s conftest.err
5543 } && test -s conftest.$ac_objext; then
5544 ac_header_compiler=yes
5546 $as_echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_header_compiler=no
5552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5553 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5554 $as_echo "$ac_header_compiler" >&6; }
5556 # Is the header present?
5557 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5558 $as_echo_n "checking $ac_header presence... " >&6; }
5559 cat >conftest.$ac_ext <<_ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 #include <$ac_header>
5567 if { (ac_try="$ac_cpp conftest.$ac_ext"
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5573 $as_echo "$ac_try_echo") >&5
5574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5576 grep -v '^ *+' conftest.er1 >conftest.err
5578 cat conftest.err >&5
5579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } >/dev/null && {
5581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5582 test ! -s conftest.err
5584 ac_header_preproc=yes
5586 $as_echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5589 ac_header_preproc=no
5592 rm -f conftest.err conftest.$ac_ext
5593 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5594 $as_echo "$ac_header_preproc" >&6; }
5596 # So? What about this header?
5597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5600 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5602 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5603 ac_header_preproc=yes
5606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5607 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5608 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5609 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5610 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5611 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5613 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5615 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5617 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5621 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5622 $as_echo_n "checking for $ac_header... " >&6; }
5623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5624 $as_echo_n "(cached) " >&6
5626 eval "$as_ac_Header=\$ac_header_preproc"
5628 ac_res=`eval 'as_val=${'$as_ac_Header'}
5629 $as_echo "$as_val"'`
5630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5631 $as_echo "$ac_res" >&6; }
5634 as_val=`eval 'as_val=${'$as_ac_Header'}
5635 $as_echo "$as_val"'`
5636 if test "x$as_val" = x""yes; then
5637 cat >>confdefs.h <<_ACEOF
5638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5647 cat >>confdefs.h <<_ACEOF
5648 #define PACKAGE "$PACKAGE"
5652 cat >>confdefs.h <<_ACEOF
5653 #define VERSION "$VERSION"
5662 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5663 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5664 if test "${ac_cv_c_const+set}" = set; then
5665 $as_echo_n "(cached) " >&6
5667 cat >conftest.$ac_ext <<_ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5677 /* FIXME: Include the comments suggested by Paul. */
5679 /* Ultrix mips cc rejects this. */
5680 typedef int charset[2];
5682 /* SunOS 4.1.1 cc rejects this. */
5683 char const *const *pcpcc;
5685 /* NEC SVR4.0.2 mips cc rejects this. */
5686 struct point {int x, y;};
5687 static struct point const zero = {0,0};
5688 /* AIX XL C 1.02.0.0 rejects this.
5689 It does not let you subtract one const X* pointer from another in
5690 an arm of an if-expression whose if-part is not a constant
5692 const char *g = "string";
5693 pcpcc = &g + (g ? g-g : 0);
5694 /* HPUX 7.0 cc rejects these. */
5696 ppc = (char**) pcpcc;
5697 pcpcc = (char const *const *) ppc;
5698 { /* SCO 3.2v4 cc rejects this. */
5700 char const *s = 0 ? (char *) 0 : (char const *) 0;
5705 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5707 const int *foo = &x[0];
5710 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5711 typedef const int *iptr;
5715 { /* AIX XL C 1.02.0.0 rejects this saying
5716 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5717 struct s { int j; const int *ap[3]; };
5718 struct s *b; b->j = 5;
5720 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5724 return !cs[0] && !zero.x;
5731 rm -f conftest.$ac_objext
5732 if { (ac_try="$ac_compile"
5734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5738 $as_echo "$ac_try_echo") >&5
5739 (eval "$ac_compile") 2>conftest.er1
5741 grep -v '^ *+' conftest.er1 >conftest.err
5743 cat conftest.err >&5
5744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); } && {
5746 test -z "$ac_c_werror_flag" ||
5747 test ! -s conftest.err
5748 } && test -s conftest.$ac_objext; then
5751 $as_echo "$as_me: failed program was:" >&5
5752 sed 's/^/| /' conftest.$ac_ext >&5
5757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5759 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5760 $as_echo "$ac_cv_c_const" >&6; }
5761 if test $ac_cv_c_const = no; then
5763 cat >>confdefs.h <<\_ACEOF
5769 { $as_echo "$as_me:$LINENO: checking for inline" >&5
5770 $as_echo_n "checking for inline... " >&6; }
5771 if test "${ac_cv_c_inline+set}" = set; then
5772 $as_echo_n "(cached) " >&6
5775 for ac_kw in inline __inline__ __inline; do
5776 cat >conftest.$ac_ext <<_ACEOF
5779 cat confdefs.h >>conftest.$ac_ext
5780 cat >>conftest.$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5784 static $ac_kw foo_t static_foo () {return 0; }
5785 $ac_kw foo_t foo () {return 0; }
5789 rm -f conftest.$ac_objext
5790 if { (ac_try="$ac_compile"
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5796 $as_echo "$ac_try_echo") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5799 grep -v '^ *+' conftest.er1 >conftest.err
5801 cat conftest.err >&5
5802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } && {
5804 test -z "$ac_c_werror_flag" ||
5805 test ! -s conftest.err
5806 } && test -s conftest.$ac_objext; then
5807 ac_cv_c_inline=$ac_kw
5809 $as_echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.$ac_ext >&5
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816 test "$ac_cv_c_inline" != no && break
5820 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5821 $as_echo "$ac_cv_c_inline" >&6; }
5824 case $ac_cv_c_inline in
5827 case $ac_cv_c_inline in
5829 *) ac_val=$ac_cv_c_inline;;
5831 cat >>confdefs.h <<_ACEOF
5833 #define inline $ac_val
5839 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
5840 $as_echo_n "checking for off_t... " >&6; }
5841 if test "${ac_cv_type_off_t+set}" = set; then
5842 $as_echo_n "(cached) " >&6
5845 cat >conftest.$ac_ext <<_ACEOF
5848 cat confdefs.h >>conftest.$ac_ext
5849 cat >>conftest.$ac_ext <<_ACEOF
5850 /* end confdefs.h. */
5851 $ac_includes_default
5861 rm -f conftest.$ac_objext
5862 if { (ac_try="$ac_compile"
5864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5865 *) ac_try_echo=$ac_try;;
5867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5868 $as_echo "$ac_try_echo") >&5
5869 (eval "$ac_compile") 2>conftest.er1
5871 grep -v '^ *+' conftest.er1 >conftest.err
5873 cat conftest.err >&5
5874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5875 (exit $ac_status); } && {
5876 test -z "$ac_c_werror_flag" ||
5877 test ! -s conftest.err
5878 } && test -s conftest.$ac_objext; then
5879 cat >conftest.$ac_ext <<_ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 $ac_includes_default
5889 if (sizeof ((off_t)))
5895 rm -f conftest.$ac_objext
5896 if { (ac_try="$ac_compile"
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5902 $as_echo "$ac_try_echo") >&5
5903 (eval "$ac_compile") 2>conftest.er1
5905 grep -v '^ *+' conftest.er1 >conftest.err
5907 cat conftest.err >&5
5908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); } && {
5910 test -z "$ac_c_werror_flag" ||
5911 test ! -s conftest.err
5912 } && test -s conftest.$ac_objext; then
5915 $as_echo "$as_me: failed program was:" >&5
5916 sed 's/^/| /' conftest.$ac_ext >&5
5918 ac_cv_type_off_t=yes
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923 $as_echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5932 $as_echo "$ac_cv_type_off_t" >&6; }
5933 if test "x$ac_cv_type_off_t" = x""yes; then
5937 cat >>confdefs.h <<_ACEOF
5938 #define off_t long int
5943 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
5944 $as_echo_n "checking for size_t... " >&6; }
5945 if test "${ac_cv_type_size_t+set}" = set; then
5946 $as_echo_n "(cached) " >&6
5948 ac_cv_type_size_t=no
5949 cat >conftest.$ac_ext <<_ACEOF
5952 cat confdefs.h >>conftest.$ac_ext
5953 cat >>conftest.$ac_ext <<_ACEOF
5954 /* end confdefs.h. */
5955 $ac_includes_default
5959 if (sizeof (size_t))
5965 rm -f conftest.$ac_objext
5966 if { (ac_try="$ac_compile"
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5972 $as_echo "$ac_try_echo") >&5
5973 (eval "$ac_compile") 2>conftest.er1
5975 grep -v '^ *+' conftest.er1 >conftest.err
5977 cat conftest.err >&5
5978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } && {
5980 test -z "$ac_c_werror_flag" ||
5981 test ! -s conftest.err
5982 } && test -s conftest.$ac_objext; then
5983 cat >conftest.$ac_ext <<_ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 $ac_includes_default
5993 if (sizeof ((size_t)))
5999 rm -f conftest.$ac_objext
6000 if { (ac_try="$ac_compile"
6002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6003 *) ac_try_echo=$ac_try;;
6005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6006 $as_echo "$ac_try_echo") >&5
6007 (eval "$ac_compile") 2>conftest.er1
6009 grep -v '^ *+' conftest.er1 >conftest.err
6011 cat conftest.err >&5
6012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } && {
6014 test -z "$ac_c_werror_flag" ||
6015 test ! -s conftest.err
6016 } && test -s conftest.$ac_objext; then
6019 $as_echo "$as_me: failed program was:" >&5
6020 sed 's/^/| /' conftest.$ac_ext >&5
6022 ac_cv_type_size_t=yes
6025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 $as_echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6036 $as_echo "$ac_cv_type_size_t" >&6; }
6037 if test "x$ac_cv_type_size_t" = x""yes; then
6041 cat >>confdefs.h <<_ACEOF
6042 #define size_t unsigned int
6047 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6048 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6049 if test "${ac_cv_struct_tm+set}" = set; then
6050 $as_echo_n "(cached) " >&6
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #include <sys/types.h>
6065 int *p = &tm.tm_sec;
6071 rm -f conftest.$ac_objext
6072 if { (ac_try="$ac_compile"
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6078 $as_echo "$ac_try_echo") >&5
6079 (eval "$ac_compile") 2>conftest.er1
6081 grep -v '^ *+' conftest.er1 >conftest.err
6083 cat conftest.err >&5
6084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); } && {
6086 test -z "$ac_c_werror_flag" ||
6087 test ! -s conftest.err
6088 } && test -s conftest.$ac_objext; then
6089 ac_cv_struct_tm=time.h
6091 $as_echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6094 ac_cv_struct_tm=sys/time.h
6097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6099 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6100 $as_echo "$ac_cv_struct_tm" >&6; }
6101 if test $ac_cv_struct_tm = sys/time.h; then
6103 cat >>confdefs.h <<\_ACEOF
6104 #define TM_IN_SYS_TIME 1
6109 { $as_echo "$as_me:$LINENO: checking for boolean" >&5
6110 $as_echo_n "checking for boolean... " >&6; }
6111 if test "${ac_cv_type_boolean+set}" = set; then
6112 $as_echo_n "(cached) " >&6
6114 ac_cv_type_boolean=no
6115 cat >conftest.$ac_ext <<_ACEOF
6118 cat confdefs.h >>conftest.$ac_ext
6119 cat >>conftest.$ac_ext <<_ACEOF
6120 /* end confdefs.h. */
6121 $ac_includes_default
6125 if (sizeof (boolean))
6131 rm -f conftest.$ac_objext
6132 if { (ac_try="$ac_compile"
6134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6135 *) ac_try_echo=$ac_try;;
6137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6138 $as_echo "$ac_try_echo") >&5
6139 (eval "$ac_compile") 2>conftest.er1
6141 grep -v '^ *+' conftest.er1 >conftest.err
6143 cat conftest.err >&5
6144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } && {
6146 test -z "$ac_c_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest.$ac_objext; then
6149 cat >conftest.$ac_ext <<_ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 $ac_includes_default
6159 if (sizeof ((boolean)))
6165 rm -f conftest.$ac_objext
6166 if { (ac_try="$ac_compile"
6168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6169 *) ac_try_echo=$ac_try;;
6171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6172 $as_echo "$ac_try_echo") >&5
6173 (eval "$ac_compile") 2>conftest.er1
6175 grep -v '^ *+' conftest.er1 >conftest.err
6177 cat conftest.err >&5
6178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6179 (exit $ac_status); } && {
6180 test -z "$ac_c_werror_flag" ||
6181 test ! -s conftest.err
6182 } && test -s conftest.$ac_objext; then
6185 $as_echo "$as_me: failed program was:" >&5
6186 sed 's/^/| /' conftest.$ac_ext >&5
6188 ac_cv_type_boolean=yes
6191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6193 $as_echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
6202 $as_echo "$ac_cv_type_boolean" >&6; }
6203 if test "x$ac_cv_type_boolean" = x""yes; then
6207 cat >>confdefs.h <<_ACEOF
6228 for ac_func in popen wcschr wcsdup mkstemp stat mmap lrand48 rand srand48 srand bcopy bzero time getrusage mallinfo
6230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6231 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
6232 $as_echo_n "checking for $ac_func... " >&6; }
6233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
6234 $as_echo_n "(cached) " >&6
6236 cat >conftest.$ac_ext <<_ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6244 #define $ac_func innocuous_$ac_func
6246 /* System header to define __stub macros and hopefully few prototypes,
6247 which can conflict with char $ac_func (); below.
6248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6249 <limits.h> exists even on freestanding compilers. */
6252 # include <limits.h>
6254 # include <assert.h>
6259 /* Override any GCC internal prototype to avoid an error.
6260 Use char because int might match the return type of a GCC
6261 builtin and then its argument prototype would still apply. */
6266 /* The GNU C library defines this for functions which it implements
6267 to always fail with ENOSYS. Some functions are actually named
6268 something starting with __ and the normal name is an alias. */
6269 #if defined __stub_$ac_func || defined __stub___$ac_func
6281 rm -f conftest.$ac_objext conftest$ac_exeext
6282 if { (ac_try="$ac_link"
6284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6285 *) ac_try_echo=$ac_try;;
6287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6288 $as_echo "$ac_try_echo") >&5
6289 (eval "$ac_link") 2>conftest.er1
6291 grep -v '^ *+' conftest.er1 >conftest.err
6293 cat conftest.err >&5
6294 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest$ac_exeext && {
6299 test "$cross_compiling" = yes ||
6300 $as_test_x conftest$ac_exeext
6302 eval "$as_ac_var=yes"
6304 $as_echo "$as_me: failed program was:" >&5
6305 sed 's/^/| /' conftest.$ac_ext >&5
6307 eval "$as_ac_var=no"
6310 rm -rf conftest.dSYM
6311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6312 conftest$ac_exeext conftest.$ac_ext
6314 ac_res=`eval 'as_val=${'$as_ac_var'}
6315 $as_echo "$as_val"'`
6316 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6317 $as_echo "$ac_res" >&6; }
6318 as_val=`eval 'as_val=${'$as_ac_var'}
6319 $as_echo "$as_val"'`
6320 if test "x$as_val" = x""yes; then
6321 cat >>confdefs.h <<_ACEOF
6322 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6329 # The cast to long int works around a bug in the HP C Compiler
6330 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6331 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6332 # This bug is HP SR number 8606223364.
6333 { $as_echo "$as_me:$LINENO: checking size of signed char" >&5
6334 $as_echo_n "checking size of signed char... " >&6; }
6335 if test "${ac_cv_sizeof_signed_char+set}" = set; then
6336 $as_echo_n "(cached) " >&6
6338 if test "$cross_compiling" = yes; then
6339 # Depending upon the size, compute the lo and hi bounds.
6340 cat >conftest.$ac_ext <<_ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h. */
6346 $ac_includes_default
6350 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= 0)];
6357 rm -f conftest.$ac_objext
6358 if { (ac_try="$ac_compile"
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6364 $as_echo "$ac_try_echo") >&5
6365 (eval "$ac_compile") 2>conftest.er1
6367 grep -v '^ *+' conftest.er1 >conftest.err
6369 cat conftest.err >&5
6370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); } && {
6372 test -z "$ac_c_werror_flag" ||
6373 test ! -s conftest.err
6374 } && test -s conftest.$ac_objext; then
6377 cat >conftest.$ac_ext <<_ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 $ac_includes_default
6387 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6394 rm -f conftest.$ac_objext
6395 if { (ac_try="$ac_compile"
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6401 $as_echo "$ac_try_echo") >&5
6402 (eval "$ac_compile") 2>conftest.er1
6404 grep -v '^ *+' conftest.er1 >conftest.err
6406 cat conftest.err >&5
6407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } && {
6409 test -z "$ac_c_werror_flag" ||
6410 test ! -s conftest.err
6411 } && test -s conftest.$ac_objext; then
6412 ac_hi=$ac_mid; break
6414 $as_echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6417 ac_lo=`expr $ac_mid + 1`
6418 if test $ac_lo -le $ac_mid; then
6422 ac_mid=`expr 2 '*' $ac_mid + 1`
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428 $as_echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 cat >conftest.$ac_ext <<_ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6437 $ac_includes_default
6441 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) < 0)];
6448 rm -f conftest.$ac_objext
6449 if { (ac_try="$ac_compile"
6451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6452 *) ac_try_echo=$ac_try;;
6454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6455 $as_echo "$ac_try_echo") >&5
6456 (eval "$ac_compile") 2>conftest.er1
6458 grep -v '^ *+' conftest.er1 >conftest.err
6460 cat conftest.err >&5
6461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } && {
6463 test -z "$ac_c_werror_flag" ||
6464 test ! -s conftest.err
6465 } && test -s conftest.$ac_objext; then
6468 cat >conftest.$ac_ext <<_ACEOF
6471 cat confdefs.h >>conftest.$ac_ext
6472 cat >>conftest.$ac_ext <<_ACEOF
6473 /* end confdefs.h. */
6474 $ac_includes_default
6478 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) >= $ac_mid)];
6485 rm -f conftest.$ac_objext
6486 if { (ac_try="$ac_compile"
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6492 $as_echo "$ac_try_echo") >&5
6493 (eval "$ac_compile") 2>conftest.er1
6495 grep -v '^ *+' conftest.er1 >conftest.err
6497 cat conftest.err >&5
6498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); } && {
6500 test -z "$ac_c_werror_flag" ||
6501 test ! -s conftest.err
6502 } && test -s conftest.$ac_objext; then
6503 ac_lo=$ac_mid; break
6505 $as_echo "$as_me: failed program was:" >&5
6506 sed 's/^/| /' conftest.$ac_ext >&5
6508 ac_hi=`expr '(' $ac_mid ')' - 1`
6509 if test $ac_mid -le $ac_hi; then
6513 ac_mid=`expr 2 '*' $ac_mid`
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 $as_echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 # Binary search between lo and hi bounds.
6530 while test "x$ac_lo" != "x$ac_hi"; do
6531 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6532 cat >conftest.$ac_ext <<_ACEOF
6535 cat confdefs.h >>conftest.$ac_ext
6536 cat >>conftest.$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6538 $ac_includes_default
6542 static int test_array [1 - 2 * !(((long int) (sizeof (signed char))) <= $ac_mid)];
6549 rm -f conftest.$ac_objext
6550 if { (ac_try="$ac_compile"
6552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6553 *) ac_try_echo=$ac_try;;
6555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6556 $as_echo "$ac_try_echo") >&5
6557 (eval "$ac_compile") 2>conftest.er1
6559 grep -v '^ *+' conftest.er1 >conftest.err
6561 cat conftest.err >&5
6562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } && {
6564 test -z "$ac_c_werror_flag" ||
6565 test ! -s conftest.err
6566 } && test -s conftest.$ac_objext; then
6569 $as_echo "$as_me: failed program was:" >&5
6570 sed 's/^/| /' conftest.$ac_ext >&5
6572 ac_lo=`expr '(' $ac_mid ')' + 1`
6575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 ?*) ac_cv_sizeof_signed_char=$ac_lo;;
6579 '') if test "$ac_cv_type_signed_char" = yes; then
6580 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6582 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6583 See \`config.log' for more details." >&5
6584 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6585 See \`config.log' for more details." >&2;}
6586 { (exit 77); exit 77; }; }; }
6588 ac_cv_sizeof_signed_char=0
6592 cat >conftest.$ac_ext <<_ACEOF
6595 cat confdefs.h >>conftest.$ac_ext
6596 cat >>conftest.$ac_ext <<_ACEOF
6597 /* end confdefs.h. */
6598 $ac_includes_default
6599 static long int longval () { return (long int) (sizeof (signed char)); }
6600 static unsigned long int ulongval () { return (long int) (sizeof (signed char)); }
6607 FILE *f = fopen ("conftest.val", "w");
6610 if (((long int) (sizeof (signed char))) < 0)
6612 long int i = longval ();
6613 if (i != ((long int) (sizeof (signed char))))
6615 fprintf (f, "%ld", i);
6619 unsigned long int i = ulongval ();
6620 if (i != ((long int) (sizeof (signed char))))
6622 fprintf (f, "%lu", i);
6624 /* Do not output a trailing newline, as this causes \r\n confusion
6625 on some platforms. */
6626 return ferror (f) || fclose (f) != 0;
6632 rm -f conftest$ac_exeext
6633 if { (ac_try="$ac_link"
6635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6636 *) ac_try_echo=$ac_try;;
6638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6639 $as_echo "$ac_try_echo") >&5
6640 (eval "$ac_link") 2>&5
6642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6644 { (case "(($ac_try" in
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6649 $as_echo "$ac_try_echo") >&5
6650 (eval "$ac_try") 2>&5
6652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_cv_sizeof_signed_char=`cat conftest.val`
6656 $as_echo "$as_me: program exited with status $ac_status" >&5
6657 $as_echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6661 if test "$ac_cv_type_signed_char" = yes; then
6662 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6664 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed char)
6665 See \`config.log' for more details." >&5
6666 $as_echo "$as_me: error: cannot compute sizeof (signed char)
6667 See \`config.log' for more details." >&2;}
6668 { (exit 77); exit 77; }; }; }
6670 ac_cv_sizeof_signed_char=0
6673 rm -rf conftest.dSYM
6674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6678 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_char" >&5
6679 $as_echo "$ac_cv_sizeof_signed_char" >&6; }
6683 cat >>confdefs.h <<_ACEOF
6684 #define SIZEOF_SIGNED_CHAR $ac_cv_sizeof_signed_char
6688 # The cast to long int works around a bug in the HP C Compiler
6689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
6690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
6691 # This bug is HP SR number 8606223364.
6692 { $as_echo "$as_me:$LINENO: checking size of signed short" >&5
6693 $as_echo_n "checking size of signed short... " >&6; }
6694 if test "${ac_cv_sizeof_signed_short+set}" = set; then
6695 $as_echo_n "(cached) " >&6
6697 if test "$cross_compiling" = yes; then
6698 # Depending upon the size, compute the lo and hi bounds.
6699 cat >conftest.$ac_ext <<_ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 $ac_includes_default
6709 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
6716 rm -f conftest.$ac_objext
6717 if { (ac_try="$ac_compile"
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6723 $as_echo "$ac_try_echo") >&5
6724 (eval "$ac_compile") 2>conftest.er1
6726 grep -v '^ *+' conftest.er1 >conftest.err
6728 cat conftest.err >&5
6729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6730 (exit $ac_status); } && {
6731 test -z "$ac_c_werror_flag" ||
6732 test ! -s conftest.err
6733 } && test -s conftest.$ac_objext; then
6736 cat >conftest.$ac_ext <<_ACEOF
6739 cat confdefs.h >>conftest.$ac_ext
6740 cat >>conftest.$ac_ext <<_ACEOF
6741 /* end confdefs.h. */
6742 $ac_includes_default
6746 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6753 rm -f conftest.$ac_objext
6754 if { (ac_try="$ac_compile"
6756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6757 *) ac_try_echo=$ac_try;;
6759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6760 $as_echo "$ac_try_echo") >&5
6761 (eval "$ac_compile") 2>conftest.er1
6763 grep -v '^ *+' conftest.er1 >conftest.err
6765 cat conftest.err >&5
6766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6767 (exit $ac_status); } && {
6768 test -z "$ac_c_werror_flag" ||
6769 test ! -s conftest.err
6770 } && test -s conftest.$ac_objext; then
6771 ac_hi=$ac_mid; break
6773 $as_echo "$as_me: failed program was:" >&5
6774 sed 's/^/| /' conftest.$ac_ext >&5
6776 ac_lo=`expr $ac_mid + 1`
6777 if test $ac_lo -le $ac_mid; then
6781 ac_mid=`expr 2 '*' $ac_mid + 1`
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787 $as_echo "$as_me: failed program was:" >&5
6788 sed 's/^/| /' conftest.$ac_ext >&5
6790 cat >conftest.$ac_ext <<_ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6796 $ac_includes_default
6800 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
6807 rm -f conftest.$ac_objext
6808 if { (ac_try="$ac_compile"
6810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811 *) ac_try_echo=$ac_try;;
6813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6814 $as_echo "$ac_try_echo") >&5
6815 (eval "$ac_compile") 2>conftest.er1
6817 grep -v '^ *+' conftest.er1 >conftest.err
6819 cat conftest.err >&5
6820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); } && {
6822 test -z "$ac_c_werror_flag" ||
6823 test ! -s conftest.err
6824 } && test -s conftest.$ac_objext; then
6827 cat >conftest.$ac_ext <<_ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 $ac_includes_default
6837 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
6844 rm -f conftest.$ac_objext
6845 if { (ac_try="$ac_compile"
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6851 $as_echo "$ac_try_echo") >&5
6852 (eval "$ac_compile") 2>conftest.er1
6854 grep -v '^ *+' conftest.er1 >conftest.err
6856 cat conftest.err >&5
6857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } && {
6859 test -z "$ac_c_werror_flag" ||
6860 test ! -s conftest.err
6861 } && test -s conftest.$ac_objext; then
6862 ac_lo=$ac_mid; break
6864 $as_echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6867 ac_hi=`expr '(' $ac_mid ')' - 1`
6868 if test $ac_mid -le $ac_hi; then
6872 ac_mid=`expr 2 '*' $ac_mid`
6875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6878 $as_echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 # Binary search between lo and hi bounds.
6889 while test "x$ac_lo" != "x$ac_hi"; do
6890 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
6891 cat >conftest.$ac_ext <<_ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 $ac_includes_default
6901 static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
6908 rm -f conftest.$ac_objext
6909 if { (ac_try="$ac_compile"
6911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6912 *) ac_try_echo=$ac_try;;
6914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6915 $as_echo "$ac_try_echo") >&5
6916 (eval "$ac_compile") 2>conftest.er1
6918 grep -v '^ *+' conftest.er1 >conftest.err
6920 cat conftest.err >&5
6921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); } && {
6923 test -z "$ac_c_werror_flag" ||
6924 test ! -s conftest.err
6925 } && test -s conftest.$ac_objext; then
6928 $as_echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6931 ac_lo=`expr '(' $ac_mid ')' + 1`
6934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 ?*) ac_cv_sizeof_signed_short=$ac_lo;;
6938 '') if test "$ac_cv_type_signed_short" = yes; then
6939 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
6940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6941 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
6942 See \`config.log' for more details." >&5
6943 $as_echo "$as_me: error: cannot compute sizeof (signed short)
6944 See \`config.log' for more details." >&2;}
6945 { (exit 77); exit 77; }; }; }
6947 ac_cv_sizeof_signed_short=0
6951 cat >conftest.$ac_ext <<_ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6957 $ac_includes_default
6958 static long int longval () { return (long int) (sizeof (signed short)); }
6959 static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
6966 FILE *f = fopen ("conftest.val", "w");
6969 if (((long int) (sizeof (signed short))) < 0)
6971 long int i = longval ();
6972 if (i != ((long int) (sizeof (signed short))))
6974 fprintf (f, "%ld", i);
6978 unsigned long int i = ulongval ();
6979 if (i != ((long int) (sizeof (signed short))))
6981 fprintf (f, "%lu", i);
6983 /* Do not output a trailing newline, as this causes \r\n confusion
6984 on some platforms. */
6985 return ferror (f) || fclose (f) != 0;
6991 rm -f conftest$ac_exeext
6992 if { (ac_try="$ac_link"
6994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6995 *) ac_try_echo=$ac_try;;
6997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6998 $as_echo "$ac_try_echo") >&5
6999 (eval "$ac_link") 2>&5
7001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7003 { (case "(($ac_try" in
7004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005 *) ac_try_echo=$ac_try;;
7007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7008 $as_echo "$ac_try_echo") >&5
7009 (eval "$ac_try") 2>&5
7011 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); }; }; then
7013 ac_cv_sizeof_signed_short=`cat conftest.val`
7015 $as_echo "$as_me: program exited with status $ac_status" >&5
7016 $as_echo "$as_me: failed program was:" >&5
7017 sed 's/^/| /' conftest.$ac_ext >&5
7020 if test "$ac_cv_type_signed_short" = yes; then
7021 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7022 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7023 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
7024 See \`config.log' for more details." >&5
7025 $as_echo "$as_me: error: cannot compute sizeof (signed short)
7026 See \`config.log' for more details." >&2;}
7027 { (exit 77); exit 77; }; }; }
7029 ac_cv_sizeof_signed_short=0
7032 rm -rf conftest.dSYM
7033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7037 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
7038 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
7042 cat >>confdefs.h <<_ACEOF
7043 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
7047 # The cast to long int works around a bug in the HP C Compiler
7048 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7049 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7050 # This bug is HP SR number 8606223364.
7051 { $as_echo "$as_me:$LINENO: checking size of signed" >&5
7052 $as_echo_n "checking size of signed... " >&6; }
7053 if test "${ac_cv_sizeof_signed+set}" = set; then
7054 $as_echo_n "(cached) " >&6
7056 if test "$cross_compiling" = yes; then
7057 # Depending upon the size, compute the lo and hi bounds.
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 $ac_includes_default
7068 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= 0)];
7075 rm -f conftest.$ac_objext
7076 if { (ac_try="$ac_compile"
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7082 $as_echo "$ac_try_echo") >&5
7083 (eval "$ac_compile") 2>conftest.er1
7085 grep -v '^ *+' conftest.er1 >conftest.err
7087 cat conftest.err >&5
7088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && {
7090 test -z "$ac_c_werror_flag" ||
7091 test ! -s conftest.err
7092 } && test -s conftest.$ac_objext; then
7095 cat >conftest.$ac_ext <<_ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 $ac_includes_default
7105 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7112 rm -f conftest.$ac_objext
7113 if { (ac_try="$ac_compile"
7115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7116 *) ac_try_echo=$ac_try;;
7118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7119 $as_echo "$ac_try_echo") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7122 grep -v '^ *+' conftest.er1 >conftest.err
7124 cat conftest.err >&5
7125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7130 ac_hi=$ac_mid; break
7132 $as_echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7135 ac_lo=`expr $ac_mid + 1`
7136 if test $ac_lo -le $ac_mid; then
7140 ac_mid=`expr 2 '*' $ac_mid + 1`
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7146 $as_echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7149 cat >conftest.$ac_ext <<_ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 $ac_includes_default
7159 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) < 0)];
7166 rm -f conftest.$ac_objext
7167 if { (ac_try="$ac_compile"
7169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170 *) ac_try_echo=$ac_try;;
7172 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7173 $as_echo "$ac_try_echo") >&5
7174 (eval "$ac_compile") 2>conftest.er1
7176 grep -v '^ *+' conftest.er1 >conftest.err
7178 cat conftest.err >&5
7179 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); } && {
7181 test -z "$ac_c_werror_flag" ||
7182 test ! -s conftest.err
7183 } && test -s conftest.$ac_objext; then
7186 cat >conftest.$ac_ext <<_ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 $ac_includes_default
7196 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) >= $ac_mid)];
7203 rm -f conftest.$ac_objext
7204 if { (ac_try="$ac_compile"
7206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7207 *) ac_try_echo=$ac_try;;
7209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7210 $as_echo "$ac_try_echo") >&5
7211 (eval "$ac_compile") 2>conftest.er1
7213 grep -v '^ *+' conftest.er1 >conftest.err
7215 cat conftest.err >&5
7216 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } && {
7218 test -z "$ac_c_werror_flag" ||
7219 test ! -s conftest.err
7220 } && test -s conftest.$ac_objext; then
7221 ac_lo=$ac_mid; break
7223 $as_echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7226 ac_hi=`expr '(' $ac_mid ')' - 1`
7227 if test $ac_mid -le $ac_hi; then
7231 ac_mid=`expr 2 '*' $ac_mid`
7234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7237 $as_echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.$ac_ext >&5
7243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7247 # Binary search between lo and hi bounds.
7248 while test "x$ac_lo" != "x$ac_hi"; do
7249 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7250 cat >conftest.$ac_ext <<_ACEOF
7253 cat confdefs.h >>conftest.$ac_ext
7254 cat >>conftest.$ac_ext <<_ACEOF
7255 /* end confdefs.h. */
7256 $ac_includes_default
7260 static int test_array [1 - 2 * !(((long int) (sizeof (signed))) <= $ac_mid)];
7267 rm -f conftest.$ac_objext
7268 if { (ac_try="$ac_compile"
7270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7271 *) ac_try_echo=$ac_try;;
7273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7274 $as_echo "$ac_try_echo") >&5
7275 (eval "$ac_compile") 2>conftest.er1
7277 grep -v '^ *+' conftest.er1 >conftest.err
7279 cat conftest.err >&5
7280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && {
7282 test -z "$ac_c_werror_flag" ||
7283 test ! -s conftest.err
7284 } && test -s conftest.$ac_objext; then
7287 $as_echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7290 ac_lo=`expr '(' $ac_mid ')' + 1`
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7296 ?*) ac_cv_sizeof_signed=$ac_lo;;
7297 '') if test "$ac_cv_type_signed" = yes; then
7298 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7300 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7301 See \`config.log' for more details." >&5
7302 $as_echo "$as_me: error: cannot compute sizeof (signed)
7303 See \`config.log' for more details." >&2;}
7304 { (exit 77); exit 77; }; }; }
7306 ac_cv_sizeof_signed=0
7310 cat >conftest.$ac_ext <<_ACEOF
7313 cat confdefs.h >>conftest.$ac_ext
7314 cat >>conftest.$ac_ext <<_ACEOF
7315 /* end confdefs.h. */
7316 $ac_includes_default
7317 static long int longval () { return (long int) (sizeof (signed)); }
7318 static unsigned long int ulongval () { return (long int) (sizeof (signed)); }
7325 FILE *f = fopen ("conftest.val", "w");
7328 if (((long int) (sizeof (signed))) < 0)
7330 long int i = longval ();
7331 if (i != ((long int) (sizeof (signed))))
7333 fprintf (f, "%ld", i);
7337 unsigned long int i = ulongval ();
7338 if (i != ((long int) (sizeof (signed))))
7340 fprintf (f, "%lu", i);
7342 /* Do not output a trailing newline, as this causes \r\n confusion
7343 on some platforms. */
7344 return ferror (f) || fclose (f) != 0;
7350 rm -f conftest$ac_exeext
7351 if { (ac_try="$ac_link"
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7357 $as_echo "$ac_try_echo") >&5
7358 (eval "$ac_link") 2>&5
7360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7362 { (case "(($ac_try" in
7363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7364 *) ac_try_echo=$ac_try;;
7366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7367 $as_echo "$ac_try_echo") >&5
7368 (eval "$ac_try") 2>&5
7370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }; }; then
7372 ac_cv_sizeof_signed=`cat conftest.val`
7374 $as_echo "$as_me: program exited with status $ac_status" >&5
7375 $as_echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7379 if test "$ac_cv_type_signed" = yes; then
7380 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7381 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7382 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed)
7383 See \`config.log' for more details." >&5
7384 $as_echo "$as_me: error: cannot compute sizeof (signed)
7385 See \`config.log' for more details." >&2;}
7386 { (exit 77); exit 77; }; }; }
7388 ac_cv_sizeof_signed=0
7391 rm -rf conftest.dSYM
7392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7396 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed" >&5
7397 $as_echo "$ac_cv_sizeof_signed" >&6; }
7401 cat >>confdefs.h <<_ACEOF
7402 #define SIZEOF_SIGNED $ac_cv_sizeof_signed
7406 # The cast to long int works around a bug in the HP C Compiler
7407 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7408 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7409 # This bug is HP SR number 8606223364.
7410 { $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
7411 $as_echo_n "checking size of signed long long... " >&6; }
7412 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
7413 $as_echo_n "(cached) " >&6
7415 if test "$cross_compiling" = yes; then
7416 # Depending upon the size, compute the lo and hi bounds.
7417 cat >conftest.$ac_ext <<_ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 $ac_includes_default
7427 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
7434 rm -f conftest.$ac_objext
7435 if { (ac_try="$ac_compile"
7437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438 *) ac_try_echo=$ac_try;;
7440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7441 $as_echo "$ac_try_echo") >&5
7442 (eval "$ac_compile") 2>conftest.er1
7444 grep -v '^ *+' conftest.er1 >conftest.err
7446 cat conftest.err >&5
7447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } && {
7449 test -z "$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7451 } && test -s conftest.$ac_objext; then
7454 cat >conftest.$ac_ext <<_ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 $ac_includes_default
7464 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7471 rm -f conftest.$ac_objext
7472 if { (ac_try="$ac_compile"
7474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7475 *) ac_try_echo=$ac_try;;
7477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7478 $as_echo "$ac_try_echo") >&5
7479 (eval "$ac_compile") 2>conftest.er1
7481 grep -v '^ *+' conftest.er1 >conftest.err
7483 cat conftest.err >&5
7484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } && {
7486 test -z "$ac_c_werror_flag" ||
7487 test ! -s conftest.err
7488 } && test -s conftest.$ac_objext; then
7489 ac_hi=$ac_mid; break
7491 $as_echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7494 ac_lo=`expr $ac_mid + 1`
7495 if test $ac_lo -le $ac_mid; then
7499 ac_mid=`expr 2 '*' $ac_mid + 1`
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7505 $as_echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7508 cat >conftest.$ac_ext <<_ACEOF
7511 cat confdefs.h >>conftest.$ac_ext
7512 cat >>conftest.$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 $ac_includes_default
7518 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
7525 rm -f conftest.$ac_objext
7526 if { (ac_try="$ac_compile"
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7531 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7532 $as_echo "$ac_try_echo") >&5
7533 (eval "$ac_compile") 2>conftest.er1
7535 grep -v '^ *+' conftest.er1 >conftest.err
7537 cat conftest.err >&5
7538 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest.$ac_objext; then
7545 cat >conftest.$ac_ext <<_ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 $ac_includes_default
7555 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
7562 rm -f conftest.$ac_objext
7563 if { (ac_try="$ac_compile"
7565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7566 *) ac_try_echo=$ac_try;;
7568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7569 $as_echo "$ac_try_echo") >&5
7570 (eval "$ac_compile") 2>conftest.er1
7572 grep -v '^ *+' conftest.er1 >conftest.err
7574 cat conftest.err >&5
7575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); } && {
7577 test -z "$ac_c_werror_flag" ||
7578 test ! -s conftest.err
7579 } && test -s conftest.$ac_objext; then
7580 ac_lo=$ac_mid; break
7582 $as_echo "$as_me: failed program was:" >&5
7583 sed 's/^/| /' conftest.$ac_ext >&5
7585 ac_hi=`expr '(' $ac_mid ')' - 1`
7586 if test $ac_mid -le $ac_hi; then
7590 ac_mid=`expr 2 '*' $ac_mid`
7593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7596 $as_echo "$as_me: failed program was:" >&5
7597 sed 's/^/| /' conftest.$ac_ext >&5
7602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7606 # Binary search between lo and hi bounds.
7607 while test "x$ac_lo" != "x$ac_hi"; do
7608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7609 cat >conftest.$ac_ext <<_ACEOF
7612 cat confdefs.h >>conftest.$ac_ext
7613 cat >>conftest.$ac_ext <<_ACEOF
7614 /* end confdefs.h. */
7615 $ac_includes_default
7619 static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
7626 rm -f conftest.$ac_objext
7627 if { (ac_try="$ac_compile"
7629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7630 *) ac_try_echo=$ac_try;;
7632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7633 $as_echo "$ac_try_echo") >&5
7634 (eval "$ac_compile") 2>conftest.er1
7636 grep -v '^ *+' conftest.er1 >conftest.err
7638 cat conftest.err >&5
7639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_c_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest.$ac_objext; then
7646 $as_echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7649 ac_lo=`expr '(' $ac_mid ')' + 1`
7652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 ?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
7656 '') if test "$ac_cv_type_signed_long_long" = yes; then
7657 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7659 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7660 See \`config.log' for more details." >&5
7661 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7662 See \`config.log' for more details." >&2;}
7663 { (exit 77); exit 77; }; }; }
7665 ac_cv_sizeof_signed_long_long=0
7669 cat >conftest.$ac_ext <<_ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 $ac_includes_default
7676 static long int longval () { return (long int) (sizeof (signed long long)); }
7677 static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
7684 FILE *f = fopen ("conftest.val", "w");
7687 if (((long int) (sizeof (signed long long))) < 0)
7689 long int i = longval ();
7690 if (i != ((long int) (sizeof (signed long long))))
7692 fprintf (f, "%ld", i);
7696 unsigned long int i = ulongval ();
7697 if (i != ((long int) (sizeof (signed long long))))
7699 fprintf (f, "%lu", i);
7701 /* Do not output a trailing newline, as this causes \r\n confusion
7702 on some platforms. */
7703 return ferror (f) || fclose (f) != 0;
7709 rm -f conftest$ac_exeext
7710 if { (ac_try="$ac_link"
7712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7713 *) ac_try_echo=$ac_try;;
7715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7716 $as_echo "$ac_try_echo") >&5
7717 (eval "$ac_link") 2>&5
7719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7721 { (case "(($ac_try" in
7722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7723 *) ac_try_echo=$ac_try;;
7725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7726 $as_echo "$ac_try_echo") >&5
7727 (eval "$ac_try") 2>&5
7729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 ac_cv_sizeof_signed_long_long=`cat conftest.val`
7733 $as_echo "$as_me: program exited with status $ac_status" >&5
7734 $as_echo "$as_me: failed program was:" >&5
7735 sed 's/^/| /' conftest.$ac_ext >&5
7738 if test "$ac_cv_type_signed_long_long" = yes; then
7739 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7740 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7741 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
7742 See \`config.log' for more details." >&5
7743 $as_echo "$as_me: error: cannot compute sizeof (signed long long)
7744 See \`config.log' for more details." >&2;}
7745 { (exit 77); exit 77; }; }; }
7747 ac_cv_sizeof_signed_long_long=0
7750 rm -rf conftest.dSYM
7751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7755 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
7756 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
7760 cat >>confdefs.h <<_ACEOF
7761 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
7765 # The cast to long int works around a bug in the HP C Compiler
7766 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7767 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7768 # This bug is HP SR number 8606223364.
7769 { $as_echo "$as_me:$LINENO: checking size of void*" >&5
7770 $as_echo_n "checking size of void*... " >&6; }
7771 if test "${ac_cv_sizeof_voidp+set}" = set; then
7772 $as_echo_n "(cached) " >&6
7774 if test "$cross_compiling" = yes; then
7775 # Depending upon the size, compute the lo and hi bounds.
7776 cat >conftest.$ac_ext <<_ACEOF
7779 cat confdefs.h >>conftest.$ac_ext
7780 cat >>conftest.$ac_ext <<_ACEOF
7781 /* end confdefs.h. */
7782 $ac_includes_default
7786 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= 0)];
7793 rm -f conftest.$ac_objext
7794 if { (ac_try="$ac_compile"
7796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7800 $as_echo "$ac_try_echo") >&5
7801 (eval "$ac_compile") 2>conftest.er1
7803 grep -v '^ *+' conftest.er1 >conftest.err
7805 cat conftest.err >&5
7806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest.$ac_objext; then
7813 cat >conftest.$ac_ext <<_ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819 $ac_includes_default
7823 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7830 rm -f conftest.$ac_objext
7831 if { (ac_try="$ac_compile"
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7837 $as_echo "$ac_try_echo") >&5
7838 (eval "$ac_compile") 2>conftest.er1
7840 grep -v '^ *+' conftest.er1 >conftest.err
7842 cat conftest.err >&5
7843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } && {
7845 test -z "$ac_c_werror_flag" ||
7846 test ! -s conftest.err
7847 } && test -s conftest.$ac_objext; then
7848 ac_hi=$ac_mid; break
7850 $as_echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 ac_lo=`expr $ac_mid + 1`
7854 if test $ac_lo -le $ac_mid; then
7858 ac_mid=`expr 2 '*' $ac_mid + 1`
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7864 $as_echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7867 cat >conftest.$ac_ext <<_ACEOF
7870 cat confdefs.h >>conftest.$ac_ext
7871 cat >>conftest.$ac_ext <<_ACEOF
7872 /* end confdefs.h. */
7873 $ac_includes_default
7877 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) < 0)];
7884 rm -f conftest.$ac_objext
7885 if { (ac_try="$ac_compile"
7887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7888 *) ac_try_echo=$ac_try;;
7890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7891 $as_echo "$ac_try_echo") >&5
7892 (eval "$ac_compile") 2>conftest.er1
7894 grep -v '^ *+' conftest.er1 >conftest.err
7896 cat conftest.err >&5
7897 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7898 (exit $ac_status); } && {
7899 test -z "$ac_c_werror_flag" ||
7900 test ! -s conftest.err
7901 } && test -s conftest.$ac_objext; then
7904 cat >conftest.$ac_ext <<_ACEOF
7907 cat confdefs.h >>conftest.$ac_ext
7908 cat >>conftest.$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 $ac_includes_default
7914 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) >= $ac_mid)];
7921 rm -f conftest.$ac_objext
7922 if { (ac_try="$ac_compile"
7924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7925 *) ac_try_echo=$ac_try;;
7927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7928 $as_echo "$ac_try_echo") >&5
7929 (eval "$ac_compile") 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } && {
7936 test -z "$ac_c_werror_flag" ||
7937 test ! -s conftest.err
7938 } && test -s conftest.$ac_objext; then
7939 ac_lo=$ac_mid; break
7941 $as_echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7944 ac_hi=`expr '(' $ac_mid ')' - 1`
7945 if test $ac_mid -le $ac_hi; then
7949 ac_mid=`expr 2 '*' $ac_mid`
7952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955 $as_echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7965 # Binary search between lo and hi bounds.
7966 while test "x$ac_lo" != "x$ac_hi"; do
7967 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7968 cat >conftest.$ac_ext <<_ACEOF
7971 cat confdefs.h >>conftest.$ac_ext
7972 cat >>conftest.$ac_ext <<_ACEOF
7973 /* end confdefs.h. */
7974 $ac_includes_default
7978 static int test_array [1 - 2 * !(((long int) (sizeof (void*))) <= $ac_mid)];
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7992 $as_echo "$ac_try_echo") >&5
7993 (eval "$ac_compile") 2>conftest.er1
7995 grep -v '^ *+' conftest.er1 >conftest.err
7997 cat conftest.err >&5
7998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7999 (exit $ac_status); } && {
8000 test -z "$ac_c_werror_flag" ||
8001 test ! -s conftest.err
8002 } && test -s conftest.$ac_objext; then
8005 $as_echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 ac_lo=`expr '(' $ac_mid ')' + 1`
8011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 ?*) ac_cv_sizeof_voidp=$ac_lo;;
8015 '') if test "$ac_cv_type_voidp" = yes; then
8016 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8018 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8019 See \`config.log' for more details." >&5
8020 $as_echo "$as_me: error: cannot compute sizeof (void*)
8021 See \`config.log' for more details." >&2;}
8022 { (exit 77); exit 77; }; }; }
8024 ac_cv_sizeof_voidp=0
8028 cat >conftest.$ac_ext <<_ACEOF
8031 cat confdefs.h >>conftest.$ac_ext
8032 cat >>conftest.$ac_ext <<_ACEOF
8033 /* end confdefs.h. */
8034 $ac_includes_default
8035 static long int longval () { return (long int) (sizeof (void*)); }
8036 static unsigned long int ulongval () { return (long int) (sizeof (void*)); }
8043 FILE *f = fopen ("conftest.val", "w");
8046 if (((long int) (sizeof (void*))) < 0)
8048 long int i = longval ();
8049 if (i != ((long int) (sizeof (void*))))
8051 fprintf (f, "%ld", i);
8055 unsigned long int i = ulongval ();
8056 if (i != ((long int) (sizeof (void*))))
8058 fprintf (f, "%lu", i);
8060 /* Do not output a trailing newline, as this causes \r\n confusion
8061 on some platforms. */
8062 return ferror (f) || fclose (f) != 0;
8068 rm -f conftest$ac_exeext
8069 if { (ac_try="$ac_link"
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8075 $as_echo "$ac_try_echo") >&5
8076 (eval "$ac_link") 2>&5
8078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8080 { (case "(($ac_try" in
8081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8082 *) ac_try_echo=$ac_try;;
8084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8085 $as_echo "$ac_try_echo") >&5
8086 (eval "$ac_try") 2>&5
8088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089 (exit $ac_status); }; }; then
8090 ac_cv_sizeof_voidp=`cat conftest.val`
8092 $as_echo "$as_me: program exited with status $ac_status" >&5
8093 $as_echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8097 if test "$ac_cv_type_voidp" = yes; then
8098 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8099 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8100 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (void*)
8101 See \`config.log' for more details." >&5
8102 $as_echo "$as_me: error: cannot compute sizeof (void*)
8103 See \`config.log' for more details." >&2;}
8104 { (exit 77); exit 77; }; }; }
8106 ac_cv_sizeof_voidp=0
8109 rm -rf conftest.dSYM
8110 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8114 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_voidp" >&5
8115 $as_echo "$ac_cv_sizeof_voidp" >&6; }
8119 cat >>confdefs.h <<_ACEOF
8120 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
8127 # Extract the first word of "freetype-config", so it can be a program name with args.
8128 set dummy freetype-config; ac_word=$2
8129 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if test "${ac_cv_path_FREETYPE_CONFIG+set}" = set; then
8132 $as_echo_n "(cached) " >&6
8134 case $FREETYPE_CONFIG in
8136 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path.
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 as_dummy=""$PATH:/usr/local/bin:/sw/bin:/opt/local/bin""
8141 for as_dir in $as_dummy
8144 test -z "$as_dir" && as_dir=.
8145 for ac_exec_ext in '' $ac_executable_extensions; do
8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8147 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG
8159 if test -n "$FREETYPE_CONFIG"; then
8160 { $as_echo "$as_me:$LINENO: result: $FREETYPE_CONFIG" >&5
8161 $as_echo "$FREETYPE_CONFIG" >&6; }
8163 { $as_echo "$as_me:$LINENO: result: no" >&5
8164 $as_echo "no" >&6; }
8169 OLDCPPFLAGS="${CPPFLAGS}"
8171 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8172 CPPFLAGS="$CPPFLAGS "`$FREETYPE_CONFIG --cflags`
8173 else if test -d /usr/include/freetype2; then
8174 CPPFLAGS="$CPPFLAGS -I/usr/include/freetype2"
8175 else if test -d /usr/local/include/freetype2; then
8176 CPPFLAGS="$CPPFLAGS -I/usr/local/include/freetype2"
8181 if test "x${FREETYPE_CONFIG}" '=' "x";then
8182 # if we didn't find the freetype-config program, we won't
8183 # know where the libs are expected to be. So just blindly
8184 # try to link against them.
8185 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
8186 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
8187 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
8188 $as_echo_n "(cached) " >&6
8190 ac_check_lib_save_LIBS=$LIBS
8191 LIBS="-lfreetype $LIBS"
8192 cat >conftest.$ac_ext <<_ACEOF
8195 cat confdefs.h >>conftest.$ac_ext
8196 cat >>conftest.$ac_ext <<_ACEOF
8197 /* end confdefs.h. */
8199 /* Override any GCC internal prototype to avoid an error.
8200 Use char because int might match the return type of a GCC
8201 builtin and then its argument prototype would still apply. */
8205 char FT_Init_FreeType ();
8209 return FT_Init_FreeType ();
8214 rm -f conftest.$ac_objext conftest$ac_exeext
8215 if { (ac_try="$ac_link"
8217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8218 *) ac_try_echo=$ac_try;;
8220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8221 $as_echo "$ac_try_echo") >&5
8222 (eval "$ac_link") 2>conftest.er1
8224 grep -v '^ *+' conftest.er1 >conftest.err
8226 cat conftest.err >&5
8227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228 (exit $ac_status); } && {
8229 test -z "$ac_c_werror_flag" ||
8230 test ! -s conftest.err
8231 } && test -s conftest$ac_exeext && {
8232 test "$cross_compiling" = yes ||
8233 $as_test_x conftest$ac_exeext
8235 ac_cv_lib_freetype_FT_Init_FreeType=yes
8237 $as_echo "$as_me: failed program was:" >&5
8238 sed 's/^/| /' conftest.$ac_ext >&5
8240 ac_cv_lib_freetype_FT_Init_FreeType=no
8243 rm -rf conftest.dSYM
8244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8245 conftest$ac_exeext conftest.$ac_ext
8246 LIBS=$ac_check_lib_save_LIBS
8248 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
8249 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
8250 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
8257 for ac_header in ft2build.h
8259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8261 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8262 $as_echo_n "checking for $ac_header... " >&6; }
8263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8264 $as_echo_n "(cached) " >&6
8266 ac_res=`eval 'as_val=${'$as_ac_Header'}
8267 $as_echo "$as_val"'`
8268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8269 $as_echo "$ac_res" >&6; }
8271 # Is the header compilable?
8272 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8273 $as_echo_n "checking $ac_header usability... " >&6; }
8274 cat >conftest.$ac_ext <<_ACEOF
8277 cat confdefs.h >>conftest.$ac_ext
8278 cat >>conftest.$ac_ext <<_ACEOF
8279 /* end confdefs.h. */
8280 $ac_includes_default
8281 #include <$ac_header>
8283 rm -f conftest.$ac_objext
8284 if { (ac_try="$ac_compile"
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8290 $as_echo "$ac_try_echo") >&5
8291 (eval "$ac_compile") 2>conftest.er1
8293 grep -v '^ *+' conftest.er1 >conftest.err
8295 cat conftest.err >&5
8296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && {
8298 test -z "$ac_c_werror_flag" ||
8299 test ! -s conftest.err
8300 } && test -s conftest.$ac_objext; then
8301 ac_header_compiler=yes
8303 $as_echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8306 ac_header_compiler=no
8309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8310 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8311 $as_echo "$ac_header_compiler" >&6; }
8313 # Is the header present?
8314 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8315 $as_echo_n "checking $ac_header presence... " >&6; }
8316 cat >conftest.$ac_ext <<_ACEOF
8319 cat confdefs.h >>conftest.$ac_ext
8320 cat >>conftest.$ac_ext <<_ACEOF
8321 /* end confdefs.h. */
8322 #include <$ac_header>
8324 if { (ac_try="$ac_cpp conftest.$ac_ext"
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8330 $as_echo "$ac_try_echo") >&5
8331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8333 grep -v '^ *+' conftest.er1 >conftest.err
8335 cat conftest.err >&5
8336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } >/dev/null && {
8338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8339 test ! -s conftest.err
8341 ac_header_preproc=yes
8343 $as_echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8346 ac_header_preproc=no
8349 rm -f conftest.err conftest.$ac_ext
8350 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8351 $as_echo "$ac_header_preproc" >&6; }
8353 # So? What about this header?
8354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8357 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8360 ac_header_preproc=yes
8363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8364 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8366 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8368 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8370 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8374 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8379 $as_echo_n "checking for $ac_header... " >&6; }
8380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8381 $as_echo_n "(cached) " >&6
8383 eval "$as_ac_Header=\$ac_header_preproc"
8385 ac_res=`eval 'as_val=${'$as_ac_Header'}
8386 $as_echo "$as_val"'`
8387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8388 $as_echo "$ac_res" >&6; }
8391 as_val=`eval 'as_val=${'$as_ac_Header'}
8392 $as_echo "$as_val"'`
8393 if test "x$as_val" = x""yes; then
8394 cat >>confdefs.h <<_ACEOF
8395 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8402 if test "x${HAVE_FT2BUILD_H}" '=' "x";then
8404 for ac_header in freetype/freetype.h
8406 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8408 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8409 $as_echo_n "checking for $ac_header... " >&6; }
8410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8411 $as_echo_n "(cached) " >&6
8413 ac_res=`eval 'as_val=${'$as_ac_Header'}
8414 $as_echo "$as_val"'`
8415 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8416 $as_echo "$ac_res" >&6; }
8418 # Is the header compilable?
8419 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8420 $as_echo_n "checking $ac_header usability... " >&6; }
8421 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8427 $ac_includes_default
8428 #include <$ac_header>
8430 rm -f conftest.$ac_objext
8431 if { (ac_try="$ac_compile"
8433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8434 *) ac_try_echo=$ac_try;;
8436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8437 $as_echo "$ac_try_echo") >&5
8438 (eval "$ac_compile") 2>conftest.er1
8440 grep -v '^ *+' conftest.er1 >conftest.err
8442 cat conftest.err >&5
8443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); } && {
8445 test -z "$ac_c_werror_flag" ||
8446 test ! -s conftest.err
8447 } && test -s conftest.$ac_objext; then
8448 ac_header_compiler=yes
8450 $as_echo "$as_me: failed program was:" >&5
8451 sed 's/^/| /' conftest.$ac_ext >&5
8453 ac_header_compiler=no
8456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8457 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8458 $as_echo "$ac_header_compiler" >&6; }
8460 # Is the header present?
8461 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8462 $as_echo_n "checking $ac_header presence... " >&6; }
8463 cat >conftest.$ac_ext <<_ACEOF
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8469 #include <$ac_header>
8471 if { (ac_try="$ac_cpp conftest.$ac_ext"
8473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8476 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8477 $as_echo "$ac_try_echo") >&5
8478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8480 grep -v '^ *+' conftest.er1 >conftest.err
8482 cat conftest.err >&5
8483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); } >/dev/null && {
8485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8486 test ! -s conftest.err
8488 ac_header_preproc=yes
8490 $as_echo "$as_me: failed program was:" >&5
8491 sed 's/^/| /' conftest.$ac_ext >&5
8493 ac_header_preproc=no
8496 rm -f conftest.err conftest.$ac_ext
8497 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8498 $as_echo "$ac_header_preproc" >&6; }
8500 # So? What about this header?
8501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8503 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8504 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8505 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8506 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8507 ac_header_preproc=yes
8510 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8511 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8512 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8513 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8515 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8517 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8519 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8521 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8526 $as_echo_n "checking for $ac_header... " >&6; }
8527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8528 $as_echo_n "(cached) " >&6
8530 eval "$as_ac_Header=\$ac_header_preproc"
8532 ac_res=`eval 'as_val=${'$as_ac_Header'}
8533 $as_echo "$as_val"'`
8534 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8535 $as_echo "$ac_res" >&6; }
8538 as_val=`eval 'as_val=${'$as_ac_Header'}
8539 $as_echo "$as_val"'`
8540 if test "x$as_val" = x""yes; then
8541 cat >>confdefs.h <<_ACEOF
8542 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8544 HAVE_FREETYPE_FREETYPE_H=1
8551 if test "x${HAVE_LIB_FREETYPE}" '!=' "x" -o \
8552 "x${FREETYPE_CONFIG}" '!=' "x";then
8553 if test "x${HAVE_FREETYPE_FREETYPE_H}" '!=' "x";then
8556 if test "x${HAVE_FT2BUILD_H}" '!=' "x";then
8561 if test "x${HAVE_FREETYPE}" = "x1"; then
8562 if test "x${FREETYPE_CONFIG}" '!=' "x"; then
8563 LIBS="$LIBS "`$FREETYPE_CONFIG --libs`
8565 LIBS="$LIBS -lfreetype"
8568 if test "x${HAVE_FT2BUILD_H}" = "x1"; then
8569 HAVE_FT2BUILD_H_DEFINE='#define HAVE_FT2BUILD_H'
8572 { $as_echo "$as_me:$LINENO: checking whether we can compile the freetype test program" >&5
8573 $as_echo_n "checking whether we can compile the freetype test program... " >&6; }
8575 cat > conftest.c << EOF
8576 $HAVE_FT2BUILD_H_DEFINE
8578 #ifdef HAVE_FT2BUILD_H
8579 #include <ft2build.h>
8580 #include FT_FREETYPE_H
8583 #include FT_SFNT_NAMES_H
8584 #include FT_TRUETYPE_IDS_H
8585 #include FT_OUTLINE_H
8587 #include <freetype/freetype.h>
8588 #include <freetype/ftglyph.h>
8589 #include <freetype/ftsizes.h>
8590 #include <freetype/ftsnames.h>
8591 #include <freetype/ttnameid.h>
8592 #include <freetype/ftoutln.h>
8597 FT_Library ftlibrary;
8609 FT_Init_FreeType(&ftlibrary);
8610 FT_New_Face(ftlibrary, "filename", 0, &face);
8611 i = face->num_glyphs - 1;
8612 italic = face->style_flags&FT_STYLE_FLAG_ITALIC;
8613 bold = face->style_flags&FT_STYLE_FLAG_BOLD;
8614 FT_Get_Postscript_Name(face);
8615 FT_Get_Char_Index(face, 33);
8616 FT_Get_First_Char(face, &i);
8617 FT_Get_Next_Char(face, 33, &i);
8618 if(FT_HAS_GLYPH_NAMES(face)) {
8619 FT_Get_Glyph_Name(face, 33, name, 127);
8621 FT_Load_Glyph(face, 33, FT_LOAD_NO_BITMAP|FT_LOAD_NO_SCALE);
8622 FT_Get_Glyph(face->glyph, &glyph);
8623 FT_Glyph_Get_CBox(glyph, ft_glyph_bbox_unscaled, &bbox);
8624 FT_Done_Glyph(glyph);
8626 FT_Done_FreeType(ftlibrary);
8631 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8632 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8633 { $as_echo "$as_me:$LINENO: result: yes" >&5
8634 $as_echo "yes" >&6; }
8636 cat >>confdefs.h <<\_ACEOF
8637 #define HAVE_FREETYPE 1
8641 cat >>confdefs.h <<\_ACEOF
8642 #define HAVE_FREETYPE_FREETYPE_H 1
8646 cat >>confdefs.h <<\_ACEOF
8647 #define USE_FREETYPE 1
8651 echo "configure: failed program was:" >&5
8654 { $as_echo "$as_me:$LINENO: result: no" >&5
8655 $as_echo "no" >&6; }
8660 # if the above didn't work out, reset all changes to the compiler variables.
8661 if test "x${HAVE_FREETYPE}" '!=' "x1"; then
8662 CPPFLAGS=$OLDCPPFLAGS
8668 OLDCPPFLAGS="${CPPFLAGS}"
8671 if test -d /usr/include/fontconfig; then
8672 CPPFLAGS="$CPPFLAGS -I/usr/include/fontconfig"
8675 { $as_echo "$as_me:$LINENO: checking for FcInit in -lfontconfig" >&5
8676 $as_echo_n "checking for FcInit in -lfontconfig... " >&6; }
8677 if test "${ac_cv_lib_fontconfig_FcInit+set}" = set; then
8678 $as_echo_n "(cached) " >&6
8680 ac_check_lib_save_LIBS=$LIBS
8681 LIBS="-lfontconfig $LIBS"
8682 cat >conftest.$ac_ext <<_ACEOF
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8689 /* Override any GCC internal prototype to avoid an error.
8690 Use char because int might match the return type of a GCC
8691 builtin and then its argument prototype would still apply. */
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (ac_try="$ac_link"
8707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8708 *) ac_try_echo=$ac_try;;
8710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8711 $as_echo "$ac_try_echo") >&5
8712 (eval "$ac_link") 2>conftest.er1
8714 grep -v '^ *+' conftest.er1 >conftest.err
8716 cat conftest.err >&5
8717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } && {
8719 test -z "$ac_c_werror_flag" ||
8720 test ! -s conftest.err
8721 } && test -s conftest$ac_exeext && {
8722 test "$cross_compiling" = yes ||
8723 $as_test_x conftest$ac_exeext
8725 ac_cv_lib_fontconfig_FcInit=yes
8727 $as_echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8730 ac_cv_lib_fontconfig_FcInit=no
8733 rm -rf conftest.dSYM
8734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8735 conftest$ac_exeext conftest.$ac_ext
8736 LIBS=$ac_check_lib_save_LIBS
8738 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fontconfig_FcInit" >&5
8739 $as_echo "$ac_cv_lib_fontconfig_FcInit" >&6; }
8740 if test "x$ac_cv_lib_fontconfig_FcInit" = x""yes; then
8741 HAVE_LIB_FONTCONFIG=1
8745 for ac_header in fontconfig.h
8747 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8749 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8750 $as_echo_n "checking for $ac_header... " >&6; }
8751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8752 $as_echo_n "(cached) " >&6
8754 ac_res=`eval 'as_val=${'$as_ac_Header'}
8755 $as_echo "$as_val"'`
8756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8757 $as_echo "$ac_res" >&6; }
8759 # Is the header compilable?
8760 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8761 $as_echo_n "checking $ac_header usability... " >&6; }
8762 cat >conftest.$ac_ext <<_ACEOF
8765 cat confdefs.h >>conftest.$ac_ext
8766 cat >>conftest.$ac_ext <<_ACEOF
8767 /* end confdefs.h. */
8768 $ac_includes_default
8769 #include <$ac_header>
8771 rm -f conftest.$ac_objext
8772 if { (ac_try="$ac_compile"
8774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775 *) ac_try_echo=$ac_try;;
8777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8778 $as_echo "$ac_try_echo") >&5
8779 (eval "$ac_compile") 2>conftest.er1
8781 grep -v '^ *+' conftest.er1 >conftest.err
8783 cat conftest.err >&5
8784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785 (exit $ac_status); } && {
8786 test -z "$ac_c_werror_flag" ||
8787 test ! -s conftest.err
8788 } && test -s conftest.$ac_objext; then
8789 ac_header_compiler=yes
8791 $as_echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8794 ac_header_compiler=no
8797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8799 $as_echo "$ac_header_compiler" >&6; }
8801 # Is the header present?
8802 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8803 $as_echo_n "checking $ac_header presence... " >&6; }
8804 cat >conftest.$ac_ext <<_ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8810 #include <$ac_header>
8812 if { (ac_try="$ac_cpp conftest.$ac_ext"
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8818 $as_echo "$ac_try_echo") >&5
8819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8821 grep -v '^ *+' conftest.er1 >conftest.err
8823 cat conftest.err >&5
8824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } >/dev/null && {
8826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8827 test ! -s conftest.err
8829 ac_header_preproc=yes
8831 $as_echo "$as_me: failed program was:" >&5
8832 sed 's/^/| /' conftest.$ac_ext >&5
8834 ac_header_preproc=no
8837 rm -f conftest.err conftest.$ac_ext
8838 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8839 $as_echo "$ac_header_preproc" >&6; }
8841 # So? What about this header?
8842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8845 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8847 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8848 ac_header_preproc=yes
8851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8852 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8854 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8856 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8858 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8860 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8862 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8866 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8867 $as_echo_n "checking for $ac_header... " >&6; }
8868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8869 $as_echo_n "(cached) " >&6
8871 eval "$as_ac_Header=\$ac_header_preproc"
8873 ac_res=`eval 'as_val=${'$as_ac_Header'}
8874 $as_echo "$as_val"'`
8875 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8876 $as_echo "$ac_res" >&6; }
8879 as_val=`eval 'as_val=${'$as_ac_Header'}
8880 $as_echo "$as_val"'`
8881 if test "x$as_val" = x""yes; then
8882 cat >>confdefs.h <<_ACEOF
8883 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8891 if test "x${HAVE_LIB_FONTCONFIG}" != "x";then
8892 if test "x${HAVE_FONTCONFIG_H}" != "x";then
8897 if test "x${HAVE_FONTCONFIG}" = "x1"; then
8898 LIBS="$LIBS -lfontconfig"
8899 { $as_echo "$as_me:$LINENO: checking whether we can compile the fontconfig test program" >&5
8900 $as_echo_n "checking whether we can compile the fontconfig test program... " >&6; }
8902 if (echo $LIBS | grep lfreetype >/dev/null 2>&1); then
8903 #move freetype library to the end of libraries, otherwise fontconfig
8905 LIBS=`echo $LIBS | sed -e 's/-lfreetype//g' -e 's/$/ -lfreetype/'`
8908 cat > conftest.c << EOF
8910 #include <fontconfig.h>
8914 FcPattern *pattern, *match;
8917 char*s1="abc",*s2="ABC";
8920 pattern = FcPatternBuild(0, FC_FAMILY, FcTypeString, "", 0);
8921 FcPatternAddInteger(pattern, FC_SLANT, FC_SLANT_ITALIC);
8922 FcPatternAddInteger(pattern, FC_WEIGHT, FC_WEIGHT_BOLD);
8924 FcConfig*c = FcConfigCreate();
8925 FcConfigParseAndLoad(c, (FcChar8*)"", 1);
8926 FcConfigBuildFonts(c);
8927 FcConfigSetCurrent(c);
8929 FcFontSet * set = FcConfigGetFonts(c, FcSetSystem);
8930 FcFontSetDestroy(set);
8932 FcConfigSubstitute(0, pattern, FcMatchPattern);
8933 FcDefaultSubstitute(pattern);
8934 match = FcFontMatch(0, pattern, &result);
8935 FcPatternGetString(match, "family", 0, &v) == FcResultMatch;
8936 FcPatternGetBool(match, "family", 0, &v) == FcResultMatch;
8937 FcPatternPrint(pattern);
8938 FcPatternDestroy(pattern);
8939 FcPatternDestroy(match);
8945 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
8946 if { (eval echo freetype.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8947 { $as_echo "$as_me:$LINENO: result: yes" >&5
8948 $as_echo "yes" >&6; }
8950 cat >>confdefs.h <<\_ACEOF
8951 #define HAVE_FONTCONFIG 1
8955 echo "configure: failed program was:" >&5
8958 { $as_echo "$as_me:$LINENO: result: no" >&5
8959 $as_echo "no" >&6; }
8964 # if the above didn't work out, reset all changes to the compiler variables.
8965 if test "x${HAVE_FONTCONFIG}" "!=" "x1"; then
8966 CPPFLAGS=$OLDCPPFLAGS
8972 OLDCPPFLAGS="${CPPFLAGS}"
8976 { $as_echo "$as_me:$LINENO: checking for glBegin in -lGL" >&5
8977 $as_echo_n "checking for glBegin in -lGL... " >&6; }
8978 if test "${ac_cv_lib_GL_glBegin+set}" = set; then
8979 $as_echo_n "(cached) " >&6
8981 ac_check_lib_save_LIBS=$LIBS
8983 cat >conftest.$ac_ext <<_ACEOF
8986 cat confdefs.h >>conftest.$ac_ext
8987 cat >>conftest.$ac_ext <<_ACEOF
8988 /* end confdefs.h. */
8990 /* Override any GCC internal prototype to avoid an error.
8991 Use char because int might match the return type of a GCC
8992 builtin and then its argument prototype would still apply. */
9005 rm -f conftest.$ac_objext conftest$ac_exeext
9006 if { (ac_try="$ac_link"
9008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9009 *) ac_try_echo=$ac_try;;
9011 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9012 $as_echo "$ac_try_echo") >&5
9013 (eval "$ac_link") 2>conftest.er1
9015 grep -v '^ *+' conftest.er1 >conftest.err
9017 cat conftest.err >&5
9018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9019 (exit $ac_status); } && {
9020 test -z "$ac_c_werror_flag" ||
9021 test ! -s conftest.err
9022 } && test -s conftest$ac_exeext && {
9023 test "$cross_compiling" = yes ||
9024 $as_test_x conftest$ac_exeext
9026 ac_cv_lib_GL_glBegin=yes
9028 $as_echo "$as_me: failed program was:" >&5
9029 sed 's/^/| /' conftest.$ac_ext >&5
9031 ac_cv_lib_GL_glBegin=no
9034 rm -rf conftest.dSYM
9035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9036 conftest$ac_exeext conftest.$ac_ext
9037 LIBS=$ac_check_lib_save_LIBS
9039 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glBegin" >&5
9040 $as_echo "$ac_cv_lib_GL_glBegin" >&6; }
9041 if test "x$ac_cv_lib_GL_glBegin" = x""yes; then
9042 cat >>confdefs.h <<_ACEOF
9043 #define HAVE_LIBGL 1
9051 { $as_echo "$as_me:$LINENO: checking for gluBeginSurface in -lGLU" >&5
9052 $as_echo_n "checking for gluBeginSurface in -lGLU... " >&6; }
9053 if test "${ac_cv_lib_GLU_gluBeginSurface+set}" = set; then
9054 $as_echo_n "(cached) " >&6
9056 ac_check_lib_save_LIBS=$LIBS
9058 cat >conftest.$ac_ext <<_ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9065 /* Override any GCC internal prototype to avoid an error.
9066 Use char because int might match the return type of a GCC
9067 builtin and then its argument prototype would still apply. */
9071 char gluBeginSurface ();
9075 return gluBeginSurface ();
9080 rm -f conftest.$ac_objext conftest$ac_exeext
9081 if { (ac_try="$ac_link"
9083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9084 *) ac_try_echo=$ac_try;;
9086 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9087 $as_echo "$ac_try_echo") >&5
9088 (eval "$ac_link") 2>conftest.er1
9090 grep -v '^ *+' conftest.er1 >conftest.err
9092 cat conftest.err >&5
9093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9094 (exit $ac_status); } && {
9095 test -z "$ac_c_werror_flag" ||
9096 test ! -s conftest.err
9097 } && test -s conftest$ac_exeext && {
9098 test "$cross_compiling" = yes ||
9099 $as_test_x conftest$ac_exeext
9101 ac_cv_lib_GLU_gluBeginSurface=yes
9103 $as_echo "$as_me: failed program was:" >&5
9104 sed 's/^/| /' conftest.$ac_ext >&5
9106 ac_cv_lib_GLU_gluBeginSurface=no
9109 rm -rf conftest.dSYM
9110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9111 conftest$ac_exeext conftest.$ac_ext
9112 LIBS=$ac_check_lib_save_LIBS
9114 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluBeginSurface" >&5
9115 $as_echo "$ac_cv_lib_GLU_gluBeginSurface" >&6; }
9116 if test "x$ac_cv_lib_GLU_gluBeginSurface" = x""yes; then
9117 cat >>confdefs.h <<_ACEOF
9118 #define HAVE_LIBGLU 1
9126 { $as_echo "$as_me:$LINENO: checking for glutInit in -lglut" >&5
9127 $as_echo_n "checking for glutInit in -lglut... " >&6; }
9128 if test "${ac_cv_lib_glut_glutInit+set}" = set; then
9129 $as_echo_n "(cached) " >&6
9131 ac_check_lib_save_LIBS=$LIBS
9133 cat >conftest.$ac_ext <<_ACEOF
9136 cat confdefs.h >>conftest.$ac_ext
9137 cat >>conftest.$ac_ext <<_ACEOF
9138 /* end confdefs.h. */
9140 /* Override any GCC internal prototype to avoid an error.
9141 Use char because int might match the return type of a GCC
9142 builtin and then its argument prototype would still apply. */
9155 rm -f conftest.$ac_objext conftest$ac_exeext
9156 if { (ac_try="$ac_link"
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9162 $as_echo "$ac_try_echo") >&5
9163 (eval "$ac_link") 2>conftest.er1
9165 grep -v '^ *+' conftest.er1 >conftest.err
9167 cat conftest.err >&5
9168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } && {
9170 test -z "$ac_c_werror_flag" ||
9171 test ! -s conftest.err
9172 } && test -s conftest$ac_exeext && {
9173 test "$cross_compiling" = yes ||
9174 $as_test_x conftest$ac_exeext
9176 ac_cv_lib_glut_glutInit=yes
9178 $as_echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 ac_cv_lib_glut_glutInit=no
9184 rm -rf conftest.dSYM
9185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9186 conftest$ac_exeext conftest.$ac_ext
9187 LIBS=$ac_check_lib_save_LIBS
9189 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutInit" >&5
9190 $as_echo "$ac_cv_lib_glut_glutInit" >&6; }
9191 if test "x$ac_cv_lib_glut_glutInit" = x""yes; then
9192 cat >>confdefs.h <<_ACEOF
9193 #define HAVE_LIBGLUT 1
9202 for ac_header in GL/gl.h GL/glut.h
9204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9206 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9207 $as_echo_n "checking for $ac_header... " >&6; }
9208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9209 $as_echo_n "(cached) " >&6
9211 ac_res=`eval 'as_val=${'$as_ac_Header'}
9212 $as_echo "$as_val"'`
9213 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9214 $as_echo "$ac_res" >&6; }
9216 # Is the header compilable?
9217 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9218 $as_echo_n "checking $ac_header usability... " >&6; }
9219 cat >conftest.$ac_ext <<_ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225 $ac_includes_default
9226 #include <$ac_header>
9228 rm -f conftest.$ac_objext
9229 if { (ac_try="$ac_compile"
9231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9232 *) ac_try_echo=$ac_try;;
9234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9235 $as_echo "$ac_try_echo") >&5
9236 (eval "$ac_compile") 2>conftest.er1
9238 grep -v '^ *+' conftest.er1 >conftest.err
9240 cat conftest.err >&5
9241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242 (exit $ac_status); } && {
9243 test -z "$ac_c_werror_flag" ||
9244 test ! -s conftest.err
9245 } && test -s conftest.$ac_objext; then
9246 ac_header_compiler=yes
9248 $as_echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9251 ac_header_compiler=no
9254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9255 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9256 $as_echo "$ac_header_compiler" >&6; }
9258 # Is the header present?
9259 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9260 $as_echo_n "checking $ac_header presence... " >&6; }
9261 cat >conftest.$ac_ext <<_ACEOF
9264 cat confdefs.h >>conftest.$ac_ext
9265 cat >>conftest.$ac_ext <<_ACEOF
9266 /* end confdefs.h. */
9267 #include <$ac_header>
9269 if { (ac_try="$ac_cpp conftest.$ac_ext"
9271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9272 *) ac_try_echo=$ac_try;;
9274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9275 $as_echo "$ac_try_echo") >&5
9276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9278 grep -v '^ *+' conftest.er1 >conftest.err
9280 cat conftest.err >&5
9281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } >/dev/null && {
9283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9286 ac_header_preproc=yes
9288 $as_echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_header_preproc=no
9294 rm -f conftest.err conftest.$ac_ext
9295 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9296 $as_echo "$ac_header_preproc" >&6; }
9298 # So? What about this header?
9299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9302 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9304 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9305 ac_header_preproc=yes
9308 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9309 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9310 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9311 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9313 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9315 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9319 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9323 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9324 $as_echo_n "checking for $ac_header... " >&6; }
9325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9326 $as_echo_n "(cached) " >&6
9328 eval "$as_ac_Header=\$ac_header_preproc"
9330 ac_res=`eval 'as_val=${'$as_ac_Header'}
9331 $as_echo "$as_val"'`
9332 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9333 $as_echo "$ac_res" >&6; }
9336 as_val=`eval 'as_val=${'$as_ac_Header'}
9337 $as_echo "$as_val"'`
9338 if test "x$as_val" = x""yes; then
9339 cat >>confdefs.h <<_ACEOF
9340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9348 cat > conftest.c << EOF
9351 #include <GL/glut.h>
9353 int main(int argc, char*argv)
9355 glutInit(&argc, argv);
9356 glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);
9357 glutInitWindowSize(320,200);
9358 glutInitWindowPosition(0,0);
9359 glutCreateWindow("main");
9360 glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
9361 glShadeModel(GL_SMOOTH);
9362 glEnable (GL_LINE_SMOOTH);
9363 glEnable (GL_POLYGON_SMOOTH);
9364 glEnable (GL_BLEND);
9365 glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
9366 glHint (GL_LINE_SMOOTH_HINT, GL_DONT_CARE);
9367 glHint (GL_POLYGON_SMOOTH_HINT, GL_DONT_CARE);
9371 { $as_echo "$as_me:$LINENO: checking whether we can compile the opengl test program" >&5
9372 $as_echo_n "checking whether we can compile the opengl test program... " >&6; }
9374 ac_link='$CC $CPPFLAGS $CFLAGS conftest.c $LDFLAGS $LIBS -o conftest${ac_exeext}'
9375 if { (eval echo opengl.m4:71: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9376 { $as_echo "$as_me:$LINENO: result: yes" >&5
9377 $as_echo "yes" >&6; }
9380 cat >>confdefs.h <<\_ACEOF
9381 #define HAVE_OPENGL 1
9385 echo "configure: failed program was:" >&5
9388 { $as_echo "$as_me:$LINENO: result: no" >&5
9389 $as_echo "no" >&6; }
9393 # if the above didn't work out, reset all changes to the compiler variables.
9394 if test "x${HAVE_OPENGL}" "!=" "x1"; then
9395 CPPFLAGS=$OLDCPPFLAGS
9399 if test "$HAVE_OPENGL";then
9400 DEVICE_OPENGL='devices/opengl.$(O)'
9406 if test "x${DISABLE_LAME}" = "xtrue"; then
9407 echo "*" Disabling lame support...
9409 # old lame code at lib/lame
9410 if test -f lib/lame/Makefile.in; then
9411 lame_in_source='$(lame_objects)'
9412 lame_makefile="lib/lame/Makefile"
9413 CPPFLAGS="$CPPFLAGS -Ilame -Ilib/lame"
9415 cat >>confdefs.h <<\_ACEOF
9420 if test -d /usr/include/lame; then
9421 CPPFLAGS="$CPPFLAGS -I /usr/include/lame"
9423 if test -d /usr/local/include/lame; then
9424 CPPFLAGS="$CPPFLAGS -I /usr/local/include/lame"
9428 { $as_echo "$as_me:$LINENO: checking for lame_init in -lmp3lame" >&5
9429 $as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
9430 if test "${ac_cv_lib_mp3lame_lame_init+set}" = set; then
9431 $as_echo_n "(cached) " >&6
9433 ac_check_lib_save_LIBS=$LIBS
9434 LIBS="-lmp3lame $LIBS"
9435 cat >conftest.$ac_ext <<_ACEOF
9438 cat confdefs.h >>conftest.$ac_ext
9439 cat >>conftest.$ac_ext <<_ACEOF
9440 /* end confdefs.h. */
9442 /* Override any GCC internal prototype to avoid an error.
9443 Use char because int might match the return type of a GCC
9444 builtin and then its argument prototype would still apply. */
9452 return lame_init ();
9457 rm -f conftest.$ac_objext conftest$ac_exeext
9458 if { (ac_try="$ac_link"
9460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9464 $as_echo "$ac_try_echo") >&5
9465 (eval "$ac_link") 2>conftest.er1
9467 grep -v '^ *+' conftest.er1 >conftest.err
9469 cat conftest.err >&5
9470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9471 (exit $ac_status); } && {
9472 test -z "$ac_c_werror_flag" ||
9473 test ! -s conftest.err
9474 } && test -s conftest$ac_exeext && {
9475 test "$cross_compiling" = yes ||
9476 $as_test_x conftest$ac_exeext
9478 ac_cv_lib_mp3lame_lame_init=yes
9480 $as_echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9483 ac_cv_lib_mp3lame_lame_init=no
9486 rm -rf conftest.dSYM
9487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9488 conftest$ac_exeext conftest.$ac_ext
9489 LIBS=$ac_check_lib_save_LIBS
9491 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp3lame_lame_init" >&5
9492 $as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
9493 if test "x$ac_cv_lib_mp3lame_lame_init" = x""yes; then
9494 cat >>confdefs.h <<_ACEOF
9495 #define HAVE_LIBMP3LAME 1
9498 LIBS="-lmp3lame $LIBS"
9506 for ac_header in lame.h
9508 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9510 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9511 $as_echo_n "checking for $ac_header... " >&6; }
9512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9513 $as_echo_n "(cached) " >&6
9515 ac_res=`eval 'as_val=${'$as_ac_Header'}
9516 $as_echo "$as_val"'`
9517 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9518 $as_echo "$ac_res" >&6; }
9520 # Is the header compilable?
9521 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9522 $as_echo_n "checking $ac_header usability... " >&6; }
9523 cat >conftest.$ac_ext <<_ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9529 $ac_includes_default
9530 #include <$ac_header>
9532 rm -f conftest.$ac_objext
9533 if { (ac_try="$ac_compile"
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9539 $as_echo "$ac_try_echo") >&5
9540 (eval "$ac_compile") 2>conftest.er1
9542 grep -v '^ *+' conftest.er1 >conftest.err
9544 cat conftest.err >&5
9545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } && {
9547 test -z "$ac_c_werror_flag" ||
9548 test ! -s conftest.err
9549 } && test -s conftest.$ac_objext; then
9550 ac_header_compiler=yes
9552 $as_echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9555 ac_header_compiler=no
9558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9559 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9560 $as_echo "$ac_header_compiler" >&6; }
9562 # Is the header present?
9563 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9564 $as_echo_n "checking $ac_header presence... " >&6; }
9565 cat >conftest.$ac_ext <<_ACEOF
9568 cat confdefs.h >>conftest.$ac_ext
9569 cat >>conftest.$ac_ext <<_ACEOF
9570 /* end confdefs.h. */
9571 #include <$ac_header>
9573 if { (ac_try="$ac_cpp conftest.$ac_ext"
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9579 $as_echo "$ac_try_echo") >&5
9580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9582 grep -v '^ *+' conftest.er1 >conftest.err
9584 cat conftest.err >&5
9585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } >/dev/null && {
9587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9588 test ! -s conftest.err
9590 ac_header_preproc=yes
9592 $as_echo "$as_me: failed program was:" >&5
9593 sed 's/^/| /' conftest.$ac_ext >&5
9595 ac_header_preproc=no
9598 rm -f conftest.err conftest.$ac_ext
9599 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9600 $as_echo "$ac_header_preproc" >&6; }
9602 # So? What about this header?
9603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9606 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9608 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9609 ac_header_preproc=yes
9612 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9613 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9615 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9617 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9618 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9619 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9621 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9623 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9627 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9628 $as_echo_n "checking for $ac_header... " >&6; }
9629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9630 $as_echo_n "(cached) " >&6
9632 eval "$as_ac_Header=\$ac_header_preproc"
9634 ac_res=`eval 'as_val=${'$as_ac_Header'}
9635 $as_echo "$as_val"'`
9636 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9637 $as_echo "$ac_res" >&6; }
9640 as_val=`eval 'as_val=${'$as_ac_Header'}
9641 $as_echo "$as_val"'`
9642 if test "x$as_val" = x""yes; then
9643 cat >>confdefs.h <<_ACEOF
9644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9651 if test "x$NO_LIBMP3LAME" "!=" "x1" -a "x$HASLAMEHEADER" '!=' "x";then
9652 cat >>confdefs.h <<\_ACEOF
9662 cat >>confdefs.h <<\_ACEOF
9663 #define INTERNAL_LIBART 1
9666 art_in_source='$(art_objects)'
9667 splash_in_source='$(splash_objects)'
9668 xpdf_in_source='$(xpdf_objects)'
9675 # ------------------------------------------------------------------
9678 { $as_echo "$as_me:$LINENO: checking whether the filesystem normalizes file names" >&5
9679 $as_echo_n "checking whether the filesystem normalizes file names... " >&6; }
9681 echo test1 > __abcdefghijklmnopqrstuvwxyz.txt
9682 echo test2 > __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9683 if test `cat __abcdefghijklmnopqrstuvwxyz.txt` = "test2";then
9684 { $as_echo "$as_me:$LINENO: result: yes" >&5
9685 $as_echo "yes" >&6; }
9687 cat >>confdefs.h <<\_ACEOF
9688 #define LOWERCASE_UPPERCASE 1
9692 { $as_echo "$as_me:$LINENO: result: no" >&5
9693 $as_echo "no" >&6; }
9696 rm -f __abcdefghijklmnopqrstuvwxyz.txt
9697 rm -f __ABCDEFGHIJKLMNOPQRSTUVWXYZ.txt
9701 for ac_prog in avifile-config
9703 # Extract the first word of "$ac_prog", so it can be a program name with args.
9704 set dummy $ac_prog; ac_word=$2
9705 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9706 $as_echo_n "checking for $ac_word... " >&6; }
9707 if test "${ac_cv_prog_AVIFILE_CONFIG+set}" = set; then
9708 $as_echo_n "(cached) " >&6
9710 if test -n "$AVIFILE_CONFIG"; then
9711 ac_cv_prog_AVIFILE_CONFIG="$AVIFILE_CONFIG" # Let the user override the test.
9713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9717 test -z "$as_dir" && as_dir=.
9718 for ac_exec_ext in '' $ac_executable_extensions; do
9719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9720 ac_cv_prog_AVIFILE_CONFIG="$ac_prog"
9721 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9730 AVIFILE_CONFIG=$ac_cv_prog_AVIFILE_CONFIG
9731 if test -n "$AVIFILE_CONFIG"; then
9732 { $as_echo "$as_me:$LINENO: result: $AVIFILE_CONFIG" >&5
9733 $as_echo "$AVIFILE_CONFIG" >&6; }
9735 { $as_echo "$as_me:$LINENO: result: no" >&5
9736 $as_echo "no" >&6; }
9740 test -n "$AVIFILE_CONFIG" && break
9744 if test "x$AVIFILE_CONFIG" '!=' "x";then
9745 OLDCPPFLAGS="$CPPFLAGS"
9746 # temporarily add avifile paths to CPPFLAGS...
9747 CPPFLAGS="$CPPFLAGS $CXXFLAGS "`$AVIFILE_CONFIG --cflags`
9750 for ac_header in avifile/version.h version.h
9752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9754 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9755 $as_echo_n "checking for $ac_header... " >&6; }
9756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9757 $as_echo_n "(cached) " >&6
9759 ac_res=`eval 'as_val=${'$as_ac_Header'}
9760 $as_echo "$as_val"'`
9761 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9762 $as_echo "$ac_res" >&6; }
9764 # Is the header compilable?
9765 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9766 $as_echo_n "checking $ac_header usability... " >&6; }
9767 cat >conftest.$ac_ext <<_ACEOF
9770 cat confdefs.h >>conftest.$ac_ext
9771 cat >>conftest.$ac_ext <<_ACEOF
9772 /* end confdefs.h. */
9773 $ac_includes_default
9774 #include <$ac_header>
9776 rm -f conftest.$ac_objext
9777 if { (ac_try="$ac_compile"
9779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9780 *) ac_try_echo=$ac_try;;
9782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9783 $as_echo "$ac_try_echo") >&5
9784 (eval "$ac_compile") 2>conftest.er1
9786 grep -v '^ *+' conftest.er1 >conftest.err
9788 cat conftest.err >&5
9789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } && {
9791 test -z "$ac_c_werror_flag" ||
9792 test ! -s conftest.err
9793 } && test -s conftest.$ac_objext; then
9794 ac_header_compiler=yes
9796 $as_echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ac_header_compiler=no
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9804 $as_echo "$ac_header_compiler" >&6; }
9806 # Is the header present?
9807 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9808 $as_echo_n "checking $ac_header presence... " >&6; }
9809 cat >conftest.$ac_ext <<_ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 #include <$ac_header>
9817 if { (ac_try="$ac_cpp conftest.$ac_ext"
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9823 $as_echo "$ac_try_echo") >&5
9824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9826 grep -v '^ *+' conftest.er1 >conftest.err
9828 cat conftest.err >&5
9829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9830 (exit $ac_status); } >/dev/null && {
9831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9832 test ! -s conftest.err
9834 ac_header_preproc=yes
9836 $as_echo "$as_me: failed program was:" >&5
9837 sed 's/^/| /' conftest.$ac_ext >&5
9839 ac_header_preproc=no
9842 rm -f conftest.err conftest.$ac_ext
9843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9844 $as_echo "$ac_header_preproc" >&6; }
9846 # So? What about this header?
9847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9850 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9853 ac_header_preproc=yes
9856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9857 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9859 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9861 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9863 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9867 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9871 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9872 $as_echo_n "checking for $ac_header... " >&6; }
9873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9874 $as_echo_n "(cached) " >&6
9876 eval "$as_ac_Header=\$ac_header_preproc"
9878 ac_res=`eval 'as_val=${'$as_ac_Header'}
9879 $as_echo "$as_val"'`
9880 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9881 $as_echo "$ac_res" >&6; }
9884 as_val=`eval 'as_val=${'$as_ac_Header'}
9885 $as_echo "$as_val"'`
9886 if test "x$as_val" = x""yes; then
9887 cat >>confdefs.h <<_ACEOF
9888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9896 CPPFLAGS="$OLDCPPFLAGS"
9899 { $as_echo "$as_me:$LINENO: checking whether we can compile the avifile test program" >&5
9900 $as_echo_n "checking whether we can compile the avifile test program... " >&6; }
9902 if test "x${ac_cv_header_version_h}" '=' "xyes";then
9903 HAVE_VERSION_H_DEFINE='#define HAVE_VERSION_H'
9905 if test "x${ac_cv_header_avifile_version_h}" '=' "xyes";then
9906 HAVE_AVIFILE_VERSION_H_DEFINE='#define HAVE_AVIFILE_VERSION_H'
9909 cat > conftest.cpp << EOF
9911 // hack- we can't yet access the variables in config.h (because it hasn't been generated yet),
9912 // so we have to introduce them this way
9913 $HAVE_VERSION_H_DEFINE
9914 $HAVE_AVIFILE_VERSION_H_DEFINE
9916 #ifdef HAVE_VERSION_H
9917 #include <version.h>
9919 #ifdef HAVE_AVIFILE_VERSION_H
9920 #include <avifile/version.h>
9923 #if (AVIFILE_MAJOR_VERSION == 0) && (AVIFILE_MINOR_VERSION>=6)
9924 #include <avifile.h>
9925 #include <aviplay.h>
9926 #include <avm_fourcc.h>
9927 #include <avm_creators.h>
9928 #include <StreamInfo.h>
9931 #include <avifile.h>
9932 #include <aviplay.h>
9933 #include <aviutil.h>
9935 #define Height height
9942 IAviReadFile* player;
9943 IAviReadStream* astream;
9944 IAviReadStream* vstream;
9945 player = CreateIAviReadFile(0);
9946 astream = player->GetStream(0, AviStream::Audio);
9947 vstream = player->GetStream(0, AviStream::Video);
9948 vstream -> StartStreaming();
9949 astream -> StartStreaming();
9952 player->GetFileHeader(&head);
9953 head.dwMicroSecPerFrame;
9958 head.dwMicroSecPerFrame;
9959 astream->GetEndPos(),
9960 astream->GetEndTime());
9961 player->StreamCount();
9963 StreamInfo*audioinfo;
9964 StreamInfo*videoinfo;
9965 audioinfo = astream->GetStreamInfo();
9966 videoinfo = vstream->GetStreamInfo();
9967 videoinfo->GetVideoWidth();
9968 videoinfo->GetVideoHeight();
9969 audioinfo->GetAudioSamplesPerSec();
9970 videoinfo->GetFps();
9972 CImage*img = vstream->GetFrame();
9979 astream->GetAudioFormatInfo(&wave,0);
9981 astream->ReadFrames(0,0,0,a,b);
9983 int main (int argc, char*argv)
9989 if test "x$AVIFILE_CONFIG" '!=' "x";then
9990 AVIFILE_LIBS=`$AVIFILE_CONFIG --libs`
9991 AVIFILE_CFLAGS=`$AVIFILE_CONFIG --cflags`
9992 avifile_link='$CXX $CPPFLAGS $CXXFLAGS $AVIFILE_CFLAGS conftest.cpp $AVIFILE_LIBS -o conftest${ac_exeext}'
9993 if { (eval echo avi2swf.m4:71: \"$avifile_link\") 1>&5; (eval $avifile_link) 2>&5; } && test -s conftest${ac_exeext} && ./conftest${ac_exeext}; then
9994 { $as_echo "$as_me:$LINENO: result: yes" >&5
9995 $as_echo "yes" >&6; }
9999 cat >>confdefs.h <<\_ACEOF
10000 #define AVIFILE true
10004 echo "configure: failed program was:" >&5
10005 cat conftest.cpp >&5
10006 { $as_echo "$as_me:$LINENO: result: no" >&5
10007 $as_echo "no" >&6; }
10010 { $as_echo "$as_me:$LINENO: result: no" >&5
10011 $as_echo "no" >&6; }
10015 if test "x${AVIFILE}" = "xtrue"; then
10016 VIDEO_LIBS="$VIDEO_LIBS $AVIFILE_LIBS"
10017 VIDEO_CFLAGS="$VIDEO_CFLAGS $AVIFILE_CFLAGS"
10019 cat >>confdefs.h <<\_ACEOF
10020 #define HAVE_AVIFILE 1
10025 if test "x${WIN32}" != "x"; then
10026 #AC_CHECK_LIB(avifil32, AVIFileInit,AVIFIL32=true)
10027 #if test "x${AVIFIL32}" != "x"; then
10028 # VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
10030 VIDEO_LIBS="$VIDEO_LIBS -lavifil32"
10036 # ------------------------------------------------------------------
10038 if test "x${UNCOMPRESS}" = "xgzip"; then
10040 cat >>confdefs.h <<\_ACEOF
10047 # ------------------------------------------------------------------
10050 { $as_echo "$as_me:$LINENO: checking for Python.h" >&5
10051 $as_echo_n "checking for Python.h... " >&6; }
10053 if test "x$PYTHON_LIB" '!=' "x" -a "x$PYTHON_INCLUDES" '!=' "x";then
10056 if test "x$PYTHON_LIB" '!=' "x" -o "x$PYTHON_INCLUDES" '!=' "x";then
10057 echo "Set both PYTHON_LIB and PYTHON_INCLUDES, or none at all"
10059 # iterate through version 2.2 to 2.6
10060 for v in 2 3 4 5 6; do
10062 if test -f "/usr/include/python2.$v/Python.h";then
10064 PYTHON_LIB="-lpython$PY_VERSION"
10065 if test -f "/usr/lib/python2.$v/site-packages/PIL/_imaging.so";then
10066 PYTHON_LIB2="$PYTHON_LIB /usr/lib/python2.$v/site-packages/PIL/_imaging.so"
10067 HAVE_PYTHON_IMAGING_LIB=1
10069 PYTHON_LIB2="$PYTHON_LIB"
10071 PYTHON_INCLUDES="-I/usr/include/python$PY_VERSION"
10073 elif test -f "/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/Python.h";then
10075 PYTHON_LIB="-framework Python"
10076 if test -f "/Library/Frameworks/Python.framework/Versions/2.$v/site-packages/PIL/_imaging.so";then
10077 PYTHON_LIB2="$PYTHON_LIB /Library/Python/2.$v/PIL/_imaging.so"
10078 HAVE_PYTHON_IMAGING_LIB=1
10080 PYTHON_LIB2="$PYTHON_LIB"
10082 PYTHON_INCLUDES="-I/Library/Frameworks/Python.framework/Versions/2.$v/include/python2.$v/"
10084 elif test "(" -f "/sw/lib/python2.$v/config/libpython2.$v.dylib" \
10085 -o -f "/sw/lib/python2.$v/config/libpython2.$v.a" \
10086 -o -f "/sw/lib/python2.$v/config/libpython2.$v.so" \
10088 -a -f "/sw/include/python2.$v/Python.h"; then
10090 PYTHON_LIB="-L /sw/lib/python2.$v/config/ -lpython$PY_VERSION /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10091 if test -f "/sw/lib/python2.$v/site-packages/PIL/_imaging.so";then
10092 PYTHON_LIB2="$PYTHON_LIB /sw/lib/python2.$v/site-packages/PIL/_imaging.so"
10093 HAVE_PYTHON_IMAGING_LIB=1
10095 PYTHON_LIB2="$PYTHON_LIB"
10097 PYTHON_INCLUDES="-I /sw/include/python2.$v/"
10102 if test "x$PY_VERSION" "!=" "x"; then
10103 { $as_echo "$as_me:$LINENO: result: $PY_VERSION" >&5
10104 $as_echo "$PY_VERSION" >&6; }
10105 export PYTHON_INCLUDES PYTHON_LIB
10108 { $as_echo "$as_me:$LINENO: checking whether we can compile the python test program" >&5
10109 $as_echo_n "checking whether we can compile the python test program... " >&6; }
10111 cat > conftest.c << EOF
10112 #include <Python.h>
10117 ret = Py_Main(0, 0);
10118 int x; // check also for gcc 2.95.x incompatibilities
10123 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS $PYTHON_LIB $LIBS -o conftest${ac_exeext}'
10124 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10125 { $as_echo "$as_me:$LINENO: result: yes" >&5
10126 $as_echo "yes" >&6; }
10129 echo "configure: failed program was:" >&5
10131 { $as_echo "$as_me:$LINENO: result: no" >&5
10132 $as_echo "no" >&6; }
10135 if test "x$PYTHON_OK" = "xyes";then
10136 { $as_echo "$as_me:$LINENO: checking for Python-Imaging" >&5
10137 $as_echo_n "checking for Python-Imaging... " >&6; }
10138 cat > conftest.c << EOF
10139 #include <Python.h>
10140 #include <Imaging.h>
10148 if test "$HAVE_PYTHON_IMAGING_LIB"; then
10149 ac_link='$CC $CPPFLAGS $CFLAGS $PYTHON_INCLUDES conftest.c $LDFLAGS ${PYTHON_LIB2} $LIBS -o conftest${ac_exeext}'
10150 if { (eval echo python.m4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10151 PYTHON_LIB="${PYTHON_LIB2}"
10153 cat >>confdefs.h <<\_ACEOF
10154 #define HAVE_PYTHON_IMAGING 1
10157 HAVE_PYTHON_IMAGING=yes
10158 export HAVE_PYTHON_IMAGING
10160 { $as_echo "$as_me:$LINENO: result: yes" >&5
10161 $as_echo "yes" >&6; }
10163 echo "configure: failed program was:" >&5
10165 { $as_echo "$as_me:$LINENO: result: no" >&5
10166 $as_echo "no" >&6; }
10169 echo "(didn't find the Python-Imaging libraries)" >&5
10170 { $as_echo "$as_me:$LINENO: result: no" >&5
10171 $as_echo "no" >&6; }
10176 { $as_echo "$as_me:$LINENO: result: nope" >&5
10177 $as_echo "nope" >&6; }
10181 if test "x$PYTHON_OK" '!=' "xyes";then
10182 echo all install uninstall clean: > lib/python/Makefile
10183 # fail silently- the most users won't have any need for the
10184 # python interface anyway
10186 pythonrfxswf="lib/python/Makefile"
10189 # ------------------------------------------------------------------
10191 { $as_echo "$as_me:$LINENO: checking for missing libraries" >&5
10192 $as_echo_n "checking for missing libraries... " >&6; }
10194 if test "x$ZLIBMISSING" = "xtrue";then
10195 MISSINGLIBS="${MISSINGLIBS} zlib"
10196 DISABLEPNG2SWF=true
10199 if test "x$JPEGLIBMISSING" = "xtrue";then
10200 MISSINGLIBS="${MISSINGLIBS} jpeglib"
10201 DISABLEPDF2SWF=true
10202 DISABLEJPEG2SWF=true
10205 if test "x$PDFLIBMISSING" = "xtrue";then
10206 DISABLEPDF2PDF=true;
10208 #if test "x$T1LIBMISSING" = "xtrue";then
10209 # MISSINGLIBS="${MISSINGLIBS} t1lib"
10211 if test "x$UNGIFMISSING" = "xtrue";then
10212 DISABLEGIF2SWF=true
10213 MISSINGLIBS="${MISSINGLIBS} ungif"
10217 if test "x${ac_cv_header_pdflib_h}" '!=' "xyes";then
10218 DISABLEPDF2PDF=true;
10220 if test "x${ac_cv_header_jpeglib_h}" '!=' "xyes"; then
10221 DISABLEPDF2SWF=true;
10222 DISABLEJPEG2SWF=true;
10223 MISSINGLIBS="${MISSINGLIBS} jpeglib.h"
10226 if test "x$HAVE_FREETYPE" '!=' "x1"; then
10227 DISABLEPDF2SWF=true;
10228 MISSINGLIBS="${MISSINGLIBS} freetype"
10231 #if test "x${ac_cv_header_t1lib_h}" '!=' "xyes"; then
10232 # MISSINGLIBS="${MISSINGLIBS} t1lib.h"
10234 if test "x${ac_cv_header_gif_lib_h}" '!=' "xyes"; then
10235 DISABLEGIF2SWF=true
10236 MISSINGLIBS="${MISSINGLIBS} gif_lib.h"
10239 if test "x${ac_cv_header_zlib_h}" '!=' "xyes"; then
10240 DISABLEPNG2SWF=true;
10241 MISSINGLIBS="${MISSINGLIBS} zlib.h"
10244 #if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10245 # MISSINGLIBS="${MISSINGLIBS} avifile"
10248 { $as_echo "$as_me:$LINENO: result: ${MISSINGLIBS}" >&5
10249 $as_echo "${MISSINGLIBS}" >&6; }
10251 # ------------------------------------------------------------------
10253 if test "x${MISSINGLIBS}" '!=' "x"; then
10254 echo "***************************************************"
10255 echo "* The following headers/libraries are missing: " ${MISSINGLIBS}
10258 avi2swf="avi2swf/Makefile"
10259 if test "x${AVIFILE}" '!=' "xtrue" -a "x${AVIFIL32}" '!=' "xtrue"; then
10260 #don't whine, avi2swf is outdated anyway
10261 #echo "* Disabling avi2swf tool..."
10262 echo all install uninstall clean: > avi2swf/Makefile
10266 pdf2swf_makefile="lib/pdf/Makefile"
10267 PDF2SWF='pdf2swf$(E)'
10268 LIBPDF='libpdf$(A)'
10270 if test "x${DISABLEPDF2SWF}" = "xtrue"; then
10271 echo "* Disabling pdf2swf tool..."
10272 rm -f lib/pdf/Makefile
10273 echo all install uninstall clean libpdf: > lib/pdf/Makefile
10274 pdf2swf_makefile=""
10281 PDF2PDF='pdf2pdf$(E)'
10282 DEVICE_PDF='devices/pdf.$(O)'
10283 if test "x${DISABLEPDF2PDF}" = "xtrue"; then
10284 #echo "* Disabling pdf2pdf tool..."
10291 if test "x${ZLIBMISSING}" = "xtrue"; then
10293 echo "* Warning! Without zlib, you will not be able to read"
10294 echo "* or write compressed Flash MX files!"
10297 JPEG2SWF='jpeg2swf$(E)'
10298 if test "x${DISABLEJPEG2SWF}" = "xtrue"; then
10299 echo "* Disabling jpeg2swf tool..."
10305 GIF2SWF='gif2swf$(E)'
10306 if test "x${DISABLEGIF2SWF}" = "xtrue"; then
10307 echo "* Disabling gif2swf tool..."
10313 PNG2SWF='png2swf$(E)'
10314 if test "x${DISABLEPNG2SWF}" = "xtrue"; then
10315 echo "* Disabling png2swf tool..."
10321 if test "x${MISSINGLIBS}" '!=' "x"; then
10322 if test "x${PARTIAL}" '=' "x"; then
10323 echo "* (never mind)"
10325 echo "***************************************************"
10328 # ------------------------------------------------------------------
10336 if test -f "release.in"; then release_in="./release"; fi
10337 if test -f "Makefile.new.in"; then mk_in="./Makefile.new"; fi
10338 FILES="$release_in $mk_in Makefile.common ${avi2swf} Makefile lib/Makefile lib/action/Makefile src/Makefile ${pdf2swf_makefile} swfs/Makefile ${pythonrfxswf} ${lame_makefile} lib/art/Makefile lib/readers/Makefile"
10339 ac_config_files="$ac_config_files ${FILES}"
10341 cat >confcache <<\_ACEOF
10342 # This file is a shell script that caches the results of configure
10343 # tests run on this system so they can be shared between configure
10344 # scripts and configure runs, see configure's option --config-cache.
10345 # It is not useful on other systems. If it contains results you don't
10346 # want to keep, you may remove or edit it.
10348 # config.status only pays attention to the cache file if you give it
10349 # the --recheck option to rerun configure.
10351 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10352 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10353 # following values.
10357 # The following way of writing the cache mishandles newlines in values,
10358 # but we know of no workaround that is simple, portable, and efficient.
10359 # So, we kill variables containing newlines.
10360 # Ultrix sh set writes to stderr and can't be redirected directly,
10361 # and sets the high bit in the cache file unless we assign to the vars.
10363 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10364 eval ac_val=\$$ac_var
10368 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
10369 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10372 _ | IFS | as_nl) ;; #(
10373 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10374 *) $as_unset $ac_var ;;
10380 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10381 *${as_nl}ac_space=\ *)
10382 # `set' does not quote correctly, so add quotes (double-quote
10383 # substitution turns \\\\ into \\, and sed turns \\ into \).
10386 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10389 # `set' quotes correctly as required by POSIX, so do not add quotes.
10390 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10399 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10401 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10403 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10404 if test -w "$cache_file"; then
10405 test "x$cache_file" != "x/dev/null" &&
10406 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
10407 $as_echo "$as_me: updating cache $cache_file" >&6;}
10408 cat confcache >$cache_file
10410 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
10411 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10416 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10417 # Let make expand exec_prefix.
10418 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10420 DEFS=-DHAVE_CONFIG_H
10424 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10425 # 1. Remove the extension, and $U if already installed.
10426 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10427 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10428 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10429 # will be set to the directory where LIBOBJS objects are built.
10430 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10431 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
10433 LIBOBJS=$ac_libobjs
10435 LTLIBOBJS=$ac_ltlibobjs
10439 : ${CONFIG_STATUS=./config.status}
10441 ac_clean_files_save=$ac_clean_files
10442 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10443 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10444 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10445 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10447 # Generated by $as_me.
10448 # Run this file to recreate the current configuration.
10449 # Compiler output produced by configure, useful for debugging
10450 # configure, is in config.log if it exists.
10453 ac_cs_recheck=false
10455 SHELL=\${CONFIG_SHELL-$SHELL}
10458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10459 ## --------------------- ##
10460 ## M4sh Initialization. ##
10461 ## --------------------- ##
10463 # Be more Bourne compatible
10464 DUALCASE=1; export DUALCASE # for MKS sh
10465 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10468 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10469 # is contrary to our usage. Disable this feature.
10470 alias -g '${1+"$@"}'='"$@"'
10471 setopt NO_GLOB_SUBST
10473 case `(set -o) 2>/dev/null` in
10474 *posix*) set -o posix ;;
10483 # Avoid depending upon Character Ranges.
10484 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10485 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10486 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10487 as_cr_digits='0123456789'
10488 as_cr_alnum=$as_cr_Letters$as_cr_digits
10493 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10494 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10495 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10496 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10497 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10498 as_echo='printf %s\n'
10499 as_echo_n='printf %s'
10501 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10502 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10503 as_echo_n='/usr/ucb/echo -n'
10505 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10506 as_echo_n_body='eval
10510 expr "X$arg" : "X\\(.*\\)$as_nl";
10511 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10513 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10515 export as_echo_n_body
10516 as_echo_n='sh -c $as_echo_n_body as_echo'
10518 export as_echo_body
10519 as_echo='sh -c $as_echo_body as_echo'
10522 # The user is always right.
10523 if test "${PATH_SEPARATOR+set}" != set; then
10525 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10526 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10531 # Support unset when possible.
10532 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10540 # We need space, tab and new line, in precisely that order. Quoting is
10541 # there to prevent editors from complaining about space-tab.
10542 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10543 # splitting by setting IFS to empty value.)
10546 # Find who we are. Look in the path if we contain no directory separator.
10548 *[\\/]* ) as_myself=$0 ;;
10549 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10550 for as_dir in $PATH
10553 test -z "$as_dir" && as_dir=.
10554 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10560 # We did not find ourselves, most probably we were run as `sh COMMAND'
10561 # in which case we are not to be found in the path.
10562 if test "x$as_myself" = x; then
10565 if test ! -f "$as_myself"; then
10566 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10567 { (exit 1); exit 1; }
10570 # Work around bugs in pre-3.0 UWIN ksh.
10571 for as_var in ENV MAIL MAILPATH
10572 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
10584 # Required to use basename.
10585 if expr a : '\(a\)' >/dev/null 2>&1 &&
10586 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10592 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10593 as_basename=basename
10599 # Name of the executable.
10600 as_me=`$as_basename -- "$0" ||
10601 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10602 X"$0" : 'X\(//\)$' \| \
10603 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10605 sed '/^.*\/\([^/][^/]*\)\/*$/{
10624 as_lineno_1=$LINENO
10625 as_lineno_2=$LINENO
10626 test "x$as_lineno_1" != "x$as_lineno_2" &&
10627 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
10629 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10630 # uniformly replaced by the line number. The first 'sed' inserts a
10631 # line-number line after each line using $LINENO; the second 'sed'
10632 # does the real work. The second script uses 'N' to pair each
10633 # line-number line with the line containing $LINENO, and appends
10634 # trailing '-' during substitution so that $LINENO is not a special
10635 # case at line end.
10636 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10637 # scripts with optimization help from Paolo Bonzini. Blame Lee
10638 # E. McMahon (1931-1989) for sed's syntax. :-)
10650 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
10653 ' >$as_me.lineno &&
10654 chmod +x "$as_me.lineno" ||
10655 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
10656 { (exit 1); exit 1; }; }
10658 # Don't try to exec as it changes $[0], causing all sort of problems
10659 # (the dirname of $[0] is not the place where we might find the
10660 # original and so on. Autoconf is especially sensitive to this).
10661 . "./$as_me.lineno"
10662 # Exit status is that of the last command.
10667 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10673 ECHO_C= ECHO_N= ECHO_T=
10674 case `echo -n x` in
10676 case `echo 'x\c'` in
10677 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10683 if expr a : '\(a\)' >/dev/null 2>&1 &&
10684 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10690 rm -f conf$$ conf$$.exe conf$$.file
10691 if test -d conf$$.dir; then
10692 rm -f conf$$.dir/conf$$.file
10695 mkdir conf$$.dir 2>/dev/null
10697 if (echo >conf$$.file) 2>/dev/null; then
10698 if ln -s conf$$.file conf$$ 2>/dev/null; then
10700 # ... but there are two gotchas:
10701 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10702 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10703 # In both cases, we have to default to `cp -p'.
10704 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10706 elif ln conf$$.file conf$$ 2>/dev/null; then
10714 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10715 rmdir conf$$.dir 2>/dev/null
10717 if mkdir -p . 2>/dev/null; then
10720 test -d ./-p && rmdir ./-p
10724 if test -x / >/dev/null 2>&1; then
10725 as_test_x='test -x'
10727 if ls -dL / >/dev/null 2>&1; then
10734 if test -d "$1"; then
10740 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
10741 ???[sx]*):;;*)false;;esac;fi
10745 as_executable_p=$as_test_x
10747 # Sed expression to map a string onto a valid CPP name.
10748 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10750 # Sed expression to map a string onto a valid variable name.
10751 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10756 # Save the log message, to keep $[0] and so on meaningful, and to
10757 # report actual input values of CONFIG_FILES etc. instead of their
10758 # values after options handling.
10760 This file was extended by $as_me, which was
10761 generated by GNU Autoconf 2.63. Invocation command line was
10763 CONFIG_FILES = $CONFIG_FILES
10764 CONFIG_HEADERS = $CONFIG_HEADERS
10765 CONFIG_LINKS = $CONFIG_LINKS
10766 CONFIG_COMMANDS = $CONFIG_COMMANDS
10769 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10774 case $ac_config_files in *"
10775 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10778 case $ac_config_headers in *"
10779 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10784 # Files that config.status was made for.
10785 config_files="$ac_config_files"
10786 config_headers="$ac_config_headers"
10790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10792 \`$as_me' instantiates files from templates according to the
10793 current configuration.
10795 Usage: $0 [OPTION]... [FILE]...
10797 -h, --help print this help, then exit
10798 -V, --version print version number and configuration settings, then exit
10799 -q, --quiet, --silent
10800 do not print progress messages
10801 -d, --debug don't remove temporary files
10802 --recheck update $as_me by reconfiguring in the same conditions
10803 --file=FILE[:TEMPLATE]
10804 instantiate the configuration file FILE
10805 --header=FILE[:TEMPLATE]
10806 instantiate the configuration header FILE
10808 Configuration files:
10811 Configuration headers:
10814 Report bugs to <bug-autoconf@gnu.org>."
10817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10820 configured by $0, generated by GNU Autoconf 2.63,
10821 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
10823 Copyright (C) 2008 Free Software Foundation, Inc.
10824 This config.status script is free software; the Free Software Foundation
10825 gives unlimited permission to copy, distribute and modify it."
10830 test -n "\$AWK" || AWK=awk
10833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10834 # The default lists apply if the user does not specify any file.
10840 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10841 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10852 # Handling of the options.
10853 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10855 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10856 $as_echo "$ac_cs_version"; exit ;;
10857 --debug | --debu | --deb | --de | --d | -d )
10859 --file | --fil | --fi | --f )
10862 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10864 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
10865 ac_need_defaults=false;;
10866 --header | --heade | --head | --hea )
10869 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10871 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
10872 ac_need_defaults=false;;
10874 # Conflict between --help and --header
10875 { $as_echo "$as_me: error: ambiguous option: $1
10876 Try \`$0 --help' for more information." >&2
10877 { (exit 1); exit 1; }; };;
10878 --help | --hel | -h )
10879 $as_echo "$ac_cs_usage"; exit ;;
10880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10881 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10884 # This is an error.
10885 -*) { $as_echo "$as_me: error: unrecognized option: $1
10886 Try \`$0 --help' for more information." >&2
10887 { (exit 1); exit 1; }; } ;;
10889 *) ac_config_targets="$ac_config_targets $1"
10890 ac_need_defaults=false ;;
10896 ac_configure_extra_args=
10898 if $ac_cs_silent; then
10900 ac_configure_extra_args="$ac_configure_extra_args --silent"
10904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10905 if \$ac_cs_recheck; then
10906 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10908 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10909 CONFIG_SHELL='$SHELL'
10910 export CONFIG_SHELL
10915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10919 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10920 ## Running $as_me. ##
10926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10929 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10931 # Handling of arguments.
10932 for ac_config_target in $ac_config_targets
10934 case $ac_config_target in
10935 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10936 "${FILES}") CONFIG_FILES="$CONFIG_FILES ${FILES}" ;;
10938 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10939 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10940 { (exit 1); exit 1; }; };;
10945 # If the user did not use the arguments to specify the items to instantiate,
10946 # then the envvar interface is used. Set only those that are not.
10947 # We use the long form for the default assignment because of an extremely
10948 # bizarre bug on SunOS 4.1.3.
10949 if $ac_need_defaults; then
10950 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10951 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10954 # Have a temporary directory for convenience. Make it in the build tree
10955 # simply because there is no reason against having it here, and in addition,
10956 # creating and moving files from /tmp can sometimes cause problems.
10957 # Hook for its removal unless debugging.
10958 # Note that there is a small window in which the directory will not be cleaned:
10959 # after its creation but before its name has been assigned to `$tmp'.
10963 trap 'exit_status=$?
10964 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
10966 trap '{ (exit 1); exit 1; }' 1 2 13 15
10968 # Create a (secure) tmp directory for tmp files.
10971 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10972 test -n "$tmp" && test -d "$tmp"
10975 tmp=./conf$$-$RANDOM
10976 (umask 077 && mkdir "$tmp")
10979 $as_echo "$as_me: cannot create a temporary directory in ." >&2
10980 { (exit 1); exit 1; }
10983 # Set up the scripts for CONFIG_FILES section.
10984 # No need to generate them if there are no CONFIG_FILES.
10985 # This happens for instance with `./config.status config.h'.
10986 if test -n "$CONFIG_FILES"; then
10990 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10991 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10994 ac_cs_awk_cr=$ac_cr
10997 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11002 echo "cat >conf$$subs.awk <<_ACEOF" &&
11003 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11005 } >conf$$subs.sh ||
11006 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11007 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11008 { (exit 1); exit 1; }; }
11009 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11011 for ac_last_try in false false false false false :; do
11012 . ./conf$$subs.sh ||
11013 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11014 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11015 { (exit 1); exit 1; }; }
11017 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11018 if test $ac_delim_n = $ac_delim_num; then
11020 elif $ac_last_try; then
11021 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11022 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11023 { (exit 1); exit 1; }; }
11025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11028 rm -f conf$$subs.sh
11030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11031 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11035 s/^/S["/; s/!.*/"]=/
11045 s/\(.\{148\}\).*/\1/
11047 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11052 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11059 s/\(.\{148\}\).*/\1/
11061 s/["\\]/\\&/g; s/^/"/; s/$/"/
11065 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11070 ' <conf$$subs.awk | sed '
11075 ' >>$CONFIG_STATUS || ac_write_fail=1
11076 rm -f conf$$subs.awk
11077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11079 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11080 for (key in S) S_is_set[key] = 1
11086 nfields = split(line, field, "@")
11088 len = length(field[1])
11089 for (i = 2; i < nfields; i++) {
11091 keylen = length(key)
11092 if (S_is_set[key]) {
11094 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11095 len += length(value) + length(field[++i])
11106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11107 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11108 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11111 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11112 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11113 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11114 { (exit 1); exit 1; }; }
11117 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11118 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11119 # trailing colons and then remove the whole line if VPATH becomes empty
11120 # (actually we leave an empty line to preserve line numbers).
11121 if test "x$srcdir" = x.; then
11122 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11123 s/:*\$(srcdir):*/:/
11124 s/:*\${srcdir}:*/:/
11126 s/^\([^=]*=[ ]*\):*/\1/
11132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11133 fi # test -n "$CONFIG_FILES"
11135 # Set up the scripts for CONFIG_HEADERS section.
11136 # No need to generate them if there are no CONFIG_HEADERS.
11137 # This happens for instance with `./config.status Makefile'.
11138 if test -n "$CONFIG_HEADERS"; then
11139 cat >"$tmp/defines.awk" <<\_ACAWK ||
11143 # Transform confdefs.h into an awk script `defines.awk', embedded as
11144 # here-document in config.status, that substitutes the proper values into
11145 # config.h.in to produce config.h.
11147 # Create a delimiter string that does not exist in confdefs.h, to ease
11148 # handling of long lines.
11150 for ac_last_try in false false :; do
11151 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11152 if test -z "$ac_t"; then
11154 elif $ac_last_try; then
11155 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11156 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11157 { (exit 1); exit 1; }; }
11159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11163 # For the awk script, D is an array of macro values keyed by name,
11164 # likewise P contains macro parameters if any. Preserve backslash
11165 # newline sequences.
11167 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11169 s/.\{148\}/&'"$ac_delim"'/g
11172 s/^[ ]*#[ ]*define[ ][ ]*/ /
11179 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11181 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11185 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11186 D["\1"]=" \3\\\\\\n"\\/p
11188 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11193 s/.\{148\}/&'"$ac_delim"'/g
11198 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11201 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11203 ' <confdefs.h | sed '
11204 s/'"$ac_delim"'/"\\\
11205 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11208 for (key in D) D_is_set[key] = 1
11211 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11213 split(line, arg, " ")
11214 if (arg[1] == "#") {
11218 defundef = substr(arg[1], 2)
11221 split(mac1, mac2, "(") #)
11223 prefix = substr(line, 1, index(line, defundef) - 1)
11224 if (D_is_set[macro]) {
11225 # Preserve the white space surrounding the "#".
11226 print prefix "define", macro P[macro] D[macro]
11229 # Replace #undef with comments. This is necessary, for example,
11230 # in the case of _POSIX_SOURCE, which is predefined and required
11231 # on some systems where configure will not decide to define it.
11232 if (defundef == "undef") {
11233 print "/*", prefix defundef, macro, "*/"
11241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11242 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
11243 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
11244 { (exit 1); exit 1; }; }
11245 fi # test -n "$CONFIG_HEADERS"
11248 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11253 :[FHLC]) ac_mode=$ac_tag; continue;;
11255 case $ac_mode$ac_tag in
11257 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
11258 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
11259 { (exit 1); exit 1; }; };;
11260 :[FH]-) ac_tag=-:-;;
11261 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11278 -) ac_f="$tmp/stdin";;
11279 *) # Look for the file first in the build tree, then in the source tree
11280 # (if the path is not absolute). The absolute path cannot be DOS-style,
11281 # because $ac_f cannot contain `:'.
11285 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11287 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
11288 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
11289 { (exit 1); exit 1; }; };;
11291 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11292 ac_file_inputs="$ac_file_inputs '$ac_f'"
11295 # Let's still pretend it is `configure' which instantiates (i.e., don't
11296 # use $as_me), people would be surprised to read:
11297 # /* config.h. Generated by config.status. */
11298 configure_input='Generated from '`
11299 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11301 if test x"$ac_file" != x-; then
11302 configure_input="$ac_file. $configure_input"
11303 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
11304 $as_echo "$as_me: creating $ac_file" >&6;}
11306 # Neutralize special characters interpreted by sed in replacement strings.
11307 case $configure_input in #(
11308 *\&* | *\|* | *\\* )
11309 ac_sed_conf_input=`$as_echo "$configure_input" |
11310 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11311 *) ac_sed_conf_input=$configure_input;;
11315 *:-:* | *:-) cat >"$tmp/stdin" \
11316 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11317 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11318 { (exit 1); exit 1; }; } ;;
11323 ac_dir=`$as_dirname -- "$ac_file" ||
11324 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11325 X"$ac_file" : 'X\(//\)[^/]' \| \
11326 X"$ac_file" : 'X\(//\)$' \| \
11327 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11328 $as_echo X"$ac_file" |
11329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11333 /^X\(\/\/\)[^/].*/{
11348 -*) as_dir=./$as_dir;;
11350 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
11354 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11355 *) as_qdir=$as_dir;;
11357 as_dirs="'$as_qdir' $as_dirs"
11358 as_dir=`$as_dirname -- "$as_dir" ||
11359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11360 X"$as_dir" : 'X\(//\)[^/]' \| \
11361 X"$as_dir" : 'X\(//\)$' \| \
11362 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11363 $as_echo X"$as_dir" |
11364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11368 /^X\(\/\/\)[^/].*/{
11381 test -d "$as_dir" && break
11383 test -z "$as_dirs" || eval "mkdir $as_dirs"
11384 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
11385 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
11386 { (exit 1); exit 1; }; }; }
11390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11392 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11393 # A ".." for each directory in $ac_dir_suffix.
11394 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11395 case $ac_top_builddir_sub in
11396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11400 ac_abs_top_builddir=$ac_pwd
11401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11402 # for backward compatibility:
11403 ac_top_builddir=$ac_top_build_prefix
11406 .) # We are building in place.
11408 ac_top_srcdir=$ac_top_builddir_sub
11409 ac_abs_top_srcdir=$ac_pwd ;;
11410 [\\/]* | ?:[\\/]* ) # Absolute name.
11411 ac_srcdir=$srcdir$ac_dir_suffix;
11412 ac_top_srcdir=$srcdir
11413 ac_abs_top_srcdir=$srcdir ;;
11414 *) # Relative name.
11415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11416 ac_top_srcdir=$ac_top_build_prefix$srcdir
11417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11429 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
11430 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
11434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11435 # If the template does not know about datarootdir, expand it.
11436 # FIXME: This hack should be removed a few years after 2.60.
11437 ac_datarootdir_hack=; ac_datarootdir_seen=
11450 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11451 *datarootdir*) ac_datarootdir_seen=yes;;
11452 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11453 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11454 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11457 ac_datarootdir_hack='
11458 s&@datadir@&$datadir&g
11459 s&@docdir@&$docdir&g
11460 s&@infodir@&$infodir&g
11461 s&@localedir@&$localedir&g
11462 s&@mandir@&$mandir&g
11463 s&\\\${datarootdir}&$datarootdir&g' ;;
11467 # Neutralize VPATH when `$srcdir' = `.'.
11468 # Shell code in configure.ac might set extrasub.
11469 # FIXME: do we really want to maintain this feature?
11470 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11471 ac_sed_extra="$ac_vpsub
11474 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11476 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11477 s|@configure_input@|$ac_sed_conf_input|;t t
11478 s&@top_builddir@&$ac_top_builddir_sub&;t t
11479 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11480 s&@srcdir@&$ac_srcdir&;t t
11481 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11482 s&@top_srcdir@&$ac_top_srcdir&;t t
11483 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11484 s&@builddir@&$ac_builddir&;t t
11485 s&@abs_builddir@&$ac_abs_builddir&;t t
11486 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11487 s&@INSTALL@&$ac_INSTALL&;t t
11488 $ac_datarootdir_hack
11490 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11491 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11492 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11493 { (exit 1); exit 1; }; }
11495 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11496 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11497 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11498 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11499 which seems to be undefined. Please make sure it is defined." >&5
11500 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11501 which seems to be undefined. Please make sure it is defined." >&2;}
11505 -) cat "$tmp/out" && rm -f "$tmp/out";;
11506 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11508 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11509 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11510 { (exit 1); exit 1; }; }
11516 if test x"$ac_file" != x-; then
11518 $as_echo "/* $configure_input */" \
11519 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11520 } >"$tmp/config.h" \
11521 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11522 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11523 { (exit 1); exit 1; }; }
11524 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11525 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
11526 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11529 mv "$tmp/config.h" "$ac_file" \
11530 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
11531 $as_echo "$as_me: error: could not create $ac_file" >&2;}
11532 { (exit 1); exit 1; }; }
11535 $as_echo "/* $configure_input */" \
11536 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11537 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
11538 $as_echo "$as_me: error: could not create -" >&2;}
11539 { (exit 1); exit 1; }; }
11549 { (exit 0); exit 0; }
11551 chmod +x $CONFIG_STATUS
11552 ac_clean_files=$ac_clean_files_save
11554 test $ac_write_fail = 0 ||
11555 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
11556 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
11557 { (exit 1); exit 1; }; }
11560 # configure is writing to config.log, and then calls config.status.
11561 # config.status does its own redirection, appending to config.log.
11562 # Unfortunately, on DOS this fails, as config.log is still kept open
11563 # by configure, so config.status won't be able to write to it; its
11564 # output is simply discarded. So we exec the FD to /dev/null,
11565 # effectively closing config.log, so it can be properly (re)opened and
11566 # appended to by config.status. When coming back to configure, we
11567 # need to make the FD available again.
11568 if test "$no_create" != yes; then
11570 ac_config_status_args=
11571 test "$silent" = yes &&
11572 ac_config_status_args="$ac_config_status_args --quiet"
11574 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11576 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11577 # would make configure fail if this is the last instruction.
11578 $ac_cs_success || { (exit 1); exit 1; }
11580 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11581 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11582 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11588 # On development trees, create snapshots of config.status
11590 if test -f snapshot -a "x$CHECKMEM" = "x" -a "x$PROFILING" = "x";then
11591 if test "x${MINGW}" = "xyes"; then
11592 echo cp config.status config.status.win32
11593 cp config.status config.status.win32
11595 if test "x$DEBUG" '=' "x" -a "x$OPTIMIZE" '=' "x";then
11596 echo cp config.status config.status.linux
11597 cp config.status config.status.linux
11599 if test "x$DEBUG" '!=' "x" -a "x$OPTIMIZE" '=' "x";then
11600 echo cp config.status config.status.debug
11601 cp config.status config.status.debug
11603 if test "x$DEBUG" = "x" -a "x$OPTIMIZE" '!=' "x"; then
11604 echo cp config.status config.status.optimize
11605 cp config.status config.status.optimize